specrails-hub 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +255 -0
- package/cli/dist/srm.js +895 -0
- package/client/dist/assets/index-BEc7DzgE.css +1 -0
- package/client/dist/assets/index-DoIYcnfd.js +486 -0
- package/client/dist/index.html +13 -0
- package/package.json +57 -0
- package/server/analytics.test.ts +166 -0
- package/server/analytics.ts +318 -0
- package/server/chat-manager.test.ts +216 -0
- package/server/chat-manager.ts +289 -0
- package/server/command-grid-logic.test.ts +480 -0
- package/server/command-resolver.test.ts +136 -0
- package/server/command-resolver.ts +29 -0
- package/server/config.test.ts +193 -0
- package/server/config.ts +321 -0
- package/server/db.test.ts +409 -0
- package/server/db.ts +514 -0
- package/server/hooks.test.ts +196 -0
- package/server/hooks.ts +117 -0
- package/server/hub-db.ts +141 -0
- package/server/hub-router.ts +137 -0
- package/server/index.test.ts +538 -0
- package/server/index.ts +539 -0
- package/server/project-registry.ts +130 -0
- package/server/project-router.ts +451 -0
- package/server/proposal-manager.test.ts +410 -0
- package/server/proposal-manager.ts +285 -0
- package/server/proposal-routes.test.ts +424 -0
- package/server/queue-manager.test.ts +400 -0
- package/server/queue-manager.ts +545 -0
- package/server/setup-manager.ts +526 -0
- package/server/types.ts +360 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
function lL(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c_={exports:{}},xh={},f_={exports:{}},Se={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ac=Symbol.for("react.element"),uL=Symbol.for("react.portal"),cL=Symbol.for("react.fragment"),fL=Symbol.for("react.strict_mode"),dL=Symbol.for("react.profiler"),pL=Symbol.for("react.provider"),hL=Symbol.for("react.context"),mL=Symbol.for("react.forward_ref"),gL=Symbol.for("react.suspense"),yL=Symbol.for("react.memo"),vL=Symbol.for("react.lazy"),L1=Symbol.iterator;function xL(e){return e===null||typeof e!="object"?null:(e=L1&&e[L1]||e["@@iterator"],typeof e=="function"?e:null)}var d_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p_=Object.assign,h_={};function el(e,t,n){this.props=e,this.context=t,this.refs=h_,this.updater=n||d_}el.prototype.isReactComponent={};el.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")};el.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function m_(){}m_.prototype=el.prototype;function Nb(e,t,n){this.props=e,this.context=t,this.refs=h_,this.updater=n||d_}var $b=Nb.prototype=new m_;$b.constructor=Nb;p_($b,el.prototype);$b.isPureReactComponent=!0;var F1=Array.isArray,g_=Object.prototype.hasOwnProperty,Mb={current:null},y_={key:!0,ref:!0,__self:!0,__source:!0};function v_(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)g_.call(t,r)&&!y_.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Ac,type:e,key:o,ref:a,props:i,_owner:Mb.current}}function bL(e,t){return{$$typeof:Ac,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ib(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ac}function wL(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var z1=/\/+/g;function ig(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wL(""+e.key):t.toString(36)}function Zf(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ac:case uL:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+ig(a,0):r,F1(i)?(n="",e!=null&&(n=e.replace(z1,"$&/")+"/"),Zf(i,t,n,"",function(u){return u})):i!=null&&(Ib(i)&&(i=bL(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(z1,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",F1(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+ig(o,s);a+=Zf(o,t,n,l,i)}else if(l=xL(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+ig(o,s++),a+=Zf(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function nf(e,t,n){if(e==null)return e;var r=[],i=0;return Zf(e,r,"","",function(o){return t.call(n,o,i++)}),r}function SL(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var rn={current:null},ed={transition:null},kL={ReactCurrentDispatcher:rn,ReactCurrentBatchConfig:ed,ReactCurrentOwner:Mb};function x_(){throw Error("act(...) is not supported in production builds of React.")}Se.Children={map:nf,forEach:function(e,t,n){nf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return nf(e,function(){t++}),t},toArray:function(e){return nf(e,function(t){return t})||[]},only:function(e){if(!Ib(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Se.Component=el;Se.Fragment=cL;Se.Profiler=dL;Se.PureComponent=Nb;Se.StrictMode=fL;Se.Suspense=gL;Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kL;Se.act=x_;Se.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=p_({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Mb.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)g_.call(t,l)&&!y_.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Ac,type:e.type,key:i,ref:o,props:r,_owner:a}};Se.createContext=function(e){return e={$$typeof:hL,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pL,_context:e},e.Consumer=e};Se.createElement=v_;Se.createFactory=function(e){var t=v_.bind(null,e);return t.type=e,t};Se.createRef=function(){return{current:null}};Se.forwardRef=function(e){return{$$typeof:mL,render:e}};Se.isValidElement=Ib;Se.lazy=function(e){return{$$typeof:vL,_payload:{_status:-1,_result:e},_init:SL}};Se.memo=function(e,t){return{$$typeof:yL,type:e,compare:t===void 0?null:t}};Se.startTransition=function(e){var t=ed.transition;ed.transition={};try{e()}finally{ed.transition=t}};Se.unstable_act=x_;Se.useCallback=function(e,t){return rn.current.useCallback(e,t)};Se.useContext=function(e){return rn.current.useContext(e)};Se.useDebugValue=function(){};Se.useDeferredValue=function(e){return rn.current.useDeferredValue(e)};Se.useEffect=function(e,t){return rn.current.useEffect(e,t)};Se.useId=function(){return rn.current.useId()};Se.useImperativeHandle=function(e,t,n){return rn.current.useImperativeHandle(e,t,n)};Se.useInsertionEffect=function(e,t){return rn.current.useInsertionEffect(e,t)};Se.useLayoutEffect=function(e,t){return rn.current.useLayoutEffect(e,t)};Se.useMemo=function(e,t){return rn.current.useMemo(e,t)};Se.useReducer=function(e,t,n){return rn.current.useReducer(e,t,n)};Se.useRef=function(e){return rn.current.useRef(e)};Se.useState=function(e){return rn.current.useState(e)};Se.useSyncExternalStore=function(e,t,n){return rn.current.useSyncExternalStore(e,t,n)};Se.useTransition=function(){return rn.current.useTransition()};Se.version="18.3.1";f_.exports=Se;var k=f_.exports;const C=Ce(k),Rb=lL({__proto__:null,default:C},[k]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var OL=k,EL=Symbol.for("react.element"),PL=Symbol.for("react.fragment"),jL=Object.prototype.hasOwnProperty,AL=OL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_L={key:!0,ref:!0,__self:!0,__source:!0};function b_(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)jL.call(t,r)&&!_L.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:EL,type:e,key:o,ref:a,props:i,_owner:AL.current}}xh.Fragment=PL;xh.jsx=b_;xh.jsxs=b_;c_.exports=xh;var h=c_.exports,w_={exports:{}},Rn={},S_={exports:{}},k_={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(M,z){var j=M.length;M.push(z);e:for(;0<j;){var W=j-1>>>1,U=M[W];if(0<i(U,z))M[W]=z,M[j]=U,j=W;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var z=M[0],j=M.pop();if(j!==z){M[0]=j;e:for(var W=0,U=M.length,T=U>>>1;W<T;){var Y=2*(W+1)-1,J=M[Y],Z=Y+1,Ae=M[Z];if(0>i(J,j))Z<U&&0>i(Ae,J)?(M[W]=Ae,M[Z]=j,W=Z):(M[W]=J,M[Y]=j,W=Y);else if(Z<U&&0>i(Ae,j))M[W]=Ae,M[Z]=j,W=Z;else break e}}return z}function i(M,z){var j=M.sortIndex-z.sortIndex;return j!==0?j:M.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,c=null,d=3,p=!1,m=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(M){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=M)r(u),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(u)}}function O(M){if(g=!1,b(M),!m)if(n(l)!==null)m=!0,D(S);else{var z=n(u);z!==null&&L(O,z.startTime-M)}}function S(M,z){m=!1,g&&(g=!1,y(P),P=-1),p=!0;var j=d;try{for(b(z),c=n(l);c!==null&&(!(c.expirationTime>z)||M&&!$());){var W=c.callback;if(typeof W=="function"){c.callback=null,d=c.priorityLevel;var U=W(c.expirationTime<=z);z=e.unstable_now(),typeof U=="function"?c.callback=U:c===n(l)&&r(l),b(z)}else r(l);c=n(l)}if(c!==null)var T=!0;else{var Y=n(u);Y!==null&&L(O,Y.startTime-z),T=!1}return T}finally{c=null,d=j,p=!1}}var w=!1,E=null,P=-1,_=5,A=-1;function $(){return!(e.unstable_now()-A<_)}function N(){if(E!==null){var M=e.unstable_now();A=M;var z=!0;try{z=E(!0,M)}finally{z?R():(w=!1,E=null)}}else w=!1}var R;if(typeof x=="function")R=function(){x(N)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,I=F.port2;F.port1.onmessage=N,R=function(){I.postMessage(null)}}else R=function(){v(N,0)};function D(M){E=M,w||(w=!0,R())}function L(M,z){P=v(function(){M(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,D(S))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(M){switch(d){case 1:case 2:case 3:var z=3;break;default:z=d}var j=d;d=z;try{return M()}finally{d=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,z){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var j=d;d=M;try{return z()}finally{d=j}},e.unstable_scheduleCallback=function(M,z,j){var W=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?W+j:W):j=W,M){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=j+U,M={id:f++,callback:z,priorityLevel:M,startTime:j,expirationTime:U,sortIndex:-1},j>W?(M.sortIndex=j,t(u,M),n(l)===null&&M===n(u)&&(g?(y(P),P=-1):g=!0,L(O,j-W))):(M.sortIndex=U,t(l,M),m||p||(m=!0,D(S))),M},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(M){var z=d;return function(){var j=d;d=z;try{return M.apply(this,arguments)}finally{d=j}}}})(k_);S_.exports=k_;var CL=S_.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var TL=k,In=CL;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var O_=new Set,Su={};function ha(e,t){ms(e,t),ms(e+"Capture",t)}function ms(e,t){for(Su[e]=t,e=0;e<t.length;e++)O_.add(t[e])}var hi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zy=Object.prototype.hasOwnProperty,NL=/^[: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]*$/,B1={},W1={};function $L(e){return zy.call(W1,e)?!0:zy.call(B1,e)?!1:NL.test(e)?W1[e]=!0:(B1[e]=!0,!1)}function ML(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 IL(e,t,n,r){if(t===null||typeof t>"u"||ML(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 on(e,t,n,r,i,o,a){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=o,this.removeEmptyString=a}var Dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Dt[e]=new on(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Dt[t]=new on(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Dt[e]=new on(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Dt[e]=new on(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){Dt[e]=new on(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Dt[e]=new on(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Dt[e]=new on(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Dt[e]=new on(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Dt[e]=new on(e,5,!1,e.toLowerCase(),null,!1,!1)});var Db=/[\-:]([a-z])/g;function Lb(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(Db,Lb);Dt[t]=new on(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(Db,Lb);Dt[t]=new on(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(Db,Lb);Dt[t]=new on(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Dt[e]=new on(e,1,!1,e.toLowerCase(),null,!1,!1)});Dt.xlinkHref=new on("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Dt[e]=new on(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fb(e,t,n,r){var i=Dt.hasOwnProperty(t)?Dt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(IL(t,n,i,r)&&(n=null),r||i===null?$L(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var _i=TL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,rf=Symbol.for("react.element"),Fa=Symbol.for("react.portal"),za=Symbol.for("react.fragment"),zb=Symbol.for("react.strict_mode"),By=Symbol.for("react.profiler"),E_=Symbol.for("react.provider"),P_=Symbol.for("react.context"),Bb=Symbol.for("react.forward_ref"),Wy=Symbol.for("react.suspense"),Uy=Symbol.for("react.suspense_list"),Wb=Symbol.for("react.memo"),Vi=Symbol.for("react.lazy"),j_=Symbol.for("react.offscreen"),U1=Symbol.iterator;function _l(e){return e===null||typeof e!="object"?null:(e=U1&&e[U1]||e["@@iterator"],typeof e=="function"?e:null)}var lt=Object.assign,og;function Zl(e){if(og===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);og=t&&t[1]||""}return`
|
|
34
|
+
`+og+e}var ag=!1;function sg(e,t){if(!e||ag)return"";ag=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
|
37
|
+
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{ag=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zl(e):""}function RL(e){switch(e.tag){case 5:return Zl(e.type);case 16:return Zl("Lazy");case 13:return Zl("Suspense");case 19:return Zl("SuspenseList");case 0:case 2:case 15:return e=sg(e.type,!1),e;case 11:return e=sg(e.type.render,!1),e;case 1:return e=sg(e.type,!0),e;default:return""}}function Hy(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 za:return"Fragment";case Fa:return"Portal";case By:return"Profiler";case zb:return"StrictMode";case Wy:return"Suspense";case Uy:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case P_:return(e.displayName||"Context")+".Consumer";case E_:return(e._context.displayName||"Context")+".Provider";case Bb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wb:return t=e.displayName||null,t!==null?t:Hy(e.type)||"Memo";case Vi:t=e._payload,e=e._init;try{return Hy(e(t))}catch{}}return null}function DL(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 Hy(t);case 8:return t===zb?"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 co(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function A_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function LL(e){var t=A_(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function of(e){e._valueTracker||(e._valueTracker=LL(e))}function __(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=A_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ad(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 Vy(e,t){var n=t.checked;return lt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function H1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=co(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 C_(e,t){t=t.checked,t!=null&&Fb(e,"checked",t,!1)}function Ky(e,t){C_(e,t);var n=co(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")?qy(e,t.type,n):t.hasOwnProperty("defaultValue")&&qy(e,t.type,co(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function V1(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 qy(e,t,n){(t!=="number"||Ad(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var eu=Array.isArray;function ns(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+co(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Gy(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(q(91));return lt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function K1(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(q(92));if(eu(n)){if(1<n.length)throw Error(q(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:co(n)}}function T_(e,t){var n=co(t.value),r=co(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function q1(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function N_(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Yy(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?N_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var af,$_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(af=af||document.createElement("div"),af.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=af.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ku(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var iu={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},FL=["Webkit","ms","Moz","O"];Object.keys(iu).forEach(function(e){FL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),iu[t]=iu[e]})});function M_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||iu.hasOwnProperty(e)&&iu[e]?(""+t).trim():t+"px"}function I_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=M_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var zL=lt({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 Xy(e,t){if(t){if(zL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function Qy(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 Jy=null;function Ub(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zy=null,rs=null,is=null;function G1(e){if(e=Tc(e)){if(typeof Zy!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Oh(t),Zy(e.stateNode,e.type,t))}}function R_(e){rs?is?is.push(e):is=[e]:rs=e}function D_(){if(rs){var e=rs,t=is;if(is=rs=null,G1(e),t)for(e=0;e<t.length;e++)G1(t[e])}}function L_(e,t){return e(t)}function F_(){}var lg=!1;function z_(e,t,n){if(lg)return e(t,n);lg=!0;try{return L_(e,t,n)}finally{lg=!1,(rs!==null||is!==null)&&(F_(),D_())}}function Ou(e,t){var n=e.stateNode;if(n===null)return null;var r=Oh(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(q(231,t,typeof n));return n}var ev=!1;if(hi)try{var Cl={};Object.defineProperty(Cl,"passive",{get:function(){ev=!0}}),window.addEventListener("test",Cl,Cl),window.removeEventListener("test",Cl,Cl)}catch{ev=!1}function BL(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var ou=!1,_d=null,Cd=!1,tv=null,WL={onError:function(e){ou=!0,_d=e}};function UL(e,t,n,r,i,o,a,s,l){ou=!1,_d=null,BL.apply(WL,arguments)}function HL(e,t,n,r,i,o,a,s,l){if(UL.apply(this,arguments),ou){if(ou){var u=_d;ou=!1,_d=null}else throw Error(q(198));Cd||(Cd=!0,tv=u)}}function ma(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function B_(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Y1(e){if(ma(e)!==e)throw Error(q(188))}function VL(e){var t=e.alternate;if(!t){if(t=ma(e),t===null)throw Error(q(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Y1(i),e;if(o===r)return Y1(i),t;o=o.sibling}throw Error(q(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(q(189))}}if(n.alternate!==r)throw Error(q(190))}if(n.tag!==3)throw Error(q(188));return n.stateNode.current===n?e:t}function W_(e){return e=VL(e),e!==null?U_(e):null}function U_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=U_(e);if(t!==null)return t;e=e.sibling}return null}var H_=In.unstable_scheduleCallback,X1=In.unstable_cancelCallback,KL=In.unstable_shouldYield,qL=In.unstable_requestPaint,ft=In.unstable_now,GL=In.unstable_getCurrentPriorityLevel,Hb=In.unstable_ImmediatePriority,V_=In.unstable_UserBlockingPriority,Td=In.unstable_NormalPriority,YL=In.unstable_LowPriority,K_=In.unstable_IdlePriority,bh=null,Fr=null;function XL(e){if(Fr&&typeof Fr.onCommitFiberRoot=="function")try{Fr.onCommitFiberRoot(bh,e,void 0,(e.current.flags&128)===128)}catch{}}var yr=Math.clz32?Math.clz32:ZL,QL=Math.log,JL=Math.LN2;function ZL(e){return e>>>=0,e===0?32:31-(QL(e)/JL|0)|0}var sf=64,lf=4194304;function tu(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 Nd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=tu(s):(o&=a,o!==0&&(r=tu(o)))}else a=n&~i,a!==0?r=tu(a):o!==0&&(r=tu(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-yr(t),i=1<<n,r|=e[n],t&=~i;return r}function e3(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function t3(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-yr(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=e3(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function nv(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function q_(){var e=sf;return sf<<=1,!(sf&4194240)&&(sf=64),e}function ug(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _c(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yr(t),e[t]=n}function n3(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-yr(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Vb(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-yr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Me=0;function G_(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Y_,Kb,X_,Q_,J_,rv=!1,uf=[],to=null,no=null,ro=null,Eu=new Map,Pu=new Map,Gi=[],r3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Q1(e,t){switch(e){case"focusin":case"focusout":to=null;break;case"dragenter":case"dragleave":no=null;break;case"mouseover":case"mouseout":ro=null;break;case"pointerover":case"pointerout":Eu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pu.delete(t.pointerId)}}function Tl(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Tc(t),t!==null&&Kb(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function i3(e,t,n,r,i){switch(t){case"focusin":return to=Tl(to,e,t,n,r,i),!0;case"dragenter":return no=Tl(no,e,t,n,r,i),!0;case"mouseover":return ro=Tl(ro,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Eu.set(o,Tl(Eu.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Pu.set(o,Tl(Pu.get(o)||null,e,t,n,r,i)),!0}return!1}function Z_(e){var t=Wo(e.target);if(t!==null){var n=ma(t);if(n!==null){if(t=n.tag,t===13){if(t=B_(n),t!==null){e.blockedOn=t,J_(e.priority,function(){X_(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function td(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=iv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Jy=r,n.target.dispatchEvent(r),Jy=null}else return t=Tc(n),t!==null&&Kb(t),e.blockedOn=n,!1;t.shift()}return!0}function J1(e,t,n){td(e)&&n.delete(t)}function o3(){rv=!1,to!==null&&td(to)&&(to=null),no!==null&&td(no)&&(no=null),ro!==null&&td(ro)&&(ro=null),Eu.forEach(J1),Pu.forEach(J1)}function Nl(e,t){e.blockedOn===t&&(e.blockedOn=null,rv||(rv=!0,In.unstable_scheduleCallback(In.unstable_NormalPriority,o3)))}function ju(e){function t(i){return Nl(i,e)}if(0<uf.length){Nl(uf[0],e);for(var n=1;n<uf.length;n++){var r=uf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(to!==null&&Nl(to,e),no!==null&&Nl(no,e),ro!==null&&Nl(ro,e),Eu.forEach(t),Pu.forEach(t),n=0;n<Gi.length;n++)r=Gi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gi.length&&(n=Gi[0],n.blockedOn===null);)Z_(n),n.blockedOn===null&&Gi.shift()}var os=_i.ReactCurrentBatchConfig,$d=!0;function a3(e,t,n,r){var i=Me,o=os.transition;os.transition=null;try{Me=1,qb(e,t,n,r)}finally{Me=i,os.transition=o}}function s3(e,t,n,r){var i=Me,o=os.transition;os.transition=null;try{Me=4,qb(e,t,n,r)}finally{Me=i,os.transition=o}}function qb(e,t,n,r){if($d){var i=iv(e,t,n,r);if(i===null)xg(e,t,r,Md,n),Q1(e,r);else if(i3(i,e,t,n,r))r.stopPropagation();else if(Q1(e,r),t&4&&-1<r3.indexOf(e)){for(;i!==null;){var o=Tc(i);if(o!==null&&Y_(o),o=iv(e,t,n,r),o===null&&xg(e,t,r,Md,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else xg(e,t,r,null,n)}}var Md=null;function iv(e,t,n,r){if(Md=null,e=Ub(r),e=Wo(e),e!==null)if(t=ma(e),t===null)e=null;else if(n=t.tag,n===13){if(e=B_(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Md=e,null}function eC(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(GL()){case Hb:return 1;case V_:return 4;case Td:case YL:return 16;case K_:return 536870912;default:return 16}default:return 16}}var Ji=null,Gb=null,nd=null;function tC(){if(nd)return nd;var e,t=Gb,n=t.length,r,i="value"in Ji?Ji.value:Ji.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return nd=i.slice(e,1<r?1-r:void 0)}function rd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function cf(){return!0}function Z1(){return!1}function Dn(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?cf:Z1,this.isPropagationStopped=Z1,this}return lt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=cf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=cf)},persist:function(){},isPersistent:cf}),t}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yb=Dn(tl),Cc=lt({},tl,{view:0,detail:0}),l3=Dn(Cc),cg,fg,$l,wh=lt({},Cc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xb,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==$l&&($l&&e.type==="mousemove"?(cg=e.screenX-$l.screenX,fg=e.screenY-$l.screenY):fg=cg=0,$l=e),cg)},movementY:function(e){return"movementY"in e?e.movementY:fg}}),eS=Dn(wh),u3=lt({},wh,{dataTransfer:0}),c3=Dn(u3),f3=lt({},Cc,{relatedTarget:0}),dg=Dn(f3),d3=lt({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),p3=Dn(d3),h3=lt({},tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),m3=Dn(h3),g3=lt({},tl,{data:0}),tS=Dn(g3),y3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},v3={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},x3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function b3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=x3[e])?!!t[e]:!1}function Xb(){return b3}var w3=lt({},Cc,{key:function(e){if(e.key){var t=y3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?v3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xb,charCode:function(e){return e.type==="keypress"?rd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),S3=Dn(w3),k3=lt({},wh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nS=Dn(k3),O3=lt({},Cc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xb}),E3=Dn(O3),P3=lt({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),j3=Dn(P3),A3=lt({},wh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),_3=Dn(A3),C3=[9,13,27,32],Qb=hi&&"CompositionEvent"in window,au=null;hi&&"documentMode"in document&&(au=document.documentMode);var T3=hi&&"TextEvent"in window&&!au,nC=hi&&(!Qb||au&&8<au&&11>=au),rS=" ",iS=!1;function rC(e,t){switch(e){case"keyup":return C3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ba=!1;function N3(e,t){switch(e){case"compositionend":return iC(t);case"keypress":return t.which!==32?null:(iS=!0,rS);case"textInput":return e=t.data,e===rS&&iS?null:e;default:return null}}function $3(e,t){if(Ba)return e==="compositionend"||!Qb&&rC(e,t)?(e=tC(),nd=Gb=Ji=null,Ba=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nC&&t.locale!=="ko"?null:t.data;default:return null}}var M3={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function oS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!M3[e.type]:t==="textarea"}function oC(e,t,n,r){R_(r),t=Id(t,"onChange"),0<t.length&&(n=new Yb("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var su=null,Au=null;function I3(e){gC(e,0)}function Sh(e){var t=Ha(e);if(__(t))return e}function R3(e,t){if(e==="change")return t}var aC=!1;if(hi){var pg;if(hi){var hg="oninput"in document;if(!hg){var aS=document.createElement("div");aS.setAttribute("oninput","return;"),hg=typeof aS.oninput=="function"}pg=hg}else pg=!1;aC=pg&&(!document.documentMode||9<document.documentMode)}function sS(){su&&(su.detachEvent("onpropertychange",sC),Au=su=null)}function sC(e){if(e.propertyName==="value"&&Sh(Au)){var t=[];oC(t,Au,e,Ub(e)),z_(I3,t)}}function D3(e,t,n){e==="focusin"?(sS(),su=t,Au=n,su.attachEvent("onpropertychange",sC)):e==="focusout"&&sS()}function L3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sh(Au)}function F3(e,t){if(e==="click")return Sh(t)}function z3(e,t){if(e==="input"||e==="change")return Sh(t)}function B3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wr=typeof Object.is=="function"?Object.is:B3;function _u(e,t){if(wr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!zy.call(t,i)||!wr(e[i],t[i]))return!1}return!0}function lS(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uS(e,t){var n=lS(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lS(n)}}function lC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uC(){for(var e=window,t=Ad();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ad(e.document)}return t}function Jb(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 W3(e){var t=uC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lC(n.ownerDocument.documentElement,n)){if(r!==null&&Jb(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,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=uS(n,o);var a=uS(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var U3=hi&&"documentMode"in document&&11>=document.documentMode,Wa=null,ov=null,lu=null,av=!1;function cS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;av||Wa==null||Wa!==Ad(r)||(r=Wa,"selectionStart"in r&&Jb(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}),lu&&_u(lu,r)||(lu=r,r=Id(ov,"onSelect"),0<r.length&&(t=new Yb("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Wa)))}function ff(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ua={animationend:ff("Animation","AnimationEnd"),animationiteration:ff("Animation","AnimationIteration"),animationstart:ff("Animation","AnimationStart"),transitionend:ff("Transition","TransitionEnd")},mg={},cC={};hi&&(cC=document.createElement("div").style,"AnimationEvent"in window||(delete Ua.animationend.animation,delete Ua.animationiteration.animation,delete Ua.animationstart.animation),"TransitionEvent"in window||delete Ua.transitionend.transition);function kh(e){if(mg[e])return mg[e];if(!Ua[e])return e;var t=Ua[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in cC)return mg[e]=t[n];return e}var fC=kh("animationend"),dC=kh("animationiteration"),pC=kh("animationstart"),hC=kh("transitionend"),mC=new Map,fS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function go(e,t){mC.set(e,t),ha(t,[e])}for(var gg=0;gg<fS.length;gg++){var yg=fS[gg],H3=yg.toLowerCase(),V3=yg[0].toUpperCase()+yg.slice(1);go(H3,"on"+V3)}go(fC,"onAnimationEnd");go(dC,"onAnimationIteration");go(pC,"onAnimationStart");go("dblclick","onDoubleClick");go("focusin","onFocus");go("focusout","onBlur");go(hC,"onTransitionEnd");ms("onMouseEnter",["mouseout","mouseover"]);ms("onMouseLeave",["mouseout","mouseover"]);ms("onPointerEnter",["pointerout","pointerover"]);ms("onPointerLeave",["pointerout","pointerover"]);ha("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ha("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ha("onBeforeInput",["compositionend","keypress","textInput","paste"]);ha("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ha("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ha("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),K3=new Set("cancel close invalid load scroll toggle".split(" ").concat(nu));function dS(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,HL(r,t,void 0,e),e.currentTarget=null}function gC(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;dS(i,s,u),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;dS(i,s,u),o=l}}}if(Cd)throw e=tv,Cd=!1,tv=null,e}function Ye(e,t){var n=t[fv];n===void 0&&(n=t[fv]=new Set);var r=e+"__bubble";n.has(r)||(yC(t,e,2,!1),n.add(r))}function vg(e,t,n){var r=0;t&&(r|=4),yC(n,e,r,t)}var df="_reactListening"+Math.random().toString(36).slice(2);function Cu(e){if(!e[df]){e[df]=!0,O_.forEach(function(n){n!=="selectionchange"&&(K3.has(n)||vg(n,!1,e),vg(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[df]||(t[df]=!0,vg("selectionchange",!1,t))}}function yC(e,t,n,r){switch(eC(t)){case 1:var i=a3;break;case 4:i=s3;break;default:i=qb}n=i.bind(null,t,n,e),i=void 0,!ev||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function xg(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Wo(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}z_(function(){var u=o,f=Ub(n),c=[];e:{var d=mC.get(e);if(d!==void 0){var p=Yb,m=e;switch(e){case"keypress":if(rd(n)===0)break e;case"keydown":case"keyup":p=S3;break;case"focusin":m="focus",p=dg;break;case"focusout":m="blur",p=dg;break;case"beforeblur":case"afterblur":p=dg;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=eS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=c3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=E3;break;case fC:case dC:case pC:p=p3;break;case hC:p=j3;break;case"scroll":p=l3;break;case"wheel":p=_3;break;case"copy":case"cut":case"paste":p=m3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=nS}var g=(t&4)!==0,v=!g&&e==="scroll",y=g?d!==null?d+"Capture":null:d;g=[];for(var x=u,b;x!==null;){b=x;var O=b.stateNode;if(b.tag===5&&O!==null&&(b=O,y!==null&&(O=Ou(x,y),O!=null&&g.push(Tu(x,O,b)))),v)break;x=x.return}0<g.length&&(d=new p(d,m,null,n,f),c.push({event:d,listeners:g}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==Jy&&(m=n.relatedTarget||n.fromElement)&&(Wo(m)||m[mi]))break e;if((p||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?Wo(m):null,m!==null&&(v=ma(m),m!==v||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(g=eS,O="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(g=nS,O="onPointerLeave",y="onPointerEnter",x="pointer"),v=p==null?d:Ha(p),b=m==null?d:Ha(m),d=new g(O,x+"leave",p,n,f),d.target=v,d.relatedTarget=b,O=null,Wo(f)===u&&(g=new g(y,x+"enter",m,n,f),g.target=b,g.relatedTarget=v,O=g),v=O,p&&m)t:{for(g=p,y=m,x=0,b=g;b;b=Pa(b))x++;for(b=0,O=y;O;O=Pa(O))b++;for(;0<x-b;)g=Pa(g),x--;for(;0<b-x;)y=Pa(y),b--;for(;x--;){if(g===y||y!==null&&g===y.alternate)break t;g=Pa(g),y=Pa(y)}g=null}else g=null;p!==null&&pS(c,d,p,g,!1),m!==null&&v!==null&&pS(c,v,m,g,!0)}}e:{if(d=u?Ha(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var S=R3;else if(oS(d))if(aC)S=z3;else{S=L3;var w=D3}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(S=F3);if(S&&(S=S(e,u))){oC(c,S,n,f);break e}w&&w(e,d,u),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&qy(d,"number",d.value)}switch(w=u?Ha(u):window,e){case"focusin":(oS(w)||w.contentEditable==="true")&&(Wa=w,ov=u,lu=null);break;case"focusout":lu=ov=Wa=null;break;case"mousedown":av=!0;break;case"contextmenu":case"mouseup":case"dragend":av=!1,cS(c,n,f);break;case"selectionchange":if(U3)break;case"keydown":case"keyup":cS(c,n,f)}var E;if(Qb)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Ba?rC(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(nC&&n.locale!=="ko"&&(Ba||P!=="onCompositionStart"?P==="onCompositionEnd"&&Ba&&(E=tC()):(Ji=f,Gb="value"in Ji?Ji.value:Ji.textContent,Ba=!0)),w=Id(u,P),0<w.length&&(P=new tS(P,e,null,n,f),c.push({event:P,listeners:w}),E?P.data=E:(E=iC(n),E!==null&&(P.data=E)))),(E=T3?N3(e,n):$3(e,n))&&(u=Id(u,"onBeforeInput"),0<u.length&&(f=new tS("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=E))}gC(c,t)})}function Tu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Id(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ou(e,n),o!=null&&r.unshift(Tu(e,o,i)),o=Ou(e,t),o!=null&&r.push(Tu(e,o,i))),e=e.return}return r}function Pa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pS(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,i?(l=Ou(n,o),l!=null&&a.unshift(Tu(n,l,s))):i||(l=Ou(n,o),l!=null&&a.push(Tu(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var q3=/\r\n?/g,G3=/\u0000|\uFFFD/g;function hS(e){return(typeof e=="string"?e:""+e).replace(q3,`
|
|
38
|
+
`).replace(G3,"")}function pf(e,t,n){if(t=hS(t),hS(e)!==t&&n)throw Error(q(425))}function Rd(){}var sv=null,lv=null;function uv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cv=typeof setTimeout=="function"?setTimeout:void 0,Y3=typeof clearTimeout=="function"?clearTimeout:void 0,mS=typeof Promise=="function"?Promise:void 0,X3=typeof queueMicrotask=="function"?queueMicrotask:typeof mS<"u"?function(e){return mS.resolve(null).then(e).catch(Q3)}:cv;function Q3(e){setTimeout(function(){throw e})}function bg(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ju(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ju(t)}function io(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function gS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var nl=Math.random().toString(36).slice(2),Ir="__reactFiber$"+nl,Nu="__reactProps$"+nl,mi="__reactContainer$"+nl,fv="__reactEvents$"+nl,J3="__reactListeners$"+nl,Z3="__reactHandles$"+nl;function Wo(e){var t=e[Ir];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mi]||n[Ir]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gS(e);e!==null;){if(n=e[Ir])return n;e=gS(e)}return t}e=n,n=e.parentNode}return null}function Tc(e){return e=e[Ir]||e[mi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ha(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(q(33))}function Oh(e){return e[Nu]||null}var dv=[],Va=-1;function yo(e){return{current:e}}function Ze(e){0>Va||(e.current=dv[Va],dv[Va]=null,Va--)}function Ke(e,t){Va++,dv[Va]=e.current,e.current=t}var fo={},qt=yo(fo),mn=yo(!1),ea=fo;function gs(e,t){var n=e.type.contextTypes;if(!n)return fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function gn(e){return e=e.childContextTypes,e!=null}function Dd(){Ze(mn),Ze(qt)}function yS(e,t,n){if(qt.current!==fo)throw Error(q(168));Ke(qt,t),Ke(mn,n)}function vC(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(q(108,DL(e)||"Unknown",i));return lt({},n,r)}function Ld(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fo,ea=qt.current,Ke(qt,e),Ke(mn,mn.current),!0}function vS(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=vC(e,t,ea),r.__reactInternalMemoizedMergedChildContext=e,Ze(mn),Ze(qt),Ke(qt,e)):Ze(mn),Ke(mn,n)}var ni=null,Eh=!1,wg=!1;function xC(e){ni===null?ni=[e]:ni.push(e)}function e4(e){Eh=!0,xC(e)}function vo(){if(!wg&&ni!==null){wg=!0;var e=0,t=Me;try{var n=ni;for(Me=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ni=null,Eh=!1}catch(i){throw ni!==null&&(ni=ni.slice(e+1)),H_(Hb,vo),i}finally{Me=t,wg=!1}}return null}var Ka=[],qa=0,Fd=null,zd=0,Hn=[],Vn=0,ta=null,ri=1,ii="";function Mo(e,t){Ka[qa++]=zd,Ka[qa++]=Fd,Fd=e,zd=t}function bC(e,t,n){Hn[Vn++]=ri,Hn[Vn++]=ii,Hn[Vn++]=ta,ta=e;var r=ri;e=ii;var i=32-yr(r)-1;r&=~(1<<i),n+=1;var o=32-yr(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ri=1<<32-yr(t)+i|n<<i|r,ii=o+e}else ri=1<<o|n<<i|r,ii=e}function Zb(e){e.return!==null&&(Mo(e,1),bC(e,1,0))}function e0(e){for(;e===Fd;)Fd=Ka[--qa],Ka[qa]=null,zd=Ka[--qa],Ka[qa]=null;for(;e===ta;)ta=Hn[--Vn],Hn[Vn]=null,ii=Hn[--Vn],Hn[Vn]=null,ri=Hn[--Vn],Hn[Vn]=null}var Tn=null,Cn=null,tt=!1,mr=null;function wC(e,t){var n=Gn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function xS(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tn=e,Cn=io(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tn=e,Cn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ta!==null?{id:ri,overflow:ii}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Gn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Tn=e,Cn=null,!0):!1;default:return!1}}function pv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function hv(e){if(tt){var t=Cn;if(t){var n=t;if(!xS(e,t)){if(pv(e))throw Error(q(418));t=io(n.nextSibling);var r=Tn;t&&xS(e,t)?wC(r,n):(e.flags=e.flags&-4097|2,tt=!1,Tn=e)}}else{if(pv(e))throw Error(q(418));e.flags=e.flags&-4097|2,tt=!1,Tn=e}}}function bS(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Tn=e}function hf(e){if(e!==Tn)return!1;if(!tt)return bS(e),tt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!uv(e.type,e.memoizedProps)),t&&(t=Cn)){if(pv(e))throw SC(),Error(q(418));for(;t;)wC(e,t),t=io(t.nextSibling)}if(bS(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Cn=io(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Cn=null}}else Cn=Tn?io(e.stateNode.nextSibling):null;return!0}function SC(){for(var e=Cn;e;)e=io(e.nextSibling)}function ys(){Cn=Tn=null,tt=!1}function t0(e){mr===null?mr=[e]:mr.push(e)}var t4=_i.ReactCurrentBatchConfig;function Ml(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(q(309));var r=n.stateNode}if(!r)throw Error(q(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(q(284));if(!n._owner)throw Error(q(290,e))}return e}function mf(e,t){throw e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wS(e){var t=e._init;return t(e._payload)}function kC(e){function t(y,x){if(e){var b=y.deletions;b===null?(y.deletions=[x],y.flags|=16):b.push(x)}}function n(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function r(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function i(y,x){return y=lo(y,x),y.index=0,y.sibling=null,y}function o(y,x,b){return y.index=b,e?(b=y.alternate,b!==null?(b=b.index,b<x?(y.flags|=2,x):b):(y.flags|=2,x)):(y.flags|=1048576,x)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,x,b,O){return x===null||x.tag!==6?(x=Ag(b,y.mode,O),x.return=y,x):(x=i(x,b),x.return=y,x)}function l(y,x,b,O){var S=b.type;return S===za?f(y,x,b.props.children,O,b.key):x!==null&&(x.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Vi&&wS(S)===x.type)?(O=i(x,b.props),O.ref=Ml(y,x,b),O.return=y,O):(O=cd(b.type,b.key,b.props,null,y.mode,O),O.ref=Ml(y,x,b),O.return=y,O)}function u(y,x,b,O){return x===null||x.tag!==4||x.stateNode.containerInfo!==b.containerInfo||x.stateNode.implementation!==b.implementation?(x=_g(b,y.mode,O),x.return=y,x):(x=i(x,b.children||[]),x.return=y,x)}function f(y,x,b,O,S){return x===null||x.tag!==7?(x=Qo(b,y.mode,O,S),x.return=y,x):(x=i(x,b),x.return=y,x)}function c(y,x,b){if(typeof x=="string"&&x!==""||typeof x=="number")return x=Ag(""+x,y.mode,b),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case rf:return b=cd(x.type,x.key,x.props,null,y.mode,b),b.ref=Ml(y,null,x),b.return=y,b;case Fa:return x=_g(x,y.mode,b),x.return=y,x;case Vi:var O=x._init;return c(y,O(x._payload),b)}if(eu(x)||_l(x))return x=Qo(x,y.mode,b,null),x.return=y,x;mf(y,x)}return null}function d(y,x,b,O){var S=x!==null?x.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return S!==null?null:s(y,x,""+b,O);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case rf:return b.key===S?l(y,x,b,O):null;case Fa:return b.key===S?u(y,x,b,O):null;case Vi:return S=b._init,d(y,x,S(b._payload),O)}if(eu(b)||_l(b))return S!==null?null:f(y,x,b,O,null);mf(y,b)}return null}function p(y,x,b,O,S){if(typeof O=="string"&&O!==""||typeof O=="number")return y=y.get(b)||null,s(x,y,""+O,S);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case rf:return y=y.get(O.key===null?b:O.key)||null,l(x,y,O,S);case Fa:return y=y.get(O.key===null?b:O.key)||null,u(x,y,O,S);case Vi:var w=O._init;return p(y,x,b,w(O._payload),S)}if(eu(O)||_l(O))return y=y.get(b)||null,f(x,y,O,S,null);mf(x,O)}return null}function m(y,x,b,O){for(var S=null,w=null,E=x,P=x=0,_=null;E!==null&&P<b.length;P++){E.index>P?(_=E,E=null):_=E.sibling;var A=d(y,E,b[P],O);if(A===null){E===null&&(E=_);break}e&&E&&A.alternate===null&&t(y,E),x=o(A,x,P),w===null?S=A:w.sibling=A,w=A,E=_}if(P===b.length)return n(y,E),tt&&Mo(y,P),S;if(E===null){for(;P<b.length;P++)E=c(y,b[P],O),E!==null&&(x=o(E,x,P),w===null?S=E:w.sibling=E,w=E);return tt&&Mo(y,P),S}for(E=r(y,E);P<b.length;P++)_=p(E,y,P,b[P],O),_!==null&&(e&&_.alternate!==null&&E.delete(_.key===null?P:_.key),x=o(_,x,P),w===null?S=_:w.sibling=_,w=_);return e&&E.forEach(function($){return t(y,$)}),tt&&Mo(y,P),S}function g(y,x,b,O){var S=_l(b);if(typeof S!="function")throw Error(q(150));if(b=S.call(b),b==null)throw Error(q(151));for(var w=S=null,E=x,P=x=0,_=null,A=b.next();E!==null&&!A.done;P++,A=b.next()){E.index>P?(_=E,E=null):_=E.sibling;var $=d(y,E,A.value,O);if($===null){E===null&&(E=_);break}e&&E&&$.alternate===null&&t(y,E),x=o($,x,P),w===null?S=$:w.sibling=$,w=$,E=_}if(A.done)return n(y,E),tt&&Mo(y,P),S;if(E===null){for(;!A.done;P++,A=b.next())A=c(y,A.value,O),A!==null&&(x=o(A,x,P),w===null?S=A:w.sibling=A,w=A);return tt&&Mo(y,P),S}for(E=r(y,E);!A.done;P++,A=b.next())A=p(E,y,P,A.value,O),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?P:A.key),x=o(A,x,P),w===null?S=A:w.sibling=A,w=A);return e&&E.forEach(function(N){return t(y,N)}),tt&&Mo(y,P),S}function v(y,x,b,O){if(typeof b=="object"&&b!==null&&b.type===za&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case rf:e:{for(var S=b.key,w=x;w!==null;){if(w.key===S){if(S=b.type,S===za){if(w.tag===7){n(y,w.sibling),x=i(w,b.props.children),x.return=y,y=x;break e}}else if(w.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Vi&&wS(S)===w.type){n(y,w.sibling),x=i(w,b.props),x.ref=Ml(y,w,b),x.return=y,y=x;break e}n(y,w);break}else t(y,w);w=w.sibling}b.type===za?(x=Qo(b.props.children,y.mode,O,b.key),x.return=y,y=x):(O=cd(b.type,b.key,b.props,null,y.mode,O),O.ref=Ml(y,x,b),O.return=y,y=O)}return a(y);case Fa:e:{for(w=b.key;x!==null;){if(x.key===w)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){n(y,x.sibling),x=i(x,b.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=_g(b,y.mode,O),x.return=y,y=x}return a(y);case Vi:return w=b._init,v(y,x,w(b._payload),O)}if(eu(b))return m(y,x,b,O);if(_l(b))return g(y,x,b,O);mf(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(n(y,x.sibling),x=i(x,b),x.return=y,y=x):(n(y,x),x=Ag(b,y.mode,O),x.return=y,y=x),a(y)):n(y,x)}return v}var vs=kC(!0),OC=kC(!1),Bd=yo(null),Wd=null,Ga=null,n0=null;function r0(){n0=Ga=Wd=null}function i0(e){var t=Bd.current;Ze(Bd),e._currentValue=t}function mv(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function as(e,t){Wd=e,n0=Ga=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pn=!0),e.firstContext=null)}function Jn(e){var t=e._currentValue;if(n0!==e)if(e={context:e,memoizedValue:t,next:null},Ga===null){if(Wd===null)throw Error(q(308));Ga=e,Wd.dependencies={lanes:0,firstContext:e}}else Ga=Ga.next=e;return t}var Uo=null;function o0(e){Uo===null?Uo=[e]:Uo.push(e)}function EC(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,o0(t)):(n.next=i.next,i.next=n),t.interleaved=n,gi(e,r)}function gi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ki=!1;function a0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function PC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function li(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,_e&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,gi(e,n)}return i=r.interleaved,i===null?(t.next=t,o0(r)):(t.next=i.next,i.next=t),r.interleaved=t,gi(e,n)}function id(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vb(e,n)}}function SS(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ud(e,t,n,r){var i=e.updateQueue;Ki=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(o!==null){var c=i.baseState;a=0,f=u=l=null,s=o;do{var d=s.lane,p=s.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(d=t,p=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){c=m.call(p,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,d=typeof m=="function"?m.call(p,c,d):m,d==null)break e;c=lt({},c,d);break e;case 2:Ki=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=p,l=c):f=f.next=p,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ra|=a,e.lanes=a,e.memoizedState=c}}function kS(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(q(191,i));i.call(r)}}}var Nc={},zr=yo(Nc),$u=yo(Nc),Mu=yo(Nc);function Ho(e){if(e===Nc)throw Error(q(174));return e}function s0(e,t){switch(Ke(Mu,t),Ke($u,e),Ke(zr,Nc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yy(t,e)}Ze(zr),Ke(zr,t)}function xs(){Ze(zr),Ze($u),Ze(Mu)}function jC(e){Ho(Mu.current);var t=Ho(zr.current),n=Yy(t,e.type);t!==n&&(Ke($u,e),Ke(zr,n))}function l0(e){$u.current===e&&(Ze(zr),Ze($u))}var at=yo(0);function Hd(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 Sg=[];function u0(){for(var e=0;e<Sg.length;e++)Sg[e]._workInProgressVersionPrimary=null;Sg.length=0}var od=_i.ReactCurrentDispatcher,kg=_i.ReactCurrentBatchConfig,na=0,st=null,bt=null,Pt=null,Vd=!1,uu=!1,Iu=0,n4=0;function zt(){throw Error(q(321))}function c0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wr(e[n],t[n]))return!1;return!0}function f0(e,t,n,r,i,o){if(na=o,st=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,od.current=e===null||e.memoizedState===null?a4:s4,e=n(r,i),uu){o=0;do{if(uu=!1,Iu=0,25<=o)throw Error(q(301));o+=1,Pt=bt=null,t.updateQueue=null,od.current=l4,e=n(r,i)}while(uu)}if(od.current=Kd,t=bt!==null&&bt.next!==null,na=0,Pt=bt=st=null,Vd=!1,t)throw Error(q(300));return e}function d0(){var e=Iu!==0;return Iu=0,e}function $r(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?st.memoizedState=Pt=e:Pt=Pt.next=e,Pt}function Zn(){if(bt===null){var e=st.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=Pt===null?st.memoizedState:Pt.next;if(t!==null)Pt=t,bt=e;else{if(e===null)throw Error(q(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Pt===null?st.memoizedState=Pt=e:Pt=Pt.next=e}return Pt}function Ru(e,t){return typeof t=="function"?t(e):t}function Og(e){var t=Zn(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var r=bt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var f=u.lane;if((na&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=c,a=r):l=l.next=c,st.lanes|=f,ra|=f}u=u.next}while(u!==null&&u!==o);l===null?a=r:l.next=s,wr(r,t.memoizedState)||(pn=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,st.lanes|=o,ra|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Eg(e){var t=Zn(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);wr(o,t.memoizedState)||(pn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function AC(){}function _C(e,t){var n=st,r=Zn(),i=t(),o=!wr(r.memoizedState,i);if(o&&(r.memoizedState=i,pn=!0),r=r.queue,p0(NC.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Pt!==null&&Pt.memoizedState.tag&1){if(n.flags|=2048,Du(9,TC.bind(null,n,r,i,t),void 0,null),Ct===null)throw Error(q(349));na&30||CC(n,t,i)}return i}function CC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function TC(e,t,n,r){t.value=n,t.getSnapshot=r,$C(t)&&MC(e)}function NC(e,t,n){return n(function(){$C(t)&&MC(e)})}function $C(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wr(e,n)}catch{return!0}}function MC(e){var t=gi(e,1);t!==null&&vr(t,e,1,-1)}function OS(e){var t=$r();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ru,lastRenderedState:e},t.queue=e,e=e.dispatch=o4.bind(null,st,e),[t.memoizedState,e]}function Du(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function IC(){return Zn().memoizedState}function ad(e,t,n,r){var i=$r();st.flags|=e,i.memoizedState=Du(1|t,n,void 0,r===void 0?null:r)}function Ph(e,t,n,r){var i=Zn();r=r===void 0?null:r;var o=void 0;if(bt!==null){var a=bt.memoizedState;if(o=a.destroy,r!==null&&c0(r,a.deps)){i.memoizedState=Du(t,n,o,r);return}}st.flags|=e,i.memoizedState=Du(1|t,n,o,r)}function ES(e,t){return ad(8390656,8,e,t)}function p0(e,t){return Ph(2048,8,e,t)}function RC(e,t){return Ph(4,2,e,t)}function DC(e,t){return Ph(4,4,e,t)}function LC(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function FC(e,t,n){return n=n!=null?n.concat([e]):null,Ph(4,4,LC.bind(null,t,e),n)}function h0(){}function zC(e,t){var n=Zn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&c0(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function BC(e,t){var n=Zn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&c0(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function WC(e,t,n){return na&21?(wr(n,t)||(n=q_(),st.lanes|=n,ra|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pn=!0),e.memoizedState=n)}function r4(e,t){var n=Me;Me=n!==0&&4>n?n:4,e(!0);var r=kg.transition;kg.transition={};try{e(!1),t()}finally{Me=n,kg.transition=r}}function UC(){return Zn().memoizedState}function i4(e,t,n){var r=so(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},HC(e))VC(t,n);else if(n=EC(e,t,n,r),n!==null){var i=nn();vr(n,e,r,i),KC(n,t,r)}}function o4(e,t,n){var r=so(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(HC(e))VC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,wr(s,a)){var l=t.interleaved;l===null?(i.next=i,o0(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=EC(e,t,i,r),n!==null&&(i=nn(),vr(n,e,r,i),KC(n,t,r))}}function HC(e){var t=e.alternate;return e===st||t!==null&&t===st}function VC(e,t){uu=Vd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function KC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vb(e,n)}}var Kd={readContext:Jn,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},a4={readContext:Jn,useCallback:function(e,t){return $r().memoizedState=[e,t===void 0?null:t],e},useContext:Jn,useEffect:ES,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ad(4194308,4,LC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ad(4194308,4,e,t)},useInsertionEffect:function(e,t){return ad(4,2,e,t)},useMemo:function(e,t){var n=$r();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$r();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=i4.bind(null,st,e),[r.memoizedState,e]},useRef:function(e){var t=$r();return e={current:e},t.memoizedState=e},useState:OS,useDebugValue:h0,useDeferredValue:function(e){return $r().memoizedState=e},useTransition:function(){var e=OS(!1),t=e[0];return e=r4.bind(null,e[1]),$r().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=st,i=$r();if(tt){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),Ct===null)throw Error(q(349));na&30||CC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ES(NC.bind(null,r,o,e),[e]),r.flags|=2048,Du(9,TC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=$r(),t=Ct.identifierPrefix;if(tt){var n=ii,r=ri;n=(r&~(1<<32-yr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Iu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=n4++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},s4={readContext:Jn,useCallback:zC,useContext:Jn,useEffect:p0,useImperativeHandle:FC,useInsertionEffect:RC,useLayoutEffect:DC,useMemo:BC,useReducer:Og,useRef:IC,useState:function(){return Og(Ru)},useDebugValue:h0,useDeferredValue:function(e){var t=Zn();return WC(t,bt.memoizedState,e)},useTransition:function(){var e=Og(Ru)[0],t=Zn().memoizedState;return[e,t]},useMutableSource:AC,useSyncExternalStore:_C,useId:UC,unstable_isNewReconciler:!1},l4={readContext:Jn,useCallback:zC,useContext:Jn,useEffect:p0,useImperativeHandle:FC,useInsertionEffect:RC,useLayoutEffect:DC,useMemo:BC,useReducer:Eg,useRef:IC,useState:function(){return Eg(Ru)},useDebugValue:h0,useDeferredValue:function(e){var t=Zn();return bt===null?t.memoizedState=e:WC(t,bt.memoizedState,e)},useTransition:function(){var e=Eg(Ru)[0],t=Zn().memoizedState;return[e,t]},useMutableSource:AC,useSyncExternalStore:_C,useId:UC,unstable_isNewReconciler:!1};function fr(e,t){if(e&&e.defaultProps){t=lt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function gv(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:lt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var jh={isMounted:function(e){return(e=e._reactInternals)?ma(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nn(),i=so(e),o=li(r,i);o.payload=t,n!=null&&(o.callback=n),t=oo(e,o,i),t!==null&&(vr(t,e,i,r),id(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nn(),i=so(e),o=li(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=oo(e,o,i),t!==null&&(vr(t,e,i,r),id(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nn(),r=so(e),i=li(n,r);i.tag=2,t!=null&&(i.callback=t),t=oo(e,i,r),t!==null&&(vr(t,e,r,n),id(t,e,r))}};function PS(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!_u(n,r)||!_u(i,o):!0}function qC(e,t,n){var r=!1,i=fo,o=t.contextType;return typeof o=="object"&&o!==null?o=Jn(o):(i=gn(t)?ea:qt.current,r=t.contextTypes,o=(r=r!=null)?gs(e,i):fo),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=jh,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function jS(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&jh.enqueueReplaceState(t,t.state,null)}function yv(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},a0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Jn(o):(o=gn(t)?ea:qt.current,i.context=gs(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(gv(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&jh.enqueueReplaceState(i,i.state,null),Ud(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function bs(e,t){try{var n="",r=t;do n+=RL(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Pg(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vv(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var u4=typeof WeakMap=="function"?WeakMap:Map;function GC(e,t,n){n=li(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gd||(Gd=!0,Av=r),vv(e,t)},n}function YC(e,t,n){n=li(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){vv(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){vv(e,t),typeof r!="function"&&(ao===null?ao=new Set([this]):ao.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function AS(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new u4;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=k4.bind(null,e,t,n),t.then(e,e))}function _S(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function CS(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=li(-1,1),t.tag=2,oo(n,t,1))),n.lanes|=1),e)}var c4=_i.ReactCurrentOwner,pn=!1;function Xt(e,t,n,r){t.child=e===null?OC(t,null,n,r):vs(t,e.child,n,r)}function TS(e,t,n,r,i){n=n.render;var o=t.ref;return as(t,i),r=f0(e,t,n,r,o,i),n=d0(),e!==null&&!pn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,yi(e,t,i)):(tt&&n&&Zb(t),t.flags|=1,Xt(e,t,r,i),t.child)}function NS(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!S0(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,XC(e,t,o,r,i)):(e=cd(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:_u,n(a,r)&&e.ref===t.ref)return yi(e,t,i)}return t.flags|=1,e=lo(o,r),e.ref=t.ref,e.return=t,t.child=e}function XC(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(_u(o,r)&&e.ref===t.ref)if(pn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(pn=!0);else return t.lanes=e.lanes,yi(e,t,i)}return xv(e,t,n,r,i)}function QC(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ke(Xa,Pn),Pn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ke(Xa,Pn),Pn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ke(Xa,Pn),Pn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ke(Xa,Pn),Pn|=r;return Xt(e,t,i,n),t.child}function JC(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xv(e,t,n,r,i){var o=gn(n)?ea:qt.current;return o=gs(t,o),as(t,i),n=f0(e,t,n,r,o,i),r=d0(),e!==null&&!pn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,yi(e,t,i)):(tt&&r&&Zb(t),t.flags|=1,Xt(e,t,n,i),t.child)}function $S(e,t,n,r,i){if(gn(n)){var o=!0;Ld(t)}else o=!1;if(as(t,i),t.stateNode===null)sd(e,t),qC(t,n,r),yv(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Jn(u):(u=gn(n)?ea:qt.current,u=gs(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&jS(t,a,r,u),Ki=!1;var d=t.memoizedState;a.state=d,Ud(t,r,a,i),l=t.memoizedState,s!==r||d!==l||mn.current||Ki?(typeof f=="function"&&(gv(t,n,f,r),l=t.memoizedState),(s=Ki||PS(t,n,s,r,d,l,u))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,PC(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:fr(t.type,s),a.props=u,c=t.pendingProps,d=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Jn(l):(l=gn(n)?ea:qt.current,l=gs(t,l));var p=n.getDerivedStateFromProps;(f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==c||d!==l)&&jS(t,a,r,l),Ki=!1,d=t.memoizedState,a.state=d,Ud(t,r,a,i);var m=t.memoizedState;s!==c||d!==m||mn.current||Ki?(typeof p=="function"&&(gv(t,n,p,r),m=t.memoizedState),(u=Ki||PS(t,n,u,r,d,m,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return bv(e,t,n,r,o,i)}function bv(e,t,n,r,i,o){JC(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&vS(t,n,!1),yi(e,t,o);r=t.stateNode,c4.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=vs(t,e.child,null,o),t.child=vs(t,null,s,o)):Xt(e,t,s,o),t.memoizedState=r.state,i&&vS(t,n,!0),t.child}function ZC(e){var t=e.stateNode;t.pendingContext?yS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yS(e,t.context,!1),s0(e,t.containerInfo)}function MS(e,t,n,r,i){return ys(),t0(i),t.flags|=256,Xt(e,t,n,r),t.child}var wv={dehydrated:null,treeContext:null,retryLane:0};function Sv(e){return{baseLanes:e,cachePool:null,transitions:null}}function eT(e,t,n){var r=t.pendingProps,i=at.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ke(at,i&1),e===null)return hv(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Ch(a,r,0,null),e=Qo(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Sv(n),t.memoizedState=wv,e):m0(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return f4(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=lo(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=lo(s,o):(o=Qo(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Sv(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=wv,r}return o=e.child,e=o.sibling,r=lo(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function m0(e,t){return t=Ch({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gf(e,t,n,r){return r!==null&&t0(r),vs(t,e.child,null,n),e=m0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function f4(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Pg(Error(q(422))),gf(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ch({mode:"visible",children:r.children},i,0,null),o=Qo(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&vs(t,e.child,null,a),t.child.memoizedState=Sv(a),t.memoizedState=wv,o);if(!(t.mode&1))return gf(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(q(419)),r=Pg(o,r,void 0),gf(e,t,a,r)}if(s=(a&e.childLanes)!==0,pn||s){if(r=Ct,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,gi(e,i),vr(r,e,i,-1))}return w0(),r=Pg(Error(q(421))),gf(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=O4.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Cn=io(i.nextSibling),Tn=t,tt=!0,mr=null,e!==null&&(Hn[Vn++]=ri,Hn[Vn++]=ii,Hn[Vn++]=ta,ri=e.id,ii=e.overflow,ta=t),t=m0(t,r.children),t.flags|=4096,t)}function IS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),mv(e.return,t,n)}function jg(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function tT(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Xt(e,t,r.children,n),r=at.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&IS(e,n,t);else if(e.tag===19)IS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ke(at,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Hd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),jg(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Hd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}jg(t,!0,n,null,o);break;case"together":jg(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function yi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ra|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,n=lo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function d4(e,t,n){switch(t.tag){case 3:ZC(t),ys();break;case 5:jC(t);break;case 1:gn(t.type)&&Ld(t);break;case 4:s0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ke(Bd,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ke(at,at.current&1),t.flags|=128,null):n&t.child.childLanes?eT(e,t,n):(Ke(at,at.current&1),e=yi(e,t,n),e!==null?e.sibling:null);Ke(at,at.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tT(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ke(at,at.current),r)break;return null;case 22:case 23:return t.lanes=0,QC(e,t,n)}return yi(e,t,n)}var nT,kv,rT,iT;nT=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};kv=function(){};rT=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ho(zr.current);var o=null;switch(n){case"input":i=Vy(e,i),r=Vy(e,r),o=[];break;case"select":i=lt({},i,{value:void 0}),r=lt({},r,{value:void 0}),o=[];break;case"textarea":i=Gy(e,i),r=Gy(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Rd)}Xy(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Su.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Su.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ye("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};iT=function(e,t,n,r){n!==r&&(t.flags|=4)};function Il(e,t){if(!tt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Bt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function p4(e,t,n){var r=t.pendingProps;switch(e0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(t),null;case 1:return gn(t.type)&&Dd(),Bt(t),null;case 3:return r=t.stateNode,xs(),Ze(mn),Ze(qt),u0(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(hf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mr!==null&&(Tv(mr),mr=null))),kv(e,t),Bt(t),null;case 5:l0(t);var i=Ho(Mu.current);if(n=t.type,e!==null&&t.stateNode!=null)rT(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(q(166));return Bt(t),null}if(e=Ho(zr.current),hf(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ir]=t,r[Nu]=o,e=(t.mode&1)!==0,n){case"dialog":Ye("cancel",r),Ye("close",r);break;case"iframe":case"object":case"embed":Ye("load",r);break;case"video":case"audio":for(i=0;i<nu.length;i++)Ye(nu[i],r);break;case"source":Ye("error",r);break;case"img":case"image":case"link":Ye("error",r),Ye("load",r);break;case"details":Ye("toggle",r);break;case"input":H1(r,o),Ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ye("invalid",r);break;case"textarea":K1(r,o),Ye("invalid",r)}Xy(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&pf(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&pf(r.textContent,s,e),i=["children",""+s]):Su.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Ye("scroll",r)}switch(n){case"input":of(r),V1(r,o,!0);break;case"textarea":of(r),q1(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Rd)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=N_(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ir]=t,e[Nu]=r,nT(e,t,!1,!1),t.stateNode=e;e:{switch(a=Qy(n,r),n){case"dialog":Ye("cancel",e),Ye("close",e),i=r;break;case"iframe":case"object":case"embed":Ye("load",e),i=r;break;case"video":case"audio":for(i=0;i<nu.length;i++)Ye(nu[i],e);i=r;break;case"source":Ye("error",e),i=r;break;case"img":case"image":case"link":Ye("error",e),Ye("load",e),i=r;break;case"details":Ye("toggle",e),i=r;break;case"input":H1(e,r),i=Vy(e,r),Ye("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=lt({},r,{value:void 0}),Ye("invalid",e);break;case"textarea":K1(e,r),i=Gy(e,r),Ye("invalid",e);break;default:i=r}Xy(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?I_(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&$_(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ku(e,l):typeof l=="number"&&ku(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Su.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ye("scroll",e):l!=null&&Fb(e,o,l,a))}switch(n){case"input":of(e),V1(e,r,!1);break;case"textarea":of(e),q1(e);break;case"option":r.value!=null&&e.setAttribute("value",""+co(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?ns(e,!!r.multiple,o,!1):r.defaultValue!=null&&ns(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Rd)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Bt(t),null;case 6:if(e&&t.stateNode!=null)iT(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(q(166));if(n=Ho(Mu.current),Ho(zr.current),hf(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ir]=t,(o=r.nodeValue!==n)&&(e=Tn,e!==null))switch(e.tag){case 3:pf(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&pf(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ir]=t,t.stateNode=r}return Bt(t),null;case 13:if(Ze(at),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(tt&&Cn!==null&&t.mode&1&&!(t.flags&128))SC(),ys(),t.flags|=98560,o=!1;else if(o=hf(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(q(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(q(317));o[Ir]=t}else ys(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Bt(t),o=!1}else mr!==null&&(Tv(mr),mr=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||at.current&1?wt===0&&(wt=3):w0())),t.updateQueue!==null&&(t.flags|=4),Bt(t),null);case 4:return xs(),kv(e,t),e===null&&Cu(t.stateNode.containerInfo),Bt(t),null;case 10:return i0(t.type._context),Bt(t),null;case 17:return gn(t.type)&&Dd(),Bt(t),null;case 19:if(Ze(at),o=t.memoizedState,o===null)return Bt(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Il(o,!1);else{if(wt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Hd(e),a!==null){for(t.flags|=128,Il(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ke(at,at.current&1|2),t.child}e=e.sibling}o.tail!==null&&ft()>ws&&(t.flags|=128,r=!0,Il(o,!1),t.lanes=4194304)}else{if(!r)if(e=Hd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Il(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!tt)return Bt(t),null}else 2*ft()-o.renderingStartTime>ws&&n!==1073741824&&(t.flags|=128,r=!0,Il(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ft(),t.sibling=null,n=at.current,Ke(at,r?n&1|2:n&1),t):(Bt(t),null);case 22:case 23:return b0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pn&1073741824&&(Bt(t),t.subtreeFlags&6&&(t.flags|=8192)):Bt(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function h4(e,t){switch(e0(t),t.tag){case 1:return gn(t.type)&&Dd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xs(),Ze(mn),Ze(qt),u0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return l0(t),null;case 13:if(Ze(at),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));ys()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ze(at),null;case 4:return xs(),null;case 10:return i0(t.type._context),null;case 22:case 23:return b0(),null;case 24:return null;default:return null}}var yf=!1,Ht=!1,m4=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Ya(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ut(e,t,r)}else n.current=null}function Ov(e,t,n){try{n()}catch(r){ut(e,t,r)}}var RS=!1;function g4(e,t){if(sv=$d,e=uC(),Jb(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==n||i!==0&&c.nodeType!==3||(s=a+i),c!==o||r!==0&&c.nodeType!==3||(l=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===n&&++u===i&&(s=a),d===o&&++f===r&&(l=a),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(lv={focusedElem:e,selectionRange:n},$d=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:fr(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(O){ut(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return m=RS,RS=!1,m}function cu(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 o=i.destroy;i.destroy=void 0,o!==void 0&&Ov(t,n,o)}i=i.next}while(i!==r)}}function Ah(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 Ev(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 oT(e){var t=e.alternate;t!==null&&(e.alternate=null,oT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ir],delete t[Nu],delete t[fv],delete t[J3],delete t[Z3])),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 aT(e){return e.tag===5||e.tag===3||e.tag===4}function DS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||aT(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 Pv(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=Rd));else if(r!==4&&(e=e.child,e!==null))for(Pv(e,t,n),e=e.sibling;e!==null;)Pv(e,t,n),e=e.sibling}function jv(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(jv(e,t,n),e=e.sibling;e!==null;)jv(e,t,n),e=e.sibling}var It=null,dr=!1;function Fi(e,t,n){for(n=n.child;n!==null;)sT(e,t,n),n=n.sibling}function sT(e,t,n){if(Fr&&typeof Fr.onCommitFiberUnmount=="function")try{Fr.onCommitFiberUnmount(bh,n)}catch{}switch(n.tag){case 5:Ht||Ya(n,t);case 6:var r=It,i=dr;It=null,Fi(e,t,n),It=r,dr=i,It!==null&&(dr?(e=It,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):It.removeChild(n.stateNode));break;case 18:It!==null&&(dr?(e=It,n=n.stateNode,e.nodeType===8?bg(e.parentNode,n):e.nodeType===1&&bg(e,n),ju(e)):bg(It,n.stateNode));break;case 4:r=It,i=dr,It=n.stateNode.containerInfo,dr=!0,Fi(e,t,n),It=r,dr=i;break;case 0:case 11:case 14:case 15:if(!Ht&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Ov(n,t,a),i=i.next}while(i!==r)}Fi(e,t,n);break;case 1:if(!Ht&&(Ya(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ut(n,t,s)}Fi(e,t,n);break;case 21:Fi(e,t,n);break;case 22:n.mode&1?(Ht=(r=Ht)||n.memoizedState!==null,Fi(e,t,n),Ht=r):Fi(e,t,n);break;default:Fi(e,t,n)}}function LS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new m4),t.forEach(function(r){var i=E4.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ur(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:It=s.stateNode,dr=!1;break e;case 3:It=s.stateNode.containerInfo,dr=!0;break e;case 4:It=s.stateNode.containerInfo,dr=!0;break e}s=s.return}if(It===null)throw Error(q(160));sT(o,a,i),It=null,dr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ut(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lT(t,e),t=t.sibling}function lT(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ur(t,e),Tr(e),r&4){try{cu(3,e,e.return),Ah(3,e)}catch(g){ut(e,e.return,g)}try{cu(5,e,e.return)}catch(g){ut(e,e.return,g)}}break;case 1:ur(t,e),Tr(e),r&512&&n!==null&&Ya(n,n.return);break;case 5:if(ur(t,e),Tr(e),r&512&&n!==null&&Ya(n,n.return),e.flags&32){var i=e.stateNode;try{ku(i,"")}catch(g){ut(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&C_(i,o),Qy(s,a);var u=Qy(s,o);for(a=0;a<l.length;a+=2){var f=l[a],c=l[a+1];f==="style"?I_(i,c):f==="dangerouslySetInnerHTML"?$_(i,c):f==="children"?ku(i,c):Fb(i,f,c,u)}switch(s){case"input":Ky(i,o);break;case"textarea":T_(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?ns(i,!!o.multiple,p,!1):d!==!!o.multiple&&(o.defaultValue!=null?ns(i,!!o.multiple,o.defaultValue,!0):ns(i,!!o.multiple,o.multiple?[]:"",!1))}i[Nu]=o}catch(g){ut(e,e.return,g)}}break;case 6:if(ur(t,e),Tr(e),r&4){if(e.stateNode===null)throw Error(q(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){ut(e,e.return,g)}}break;case 3:if(ur(t,e),Tr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ju(t.containerInfo)}catch(g){ut(e,e.return,g)}break;case 4:ur(t,e),Tr(e);break;case 13:ur(t,e),Tr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(v0=ft())),r&4&&LS(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ht=(u=Ht)||f,ur(t,e),Ht=u):ur(t,e),Tr(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(ee=e,f=e.child;f!==null;){for(c=ee=f;ee!==null;){switch(d=ee,p=d.child,d.tag){case 0:case 11:case 14:case 15:cu(4,d,d.return);break;case 1:Ya(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){ut(r,n,g)}}break;case 5:Ya(d,d.return);break;case 22:if(d.memoizedState!==null){zS(c);continue}}p!==null?(p.return=d,ee=p):zS(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=c.stateNode,l=c.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=M_("display",a))}catch(g){ut(e,e.return,g)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(g){ut(e,e.return,g)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:ur(t,e),Tr(e),r&4&&LS(e);break;case 21:break;default:ur(t,e),Tr(e)}}function Tr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(aT(n)){var r=n;break e}n=n.return}throw Error(q(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ku(i,""),r.flags&=-33);var o=DS(e);jv(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=DS(e);Pv(e,s,a);break;default:throw Error(q(161))}}catch(l){ut(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function y4(e,t,n){ee=e,uT(e)}function uT(e,t,n){for(var r=(e.mode&1)!==0;ee!==null;){var i=ee,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||yf;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Ht;s=yf;var u=Ht;if(yf=a,(Ht=l)&&!u)for(ee=i;ee!==null;)a=ee,l=a.child,a.tag===22&&a.memoizedState!==null?BS(i):l!==null?(l.return=a,ee=l):BS(i);for(;o!==null;)ee=o,uT(o),o=o.sibling;ee=i,yf=s,Ht=u}FS(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ee=o):FS(e)}}function FS(e){for(;ee!==null;){var t=ee;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ht||Ah(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ht)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:fr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&kS(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}kS(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&ju(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(q(163))}Ht||t.flags&512&&Ev(t)}catch(d){ut(t,t.return,d)}}if(t===e){ee=null;break}if(n=t.sibling,n!==null){n.return=t.return,ee=n;break}ee=t.return}}function zS(e){for(;ee!==null;){var t=ee;if(t===e){ee=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ee=n;break}ee=t.return}}function BS(e){for(;ee!==null;){var t=ee;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ah(4,t)}catch(l){ut(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ut(t,i,l)}}var o=t.return;try{Ev(t)}catch(l){ut(t,o,l)}break;case 5:var a=t.return;try{Ev(t)}catch(l){ut(t,a,l)}}}catch(l){ut(t,t.return,l)}if(t===e){ee=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ee=s;break}ee=t.return}}var v4=Math.ceil,qd=_i.ReactCurrentDispatcher,g0=_i.ReactCurrentOwner,Xn=_i.ReactCurrentBatchConfig,_e=0,Ct=null,mt=null,Rt=0,Pn=0,Xa=yo(0),wt=0,Lu=null,ra=0,_h=0,y0=0,fu=null,fn=null,v0=0,ws=1/0,ei=null,Gd=!1,Av=null,ao=null,vf=!1,Zi=null,Yd=0,du=0,_v=null,ld=-1,ud=0;function nn(){return _e&6?ft():ld!==-1?ld:ld=ft()}function so(e){return e.mode&1?_e&2&&Rt!==0?Rt&-Rt:t4.transition!==null?(ud===0&&(ud=q_()),ud):(e=Me,e!==0||(e=window.event,e=e===void 0?16:eC(e.type)),e):1}function vr(e,t,n,r){if(50<du)throw du=0,_v=null,Error(q(185));_c(e,n,r),(!(_e&2)||e!==Ct)&&(e===Ct&&(!(_e&2)&&(_h|=n),wt===4&&Yi(e,Rt)),yn(e,r),n===1&&_e===0&&!(t.mode&1)&&(ws=ft()+500,Eh&&vo()))}function yn(e,t){var n=e.callbackNode;t3(e,t);var r=Nd(e,e===Ct?Rt:0);if(r===0)n!==null&&X1(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&X1(n),t===1)e.tag===0?e4(WS.bind(null,e)):xC(WS.bind(null,e)),X3(function(){!(_e&6)&&vo()}),n=null;else{switch(G_(r)){case 1:n=Hb;break;case 4:n=V_;break;case 16:n=Td;break;case 536870912:n=K_;break;default:n=Td}n=yT(n,cT.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cT(e,t){if(ld=-1,ud=0,_e&6)throw Error(q(327));var n=e.callbackNode;if(ss()&&e.callbackNode!==n)return null;var r=Nd(e,e===Ct?Rt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Xd(e,r);else{t=r;var i=_e;_e|=2;var o=dT();(Ct!==e||Rt!==t)&&(ei=null,ws=ft()+500,Xo(e,t));do try{w4();break}catch(s){fT(e,s)}while(!0);r0(),qd.current=o,_e=i,mt!==null?t=0:(Ct=null,Rt=0,t=wt)}if(t!==0){if(t===2&&(i=nv(e),i!==0&&(r=i,t=Cv(e,i))),t===1)throw n=Lu,Xo(e,0),Yi(e,r),yn(e,ft()),n;if(t===6)Yi(e,r);else{if(i=e.current.alternate,!(r&30)&&!x4(i)&&(t=Xd(e,r),t===2&&(o=nv(e),o!==0&&(r=o,t=Cv(e,o))),t===1))throw n=Lu,Xo(e,0),Yi(e,r),yn(e,ft()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(q(345));case 2:Io(e,fn,ei);break;case 3:if(Yi(e,r),(r&130023424)===r&&(t=v0+500-ft(),10<t)){if(Nd(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){nn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=cv(Io.bind(null,e,fn,ei),t);break}Io(e,fn,ei);break;case 4:if(Yi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-yr(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=ft()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*v4(r/1960))-r,10<r){e.timeoutHandle=cv(Io.bind(null,e,fn,ei),r);break}Io(e,fn,ei);break;case 5:Io(e,fn,ei);break;default:throw Error(q(329))}}}return yn(e,ft()),e.callbackNode===n?cT.bind(null,e):null}function Cv(e,t){var n=fu;return e.current.memoizedState.isDehydrated&&(Xo(e,t).flags|=256),e=Xd(e,t),e!==2&&(t=fn,fn=n,t!==null&&Tv(t)),e}function Tv(e){fn===null?fn=e:fn.push.apply(fn,e)}function x4(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!wr(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yi(e,t){for(t&=~y0,t&=~_h,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-yr(t),r=1<<n;e[n]=-1,t&=~r}}function WS(e){if(_e&6)throw Error(q(327));ss();var t=Nd(e,0);if(!(t&1))return yn(e,ft()),null;var n=Xd(e,t);if(e.tag!==0&&n===2){var r=nv(e);r!==0&&(t=r,n=Cv(e,r))}if(n===1)throw n=Lu,Xo(e,0),Yi(e,t),yn(e,ft()),n;if(n===6)throw Error(q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Io(e,fn,ei),yn(e,ft()),null}function x0(e,t){var n=_e;_e|=1;try{return e(t)}finally{_e=n,_e===0&&(ws=ft()+500,Eh&&vo())}}function ia(e){Zi!==null&&Zi.tag===0&&!(_e&6)&&ss();var t=_e;_e|=1;var n=Xn.transition,r=Me;try{if(Xn.transition=null,Me=1,e)return e()}finally{Me=r,Xn.transition=n,_e=t,!(_e&6)&&vo()}}function b0(){Pn=Xa.current,Ze(Xa)}function Xo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Y3(n)),mt!==null)for(n=mt.return;n!==null;){var r=n;switch(e0(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Dd();break;case 3:xs(),Ze(mn),Ze(qt),u0();break;case 5:l0(r);break;case 4:xs();break;case 13:Ze(at);break;case 19:Ze(at);break;case 10:i0(r.type._context);break;case 22:case 23:b0()}n=n.return}if(Ct=e,mt=e=lo(e.current,null),Rt=Pn=t,wt=0,Lu=null,y0=_h=ra=0,fn=fu=null,Uo!==null){for(t=0;t<Uo.length;t++)if(n=Uo[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Uo=null}return e}function fT(e,t){do{var n=mt;try{if(r0(),od.current=Kd,Vd){for(var r=st.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Vd=!1}if(na=0,Pt=bt=st=null,uu=!1,Iu=0,g0.current=null,n===null||n.return===null){wt=1,Lu=t,mt=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Rt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=_S(a);if(p!==null){p.flags&=-257,CS(p,a,s,o,t),p.mode&1&&AS(o,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var g=new Set;g.add(l),t.updateQueue=g}else m.add(l);break e}else{if(!(t&1)){AS(o,u,t),w0();break e}l=Error(q(426))}}else if(tt&&s.mode&1){var v=_S(a);if(v!==null){!(v.flags&65536)&&(v.flags|=256),CS(v,a,s,o,t),t0(bs(l,s));break e}}o=l=bs(l,s),wt!==4&&(wt=2),fu===null?fu=[o]:fu.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=GC(o,l,t);SS(o,y);break e;case 1:s=l;var x=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ao===null||!ao.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var O=YC(o,s,t);SS(o,O);break e}}o=o.return}while(o!==null)}hT(n)}catch(S){t=S,mt===n&&n!==null&&(mt=n=n.return);continue}break}while(!0)}function dT(){var e=qd.current;return qd.current=Kd,e===null?Kd:e}function w0(){(wt===0||wt===3||wt===2)&&(wt=4),Ct===null||!(ra&268435455)&&!(_h&268435455)||Yi(Ct,Rt)}function Xd(e,t){var n=_e;_e|=2;var r=dT();(Ct!==e||Rt!==t)&&(ei=null,Xo(e,t));do try{b4();break}catch(i){fT(e,i)}while(!0);if(r0(),_e=n,qd.current=r,mt!==null)throw Error(q(261));return Ct=null,Rt=0,wt}function b4(){for(;mt!==null;)pT(mt)}function w4(){for(;mt!==null&&!KL();)pT(mt)}function pT(e){var t=gT(e.alternate,e,Pn);e.memoizedProps=e.pendingProps,t===null?hT(e):mt=t,g0.current=null}function hT(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=h4(n,t),n!==null){n.flags&=32767,mt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{wt=6,mt=null;return}}else if(n=p4(n,t,Pn),n!==null){mt=n;return}if(t=t.sibling,t!==null){mt=t;return}mt=t=e}while(t!==null);wt===0&&(wt=5)}function Io(e,t,n){var r=Me,i=Xn.transition;try{Xn.transition=null,Me=1,S4(e,t,n,r)}finally{Xn.transition=i,Me=r}return null}function S4(e,t,n,r){do ss();while(Zi!==null);if(_e&6)throw Error(q(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(q(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(n3(e,o),e===Ct&&(mt=Ct=null,Rt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||vf||(vf=!0,yT(Td,function(){return ss(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Xn.transition,Xn.transition=null;var a=Me;Me=1;var s=_e;_e|=4,g0.current=null,g4(e,n),lT(n,e),W3(lv),$d=!!sv,lv=sv=null,e.current=n,y4(n),qL(),_e=s,Me=a,Xn.transition=o}else e.current=n;if(vf&&(vf=!1,Zi=e,Yd=i),o=e.pendingLanes,o===0&&(ao=null),XL(n.stateNode),yn(e,ft()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Gd)throw Gd=!1,e=Av,Av=null,e;return Yd&1&&e.tag!==0&&ss(),o=e.pendingLanes,o&1?e===_v?du++:(du=0,_v=e):du=0,vo(),null}function ss(){if(Zi!==null){var e=G_(Yd),t=Xn.transition,n=Me;try{if(Xn.transition=null,Me=16>e?16:e,Zi===null)var r=!1;else{if(e=Zi,Zi=null,Yd=0,_e&6)throw Error(q(331));var i=_e;for(_e|=4,ee=e.current;ee!==null;){var o=ee,a=o.child;if(ee.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(ee=u;ee!==null;){var f=ee;switch(f.tag){case 0:case 11:case 15:cu(8,f,o)}var c=f.child;if(c!==null)c.return=f,ee=c;else for(;ee!==null;){f=ee;var d=f.sibling,p=f.return;if(oT(f),f===u){ee=null;break}if(d!==null){d.return=p,ee=d;break}ee=p}}}var m=o.alternate;if(m!==null){var g=m.child;if(g!==null){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(g!==null)}}ee=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,ee=a;else e:for(;ee!==null;){if(o=ee,o.flags&2048)switch(o.tag){case 0:case 11:case 15:cu(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,ee=y;break e}ee=o.return}}var x=e.current;for(ee=x;ee!==null;){a=ee;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,ee=b;else e:for(a=x;ee!==null;){if(s=ee,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Ah(9,s)}}catch(S){ut(s,s.return,S)}if(s===a){ee=null;break e}var O=s.sibling;if(O!==null){O.return=s.return,ee=O;break e}ee=s.return}}if(_e=i,vo(),Fr&&typeof Fr.onPostCommitFiberRoot=="function")try{Fr.onPostCommitFiberRoot(bh,e)}catch{}r=!0}return r}finally{Me=n,Xn.transition=t}}return!1}function US(e,t,n){t=bs(n,t),t=GC(e,t,1),e=oo(e,t,1),t=nn(),e!==null&&(_c(e,1,t),yn(e,t))}function ut(e,t,n){if(e.tag===3)US(e,e,n);else for(;t!==null;){if(t.tag===3){US(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ao===null||!ao.has(r))){e=bs(n,e),e=YC(t,e,1),t=oo(t,e,1),e=nn(),t!==null&&(_c(t,1,e),yn(t,e));break}}t=t.return}}function k4(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=nn(),e.pingedLanes|=e.suspendedLanes&n,Ct===e&&(Rt&n)===n&&(wt===4||wt===3&&(Rt&130023424)===Rt&&500>ft()-v0?Xo(e,0):y0|=n),yn(e,t)}function mT(e,t){t===0&&(e.mode&1?(t=lf,lf<<=1,!(lf&130023424)&&(lf=4194304)):t=1);var n=nn();e=gi(e,t),e!==null&&(_c(e,t,n),yn(e,n))}function O4(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mT(e,n)}function E4(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(q(314))}r!==null&&r.delete(t),mT(e,n)}var gT;gT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mn.current)pn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pn=!1,d4(e,t,n);pn=!!(e.flags&131072)}else pn=!1,tt&&t.flags&1048576&&bC(t,zd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sd(e,t),e=t.pendingProps;var i=gs(t,qt.current);as(t,n),i=f0(null,t,r,e,i,n);var o=d0();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,gn(r)?(o=!0,Ld(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,a0(t),i.updater=jh,t.stateNode=i,i._reactInternals=t,yv(t,r,e,n),t=bv(null,t,r,!0,o,n)):(t.tag=0,tt&&o&&Zb(t),Xt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sd(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=j4(r),e=fr(r,e),i){case 0:t=xv(null,t,r,e,n);break e;case 1:t=$S(null,t,r,e,n);break e;case 11:t=TS(null,t,r,e,n);break e;case 14:t=NS(null,t,r,fr(r.type,e),n);break e}throw Error(q(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fr(r,i),xv(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fr(r,i),$S(e,t,r,i,n);case 3:e:{if(ZC(t),e===null)throw Error(q(387));r=t.pendingProps,o=t.memoizedState,i=o.element,PC(e,t),Ud(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=bs(Error(q(423)),t),t=MS(e,t,r,n,i);break e}else if(r!==i){i=bs(Error(q(424)),t),t=MS(e,t,r,n,i);break e}else for(Cn=io(t.stateNode.containerInfo.firstChild),Tn=t,tt=!0,mr=null,n=OC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ys(),r===i){t=yi(e,t,n);break e}Xt(e,t,r,n)}t=t.child}return t;case 5:return jC(t),e===null&&hv(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,uv(r,i)?a=null:o!==null&&uv(r,o)&&(t.flags|=32),JC(e,t),Xt(e,t,a,n),t.child;case 6:return e===null&&hv(t),null;case 13:return eT(e,t,n);case 4:return s0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vs(t,null,r,n):Xt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fr(r,i),TS(e,t,r,i,n);case 7:return Xt(e,t,t.pendingProps,n),t.child;case 8:return Xt(e,t,t.pendingProps.children,n),t.child;case 12:return Xt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Ke(Bd,r._currentValue),r._currentValue=a,o!==null)if(wr(o.value,a)){if(o.children===i.children&&!mn.current){t=yi(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=li(-1,n&-n),l.tag=2;var u=o.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}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),mv(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(q(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),mv(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Xt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,as(t,n),i=Jn(i),r=r(i),t.flags|=1,Xt(e,t,r,n),t.child;case 14:return r=t.type,i=fr(r,t.pendingProps),i=fr(r.type,i),NS(e,t,r,i,n);case 15:return XC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:fr(r,i),sd(e,t),t.tag=1,gn(r)?(e=!0,Ld(t)):e=!1,as(t,n),qC(t,r,i),yv(t,r,i,n),bv(null,t,r,!0,e,n);case 19:return tT(e,t,n);case 22:return QC(e,t,n)}throw Error(q(156,t.tag))};function yT(e,t){return H_(e,t)}function P4(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 Gn(e,t,n,r){return new P4(e,t,n,r)}function S0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function j4(e){if(typeof e=="function")return S0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bb)return 11;if(e===Wb)return 14}return 2}function lo(e,t){var n=e.alternate;return n===null?(n=Gn(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 cd(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")S0(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case za:return Qo(n.children,i,o,t);case zb:a=8,i|=8;break;case By:return e=Gn(12,n,t,i|2),e.elementType=By,e.lanes=o,e;case Wy:return e=Gn(13,n,t,i),e.elementType=Wy,e.lanes=o,e;case Uy:return e=Gn(19,n,t,i),e.elementType=Uy,e.lanes=o,e;case j_:return Ch(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E_:a=10;break e;case P_:a=9;break e;case Bb:a=11;break e;case Wb:a=14;break e;case Vi:a=16,r=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=Gn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Qo(e,t,n,r){return e=Gn(7,e,r,t),e.lanes=n,e}function Ch(e,t,n,r){return e=Gn(22,e,r,t),e.elementType=j_,e.lanes=n,e.stateNode={isHidden:!1},e}function Ag(e,t,n){return e=Gn(6,e,null,t),e.lanes=n,e}function _g(e,t,n){return t=Gn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function A4(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=ug(0),this.expirationTimes=ug(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ug(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function k0(e,t,n,r,i,o,a,s,l){return e=new A4(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Gn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},a0(o),e}function _4(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function vT(e){if(!e)return fo;e=e._reactInternals;e:{if(ma(e)!==e||e.tag!==1)throw Error(q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(q(171))}if(e.tag===1){var n=e.type;if(gn(n))return vC(e,n,t)}return t}function xT(e,t,n,r,i,o,a,s,l){return e=k0(n,r,!0,e,i,o,a,s,l),e.context=vT(null),n=e.current,r=nn(),i=so(n),o=li(r,i),o.callback=t??null,oo(n,o,i),e.current.lanes=i,_c(e,i,r),yn(e,r),e}function Th(e,t,n,r){var i=t.current,o=nn(),a=so(i);return n=vT(n),t.context===null?t.context=n:t.pendingContext=n,t=li(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=oo(i,t,a),e!==null&&(vr(e,i,a,o),id(e,i,a)),a}function Qd(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function HS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function O0(e,t){HS(e,t),(e=e.alternate)&&HS(e,t)}function C4(){return null}var bT=typeof reportError=="function"?reportError:function(e){console.error(e)};function E0(e){this._internalRoot=e}Nh.prototype.render=E0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));Th(e,t,null,null)};Nh.prototype.unmount=E0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ia(function(){Th(null,e,null,null)}),t[mi]=null}};function Nh(e){this._internalRoot=e}Nh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Q_();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gi.length&&t!==0&&t<Gi[n].priority;n++);Gi.splice(n,0,e),n===0&&Z_(e)}};function P0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function $h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function VS(){}function T4(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Qd(a);o.call(u)}}var a=xT(t,r,e,0,null,!1,!1,"",VS);return e._reactRootContainer=a,e[mi]=a.current,Cu(e.nodeType===8?e.parentNode:e),ia(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=Qd(l);s.call(u)}}var l=k0(e,0,!1,null,null,!1,!1,"",VS);return e._reactRootContainer=l,e[mi]=l.current,Cu(e.nodeType===8?e.parentNode:e),ia(function(){Th(t,l,n,r)}),l}function Mh(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=Qd(a);s.call(l)}}Th(t,a,e,i)}else a=T4(n,t,e,i,r);return Qd(a)}Y_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tu(t.pendingLanes);n!==0&&(Vb(t,n|1),yn(t,ft()),!(_e&6)&&(ws=ft()+500,vo()))}break;case 13:ia(function(){var r=gi(e,1);if(r!==null){var i=nn();vr(r,e,1,i)}}),O0(e,1)}};Kb=function(e){if(e.tag===13){var t=gi(e,134217728);if(t!==null){var n=nn();vr(t,e,134217728,n)}O0(e,134217728)}};X_=function(e){if(e.tag===13){var t=so(e),n=gi(e,t);if(n!==null){var r=nn();vr(n,e,t,r)}O0(e,t)}};Q_=function(){return Me};J_=function(e,t){var n=Me;try{return Me=e,t()}finally{Me=n}};Zy=function(e,t,n){switch(t){case"input":if(Ky(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Oh(r);if(!i)throw Error(q(90));__(r),Ky(r,i)}}}break;case"textarea":T_(e,n);break;case"select":t=n.value,t!=null&&ns(e,!!n.multiple,t,!1)}};L_=x0;F_=ia;var N4={usingClientEntryPoint:!1,Events:[Tc,Ha,Oh,R_,D_,x0]},Rl={findFiberByHostInstance:Wo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},$4={bundleType:Rl.bundleType,version:Rl.version,rendererPackageName:Rl.rendererPackageName,rendererConfig:Rl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_i.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=W_(e),e===null?null:e.stateNode},findFiberByHostInstance:Rl.findFiberByHostInstance||C4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xf.isDisabled&&xf.supportsFiber)try{bh=xf.inject($4),Fr=xf}catch{}}Rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N4;Rn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!P0(t))throw Error(q(200));return _4(e,t,null,n)};Rn.createRoot=function(e,t){if(!P0(e))throw Error(q(299));var n=!1,r="",i=bT;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=k0(e,1,!1,null,null,n,!1,r,i),e[mi]=t.current,Cu(e.nodeType===8?e.parentNode:e),new E0(t)};Rn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=W_(t),e=e===null?null:e.stateNode,e};Rn.flushSync=function(e){return ia(e)};Rn.hydrate=function(e,t,n){if(!$h(t))throw Error(q(200));return Mh(null,e,t,!0,n)};Rn.hydrateRoot=function(e,t,n){if(!P0(e))throw Error(q(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=bT;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=xT(t,null,e,1,n??null,i,!1,o,a),e[mi]=t.current,Cu(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Nh(t)};Rn.render=function(e,t,n){if(!$h(t))throw Error(q(200));return Mh(null,e,t,!1,n)};Rn.unmountComponentAtNode=function(e){if(!$h(e))throw Error(q(40));return e._reactRootContainer?(ia(function(){Mh(null,null,e,!1,function(){e._reactRootContainer=null,e[mi]=null})}),!0):!1};Rn.unstable_batchedUpdates=x0;Rn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!$h(n))throw Error(q(200));if(e==null||e._reactInternals===void 0)throw Error(q(38));return Mh(e,t,n,!1,r)};Rn.version="18.3.1-next-f1338f8080-20240426";function wT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wT)}catch(e){console.error(e)}}wT(),w_.exports=Rn;var Ih=w_.exports;const ST=Ce(Ih);var kT,KS=Ih;kT=KS.createRoot,KS.hydrateRoot;/**
|
|
41
|
+
* react-router v7.13.1
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/var qS="popstate";function GS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function M4(e={}){function t(r,i){var u;let o=(u=i.state)==null?void 0:u.masked,{pathname:a,search:s,hash:l}=o||r.location;return Nv("",{pathname:a,search:s,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default",o?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,i){return typeof i=="string"?i:Fu(i)}return R4(t,n,null,e)}function it(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Sr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function I4(){return Math.random().toString(36).substring(2,10)}function YS(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Nv(e,t,n=null,r,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?rl(t):t,state:n,key:t&&t.key||r||I4(),unstable_mask:i}}function Fu({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function rl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function R4(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s="POP",l=null,u=f();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function f(){return(a.state||{idx:null}).idx}function c(){s="POP";let v=f(),y=v==null?null:v-u;u=v,l&&l({action:s,location:g.location,delta:y})}function d(v,y){s="PUSH";let x=GS(v)?v:Nv(g.location,v,y);u=f()+1;let b=YS(x,u),O=g.createHref(x.unstable_mask||x);try{a.pushState(b,"",O)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(O)}o&&l&&l({action:s,location:g.location,delta:1})}function p(v,y){s="REPLACE";let x=GS(v)?v:Nv(g.location,v,y);u=f();let b=YS(x,u),O=g.createHref(x.unstable_mask||x);a.replaceState(b,"",O),o&&l&&l({action:s,location:g.location,delta:0})}function m(v){return D4(v)}let g={get action(){return s},get location(){return e(i,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(qS,c),l=v,()=>{i.removeEventListener(qS,c),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let y=m(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:p,go(v){return a.go(v)}};return g}function D4(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),it(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Fu(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function OT(e,t,n="/"){return L4(e,t,n,!1)}function L4(e,t,n,r){let i=typeof t=="string"?rl(t):t,o=vi(i.pathname||"/",n);if(o==null)return null;let a=ET(e);F4(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=X4(o);s=G4(a[l],u,r)}return s}function ET(e,t=[],n=[],r="",i=!1){let o=(a,s,l=i,u)=>{let f={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&l)return;it(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let c=Br([r,f.relativePath]),d=n.concat(f);a.children&&a.children.length>0&&(it(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),ET(a.children,t,d,c,l)),!(a.path==null&&!a.index)&&t.push({path:c,score:K4(c,a.index),routesMeta:d})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,s);else for(let u of PT(a.path))o(a,s,!0,u)}),t}function PT(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=PT(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function F4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:q4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var z4=/^:[\w-]+$/,B4=3,W4=2,U4=1,H4=10,V4=-2,XS=e=>e==="*";function K4(e,t){let n=e.split("/"),r=n.length;return n.some(XS)&&(r+=V4),t&&(r+=W4),n.filter(i=>!XS(i)).reduce((i,o)=>i+(z4.test(o)?B4:o===""?U4:H4),r)}function q4(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function G4(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,f=o==="/"?t:t.slice(o.length)||"/",c=Jd({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},f),d=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Jd({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},f)),!c)return null;Object.assign(i,c.params),a.push({params:i,pathname:Br([o,c.pathname]),pathnameBase:e5(Br([o,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(o=Br([o,c.pathnameBase]))}return a}function Jd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Y4(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:c},d)=>{if(f==="*"){let m=s[d]||"";a=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const p=s[d];return c&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function Y4(e,t=!1,n=!0){Sr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l,u,f)=>{if(r.push({paramName:s,isOptional:l!=null}),l){let c=f.charAt(u+a.length);return c&&c!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function X4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function vi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Q4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function J4(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?rl(e):e,o;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?o=QS(n.substring(1),"/"):o=QS(n,t)):o=t,{pathname:o,search:t5(r),hash:n5(i)}}function QS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Cg(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Z4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function j0(e){let t=Z4(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Rh(e,t,n,r=!1){let i;typeof e=="string"?i=rl(e):(i={...e},it(!i.pathname||!i.pathname.includes("?"),Cg("?","pathname","search",i)),it(!i.pathname||!i.pathname.includes("#"),Cg("#","pathname","hash",i)),it(!i.search||!i.search.includes("#"),Cg("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}s=c>=0?t[c]:"/"}let l=J4(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}var Br=e=>e.join("/").replace(/\/\/+/g,"/"),e5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),t5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,n5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,r5=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function i5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function o5(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var jT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function AT(e,t){let n=e;if(typeof n!="string"||!Q4.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(jT)try{let o=new URL(window.location.href),a=n.startsWith("//")?new URL(o.protocol+n):new URL(n),s=vi(a.pathname,t);a.origin===o.origin&&s!=null?n=s+a.search+a.hash:i=!0}catch{Sr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _T=["POST","PUT","PATCH","DELETE"];new Set(_T);var a5=["GET",..._T];new Set(a5);var il=k.createContext(null);il.displayName="DataRouter";var Dh=k.createContext(null);Dh.displayName="DataRouterState";var s5=k.createContext(!1),CT=k.createContext({isTransitioning:!1});CT.displayName="ViewTransition";var l5=k.createContext(new Map);l5.displayName="Fetchers";var u5=k.createContext(null);u5.displayName="Await";var Ln=k.createContext(null);Ln.displayName="Navigation";var $c=k.createContext(null);$c.displayName="Location";var nr=k.createContext({outlet:null,matches:[],isDataRoute:!1});nr.displayName="Route";var A0=k.createContext(null);A0.displayName="RouteError";var TT="REACT_ROUTER_ERROR",c5="REDIRECT",f5="ROUTE_ERROR_RESPONSE";function d5(e){if(e.startsWith(`${TT}:${c5}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function p5(e){if(e.startsWith(`${TT}:${f5}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new r5(t.status,t.statusText,t.data)}catch{}}function h5(e,{relative:t}={}){it(ol(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=k.useContext(Ln),{hash:i,pathname:o,search:a}=Mc(e,{relative:t}),s=o;return n!=="/"&&(s=o==="/"?n:Br([n,o])),r.createHref({pathname:s,search:a,hash:i})}function ol(){return k.useContext($c)!=null}function qr(){return it(ol(),"useLocation() may be used only in the context of a <Router> component."),k.useContext($c).location}var NT="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $T(e){k.useContext(Ln).static||k.useLayoutEffect(e)}function Lh(){let{isDataRoute:e}=k.useContext(nr);return e?C5():m5()}function m5(){it(ol(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(il),{basename:t,navigator:n}=k.useContext(Ln),{matches:r}=k.useContext(nr),{pathname:i}=qr(),o=JSON.stringify(j0(r)),a=k.useRef(!1);return $T(()=>{a.current=!0}),k.useCallback((l,u={})=>{if(Sr(a.current,NT),!a.current)return;if(typeof l=="number"){n.go(l);return}let f=Rh(l,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Br([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,o,i,e])}var g5=k.createContext(null);function y5(e){let t=k.useContext(nr).outlet;return k.useMemo(()=>t&&k.createElement(g5.Provider,{value:e},t),[t,e])}function v5(){let{matches:e}=k.useContext(nr),t=e[e.length-1];return t?t.params:{}}function Mc(e,{relative:t}={}){let{matches:n}=k.useContext(nr),{pathname:r}=qr(),i=JSON.stringify(j0(n));return k.useMemo(()=>Rh(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function x5(e,t){return MT(e,t)}function MT(e,t,n){var v;it(ol(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=k.useContext(Ln),{matches:i}=k.useContext(nr),o=i[i.length-1],a=o?o.params:{},s=o?o.pathname:"/",l=o?o.pathnameBase:"/",u=o&&o.route;{let y=u&&u.path||"";RT(s,!u||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
50
|
+
|
|
51
|
+
Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=qr(),c;if(t){let y=typeof t=="string"?rl(t):t;it(l==="/"||((v=y.pathname)==null?void 0:v.startsWith(l)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${y.pathname}" was given in the \`location\` prop.`),c=y}else c=f;let d=c.pathname||"/",p=d;if(l!=="/"){let y=l.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(y.length).join("/")}let m=OT(e,{pathname:p});Sr(u||m!=null,`No routes matched location "${c.pathname}${c.search}${c.hash}" `),Sr(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${c.pathname}${c.search}${c.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=O5(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:Br([l,r.encodeLocation?r.encodeLocation(y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:Br([l,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),i,n);return t&&g?k.createElement($c.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...c},navigationType:"POP"}},g):g}function b5(){let e=_5(),t=i5(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:o},"ErrorBoundary")," or"," ",k.createElement("code",{style:o},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,a)}var w5=k.createElement(b5,null),IT=class extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=p5(e.digest);n&&(e=n)}let t=e!==void 0?k.createElement(nr.Provider,{value:this.props.routeContext},k.createElement(A0.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?k.createElement(S5,{error:e},t):t}};IT.contextType=s5;var Tg=new WeakMap;function S5({children:e,error:t}){let{basename:n}=k.useContext(Ln);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=d5(t.digest);if(r){let i=Tg.get(t);if(i)throw i;let o=AT(r.location,n);if(jT&&!Tg.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw Tg.set(t,a),a}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function k5({routeContext:e,match:t,children:n}){let r=k.useContext(il);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(nr.Provider,{value:e},n)}function O5(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,o=r==null?void 0:r.errors;if(o!=null){let f=i.findIndex(c=>c.route.id&&(o==null?void 0:o[c.route.id])!==void 0);it(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let a=!1,s=-1;if(n&&r){a=r.renderFallback;for(let f=0;f<i.length;f++){let c=i[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(s=f),c.route.id){let{loaderData:d,errors:p}=r,m=c.route.loader&&!d.hasOwnProperty(c.route.id)&&(!p||p[c.route.id]===void 0);if(c.route.lazy||m){n.isStatic&&(a=!0),s>=0?i=i.slice(0,s+1):i=[i[0]];break}}}}let l=n==null?void 0:n.onError,u=r&&l?(f,c)=>{var d,p;l(f,{location:r.location,params:((p=(d=r.matches)==null?void 0:d[0])==null?void 0:p.params)??{},unstable_pattern:o5(r.matches),errorInfo:c})}:void 0;return i.reduceRight((f,c,d)=>{let p,m=!1,g=null,v=null;r&&(p=o&&c.route.id?o[c.route.id]:void 0,g=c.route.errorElement||w5,a&&(s<0&&d===0?(RT("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,v=null):s===d&&(m=!0,v=c.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,d+1)),x=()=>{let b;return p?b=g:m?b=v:c.route.Component?b=k.createElement(c.route.Component,null):c.route.element?b=c.route.element:b=f,k.createElement(k5,{match:c,routeContext:{outlet:f,matches:y,isDataRoute:r!=null},children:b})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?k.createElement(IT,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:u}):x()},null)}function _0(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function E5(e){let t=k.useContext(il);return it(t,_0(e)),t}function P5(e){let t=k.useContext(Dh);return it(t,_0(e)),t}function j5(e){let t=k.useContext(nr);return it(t,_0(e)),t}function C0(e){let t=j5(e),n=t.matches[t.matches.length-1];return it(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function A5(){return C0("useRouteId")}function _5(){var r;let e=k.useContext(A0),t=P5("useRouteError"),n=C0("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function C5(){let{router:e}=E5("useNavigate"),t=C0("useNavigate"),n=k.useRef(!1);return $T(()=>{n.current=!0}),k.useCallback(async(i,o={})=>{Sr(n.current,NT),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var JS={};function RT(e,t,n){!t&&!JS[e]&&(JS[e]=!0,Sr(!1,n))}k.memo(T5);function T5({routes:e,future:t,state:n,isStatic:r,onError:i}){return MT(e,void 0,{state:n,isStatic:r,onError:i})}function DT({to:e,replace:t,state:n,relative:r}){it(ol(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=k.useContext(Ln);Sr(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=k.useContext(nr),{pathname:a}=qr(),s=Lh(),l=Rh(e,j0(o),a,r==="path"),u=JSON.stringify(l);return k.useEffect(()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})},[s,u,r,t,n]),null}function LT(e){return y5(e.context)}function Qt(e){it(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function N5({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1,unstable_useTransitions:a}){it(!ol(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=k.useMemo(()=>({basename:s,navigator:i,static:o,unstable_useTransitions:a,future:{}}),[s,i,o,a]);typeof n=="string"&&(n=rl(n));let{pathname:u="/",search:f="",hash:c="",state:d=null,key:p="default",unstable_mask:m}=n,g=k.useMemo(()=>{let v=vi(u,s);return v==null?null:{location:{pathname:v,search:f,hash:c,state:d,key:p,unstable_mask:m},navigationType:r}},[s,u,f,c,d,p,r,m]);return Sr(g!=null,`<Router basename="${s}"> is not able to match the URL "${u}${f}${c}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:k.createElement(Ln.Provider,{value:l},k.createElement($c.Provider,{children:t,value:g}))}function FT({children:e,location:t}){return x5($v(e),t)}function $v(e,t=[]){let n=[];return k.Children.forEach(e,(r,i)=>{if(!k.isValidElement(r))return;let o=[...t,i];if(r.type===k.Fragment){n.push.apply(n,$v(r.props.children,o));return}it(r.type===Qt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),it(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=$v(r.props.children,o)),n.push(a)}),n}var fd="get",dd="application/x-www-form-urlencoded";function Fh(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function $5(e){return Fh(e)&&e.tagName.toLowerCase()==="button"}function M5(e){return Fh(e)&&e.tagName.toLowerCase()==="form"}function I5(e){return Fh(e)&&e.tagName.toLowerCase()==="input"}function R5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function D5(e,t){return e.button===0&&(!t||t==="_self")&&!R5(e)}var bf=null;function L5(){if(bf===null)try{new FormData(document.createElement("form"),0),bf=!1}catch{bf=!0}return bf}var F5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ng(e){return e!=null&&!F5.has(e)?(Sr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dd}"`),null):e}function z5(e,t){let n,r,i,o,a;if(M5(e)){let s=e.getAttribute("action");r=s?vi(s,t):null,n=e.getAttribute("method")||fd,i=Ng(e.getAttribute("enctype"))||dd,o=new FormData(e)}else if($5(e)||I5(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?vi(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||fd,i=Ng(e.getAttribute("formenctype"))||Ng(s.getAttribute("enctype"))||dd,o=new FormData(s,e),!L5()){let{name:u,type:f,value:c}=e;if(f==="image"){let d=u?`${u}.`:"";o.append(`${d}x`,"0"),o.append(`${d}y`,"0")}else u&&o.append(u,c)}}else{if(Fh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=fd,r=null,i=dd,a=e}return o&&i==="text/plain"&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function T0(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function B5(e,t,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:t&&vi(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function W5(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function U5(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function H5(e,t,n){let r=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let a=await W5(o,n);return a.links?a.links():[]}return[]}));return G5(r.flat(1).filter(U5).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function ZS(e,t,n,r,i,o){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,s=(l,u)=>{var f;return n[u].pathname!==l.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return o==="assets"?t.filter((l,u)=>a(l,u)||s(l,u)):o==="data"?t.filter((l,u)=>{var c;let f=r.routes[l.route.id];if(!f||!f.hasLoader)return!1;if(a(l,u)||s(l,u))return!0;if(l.route.shouldRevalidate){let d=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function V5(e,t,{includeHydrateFallback:n}={}){return K5(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.concat(i.imports)),o}).flat(1))}function K5(e){return[...new Set(e)]}function q5(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function G5(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let o=JSON.stringify(q5(i));return n.has(o)||(n.add(o),r.push({key:o,link:i})),r},[])}function zT(){let e=k.useContext(il);return T0(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Y5(){let e=k.useContext(Dh);return T0(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var N0=k.createContext(void 0);N0.displayName="FrameworkContext";function BT(){let e=k.useContext(N0);return T0(e,"You must render this element inside a <HydratedRouter> element"),e}function X5(e,t){let n=k.useContext(N0),[r,i]=k.useState(!1),[o,a]=k.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:f,onTouchStart:c}=t,d=k.useRef(null);k.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let g=y=>{y.forEach(x=>{a(x.isIntersecting)})},v=new IntersectionObserver(g,{threshold:.5});return d.current&&v.observe(d.current),()=>{v.disconnect()}}},[e]),k.useEffect(()=>{if(r){let g=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(g)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),a(!1)};return n?e!=="intent"?[o,d,{}]:[o,d,{onFocus:Dl(s,p),onBlur:Dl(l,m),onMouseEnter:Dl(u,p),onMouseLeave:Dl(f,m),onTouchStart:Dl(c,p)}]:[!1,d,{}]}function Dl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Q5({page:e,...t}){let{router:n}=zT(),r=k.useMemo(()=>OT(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?k.createElement(Z5,{page:e,matches:r,...t}):null}function J5(e){let{manifest:t,routeModules:n}=BT(),[r,i]=k.useState([]);return k.useEffect(()=>{let o=!1;return H5(e,t,n).then(a=>{o||i(a)}),()=>{o=!0}},[e,t,n]),r}function Z5({page:e,matches:t,...n}){let r=qr(),{future:i,manifest:o,routeModules:a}=BT(),{basename:s}=zT(),{loaderData:l,matches:u}=Y5(),f=k.useMemo(()=>ZS(e,t,u,o,r,"data"),[e,t,u,o,r]),c=k.useMemo(()=>ZS(e,t,u,o,r,"assets"),[e,t,u,o,r]),d=k.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,v=!1;if(t.forEach(x=>{var O;let b=o.routes[x.route.id];!b||!b.hasLoader||(!f.some(S=>S.route.id===x.route.id)&&x.route.id in l&&((O=a[x.route.id])!=null&&O.shouldRevalidate)||b.hasClientLoader?v=!0:g.add(x.route.id))}),g.size===0)return[];let y=B5(e,s,i.unstable_trailingSlashAwareDataRequests,"data");return v&&g.size>0&&y.searchParams.set("_routes",t.filter(x=>g.has(x.route.id)).map(x=>x.route.id).join(",")),[y.pathname+y.search]},[s,i.unstable_trailingSlashAwareDataRequests,l,r,o,f,t,e,a]),p=k.useMemo(()=>V5(c,o),[c,o]),m=J5(c);return k.createElement(k.Fragment,null,d.map(g=>k.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),p.map(g=>k.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),m.map(({key:g,link:v})=>k.createElement("link",{key:g,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function eF(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var tF=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{tF&&(window.__reactRouterVersion="7.13.1")}catch{}function nF({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=k.useRef();i.current==null&&(i.current=M4({window:r,v5Compat:!0}));let o=i.current,[a,s]=k.useState({action:o.action,location:o.location}),l=k.useCallback(u=>{n===!1?s(u):k.startTransition(()=>s(u))},[n]);return k.useLayoutEffect(()=>o.listen(l),[o,l]),k.createElement(N5,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:o,unstable_useTransitions:n})}var WT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zu=k.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:o,replace:a,unstable_mask:s,state:l,target:u,to:f,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p,...m},g){let{basename:v,navigator:y,unstable_useTransitions:x}=k.useContext(Ln),b=typeof f=="string"&&WT.test(f),O=AT(f,v);f=O.to;let S=h5(f,{relative:i}),w=qr(),E=null;if(s){let I=Rh(s,[],w.unstable_mask?w.unstable_mask.pathname:"/",!0);v!=="/"&&(I.pathname=I.pathname==="/"?v:Br([v,I.pathname])),E=y.createHref(I)}let[P,_,A]=X5(r,m),$=oF(f,{replace:a,unstable_mask:s,state:l,target:u,preventScrollReset:c,relative:i,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:x});function N(I){t&&t(I),I.defaultPrevented||$(I)}let R=!(O.isExternal||o),F=k.createElement("a",{...m,...A,href:(R?E:void 0)||O.absoluteURL||S,onClick:R?N:t,ref:eF(g,_),target:u,"data-discover":!b&&n==="render"?"true":void 0});return P&&!b?k.createElement(k.Fragment,null,F,k.createElement(Q5,{page:S})):F});zu.displayName="Link";var Vo=k.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:o,to:a,viewTransition:s,children:l,...u},f){let c=Mc(a,{relative:u.relative}),d=qr(),p=k.useContext(Dh),{navigator:m,basename:g}=k.useContext(Ln),v=p!=null&&cF(c)&&s===!0,y=m.encodeLocation?m.encodeLocation(c).pathname:c.pathname,x=d.pathname,b=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(x=x.toLowerCase(),b=b?b.toLowerCase():null,y=y.toLowerCase()),b&&g&&(b=vi(b,g)||b);const O=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=x===y||!i&&x.startsWith(y)&&x.charAt(O)==="/",w=b!=null&&(b===y||!i&&b.startsWith(y)&&b.charAt(y.length)==="/"),E={isActive:S,isPending:w,isTransitioning:v},P=S?t:void 0,_;typeof r=="function"?_=r(E):_=[r,S?"active":null,w?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let A=typeof o=="function"?o(E):o;return k.createElement(zu,{...u,"aria-current":P,className:_,ref:f,style:A,to:a,viewTransition:s},typeof l=="function"?l(E):l)});Vo.displayName="NavLink";var rF=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=fd,action:s,onSubmit:l,relative:u,preventScrollReset:f,viewTransition:c,unstable_defaultShouldRevalidate:d,...p},m)=>{let{unstable_useTransitions:g}=k.useContext(Ln),v=lF(),y=uF(s,{relative:u}),x=a.toLowerCase()==="get"?"get":"post",b=typeof s=="string"&&WT.test(s),O=S=>{if(l&&l(S),S.defaultPrevented)return;S.preventDefault();let w=S.nativeEvent.submitter,E=(w==null?void 0:w.getAttribute("formmethod"))||a,P=()=>v(w||S.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:i,state:o,relative:u,preventScrollReset:f,viewTransition:c,unstable_defaultShouldRevalidate:d});g&&n!==!1?k.startTransition(()=>P()):P()};return k.createElement("form",{ref:m,method:x,action:y,onSubmit:r?l:O,...p,"data-discover":!b&&e==="render"?"true":void 0})});rF.displayName="Form";function iF(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function UT(e){let t=k.useContext(il);return it(t,iF(e)),t}function oF(e,{target:t,replace:n,unstable_mask:r,state:i,preventScrollReset:o,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let f=Lh(),c=qr(),d=Mc(e,{relative:a});return k.useCallback(p=>{if(D5(p,t)){p.preventDefault();let m=n!==void 0?n:Fu(c)===Fu(d),g=()=>f(e,{replace:m,unstable_mask:r,state:i,preventScrollReset:o,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:l});u?k.startTransition(()=>g()):g()}},[c,f,d,n,r,i,t,e,o,a,s,l,u])}var aF=0,sF=()=>`__${String(++aF)}__`;function lF(){let{router:e}=UT("useSubmit"),{basename:t}=k.useContext(Ln),n=A5(),r=e.fetch,i=e.navigate;return k.useCallback(async(o,a={})=>{let{action:s,method:l,encType:u,formData:f,body:c}=z5(o,t);if(a.navigate===!1){let d=a.fetcherKey||sF();await r(d,n,a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:c,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await i(a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:f,body:c,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function uF(e,{relative:t}={}){let{basename:n}=k.useContext(Ln),r=k.useContext(nr);it(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Mc(e||".",{relative:t})},a=qr();if(e==null){o.search=a.search;let s=new URLSearchParams(o.search),l=s.getAll("index");if(l.some(f=>f==="")){s.delete("index"),l.filter(c=>c).forEach(c=>s.append("index",c));let f=s.toString();o.search=f?`?${f}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Br([n,o.pathname])),Fu(o)}function cF(e,{relative:t}={}){let n=k.useContext(CT);it(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=UT("useViewTransitionState"),i=Mc(e,{relative:t});if(!n.isTransitioning)return!1;let o=vi(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=vi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Jd(i.pathname,a)!=null||Jd(i.pathname,o)!=null}function fF(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const dF=e=>{switch(e){case"success":return mF;case"info":return yF;case"warning":return gF;case"error":return vF;default:return null}},pF=Array(12).fill(0),hF=({visible:e,className:t})=>C.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},C.createElement("div",{className:"sonner-spinner"},pF.map((n,r)=>C.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),mF=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.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"})),gF=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},C.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"})),yF=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.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"})),vF=C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},C.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"})),xF=C.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"},C.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),C.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),bF=()=>{const[e,t]=C.useState(document.hidden);return C.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Mv=1;class wF{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,o=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Mv++,a=this.toasts.find(l=>l.id===o),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...t,id:o,title:r}),{...l,...t,id:o,dismissible:s,title:r}):l):this.addToast({title:r,...i,dismissible:s,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,a;const s=i.then(async u=>{if(a=["resolve",u],C.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if(kF(u)&&!u.ok){o=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,d=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,m=typeof c=="object"&&!C.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:d,...m})}else if(u instanceof Error){o=!1;const c=typeof n.error=="function"?await n.error(u):n.error,d=typeof n.description=="function"?await n.description(u):n.description,m=typeof c=="object"&&!C.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:d,...m})}else if(n.success!==void 0){o=!1;const c=typeof n.success=="function"?await n.success(u):n.success,d=typeof n.description=="function"?await n.description(u):n.description,m=typeof c=="object"&&!C.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:d,...m})}}).catch(async u=>{if(a=["reject",u],n.error!==void 0){o=!1;const f=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,p=typeof f=="object"&&!C.isValidElement(f)?f:{message:f};this.create({id:r,type:"error",description:c,...p})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,f)=>s.then(()=>a[0]==="reject"?f(a[1]):u(a[1])).catch(f));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Mv++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const cn=new wF,SF=(e,t)=>{const n=(t==null?void 0:t.id)||Mv++;return cn.addToast({title:e,...t,id:n}),n},kF=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",OF=SF,EF=()=>cn.toasts,PF=()=>cn.getActiveToasts(),nt=Object.assign(OF,{success:cn.success,info:cn.info,warning:cn.warning,error:cn.error,custom:cn.custom,message:cn.message,promise:cn.promise,dismiss:cn.dismiss,loading:cn.loading},{getHistory:EF,getToasts:PF});fF("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[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-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [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;color:var(--gray12);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;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][data-expanded=true]::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) * 0.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-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[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-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");function wf(e){return e.label!==void 0}const jF=3,AF="24px",_F="16px",ek=4e3,CF=356,TF=14,NF=45,$F=200;function Nr(...e){return e.filter(Boolean).join(" ")}function MF(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const IF=e=>{var t,n,r,i,o,a,s,l,u;const{invert:f,toast:c,unstyled:d,interacting:p,setHeights:m,visibleToasts:g,heights:v,index:y,toasts:x,expanded:b,removeToast:O,defaultRichColors:S,closeButton:w,style:E,cancelButtonStyle:P,actionButtonStyle:_,className:A="",descriptionClassName:$="",duration:N,position:R,gap:F,expandByDefault:I,classNames:D,icons:L,closeButtonAriaLabel:M="Close toast"}=e,[z,j]=C.useState(null),[W,U]=C.useState(null),[T,Y]=C.useState(!1),[J,Z]=C.useState(!1),[Ae,ae]=C.useState(!1),[K,ie]=C.useState(!1),[oe,V]=C.useState(!1),[ke,de]=C.useState(0),[ze,De]=C.useState(0),Ge=C.useRef(c.duration||N||ek),Yt=C.useRef(null),et=C.useRef(null),Qr=y===0,or=y+1<=g,ot=c.type,Fn=c.dismissible!==!1,Oa=c.className||"",Ea=c.descriptionClassName||"",H=C.useMemo(()=>v.findIndex(ye=>ye.toastId===c.id)||0,[v,c.id]),Q=C.useMemo(()=>{var ye;return(ye=c.closeButton)!=null?ye:w},[c.closeButton,w]),pe=C.useMemo(()=>c.duration||N||ek,[c.duration,N]),xe=C.useRef(0),Ee=C.useRef(0),sn=C.useRef(0),ln=C.useRef(null),[ar,Po]=R.split("-"),Ri=C.useMemo(()=>v.reduce((ye,Ot,Ft)=>Ft>=H?ye:ye+Ot.height,0),[v,H]),Lt=bF(),Di=c.invert||f,wn=ot==="loading";Ee.current=C.useMemo(()=>H*F+Ri,[H,Ri]),C.useEffect(()=>{Ge.current=pe},[pe]),C.useEffect(()=>{Y(!0)},[]),C.useEffect(()=>{const ye=et.current;if(ye){const Ot=ye.getBoundingClientRect().height;return De(Ot),m(Ft=>[{toastId:c.id,height:Ot,position:c.position},...Ft]),()=>m(Ft=>Ft.filter(Sn=>Sn.toastId!==c.id))}},[m,c.id]),C.useLayoutEffect(()=>{if(!T)return;const ye=et.current,Ot=ye.style.height;ye.style.height="auto";const Ft=ye.getBoundingClientRect().height;ye.style.height=Ot,De(Ft),m(Sn=>Sn.find($t=>$t.toastId===c.id)?Sn.map($t=>$t.toastId===c.id?{...$t,height:Ft}:$t):[{toastId:c.id,height:Ft,position:c.position},...Sn])},[T,c.title,c.description,m,c.id,c.jsx,c.action,c.cancel]);const Li=C.useCallback(()=>{Z(!0),de(Ee.current),m(ye=>ye.filter(Ot=>Ot.toastId!==c.id)),setTimeout(()=>{O(c)},$F)},[c,O,m,Ee]);C.useEffect(()=>{if(c.promise&&ot==="loading"||c.duration===1/0||c.type==="loading")return;let ye;return b||p||Lt?(()=>{if(sn.current<xe.current){const Sn=new Date().getTime()-xe.current;Ge.current=Ge.current-Sn}sn.current=new Date().getTime()})():(()=>{Ge.current!==1/0&&(xe.current=new Date().getTime(),ye=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Li()},Ge.current))})(),()=>clearTimeout(ye)},[b,p,c,ot,Lt,Li]),C.useEffect(()=>{c.delete&&(Li(),c.onDismiss==null||c.onDismiss.call(c,c))},[Li,c.delete]);function aL(){var ye;if(L!=null&&L.loading){var Ot;return C.createElement("div",{className:Nr(D==null?void 0:D.loader,c==null||(Ot=c.classNames)==null?void 0:Ot.loader,"sonner-loader"),"data-visible":ot==="loading"},L.loading)}return C.createElement(hF,{className:Nr(D==null?void 0:D.loader,c==null||(ye=c.classNames)==null?void 0:ye.loader),visible:ot==="loading"})}const sL=c.icon||(L==null?void 0:L[ot])||dF(ot);var I1,R1;return C.createElement("li",{tabIndex:0,ref:et,className:Nr(A,Oa,D==null?void 0:D.toast,c==null||(t=c.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[ot],c==null||(n=c.classNames)==null?void 0:n[ot]),"data-sonner-toast":"","data-rich-colors":(I1=c.richColors)!=null?I1:S,"data-styled":!(c.jsx||c.unstyled||d),"data-mounted":T,"data-promise":!!c.promise,"data-swiped":oe,"data-removed":J,"data-visible":or,"data-y-position":ar,"data-x-position":Po,"data-index":y,"data-front":Qr,"data-swiping":Ae,"data-dismissible":Fn,"data-type":ot,"data-invert":Di,"data-swipe-out":K,"data-swipe-direction":W,"data-expanded":!!(b||I&&T),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":x.length-y,"--offset":`${J?ke:Ee.current}px`,"--initial-height":I?"auto":`${ze}px`,...E,...c.style},onDragEnd:()=>{ae(!1),j(null),ln.current=null},onPointerDown:ye=>{ye.button!==2&&(wn||!Fn||(Yt.current=new Date,de(Ee.current),ye.target.setPointerCapture(ye.pointerId),ye.target.tagName!=="BUTTON"&&(ae(!0),ln.current={x:ye.clientX,y:ye.clientY})))},onPointerUp:()=>{var ye,Ot,Ft;if(K||!Fn)return;ln.current=null;const Sn=Number(((ye=et.current)==null?void 0:ye.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ef=Number(((Ot=et.current)==null?void 0:Ot.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),$t=new Date().getTime()-((Ft=Yt.current)==null?void 0:Ft.getTime()),zn=z==="x"?Sn:ef,tf=Math.abs(zn)/$t;if(Math.abs(zn)>=NF||tf>.11){de(Ee.current),c.onDismiss==null||c.onDismiss.call(c,c),U(z==="x"?Sn>0?"right":"left":ef>0?"down":"up"),Li(),ie(!0);return}else{var sr,lr;(sr=et.current)==null||sr.style.setProperty("--swipe-amount-x","0px"),(lr=et.current)==null||lr.style.setProperty("--swipe-amount-y","0px")}V(!1),ae(!1),j(null)},onPointerMove:ye=>{var Ot,Ft,Sn;if(!ln.current||!Fn||((Ot=window.getSelection())==null?void 0:Ot.toString().length)>0)return;const $t=ye.clientY-ln.current.y,zn=ye.clientX-ln.current.x;var tf;const sr=(tf=e.swipeDirections)!=null?tf:MF(R);!z&&(Math.abs(zn)>1||Math.abs($t)>1)&&j(Math.abs(zn)>Math.abs($t)?"x":"y");let lr={x:0,y:0};const D1=jo=>1/(1.5+Math.abs(jo)/20);if(z==="y"){if(sr.includes("top")||sr.includes("bottom"))if(sr.includes("top")&&$t<0||sr.includes("bottom")&&$t>0)lr.y=$t;else{const jo=$t*D1($t);lr.y=Math.abs(jo)<Math.abs($t)?jo:$t}}else if(z==="x"&&(sr.includes("left")||sr.includes("right")))if(sr.includes("left")&&zn<0||sr.includes("right")&&zn>0)lr.x=zn;else{const jo=zn*D1(zn);lr.x=Math.abs(jo)<Math.abs(zn)?jo:zn}(Math.abs(lr.x)>0||Math.abs(lr.y)>0)&&V(!0),(Ft=et.current)==null||Ft.style.setProperty("--swipe-amount-x",`${lr.x}px`),(Sn=et.current)==null||Sn.style.setProperty("--swipe-amount-y",`${lr.y}px`)}},Q&&!c.jsx&&ot!=="loading"?C.createElement("button",{"aria-label":M,"data-disabled":wn,"data-close-button":!0,onClick:wn||!Fn?()=>{}:()=>{Li(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Nr(D==null?void 0:D.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(R1=L==null?void 0:L.close)!=null?R1:xF):null,(ot||c.icon||c.promise)&&c.icon!==null&&((L==null?void 0:L[ot])!==null||c.icon)?C.createElement("div",{"data-icon":"",className:Nr(D==null?void 0:D.icon,c==null||(i=c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||aL():null,c.type!=="loading"?sL:null):null,C.createElement("div",{"data-content":"",className:Nr(D==null?void 0:D.content,c==null||(o=c.classNames)==null?void 0:o.content)},C.createElement("div",{"data-title":"",className:Nr(D==null?void 0:D.title,c==null||(a=c.classNames)==null?void 0:a.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?C.createElement("div",{"data-description":"",className:Nr($,Ea,D==null?void 0:D.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),C.isValidElement(c.cancel)?c.cancel:c.cancel&&wf(c.cancel)?C.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||P,onClick:ye=>{wf(c.cancel)&&Fn&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ye),Li())},className:Nr(D==null?void 0:D.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,C.isValidElement(c.action)?c.action:c.action&&wf(c.action)?C.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||_,onClick:ye=>{wf(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ye),!ye.defaultPrevented&&Li())},className:Nr(D==null?void 0:D.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function tk(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function RF(e,t){const n={};return[e,t].forEach((r,i)=>{const o=i===1,a=o?"--mobile-offset":"--offset",s=o?_F:AF;function l(u){["top","right","bottom","left"].forEach(f=>{n[`${a}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const HT=C.forwardRef(function(t,n){const{id:r,invert:i,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:f,mobileOffset:c,theme:d="light",richColors:p,duration:m,style:g,visibleToasts:v=jF,toastOptions:y,dir:x=tk(),gap:b=TF,icons:O,containerAriaLabel:S="Notifications"}=t,[w,E]=C.useState([]),P=C.useMemo(()=>r?w.filter(T=>T.toasterId===r):w.filter(T=>!T.toasterId),[w,r]),_=C.useMemo(()=>Array.from(new Set([o].concat(P.filter(T=>T.position).map(T=>T.position)))),[P,o]),[A,$]=C.useState([]),[N,R]=C.useState(!1),[F,I]=C.useState(!1),[D,L]=C.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),M=C.useRef(null),z=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=C.useRef(null),W=C.useRef(!1),U=C.useCallback(T=>{E(Y=>{var J;return(J=Y.find(Z=>Z.id===T.id))!=null&&J.delete||cn.dismiss(T.id),Y.filter(({id:Z})=>Z!==T.id)})},[]);return C.useEffect(()=>cn.subscribe(T=>{if(T.dismiss){requestAnimationFrame(()=>{E(Y=>Y.map(J=>J.id===T.id?{...J,delete:!0}:J))});return}setTimeout(()=>{ST.flushSync(()=>{E(Y=>{const J=Y.findIndex(Z=>Z.id===T.id);return J!==-1?[...Y.slice(0,J),{...Y[J],...T},...Y.slice(J+1)]:[T,...Y]})})})}),[w]),C.useEffect(()=>{if(d!=="system"){L(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;const T=window.matchMedia("(prefers-color-scheme: dark)");try{T.addEventListener("change",({matches:Y})=>{L(Y?"dark":"light")})}catch{T.addListener(({matches:J})=>{try{L(J?"dark":"light")}catch(Z){console.error(Z)}})}},[d]),C.useEffect(()=>{w.length<=1&&R(!1)},[w]),C.useEffect(()=>{const T=Y=>{var J;if(a.every(ae=>Y[ae]||Y.code===ae)){var Ae;R(!0),(Ae=M.current)==null||Ae.focus()}Y.code==="Escape"&&(document.activeElement===M.current||(J=M.current)!=null&&J.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[a]),C.useEffect(()=>{if(M.current)return()=>{j.current&&(j.current.focus({preventScroll:!0}),j.current=null,W.current=!1)}},[M.current]),C.createElement("section",{ref:n,"aria-label":`${S} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},_.map((T,Y)=>{var J;const[Z,Ae]=T.split("-");return P.length?C.createElement("ol",{key:T,dir:x==="auto"?tk():x,tabIndex:-1,ref:M,className:u,"data-sonner-toaster":!0,"data-sonner-theme":D,"data-y-position":Z,"data-x-position":Ae,style:{"--front-toast-height":`${((J=A[0])==null?void 0:J.height)||0}px`,"--width":`${CF}px`,"--gap":`${b}px`,...g,...RF(f,c)},onBlur:ae=>{W.current&&!ae.currentTarget.contains(ae.relatedTarget)&&(W.current=!1,j.current&&(j.current.focus({preventScroll:!0}),j.current=null))},onFocus:ae=>{ae.target instanceof HTMLElement&&ae.target.dataset.dismissible==="false"||W.current||(W.current=!0,j.current=ae.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{F||R(!1)},onDragEnd:()=>R(!1),onPointerDown:ae=>{ae.target instanceof HTMLElement&&ae.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},P.filter(ae=>!ae.position&&Y===0||ae.position===T).map((ae,K)=>{var ie,oe;return C.createElement(IF,{key:ae.id,icons:O,index:K,toast:ae,defaultRichColors:p,duration:(ie=y==null?void 0:y.duration)!=null?ie:m,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:i,visibleToasts:v,closeButton:(oe=y==null?void 0:y.closeButton)!=null?oe:l,interacting:F,position:T,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:U,toasts:P.filter(V=>V.position==ae.position),heights:A.filter(V=>V.position==ae.position),setHeights:$,expandByDefault:s,gap:b,expanded:N,swipeDirections:t.swipeDirections})})):null}))});function dn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function nk(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zh(...e){return t=>{let n=!1;const r=e.map(i=>{const o=nk(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():nk(e[i],null)}}}}function Er(...e){return k.useCallback(zh(...e),e)}function DF(e,t){const n=k.createContext(t),r=o=>{const{children:a,...s}=o,l=k.useMemo(()=>s,Object.values(s));return h.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function i(o){const a=k.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function $0(e,t=[]){let n=[];function r(o,a){const s=k.createContext(a),l=n.length;n=[...n,a];const u=c=>{var y;const{scope:d,children:p,...m}=c,g=((y=d==null?void 0:d[e])==null?void 0:y[l])||s,v=k.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:v,children:p})};u.displayName=o+"Provider";function f(c,d){var g;const p=((g=d==null?void 0:d[e])==null?void 0:g[l])||s,m=k.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${o}\``)}return[u,f]}const i=()=>{const o=n.map(a=>k.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return k.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[r,LF(i,...t)]}function LF(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(o)[`__scope${u}`];return{...s,...c}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function FF(e){const t=zF(e),n=k.forwardRef((r,i)=>{const{children:o,...a}=r,s=k.Children.toArray(o),l=s.find(WF);if(l){const u=l.props.children,f=s.map(c=>c===l?k.Children.count(u)>1?k.Children.only(null):k.isValidElement(u)?u.props.children:null:c);return h.jsx(t,{...a,ref:i,children:k.isValidElement(u)?k.cloneElement(u,void 0,f):null})}return h.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function zF(e){const t=k.forwardRef((n,r)=>{const{children:i,...o}=n;if(k.isValidElement(i)){const a=HF(i),s=UF(o,i.props);return i.type!==k.Fragment&&(s.ref=r?zh(r,a):a),k.cloneElement(i,s)}return k.Children.count(i)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var BF=Symbol("radix.slottable");function WF(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===BF}function UF(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{const l=o(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function HF(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var VF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xn=VF.reduce((e,t)=>{const n=FF(`Primitive.${t}`),r=k.forwardRef((i,o)=>{const{asChild:a,...s}=i,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function KF(e,t){e&&Ih.flushSync(()=>e.dispatchEvent(t))}function Ss(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qF(e,t=globalThis==null?void 0:globalThis.document){const n=Ss(e);k.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var GF="DismissableLayer",Iv="dismissableLayer.update",YF="dismissableLayer.pointerDownOutside",XF="dismissableLayer.focusOutside",rk,VT=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),M0=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:s,...l}=e,u=k.useContext(VT),[f,c]=k.useState(null),d=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=k.useState({}),m=Er(t,E=>c(E)),g=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(v),x=f?g.indexOf(f):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,O=x>=y,S=ZF(E=>{const P=E.target,_=[...u.branches].some(A=>A.contains(P));!O||_||(i==null||i(E),a==null||a(E),E.defaultPrevented||s==null||s())},d),w=ez(E=>{const P=E.target;[...u.branches].some(A=>A.contains(P))||(o==null||o(E),a==null||a(E),E.defaultPrevented||s==null||s())},d);return qF(E=>{x===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&s&&(E.preventDefault(),s()))},d),k.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(rk=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),ik(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=rk)}},[f,d,n,u]),k.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),ik())},[f,u]),k.useEffect(()=>{const E=()=>p({});return document.addEventListener(Iv,E),()=>document.removeEventListener(Iv,E)},[]),h.jsx(xn.div,{...l,ref:m,style:{pointerEvents:b?O?"auto":"none":void 0,...e.style},onFocusCapture:dn(e.onFocusCapture,w.onFocusCapture),onBlurCapture:dn(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:dn(e.onPointerDownCapture,S.onPointerDownCapture)})});M0.displayName=GF;var QF="DismissableLayerBranch",JF=k.forwardRef((e,t)=>{const n=k.useContext(VT),r=k.useRef(null),i=Er(t,r);return k.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),h.jsx(xn.div,{...e,ref:i})});JF.displayName=QF;function ZF(e,t=globalThis==null?void 0:globalThis.document){const n=Ss(e),r=k.useRef(!1),i=k.useRef(()=>{});return k.useEffect(()=>{const o=s=>{if(s.target&&!r.current){let l=function(){KT(YF,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ez(e,t=globalThis==null?void 0:globalThis.document){const n=Ss(e),r=k.useRef(!1);return k.useEffect(()=>{const i=o=>{o.target&&!r.current&&KT(XF,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ik(){const e=new CustomEvent(Iv);document.dispatchEvent(e)}function KT(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?KF(i,o):i.dispatchEvent(o)}var po=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},tz=Rb[" useId ".trim().toString()]||(()=>{}),nz=0;function pd(e){const[t,n]=k.useState(tz());return po(()=>{n(r=>r??String(nz++))},[e]),e||(t?`radix-${t}`:"")}const rz=["top","right","bottom","left"],ho=Math.min,jn=Math.max,Zd=Math.round,Sf=Math.floor,Wr=e=>({x:e,y:e}),iz={left:"right",right:"left",bottom:"top",top:"bottom"};function Rv(e,t,n){return jn(e,ho(t,n))}function xi(e,t){return typeof e=="function"?e(t):e}function bi(e){return e.split("-")[0]}function al(e){return e.split("-")[1]}function I0(e){return e==="x"?"y":"x"}function R0(e){return e==="y"?"height":"width"}function Dr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function D0(e){return I0(Dr(e))}function oz(e,t,n){n===void 0&&(n=!1);const r=al(e),i=D0(e),o=R0(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ep(a)),[a,ep(a)]}function az(e){const t=ep(e);return[Dv(e),t,Dv(t)]}function Dv(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ok=["left","right"],ak=["right","left"],sz=["top","bottom"],lz=["bottom","top"];function uz(e,t,n){switch(e){case"top":case"bottom":return n?t?ak:ok:t?ok:ak;case"left":case"right":return t?sz:lz;default:return[]}}function cz(e,t,n,r){const i=al(e);let o=uz(bi(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Dv)))),o}function ep(e){const t=bi(e);return iz[t]+e.slice(t.length)}function fz(e){return{top:0,right:0,bottom:0,left:0,...e}}function qT(e){return typeof e!="number"?fz(e):{top:e,right:e,bottom:e,left:e}}function tp(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function sk(e,t,n){let{reference:r,floating:i}=e;const o=Dr(t),a=D0(t),s=R0(a),l=bi(t),u=o==="y",f=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,d=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:f,y:r.y-i.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-i.width,y:c};break;default:p={x:r.x,y:r.y}}switch(al(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1);break}return p}async function dz(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:d=!1,padding:p=0}=xi(t,e),m=qT(p),v=s[d?c==="floating"?"reference":"floating":c],y=tp(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:l})),x=c==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),O=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},S=tp(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:b,strategy:l}):x);return{top:(y.top-S.top+m.top)/O.y,bottom:(S.bottom-y.bottom+m.bottom)/O.y,left:(y.left-S.left+m.left)/O.x,right:(S.right-y.right+m.right)/O.x}}const pz=50,hz=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:dz},l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:c}=sk(u,r,l),d=r,p=0;const m={};for(let g=0;g<o.length;g++){const v=o[g];if(!v)continue;const{name:y,fn:x}=v,{x:b,y:O,data:S,reset:w}=await x({x:f,y:c,initialPlacement:r,placement:d,strategy:i,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});f=b??f,c=O??c,m[y]={...m[y],...S},w&&p<pz&&(p++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:f,y:c}=sk(u,d,l)),g=-1)}return{x:f,y:c,placement:d,strategy:i,middlewareData:m}},mz=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:f=0}=xi(e,t)||{};if(u==null)return{};const c=qT(f),d={x:n,y:r},p=D0(i),m=R0(p),g=await a.getDimensions(u),v=p==="y",y=v?"top":"left",x=v?"bottom":"right",b=v?"clientHeight":"clientWidth",O=o.reference[m]+o.reference[p]-d[p]-o.floating[m],S=d[p]-o.reference[p],w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let E=w?w[b]:0;(!E||!await(a.isElement==null?void 0:a.isElement(w)))&&(E=s.floating[b]||o.floating[m]);const P=O/2-S/2,_=E/2-g[m]/2-1,A=ho(c[y],_),$=ho(c[x],_),N=A,R=E-g[m]-$,F=E/2-g[m]/2+P,I=Rv(N,F,R),D=!l.arrow&&al(i)!=null&&F!==I&&o.reference[m]/2-(F<N?A:$)-g[m]/2<0,L=D?F<N?F-N:F-R:0;return{[p]:d[p]+L,data:{[p]:I,centerOffset:F-I-L,...D&&{alignmentOffset:L}},reset:D}}}),gz=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...v}=xi(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=bi(i),x=Dr(s),b=bi(s)===s,O=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=d||(b||!g?[ep(s)]:az(s)),w=m!=="none";!d&&w&&S.push(...cz(s,g,m,O));const E=[s,...S],P=await l.detectOverflow(t,v),_=[];let A=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&_.push(P[y]),c){const F=oz(i,a,O);_.push(P[F[0]],P[F[1]])}if(A=[...A,{placement:i,overflows:_}],!_.every(F=>F<=0)){var $,N;const F=((($=o.flip)==null?void 0:$.index)||0)+1,I=E[F];if(I&&(!(c==="alignment"?x!==Dr(I):!1)||A.every(M=>Dr(M.placement)===x?M.overflows[0]>0:!0)))return{data:{index:F,overflows:A},reset:{placement:I}};let D=(N=A.filter(L=>L.overflows[0]<=0).sort((L,M)=>L.overflows[1]-M.overflows[1])[0])==null?void 0:N.placement;if(!D)switch(p){case"bestFit":{var R;const L=(R=A.filter(M=>{if(w){const z=Dr(M.placement);return z===x||z==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(z=>z>0).reduce((z,j)=>z+j,0)]).sort((M,z)=>M[1]-z[1])[0])==null?void 0:R[0];L&&(D=L);break}case"initialPlacement":D=s;break}if(i!==D)return{reset:{placement:D}}}return{}}}};function lk(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uk(e){return rz.some(t=>e[t]>=0)}const yz=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=xi(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...o,elementContext:"reference"}),s=lk(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:uk(s)}}}case"escaped":{const a=await r.detectOverflow(t,{...o,altBoundary:!0}),s=lk(a,n.floating);return{data:{escapedOffsets:s,escaped:uk(s)}}}default:return{}}}}},GT=new Set(["left","top"]);async function vz(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=bi(n),s=al(n),l=Dr(n)==="y",u=GT.has(a)?-1:1,f=o&&l?-1:1,c=xi(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof m=="number"&&(p=s==="end"?m*-1:m),l?{x:p*f,y:d*u}:{x:d*u,y:p*f}}const xz=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await vz(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},bz=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x,y:b}=y;return{x,y:b}}},...u}=xi(e,t),f={x:n,y:r},c=await o.detectOverflow(t,u),d=Dr(bi(i)),p=I0(d);let m=f[p],g=f[d];if(a){const y=p==="y"?"top":"left",x=p==="y"?"bottom":"right",b=m+c[y],O=m-c[x];m=Rv(b,m,O)}if(s){const y=d==="y"?"top":"left",x=d==="y"?"bottom":"right",b=g+c[y],O=g-c[x];g=Rv(b,g,O)}const v=l.fn({...t,[p]:m,[d]:g});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:a,[d]:s}}}}}},wz=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=xi(e,t),f={x:n,y:r},c=Dr(i),d=I0(c);let p=f[d],m=f[c];const g=xi(s,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const b=d==="y"?"height":"width",O=o.reference[d]-o.floating[b]+v.mainAxis,S=o.reference[d]+o.reference[b]-v.mainAxis;p<O?p=O:p>S&&(p=S)}if(u){var y,x;const b=d==="y"?"width":"height",O=GT.has(bi(i)),S=o.reference[c]-o.floating[b]+(O&&((y=a.offset)==null?void 0:y[c])||0)+(O?0:v.crossAxis),w=o.reference[c]+o.reference[b]+(O?0:((x=a.offset)==null?void 0:x[c])||0)-(O?v.crossAxis:0);m<S?m=S:m>w&&(m=w)}return{[d]:p,[c]:m}}}},Sz=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...u}=xi(e,t),f=await a.detectOverflow(t,u),c=bi(i),d=al(i),p=Dr(i)==="y",{width:m,height:g}=o.floating;let v,y;c==="top"||c==="bottom"?(v=c,y=d===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,v=d==="end"?"top":"bottom");const x=g-f.top-f.bottom,b=m-f.left-f.right,O=ho(g-f[v],x),S=ho(m-f[y],b),w=!t.middlewareData.shift;let E=O,P=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=x),w&&!d){const A=jn(f.left,0),$=jn(f.right,0),N=jn(f.top,0),R=jn(f.bottom,0);p?P=m-2*(A!==0||$!==0?A+$:jn(f.left,f.right)):E=g-2*(N!==0||R!==0?N+R:jn(f.top,f.bottom))}await l({...t,availableWidth:P,availableHeight:E});const _=await a.getDimensions(s.floating);return m!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}};function Bh(){return typeof window<"u"}function sl(e){return YT(e)?(e.nodeName||"").toLowerCase():"#document"}function Nn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gr(e){var t;return(t=(YT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function YT(e){return Bh()?e instanceof Node||e instanceof Nn(e).Node:!1}function kr(e){return Bh()?e instanceof Element||e instanceof Nn(e).Element:!1}function Ci(e){return Bh()?e instanceof HTMLElement||e instanceof Nn(e).HTMLElement:!1}function ck(e){return!Bh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nn(e).ShadowRoot}function Ic(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Or(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function kz(e){return/^(table|td|th)$/.test(sl(e))}function Wh(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Oz=/transform|translate|scale|rotate|perspective|filter/,Ez=/paint|layout|strict|content/,Ao=e=>!!e&&e!=="none";let $g;function L0(e){const t=kr(e)?Or(e):e;return Ao(t.transform)||Ao(t.translate)||Ao(t.scale)||Ao(t.rotate)||Ao(t.perspective)||!F0()&&(Ao(t.backdropFilter)||Ao(t.filter))||Oz.test(t.willChange||"")||Ez.test(t.contain||"")}function Pz(e){let t=mo(e);for(;Ci(t)&&!ks(t);){if(L0(t))return t;if(Wh(t))return null;t=mo(t)}return null}function F0(){return $g==null&&($g=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$g}function ks(e){return/^(html|body|#document)$/.test(sl(e))}function Or(e){return Nn(e).getComputedStyle(e)}function Uh(e){return kr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mo(e){if(sl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ck(e)&&e.host||Gr(e);return ck(t)?t.host:t}function XT(e){const t=mo(e);return ks(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ci(t)&&Ic(t)?t:XT(t)}function Bu(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=XT(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Nn(i);if(o){const s=Lv(a);return t.concat(a,a.visualViewport||[],Ic(i)?i:[],s&&n?Bu(s):[])}else return t.concat(i,Bu(i,[],n))}function Lv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function QT(e){const t=Or(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ci(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Zd(n)!==o||Zd(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function z0(e){return kr(e)?e:e.contextElement}function ls(e){const t=z0(e);if(!Ci(t))return Wr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=QT(t);let a=(o?Zd(n.width):n.width)/r,s=(o?Zd(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const jz=Wr(0);function JT(e){const t=Nn(e);return!F0()||!t.visualViewport?jz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Az(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nn(e)?!1:t}function oa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=z0(e);let a=Wr(1);t&&(r?kr(r)&&(a=ls(r)):a=ls(e));const s=Az(o,n,r)?JT(o):Wr(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,f=i.width/a.x,c=i.height/a.y;if(o){const d=Nn(o),p=r&&kr(r)?Nn(r):r;let m=d,g=Lv(m);for(;g&&r&&p!==m;){const v=ls(g),y=g.getBoundingClientRect(),x=Or(g),b=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,O=y.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,f*=v.x,c*=v.y,l+=b,u+=O,m=Nn(g),g=Lv(m)}}return tp({width:f,height:c,x:l,y:u})}function Hh(e,t){const n=Uh(e).scrollLeft;return t?t.left+n:oa(Gr(e)).left+n}function ZT(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Hh(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function _z(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Gr(r),s=t?Wh(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Wr(1);const f=Wr(0),c=Ci(r);if((c||!c&&!o)&&((sl(r)!=="body"||Ic(a))&&(l=Uh(r)),c)){const p=oa(r);u=ls(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const d=a&&!c&&!o?ZT(a,l):Wr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-l.scrollTop*u.y+f.y+d.y}}function Cz(e){return Array.from(e.getClientRects())}function Tz(e){const t=Gr(e),n=Uh(e),r=e.ownerDocument.body,i=jn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=jn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Hh(e);const s=-n.scrollTop;return Or(r).direction==="rtl"&&(a+=jn(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}const fk=25;function Nz(e,t){const n=Nn(e),r=Gr(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const f=F0();(!f||f&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const u=Hh(r);if(u<=0){const f=r.ownerDocument,c=f.body,d=getComputedStyle(c),p=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,m=Math.abs(r.clientWidth-c.clientWidth-p);m<=fk&&(o-=m)}else u<=fk&&(o+=u);return{width:o,height:a,x:s,y:l}}function $z(e,t){const n=oa(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ci(e)?ls(e):Wr(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:s,x:l,y:u}}function dk(e,t,n){let r;if(t==="viewport")r=Nz(e,n);else if(t==="document")r=Tz(Gr(e));else if(kr(t))r=$z(t,n);else{const i=JT(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return tp(r)}function e2(e,t){const n=mo(e);return n===t||!kr(n)||ks(n)?!1:Or(n).position==="fixed"||e2(n,t)}function Mz(e,t){const n=t.get(e);if(n)return n;let r=Bu(e,[],!1).filter(s=>kr(s)&&sl(s)!=="body"),i=null;const o=Or(e).position==="fixed";let a=o?mo(e):e;for(;kr(a)&&!ks(a);){const s=Or(a),l=L0(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Ic(a)&&!l&&e2(e,a))?r=r.filter(f=>f!==a):i=s,a=mo(a)}return t.set(e,r),r}function Iz(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Wh(t)?[]:Mz(t,this._c):[].concat(n),r],s=dk(t,a[0],i);let l=s.top,u=s.right,f=s.bottom,c=s.left;for(let d=1;d<a.length;d++){const p=dk(t,a[d],i);l=jn(p.top,l),u=ho(p.right,u),f=ho(p.bottom,f),c=jn(p.left,c)}return{width:u-c,height:f-l,x:c,y:l}}function Rz(e){const{width:t,height:n}=QT(e);return{width:t,height:n}}function Dz(e,t,n){const r=Ci(t),i=Gr(t),o=n==="fixed",a=oa(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Wr(0);function u(){l.x=Hh(i)}if(r||!r&&!o)if((sl(t)!=="body"||Ic(i))&&(s=Uh(t)),r){const p=oa(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&u();o&&!r&&i&&u();const f=i&&!r&&!o?ZT(i,s):Wr(0),c=a.left+s.scrollLeft-l.x-f.x,d=a.top+s.scrollTop-l.y-f.y;return{x:c,y:d,width:a.width,height:a.height}}function Mg(e){return Or(e).position==="static"}function pk(e,t){if(!Ci(e)||Or(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Gr(e)===n&&(n=n.ownerDocument.body),n}function t2(e,t){const n=Nn(e);if(Wh(e))return n;if(!Ci(e)){let i=mo(e);for(;i&&!ks(i);){if(kr(i)&&!Mg(i))return i;i=mo(i)}return n}let r=pk(e,t);for(;r&&kz(r)&&Mg(r);)r=pk(r,t);return r&&ks(r)&&Mg(r)&&!L0(r)?n:r||Pz(e)||n}const Lz=async function(e){const t=this.getOffsetParent||t2,n=this.getDimensions,r=await n(e.floating);return{reference:Dz(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Fz(e){return Or(e).direction==="rtl"}const zz={convertOffsetParentRelativeRectToViewportRelativeRect:_z,getDocumentElement:Gr,getClippingRect:Iz,getOffsetParent:t2,getElementRects:Lz,getClientRects:Cz,getDimensions:Rz,getScale:ls,isElement:kr,isRTL:Fz};function n2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Bz(e,t){let n=null,r;const i=Gr(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:f,top:c,width:d,height:p}=u;if(s||t(),!d||!p)return;const m=Sf(c),g=Sf(i.clientWidth-(f+d)),v=Sf(i.clientHeight-(c+p)),y=Sf(f),b={rootMargin:-m+"px "+-g+"px "+-v+"px "+-y+"px",threshold:jn(0,ho(1,l))||1};let O=!0;function S(w){const E=w[0].intersectionRatio;if(E!==l){if(!O)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!n2(u,e.getBoundingClientRect())&&a(),O=!1}try{n=new IntersectionObserver(S,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return a(!0),o}function Wz(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=z0(e),f=i||o?[...u?Bu(u):[],...t?Bu(t):[]]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const c=u&&s?Bz(u,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),u&&!l&&p.observe(u),t&&p.observe(t));let m,g=l?oa(e):null;l&&v();function v(){const y=oa(e);g&&!n2(g,y)&&n(),g=y,m=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),c==null||c(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const Uz=xz,Hz=bz,Vz=gz,Kz=Sz,qz=yz,hk=mz,Gz=wz,Yz=(e,t,n)=>{const r=new Map,i={platform:zz,...n},o={...i.platform,_c:r};return hz(e,t,{...i,platform:o})};var Xz=typeof document<"u",Qz=function(){},hd=Xz?k.useLayoutEffect:Qz;function np(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,i;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(!np(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!np(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function r2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mk(e,t){const n=r2(e);return Math.round(t*n)/n}function Ig(e){const t=k.useRef(e);return hd(()=>{t.current=e}),t}function Jz(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[f,c]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=k.useState(r);np(d,r)||p(r);const[m,g]=k.useState(null),[v,y]=k.useState(null),x=k.useCallback(M=>{M!==w.current&&(w.current=M,g(M))},[]),b=k.useCallback(M=>{M!==E.current&&(E.current=M,y(M))},[]),O=o||m,S=a||v,w=k.useRef(null),E=k.useRef(null),P=k.useRef(f),_=l!=null,A=Ig(l),$=Ig(i),N=Ig(u),R=k.useCallback(()=>{if(!w.current||!E.current)return;const M={placement:t,strategy:n,middleware:d};$.current&&(M.platform=$.current),Yz(w.current,E.current,M).then(z=>{const j={...z,isPositioned:N.current!==!1};F.current&&!np(P.current,j)&&(P.current=j,Ih.flushSync(()=>{c(j)}))})},[d,t,n,$,N]);hd(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,c(M=>({...M,isPositioned:!1})))},[u]);const F=k.useRef(!1);hd(()=>(F.current=!0,()=>{F.current=!1}),[]),hd(()=>{if(O&&(w.current=O),S&&(E.current=S),O&&S){if(A.current)return A.current(O,S,R);R()}},[O,S,R,A,_]);const I=k.useMemo(()=>({reference:w,floating:E,setReference:x,setFloating:b}),[x,b]),D=k.useMemo(()=>({reference:O,floating:S}),[O,S]),L=k.useMemo(()=>{const M={position:n,left:0,top:0};if(!D.floating)return M;const z=mk(D.floating,f.x),j=mk(D.floating,f.y);return s?{...M,transform:"translate("+z+"px, "+j+"px)",...r2(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:j}},[n,s,D.floating,f.x,f.y]);return k.useMemo(()=>({...f,update:R,refs:I,elements:D,floatingStyles:L}),[f,R,I,D,L])}const Zz=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?hk({element:r.current,padding:i}).fn(n):{}:r?hk({element:r,padding:i}).fn(n):{}}}},eB=(e,t)=>{const n=Uz(e);return{name:n.name,fn:n.fn,options:[e,t]}},tB=(e,t)=>{const n=Hz(e);return{name:n.name,fn:n.fn,options:[e,t]}},nB=(e,t)=>({fn:Gz(e).fn,options:[e,t]}),rB=(e,t)=>{const n=Vz(e);return{name:n.name,fn:n.fn,options:[e,t]}},iB=(e,t)=>{const n=Kz(e);return{name:n.name,fn:n.fn,options:[e,t]}},oB=(e,t)=>{const n=qz(e);return{name:n.name,fn:n.fn,options:[e,t]}},aB=(e,t)=>{const n=Zz(e);return{name:n.name,fn:n.fn,options:[e,t]}};var sB="Arrow",i2=k.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return h.jsx(xn.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});i2.displayName=sB;var lB=i2;function uB(e){const[t,n]=k.useState(void 0);return po(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var B0="Popper",[o2,a2]=$0(B0),[cB,s2]=o2(B0),l2=e=>{const{__scopePopper:t,children:n}=e,[r,i]=k.useState(null);return h.jsx(cB,{scope:t,anchor:r,onAnchorChange:i,children:n})};l2.displayName=B0;var u2="PopperAnchor",c2=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=s2(u2,n),a=k.useRef(null),s=Er(t,a),l=k.useRef(null);return k.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||a.current,u!==l.current&&o.onAnchorChange(l.current)}),r?null:h.jsx(xn.div,{...i,ref:s})});c2.displayName=u2;var W0="PopperContent",[fB,dB]=o2(W0),f2=k.forwardRef((e,t)=>{var Ae,ae,K,ie,oe,V;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:d=!1,updatePositionStrategy:p="optimized",onPlaced:m,...g}=e,v=s2(W0,n),[y,x]=k.useState(null),b=Er(t,ke=>x(ke)),[O,S]=k.useState(null),w=uB(O),E=(w==null?void 0:w.width)??0,P=(w==null?void 0:w.height)??0,_=r+(o!=="center"?"-"+o:""),A=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(u)?u:[u],N=$.length>0,R={padding:A,boundary:$.filter(hB),altBoundary:N},{refs:F,floatingStyles:I,placement:D,isPositioned:L,middlewareData:M}=Jz({strategy:"fixed",placement:_,whileElementsMounted:(...ke)=>Wz(...ke,{animationFrame:p==="always"}),elements:{reference:v.anchor},middleware:[eB({mainAxis:i+P,alignmentAxis:a}),l&&tB({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?nB():void 0,...R}),l&&rB({...R}),iB({...R,apply:({elements:ke,rects:de,availableWidth:ze,availableHeight:De})=>{const{width:Ge,height:Yt}=de.reference,et=ke.floating.style;et.setProperty("--radix-popper-available-width",`${ze}px`),et.setProperty("--radix-popper-available-height",`${De}px`),et.setProperty("--radix-popper-anchor-width",`${Ge}px`),et.setProperty("--radix-popper-anchor-height",`${Yt}px`)}}),O&&aB({element:O,padding:s}),mB({arrowWidth:E,arrowHeight:P}),d&&oB({strategy:"referenceHidden",...R})]}),[z,j]=h2(D),W=Ss(m);po(()=>{L&&(W==null||W())},[L,W]);const U=(Ae=M.arrow)==null?void 0:Ae.x,T=(ae=M.arrow)==null?void 0:ae.y,Y=((K=M.arrow)==null?void 0:K.centerOffset)!==0,[J,Z]=k.useState();return po(()=>{y&&Z(window.getComputedStyle(y).zIndex)},[y]),h.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:L?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(ie=M.transformOrigin)==null?void 0:ie.x,(oe=M.transformOrigin)==null?void 0:oe.y].join(" "),...((V=M.hide)==null?void 0:V.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(fB,{scope:n,placedSide:z,onArrowChange:S,arrowX:U,arrowY:T,shouldHideArrow:Y,children:h.jsx(xn.div,{"data-side":z,"data-align":j,...g,ref:b,style:{...g.style,animation:L?void 0:"none"}})})})});f2.displayName=W0;var d2="PopperArrow",pB={top:"bottom",right:"left",bottom:"top",left:"right"},p2=k.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=dB(d2,r),a=pB[o.placedSide];return h.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:h.jsx(lB,{...i,ref:n,style:{...i.style,display:"block"}})})});p2.displayName=d2;function hB(e){return e!==null}var mB=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:n,rects:r,middlewareData:i}=t,a=((v=i.arrow)==null?void 0:v.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,f]=h2(n),c={start:"0%",center:"50%",end:"100%"}[f],d=(((y=i.arrow)==null?void 0:y.x)??0)+s/2,p=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let m="",g="";return u==="bottom"?(m=a?c:`${d}px`,g=`${-l}px`):u==="top"?(m=a?c:`${d}px`,g=`${r.floating.height+l}px`):u==="right"?(m=`${-l}px`,g=a?c:`${p}px`):u==="left"&&(m=`${r.floating.width+l}px`,g=a?c:`${p}px`),{data:{x:m,y:g}}}});function h2(e){const[t,n="center"]=e.split("-");return[t,n]}var gB=l2,yB=c2,vB=f2,xB=p2,bB="Portal",m2=k.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[i,o]=k.useState(!1);po(()=>o(!0),[]);const a=n||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?ST.createPortal(h.jsx(xn.div,{...r,ref:t}),a):null});m2.displayName=bB;function wB(e,t){return k.useReducer((n,r)=>t[n][r]??n,e)}var Rc=e=>{const{present:t,children:n}=e,r=SB(t),i=typeof n=="function"?n({present:r.isPresent}):k.Children.only(n),o=Er(r.ref,kB(i));return typeof n=="function"||r.isPresent?k.cloneElement(i,{ref:o}):null};Rc.displayName="Presence";function SB(e){const[t,n]=k.useState(),r=k.useRef(null),i=k.useRef(e),o=k.useRef("none"),a=e?"mounted":"unmounted",[s,l]=wB(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const u=kf(r.current);o.current=s==="mounted"?u:"none"},[s]),po(()=>{const u=r.current,f=i.current;if(f!==e){const d=o.current,p=kf(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&d!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),po(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,c=p=>{const g=kf(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&g&&(l("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},d=p=>{p.target===t&&(o.current=kf(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:k.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function kf(e){return(e==null?void 0:e.animationName)||"none"}function kB(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var OB=Symbol("radix.slottable");function EB(e){const t=({children:n})=>h.jsx(h.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=OB,t}var PB=Rb[" useInsertionEffect ".trim().toString()]||po;function g2({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=jB({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:i;{const f=k.useRef(e!==void 0);k.useEffect(()=>{const c=f.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=s},[s,r])}const u=k.useCallback(f=>{var c;if(s){const d=AB(f)?f(e):f;d!==e&&((c=a.current)==null||c.call(a,d))}else o(f)},[s,e,o,a]);return[l,u]}function jB({defaultProp:e,onChange:t}){const[n,r]=k.useState(e),i=k.useRef(n),o=k.useRef(t);return PB(()=>{o.current=t},[t]),k.useEffect(()=>{var a;i.current!==n&&((a=o.current)==null||a.call(o,n),i.current=n)},[n,i]),[n,r,o]}function AB(e){return typeof e=="function"}var _B=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),CB="VisuallyHidden",y2=k.forwardRef((e,t)=>h.jsx(xn.span,{...e,ref:t,style:{..._B,...e.style}}));y2.displayName=CB;var TB=y2,[Vh]=$0("Tooltip",[a2]),Kh=a2(),v2="TooltipProvider",NB=700,Fv="tooltip.open",[$B,U0]=Vh(v2),x2=e=>{const{__scopeTooltip:t,delayDuration:n=NB,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,a=k.useRef(!0),s=k.useRef(!1),l=k.useRef(0);return k.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),h.jsx($B,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:k.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:k.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:k.useCallback(u=>{s.current=u},[]),disableHoverableContent:i,children:o})};x2.displayName=v2;var Wu="Tooltip",[MB,qh]=Vh(Wu),b2=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=U0(Wu,e.__scopeTooltip),u=Kh(t),[f,c]=k.useState(null),d=pd(),p=k.useRef(0),m=a??l.disableHoverableContent,g=s??l.delayDuration,v=k.useRef(!1),[y,x]=g2({prop:r,defaultProp:i??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(Fv))):l.onClose(),o==null||o(E)},caller:Wu}),b=k.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),O=k.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v.current=!1,x(!0)},[x]),S=k.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),w=k.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,x(!0),p.current=0},g)},[g,x]);return k.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),h.jsx(gB,{...u,children:h.jsx(MB,{scope:t,contentId:d,open:y,stateAttribute:b,trigger:f,onTriggerChange:c,onTriggerEnter:k.useCallback(()=>{l.isOpenDelayedRef.current?w():O()},[l.isOpenDelayedRef,w,O]),onTriggerLeave:k.useCallback(()=>{m?S():(window.clearTimeout(p.current),p.current=0)},[S,m]),onOpen:O,onClose:S,disableHoverableContent:m,children:n})})};b2.displayName=Wu;var zv="TooltipTrigger",w2=k.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=qh(zv,n),o=U0(zv,n),a=Kh(n),s=k.useRef(null),l=Er(t,s,i.onTriggerChange),u=k.useRef(!1),f=k.useRef(!1),c=k.useCallback(()=>u.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),h.jsx(yB,{asChild:!0,...a,children:h.jsx(xn.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:dn(e.onPointerMove,d=>{d.pointerType!=="touch"&&!f.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),f.current=!0)}),onPointerLeave:dn(e.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:dn(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:dn(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:dn(e.onBlur,i.onClose),onClick:dn(e.onClick,i.onClose)})})});w2.displayName=zv;var IB="TooltipPortal",[Vje,RB]=Vh(IB,{forceMount:void 0}),Os="TooltipContent",S2=k.forwardRef((e,t)=>{const n=RB(Os,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=qh(Os,e.__scopeTooltip);return h.jsx(Rc,{present:r||a.open,children:a.disableHoverableContent?h.jsx(k2,{side:i,...o,ref:t}):h.jsx(DB,{side:i,...o,ref:t})})}),DB=k.forwardRef((e,t)=>{const n=qh(Os,e.__scopeTooltip),r=U0(Os,e.__scopeTooltip),i=k.useRef(null),o=Er(t,i),[a,s]=k.useState(null),{trigger:l,onClose:u}=n,f=i.current,{onPointerInTransitChange:c}=r,d=k.useCallback(()=>{s(null),c(!1)},[c]),p=k.useCallback((m,g)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},x=WB(y,v.getBoundingClientRect()),b=UB(y,x),O=HB(g.getBoundingClientRect()),S=KB([...b,...O]);s(S),c(!0)},[c]);return k.useEffect(()=>()=>d(),[d]),k.useEffect(()=>{if(l&&f){const m=v=>p(v,f),g=v=>p(v,l);return l.addEventListener("pointerleave",m),f.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),f.removeEventListener("pointerleave",g)}}},[l,f,p,d]),k.useEffect(()=>{if(a){const m=g=>{const v=g.target,y={x:g.clientX,y:g.clientY},x=(l==null?void 0:l.contains(v))||(f==null?void 0:f.contains(v)),b=!VB(y,a);x?d():b&&(d(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,f,a,u,d]),h.jsx(k2,{...e,ref:o})}),[LB,FB]=Vh(Wu,{isInside:!1}),zB=EB("TooltipContent"),k2=k.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=qh(Os,n),u=Kh(n),{onClose:f}=l;return k.useEffect(()=>(document.addEventListener(Fv,f),()=>document.removeEventListener(Fv,f)),[f]),k.useEffect(()=>{if(l.trigger){const c=d=>{const p=d.target;p!=null&&p.contains(l.trigger)&&f()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,f]),h.jsx(M0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:c=>c.preventDefault(),onDismiss:f,children:h.jsxs(vB,{"data-state":l.stateAttribute,...u,...s,ref:t,style:{...s.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)"},children:[h.jsx(zB,{children:r}),h.jsx(LB,{scope:n,isInside:!0,children:h.jsx(TB,{id:l.contentId,role:"tooltip",children:i||r})})]})})});S2.displayName=Os;var O2="TooltipArrow",BB=k.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Kh(n);return FB(O2,n).isInside?null:h.jsx(xB,{...i,...r,ref:t})});BB.displayName=O2;function WB(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function UB(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 HB(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function VB(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const s=t[o],l=t[a],u=s.x,f=s.y,c=l.x,d=l.y;f>r!=d>r&&n<(c-u)*(r-f)/(d-f)+u&&(i=!i)}return i}function KB(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),qB(t)}function qB(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}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)}var GB=x2,YB=b2,XB=w2,E2=S2;function P2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=P2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function he(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=P2(e))&&(r&&(r+=" "),r+=t);return r}const QB=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},JB=(e,t)=>({classGroupId:e,validator:t}),j2=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),rp="-",gk=[],ZB="arbitrary..",e6=e=>{const t=n6(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return t6(a);const s=a.split(rp),l=s[0]===""&&s.length>1?1:0;return A2(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=r[a],u=n[a];return l?u?QB(u,l):l:u||gk}return n[a]||gk}}},A2=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const u=A2(e,t+1,o);if(u)return u}const a=n.validators;if(a===null)return;const s=t===0?e.join(rp):e.slice(t).join(rp),l=a.length;for(let u=0;u<l;u++){const f=a[u];if(f.validator(s))return f.classGroupId}},t6=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?ZB+r:void 0})(),n6=e=>{const{theme:t,classGroups:n}=e;return r6(n,t)},r6=(e,t)=>{const n=j2();for(const r in e){const i=e[r];H0(i,n,r,t)}return n},H0=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const a=e[o];i6(a,t,n,r)}},i6=(e,t,n,r)=>{if(typeof e=="string"){o6(e,t,n);return}if(typeof e=="function"){a6(e,t,n,r);return}s6(e,t,n,r)},o6=(e,t,n)=>{const r=e===""?t:_2(t,e);r.classGroupId=n},a6=(e,t,n,r)=>{if(l6(e)){H0(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(JB(n,e))},s6=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let a=0;a<o;a++){const[s,l]=i[a];H0(l,_2(t,s),n,r)}},_2=(e,t)=>{let n=e;const r=t.split(rp),i=r.length;for(let o=0;o<i;o++){const a=r[o];let s=n.nextPart.get(a);s||(s=j2(),n.nextPart.set(a,s)),n=s}return n},l6=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,u6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,a)=>{n[o]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let a=n[o];if(a!==void 0)return a;if((a=r[o])!==void 0)return i(o,a),a},set(o,a){o in n?n[o]=a:i(o,a)}}},Bv="!",yk=":",c6=[],vk=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),f6=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let a=0,s=0,l=0,u;const f=i.length;for(let g=0;g<f;g++){const v=i[g];if(a===0&&s===0){if(v===yk){o.push(i.slice(l,g)),l=g+1;continue}if(v==="/"){u=g;continue}}v==="["?a++:v==="]"?a--:v==="("?s++:v===")"&&s--}const c=o.length===0?i:i.slice(l);let d=c,p=!1;c.endsWith(Bv)?(d=c.slice(0,-1),p=!0):c.startsWith(Bv)&&(d=c.slice(1),p=!0);const m=u&&u>l?u-l:void 0;return vk(o,p,d,m)};if(t){const i=t+yk,o=r;r=a=>a.startsWith(i)?o(a.slice(i.length)):vk(c6,!1,a,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},d6=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const a=n[o],s=a[0]==="[",l=t.has(a);s||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(a)):i.push(a)}return i.length>0&&(i.sort(),r.push(...i)),r}},p6=e=>({cache:u6(e.cacheSize),parseClassName:f6(e),sortModifiers:d6(e),...e6(e)}),h6=/\s+/,m6=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(h6);let l="";for(let u=s.length-1;u>=0;u-=1){const f=s[u],{isExternal:c,modifiers:d,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}=n(f);if(c){l=f+(l.length>0?" "+l:l);continue}let v=!!g,y=r(v?m.substring(0,g):m);if(!y){if(!v){l=f+(l.length>0?" "+l:l);continue}if(y=r(m),!y){l=f+(l.length>0?" "+l:l);continue}v=!1}const x=d.length===0?"":d.length===1?d[0]:o(d).join(":"),b=p?x+Bv:x,O=b+y;if(a.indexOf(O)>-1)continue;a.push(O);const S=i(y,v);for(let w=0;w<S.length;++w){const E=S[w];a.push(b+E)}l=f+(l.length>0?" "+l:l)}return l},g6=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=C2(n))&&(i&&(i+=" "),i+=r);return i},C2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=C2(e[r]))&&(n&&(n+=" "),n+=t);return n},y6=(e,...t)=>{let n,r,i,o;const a=l=>{const u=t.reduce((f,c)=>c(f),e());return n=p6(u),r=n.cache.get,i=n.cache.set,o=s,s(l)},s=l=>{const u=r(l);if(u)return u;const f=m6(l,n);return i(l,f),f};return o=a,(...l)=>o(g6(...l))},v6=[],yt=e=>{const t=n=>n[e]||v6;return t.isThemeGetter=!0,t},T2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,N2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,x6=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,b6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,w6=/\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$/,S6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,k6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,O6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zi=e=>x6.test(e),be=e=>!!e&&!Number.isNaN(Number(e)),Bi=e=>!!e&&Number.isInteger(Number(e)),Rg=e=>e.endsWith("%")&&be(e.slice(0,-1)),Jr=e=>b6.test(e),$2=()=>!0,E6=e=>w6.test(e)&&!S6.test(e),V0=()=>!1,P6=e=>k6.test(e),j6=e=>O6.test(e),A6=e=>!ne(e)&&!re(e),_6=e=>xo(e,R2,V0),ne=e=>T2.test(e),_o=e=>xo(e,D2,E6),xk=e=>xo(e,D6,be),C6=e=>xo(e,F2,$2),T6=e=>xo(e,L2,V0),bk=e=>xo(e,M2,V0),N6=e=>xo(e,I2,j6),Of=e=>xo(e,z2,P6),re=e=>N2.test(e),Ll=e=>ga(e,D2),$6=e=>ga(e,L2),wk=e=>ga(e,M2),M6=e=>ga(e,R2),I6=e=>ga(e,I2),Ef=e=>ga(e,z2,!0),R6=e=>ga(e,F2,!0),xo=(e,t,n)=>{const r=T2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ga=(e,t,n=!1)=>{const r=N2.exec(e);return r?r[1]?t(r[1]):n:!1},M2=e=>e==="position"||e==="percentage",I2=e=>e==="image"||e==="url",R2=e=>e==="length"||e==="size"||e==="bg-size",D2=e=>e==="length",D6=e=>e==="number",L2=e=>e==="family-name",F2=e=>e==="number"||e==="weight",z2=e=>e==="shadow",L6=()=>{const e=yt("color"),t=yt("font"),n=yt("text"),r=yt("font-weight"),i=yt("tracking"),o=yt("leading"),a=yt("breakpoint"),s=yt("container"),l=yt("spacing"),u=yt("radius"),f=yt("shadow"),c=yt("inset-shadow"),d=yt("text-shadow"),p=yt("drop-shadow"),m=yt("blur"),g=yt("perspective"),v=yt("aspect"),y=yt("ease"),x=yt("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...O(),re,ne],w=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],P=()=>[re,ne,l],_=()=>[zi,"full","auto",...P()],A=()=>[Bi,"none","subgrid",re,ne],$=()=>["auto",{span:["full",Bi,re,ne]},Bi,re,ne],N=()=>[Bi,"auto",re,ne],R=()=>["auto","min","max","fr",re,ne],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...P()],L=()=>[zi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],M=()=>[zi,"screen","full","dvw","lvw","svw","min","max","fit",...P()],z=()=>[zi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],j=()=>[e,re,ne],W=()=>[...O(),wk,bk,{position:[re,ne]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",M6,_6,{size:[re,ne]}],Y=()=>[Rg,Ll,_o],J=()=>["","none","full",u,re,ne],Z=()=>["",be,Ll,_o],Ae=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[be,Rg,wk,bk],ie=()=>["","none",m,re,ne],oe=()=>["none",be,re,ne],V=()=>["none",be,re,ne],ke=()=>[be,re,ne],de=()=>[zi,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jr],breakpoint:[Jr],color:[$2],container:[Jr],"drop-shadow":[Jr],ease:["in","out","in-out"],font:[A6],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jr],shadow:[Jr],spacing:["px",be],text:[Jr],"text-shadow":[Jr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zi,ne,re,v]}],container:["container"],columns:[{columns:[be,ne,re,s]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"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"],sr:["sr-only","not-sr-only"],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:S()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{"inset-s":_(),start:_()}],end:[{"inset-e":_(),end:_()}],"inset-bs":[{"inset-bs":_()}],"inset-be":[{"inset-be":_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[Bi,"auto",re,ne]}],basis:[{basis:[zi,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[be,zi,"auto","initial","none",ne]}],grow:[{grow:["",be,re,ne]}],shrink:[{shrink:["",be,re,ne]}],order:[{order:[Bi,"first","last","none",re,ne]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...z()]}],"min-block-size":[{"min-block":["auto",...z()]}],"max-block-size":[{"max-block":["none",...z()]}],w:[{w:[s,"screen",...L()]}],"min-w":[{"min-w":[s,"screen","none",...L()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,Ll,_o]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,R6,C6]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rg,ne]}],"font-family":[{font:[$6,T6,t]}],"font-features":[{"font-features":[ne]}],"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-fractions"],tracking:[{tracking:[i,re,ne]}],"line-clamp":[{"line-clamp":[be,"none",re,xk]}],leading:[{leading:[o,...P()]}],"list-image":[{"list-image":["none",re,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[be,"from-font","auto",re,_o]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[be,"auto",re,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:W()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Bi,re,ne],radial:["",re,ne],conic:[Bi,re,ne]},I6,N6]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-bs":[{"border-bs":Z()}],"border-w-be":[{"border-be":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[be,re,ne]}],"outline-w":[{outline:["",be,Ll,_o]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",f,Ef,Of]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",c,Ef,Of]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[be,_o]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",d,Ef,Of]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[be,re,ne]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[be]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[re,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[be]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:W()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,ne]}],filter:[{filter:["","none",re,ne]}],blur:[{blur:ie()}],brightness:[{brightness:[be,re,ne]}],contrast:[{contrast:[be,re,ne]}],"drop-shadow":[{"drop-shadow":["","none",p,Ef,Of]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",be,re,ne]}],"hue-rotate":[{"hue-rotate":[be,re,ne]}],invert:[{invert:["",be,re,ne]}],saturate:[{saturate:[be,re,ne]}],sepia:[{sepia:["",be,re,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",re,ne]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[be,re,ne]}],"backdrop-contrast":[{"backdrop-contrast":[be,re,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",be,re,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[be,re,ne]}],"backdrop-invert":[{"backdrop-invert":["",be,re,ne]}],"backdrop-opacity":[{"backdrop-opacity":[be,re,ne]}],"backdrop-saturate":[{"backdrop-saturate":[be,re,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",be,re,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[be,"initial",re,ne]}],ease:[{ease:["linear","initial",y,re,ne]}],delay:[{delay:[be,re,ne]}],animate:[{animate:["none",x,re,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,re,ne]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:V()}],"scale-x":[{"scale-x":V()}],"scale-y":[{"scale-y":V()}],"scale-z":[{"scale-z":V()}],"scale-3d":["scale-3d"],skew:[{skew:ke()}],"skew-x":[{"skew-x":ke()}],"skew-y":[{"skew-y":ke()}],transform:[{transform:[re,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",re,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",re,ne]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[be,Ll,_o,xk]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},F6=y6(L6);function le(...e){return F6(he(e))}const B2=GB,wi=YB,Si=XB,Vr=k.forwardRef(({className:e,sideOffset:t=4,...n},r)=>h.jsx(E2,{ref:r,sideOffset:t,className:le("z-50 overflow-hidden rounded-md border border-border bg-popover px-2.5 py-1.5 text-xs text-popover-foreground shadow-md 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",e),...n}));Vr.displayName=E2.displayName;/**
|
|
52
|
+
* @license lucide-react v0.577.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const W2=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
57
|
+
* @license lucide-react v0.577.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const z6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
62
|
+
* @license lucide-react v0.577.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const B6=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
67
|
+
* @license lucide-react v0.577.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const Sk=e=>{const t=B6(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
72
|
+
* @license lucide-react v0.577.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/var W6={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"};/**
|
|
77
|
+
* @license lucide-react v0.577.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const U6=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
|
82
|
+
* @license lucide-react v0.577.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const H6=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...s},l)=>k.createElement("svg",{ref:l,...W6,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:W2("lucide",i),...!o&&!U6(s)&&{"aria-hidden":"true"},...s},[...a.map(([u,f])=>k.createElement(u,f)),...Array.isArray(o)?o:[o]]));/**
|
|
87
|
+
* @license lucide-react v0.577.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const ge=(e,t)=>{const n=k.forwardRef(({className:r,...i},o)=>k.createElement(H6,{ref:o,iconNode:t,className:W2(`lucide-${z6(Sk(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Sk(e),n};/**
|
|
92
|
+
* @license lucide-react v0.577.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const V6=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],U2=ge("arrow-right",V6);/**
|
|
97
|
+
* @license lucide-react v0.577.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const K6=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],q6=ge("book-open",K6);/**
|
|
102
|
+
* @license lucide-react v0.577.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const G6=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Y6=ge("bot",G6);/**
|
|
107
|
+
* @license lucide-react v0.577.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const X6=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],H2=ge("chart-column",X6);/**
|
|
112
|
+
* @license lucide-react v0.577.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const Q6=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Gh=ge("check",Q6);/**
|
|
117
|
+
* @license lucide-react v0.577.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const J6=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],K0=ge("chevron-down",J6);/**
|
|
122
|
+
* @license lucide-react v0.577.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const Z6=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],q0=ge("chevron-right",Z6);/**
|
|
127
|
+
* @license lucide-react v0.577.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const e8=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],t8=ge("chevron-up",e8);/**
|
|
132
|
+
* @license lucide-react v0.577.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const n8=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],r8=ge("chevrons-up-down",n8);/**
|
|
137
|
+
* @license lucide-react v0.577.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const i8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Wv=ge("circle-alert",i8);/**
|
|
142
|
+
* @license lucide-react v0.577.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const o8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],V2=ge("circle-check",o8);/**
|
|
147
|
+
* @license lucide-react v0.577.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const a8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],s8=ge("circle-question-mark",a8);/**
|
|
152
|
+
* @license lucide-react v0.577.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const l8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],K2=ge("circle-x",l8);/**
|
|
157
|
+
* @license lucide-react v0.577.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const u8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],c8=ge("circle",u8);/**
|
|
162
|
+
* @license lucide-react v0.577.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const f8=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],d8=ge("clipboard-list",f8);/**
|
|
167
|
+
* @license lucide-react v0.577.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const p8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],h8=ge("clock",p8);/**
|
|
172
|
+
* @license lucide-react v0.577.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const m8=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],G0=ge("folder-open",m8);/**
|
|
177
|
+
* @license lucide-react v0.577.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const g8=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]],y8=ge("heart-pulse",g8);/**
|
|
182
|
+
* @license lucide-react v0.577.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const v8=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],kk=ge("house",v8);/**
|
|
187
|
+
* @license lucide-react v0.577.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const x8=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],b8=ge("layers",x8);/**
|
|
192
|
+
* @license lucide-react v0.577.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const w8=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],q2=ge("layout-dashboard",w8);/**
|
|
197
|
+
* @license lucide-react v0.577.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const S8=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],G2=ge("loader-circle",S8);/**
|
|
202
|
+
* @license lucide-react v0.577.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const k8=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],O8=ge("message-square",k8);/**
|
|
207
|
+
* @license lucide-react v0.577.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const E8=[["path",{d:"M5 12h14",key:"1ays0h"}]],P8=ge("minus",E8);/**
|
|
212
|
+
* @license lucide-react v0.577.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const j8=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],md=ge("package",j8);/**
|
|
217
|
+
* @license lucide-react v0.577.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const A8=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Y2=ge("play",A8);/**
|
|
222
|
+
* @license lucide-react v0.577.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const _8=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],C8=ge("plus",_8);/**
|
|
227
|
+
* @license lucide-react v0.577.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const T8=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],N8=ge("refresh-cw",T8);/**
|
|
232
|
+
* @license lucide-react v0.577.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const $8=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],M8=ge("rocket",$8);/**
|
|
237
|
+
* @license lucide-react v0.577.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const I8=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],R8=ge("rotate-ccw",I8);/**
|
|
242
|
+
* @license lucide-react v0.577.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const D8=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],X2=ge("search",D8);/**
|
|
247
|
+
* @license lucide-react v0.577.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const L8=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],F8=ge("send",L8);/**
|
|
252
|
+
* @license lucide-react v0.577.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const z8=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Y0=ge("settings",z8);/**
|
|
257
|
+
* @license lucide-react v0.577.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const B8=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],W8=ge("shield",B8);/**
|
|
262
|
+
* @license lucide-react v0.577.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const U8=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ok=ge("sparkles",U8);/**
|
|
267
|
+
* @license lucide-react v0.577.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const H8=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Q2=ge("terminal",H8);/**
|
|
272
|
+
* @license lucide-react v0.577.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const V8=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Ek=ge("trash-2",V8);/**
|
|
277
|
+
* @license lucide-react v0.577.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const K8=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],q8=ge("trending-down",K8);/**
|
|
282
|
+
* @license lucide-react v0.577.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const G8=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Y8=ge("trending-up",G8);/**
|
|
287
|
+
* @license lucide-react v0.577.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const X8=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Q8=ge("users",X8);/**
|
|
292
|
+
* @license lucide-react v0.577.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const J8=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Z8=ge("wrench",J8);/**
|
|
297
|
+
* @license lucide-react v0.577.0 - ISC
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the ISC license.
|
|
300
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/const eW=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],J2=ge("x",eW);function tW(){return h.jsxs("nav",{className:"relative z-50 h-11 flex items-center justify-between px-4 border-b border-border bg-card/50 backdrop-blur-sm",children:[h.jsxs(Vo,{to:"/",className:"flex items-center gap-2 text-foreground hover:text-foreground/80 transition-colors",children:[h.jsxs("span",{className:"font-mono text-sm font-bold",children:[h.jsx("span",{className:"text-dracula-purple",children:"spec"}),h.jsx("span",{className:"text-dracula-pink",children:"rails"})]}),h.jsx("span",{className:"text-muted-foreground text-xs font-normal",children:"/ manager"})]}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsxs(Vo,{to:"/",end:!0,className:({isActive:e})=>le("h-7 px-2 flex items-center gap-1.5 rounded-md text-xs transition-colors",e?"text-foreground bg-accent":"text-muted-foreground hover:text-foreground hover:bg-accent"),children:[h.jsx(q2,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"Home"})]}),h.jsxs(Vo,{to:"/analytics",className:({isActive:e})=>le("h-7 px-2 flex items-center gap-1.5 rounded-md text-xs transition-colors",e?"text-foreground bg-accent":"text-muted-foreground hover:text-foreground hover:bg-accent"),children:[h.jsx(H2,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"Analytics"})]})]}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsxs(wi,{children:[h.jsx(Si,{asChild:!0,children:h.jsx("a",{href:"https://specrails.dev/docs",target:"_blank",rel:"noopener noreferrer",className:"h-7 w-7 flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-accent transition-colors",children:h.jsx(q6,{className:"w-3.5 h-3.5"})})}),h.jsx(Vr,{children:"Docs"})]}),h.jsxs(wi,{children:[h.jsx(Si,{asChild:!0,children:h.jsx(Vo,{to:"/settings",className:({isActive:e})=>le("h-7 w-7 flex items-center justify-center rounded-md transition-colors",e?"text-foreground bg-accent":"text-muted-foreground hover:text-foreground hover:bg-accent"),children:h.jsx(Y0,{className:"w-3.5 h-3.5"})})}),h.jsx(Vr,{children:"Settings"})]})]})]})}let Uv=null,Z2=!1;function Pf(e,t){Z2=e,Uv=t}function Je(){return Z2&&Uv?`/api/projects/${Uv}`:"/api"}function eN({connectionStatus:e}){const[t,n]=k.useState(null);return k.useEffect(()=>{async function r(){try{const o=await fetch(`${Je()}/stats`);if(o.ok){const a=await o.json();n(a)}}catch{}}r();const i=setInterval(r,3e4);return()=>clearInterval(i)},[e]),h.jsxs("footer",{className:"h-7 flex items-center justify-between px-4 border-t border-border/30 bg-background/80 backdrop-blur-sm text-[10px] text-muted-foreground",children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:le("w-1.5 h-1.5 rounded-full",e==="connected"&&"bg-dracula-green",e==="connecting"&&"bg-dracula-orange animate-pulse",e==="disconnected"&&"bg-dracula-red")}),h.jsxs("span",{className:le(e==="connected"&&"text-dracula-green",e==="connecting"&&"text-dracula-orange",e==="disconnected"&&"text-dracula-red"),children:[e==="connected"&&"connected",e==="connecting"&&"connecting...",e==="disconnected"&&"disconnected"]})]}),t&&h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsxs("span",{children:["total: ",t.totalJobs," jobs"]}),t.totalCostUsd>0&&h.jsxs("span",{children:["$",t.totalCostUsd.toFixed(2)]})]})]})}var nW=Symbol.for("react.lazy"),ip=Rb[" use ".trim().toString()];function rW(e){return typeof e=="object"&&e!==null&&"then"in e}function tN(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===nW&&"_payload"in e&&rW(e._payload)}function nN(e){const t=oW(e),n=k.forwardRef((r,i)=>{let{children:o,...a}=r;tN(o)&&typeof ip=="function"&&(o=ip(o._payload));const s=k.Children.toArray(o),l=s.find(sW);if(l){const u=l.props.children,f=s.map(c=>c===l?k.Children.count(u)>1?k.Children.only(null):k.isValidElement(u)?u.props.children:null:c);return h.jsx(t,{...a,ref:i,children:k.isValidElement(u)?k.cloneElement(u,void 0,f):null})}return h.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var iW=nN("Slot");function oW(e){const t=k.forwardRef((n,r)=>{let{children:i,...o}=n;if(tN(i)&&typeof ip=="function"&&(i=ip(i._payload)),k.isValidElement(i)){const a=uW(i),s=lW(o,i.props);return i.type!==k.Fragment&&(s.ref=r?zh(r,a):a),k.cloneElement(i,s)}return k.Children.count(i)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aW=Symbol("radix.slottable");function sW(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aW}function lW(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{const l=o(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function uW(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Pk=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jk=he,rN=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return jk(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(u=>{const f=n==null?void 0:n[u],c=o==null?void 0:o[u];if(f===null)return null;const d=Pk(f)||Pk(c);return i[u][d]}),s=n&&Object.entries(n).reduce((u,f)=>{let[c,d]=f;return d===void 0||(u[c]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:d,...p}=f;return Object.entries(p).every(m=>{let[g,v]=m;return Array.isArray(v)?v.includes({...o,...s}[g]):{...o,...s}[g]===v})?[...u,c,d]:u},[]);return jk(e,a,l,n==null?void 0:n.class,n==null?void 0:n.className)},cW=rN("inline-flex items-center justify-center whitespace-nowrap rounded-md text-xs font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-3 py-1.5",sm:"h-7 rounded-md px-2",lg:"h-10 rounded-md px-6",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),je=k.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const a=r?iW:"button";return h.jsx(a,{className:le(cW({variant:t,size:n,className:e})),ref:o,...i})});je.displayName="Button";function fW({title:e,canCreateNew:t,onToggle:n,onNewConversation:r,onDeleteConversation:i,hasActiveConversation:o}){return h.jsxs("div",{className:"flex h-9 shrink-0 items-center justify-between border-b border-border/30 px-2.5",children:[h.jsx("span",{className:"truncate text-xs font-medium text-foreground",children:e??"Chat"}),h.jsxs("div",{className:"flex items-center gap-0.5",children:[h.jsx(je,{size:"icon",variant:"ghost",disabled:!t,title:"New conversation",className:"h-6 w-6",onClick:r,children:h.jsx("span",{className:"text-sm leading-none",children:"+"})}),o&&h.jsx(je,{size:"icon",variant:"ghost",title:"Delete conversation",className:"h-6 w-6 text-muted-foreground hover:text-dracula-red",onClick:i,children:h.jsx("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5",stroke:"currentColor",strokeWidth:"1.5",children:h.jsx("path",{strokeLinecap:"round",d:"M2 4h12M5.5 4V2.5h5V4M6 7v5M10 7v5M3 4l.9 8.5a1 1 0 001 .9h6.2a1 1 0 001-.9L13 4"})})}),h.jsx(je,{size:"icon",variant:"ghost",title:"Close chat",className:"h-6 w-6 text-muted-foreground",onClick:n,children:h.jsx("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5",stroke:"currentColor",strokeWidth:"1.5",children:h.jsx("path",{strokeLinecap:"round",d:"M12 4L4 12M4 4l8 8"})})})]})]})}function dW(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const pW=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hW=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mW={};function Ak(e,t){return(mW.jsx?hW:pW).test(e)}const gW=/[ \t\n\f\r]/g;function yW(e){return typeof e=="object"?e.type==="text"?_k(e.value):!1:_k(e)}function _k(e){return e.replace(gW,"")===""}class Dc{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Dc.prototype.normal={};Dc.prototype.property={};Dc.prototype.space=void 0;function iN(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Dc(n,r,t)}function Hv(e){return e.toLowerCase()}class bn{constructor(t,n){this.attribute=n,this.property=t}}bn.prototype.attribute="";bn.prototype.booleanish=!1;bn.prototype.boolean=!1;bn.prototype.commaOrSpaceSeparated=!1;bn.prototype.commaSeparated=!1;bn.prototype.defined=!1;bn.prototype.mustUseProperty=!1;bn.prototype.number=!1;bn.prototype.overloadedBoolean=!1;bn.prototype.property="";bn.prototype.spaceSeparated=!1;bn.prototype.space=void 0;let vW=0;const ve=ya(),pt=ya(),Vv=ya(),G=ya(),We=ya(),us=ya(),kn=ya();function ya(){return 2**++vW}const Kv=Object.freeze(Object.defineProperty({__proto__:null,boolean:ve,booleanish:pt,commaOrSpaceSeparated:kn,commaSeparated:us,number:G,overloadedBoolean:Vv,spaceSeparated:We},Symbol.toStringTag,{value:"Module"})),Dg=Object.keys(Kv);class X0 extends bn{constructor(t,n,r,i){let o=-1;if(super(t,n),Ck(this,"space",i),typeof r=="number")for(;++o<Dg.length;){const a=Dg[o];Ck(this,Dg[o],(r&Kv[a])===Kv[a])}}}X0.prototype.defined=!0;function Ck(e,t,n){n&&(e[t]=n)}function ll(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new X0(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Hv(r)]=r,n[Hv(o.attribute)]=r}return new Dc(t,n,e.space)}const oN=ll({properties:{ariaActiveDescendant:null,ariaAtomic:pt,ariaAutoComplete:null,ariaBusy:pt,ariaChecked:pt,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:We,ariaCurrent:null,ariaDescribedBy:We,ariaDetails:null,ariaDisabled:pt,ariaDropEffect:We,ariaErrorMessage:null,ariaExpanded:pt,ariaFlowTo:We,ariaGrabbed:pt,ariaHasPopup:null,ariaHidden:pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:We,ariaLevel:G,ariaLive:null,ariaModal:pt,ariaMultiLine:pt,ariaMultiSelectable:pt,ariaOrientation:null,ariaOwns:We,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:pt,ariaReadOnly:pt,ariaRelevant:null,ariaRequired:pt,ariaRoleDescription:We,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:pt,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function aN(e,t){return t in e?e[t]:t}function sN(e,t){return aN(e,t.toLowerCase())}const xW=ll({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:us,acceptCharset:We,accessKey:We,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:We,autoFocus:ve,autoPlay:ve,blocking:We,capture:null,charSet:null,checked:ve,cite:null,className:We,cols:G,colSpan:null,content:null,contentEditable:pt,controls:ve,controlsList:We,coords:G|us,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:Vv,draggable:pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:We,height:G,hidden:Vv,high:G,href:null,hrefLang:null,htmlFor:We,httpEquiv:We,id:null,imageSizes:null,imageSrcSet:null,inert:ve,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:We,itemRef:We,itemScope:ve,itemType:We,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:ve,muted:ve,name:null,nonce:null,noModule:ve,noValidate:ve,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ve,optimum:G,pattern:null,ping:We,placeholder:null,playsInline:ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:We,required:ve,reversed:ve,rows:G,rowSpan:G,sandbox:We,scope:null,scoped:ve,seamless:ve,selected:ve,shadowRootClonable:ve,shadowRootDelegatesFocus:ve,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:pt,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:We,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ve,declare:ve,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:pt,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ve,disableRemotePlayback:ve,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:sN}),bW=ll({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:kn,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:We,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:us,g2:us,glyphName:us,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:G,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:We,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:kn,rev:kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:kn,requiredFeatures:kn,requiredFonts:kn,requiredFormats:kn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:kn,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:aN}),lN=ll({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),uN=ll({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sN}),cN=ll({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),wW={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},SW=/[A-Z]/g,Tk=/-[a-z]/g,kW=/^data[-\w.:]+$/i;function OW(e,t){const n=Hv(t);let r=t,i=bn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&kW.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Tk,PW);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Tk.test(o)){let a=o.replace(SW,EW);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=X0}return new i(r,t)}function EW(e){return"-"+e.toLowerCase()}function PW(e){return e.charAt(1).toUpperCase()}const jW=iN([oN,xW,lN,uN,cN],"html"),Q0=iN([oN,bW,lN,uN,cN],"svg");function AW(e){return e.join(" ").trim()}var J0={},Nk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,_W=/\n/g,CW=/^\s*/,TW=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,NW=/^:\s*/,$W=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,MW=/^[;\s]*/,IW=/^\s+|\s+$/g,RW=`
|
|
302
|
+
`,$k="/",Mk="*",zo="",DW="comment",LW="declaration";function FW(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var g=m.match(_W);g&&(n+=g.length);var v=m.lastIndexOf(RW);r=~v?m.length-v:r+m.length}function o(){var m={line:n,column:r};return function(g){return g.position=new a(m),u(),g}}function a(m){this.start=m,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(m){var g=m.exec(e);if(g){var v=g[0];return i(v),e=e.slice(v.length),g}}function u(){l(CW)}function f(m){var g;for(m=m||[];g=c();)g!==!1&&m.push(g);return m}function c(){var m=o();if(!($k!=e.charAt(0)||Mk!=e.charAt(1))){for(var g=2;zo!=e.charAt(g)&&(Mk!=e.charAt(g)||$k!=e.charAt(g+1));)++g;if(g+=2,zo===e.charAt(g-1))return s("End of comment missing");var v=e.slice(2,g-2);return r+=2,i(v),e=e.slice(g),r+=2,m({type:DW,comment:v})}}function d(){var m=o(),g=l(TW);if(g){if(c(),!l(NW))return s("property missing ':'");var v=l($W),y=m({type:LW,property:Ik(g[0].replace(Nk,zo)),value:v?Ik(v[0].replace(Nk,zo)):zo});return l(MW),y}}function p(){var m=[];f(m);for(var g;g=d();)g!==!1&&(m.push(g),f(m));return m}return u(),p()}function Ik(e){return e?e.replace(IW,zo):zo}var zW=FW,BW=Qi&&Qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(J0,"__esModule",{value:!0});J0.default=UW;const WW=BW(zW);function UW(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,WW.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:a,value:s}=o;i?t(a,s,o):s&&(n=n||{},n[a]=s)}),n}var Yh={};Object.defineProperty(Yh,"__esModule",{value:!0});Yh.camelCase=void 0;var HW=/^--[a-zA-Z0-9_-]+$/,VW=/-([a-z])/g,KW=/^[^-]+$/,qW=/^-(webkit|moz|ms|o|khtml)-/,GW=/^-(ms)-/,YW=function(e){return!e||KW.test(e)||HW.test(e)},XW=function(e,t){return t.toUpperCase()},Rk=function(e,t){return"".concat(t,"-")},QW=function(e,t){return t===void 0&&(t={}),YW(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(GW,Rk):e=e.replace(qW,Rk),e.replace(VW,XW))};Yh.camelCase=QW;var JW=Qi&&Qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ZW=JW(J0),e9=Yh;function qv(e,t){var n={};return!e||typeof e!="string"||(0,ZW.default)(e,function(r,i){r&&i&&(n[(0,e9.camelCase)(r,t)]=i)}),n}qv.default=qv;var t9=qv;const n9=Ce(t9),fN=dN("end"),Z0=dN("start");function dN(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function r9(e){const t=Z0(e),n=fN(e);if(t&&n)return{start:t,end:n}}function pu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Dk(e.position):"start"in e||"end"in e?Dk(e):"line"in e||"column"in e?Gv(e):""}function Gv(e){return Lk(e&&e.line)+":"+Lk(e&&e.column)}function Dk(e){return Gv(e&&e.start)+"-"+Gv(e&&e.end)}function Lk(e){return e&&typeof e=="number"?e:1}class Gt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=pu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Gt.prototype.file="";Gt.prototype.name="";Gt.prototype.reason="";Gt.prototype.message="";Gt.prototype.stack="";Gt.prototype.column=void 0;Gt.prototype.line=void 0;Gt.prototype.ancestors=void 0;Gt.prototype.cause=void 0;Gt.prototype.fatal=void 0;Gt.prototype.place=void 0;Gt.prototype.ruleId=void 0;Gt.prototype.source=void 0;const ew={}.hasOwnProperty,i9=new Map,o9=/[A-Z]/g,a9=new Set(["table","tbody","thead","tfoot","tr"]),s9=new Set(["td","th"]),pN="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function l9(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=g9(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=m9(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Q0:jW,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=hN(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function hN(e,t,n){if(t.type==="element")return u9(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return c9(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return d9(e,t,n);if(t.type==="mdxjsEsm")return f9(e,t);if(t.type==="root")return p9(e,t,n);if(t.type==="text")return h9(e,t)}function u9(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Q0,e.schema=i),e.ancestors.push(t);const o=gN(e,t.tagName,!1),a=y9(e,t);let s=nw(e,t);return a9.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!yW(l):!0})),mN(e,a,o,t),tw(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function c9(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Uu(e,t.position)}function f9(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Uu(e,t.position)}function d9(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Q0,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:gN(e,t.name,!0),a=v9(e,t),s=nw(e,t);return mN(e,a,o,t),tw(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function p9(e,t,n){const r={};return tw(r,nw(e,t)),e.create(t,e.Fragment,r,n)}function h9(e,t){return t.value}function mN(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function tw(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function m9(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function g9(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=Z0(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function y9(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ew.call(t.properties,i)){const o=x9(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&s9.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function v9(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Uu(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else Uu(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function nw(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:i9;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;a=l+"-"+u,i.set(l,u+1)}}const s=hN(e,o,a);s!==void 0&&n.push(s)}return n}function x9(e,t,n){const r=OW(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?dW(n):AW(n)),r.property==="style"){let i=typeof n=="object"?n:b9(e,String(n));return e.stylePropertyNameCase==="css"&&(i=w9(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?wW[r.property]||r.property:r.attribute,n]}}function b9(e,t){try{return n9(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Gt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=pN+"#cannot-parse-style-attribute",i}}function gN(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=Ak(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=Ak(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return ew.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Uu(e)}function Uu(e,t){const n=new Gt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=pN+"#cannot-handle-mdx-estrees-without-createevaluater",n}function w9(e){const t={};let n;for(n in e)ew.call(e,n)&&(t[S9(n)]=e[n]);return t}function S9(e){let t=e.replace(o9,k9);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function k9(e){return"-"+e.toLowerCase()}const Lg={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},O9={};function rw(e,t){const n=O9,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return yN(e,r,i)}function yN(e,t,n){if(E9(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Fk(e.children,t,n)}return Array.isArray(e)?Fk(e,t,n):""}function Fk(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=yN(e[i],t,n);return r.join("")}function E9(e){return!!(e&&typeof e=="object")}const zk=document.createElement("i");function iw(e){const t="&"+e+";";zk.innerHTML=t;const n=zk.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function $n(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function Kn(e,t){return e.length>0?($n(e,e.length,0,t),e):t}const Bk={}.hasOwnProperty;function vN(e){const t={};let n=-1;for(;++n<e.length;)P9(t,e[n]);return t}function P9(e,t){let n;for(n in t){const i=(Bk.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Bk.call(i,a)||(i[a]=[]);const s=o[a];j9(i[a],Array.isArray(s)?s:s?[s]:[])}}}function j9(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);$n(e,0,0,r)}function xN(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function xr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jt=bo(/[A-Za-z]/),Kt=bo(/[\dA-Za-z]/),A9=bo(/[#-'*+\--9=?A-Z^-~]/);function op(e){return e!==null&&(e<32||e===127)}const Yv=bo(/\d/),_9=bo(/[\dA-Fa-f]/),C9=bo(/[!-/:-@[-`{-~]/);function ue(e){return e!==null&&e<-2}function Fe(e){return e!==null&&(e<0||e===32)}function we(e){return e===-2||e===-1||e===32}const Xh=bo(new RegExp("\\p{P}|\\p{S}","u")),aa=bo(/\s/);function bo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ul(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&Kt(e.charCodeAt(n+1))&&Kt(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Pe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return we(l)?(e.enter(n),s(l)):t(l)}function s(l){return we(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const T9={tokenize:N9};function N9(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Pe(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ue(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const $9={tokenize:M9},Wk={tokenize:I9};function M9(e){const t=this,n=[];let r=0,i,o,a;return s;function s(b){if(r<n.length){const O=n[r];return t.containerState=O[1],e.attempt(O[0].continuation,l,u)(b)}return u(b)}function l(b){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const O=t.events.length;let S=O,w;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){w=t.events[S][1].end;break}y(r);let E=O;for(;E<t.events.length;)t.events[E][1].end={...w},E++;return $n(t.events,S+1,0,t.events.slice(O)),t.events.length=E,u(b)}return s(b)}function u(b){if(r===n.length){if(!i)return d(b);if(i.currentConstruct&&i.currentConstruct.concrete)return m(b);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wk,f,c)(b)}function f(b){return i&&x(),y(r),d(b)}function c(b){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,m(b)}function d(b){return t.containerState={},e.attempt(Wk,p,m)(b)}function p(b){return r++,n.push([t.currentConstruct,t.containerState]),d(b)}function m(b){if(b===null){i&&x(),y(0),e.consume(b);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),g(b)}function g(b){if(b===null){v(e.exit("chunkFlow"),!0),y(0),e.consume(b);return}return ue(b)?(e.consume(b),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(b),g)}function v(b,O){const S=t.sliceStream(b);if(O&&S.push(null),b.previous=o,o&&(o.next=b),o=b,i.defineSkip(b.start),i.write(S),t.parser.lazy[b.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<a&&(!i.events[w][1].end||i.events[w][1].end.offset>a))return;const E=t.events.length;let P=E,_,A;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(_){A=t.events[P][1].end;break}_=!0}for(y(r),w=E;w<t.events.length;)t.events[w][1].end={...A},w++;$n(t.events,P+1,0,t.events.slice(E)),t.events.length=w}}function y(b){let O=n.length;for(;O-- >b;){const S=n[O];t.containerState=S[1],S[0].exit.call(t,e)}n.length=b}function x(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function I9(e,t,n){return Pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Es(e){if(e===null||Fe(e)||aa(e))return 1;if(Xh(e))return 2}function Qh(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Xv={name:"attention",resolveAll:R9,tokenize:D9};function R9(e,t){let n=-1,r,i,o,a,s,l,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},d={...e[n][1].start};Uk(c,-l),Uk(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Kn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Kn(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=Kn(u,Qh(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Kn(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=Kn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,$n(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function D9(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Es(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const u=e.exit("attentionSequence"),f=Es(l),c=!f||f===2&&i||n.includes(l),d=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?c:c&&(i||!d)),u._close=!!(o===42?d:d&&(f||!c)),t(l)}}function Uk(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const L9={name:"autolink",tokenize:F9};function F9(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return Jt(p)?(e.consume(p),a):p===64?n(p):u(p)}function a(p){return p===43||p===45||p===46||Kt(p)?(r=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Kt(p))&&r++<32?(e.consume(p),s):(r=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||op(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),f):A9(p)?(e.consume(p),u):n(p)}function f(p){return Kt(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):d(p)}function d(p){if((p===45||Kt(p))&&r++<63){const m=p===45?d:c;return e.consume(p),m}return n(p)}}const Lc={partial:!0,tokenize:z9};function z9(e,t,n){return r;function r(o){return we(o)?Pe(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||ue(o)?t(o):n(o)}}const bN={continuation:{tokenize:W9},exit:U9,name:"blockQuote",tokenize:B9};function B9(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return we(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function W9(e,t,n){const r=this;return i;function i(a){return we(a)?Pe(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(bN,t,n)(a)}}function U9(e){e.exit("blockQuote")}const wN={name:"characterEscape",tokenize:H9};function H9(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return C9(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const SN={name:"characterReference",tokenize:V9};function V9(e,t,n){const r=this;let i=0,o,a;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,a=Kt,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=_9,f):(e.enter("characterReferenceValue"),o=7,a=Yv,f(c))}function f(c){if(c===59&&i){const d=e.exit("characterReferenceValue");return a===Kt&&!iw(r.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(c)&&i++<o?(e.consume(c),f):n(c)}}const Hk={partial:!0,tokenize:q9},Vk={concrete:!0,name:"codeFenced",tokenize:K9};function K9(e,t,n){const r=this,i={partial:!0,tokenize:S};let o=0,a=0,s;return l;function l(w){return u(w)}function u(w){const E=r.events[r.events.length-1];return o=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,s=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===s?(a++,e.consume(w),f):a<3?n(w):(e.exit("codeFencedFenceSequence"),we(w)?Pe(e,c,"whitespace")(w):c(w))}function c(w){return w===null||ue(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Hk,g,O)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(w))}function d(w){return w===null||ue(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):we(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Pe(e,p,"whitespace")(w)):w===96&&w===s?n(w):(e.consume(w),d)}function p(w){return w===null||ue(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||ue(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===s?n(w):(e.consume(w),m)}function g(w){return e.attempt(i,O,v)(w)}function v(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&we(w)?Pe(e,x,"linePrefix",o+1)(w):x(w)}function x(w){return w===null||ue(w)?e.check(Hk,g,O)(w):(e.enter("codeFlowValue"),b(w))}function b(w){return w===null||ue(w)?(e.exit("codeFlowValue"),x(w)):(e.consume(w),b)}function O(w){return e.exit("codeFenced"),t(w)}function S(w,E,P){let _=0;return A;function A(I){return w.enter("lineEnding"),w.consume(I),w.exit("lineEnding"),$}function $(I){return w.enter("codeFencedFence"),we(I)?Pe(w,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):N(I)}function N(I){return I===s?(w.enter("codeFencedFenceSequence"),R(I)):P(I)}function R(I){return I===s?(_++,w.consume(I),R):_>=a?(w.exit("codeFencedFenceSequence"),we(I)?Pe(w,F,"whitespace")(I):F(I)):P(I)}function F(I){return I===null||ue(I)?(w.exit("codeFencedFence"),E(I)):P(I)}}}function q9(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const Fg={name:"codeIndented",tokenize:Y9},G9={partial:!0,tokenize:X9};function Y9(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Pe(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):ue(u)?e.attempt(G9,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||ue(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function X9(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ue(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Pe(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):ue(a)?i(a):n(a)}}const Q9={name:"codeText",previous:Z9,resolve:J9,tokenize:eU};function J9(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Z9(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function eU(e,t,n){let r=0,i,o;return a;function a(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):ue(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||ue(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class tU{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Fl(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Fl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Fl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Fl(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Fl(this.left,n.reverse())}}}function Fl(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function kN(e){const t={};let n=-1,r,i,o,a,s,l,u;const f=new tU(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,nU(f,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=f.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},s=f.slice(i,n),s.unshift(r),f.splice(i,n-i+1,s))}}return $n(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function nU(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],u={};let f,c,d=-1,p=n,m=0,g=0;const v=[g];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(g=d+1,v.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),d=v.length;d--;){const y=s.slice(v[d],v[d+1]),x=o.pop();l.push([x,x+y.length-1]),e.splice(x,2,y)}for(l.reverse(),d=-1;++d<l.length;)u[m+l[d][0]]=m+l[d][1],m+=l[d][1]-l[d][0]-1;return u}const rU={resolve:oU,tokenize:aU},iU={partial:!0,tokenize:sU};function oU(e){return kN(e),e}function aU(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):ue(s)?e.check(iU,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function sU(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Pe(e,o,"linePrefix")}function o(a){if(a===null||ue(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function ON(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),d):y===null||y===32||y===41||op(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(y))}function d(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(s),d(y)):y===null||y===60||ue(y)?n(y):(e.consume(y),y===92?m:p)}function m(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function g(y){return!f&&(y===null||y===41||Fe(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,g):y===41?(e.consume(y),f--,g):y===null||y===32||y===40||op(y)?n(y):(e.consume(y),y===92?v:g)}function v(y){return y===40||y===41||y===92?(e.consume(y),g):g(y)}}function EN(e,t,n,r,i,o){const a=this;let s=0,l;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),f}function f(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):ue(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||ue(p)||s++>999?(e.exit("chunkString"),f(p)):(e.consume(p),l||(l=!we(p)),p===92?d:c)}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}function PN(e,t,n,r,i,o){let a;return s;function s(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),a=d===40?41:d,l):n(d)}function l(d){return d===a?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(o),u(d))}function u(d){return d===a?(e.exit(o),l(a)):d===null?n(d):ue(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Pe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===a||d===null||ue(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?c:f)}function c(d){return d===a||d===92?(e.consume(d),f):f(d)}}function hu(e,t){let n;return r;function r(i){return ue(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):we(i)?Pe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const lU={name:"definition",tokenize:cU},uU={partial:!0,tokenize:fU};function cU(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return EN.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=xr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Fe(p)?hu(e,u)(p):u(p)}function u(p){return ON(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(uU,c,c)(p)}function c(p){return we(p)?Pe(e,d,"whitespace")(p):d(p)}function d(p){return p===null||ue(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function fU(e,t,n){return r;function r(s){return Fe(s)?hu(e,i)(s):n(s)}function i(s){return PN(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return we(s)?Pe(e,a,"whitespace")(s):a(s)}function a(s){return s===null||ue(s)?t(s):n(s)}}const dU={name:"hardBreakEscape",tokenize:pU};function pU(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return ue(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const hU={name:"headingAtx",resolve:mU,tokenize:gU};function mU(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},$n(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function gU(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&r++<6?(e.consume(f),a):f===null||Fe(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||ue(f)?(e.exit("atxHeading"),t(f)):we(f)?Pe(e,s,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function u(f){return f===null||f===35||Fe(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const yU=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Kk=["pre","script","style","textarea"],vU={concrete:!0,name:"htmlFlow",resolveTo:wU,tokenize:SU},xU={partial:!0,tokenize:OU},bU={partial:!0,tokenize:kU};function wU(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function SU(e,t,n){const r=this;let i,o,a,s,l;return u;function u(T){return f(T)}function f(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),c}function c(T){return T===33?(e.consume(T),d):T===47?(e.consume(T),o=!0,g):T===63?(e.consume(T),i=3,r.interrupt?t:j):Jt(T)?(e.consume(T),a=String.fromCharCode(T),v):n(T)}function d(T){return T===45?(e.consume(T),i=2,p):T===91?(e.consume(T),i=5,s=0,m):Jt(T)?(e.consume(T),i=4,r.interrupt?t:j):n(T)}function p(T){return T===45?(e.consume(T),r.interrupt?t:j):n(T)}function m(T){const Y="CDATA[";return T===Y.charCodeAt(s++)?(e.consume(T),s===Y.length?r.interrupt?t:N:m):n(T)}function g(T){return Jt(T)?(e.consume(T),a=String.fromCharCode(T),v):n(T)}function v(T){if(T===null||T===47||T===62||Fe(T)){const Y=T===47,J=a.toLowerCase();return!Y&&!o&&Kk.includes(J)?(i=1,r.interrupt?t(T):N(T)):yU.includes(a.toLowerCase())?(i=6,Y?(e.consume(T),y):r.interrupt?t(T):N(T)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(T):o?x(T):b(T))}return T===45||Kt(T)?(e.consume(T),a+=String.fromCharCode(T),v):n(T)}function y(T){return T===62?(e.consume(T),r.interrupt?t:N):n(T)}function x(T){return we(T)?(e.consume(T),x):A(T)}function b(T){return T===47?(e.consume(T),A):T===58||T===95||Jt(T)?(e.consume(T),O):we(T)?(e.consume(T),b):A(T)}function O(T){return T===45||T===46||T===58||T===95||Kt(T)?(e.consume(T),O):S(T)}function S(T){return T===61?(e.consume(T),w):we(T)?(e.consume(T),S):b(T)}function w(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),l=T,E):we(T)?(e.consume(T),w):P(T)}function E(T){return T===l?(e.consume(T),l=null,_):T===null||ue(T)?n(T):(e.consume(T),E)}function P(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Fe(T)?S(T):(e.consume(T),P)}function _(T){return T===47||T===62||we(T)?b(T):n(T)}function A(T){return T===62?(e.consume(T),$):n(T)}function $(T){return T===null||ue(T)?N(T):we(T)?(e.consume(T),$):n(T)}function N(T){return T===45&&i===2?(e.consume(T),D):T===60&&i===1?(e.consume(T),L):T===62&&i===4?(e.consume(T),W):T===63&&i===3?(e.consume(T),j):T===93&&i===5?(e.consume(T),z):ue(T)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(xU,U,R)(T)):T===null||ue(T)?(e.exit("htmlFlowData"),R(T)):(e.consume(T),N)}function R(T){return e.check(bU,F,U)(T)}function F(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),I}function I(T){return T===null||ue(T)?R(T):(e.enter("htmlFlowData"),N(T))}function D(T){return T===45?(e.consume(T),j):N(T)}function L(T){return T===47?(e.consume(T),a="",M):N(T)}function M(T){if(T===62){const Y=a.toLowerCase();return Kk.includes(Y)?(e.consume(T),W):N(T)}return Jt(T)&&a.length<8?(e.consume(T),a+=String.fromCharCode(T),M):N(T)}function z(T){return T===93?(e.consume(T),j):N(T)}function j(T){return T===62?(e.consume(T),W):T===45&&i===2?(e.consume(T),j):N(T)}function W(T){return T===null||ue(T)?(e.exit("htmlFlowData"),U(T)):(e.consume(T),W)}function U(T){return e.exit("htmlFlow"),t(T)}}function kU(e,t,n){const r=this;return i;function i(a){return ue(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function OU(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Lc,t,n)}}const EU={name:"htmlText",tokenize:PU};function PU(e,t,n){const r=this;let i,o,a;return s;function s(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),l}function l(j){return j===33?(e.consume(j),u):j===47?(e.consume(j),S):j===63?(e.consume(j),b):Jt(j)?(e.consume(j),P):n(j)}function u(j){return j===45?(e.consume(j),f):j===91?(e.consume(j),o=0,m):Jt(j)?(e.consume(j),x):n(j)}function f(j){return j===45?(e.consume(j),p):n(j)}function c(j){return j===null?n(j):j===45?(e.consume(j),d):ue(j)?(a=c,L(j)):(e.consume(j),c)}function d(j){return j===45?(e.consume(j),p):c(j)}function p(j){return j===62?D(j):j===45?d(j):c(j)}function m(j){const W="CDATA[";return j===W.charCodeAt(o++)?(e.consume(j),o===W.length?g:m):n(j)}function g(j){return j===null?n(j):j===93?(e.consume(j),v):ue(j)?(a=g,L(j)):(e.consume(j),g)}function v(j){return j===93?(e.consume(j),y):g(j)}function y(j){return j===62?D(j):j===93?(e.consume(j),y):g(j)}function x(j){return j===null||j===62?D(j):ue(j)?(a=x,L(j)):(e.consume(j),x)}function b(j){return j===null?n(j):j===63?(e.consume(j),O):ue(j)?(a=b,L(j)):(e.consume(j),b)}function O(j){return j===62?D(j):b(j)}function S(j){return Jt(j)?(e.consume(j),w):n(j)}function w(j){return j===45||Kt(j)?(e.consume(j),w):E(j)}function E(j){return ue(j)?(a=E,L(j)):we(j)?(e.consume(j),E):D(j)}function P(j){return j===45||Kt(j)?(e.consume(j),P):j===47||j===62||Fe(j)?_(j):n(j)}function _(j){return j===47?(e.consume(j),D):j===58||j===95||Jt(j)?(e.consume(j),A):ue(j)?(a=_,L(j)):we(j)?(e.consume(j),_):D(j)}function A(j){return j===45||j===46||j===58||j===95||Kt(j)?(e.consume(j),A):$(j)}function $(j){return j===61?(e.consume(j),N):ue(j)?(a=$,L(j)):we(j)?(e.consume(j),$):_(j)}function N(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),i=j,R):ue(j)?(a=N,L(j)):we(j)?(e.consume(j),N):(e.consume(j),F)}function R(j){return j===i?(e.consume(j),i=void 0,I):j===null?n(j):ue(j)?(a=R,L(j)):(e.consume(j),R)}function F(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||Fe(j)?_(j):(e.consume(j),F)}function I(j){return j===47||j===62||Fe(j)?_(j):n(j)}function D(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function L(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),M}function M(j){return we(j)?Pe(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):z(j)}function z(j){return e.enter("htmlTextData"),a(j)}}const ow={name:"labelEnd",resolveAll:CU,resolveTo:TU,tokenize:NU},jU={tokenize:$U},AU={tokenize:MU},_U={tokenize:IU};function CU(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&$n(e,0,e.length,n),e}function TU(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=Kn(s,e.slice(o+1,o+r+3)),s=Kn(s,[["enter",f,t]]),s=Kn(s,Qh(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=Kn(s,[["exit",f,t],e[a-2],e[a-1],["exit",u,t]]),s=Kn(s,e.slice(a+1)),s=Kn(s,[["exit",l,t]]),$n(e,o,e.length,s),e}function NU(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(d){return o?o._inactive?c(d):(a=r.parser.defined.includes(xr(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(jU,f,a?f:c)(d):d===91?e.attempt(AU,f,a?u:c)(d):a?f(d):c(d)}function u(d){return e.attempt(_U,f,c)(d)}function f(d){return t(d)}function c(d){return o._balanced=!0,n(d)}}function $U(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return Fe(c)?hu(e,o)(c):o(c)}function o(c){return c===41?f(c):ON(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function a(c){return Fe(c)?hu(e,l)(c):f(c)}function s(c){return n(c)}function l(c){return c===34||c===39||c===40?PN(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return Fe(c)?hu(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function MU(e,t,n){const r=this;return i;function i(s){return EN.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(xr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function IU(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const RU={name:"labelStartImage",resolveAll:ow.resolveAll,tokenize:DU};function DU(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const LU={name:"labelStartLink",resolveAll:ow.resolveAll,tokenize:FU};function FU(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const zg={name:"lineEnding",tokenize:zU};function zU(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Pe(e,t,"linePrefix")}}const gd={name:"thematicBreak",tokenize:BU};function BU(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ue(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),we(u)?Pe(e,s,"whitespace")(u):s(u))}}const un={continuation:{tokenize:VU},exit:qU,name:"list",tokenize:HU},WU={partial:!0,tokenize:GU},UU={partial:!0,tokenize:KU};function HU(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Yv(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(gd,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Yv(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Lc,r.interrupt?n:f,e.attempt(WU,d,c))}function f(p){return r.containerState.initialBlankLine=!0,o++,d(p)}function c(p){return we(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function VU(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Lc,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Pe(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!we(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(UU,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Pe(e,e.attempt(un,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function KU(e,t,n){const r=this;return Pe(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function qU(e){e.exit(this.containerState.type)}function GU(e,t,n){const r=this;return Pe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!we(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const qk={name:"setextUnderline",resolveTo:YU,tokenize:XU};function YU(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function XU(e,t,n){const r=this;let i;return o;function o(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),we(u)?Pe(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ue(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const QU={tokenize:JU};function JU(e){const t=this,n=e.attempt(Lc,r,e.attempt(this.parser.constructs.flowInitial,i,Pe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(rU,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ZU={resolveAll:AN()},eH=jN("string"),tH=jN("text");function jN(e){return{resolveAll:AN(e==="text"?nH:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(f){return u(f)?o(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),l)}function u(f){if(f===null)return!0;const c=i[f];let d=-1;if(c)for(;++d<c.length;){const p=c[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function AN(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function nH(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(u===-2)l=!0,s++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const rH={42:un,43:un,45:un,48:un,49:un,50:un,51:un,52:un,53:un,54:un,55:un,56:un,57:un,62:bN},iH={91:lU},oH={[-2]:Fg,[-1]:Fg,32:Fg},aH={35:hU,42:gd,45:[qk,gd],60:vU,61:qk,95:gd,96:Vk,126:Vk},sH={38:SN,92:wN},lH={[-5]:zg,[-4]:zg,[-3]:zg,33:RU,38:SN,42:Xv,60:[L9,EU],91:LU,92:[dU,wN],93:ow,95:Xv,96:Q9},uH={null:[Xv,ZU]},cH={null:[42,95]},fH={null:[]},dH=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:cH,contentInitial:iH,disable:fH,document:rH,flow:aH,flowInitial:oH,insideSpan:uH,string:sH,text:lH},Symbol.toStringTag,{value:"Module"}));function pH(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:E(S),check:E(w),consume:x,enter:b,exit:O,interrupt:E(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:m,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:c};let f=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function c($){return a=Kn(a,$),v(),a[a.length-1]!==null?[]:(P(t,0),u.events=Qh(o,u.events,u),u.events)}function d($,N){return mH(p($),N)}function p($){return hH(a,$)}function m(){const{_bufferIndex:$,_index:N,line:R,column:F,offset:I}=r;return{_bufferIndex:$,_index:N,line:R,column:F,offset:I}}function g($){i[$.line]=$.column,A()}function v(){let $;for(;r._index<a.length;){const N=a[r._index];if(typeof N=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<N.length;)y(N.charCodeAt(r._bufferIndex));else y(N)}}function y($){f=f($)}function x($){ue($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,A()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=$}function b($,N){const R=N||{};return R.type=$,R.start=m(),u.events.push(["enter",R,u]),s.push(R),R}function O($){const N=s.pop();return N.end=m(),u.events.push(["exit",N,u]),N}function S($,N){P($,N.from)}function w($,N){N.restore()}function E($,N){return R;function R(F,I,D){let L,M,z,j;return Array.isArray(F)?U(F):"tokenize"in F?U([F]):W(F);function W(Z){return Ae;function Ae(ae){const K=ae!==null&&Z[ae],ie=ae!==null&&Z.null,oe=[...Array.isArray(K)?K:K?[K]:[],...Array.isArray(ie)?ie:ie?[ie]:[]];return U(oe)(ae)}}function U(Z){return L=Z,M=0,Z.length===0?D:T(Z[M])}function T(Z){return Ae;function Ae(ae){return j=_(),z=Z,Z.partial||(u.currentConstruct=Z),Z.name&&u.parser.constructs.disable.null.includes(Z.name)?J():Z.tokenize.call(N?Object.assign(Object.create(u),N):u,l,Y,J)(ae)}}function Y(Z){return $(z,j),I}function J(Z){return j.restore(),++M<L.length?T(L[M]):D}}}function P($,N){$.resolveAll&&!o.includes($)&&o.push($),$.resolve&&$n(u.events,N,u.events.length-N,$.resolve(u.events.slice(N),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function _(){const $=m(),N=u.previous,R=u.currentConstruct,F=u.events.length,I=Array.from(s);return{from:F,restore:D};function D(){r=$,u.previous=N,u.currentConstruct=R,u.events.length=F,s=I,A()}}function A(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function hH(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function mH(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
|
|
303
|
+
`;break}case-3:{a=`\r
|
|
304
|
+
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function gH(e){const r={constructs:vN([dH,...(e||{}).extensions||[]]),content:i(T9),defined:[],document:i($9),flow:i(QU),lazy:{},string:i(eH),text:i(tH)};return r;function i(o){return a;function a(s){return pH(r,o,s)}}}function yH(e){for(;!kN(e););return e}const Gk=/[\0\t\n\r]/g;function vH(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let u,f,c,d,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Gk.lastIndex=c,u=Gk.exec(o),d=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(d),!u){t=o.slice(c);break}if(p===10&&c===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<d&&(l.push(o.slice(c,d)),e+=d-c),p){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}c=d+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const xH=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bH(e){return e.replace(xH,wH)}function wH(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return xN(n.slice(o?2:1),o?16:10)}return iw(n)||e}const _N={}.hasOwnProperty;function SH(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),kH(n)(yH(gH(n).document().write(vH()(e,t,!0))))}function kH(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(et),autolinkProtocol:_,autolinkEmail:_,atxHeading:o(ze),blockQuote:o(ie),characterEscape:_,characterReference:_,codeFenced:o(oe),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(oe,a),codeText:o(V,a),codeTextData:_,data:_,codeFlowValue:_,definition:o(ke),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(de),hardBreakEscape:o(De),hardBreakTrailing:o(De),htmlFlow:o(Ge,a),htmlFlowData:_,htmlText:o(Ge,a),htmlTextData:_,image:o(Yt),label:a,link:o(et),listItem:o(or),listItemValue:d,listOrdered:o(Qr,c),listUnordered:o(Qr),paragraph:o(ot),reference:T,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(ze),strong:o(Fn),thematicBreak:o(Ea)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:K,autolinkProtocol:ae,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:Z,characterReference:Ae,codeFenced:l(v),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:A,codeIndented:l(y),codeText:l(I),codeTextData:A,data:A,definition:l(),definitionDestinationString:O,definitionLabelString:x,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(N),hardBreakTrailing:l(N),htmlFlow:l(R),htmlFlowData:A,htmlText:l(F),htmlTextData:A,image:l(L),label:z,labelText:M,lineEnding:$,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Y,resourceDestinationString:j,resourceTitleString:W,resource:U,setextHeading:l(P),setextHeadingLineSequence:E,setextHeadingText:w,strong:l(),thematicBreak:l()}};CN(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(H){let Q={type:"root",children:[]};const pe={stack:[Q],tokenStack:[],config:t,enter:s,exit:u,buffer:a,resume:f,data:n},xe=[];let Ee=-1;for(;++Ee<H.length;)if(H[Ee][1].type==="listOrdered"||H[Ee][1].type==="listUnordered")if(H[Ee][0]==="enter")xe.push(Ee);else{const sn=xe.pop();Ee=i(H,sn,Ee)}for(Ee=-1;++Ee<H.length;){const sn=t[H[Ee][0]];_N.call(sn,H[Ee][1].type)&&sn[H[Ee][1].type].call(Object.assign({sliceSerialize:H[Ee][2].sliceSerialize},pe),H[Ee][1])}if(pe.tokenStack.length>0){const sn=pe.tokenStack[pe.tokenStack.length-1];(sn[1]||Yk).call(pe,void 0,sn[0])}for(Q.position={start:Wi(H.length>0?H[0][1].start:{line:1,column:1,offset:0}),end:Wi(H.length>0?H[H.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<t.transforms.length;)Q=t.transforms[Ee](Q)||Q;return Q}function i(H,Q,pe){let xe=Q-1,Ee=-1,sn=!1,ln,ar,Po,Ri;for(;++xe<=pe;){const Lt=H[xe];switch(Lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Lt[0]==="enter"?Ee++:Ee--,Ri=void 0;break}case"lineEndingBlank":{Lt[0]==="enter"&&(ln&&!Ri&&!Ee&&!Po&&(Po=xe),Ri=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ri=void 0}if(!Ee&&Lt[0]==="enter"&&Lt[1].type==="listItemPrefix"||Ee===-1&&Lt[0]==="exit"&&(Lt[1].type==="listUnordered"||Lt[1].type==="listOrdered")){if(ln){let Di=xe;for(ar=void 0;Di--;){const wn=H[Di];if(wn[1].type==="lineEnding"||wn[1].type==="lineEndingBlank"){if(wn[0]==="exit")continue;ar&&(H[ar][1].type="lineEndingBlank",sn=!0),wn[1].type="lineEnding",ar=Di}else if(!(wn[1].type==="linePrefix"||wn[1].type==="blockQuotePrefix"||wn[1].type==="blockQuotePrefixWhitespace"||wn[1].type==="blockQuoteMarker"||wn[1].type==="listItemIndent"))break}Po&&(!ar||Po<ar)&&(ln._spread=!0),ln.end=Object.assign({},ar?H[ar][1].start:Lt[1].end),H.splice(ar||xe,0,["exit",ln,Lt[2]]),xe++,pe++}if(Lt[1].type==="listItemPrefix"){const Di={type:"listItem",_spread:!1,start:Object.assign({},Lt[1].start),end:void 0};ln=Di,H.splice(xe,0,["enter",Di,Lt[2]]),xe++,pe++,Po=void 0,Ri=!0}}}return H[Q][1]._spread=sn,pe}function o(H,Q){return pe;function pe(xe){s.call(this,H(xe),xe),Q&&Q.call(this,xe)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(H,Q,pe){this.stack[this.stack.length-1].children.push(H),this.stack.push(H),this.tokenStack.push([Q,pe||void 0]),H.position={start:Wi(Q.start),end:void 0}}function l(H){return Q;function Q(pe){H&&H.call(this,pe),u.call(this,pe)}}function u(H,Q){const pe=this.stack.pop(),xe=this.tokenStack.pop();if(xe)xe[0].type!==H.type&&(Q?Q.call(this,H,xe[0]):(xe[1]||Yk).call(this,H,xe[0]));else throw new Error("Cannot close `"+H.type+"` ("+pu({start:H.start,end:H.end})+"): it’s not open");pe.position.end=Wi(H.end)}function f(){return rw(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(H){if(this.data.expectingFirstListItemValue){const Q=this.stack[this.stack.length-2];Q.start=Number.parseInt(this.sliceSerialize(H),10),this.data.expectingFirstListItemValue=void 0}}function p(){const H=this.resume(),Q=this.stack[this.stack.length-1];Q.lang=H}function m(){const H=this.resume(),Q=this.stack[this.stack.length-1];Q.meta=H}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const H=this.resume(),Q=this.stack[this.stack.length-1];Q.value=H.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const H=this.resume(),Q=this.stack[this.stack.length-1];Q.value=H.replace(/(\r?\n|\r)$/g,"")}function x(H){const Q=this.resume(),pe=this.stack[this.stack.length-1];pe.label=Q,pe.identifier=xr(this.sliceSerialize(H)).toLowerCase()}function b(){const H=this.resume(),Q=this.stack[this.stack.length-1];Q.title=H}function O(){const H=this.resume(),Q=this.stack[this.stack.length-1];Q.url=H}function S(H){const Q=this.stack[this.stack.length-1];if(!Q.depth){const pe=this.sliceSerialize(H).length;Q.depth=pe}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function E(H){const Q=this.stack[this.stack.length-1];Q.depth=this.sliceSerialize(H).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function _(H){const pe=this.stack[this.stack.length-1].children;let xe=pe[pe.length-1];(!xe||xe.type!=="text")&&(xe=Oa(),xe.position={start:Wi(H.start),end:void 0},pe.push(xe)),this.stack.push(xe)}function A(H){const Q=this.stack.pop();Q.value+=this.sliceSerialize(H),Q.position.end=Wi(H.end)}function $(H){const Q=this.stack[this.stack.length-1];if(this.data.atHardBreak){const pe=Q.children[Q.children.length-1];pe.position.end=Wi(H.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Q.type)&&(_.call(this,H),A.call(this,H))}function N(){this.data.atHardBreak=!0}function R(){const H=this.resume(),Q=this.stack[this.stack.length-1];Q.value=H}function F(){const H=this.resume(),Q=this.stack[this.stack.length-1];Q.value=H}function I(){const H=this.resume(),Q=this.stack[this.stack.length-1];Q.value=H}function D(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=Q,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function L(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=Q,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function M(H){const Q=this.sliceSerialize(H),pe=this.stack[this.stack.length-2];pe.label=bH(Q),pe.identifier=xr(Q).toLowerCase()}function z(){const H=this.stack[this.stack.length-1],Q=this.resume(),pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,pe.type==="link"){const xe=H.children;pe.children=xe}else pe.alt=Q}function j(){const H=this.resume(),Q=this.stack[this.stack.length-1];Q.url=H}function W(){const H=this.resume(),Q=this.stack[this.stack.length-1];Q.title=H}function U(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function Y(H){const Q=this.resume(),pe=this.stack[this.stack.length-1];pe.label=Q,pe.identifier=xr(this.sliceSerialize(H)).toLowerCase(),this.data.referenceType="full"}function J(H){this.data.characterReferenceType=H.type}function Z(H){const Q=this.sliceSerialize(H),pe=this.data.characterReferenceType;let xe;pe?(xe=xN(Q,pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):xe=iw(Q);const Ee=this.stack[this.stack.length-1];Ee.value+=xe}function Ae(H){const Q=this.stack.pop();Q.position.end=Wi(H.end)}function ae(H){A.call(this,H);const Q=this.stack[this.stack.length-1];Q.url=this.sliceSerialize(H)}function K(H){A.call(this,H);const Q=this.stack[this.stack.length-1];Q.url="mailto:"+this.sliceSerialize(H)}function ie(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function V(){return{type:"inlineCode",value:""}}function ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function de(){return{type:"emphasis",children:[]}}function ze(){return{type:"heading",depth:0,children:[]}}function De(){return{type:"break"}}function Ge(){return{type:"html",value:""}}function Yt(){return{type:"image",title:null,url:"",alt:null}}function et(){return{type:"link",title:null,url:"",children:[]}}function Qr(H){return{type:"list",ordered:H.type==="listOrdered",start:null,spread:H._spread,children:[]}}function or(H){return{type:"listItem",spread:H._spread,checked:null,children:[]}}function ot(){return{type:"paragraph",children:[]}}function Fn(){return{type:"strong",children:[]}}function Oa(){return{type:"text",value:""}}function Ea(){return{type:"thematicBreak"}}}function Wi(e){return{line:e.line,column:e.column,offset:e.offset}}function CN(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?CN(e,r):OH(e,r)}}function OH(e,t){let n;for(n in t)if(_N.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Yk(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+pu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+pu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+pu({start:t.start,end:t.end})+") is still open")}function EH(e){const t=this;t.parser=n;function n(r){return SH(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function PH(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function jH(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
305
|
+
`}]}function AH(e,t){const n=t.value?t.value+`
|
|
306
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function _H(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function CH(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function TH(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=ul(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function NH(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $H(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function TN(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function MH(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return TN(e,t);const i={src:ul(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function IH(e,t){const n={src:ul(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function RH(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function DH(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return TN(e,t);const i={href:ul(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function LH(e,t){const n={href:ul(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function FH(e,t,n){const r=e.all(t),i=n?zH(n):NN(t),o={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const f=r[s];(i||s!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
|
|
307
|
+
`}),f.type==="element"&&f.tagName==="p"&&!i?a.push(...f.children):a.push(f)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
|
|
308
|
+
`});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function zH(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=NN(n[r])}return t}function NN(e){const t=e.spread;return t??e.children.length>1}function BH(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function WH(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function UH(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function HH(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function VH(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Z0(t.children[1]),l=fN(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function KH(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const c=t.children[l],d={},p=a?a[l]:void 0;p&&(d.align=p);let m={type:"element",tagName:o,properties:d,children:[]};c&&(m.children=e.all(c),e.patch(c,m),m=e.applyData(c,m)),u.push(m)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function qH(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Xk=9,Qk=32;function GH(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Jk(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Jk(t.slice(i),i>0,!1)),o.join("")}function Jk(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Xk||o===Qk;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Xk||o===Qk;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function YH(e,t){const n={type:"text",value:GH(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function XH(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const QH={blockquote:PH,break:jH,code:AH,delete:_H,emphasis:CH,footnoteReference:TH,heading:NH,html:$H,imageReference:MH,image:IH,inlineCode:RH,linkReference:DH,link:LH,listItem:FH,list:BH,paragraph:WH,root:UH,strong:HH,table:VH,tableCell:qH,tableRow:KH,text:YH,thematicBreak:XH,toml:jf,yaml:jf,definition:jf,footnoteDefinition:jf};function jf(){}const $N=-1,Jh=0,mu=1,ap=2,aw=3,sw=4,lw=5,uw=6,MN=7,IN=8,Zk=typeof self=="object"?self:globalThis,JH=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case Jh:case $N:return n(a,i);case mu:{const s=n([],i);for(const l of a)s.push(r(l));return s}case ap:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case aw:return n(new Date(a),i);case sw:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case lw:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case uw:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case MN:{const{name:s,message:l}=a;return n(new Zk[s](l),i)}case IN:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:s}=new Uint8Array(a);return n(new DataView(s),a)}}return n(new Zk[o](a),i)};return r},eO=e=>JH(new Map,e)(0),ja="",{toString:ZH}={},{keys:e7}=Object,zl=e=>{const t=typeof e;if(t!=="object"||!e)return[Jh,t];const n=ZH.call(e).slice(8,-1);switch(n){case"Array":return[mu,ja];case"Object":return[ap,ja];case"Date":return[aw,ja];case"RegExp":return[sw,ja];case"Map":return[lw,ja];case"Set":return[uw,ja];case"DataView":return[mu,n]}return n.includes("Array")?[mu,n]:n.includes("Error")?[MN,n]:[ap,n]},Af=([e,t])=>e===Jh&&(t==="function"||t==="symbol"),t7=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=zl(a);switch(s){case Jh:{let f=a;switch(l){case"bigint":s=IN,f=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([$N],a)}return i([s,f],a)}case mu:{if(l){let d=a;return l==="DataView"?d=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(a)),i([l,[...d]],a)}const f=[],c=i([s,f],a);for(const d of a)f.push(o(d));return c}case ap:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const f=[],c=i([s,f],a);for(const d of e7(a))(e||!Af(zl(a[d])))&&f.push([o(d),o(a[d])]);return c}case aw:return i([s,a.toISOString()],a);case sw:{const{source:f,flags:c}=a;return i([s,{source:f,flags:c}],a)}case lw:{const f=[],c=i([s,f],a);for(const[d,p]of a)(e||!(Af(zl(d))||Af(zl(p))))&&f.push([o(d),o(p)]);return c}case uw:{const f=[],c=i([s,f],a);for(const d of a)(e||!Af(zl(d)))&&f.push(o(d));return c}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},tO=(e,{json:t,lossy:n}={})=>{const r=[];return t7(!(t||n),!!t,new Map,r)(e),r},sp=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?eO(tO(e,t)):structuredClone(e):(e,t)=>eO(tO(e,t));function n7(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function r7(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function i7(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||n7,r=e.options.footnoteBackLabel||r7,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),d=ul(c.toLowerCase());let p=0;const m=[],g=e.footnoteCounts.get(c);for(;g!==void 0&&++p<=g;){m.length>0&&m.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,p);typeof x=="string"&&(x={type:"text",value:x}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const v=f[f.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const x=v.children[v.children.length-1];x&&x.type==="text"?x.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...m)}else f.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...sp(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
309
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
310
|
+
`}]}}const Zh=function(e){if(e==null)return l7;if(typeof e=="function")return em(e);if(typeof e=="object")return Array.isArray(e)?o7(e):a7(e);if(typeof e=="string")return s7(e);throw new Error("Expected function, string, or object as test")};function o7(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Zh(e[n]);return em(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function a7(e){const t=e;return em(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function s7(e){return em(t);function t(n){return n&&n.type===e}}function em(e){return t;function t(n,r,i){return!!(u7(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function l7(){return!0}function u7(e){return e!==null&&typeof e=="object"&&"type"in e}const RN=[],c7=!0,Qv=!1,f7="skip";function DN(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Zh(i),a=r?-1:1;s(e,void 0,[])();function s(l,u,f){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=RN,m,g,v;if((!t||o(l,u,f[f.length-1]||void 0))&&(p=d7(n(l,f)),p[0]===Qv))return p;if("children"in l&&l.children){const y=l;if(y.children&&p[0]!==f7)for(g=(r?y.children.length:-1)+a,v=f.concat(y);g>-1&&g<y.children.length;){const x=y.children[g];if(m=s(x,g,v)(),m[0]===Qv)return m;g=typeof m[1]=="number"?m[1]:g+a}}return p}}}function d7(e){return Array.isArray(e)?e:typeof e=="number"?[c7,e]:e==null?RN:[e]}function cw(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),DN(e,o,s,i);function s(l,u){const f=u[u.length-1],c=f?f.children.indexOf(l):void 0;return a(l,c,f)}}const Jv={}.hasOwnProperty,p7={};function h7(e,t){const n=t||p7,r=new Map,i=new Map,o=new Map,a={...QH,...n.handlers},s={all:u,applyData:g7,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:l,options:n,patch:m7,wrap:v7};return cw(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();c.has(d)||c.set(d,f)}}),s;function l(f,c){const d=f.type,p=s.handlers[d];if(Jv.call(s.handlers,d)&&p)return p(s,f,c);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in f){const{children:g,...v}=f,y=sp(v);return y.children=s.all(f),y}return sp(f)}return(s.options.unknownHandler||y7)(s,f,c)}function u(f){const c=[];if("children"in f){const d=f.children;let p=-1;for(;++p<d.length;){const m=s.one(d[p],f);if(m){if(p&&d[p-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=nO(m.value)),!Array.isArray(m)&&m.type==="element")){const g=m.children[0];g&&g.type==="text"&&(g.value=nO(g.value))}Array.isArray(m)?c.push(...m):c.push(m)}}}return c}}function m7(e,t){e.position&&(t.position=r9(e))}function g7(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,sp(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function y7(e,t){const n=t.data||{},r="value"in t&&!(Jv.call(n,"hProperties")||Jv.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function v7(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
311
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
312
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
313
|
+
`}),n}function nO(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function rO(e,t){const n=h7(e,t),r=n.one(e,void 0),i=i7(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
314
|
+
`},i),o}function x7(e,t){return e&&"run"in e?async function(n,r){const i=rO(n,{file:r,...t});await e.run(i,r)}:function(n,r){return rO(n,{file:r,...e||t})}}function iO(e){if(e)throw e}var yd=Object.prototype.hasOwnProperty,LN=Object.prototype.toString,oO=Object.defineProperty,aO=Object.getOwnPropertyDescriptor,sO=function(t){return typeof Array.isArray=="function"?Array.isArray(t):LN.call(t)==="[object Array]"},lO=function(t){if(!t||LN.call(t)!=="[object Object]")return!1;var n=yd.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&yd.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||yd.call(t,i)},uO=function(t,n){oO&&n.name==="__proto__"?oO(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},cO=function(t,n){if(n==="__proto__")if(yd.call(t,n)){if(aO)return aO(t,n).value}else return;return t[n]},b7=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=cO(s,n),i=cO(t,n),s!==i&&(f&&i&&(lO(i)||(o=sO(i)))?(o?(o=!1,a=r&&sO(r)?r:[]):a=r&&lO(r)?r:{},uO(s,{name:n,newValue:e(f,a,i)})):typeof i<"u"&&uO(s,{name:n,newValue:i}));return s};const Bg=Ce(b7);function Zv(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function w7(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...u){const f=e[++o];let c=-1;if(l){a(l);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?S7(f,s)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function S7(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const f=u;if(s&&n)throw f;return i(f)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const Mr={basename:k7,dirname:O7,extname:E7,join:P7,sep:"/"};function k7(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Fc(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function O7(e){if(Fc(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function E7(e){Fc(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function P7(...e){let t=-1,n;for(;++t<e.length;)Fc(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":j7(n)}function j7(e){Fc(e);const t=e.codePointAt(0)===47;let n=A7(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function A7(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function Fc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _7={cwd:C7};function C7(){return"/"}function ex(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function T7(e){if(typeof e=="string")e=new URL(e);else if(!ex(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return N7(e)}function N7(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Wg=["history","path","basename","stem","extname","dirname"];class FN{constructor(t){let n;t?ex(t)?n={path:t}:typeof t=="string"||$7(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":_7.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Wg.length;){const o=Wg[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Wg.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Mr.basename(this.path):void 0}set basename(t){Hg(t,"basename"),Ug(t,"basename"),this.path=Mr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Mr.dirname(this.path):void 0}set dirname(t){fO(this.basename,"dirname"),this.path=Mr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Mr.extname(this.path):void 0}set extname(t){if(Ug(t,"extname"),fO(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ex(t)&&(t=T7(t)),Hg(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Mr.basename(this.path,this.extname):void 0}set stem(t){Hg(t,"stem"),Ug(t,"stem"),this.path=Mr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Gt(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ug(e,t){if(e&&e.includes(Mr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mr.sep+"`")}function Hg(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fO(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function $7(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const M7=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},I7={}.hasOwnProperty;class fw extends M7{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=w7()}copy(){const t=new fw;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Bg(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(qg("data",this.frozen),this.namespace[t]=n,this):I7.call(this.namespace,t)&&this.namespace[t]||void 0:t?(qg("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=_f(t),r=this.parser||this.Parser;return Vg("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Vg("process",this.parser||this.Parser),Kg("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const s=_f(t),l=r.parse(s);r.run(l,s,function(f,c,d){if(f||!c||!d)return u(f);const p=c,m=r.stringify(p,d);L7(m)?d.value=m:d.result=m,u(f,d)});function u(f,c){f||!c?a(f):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Vg("processSync",this.parser||this.Parser),Kg("processSync",this.compiler||this.Compiler),this.process(t,i),pO("processSync","process",n),r;function i(o,a){n=!0,iO(o),r=a}}run(t,n,r){dO(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,s){const l=_f(n);i.run(t,l,u);function u(f,c,d){const p=c||t;f?s(f):a?a(p):r(void 0,p,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),pO("runSync","run",r),i;function o(a,s){iO(a),i=s,r=!0}}stringify(t,n){this.freeze();const r=_f(n),i=this.compiler||this.Compiler;return Kg("stringify",i),dO(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(qg("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;l(f,c)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=Bg(!0,i.settings,u.settings))}function s(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,f){let c=-1,d=-1;for(;++c<r.length;)if(r[c][0]===u){d=c;break}if(d===-1)r.push([u,...f]);else if(f.length>0){let[p,...m]=f;const g=r[d][1];Zv(g)&&Zv(p)&&(p=Bg(!0,g,p)),r[d]=[u,p,...m]}}}}const R7=new fw().freeze();function Vg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Kg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qg(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dO(e){if(!Zv(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function pO(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _f(e){return D7(e)?e:new FN(e)}function D7(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function L7(e){return typeof e=="string"||F7(e)}function F7(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const z7="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",hO=[],mO={allowDangerousHtml:!0},B7=/^(https?|ircs?|mailto|xmpp)$/i,W7=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ps(e){const t=U7(e),n=H7(e);return V7(t.runSync(t.parse(n),n),e)}function U7(e){const t=e.rehypePlugins||hO,n=e.remarkPlugins||hO,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...mO}:mO;return R7().use(EH).use(n).use(x7,r).use(t)}function H7(e){const t=e.children||"",n=new FN;return typeof t=="string"&&(n.value=t),n}function V7(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||K7;for(const f of W7)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+z7+f.id,void 0);return cw(e,u),l9(e,{Fragment:h.Fragment,components:i,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function u(f,c,d){if(f.type==="raw"&&d&&typeof c=="number")return a?d.children.splice(c,1):d.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in Lg)if(Object.hasOwn(Lg,p)&&Object.hasOwn(f.properties,p)){const m=f.properties[p],g=Lg[p];(g===null||g.includes(f.tagName))&&(f.properties[p]=l(String(m||""),p,f))}}if(f.type==="element"){let p=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,d)),p&&d&&typeof c=="number")return s&&f.children?d.children.splice(c,1,...f.children):d.children.splice(c,1),c}}}function K7(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||B7.test(e.slice(0,t))?e:""}function gO(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function q7(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function G7(e,t,n){const i=Zh((n||{}).ignore||[]),o=Y7(t);let a=-1;for(;++a<o.length;)DN(e,"text",s);function s(u,f){let c=-1,d;for(;++c<f.length;){const p=f[c],m=d?d.children:void 0;if(i(p,m?m.indexOf(p):void 0,d))return;d=p}if(d)return l(u,f)}function l(u,f){const c=f[f.length-1],d=o[a][0],p=o[a][1];let m=0;const v=c.children.indexOf(u);let y=!1,x=[];d.lastIndex=0;let b=d.exec(u.value);for(;b;){const O=b.index,S={index:b.index,input:b.input,stack:[...f,u]};let w=p(...b,S);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?d.lastIndex=O+1:(m!==O&&x.push({type:"text",value:u.value.slice(m,O)}),Array.isArray(w)?x.push(...w):w&&x.push(w),m=O+b[0].length,y=!0),!d.global)break;b=d.exec(u.value)}return y?(m<u.value.length&&x.push({type:"text",value:u.value.slice(m)}),c.children.splice(v,1,...x)):x=[u],v+x.length}}function Y7(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([X7(i[0]),Q7(i[1])])}return t}function X7(e){return typeof e=="string"?new RegExp(q7(e),"g"):e}function Q7(e){return typeof e=="function"?e:function(){return e}}const Gg="phrasing",Yg=["autolink","link","image","label"];function J7(){return{transforms:[oV],enter:{literalAutolink:eV,literalAutolinkEmail:Xg,literalAutolinkHttp:Xg,literalAutolinkWww:Xg},exit:{literalAutolink:iV,literalAutolinkEmail:rV,literalAutolinkHttp:tV,literalAutolinkWww:nV}}}function Z7(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Gg,notInConstruct:Yg},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Gg,notInConstruct:Yg},{character:":",before:"[ps]",after:"\\/",inConstruct:Gg,notInConstruct:Yg}]}}function eV(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Xg(e){this.config.enter.autolinkProtocol.call(this,e)}function tV(e){this.config.exit.autolinkProtocol.call(this,e)}function nV(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function rV(e){this.config.exit.autolinkEmail.call(this,e)}function iV(e){this.exit(e)}function oV(e){G7(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,aV],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),sV]],{ignore:["link","linkReference"]})}function aV(e,t,n,r,i){let o="";if(!zN(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!lV(n)))return!1;const a=uV(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function sV(e,t,n,r){return!zN(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function lV(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function uV(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=gO(e,"(");let o=gO(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function zN(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||aa(n)||Xh(n))&&(!t||n!==47)}BN.peek=vV;function cV(){this.buffer()}function fV(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function dV(){this.buffer()}function pV(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function hV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=xr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function mV(e){this.exit(e)}function gV(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=xr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yV(e){this.exit(e)}function vV(){return"["}function BN(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function xV(){return{enter:{gfmFootnoteCallString:cV,gfmFootnoteCall:fV,gfmFootnoteDefinitionLabelString:dV,gfmFootnoteDefinition:pV},exit:{gfmFootnoteCallString:hV,gfmFootnoteCall:mV,gfmFootnoteDefinitionLabelString:gV,gfmFootnoteDefinition:yV}}}function bV(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:BN},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,a){const s=o.createTracker(a);let l=s.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return l+=s.move(o.safe(o.associationId(r),{before:l,after:"]"})),f(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
|
|
315
|
+
`:" ")+o.indentLines(o.containerFlow(r,s.current()),t?WN:wV))),u(),l}}function wV(e,t,n){return t===0?e:WN(e,t,n)}function WN(e,t,n){return(n?"":" ")+e}const SV=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];UN.peek=jV;function kV(){return{canContainEols:["delete"],enter:{strikethrough:EV},exit:{strikethrough:PV}}}function OV(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:SV}],handlers:{delete:UN}}}function EV(e){this.enter({type:"delete",children:[]},e)}function PV(e){this.exit(e)}function UN(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function jV(){return"~"}function AV(e){return e.length}function _V(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||AV,o=[],a=[],s=[],l=[];let u=0,f=-1;for(;++f<e.length;){const g=[],v=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const x=CV(e[f][y]);if(n.alignDelimiters!==!1){const b=i(x);v[y]=b,(l[y]===void 0||b>l[y])&&(l[y]=b)}g.push(x)}a[f]=g,s[f]=v}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)o[c]=yO(r[c]);else{const g=yO(r);for(;++c<u;)o[c]=g}c=-1;const d=[],p=[];for(;++c<u;){const g=o[c];let v="",y="";g===99?(v=":",y=":"):g===108?v=":":g===114&&(y=":");let x=n.alignDelimiters===!1?1:Math.max(1,l[c]-v.length-y.length);const b=v+"-".repeat(x)+y;n.alignDelimiters!==!1&&(x=v.length+x+y.length,x>l[c]&&(l[c]=x),p[c]=x),d[c]=b}a.splice(1,0,d),s.splice(1,0,p),f=-1;const m=[];for(;++f<a.length;){const g=a[f],v=s[f];c=-1;const y=[];for(;++c<u;){const x=g[c]||"";let b="",O="";if(n.alignDelimiters!==!1){const S=l[c]-(v[c]||0),w=o[c];w===114?b=" ".repeat(S):w===99?S%2?(b=" ".repeat(S/2+.5),O=" ".repeat(S/2-.5)):(b=" ".repeat(S/2),O=b):O=" ".repeat(S)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&x==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(b),y.push(x),n.alignDelimiters!==!1&&y.push(O),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&y.push("|")}m.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
|
|
316
|
+
`)}function CV(e){return e==null?"":String(e)}function yO(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function TV(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),NV);return i(),a}function NV(e,t,n){return">"+(n?"":" ")+e}function $V(e,t){return vO(e,t.inConstruct,!0)&&!vO(e,t.notInConstruct,!1)}function vO(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function xO(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
317
|
+
`&&$V(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
318
|
+
`}function MV(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function IV(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function RV(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function DV(e,t,n,r){const i=RV(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(IV(e,n)){const c=n.enter("codeIndented"),d=n.indentLines(o,LV);return c(),d}const s=n.createTracker(r),l=i.repeat(Math.max(MV(o,i)+1,3)),u=n.enter("codeFenced");let f=s.move(l);if(e.lang){const c=n.enter(`codeFencedLang${a}`);f+=s.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${a}`);f+=s.move(" "),f+=s.move(n.safe(e.meta,{before:f,after:`
|
|
319
|
+
`,encode:["`"],...s.current()})),c()}return f+=s.move(`
|
|
320
|
+
`),o&&(f+=s.move(o+`
|
|
321
|
+
`)),f+=s.move(l),u(),f}function LV(e,t,n){return(n?"":" ")+e}function dw(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function FV(e,t,n,r){const i=dw(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
322
|
+
`,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function zV(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Hu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function lp(e,t,n){const r=Es(e),i=Es(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}HN.peek=BV;function HN(e,t,n,r){const i=zV(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),f=lp(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(l=Hu(u)+l.slice(1));const c=l.charCodeAt(l.length-1),d=lp(r.after.charCodeAt(0),c,i);d.inside&&(l=l.slice(0,-1)+Hu(c));const p=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+l+p}function BV(e,t,n){return n.options.emphasis||"*"}function WV(e,t){let n=!1;return cw(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Qv}),!!((!e.depth||e.depth<3)&&rw(e)&&(t.options.setext||n))}function UV(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(WV(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),d=n.containerPhrasing(e,{...o.current(),before:`
|
|
323
|
+
`,after:`
|
|
324
|
+
`});return c(),f(),d+`
|
|
325
|
+
`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
326
|
+
`))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
327
|
+
`,...o.current()});return/^[\t ]/.test(u)&&(u=Hu(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}VN.peek=HV;function VN(e){return e.value||""}function HV(){return"<"}KN.peek=VV;function KN(e,t,n,r){const i=dw(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function VV(){return"!"}qN.peek=KV;function qN(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=f,o(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function KV(){return"!"}GN.peek=qV;function GN(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],s=n.compilePattern(a);let l;if(a.atBreak)for(;l=s.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function qV(){return"`"}function YN(e,t){const n=rw(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}XN.peek=GV;function XN(e,t,n,r){const i=dw(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(YN(e,n)){const f=n.stack;n.stack=[],s=n.enter("autolink");let c=a.move("<");return c+=a.move(n.containerPhrasing(e,{before:c,after:">",...a.current()})),c+=a.move(">"),s(),n.stack=f,c}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function GV(e,t,n){return YN(e,n)?"<":"["}QN.peek=YV;function QN(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=f,o(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function YV(){return"["}function pw(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function XV(e){const t=pw(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function QV(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function JN(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function JV(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?QV(n):pw(n);const s=e.ordered?a==="."?")":".":XV(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),JN(n)===a&&f){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const u=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),u}function ZV(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function eK(e,t,n,r){const i=ZV(n);let o=n.bulletCurrent||pw(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),f);return l(),u;function f(c,d,p){return d?(p?"":" ".repeat(a))+c:(p?o:o+" ".repeat(a-o.length))+c}}function tK(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const nK=Zh(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rK(e,t,n,r){return(e.children.some(function(a){return nK(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function iK(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ZN.peek=oK;function ZN(e,t,n,r){const i=iK(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),f=lp(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(l=Hu(u)+l.slice(1));const c=l.charCodeAt(l.length-1),d=lp(r.after.charCodeAt(0),c,i);d.inside&&(l=l.slice(0,-1)+Hu(c));const p=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+l+p}function oK(e,t,n){return n.options.strong||"*"}function aK(e,t,n,r){return n.safe(e.value,r)}function sK(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function lK(e,t,n){const r=(JN(n)+(n.options.ruleSpaces?" ":"")).repeat(sK(n));return n.options.ruleSpaces?r.slice(0,-1):r}const e$={blockquote:TV,break:xO,code:DV,definition:FV,emphasis:HN,hardBreak:xO,heading:UV,html:VN,image:KN,imageReference:qN,inlineCode:GN,link:XN,linkReference:QN,list:JV,listItem:eK,paragraph:tK,root:rK,strong:ZN,text:aK,thematicBreak:lK};function uK(){return{enter:{table:cK,tableData:bO,tableHeader:bO,tableRow:dK},exit:{codeText:pK,table:fK,tableData:Qg,tableHeader:Qg,tableRow:Qg}}}function cK(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function fK(e){this.exit(e),this.data.inTable=void 0}function dK(e){this.enter({type:"tableRow",children:[]},e)}function Qg(e){this.exit(e)}function bO(e){this.enter({type:"tableCell",children:[]},e)}function pK(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,hK));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function hK(e,t){return t==="|"?t:e}function mK(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
328
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:a,tableCell:l,tableRow:s}};function a(p,m,g,v){return u(f(p,g,v),p.align)}function s(p,m,g,v){const y=c(p,g,v),x=u([y]);return x.slice(0,x.indexOf(`
|
|
329
|
+
`))}function l(p,m,g,v){const y=g.enter("tableCell"),x=g.enter("phrasing"),b=g.containerPhrasing(p,{...v,before:o,after:o});return x(),y(),b}function u(p,m){return _V(p,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function f(p,m,g){const v=p.children;let y=-1;const x=[],b=m.enter("table");for(;++y<v.length;)x[y]=c(v[y],m,g);return b(),x}function c(p,m,g){const v=p.children;let y=-1;const x=[],b=m.enter("tableRow");for(;++y<v.length;)x[y]=l(v[y],p,m,g);return b(),x}function d(p,m,g){let v=e$.inlineCode(p,m,g);return g.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function gK(){return{exit:{taskListCheckValueChecked:wO,taskListCheckValueUnchecked:wO,paragraph:vK}}}function yK(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xK}}}function wO(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function vK(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function xK(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=e$.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(f){return f+a}}function bK(){return[J7(),xV(),kV(),uK(),gK()]}function wK(e){return{extensions:[Z7(),bV(e),OV(),mK(e),yK()]}}const SK={tokenize:AK,partial:!0},t$={tokenize:_K,partial:!0},n$={tokenize:CK,partial:!0},r$={tokenize:TK,partial:!0},kK={tokenize:NK,partial:!0},i$={name:"wwwAutolink",tokenize:PK,previous:a$},o$={name:"protocolAutolink",tokenize:jK,previous:s$},Ti={name:"emailAutolink",tokenize:EK,previous:l$},Yr={};function OK(){return{text:Yr}}let Co=48;for(;Co<123;)Yr[Co]=Ti,Co++,Co===58?Co=65:Co===91&&(Co=97);Yr[43]=Ti;Yr[45]=Ti;Yr[46]=Ti;Yr[95]=Ti;Yr[72]=[Ti,o$];Yr[104]=[Ti,o$];Yr[87]=[Ti,i$];Yr[119]=[Ti,i$];function EK(e,t,n){const r=this;let i,o;return a;function a(c){return!tx(c)||!l$.call(r,r.previous)||hw(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return tx(c)?(e.consume(c),s):c===64?(e.consume(c),l):n(c)}function l(c){return c===46?e.check(kK,f,u)(c):c===45||c===95||Kt(c)?(o=!0,e.consume(c),l):f(c)}function u(c){return e.consume(c),i=!0,l}function f(c){return o&&i&&Jt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function PK(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!a$.call(r,r.previous)||hw(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(SK,e.attempt(t$,e.attempt(n$,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function jK(e,t,n){const r=this;let i="",o=!1;return a;function a(c){return(c===72||c===104)&&s$.call(r,r.previous)&&!hw(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(Jt(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(c),l}return n(c)}function l(c){return c===47?(e.consume(c),o?u:(o=!0,l)):n(c)}function u(c){return c===null||op(c)||Fe(c)||aa(c)||Xh(c)?n(c):e.attempt(t$,e.attempt(n$,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function AK(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function _K(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(r$,l,s)(u):u===null||Fe(u)||aa(u)||u!==45&&Xh(u)?l(u):(o=!0,e.consume(u),a)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),a}function l(u){return i||r||!o?n(u):t(u)}}function CK(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(r$,t,o)(a):a===null||Fe(a)||aa(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function TK(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||Fe(s)||aa(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Fe(s)||aa(s)?t(s):r(s)}function o(s){return Jt(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):Jt(s)?(e.consume(s),a):n(s)}}function NK(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Kt(o)?n(o):t(o)}}function a$(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Fe(e)}function s$(e){return!Jt(e)}function l$(e){return!(e===47||tx(e))}function tx(e){return e===43||e===45||e===46||e===95||Kt(e)}function hw(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const $K={tokenize:BK,partial:!0};function MK(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:LK,continuation:{tokenize:FK},exit:zK}},text:{91:{name:"gfmFootnoteCall",tokenize:DK},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:IK,resolveTo:RK}}}}function IK(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=xr(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function RK(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function DK(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!a||c===null||c===91||Fe(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(xr(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return Fe(c)||(a=!0),o++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function LK(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(m)}function f(m){if(a>999||m===93&&!s||m===null||m===91||Fe(m))return n(m);if(m===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return o=xr(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Fe(m)||(s=!0),a++,e.consume(m),m===92?c:f}function c(m){return m===91||m===92||m===93?(e.consume(m),a++,f):f(m)}function d(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),Pe(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function FK(e,t,n){return e.check(Lc,t,e.attempt($K,t,n))}function zK(e){e.exit("gfmFootnoteDefinition")}function BK(e,t,n){const r=this;return Pe(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function WK(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},c={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},d=[["enter",f,s],["enter",a[u][1],s],["exit",a[u][1],s],["enter",c,s]],p=s.parser.constructs.insideSpan.null;p&&$n(d,d.length,0,Qh(p,a.slice(u+1,l),s)),$n(d,d.length,0,[["exit",c,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",f,s]]),$n(a,u-1,l-u+3,d),l=u+d.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const u=this.previous,f=this.events;let c=0;return d;function d(m){return u===126&&f[f.length-1][1].type!=="characterEscape"?l(m):(a.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const g=Es(u);if(m===126)return c>1?l(m):(a.consume(m),c++,p);if(c<2&&!n)return l(m);const v=a.exit("strikethroughSequenceTemporary"),y=Es(m);return v._open=!y||y===2&&!!g,v._close=!g||g===2&&!!y,s(m)}}}class UK{constructor(){this.map=[]}add(t,n,r){HK(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function HK(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function VK(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function KK(){return{flow:{null:{name:"table",tokenize:qK,resolveAll:GK}}}}function qK(e,t,n){const r=this;let i=0,o=0,a;return s;function s(A){let $=r.events.length-1;for(;$>-1;){const F=r.events[$][1].type;if(F==="lineEnding"||F==="linePrefix")$--;else break}const N=$>-1?r.events[$][1].type:null,R=N==="tableHead"||N==="tableRow"?w:l;return R===w&&r.parser.lazy[r.now().line]?n(A):R(A)}function l(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(a=!0,o+=1),f(A)}function f(A){return A===null?n(A):ue(A)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),p):n(A):we(A)?Pe(e,f,"whitespace")(A):(o+=1,a&&(a=!1,i+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),a=!0,f):(e.enter("data"),c(A)))}function c(A){return A===null||A===124||Fe(A)?(e.exit("data"),f(A)):(e.consume(A),A===92?d:c)}function d(A){return A===92||A===124?(e.consume(A),c):c(A)}function p(A){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(A):(e.enter("tableDelimiterRow"),a=!1,we(A)?Pe(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):m(A))}function m(A){return A===45||A===58?v(A):A===124?(a=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),g):S(A)}function g(A){return we(A)?Pe(e,v,"whitespace")(A):v(A)}function v(A){return A===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),y):A===45?(o+=1,y(A)):A===null||ue(A)?O(A):S(A)}function y(A){return A===45?(e.enter("tableDelimiterFiller"),x(A)):S(A)}function x(A){return A===45?(e.consume(A),x):A===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(A))}function b(A){return we(A)?Pe(e,O,"whitespace")(A):O(A)}function O(A){return A===124?m(A):A===null||ue(A)?!a||i!==o?S(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):S(A)}function S(A){return n(A)}function w(A){return e.enter("tableRow"),E(A)}function E(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),E):A===null||ue(A)?(e.exit("tableRow"),t(A)):we(A)?Pe(e,E,"whitespace")(A):(e.enter("data"),P(A))}function P(A){return A===null||A===124||Fe(A)?(e.exit("data"),E(A)):(e.consume(A),A===92?_:P)}function _(A){return A===92||A===124?(e.consume(A),P):P(A)}}function GK(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,f,c;const d=new UK;for(;++n<e.length;){const p=e[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(s=!1,l!==0&&(SO(d,t,l,u,f),f=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(n,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,f={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},d.add(n,0,[["enter",f,t]])),i=m.type==="tableDelimiterRow"?2:f?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],c=Cf(d,t,o,i,void 0,c),o=[0,0,0,0]),a[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],c=Cf(d,t,o,i,void 0,c)),o=a,a=[o[1],n,0,0])):m.type==="tableHead"?(s=!0,l=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],c=Cf(d,t,o,i,n,c)):a[1]!==0&&(c=Cf(d,t,a,i,n,c)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&SO(d,t,l,u,f),d.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=VK(t.events,n))}return e}function Cf(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},La(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=La(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=La(t.events,n[2]),f=La(t.events,n[3]),c={type:s,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const d=t.events[n[2]],p=t.events[n[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,g=n[3]-n[2]-1;e.add(m,g,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},La(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function SO(e,t,n,r,i){const o=[],a=La(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function La(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const YK={name:"tasklistCheck",tokenize:QK};function XK(){return{text:{91:YK}}}function QK(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return Fe(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return ue(l)?t(l):we(l)?e.check({tokenize:JK},t,n)(l):n(l)}}function JK(e,t,n){return Pe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function ZK(e){return vN([OK(),MK(),WK(e),KK(),XK()])}const eq={};function js(e){const t=this,n=e||eq,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(ZK(n)),o.push(bK()),a.push(wK(n))}function tq({command:e,onRun:t,onDismiss:n}){const[r,i]=k.useState(!1);function o(){i(!0),t(e)}return h.jsxs("div",{className:"my-2 rounded-md border border-dracula-purple/30 bg-dracula-purple/10 p-2.5 text-xs",children:[h.jsx("div",{className:"mb-2 font-medium text-dracula-purple",children:"Suggested command"}),h.jsx("pre",{className:"mb-2 overflow-x-auto rounded bg-background/60 px-2 py-1 font-mono text-dracula-cyan",children:e}),h.jsx("div",{className:"flex items-center gap-2",children:r?h.jsx("span",{className:"rounded bg-dracula-green/20 px-2 py-0.5 text-dracula-green",children:"Queued"}):h.jsxs(h.Fragment,{children:[h.jsx(je,{size:"sm",variant:"default",className:le("h-6 px-2 text-xs"),onClick:o,children:"Run"}),h.jsx(je,{size:"sm",variant:"ghost",className:"h-6 px-2 text-xs",onClick:()=>n(e),children:"Dismiss"})]})})]})}function nq(e){const t=[],n=/:::command\s*\n([\s\S]*?):::/g;let r=0,i;for(;(i=n.exec(e))!==null;)i.index>r&&t.push({type:"text",content:e.slice(r,i.index)}),t.push({type:"command",content:i[1].trim()}),r=i.index+i[0].length;return r<e.length&&t.push({type:"text",content:e.slice(r)}),t}function rq({message:e,onConfirmCommand:t,onDismissCommand:n}){if(e.role==="user")return h.jsx("div",{className:"flex justify-end px-3 py-1",children:h.jsx("div",{className:"max-w-[85%] rounded-2xl rounded-br-sm bg-dracula-purple/20 px-3 py-2 text-xs text-foreground",children:e.content})});const i=nq(e.content);return h.jsx("div",{className:"flex justify-start px-3 py-1",children:h.jsx("div",{className:le("max-w-[95%] rounded-2xl rounded-bl-sm bg-dracula-current/30 px-3 py-2 text-xs","prose prose-invert prose-xs max-w-none","[&_code]:rounded [&_code]:bg-background/60 [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-dracula-cyan","[&_pre]:rounded [&_pre]:bg-background/60 [&_pre]:p-2","[&_pre_code]:bg-transparent [&_pre_code]:p-0","[&_a]:text-dracula-cyan","[&_p]:my-1 [&_ul]:my-1 [&_ol]:my-1 [&_li]:my-0.5"),children:i.map((o,a)=>{if(o.type==="command")return h.jsx(tq,{command:o.content,onRun:t,onDismiss:n},a);const s=o.content.trim();return s?h.jsx(Ps,{remarkPlugins:[js],children:s},a):null})})})}function iq({messages:e,streamingText:t,isStreaming:n,onConfirmCommand:r,onDismissCommand:i}){const o=k.useRef(null),a=k.useRef(null),s=k.useRef(!1);function l(){const u=a.current;if(!u)return;const f=u.scrollHeight-u.scrollTop-u.clientHeight;s.current=f>100}return k.useEffect(()=>{var u;s.current||(u=o.current)==null||u.scrollIntoView({behavior:"smooth"})},[e,t]),h.jsxs("div",{ref:a,className:"flex-1 overflow-y-auto py-2",onScroll:l,children:[e.length===0&&!n&&h.jsx("div",{className:"flex h-full items-center justify-center text-xs text-muted-foreground",children:"Start a conversation"}),e.map(u=>h.jsx(rq,{message:u,onConfirmCommand:r,onDismissCommand:i},u.id)),n&&t&&h.jsx("div",{className:"flex justify-start px-3 py-1",children:h.jsx("div",{className:"max-w-[95%] rounded-2xl rounded-bl-sm bg-dracula-current/30 px-3 py-2 text-xs text-foreground whitespace-pre-wrap",children:t})}),n&&h.jsx("div",{className:"px-3 py-1",children:h.jsx("span",{className:"animate-pulse text-xs text-muted-foreground",children:"..."})}),h.jsx("div",{ref:o})]})}const oq=[{value:"claude-opus-4-5",label:"Opus 4.5"},{value:"claude-sonnet-4-5",label:"Sonnet 4.5"},{value:"claude-haiku-4-5",label:"Haiku 4.5"}];function aq({conversationId:e,model:t,hasMessages:n,isStreaming:r,onSend:i,onAbort:o}){const[a,s]=k.useState(""),l=k.useRef(null);function u(d){d.key==="Enter"&&!d.shiftKey&&(d.preventDefault(),f())}function f(){const d=a.trim();!d||r||(i(e,d),s(""),l.current&&(l.current.style.height="auto"))}function c(){const d=l.current;d&&(d.style.height="auto",d.style.height=`${Math.min(d.scrollHeight,80)}px`)}return h.jsxs("div",{className:"border-t border-border/30 p-2",children:[h.jsxs("div",{className:"mb-1.5 flex items-center justify-between",children:[h.jsx("select",{value:t,disabled:n,className:le("rounded bg-transparent text-[10px] text-muted-foreground outline-none","border border-border/20 px-1.5 py-0.5",n&&"opacity-50 cursor-not-allowed"),onChange:()=>{},children:oq.map(d=>h.jsx("option",{value:d.value,className:"bg-background",children:d.label},d.value))}),r&&h.jsx(je,{size:"sm",variant:"ghost",className:"h-5 px-1.5 text-[10px] text-dracula-red hover:text-dracula-red",onClick:()=>o(e),children:"Stop"})]}),h.jsxs("div",{className:"flex items-end gap-1.5",children:[h.jsx("textarea",{ref:l,rows:1,value:a,disabled:r,placeholder:"Message...",className:le("flex-1 resize-none rounded-md border border-border/30 bg-background/60","px-2.5 py-1.5 text-xs text-foreground placeholder:text-muted-foreground","focus:outline-none focus:ring-1 focus:ring-dracula-purple/50","disabled:opacity-50","max-h-[80px] overflow-y-auto"),onChange:d=>s(d.target.value),onKeyDown:u,onInput:c}),h.jsx(je,{size:"sm",variant:"default",disabled:!a.trim()||r,className:"h-7 shrink-0 px-2.5 text-xs",onClick:f,children:"Send"})]})]})}function u$({chat:e}){const{conversations:t,activeTabIndex:n,isPanelOpen:r,setActiveTabIndex:i,togglePanel:o,createConversation:a,deleteConversation:s,sendMessage:l,abortStream:u,confirmCommand:f,dismissCommandProposal:c}=e,d=t.filter(m=>m.isStreaming).length,p=t[n]??null;return r?h.jsxs("div",{className:"flex w-80 shrink-0 flex-col border-l border-border/30 bg-background/80 backdrop-blur-sm",children:[h.jsx(fW,{title:(p==null?void 0:p.title)??null,canCreateNew:t.length<3,hasActiveConversation:p!==null,onToggle:o,onNewConversation:()=>a(),onDeleteConversation:()=>{p&&s(p.id)}}),t.length>0&&h.jsx("div",{className:"flex shrink-0 items-center gap-0 border-b border-border/30 overflow-x-auto",children:t.map((m,g)=>h.jsxs("div",{className:le("group flex min-w-0 flex-1 cursor-pointer items-center gap-1 px-2.5 py-1.5","text-[10px] transition-colors",g===n?"border-b-2 border-dracula-purple text-foreground":"text-muted-foreground hover:text-foreground border-b-2 border-transparent"),onClick:()=>i(g),children:[h.jsx("span",{className:"truncate max-w-[70px]",children:m.title??`Chat ${g+1}`}),m.isStreaming&&h.jsx("span",{className:"h-1.5 w-1.5 shrink-0 animate-pulse rounded-full bg-dracula-purple"}),h.jsx("button",{className:"ml-auto shrink-0 hidden group-hover:block text-muted-foreground hover:text-foreground",onClick:v=>{v.stopPropagation(),s(m.id)},children:"×"})]},m.id))}),p?h.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[h.jsx(iq,{messages:p.messages,streamingText:p.streamingText,isStreaming:p.isStreaming,onConfirmCommand:f,onDismissCommand:m=>c(p.id,m)}),h.jsx(aq,{conversationId:p.id,model:p.model,hasMessages:p.messages.length>0,isStreaming:p.isStreaming,onSend:l,onAbort:u})]}):h.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-4",children:[h.jsx("p",{className:"text-center text-xs text-muted-foreground",children:"No conversations yet"}),h.jsx("button",{className:"rounded-md bg-dracula-purple/20 px-3 py-1.5 text-xs text-dracula-purple hover:bg-dracula-purple/30 transition-colors",onClick:()=>a(),children:"New conversation"})]})]}):h.jsx("div",{className:"flex w-10 shrink-0 cursor-pointer flex-col items-center border-l border-border/30 bg-background/80 backdrop-blur-sm pt-6",onClick:o,title:"Open chat",children:h.jsxs("div",{className:"relative",children:[h.jsx(O8,{className:"w-4 h-4 text-dracula-purple"}),d>0&&h.jsx("span",{className:"absolute -top-1.5 -right-1.5 flex h-3.5 w-3.5 items-center justify-center rounded-full bg-dracula-pink text-[8px] font-bold text-white",children:d})]})})}const kO=[1e3,2e3,4e3,8e3,16e3],c$=k.createContext(null);function sq({url:e,children:t}){const[n,r]=k.useState("connecting"),i=k.useRef(new Map),o=k.useRef(null),a=k.useRef(0),s=k.useRef(null);k.useEffect(()=>{let f=!1;function c(){if(f)return;const d=new WebSocket(e);o.current=d,r("connecting"),d.onopen=()=>{if(f){d.close();return}a.current=0,r("connected")},d.onmessage=p=>{if(f)return;let m;try{m=JSON.parse(p.data)}catch{return}for(const g of i.current.values())g(m)},d.onclose=()=>{if(f)return;o.current=null;const p=a.current;if(p>=kO.length){r("disconnected");return}r("connecting");const m=kO[p];a.current+=1,s.current=setTimeout(c,m)}}return c(),()=>{var d;f=!0,s.current&&clearTimeout(s.current),(d=o.current)==null||d.close()}},[e]);const l=k.useCallback((f,c)=>{i.current.set(f,c)},[]),u=k.useCallback(f=>{i.current.delete(f)},[]);return h.jsx(c$.Provider,{value:{registerHandler:l,unregisterHandler:u,connectionStatus:n},children:t})}function zc(){const e=k.useContext(c$);if(!e)throw new Error("useSharedWebSocket must be used within SharedWebSocketProvider");return e}const Jg={jobs:[],activeJobId:null,paused:!1};function mw(e){const[t,n]=k.useState([]),[r,i]=k.useState({}),[o,a]=k.useState(""),[s,l]=k.useState([]),[u,f]=k.useState([]),[c,d]=k.useState(Jg),p=k.useRef(e);p.current=e;const m=k.useRef(new Map),g=k.useRef(void 0);k.useEffect(()=>{if(g.current&&g.current,g.current=e,e){const O=m.current.get(e);O?(n(O.phaseDefinitions),i(O.phases),a(O.projectName),f(O.recentJobs),d(O.queueState)):(n([]),i({}),a(""),f([]),d(Jg))}l([])},[e]);const v=k.useCallback(O=>{var E;const S=O,w=p.current;if(!(w&&S.projectId&&S.projectId!==w))if(S.type==="init"){const P=S.projectName??"",_=S.phaseDefinitions??[],A={};for(const R of _)A[R.key]=((E=S.phases)==null?void 0:E[R.key])??"idle";const $=S.recentJobs??[],N=S.queue??Jg;a(P),n(_),i(A),l(S.logBuffer??[]),f($),d(N),w&&m.current.set(w,{phaseDefinitions:_,phases:A,projectName:P,recentJobs:$,queueState:N})}else S.type==="phase"?i(P=>({...P,[S.phase]:S.state})):S.type==="log"?l(P=>[...P,{source:S.source,line:S.line,timestamp:S.timestamp,processId:S.processId}]):S.type==="queue"&&d({jobs:S.jobs??[],activeJobId:S.activeJobId??null,paused:S.paused??!1})},[]),{registerHandler:y,unregisterHandler:x,connectionStatus:b}=zc();return k.useLayoutEffect(()=>(y("pipeline",v),()=>x("pipeline")),[v,y,x]),k.useEffect(()=>{if(!e)return;async function O(){var S;try{const w=await fetch(`${Je()}/state`);if(!w.ok)return;const E=await w.json();if(E.projectName&&a(E.projectName),E.phaseDefinitions){n(E.phaseDefinitions);const P={};for(const _ of E.phaseDefinitions)P[_.key]=((S=E.phases)==null?void 0:S[_.key])??"idle";i(P)}E.recentJobs&&f(E.recentJobs),E.queue&&d(E.queue)}catch{}}O()},[e]),{phases:r,phaseDefinitions:t,projectName:o,logLines:s,connectionStatus:b,recentJobs:u,queueState:c}}const f$=k.createContext(null);function lq({children:e}){const[t,n]=k.useState([]),[r,i]=k.useState(null),[o,a]=k.useState(!0),[s,l]=k.useState(new Set);function u(y){Pf(!0,y),i(y)}const{registerHandler:f,unregisterHandler:c}=zc();k.useEffect(()=>{async function y(){try{const x=await fetch("/api/hub/projects");if(!x.ok)return;const b=await x.json();n(b.projects),b.projects.length>0&&i(O=>{const S=O??b.projects[0].id;return Pf(!0,S),S})}catch{}finally{a(!1)}}y()},[]);const d=k.useCallback(y=>{const x=y;if(typeof x.type=="string"){if(x.type==="hub.projects"){const b=x.projects;n(b),i(O=>{const S=O&&b.find(w=>w.id===O)?O:b.length>0?b[0].id:null;return Pf(!0,S),S}),a(!1)}else if(x.type==="hub.project_added"){const b=x.project;n(O=>O.find(S=>S.id===b.id)?O:[...O,b]),u(b.id)}else if(x.type==="hub.project_removed"){const b=x.projectId;n(O=>O.filter(S=>S.id!==b)),i(O=>O!==b?O:(Pf(!0,null),null))}}},[]);k.useLayoutEffect(()=>(f("hub",d),()=>c("hub")),[d,f,c]);const p=k.useCallback(async(y,x)=>{try{const b={path:y};x&&(b.name=x);const O=await fetch("/api/hub/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});if(!O.ok){const w=await O.json();throw new Error(w.error??`HTTP ${O.status}`)}return(await O.json()).project}catch(b){throw console.error("[useHub] addProject error:",b),b}},[]),m=k.useCallback(async y=>{try{const x=await fetch(`/api/hub/projects/${y}`,{method:"DELETE"});if(!x.ok){const b=await x.json();throw new Error(b.error??`HTTP ${x.status}`)}}catch(x){throw console.error("[useHub] removeProject error:",x),x}},[]),g=k.useCallback(y=>{l(x=>new Set([...x,y]))},[]),v=k.useCallback(y=>{l(x=>{const b=new Set(x);return b.delete(y),b})},[]);return h.jsx(f$.Provider,{value:{projects:t,activeProjectId:r,setActiveProjectId:u,addProject:p,removeProject:m,isLoading:o,setupProjectIds:s,startSetupWizard:g,completeSetupWizard:v},children:e})}const uq={projects:[],activeProjectId:null,setActiveProjectId:()=>{},addProject:async()=>null,removeProject:async()=>{},isLoading:!1,setupProjectIds:new Set,startSetupWizard:()=>{},completeSetupWizard:()=>{}};function Ni(){return k.useContext(f$)??uq}const OO="specrails.chatPanelOpen";function d$(){const{activeProjectId:e}=Ni(),[t,n]=k.useState([]),[r,i]=k.useState(0),[o,a]=k.useState(()=>{try{return localStorage.getItem(OO)==="true"}catch{return!1}}),{registerHandler:s,unregisterHandler:l}=zc(),u=k.useRef(new Map),f=k.useRef(null);k.useEffect(()=>{if(f.current&&f.current!==e&&u.current.set(f.current,t),f.current=e,e){const O=u.current.get(e);O?(n(O),i(0)):(n([]),i(0))}async function b(){try{const O=Je(),S=await fetch(`${O}/chat/conversations`);if(!S.ok)return;const E=(await S.json()).conversations.slice(0,3),P=await Promise.all(E.map(async _=>{try{const A=await fetch(`${Je()}/chat/conversations/${_.id}/messages`),$=A.ok?await A.json():{messages:[]};return{id:_.id,title:_.title,model:_.model,messages:$.messages,isStreaming:!1,streamingText:"",commandProposals:[]}}catch{return{id:_.id,title:_.title,model:_.model,messages:[],isStreaming:!1,streamingText:"",commandProposals:[]}}}));n(P),e&&u.current.set(e,P)}catch{}}b()},[e]);const c=k.useCallback(b=>{const O=b;if(typeof O.type!="string")return;const S=Je(),w=S.startsWith("/api/projects/")?S.split("/api/projects/")[1]:null;if(!(w&&O.projectId&&O.projectId!==w)){if(O.type==="chat_stream"){const E=O.conversationId,P=O.delta;n(_=>_.map(A=>A.id===E?{...A,isStreaming:!0,streamingText:A.streamingText+P}:A))}else if(O.type==="chat_done"){const E=O.conversationId,P=O.fullText;n(_=>_.map(A=>{if(A.id!==E)return A;const $={id:Date.now(),conversation_id:E,role:"assistant",content:P,created_at:new Date().toISOString()};return{...A,isStreaming:!1,streamingText:"",messages:[...A.messages,$]}}))}else if(O.type==="chat_error"){const E=O.conversationId;n(P=>P.map(_=>_.id===E?{..._,isStreaming:!1,streamingText:""}:_))}else if(O.type==="chat_command_proposal"){const E=O.conversationId,P=O.command;n(_=>_.map(A=>A.id===E&&!A.commandProposals.includes(P)?{...A,commandProposals:[...A.commandProposals,P]}:A))}else if(O.type==="chat_title_update"){const E=O.conversationId,P=O.title;n(_=>_.map(A=>A.id===E?{...A,title:P}:A))}}},[]);k.useLayoutEffect(()=>(s("chat",c),()=>l("chat")),[c,s,l]);const d=k.useCallback(()=>{a(b=>{const O=!b;try{localStorage.setItem(OO,String(O))}catch{}return O})},[]),p=k.useCallback(async(b="claude-sonnet-4-5")=>{try{const O=await fetch(`${Je()}/chat/conversations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:b})});if(!O.ok)return;const S=await O.json(),w={id:S.conversation.id,title:S.conversation.title,model:S.conversation.model,messages:[],isStreaming:!1,streamingText:"",commandProposals:[]};n(E=>{const P=[...E,w].slice(0,3);return i(Math.min(E.length,2)),P})}catch{}},[]),m=k.useCallback(async b=>{try{await fetch(`${Je()}/chat/conversations/${b}`,{method:"DELETE"})}catch{}n(O=>O.filter(w=>w.id!==b)),i(O=>Math.max(0,O-1))},[]),g=k.useCallback(async(b,O)=>{const S={id:Date.now(),conversation_id:b,role:"user",content:O,created_at:new Date().toISOString()};n(w=>w.map(E=>E.id===b?{...E,messages:[...E.messages,S],isStreaming:!0}:E));try{await fetch(`${Je()}/chat/conversations/${b}/messages`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:O})})}catch{n(w=>w.map(E=>E.id===b?{...E,isStreaming:!1}:E))}},[]),v=k.useCallback(async b=>{try{await fetch(`${Je()}/chat/conversations/${b}/messages/stream`,{method:"DELETE"})}catch{}},[]),y=k.useCallback(async b=>{try{await fetch(`${Je()}/spawn`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:b})})}catch{}},[]),x=k.useCallback((b,O)=>{n(S=>S.map(w=>w.id===b?{...w,commandProposals:w.commandProposals.filter(E=>E!==O)}:w))},[]);return{conversations:t,activeTabIndex:r,isPanelOpen:o,setActiveTabIndex:i,togglePanel:d,createConversation:p,deleteConversation:m,sendMessage:g,abortStream:v,confirmCommand:y,dismissCommandProposal:x}}function cq(){const{connectionStatus:e}=mw(),t=d$();return h.jsxs(B2,{delayDuration:400,children:[h.jsxs("div",{className:"flex flex-col h-screen overflow-hidden bg-background font-sans",children:[h.jsx(tW,{}),h.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[h.jsx("main",{className:"flex-1 overflow-auto",children:h.jsx(LT,{})}),h.jsx(u$,{chat:t})]}),h.jsx(eN,{connectionStatus:e})]}),h.jsx(HT,{position:"bottom-right",toastOptions:{unstyled:!0,classNames:{toast:"glass-card border border-border/30 text-foreground text-xs p-3 rounded-lg flex items-start gap-2 w-[356px]",title:"font-medium",description:"text-muted-foreground mt-0.5"}}})]})}const Aa=new Map;function fq(e,t){return`${e}:${t}`}function Zg({namespace:e,projectId:t,initialValue:n,fetcher:r,pollInterval:i=0}){const o=t?fq(t,e):null,[a,s]=k.useState(()=>o&&Aa.has(o)?Aa.get(o):n),[l,u]=k.useState(()=>o?!Aa.has(o):!0),[f,c]=k.useState(l),d=k.useRef(r);d.current=r,k.useEffect(()=>{if(!o)return;const m=Aa.get(o);m!==void 0?(s(m),u(!1),c(!1)):(s(n),u(!0),c(!0));let g=!1;async function v(){try{const x=await d.current();if(g)return;Aa.set(o,x),s(x)}catch{}finally{g||(c(!1),u(!1))}}v();let y;return i>0&&(y=setInterval(v,i)),()=>{g=!0,y&&clearInterval(y)}},[o,i]);const p=k.useCallback(()=>{o&&d.current().then(m=>{Aa.set(o,m),s(m)}).catch(()=>{})},[o]);return{data:a,isLoading:f,isFirstLoad:l,refresh:p}}const dq={"propose-spec":{icon:Ok,color:"text-dracula-cyan",glow:"hover:glow-cyan hover:border-dracula-cyan/40"},implement:{icon:M8,color:"text-dracula-purple",glow:"hover:glow-purple hover:border-dracula-purple/40"},"batch-implement":{icon:b8,color:"text-dracula-pink",glow:"hover:glow-pink hover:border-dracula-pink/40"},"product-backlog":{icon:d8,color:"text-dracula-cyan",glow:"hover:glow-cyan hover:border-dracula-cyan/40"},"update-product-driven-backlog":{icon:Ok,color:"text-dracula-green",glow:"hover:glow-green hover:border-dracula-green/40"},"refactor-recommender":{icon:Z8,color:"text-dracula-orange",glow:"hover:glow-orange hover:border-dracula-orange/40"},"health-check":{icon:y8,color:"text-dracula-green",glow:"hover:glow-green hover:border-dracula-green/40"},"compat-check":{icon:W8,color:"text-dracula-yellow",glow:"hover:glow-yellow hover:border-dracula-yellow/40"},why:{icon:s8,color:"text-muted-foreground",glow:"hover:glow-purple hover:border-dracula-purple/40"}},pq={icon:Y2,color:"text-dracula-purple",glow:"hover:glow-purple hover:border-dracula-purple/40"},p$=["propose-spec","update-product-driven-backlog","product-backlog"],h$=["implement","batch-implement"],hq=new Set(p$),mq=new Set(h$),EO={"update-product-driven-backlog":"Auto-propose Specs","product-backlog":"Auto-Select Specs"},gq=new Set(["propose-feature"]),PO=new Set(["implement","batch-implement"]);function yq({label:e,subtitle:t,accent:n="muted",collapsible:r,open:i,count:o,onToggle:a}){const s=n==="cyan"?"text-dracula-cyan":n==="purple"?"text-dracula-purple":"text-muted-foreground",l=n==="cyan"?"text-dracula-cyan":n==="purple"?"text-dracula-purple":"text-muted-foreground",u=n==="cyan"?"border-dracula-cyan/25":n==="purple"?"border-dracula-purple/25":"";return r?h.jsxs("button",{type:"button",onClick:a,className:"flex items-center gap-1 text-[10px] font-medium uppercase tracking-wider text-muted-foreground mb-2 hover:text-foreground transition-colors cursor-pointer",children:[h.jsx(q0,{className:le("w-3 h-3 transition-transform",i&&"rotate-90")}),e," (",o,")"]}):h.jsxs("div",{className:"mb-3",children:[h.jsxs("div",{className:"flex items-baseline gap-1.5 mb-0.5",children:[h.jsx("span",{className:le("text-[8px]",s),children:"●"}),h.jsx("span",{className:le("text-[10px] font-semibold uppercase tracking-widest",l),children:e})]}),t&&h.jsx("p",{className:"text-[11px] text-muted-foreground/70 mb-2 pl-3.5",children:t}),u&&h.jsx("hr",{className:le("border-t mb-3",u)})]})}async function vq(e){const t=await fetch(`${Je()}/spawn`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:`/sr:${e}`})}),n=await t.json();if(!t.ok)throw new Error(n.error??"Failed to spawn command")}function xq({commands:e,onOpenWizard:t}){if(e.length===0)return h.jsxs("div",{className:"rounded-lg border border-dashed border-border/30 p-8 text-center",children:[h.jsx("p",{className:"text-sm text-muted-foreground",children:"No commands found"}),h.jsx("p",{className:"text-xs text-muted-foreground/60 mt-1",children:"Run /setup in Claude Code to install specrails commands"})]});async function n(c){const d=EO[c.slug]??c.name;if(PO.has(c.slug)){t(c.slug);return}try{nt.promise(vq(c.slug),{loading:`Queuing ${d}...`,success:`${d} queued`,error:p=>p.message})}catch{}}const r=e.filter(c=>!gq.has(c.slug)),i=new Map(r.map(c=>[c.slug,c])),o=p$.map(c=>i.get(c)).filter(c=>c!==void 0),a=h$.map(c=>i.get(c)).filter(c=>c!==void 0),s=r.filter(c=>!hq.has(c.slug)&&!mq.has(c.slug)).sort((c,d)=>c.name.localeCompare(d.name)),[l,u]=k.useState(!1),f=[{label:"Discovery",subtitle:"Explore & define your product",accent:"cyan",commands:o},{label:"Delivery",subtitle:"Build & ship features",accent:"purple",commands:a},{label:"Others",commands:s,collapsible:!0}].filter(c=>c.commands.length>0);return h.jsx("div",{className:"space-y-4",children:f.map(c=>{const d=c.collapsible&&!l;return h.jsxs("div",{children:[h.jsx(yq,{label:c.label,subtitle:c.subtitle,accent:c.accent,collapsible:c.collapsible,open:l,count:c.commands.length,onToggle:()=>u(!l)}),!d&&h.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:c.commands.map(p=>{const m=PO.has(p.slug),g=dq[p.slug]??pq,v=g.icon,y=EO[p.slug]??p.name;return h.jsxs(wi,{children:[h.jsx(Si,{asChild:!0,children:h.jsxs("button",{className:["glass-card cursor-pointer transition-all active:scale-[0.98] group","flex items-center gap-3 px-4 py-3 text-left w-full",g.glow].join(" "),onClick:()=>n(p),children:[h.jsx("div",{className:["flex items-center justify-center w-9 h-9 rounded-lg shrink-0 transition-colors","bg-dracula-current/40 group-hover:bg-dracula-current/60"].join(" "),children:h.jsx(v,{className:`w-4.5 h-4.5 ${g.color}`})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-sm font-medium leading-tight truncate",children:y}),p.description&&h.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5 leading-tight line-clamp-1",children:p.description})]}),m?h.jsx(U2,{className:"w-4 h-4 text-muted-foreground/40 group-hover:text-dracula-purple transition-colors shrink-0"}):h.jsx(Y2,{className:"w-3.5 h-3.5 text-muted-foreground/40 group-hover:text-dracula-cyan transition-colors shrink-0 opacity-0 group-hover:opacity-100"})]})}),h.jsxs(Vr,{side:"bottom",className:"max-w-[240px]",children:[h.jsxs("p",{className:"font-medium font-mono text-[11px]",children:["/sr:",p.slug]}),p.description&&h.jsx("p",{className:"text-muted-foreground mt-0.5",children:p.description}),m&&h.jsx("p",{className:"text-dracula-purple mt-1 text-[10px]",children:"Opens guided wizard"})]})]},p.id)})})]},c.label)})})}const m$=6048e5,bq=864e5,Tf=43200,jO=1440,AO=Symbol.for("constructDateFrom");function ki(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&AO in e?e[AO](t):e instanceof Date?new e.constructor(t):new Date(t)}function Tt(e,t){return ki(t||e,e)}let wq={};function Bc(){return wq}function Vu(e,t){var s,l,u,f;const n=Bc(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,i=Tt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function up(e,t){return Vu(e,{...t,weekStartsOn:1})}function g$(e,t){const n=Tt(e,t==null?void 0:t.in),r=n.getFullYear(),i=ki(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=up(i),a=ki(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=up(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function cp(e){const t=Tt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function tm(e,...t){const n=ki.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function _O(e,t){const n=Tt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Sq(e,t,n){const[r,i]=tm(n==null?void 0:n.in,e,t),o=_O(r),a=_O(i),s=+o-cp(o),l=+a-cp(a);return Math.round((s-l)/bq)}function kq(e,t){const n=g$(e,t),r=ki(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),up(r)}function vd(e,t){const n=+Tt(e)-+Tt(t);return n<0?-1:n>0?1:n}function Oq(e){return ki(e,Date.now())}function Eq(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Pq(e){return!(!Eq(e)&&typeof e!="number"||isNaN(+Tt(e)))}function jq(e,t,n){const[r,i]=tm(n==null?void 0:n.in,e,t),o=r.getFullYear()-i.getFullYear(),a=r.getMonth()-i.getMonth();return o*12+a}function Aq(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function _q(e,t){return+Tt(e)-+Tt(t)}function Cq(e,t){const n=Tt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function Tq(e,t){const n=Tt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Nq(e,t){const n=Tt(e,t==null?void 0:t.in);return+Cq(n,t)==+Tq(n,t)}function $q(e,t,n){const[r,i,o]=tm(n==null?void 0:n.in,e,e,t),a=vd(i,o),s=Math.abs(jq(i,o));if(s<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*s);let l=vd(i,o)===-a;Nq(r)&&s===1&&vd(r,o)===1&&(l=!1);const u=a*(s-+l);return u===0?0:u}function Mq(e,t,n){const r=_q(e,t)/1e3;return Aq(n==null?void 0:n.roundingMethod)(r)}function Iq(e,t){const n=Tt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Rq={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Dq=(e,t,n)=>{let r;const i=Rq[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ey(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Lq={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Fq={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zq={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Bq={date:ey({formats:Lq,defaultWidth:"full"}),time:ey({formats:Fq,defaultWidth:"full"}),dateTime:ey({formats:zq,defaultWidth:"full"})},Wq={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Uq=(e,t,n,r)=>Wq[e];function Bl(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Hq={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Vq={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Kq={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},qq={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Gq={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Yq={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Xq=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Qq={ordinalNumber:Xq,era:Bl({values:Hq,defaultWidth:"wide"}),quarter:Bl({values:Vq,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Bl({values:Kq,defaultWidth:"wide"}),day:Bl({values:qq,defaultWidth:"wide"}),dayPeriod:Bl({values:Gq,defaultWidth:"wide",formattingValues:Yq,defaultFormattingWidth:"wide"})};function Wl(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Zq(s,c=>c.test(a)):Jq(s,c=>c.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(a.length);return{value:u,rest:f}}}function Jq(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Zq(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function eG(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const tG=/^(\d+)(th|st|nd|rd)?/i,nG=/\d+/i,rG={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},iG={any:[/^b/i,/^(a|c)/i]},oG={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},aG={any:[/1/i,/2/i,/3/i,/4/i]},sG={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},lG={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},uG={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cG={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},fG={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},dG={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},pG={ordinalNumber:eG({matchPattern:tG,parsePattern:nG,valueCallback:e=>parseInt(e,10)}),era:Wl({matchPatterns:rG,defaultMatchWidth:"wide",parsePatterns:iG,defaultParseWidth:"any"}),quarter:Wl({matchPatterns:oG,defaultMatchWidth:"wide",parsePatterns:aG,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Wl({matchPatterns:sG,defaultMatchWidth:"wide",parsePatterns:lG,defaultParseWidth:"any"}),day:Wl({matchPatterns:uG,defaultMatchWidth:"wide",parsePatterns:cG,defaultParseWidth:"any"}),dayPeriod:Wl({matchPatterns:fG,defaultMatchWidth:"any",parsePatterns:dG,defaultParseWidth:"any"})},y$={code:"en-US",formatDistance:Dq,formatLong:Bq,formatRelative:Uq,localize:Qq,match:pG,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hG(e,t){const n=Tt(e,t==null?void 0:t.in);return Sq(n,Iq(n))+1}function mG(e,t){const n=Tt(e,t==null?void 0:t.in),r=+up(n)-+kq(n);return Math.round(r/m$)+1}function v$(e,t){var f,c,d,p;const n=Tt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Bc(),o=(t==null?void 0:t.firstWeekContainsDate)??((c=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:c.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(d=i.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,a=ki((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Vu(a,t),l=ki((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const u=Vu(l,t);return+n>=+s?r+1:+n>=+u?r:r-1}function gG(e,t){var s,l,u,f;const n=Bc(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,i=v$(e,t),o=ki((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Vu(o,t)}function yG(e,t){const n=Tt(e,t==null?void 0:t.in),r=+Vu(n,t)-+gG(n,t);return Math.round(r/m$)+1}function $e(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ui={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return $e(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):$e(n+1,2)},d(e,t){return $e(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return $e(e.getHours()%12||12,t.length)},H(e,t){return $e(e.getHours(),t.length)},m(e,t){return $e(e.getMinutes(),t.length)},s(e,t){return $e(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return $e(i,t.length)}},_a={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},CO={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Ui.y(e,t)},Y:function(e,t,n,r){const i=v$(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return $e(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):$e(o,t.length)},R:function(e,t){const n=g$(e);return $e(n,t.length)},u:function(e,t){const n=e.getFullYear();return $e(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return $e(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return $e(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ui.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return $e(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=yG(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):$e(i,t.length)},I:function(e,t,n){const r=mG(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):$e(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ui.d(e,t)},D:function(e,t,n){const r=hG(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):$e(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return $e(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return $e(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return $e(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=_a.noon:r===0?i=_a.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=_a.evening:r>=12?i=_a.afternoon:r>=4?i=_a.morning:i=_a.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ui.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ui.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):$e(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):$e(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ui.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ui.s(e,t)},S:function(e,t){return Ui.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return NO(r);case"XXXX":case"XX":return Ro(r);case"XXXXX":case"XXX":default:return Ro(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return NO(r);case"xxxx":case"xx":return Ro(r);case"xxxxx":case"xxx":default:return Ro(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+TO(r,":");case"OOOO":default:return"GMT"+Ro(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+TO(r,":");case"zzzz":default:return"GMT"+Ro(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return $e(r,t.length)},T:function(e,t,n){return $e(+e,t.length)}};function TO(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+$e(o,2)}function NO(e,t){return e%60===0?(e>0?"-":"+")+$e(Math.abs(e)/60,2):Ro(e,t)}function Ro(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=$e(Math.trunc(r/60),2),o=$e(r%60,2);return n+i+t+o}const $O=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},x$=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},vG=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return $O(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",$O(r,t)).replace("{{time}}",x$(i,t))},xG={p:x$,P:vG},bG=/^D+$/,wG=/^Y+$/,SG=["D","DD","YY","YYYY"];function kG(e){return bG.test(e)}function OG(e){return wG.test(e)}function EG(e,t,n){const r=PG(e,t,n);if(console.warn(r),SG.includes(e))throw new RangeError(r)}function PG(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const jG=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,AG=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_G=/^'([^]*?)'?$/,CG=/''/g,TG=/[a-zA-Z]/;function b$(e,t,n){var f,c,d,p;const r=Bc(),i=r.locale??y$,o=r.firstWeekContainsDate??((c=(f=r.locale)==null?void 0:f.options)==null?void 0:c.firstWeekContainsDate)??1,a=r.weekStartsOn??((p=(d=r.locale)==null?void 0:d.options)==null?void 0:p.weekStartsOn)??0,s=Tt(e,n==null?void 0:n.in);if(!Pq(s))throw new RangeError("Invalid time value");let l=t.match(AG).map(m=>{const g=m[0];if(g==="p"||g==="P"){const v=xG[g];return v(m,i.formatLong)}return m}).join("").match(jG).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const g=m[0];if(g==="'")return{isToken:!1,value:NG(m)};if(CO[g])return{isToken:!0,value:m};if(g.match(TG))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:m}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(m=>{if(!m.isToken)return m.value;const g=m.value;(OG(g)||kG(g))&&EG(g,t,String(e));const v=CO[g[0]];return v(s,g,i.localize,u)}).join("")}function NG(e){const t=e.match(_G);return t?t[1].replace(CG,"'"):e}function $G(e,t,n){const r=Bc(),i=(n==null?void 0:n.locale)??r.locale??y$,o=2520,a=vd(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[l,u]=tm(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),f=Mq(u,l),c=(cp(u)-cp(l))/1e3,d=Math.round((f-c)/60);let p;if(d<2)return n!=null&&n.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,s):f<10?i.formatDistance("lessThanXSeconds",10,s):f<20?i.formatDistance("lessThanXSeconds",20,s):f<40?i.formatDistance("halfAMinute",0,s):f<60?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",1,s):d===0?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",d,s);if(d<45)return i.formatDistance("xMinutes",d,s);if(d<90)return i.formatDistance("aboutXHours",1,s);if(d<jO){const m=Math.round(d/60);return i.formatDistance("aboutXHours",m,s)}else{if(d<o)return i.formatDistance("xDays",1,s);if(d<Tf){const m=Math.round(d/jO);return i.formatDistance("xDays",m,s)}else if(d<Tf*2)return p=Math.round(d/Tf),i.formatDistance("aboutXMonths",p,s)}if(p=$q(u,l),p<12){const m=Math.round(d/Tf);return i.formatDistance("xMonths",m,s)}else{const m=p%12,g=Math.trunc(p/12);return m<3?i.formatDistance("aboutXYears",g,s):m<9?i.formatDistance("overXYears",g,s):i.formatDistance("almostXYears",g+1,s)}}function w$(e,t){return $G(e,Oq(e),t)}const MG=rN("inline-flex items-center rounded-full border px-2 py-0.5 text-[10px] font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground",success:"border-transparent bg-emerald-500/20 text-emerald-400 border-emerald-500/30",warning:"border-transparent bg-amber-500/20 text-amber-400 border-amber-500/30",running:"border-transparent bg-blue-500/20 text-blue-400 border-blue-500/30",queued:"border-transparent bg-slate-500/20 text-slate-400 border-slate-500/30",failed:"border-transparent bg-red-500/20 text-red-400 border-red-500/30",canceled:"border-transparent bg-slate-600/20 text-slate-500 border-slate-600/30"}},defaultVariants:{variant:"default"}});function nm({className:e,variant:t,...n}){return h.jsx("div",{className:le(MG({variant:t}),e),...n})}const MO={running:{variant:"running",label:"running",tooltip:"Job is actively executing"},completed:{variant:"success",label:"done",tooltip:"Job completed successfully"},failed:{variant:"failed",label:"failed",tooltip:"Job exited with an error code"},canceled:{variant:"canceled",label:"canceled",tooltip:"Job was manually canceled"},queued:{variant:"queued",label:"queued",tooltip:"Job is waiting to run"}},IG=["running","completed","failed","canceled","queued"];function RG(e){return e==null||e===0?null:e<.01?`$${e.toFixed(4)}`:`$${e.toFixed(3)}`}function DG(e){if(e==null)return null;const t=Math.round(e/1e3);if(t<60)return`${t}s`;const n=Math.floor(t/60),r=t%60;return`${n}m ${r}s`}function LG(e){return e==null||e===0?null:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function FG(e){try{return w$(new Date(e),{addSuffix:!0})}catch{return e}}function zG({jobs:e,isLoading:t,onJobsCleared:n,onProposalClick:r,onProposalDelete:i}){const o=Lh(),[a,s]=k.useState(null),[l,u]=k.useState(""),[f,c]=k.useState(""),[d,p]=k.useState(!1),[m,g]=k.useState(""),[v,y]=k.useState(""),[x,b]=k.useState(!1),O=e.filter(w=>!(a&&w.status!==a||l&&w.started_at<l||f&&w.started_at>`${f}T23:59:59`));async function S(w){b(!0);try{const E={};w==="range"&&(m&&(E.from=m),v&&(E.to=v));const P=await fetch(`${Je()}/jobs`,{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(E)});if(P.ok){const _=await P.json();nt.success(`Cleared ${_.deleted} job(s)`),p(!1),g(""),y(""),n==null||n()}else nt.error("Failed to clear jobs")}catch{nt.error("Network error")}finally{b(!1)}}return t?h.jsx("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4 space-y-1",children:[0,1,2].map(w=>h.jsx("div",{className:"h-9 bg-muted/30 rounded-md animate-pulse"},w))}):e.length===0?h.jsxs("div",{className:"rounded-lg border border-dashed border-border/40 bg-card/50 p-6 text-center",children:[h.jsx("p",{className:"text-sm text-muted-foreground",children:"No jobs yet"}),h.jsx("p",{className:"text-xs text-muted-foreground/60 mt-1",children:"Jobs will appear here after you run a command"})]}):h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4 space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsxs("button",{type:"button",onClick:()=>s(null),className:`px-2 py-0.5 rounded text-[10px] font-medium transition-colors ${a===null?"bg-accent text-foreground":"text-muted-foreground hover:text-foreground hover:bg-accent/50"}`,children:["All (",e.length,")"]}),IG.map(w=>{const E=e.filter(P=>P.status===w).length;return E===0?null:h.jsxs("button",{type:"button",onClick:()=>s(a===w?null:w),className:`px-2 py-0.5 rounded text-[10px] font-medium capitalize transition-colors ${a===w?"bg-accent text-foreground":"text-muted-foreground hover:text-foreground hover:bg-accent/50"}`,children:[w," (",E,")"]},w)})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("input",{type:"date",value:l,onChange:w=>u(w.target.value),className:"h-6 rounded border border-border bg-input px-1.5 text-[10px] text-foreground",title:"From date"}),h.jsx("input",{type:"date",value:f,onChange:w=>c(w.target.value),className:"h-6 rounded border border-border bg-input px-1.5 text-[10px] text-foreground",title:"To date"}),(l||f)&&h.jsx("button",{type:"button",onClick:()=>{u(""),c("")},className:"text-[10px] text-muted-foreground hover:text-foreground transition-colors",children:"Clear"}),h.jsxs(wi,{children:[h.jsx(Si,{asChild:!0,children:h.jsx(je,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 text-muted-foreground hover:text-destructive",onClick:()=>p(!0),children:h.jsx(Ek,{className:"w-3.5 h-3.5"})})}),h.jsx(Vr,{children:"Clear jobs"})]})]})]}),h.jsxs("div",{className:"flex items-center gap-3 px-3 py-1 text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:[h.jsx("span",{className:"w-14",children:"Status"}),h.jsx("span",{className:"flex-1 min-w-0",children:"Command"}),h.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[h.jsx("span",{className:"w-14 text-right",children:"Duration"}),h.jsx("span",{className:"w-12 text-right",children:"Tokens"}),h.jsx("span",{className:"w-12 text-right",children:"Cost"}),h.jsx("span",{className:"w-20 text-right",children:"Started"})]})]}),h.jsx("div",{className:"space-y-0.5",children:O.map(w=>{const E=MO[w.status]??MO.queued,P=RG(w.total_cost_usd),_=DG(w.duration_ms),A=LG(w.tokens_out),$=w.id.startsWith("proposal:"),N=$?w.id.replace("proposal:",""):null;return h.jsxs("div",{role:"button",className:"flex items-center gap-3 px-3 py-2 rounded-md hover:bg-accent/50 transition-colors cursor-pointer group",onClick:()=>{$&&N?r==null||r(N):o(`/jobs/${w.id}`)},children:[h.jsxs(wi,{children:[h.jsx(Si,{asChild:!0,children:h.jsx("div",{children:h.jsx(nm,{variant:E.variant,children:E.label})})}),h.jsx(Vr,{children:E.tooltip})]}),h.jsx("code",{className:"text-xs text-foreground/80 truncate flex-1 min-w-0",children:w.command}),h.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground shrink-0",children:[h.jsx("span",{className:"w-14 text-right",children:_??"—"}),h.jsx("span",{className:"w-12 text-right",children:A?`${A}`:"—"}),h.jsx("span",{className:"w-12 text-right",children:P??"—"}),h.jsx("span",{className:"w-20 text-right",children:FG(w.started_at)}),$&&N&&h.jsx("button",{type:"button",className:"w-4 h-4 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-destructive transition-all",onClick:R=>{R.stopPropagation(),i==null||i(N)},title:"Delete proposal",children:h.jsx(Ek,{className:"w-3 h-3"})})]})]},w.id)})}),d&&h.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:()=>p(!1),children:h.jsxs("div",{className:"w-80 rounded-xl border border-border/30 bg-popover p-4 shadow-lg space-y-4",onClick:w=>w.stopPropagation(),children:[h.jsx("h3",{className:"text-sm font-semibold",children:"Clear Jobs"}),h.jsx(je,{variant:"destructive",size:"sm",className:"w-full",disabled:x,onClick:()=>S("all"),children:"Clear all jobs"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx("p",{className:"text-xs text-muted-foreground",children:"Or clear by date range:"}),h.jsxs("div",{className:"flex gap-2",children:[h.jsx("input",{type:"date",value:m,onChange:w=>g(w.target.value),className:"flex-1 h-7 rounded-md border border-border bg-input px-2 text-xs text-foreground",placeholder:"From"}),h.jsx("input",{type:"date",value:v,onChange:w=>y(w.target.value),className:"flex-1 h-7 rounded-md border border-border bg-input px-2 text-xs text-foreground",placeholder:"To"})]}),h.jsx(je,{variant:"outline",size:"sm",className:"w-full",disabled:x||!m&&!v,onClick:()=>S("range"),children:"Clear range"})]}),h.jsx(je,{variant:"ghost",size:"sm",className:"w-full",onClick:()=>p(!1),children:"Cancel"})]})})]})}var ty="focusScope.autoFocusOnMount",ny="focusScope.autoFocusOnUnmount",IO={bubbles:!1,cancelable:!0},BG="FocusScope",S$=k.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=k.useState(null),u=Ss(i),f=Ss(o),c=k.useRef(null),d=Er(t,g=>l(g)),p=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(r){let g=function(b){if(p.paused||!s)return;const O=b.target;s.contains(O)?c.current=O:Hi(c.current,{select:!0})},v=function(b){if(p.paused||!s)return;const O=b.relatedTarget;O!==null&&(s.contains(O)||Hi(c.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const S of b)S.removedNodes.length>0&&Hi(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),x.disconnect()}}},[r,s,p.paused]),k.useEffect(()=>{if(s){DO.add(p);const g=document.activeElement;if(!s.contains(g)){const y=new CustomEvent(ty,IO);s.addEventListener(ty,u),s.dispatchEvent(y),y.defaultPrevented||(WG(qG(k$(s)),{select:!0}),document.activeElement===g&&Hi(s))}return()=>{s.removeEventListener(ty,u),setTimeout(()=>{const y=new CustomEvent(ny,IO);s.addEventListener(ny,f),s.dispatchEvent(y),y.defaultPrevented||Hi(g??document.body,{select:!0}),s.removeEventListener(ny,f),DO.remove(p)},0)}}},[s,u,f,p]);const m=k.useCallback(g=>{if(!n&&!r||p.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(v&&y){const x=g.currentTarget,[b,O]=UG(x);b&&O?!g.shiftKey&&y===O?(g.preventDefault(),n&&Hi(b,{select:!0})):g.shiftKey&&y===b&&(g.preventDefault(),n&&Hi(O,{select:!0})):y===x&&g.preventDefault()}},[n,r,p.paused]);return h.jsx(xn.div,{tabIndex:-1,...a,ref:d,onKeyDown:m})});S$.displayName=BG;function WG(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Hi(r,{select:t}),document.activeElement!==n)return}function UG(e){const t=k$(e),n=RO(t,e),r=RO(t.reverse(),e);return[n,r]}function k$(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function RO(e,t){for(const n of e)if(!HG(n,{upTo:t}))return n}function HG(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 VG(e){return e instanceof HTMLInputElement&&"select"in e}function Hi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&VG(e)&&t&&e.select()}}var DO=KG();function KG(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=LO(e,t),e.unshift(t)},remove(t){var n;e=LO(e,t),(n=e[0])==null||n.resume()}}}function LO(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function qG(e){return e.filter(t=>t.tagName!=="A")}var ry=0;function GG(){k.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FO()),document.body.insertAdjacentElement("beforeend",e[1]??FO()),ry++,()=>{ry===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ry--}},[])}function FO(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Rr=function(){return Rr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Rr.apply(this,arguments)};function O$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function YG(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var xd="right-scroll-bar-position",bd="width-before-scroll-bar",XG="with-scroll-bars-hidden",QG="--removed-body-scroll-bar-size";function iy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function JG(e,t){var n=k.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var ZG=typeof window<"u"?k.useLayoutEffect:k.useEffect,zO=new WeakMap;function eY(e,t){var n=JG(null,function(r){return e.forEach(function(i){return iy(i,r)})});return ZG(function(){var r=zO.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(s){o.has(s)||iy(s,null)}),o.forEach(function(s){i.has(s)||iy(s,a)})}zO.set(n,e)},[e]),n}function tY(e){return e}function nY(e,t){t===void 0&&(t=tY);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(s){return o(s)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(o),a=n}var l=function(){var f=a;a=[],f.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return i}function rY(e){e===void 0&&(e={});var t=nY(null);return t.options=Rr({async:!0,ssr:!1},e),t}var E$=function(e){var t=e.sideCar,n=O$(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return k.createElement(r,Rr({},n))};E$.isSideCarExport=!0;function iY(e,t){return e.useMedium(t),E$}var P$=rY(),oy=function(){},rm=k.forwardRef(function(e,t){var n=k.useRef(null),r=k.useState({onScrollCapture:oy,onWheelCapture:oy,onTouchMoveCapture:oy}),i=r[0],o=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,c=e.shards,d=e.sideCar,p=e.noRelative,m=e.noIsolation,g=e.inert,v=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,b=e.gapMode,O=O$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=d,w=eY([n,t]),E=Rr(Rr({},O),i);return k.createElement(k.Fragment,null,f&&k.createElement(S,{sideCar:P$,removeScrollBar:u,shards:c,noRelative:p,noIsolation:m,inert:g,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:b}),a?k.cloneElement(k.Children.only(s),Rr(Rr({},E),{ref:w})):k.createElement(x,Rr({},E,{className:l,ref:w}),s))});rm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};rm.classNames={fullWidth:bd,zeroRight:xd};var oY=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function aY(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oY();return t&&e.setAttribute("nonce",t),e}function sY(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lY(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uY=function(){var e=0,t=null;return{add:function(n){e==0&&(t=aY())&&(sY(t,n),lY(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cY=function(){var e=uY();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},j$=function(){var e=cY(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},fY={left:0,top:0,right:0,gap:0},ay=function(e){return parseInt(e||"",10)||0},dY=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[ay(n),ay(r),ay(i)]},pY=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return fY;var t=dY(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])}},hY=j$(),cs="data-scroll-locked",mY=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
330
|
+
.`.concat(XG,` {
|
|
331
|
+
overflow: hidden `).concat(r,`;
|
|
332
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
333
|
+
}
|
|
334
|
+
body[`).concat(cs,`] {
|
|
335
|
+
overflow: hidden `).concat(r,`;
|
|
336
|
+
overscroll-behavior: contain;
|
|
337
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
338
|
+
padding-left: `.concat(i,`px;
|
|
339
|
+
padding-top: `).concat(o,`px;
|
|
340
|
+
padding-right: `).concat(a,`px;
|
|
341
|
+
margin-left:0;
|
|
342
|
+
margin-top:0;
|
|
343
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
344
|
+
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.`).concat(xd,` {
|
|
348
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.`).concat(bd,` {
|
|
352
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.`).concat(xd," .").concat(xd,` {
|
|
356
|
+
right: 0 `).concat(r,`;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.`).concat(bd," .").concat(bd,` {
|
|
360
|
+
margin-right: 0 `).concat(r,`;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
body[`).concat(cs,`] {
|
|
364
|
+
`).concat(QG,": ").concat(s,`px;
|
|
365
|
+
}
|
|
366
|
+
`)},BO=function(){var e=parseInt(document.body.getAttribute(cs)||"0",10);return isFinite(e)?e:0},gY=function(){k.useEffect(function(){return document.body.setAttribute(cs,(BO()+1).toString()),function(){var e=BO()-1;e<=0?document.body.removeAttribute(cs):document.body.setAttribute(cs,e.toString())}},[])},yY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;gY();var o=k.useMemo(function(){return pY(i)},[i]);return k.createElement(hY,{styles:mY(o,!t,i,n?"":"!important")})},nx=!1;if(typeof window<"u")try{var Nf=Object.defineProperty({},"passive",{get:function(){return nx=!0,!0}});window.addEventListener("test",Nf,Nf),window.removeEventListener("test",Nf,Nf)}catch{nx=!1}var Ca=nx?{passive:!1}:!1,vY=function(e){return e.tagName==="TEXTAREA"},A$=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vY(e)&&n[t]==="visible")},xY=function(e){return A$(e,"overflowY")},bY=function(e){return A$(e,"overflowX")},WO=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=_$(e,r);if(i){var o=C$(e,r),a=o[1],s=o[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},wY=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},SY=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_$=function(e,t){return e==="v"?xY(t):bY(t)},C$=function(e,t){return e==="v"?wY(t):SY(t)},kY=function(e,t){return e==="h"&&t==="rtl"?-1:1},OY=function(e,t,n,r,i){var o=kY(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,f=a>0,c=0,d=0;do{if(!s)break;var p=C$(e,s),m=p[0],g=p[1],v=p[2],y=g-v-o*m;(m||y)&&_$(e,s)&&(c+=y,d+=m);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&Math.abs(c)<1||!f&&Math.abs(d)<1)&&(u=!0),u},$f=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},UO=function(e){return[e.deltaX,e.deltaY]},HO=function(e){return e&&"current"in e?e.current:e},EY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},PY=function(e){return`
|
|
367
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
368
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
369
|
+
`)},jY=0,Ta=[];function AY(e){var t=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),i=k.useState(jY++)[0],o=k.useState(j$)[0],a=k.useRef(e);k.useEffect(function(){a.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=YG([e.lockRef.current],(e.shards||[]).map(HO),!0).filter(Boolean);return g.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=k.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var y=$f(g),x=n.current,b="deltaX"in g?g.deltaX:x[0]-y[0],O="deltaY"in g?g.deltaY:x[1]-y[1],S,w=g.target,E=Math.abs(b)>Math.abs(O)?"h":"v";if("touches"in g&&E==="h"&&w.type==="range")return!1;var P=window.getSelection(),_=P&&P.anchorNode,A=_?_===w||_.contains(w):!1;if(A)return!1;var $=WO(E,w);if(!$)return!0;if($?S=E:(S=E==="v"?"h":"v",$=WO(E,w)),!$)return!1;if(!r.current&&"changedTouches"in g&&(b||O)&&(r.current=S),!S)return!0;var N=r.current||S;return OY(N,v,g,N==="h"?b:O)},[]),l=k.useCallback(function(g){var v=g;if(!(!Ta.length||Ta[Ta.length-1]!==o)){var y="deltaY"in v?UO(v):$f(v),x=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&EY(S.delta,y)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var b=(a.current.shards||[]).map(HO).filter(Boolean).filter(function(S){return S.contains(v.target)}),O=b.length>0?s(v,b[0]):!a.current.noIsolation;O&&v.cancelable&&v.preventDefault()}}},[]),u=k.useCallback(function(g,v,y,x){var b={name:g,delta:v,target:y,should:x,shadowParent:_Y(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(O){return O!==b})},1)},[]),f=k.useCallback(function(g){n.current=$f(g),r.current=void 0},[]),c=k.useCallback(function(g){u(g.type,UO(g),g.target,s(g,e.lockRef.current))},[]),d=k.useCallback(function(g){u(g.type,$f(g),g.target,s(g,e.lockRef.current))},[]);k.useEffect(function(){return Ta.push(o),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:d}),document.addEventListener("wheel",l,Ca),document.addEventListener("touchmove",l,Ca),document.addEventListener("touchstart",f,Ca),function(){Ta=Ta.filter(function(g){return g!==o}),document.removeEventListener("wheel",l,Ca),document.removeEventListener("touchmove",l,Ca),document.removeEventListener("touchstart",f,Ca)}},[]);var p=e.removeScrollBar,m=e.inert;return k.createElement(k.Fragment,null,m?k.createElement(o,{styles:PY(i)}):null,p?k.createElement(yY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _Y(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const CY=iY(P$,AY);var T$=k.forwardRef(function(e,t){return k.createElement(rm,Rr({},e,{ref:t,sideCar:CY}))});T$.classNames=rm.classNames;var TY=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Na=new WeakMap,Mf=new WeakMap,If={},sy=0,N$=function(e){return e&&(e.host||N$(e.parentNode))},NY=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=N$(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})},$Y=function(e,t,n,r){var i=NY(t,Array.isArray(e)?e:[e]);If[n]||(If[n]=new WeakMap);var o=If[n],a=[],s=new Set,l=new Set(i),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};i.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(d){if(s.has(d))f(d);else try{var p=d.getAttribute(r),m=p!==null&&p!=="false",g=(Na.get(d)||0)+1,v=(o.get(d)||0)+1;Na.set(d,g),o.set(d,v),a.push(d),g===1&&m&&Mf.set(d,!0),v===1&&d.setAttribute(n,"true"),m||d.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return f(t),s.clear(),sy++,function(){a.forEach(function(c){var d=Na.get(c)-1,p=o.get(c)-1;Na.set(c,d),o.set(c,p),d||(Mf.has(c)||c.removeAttribute(r),Mf.delete(c)),p||c.removeAttribute(n)}),sy--,sy||(Na=new WeakMap,Na=new WeakMap,Mf=new WeakMap,If={})}},MY=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=TY(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),$Y(r,i,n,"aria-hidden")):function(){return null}};function IY(e){const t=RY(e),n=k.forwardRef((r,i)=>{const{children:o,...a}=r,s=k.Children.toArray(o),l=s.find(LY);if(l){const u=l.props.children,f=s.map(c=>c===l?k.Children.count(u)>1?k.Children.only(null):k.isValidElement(u)?u.props.children:null:c);return h.jsx(t,{...a,ref:i,children:k.isValidElement(u)?k.cloneElement(u,void 0,f):null})}return h.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function RY(e){const t=k.forwardRef((n,r)=>{const{children:i,...o}=n;if(k.isValidElement(i)){const a=zY(i),s=FY(o,i.props);return i.type!==k.Fragment&&(s.ref=r?zh(r,a):a),k.cloneElement(i,s)}return k.Children.count(i)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var DY=Symbol("radix.slottable");function LY(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===DY}function FY(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...s)=>{const l=o(...s);return i(...s),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function zY(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var im="Dialog",[$$]=$0(im),[BY,Pr]=$$(im),M$=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,s=k.useRef(null),l=k.useRef(null),[u,f]=g2({prop:r,defaultProp:i??!1,onChange:o,caller:im});return h.jsx(BY,{scope:t,triggerRef:s,contentRef:l,contentId:pd(),titleId:pd(),descriptionId:pd(),open:u,onOpenChange:f,onOpenToggle:k.useCallback(()=>f(c=>!c),[f]),modal:a,children:n})};M$.displayName=im;var I$="DialogTrigger",WY=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(I$,n),o=Er(t,i.triggerRef);return h.jsx(xn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":vw(i.open),...r,ref:o,onClick:dn(e.onClick,i.onOpenToggle)})});WY.displayName=I$;var gw="DialogPortal",[UY,R$]=$$(gw,{forceMount:void 0}),D$=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=Pr(gw,t);return h.jsx(UY,{scope:t,forceMount:n,children:k.Children.map(r,a=>h.jsx(Rc,{present:n||o.open,children:h.jsx(m2,{asChild:!0,container:i,children:a})}))})};D$.displayName=gw;var fp="DialogOverlay",L$=k.forwardRef((e,t)=>{const n=R$(fp,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Pr(fp,e.__scopeDialog);return o.modal?h.jsx(Rc,{present:r||o.open,children:h.jsx(VY,{...i,ref:t})}):null});L$.displayName=fp;var HY=IY("DialogOverlay.RemoveScroll"),VY=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(fp,n);return h.jsx(T$,{as:HY,allowPinchZoom:!0,shards:[i.contentRef],children:h.jsx(xn.div,{"data-state":vw(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),sa="DialogContent",F$=k.forwardRef((e,t)=>{const n=R$(sa,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=Pr(sa,e.__scopeDialog);return h.jsx(Rc,{present:r||o.open,children:o.modal?h.jsx(KY,{...i,ref:t}):h.jsx(qY,{...i,ref:t})})});F$.displayName=sa;var KY=k.forwardRef((e,t)=>{const n=Pr(sa,e.__scopeDialog),r=k.useRef(null),i=Er(t,n.contentRef,r);return k.useEffect(()=>{const o=r.current;if(o)return MY(o)},[]),h.jsx(z$,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dn(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:dn(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&o.preventDefault()}),onFocusOutside:dn(e.onFocusOutside,o=>o.preventDefault())})}),qY=k.forwardRef((e,t)=>{const n=Pr(sa,e.__scopeDialog),r=k.useRef(!1),i=k.useRef(!1);return h.jsx(z$,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,o),o.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),z$=k.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,s=Pr(sa,n),l=k.useRef(null),u=Er(t,l);return GG(),h.jsxs(h.Fragment,{children:[h.jsx(S$,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:h.jsx(M0,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":vw(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(GY,{titleId:s.titleId}),h.jsx(XY,{contentRef:l,descriptionId:s.descriptionId})]})]})}),yw="DialogTitle",B$=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(yw,n);return h.jsx(xn.h2,{id:i.titleId,...r,ref:t})});B$.displayName=yw;var W$="DialogDescription",U$=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(W$,n);return h.jsx(xn.p,{id:i.descriptionId,...r,ref:t})});U$.displayName=W$;var H$="DialogClose",V$=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Pr(H$,n);return h.jsx(xn.button,{type:"button",...r,ref:t,onClick:dn(e.onClick,()=>i.onOpenChange(!1))})});V$.displayName=H$;function vw(e){return e?"open":"closed"}var K$="DialogTitleWarning",[Kje,q$]=DF(K$,{contentName:sa,titleName:yw,docsSlug:"dialog"}),GY=({titleId:e})=>{const t=q$(K$),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
370
|
+
|
|
371
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
372
|
+
|
|
373
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},YY="DialogDescriptionWarning",XY=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${q$(YY).contentName}}.`;return k.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},QY=M$,JY=D$,G$=L$,Y$=F$,X$=B$,Q$=U$,ZY=V$;const Wc=QY,eX=JY,J$=k.forwardRef(({className:e,...t},n)=>h.jsx(G$,{ref:n,className:le("fixed inset-0 z-50 bg-black/60 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",e),...t}));J$.displayName=G$.displayName;const cl=k.forwardRef(({className:e,children:t,...n},r)=>h.jsxs(eX,{children:[h.jsx(J$,{}),h.jsxs(Y$,{ref:r,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-2xl max-h-[85vh] translate-x-[-50%] translate-y-[-50%] gap-4 border border-border/30 bg-popover p-6 shadow-xl backdrop-blur-md duration-200 overflow-y-auto 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-xl",e),...n,children:[t,h.jsxs(ZY,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[h.jsx(J2,{className:"h-4 w-4"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));cl.displayName=Y$.displayName;const fl=({className:e,...t})=>h.jsx("div",{className:le("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});fl.displayName="DialogHeader";const Uc=({className:e,...t})=>h.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Uc.displayName="DialogFooter";const dl=k.forwardRef(({className:e,...t},n)=>h.jsx(X$,{ref:n,className:le("text-lg font-semibold leading-none tracking-tight",e),...t}));dl.displayName=X$.displayName;const xw=k.forwardRef(({className:e,...t},n)=>h.jsx(Q$,{ref:n,className:le("text-xs text-muted-foreground",e),...t}));xw.displayName=Q$.displayName;const Oi=k.forwardRef(({className:e,type:t,...n},r)=>h.jsx("input",{type:t,className:le("flex h-8 w-full rounded-md border border-input bg-background px-3 py-1 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-xs file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Oi.displayName="Input";function Z$({multiSelect:e=!1,selectedIssues:t,onSelectionChange:n}){const[r,i]=k.useState([]),[o,a]=k.useState(""),[s,l]=k.useState(!0),[u,f]=k.useState(null),[c,d]=k.useState(!1);k.useEffect(()=>{async function m(){l(!0),f(null);try{const v=new URLSearchParams;o&&v.set("search",o);const y=await fetch(`${Je()}/issues?${v.toString()}`);if(y.status===503){d(!0);return}if(!y.ok)throw new Error("Failed to fetch issues");const x=await y.json();i(x),d(!1)}catch(v){f(v.message)}finally{l(!1)}}const g=setTimeout(m,o?300:0);return()=>clearTimeout(g)},[o]);function p(m){e?t.includes(m)?n(t.filter(g=>g!==m)):n([...t,m]):n(t.includes(m)?[]:[m])}return c?h.jsxs("div",{className:"flex flex-col items-center gap-3 py-8 text-center",children:[h.jsx(Wv,{className:"w-8 h-8 text-amber-500"}),h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium",children:"No issue tracker configured"}),h.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Configure GitHub or Jira in"," ",h.jsx(zu,{to:"/settings",className:"text-blue-400 hover:underline",children:"Settings"})," ","to browse issues."]})]})]}):h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"relative",children:[h.jsx(X2,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground"}),h.jsx(Oi,{placeholder:"Search issues...",value:o,onChange:m=>a(m.target.value),className:"pl-8"})]}),u&&h.jsxs("p",{className:"text-xs text-destructive flex items-center gap-1",children:[h.jsx(Wv,{className:"w-3 h-3"}),u]}),h.jsx("div",{className:"max-h-[300px] overflow-y-auto space-y-1 pr-1",children:s?h.jsx("div",{className:"space-y-1",children:[0,1,2,3].map(m=>h.jsx("div",{className:"h-10 bg-muted/30 rounded animate-pulse"},m))}):r.length===0?h.jsxs("div",{className:"py-6 text-center text-sm text-muted-foreground",children:["No issues found",o?" matching your search":""]}):r.map(m=>{const g=t.includes(m.number);return h.jsxs("button",{type:"button",onClick:()=>p(m.number),className:le("w-full flex items-start gap-3 px-3 py-2 rounded-md text-left transition-colors",g?"bg-blue-500/15 border border-blue-500/30":"hover:bg-accent border border-transparent"),children:[h.jsxs("div",{className:"flex items-center gap-1.5 shrink-0 mt-0.5",children:[h.jsx("div",{className:le("w-3.5 h-3.5 rounded border flex items-center justify-center",e?"rounded":"rounded-full",g?"bg-blue-500 border-blue-500":"border-border"),children:g&&h.jsx("div",{className:le("bg-white",e?"w-2 h-2 rounded-sm":"w-1.5 h-1.5 rounded-full")})}),h.jsxs("span",{className:"text-[10px] text-muted-foreground font-mono",children:["#",m.number]})]}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-xs font-medium truncate",children:m.title}),m.labels.length>0&&h.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:m.labels.slice(0,3).map(v=>h.jsx(nm,{variant:"secondary",className:"text-[9px] px-1 py-0",children:v},v))})]})]},m.number)})}),t.length>0&&h.jsxs("p",{className:"text-[10px] text-muted-foreground",children:[t.length," issue",t.length>1?"s":""," selected",": ",t.map(m=>`#${m}`).join(", ")]})]})}function tX({title:e,description:t,onTitleChange:n,onDescriptionChange:r}){return h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("label",{className:"text-xs font-medium text-foreground",children:["Feature title ",h.jsx("span",{className:"text-destructive",children:"*"})]}),h.jsx(Oi,{placeholder:"e.g. Add user authentication",value:e,onChange:i=>n(i.target.value)})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("label",{className:"text-xs font-medium text-foreground",children:["Description ",h.jsx("span",{className:"text-muted-foreground font-normal",children:"(optional)"})]}),h.jsx("textarea",{placeholder:"Describe what needs to be implemented, any constraints, expected behavior...",value:t,onChange:i=>r(i.target.value),rows:4,className:"flex w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 resize-none"})]})]})}function nX({items:e,onItemsChange:t}){function n(o,a,s){const l=e.map((u,f)=>f===o?{...u,[a]:s}:u);t(l)}function r(){t([...e,{title:"",description:""}])}function i(o){t(e.filter((a,s)=>s!==o))}return h.jsxs("div",{className:"space-y-3",children:[e.map((o,a)=>h.jsxs("div",{className:"space-y-2 p-3 border border-border rounded-md bg-muted/20",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("span",{className:"text-[10px] font-medium text-muted-foreground uppercase tracking-wider",children:["Feature ",a+1]}),e.length>1&&h.jsx(je,{variant:"ghost",size:"sm",onClick:()=>i(a),className:"h-5 px-1.5 text-[10px] text-muted-foreground hover:text-destructive",children:"Remove"})]}),h.jsx(Oi,{placeholder:"Feature title",value:o.title,onChange:s=>n(a,"title",s.target.value)}),h.jsx(Oi,{placeholder:"Description (optional)",value:o.description,onChange:s=>n(a,"description",s.target.value)})]},a)),h.jsx(je,{variant:"outline",size:"sm",onClick:r,className:"w-full border-dashed",children:"+ Add another feature"})]})}function rX(e,t){switch(t.type){case"SELECT_PATH":return{...e,path:t.path};case"SET_ISSUES":return{...e,selectedIssues:t.issues};case"SET_TITLE":return{...e,freeFormTitle:t.title};case"SET_DESCRIPTION":return{...e,freeFormDescription:t.desc};case"RESET":return{path:null,selectedIssues:[],freeFormTitle:"",freeFormDescription:""};default:return e}}function iX({open:e,onClose:t}){const[n,r]=k.useReducer(rX,{path:null,selectedIssues:[],freeFormTitle:"",freeFormDescription:""});function i(){r({type:"RESET"}),t()}async function o(){let s;if(n.path==="from-issues"){if(n.selectedIssues.length===0){nt.error("Please select at least one issue");return}s=`/sr:implement ${n.selectedIssues.map(u=>`#${u}`).join(" ")}`}else{if(!n.freeFormTitle.trim()){nt.error("Please enter a feature title");return}const l=n.freeFormDescription.trim();s=`/sr:implement ${n.freeFormTitle.trim()}${l?`
|
|
374
|
+
|
|
375
|
+
${l}`:""}`}try{const l=await fetch(`${Je()}/spawn`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:s})}),u=await l.json();if(!l.ok)throw new Error(u.error??"Failed to queue job");nt.success("Job queued",{description:s}),i()}catch(l){nt.error("Failed to queue job",{description:l.message})}}const a=n.path==="from-issues"?n.selectedIssues.length>0:n.freeFormTitle.trim().length>0;return h.jsx(Wc,{open:e,onOpenChange:s=>!s&&i(),children:h.jsxs(cl,{className:"max-w-2xl glass-card",children:[h.jsx(fl,{children:h.jsx(dl,{children:"Implement Feature"})}),!n.path&&h.jsxs("div",{className:"grid grid-cols-2 gap-3 py-2",children:[h.jsx(VO,{icon:"🎯",title:"From Issues",description:"Pick from your issue tracker",onClick:()=>r({type:"SELECT_PATH",path:"from-issues"})}),h.jsx(VO,{icon:"✏️",title:"Free Form",description:"Describe the feature directly",onClick:()=>r({type:"SELECT_PATH",path:"free-form"})})]}),n.path==="from-issues"&&h.jsx(Z$,{multiSelect:!0,selectedIssues:n.selectedIssues,onSelectionChange:s=>r({type:"SET_ISSUES",issues:s})}),n.path==="free-form"&&h.jsx(tX,{title:n.freeFormTitle,description:n.freeFormDescription,onTitleChange:s=>r({type:"SET_TITLE",title:s}),onDescriptionChange:s=>r({type:"SET_DESCRIPTION",desc:s})}),n.path&&h.jsxs(Uc,{className:"gap-2",children:[h.jsx(je,{variant:"ghost",size:"sm",onClick:()=>r({type:"SELECT_PATH",path:null}),children:"Back"}),h.jsx(je,{size:"sm",onClick:o,disabled:!a,children:n.path==="from-issues"&&n.selectedIssues.length>1?`Queue ${n.selectedIssues.length} Jobs`:"Queue Job"})]})]})})}function VO({icon:e,title:t,description:n,onClick:r}){return h.jsxs("button",{type:"button",onClick:r,className:le("flex flex-col gap-2 p-4 rounded-lg border border-border/30 text-left glass-card","hover:border-dracula-purple/40 hover:bg-dracula-current/30 transition-all active:scale-[0.98]"),children:[h.jsx("span",{className:"text-xl",children:e}),h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium",children:t}),h.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:n})]})]})}function oX(e,t){switch(t.type){case"SELECT_PATH":return{...e,path:t.path};case"SET_ISSUES":return{...e,selectedIssues:t.issues};case"SET_ITEMS":return{...e,freeFormItems:t.items};case"RESET":return{path:null,selectedIssues:[],freeFormItems:[{title:"",description:""}]};default:return e}}function aX({open:e,onClose:t}){const[n,r]=k.useReducer(oX,{path:null,selectedIssues:[],freeFormItems:[{title:"",description:""}]});function i(){r({type:"RESET"}),t()}async function o(){let s;if(n.path==="from-issues"){if(n.selectedIssues.length===0){nt.error("Please select at least one issue");return}s=`/sr:batch-implement ${n.selectedIssues.map(l=>`#${l}`).join(" ")}`}else{const l=n.freeFormItems.filter(f=>f.title.trim());if(l.length===0){nt.error("Please enter at least one feature title");return}s=`/sr:batch-implement
|
|
376
|
+
${l.map(f=>`- ${f.title.trim()}${f.description.trim()?`: ${f.description.trim()}`:""}`).join(`
|
|
377
|
+
`)}`}try{const l=await fetch(`${Je()}/spawn`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:s})}),u=await l.json();if(!l.ok)throw new Error(u.error??"Failed to queue job");nt.success("Batch job queued",{description:`${n.path==="from-issues"?n.selectedIssues.length:n.freeFormItems.filter(f=>f.title.trim()).length} features`}),i()}catch(l){nt.error("Failed to queue job",{description:l.message})}}const a=n.path==="from-issues"?n.selectedIssues.length>0:n.freeFormItems.some(s=>s.title.trim());return h.jsx(Wc,{open:e,onOpenChange:s=>!s&&i(),children:h.jsxs(cl,{className:"max-w-2xl glass-card",children:[h.jsx(fl,{children:h.jsx(dl,{children:"Batch Implement"})}),!n.path&&h.jsxs("div",{className:"grid grid-cols-2 gap-3 py-2",children:[h.jsx(KO,{icon:"🎯",title:"From Issues",description:"Select multiple issues from your tracker",onClick:()=>r({type:"SELECT_PATH",path:"from-issues"})}),h.jsx(KO,{icon:"📝",title:"Free Form",description:"Describe multiple features",onClick:()=>r({type:"SELECT_PATH",path:"free-form"})})]}),n.path==="from-issues"&&h.jsx(Z$,{multiSelect:!0,selectedIssues:n.selectedIssues,onSelectionChange:s=>r({type:"SET_ISSUES",issues:s})}),n.path==="free-form"&&h.jsx(nX,{items:n.freeFormItems,onItemsChange:s=>r({type:"SET_ITEMS",items:s})}),n.path&&h.jsxs(Uc,{className:"gap-2",children:[h.jsx(je,{variant:"ghost",size:"sm",onClick:()=>r({type:"SELECT_PATH",path:null}),children:"Back"}),h.jsx(je,{size:"sm",onClick:o,disabled:!a,children:"Queue Batch Job"})]})]})})}function KO({icon:e,title:t,description:n,onClick:r}){return h.jsxs("button",{type:"button",onClick:r,className:le("flex flex-col gap-2 p-4 rounded-lg border border-border/30 text-left glass-card","hover:border-dracula-purple/40 hover:bg-dracula-current/30 transition-all active:scale-[0.98]"),children:[h.jsx("span",{className:"text-xl",children:e}),h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium",children:t}),h.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:n})]})]})}function eM(){const{activeProjectId:e}=Ni(),{recentJobs:t}=mw(e),[n,r]=k.useState(null),{data:i}=Zg({namespace:"commands",projectId:e,initialValue:[],fetcher:async()=>{const v=await fetch(`${Je()}/config`);return v.ok?(await v.json()).commands:[]}}),{data:o,isFirstLoad:a,refresh:s}=Zg({namespace:"jobs",projectId:e,initialValue:t,fetcher:async()=>{const v=await fetch(`${Je()}/jobs?limit=10`);return v.ok?(await v.json()).jobs:[]},pollInterval:1e4}),{data:l}=Zg({namespace:"proposals",projectId:e,initialValue:[],fetcher:async()=>{const v=await fetch(`${Je()}/propose?limit=10`);return v.ok?(await v.json()).proposals:[]},pollInterval:1e4}),u={input:"queued",exploring:"running",review:"completed",refining:"running",creating_issue:"running",created:"completed",cancelled:"canceled"},f=l.map(v=>({id:`proposal:${v.id}`,command:`/sr:propose-feature ${v.idea.length>60?v.idea.slice(0,57)+"...":v.idea}`,started_at:v.created_at,status:u[v.status]??"queued"})),c=[...o,...f].sort((v,y)=>new Date(y.started_at).getTime()-new Date(v.started_at).getTime()),[d,p]=k.useState(null),m=k.useCallback(async v=>{try{const y=await fetch(`${Je()}/propose/${v}`);if(!y.ok)return;const x=await y.json();p(x.proposal)}catch{}},[]),g=k.useCallback(async v=>{try{(await fetch(`${Je()}/propose/${v}`,{method:"DELETE"})).ok&&(nt.success("Proposal deleted"),s())}catch{}},[s]);return h.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-6 space-y-6",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-3",children:"Commands"}),h.jsx(xq,{commands:i,onOpenWizard:v=>r(v)})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider mb-3",children:"Recent Jobs"}),h.jsx(zG,{jobs:c,isLoading:a,onJobsCleared:s,onProposalClick:m,onProposalDelete:g})]}),h.jsx(iX,{open:n==="implement",onClose:()=>r(null)}),h.jsx(aX,{open:n==="batch-implement",onClose:()=>r(null)}),h.jsx(Wc,{open:d!==null,onOpenChange:v=>!v&&p(null),children:h.jsx(cl,{className:"max-w-3xl glass-card",children:d&&h.jsxs(h.Fragment,{children:[h.jsx(fl,{children:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(dl,{className:"flex-1 min-w-0",children:"Proposal"}),h.jsx(nm,{variant:d.status==="created"?"success":d.status==="cancelled"?"destructive":"secondary",children:d.status})]})}),h.jsx("div",{className:"text-xs text-muted-foreground bg-muted/20 rounded px-2 py-1 italic",children:d.idea}),d.result_markdown?h.jsx("div",{className:"max-h-[400px] overflow-y-auto rounded-lg px-3 py-2 text-xs bg-muted/40",children:h.jsx("div",{className:"prose prose-invert prose-xs max-w-none prose-p:my-1 prose-headings:mt-2 prose-headings:mb-1 prose-headings:text-sm prose-headings:font-semibold prose-ul:my-1 prose-ol:my-1 prose-li:my-0 prose-code:text-cyan-300 prose-code:text-[10px] prose-code:bg-muted/40 prose-code:px-1 prose-code:py-0.5 prose-code:rounded text-foreground/80",children:h.jsx(Ps,{remarkPlugins:[js],children:d.result_markdown})})}):h.jsx("p",{className:"text-xs text-muted-foreground py-4 text-center",children:"No proposal content yet."}),d.issue_url&&h.jsxs("div",{className:"text-xs",children:["GitHub Issue:"," ",h.jsx("a",{href:d.issue_url,target:"_blank",rel:"noopener noreferrer",className:"text-dracula-purple hover:underline",children:d.issue_url})]}),h.jsxs(Uc,{children:[h.jsx(je,{variant:"destructive",size:"sm",onClick:()=>{g(d.id),p(null)},children:"Delete"}),h.jsx(je,{variant:"ghost",size:"sm",onClick:()=>p(null),children:"Close"})]})]})})})]})}function sX({phases:e,phaseDefinitions:t}){return t.length===0?null:h.jsx("div",{className:"flex items-center",children:t.map((n,r)=>{const i=e[n.key]??"idle";return h.jsxs("div",{className:"flex items-center",children:[h.jsxs(wi,{children:[h.jsx(Si,{asChild:!0,children:h.jsxs("div",{className:"flex flex-col items-center gap-1 cursor-default px-3",children:[h.jsx(lX,{state:i}),h.jsx("span",{className:"text-[10px] font-medium",style:{color:i==="running"?"hsl(213 72% 59%)":i==="done"?"hsl(142 71% 45%)":i==="error"?"hsl(0 72% 51%)":"hsl(215 20% 55%)"},children:n.label})]})}),h.jsxs(Vr,{side:"bottom",className:"max-w-[200px]",children:[h.jsx("p",{className:"font-medium",children:n.label}),h.jsx("p",{className:"text-muted-foreground mt-0.5",children:n.description})]})]}),r<t.length-1&&h.jsx("div",{className:"h-px w-8 -mt-4 shrink-0",style:{background:e[t[r+1].key]!=="idle"||i==="done"?"hsl(142 71% 45% / 0.4)":"hsl(217 33% 17%)"}})]},n.key)})})}function lX({state:e}){return e==="running"?h.jsx(G2,{className:"w-4 h-4 text-blue-400 animate-spin"}):e==="done"?h.jsx(V2,{className:"w-4 h-4 text-emerald-400"}):e==="error"?h.jsx(K2,{className:"w-4 h-4 text-red-400"}):h.jsx(c8,{className:"w-4 h-4 text-muted-foreground/30"})}function uX(e){const t=e.trimStart();return!!(/^#{1,6}\s/.test(t)||/^[-*+]\s/.test(t)||/^\d+\.\s/.test(t)||/^\|.+\|/.test(t)||t.startsWith("```")||t.startsWith("> ")||/\*\*[^*]+\*\*/.test(e)||/`[^`]+`/.test(e)||/\[.+\]\(.+\)/.test(e)||/^(-{3,}|_{3,}|\*{3,})$/.test(t)||/^- \[[ x]\]\s/.test(t))}function cX(e,t){const n=`${e.id??t}`,r=e.timestamp;if(e.event_type==="log")try{const o=JSON.parse(e.payload).line??"";return o.trim()?o.startsWith("▸")||o.match(/^(architect|developer|reviewer|ship|analyst)\s*:/i)?{id:n,content:o,type:"phase",timestamp:r}:e.source==="stderr"?{id:n,content:o,type:"stderr",timestamp:r}:uX(o)?{id:n,content:o,type:"assistant",timestamp:r}:{id:n,content:o,type:"plain",timestamp:r}:null}catch{return null}if(e.event_type!=="log"&&e.event_type!=="result")return null;if(e.event_type==="result")try{const i=JSON.parse(e.payload),o=[];return i.duration_ms&&o.push(`${(i.duration_ms/1e3).toFixed(1)}s`),i.total_cost_usd&&o.push(`$${i.total_cost_usd.toFixed(4)}`),i.num_turns&&o.push(`${i.num_turns} turns`),{id:n,content:`▸ Completed${o.length?` — ${o.join(" · ")}`:""}`,type:"result",timestamp:r}}catch{return null}return null}function fX({events:e,isLoading:t}){const[n,r]=k.useState(""),[i,o]=k.useState(!0),a=k.useRef(null),s=k.useRef(null),l=e.map((p,m)=>cX(p,m)).filter(p=>p!==null),u=[];for(const p of l){const m=u.length>0?u[u.length-1]:null;p.type==="assistant"&&(m==null?void 0:m.type)==="assistant"?m.content+=`
|
|
378
|
+
`+p.content:u.push({...p})}const f=n?u.filter(p=>p.content.toLowerCase().includes(n.toLowerCase())):u,c=k.useCallback(()=>{var p;(p=a.current)==null||p.scrollIntoView({behavior:"smooth"})},[]);k.useEffect(()=>{i&&c()},[e.length,i,c]);function d(){const p=s.current;if(!p)return;const m=p.scrollHeight-p.scrollTop-p.clientHeight<50;o(m)}return t?h.jsx("div",{className:"flex-1 flex items-center justify-center",children:h.jsx("p",{className:"text-xs text-muted-foreground",children:"Loading logs..."})}):u.length===0?h.jsx("div",{className:"flex-1 flex items-center justify-center",children:h.jsx("p",{className:"text-xs text-muted-foreground",children:"No log output yet"})}):h.jsxs("div",{className:"flex flex-col h-full",children:[h.jsxs("div",{className:"px-4 py-2 border-b border-border flex items-center gap-2",children:[h.jsxs("div",{className:"relative flex-1 max-w-xs",children:[h.jsx(X2,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-3 h-3 text-muted-foreground"}),h.jsx(Oi,{placeholder:"Filter logs...",value:n,onChange:p=>r(p.target.value),className:"pl-7 h-7"})]}),h.jsxs("span",{className:"text-[10px] text-muted-foreground ml-auto",children:[f.length," / ",u.length," lines"]})]}),h.jsxs("div",{ref:s,className:"flex-1 overflow-y-auto p-2 text-xs relative",onScroll:d,children:[f.map((p,m)=>h.jsx(dX,{line:p,even:m%2===0},p.id)),h.jsx("div",{ref:a})]}),!i&&h.jsxs(je,{size:"sm",variant:"secondary",onClick:()=>{o(!0),c()},className:"absolute bottom-16 right-6 h-7 gap-1 shadow-lg",children:[h.jsx(K0,{className:"w-3 h-3"}),"Jump to bottom"]})]})}const dX=k.memo(function({line:t,even:n}){const r=t.type==="assistant";return h.jsxs("div",{className:le("flex items-start gap-2 group px-2 py-1 rounded-sm",n?"bg-muted/20":"bg-transparent",t.type==="phase"&&"bg-primary/5 border-l-2 border-primary/40 mt-3 mb-1 py-2",t.type==="result"&&"bg-emerald-500/5 border-l-2 border-emerald-500/40 mt-2 py-2"),children:[t.timestamp&&h.jsx("span",{className:"text-[10px] text-muted-foreground/40 shrink-0 mt-0.5 w-[52px] font-mono tabular-nums",children:new Date(t.timestamp).toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}),r?h.jsx("div",{className:`flex-1 min-w-0 prose prose-invert prose-xs max-w-none
|
|
379
|
+
prose-p:my-1 prose-p:leading-relaxed
|
|
380
|
+
prose-headings:mt-2 prose-headings:mb-1 prose-headings:text-sm prose-headings:font-semibold
|
|
381
|
+
prose-ul:my-1 prose-ol:my-1 prose-li:my-0
|
|
382
|
+
prose-code:text-cyan-300 prose-code:text-[11px] prose-code:bg-muted/40 prose-code:px-1 prose-code:py-0.5 prose-code:rounded
|
|
383
|
+
prose-pre:my-1 prose-pre:bg-muted/30 prose-pre:rounded-md prose-pre:p-2 prose-pre:text-[11px]
|
|
384
|
+
prose-strong:text-foreground prose-em:text-foreground/70
|
|
385
|
+
prose-a:text-blue-400 prose-a:no-underline hover:prose-a:underline
|
|
386
|
+
prose-table:my-2 prose-table:text-[11px]
|
|
387
|
+
prose-thead:border-border prose-thead:bg-muted/30
|
|
388
|
+
prose-th:px-3 prose-th:py-1.5 prose-th:text-left prose-th:font-semibold prose-th:text-foreground/90
|
|
389
|
+
prose-td:px-3 prose-td:py-1.5 prose-td:border-border
|
|
390
|
+
prose-tr:border-border
|
|
391
|
+
text-foreground/80`,children:h.jsx(Ps,{remarkPlugins:[js],children:t.content})}):h.jsx("span",{className:le("flex-1 break-all leading-relaxed whitespace-pre-wrap font-mono",t.type==="phase"&&"text-foreground font-semibold text-[13px]",t.type==="tool-use"&&"text-cyan-400/80 text-[11px]",t.type==="stderr"&&"text-orange-400",t.type==="result"&&"text-emerald-400 font-medium",t.type==="log"&&"text-foreground/60",t.type==="plain"&&"text-foreground/70",t.type==="tool-result"&&"text-muted-foreground/50"),children:t.content})]})}),qO={running:{variant:"running",label:"running",tooltip:"Job is actively executing"},completed:{variant:"success",label:"completed",tooltip:"Job completed successfully"},failed:{variant:"failed",label:"failed",tooltip:"Job exited with a non-zero code"},canceled:{variant:"canceled",label:"canceled",tooltip:"Job was manually canceled"},queued:{variant:"queued",label:"queued",tooltip:"Job is waiting in the queue"}};function tM(){const{id:e}=v5(),{activeProjectId:t}=Ni(),[n,r]=k.useState(null),[i,o]=k.useState([]),[a,s]=k.useState([]),[l,u]=k.useState({}),[f,c]=k.useState(!0),[d,p]=k.useState(!1);k.useEffect(()=>{if(!e)return;r(null),o([]),s([]),u({}),c(!0),p(!1);async function S(){try{const w=await fetch(`${Je()}/jobs/${e}`);if(w.status===404){p(!0);return}if(!w.ok)throw new Error("Failed to fetch job");const E=await w.json();r(E.job),o(E.events)}catch{p(!0)}finally{c(!1)}}S()},[e,t]);const m=k.useRef(t);m.current=t;const g=k.useCallback(S=>{var E;const w=S;if(!(m.current&&w.projectId&&w.projectId!==m.current)){if(w.type==="init"){const P=w.phaseDefinitions??[];s(P);const _={};for(const A of P)_[A.key]=((E=w.phases)==null?void 0:E[A.key])??"idle";u(_)}else if(w.type==="log"&&w.processId===e){const P={id:Date.now(),job_id:e??"",seq:0,event_type:"log",source:w.source,payload:JSON.stringify({line:w.line}),timestamp:w.timestamp};o(_=>[..._,P])}else if(w.type==="phase"){const P=w.phase,_=w.state;u(A=>({...A,[P]:_}))}else if(w.type==="queue"){const P=w.jobs,_=P==null?void 0:P.find(A=>A.id===e);_&&r(A=>A&&{...A,status:_.status})}}},[e]),{registerHandler:v,unregisterHandler:y}=zc();k.useEffect(()=>(v(`job-detail-${e}`,g),()=>y(`job-detail-${e}`)),[e,g,v,y]);async function x(){if(e)try{const S=await fetch(`${Je()}/jobs/${e}`,{method:"DELETE"});if(S.ok)nt.success("Cancel signal sent",{description:"Job will stop at the next safe point"});else{const w=await S.json();nt.error("Failed to cancel",{description:w.error})}}catch{nt.error("Network error")}}if(f)return h.jsx("div",{className:"max-w-5xl mx-auto px-4 py-6",children:h.jsxs("div",{className:"space-y-3",children:[h.jsx("div",{className:"h-4 w-48 bg-muted/30 rounded animate-pulse"}),h.jsx("div",{className:"h-20 bg-muted/30 rounded-lg animate-pulse"}),h.jsx("div",{className:"h-64 bg-muted/30 rounded-lg animate-pulse"})]})});if(d||!n)return h.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-6 flex flex-col items-center gap-3 mt-12",children:[h.jsx("p",{className:"text-lg font-semibold",children:"Job not found"}),h.jsxs("p",{className:"text-sm text-muted-foreground",children:['The job ID "',e,`" doesn't exist`]}),h.jsx(je,{asChild:!0,variant:"outline",size:"sm",children:h.jsxs(zu,{to:"/",children:[h.jsx(kk,{className:"w-3.5 h-3.5 mr-1.5"}),"Back to Dashboard"]})})]});const b=qO[n.status]??qO.queued,O=n.status==="running";return h.jsxs("div",{className:"flex flex-col h-full max-w-5xl mx-auto w-full",children:[h.jsxs("div",{className:"px-4 py-4 border-b border-border space-y-3",children:[h.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[h.jsxs(zu,{to:"/",className:"hover:text-foreground transition-colors flex items-center gap-1",children:[h.jsx(kk,{className:"w-3 h-3"}),"Dashboard"]}),h.jsx(q0,{className:"w-3 h-3"}),h.jsxs("span",{className:"text-foreground font-mono",children:["Job #",e==null?void 0:e.slice(0,8)]})]}),h.jsxs("div",{className:"flex items-start justify-between gap-3",children:[h.jsxs("div",{className:"space-y-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs(wi,{children:[h.jsx(Si,{asChild:!0,children:h.jsx("div",{children:h.jsx(nm,{variant:b.variant,children:b.label})})}),h.jsx(Vr,{children:b.tooltip})]}),h.jsx("code",{className:"text-xs font-mono text-foreground/80 truncate",children:n.command})]}),h.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground",children:[h.jsxs("span",{children:["Started ",w$(new Date(n.started_at),{addSuffix:!0})]}),n.total_cost_usd&&h.jsxs("span",{children:["$",n.total_cost_usd.toFixed(4)]}),n.duration_ms&&h.jsxs("span",{children:[(n.duration_ms/1e3).toFixed(1),"s"]}),n.model&&h.jsx("span",{children:n.model})]})]}),h.jsx("div",{className:"flex items-center gap-2 shrink-0",children:O&&h.jsxs(wi,{children:[h.jsx(Si,{asChild:!0,children:h.jsx(je,{variant:"outline",size:"sm",onClick:x,className:"h-7 border-destructive/30 text-destructive hover:bg-destructive/10",children:"Cancel Job"})}),h.jsx(Vr,{children:"Send SIGTERM to the running process. The job will be marked as canceled."})]})})]}),h.jsx(sX,{phases:l,phaseDefinitions:a})]}),h.jsx("div",{className:"flex-1 overflow-hidden relative",children:h.jsx(fX,{events:i})})]})}const wd=k.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:le("rounded-lg border border-border bg-card text-card-foreground shadow-sm",e),...t}));wd.displayName="Card";const Sd=k.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:le("flex flex-col space-y-1 p-4",e),...t}));Sd.displayName="CardHeader";const kd=k.forwardRef(({className:e,...t},n)=>h.jsx("h3",{ref:n,className:le("text-sm font-semibold leading-none tracking-tight",e),...t}));kd.displayName="CardTitle";const Od=k.forwardRef(({className:e,...t},n)=>h.jsx("p",{ref:n,className:le("text-xs text-muted-foreground",e),...t}));Od.displayName="CardDescription";const Ed=k.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:le("p-4 pt-0",e),...t}));Ed.displayName="CardContent";const pX=k.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:le("flex items-center p-4 pt-0",e),...t}));pX.displayName="CardFooter";var hX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mX=hX.reduce((e,t)=>{const n=nN(`Primitive.${t}`),r=k.forwardRef((i,o)=>{const{asChild:a,...s}=i,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),gX="Separator",GO="horizontal",yX=["horizontal","vertical"],nM=k.forwardRef((e,t)=>{const{decorative:n,orientation:r=GO,...i}=e,o=vX(r)?r:GO,s=n?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return h.jsx(mX.div,{"data-orientation":o,...s,...i,ref:t})});nM.displayName=gX;function vX(e){return yX.includes(e)}var rM=nM;const iM=k.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},i)=>h.jsx(rM,{ref:i,decorative:n,orientation:t,className:le("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));iM.displayName=rM.displayName;function oM(){const{activeProjectId:e}=Ni(),[t,n]=k.useState(null),[r,i]=k.useState(!0),[o,a]=k.useState(""),[s,l]=k.useState(null),[u,f]=k.useState(!1),c=k.useRef(new Map);k.useEffect(()=>{if(e){const m=c.current.get(e);m?(n(m),a(m.issueTracker.labelFilter),l(m.issueTracker.active),i(!1)):i(!0)}async function p(){try{const m=await fetch(`${Je()}/config`);if(!m.ok)return;const g=await m.json();n(g),a(g.issueTracker.labelFilter),l(g.issueTracker.active),e&&c.current.set(e,g)}catch{}finally{i(!1)}}p()},[e]);async function d(){f(!0);try{if(!(await fetch(`${Je()}/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({active:s,labelFilter:o})})).ok)throw new Error("Failed to save");nt.success("Settings saved")}catch(p){nt.error("Failed to save settings",{description:p.message})}finally{f(!1)}}return r?h.jsx("div",{className:"max-w-2xl mx-auto px-4 py-6 space-y-3",children:[0,1,2].map(p=>h.jsx("div",{className:"h-32 bg-muted/30 rounded-lg animate-pulse"},p))}):h.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-6 space-y-6",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"text-base font-semibold",children:"Settings"}),t&&h.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[t.project.name,t.project.repo&&` · ${t.project.repo}`]})]}),h.jsxs(wd,{children:[h.jsxs(Sd,{children:[h.jsx(kd,{children:"Issue Tracker"}),h.jsx(Od,{children:'Configure which issue tracker to use for the "From Issues" wizard path'})]}),h.jsxs(Ed,{className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(YO,{name:"GitHub",available:(t==null?void 0:t.issueTracker.github.available)??!1,authenticated:(t==null?void 0:t.issueTracker.github.authenticated)??!1,setupUrl:"https://cli.github.com",isActive:s==="github",onSelect:()=>l("github"),canSelect:(t==null?void 0:t.issueTracker.github.authenticated)??!1}),h.jsx(YO,{name:"Jira",available:(t==null?void 0:t.issueTracker.jira.available)??!1,authenticated:(t==null?void 0:t.issueTracker.jira.authenticated)??!1,setupUrl:"https://github.com/ankitpokhrel/jira-cli",isActive:s==="jira",onSelect:()=>l("jira"),canSelect:(t==null?void 0:t.issueTracker.jira.authenticated)??!1})]}),h.jsx(iM,{}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"text-xs font-medium",children:"Label filter"}),h.jsx(Oi,{placeholder:"e.g. backlog, feature, good-first-issue",value:o,onChange:p=>a(p.target.value),className:"max-w-xs"}),h.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Filter issues by label when browsing in the Implement wizard"})]})]})]}),h.jsxs(wd,{children:[h.jsxs(Sd,{children:[h.jsx(kd,{children:"Queue"}),h.jsx(Od,{children:"Queue configuration — coming soon"})]}),h.jsx(Ed,{children:h.jsx("div",{className:"rounded-md border border-dashed border-border p-4 text-center",children:h.jsx("p",{className:"text-xs text-muted-foreground",children:"Queue settings (inactivity timeout, auto-pause) will be available in a future update"})})})]}),h.jsxs(wd,{children:[h.jsxs(Sd,{children:[h.jsx(kd,{children:"Display"}),h.jsx(Od,{children:"Display preferences — coming soon"})]}),h.jsx(Ed,{children:h.jsx("div",{className:"rounded-md border border-dashed border-border p-4 text-center",children:h.jsx("p",{className:"text-xs text-muted-foreground",children:"Display preferences (log line limit, theme) will be available in a future update"})})})]}),h.jsx("div",{className:"flex justify-end",children:h.jsx(je,{size:"sm",onClick:d,disabled:u,children:u?"Saving...":"Save Settings"})})]})}function YO({name:e,available:t,authenticated:n,setupUrl:r,isActive:i,onSelect:o,canSelect:a}){return h.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-md border border-border",children:[h.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[n?h.jsx(V2,{className:"w-4 h-4 text-emerald-400"}):t?h.jsx(Wv,{className:"w-4 h-4 text-amber-400"}):h.jsx(K2,{className:"w-4 h-4 text-muted-foreground/40"}),h.jsxs("div",{children:[h.jsx("p",{className:"text-xs font-medium",children:e}),h.jsxs("p",{className:"text-[10px] text-muted-foreground",children:[!t&&h.jsxs(h.Fragment,{children:["Not installed."," ",h.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-blue-400 hover:underline",children:"Install CLI"})]}),t&&!n&&"CLI found but not authenticated. Run the auth command.",n&&"Connected and authenticated"]})]})]}),a&&h.jsxs("button",{type:"button",onClick:o,className:"flex items-center gap-1.5 text-[10px] font-medium",children:[h.jsx("div",{className:`w-3.5 h-3.5 rounded-full border-2 flex items-center justify-center ${i?"border-blue-500":"border-border"}`,children:i&&h.jsx("div",{className:"w-1.5 h-1.5 bg-blue-500 rounded-full"})}),h.jsx("span",{className:i?"text-blue-400":"text-muted-foreground",children:i?"Active":"Use this"})]})]})}const xX=[{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"90d",label:"90d"},{value:"all",label:"All"},{value:"custom",label:"Custom"}];function bX({period:e,from:t,to:n,onChange:r}){function i(s){s==="custom"?r("custom",t,n):r(s)}function o(s){r("custom",s,n)}function a(s){r("custom",t,s)}return h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h.jsx("div",{className:"flex items-center gap-1",children:xX.map(s=>h.jsx("button",{onClick:()=>i(s.value),className:le("h-7 px-3 rounded-md text-xs font-medium transition-colors",e===s.value?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground hover:bg-accent"),children:s.label},s.value))}),e==="custom"&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("input",{type:"date",value:t,onChange:s=>o(s.target.value),"aria-label":"Start date",className:"h-7 px-2 rounded-md text-xs bg-card border border-border text-foreground focus:outline-none focus:ring-1 focus:ring-primary"}),h.jsx("span",{className:"text-xs text-muted-foreground",children:"to"}),h.jsx("input",{type:"date",value:n,onChange:s=>a(s.target.value),"aria-label":"End date",className:"h-7 px-2 rounded-md text-xs bg-card border border-border text-foreground focus:outline-none focus:ring-1 focus:ring-primary"})]})]})}function wX(e){return`$${e.toFixed(4)}`}function XO(e){if(e===null)return"—";const t=Math.round(e/1e3),n=Math.floor(t/60),r=t%60;return n===0?`${r}s`:`${n}m ${r}s`}function SX(e){return`${(e*100).toFixed(1)}%`}function Rf({delta:e,lowerIsBetter:t=!1,formatter:n}){if(e===null)return null;const r=e>0,i=t?e<0:e>0,o=e===0,a=n?n(Math.abs(e)):e>0?`+${e}`:`${e}`;return h.jsxs("span",{className:le("inline-flex items-center gap-0.5 text-[10px] font-medium px-1.5 py-0.5 rounded",o?"text-muted-foreground bg-muted/40":i?"text-green-400 bg-green-400/10":"text-red-400 bg-red-400/10"),children:[o?h.jsx(P8,{className:"w-2.5 h-2.5"}):r?h.jsx(Y8,{className:"w-2.5 h-2.5"}):h.jsx(q8,{className:"w-2.5 h-2.5"}),a]})}function Df({label:e,value:t,badge:n}){return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4 space-y-1",children:[h.jsx("p",{className:"text-xs text-muted-foreground",children:e}),h.jsxs("div",{className:"flex items-end justify-between gap-2",children:[h.jsx("p",{className:"text-xl font-semibold tabular-nums",children:t}),n]})]})}function kX({kpi:e}){return h.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[h.jsx(Df,{label:"Total Cost",value:wX(e.totalCostUsd),badge:h.jsx(Rf,{delta:e.costDelta,lowerIsBetter:!0,formatter:t=>`$${t.toFixed(4)}`})}),h.jsx(Df,{label:"Total Jobs",value:String(e.totalJobs),badge:h.jsx(Rf,{delta:e.jobsDelta,lowerIsBetter:!1,formatter:t=>`+${t}`})}),h.jsx(Df,{label:"Success Rate",value:SX(e.successRate),badge:h.jsx(Rf,{delta:e.successRateDelta,lowerIsBetter:!1,formatter:t=>`${(t*100).toFixed(1)}%`})}),h.jsx(Df,{label:"Avg Duration",value:XO(e.avgDurationMs),badge:h.jsx(Rf,{delta:e.avgDurationDelta,lowerIsBetter:!0,formatter:t=>XO(t)})})]})}var OX=Array.isArray,an=OX,EX=typeof Qi=="object"&&Qi&&Qi.Object===Object&&Qi,aM=EX,PX=aM,jX=typeof self=="object"&&self&&self.Object===Object&&self,AX=PX||jX||Function("return this")(),jr=AX,_X=jr,CX=_X.Symbol,pl=CX,QO=pl,sM=Object.prototype,TX=sM.hasOwnProperty,NX=sM.toString,Ul=QO?QO.toStringTag:void 0;function $X(e){var t=TX.call(e,Ul),n=e[Ul];try{e[Ul]=void 0;var r=!0}catch{}var i=NX.call(e);return r&&(t?e[Ul]=n:delete e[Ul]),i}var MX=$X,IX=Object.prototype,RX=IX.toString;function DX(e){return RX.call(e)}var LX=DX,JO=pl,FX=MX,zX=LX,BX="[object Null]",WX="[object Undefined]",ZO=JO?JO.toStringTag:void 0;function UX(e){return e==null?e===void 0?WX:BX:ZO&&ZO in Object(e)?FX(e):zX(e)}var $i=UX;function HX(e){return e!=null&&typeof e=="object"}var Ar=HX,VX=$i,KX=Ar,qX="[object Symbol]";function GX(e){return typeof e=="symbol"||KX(e)&&VX(e)==qX}var hl=GX,YX=an,XX=hl,QX=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JX=/^\w*$/;function ZX(e,t){if(YX(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||XX(e)?!0:JX.test(e)||!QX.test(e)||t!=null&&e in Object(t)}var bw=ZX;function eQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _r=eQ;const ml=Ce(_r);var tQ=$i,nQ=_r,rQ="[object AsyncFunction]",iQ="[object Function]",oQ="[object GeneratorFunction]",aQ="[object Proxy]";function sQ(e){if(!nQ(e))return!1;var t=tQ(e);return t==iQ||t==oQ||t==rQ||t==aQ}var ww=sQ;const ce=Ce(ww);var lQ=jr,uQ=lQ["__core-js_shared__"],cQ=uQ,ly=cQ,eE=function(){var e=/[^.]+$/.exec(ly&&ly.keys&&ly.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fQ(e){return!!eE&&eE in e}var dQ=fQ,pQ=Function.prototype,hQ=pQ.toString;function mQ(e){if(e!=null){try{return hQ.call(e)}catch{}try{return e+""}catch{}}return""}var lM=mQ,gQ=ww,yQ=dQ,vQ=_r,xQ=lM,bQ=/[\\^$.*+?()[\]{}|]/g,wQ=/^\[object .+?Constructor\]$/,SQ=Function.prototype,kQ=Object.prototype,OQ=SQ.toString,EQ=kQ.hasOwnProperty,PQ=RegExp("^"+OQ.call(EQ).replace(bQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jQ(e){if(!vQ(e)||yQ(e))return!1;var t=gQ(e)?PQ:wQ;return t.test(xQ(e))}var AQ=jQ;function _Q(e,t){return e==null?void 0:e[t]}var CQ=_Q,TQ=AQ,NQ=CQ;function $Q(e,t){var n=NQ(e,t);return TQ(n)?n:void 0}var va=$Q,MQ=va,IQ=MQ(Object,"create"),om=IQ,tE=om;function RQ(){this.__data__=tE?tE(null):{},this.size=0}var DQ=RQ;function LQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var FQ=LQ,zQ=om,BQ="__lodash_hash_undefined__",WQ=Object.prototype,UQ=WQ.hasOwnProperty;function HQ(e){var t=this.__data__;if(zQ){var n=t[e];return n===BQ?void 0:n}return UQ.call(t,e)?t[e]:void 0}var VQ=HQ,KQ=om,qQ=Object.prototype,GQ=qQ.hasOwnProperty;function YQ(e){var t=this.__data__;return KQ?t[e]!==void 0:GQ.call(t,e)}var XQ=YQ,QQ=om,JQ="__lodash_hash_undefined__";function ZQ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=QQ&&t===void 0?JQ:t,this}var eJ=ZQ,tJ=DQ,nJ=FQ,rJ=VQ,iJ=XQ,oJ=eJ;function gl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gl.prototype.clear=tJ;gl.prototype.delete=nJ;gl.prototype.get=rJ;gl.prototype.has=iJ;gl.prototype.set=oJ;var aJ=gl;function sJ(){this.__data__=[],this.size=0}var lJ=sJ;function uJ(e,t){return e===t||e!==e&&t!==t}var am=uJ,cJ=am;function fJ(e,t){for(var n=e.length;n--;)if(cJ(e[n][0],t))return n;return-1}var sm=fJ,dJ=sm,pJ=Array.prototype,hJ=pJ.splice;function mJ(e){var t=this.__data__,n=dJ(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():hJ.call(t,n,1),--this.size,!0}var gJ=mJ,yJ=sm;function vJ(e){var t=this.__data__,n=yJ(t,e);return n<0?void 0:t[n][1]}var xJ=vJ,bJ=sm;function wJ(e){return bJ(this.__data__,e)>-1}var SJ=wJ,kJ=sm;function OJ(e,t){var n=this.__data__,r=kJ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var EJ=OJ,PJ=lJ,jJ=gJ,AJ=xJ,_J=SJ,CJ=EJ;function yl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yl.prototype.clear=PJ;yl.prototype.delete=jJ;yl.prototype.get=AJ;yl.prototype.has=_J;yl.prototype.set=CJ;var lm=yl,TJ=va,NJ=jr,$J=TJ(NJ,"Map"),Sw=$J,nE=aJ,MJ=lm,IJ=Sw;function RJ(){this.size=0,this.__data__={hash:new nE,map:new(IJ||MJ),string:new nE}}var DJ=RJ;function LJ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var FJ=LJ,zJ=FJ;function BJ(e,t){var n=e.__data__;return zJ(t)?n[typeof t=="string"?"string":"hash"]:n.map}var um=BJ,WJ=um;function UJ(e){var t=WJ(this,e).delete(e);return this.size-=t?1:0,t}var HJ=UJ,VJ=um;function KJ(e){return VJ(this,e).get(e)}var qJ=KJ,GJ=um;function YJ(e){return GJ(this,e).has(e)}var XJ=YJ,QJ=um;function JJ(e,t){var n=QJ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var ZJ=JJ,eZ=DJ,tZ=HJ,nZ=qJ,rZ=XJ,iZ=ZJ;function vl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vl.prototype.clear=eZ;vl.prototype.delete=tZ;vl.prototype.get=nZ;vl.prototype.has=rZ;vl.prototype.set=iZ;var kw=vl,uM=kw,oZ="Expected a function";function Ow(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(oZ);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ow.Cache||uM),n}Ow.Cache=uM;var cM=Ow;const aZ=Ce(cM);var sZ=cM,lZ=500;function uZ(e){var t=sZ(e,function(r){return n.size===lZ&&n.clear(),r}),n=t.cache;return t}var cZ=uZ,fZ=cZ,dZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pZ=/\\(\\)?/g,hZ=fZ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(dZ,function(n,r,i,o){t.push(i?o.replace(pZ,"$1"):r||n)}),t}),mZ=hZ;function gZ(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var cm=gZ,rE=pl,yZ=cm,vZ=an,xZ=hl,iE=rE?rE.prototype:void 0,oE=iE?iE.toString:void 0;function fM(e){if(typeof e=="string")return e;if(vZ(e))return yZ(e,fM)+"";if(xZ(e))return oE?oE.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var bZ=fM,wZ=bZ;function SZ(e){return e==null?"":wZ(e)}var dM=SZ,kZ=an,OZ=bw,EZ=mZ,PZ=dM;function jZ(e,t){return kZ(e)?e:OZ(e,t)?[e]:EZ(PZ(e))}var fm=jZ,AZ=hl;function _Z(e){if(typeof e=="string"||AZ(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Hc=_Z,CZ=fm,TZ=Hc;function NZ(e,t){t=CZ(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[TZ(t[n++])];return n&&n==r?e:void 0}var dm=NZ,$Z=dm;function MZ(e,t,n){var r=e==null?void 0:$Z(e,t);return r===void 0?n:r}var pM=MZ;const vn=Ce(pM);function IZ(e){return e==null}var RZ=IZ;const me=Ce(RZ);var DZ=$i,LZ=an,FZ=Ar,zZ="[object String]";function BZ(e){return typeof e=="string"||!LZ(e)&&FZ(e)&&DZ(e)==zZ}var WZ=BZ;const la=Ce(WZ);var hM={exports:{}},Ie={};/**
|
|
392
|
+
* @license React
|
|
393
|
+
* react-is.production.min.js
|
|
394
|
+
*
|
|
395
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
396
|
+
*
|
|
397
|
+
* This source code is licensed under the MIT license found in the
|
|
398
|
+
* LICENSE file in the root directory of this source tree.
|
|
399
|
+
*/var Ew=Symbol.for("react.element"),Pw=Symbol.for("react.portal"),pm=Symbol.for("react.fragment"),hm=Symbol.for("react.strict_mode"),mm=Symbol.for("react.profiler"),gm=Symbol.for("react.provider"),ym=Symbol.for("react.context"),UZ=Symbol.for("react.server_context"),vm=Symbol.for("react.forward_ref"),xm=Symbol.for("react.suspense"),bm=Symbol.for("react.suspense_list"),wm=Symbol.for("react.memo"),Sm=Symbol.for("react.lazy"),HZ=Symbol.for("react.offscreen"),mM;mM=Symbol.for("react.module.reference");function rr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ew:switch(e=e.type,e){case pm:case mm:case hm:case xm:case bm:return e;default:switch(e=e&&e.$$typeof,e){case UZ:case ym:case vm:case Sm:case wm:case gm:return e;default:return t}}case Pw:return t}}}Ie.ContextConsumer=ym;Ie.ContextProvider=gm;Ie.Element=Ew;Ie.ForwardRef=vm;Ie.Fragment=pm;Ie.Lazy=Sm;Ie.Memo=wm;Ie.Portal=Pw;Ie.Profiler=mm;Ie.StrictMode=hm;Ie.Suspense=xm;Ie.SuspenseList=bm;Ie.isAsyncMode=function(){return!1};Ie.isConcurrentMode=function(){return!1};Ie.isContextConsumer=function(e){return rr(e)===ym};Ie.isContextProvider=function(e){return rr(e)===gm};Ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ew};Ie.isForwardRef=function(e){return rr(e)===vm};Ie.isFragment=function(e){return rr(e)===pm};Ie.isLazy=function(e){return rr(e)===Sm};Ie.isMemo=function(e){return rr(e)===wm};Ie.isPortal=function(e){return rr(e)===Pw};Ie.isProfiler=function(e){return rr(e)===mm};Ie.isStrictMode=function(e){return rr(e)===hm};Ie.isSuspense=function(e){return rr(e)===xm};Ie.isSuspenseList=function(e){return rr(e)===bm};Ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pm||e===mm||e===hm||e===xm||e===bm||e===HZ||typeof e=="object"&&e!==null&&(e.$$typeof===Sm||e.$$typeof===wm||e.$$typeof===gm||e.$$typeof===ym||e.$$typeof===vm||e.$$typeof===mM||e.getModuleId!==void 0)};Ie.typeOf=rr;hM.exports=Ie;var VZ=hM.exports,KZ=$i,qZ=Ar,GZ="[object Number]";function YZ(e){return typeof e=="number"||qZ(e)&&KZ(e)==GZ}var gM=YZ;const XZ=Ce(gM);var QZ=gM;function JZ(e){return QZ(e)&&e!=+e}var ZZ=JZ;const xa=Ce(ZZ);var Zt=function(t){return t===0?0:t>0?1:-1},Ko=function(t){return la(t)&&t.indexOf("%")===t.length-1},X=function(t){return XZ(t)&&!xa(t)},eee=function(t){return me(t)},St=function(t){return X(t)||la(t)},tee=0,ba=function(t){var n=++tee;return"".concat(t||"").concat(n)},en=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!X(t)&&!la(t))return r;var o;if(Ko(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return xa(o)&&(o=r),i&&o>n&&(o=n),o},Xi=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},nee=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},An=function(t,n){return X(t)&&X(n)?function(r){return t+r*(n-t)}:function(){return n}};function dp(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):vn(r,t))===n})}var ree=function(t,n){return X(t)&&X(n)?t-n:la(t)&&la(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function fs(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function rx(e){"@babel/helpers - typeof";return rx=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},rx(e)}var iee=["viewBox","children"],oee=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],aE=["points","pathLength"],uy={svg:iee,polygon:aE,polyline:aE},jw=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],pp=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(k.isValidElement(t)&&(r=t.props),!ml(r))return null;var i={};return Object.keys(r).forEach(function(o){jw.includes(o)&&(i[o]=n||function(a){return r[o](r,a)})}),i},aee=function(t,n,r){return function(i){return t(n,r,i),null}},ua=function(t,n,r){if(!ml(t)||rx(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];jw.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=aee(a,n,r))}),i},see=["children"],lee=["children"];function sE(e,t){if(e==null)return{};var n=uee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ix(e){"@babel/helpers - typeof";return ix=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},ix(e)}var lE={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ui=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},uE=null,cy=null,km=function e(t){if(t===uE&&Array.isArray(cy))return cy;var n=[];return k.Children.forEach(t,function(r){me(r)||(VZ.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),cy=n,uE=t,n};function Mn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return ui(i)}):r=[ui(t)],km(e).forEach(function(i){var o=vn(i,"type.displayName")||vn(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Ut(e,t){var n=Mn(e,t);return n&&n[0]}var ox=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!X(r)||r<=0||!X(i)||i<=0)},cee=["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"],yM=function(t){return t&&t.type&&la(t.type)&&cee.indexOf(t.type)>=0},fee=function(t){return t&&ix(t)==="object"&&"clipDot"in t},dee=function(t,n,r,i){var o,a=(o=uy==null?void 0:uy[i])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!ce(t)&&(i&&a.includes(n)||oee.includes(n))||r&&jw.includes(n)},pee=function(t){var n=[];return km(t).forEach(function(r){yM(r)&&n.push(r)}),n},se=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(k.isValidElement(t)&&(i=t.props),!ml(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;dee((s=i)===null||s===void 0?void 0:s[a],a,n,r)&&(o[a]=i[a])}),o},ax=function e(t,n){if(t===n)return!0;var r=k.Children.count(t);if(r!==k.Children.count(n))return!1;if(r===0)return!0;if(r===1)return cE(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!cE(o,a))return!1}return!0},cE=function(t,n){if(me(t)&&me(n))return!0;if(!me(t)&&!me(n)){var r=t.props||{},i=r.children,o=sE(r,see),a=n.props||{},s=a.children,l=sE(a,lee);return i&&s?fs(o,l)&&ax(i,s):!i&&!s?fs(o,l):!1}return!1},fE=function(t,n){var r=[],i={};return km(t).forEach(function(o,a){if(yM(o))r.push(o);else if(o){var s=ui(o.type),l=n[s]||{},u=l.handler,f=l.once;if(u&&(!f||!i[s])){var c=u(o,s,a);r.push(c),i[s]=!0}}}),r},hee=function(t){var n=t&&t.type;return n&&lE[n]?lE[n]:null},mee=function(t,n){return km(n).indexOf(t)},gee=["children","width","height","viewBox","className","style","title","desc"];function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sx.apply(this,arguments)}function yee(e,t){if(e==null)return{};var n=vee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hp(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,l=e.desc,u=yee(e,gee),f=i||{width:n,height:r,x:0,y:0},c=he("recharts-surface",o);return C.createElement("svg",sx({},se(u,!0,"svg"),{className:c,width:n,height:r,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),C.createElement("title",null,s),C.createElement("desc",null,l),t)}var xee=["children","className"];function lx(){return lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lx.apply(this,arguments)}function bee(e,t){if(e==null)return{};var n=wee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Oe=C.forwardRef(function(e,t){var n=e.children,r=e.className,i=bee(e,xee),o=he("recharts-layer",r);return C.createElement("g",lx({className:o},se(i,!0),{ref:t}),n)}),br=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]};function See(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var vM=See,kee=vM;function Oee(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:kee(e,t,n)}var Eee=Oee,Pee="\\ud800-\\udfff",jee="\\u0300-\\u036f",Aee="\\ufe20-\\ufe2f",_ee="\\u20d0-\\u20ff",Cee=jee+Aee+_ee,Tee="\\ufe0e\\ufe0f",Nee="\\u200d",$ee=RegExp("["+Nee+Pee+Cee+Tee+"]");function Mee(e){return $ee.test(e)}var xM=Mee;function Iee(e){return e.split("")}var Ree=Iee,bM="\\ud800-\\udfff",Dee="\\u0300-\\u036f",Lee="\\ufe20-\\ufe2f",Fee="\\u20d0-\\u20ff",zee=Dee+Lee+Fee,Bee="\\ufe0e\\ufe0f",Wee="["+bM+"]",ux="["+zee+"]",cx="\\ud83c[\\udffb-\\udfff]",Uee="(?:"+ux+"|"+cx+")",wM="[^"+bM+"]",SM="(?:\\ud83c[\\udde6-\\uddff]){2}",kM="[\\ud800-\\udbff][\\udc00-\\udfff]",Hee="\\u200d",OM=Uee+"?",EM="["+Bee+"]?",Vee="(?:"+Hee+"(?:"+[wM,SM,kM].join("|")+")"+EM+OM+")*",Kee=EM+OM+Vee,qee="(?:"+[wM+ux+"?",ux,SM,kM,Wee].join("|")+")",Gee=RegExp(cx+"(?="+cx+")|"+qee+Kee,"g");function Yee(e){return e.match(Gee)||[]}var Xee=Yee,Qee=Ree,Jee=xM,Zee=Xee;function ete(e){return Jee(e)?Zee(e):Qee(e)}var tte=ete,nte=Eee,rte=xM,ite=tte,ote=dM;function ate(e){return function(t){t=ote(t);var n=rte(t)?ite(t):void 0,r=n?n[0]:t.charAt(0),i=n?nte(n,1).join(""):t.slice(1);return r[e]()+i}}var ste=ate,lte=ste,ute=lte("toUpperCase"),cte=ute;const Om=Ce(cte);function Ve(e){return function(){return e}}const PM=Math.cos,mp=Math.sin,Cr=Math.sqrt,gp=Math.PI,Em=2*gp,fx=Math.PI,dx=2*fx,Do=1e-6,fte=dx-Do;function jM(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function dte(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return jM;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class pte{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?jM:dte(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,u=i-n,f=a-t,c=s-n,d=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>Do)if(!(Math.abs(c*l-u*f)>Do)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-a,m=i-s,g=l*l+u*u,v=p*p+m*m,y=Math.sqrt(g),x=Math.sqrt(d),b=o*Math.tan((fx-Math.acos((g+d-v)/(2*y*x)))/2),O=b/x,S=b/y;Math.abs(O-1)>Do&&this._append`L${t+O*f},${n+O*c}`,this._append`A${o},${o},0,0,${+(c*p>f*m)},${this._x1=t+S*l},${this._y1=n+S*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,f=n+l,c=1^a,d=a?i-o:o-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Do||Math.abs(this._y1-f)>Do)&&this._append`L${u},${f}`,r&&(d<0&&(d=d%dx+dx),d>fte?this._append`A${r},${r},0,1,${c},${t-s},${n-l}A${r},${r},0,1,${c},${this._x1=u},${this._y1=f}`:d>Do&&this._append`A${r},${r},0,${+(d>=fx)},${c},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Aw(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new pte(t)}function _w(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function AM(e){this._context=e}AM.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 Pm(e){return new AM(e)}function _M(e){return e[0]}function CM(e){return e[1]}function TM(e,t){var n=Ve(!0),r=null,i=Pm,o=null,a=Aw(s);e=typeof e=="function"?e:e===void 0?_M:Ve(e),t=typeof t=="function"?t:t===void 0?CM:Ve(t);function s(l){var u,f=(l=_w(l)).length,c,d=!1,p;for(r==null&&(o=i(p=a())),u=0;u<=f;++u)!(u<f&&n(c=l[u],u,l))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(c,u,l),+t(c,u,l));if(p)return o=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ve(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ve(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Ve(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function Lf(e,t,n){var r=null,i=Ve(!0),o=null,a=Pm,s=null,l=Aw(u);e=typeof e=="function"?e:e===void 0?_M:Ve(+e),t=typeof t=="function"?t:Ve(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?CM:Ve(+n);function u(c){var d,p,m,g=(c=_w(c)).length,v,y=!1,x,b=new Array(g),O=new Array(g);for(o==null&&(s=a(x=l())),d=0;d<=g;++d){if(!(d<g&&i(v=c[d],d,c))===y)if(y=!y)p=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=p;--m)s.point(b[m],O[m]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+e(v,d,c),O[d]=+t(v,d,c),s.point(r?+r(v,d,c):b[d],n?+n(v,d,c):O[d]))}if(x)return s=null,x+""||null}function f(){return TM().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:Ve(+c),r=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Ve(+c),u):e},u.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Ve(+c),u):r},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:Ve(+c),n=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Ve(+c),u):t},u.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Ve(+c),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:Ve(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}class NM{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function hte(e){return new NM(e,!0)}function mte(e){return new NM(e,!1)}const Cw={draw(e,t){const n=Cr(t/gp);e.moveTo(n,0),e.arc(0,0,n,0,Em)}},gte={draw(e,t){const n=Cr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},$M=Cr(1/3),yte=$M*2,vte={draw(e,t){const n=Cr(t/yte),r=n*$M;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},xte={draw(e,t){const n=Cr(t),r=-n/2;e.rect(r,r,n,n)}},bte=.8908130915292852,MM=mp(gp/10)/mp(7*gp/10),wte=mp(Em/10)*MM,Ste=-PM(Em/10)*MM,kte={draw(e,t){const n=Cr(t*bte),r=wte*n,i=Ste*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Em*o/5,s=PM(a),l=mp(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},fy=Cr(3),Ote={draw(e,t){const n=-Cr(t/(fy*3));e.moveTo(0,n*2),e.lineTo(-fy*n,-n),e.lineTo(fy*n,-n),e.closePath()}},Bn=-.5,Wn=Cr(3)/2,px=1/Cr(12),Ete=(px/2+1)*3,Pte={draw(e,t){const n=Cr(t/Ete),r=n/2,i=n*px,o=r,a=n*px+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Bn*r-Wn*i,Wn*r+Bn*i),e.lineTo(Bn*o-Wn*a,Wn*o+Bn*a),e.lineTo(Bn*s-Wn*l,Wn*s+Bn*l),e.lineTo(Bn*r+Wn*i,Bn*i-Wn*r),e.lineTo(Bn*o+Wn*a,Bn*a-Wn*o),e.lineTo(Bn*s+Wn*l,Bn*l-Wn*s),e.closePath()}};function jte(e,t){let n=null,r=Aw(i);e=typeof e=="function"?e:Ve(e||Cw),t=typeof t=="function"?t:Ve(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Ve(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Ve(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function yp(){}function vp(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 IM(e){this._context=e}IM.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:vp(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:vp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ate(e){return new IM(e)}function RM(e){this._context=e}RM.prototype={areaStart:yp,areaEnd:yp,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:vp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _te(e){return new RM(e)}function DM(e){this._context=e}DM.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:vp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cte(e){return new DM(e)}function LM(e){this._context=e}LM.prototype={areaStart:yp,areaEnd:yp,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 Tte(e){return new LM(e)}function dE(e){return e<0?-1:1}function pE(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(dE(o)+dE(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function hE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function dy(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function xp(e){this._context=e}xp.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:dy(this,this._t0,hE(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,dy(this,hE(this,n=pE(this,e,t)),n);break;default:dy(this,this._t0,n=pE(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function FM(e){this._context=new zM(e)}(FM.prototype=Object.create(xp.prototype)).point=function(e,t){xp.prototype.point.call(this,t,e)};function zM(e){this._context=e}zM.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,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function Nte(e){return new xp(e)}function $te(e){return new FM(e)}function BM(e){this._context=e}BM.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=mE(e),i=mE(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function mE(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Mte(e){return new BM(e)}function jm(e,t){this._context=e,this._t=t}jm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=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 Ite(e){return new jm(e,.5)}function Rte(e){return new jm(e,0)}function Dte(e){return new jm(e,1)}function As(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function hx(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Lte(e,t){return e[t]}function Fte(e){const t=[];return t.key=e,t}function zte(){var e=Ve([]),t=hx,n=As,r=Lte;function i(o){var a=Array.from(e.apply(this,arguments),Fte),s,l=a.length,u=-1,f;for(const c of o)for(s=0,++u;s<l;++s)(a[s][u]=[0,+r(c,a[s].key,u,o)]).data=c;for(s=0,f=_w(t(a));s<l;++s)a[f[s]].index=s;return n(a,f),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Ve(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Ve(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?hx:typeof o=="function"?o:Ve(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??As,i):n},i}function Bte(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}As(e,t)}}function Wte(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}As(e,t)}}function Ute(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,u=0;s<a;++s){for(var f=e[t[s]],c=f[r][1]||0,d=f[r-1][1]||0,p=(c-d)/2,m=0;m<s;++m){var g=e[t[m]],v=g[r][1]||0,y=g[r-1][1]||0;p+=v-y}l+=c,u+=p*c}i[r-1][1]+=i[r-1][0]=n,l&&(n-=u/l)}i[r-1][1]+=i[r-1][0]=n,As(e,t)}}function Ku(e){"@babel/helpers - typeof";return Ku=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},Ku(e)}var Hte=["type","size","sizeType"];function mx(){return mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mx.apply(this,arguments)}function gE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gE(Object(n),!0).forEach(function(r){Vte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vte(e,t,n){return t=Kte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kte(e){var t=qte(e,"string");return Ku(t)=="symbol"?t:t+""}function qte(e,t){if(Ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gte(e,t){if(e==null)return{};var n=Yte(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yte(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var WM={symbolCircle:Cw,symbolCross:gte,symbolDiamond:vte,symbolSquare:xte,symbolStar:kte,symbolTriangle:Ote,symbolWye:Pte},Xte=Math.PI/180,Qte=function(t){var n="symbol".concat(Om(t));return WM[n]||Cw},Jte=function(t,n,r){if(n==="area")return t;switch(r){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*Xte;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}},Zte=function(t,n){WM["symbol".concat(Om(t))]=n},Tw=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,l=Gte(t,Hte),u=yE(yE({},l),{},{type:r,size:o,sizeType:s}),f=function(){var v=Qte(r),y=jte().type(v).size(Jte(o,s,r));return y()},c=u.className,d=u.cx,p=u.cy,m=se(u,!0);return d===+d&&p===+p&&o===+o?C.createElement("path",mx({},m,{className:he("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};Tw.registerSymbol=Zte;function _s(e){"@babel/helpers - typeof";return _s=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},_s(e)}function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gx.apply(this,arguments)}function vE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ene(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vE(Object(n),!0).forEach(function(r){qu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HM(r.key),r)}}function rne(e,t,n){return t&&nne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ine(e,t,n){return t=bp(t),one(e,UM()?Reflect.construct(t,n||[],bp(e).constructor):t.apply(e,n))}function one(e,t){if(t&&(_s(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ane(e)}function ane(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UM=function(){return!!e})()}function bp(e){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bp(e)}function sne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yx(e,t)}function yx(e,t){return yx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yx(e,t)}function qu(e,t,n){return t=HM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HM(e){var t=lne(e,"string");return _s(t)=="symbol"?t:t+""}function lne(e,t){if(_s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Un=32,Nw=function(e){function t(){return tne(this,t),ine(this,t,arguments)}return sne(t,e),rne(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Un/2,a=Un/6,s=Un/3,l=r.inactive?i:r.color;if(r.type==="plainline")return C.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Un,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return C.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(s,`
|
|
400
|
+
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,`
|
|
401
|
+
H`).concat(Un,"M").concat(2*s,",").concat(o,`
|
|
402
|
+
A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return C.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Un/8,"h").concat(Un,"v").concat(Un*3/4,"h").concat(-Un,"z"),className:"recharts-legend-icon"});if(C.isValidElement(r.legendIcon)){var u=ene({},r);return delete u.legendIcon,C.cloneElement(r.legendIcon,u)}return C.createElement(Tw,{fill:l,cx:o,cy:o,size:Un,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,f={x:0,y:0,width:Un,height:Un},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(p,m){var g=p.formatter||l,v=he(qu(qu({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=ce(p.value)?null:p.value;br(!ce(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?u:p.color;return C.createElement("li",gx({className:v,style:c,key:"legend-item-".concat(m)},ua(r.props,p,m)),C.createElement(hp,{width:a,height:a,viewBox:f,style:d},r.renderIcon(p)),C.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},g?g(y,p,m):y))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return C.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(k.PureComponent);qu(Nw,"displayName","Legend");qu(Nw,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var une=lm;function cne(){this.__data__=new une,this.size=0}var fne=cne;function dne(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var pne=dne;function hne(e){return this.__data__.get(e)}var mne=hne;function gne(e){return this.__data__.has(e)}var yne=gne,vne=lm,xne=Sw,bne=kw,wne=200;function Sne(e,t){var n=this.__data__;if(n instanceof vne){var r=n.__data__;if(!xne||r.length<wne-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new bne(r)}return n.set(e,t),this.size=n.size,this}var kne=Sne,One=lm,Ene=fne,Pne=pne,jne=mne,Ane=yne,_ne=kne;function xl(e){var t=this.__data__=new One(e);this.size=t.size}xl.prototype.clear=Ene;xl.prototype.delete=Pne;xl.prototype.get=jne;xl.prototype.has=Ane;xl.prototype.set=_ne;var $w=xl,Cne="__lodash_hash_undefined__";function Tne(e){return this.__data__.set(e,Cne),this}var Nne=Tne;function $ne(e){return this.__data__.has(e)}var Mne=$ne,Ine=kw,Rne=Nne,Dne=Mne;function wp(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ine;++t<n;)this.add(e[t])}wp.prototype.add=wp.prototype.push=Rne;wp.prototype.has=Dne;var VM=wp;function Lne(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var KM=Lne;function Fne(e,t){return e.has(t)}var qM=Fne,zne=VM,Bne=KM,Wne=qM,Une=1,Hne=2;function Vne(e,t,n,r,i,o){var a=n&Une,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,p=n&Hne?new zne:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var m=e[c],g=t[c];if(r)var v=a?r(g,m,c,t,e,o):r(m,g,c,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(p){if(!Bne(t,function(y,x){if(!Wne(p,x)&&(m===y||i(m,y,n,r,o)))return p.push(x)})){d=!1;break}}else if(!(m===g||i(m,g,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var GM=Vne,Kne=jr,qne=Kne.Uint8Array,YM=qne;function Gne(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Yne=Gne;function Xne(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Mw=Xne,xE=pl,bE=YM,Qne=am,Jne=GM,Zne=Yne,ere=Mw,tre=1,nre=2,rre="[object Boolean]",ire="[object Date]",ore="[object Error]",are="[object Map]",sre="[object Number]",lre="[object RegExp]",ure="[object Set]",cre="[object String]",fre="[object Symbol]",dre="[object ArrayBuffer]",pre="[object DataView]",wE=xE?xE.prototype:void 0,py=wE?wE.valueOf:void 0;function hre(e,t,n,r,i,o,a){switch(n){case pre:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dre:return!(e.byteLength!=t.byteLength||!o(new bE(e),new bE(t)));case rre:case ire:case sre:return Qne(+e,+t);case ore:return e.name==t.name&&e.message==t.message;case lre:case cre:return e==t+"";case are:var s=Zne;case ure:var l=r&tre;if(s||(s=ere),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=nre,a.set(e,t);var f=Jne(s(e),s(t),r,i,o,a);return a.delete(e),f;case fre:if(py)return py.call(e)==py.call(t)}return!1}var mre=hre;function gre(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Iw=gre,yre=Iw,vre=an;function xre(e,t,n){var r=t(e);return vre(e)?r:yre(r,n(e))}var XM=xre;function bre(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var wre=bre;function Sre(){return[]}var QM=Sre,kre=wre,Ore=QM,Ere=Object.prototype,Pre=Ere.propertyIsEnumerable,SE=Object.getOwnPropertySymbols,jre=SE?function(e){return e==null?[]:(e=Object(e),kre(SE(e),function(t){return Pre.call(e,t)}))}:Ore,Rw=jre;function Are(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var _re=Are,Cre=$i,Tre=Ar,Nre="[object Arguments]";function $re(e){return Tre(e)&&Cre(e)==Nre}var Mre=$re,kE=Mre,Ire=Ar,JM=Object.prototype,Rre=JM.hasOwnProperty,Dre=JM.propertyIsEnumerable,Lre=kE(function(){return arguments}())?kE:function(e){return Ire(e)&&Rre.call(e,"callee")&&!Dre.call(e,"callee")},Dw=Lre,Sp={exports:{}};function Fre(){return!1}var zre=Fre;Sp.exports;(function(e,t){var n=jr,r=zre,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(Sp,Sp.exports);var Lw=Sp.exports,Bre=9007199254740991,Wre=/^(?:0|[1-9]\d*)$/;function Ure(e,t){var n=typeof e;return t=t??Bre,!!t&&(n=="number"||n!="symbol"&&Wre.test(e))&&e>-1&&e%1==0&&e<t}var Fw=Ure,Hre=9007199254740991;function Vre(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hre}var zw=Vre,Kre=$i,qre=zw,Gre=Ar,Yre="[object Arguments]",Xre="[object Array]",Qre="[object Boolean]",Jre="[object Date]",Zre="[object Error]",eie="[object Function]",tie="[object Map]",nie="[object Number]",rie="[object Object]",iie="[object RegExp]",oie="[object Set]",aie="[object String]",sie="[object WeakMap]",lie="[object ArrayBuffer]",uie="[object DataView]",cie="[object Float32Array]",fie="[object Float64Array]",die="[object Int8Array]",pie="[object Int16Array]",hie="[object Int32Array]",mie="[object Uint8Array]",gie="[object Uint8ClampedArray]",yie="[object Uint16Array]",vie="[object Uint32Array]",Xe={};Xe[cie]=Xe[fie]=Xe[die]=Xe[pie]=Xe[hie]=Xe[mie]=Xe[gie]=Xe[yie]=Xe[vie]=!0;Xe[Yre]=Xe[Xre]=Xe[lie]=Xe[Qre]=Xe[uie]=Xe[Jre]=Xe[Zre]=Xe[eie]=Xe[tie]=Xe[nie]=Xe[rie]=Xe[iie]=Xe[oie]=Xe[aie]=Xe[sie]=!1;function xie(e){return Gre(e)&&qre(e.length)&&!!Xe[Kre(e)]}var bie=xie;function wie(e){return function(t){return e(t)}}var Am=wie,kp={exports:{}};kp.exports;(function(e,t){var n=aM,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(kp,kp.exports);var Bw=kp.exports,Sie=bie,kie=Am,OE=Bw,EE=OE&&OE.isTypedArray,Oie=EE?kie(EE):Sie,ZM=Oie,Eie=_re,Pie=Dw,jie=an,Aie=Lw,_ie=Fw,Cie=ZM,Tie=Object.prototype,Nie=Tie.hasOwnProperty;function $ie(e,t){var n=jie(e),r=!n&&Pie(e),i=!n&&!r&&Aie(e),o=!n&&!r&&!i&&Cie(e),a=n||r||i||o,s=a?Eie(e.length,String):[],l=s.length;for(var u in e)(t||Nie.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_ie(u,l)))&&s.push(u);return s}var eI=$ie,Mie=Object.prototype;function Iie(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Mie;return e===n}var Ww=Iie;function Rie(e,t){return function(n){return e(t(n))}}var tI=Rie,Die=tI,Lie=Die(Object.keys,Object),Fie=Lie,zie=Ww,Bie=Fie,Wie=Object.prototype,Uie=Wie.hasOwnProperty;function Hie(e){if(!zie(e))return Bie(e);var t=[];for(var n in Object(e))Uie.call(e,n)&&n!="constructor"&&t.push(n);return t}var Vie=Hie,Kie=ww,qie=zw;function Gie(e){return e!=null&&qie(e.length)&&!Kie(e)}var bl=Gie,Yie=eI,Xie=Vie,Qie=bl;function Jie(e){return Qie(e)?Yie(e):Xie(e)}var wl=Jie,Zie=XM,eoe=Rw,toe=wl;function noe(e){return Zie(e,toe,eoe)}var nI=noe,PE=nI,roe=1,ioe=Object.prototype,ooe=ioe.hasOwnProperty;function aoe(e,t,n,r,i,o){var a=n&roe,s=PE(e),l=s.length,u=PE(t),f=u.length;if(l!=f&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:ooe.call(t,d)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var v=a;++c<l;){d=s[c];var y=e[d],x=t[d];if(r)var b=a?r(x,y,d,t,e,o):r(y,x,d,e,t,o);if(!(b===void 0?y===x||i(y,x,n,r,o):b)){g=!1;break}v||(v=d=="constructor")}if(g&&!v){var O=e.constructor,S=t.constructor;O!=S&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof S=="function"&&S instanceof S)&&(g=!1)}return o.delete(e),o.delete(t),g}var soe=aoe,loe=va,uoe=jr,coe=loe(uoe,"DataView"),foe=coe,doe=va,poe=jr,hoe=doe(poe,"Promise"),moe=hoe,goe=va,yoe=jr,voe=goe(yoe,"Set"),rI=voe,xoe=va,boe=jr,woe=xoe(boe,"WeakMap"),Soe=woe,vx=foe,xx=Sw,bx=moe,wx=rI,Sx=Soe,iI=$i,Sl=lM,jE="[object Map]",koe="[object Object]",AE="[object Promise]",_E="[object Set]",CE="[object WeakMap]",TE="[object DataView]",Ooe=Sl(vx),Eoe=Sl(xx),Poe=Sl(bx),joe=Sl(wx),Aoe=Sl(Sx),Lo=iI;(vx&&Lo(new vx(new ArrayBuffer(1)))!=TE||xx&&Lo(new xx)!=jE||bx&&Lo(bx.resolve())!=AE||wx&&Lo(new wx)!=_E||Sx&&Lo(new Sx)!=CE)&&(Lo=function(e){var t=iI(e),n=t==koe?e.constructor:void 0,r=n?Sl(n):"";if(r)switch(r){case Ooe:return TE;case Eoe:return jE;case Poe:return AE;case joe:return _E;case Aoe:return CE}return t});var _m=Lo,hy=$w,_oe=GM,Coe=mre,Toe=soe,NE=_m,$E=an,ME=Lw,Noe=ZM,$oe=1,IE="[object Arguments]",RE="[object Array]",Ff="[object Object]",Moe=Object.prototype,DE=Moe.hasOwnProperty;function Ioe(e,t,n,r,i,o){var a=$E(e),s=$E(t),l=a?RE:NE(e),u=s?RE:NE(t);l=l==IE?Ff:l,u=u==IE?Ff:u;var f=l==Ff,c=u==Ff,d=l==u;if(d&&ME(e)){if(!ME(t))return!1;a=!0,f=!1}if(d&&!f)return o||(o=new hy),a||Noe(e)?_oe(e,t,n,r,i,o):Coe(e,t,l,n,r,i,o);if(!(n&$oe)){var p=f&&DE.call(e,"__wrapped__"),m=c&&DE.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,v=m?t.value():t;return o||(o=new hy),i(g,v,n,r,o)}}return d?(o||(o=new hy),Toe(e,t,n,r,i,o)):!1}var Roe=Ioe,Doe=Roe,LE=Ar;function oI(e,t,n,r,i){return e===t?!0:e==null||t==null||!LE(e)&&!LE(t)?e!==e&&t!==t:Doe(e,t,n,r,oI,i)}var Uw=oI,Loe=$w,Foe=Uw,zoe=1,Boe=2;function Woe(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],u=e[l],f=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new Loe;if(r)var d=r(u,f,l,e,t,c);if(!(d===void 0?Foe(f,u,zoe|Boe,r,c):d))return!1}}return!0}var Uoe=Woe,Hoe=_r;function Voe(e){return e===e&&!Hoe(e)}var aI=Voe,Koe=aI,qoe=wl;function Goe(e){for(var t=qoe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Koe(i)]}return t}var Yoe=Goe;function Xoe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var sI=Xoe,Qoe=Uoe,Joe=Yoe,Zoe=sI;function eae(e){var t=Joe(e);return t.length==1&&t[0][2]?Zoe(t[0][0],t[0][1]):function(n){return n===e||Qoe(n,e,t)}}var tae=eae;function nae(e,t){return e!=null&&t in Object(e)}var rae=nae,iae=fm,oae=Dw,aae=an,sae=Fw,lae=zw,uae=Hc;function cae(e,t,n){t=iae(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=uae(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&lae(i)&&sae(a,i)&&(aae(e)||oae(e)))}var fae=cae,dae=rae,pae=fae;function hae(e,t){return e!=null&&pae(e,t,dae)}var mae=hae,gae=Uw,yae=pM,vae=mae,xae=bw,bae=aI,wae=sI,Sae=Hc,kae=1,Oae=2;function Eae(e,t){return xae(e)&&bae(t)?wae(Sae(e),t):function(n){var r=yae(n,e);return r===void 0&&r===t?vae(n,e):gae(t,r,kae|Oae)}}var Pae=Eae;function jae(e){return e}var kl=jae;function Aae(e){return function(t){return t==null?void 0:t[e]}}var _ae=Aae,Cae=dm;function Tae(e){return function(t){return Cae(t,e)}}var Nae=Tae,$ae=_ae,Mae=Nae,Iae=bw,Rae=Hc;function Dae(e){return Iae(e)?$ae(Rae(e)):Mae(e)}var Lae=Dae,Fae=tae,zae=Pae,Bae=kl,Wae=an,Uae=Lae;function Hae(e){return typeof e=="function"?e:e==null?Bae:typeof e=="object"?Wae(e)?zae(e[0],e[1]):Fae(e):Uae(e)}var Xr=Hae;function Vae(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var lI=Vae;function Kae(e){return e!==e}var qae=Kae;function Gae(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var Yae=Gae,Xae=lI,Qae=qae,Jae=Yae;function Zae(e,t,n){return t===t?Jae(e,t,n):Xae(e,Qae,n)}var ese=Zae,tse=ese;function nse(e,t){var n=e==null?0:e.length;return!!n&&tse(e,t,0)>-1}var rse=nse;function ise(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var ose=ise;function ase(){}var sse=ase,my=rI,lse=sse,use=Mw,cse=1/0,fse=my&&1/use(new my([,-0]))[1]==cse?function(e){return new my(e)}:lse,dse=fse,pse=VM,hse=rse,mse=ose,gse=qM,yse=dse,vse=Mw,xse=200;function bse(e,t,n){var r=-1,i=hse,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=mse;else if(o>=xse){var u=t?null:yse(e);if(u)return vse(u);a=!1,i=gse,l=new pse}else l=t?[]:s;e:for(;++r<o;){var f=e[r],c=t?t(f):f;if(f=n||f!==0?f:0,a&&c===c){for(var d=l.length;d--;)if(l[d]===c)continue e;t&&l.push(c),s.push(f)}else i(l,c,n)||(l!==s&&l.push(c),s.push(f))}return s}var wse=bse,Sse=Xr,kse=wse;function Ose(e,t){return e&&e.length?kse(e,Sse(t)):[]}var Ese=Ose;const FE=Ce(Ese);function uI(e,t,n){return t===!0?FE(e,n):ce(t)?FE(e,t):e}function Cs(e){"@babel/helpers - typeof";return Cs=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},Cs(e)}var Pse=["ref"];function zE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zE(Object(n),!0).forEach(function(r){Cm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fI(r.key),r)}}function Ase(e,t,n){return t&&BE(e.prototype,t),n&&BE(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _se(e,t,n){return t=Op(t),Cse(e,cI()?Reflect.construct(t,n||[],Op(e).constructor):t.apply(e,n))}function Cse(e,t){if(t&&(Cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tse(e)}function Tse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cI=function(){return!!e})()}function Op(e){return Op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Op(e)}function Nse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kx(e,t)}function kx(e,t){return kx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},kx(e,t)}function Cm(e,t,n){return t=fI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fI(e){var t=$se(e,"string");return Cs(t)=="symbol"?t:t+""}function $se(e,t){if(Cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Mse(e,t){if(e==null)return{};var n=Ise(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ise(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Rse(e){return e.value}function Dse(e,t){if(C.isValidElement(e))return C.cloneElement(e,t);if(typeof e=="function")return C.createElement(e,t);t.ref;var n=Mse(t,Pse);return C.createElement(Nw,n)}var WE=1,ci=function(e){function t(){var n;jse(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=_se(this,t,[].concat(i)),Cm(n,"lastBoundingBox",{width:-1,height:-1}),n}return Nse(t,e),Ase(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>WE||Math.abs(i.height-this.lastBoundingBox.height)>WE)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Zr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,c,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();d={top:((f||0)-m.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Zr(Zr({},c),d)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,c=Zr(Zr({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return C.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){r.wrapperNode=p}},Dse(o,Zr(Zr({},this.props),{},{payload:uI(f,u,Rse)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Zr(Zr({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&X(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])}(k.PureComponent);Cm(ci,"displayName","Legend");Cm(ci,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var UE=pl,Lse=Dw,Fse=an,HE=UE?UE.isConcatSpreadable:void 0;function zse(e){return Fse(e)||Lse(e)||!!(HE&&e&&e[HE])}var Bse=zse,Wse=Iw,Use=Bse;function dI(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Use),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?dI(s,t-1,n,r,i):Wse(i,s):r||(i[i.length]=s)}return i}var Hw=dI;function Hse(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var Vse=Hse,Kse=Vse,qse=Kse(),Gse=qse,Yse=Gse,Xse=wl;function Qse(e,t){return e&&Yse(e,t,Xse)}var pI=Qse,Jse=bl;function Zse(e,t){return function(n,r){if(n==null)return n;if(!Jse(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var ele=Zse,tle=pI,nle=ele,rle=nle(tle),Vw=rle,ile=Vw,ole=bl;function ale(e,t){var n=-1,r=ole(e)?Array(e.length):[];return ile(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var hI=ale;function sle(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var lle=sle,VE=hl;function ule(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=VE(e),a=t!==void 0,s=t===null,l=t===t,u=VE(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var cle=ule,fle=cle;function dle(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=fle(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var ple=dle,gy=cm,hle=dm,mle=Xr,gle=hI,yle=lle,vle=Am,xle=ple,ble=kl,wle=an;function Sle(e,t,n){t.length?t=gy(t,function(o){return wle(o)?function(a){return hle(a,o.length===1?o[0]:o)}:o}):t=[ble];var r=-1;t=gy(t,vle(mle));var i=gle(e,function(o,a,s){var l=gy(t,function(u){return u(o)});return{criteria:l,index:++r,value:o}});return yle(i,function(o,a){return xle(o,a,n)})}var kle=Sle;function Ole(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 Ele=Ole,Ple=Ele,KE=Math.max;function jle(e,t,n){return t=KE(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=KE(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Ple(e,this,s)}}var mI=jle;function Ale(e){return function(){return e}}var _le=Ale,Cle=va,Tle=function(){try{var e=Cle(Object,"defineProperty");return e({},"",{}),e}catch{}}(),gI=Tle,Nle=_le,qE=gI,$le=kl,Mle=qE?function(e,t){return qE(e,"toString",{configurable:!0,enumerable:!1,value:Nle(t),writable:!0})}:$le,Ile=Mle,Rle=800,Dle=16,Lle=Date.now;function Fle(e){var t=0,n=0;return function(){var r=Lle(),i=Dle-(r-n);if(n=r,i>0){if(++t>=Rle)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zle=Fle,Ble=Ile,Wle=zle,Ule=Wle(Ble),yI=Ule,Hle=kl,Vle=mI,Kle=yI;function qle(e,t){return Kle(Vle(e,t,Hle),e+"")}var Gle=qle,Yle=am,Xle=bl,Qle=Fw,Jle=_r;function Zle(e,t,n){if(!Jle(n))return!1;var r=typeof t;return(r=="number"?Xle(n)&&Qle(t,n.length):r=="string"&&t in n)?Yle(n[t],e):!1}var Tm=Zle,eue=Hw,tue=kle,nue=Gle,GE=Tm,rue=nue(function(e,t){if(e==null)return[];var n=t.length;return n>1&&GE(e,t[0],t[1])?t=[]:n>2&&GE(t[0],t[1],t[2])&&(t=[t[0]]),tue(e,eue(t,1),[])}),iue=rue;const Kw=Ce(iue);function Gu(e){"@babel/helpers - typeof";return Gu=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},Gu(e)}function Ox(){return Ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ox.apply(this,arguments)}function oue(e,t){return uue(e)||lue(e,t)||sue(e,t)||aue()}function aue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
403
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sue(e,t){if(e){if(typeof e=="string")return YE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YE(e,t)}}function YE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function uue(e){if(Array.isArray(e))return e}function XE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XE(Object(n),!0).forEach(function(r){cue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cue(e,t,n){return t=fue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fue(e){var t=due(e,"string");return Gu(t)=="symbol"?t:t+""}function due(e,t){if(Gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pue(e){return Array.isArray(e)&&St(e[0])&&St(e[1])?e.join(" ~ "):e}var hue=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,s=a===void 0?{}:a,l=t.labelStyle,u=l===void 0?{}:l,f=t.payload,c=t.formatter,d=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,g=t.label,v=t.labelFormatter,y=t.accessibilityLayer,x=y===void 0?!1:y,b=function(){if(f&&f.length){var N={padding:0,margin:0},R=(d?Kw(f,d):f).map(function(F,I){if(F.type==="none")return null;var D=yy({display:"block",paddingTop:4,paddingBottom:4,color:F.color||"#000"},s),L=F.formatter||c||pue,M=F.value,z=F.name,j=M,W=z;if(L&&j!=null&&W!=null){var U=L(M,z,F,I,f);if(Array.isArray(U)){var T=oue(U,2);j=T[0],W=T[1]}else j=U}return C.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(I),style:D},St(W)?C.createElement("span",{className:"recharts-tooltip-item-name"},W):null,St(W)?C.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,C.createElement("span",{className:"recharts-tooltip-item-value"},j),C.createElement("span",{className:"recharts-tooltip-item-unit"},F.unit||""))});return C.createElement("ul",{className:"recharts-tooltip-item-list",style:N},R)}return null},O=yy({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),S=yy({margin:0},u),w=!me(g),E=w?g:"",P=he("recharts-default-tooltip",p),_=he("recharts-tooltip-label",m);w&&v&&f!==void 0&&f!==null&&(E=v(g,f));var A=x?{role:"status","aria-live":"assertive"}:{};return C.createElement("div",Ox({className:P,style:O},A),C.createElement("p",{className:_,style:S},C.isValidElement(E)?E:"".concat(E)),b())};function Yu(e){"@babel/helpers - typeof";return Yu=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},Yu(e)}function zf(e,t,n){return t=mue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mue(e){var t=gue(e,"string");return Yu(t)=="symbol"?t:t+""}function gue(e,t){if(Yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hl="recharts-tooltip-wrapper",yue={visibility:"hidden"};function vue(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return he(Hl,zf(zf(zf(zf({},"".concat(Hl,"-right"),X(n)&&t&&X(t.x)&&n>=t.x),"".concat(Hl,"-left"),X(n)&&t&&X(t.x)&&n<t.x),"".concat(Hl,"-bottom"),X(r)&&t&&X(t.y)&&r>=t.y),"".concat(Hl,"-top"),X(r)&&t&&X(t.y)&&r<t.y))}function QE(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(o&&X(o[r]))return o[r];var f=n[r]-s-i,c=n[r]+i;if(t[r])return a[r]?f:c;if(a[r]){var d=f,p=l[r];return d<p?Math.max(c,l[r]):Math.max(f,l[r])}var m=c+s,g=l[r]+u;return m>g?Math.max(f,l[r]):Math.max(c,l[r])}function xue(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function bue(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,c;return a.height>0&&a.width>0&&n?(f=QE({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),c=QE({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=xue({translateX:f,translateY:c,useTranslate3d:s})):u=yue,{cssProperties:u,cssClasses:vue({translateX:f,translateY:c,coordinate:n})}}function Ts(e){"@babel/helpers - typeof";return Ts=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},Ts(e)}function JE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ZE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JE(Object(n),!0).forEach(function(r){Px(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xI(r.key),r)}}function kue(e,t,n){return t&&Sue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oue(e,t,n){return t=Ep(t),Eue(e,vI()?Reflect.construct(t,n||[],Ep(e).constructor):t.apply(e,n))}function Eue(e,t){if(t&&(Ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pue(e)}function Pue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vI=function(){return!!e})()}function Ep(e){return Ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ep(e)}function jue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ex(e,t)}function Ex(e,t){return Ex=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ex(e,t)}function Px(e,t,n){return t=xI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xI(e){var t=Aue(e,"string");return Ts(t)=="symbol"?t:t+""}function Aue(e,t){if(Ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var eP=1,_ue=function(e){function t(){var n;wue(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Oue(this,t,[].concat(i)),Px(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Px(n,"handleKeyDown",function(a){if(a.key==="Escape"){var s,l,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return jue(t,e),kue(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>eP||Math.abs(r.height-this.state.lastBoundingBox.height)>eP)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.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 r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,m=i.position,g=i.reverseDirection,v=i.useTranslate3d,y=i.viewBox,x=i.wrapperStyle,b=bue({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),O=b.cssClasses,S=b.cssProperties,w=ZE(ZE({transition:d&&o?"transform ".concat(s,"ms ").concat(l):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&c?"visible":"hidden",position:"absolute",top:0,left:0},x);return C.createElement("div",{tabIndex:-1,className:O,style:w,ref:function(P){r.wrapperNode=P}},u)}}])}(k.PureComponent),Cue=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ei={isSsr:Cue()};function Ns(e){"@babel/helpers - typeof";return Ns=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},Ns(e)}function tP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tP(Object(n),!0).forEach(function(r){qw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wI(r.key),r)}}function $ue(e,t,n){return t&&Nue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mue(e,t,n){return t=Pp(t),Iue(e,bI()?Reflect.construct(t,n||[],Pp(e).constructor):t.apply(e,n))}function Iue(e,t){if(t&&(Ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rue(e)}function Rue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bI=function(){return!!e})()}function Pp(e){return Pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pp(e)}function Due(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jx(e,t)}function jx(e,t){return jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},jx(e,t)}function qw(e,t,n){return t=wI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wI(e){var t=Lue(e,"string");return Ns(t)=="symbol"?t:t+""}function Lue(e,t){if(Ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Fue(e){return e.dataKey}function zue(e,t){return C.isValidElement(e)?C.cloneElement(e,t):typeof e=="function"?C.createElement(e,t):C.createElement(hue,t)}var jt=function(e){function t(){return Tue(this,t),Mue(this,t,arguments)}return Due(t,e),$ue(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,f=i.coordinate,c=i.filterNull,d=i.isAnimationActive,p=i.offset,m=i.payload,g=i.payloadUniqBy,v=i.position,y=i.reverseDirection,x=i.useTranslate3d,b=i.viewBox,O=i.wrapperStyle,S=m??[];c&&S.length&&(S=uI(m.filter(function(E){return E.value!=null&&(E.hide!==!0||r.props.includeHidden)}),g,Fue));var w=S.length>0;return C.createElement(_ue,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:d,active:o,coordinate:f,hasPayload:w,offset:p,position:v,reverseDirection:y,useTranslate3d:x,viewBox:b,wrapperStyle:O},zue(u,nP(nP({},this.props),{},{payload:S})))}}])}(k.PureComponent);qw(jt,"displayName","Tooltip");qw(jt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ei.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 Bue=jr,Wue=function(){return Bue.Date.now()},Uue=Wue,Hue=/\s/;function Vue(e){for(var t=e.length;t--&&Hue.test(e.charAt(t)););return t}var Kue=Vue,que=Kue,Gue=/^\s+/;function Yue(e){return e&&e.slice(0,que(e)+1).replace(Gue,"")}var Xue=Yue,Que=Xue,rP=_r,Jue=hl,iP=NaN,Zue=/^[-+]0x[0-9a-f]+$/i,ece=/^0b[01]+$/i,tce=/^0o[0-7]+$/i,nce=parseInt;function rce(e){if(typeof e=="number")return e;if(Jue(e))return iP;if(rP(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=rP(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Que(e);var n=ece.test(e);return n||tce.test(e)?nce(e.slice(2),n?2:8):Zue.test(e)?iP:+e}var SI=rce,ice=_r,vy=Uue,oP=SI,oce="Expected a function",ace=Math.max,sce=Math.min;function lce(e,t,n){var r,i,o,a,s,l,u=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(oce);t=oP(t)||0,ice(n)&&(f=!!n.leading,c="maxWait"in n,o=c?ace(oP(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(w){var E=r,P=i;return r=i=void 0,u=w,a=e.apply(P,E),a}function m(w){return u=w,s=setTimeout(y,t),f?p(w):a}function g(w){var E=w-l,P=w-u,_=t-E;return c?sce(_,o-P):_}function v(w){var E=w-l,P=w-u;return l===void 0||E>=t||E<0||c&&P>=o}function y(){var w=vy();if(v(w))return x(w);s=setTimeout(y,g(w))}function x(w){return s=void 0,d&&r?p(w):(r=i=void 0,a)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function O(){return s===void 0?a:x(vy())}function S(){var w=vy(),E=v(w);if(r=arguments,i=this,l=w,E){if(s===void 0)return m(l);if(c)return clearTimeout(s),s=setTimeout(y,t),p(l)}return s===void 0&&(s=setTimeout(y,t)),a}return S.cancel=b,S.flush=O,S}var uce=lce,cce=uce,fce=_r,dce="Expected a function";function pce(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(dce);return fce(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),cce(e,t,{leading:r,maxWait:t,trailing:i})}var hce=pce;const kI=Ce(hce);function Xu(e){"@babel/helpers - typeof";return Xu=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},Xu(e)}function aP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(n),!0).forEach(function(r){mce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mce(e,t,n){return t=gce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gce(e){var t=yce(e,"string");return Xu(t)=="symbol"?t:t+""}function yce(e,t){if(Xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vce(e,t){return Sce(e)||wce(e,t)||bce(e,t)||xce()}function xce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
404
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bce(e,t){if(e){if(typeof e=="string")return sP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sP(e,t)}}function sP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Sce(e){if(Array.isArray(e))return e}var Ol=k.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,a=o===void 0?"100%":o,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,c=e.minHeight,d=e.maxHeight,p=e.children,m=e.debounce,g=m===void 0?0:m,v=e.id,y=e.className,x=e.onResize,b=e.style,O=b===void 0?{}:b,S=k.useRef(null),w=k.useRef();w.current=x,k.useImperativeHandle(t,function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})});var E=k.useState({containerWidth:i.width,containerHeight:i.height}),P=vce(E,2),_=P[0],A=P[1],$=k.useCallback(function(R,F){A(function(I){var D=Math.round(R),L=Math.round(F);return I.containerWidth===D&&I.containerHeight===L?I:{containerWidth:D,containerHeight:L}})},[]);k.useEffect(function(){var R=function(z){var j,W=z[0].contentRect,U=W.width,T=W.height;$(U,T),(j=w.current)===null||j===void 0||j.call(w,U,T)};g>0&&(R=kI(R,g,{trailing:!0,leading:!1}));var F=new ResizeObserver(R),I=S.current.getBoundingClientRect(),D=I.width,L=I.height;return $(D,L),F.observe(S.current),function(){F.disconnect()}},[$,g]);var N=k.useMemo(function(){var R=_.containerWidth,F=_.containerHeight;if(R<0||F<0)return null;br(Ko(a)||Ko(l),`The width(%s) and height(%s) are both fixed numbers,
|
|
405
|
+
maybe you don't need to use a ResponsiveContainer.`,a,l),br(!n||n>0,"The aspect(%s) must be greater than zero.",n);var I=Ko(a)?R:a,D=Ko(l)?F:l;n&&n>0&&(I?D=I/n:D&&(I=D*n),d&&D>d&&(D=d)),br(I>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
406
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
407
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
408
|
+
height and width.`,I,D,a,l,f,c,n);var L=!Array.isArray(p)&&ui(p.type).endsWith("Chart");return C.Children.map(p,function(M){return C.isValidElement(M)?k.cloneElement(M,Bf({width:I,height:D},L?{style:Bf({height:"100%",width:"100%",maxHeight:D,maxWidth:I},M.props.style)}:{})):M})},[n,p,l,d,c,f,_,a]);return C.createElement("div",{id:v?"".concat(v):void 0,className:he("recharts-responsive-container",y),style:Bf(Bf({},O),{},{width:a,height:l,minWidth:f,minHeight:c,maxHeight:d}),ref:S},N)}),Nm=function(t){return null};Nm.displayName="Cell";function Qu(e){"@babel/helpers - typeof";return Qu=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},Qu(e)}function lP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ax(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(n),!0).forEach(function(r){kce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kce(e,t,n){return t=Oce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oce(e){var t=Ece(e,"string");return Qu(t)=="symbol"?t:t+""}function Ece(e,t){if(Qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $a={widthCache:{},cacheCount:0},Pce=2e3,jce={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},uP="recharts_measurement_span";function Ace(e){var t=Ax({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var ds=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ei.isSsr)return{width:0,height:0};var r=Ace(n),i=JSON.stringify({text:t,copyStyle:r});if($a.widthCache[i])return $a.widthCache[i];try{var o=document.getElementById(uP);o||(o=document.createElement("span"),o.setAttribute("id",uP),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Ax(Ax({},jce),r);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),l={width:s.width,height:s.height};return $a.widthCache[i]=l,++$a.cacheCount>Pce&&($a.cacheCount=0,$a.widthCache={}),l}catch{return{width:0,height:0}}},_ce=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ju(e){"@babel/helpers - typeof";return Ju=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},Ju(e)}function jp(e,t){return $ce(e)||Nce(e,t)||Tce(e,t)||Cce()}function Cce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
409
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tce(e,t){if(e){if(typeof e=="string")return cP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cP(e,t)}}function cP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function $ce(e){if(Array.isArray(e))return e}function Mce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rce(r.key),r)}}function Ice(e,t,n){return t&&fP(e.prototype,t),n&&fP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rce(e){var t=Dce(e,"string");return Ju(t)=="symbol"?t:t+""}function Dce(e,t){if(Ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Lce=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Fce=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,OI={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},zce=Object.keys(OI),Qa="NaN";function Bce(e,t){return e*OI[t]}var Wf=function(){function e(t,n){Mce(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Lce.test(n)&&(this.num=NaN,this.unit=""),zce.includes(n)&&(this.num=Bce(t,n),this.unit="px")}return Ice(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=Fce.exec(n))!==null&&r!==void 0?r:[],o=jp(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}])}();function EI(e){if(e.includes(Qa))return Qa;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=dP.exec(t))!==null&&n!==void 0?n:[],i=jp(r,4),o=i[1],a=i[2],s=i[3],l=Wf.parse(o??""),u=Wf.parse(s??""),f=a==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return Qa;t=t.replace(dP,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=pP.exec(t))!==null&&c!==void 0?c:[],p=jp(d,4),m=p[1],g=p[2],v=p[3],y=Wf.parse(m??""),x=Wf.parse(v??""),b=g==="+"?y.add(x):y.subtract(x);if(b.isNaN())return Qa;t=t.replace(pP,b.toString())}return t}var hP=/\(([^()]*)\)/;function Wce(e){for(var t=e;t.includes("(");){var n=hP.exec(t),r=jp(n,2),i=r[1];t=t.replace(hP,EI(i))}return t}function Uce(e){var t=e.replace(/\s+/g,"");return t=Wce(t),t=EI(t),t}function Hce(e){try{return Uce(e)}catch{return Qa}}function xy(e){var t=Hce(e.slice(5,-1));return t===Qa?"":t}var Vce=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Kce=["dx","dy","angle","className","breakAll"];function _x(){return _x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_x.apply(this,arguments)}function mP(e,t){if(e==null)return{};var n=qce(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qce(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gP(e,t){return Qce(e)||Xce(e,t)||Yce(e,t)||Gce()}function Gce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
410
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yce(e,t){if(e){if(typeof e=="string")return yP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yP(e,t)}}function yP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Qce(e){if(Array.isArray(e))return e}var PI=/[ \f\n\r\t\v\u2028\u2029]+/,jI=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];me(n)||(r?o=n.toString().split(""):o=n.toString().split(PI));var a=o.map(function(l){return{word:l,width:ds(l,i).width}}),s=r?0:ds(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},Jce=function(t,n,r,i,o){var a=t.maxLines,s=t.children,l=t.style,u=t.breakAll,f=X(a),c=s,d=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(D,L){var M=L.word,z=L.width,j=D[D.length-1];if(j&&(i==null||o||j.width+z+r<Number(i)))j.words.push(M),j.width+=z+r;else{var W={words:[M],width:z};D.push(W)}return D},[])},p=d(n),m=function(I){return I.reduce(function(D,L){return D.width>L.width?D:L})};if(!f)return p;for(var g="…",v=function(I){var D=c.slice(0,I),L=jI({breakAll:u,style:l,children:D+g}).wordsWithComputedWidth,M=d(L),z=M.length>a||m(M).width>Number(i);return[z,M]},y=0,x=c.length-1,b=0,O;y<=x&&b<=c.length-1;){var S=Math.floor((y+x)/2),w=S-1,E=v(w),P=gP(E,2),_=P[0],A=P[1],$=v(S),N=gP($,1),R=N[0];if(!_&&!R&&(y=S+1),_&&R&&(x=S-1),!_&&R){O=A;break}b++}return O||p},vP=function(t){var n=me(t)?[]:t.toString().split(PI);return[{words:n}]},Zce=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!Ei.isSsr){var l,u,f=jI({breakAll:a,children:i,style:o});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;l=c,u=d}else return vP(i);return Jce({breakAll:a,children:i,maxLines:s,style:o},l,u,n,r)}return vP(i)},xP="#808080",ca=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,m=t.verticalAnchor,g=m===void 0?"end":m,v=t.fill,y=v===void 0?xP:v,x=mP(t,Vce),b=k.useMemo(function(){return Zce({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:c,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,c,x.style,x.width]),O=x.dx,S=x.dy,w=x.angle,E=x.className,P=x.breakAll,_=mP(x,Kce);if(!St(r)||!St(o))return null;var A=r+(X(O)?O:0),$=o+(X(S)?S:0),N;switch(g){case"start":N=xy("calc(".concat(u,")"));break;case"middle":N=xy("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:N=xy("calc(".concat(b.length-1," * -").concat(s,")"));break}var R=[];if(c){var F=b[0].width,I=x.width;R.push("scale(".concat((X(I)?I/F:1)/F,")"))}return w&&R.push("rotate(".concat(w,", ").concat(A,", ").concat($,")")),R.length&&(_.transform=R.join(" ")),C.createElement("text",_x({},se(_,!0),{x:A,y:$,className:he("recharts-text",E),textAnchor:p,fill:y.includes("url")?xP:y}),b.map(function(D,L){var M=D.words.join(P?"":" ");return C.createElement("tspan",{x:A,dy:L===0?N:s,key:"".concat(M,"-").concat(L)},M)}))};function uo(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function efe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Gw(e){let t,n,r;e.length!==2?(t=uo,n=(s,l)=>uo(e(s),l),r=(s,l)=>e(s)-l):(t=e===uo||e===efe?e:tfe,n=e,r=e);function i(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;n(s[c],l)<0?u=c+1:f=c}while(u<f)}return u}function o(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;n(s[c],l)<=0?u=c+1:f=c}while(u<f)}return u}function a(s,l,u=0,f=s.length){const c=i(s,l,u,f-1);return c>u&&r(s[c-1],l)>-r(s[c],l)?c-1:c}return{left:i,center:a,right:o}}function tfe(){return 0}function AI(e){return e===null?NaN:+e}function*nfe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const rfe=Gw(uo),Vc=rfe.right;Gw(AI).center;class bP extends Map{constructor(t,n=afe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(wP(this,t))}has(t){return super.has(wP(this,t))}set(t,n){return super.set(ife(this,t),n)}delete(t){return super.delete(ofe(this,t))}}function wP({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ife({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function ofe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function afe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function sfe(e=uo){if(e===uo)return _I;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function _I(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const lfe=Math.sqrt(50),ufe=Math.sqrt(10),cfe=Math.sqrt(2);function Ap(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=lfe?10:o>=ufe?5:o>=cfe?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?Ap(e,t,n*2):[s,l,u]}function Cx(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?Ap(t,e,n):Ap(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)l[u]=(o-u)/-a;else for(let u=0;u<s;++u)l[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)l[u]=(i+u)/-a;else for(let u=0;u<s;++u)l[u]=(i+u)*a;return l}function Tx(e,t,n){return t=+t,e=+e,n=+n,Ap(e,t,n)[2]}function Nx(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Tx(t,e,n):Tx(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function SP(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function kP(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function CI(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?_I:sfe(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),p=Math.max(n,Math.floor(t-u*c/l+d)),m=Math.min(r,Math.floor(t+(l-u)*c/l+d));CI(e,t,p,m,i)}const o=e[t];let a=n,s=r;for(Vl(e,n,t),i(e[r],o)>0&&Vl(e,n,r);a<s;){for(Vl(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?Vl(e,n,s):(++s,Vl(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Vl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ffe(e,t,n){if(e=Float64Array.from(nfe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return kP(e);if(t>=1)return SP(e);var r,i=(r-1)*t,o=Math.floor(i),a=SP(CI(e,o).subarray(0,o+1)),s=kP(e.subarray(o+1));return a+(s-a)*(i-o)}}function dfe(e,t,n=AI){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function pfe(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function ir(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Mi(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const $x=Symbol("implicit");function Yw(){var e=new bP,t=[],n=[],r=$x;function i(o){let a=e.get(o);if(a===void 0){if(r!==$x)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new bP;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return Yw(t,n).unknown(r)},ir.apply(i,arguments),i}function Zu(){var e=Yw().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,u=0,f=.5;delete e.unknown;function c(){var d=t().length,p=i<r,m=p?i:r,g=p?r:i;o=(g-m)/Math.max(1,d-l+u*2),s&&(o=Math.floor(o)),m+=(g-m-o*(d-l))*f,a=o*(1-l),s&&(m=Math.round(m),a=Math.round(a));var v=pfe(d).map(function(y){return m+o*y});return n(p?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),c()):t()},e.range=function(d){return arguments.length?([r,i]=d,r=+r,i=+i,c()):[r,i]},e.rangeRound=function(d){return[r,i]=d,r=+r,i=+i,s=!0,c()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(d){return arguments.length?(s=!!d,c()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),c()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),c()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,c()):u},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),c()):f},e.copy=function(){return Zu(t(),[r,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},ir.apply(c(),arguments)}function TI(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return TI(t())},e}function gu(){return TI(Zu.apply(null,arguments).paddingInner(1))}function Xw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function NI(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kc(){}var ec=.7,_p=1/ec,ps="\\s*([+-]?\\d+)\\s*",tc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hfe=/^#([0-9a-f]{3,8})$/,mfe=new RegExp(`^rgb\\(${ps},${ps},${ps}\\)$`),gfe=new RegExp(`^rgb\\(${Ur},${Ur},${Ur}\\)$`),yfe=new RegExp(`^rgba\\(${ps},${ps},${ps},${tc}\\)$`),vfe=new RegExp(`^rgba\\(${Ur},${Ur},${Ur},${tc}\\)$`),xfe=new RegExp(`^hsl\\(${tc},${Ur},${Ur}\\)$`),bfe=new RegExp(`^hsla\\(${tc},${Ur},${Ur},${tc}\\)$`),OP={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};Xw(Kc,nc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:EP,formatHex:EP,formatHex8:wfe,formatHsl:Sfe,formatRgb:PP,toString:PP});function EP(){return this.rgb().formatHex()}function wfe(){return this.rgb().formatHex8()}function Sfe(){return $I(this).formatHsl()}function PP(){return this.rgb().formatRgb()}function nc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=hfe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?jP(t):n===3?new hn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Uf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Uf(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=mfe.exec(e))?new hn(t[1],t[2],t[3],1):(t=gfe.exec(e))?new hn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yfe.exec(e))?Uf(t[1],t[2],t[3],t[4]):(t=vfe.exec(e))?Uf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xfe.exec(e))?CP(t[1],t[2]/100,t[3]/100,1):(t=bfe.exec(e))?CP(t[1],t[2]/100,t[3]/100,t[4]):OP.hasOwnProperty(e)?jP(OP[e]):e==="transparent"?new hn(NaN,NaN,NaN,0):null}function jP(e){return new hn(e>>16&255,e>>8&255,e&255,1)}function Uf(e,t,n,r){return r<=0&&(e=t=n=NaN),new hn(e,t,n,r)}function kfe(e){return e instanceof Kc||(e=nc(e)),e?(e=e.rgb(),new hn(e.r,e.g,e.b,e.opacity)):new hn}function Mx(e,t,n,r){return arguments.length===1?kfe(e):new hn(e,t,n,r??1)}function hn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Xw(hn,Mx,NI(Kc,{brighter(e){return e=e==null?_p:Math.pow(_p,e),new hn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ec:Math.pow(ec,e),new hn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new hn(Jo(this.r),Jo(this.g),Jo(this.b),Cp(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:AP,formatHex:AP,formatHex8:Ofe,formatRgb:_P,toString:_P}));function AP(){return`#${qo(this.r)}${qo(this.g)}${qo(this.b)}`}function Ofe(){return`#${qo(this.r)}${qo(this.g)}${qo(this.b)}${qo((isNaN(this.opacity)?1:this.opacity)*255)}`}function _P(){const e=Cp(this.opacity);return`${e===1?"rgb(":"rgba("}${Jo(this.r)}, ${Jo(this.g)}, ${Jo(this.b)}${e===1?")":`, ${e})`}`}function Cp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qo(e){return e=Jo(e),(e<16?"0":"")+e.toString(16)}function CP(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new gr(e,t,n,r)}function $I(e){if(e instanceof gr)return new gr(e.h,e.s,e.l,e.opacity);if(e instanceof Kc||(e=nc(e)),!e)return new gr;if(e instanceof gr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new gr(a,s,l,e.opacity)}function Efe(e,t,n,r){return arguments.length===1?$I(e):new gr(e,t,n,r??1)}function gr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Xw(gr,Efe,NI(Kc,{brighter(e){return e=e==null?_p:Math.pow(_p,e),new gr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ec:Math.pow(ec,e),new gr(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 hn(by(e>=240?e-240:e+120,i,r),by(e,i,r),by(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new gr(TP(this.h),Hf(this.s),Hf(this.l),Cp(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=Cp(this.opacity);return`${e===1?"hsl(":"hsla("}${TP(this.h)}, ${Hf(this.s)*100}%, ${Hf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function TP(e){return e=(e||0)%360,e<0?e+360:e}function Hf(e){return Math.max(0,Math.min(1,e||0))}function by(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 Qw=e=>()=>e;function Pfe(e,t){return function(n){return e+n*t}}function jfe(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 Afe(e){return(e=+e)==1?MI:function(t,n){return n-t?jfe(t,n,e):Qw(isNaN(t)?n:t)}}function MI(e,t){var n=t-e;return n?Pfe(e,n):Qw(isNaN(e)?t:e)}const NP=function e(t){var n=Afe(t);function r(i,o){var a=n((i=Mx(i)).r,(o=Mx(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=MI(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function _fe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function Cfe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Tfe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=El(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Nfe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Tp(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function $fe(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=El(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Ix=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wy=new RegExp(Ix.source,"g");function Mfe(e){return function(){return e}}function Ife(e){return function(t){return e(t)+""}}function Rfe(e,t){var n=Ix.lastIndex=wy.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Ix.exec(e))&&(i=wy.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Tp(r,i)})),n=wy.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?Ife(l[0].x):Mfe(t):(t=l.length,function(u){for(var f=0,c;f<t;++f)s[(c=l[f]).i]=c.x(u);return s.join("")})}function El(e,t){var n=typeof t,r;return t==null||n==="boolean"?Qw(t):(n==="number"?Tp:n==="string"?(r=nc(t))?(t=r,NP):Rfe:t instanceof nc?NP:t instanceof Date?Nfe:Cfe(t)?_fe:Array.isArray(t)?Tfe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?$fe:Tp)(e,t)}function Jw(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Dfe(e,t){t===void 0&&(t=e,e=El);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function Lfe(e){return function(){return e}}function Np(e){return+e}var $P=[0,1];function tn(e){return e}function Rx(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Lfe(isNaN(t)?NaN:.5)}function Ffe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function zfe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Rx(i,r),o=n(a,o)):(r=Rx(r,i),o=n(o,a)),function(s){return o(r(s))}}function Bfe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Rx(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=Vc(e,s,1,r)-1;return o[l](i[l](s))}}function qc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function $m(){var e=$P,t=$P,n=El,r,i,o,a=tn,s,l,u;function f(){var d=Math.min(e.length,t.length);return a!==tn&&(a=Ffe(e[0],e[d-1])),s=d>2?Bfe:zfe,l=u=null,c}function c(d){return d==null||isNaN(d=+d)?o:(l||(l=s(e.map(r),t,n)))(r(a(d)))}return c.invert=function(d){return a(i((u||(u=s(t,e.map(r),Tp)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Np),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=Jw,f()},c.clamp=function(d){return arguments.length?(a=d?!0:tn,f()):a!==tn},c.interpolate=function(d){return arguments.length?(n=d,f()):n},c.unknown=function(d){return arguments.length?(o=d,c):o},function(d,p){return r=d,i=p,f()}}function Zw(){return $m()(tn,tn)}function Wfe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $p(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function $s(e){return e=$p(Math.abs(e)),e?e[1]:NaN}function Ufe(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Hfe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Vfe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rc(e){if(!(t=Vfe.exec(e)))throw new Error("invalid format: "+e);var t;return new e1({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]})}rc.prototype=e1.prototype;function e1(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+""}e1.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 Kfe(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Mp;function qfe(e,t){var n=$p(e,t);if(!n)return Mp=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(Mp=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+$p(e,Math.max(0,t+o-1))[0]}function MP(e,t){var n=$p(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 IP={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Wfe,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)=>MP(e*100,t),r:MP,s:qfe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function RP(e){return e}var DP=Array.prototype.map,LP=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Gfe(e){var t=e.grouping===void 0||e.thousands===void 0?RP:Ufe(DP.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+"",o=e.numerals===void 0?RP:Hfe(DP.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c,d){c=rc(c);var p=c.fill,m=c.align,g=c.sign,v=c.symbol,y=c.zero,x=c.width,b=c.comma,O=c.precision,S=c.trim,w=c.type;w==="n"?(b=!0,w="g"):IP[w]||(O===void 0&&(O=12),S=!0,w="g"),(y||p==="0"&&m==="=")&&(y=!0,p="0",m="=");var E=(d&&d.prefix!==void 0?d.prefix:"")+(v==="$"?n:v==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),P=(v==="$"?r:/[%p]/.test(w)?a:"")+(d&&d.suffix!==void 0?d.suffix:""),_=IP[w],A=/[defgprs%]/.test(w);O=O===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function $(N){var R=E,F=P,I,D,L;if(w==="c")F=_(N)+F,N="";else{N=+N;var M=N<0||1/N<0;if(N=isNaN(N)?l:_(Math.abs(N),O),S&&(N=Kfe(N)),M&&+N==0&&g!=="+"&&(M=!1),R=(M?g==="("?g:s:g==="-"||g==="("?"":g)+R,F=(w==="s"&&!isNaN(N)&&Mp!==void 0?LP[8+Mp/3]:"")+F+(M&&g==="("?")":""),A){for(I=-1,D=N.length;++I<D;)if(L=N.charCodeAt(I),48>L||L>57){F=(L===46?i+N.slice(I+1):N.slice(I))+F,N=N.slice(0,I);break}}}b&&!y&&(N=t(N,1/0));var z=R.length+N.length+F.length,j=z<x?new Array(x-z+1).join(p):"";switch(b&&y&&(N=t(j+N,j.length?x-F.length:1/0),j=""),m){case"<":N=R+N+F+j;break;case"=":N=R+j+N+F;break;case"^":N=j.slice(0,z=j.length>>1)+R+N+F+j.slice(z);break;default:N=j+R+N+F;break}return o(N)}return $.toString=function(){return c+""},$}function f(c,d){var p=Math.max(-8,Math.min(8,Math.floor($s(d)/3)))*3,m=Math.pow(10,-p),g=u((c=rc(c),c.type="f",c),{suffix:LP[8+p/3]});return function(v){return g(m*v)}}return{format:u,formatPrefix:f}}var Vf,t1,II;Yfe({thousands:",",grouping:[3],currency:["$",""]});function Yfe(e){return Vf=Gfe(e),t1=Vf.format,II=Vf.formatPrefix,Vf}function Xfe(e){return Math.max(0,-$s(Math.abs(e)))}function Qfe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor($s(t)/3)))*3-$s(Math.abs(e)))}function Jfe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,$s(t)-$s(e))+1}function RI(e,t,n,r){var i=Nx(e,t,n),o;switch(r=rc(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Qfe(i,a))&&(r.precision=o),II(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Jfe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Xfe(i))&&(r.precision=o-(r.type==="%")*2);break}}return t1(r)}function wo(e){var t=e.domain;return e.ticks=function(n){var r=t();return Cx(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return RI(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,u,f=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);f-- >0;){if(u=Tx(a,s,n),u===l)return r[i]=a,r[o]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Ip(){var e=Zw();return e.copy=function(){return qc(e,Ip())},ir.apply(e,arguments),wo(e)}function DI(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Np),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return DI(e).unknown(t)},e=arguments.length?Array.from(e,Np):[0,1],wo(n)}function LI(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function FP(e){return Math.log(e)}function zP(e){return Math.exp(e)}function Zfe(e){return-Math.log(-e)}function ede(e){return-Math.exp(-e)}function tde(e){return isFinite(e)?+("1e"+e):e<0?0:e}function nde(e){return e===10?tde:e===Math.E?Math.exp:t=>Math.pow(e,t)}function rde(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 BP(e){return(t,n)=>-e(-t,n)}function n1(e){const t=e(FP,zP),n=t.domain;let r=10,i,o;function a(){return i=rde(r),o=nde(r),n()[0]<0?(i=BP(i),o=BP(o),e(Zfe,ede)):e(FP,zP),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],f=l[l.length-1];const c=f<u;c&&([u,f]=[f,u]);let d=i(u),p=i(f),m,g;const v=s==null?10:+s;let y=[];if(!(r%1)&&p-d<v){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(m=1;m<r;++m)if(g=d<0?m/o(-d):m*o(d),!(g<u)){if(g>f)break;y.push(g)}}else for(;d<=p;++d)for(m=r-1;m>=1;--m)if(g=d>0?m/o(-d):m*o(d),!(g<u)){if(g>f)break;y.push(g)}y.length*2<v&&(y=Cx(u,f,v))}else y=Cx(d,p,Math.min(p-d,v)).map(o);return c?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=rc(l)).precision==null&&(l.trim=!0),l=t1(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return f=>{let c=f/o(Math.round(i(f)));return c*r<r-.5&&(c*=r),c<=u?l(f):""}},t.nice=()=>n(LI(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function FI(){const e=n1($m()).domain([1,10]);return e.copy=()=>qc(e,FI()).base(e.base()),ir.apply(e,arguments),e}function WP(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function UP(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function r1(e){var t=1,n=e(WP(t),UP(t));return n.constant=function(r){return arguments.length?e(WP(t=+r),UP(t)):t},wo(n)}function zI(){var e=r1($m());return e.copy=function(){return qc(e,zI()).constant(e.constant())},ir.apply(e,arguments)}function HP(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ide(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ode(e){return e<0?-e*e:e*e}function i1(e){var t=e(tn,tn),n=1;function r(){return n===1?e(tn,tn):n===.5?e(ide,ode):e(HP(n),HP(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},wo(t)}function o1(){var e=i1($m());return e.copy=function(){return qc(e,o1()).exponent(e.exponent())},ir.apply(e,arguments),e}function ade(){return o1.apply(null,arguments).exponent(.5)}function VP(e){return Math.sign(e)*e*e}function sde(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function BI(){var e=Zw(),t=[0,1],n=!1,r;function i(o){var a=sde(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(VP(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Np)).map(VP)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return BI(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},ir.apply(i,arguments),wo(i)}function WI(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=dfe(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Vc(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(uo),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return WI().domain(e).range(t).unknown(r)},ir.apply(o,arguments)}function UI(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[Vc(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return UI().domain([e,t]).range(i).unknown(o)},ir.apply(wo(a),arguments)}function HI(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Vc(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return HI().domain(e).range(t).unknown(n)},ir.apply(i,arguments)}const Sy=new Date,ky=new Date;function kt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(u<o&&o<a);return l},i.filter=o=>kt(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(Sy.setTime(+o),ky.setTime(+a),e(Sy),e(ky),Math.floor(n(Sy,ky))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Rp=kt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Rp.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?kt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Rp);Rp.range;const oi=1e3,Yn=oi*60,ai=Yn*60,Pi=ai*24,a1=Pi*7,KP=Pi*30,Oy=Pi*365,Go=kt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*oi)},(e,t)=>(t-e)/oi,e=>e.getUTCSeconds());Go.range;const s1=kt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oi)},(e,t)=>{e.setTime(+e+t*Yn)},(e,t)=>(t-e)/Yn,e=>e.getMinutes());s1.range;const l1=kt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Yn)},(e,t)=>(t-e)/Yn,e=>e.getUTCMinutes());l1.range;const u1=kt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oi-e.getMinutes()*Yn)},(e,t)=>{e.setTime(+e+t*ai)},(e,t)=>(t-e)/ai,e=>e.getHours());u1.range;const c1=kt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ai)},(e,t)=>(t-e)/ai,e=>e.getUTCHours());c1.range;const Gc=kt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yn)/Pi,e=>e.getDate()-1);Gc.range;const Mm=kt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Pi,e=>e.getUTCDate()-1);Mm.range;const VI=kt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Pi,e=>Math.floor(e/Pi));VI.range;function wa(e){return kt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Yn)/a1)}const Im=wa(0),Dp=wa(1),lde=wa(2),ude=wa(3),Ms=wa(4),cde=wa(5),fde=wa(6);Im.range;Dp.range;lde.range;ude.range;Ms.range;cde.range;fde.range;function Sa(e){return kt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/a1)}const Rm=Sa(0),Lp=Sa(1),dde=Sa(2),pde=Sa(3),Is=Sa(4),hde=Sa(5),mde=Sa(6);Rm.range;Lp.range;dde.range;pde.range;Is.range;hde.range;mde.range;const f1=kt(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());f1.range;const d1=kt(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());d1.range;const ji=kt(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());ji.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:kt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ji.range;const Ai=kt(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());Ai.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:kt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Ai.range;function KI(e,t,n,r,i,o){const a=[[Go,1,oi],[Go,5,5*oi],[Go,15,15*oi],[Go,30,30*oi],[o,1,Yn],[o,5,5*Yn],[o,15,15*Yn],[o,30,30*Yn],[i,1,ai],[i,3,3*ai],[i,6,6*ai],[i,12,12*ai],[r,1,Pi],[r,2,2*Pi],[n,1,a1],[t,1,KP],[t,3,3*KP],[e,1,Oy]];function s(u,f,c){const d=f<u;d&&([u,f]=[f,u]);const p=c&&typeof c.range=="function"?c:l(u,f,c),m=p?p.range(u,+f+1):[];return d?m.reverse():m}function l(u,f,c){const d=Math.abs(f-u)/c,p=Gw(([,,v])=>v).right(a,d);if(p===a.length)return e.every(Nx(u/Oy,f/Oy,c));if(p===0)return Rp.every(Math.max(Nx(u,f,c),1));const[m,g]=a[d/a[p-1][2]<a[p][2]/d?p-1:p];return m.every(g)}return[s,l]}const[gde,yde]=KI(Ai,d1,Rm,VI,c1,l1),[vde,xde]=KI(ji,f1,Im,Gc,u1,s1);function Ey(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Py(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Kl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function bde(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=ql(i),f=Gl(i),c=ql(o),d=Gl(o),p=ql(a),m=Gl(a),g=ql(s),v=Gl(s),y=ql(l),x=Gl(l),b={a:L,A:M,b:z,B:j,c:null,d:JP,e:JP,f:Ude,g:Zde,G:tpe,H:zde,I:Bde,j:Wde,L:qI,m:Hde,M:Vde,p:W,q:U,Q:tj,s:nj,S:Kde,u:qde,U:Gde,V:Yde,w:Xde,W:Qde,x:null,X:null,y:Jde,Y:epe,Z:npe,"%":ej},O={a:T,A:Y,b:J,B:Z,c:null,d:ZP,e:ZP,f:ape,g:gpe,G:vpe,H:rpe,I:ipe,j:ope,L:YI,m:spe,M:lpe,p:Ae,q:ae,Q:tj,s:nj,S:upe,u:cpe,U:fpe,V:dpe,w:ppe,W:hpe,x:null,X:null,y:mpe,Y:ype,Z:xpe,"%":ej},S={a:A,A:$,b:N,B:R,c:F,d:XP,e:XP,f:Rde,g:YP,G:GP,H:QP,I:QP,j:Nde,L:Ide,m:Tde,M:$de,p:_,q:Cde,Q:Lde,s:Fde,S:Mde,u:Ede,U:Pde,V:jde,w:Ode,W:Ade,x:I,X:D,y:YP,Y:GP,Z:_de,"%":Dde};b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),O.x=w(n,O),O.X=w(r,O),O.c=w(t,O);function w(K,ie){return function(oe){var V=[],ke=-1,de=0,ze=K.length,De,Ge,Yt;for(oe instanceof Date||(oe=new Date(+oe));++ke<ze;)K.charCodeAt(ke)===37&&(V.push(K.slice(de,ke)),(Ge=qP[De=K.charAt(++ke)])!=null?De=K.charAt(++ke):Ge=De==="e"?" ":"0",(Yt=ie[De])&&(De=Yt(oe,Ge)),V.push(De),de=ke+1);return V.push(K.slice(de,ke)),V.join("")}}function E(K,ie){return function(oe){var V=Kl(1900,void 0,1),ke=P(V,K,oe+="",0),de,ze;if(ke!=oe.length)return null;if("Q"in V)return new Date(V.Q);if("s"in V)return new Date(V.s*1e3+("L"in V?V.L:0));if(ie&&!("Z"in V)&&(V.Z=0),"p"in V&&(V.H=V.H%12+V.p*12),V.m===void 0&&(V.m="q"in V?V.q:0),"V"in V){if(V.V<1||V.V>53)return null;"w"in V||(V.w=1),"Z"in V?(de=Py(Kl(V.y,0,1)),ze=de.getUTCDay(),de=ze>4||ze===0?Lp.ceil(de):Lp(de),de=Mm.offset(de,(V.V-1)*7),V.y=de.getUTCFullYear(),V.m=de.getUTCMonth(),V.d=de.getUTCDate()+(V.w+6)%7):(de=Ey(Kl(V.y,0,1)),ze=de.getDay(),de=ze>4||ze===0?Dp.ceil(de):Dp(de),de=Gc.offset(de,(V.V-1)*7),V.y=de.getFullYear(),V.m=de.getMonth(),V.d=de.getDate()+(V.w+6)%7)}else("W"in V||"U"in V)&&("w"in V||(V.w="u"in V?V.u%7:"W"in V?1:0),ze="Z"in V?Py(Kl(V.y,0,1)).getUTCDay():Ey(Kl(V.y,0,1)).getDay(),V.m=0,V.d="W"in V?(V.w+6)%7+V.W*7-(ze+5)%7:V.w+V.U*7-(ze+6)%7);return"Z"in V?(V.H+=V.Z/100|0,V.M+=V.Z%100,Py(V)):Ey(V)}}function P(K,ie,oe,V){for(var ke=0,de=ie.length,ze=oe.length,De,Ge;ke<de;){if(V>=ze)return-1;if(De=ie.charCodeAt(ke++),De===37){if(De=ie.charAt(ke++),Ge=S[De in qP?ie.charAt(ke++):De],!Ge||(V=Ge(K,oe,V))<0)return-1}else if(De!=oe.charCodeAt(V++))return-1}return V}function _(K,ie,oe){var V=u.exec(ie.slice(oe));return V?(K.p=f.get(V[0].toLowerCase()),oe+V[0].length):-1}function A(K,ie,oe){var V=p.exec(ie.slice(oe));return V?(K.w=m.get(V[0].toLowerCase()),oe+V[0].length):-1}function $(K,ie,oe){var V=c.exec(ie.slice(oe));return V?(K.w=d.get(V[0].toLowerCase()),oe+V[0].length):-1}function N(K,ie,oe){var V=y.exec(ie.slice(oe));return V?(K.m=x.get(V[0].toLowerCase()),oe+V[0].length):-1}function R(K,ie,oe){var V=g.exec(ie.slice(oe));return V?(K.m=v.get(V[0].toLowerCase()),oe+V[0].length):-1}function F(K,ie,oe){return P(K,t,ie,oe)}function I(K,ie,oe){return P(K,n,ie,oe)}function D(K,ie,oe){return P(K,r,ie,oe)}function L(K){return a[K.getDay()]}function M(K){return o[K.getDay()]}function z(K){return l[K.getMonth()]}function j(K){return s[K.getMonth()]}function W(K){return i[+(K.getHours()>=12)]}function U(K){return 1+~~(K.getMonth()/3)}function T(K){return a[K.getUTCDay()]}function Y(K){return o[K.getUTCDay()]}function J(K){return l[K.getUTCMonth()]}function Z(K){return s[K.getUTCMonth()]}function Ae(K){return i[+(K.getUTCHours()>=12)]}function ae(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var ie=w(K+="",b);return ie.toString=function(){return K},ie},parse:function(K){var ie=E(K+="",!1);return ie.toString=function(){return K},ie},utcFormat:function(K){var ie=w(K+="",O);return ie.toString=function(){return K},ie},utcParse:function(K){var ie=E(K+="",!0);return ie.toString=function(){return K},ie}}}var qP={"-":"",_:" ",0:"0"},Nt=/^\s*\d+/,wde=/^%/,Sde=/[\\^$*+?|[\]().{}]/g;function Te(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function kde(e){return e.replace(Sde,"\\$&")}function ql(e){return new RegExp("^(?:"+e.map(kde).join("|")+")","i")}function Gl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Ode(e,t,n){var r=Nt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ede(e,t,n){var r=Nt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Pde(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function jde(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ade(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function GP(e,t,n){var r=Nt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function YP(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _de(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 Cde(e,t,n){var r=Nt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Tde(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function XP(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Nde(e,t,n){var r=Nt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function QP(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function $de(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Mde(e,t,n){var r=Nt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ide(e,t,n){var r=Nt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Rde(e,t,n){var r=Nt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Dde(e,t,n){var r=wde.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Lde(e,t,n){var r=Nt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Fde(e,t,n){var r=Nt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function JP(e,t){return Te(e.getDate(),t,2)}function zde(e,t){return Te(e.getHours(),t,2)}function Bde(e,t){return Te(e.getHours()%12||12,t,2)}function Wde(e,t){return Te(1+Gc.count(ji(e),e),t,3)}function qI(e,t){return Te(e.getMilliseconds(),t,3)}function Ude(e,t){return qI(e,t)+"000"}function Hde(e,t){return Te(e.getMonth()+1,t,2)}function Vde(e,t){return Te(e.getMinutes(),t,2)}function Kde(e,t){return Te(e.getSeconds(),t,2)}function qde(e){var t=e.getDay();return t===0?7:t}function Gde(e,t){return Te(Im.count(ji(e)-1,e),t,2)}function GI(e){var t=e.getDay();return t>=4||t===0?Ms(e):Ms.ceil(e)}function Yde(e,t){return e=GI(e),Te(Ms.count(ji(e),e)+(ji(e).getDay()===4),t,2)}function Xde(e){return e.getDay()}function Qde(e,t){return Te(Dp.count(ji(e)-1,e),t,2)}function Jde(e,t){return Te(e.getFullYear()%100,t,2)}function Zde(e,t){return e=GI(e),Te(e.getFullYear()%100,t,2)}function epe(e,t){return Te(e.getFullYear()%1e4,t,4)}function tpe(e,t){var n=e.getDay();return e=n>=4||n===0?Ms(e):Ms.ceil(e),Te(e.getFullYear()%1e4,t,4)}function npe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Te(t/60|0,"0",2)+Te(t%60,"0",2)}function ZP(e,t){return Te(e.getUTCDate(),t,2)}function rpe(e,t){return Te(e.getUTCHours(),t,2)}function ipe(e,t){return Te(e.getUTCHours()%12||12,t,2)}function ope(e,t){return Te(1+Mm.count(Ai(e),e),t,3)}function YI(e,t){return Te(e.getUTCMilliseconds(),t,3)}function ape(e,t){return YI(e,t)+"000"}function spe(e,t){return Te(e.getUTCMonth()+1,t,2)}function lpe(e,t){return Te(e.getUTCMinutes(),t,2)}function upe(e,t){return Te(e.getUTCSeconds(),t,2)}function cpe(e){var t=e.getUTCDay();return t===0?7:t}function fpe(e,t){return Te(Rm.count(Ai(e)-1,e),t,2)}function XI(e){var t=e.getUTCDay();return t>=4||t===0?Is(e):Is.ceil(e)}function dpe(e,t){return e=XI(e),Te(Is.count(Ai(e),e)+(Ai(e).getUTCDay()===4),t,2)}function ppe(e){return e.getUTCDay()}function hpe(e,t){return Te(Lp.count(Ai(e)-1,e),t,2)}function mpe(e,t){return Te(e.getUTCFullYear()%100,t,2)}function gpe(e,t){return e=XI(e),Te(e.getUTCFullYear()%100,t,2)}function ype(e,t){return Te(e.getUTCFullYear()%1e4,t,4)}function vpe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Is(e):Is.ceil(e),Te(e.getUTCFullYear()%1e4,t,4)}function xpe(){return"+0000"}function ej(){return"%"}function tj(e){return+e}function nj(e){return Math.floor(+e/1e3)}var Ma,QI,JI;bpe({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 bpe(e){return Ma=bde(e),QI=Ma.format,Ma.parse,JI=Ma.utcFormat,Ma.utcParse,Ma}function wpe(e){return new Date(e)}function Spe(e){return e instanceof Date?+e:+new Date(+e)}function p1(e,t,n,r,i,o,a,s,l,u){var f=Zw(),c=f.invert,d=f.domain,p=u(".%L"),m=u(":%S"),g=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),x=u("%b %d"),b=u("%B"),O=u("%Y");function S(w){return(l(w)<w?p:s(w)<w?m:a(w)<w?g:o(w)<w?v:r(w)<w?i(w)<w?y:x:n(w)<w?b:O)(w)}return f.invert=function(w){return new Date(c(w))},f.domain=function(w){return arguments.length?d(Array.from(w,Spe)):d().map(wpe)},f.ticks=function(w){var E=d();return e(E[0],E[E.length-1],w??10)},f.tickFormat=function(w,E){return E==null?S:u(E)},f.nice=function(w){var E=d();return(!w||typeof w.range!="function")&&(w=t(E[0],E[E.length-1],w??10)),w?d(LI(E,w)):f},f.copy=function(){return qc(f,p1(e,t,n,r,i,o,a,s,l,u))},f}function kpe(){return ir.apply(p1(vde,xde,ji,f1,Im,Gc,u1,s1,Go,QI).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ope(){return ir.apply(p1(gde,yde,Ai,d1,Rm,Mm,c1,l1,Go,JI).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Dm(){var e=0,t=1,n,r,i,o,a=tn,s=!1,l;function u(c){return c==null||isNaN(c=+c)?l:a(i===0?.5:(c=(o(c)-n)*i,s?Math.max(0,Math.min(1,c)):c))}u.domain=function(c){return arguments.length?([e,t]=c,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(c){return arguments.length?(s=!!c,u):s},u.interpolator=function(c){return arguments.length?(a=c,u):a};function f(c){return function(d){var p,m;return arguments.length?([p,m]=d,a=c(p,m),u):[a(0),a(1)]}}return u.range=f(El),u.rangeRound=f(Jw),u.unknown=function(c){return arguments.length?(l=c,u):l},function(c){return o=c,n=c(e),r=c(t),i=n===r?0:1/(r-n),u}}function So(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ZI(){var e=wo(Dm()(tn));return e.copy=function(){return So(e,ZI())},Mi.apply(e,arguments)}function eR(){var e=n1(Dm()).domain([1,10]);return e.copy=function(){return So(e,eR()).base(e.base())},Mi.apply(e,arguments)}function tR(){var e=r1(Dm());return e.copy=function(){return So(e,tR()).constant(e.constant())},Mi.apply(e,arguments)}function h1(){var e=i1(Dm());return e.copy=function(){return So(e,h1()).exponent(e.exponent())},Mi.apply(e,arguments)}function Epe(){return h1.apply(null,arguments).exponent(.5)}function nR(){var e=[],t=tn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Vc(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(uo),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>ffe(e,o/r))},n.copy=function(){return nR(t).domain(e)},Mi.apply(n,arguments)}function Lm(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,u=tn,f,c=!1,d;function p(g){return isNaN(g=+g)?d:(g=.5+((g=+f(g))-o)*(r*g<r*o?s:l),u(c?Math.max(0,Math.min(1,g)):g))}p.domain=function(g){return arguments.length?([e,t,n]=g,i=f(e=+e),o=f(t=+t),a=f(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,p):[e,t,n]},p.clamp=function(g){return arguments.length?(c=!!g,p):c},p.interpolator=function(g){return arguments.length?(u=g,p):u};function m(g){return function(v){var y,x,b;return arguments.length?([y,x,b]=v,u=Dfe(g,[y,x,b]),p):[u(0),u(.5),u(1)]}}return p.range=m(El),p.rangeRound=m(Jw),p.unknown=function(g){return arguments.length?(d=g,p):d},function(g){return f=g,i=g(e),o=g(t),a=g(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,p}}function rR(){var e=wo(Lm()(tn));return e.copy=function(){return So(e,rR())},Mi.apply(e,arguments)}function iR(){var e=n1(Lm()).domain([.1,1,10]);return e.copy=function(){return So(e,iR()).base(e.base())},Mi.apply(e,arguments)}function oR(){var e=r1(Lm());return e.copy=function(){return So(e,oR()).constant(e.constant())},Mi.apply(e,arguments)}function m1(){var e=i1(Lm());return e.copy=function(){return So(e,m1()).exponent(e.exponent())},Mi.apply(e,arguments)}function Ppe(){return m1.apply(null,arguments).exponent(.5)}const rj=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Zu,scaleDiverging:rR,scaleDivergingLog:iR,scaleDivergingPow:m1,scaleDivergingSqrt:Ppe,scaleDivergingSymlog:oR,scaleIdentity:DI,scaleImplicit:$x,scaleLinear:Ip,scaleLog:FI,scaleOrdinal:Yw,scalePoint:gu,scalePow:o1,scaleQuantile:WI,scaleQuantize:UI,scaleRadial:BI,scaleSequential:ZI,scaleSequentialLog:eR,scaleSequentialPow:h1,scaleSequentialQuantile:nR,scaleSequentialSqrt:Epe,scaleSequentialSymlog:tR,scaleSqrt:ade,scaleSymlog:zI,scaleThreshold:HI,scaleTime:kpe,scaleUtc:Ope,tickFormat:RI},Symbol.toStringTag,{value:"Module"}));var jpe=hl;function Ape(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(a!=null&&(s===void 0?a===a&&!jpe(a):n(a,s)))var s=a,l=o}return l}var Fm=Ape;function _pe(e,t){return e>t}var aR=_pe,Cpe=Fm,Tpe=aR,Npe=kl;function $pe(e){return e&&e.length?Cpe(e,Npe,Tpe):void 0}var Mpe=$pe;const zm=Ce(Mpe);function Ipe(e,t){return e<t}var sR=Ipe,Rpe=Fm,Dpe=sR,Lpe=kl;function Fpe(e){return e&&e.length?Rpe(e,Lpe,Dpe):void 0}var zpe=Fpe;const Bm=Ce(zpe);var Bpe=cm,Wpe=Xr,Upe=hI,Hpe=an;function Vpe(e,t){var n=Hpe(e)?Bpe:Upe;return n(e,Wpe(t))}var Kpe=Vpe,qpe=Hw,Gpe=Kpe;function Ype(e,t){return qpe(Gpe(e,t),1)}var Xpe=Ype;const Qpe=Ce(Xpe);var Jpe=Uw;function Zpe(e,t){return Jpe(e,t)}var ehe=Zpe;const Yc=Ce(ehe);var Pl=1e9,the={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},y1,rt=!0,er="[DecimalError] ",Zo=er+"Invalid argument: ",g1=er+"Exponent out of range: ",jl=Math.floor,Fo=Math.pow,nhe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,_n,Et=1e7,Qe=7,lR=9007199254740991,Fp=jl(lR/Qe),te={};te.absoluteValue=te.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};te.comparedTo=te.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};te.decimalPlaces=te.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Qe;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};te.dividedBy=te.div=function(e){return fi(this,new this.constructor(e))};te.dividedToIntegerBy=te.idiv=function(e){var t=this,n=t.constructor;return Le(fi(t,new n(e),0,1),n.precision)};te.equals=te.eq=function(e){return!this.cmp(e)};te.exponent=function(){return gt(this)};te.greaterThan=te.gt=function(e){return this.cmp(e)>0};te.greaterThanOrEqualTo=te.gte=function(e){return this.cmp(e)>=0};te.isInteger=te.isint=function(){return this.e>this.d.length-2};te.isNegative=te.isneg=function(){return this.s<0};te.isPositive=te.ispos=function(){return this.s>0};te.isZero=function(){return this.s===0};te.lessThan=te.lt=function(e){return this.cmp(e)<0};te.lessThanOrEqualTo=te.lte=function(e){return this.cmp(e)<1};te.logarithm=te.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(_n))throw Error(er+"NaN");if(n.s<1)throw Error(er+(n.s?"NaN":"-Infinity"));return n.eq(_n)?new r(0):(rt=!1,t=fi(ic(n,o),ic(e,o),o),rt=!0,Le(t,i))};te.minus=te.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?fR(t,e):uR(t,(e.s=-e.s,e))};te.modulo=te.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(er+"NaN");return n.s?(rt=!1,t=fi(n,e,0,1).times(e),rt=!0,n.minus(t)):Le(new r(n),i)};te.naturalExponential=te.exp=function(){return cR(this)};te.naturalLogarithm=te.ln=function(){return ic(this)};te.negated=te.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};te.plus=te.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?uR(t,e):fR(t,(e.s=-e.s,e))};te.precision=te.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Zo+e);if(t=gt(i)+1,r=i.d.length-1,n=r*Qe+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};te.squareRoot=te.sqrt=function(){var e,t,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(er+"NaN")}for(e=gt(s),rt=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Lr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=jl((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),r=new l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(fi(s,o,a+2)).times(.5),Lr(o.d).slice(0,a)===(t=Lr(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Le(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return rt=!0,Le(r,n)};te.times=te.mul=function(e){var t,n,r,i,o,a,s,l,u,f=this,c=f.constructor,d=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,n=f.e+e.e,l=d.length,u=p.length,l<u&&(o=d,d=p,p=o,a=l,l=u,u=a),o=[],a=l+u,r=a;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=l+r;i>r;)s=o[i]+p[r]*d[i-r-1]+t,o[i--]=s%Et|0,t=s/Et|0;o[i]=(o[i]+t)%Et|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,rt?Le(e,c.precision):e};te.toDecimalPlaces=te.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Kr(e,0,Pl),t===void 0?t=r.rounding:Kr(t,0,8),Le(n,e+gt(n)+1,t))};te.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=fa(r,!0):(Kr(e,0,Pl),t===void 0?t=i.rounding:Kr(t,0,8),r=Le(new i(r),e+1,t),n=fa(r,!0,e+1)),n};te.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?fa(i):(Kr(e,0,Pl),t===void 0?t=o.rounding:Kr(t,0,8),r=Le(new o(i),e+gt(i)+1,t),n=fa(r.abs(),!1,e+gt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};te.toInteger=te.toint=function(){var e=this,t=e.constructor;return Le(new t(e),gt(e)+1,t.rounding)};te.toNumber=function(){return+this};te.toPower=te.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(_n);if(s=new l(s),!s.s){if(e.s<1)throw Error(er+"Infinity");return s}if(s.eq(_n))return s;if(r=l.precision,e.eq(_n))return Le(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=f<0?-f:f)<=lR){for(i=new l(_n),t=Math.ceil(r/Qe+4),rt=!1;n%2&&(i=i.times(s),oj(i.d,t)),n=jl(n/2),n!==0;)s=s.times(s),oj(s.d,t);return rt=!0,e.s<0?new l(_n).div(i):Le(i,r)}}else if(o<0)throw Error(er+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,rt=!1,i=e.times(ic(s,r+u)),rt=!0,i=cR(i),i.s=o,i};te.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=gt(i),r=fa(i,n<=o.toExpNeg||n>=o.toExpPos)):(Kr(e,1,Pl),t===void 0?t=o.rounding:Kr(t,0,8),i=Le(new o(i),e,t),n=gt(i),r=fa(i,e<=n||n<=o.toExpNeg,e)),r};te.toSignificantDigits=te.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Kr(e,1,Pl),t===void 0?t=r.rounding:Kr(t,0,8)),Le(new r(n),e,t)};te.toString=te.valueOf=te.val=te.toJSON=te[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=gt(e),n=e.constructor;return fa(e,t<=n.toExpNeg||t>=n.toExpPos)};function uR(e,t){var n,r,i,o,a,s,l,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),rt?Le(t,c):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(r=l,o=-o,s=u.length):(r=u,i=a,s=l.length),a=Math.ceil(c/Qe),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=l.length,o=u.length,s-o<0&&(o=s,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/Et|0,l[o]%=Et;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,rt?Le(t,c):t}function Kr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Zo+e)}function Lr(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=Qe-r.length,n&&(o+=qi(n)),o+=r;a=e[t],r=a+"",n=Qe-r.length,n&&(o+=qi(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var fi=function(){function e(r,i){var o,a=0,s=r.length;for(r=r.slice();s--;)o=r[s]*i+a,r[s]=o%Et|0,a=o/Et|0;return a&&r.unshift(a),r}function t(r,i,o,a){var s,l;if(o!=a)l=o>a?1:-1;else for(s=l=0;s<o;s++)if(r[s]!=i[s]){l=r[s]>i[s]?1:-1;break}return l}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*Et+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var s,l,u,f,c,d,p,m,g,v,y,x,b,O,S,w,E,P,_=r.constructor,A=r.s==i.s?1:-1,$=r.d,N=i.d;if(!r.s)return new _(r);if(!i.s)throw Error(er+"Division by zero");for(l=r.e-i.e,E=N.length,S=$.length,p=new _(A),m=p.d=[],u=0;N[u]==($[u]||0);)++u;if(N[u]>($[u]||0)&&--l,o==null?x=o=_.precision:a?x=o+(gt(r)-gt(i))+1:x=o,x<0)return new _(0);if(x=x/Qe+2|0,u=0,E==1)for(f=0,N=N[0],x++;(u<S||f)&&x--;u++)b=f*Et+($[u]||0),m[u]=b/N|0,f=b%N|0;else{for(f=Et/(N[0]+1)|0,f>1&&(N=e(N,f),$=e($,f),E=N.length,S=$.length),O=E,g=$.slice(0,E),v=g.length;v<E;)g[v++]=0;P=N.slice(),P.unshift(0),w=N[0],N[1]>=Et/2&&++w;do f=0,s=t(N,g,E,v),s<0?(y=g[0],E!=v&&(y=y*Et+(g[1]||0)),f=y/w|0,f>1?(f>=Et&&(f=Et-1),c=e(N,f),d=c.length,v=g.length,s=t(c,g,d,v),s==1&&(f--,n(c,E<d?P:N,d))):(f==0&&(s=f=1),c=N.slice()),d=c.length,d<v&&c.unshift(0),n(g,c,v),s==-1&&(v=g.length,s=t(N,g,E,v),s<1&&(f++,n(g,E<v?P:N,v))),v=g.length):s===0&&(f++,g=[0]),m[u++]=f,s&&g[0]?g[v++]=$[O]||0:(g=[$[O]],v=1);while((O++<S||g[0]!==void 0)&&x--)}return m[0]||m.shift(),p.e=l,Le(p,a?o+gt(p)+1:o)}}();function cR(e,t){var n,r,i,o,a,s,l=0,u=0,f=e.constructor,c=f.precision;if(gt(e)>16)throw Error(g1+gt(e));if(!e.s)return new f(_n);for(rt=!1,s=c,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(Fo(2,u))/Math.LN10*2+5|0,s+=r,n=i=o=new f(_n),f.precision=s;;){if(i=Le(i.times(e),s),n=n.times(++l),a=o.plus(fi(i,n,s)),Lr(a.d).slice(0,s)===Lr(o.d).slice(0,s)){for(;u--;)o=Le(o.times(o),s);return f.precision=c,t==null?(rt=!0,Le(o,c)):o}o=a}}function gt(e){for(var t=e.e*Qe,n=e.d[0];n>=10;n/=10)t++;return t}function jy(e,t,n){if(t>e.LN10.sd())throw rt=!0,n&&(e.precision=n),Error(er+"LN10 precision limit exceeded");return Le(new e(e.LN10),t)}function qi(e){for(var t="";e--;)t+="0";return t}function ic(e,t){var n,r,i,o,a,s,l,u,f,c=1,d=10,p=e,m=p.d,g=p.constructor,v=g.precision;if(p.s<1)throw Error(er+(p.s?"NaN":"-Infinity"));if(p.eq(_n))return new g(0);if(t==null?(rt=!1,u=v):u=t,p.eq(10))return t==null&&(rt=!0),jy(g,u);if(u+=d,g.precision=u,n=Lr(m),r=n.charAt(0),o=gt(p),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Lr(p.d),r=n.charAt(0),c++;o=gt(p),r>1?(p=new g("0."+n),o++):p=new g(r+"."+n.slice(1))}else return l=jy(g,u+2,v).times(o+""),p=ic(new g(r+"."+n.slice(1)),u-d).plus(l),g.precision=v,t==null?(rt=!0,Le(p,v)):p;for(s=a=p=fi(p.minus(_n),p.plus(_n),u),f=Le(p.times(p),u),i=3;;){if(a=Le(a.times(f),u),l=s.plus(fi(a,new g(i),u)),Lr(l.d).slice(0,u)===Lr(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(jy(g,u+2,v).times(o+""))),s=fi(s,new g(c),u),g.precision=v,t==null?(rt=!0,Le(s,v)):s;s=l,i+=2}}function ij(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=jl(n/Qe),e.d=[],r=(n+1)%Qe,n<0&&(r+=Qe),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Qe;r<i;)e.d.push(+t.slice(r,r+=Qe));t=t.slice(r),r=Qe-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),rt&&(e.e>Fp||e.e<-Fp))throw Error(g1+n)}else e.s=0,e.e=0,e.d=[0];return e}function Le(e,t,n){var r,i,o,a,s,l,u,f,c=e.d;for(a=1,o=c[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Qe,i=t,u=c[f=0];else{if(f=Math.ceil((r+1)/Qe),o=c.length,f>=o)return e;for(u=o=c[f],a=1;o>=10;o/=10)a++;r%=Qe,i=r-Qe+a}if(n!==void 0&&(o=Fo(10,a-i-1),s=u/o%10|0,l=t<0||c[f+1]!==void 0||u%o,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?u/Fo(10,a-i):0:c[f-1])%10&1||n==(e.s<0?8:7))),t<1||!c[0])return l?(o=gt(e),c.length=1,t=t-o-1,c[0]=Fo(10,(Qe-t%Qe)%Qe),e.e=jl(-t/Qe)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(r==0?(c.length=f,o=1,f--):(c.length=f+1,o=Fo(10,Qe-r),c[f]=i>0?(u/Fo(10,a-i)%Fo(10,i)|0)*o:0),l)for(;;)if(f==0){(c[0]+=o)==Et&&(c[0]=1,++e.e);break}else{if(c[f]+=o,c[f]!=Et)break;c[f--]=0,o=1}for(r=c.length;c[--r]===0;)c.pop();if(rt&&(e.e>Fp||e.e<-Fp))throw Error(g1+gt(e));return e}function fR(e,t){var n,r,i,o,a,s,l,u,f,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),rt?Le(t,p):t;if(l=e.d,c=t.d,r=t.e,u=e.e,l=l.slice(),a=u-r,a){for(f=a<0,f?(n=l,a=-a,s=c.length):(n=c,r=u,s=l.length),i=Math.max(Math.ceil(p/Qe),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=c.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(l[i]!=c[i]){f=l[i]<c[i];break}a=0}for(f&&(n=l,l=c,c=n,t.s=-t.s),s=l.length,i=c.length-s;i>0;--i)l[s++]=0;for(i=c.length;i>a;){if(l[--i]<c[i]){for(o=i;o&&l[--o]===0;)l[o]=Et-1;--l[o],l[i]+=Et}l[i]-=c[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,rt?Le(t,p):t):new d(0)}function fa(e,t,n){var r,i=gt(e),o=Lr(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+qi(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+qi(-i-1)+o,n&&(r=n-a)>0&&(o+=qi(r))):i>=a?(o+=qi(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+qi(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=qi(r))),e.s<0?"-"+o:o}function oj(e,t){if(e.length>t)return e.length=t,!0}function dR(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Zo+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return ij(a,o.toString())}else if(typeof o!="string")throw Error(Zo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,nhe.test(o))ij(a,o);else throw Error(Zo+o)}if(i.prototype=te,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=dR,i.config=i.set=rhe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function rhe(e){if(!e||typeof e!="object")throw Error(er+"Object expected");var t,n,r,i=["precision",1,Pl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(jl(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Zo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Zo+n+": "+r);return this}var y1=dR(the);_n=new y1(1);const Re=y1;function ihe(e){return lhe(e)||she(e)||ahe(e)||ohe()}function ohe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
411
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ahe(e,t){if(e){if(typeof e=="string")return Dx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dx(e,t)}}function she(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function lhe(e){if(Array.isArray(e))return Dx(e)}function Dx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var uhe=function(t){return t},pR={},hR=function(t){return t===pR},aj=function(t){return function n(){return arguments.length===0||arguments.length===1&&hR(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},che=function e(t,n){return t===1?n:aj(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter(function(s){return s!==pR}).length;return a>=t?n.apply(void 0,i):e(t-a,aj(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var f=i.map(function(c){return hR(c)?l.shift():c});return n.apply(void 0,ihe(f).concat(l))}))})},Wm=function(t){return che(t.length,t)},Lx=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},fhe=Wm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),dhe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return uhe;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(s,l){return l(s)},o.apply(void 0,arguments))}},Fx=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},mR=function(t){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n&&o.every(function(s,l){return s===n[l]})||(n=o,r=t.apply(void 0,o)),r}};function phe(e){var t;return e===0?t=1:t=Math.floor(new Re(e).abs().log(10).toNumber())+1,t}function hhe(e,t,n){for(var r=new Re(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var mhe=Wm(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),ghe=Wm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),yhe=Wm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Um={rangeStep:hhe,getDigitCount:phe,interpolateNumber:mhe,uninterpolateNumber:ghe,uninterpolateTruncation:yhe};function zx(e){return bhe(e)||xhe(e)||gR(e)||vhe()}function vhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
412
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xhe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function bhe(e){if(Array.isArray(e))return Bx(e)}function oc(e,t){return khe(e)||She(e,t)||gR(e,t)||whe()}function whe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
413
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gR(e,t){if(e){if(typeof e=="string")return Bx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bx(e,t)}}function Bx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function She(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function khe(e){if(Array.isArray(e))return e}function yR(e){var t=oc(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function vR(e,t,n){if(e.lte(0))return new Re(0);var r=Um.getDigitCount(e.toNumber()),i=new Re(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new Re(Math.ceil(o.div(a).toNumber())).add(n).mul(a),l=s.mul(i);return t?l:new Re(Math.ceil(l))}function Ohe(e,t,n){var r=1,i=new Re(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Re(10).pow(Um.getDigitCount(e)-1),i=new Re(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Re(Math.floor(e)))}else e===0?i=new Re(Math.floor((t-1)/2)):n||(i=new Re(Math.floor(e)));var a=Math.floor((t-1)/2),s=dhe(fhe(function(l){return i.add(new Re(l-a).mul(r)).toNumber()}),Lx);return s(0,t)}function xR(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Re(0),tickMin:new Re(0),tickMax:new Re(0)};var o=vR(new Re(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new Re(0):(a=new Re(e).add(t).div(2),a=a.sub(new Re(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),l=Math.ceil(new Re(t).sub(a).div(o).toNumber()),u=s+l+1;return u>n?xR(e,t,n,r,i+1):(u<n&&(l=t>0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:o,tickMin:a.sub(new Re(s).mul(o)),tickMax:a.add(new Re(l).mul(o))})}function Ehe(e){var t=oc(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=yR([n,r]),l=oc(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(zx(Lx(0,i-1).map(function(){return 1/0}))):[].concat(zx(Lx(0,i-1).map(function(){return-1/0})),[f]);return n>r?Fx(c):c}if(u===f)return Ohe(u,i,o);var d=xR(u,f,a,o),p=d.step,m=d.tickMin,g=d.tickMax,v=Um.rangeStep(m,g.add(new Re(.1).mul(p)),p);return n>r?Fx(v):v}function Phe(e,t){var n=oc(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=yR([r,i]),s=oc(a,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,i];if(l===u)return[l];var f=Math.max(t,2),c=vR(new Re(u).sub(l).div(f-1),o,0),d=[].concat(zx(Um.rangeStep(new Re(l),new Re(u).sub(new Re(.99).mul(c)),c)),[u]);return r>i?Fx(d):d}var jhe=mR(Ehe),Ahe=mR(Phe),_he="Invariant failed";function da(e,t){throw new Error(_he)}var Che=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Rs(e){"@babel/helpers - typeof";return Rs=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},Rs(e)}function zp(){return zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zp.apply(this,arguments)}function The(e,t){return Ihe(e)||Mhe(e,t)||$he(e,t)||Nhe()}function Nhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
414
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $he(e,t){if(e){if(typeof e=="string")return sj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sj(e,t)}}function sj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mhe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Ihe(e){if(Array.isArray(e))return e}function Rhe(e,t){if(e==null)return{};var n=Dhe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dhe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Lhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fhe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SR(r.key),r)}}function zhe(e,t,n){return t&&Fhe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bhe(e,t,n){return t=Bp(t),Whe(e,bR()?Reflect.construct(t,n||[],Bp(e).constructor):t.apply(e,n))}function Whe(e,t){if(t&&(Rs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uhe(e)}function Uhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bR=function(){return!!e})()}function Bp(e){return Bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bp(e)}function Hhe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wx(e,t)}function Wx(e,t){return Wx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Wx(e,t)}function wR(e,t,n){return t=SR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SR(e){var t=Vhe(e,"string");return Rs(t)=="symbol"?t:t+""}function Vhe(e,t){if(Rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xc=function(e){function t(){return Lhe(this,t),Bhe(this,t,arguments)}return Hhe(t,e),zhe(t,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,a=r.width,s=r.dataKey,l=r.data,u=r.dataPointFormatter,f=r.xAxis,c=r.yAxis,d=Rhe(r,Che),p=se(d,!1);this.props.direction==="x"&&f.type!=="number"&&da();var m=l.map(function(g){var v=u(g,s),y=v.x,x=v.y,b=v.value,O=v.errorVal;if(!O)return null;var S=[],w,E;if(Array.isArray(O)){var P=The(O,2);w=P[0],E=P[1]}else w=E=O;if(o==="vertical"){var _=f.scale,A=x+i,$=A+a,N=A-a,R=_(b-w),F=_(b+E);S.push({x1:F,y1:$,x2:F,y2:N}),S.push({x1:R,y1:A,x2:F,y2:A}),S.push({x1:R,y1:$,x2:R,y2:N})}else if(o==="horizontal"){var I=c.scale,D=y+i,L=D-a,M=D+a,z=I(b-w),j=I(b+E);S.push({x1:L,y1:j,x2:M,y2:j}),S.push({x1:D,y1:z,x2:D,y2:j}),S.push({x1:L,y1:z,x2:M,y2:z})}return C.createElement(Oe,zp({className:"recharts-errorBar",key:"bar-".concat(S.map(function(W){return"".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))},p),S.map(function(W){return C.createElement("line",zp({},W,{key:"line-".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))}))});return C.createElement(Oe,{className:"recharts-errorBars"},m)}}])}(C.Component);wR(Xc,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});wR(Xc,"displayName","ErrorBar");function ac(e){"@babel/helpers - typeof";return ac=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},ac(e)}function lj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lj(Object(n),!0).forEach(function(r){Khe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Khe(e,t,n){return t=qhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qhe(e){var t=Ghe(e,"string");return ac(t)=="symbol"?t:t+""}function Ghe(e,t){if(ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kR=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Ut(n,ci);if(!a)return null;var s=ci.defaultProps,l=s!==void 0?To(To({},s),a.props):{},u;return a.props&&a.props.payload?u=a.props&&a.props.payload:o==="children"?u=(r||[]).reduce(function(f,c){var d=c.item,p=c.props,m=p.sectors||p.data||[];return f.concat(m.map(function(g){return{type:a.props.iconType||d.props.legendType,value:g.name,color:g.fill,payload:g}}))},[]):u=(r||[]).map(function(f){var c=f.item,d=c.type.defaultProps,p=d!==void 0?To(To({},d),c.props):{},m=p.dataKey,g=p.name,v=p.legendType,y=p.hide;return{inactive:y,dataKey:m,type:l.iconType||v||"square",color:v1(c),value:g||m,payload:p}}),To(To(To({},l),ci.getWithHeight(a,i)),{},{payload:u,item:a})};function sc(e){"@babel/helpers - typeof";return sc=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},sc(e)}function uj(e){return Jhe(e)||Qhe(e)||Xhe(e)||Yhe()}function Yhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
415
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xhe(e,t){if(e){if(typeof e=="string")return Ux(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ux(e,t)}}function Qhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jhe(e){if(Array.isArray(e))return Ux(e)}function Ux(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cj(Object(n),!0).forEach(function(r){hs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hs(e,t,n){return t=Zhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zhe(e){var t=eme(e,"string");return sc(t)=="symbol"?t:t+""}function eme(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dt(e,t,n){return me(e)||me(t)?n:St(t)?vn(e,t,n):ce(t)?t(e):n}function yu(e,t,n,r){var i=Qpe(e,function(s){return dt(s,t)});if(n==="number"){var o=i.filter(function(s){return X(s)||parseFloat(s)});return o.length?[Bm(o),zm(o)]:[1/0,-1/0]}var a=r?i.filter(function(s){return!me(s)}):i;return a.map(function(s){return St(s)||s instanceof Date?s:""})}var tme=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,u=0;u<s;u++){var f=u>0?i[u-1].coordinate:i[s-1].coordinate,c=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(Zt(c-f)!==Zt(d-c)){var m=[];if(Zt(d-c)===Zt(l[1]-l[0])){p=d;var g=c+l[1]-l[0];m[0]=Math.min(g,(g+f)/2),m[1]=Math.max(g,(g+f)/2)}else{p=f;var v=d+l[1]-l[0];m[0]=Math.min(c,(v+c)/2),m[1]=Math.max(c,(v+c)/2)}var y=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>y[0]&&t<=y[1]||t>=m[0]&&t<=m[1]){a=i[u].index;break}}else{var x=Math.min(f,d),b=Math.max(f,d);if(t>(x+c)/2&&t<=(b+c)/2){a=i[u].index;break}}}else for(var O=0;O<s;O++)if(O===0&&t<=(r[O].coordinate+r[O+1].coordinate)/2||O>0&&O<s-1&&t>(r[O].coordinate+r[O-1].coordinate)/2&&t<=(r[O].coordinate+r[O+1].coordinate)/2||O===s-1&&t>(r[O].coordinate+r[O-1].coordinate)/2){a=r[O].index;break}return a},v1=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ct(ct({},t.type.defaultProps),t.props):t.props,a=o.stroke,s=o.fill,l;switch(i){case"Line":l=a;break;case"Area":case"Radar":l=a&&a!=="none"?a:s;break;default:l=s;break}return l},nme=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),l=0,u=s.length;l<u;l++)for(var f=o[s[l]].stackGroups,c=Object.keys(f),d=0,p=c.length;d<p;d++){var m=f[c[d]],g=m.items,v=m.cateAxisId,y=g.filter(function(E){return ui(E.type).indexOf("Bar")>=0});if(y&&y.length){var x=y[0].type.defaultProps,b=x!==void 0?ct(ct({},x),y[0].props):y[0].props,O=b.barSize,S=b[v];a[S]||(a[S]=[]);var w=me(O)?n:O;a[S].push({item:y[0],stackList:y.slice(1),barSize:me(w)?void 0:en(w,r,0)})}}return a},rme=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,l=a.length;if(l<1)return null;var u=en(n,i,0,!0),f,c=[];if(a[0].barSize===+a[0].barSize){var d=!1,p=i/l,m=a.reduce(function(O,S){return O+S.barSize||0},0);m+=(l-1)*u,m>=i&&(m-=(l-1)*u,u=0),m>=i&&p>0&&(d=!0,p*=.9,m=l*p);var g=(i-m)/2>>0,v={offset:g-u,size:0};f=a.reduce(function(O,S){var w={item:S.item,position:{offset:v.offset+v.size+u,size:d?p:S.barSize}},E=[].concat(uj(O),[w]);return v=E[E.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(P){E.push({item:P,position:v})}),E},c)}else{var y=en(r,i,0,!0);i-2*y-(l-1)*u<=0&&(u=0);var x=(i-2*y-(l-1)*u)/l;x>1&&(x>>=0);var b=s===+s?Math.min(x,s):x;f=a.reduce(function(O,S,w){var E=[].concat(uj(O),[{item:S.item,position:{offset:y+(x+u)*w+(x-b)/2,size:b}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(P){E.push({item:P,position:E[E.length-1].position})}),E},c)}return f},ime=function(t,n,r,i){var o=r.children,a=r.width,s=r.margin,l=a-(s.left||0)-(s.right||0),u=kR({children:o,legendWidth:l});if(u){var f=i||{},c=f.width,d=f.height,p=u.align,m=u.verticalAlign,g=u.layout;if((g==="vertical"||g==="horizontal"&&m==="middle")&&p!=="center"&&X(t[p]))return ct(ct({},t),{},hs({},p,t[p]+(c||0)));if((g==="horizontal"||g==="vertical"&&p==="center")&&m!=="middle"&&X(t[m]))return ct(ct({},t),{},hs({},m,t[m]+(d||0)))}return t},ome=function(t,n,r){return me(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},OR=function(t,n,r,i,o){var a=n.props.children,s=Mn(a,Xc).filter(function(u){return ome(i,o,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=dt(f,r);if(me(c))return u;var d=Array.isArray(c)?[Bm(c),zm(c)]:[c,c],p=l.reduce(function(m,g){var v=dt(f,g,0),y=d[0]-Math.abs(Array.isArray(v)?v[0]:v),x=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,m[0]),Math.max(x,m[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},ame=function(t,n,r,i,o){var a=n.map(function(s){return OR(t,s,r,o,i)}).filter(function(s){return!me(s)});return a&&a.length?a.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},ER=function(t,n,r,i,o){var a=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&OR(t,l,u,i)||yu(t,u,r,o)});if(r==="number")return a.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(l,u){for(var f=0,c=u.length;f<c;f++)s[u[f]]||(s[u[f]]=!0,l.push(u[f]));return l},[])},PR=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},jR=function(t,n,r,i){if(i)return t.map(function(l){return l.coordinate});var o,a,s=t.map(function(l){return l.coordinate===n&&(o=!0),l.coordinate===r&&(a=!0),l.coordinate});return o||s.push(n),a||s.push(r),s},si=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&a==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Zt(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=o?o.indexOf(c):c;return{coordinate:i(d)+u,value:c,offset:u}});return f.filter(function(c){return!xa(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+u,value:c,index:d,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+u,value:c,offset:u}}):i.domain().map(function(c,d){return{coordinate:i(c)+u,value:o?o[c]:c,index:d,offset:u}})},Ay=new WeakMap,Kf=function(t,n){if(typeof n!="function")return t;Ay.has(t)||Ay.set(t,new WeakMap);var r=Ay.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},AR=function(t,n,r){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:Zu(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Ip(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:gu(),realScaleType:"point"}:o==="category"?{scale:Zu(),realScaleType:"band"}:{scale:Ip(),realScaleType:"linear"};if(la(i)){var l="scale".concat(Om(i));return{scale:(rj[l]||gu)(),realScaleType:rj[l]?l:"point"}}return ce(i)?{scale:i}:{scale:gu(),realScaleType:"point"}},fj=1e-4,_R=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-fj,a=Math.max(i[0],i[1])+fj,s=t(n[0]),l=t(n[r-1]);(s<o||s>a||l<o||l>a)&&t.domain([n[0],n[r-1]])}},sme=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},lme=function(t,n){if(!n||n.length!==2||!X(n[0])||!X(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!X(t[0])||t[0]<r)&&(o[0]=r),(!X(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},ume=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0,s=0;s<n;++s){var l=xa(t[s][r][1])?t[s][r][0]:t[s][r][1];l>=0?(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1])}},cme=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0;a<n;++a){var s=xa(t[a][r][1])?t[a][r][0]:t[a][r][1];s>=0?(t[a][r][0]=o,t[a][r][1]=o+s,o=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},fme={sign:ume,expand:Bte,none:As,silhouette:Wte,wiggle:Ute,positive:cme},dme=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),o=fme[r],a=zte().keys(i).value(function(s,l){return+dt(s,l,0)}).order(hx).offset(o);return a(t)},pme=function(t,n,r,i,o,a){if(!t)return null;var s=a?n.reverse():n,l={},u=s.reduce(function(c,d){var p,m=(p=d.type)!==null&&p!==void 0&&p.defaultProps?ct(ct({},d.type.defaultProps),d.props):d.props,g=m.stackId,v=m.hide;if(v)return c;var y=m[r],x=c[y]||{hasStack:!1,stackGroups:{}};if(St(g)){var b=x.stackGroups[g]||{numericAxisId:r,cateAxisId:i,items:[]};b.items.push(d),x.hasStack=!0,x.stackGroups[g]=b}else x.stackGroups[ba("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[d]};return ct(ct({},c),{},hs({},y,x))},l),f={};return Object.keys(u).reduce(function(c,d){var p=u[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(g,v){var y=p.stackGroups[v];return ct(ct({},g),{},hs({},v,{numericAxisId:r,cateAxisId:i,items:y.items,stackedData:dme(t,y.items,o)}))},m)}return ct(ct({},c),{},hs({},d,p))},f)},CR=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=jhe(u,o,s);return t.domain([Bm(f),zm(f)]),{niceTicks:f}}if(o&&i==="number"){var c=t.domain(),d=Ahe(c,o,s);return{niceTicks:d}}return null};function dj(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!me(i[t.dataKey])){var s=dp(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var l=dt(i,me(a)?t.dataKey:a);return me(l)?null:t.scale(l)}var pj=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+i:null;var l=dt(a,n.dataKey,n.domain[s]);return me(l)?null:n.scale(l)-o/2+i},hme=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},mme=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ct(ct({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(St(o)){var a=n[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},gme=function(t){return t.reduce(function(n,r){return[Bm(r.concat([n[0]]).filter(X)),zm(r.concat([n[1]]).filter(X))]},[1/0,-1/0])},TR=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,l=s.reduce(function(u,f){var c=gme(f.slice(n,r+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},hj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hx=function(t,n,r){if(ce(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(X(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(hj.test(t[0])){var o=+hj.exec(t[0])[1];i[0]=n[0]-o}else ce(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(X(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(mj.test(t[1])){var a=+mj.exec(t[1])[1];i[1]=n[1]+a}else ce(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Wp=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=Kw(n,function(c){return c.coordinate}),a=1/0,s=1,l=o.length;s<l;s++){var u=o[s],f=o[s-1];a=Math.min((u.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},gj=function(t,n,r){return!t||!t.length||Yc(t,vn(r,"type.defaultProps.domain"))?n:t},NR=function(t,n){var r=t.type.defaultProps?ct(ct({},t.type.defaultProps),t.props):t.props,i=r.dataKey,o=r.name,a=r.unit,s=r.formatter,l=r.tooltipType,u=r.chartType,f=r.hide;return ct(ct({},se(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:v1(t),value:dt(n,i),type:l,payload:n,chartType:u,hide:f})};function lc(e){"@babel/helpers - typeof";return lc=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},lc(e)}function yj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yj(Object(n),!0).forEach(function(r){$R(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $R(e,t,n){return t=yme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yme(e){var t=vme(e,"string");return lc(t)=="symbol"?t:t+""}function vme(e,t){if(lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xme(e,t){return kme(e)||Sme(e,t)||wme(e,t)||bme()}function bme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
416
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wme(e,t){if(e){if(typeof e=="string")return vj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vj(e,t)}}function vj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function kme(e){if(Array.isArray(e))return e}var Up=Math.PI/180,Ome=function(t){return t*180/Math.PI},qe=function(t,n,r,i){return{x:t+Math.cos(-Up*i)*r,y:n+Math.sin(-Up*i)*r}},MR=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Eme=function(t,n,r,i,o){var a=t.width,s=t.height,l=t.startAngle,u=t.endAngle,f=en(t.cx,a,a/2),c=en(t.cy,s,s/2),d=MR(a,s,r),p=en(t.innerRadius,d,0),m=en(t.outerRadius,d,d*.8),g=Object.keys(n);return g.reduce(function(v,y){var x=n[y],b=x.domain,O=x.reversed,S;if(me(x.range))i==="angleAxis"?S=[l,u]:i==="radiusAxis"&&(S=[p,m]),O&&(S=[S[1],S[0]]);else{S=x.range;var w=S,E=xme(w,2);l=E[0],u=E[1]}var P=AR(x,o),_=P.realScaleType,A=P.scale;A.domain(b).range(S),_R(A);var $=CR(A,ti(ti({},x),{},{realScaleType:_})),N=ti(ti(ti({},x),$),{},{range:S,radius:m,realScaleType:_,scale:A,cx:f,cy:c,innerRadius:p,outerRadius:m,startAngle:l,endAngle:u});return ti(ti({},v),{},$R({},y,N))},{})},Pme=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))},jme=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,s=Pme({x:r,y:i},{x:o,y:a});if(s<=0)return{radius:s};var l=(r-o)/s,u=Math.acos(l);return i>a&&(u=2*Math.PI-u),{radius:s,angle:Ome(u),angleInRadian:u}},Ame=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return{startAngle:n-a*360,endAngle:r-a*360}},_me=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},xj=function(t,n){var r=t.x,i=t.y,o=jme({x:r,y:i},n),a=o.radius,s=o.angle,l=n.innerRadius,u=n.outerRadius;if(a<l||a>u)return!1;if(a===0)return!0;var f=Ame(n),c=f.startAngle,d=f.endAngle,p=s,m;if(c<=d){for(;p>d;)p-=360;for(;p<c;)p+=360;m=p>=c&&p<=d}else{for(;p>c;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=c}return m?ti(ti({},n),{},{radius:a,angle:_me(p,n)}):null},IR=function(t){return!k.isValidElement(t)&&!ce(t)&&typeof t!="boolean"?t.className:""};function uc(e){"@babel/helpers - typeof";return uc=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},uc(e)}var Cme=["offset"];function Tme(e){return Ime(e)||Mme(e)||$me(e)||Nme()}function Nme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
417
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $me(e,t){if(e){if(typeof e=="string")return Vx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vx(e,t)}}function Mme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ime(e){if(Array.isArray(e))return Vx(e)}function Vx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rme(e,t){if(e==null)return{};var n=Dme(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dme(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bj(Object(n),!0).forEach(function(r){Lme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lme(e,t,n){return t=Fme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fme(e){var t=zme(e,"string");return uc(t)=="symbol"?t:t+""}function zme(e,t){if(uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cc.apply(this,arguments)}var Bme=function(t){var n=t.value,r=t.formatter,i=me(t.children)?n:t.children;return ce(r)?r(i):i},Wme=function(t,n){var r=Zt(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Ume=function(t,n,r){var i=t.position,o=t.viewBox,a=t.offset,s=t.className,l=o,u=l.cx,f=l.cy,c=l.innerRadius,d=l.outerRadius,p=l.startAngle,m=l.endAngle,g=l.clockWise,v=(c+d)/2,y=Wme(p,m),x=y>=0?1:-1,b,O;i==="insideStart"?(b=p+x*a,O=g):i==="insideEnd"?(b=m-x*a,O=!g):i==="end"&&(b=m+x*a,O=g),O=y<=0?O:!O;var S=qe(u,f,v,b),w=qe(u,f,v,b+(O?1:-1)*359),E="M".concat(S.x,",").concat(S.y,`
|
|
418
|
+
A`).concat(v,",").concat(v,",0,1,").concat(O?0:1,`,
|
|
419
|
+
`).concat(w.x,",").concat(w.y),P=me(t.id)?ba("recharts-radial-line-"):t.id;return C.createElement("text",cc({},r,{dominantBaseline:"central",className:he("recharts-radial-bar-label",s)}),C.createElement("defs",null,C.createElement("path",{id:P,d:E})),C.createElement("textPath",{xlinkHref:"#".concat(P)},n))},Hme=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,s=o.cy,l=o.innerRadius,u=o.outerRadius,f=o.startAngle,c=o.endAngle,d=(f+c)/2;if(i==="outside"){var p=qe(a,s,u+r,d),m=p.x,g=p.y;return{x:m,y:g,textAnchor:m>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+u)/2,y=qe(a,s,v,d),x=y.x,b=y.y;return{x,y:b,textAnchor:"middle",verticalAnchor:"middle"}},Vme=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,s=a.x,l=a.y,u=a.width,f=a.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",m=c>0?"start":"end",g=u>=0?1:-1,v=g*i,y=g>0?"end":"start",x=g>0?"start":"end";if(o==="top"){var b={x:s+u/2,y:l-c*i,textAnchor:"middle",verticalAnchor:p};return xt(xt({},b),r?{height:Math.max(l-r.y,0),width:u}:{})}if(o==="bottom"){var O={x:s+u/2,y:l+f+d,textAnchor:"middle",verticalAnchor:m};return xt(xt({},O),r?{height:Math.max(r.y+r.height-(l+f),0),width:u}:{})}if(o==="left"){var S={x:s-v,y:l+f/2,textAnchor:y,verticalAnchor:"middle"};return xt(xt({},S),r?{width:Math.max(S.x-r.x,0),height:f}:{})}if(o==="right"){var w={x:s+u+v,y:l+f/2,textAnchor:x,verticalAnchor:"middle"};return xt(xt({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:f}:{})}var E=r?{width:u,height:f}:{};return o==="insideLeft"?xt({x:s+v,y:l+f/2,textAnchor:x,verticalAnchor:"middle"},E):o==="insideRight"?xt({x:s+u-v,y:l+f/2,textAnchor:y,verticalAnchor:"middle"},E):o==="insideTop"?xt({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:m},E):o==="insideBottom"?xt({x:s+u/2,y:l+f-d,textAnchor:"middle",verticalAnchor:p},E):o==="insideTopLeft"?xt({x:s+v,y:l+d,textAnchor:x,verticalAnchor:m},E):o==="insideTopRight"?xt({x:s+u-v,y:l+d,textAnchor:y,verticalAnchor:m},E):o==="insideBottomLeft"?xt({x:s+v,y:l+f-d,textAnchor:x,verticalAnchor:p},E):o==="insideBottomRight"?xt({x:s+u-v,y:l+f-d,textAnchor:y,verticalAnchor:p},E):ml(o)&&(X(o.x)||Ko(o.x))&&(X(o.y)||Ko(o.y))?xt({x:s+en(o.x,u),y:l+en(o.y,f),textAnchor:"end",verticalAnchor:"end"},E):xt({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},E)},Kme=function(t){return"cx"in t&&X(t.cx)};function At(e){var t=e.offset,n=t===void 0?5:t,r=Rme(e,Cme),i=xt({offset:n},r),o=i.viewBox,a=i.position,s=i.value,l=i.children,u=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!o||me(s)&&me(l)&&!k.isValidElement(u)&&!ce(u))return null;if(k.isValidElement(u))return k.cloneElement(u,i);var p;if(ce(u)){if(p=k.createElement(u,i),k.isValidElement(p))return p}else p=Bme(i);var m=Kme(o),g=se(i,!0);if(m&&(a==="insideStart"||a==="insideEnd"||a==="end"))return Ume(i,p,g);var v=m?Hme(i):Vme(i);return C.createElement(ca,cc({className:he("recharts-label",c)},g,v,{breakAll:d}),p)}At.displayName="Label";var RR=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,m=t.left,g=t.width,v=t.height,y=t.clockWise,x=t.labelViewBox;if(x)return x;if(X(g)&&X(v)){if(X(c)&&X(d))return{x:c,y:d,width:g,height:v};if(X(p)&&X(m))return{x:p,y:m,width:g,height:v}}return X(c)&&X(d)?{x:c,y:d,width:0,height:0}:X(n)&&X(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},qme=function(t,n){return t?t===!0?C.createElement(At,{key:"label-implicit",viewBox:n}):St(t)?C.createElement(At,{key:"label-implicit",viewBox:n,value:t}):k.isValidElement(t)?t.type===At?k.cloneElement(t,{key:"label-implicit",viewBox:n}):C.createElement(At,{key:"label-implicit",content:t,viewBox:n}):ce(t)?C.createElement(At,{key:"label-implicit",content:t,viewBox:n}):ml(t)?C.createElement(At,cc({viewBox:n},t,{key:"label-implicit"})):null:null},Gme=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=RR(t),a=Mn(i,At).map(function(l,u){return k.cloneElement(l,{viewBox:n||o,key:"label-".concat(u)})});if(!r)return a;var s=qme(t.label,n||o);return[s].concat(Tme(a))};At.parseViewBox=RR;At.renderCallByParent=Gme;function Yme(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var DR=Yme;const Xme=Ce(DR);function fc(e){"@babel/helpers - typeof";return fc=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},fc(e)}var Qme=["valueAccessor"],Jme=["data","dataKey","clockWise","id","textBreakAll"];function Zme(e){return rge(e)||nge(e)||tge(e)||ege()}function ege(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
420
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tge(e,t){if(e){if(typeof e=="string")return Kx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kx(e,t)}}function nge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rge(e){if(Array.isArray(e))return Kx(e)}function Kx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hp(){return Hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hp.apply(this,arguments)}function wj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wj(Object(n),!0).forEach(function(r){ige(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ige(e,t,n){return t=oge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oge(e){var t=age(e,"string");return fc(t)=="symbol"?t:t+""}function age(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kj(e,t){if(e==null)return{};var n=sge(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var lge=function(t){return Array.isArray(t.value)?Xme(t.value):t.value};function di(e){var t=e.valueAccessor,n=t===void 0?lge:t,r=kj(e,Qme),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,l=r.textBreakAll,u=kj(r,Jme);return!i||!i.length?null:C.createElement(Oe,{className:"recharts-label-list"},i.map(function(f,c){var d=me(o)?n(f,c):dt(f&&f.payload,o),p=me(s)?{}:{id:"".concat(s,"-").concat(c)};return C.createElement(At,Hp({},se(f,!0),u,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:l,viewBox:At.parseViewBox(me(a)?f:Sj(Sj({},f),{},{clockWise:a})),key:"label-".concat(c),index:c}))}))}di.displayName="LabelList";function uge(e,t){return e?e===!0?C.createElement(di,{key:"labelList-implicit",data:t}):C.isValidElement(e)||ce(e)?C.createElement(di,{key:"labelList-implicit",data:t,content:e}):ml(e)?C.createElement(di,Hp({data:t},e,{key:"labelList-implicit"})):null:null}function cge(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Mn(r,di).map(function(a,s){return k.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=uge(e.label,t);return[o].concat(Zme(i))}di.renderCallByParent=cge;function dc(e){"@babel/helpers - typeof";return dc=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},dc(e)}function qx(){return qx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qx.apply(this,arguments)}function Oj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ej(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Oj(Object(n),!0).forEach(function(r){fge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fge(e,t,n){return t=dge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dge(e){var t=pge(e,"string");return dc(t)=="symbol"?t:t+""}function pge(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hge=function(t,n){var r=Zt(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},qf=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,a=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,f=l*(s?1:-1)+i,c=Math.asin(l/f)/Up,d=u?o:o+a*c,p=qe(n,r,f,d),m=qe(n,r,i,d),g=u?o-a*c:o,v=qe(n,r,f*Math.cos(c*Up),g);return{center:p,circleTangency:m,lineTangency:v,theta:c}},LR=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,l=hge(a,s),u=a+l,f=qe(n,r,o,a),c=qe(n,r,o,u),d="M ".concat(f.x,",").concat(f.y,`
|
|
421
|
+
A `).concat(o,",").concat(o,`,0,
|
|
422
|
+
`).concat(+(Math.abs(l)>180),",").concat(+(a>u),`,
|
|
423
|
+
`).concat(c.x,",").concat(c.y,`
|
|
424
|
+
`);if(i>0){var p=qe(n,r,i,a),m=qe(n,r,i,u);d+="L ".concat(m.x,",").concat(m.y,`
|
|
425
|
+
A `).concat(i,",").concat(i,`,0,
|
|
426
|
+
`).concat(+(Math.abs(l)>180),",").concat(+(a<=u),`,
|
|
427
|
+
`).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},mge=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=Zt(f-u),d=qf({cx:n,cy:r,radius:o,angle:u,sign:c,cornerRadius:a,cornerIsExternal:l}),p=d.circleTangency,m=d.lineTangency,g=d.theta,v=qf({cx:n,cy:r,radius:o,angle:f,sign:-c,cornerRadius:a,cornerIsExternal:l}),y=v.circleTangency,x=v.lineTangency,b=v.theta,O=l?Math.abs(u-f):Math.abs(u-f)-g-b;if(O<0)return s?"M ".concat(m.x,",").concat(m.y,`
|
|
428
|
+
a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
|
|
429
|
+
a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
|
|
430
|
+
`):LR({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:f});var S="M ".concat(m.x,",").concat(m.y,`
|
|
431
|
+
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
|
|
432
|
+
A`).concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(c<0),",").concat(y.x,",").concat(y.y,`
|
|
433
|
+
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(x.x,",").concat(x.y,`
|
|
434
|
+
`);if(i>0){var w=qf({cx:n,cy:r,radius:i,angle:u,sign:c,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),E=w.circleTangency,P=w.lineTangency,_=w.theta,A=qf({cx:n,cy:r,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),$=A.circleTangency,N=A.lineTangency,R=A.theta,F=l?Math.abs(u-f):Math.abs(u-f)-_-R;if(F<0&&a===0)return"".concat(S,"L").concat(n,",").concat(r,"Z");S+="L".concat(N.x,",").concat(N.y,`
|
|
435
|
+
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat($.x,",").concat($.y,`
|
|
436
|
+
A`).concat(i,",").concat(i,",0,").concat(+(F>180),",").concat(+(c>0),",").concat(E.x,",").concat(E.y,`
|
|
437
|
+
A`).concat(a,",").concat(a,",0,0,").concat(+(c<0),",").concat(P.x,",").concat(P.y,"Z")}else S+="L".concat(n,",").concat(r,"Z");return S},gge={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},FR=function(t){var n=Ej(Ej({},gge),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,c=n.endAngle,d=n.className;if(a<o||f===c)return null;var p=he("recharts-sector",d),m=a-o,g=en(s,m,0,!0),v;return g>0&&Math.abs(f-c)<360?v=mge({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(g,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:c}):v=LR({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:f,endAngle:c}),C.createElement("path",qx({},se(n,!0),{className:p,d:v,role:"img"}))};function pc(e){"@babel/helpers - typeof";return pc=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},pc(e)}function Gx(){return Gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gx.apply(this,arguments)}function Pj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pj(Object(n),!0).forEach(function(r){yge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yge(e,t,n){return t=vge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vge(e){var t=xge(e,"string");return pc(t)=="symbol"?t:t+""}function xge(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Aj={curveBasisClosed:_te,curveBasisOpen:Cte,curveBasis:Ate,curveBumpX:hte,curveBumpY:mte,curveLinearClosed:Tte,curveLinear:Pm,curveMonotoneX:Nte,curveMonotoneY:$te,curveNatural:Mte,curveStep:Ite,curveStepAfter:Dte,curveStepBefore:Rte},Gf=function(t){return t.x===+t.x&&t.y===+t.y},Yl=function(t){return t.x},Xl=function(t){return t.y},bge=function(t,n){if(ce(t))return t;var r="curve".concat(Om(t));return(r==="curveMonotone"||r==="curveBump")&&n?Aj["".concat(r).concat(n==="vertical"?"Y":"X")]:Aj[r]||Pm},wge=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,o=i===void 0?[]:i,a=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,f=bge(r,s),c=u?o.filter(function(g){return Gf(g)}):o,d;if(Array.isArray(a)){var p=u?a.filter(function(g){return Gf(g)}):a,m=c.map(function(g,v){return jj(jj({},g),{},{base:p[v]})});return s==="vertical"?d=Lf().y(Xl).x1(Yl).x0(function(g){return g.base.x}):d=Lf().x(Yl).y1(Xl).y0(function(g){return g.base.y}),d.defined(Gf).curve(f),d(m)}return s==="vertical"&&X(a)?d=Lf().y(Xl).x1(Yl).x0(a):X(a)?d=Lf().x(Yl).y1(Xl).y0(a):d=TM().x(Yl).y(Xl),d.defined(Gf).curve(f),d(c)},Vp=function(t){var n=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var a=r&&r.length?wge(t):i;return k.createElement("path",Gx({},se(t,!1),pp(t),{className:he("recharts-curve",n),d:a,ref:o}))},zR={exports:{}},Sge="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kge=Sge,Oge=kge;function BR(){}function WR(){}WR.resetWarningCache=BR;var Ege=function(){function e(r,i,o,a,s,l){if(l!==Oge){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:WR,resetWarningCache:BR};return n.PropTypes=n,n};zR.exports=Ege();var Pge=zR.exports;const Ne=Ce(Pge),{getOwnPropertyNames:jge,getOwnPropertySymbols:Age}=Object,{hasOwnProperty:_ge}=Object.prototype;function _y(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function Yf(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:o}=i,a=o.get(n),s=o.get(r);if(a&&s)return a===r&&s===n;o.set(n,r),o.set(r,n);const l=e(n,r,i);return o.delete(n),o.delete(r),l}}function Cge(e){return e!=null?e[Symbol.toStringTag]:void 0}function _j(e){return jge(e).concat(Age(e))}const Tge=Object.hasOwn||((e,t)=>_ge.call(e,t));function ka(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Nge="__v",$ge="__o",Mge="_owner",{getOwnPropertyDescriptor:Cj,keys:Tj}=Object;function Ige(e,t){return e.byteLength===t.byteLength&&Kp(new Uint8Array(e),new Uint8Array(t))}function Rge(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Dge(e,t){return e.byteLength===t.byteLength&&Kp(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Lge(e,t){return ka(e.getTime(),t.getTime())}function Fge(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function zge(e,t){return e===t}function Nj(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.entries();let a,s,l=0;for(;(a=o.next())&&!a.done;){const u=t.entries();let f=!1,c=0;for(;(s=u.next())&&!s.done;){if(i[c]){c++;continue}const d=a.value,p=s.value;if(n.equals(d[0],p[0],l,c,e,t,n)&&n.equals(d[1],p[1],d[0],p[0],e,t,n)){f=i[c]=!0;break}c++}if(!f)return!1;l++}return!0}const Bge=ka;function Wge(e,t,n){const r=Tj(e);let i=r.length;if(Tj(t).length!==i)return!1;for(;i-- >0;)if(!UR(e,t,n,r[i]))return!1;return!0}function Ql(e,t,n){const r=_j(e);let i=r.length;if(_j(t).length!==i)return!1;let o,a,s;for(;i-- >0;)if(o=r[i],!UR(e,t,n,o)||(a=Cj(e,o),s=Cj(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function Uge(e,t){return ka(e.valueOf(),t.valueOf())}function Hge(e,t){return e.source===t.source&&e.flags===t.flags}function $j(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.values();let a,s;for(;(a=o.next())&&!a.done;){const l=t.values();let u=!1,f=0;for(;(s=l.next())&&!s.done;){if(!i[f]&&n.equals(a.value,s.value,a.value,s.value,e,t,n)){u=i[f]=!0;break}f++}if(!u)return!1}return!0}function Kp(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Vge(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function UR(e,t,n,r){return(r===Mge||r===$ge||r===Nge)&&(e.$$typeof||t.$$typeof)?!0:Tge(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Kge="[object ArrayBuffer]",qge="[object Arguments]",Gge="[object Boolean]",Yge="[object DataView]",Xge="[object Date]",Qge="[object Error]",Jge="[object Map]",Zge="[object Number]",eye="[object Object]",tye="[object RegExp]",nye="[object Set]",rye="[object String]",iye={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},oye="[object URL]",aye=Object.prototype.toString;function sye({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:a,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:d,areUrlsEqual:p,unknownTagComparators:m}){return function(v,y,x){if(v===y)return!0;if(v==null||y==null)return!1;const b=typeof v;if(b!==typeof y)return!1;if(b!=="object")return b==="number"?s(v,y,x):b==="function"?o(v,y,x):!1;const O=v.constructor;if(O!==y.constructor)return!1;if(O===Object)return l(v,y,x);if(Array.isArray(v))return t(v,y,x);if(O===Date)return r(v,y,x);if(O===RegExp)return f(v,y,x);if(O===Map)return a(v,y,x);if(O===Set)return c(v,y,x);const S=aye.call(v);if(S===Xge)return r(v,y,x);if(S===tye)return f(v,y,x);if(S===Jge)return a(v,y,x);if(S===nye)return c(v,y,x);if(S===eye)return typeof v.then!="function"&&typeof y.then!="function"&&l(v,y,x);if(S===oye)return p(v,y,x);if(S===Qge)return i(v,y,x);if(S===qge)return l(v,y,x);if(iye[S])return d(v,y,x);if(S===Kge)return e(v,y,x);if(S===Yge)return n(v,y,x);if(S===Gge||S===Zge||S===rye)return u(v,y,x);if(m){let w=m[S];if(!w){const E=Cge(v);E&&(w=m[E])}if(w)return w(v,y,x)}return!1}}function lye({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Ige,areArraysEqual:n?Ql:Rge,areDataViewsEqual:Dge,areDatesEqual:Lge,areErrorsEqual:Fge,areFunctionsEqual:zge,areMapsEqual:n?_y(Nj,Ql):Nj,areNumbersEqual:Bge,areObjectsEqual:n?Ql:Wge,arePrimitiveWrappersEqual:Uge,areRegExpsEqual:Hge,areSetsEqual:n?_y($j,Ql):$j,areTypedArraysEqual:n?_y(Kp,Ql):Kp,areUrlsEqual:Vge,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=Yf(r.areArraysEqual),o=Yf(r.areMapsEqual),a=Yf(r.areObjectsEqual),s=Yf(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:a,areSetsEqual:s})}return r}function uye(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function cye({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:f}=n();return t(s,l,{cache:u,equals:r,meta:f,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const o={cache:void 0,equals:r,meta:void 0,strict:i};return function(s,l){return t(s,l,o)}}const fye=ko();ko({strict:!0});ko({circular:!0});ko({circular:!0,strict:!0});ko({createInternalComparator:()=>ka});ko({strict:!0,createInternalComparator:()=>ka});ko({circular:!0,createInternalComparator:()=>ka});ko({circular:!0,createInternalComparator:()=>ka,strict:!0});function ko(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=lye(e),a=sye(o),s=n?n(a):uye(a);return cye({circular:t,comparator:a,createState:r,equals:s,strict:i})}function dye(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Mj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):dye(i)};requestAnimationFrame(r)}function Yx(e){"@babel/helpers - typeof";return Yx=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},Yx(e)}function pye(e){return yye(e)||gye(e)||mye(e)||hye()}function hye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
438
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mye(e,t){if(e){if(typeof e=="string")return Ij(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ij(e,t)}}function Ij(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yye(e){if(Array.isArray(e))return e}function vye(){var e={},t=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var a=o,s=pye(a),l=s[0],u=s.slice(1);if(typeof l=="number"){Mj(i.bind(null,u),l);return}i(l),Mj(i.bind(null,u));return}Yx(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function hc(e){"@babel/helpers - typeof";return hc=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},hc(e)}function Rj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rj(Object(n),!0).forEach(function(r){HR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HR(e,t,n){return t=xye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xye(e){var t=bye(e,"string");return hc(t)==="symbol"?t:String(t)}function bye(e,t){if(hc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wye=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},Sye=function(t){return t},kye=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},vu=function(t,n){return Object.keys(n).reduce(function(r,i){return Dj(Dj({},r),{},HR({},i,t(i,n[i])))},{})},Lj=function(t,n,r){return t.map(function(i){return"".concat(kye(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Oye(e,t){return jye(e)||Pye(e,t)||VR(e,t)||Eye()}function Eye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
439
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function jye(e){if(Array.isArray(e))return e}function Aye(e){return Tye(e)||Cye(e)||VR(e)||_ye()}function _ye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
440
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VR(e,t){if(e){if(typeof e=="string")return Xx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xx(e,t)}}function Cye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tye(e){if(Array.isArray(e))return Xx(e)}function Xx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qp=1e-4,KR=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},qR=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},Fj=function(t,n){return function(r){var i=KR(t,n);return qR(i,r)}},Nye=function(t,n){return function(r){var i=KR(t,n),o=[].concat(Aye(i.map(function(a,s){return a*s}).slice(1)),[0]);return qR(o,r)}},zj=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2],s=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,a=1,s=1;break;case"ease":i=.25,o=.1,a=.25,s=1;break;case"ease-in":i=.42,o=0,a=1,s=1;break;case"ease-out":i=.42,o=0,a=.58,s=1;break;case"ease-in-out":i=0,o=0,a=.58,s=1;break;default:{var l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),f=Oye(u,4);i=f[0],o=f[1],a=f[2],s=f[3]}}}var c=Fj(i,a),d=Fj(o,s),p=Nye(i,a),m=function(y){return y>1?1:y<0?0:y},g=function(y){for(var x=y>1?1:y,b=x,O=0;O<8;++O){var S=c(b)-x,w=p(b);if(Math.abs(S-x)<qp||w<qp)return d(b);b=m(b-S/w)}return d(b)};return g.isStepper=!1,g},$ye=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,l=function(f,c,d){var p=-(f-c)*r,m=d*o,g=d+(p-m)*s/1e3,v=d*s/1e3+f;return Math.abs(v-c)<qp&&Math.abs(g)<qp?[c,0]:[v,g]};return l.isStepper=!0,l.dt=s,l},Mye=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return zj(i);case"spring":return $ye();default:if(i.split("(")[0]==="cubic-bezier")return zj(i)}return typeof i=="function"?i:null};function mc(e){"@babel/helpers - typeof";return mc=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},mc(e)}function Bj(e){return Dye(e)||Rye(e)||GR(e)||Iye()}function Iye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
441
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dye(e){if(Array.isArray(e))return Jx(e)}function Wj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wj(Object(n),!0).forEach(function(r){Qx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qx(e,t,n){return t=Lye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lye(e){var t=Fye(e,"string");return mc(t)==="symbol"?t:String(t)}function Fye(e,t){if(mc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zye(e,t){return Uye(e)||Wye(e,t)||GR(e,t)||Bye()}function Bye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
442
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GR(e,t){if(e){if(typeof e=="string")return Jx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jx(e,t)}}function Jx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Uye(e){if(Array.isArray(e))return e}var Gp=function(t,n,r){return t+(n-t)*r},Zx=function(t){var n=t.from,r=t.to;return n!==r},Hye=function e(t,n,r){var i=vu(function(o,a){if(Zx(a)){var s=t(a.from,a.to,a.velocity),l=zye(s,2),u=l[0],f=l[1];return Mt(Mt({},a),{},{from:u,velocity:f})}return a},n);return r<1?vu(function(o,a){return Zx(a)?Mt(Mt({},a),{},{velocity:Gp(a.velocity,i[o].velocity,r),from:Gp(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const Vye=function(e,t,n,r,i){var o=wye(e,t),a=o.reduce(function(v,y){return Mt(Mt({},v),{},Qx({},y,[e[y],t[y]]))},{}),s=o.reduce(function(v,y){return Mt(Mt({},v),{},Qx({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,u,f,c=function(){return null},d=function(){return vu(function(y,x){return x.from},s)},p=function(){return!Object.values(s).filter(Zx).length},m=function(y){u||(u=y);var x=y-u,b=x/n.dt;s=Hye(n,s,b),i(Mt(Mt(Mt({},e),t),d())),u=y,p()||(l=requestAnimationFrame(c))},g=function(y){f||(f=y);var x=(y-f)/r,b=vu(function(S,w){return Gp.apply(void 0,Bj(w).concat([n(x)]))},a);if(i(Mt(Mt(Mt({},e),t),b)),x<1)l=requestAnimationFrame(c);else{var O=vu(function(S,w){return Gp.apply(void 0,Bj(w).concat([n(1)]))},a);i(Mt(Mt(Mt({},e),t),O))}};return c=n.isStepper?m:g,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(l)}}};function Ds(e){"@babel/helpers - typeof";return Ds=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},Ds(e)}var Kye=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function qye(e,t){if(e==null)return{};var n=Gye(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gye(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Cy(e){return Jye(e)||Qye(e)||Xye(e)||Yye()}function Yye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
443
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xye(e,t){if(e){if(typeof e=="string")return eb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eb(e,t)}}function Qye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jye(e){if(Array.isArray(e))return eb(e)}function eb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uj(Object(n),!0).forEach(function(r){ru(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ru(e,t,n){return t=YR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YR(r.key),r)}}function tve(e,t,n){return t&&eve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YR(e){var t=nve(e,"string");return Ds(t)==="symbol"?t:String(t)}function nve(e,t){if(Ds(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ds(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tb(e,t)}function tb(e,t){return tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tb(e,t)}function ive(e){var t=ove();return function(){var r=Yp(e),i;if(t){var o=Yp(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return nb(this,i)}}function nb(e,t){if(t&&(Ds(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rb(e)}function rb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ove(){if(typeof Reflect>"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 Yp(e){return Yp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yp(e)}var tr=function(e){rve(n,e);var t=ive(n);function n(r,i){var o;Zye(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,l=a.attributeName,u=a.from,f=a.to,c=a.steps,d=a.children,p=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(rb(o)),o.changeStyle=o.changeStyle.bind(rb(o)),!s||p<=0)return o.state={style:{}},typeof d=="function"&&(o.state={style:f}),nb(o);if(c&&c.length)o.state={style:c[0].style};else if(u){if(typeof d=="function")return o.state={style:u},nb(o);o.state={style:l?ru({},l,u):u}}else o.state={style:{}};return o}return tve(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,l=o.attributeName,u=o.shouldReAnimate,f=o.to,c=o.from,d=this.state.style;if(s){if(!a){var p={style:l?ru({},l,f):f};this.state&&d&&(l&&d[l]!==f||!l&&d!==f)&&this.setState(p);return}if(!(fye(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var g=m||u?c:i.to;if(this.state&&d){var v={style:l?ru({},l,g):g};(l&&d[l]!==g||!l&&d!==g)&&this.setState(v)}this.runAnimation(cr(cr({},this.props),{},{from:g,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 o=this,a=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=Vye(a,s,Mye(u),l,this.changeStyle),m=function(){o.stopJSAnimation=p()};this.manager.start([d,f,m,l,c])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,l=i.onAnimationStart,u=a[0],f=u.style,c=u.duration,d=c===void 0?0:c,p=function(g,v,y){if(y===0)return g;var x=v.duration,b=v.easing,O=b===void 0?"ease":b,S=v.style,w=v.properties,E=v.onAnimationEnd,P=y>0?a[y-1]:v,_=w||Object.keys(S);if(typeof O=="function"||O==="spring")return[].concat(Cy(g),[o.runJSAnimation.bind(o,{from:P.style,to:S,duration:x,easing:O}),x]);var A=Lj(_,x,O),$=cr(cr(cr({},P.style),S),{},{transition:A});return[].concat(Cy(g),[$,x,E]).filter(Sye)};return this.manager.start([l].concat(Cy(a.reduce(p,[f,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=vye());var o=i.begin,a=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var g=s?ru({},s,l):l,v=Lj(Object.keys(g),a,u);m.start([f,o,cr(cr({},g),{},{transition:v}),a,c])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=qye(i,Kye),u=k.Children.count(o),f=this.state.style;if(typeof o=="function")return o(f);if(!s||u===0||a<=0)return o;var c=function(p){var m=p.props,g=m.style,v=g===void 0?{}:g,y=m.className,x=k.cloneElement(p,cr(cr({},l),{},{style:cr(cr({},v),f),className:y}));return x};return u===1?c(k.Children.only(o)):C.createElement("div",null,k.Children.map(o,function(d){return c(d)}))}}]),n}(k.PureComponent);tr.displayName="Animate";tr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};tr.propTypes={from:Ne.oneOfType([Ne.object,Ne.string]),to:Ne.oneOfType([Ne.object,Ne.string]),attributeName:Ne.string,duration:Ne.number,begin:Ne.number,easing:Ne.oneOfType([Ne.string,Ne.func]),steps:Ne.arrayOf(Ne.shape({duration:Ne.number.isRequired,style:Ne.object.isRequired,easing:Ne.oneOfType([Ne.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ne.func]),properties:Ne.arrayOf("string"),onAnimationEnd:Ne.func})),children:Ne.oneOfType([Ne.node,Ne.func]),isActive:Ne.bool,canBegin:Ne.bool,onAnimationEnd:Ne.func,shouldReAnimate:Ne.bool,onAnimationStart:Ne.func,onAnimationReStart:Ne.func};function gc(e){"@babel/helpers - typeof";return gc=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},gc(e)}function Xp(){return Xp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xp.apply(this,arguments)}function ave(e,t){return cve(e)||uve(e,t)||lve(e,t)||sve()}function sve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
444
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lve(e,t){if(e){if(typeof e=="string")return Hj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hj(e,t)}}function Hj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function cve(e){if(Array.isArray(e))return e}function Vj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vj(Object(n),!0).forEach(function(r){fve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fve(e,t,n){return t=dve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dve(e){var t=pve(e,"string");return gc(t)=="symbol"?t:t+""}function pve(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qj=function(t,n,r,i,o){var a=Math.min(Math.abs(r)/2,Math.abs(i)/2),s=i>=0?1:-1,l=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,f;if(a>0&&o instanceof Array){for(var c=[0,0,0,0],d=0,p=4;d<p;d++)c[d]=o[d]>a?a:o[d];f="M".concat(t,",").concat(n+s*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+l*c[0],",").concat(n)),f+="L ".concat(t+r-l*c[1],",").concat(n),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`,
|
|
445
|
+
`).concat(t+r,",").concat(n+s*c[1])),f+="L ".concat(t+r,",").concat(n+i-s*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`,
|
|
446
|
+
`).concat(t+r-l*c[2],",").concat(n+i)),f+="L ".concat(t+l*c[3],",").concat(n+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`,
|
|
447
|
+
`).concat(t,",").concat(n+i-s*c[3])),f+="Z"}else if(a>0&&o===+o&&o>0){var m=Math.min(a,o);f="M ".concat(t,",").concat(n+s*m,`
|
|
448
|
+
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+l*m,",").concat(n,`
|
|
449
|
+
L `).concat(t+r-l*m,",").concat(n,`
|
|
450
|
+
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+r,",").concat(n+s*m,`
|
|
451
|
+
L `).concat(t+r,",").concat(n+i-s*m,`
|
|
452
|
+
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+r-l*m,",").concat(n+i,`
|
|
453
|
+
L `).concat(t+l*m,",").concat(n+i,`
|
|
454
|
+
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(n+i-s*m," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},hve=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(o,o+s),f=Math.max(o,o+s),c=Math.min(a,a+l),d=Math.max(a,a+l);return r>=u&&r<=f&&i>=c&&i<=d}return!1},mve={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Hm=function(t){var n=Kj(Kj({},mve),t),r=k.useRef(),i=k.useState(-1),o=ave(i,2),a=o[0],s=o[1];k.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var O=r.current.getTotalLength();O&&s(O)}catch{}},[]);var l=n.x,u=n.y,f=n.width,c=n.height,d=n.radius,p=n.className,m=n.animationEasing,g=n.animationDuration,v=n.animationBegin,y=n.isAnimationActive,x=n.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var b=he("recharts-rectangle",p);return x?C.createElement(tr,{canBegin:a>0,from:{width:f,height:c,x:l,y:u},to:{width:f,height:c,x:l,y:u},duration:g,animationEasing:m,isActive:x},function(O){var S=O.width,w=O.height,E=O.x,P=O.y;return C.createElement(tr,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:g,isActive:y,easing:m},C.createElement("path",Xp({},se(n,!0),{className:b,d:qj(E,P,S,w,d),ref:r})))}):C.createElement("path",Xp({},se(n,!0),{className:b,d:qj(l,u,f,c,d)}))},gve=["points","className","baseLinePoints","connectNulls"];function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ja.apply(this,arguments)}function yve(e,t){if(e==null)return{};var n=vve(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vve(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Gj(e){return Sve(e)||wve(e)||bve(e)||xve()}function xve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
455
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bve(e,t){if(e){if(typeof e=="string")return ib(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ib(e,t)}}function wve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sve(e){if(Array.isArray(e))return ib(e)}function ib(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Yj=function(t){return t&&t.x===+t.x&&t.y===+t.y},kve=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){Yj(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),Yj(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},xu=function(t,n){var r=kve(t);n&&(r=[r.reduce(function(o,a){return[].concat(Gj(o),Gj(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,s,l){return"".concat(a).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},Ove=function(t,n,r){var i=xu(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(xu(n.reverse(),r).slice(1))},XR=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=yve(t,gve);if(!n||!n.length)return null;var s=he("recharts-polygon",r);if(i&&i.length){var l=a.stroke&&a.stroke!=="none",u=Ove(n,i,o);return C.createElement("g",{className:s},C.createElement("path",Ja({},se(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),l?C.createElement("path",Ja({},se(a,!0),{fill:"none",d:xu(n,o)})):null,l?C.createElement("path",Ja({},se(a,!0),{fill:"none",d:xu(i,o)})):null)}var f=xu(n,o);return C.createElement("path",Ja({},se(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",className:s,d:f}))};function ob(){return ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ob.apply(this,arguments)}var Vm=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,a=he("recharts-dot",o);return n===+n&&r===+r&&i===+i?k.createElement("circle",ob({},se(t,!1),pp(t),{className:a,cx:n,cy:r,r:i})):null};function yc(e){"@babel/helpers - typeof";return yc=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},yc(e)}var Eve=["x","y","top","left","width","height","className"];function ab(){return ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ab.apply(this,arguments)}function Xj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xj(Object(n),!0).forEach(function(r){jve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jve(e,t,n){return t=Ave(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ave(e){var t=_ve(e,"string");return yc(t)=="symbol"?t:t+""}function _ve(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cve(e,t){if(e==null)return{};var n=Tve(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tve(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Nve=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},$ve=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,l=t.left,u=l===void 0?0:l,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,m=t.className,g=Cve(t,Eve),v=Pve({x:r,y:o,top:s,left:u,width:c,height:p},g);return!X(r)||!X(o)||!X(c)||!X(p)||!X(s)||!X(u)?null:C.createElement("path",ab({},se(v,!0),{className:he("recharts-cross",m),d:Nve(r,o,c,p,s,u)}))},Mve=Fm,Ive=aR,Rve=Xr;function Dve(e,t){return e&&e.length?Mve(e,Rve(t),Ive):void 0}var Lve=Dve;const Fve=Ce(Lve);var zve=Fm,Bve=Xr,Wve=sR;function Uve(e,t){return e&&e.length?zve(e,Bve(t),Wve):void 0}var Hve=Uve;const Vve=Ce(Hve);var Kve=["cx","cy","angle","ticks","axisLine"],qve=["ticks","tick","angle","tickFormatter","stroke"];function Ls(e){"@babel/helpers - typeof";return Ls=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},Ls(e)}function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bu.apply(this,arguments)}function Qj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qj(Object(n),!0).forEach(function(r){Km(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jj(e,t){if(e==null)return{};var n=Gve(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gve(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Yve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JR(r.key),r)}}function Xve(e,t,n){return t&&Zj(e.prototype,t),n&&Zj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qve(e,t,n){return t=Qp(t),Jve(e,QR()?Reflect.construct(t,n||[],Qp(e).constructor):t.apply(e,n))}function Jve(e,t){if(t&&(Ls(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zve(e)}function Zve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QR=function(){return!!e})()}function Qp(e){return Qp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qp(e)}function exe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sb(e,t)}function sb(e,t){return sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sb(e,t)}function Km(e,t,n){return t=JR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JR(e){var t=txe(e,"string");return Ls(t)=="symbol"?t:t+""}function txe(e,t){if(Ls(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qm=function(e){function t(){return Yve(this,t),Qve(this,t,arguments)}return exe(t,e),Xve(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,s=o.cx,l=o.cy;return qe(s,l,i,a)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,l=Fve(s,function(f){return f.coordinate||0}),u=Vve(s,function(f){return f.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,l=r.axisLine,u=Jj(r,Kve),f=s.reduce(function(m,g){return[Math.min(m[0],g.coordinate),Math.max(m[1],g.coordinate)]},[1/0,-1/0]),c=qe(i,o,f[0],a),d=qe(i,o,f[1],a),p=No(No(No({},se(u,!1)),{},{fill:"none"},se(l,!1)),{},{x1:c.x,y1:c.y,x2:d.x,y2:d.y});return C.createElement("line",bu({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,f=Jj(i,qve),c=this.getTickTextAnchor(),d=se(f,!1),p=se(a,!1),m=o.map(function(g,v){var y=r.getTickValueCoord(g),x=No(No(No(No({textAnchor:c,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:u},p),{},{index:v},y),{},{payload:g});return C.createElement(Oe,bu({className:he("recharts-polar-radius-axis-tick",IR(a)),key:"tick-".concat(g.coordinate)},ua(r.props,g,v)),t.renderTickItem(a,x,l?l(g.value,v):g.value))});return C.createElement(Oe,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:C.createElement(Oe,{className:he("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),At.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return C.isValidElement(r)?a=C.cloneElement(r,i):ce(r)?a=r(i):a=C.createElement(ca,bu({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(k.PureComponent);Km(qm,"displayName","PolarRadiusAxis");Km(qm,"axisType","radiusAxis");Km(qm,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Fs(e){"@babel/helpers - typeof";return Fs=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},Fs(e)}function Bo(){return Bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bo.apply(this,arguments)}function eA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(n),!0).forEach(function(r){Gm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eD(r.key),r)}}function rxe(e,t,n){return t&&tA(e.prototype,t),n&&tA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ixe(e,t,n){return t=Jp(t),oxe(e,ZR()?Reflect.construct(t,n||[],Jp(e).constructor):t.apply(e,n))}function oxe(e,t){if(t&&(Fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return axe(e)}function axe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZR=function(){return!!e})()}function Jp(e){return Jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jp(e)}function sxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lb(e,t)}function lb(e,t){return lb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lb(e,t)}function Gm(e,t,n){return t=eD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eD(e){var t=lxe(e,"string");return Fs(t)=="symbol"?t:t+""}function lxe(e,t){if(Fs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uxe=Math.PI/180,nA=1e-5,Ym=function(e){function t(){return nxe(this,t),ixe(this,t,arguments)}return sxe(t,e),rxe(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,a=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,f=u||8,c=qe(o,a,s,r.coordinate),d=qe(o,a,s+(l==="inner"?-1:1)*f,r.coordinate);return{x1:c.x,y1:c.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,o=Math.cos(-r.coordinate*uxe),a;return o>nA?a=i==="outer"?"start":"end":o<-nA?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,s=r.axisLine,l=r.axisLineType,u=$o($o({},se(this.props,!1)),{},{fill:"none"},se(s,!1));if(l==="circle")return C.createElement(Vm,Bo({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var f=this.props.ticks,c=f.map(function(d){return qe(i,o,a,d.coordinate)});return C.createElement(XR,Bo({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=se(this.props,!1),c=se(a,!1),d=$o($o({},f),{},{fill:"none"},se(s,!1)),p=o.map(function(m,g){var v=r.getTickLineCoord(m),y=r.getTickTextAnchor(m),x=$o($o($o({textAnchor:y},f),{},{stroke:"none",fill:u},c),{},{index:g,payload:m,x:v.x2,y:v.y2});return C.createElement(Oe,Bo({className:he("recharts-polar-angle-axis-tick",IR(a)),key:"tick-".concat(m.coordinate)},ua(r.props,m,g)),s&&C.createElement("line",Bo({className:"recharts-polar-angle-axis-tick-line"},d,v)),a&&t.renderTickItem(a,x,l?l(m.value,g):m.value))});return C.createElement(Oe,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:C.createElement(Oe,{className:he("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return C.isValidElement(r)?a=C.cloneElement(r,i):ce(r)?a=r(i):a=C.createElement(ca,Bo({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(k.PureComponent);Gm(Ym,"displayName","PolarAngleAxis");Gm(Ym,"axisType","angleAxis");Gm(Ym,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var cxe=tI,fxe=cxe(Object.getPrototypeOf,Object),x1=fxe,dxe=$i,pxe=x1,hxe=Ar,mxe="[object Object]",gxe=Function.prototype,yxe=Object.prototype,tD=gxe.toString,vxe=yxe.hasOwnProperty,xxe=tD.call(Object);function bxe(e){if(!hxe(e)||dxe(e)!=mxe)return!1;var t=pxe(e);if(t===null)return!0;var n=vxe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&tD.call(n)==xxe}var nD=bxe;const wxe=Ce(nD);var Sxe=$i,kxe=Ar,Oxe="[object Boolean]";function Exe(e){return e===!0||e===!1||kxe(e)&&Sxe(e)==Oxe}var Pxe=Exe;const jxe=Ce(Pxe);function vc(e){"@babel/helpers - typeof";return vc=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},vc(e)}function Zp(){return Zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zp.apply(this,arguments)}function Axe(e,t){return Nxe(e)||Txe(e,t)||Cxe(e,t)||_xe()}function _xe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
456
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cxe(e,t){if(e){if(typeof e=="string")return rA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rA(e,t)}}function rA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Txe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Nxe(e){if(Array.isArray(e))return e}function iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iA(Object(n),!0).forEach(function(r){$xe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $xe(e,t,n){return t=Mxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mxe(e){var t=Ixe(e,"string");return vc(t)=="symbol"?t:t+""}function Ixe(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aA=function(t,n,r,i,o){var a=r-i,s;return s="M ".concat(t,",").concat(n),s+="L ".concat(t+r,",").concat(n),s+="L ".concat(t+r-a/2,",").concat(n+o),s+="L ".concat(t+r-a/2-i,",").concat(n+o),s+="L ".concat(t,",").concat(n," Z"),s},Rxe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Dxe=function(t){var n=oA(oA({},Rxe),t),r=k.useRef(),i=k.useState(-1),o=Axe(i,2),a=o[0],s=o[1];k.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&s(b)}catch{}},[]);var l=n.x,u=n.y,f=n.upperWidth,c=n.lowerWidth,d=n.height,p=n.className,m=n.animationEasing,g=n.animationDuration,v=n.animationBegin,y=n.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var x=he("recharts-trapezoid",p);return y?C.createElement(tr,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:f,lowerWidth:c,height:d,x:l,y:u},duration:g,animationEasing:m,isActive:y},function(b){var O=b.upperWidth,S=b.lowerWidth,w=b.height,E=b.x,P=b.y;return C.createElement(tr,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:g,easing:m},C.createElement("path",Zp({},se(n,!0),{className:x,d:aA(E,P,O,S,w),ref:r})))}):C.createElement("g",null,C.createElement("path",Zp({},se(n,!0),{className:x,d:aA(l,u,f,c,d)})))},Lxe=["option","shapeType","propTransformer","activeClassName","isActive"];function xc(e){"@babel/helpers - typeof";return xc=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},xc(e)}function Fxe(e,t){if(e==null)return{};var n=zxe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zxe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function sA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sA(Object(n),!0).forEach(function(r){Bxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bxe(e,t,n){return t=Wxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wxe(e){var t=Uxe(e,"string");return xc(t)=="symbol"?t:t+""}function Uxe(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hxe(e,t){return eh(eh({},t),e)}function Vxe(e,t){return e==="symbols"}function lA(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return C.createElement(Hm,n);case"trapezoid":return C.createElement(Dxe,n);case"sector":return C.createElement(FR,n);case"symbols":if(Vxe(t))return C.createElement(Tw,n);break;default:return null}}function Kxe(e){return k.isValidElement(e)?e.props:e}function rD(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?Hxe:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,l=Fxe(e,Lxe),u;if(k.isValidElement(t))u=k.cloneElement(t,eh(eh({},l),Kxe(t)));else if(ce(t))u=t(l);else if(wxe(t)&&!jxe(t)){var f=i(t,l);u=C.createElement(lA,{shapeType:n,elementProps:f})}else{var c=l;u=C.createElement(lA,{shapeType:n,elementProps:c})}return s?C.createElement(Oe,{className:a},u):u}function Xm(e,t){return t!=null&&"trapezoids"in e.props}function Qm(e,t){return t!=null&&"sectors"in e.props}function bc(e,t){return t!=null&&"points"in e.props}function qxe(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&o}function Gxe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Yxe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function Xxe(e,t){var n;return Xm(e,t)?n=qxe:Qm(e,t)?n=Gxe:bc(e,t)&&(n=Yxe),n}function Qxe(e,t){var n;return Xm(e,t)?n="trapezoids":Qm(e,t)?n="sectors":bc(e,t)&&(n="points"),n}function Jxe(e,t){if(Xm(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Qm(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return bc(e,t)?t.payload:{}}function Zxe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Qxe(n,t),o=Jxe(n,t),a=r.filter(function(l,u){var f=Yc(o,l),c=n.props[i].filter(function(m){var g=Xxe(n,t);return g(m,t)}),d=n.props[i].indexOf(c[c.length-1]),p=u===d;return f&&p}),s=r.indexOf(a[a.length-1]);return s}var Pd;function zs(e){"@babel/helpers - typeof";return zs=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},zs(e)}function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Za.apply(this,arguments)}function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uA(Object(n),!0).forEach(function(r){qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ebe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oD(r.key),r)}}function tbe(e,t,n){return t&&cA(e.prototype,t),n&&cA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nbe(e,t,n){return t=th(t),rbe(e,iD()?Reflect.construct(t,n||[],th(e).constructor):t.apply(e,n))}function rbe(e,t){if(t&&(zs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ibe(e)}function ibe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iD=function(){return!!e})()}function th(e){return th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},th(e)}function obe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ub(e,t)}function ub(e,t){return ub=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ub(e,t)}function qn(e,t,n){return t=oD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oD(e){var t=abe(e,"string");return zs(t)=="symbol"?t:t+""}function abe(e,t){if(zs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ii=function(e){function t(n){var r;return ebe(this,t),r=nbe(this,t,[n]),qn(r,"pieRef",null),qn(r,"sectorRefs",[]),qn(r,"id",ba("recharts-pie-")),qn(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ce(i)&&i()}),qn(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ce(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return obe(t,e),tbe(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,s=o.labelLine,l=o.dataKey,u=o.valueKey,f=se(this.props,!1),c=se(a,!1),d=se(s,!1),p=a&&a.offsetRadius||20,m=r.map(function(g,v){var y=(g.startAngle+g.endAngle)/2,x=qe(g.cx,g.cy,g.outerRadius+p,y),b=He(He(He(He({},f),g),{},{stroke:"none"},c),{},{index:v,textAnchor:t.getTextAnchor(x.x,g.cx)},x),O=He(He(He(He({},f),g),{},{fill:"none",stroke:g.fill},d),{},{index:v,points:[qe(g.cx,g.cy,g.outerRadius,y),x]}),S=l;return me(l)&&me(u)?S="value":me(l)&&(S=u),C.createElement(Oe,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle,"-").concat(g.midAngle,"-").concat(v)},s&&t.renderLabelLineItem(s,O,"line"),t.renderLabelItem(a,b,dt(g,S)))});return C.createElement(Oe,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,l=o.inactiveShape;return r.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var c=i.isActiveIndex(f),d=l&&i.hasActiveIndex()?l:null,p=c?a:d,m=He(He({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return C.createElement(Oe,Za({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},ua(i.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),C.createElement(rD,Za({option:p,isActive:c,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,c=this.state,d=c.prevSectors,p=c.prevIsAnimationActive;return C.createElement(tr,{begin:s,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var g=m.t,v=[],y=o&&o[0],x=y.startAngle;return o.forEach(function(b,O){var S=d&&d[O],w=O>0?vn(b,"paddingAngle",0):0;if(S){var E=An(S.endAngle-S.startAngle,b.endAngle-b.startAngle),P=He(He({},b),{},{startAngle:x+w,endAngle:x+E(g)+w});v.push(P),x=P.endAngle}else{var _=b.endAngle,A=b.startAngle,$=An(0,_-A),N=$(g),R=He(He({},b),{},{startAngle:x+w,endAngle:x+N+w});v.push(R),x=R.endAngle}}),C.createElement(Oe,null,r.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!Yc(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,a=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,m=this.state.isAnimationFinished;if(o||!a||!a.length||!X(u)||!X(f)||!X(c)||!X(d))return null;var g=he("recharts-pie",s);return C.createElement(Oe,{tabIndex:this.props.rootTabIndex,className:g,ref:function(y){r.pieRef=y}},this.renderSectors(),l&&this.renderLabels(a),At.renderCallByParent(this.props,null,!1),(!p||m)&&di.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,o){if(C.isValidElement(r))return C.cloneElement(r,i);if(ce(r))return r(i);var a=he("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return C.createElement(Vp,Za({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(r,i,o){if(C.isValidElement(r))return C.cloneElement(r,i);var a=o;if(ce(r)&&(a=r(i),C.isValidElement(a)))return a;var s=he("recharts-pie-label-text",typeof r!="boolean"&&!ce(r)?r.className:"");return C.createElement(ca,Za({},i,{alignmentBaseline:"middle",className:s}),a)}}])}(k.PureComponent);Pd=Ii;qn(Ii,"displayName","Pie");qn(Ii,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ei.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});qn(Ii,"parseDeltaAngle",function(e,t){var n=Zt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});qn(Ii,"getRealPieData",function(e){var t=e.data,n=e.children,r=se(e,!1),i=Mn(n,Nm);return t&&t.length?t.map(function(o,a){return He(He(He({payload:o},r),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return He(He({},r),o.props)}):[]});qn(Ii,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=MR(i,o),s=r+en(e.cx,i,i/2),l=n+en(e.cy,o,o/2),u=en(e.innerRadius,a,0),f=en(e.outerRadius,a,a*.8),c=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:s,cy:l,innerRadius:u,outerRadius:f,maxRadius:c}});qn(Ii,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?He(He({},t.type.defaultProps),t.props):t.props,i=Pd.getRealPieData(r);if(!i||!i.length)return null;var o=r.cornerRadius,a=r.startAngle,s=r.endAngle,l=r.paddingAngle,u=r.dataKey,f=r.nameKey,c=r.valueKey,d=r.tooltipType,p=Math.abs(r.minAngle),m=Pd.parseCoordinateOfPie(r,n),g=Pd.parseDeltaAngle(a,s),v=Math.abs(g),y=u;me(u)&&me(c)?(br(!1,`Use "dataKey" to specify the value of pie,
|
|
457
|
+
the props "valueKey" will be deprecated in 1.1.0`),y="value"):me(u)&&(br(!1,`Use "dataKey" to specify the value of pie,
|
|
458
|
+
the props "valueKey" will be deprecated in 1.1.0`),y=c);var x=i.filter(function(P){return dt(P,y,0)!==0}).length,b=(v>=360?x:x-1)*l,O=v-x*p-b,S=i.reduce(function(P,_){var A=dt(_,y,0);return P+(X(A)?A:0)},0),w;if(S>0){var E;w=i.map(function(P,_){var A=dt(P,y,0),$=dt(P,f,_),N=(X(A)?A:0)/S,R;_?R=E.endAngle+Zt(g)*l*(A!==0?1:0):R=a;var F=R+Zt(g)*((A!==0?p:0)+N*O),I=(R+F)/2,D=(m.innerRadius+m.outerRadius)/2,L=[{name:$,value:A,payload:P,dataKey:y,type:d}],M=qe(m.cx,m.cy,D,I);return E=He(He(He({percent:N,cornerRadius:o,name:$,tooltipPayload:L,midAngle:I,middleRadius:D,tooltipPosition:M},P),m),{},{value:dt(P,y),startAngle:R,endAngle:F,payload:P,paddingAngle:Zt(g)*l}),E})}return He(He({},m),{},{sectors:w,data:i})});var sbe=Math.ceil,lbe=Math.max;function ube(e,t,n,r){for(var i=-1,o=lbe(sbe((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var cbe=ube,fbe=SI,fA=1/0,dbe=17976931348623157e292;function pbe(e){if(!e)return e===0?e:0;if(e=fbe(e),e===fA||e===-fA){var t=e<0?-1:1;return t*dbe}return e===e?e:0}var aD=pbe,hbe=cbe,mbe=Tm,Ty=aD;function gbe(e){return function(t,n,r){return r&&typeof r!="number"&&mbe(t,n,r)&&(n=r=void 0),t=Ty(t),n===void 0?(n=t,t=0):n=Ty(n),r=r===void 0?t<n?1:-1:Ty(r),hbe(t,n,r,e)}}var ybe=gbe,vbe=ybe,xbe=vbe(),bbe=xbe;const nh=Ce(bbe);function wc(e){"@babel/helpers - typeof";return wc=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},wc(e)}function dA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dA(Object(n),!0).forEach(function(r){sD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sD(e,t,n){return t=wbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wbe(e){var t=Sbe(e,"string");return wc(t)=="symbol"?t:t+""}function Sbe(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kbe=["Webkit","Moz","O","ms"],Obe=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=kbe.reduce(function(o,a){return pA(pA({},o),{},sD({},a+r,n))},{});return i[t]=n,i};function Bs(e){"@babel/helpers - typeof";return Bs=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},Bs(e)}function rh(){return rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rh.apply(this,arguments)}function hA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ny(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hA(Object(n),!0).forEach(function(r){En(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ebe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uD(r.key),r)}}function Pbe(e,t,n){return t&&mA(e.prototype,t),n&&mA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jbe(e,t,n){return t=ih(t),Abe(e,lD()?Reflect.construct(t,n||[],ih(e).constructor):t.apply(e,n))}function Abe(e,t){if(t&&(Bs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _be(e)}function _be(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lD=function(){return!!e})()}function ih(e){return ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ih(e)}function Cbe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cb(e,t)}function cb(e,t){return cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cb(e,t)}function En(e,t,n){return t=uD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uD(e){var t=Tbe(e,"string");return Bs(t)=="symbol"?t:t+""}function Tbe(e,t){if(Bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nbe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=gu().domain(nh(0,l)).range([o,o+a-s]),f=u.domain().map(function(c){return u(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:f}},gA=function(t){return t.changedTouches&&!!t.changedTouches.length},Ws=function(e){function t(n){var r;return Ebe(this,t),r=jbe(this,t,[n]),En(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),En(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),En(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),r.detachDragEndListener()}),En(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),En(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),En(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),En(r,"handleSlideDragStart",function(i){var o=gA(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Cbe(t,e),Pbe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,c=Math.min(i,o),d=Math.max(i,o),p=t.getIndexInRange(a,c),m=t.getIndexInRange(a,d);return{startIndex:p-p%l,endIndex:m===f?f:m-m%l}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,l=dt(o[r],s,r);return ce(a)?a(l,r):l}},{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(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,c=l.travellerWidth,d=l.startIndex,p=l.endIndex,m=l.onChange,g=r.pageX-o;g>0?g=Math.min(g,u+f-c-s,u+f-c-a):g<0&&(g=Math.max(g,u-a,u-s));var v=this.getIndex({startX:a+g,endX:s+g});(v.startIndex!==d||v.endIndex!==p)&&m&&m(v),this.setState({startX:a+g,endX:s+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=gA(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[a],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,m=f.onChange,g=f.gap,v=f.data,y={startX:this.state.startX,endX:this.state.endX},x=r.pageX-o;x>0?x=Math.min(x,c+d-p-u):x<0&&(x=Math.max(x,c-u)),y[a]=u+x;var b=this.getIndex(y),O=b.startIndex,S=b.endIndex,w=function(){var P=v.length-1;return a==="startX"&&(s>l?O%g===0:S%g===0)||s<l&&S===P||a==="endX"&&(s>l?S%g===0:O%g===0)||s>l&&S===P};this.setState(En(En({},a,u+x),"brushMoveStartX",r.pageX),function(){m&&w()&&m(b)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,s=a.scaleValues,l=a.startX,u=a.endX,f=this.state[i],c=s.indexOf(f);if(c!==-1){var d=c+r;if(!(d===-1||d>=s.length)){var p=s[d];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(En({},i,p),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.fill,u=r.stroke;return C.createElement("rect",{stroke:u,fill:l,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.data,u=r.children,f=r.padding,c=k.Children.only(u);return c?C.cloneElement(c,{x:i,y:o,width:a,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,s=this,l=this.props,u=l.y,f=l.travellerWidth,c=l.height,d=l.traveller,p=l.ariaLabel,m=l.data,g=l.startIndex,v=l.endIndex,y=Math.max(r,this.props.x),x=Ny(Ny({},se(this.props,!1)),{},{x:y,y:u,width:f,height:c}),b=p||"Min value: ".concat((o=m[g])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=m[v])===null||a===void 0?void 0:a.name);return C.createElement(Oe,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(S){["ArrowLeft","ArrowRight"].includes(S.key)&&(S.preventDefault(),S.stopPropagation(),s.handleTravellerMoveKeyboard(S.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,s=o.height,l=o.stroke,u=o.travellerWidth,f=Math.min(r,i)+u,c=Math.max(Math.abs(i-r)-u,0);return C.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:a,width:c,height:s})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,s=r.height,l=r.travellerWidth,u=r.stroke,f=this.state,c=f.startX,d=f.endX,p=5,m={pointerEvents:"none",fill:u};return C.createElement(Oe,{className:"recharts-brush-texts"},C.createElement(ca,rh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:a+s/2},m),this.getTextOfTick(i)),C.createElement(ca,rh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+l+p,y:a+s/2},m),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,s=r.x,l=r.y,u=r.width,f=r.height,c=r.alwaysShowText,d=this.state,p=d.startX,m=d.endX,g=d.isTextActive,v=d.isSlideMoving,y=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!X(s)||!X(l)||!X(u)||!X(f)||u<=0||f<=0)return null;var b=he("recharts-brush",o),O=C.Children.count(a)===1,S=Obe("userSelect","none");return C.createElement(Oe,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(g||v||y||x||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,s=r.height,l=r.stroke,u=Math.floor(o+s/2)-1;return C.createElement(C.Fragment,null,C.createElement("rect",{x:i,y:o,width:a,height:s,fill:l,stroke:"none"}),C.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),C.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return C.isValidElement(r)?o=C.cloneElement(r,i):ce(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,s=r.x,l=r.travellerWidth,u=r.updateId,f=r.startIndex,c=r.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return Ny({prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?Nbe({data:o,width:a,x:s,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+a-l]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,s=o-1;s-a>1;){var l=Math.floor((a+s)/2);r[l]>i?s=l:a=l}return i>=r[s]?s:a}}])}(k.PureComponent);En(Ws,"displayName","Brush");En(Ws,"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 $be=Vw;function Mbe(e,t){var n;return $be(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var Ibe=Mbe,Rbe=KM,Dbe=Xr,Lbe=Ibe,Fbe=an,zbe=Tm;function Bbe(e,t,n){var r=Fbe(e)?Rbe:Lbe;return n&&zbe(e,t,n)&&(t=void 0),r(e,Dbe(t))}var Wbe=Bbe;const Ube=Ce(Wbe);var Hr=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},yA=gI;function Hbe(e,t,n){t=="__proto__"&&yA?yA(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var b1=Hbe,Vbe=b1,Kbe=pI,qbe=Xr;function Gbe(e,t){var n={};return t=qbe(t),Kbe(e,function(r,i,o){Vbe(n,i,t(r,i,o))}),n}var Ybe=Gbe;const Xbe=Ce(Ybe);function Qbe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var Jbe=Qbe,Zbe=Vw;function e0e(e,t){var n=!0;return Zbe(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var t0e=e0e,n0e=Jbe,r0e=t0e,i0e=Xr,o0e=an,a0e=Tm;function s0e(e,t,n){var r=o0e(e)?n0e:r0e;return n&&a0e(e,t,n)&&(t=void 0),r(e,i0e(t))}var l0e=s0e;const cD=Ce(l0e);var u0e=["x","y"];function Sc(e){"@babel/helpers - typeof";return Sc=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},Sc(e)}function fb(){return fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fb.apply(this,arguments)}function vA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vA(Object(n),!0).forEach(function(r){c0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c0e(e,t,n){return t=f0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f0e(e){var t=d0e(e,"string");return Sc(t)=="symbol"?t:t+""}function d0e(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p0e(e,t){if(e==null)return{};var n=h0e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function m0e(e,t){var n=e.x,r=e.y,i=p0e(e,u0e),o="".concat(n),a=parseInt(o,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),c="".concat(t.width||i.width),d=parseInt(c,10);return Jl(Jl(Jl(Jl(Jl({},t),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function xA(e){return C.createElement(rD,fb({shapeType:"rectangle",propTransformer:m0e,activeClassName:"recharts-active-bar"},e))}var g0e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=X(r)||eee(r);return o?t(r,i):(o||da(),n)}},y0e=["value","background"],fD;function Us(e){"@babel/helpers - typeof";return Us=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},Us(e)}function v0e(e,t){if(e==null)return{};var n=x0e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function oh(){return oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oh.apply(this,arguments)}function bA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bA(Object(n),!0).forEach(function(r){eo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pD(r.key),r)}}function w0e(e,t,n){return t&&wA(e.prototype,t),n&&wA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S0e(e,t,n){return t=ah(t),k0e(e,dD()?Reflect.construct(t,n||[],ah(e).constructor):t.apply(e,n))}function k0e(e,t){if(t&&(Us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O0e(e)}function O0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dD=function(){return!!e})()}function ah(e){return ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ah(e)}function E0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&db(e,t)}function db(e,t){return db=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},db(e,t)}function eo(e,t,n){return t=pD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pD(e){var t=P0e(e,"string");return Us(t)=="symbol"?t:t+""}function P0e(e,t){if(Us(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qn=function(e){function t(){var n;b0e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=S0e(this,t,[].concat(i)),eo(n,"state",{isAnimationFinished:!1}),eo(n,"id",ba("recharts-bar-")),eo(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),eo(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return E0e(t,e),w0e(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.dataKey,l=o.activeIndex,u=o.activeBar,f=se(this.props,!1);return r&&r.map(function(c,d){var p=d===l,m=p?u:a,g=ht(ht(ht({},f),c),{},{isActive:p,option:m,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return C.createElement(Oe,oh({className:"recharts-bar-rectangle"},ua(i.props,c,d),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(d)}),C.createElement(xA,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,a=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,f=i.animationEasing,c=i.animationId,d=this.state.prevData;return C.createElement(tr,{begin:l,duration:u,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,g=o.map(function(v,y){var x=d&&d[y];if(x){var b=An(x.x,v.x),O=An(x.y,v.y),S=An(x.width,v.width),w=An(x.height,v.height);return ht(ht({},v),{},{x:b(m),y:O(m),width:S(m),height:w(m)})}if(a==="horizontal"){var E=An(0,v.height),P=E(m);return ht(ht({},v),{},{y:v.y+v.height-P,height:P})}var _=An(0,v.width),A=_(m);return ht(ht({},v),{},{width:A})});return C.createElement(Oe,null,r.renderRectanglesStatically(g))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!Yc(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,a=i.dataKey,s=i.activeIndex,l=se(this.props.background,!1);return o.map(function(u,f){u.value;var c=u.background,d=v0e(u,y0e);if(!c)return null;var p=ht(ht(ht(ht(ht({},d),{},{fill:"#eee"},c),l),ua(r.props,u,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:f,className:"recharts-bar-background-rectangle"});return C.createElement(xA,oh({key:"background-bar-".concat(f),option:r.props.background,isActive:f===s},p))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,s=o.xAxis,l=o.yAxis,u=o.layout,f=o.children,c=Mn(f,Xc);if(!c)return null;var d=u==="vertical"?a[0].height/2:a[0].width/2,p=function(v,y){var x=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:x,errorVal:dt(v,y)}},m={clipPath:r?"url(#clipPath-".concat(i,")"):null};return C.createElement(Oe,m,c.map(function(g){return C.cloneElement(g,{key:"error-bar-".concat(i,"-").concat(g.props.dataKey),data:a,xAxis:s,yAxis:l,layout:u,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,a=r.className,s=r.xAxis,l=r.yAxis,u=r.left,f=r.top,c=r.width,d=r.height,p=r.isAnimationActive,m=r.background,g=r.id;if(i||!o||!o.length)return null;var v=this.state.isAnimationFinished,y=he("recharts-bar",a),x=s&&s.allowDataOverflow,b=l&&l.allowDataOverflow,O=x||b,S=me(g)?this.id:g;return C.createElement(Oe,{className:y},x||b?C.createElement("defs",null,C.createElement("clipPath",{id:"clipPath-".concat(S)},C.createElement("rect",{x:x?u:u-c/2,y:b?f:f-d/2,width:x?c:c*2,height:b?d:d*2}))):null,C.createElement(Oe,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(S,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,S),(!p||v)&&di.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])}(k.PureComponent);fD=Qn;eo(Qn,"displayName","Bar");eo(Qn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ei.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});eo(Qn,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=sme(r,n);if(!p)return null;var m=t.layout,g=n.type.defaultProps,v=g!==void 0?ht(ht({},g),n.props):n.props,y=v.dataKey,x=v.children,b=v.minPointSize,O=m==="horizontal"?a:o,S=u?O.scale.domain():null,w=hme({numericAxis:O}),E=Mn(x,Nm),P=c.map(function(_,A){var $,N,R,F,I,D;u?$=lme(u[f+A],S):($=dt(_,y),Array.isArray($)||($=[w,$]));var L=g0e(b,fD.defaultProps.minPointSize)($[1],A);if(m==="horizontal"){var M,z=[a.scale($[0]),a.scale($[1])],j=z[0],W=z[1];N=pj({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:_,index:A}),R=(M=W??j)!==null&&M!==void 0?M:void 0,F=p.size;var U=j-W;if(I=Number.isNaN(U)?0:U,D={x:N,y:a.y,width:F,height:a.height},Math.abs(L)>0&&Math.abs(I)<Math.abs(L)){var T=Zt(I||L)*(Math.abs(L)-Math.abs(I));R-=T,I+=T}}else{var Y=[o.scale($[0]),o.scale($[1])],J=Y[0],Z=Y[1];if(N=J,R=pj({axis:a,ticks:l,bandSize:i,offset:p.offset,entry:_,index:A}),F=Z-J,I=p.size,D={x:o.x,y:R,width:o.width,height:I},Math.abs(L)>0&&Math.abs(F)<Math.abs(L)){var Ae=Zt(F||L)*(Math.abs(L)-Math.abs(F));F+=Ae}}return ht(ht(ht({},_),{},{x:N,y:R,width:F,height:I,value:u?$:$[1],payload:_,background:D},E&&E[A]&&E[A].props),{},{tooltipPayload:[NR(n,_)],tooltipPosition:{x:N+F/2,y:R+I/2}})});return ht({data:P,layout:m},d)});function kc(e){"@babel/helpers - typeof";return kc=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},kc(e)}function j0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hD(r.key),r)}}function A0e(e,t,n){return t&&SA(e.prototype,t),n&&SA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kA(Object(n),!0).forEach(function(r){Jm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jm(e,t,n){return t=hD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hD(e){var t=_0e(e,"string");return kc(t)=="symbol"?t:t+""}function _0e(e,t){if(kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mD=function(t,n,r,i,o){var a=t.width,s=t.height,l=t.layout,u=t.children,f=Object.keys(n),c={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},d=!!Ut(u,Qn);return f.reduce(function(p,m){var g=n[m],v=g.orientation,y=g.domain,x=g.padding,b=x===void 0?{}:x,O=g.mirror,S=g.reversed,w="".concat(v).concat(O?"Mirror":""),E,P,_,A,$;if(g.type==="number"&&(g.padding==="gap"||g.padding==="no-gap")){var N=y[1]-y[0],R=1/0,F=g.categoricalDomain.sort(ree);if(F.forEach(function(Y,J){J>0&&(R=Math.min((Y||0)-(F[J-1]||0),R))}),Number.isFinite(R)){var I=R/N,D=g.layout==="vertical"?r.height:r.width;if(g.padding==="gap"&&(E=I*D/2),g.padding==="no-gap"){var L=en(t.barCategoryGap,I*D),M=I*D/2;E=M-L-(M-L)/D*L}}}i==="xAxis"?P=[r.left+(b.left||0)+(E||0),r.left+r.width-(b.right||0)-(E||0)]:i==="yAxis"?P=l==="horizontal"?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(E||0),r.top+r.height-(b.bottom||0)-(E||0)]:P=g.range,S&&(P=[P[1],P[0]]);var z=AR(g,o,d),j=z.scale,W=z.realScaleType;j.domain(y).range(P),_R(j);var U=CR(j,pr(pr({},g),{},{realScaleType:W}));i==="xAxis"?($=v==="top"&&!O||v==="bottom"&&O,_=r.left,A=c[w]-$*g.height):i==="yAxis"&&($=v==="left"&&!O||v==="right"&&O,_=c[w]-$*g.width,A=r.top);var T=pr(pr(pr({},g),U),{},{realScaleType:W,x:_,y:A,scale:j,width:i==="xAxis"?r.width:g.width,height:i==="yAxis"?r.height:g.height});return T.bandSize=Wp(T,U),!g.hide&&i==="xAxis"?c[w]+=($?-1:1)*T.height:g.hide||(c[w]+=($?-1:1)*T.width),pr(pr({},p),{},Jm({},m,T))},{})},gD=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return{x:Math.min(r,o),y:Math.min(i,a),width:Math.abs(o-r),height:Math.abs(a-i)}},C0e=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return gD({x:n,y:r},{x:i,y:o})},yD=function(){function e(t){j0e(this,e),this.scale=t}return A0e(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(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();Jm(yD,"EPS",1e-4);var w1=function(t){var n=Object.keys(t).reduce(function(r,i){return pr(pr({},r),{},Jm({},i,yD.create(t[i])))},{});return pr(pr({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return Xbe(i,function(l,u){return n[u].apply(l,{bandAware:a,position:s})})},isInRange:function(i){return cD(i,function(o,a){return n[a].isInRange(o)})}})};function T0e(e){return(e%180+180)%180}var N0e=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=T0e(i),a=o*Math.PI/180,s=Math.atan(r/n),l=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(l)},$0e=Xr,M0e=bl,I0e=wl;function R0e(e){return function(t,n,r){var i=Object(t);if(!M0e(t)){var o=$0e(n);t=I0e(t),n=function(s){return o(i[s],s,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}var D0e=R0e,L0e=aD;function F0e(e){var t=L0e(e),n=t%1;return t===t?n?t-n:t:0}var z0e=F0e,B0e=lI,W0e=Xr,U0e=z0e,H0e=Math.max;function V0e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:U0e(n);return i<0&&(i=H0e(r+i,0)),B0e(e,W0e(t),i)}var K0e=V0e,q0e=D0e,G0e=K0e,Y0e=q0e(G0e),X0e=Y0e;const Q0e=Ce(X0e);var J0e=aZ(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),S1=k.createContext(void 0),k1=k.createContext(void 0),vD=k.createContext(void 0),xD=k.createContext({}),bD=k.createContext(void 0),wD=k.createContext(0),SD=k.createContext(0),OA=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,s=t.children,l=t.width,u=t.height,f=J0e(o);return C.createElement(S1.Provider,{value:r},C.createElement(k1.Provider,{value:i},C.createElement(xD.Provider,{value:o},C.createElement(vD.Provider,{value:f},C.createElement(bD.Provider,{value:a},C.createElement(wD.Provider,{value:u},C.createElement(SD.Provider,{value:l},s)))))))},Z0e=function(){return k.useContext(bD)},kD=function(t){var n=k.useContext(S1);n==null&&da();var r=n[t];return r==null&&da(),r},ewe=function(){var t=k.useContext(S1);return Xi(t)},twe=function(){var t=k.useContext(k1),n=Q0e(t,function(r){return cD(r.domain,Number.isFinite)});return n||Xi(t)},OD=function(t){var n=k.useContext(k1);n==null&&da();var r=n[t];return r==null&&da(),r},nwe=function(){var t=k.useContext(vD);return t},rwe=function(){return k.useContext(xD)},O1=function(){return k.useContext(SD)},E1=function(){return k.useContext(wD)};function Hs(e){"@babel/helpers - typeof";return Hs=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},Hs(e)}function iwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function owe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PD(r.key),r)}}function awe(e,t,n){return t&&owe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function swe(e,t,n){return t=sh(t),lwe(e,ED()?Reflect.construct(t,n||[],sh(e).constructor):t.apply(e,n))}function lwe(e,t){if(t&&(Hs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uwe(e)}function uwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ED(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ED=function(){return!!e})()}function sh(e){return sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sh(e)}function cwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pb(e,t)}function pb(e,t){return pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},pb(e,t)}function EA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function PA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EA(Object(n),!0).forEach(function(r){P1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P1(e,t,n){return t=PD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PD(e){var t=fwe(e,"string");return Hs(t)=="symbol"?t:t+""}function fwe(e,t){if(Hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dwe(e,t){return gwe(e)||mwe(e,t)||hwe(e,t)||pwe()}function pwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
459
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hwe(e,t){if(e){if(typeof e=="string")return jA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jA(e,t)}}function jA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mwe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function gwe(e){if(Array.isArray(e))return e}function hb(){return hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hb.apply(this,arguments)}var ywe=function(t,n){var r;return C.isValidElement(t)?r=C.cloneElement(t,n):ce(t)?r=t(n):r=C.createElement("line",hb({},n,{className:"recharts-reference-line-line"})),r},vwe=function(t,n,r,i,o,a,s,l,u){var f=o.x,c=o.y,d=o.width,p=o.height;if(r){var m=u.y,g=t.y.apply(m,{position:a});if(Hr(u,"discard")&&!t.y.isInRange(g))return null;var v=[{x:f+d,y:g},{x:f,y:g}];return l==="left"?v.reverse():v}if(n){var y=u.x,x=t.x.apply(y,{position:a});if(Hr(u,"discard")&&!t.x.isInRange(x))return null;var b=[{x,y:c+p},{x,y:c}];return s==="top"?b.reverse():b}if(i){var O=u.segment,S=O.map(function(w){return t.apply(w,{position:a})});return Hr(u,"discard")&&Ube(S,function(w){return!t.isInRange(w)})?null:S}return null};function xwe(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,l=e.alwaysShow,u=Z0e(),f=kD(i),c=OD(o),d=nwe();if(!u||!d)return null;br(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=w1({x:f.scale,y:c.scale}),m=St(t),g=St(n),v=r&&r.length===2,y=vwe(p,m,g,v,d,e.position,f.orientation,c.orientation,e);if(!y)return null;var x=dwe(y,2),b=x[0],O=b.x,S=b.y,w=x[1],E=w.x,P=w.y,_=Hr(e,"hidden")?"url(#".concat(u,")"):void 0,A=PA(PA({clipPath:_},se(e,!0)),{},{x1:O,y1:S,x2:E,y2:P});return C.createElement(Oe,{className:he("recharts-reference-line",s)},ywe(a,A),At.renderCallByParent(e,C0e({x1:O,y1:S,x2:E,y2:P})))}var j1=function(e){function t(){return iwe(this,t),swe(this,t,arguments)}return cwe(t,e),awe(t,[{key:"render",value:function(){return C.createElement(xwe,this.props)}}])}(C.Component);P1(j1,"displayName","ReferenceLine");P1(j1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mb.apply(this,arguments)}function Vs(e){"@babel/helpers - typeof";return Vs=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},Vs(e)}function AA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AA(Object(n),!0).forEach(function(r){Zm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wwe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AD(r.key),r)}}function Swe(e,t,n){return t&&wwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kwe(e,t,n){return t=lh(t),Owe(e,jD()?Reflect.construct(t,n||[],lh(e).constructor):t.apply(e,n))}function Owe(e,t){if(t&&(Vs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ewe(e)}function Ewe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jD=function(){return!!e})()}function lh(e){return lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lh(e)}function Pwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gb(e,t)}function gb(e,t){return gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gb(e,t)}function Zm(e,t,n){return t=AD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AD(e){var t=jwe(e,"string");return Vs(t)=="symbol"?t:t+""}function jwe(e,t){if(Vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Awe=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,a=w1({x:i.scale,y:o.scale}),s=a.apply({x:n,y:r},{bandAware:!0});return Hr(t,"discard")&&!a.isInRange(s)?null:s},eg=function(e){function t(){return bwe(this,t),kwe(this,t,arguments)}return Pwe(t,e),Swe(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,a=r.r,s=r.alwaysShow,l=r.clipPathId,u=St(i),f=St(o);if(br(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var c=Awe(this.props);if(!c)return null;var d=c.x,p=c.y,m=this.props,g=m.shape,v=m.className,y=Hr(this.props,"hidden")?"url(#".concat(l,")"):void 0,x=_A(_A({clipPath:y},se(this.props,!0)),{},{cx:d,cy:p});return C.createElement(Oe,{className:he("recharts-reference-dot",v)},t.renderDot(g,x),At.renderCallByParent(this.props,{x:d-a,y:p-a,width:2*a,height:2*a}))}}])}(C.Component);Zm(eg,"displayName","ReferenceDot");Zm(eg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Zm(eg,"renderDot",function(e,t){var n;return C.isValidElement(e)?n=C.cloneElement(e,t):ce(e)?n=e(t):n=C.createElement(Vm,mb({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yb.apply(this,arguments)}function Ks(e){"@babel/helpers - typeof";return Ks=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},Ks(e)}function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function TA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CA(Object(n),!0).forEach(function(r){tg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cwe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CD(r.key),r)}}function Twe(e,t,n){return t&&Cwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nwe(e,t,n){return t=uh(t),$we(e,_D()?Reflect.construct(t,n||[],uh(e).constructor):t.apply(e,n))}function $we(e,t){if(t&&(Ks(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mwe(e)}function Mwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_D=function(){return!!e})()}function uh(e){return uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uh(e)}function Iwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vb(e,t)}function vb(e,t){return vb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vb(e,t)}function tg(e,t,n){return t=CD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CD(e){var t=Rwe(e,"string");return Ks(t)=="symbol"?t:t+""}function Rwe(e,t){if(Ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Dwe=function(t,n,r,i,o){var a=o.x1,s=o.x2,l=o.y1,u=o.y2,f=o.xAxis,c=o.yAxis;if(!f||!c)return null;var d=w1({x:f.scale,y:c.scale}),p={x:t?d.x.apply(a,{position:"start"}):d.x.rangeMin,y:r?d.y.apply(l,{position:"start"}):d.y.rangeMin},m={x:n?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Hr(o,"discard")&&(!d.isInRange(p)||!d.isInRange(m))?null:gD(p,m)},ng=function(e){function t(){return _we(this,t),Nwe(this,t,arguments)}return Iwe(t,e),Twe(t,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,a=r.y1,s=r.y2,l=r.className,u=r.alwaysShow,f=r.clipPathId;br(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=St(i),d=St(o),p=St(a),m=St(s),g=this.props.shape;if(!c&&!d&&!p&&!m&&!g)return null;var v=Dwe(c,d,p,m,this.props);if(!v&&!g)return null;var y=Hr(this.props,"hidden")?"url(#".concat(f,")"):void 0;return C.createElement(Oe,{className:he("recharts-reference-area",l)},t.renderRect(g,TA(TA({clipPath:y},se(this.props,!0)),v)),At.renderCallByParent(this.props,v))}}])}(C.Component);tg(ng,"displayName","ReferenceArea");tg(ng,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});tg(ng,"renderRect",function(e,t){var n;return C.isValidElement(e)?n=C.cloneElement(e,t):ce(e)?n=e(t):n=C.createElement(Hm,yb({},t,{className:"recharts-reference-area-rect"})),n});function TD(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function Lwe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return N0e(r,n)}function Fwe(e,t,n){var r=n==="width",i=e.x,o=e.y,a=e.width,s=e.height;return t===1?{start:r?i:o,end:r?i+a:o+s}:{start:r?i+a:o+s,end:r?i:o}}function ch(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function zwe(e,t){return TD(e,t+1)}function Bwe(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,s=t.end,l=0,u=1,f=a,c=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:TD(r,u)};var g=l,v,y=function(){return v===void 0&&(v=n(m,g)),v},x=m.coordinate,b=l===0||ch(e,x,y,f,s);b||(l=0,f=a,u+=1),b&&(f=x+e*(y()/2+i),l+=u)},d;u<=o.length;)if(d=c(),d)return d.v;return[]}function Oc(e){"@babel/helpers - typeof";return Oc=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},Oc(e)}function NA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NA(Object(n),!0).forEach(function(r){Wwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wwe(e,t,n){return t=Uwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uwe(e){var t=Hwe(e,"string");return Oc(t)=="symbol"?t:t+""}function Hwe(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vwe(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,s=t.start,l=t.end,u=function(d){var p=o[d],m,g=function(){return m===void 0&&(m=n(p,d)),m};if(d===a-1){var v=e*(p.coordinate+e*g()/2-l);o[d]=p=Wt(Wt({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate})}else o[d]=p=Wt(Wt({},p),{},{tickCoord:p.coordinate});var y=ch(e,p.tickCoord,g,s,l);y&&(l=p.tickCoord-e*(g()/2+i),o[d]=Wt(Wt({},p),{},{isShow:!0}))},f=a-1;f>=0;f--)u(f);return o}function Kwe(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,l=t.start,u=t.end;if(o){var f=r[s-1],c=n(f,s-1),d=e*(f.coordinate+e*c/2-u);a[s-1]=f=Wt(Wt({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=ch(e,f.tickCoord,function(){return c},l,u);p&&(u=f.tickCoord-e*(c/2+i),a[s-1]=Wt(Wt({},f),{},{isShow:!0}))}for(var m=o?s-1:s,g=function(x){var b=a[x],O,S=function(){return O===void 0&&(O=n(b,x)),O};if(x===0){var w=e*(b.coordinate-e*S()/2-l);a[x]=b=Wt(Wt({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else a[x]=b=Wt(Wt({},b),{},{tickCoord:b.coordinate});var E=ch(e,b.tickCoord,S,l,u);E&&(l=b.tickCoord+e*(S()/2+i),a[x]=Wt(Wt({},b),{},{isShow:!0}))},v=0;v<m;v++)g(v);return a}function A1(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,f=e.unit,c=e.angle;if(!i||!i.length||!r)return[];if(X(l)||Ei.isSsr)return zwe(i,typeof l=="number"&&X(l)?l:0);var d=[],p=s==="top"||s==="bottom"?"width":"height",m=f&&p==="width"?ds(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(b,O){var S=ce(u)?u(b.value,O):b.value;return p==="width"?Lwe(ds(S,{fontSize:t,letterSpacing:n}),m,c):ds(S,{fontSize:t,letterSpacing:n})[p]},v=i.length>=2?Zt(i[1].coordinate-i[0].coordinate):1,y=Fwe(o,v,p);return l==="equidistantPreserveStart"?Bwe(v,y,g,i,a):(l==="preserveStart"||l==="preserveStartEnd"?d=Kwe(v,y,g,i,a,l==="preserveStartEnd"):d=Vwe(v,y,g,i,a),d.filter(function(x){return x.isShow}))}var qwe=["viewBox"],Gwe=["viewBox"],Ywe=["ticks"];function qs(e){"@babel/helpers - typeof";return qs=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},qs(e)}function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},es.apply(this,arguments)}function $A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(n),!0).forEach(function(r){_1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $y(e,t){if(e==null)return{};var n=Xwe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Qwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$D(r.key),r)}}function Jwe(e,t,n){return t&&MA(e.prototype,t),n&&MA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zwe(e,t,n){return t=fh(t),e1e(e,ND()?Reflect.construct(t,n||[],fh(e).constructor):t.apply(e,n))}function e1e(e,t){if(t&&(qs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t1e(e)}function t1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ND(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ND=function(){return!!e})()}function fh(e){return fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fh(e)}function n1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xb(e,t)}function xb(e,t){return xb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xb(e,t)}function _1(e,t,n){return t=$D(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $D(e){var t=r1e(e,"string");return qs(t)=="symbol"?t:t+""}function r1e(e,t){if(qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Al=function(e){function t(n){var r;return Qwe(this,t),r=Zwe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return n1e(t,e),Jwe(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=$y(r,qwe),s=this.props,l=s.viewBox,u=$y(s,Gwe);return!fs(o,l)||!fs(a,u)||!fs(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.x,a=i.y,s=i.width,l=i.height,u=i.orientation,f=i.tickSize,c=i.mirror,d=i.tickMargin,p,m,g,v,y,x,b=c?-1:1,O=r.tickSize||f,S=X(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=m=r.coordinate,v=a+ +!c*l,g=v-b*O,x=g-b*d,y=S;break;case"left":g=v=r.coordinate,m=o+ +!c*s,p=m-b*O,y=p-b*d,x=S;break;case"right":g=v=r.coordinate,m=o+ +c*s,p=m+b*O,y=p+b*d,x=S;break;default:p=m=r.coordinate,v=a+ +c*l,g=v+b*O,x=g+b*d,y=S;break}return{line:{x1:p,y1:g,x2:m,y2:v},tick:{x:y,y:x}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,l=r.orientation,u=r.mirror,f=r.axisLine,c=vt(vt(vt({},se(this.props,!1)),se(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);c=vt(vt({},c),{},{x1:i,y1:o+d*s,x2:i+a,y2:o+d*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);c=vt(vt({},c),{},{x1:i+p*a,y1:o,x2:i+p*a,y2:o+s})}return C.createElement("line",es({},c,{className:he("recharts-cartesian-axis-line",vn(f,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var a=this,s=this.props,l=s.tickLine,u=s.stroke,f=s.tick,c=s.tickFormatter,d=s.unit,p=A1(vt(vt({},this.props),{},{ticks:r}),i,o),m=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),v=se(this.props,!1),y=se(f,!1),x=vt(vt({},v),{},{fill:"none"},se(l,!1)),b=p.map(function(O,S){var w=a.getTickLineCoord(O),E=w.line,P=w.tick,_=vt(vt(vt(vt({textAnchor:m,verticalAnchor:g},v),{},{stroke:"none",fill:u},y),P),{},{index:S,payload:O,visibleTicksCount:p.length,tickFormatter:c});return C.createElement(Oe,es({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},ua(a.props,O,S)),l&&C.createElement("line",es({},x,E,{className:he("recharts-cartesian-axis-tick-line",vn(l,"className"))})),f&&t.renderTickItem(f,_,"".concat(ce(c)?c(O.value,S):O.value).concat(d||"")))});return C.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,a=i.width,s=i.height,l=i.ticksGenerator,u=i.className,f=i.hide;if(f)return null;var c=this.props,d=c.ticks,p=$y(c,Ywe),m=d;return ce(l)&&(m=d&&d.length>0?l(this.props):l(p)),a<=0||s<=0||!m||!m.length?null:C.createElement(Oe,{className:he("recharts-cartesian-axis",u),ref:function(v){r.layerReference=v}},o&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),At.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a,s=he(i.className,"recharts-cartesian-axis-tick-value");return C.isValidElement(r)?a=C.cloneElement(r,vt(vt({},i),{},{className:s})):ce(r)?a=r(vt(vt({},i),{},{className:s})):a=C.createElement(ca,es({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}(k.Component);_1(Al,"displayName","CartesianAxis");_1(Al,"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 i1e=["x1","y1","x2","y2","key"],o1e=["offset"];function pa(e){"@babel/helpers - typeof";return pa=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},pa(e)}function IA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IA(Object(n),!0).forEach(function(r){a1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a1e(e,t,n){return t=s1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s1e(e){var t=l1e(e,"string");return pa(t)=="symbol"?t:t+""}function l1e(e,t){if(pa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yo(){return Yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yo.apply(this,arguments)}function RA(e,t){if(e==null)return{};var n=u1e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function u1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var c1e=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,l=t.ry;return C.createElement("rect",{x:i,y:o,ry:l,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function MD(e,t){var n;if(C.isValidElement(e))n=C.cloneElement(e,t);else if(ce(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,l=RA(t,i1e),u=se(l,!1);u.offset;var f=RA(u,o1e);n=C.createElement("line",Yo({},f,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:s}))}return n}function f1e(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=Vt(Vt({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(l),index:l});return MD(i,u)});return C.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function d1e(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,l){var u=Vt(Vt({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(l),index:l});return MD(i,u)});return C.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function p1e(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var f=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],g=m?i+a-d:f[p+1]-d;if(g<=0)return null;var v=p%t.length;return C.createElement("rect",{key:"react-".concat(p),y:d,x:r,height:g,width:o,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return C.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function h1e(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var f=u.map(function(d){return Math.round(d+o-o)}).sort(function(d,p){return d-p});o!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],g=m?o+s-d:f[p+1]-d;if(g<=0)return null;var v=p%r.length;return C.createElement("rect",{key:"react-".concat(p),x:d,y:a,width:g,height:l,stroke:"none",fill:r[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return C.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var m1e=function(t,n){var r=t.xAxis,i=t.width,o=t.height,a=t.offset;return jR(A1(Vt(Vt(Vt({},Al.defaultProps),r),{},{ticks:si(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,n)},g1e=function(t,n){var r=t.yAxis,i=t.width,o=t.height,a=t.offset;return jR(A1(Vt(Vt(Vt({},Al.defaultProps),r),{},{ticks:si(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,n)},Ia={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Qc(e){var t,n,r,i,o,a,s=O1(),l=E1(),u=rwe(),f=Vt(Vt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ia.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Ia.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Ia.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ia.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Ia.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Ia.verticalFill,x:X(e.x)?e.x:u.left,y:X(e.y)?e.y:u.top,width:X(e.width)?e.width:u.width,height:X(e.height)?e.height:u.height}),c=f.x,d=f.y,p=f.width,m=f.height,g=f.syncWithTicks,v=f.horizontalValues,y=f.verticalValues,x=ewe(),b=twe();if(!X(p)||p<=0||!X(m)||m<=0||!X(c)||c!==+c||!X(d)||d!==+d)return null;var O=f.verticalCoordinatesGenerator||m1e,S=f.horizontalCoordinatesGenerator||g1e,w=f.horizontalPoints,E=f.verticalPoints;if((!w||!w.length)&&ce(S)){var P=v&&v.length,_=S({yAxis:b?Vt(Vt({},b),{},{ticks:P?v:b.ticks}):void 0,width:s,height:l,offset:u},P?!0:g);br(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(pa(_),"]")),Array.isArray(_)&&(w=_)}if((!E||!E.length)&&ce(O)){var A=y&&y.length,$=O({xAxis:x?Vt(Vt({},x),{},{ticks:A?y:x.ticks}):void 0,width:s,height:l,offset:u},A?!0:g);br(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(pa($),"]")),Array.isArray($)&&(E=$)}return C.createElement("g",{className:"recharts-cartesian-grid"},C.createElement(c1e,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),C.createElement(f1e,Yo({},f,{offset:u,horizontalPoints:w,xAxis:x,yAxis:b})),C.createElement(d1e,Yo({},f,{offset:u,verticalPoints:E,xAxis:x,yAxis:b})),C.createElement(p1e,Yo({},f,{horizontalPoints:w})),C.createElement(h1e,Yo({},f,{verticalPoints:E})))}Qc.displayName="CartesianGrid";var y1e=["type","layout","connectNulls","ref"],v1e=["key"];function Gs(e){"@babel/helpers - typeof";return Gs=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},Gs(e)}function DA(e,t){if(e==null)return{};var n=x1e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function x1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function wu(){return wu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wu.apply(this,arguments)}function LA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(n),!0).forEach(function(r){hr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ra(e){return k1e(e)||S1e(e)||w1e(e)||b1e()}function b1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
460
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w1e(e,t){if(e){if(typeof e=="string")return bb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bb(e,t)}}function S1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function k1e(e){if(Array.isArray(e))return bb(e)}function bb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RD(r.key),r)}}function E1e(e,t,n){return t&&FA(e.prototype,t),n&&FA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P1e(e,t,n){return t=dh(t),j1e(e,ID()?Reflect.construct(t,n||[],dh(e).constructor):t.apply(e,n))}function j1e(e,t){if(t&&(Gs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A1e(e)}function A1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ID(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ID=function(){return!!e})()}function dh(e){return dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dh(e)}function _1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wb(e,t)}function wb(e,t){return wb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wb(e,t)}function hr(e,t,n){return t=RD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RD(e){var t=C1e(e,"string");return Gs(t)=="symbol"?t:t+""}function C1e(e,t){if(Gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jc=function(e){function t(){var n;O1e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=P1e(this,t,[].concat(i)),hr(n,"state",{isAnimationFinished:!0,totalLength:0}),hr(n,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),hr(n,"getStrokeDasharray",function(a,s,l){var u=l.reduce(function(y,x){return y+x});if(!u)return n.generateSimpleStrokeDasharray(s,a);for(var f=Math.floor(a/u),c=a%u,d=s-a,p=[],m=0,g=0;m<l.length;g+=l[m],++m)if(g+l[m]>c){p=[].concat(Ra(l.slice(0,m)),[c-g]);break}var v=p.length%2===0?[0,d]:[d];return[].concat(Ra(t.repeat(l,f)),Ra(p),v).map(function(y){return"".concat(y,"px")}).join(", ")}),hr(n,"id",ba("recharts-line-")),hr(n,"pathRef",function(a){n.mainCurve=a}),hr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),hr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return _1e(t,e),E1e(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,l=o.yAxis,u=o.layout,f=o.children,c=Mn(f,Xc);if(!c)return null;var d=function(g,v){return{x:g.x,y:g.y,value:g.value,errorVal:dt(g.payload,v)}},p={clipPath:r?"url(#clipPath-".concat(i,")"):null};return C.createElement(Oe,p,c.map(function(m){return C.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:a,xAxis:s,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,f=s.dataKey,c=se(this.props,!1),d=se(l,!0),p=u.map(function(g,v){var y=On(On(On({key:"dot-".concat(v),r:3},c),d),{},{index:v,cx:g.x,cy:g.y,value:g.value,dataKey:f,payload:g.payload,points:u});return t.renderDotItem(l,y)}),m={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return C.createElement(Oe,wu({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(r,i,o,a){var s=this.props,l=s.type,u=s.layout,f=s.connectNulls;s.ref;var c=DA(s,y1e),d=On(On(On({},se(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:r},a),{},{type:l,layout:u,connectNulls:f});return C.createElement(Vp,wu({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,l=a.strokeDasharray,u=a.isAnimationActive,f=a.animationBegin,c=a.animationDuration,d=a.animationEasing,p=a.animationId,m=a.animateNewValues,g=a.width,v=a.height,y=this.state,x=y.prevPoints,b=y.totalLength;return C.createElement(tr,{begin:f,duration:c,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var S=O.t;if(x){var w=x.length/s.length,E=s.map(function(N,R){var F=Math.floor(R*w);if(x[F]){var I=x[F],D=An(I.x,N.x),L=An(I.y,N.y);return On(On({},N),{},{x:D(S),y:L(S)})}if(m){var M=An(g*2,N.x),z=An(v/2,N.y);return On(On({},N),{},{x:M(S),y:z(S)})}return On(On({},N),{},{x:N.x,y:N.y})});return o.renderCurveStatically(E,r,i)}var P=An(0,b),_=P(S),A;if(l){var $="".concat(l).split(/[,\s]+/gim).map(function(N){return parseFloat(N)});A=o.getStrokeDasharray(_,b,$)}else A=o.generateSimpleStrokeDasharray(b,_);return o.renderCurveStatically(s,r,i,{strokeDasharray:A})})}},{key:"renderCurve",value:function(r,i){var o=this.props,a=o.points,s=o.isAnimationActive,l=this.state,u=l.prevPoints,f=l.totalLength;return s&&a&&a.length&&(!u&&f>0||!Yc(u,a))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(a,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,l=i.className,u=i.xAxis,f=i.yAxis,c=i.top,d=i.left,p=i.width,m=i.height,g=i.isAnimationActive,v=i.id;if(o||!s||!s.length)return null;var y=this.state.isAnimationFinished,x=s.length===1,b=he("recharts-line",l),O=u&&u.allowDataOverflow,S=f&&f.allowDataOverflow,w=O||S,E=me(v)?this.id:v,P=(r=se(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},_=P.r,A=_===void 0?3:_,$=P.strokeWidth,N=$===void 0?2:$,R=fee(a)?a:{},F=R.clipDot,I=F===void 0?!0:F,D=A*2+N;return C.createElement(Oe,{className:b},O||S?C.createElement("defs",null,C.createElement("clipPath",{id:"clipPath-".concat(E)},C.createElement("rect",{x:O?d:d-p/2,y:S?c:c-m/2,width:O?p:p*2,height:S?m:m*2})),!I&&C.createElement("clipPath",{id:"clipPath-dots-".concat(E)},C.createElement("rect",{x:d-D/2,y:c-D/2,width:p+D,height:m+D}))):null,!x&&this.renderCurve(w,E),this.renderErrorBar(w,E),(x||a)&&this.renderDots(w,I,E),(!g||y)&&di.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var o=r.length%2!==0?[].concat(Ra(r),[0]):r,a=[],s=0;s<i;++s)a=[].concat(Ra(a),Ra(o));return a}},{key:"renderDotItem",value:function(r,i){var o;if(C.isValidElement(r))o=C.cloneElement(r,i);else if(ce(r))o=r(i);else{var a=i.key,s=DA(i,v1e),l=he("recharts-line-dot",typeof r!="boolean"?r.className:"");o=C.createElement(Vm,wu({key:a},s,{className:l}))}return o}}])}(k.PureComponent);hr(Jc,"displayName","Line");hr(Jc,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ei.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});hr(Jc,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,f=t.layout,c=l.map(function(d,p){var m=dt(d,a);return f==="horizontal"?{x:dj({axis:n,ticks:i,bandSize:s,entry:d,index:p}),y:me(m)?null:r.scale(m),value:m,payload:d}:{x:me(m)?null:n.scale(m),y:dj({axis:r,ticks:o,bandSize:s,entry:d,index:p}),value:m,payload:d}});return On({points:c,layout:f},u)});function Ys(e){"@babel/helpers - typeof";return Ys=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},Ys(e)}function T1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N1e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FD(r.key),r)}}function $1e(e,t,n){return t&&N1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function M1e(e,t,n){return t=ph(t),I1e(e,DD()?Reflect.construct(t,n||[],ph(e).constructor):t.apply(e,n))}function I1e(e,t){if(t&&(Ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R1e(e)}function R1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DD=function(){return!!e})()}function ph(e){return ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ph(e)}function D1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sb(e,t)}function Sb(e,t){return Sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Sb(e,t)}function LD(e,t,n){return t=FD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FD(e){var t=L1e(e,"string");return Ys(t)=="symbol"?t:t+""}function L1e(e,t){if(Ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kb.apply(this,arguments)}function F1e(e){var t=e.xAxisId,n=O1(),r=E1(),i=kD(t);return i==null?null:k.createElement(Al,kb({},i,{className:he("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(a){return si(a,!0)}}))}var Oo=function(e){function t(){return T1e(this,t),M1e(this,t,arguments)}return D1e(t,e),$1e(t,[{key:"render",value:function(){return k.createElement(F1e,this.props)}}])}(k.Component);LD(Oo,"displayName","XAxis");LD(Oo,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Xs(e){"@babel/helpers - typeof";return Xs=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},Xs(e)}function z1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B1e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,WD(r.key),r)}}function W1e(e,t,n){return t&&B1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U1e(e,t,n){return t=hh(t),H1e(e,zD()?Reflect.construct(t,n||[],hh(e).constructor):t.apply(e,n))}function H1e(e,t){if(t&&(Xs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V1e(e)}function V1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zD=function(){return!!e})()}function hh(e){return hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hh(e)}function K1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ob(e,t)}function Ob(e,t){return Ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ob(e,t)}function BD(e,t,n){return t=WD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WD(e){var t=q1e(e,"string");return Xs(t)=="symbol"?t:t+""}function q1e(e,t){if(Xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eb.apply(this,arguments)}var G1e=function(t){var n=t.yAxisId,r=O1(),i=E1(),o=OD(n);return o==null?null:k.createElement(Al,Eb({},o,{className:he("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(s){return si(s,!0)}}))},Eo=function(e){function t(){return z1e(this,t),U1e(this,t,arguments)}return K1e(t,e),W1e(t,[{key:"render",value:function(){return k.createElement(G1e,this.props)}}])}(k.Component);BD(Eo,"displayName","YAxis");BD(Eo,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function zA(e){return J1e(e)||Q1e(e)||X1e(e)||Y1e()}function Y1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
461
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X1e(e,t){if(e){if(typeof e=="string")return Pb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pb(e,t)}}function Q1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function J1e(e){if(Array.isArray(e))return Pb(e)}function Pb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jb=function(t,n,r,i,o){var a=Mn(t,j1),s=Mn(t,eg),l=[].concat(zA(a),zA(s)),u=Mn(t,ng),f="".concat(i,"Id"),c=i[0],d=n;if(l.length&&(d=l.reduce(function(g,v){if(v.props[f]===r&&Hr(v.props,"extendDomain")&&X(v.props[c])){var y=v.props[c];return[Math.min(g[0],y),Math.max(g[1],y)]}return g},d)),u.length){var p="".concat(c,"1"),m="".concat(c,"2");d=u.reduce(function(g,v){if(v.props[f]===r&&Hr(v.props,"extendDomain")&&X(v.props[p])&&X(v.props[m])){var y=v.props[p],x=v.props[m];return[Math.min(g[0],y,x),Math.max(g[1],y,x)]}return g},d)}return o&&o.length&&(d=o.reduce(function(g,v){return X(v)?[Math.min(g[0],v),Math.max(g[1],v)]:g},d)),d},UD={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function o(l,u,f,c,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,c||l,d),m=n?n+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],f,c;if(this._eventsCount===0)return u;for(c in f=this._events)t.call(f,c)&&u.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},s.prototype.listeners=function(u){var f=n?n+u:u,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,p=c.length,m=new Array(p);d<p;d++)m[d]=c[d].fn;return m},s.prototype.listenerCount=function(u){var f=n?n+u:u,c=this._events[f];return c?c.fn?1:c.length:0},s.prototype.emit=function(u,f,c,d,p,m){var g=n?n+u:u;if(!this._events[g])return!1;var v=this._events[g],y=arguments.length,x,b;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,c),!0;case 4:return v.fn.call(v.context,f,c,d),!0;case 5:return v.fn.call(v.context,f,c,d,p),!0;case 6:return v.fn.call(v.context,f,c,d,p,m),!0}for(b=1,x=new Array(y-1);b<y;b++)x[b-1]=arguments[b];v.fn.apply(v.context,x)}else{var O=v.length,S;for(b=0;b<O;b++)switch(v[b].once&&this.removeListener(u,v[b].fn,void 0,!0),y){case 1:v[b].fn.call(v[b].context);break;case 2:v[b].fn.call(v[b].context,f);break;case 3:v[b].fn.call(v[b].context,f,c);break;case 4:v[b].fn.call(v[b].context,f,c,d);break;default:if(!x)for(S=1,x=new Array(y-1);S<y;S++)x[S-1]=arguments[S];v[b].fn.apply(v[b].context,x)}}return!0},s.prototype.on=function(u,f,c){return o(this,u,f,c,!1)},s.prototype.once=function(u,f,c){return o(this,u,f,c,!0)},s.prototype.removeListener=function(u,f,c,d){var p=n?n+u:u;if(!this._events[p])return this;if(!f)return a(this,p),this;var m=this._events[p];if(m.fn)m.fn===f&&(!d||m.once)&&(!c||m.context===c)&&a(this,p);else{for(var g=0,v=[],y=m.length;g<y;g++)(m[g].fn!==f||d&&!m[g].once||c&&m[g].context!==c)&&v.push(m[g]);v.length?this._events[p]=v.length===1?v[0]:v:a(this,p)}return this},s.prototype.removeAllListeners=function(u){var f;return u?(f=n?n+u:u,this._events[f]&&a(this,f)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(UD);var Z1e=UD.exports;const eSe=Ce(Z1e);var My=new eSe,Iy="recharts.syncMouseEvents";function Ec(e){"@babel/helpers - typeof";return Ec=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},Ec(e)}function tSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nSe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HD(r.key),r)}}function rSe(e,t,n){return t&&nSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ry(e,t,n){return t=HD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HD(e){var t=iSe(e,"string");return Ec(t)=="symbol"?t:t+""}function iSe(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oSe=function(){function e(){tSe(this,e),Ry(this,"activeIndex",0),Ry(this,"coordinateList",[]),Ry(this,"layout","horizontal")}return rSe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,a=n.container,s=a===void 0?null:a,l=n.layout,u=l===void 0?null:l,f=n.offset,c=f===void 0?null:f,d=n.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,a=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,c=o+l+u,d=a+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:c,pageY:d})}}}])}();function aSe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&X(r)&&X(i))return!0}return!1}function sSe(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function VD(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=qe(t,n,r,i),s=qe(t,n,r,o);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function lSe(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,f=t.outerRadius,c=t.angle,d=qe(s,l,u,c),p=qe(s,l,f,c);r=d.x,i=d.y,o=p.x,a=p.y}else return VD(t);return[{x:r,y:i},{x:o,y:a}]}function Pc(e){"@babel/helpers - typeof";return Pc=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},Pc(e)}function BA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BA(Object(n),!0).forEach(function(r){uSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uSe(e,t,n){return t=cSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cSe(e){var t=fSe(e,"string");return Pc(t)=="symbol"?t:t+""}function fSe(e,t){if(Pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dSe(e){var t,n,r=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,d=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!o||!a||d!=="ScatterChart"&&i!=="axis")return null;var m,g=Vp;if(d==="ScatterChart")m=a,g=$ve;else if(d==="BarChart")m=sSe(c,a,l,f),g=Hm;else if(c==="radial"){var v=VD(a),y=v.cx,x=v.cy,b=v.radius,O=v.startAngle,S=v.endAngle;m={cx:y,cy:x,startAngle:O,endAngle:S,innerRadius:b,outerRadius:b},g=FR}else m={points:lSe(c,a,l)},g=Vp;var w=Xf(Xf(Xf(Xf({stroke:"#ccc",pointerEvents:"none"},l),m),se(p,!1)),{},{payload:s,payloadIndex:u,className:he("recharts-tooltip-cursor",p.className)});return k.isValidElement(p)?k.cloneElement(p,w):k.createElement(g,w)}var pSe=["item"],hSe=["children","className","width","height","style","compact","title","desc"];function Qs(e){"@babel/helpers - typeof";return Qs=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},Qs(e)}function ts(){return ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ts.apply(this,arguments)}function WA(e,t){return ySe(e)||gSe(e,t)||qD(e,t)||mSe()}function mSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
462
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gSe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function ySe(e){if(Array.isArray(e))return e}function UA(e,t){if(e==null)return{};var n=vSe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vSe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function xSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bSe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GD(r.key),r)}}function wSe(e,t,n){return t&&bSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SSe(e,t,n){return t=mh(t),kSe(e,KD()?Reflect.construct(t,n||[],mh(e).constructor):t.apply(e,n))}function kSe(e,t){if(t&&(Qs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OSe(e)}function OSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KD=function(){return!!e})()}function mh(e){return mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mh(e)}function ESe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ab(e,t)}function Ab(e,t){return Ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ab(e,t)}function Js(e){return ASe(e)||jSe(e)||qD(e)||PSe()}function PSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
463
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qD(e,t){if(e){if(typeof e=="string")return _b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _b(e,t)}}function jSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ASe(e){if(Array.isArray(e))return _b(e)}function _b(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HA(Object(n),!0).forEach(function(r){fe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fe(e,t,n){return t=GD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GD(e){var t=_Se(e,"string");return Qs(t)=="symbol"?t:t+""}function _Se(e,t){if(Qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CSe={xAxis:["bottom","top"],yAxis:["left","right"]},TSe={width:"100%",height:"100%"},YD={x:0,y:0};function Qf(e){return e}var NSe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},$Se=function(t,n,r,i){var o=n.find(function(f){return f&&f.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var a=o.coordinate,s=i.radius;return B(B(B({},i),qe(i.cx,i.cy,s,a)),{},{angle:a,radius:s})}var l=o.coordinate,u=i.angle;return B(B(B({},i),qe(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return YD},rg=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,a=(r??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Js(s),Js(u)):s},[]);return a.length>0?a:t&&t.length&&X(i)&&X(o)?t.slice(i,o+1):[]};function XD(e){return e==="number"?[0,"auto"]:void 0}var Cb=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,s=rg(n,t);return r<0||!o||!o.length||r>=s.length?null:o.reduce(function(l,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:n;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(a.dataKey&&!a.allowDuplicatedCategory){var p=c===void 0?s:c;d=dp(p,a.dataKey,i)}else d=c&&c[r]||s[r];return d?[].concat(Js(l),[NR(u,d)]):l},[])},VA=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=NSe(o,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=tme(a,s,u,l);if(f>=0&&u){var c=u[f]&&u[f].value,d=Cb(t,n,f,c),p=$Se(r,s,f,o);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},MSe=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=PR(f,o);return r.reduce(function(m,g){var v,y=g.type.defaultProps!==void 0?B(B({},g.type.defaultProps),g.props):g.props,x=y.type,b=y.dataKey,O=y.allowDataOverflow,S=y.allowDuplicatedCategory,w=y.scale,E=y.ticks,P=y.includeHidden,_=y[a];if(m[_])return m;var A=rg(t.data,{graphicalItems:i.filter(function(U){var T,Y=a in U.props?U.props[a]:(T=U.type.defaultProps)===null||T===void 0?void 0:T[a];return Y===_}),dataStartIndex:l,dataEndIndex:u}),$=A.length,N,R,F;aSe(y.domain,O,x)&&(N=Hx(y.domain,null,O),p&&(x==="number"||w!=="auto")&&(F=yu(A,b,"category")));var I=XD(x);if(!N||N.length===0){var D,L=(D=y.domain)!==null&&D!==void 0?D:I;if(b){if(N=yu(A,b,x),x==="category"&&p){var M=nee(N);S&&M?(R=N,N=nh(0,$)):S||(N=gj(L,N,g).reduce(function(U,T){return U.indexOf(T)>=0?U:[].concat(Js(U),[T])},[]))}else if(x==="category")S?N=N.filter(function(U){return U!==""&&!me(U)}):N=gj(L,N,g).reduce(function(U,T){return U.indexOf(T)>=0||T===""||me(T)?U:[].concat(Js(U),[T])},[]);else if(x==="number"){var z=ame(A,i.filter(function(U){var T,Y,J=a in U.props?U.props[a]:(T=U.type.defaultProps)===null||T===void 0?void 0:T[a],Z="hide"in U.props?U.props.hide:(Y=U.type.defaultProps)===null||Y===void 0?void 0:Y.hide;return J===_&&(P||!Z)}),b,o,f);z&&(N=z)}p&&(x==="number"||w!=="auto")&&(F=yu(A,b,"category"))}else p?N=nh(0,$):s&&s[_]&&s[_].hasStack&&x==="number"?N=d==="expand"?[0,1]:TR(s[_].stackGroups,l,u):N=ER(A,i.filter(function(U){var T=a in U.props?U.props[a]:U.type.defaultProps[a],Y="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return T===_&&(P||!Y)}),x,f,!0);if(x==="number")N=jb(c,N,_,o,E),L&&(N=Hx(L,N,O));else if(x==="category"&&L){var j=L,W=N.every(function(U){return j.indexOf(U)>=0});W&&(N=j)}}return B(B({},m),{},fe({},_,B(B({},y),{},{axisType:o,domain:N,categoricalDomain:F,duplicateDomain:R,originalDomain:(v=y.domain)!==null&&v!==void 0?v:I,isCategorical:p,layout:f})))},{})},ISe=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,c=t.children,d=rg(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),p=d.length,m=PR(f,o),g=-1;return r.reduce(function(v,y){var x=y.type.defaultProps!==void 0?B(B({},y.type.defaultProps),y.props):y.props,b=x[a],O=XD("number");if(!v[b]){g++;var S;return m?S=nh(0,p):s&&s[b]&&s[b].hasStack?(S=TR(s[b].stackGroups,l,u),S=jb(c,S,b,o)):(S=Hx(O,ER(d,r.filter(function(w){var E,P,_=a in w.props?w.props[a]:(E=w.type.defaultProps)===null||E===void 0?void 0:E[a],A="hide"in w.props?w.props.hide:(P=w.type.defaultProps)===null||P===void 0?void 0:P.hide;return _===b&&!A}),"number",f),i.defaultProps.allowDataOverflow),S=jb(c,S,b,o)),B(B({},v),{},fe({},b,B(B({axisType:o},i.defaultProps),{},{hide:!0,orientation:vn(CSe,"".concat(o,".").concat(g%2),null),domain:S,originalDomain:O,isCategorical:m,layout:f})))}return v},{})},RSe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=Mn(f,o),p={};return d&&d.length?p=MSe(t,{axes:d,graphicalItems:a,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):a&&a.length&&(p=ISe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},DSe=function(t){var n=Xi(t),r=si(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Kw(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Wp(n,r)}},KA=function(t){var n=t.children,r=t.defaultShowTooltip,i=Ut(n,Ws),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},LSe=function(t){return!t||!t.length?!1:t.some(function(n){var r=ui(n&&n.type);return r&&r.indexOf("Bar")>=0})},qA=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"}},FSe=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,l=s===void 0?{}:s,u=r.width,f=r.height,c=r.children,d=r.margin||{},p=Ut(c,Ws),m=Ut(c,ci),g=Object.keys(l).reduce(function(S,w){var E=l[w],P=E.orientation;return!E.mirror&&!E.hide?B(B({},S),{},fe({},P,S[P]+E.width)):S},{left:d.left||0,right:d.right||0}),v=Object.keys(a).reduce(function(S,w){var E=a[w],P=E.orientation;return!E.mirror&&!E.hide?B(B({},S),{},fe({},P,vn(S,"".concat(P))+E.height)):S},{top:d.top||0,bottom:d.bottom||0}),y=B(B({},v),g),x=y.bottom;p&&(y.bottom+=p.props.height||Ws.defaultProps.height),m&&n&&(y=ime(y,i,r,n));var b=u-y.left-y.right,O=f-y.top-y.bottom;return B(B({brushBottom:x},y),{},{width:Math.max(b,0),height:Math.max(O,0)})},zSe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},C1=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,l=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(y,x){var b=x.graphicalItems,O=x.stackGroups,S=x.offset,w=x.updateId,E=x.dataStartIndex,P=x.dataEndIndex,_=y.barSize,A=y.layout,$=y.barGap,N=y.barCategoryGap,R=y.maxBarSize,F=qA(A),I=F.numericAxisName,D=F.cateAxisName,L=LSe(b),M=[];return b.forEach(function(z,j){var W=rg(y.data,{graphicalItems:[z],dataStartIndex:E,dataEndIndex:P}),U=z.type.defaultProps!==void 0?B(B({},z.type.defaultProps),z.props):z.props,T=U.dataKey,Y=U.maxBarSize,J=U["".concat(I,"Id")],Z=U["".concat(D,"Id")],Ae={},ae=l.reduce(function(or,ot){var Fn=x["".concat(ot.axisType,"Map")],Oa=U["".concat(ot.axisType,"Id")];Fn&&Fn[Oa]||ot.axisType==="zAxis"||da();var Ea=Fn[Oa];return B(B({},or),{},fe(fe({},ot.axisType,Ea),"".concat(ot.axisType,"Ticks"),si(Ea)))},Ae),K=ae[D],ie=ae["".concat(D,"Ticks")],oe=O&&O[J]&&O[J].hasStack&&mme(z,O[J].stackGroups),V=ui(z.type).indexOf("Bar")>=0,ke=Wp(K,ie),de=[],ze=L&&nme({barSize:_,stackGroups:O,totalSize:zSe(ae,D)});if(V){var De,Ge,Yt=me(Y)?R:Y,et=(De=(Ge=Wp(K,ie,!0))!==null&&Ge!==void 0?Ge:Yt)!==null&&De!==void 0?De:0;de=rme({barGap:$,barCategoryGap:N,bandSize:et!==ke?et:ke,sizeList:ze[Z],maxBarSize:Yt}),et!==ke&&(de=de.map(function(or){return B(B({},or),{},{position:B(B({},or.position),{},{offset:or.position.offset-et/2})})}))}var Qr=z&&z.type&&z.type.getComposedData;Qr&&M.push({props:B(B({},Qr(B(B({},ae),{},{displayedData:W,props:y,dataKey:T,item:z,bandSize:ke,barPosition:de,offset:S,stackedData:oe,layout:A,dataStartIndex:E,dataEndIndex:P}))),{},fe(fe(fe({key:z.key||"item-".concat(j)},I,ae[I]),D,ae[D]),"animationId",w)),childIndex:mee(z,y.children),item:z})}),M},p=function(y,x){var b=y.props,O=y.dataStartIndex,S=y.dataEndIndex,w=y.updateId;if(!ox({props:b}))return null;var E=b.children,P=b.layout,_=b.stackOffset,A=b.data,$=b.reverseStackOrder,N=qA(P),R=N.numericAxisName,F=N.cateAxisName,I=Mn(E,r),D=pme(A,I,"".concat(R,"Id"),"".concat(F,"Id"),_,$),L=l.reduce(function(U,T){var Y="".concat(T.axisType,"Map");return B(B({},U),{},fe({},Y,RSe(b,B(B({},T),{},{graphicalItems:I,stackGroups:T.axisType===R&&D,dataStartIndex:O,dataEndIndex:S}))))},{}),M=FSe(B(B({},L),{},{props:b,graphicalItems:I}),x==null?void 0:x.legendBBox);Object.keys(L).forEach(function(U){L[U]=f(b,L[U],M,U.replace("Map",""),n)});var z=L["".concat(F,"Map")],j=DSe(z),W=d(b,B(B({},L),{},{dataStartIndex:O,dataEndIndex:S,updateId:w,graphicalItems:I,stackGroups:D,offset:M}));return B(B({formattedGraphicalItems:W,graphicalItems:I,offset:M,stackGroups:D},j),L)},m=function(v){function y(x){var b,O,S;return xSe(this,y),S=SSe(this,y,[x]),fe(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),fe(S,"accessibilityManager",new oSe),fe(S,"handleLegendBBoxUpdate",function(w){if(w){var E=S.state,P=E.dataStartIndex,_=E.dataEndIndex,A=E.updateId;S.setState(B({legendBBox:w},p({props:S.props,dataStartIndex:P,dataEndIndex:_,updateId:A},B(B({},S.state),{},{legendBBox:w}))))}}),fe(S,"handleReceiveSyncEvent",function(w,E,P){if(S.props.syncId===w){if(P===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(E)}}),fe(S,"handleBrushChange",function(w){var E=w.startIndex,P=w.endIndex;if(E!==S.state.dataStartIndex||P!==S.state.dataEndIndex){var _=S.state.updateId;S.setState(function(){return B({dataStartIndex:E,dataEndIndex:P},p({props:S.props,dataStartIndex:E,dataEndIndex:P,updateId:_},S.state))}),S.triggerSyncEvent({dataStartIndex:E,dataEndIndex:P})}}),fe(S,"handleMouseEnter",function(w){var E=S.getMouseInfo(w);if(E){var P=B(B({},E),{},{isTooltipActive:!0});S.setState(P),S.triggerSyncEvent(P);var _=S.props.onMouseEnter;ce(_)&&_(P,w)}}),fe(S,"triggeredAfterMouseMove",function(w){var E=S.getMouseInfo(w),P=E?B(B({},E),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(P),S.triggerSyncEvent(P);var _=S.props.onMouseMove;ce(_)&&_(P,w)}),fe(S,"handleItemMouseEnter",function(w){S.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),fe(S,"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),fe(S,"handleMouseMove",function(w){w.persist(),S.throttleTriggeredAfterMouseMove(w)}),fe(S,"handleMouseLeave",function(w){S.throttleTriggeredAfterMouseMove.cancel();var E={isTooltipActive:!1};S.setState(E),S.triggerSyncEvent(E);var P=S.props.onMouseLeave;ce(P)&&P(E,w)}),fe(S,"handleOuterEvent",function(w){var E=hee(w),P=vn(S.props,"".concat(E));if(E&&ce(P)){var _,A;/.*touch.*/i.test(E)?A=S.getMouseInfo(w.changedTouches[0]):A=S.getMouseInfo(w),P((_=A)!==null&&_!==void 0?_:{},w)}}),fe(S,"handleClick",function(w){var E=S.getMouseInfo(w);if(E){var P=B(B({},E),{},{isTooltipActive:!0});S.setState(P),S.triggerSyncEvent(P);var _=S.props.onClick;ce(_)&&_(P,w)}}),fe(S,"handleMouseDown",function(w){var E=S.props.onMouseDown;if(ce(E)){var P=S.getMouseInfo(w);E(P,w)}}),fe(S,"handleMouseUp",function(w){var E=S.props.onMouseUp;if(ce(E)){var P=S.getMouseInfo(w);E(P,w)}}),fe(S,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),fe(S,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&S.handleMouseDown(w.changedTouches[0])}),fe(S,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&S.handleMouseUp(w.changedTouches[0])}),fe(S,"handleDoubleClick",function(w){var E=S.props.onDoubleClick;if(ce(E)){var P=S.getMouseInfo(w);E(P,w)}}),fe(S,"handleContextMenu",function(w){var E=S.props.onContextMenu;if(ce(E)){var P=S.getMouseInfo(w);E(P,w)}}),fe(S,"triggerSyncEvent",function(w){S.props.syncId!==void 0&&My.emit(Iy,S.props.syncId,w,S.eventEmitterSymbol)}),fe(S,"applySyncEvent",function(w){var E=S.props,P=E.layout,_=E.syncMethod,A=S.state.updateId,$=w.dataStartIndex,N=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)S.setState(B({dataStartIndex:$,dataEndIndex:N},p({props:S.props,dataStartIndex:$,dataEndIndex:N,updateId:A},S.state)));else if(w.activeTooltipIndex!==void 0){var R=w.chartX,F=w.chartY,I=w.activeTooltipIndex,D=S.state,L=D.offset,M=D.tooltipTicks;if(!L)return;if(typeof _=="function")I=_(M,w);else if(_==="value"){I=-1;for(var z=0;z<M.length;z++)if(M[z].value===w.activeLabel){I=z;break}}var j=B(B({},L),{},{x:L.left,y:L.top}),W=Math.min(R,j.x+j.width),U=Math.min(F,j.y+j.height),T=M[I]&&M[I].value,Y=Cb(S.state,S.props.data,I),J=M[I]?{x:P==="horizontal"?M[I].coordinate:W,y:P==="horizontal"?U:M[I].coordinate}:YD;S.setState(B(B({},w),{},{activeLabel:T,activeCoordinate:J,activePayload:Y,activeTooltipIndex:I}))}else S.setState(w)}),fe(S,"renderCursor",function(w){var E,P=S.state,_=P.isTooltipActive,A=P.activeCoordinate,$=P.activePayload,N=P.offset,R=P.activeTooltipIndex,F=P.tooltipAxisBandSize,I=S.getTooltipEventType(),D=(E=w.props.active)!==null&&E!==void 0?E:_,L=S.props.layout,M=w.key||"_recharts-cursor";return C.createElement(dSe,{key:M,activeCoordinate:A,activePayload:$,activeTooltipIndex:R,chartName:n,element:w,isActive:D,layout:L,offset:N,tooltipAxisBandSize:F,tooltipEventType:I})}),fe(S,"renderPolarAxis",function(w,E,P){var _=vn(w,"type.axisType"),A=vn(S.state,"".concat(_,"Map")),$=w.type.defaultProps,N=$!==void 0?B(B({},$),w.props):w.props,R=A&&A[N["".concat(_,"Id")]];return k.cloneElement(w,B(B({},R),{},{className:he(_,R.className),key:w.key||"".concat(E,"-").concat(P),ticks:si(R,!0)}))}),fe(S,"renderPolarGrid",function(w){var E=w.props,P=E.radialLines,_=E.polarAngles,A=E.polarRadius,$=S.state,N=$.radiusAxisMap,R=$.angleAxisMap,F=Xi(N),I=Xi(R),D=I.cx,L=I.cy,M=I.innerRadius,z=I.outerRadius;return k.cloneElement(w,{polarAngles:Array.isArray(_)?_:si(I,!0).map(function(j){return j.coordinate}),polarRadius:Array.isArray(A)?A:si(F,!0).map(function(j){return j.coordinate}),cx:D,cy:L,innerRadius:M,outerRadius:z,key:w.key||"polar-grid",radialLines:P})}),fe(S,"renderLegend",function(){var w=S.state.formattedGraphicalItems,E=S.props,P=E.children,_=E.width,A=E.height,$=S.props.margin||{},N=_-($.left||0)-($.right||0),R=kR({children:P,formattedGraphicalItems:w,legendWidth:N,legendContent:u});if(!R)return null;var F=R.item,I=UA(R,pSe);return k.cloneElement(F,B(B({},I),{},{chartWidth:_,chartHeight:A,margin:$,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),fe(S,"renderTooltip",function(){var w,E=S.props,P=E.children,_=E.accessibilityLayer,A=Ut(P,jt);if(!A)return null;var $=S.state,N=$.isTooltipActive,R=$.activeCoordinate,F=$.activePayload,I=$.activeLabel,D=$.offset,L=(w=A.props.active)!==null&&w!==void 0?w:N;return k.cloneElement(A,{viewBox:B(B({},D),{},{x:D.left,y:D.top}),active:L,label:I,payload:L?F:[],coordinate:R,accessibilityLayer:_})}),fe(S,"renderBrush",function(w){var E=S.props,P=E.margin,_=E.data,A=S.state,$=A.offset,N=A.dataStartIndex,R=A.dataEndIndex,F=A.updateId;return k.cloneElement(w,{key:w.key||"_recharts-brush",onChange:Kf(S.handleBrushChange,w.props.onChange),data:_,x:X(w.props.x)?w.props.x:$.left,y:X(w.props.y)?w.props.y:$.top+$.height+$.brushBottom-(P.bottom||0),width:X(w.props.width)?w.props.width:$.width,startIndex:N,endIndex:R,updateId:"brush-".concat(F)})}),fe(S,"renderReferenceElement",function(w,E,P){if(!w)return null;var _=S,A=_.clipPathId,$=S.state,N=$.xAxisMap,R=$.yAxisMap,F=$.offset,I=w.type.defaultProps||{},D=w.props,L=D.xAxisId,M=L===void 0?I.xAxisId:L,z=D.yAxisId,j=z===void 0?I.yAxisId:z;return k.cloneElement(w,{key:w.key||"".concat(E,"-").concat(P),xAxis:N[M],yAxis:R[j],viewBox:{x:F.left,y:F.top,width:F.width,height:F.height},clipPathId:A})}),fe(S,"renderActivePoints",function(w){var E=w.item,P=w.activePoint,_=w.basePoint,A=w.childIndex,$=w.isRange,N=[],R=E.props.key,F=E.item.type.defaultProps!==void 0?B(B({},E.item.type.defaultProps),E.item.props):E.item.props,I=F.activeDot,D=F.dataKey,L=B(B({index:A,dataKey:D,cx:P.x,cy:P.y,r:4,fill:v1(E.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},se(I,!1)),pp(I));return N.push(y.renderActiveDot(I,L,"".concat(R,"-activePoint-").concat(A))),_?N.push(y.renderActiveDot(I,B(B({},L),{},{cx:_.x,cy:_.y}),"".concat(R,"-basePoint-").concat(A))):$&&N.push(null),N}),fe(S,"renderGraphicChild",function(w,E,P){var _=S.filterFormatItem(w,E,P);if(!_)return null;var A=S.getTooltipEventType(),$=S.state,N=$.isTooltipActive,R=$.tooltipAxis,F=$.activeTooltipIndex,I=$.activeLabel,D=S.props.children,L=Ut(D,jt),M=_.props,z=M.points,j=M.isRange,W=M.baseLine,U=_.item.type.defaultProps!==void 0?B(B({},_.item.type.defaultProps),_.item.props):_.item.props,T=U.activeDot,Y=U.hide,J=U.activeBar,Z=U.activeShape,Ae=!!(!Y&&N&&L&&(T||J||Z)),ae={};A!=="axis"&&L&&L.props.trigger==="click"?ae={onClick:Kf(S.handleItemMouseEnter,w.props.onClick)}:A!=="axis"&&(ae={onMouseLeave:Kf(S.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:Kf(S.handleItemMouseEnter,w.props.onMouseEnter)});var K=k.cloneElement(w,B(B({},_.props),ae));function ie(ot){return typeof R.dataKey=="function"?R.dataKey(ot.payload):null}if(Ae)if(F>=0){var oe,V;if(R.dataKey&&!R.allowDuplicatedCategory){var ke=typeof R.dataKey=="function"?ie:"payload.".concat(R.dataKey.toString());oe=dp(z,ke,I),V=j&&W&&dp(W,ke,I)}else oe=z==null?void 0:z[F],V=j&&W&&W[F];if(Z||J){var de=w.props.activeIndex!==void 0?w.props.activeIndex:F;return[k.cloneElement(w,B(B(B({},_.props),ae),{},{activeIndex:de})),null,null]}if(!me(oe))return[K].concat(Js(S.renderActivePoints({item:_,activePoint:oe,basePoint:V,childIndex:F,isRange:j})))}else{var ze,De=(ze=S.getItemByXY(S.state.activeCoordinate))!==null&&ze!==void 0?ze:{graphicalItem:K},Ge=De.graphicalItem,Yt=Ge.item,et=Yt===void 0?w:Yt,Qr=Ge.childIndex,or=B(B(B({},_.props),ae),{},{activeIndex:Qr});return[k.cloneElement(et,or),null,null]}return j?[K,null,null]:[K,null]}),fe(S,"renderCustomized",function(w,E,P){return k.cloneElement(w,B(B({key:"recharts-customized-".concat(P)},S.props),S.state))}),fe(S,"renderMap",{CartesianGrid:{handler:Qf,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Qf},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Qf},YAxis:{handler:Qf},Brush:{handler:S.renderBrush,once:!0},Bar:{handler:S.renderGraphicChild},Line:{handler:S.renderGraphicChild},Area:{handler:S.renderGraphicChild},Radar:{handler:S.renderGraphicChild},RadialBar:{handler:S.renderGraphicChild},Scatter:{handler:S.renderGraphicChild},Pie:{handler:S.renderGraphicChild},Funnel:{handler:S.renderGraphicChild},Tooltip:{handler:S.renderCursor,once:!0},PolarGrid:{handler:S.renderPolarGrid,once:!0},PolarAngleAxis:{handler:S.renderPolarAxis},PolarRadiusAxis:{handler:S.renderPolarAxis},Customized:{handler:S.renderCustomized}}),S.clipPathId="".concat((b=x.id)!==null&&b!==void 0?b:ba("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=kI(S.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),S.state={},S}return ESe(y,v),wSe(y,[{key:"componentDidMount",value:function(){var b,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,O=b.children,S=b.data,w=b.height,E=b.layout,P=Ut(O,jt);if(P){var _=P.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var A=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,$=Cb(this.state,S,_,A),N=this.state.tooltipTicks[_].coordinate,R=(this.state.offset.top+w)/2,F=E==="horizontal",I=F?{x:N,y:R}:{y:N,x:R},D=this.state.formattedGraphicalItems.find(function(M){var z=M.item;return z.type.name==="Scatter"});D&&(I=B(B({},I),D.props.points[_].tooltipPosition),$=D.props.points[_].tooltipPayload);var L={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:A,activePayload:$,activeCoordinate:I};this.setState(L),this.renderCursor(P),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.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 S,w;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(b){ax([Ut(b.children,jt)],[Ut(this.props.children,jt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Ut(this.props.children,jt);if(b&&typeof b.props.shared=="boolean"){var O=b.props.shared?"axis":"item";return s.indexOf(O)>=0?O:o}return o}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var O=this.container,S=O.getBoundingClientRect(),w=_ce(S),E={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},P=S.width/O.offsetWidth||1,_=this.inRange(E.chartX,E.chartY,P);if(!_)return null;var A=this.state,$=A.xAxisMap,N=A.yAxisMap,R=this.getTooltipEventType(),F=VA(this.state,this.props.data,this.props.layout,_);if(R!=="axis"&&$&&N){var I=Xi($).scale,D=Xi(N).scale,L=I&&I.invert?I.invert(E.chartX):null,M=D&&D.invert?D.invert(E.chartY):null;return B(B({},E),{},{xValue:L,yValue:M},F)}return F?B(B({},E),F):null}},{key:"inRange",value:function(b,O){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,E=b/S,P=O/S;if(w==="horizontal"||w==="vertical"){var _=this.state.offset,A=E>=_.left&&E<=_.left+_.width&&P>=_.top&&P<=_.top+_.height;return A?{x:E,y:P}:null}var $=this.state,N=$.angleAxisMap,R=$.radiusAxisMap;if(N&&R){var F=Xi(N);return xj({x:E,y:P},F)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,O=this.getTooltipEventType(),S=Ut(b,jt),w={};S&&O==="axis"&&(S.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var E=pp(this.props,this.handleOuterEvent);return B(B({},E),w)}},{key:"addListener",value:function(){My.on(Iy,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){My.removeListener(Iy,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,O,S){for(var w=this.state.formattedGraphicalItems,E=0,P=w.length;E<P;E++){var _=w[E];if(_.item===b||_.props.key===b.key||O===ui(_.item.type)&&S===_.childIndex)return _}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,O=this.state.offset,S=O.left,w=O.top,E=O.height,P=O.width;return C.createElement("defs",null,C.createElement("clipPath",{id:b},C.createElement("rect",{x:S,y:w,height:E,width:P})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(O,S){var w=WA(S,2),E=w[0],P=w[1];return B(B({},O),{},fe({},E,P.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(O,S){var w=WA(S,2),E=w[0],P=w[1];return B(B({},O),{},fe({},E,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[b])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(b){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[b])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(b){var O=this.state,S=O.formattedGraphicalItems,w=O.activeItem;if(S&&S.length)for(var E=0,P=S.length;E<P;E++){var _=S[E],A=_.props,$=_.item,N=$.type.defaultProps!==void 0?B(B({},$.type.defaultProps),$.props):$.props,R=ui($.type);if(R==="Bar"){var F=(A.data||[]).find(function(M){return hve(b,M)});if(F)return{graphicalItem:_,payload:F}}else if(R==="RadialBar"){var I=(A.data||[]).find(function(M){return xj(b,M)});if(I)return{graphicalItem:_,payload:I}}else if(Xm(_,w)||Qm(_,w)||bc(_,w)){var D=Zxe({graphicalItem:_,activeTooltipItem:w,itemData:N.data}),L=N.activeIndex===void 0?D:N.activeIndex;return{graphicalItem:B(B({},_),{},{childIndex:L}),payload:bc(_,w)?N.data[D]:_.props.data[D]}}}return null}},{key:"render",value:function(){var b=this;if(!ox(this))return null;var O=this.props,S=O.children,w=O.className,E=O.width,P=O.height,_=O.style,A=O.compact,$=O.title,N=O.desc,R=UA(O,hSe),F=se(R,!1);if(A)return C.createElement(OA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},C.createElement(hp,ts({},F,{width:E,height:P,title:$,desc:N}),this.renderClipPath(),fE(S,this.renderMap)));if(this.props.accessibilityLayer){var I,D;F.tabIndex=(I=this.props.tabIndex)!==null&&I!==void 0?I:0,F.role=(D=this.props.role)!==null&&D!==void 0?D:"application",F.onKeyDown=function(M){b.accessibilityManager.keyboardEvent(M)},F.onFocus=function(){b.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return C.createElement(OA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},C.createElement("div",ts({className:he("recharts-wrapper",w),style:B({position:"relative",cursor:"default",width:E,height:P},_)},L,{ref:function(z){b.container=z}}),C.createElement(hp,ts({},F,{width:E,height:P,title:$,desc:N,style:TSe}),this.renderClipPath(),fE(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(k.Component);fe(m,"displayName",n),fe(m,"defaultProps",B({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),fe(m,"getDerivedStateFromProps",function(v,y){var x=v.dataKey,b=v.data,O=v.children,S=v.width,w=v.height,E=v.layout,P=v.stackOffset,_=v.margin,A=y.dataStartIndex,$=y.dataEndIndex;if(y.updateId===void 0){var N=KA(v);return B(B(B({},N),{},{updateId:0},p(B(B({props:v},N),{},{updateId:0}),y)),{},{prevDataKey:x,prevData:b,prevWidth:S,prevHeight:w,prevLayout:E,prevStackOffset:P,prevMargin:_,prevChildren:O})}if(x!==y.prevDataKey||b!==y.prevData||S!==y.prevWidth||w!==y.prevHeight||E!==y.prevLayout||P!==y.prevStackOffset||!fs(_,y.prevMargin)){var R=KA(v),F={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},I=B(B({},VA(y,b,E)),{},{updateId:y.updateId+1}),D=B(B(B({},R),F),I);return B(B(B({},D),p(B({props:v},D),y)),{},{prevDataKey:x,prevData:b,prevWidth:S,prevHeight:w,prevLayout:E,prevStackOffset:P,prevMargin:_,prevChildren:O})}if(!ax(O,y.prevChildren)){var L,M,z,j,W=Ut(O,Ws),U=W&&(L=(M=W.props)===null||M===void 0?void 0:M.startIndex)!==null&&L!==void 0?L:A,T=W&&(z=(j=W.props)===null||j===void 0?void 0:j.endIndex)!==null&&z!==void 0?z:$,Y=U!==A||T!==$,J=!me(b),Z=J&&!Y?y.updateId:y.updateId+1;return B(B({updateId:Z},p(B(B({props:v},y),{},{updateId:Z,dataStartIndex:U,dataEndIndex:T}),y)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:T})}return null}),fe(m,"renderActiveDot",function(v,y,x){var b;return k.isValidElement(v)?b=k.cloneElement(v,y):ce(v)?b=v(y):b=C.createElement(Vm,y),C.createElement(Oe,{className:"recharts-active-dot",key:x},b)});var g=k.forwardRef(function(y,x){return C.createElement(m,ts({},y,{ref:x}))});return g.displayName=m.displayName,g},BSe=C1({chartName:"LineChart",GraphicalChild:Jc,axisComponents:[{axisType:"xAxis",AxisComp:Oo},{axisType:"yAxis",AxisComp:Eo}],formatAxisMap:mD}),T1=C1({chartName:"BarChart",GraphicalChild:Qn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Oo},{axisType:"yAxis",AxisComp:Eo}],formatAxisMap:mD}),WSe=C1({chartName:"PieChart",GraphicalChild:Ii,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Ym},{axisType:"radiusAxis",AxisComp:qm}],formatAxisMap:Eme,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function USe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var HSe=USe,VSe=b1,KSe=am,qSe=Object.prototype,GSe=qSe.hasOwnProperty;function YSe(e,t,n){var r=e[t];(!(GSe.call(e,t)&&KSe(r,n))||n===void 0&&!(t in e))&&VSe(e,t,n)}var QD=YSe,XSe=QD,QSe=b1;function JSe(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?QSe(n,s,l):XSe(n,s,l)}return n}var Zc=JSe,ZSe=Zc,eke=wl;function tke(e,t){return e&&ZSe(t,eke(t),e)}var nke=tke;function rke(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ike=rke,oke=_r,ake=Ww,ske=ike,lke=Object.prototype,uke=lke.hasOwnProperty;function cke(e){if(!oke(e))return ske(e);var t=ake(e),n=[];for(var r in e)r=="constructor"&&(t||!uke.call(e,r))||n.push(r);return n}var fke=cke,dke=eI,pke=fke,hke=bl;function mke(e){return hke(e)?dke(e,!0):pke(e)}var N1=mke,gke=Zc,yke=N1;function vke(e,t){return e&&gke(t,yke(t),e)}var xke=vke,gh={exports:{}};gh.exports;(function(e,t){var n=jr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(u,f){if(f)return u.slice();var c=u.length,d=s?s(c):new u.constructor(c);return u.copy(d),d}e.exports=l})(gh,gh.exports);var bke=gh.exports;function wke(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Ske=wke,kke=Zc,Oke=Rw;function Eke(e,t){return kke(e,Oke(e),t)}var Pke=Eke,jke=Iw,Ake=x1,_ke=Rw,Cke=QM,Tke=Object.getOwnPropertySymbols,Nke=Tke?function(e){for(var t=[];e;)jke(t,_ke(e)),e=Ake(e);return t}:Cke,JD=Nke,$ke=Zc,Mke=JD;function Ike(e,t){return $ke(e,Mke(e),t)}var Rke=Ike,Dke=XM,Lke=JD,Fke=N1;function zke(e){return Dke(e,Fke,Lke)}var ZD=zke,Bke=Object.prototype,Wke=Bke.hasOwnProperty;function Uke(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Wke.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Hke=Uke,GA=YM;function Vke(e){var t=new e.constructor(e.byteLength);return new GA(t).set(new GA(e)),t}var $1=Vke,Kke=$1;function qke(e,t){var n=t?Kke(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Gke=qke,Yke=/\w*$/;function Xke(e){var t=new e.constructor(e.source,Yke.exec(e));return t.lastIndex=e.lastIndex,t}var Qke=Xke,YA=pl,XA=YA?YA.prototype:void 0,QA=XA?XA.valueOf:void 0;function Jke(e){return QA?Object(QA.call(e)):{}}var Zke=Jke,eOe=$1;function tOe(e,t){var n=t?eOe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var nOe=tOe,rOe=$1,iOe=Gke,oOe=Qke,aOe=Zke,sOe=nOe,lOe="[object Boolean]",uOe="[object Date]",cOe="[object Map]",fOe="[object Number]",dOe="[object RegExp]",pOe="[object Set]",hOe="[object String]",mOe="[object Symbol]",gOe="[object ArrayBuffer]",yOe="[object DataView]",vOe="[object Float32Array]",xOe="[object Float64Array]",bOe="[object Int8Array]",wOe="[object Int16Array]",SOe="[object Int32Array]",kOe="[object Uint8Array]",OOe="[object Uint8ClampedArray]",EOe="[object Uint16Array]",POe="[object Uint32Array]";function jOe(e,t,n){var r=e.constructor;switch(t){case gOe:return rOe(e);case lOe:case uOe:return new r(+e);case yOe:return iOe(e,n);case vOe:case xOe:case bOe:case wOe:case SOe:case kOe:case OOe:case EOe:case POe:return sOe(e,n);case cOe:return new r;case fOe:case hOe:return new r(e);case dOe:return oOe(e);case pOe:return new r;case mOe:return aOe(e)}}var AOe=jOe,_Oe=_r,JA=Object.create,COe=function(){function e(){}return function(t){if(!_Oe(t))return{};if(JA)return JA(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),TOe=COe,NOe=TOe,$Oe=x1,MOe=Ww;function IOe(e){return typeof e.constructor=="function"&&!MOe(e)?NOe($Oe(e)):{}}var ROe=IOe,DOe=_m,LOe=Ar,FOe="[object Map]";function zOe(e){return LOe(e)&&DOe(e)==FOe}var BOe=zOe,WOe=BOe,UOe=Am,ZA=Bw,e_=ZA&&ZA.isMap,HOe=e_?UOe(e_):WOe,VOe=HOe,KOe=_m,qOe=Ar,GOe="[object Set]";function YOe(e){return qOe(e)&&KOe(e)==GOe}var XOe=YOe,QOe=XOe,JOe=Am,t_=Bw,n_=t_&&t_.isSet,ZOe=n_?JOe(n_):QOe,eEe=ZOe,tEe=$w,nEe=HSe,rEe=QD,iEe=nke,oEe=xke,aEe=bke,sEe=Ske,lEe=Pke,uEe=Rke,cEe=nI,fEe=ZD,dEe=_m,pEe=Hke,hEe=AOe,mEe=ROe,gEe=an,yEe=Lw,vEe=VOe,xEe=_r,bEe=eEe,wEe=wl,SEe=N1,kEe=1,OEe=2,EEe=4,eL="[object Arguments]",PEe="[object Array]",jEe="[object Boolean]",AEe="[object Date]",_Ee="[object Error]",tL="[object Function]",CEe="[object GeneratorFunction]",TEe="[object Map]",NEe="[object Number]",nL="[object Object]",$Ee="[object RegExp]",MEe="[object Set]",IEe="[object String]",REe="[object Symbol]",DEe="[object WeakMap]",LEe="[object ArrayBuffer]",FEe="[object DataView]",zEe="[object Float32Array]",BEe="[object Float64Array]",WEe="[object Int8Array]",UEe="[object Int16Array]",HEe="[object Int32Array]",VEe="[object Uint8Array]",KEe="[object Uint8ClampedArray]",qEe="[object Uint16Array]",GEe="[object Uint32Array]",Be={};Be[eL]=Be[PEe]=Be[LEe]=Be[FEe]=Be[jEe]=Be[AEe]=Be[zEe]=Be[BEe]=Be[WEe]=Be[UEe]=Be[HEe]=Be[TEe]=Be[NEe]=Be[nL]=Be[$Ee]=Be[MEe]=Be[IEe]=Be[REe]=Be[VEe]=Be[KEe]=Be[qEe]=Be[GEe]=!0;Be[_Ee]=Be[tL]=Be[DEe]=!1;function jd(e,t,n,r,i,o){var a,s=t&kEe,l=t&OEe,u=t&EEe;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!xEe(e))return e;var f=gEe(e);if(f){if(a=pEe(e),!s)return sEe(e,a)}else{var c=dEe(e),d=c==tL||c==CEe;if(yEe(e))return aEe(e,s);if(c==nL||c==eL||d&&!i){if(a=l||d?{}:mEe(e),!s)return l?uEe(e,oEe(a,e)):lEe(e,iEe(a,e))}else{if(!Be[c])return i?e:{};a=hEe(e,c,s)}}o||(o=new tEe);var p=o.get(e);if(p)return p;o.set(e,a),bEe(e)?e.forEach(function(v){a.add(jd(v,t,n,v,e,o))}):vEe(e)&&e.forEach(function(v,y){a.set(y,jd(v,t,n,y,e,o))});var m=u?l?fEe:cEe:l?SEe:wEe,g=f?void 0:m(e);return nEe(g||e,function(v,y){g&&(y=v,v=e[y]),rEe(a,y,jd(v,t,n,y,e,o))}),a}var YEe=jd,XEe=dm,QEe=vM;function JEe(e,t){return t.length<2?e:XEe(e,QEe(t,0,-1))}var ZEe=JEe,ePe=fm,tPe=DR,nPe=ZEe,rPe=Hc,iPe=Object.prototype,oPe=iPe.hasOwnProperty;function aPe(e,t){t=ePe(t,e);var n=-1,r=t.length;if(!r)return!0;for(var i=e==null||typeof e!="object"&&typeof e!="function";++n<r;){var o=t[n];if(typeof o=="string"){if(o==="__proto__"&&!oPe.call(e,"__proto__"))return!1;if(o==="constructor"&&n+1<r&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(i&&n===0)continue;return!1}}}var a=nPe(e,t);return a==null||delete a[rPe(tPe(t))]}var sPe=aPe,lPe=nD;function uPe(e){return lPe(e)?void 0:e}var cPe=uPe,fPe=Hw;function dPe(e){var t=e==null?0:e.length;return t?fPe(e,1):[]}var pPe=dPe,hPe=pPe,mPe=mI,gPe=yI;function yPe(e){return gPe(mPe(e,void 0,hPe),e+"")}var vPe=yPe,xPe=cm,bPe=YEe,wPe=sPe,SPe=fm,kPe=Zc,OPe=cPe,EPe=vPe,PPe=ZD,jPe=1,APe=2,_Pe=4,CPe=EPe(function(e,t){var n={};if(e==null)return n;var r=!1;t=xPe(t,function(o){return o=SPe(o,e),r||(r=o.length>1),o}),kPe(e,PPe(e),n),r&&(n=bPe(n,jPe|APe|_Pe,OPe));for(var i=t.length;i--;)wPe(n,t[i]);return n}),TPe=CPe;const NPe=Ce(TPe);var $Pe=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],MPe=["width","height","className","style","children","type"];function Zs(e){"@babel/helpers - typeof";return Zs=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},Zs(e)}function yh(){return yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yh.apply(this,arguments)}function IPe(e,t){if(e==null)return{};var n=RPe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RPe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function DPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iL(r.key),r)}}function LPe(e,t,n){return t&&r_(e.prototype,t),n&&r_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function FPe(e,t,n){return t=vh(t),zPe(e,rL()?Reflect.construct(t,n||[],vh(e).constructor):t.apply(e,n))}function zPe(e,t){if(t&&(Zs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BPe(e)}function BPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rL=function(){return!!e})()}function vh(e){return vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vh(e)}function WPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tb(e,t)}function Tb(e,t){return Tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Tb(e,t)}function i_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i_(Object(n),!0).forEach(function(r){pi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pi(e,t,n){return t=iL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iL(e){var t=UPe(e,"string");return Zs(t)=="symbol"?t:t+""}function UPe(e,t){if(Zs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jc="value",Dy=function e(t){var n=t.depth,r=t.node,i=t.index,o=t.valueKey,a=r.children,s=n+1,l=a&&a.length?a.map(function(f,c){return e({depth:s,node:f,index:c,valueKey:o})}):null,u;return a&&a.length?u=l.reduce(function(f,c){return f+c[jc]},0):u=xa(r[o])||r[o]<=0?0:r[o],Ue(Ue({},r),{},pi(pi(pi({children:l},jc,u),"depth",n),"index",i))},HPe=function(t){return{x:t.x,y:t.y,width:t.width,height:t.height}},VPe=function(t,n){var r=n<0?0:n;return t.map(function(i){var o=i[jc]*r;return Ue(Ue({},i),{},{area:xa(o)||o<=0?0:o})})},KPe=function(t,n,r){var i=n*n,o=t.area*t.area,a=t.reduce(function(u,f){return{min:Math.min(u.min,f.area),max:Math.max(u.max,f.area)}},{min:1/0,max:0}),s=a.min,l=a.max;return o?Math.max(i*l*r/o,o/(i*s*r)):1/0},qPe=function(t,n,r,i){var o=n?Math.round(t.area/n):0;(i||o>r.height)&&(o=r.height);for(var a=r.x,s,l=0,u=t.length;l<u;l++)s=t[l],s.x=a,s.y=r.y,s.height=o,s.width=Math.min(o?Math.round(s.area/o):0,r.x+r.width-a),a+=s.width;return s.width+=r.x+r.width-a,Ue(Ue({},r),{},{y:r.y+o,height:r.height-o})},GPe=function(t,n,r,i){var o=n?Math.round(t.area/n):0;(i||o>r.width)&&(o=r.width);for(var a=r.y,s,l=0,u=t.length;l<u;l++)s=t[l],s.x=r.x,s.y=a,s.width=o,s.height=Math.min(o?Math.round(s.area/o):0,r.y+r.height-a),a+=s.height;return s&&(s.height+=r.y+r.height-a),Ue(Ue({},r),{},{x:r.x+o,width:r.width-o})},o_=function(t,n,r,i){return n===r.width?qPe(t,n,r,i):GPe(t,n,r,i)},Ly=function e(t,n){var r=t.children;if(r&&r.length){var i=HPe(t),o=[],a=1/0,s,l,u=Math.min(i.width,i.height),f=VPe(r,i.width*i.height/t[jc]),c=f.slice();for(o.area=0;c.length>0;)o.push(s=c[0]),o.area+=s.area,l=KPe(o,u,n),l<=a?(c.shift(),a=l):(o.area-=o.pop().area,i=o_(o,u,i,!1),u=Math.min(i.width,i.height),o.length=o.area=0,a=1/0);return o.length&&(i=o_(o,u,i,!0),o.length=o.area=0),Ue(Ue({},t),{},{children:f.map(function(d){return e(d,n)})})}return t},YPe={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},M1=function(e){function t(){var n;DPe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=FPe(this,t,[].concat(i)),pi(n,"state",Ue({},YPe)),pi(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ce(a)&&a()}),pi(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ce(a)&&a()}),n}return WPe(t,e),LPe(t,[{key:"handleMouseEnter",value:function(r,i){i.persist();var o=this.props,a=o.onMouseEnter,s=o.children,l=Ut(s,jt);l?this.setState({isTooltipActive:!0,activeNode:r},function(){a&&a(r,i)}):a&&a(r,i)}},{key:"handleMouseLeave",value:function(r,i){i.persist();var o=this.props,a=o.onMouseLeave,s=o.children,l=Ut(s,jt);l?this.setState({isTooltipActive:!1,activeNode:null},function(){a&&a(r,i)}):a&&a(r,i)}},{key:"handleClick",value:function(r){var i=this.props,o=i.onClick,a=i.type;if(a==="nest"&&r.children){var s=this.props,l=s.width,u=s.height,f=s.dataKey,c=s.aspectRatio,d=Dy({depth:0,node:Ue(Ue({},r),{},{x:0,y:0,width:l,height:u}),index:0,valueKey:f}),p=Ly(d,c),m=this.state.nestIndex;m.push(r),this.setState({formatRoot:p,currentRoot:d,nestIndex:m})}o&&o(r)}},{key:"handleNestIndex",value:function(r,i){var o=this.state.nestIndex,a=this.props,s=a.width,l=a.height,u=a.dataKey,f=a.aspectRatio,c=Dy({depth:0,node:Ue(Ue({},r),{},{x:0,y:0,width:s,height:l}),index:0,valueKey:u}),d=Ly(c,f);o=o.slice(0,i+1),this.setState({formatRoot:d,currentRoot:r,nestIndex:o})}},{key:"renderItem",value:function(r,i,o){var a=this,s=this.props,l=s.isAnimationActive,u=s.animationBegin,f=s.animationDuration,c=s.animationEasing,d=s.isUpdateAnimationActive,p=s.type,m=s.animationId,g=s.colorPanel,v=this.state.isAnimationFinished,y=i.width,x=i.height,b=i.x,O=i.y,S=i.depth,w=parseInt("".concat((Math.random()*2-1)*y),10),E={};return(o||p==="nest")&&(E={onMouseEnter:this.handleMouseEnter.bind(this,i),onMouseLeave:this.handleMouseLeave.bind(this,i),onClick:this.handleClick.bind(this,i)}),l?C.createElement(tr,{begin:u,duration:f,isActive:l,easing:c,key:"treemap-".concat(m),from:{x:b,y:O,width:y,height:x},to:{x:b,y:O,width:y,height:x},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(P){var _=P.x,A=P.y,$=P.width,N=P.height;return C.createElement(tr,{from:"translate(".concat(w,"px, ").concat(w,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:u,easing:c,isActive:l,duration:f},C.createElement(Oe,E,function(){return S>2&&!v?null:a.constructor.renderContentItem(r,Ue(Ue({},i),{},{isAnimationActive:l,isUpdateAnimationActive:!d,width:$,height:N,x:_,y:A}),p,g)}()))}):C.createElement(Oe,E,this.constructor.renderContentItem(r,Ue(Ue({},i),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:y,height:x,x:b,y:O}),p,g))}},{key:"renderNode",value:function(r,i){var o=this,a=this.props,s=a.content,l=a.type,u=Ue(Ue(Ue({},se(this.props,!1)),i),{},{root:r}),f=!i.children||!i.children.length,c=this.state.currentRoot,d=(c.children||[]).filter(function(p){return p.depth===i.depth&&p.name===i.name});return!d.length&&r.depth&&l==="nest"?null:C.createElement(Oe,{key:"recharts-treemap-node-".concat(u.x,"-").concat(u.y,"-").concat(u.name),className:"recharts-treemap-depth-".concat(i.depth)},this.renderItem(s,u,f),i.children&&i.children.length?i.children.map(function(p){return o.renderNode(i,p)}):null)}},{key:"renderAllNodes",value:function(){var r=this.state.formatRoot;return r?this.renderNode(r,r):null}},{key:"renderTooltip",value:function(){var r=this.props,i=r.children,o=r.nameKey,a=Ut(i,jt);if(!a)return null;var s=this.props,l=s.width,u=s.height,f=this.state,c=f.isTooltipActive,d=f.activeNode,p={x:0,y:0,width:l,height:u},m=d?{x:d.x+d.width/2,y:d.y+d.height/2}:null,g=c&&d?[{payload:d,name:dt(d,o,""),value:dt(d,jc)}]:[];return C.cloneElement(a,{viewBox:p,active:c,coordinate:m,label:"",payload:g})}},{key:"renderNestIndex",value:function(){var r=this,i=this.props,o=i.nameKey,a=i.nestIndexContent,s=this.state.nestIndex;return C.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},s.map(function(l,u){var f=vn(l,o,"root"),c=null;return C.isValidElement(a)&&(c=C.cloneElement(a,l,u)),ce(a)?c=a(l,u):c=f,C.createElement("div",{onClick:r.handleNestIndex.bind(r,l,u),key:"nest-index-".concat(ba()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},c)}))}},{key:"render",value:function(){if(!ox(this))return null;var r=this.props,i=r.width,o=r.height,a=r.className,s=r.style,l=r.children,u=r.type,f=IPe(r,MPe),c=se(f,!1);return C.createElement("div",{className:he("recharts-wrapper",a),style:Ue(Ue({},s),{},{position:"relative",cursor:"default",width:i,height:o}),role:"region"},C.createElement(hp,yh({},c,{width:i,height:u==="nest"?o-30:o}),this.renderAllNodes(),pee(l)),this.renderTooltip(),u==="nest"&&this.renderNestIndex())}}],[{key:"getDerivedStateFromProps",value:function(r,i){if(r.data!==i.prevData||r.type!==i.prevType||r.width!==i.prevWidth||r.height!==i.prevHeight||r.dataKey!==i.prevDataKey||r.aspectRatio!==i.prevAspectRatio){var o=Dy({depth:0,node:{children:r.data,x:0,y:0,width:r.width,height:r.height},index:0,valueKey:r.dataKey}),a=Ly(o,r.aspectRatio);return Ue(Ue({},i),{},{formatRoot:a,currentRoot:o,nestIndex:[o],prevAspectRatio:r.aspectRatio,prevData:r.data,prevWidth:r.width,prevHeight:r.height,prevDataKey:r.dataKey,prevType:r.type})}return null}},{key:"renderContentItem",value:function(r,i,o,a){if(C.isValidElement(r))return C.cloneElement(r,i);if(ce(r))return r(i);var s=i.x,l=i.y,u=i.width,f=i.height,c=i.index,d=null;u>10&&f>10&&i.children&&o==="nest"&&(d=C.createElement(XR,{points:[{x:s+2,y:l+f/2},{x:s+6,y:l+f/2+3},{x:s+2,y:l+f/2+6}]}));var p=null,m=ds(i.name);u>20&&f>20&&m.width<u&&m.height<f&&(p=C.createElement("text",{x:s+8,y:l+f/2+7,fontSize:14},i.name));var g=a||$Pe;return C.createElement("g",null,C.createElement(Hm,yh({fill:i.depth<2?g[c%g.length]:"rgba(255,255,255,0)",stroke:"#fff"},NPe(i,"children"),{role:"img"})),d,p)}}])}(k.PureComponent);pi(M1,"displayName","Treemap");pi(M1,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!Ei.isSsr,isUpdateAnimationActive:!Ei.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});const _t={purple:"hsl(265 89% 78%)",cyan:"hsl(191 97% 77%)",green:"hsl(135 94% 65%)",pink:"hsl(326 100% 74%)",orange:"hsl(31 100% 71%)",comment:"hsl(225 27% 51%)"},XPe={completed:_t.purple,failed:_t.pink,canceled:_t.orange,running:_t.cyan,queued:_t.comment},a_=[_t.purple,_t.cyan,_t.green,_t.pink,_t.orange];function QPe({active:e,payload:t,label:n}){return!e||!(t!=null&&t.length)?null:h.jsxs("div",{className:"bg-popover border border-border/30 rounded-lg p-2 text-xs shadow-lg",children:[h.jsx("p",{className:"text-muted-foreground mb-1",children:n}),h.jsxs("p",{className:"font-medium",children:["$",t[0].value.toFixed(4)]})]})}function JPe(e){try{return b$(new Date(e),"MMM d")}catch{return e}}function ZPe({data:e}){if(!(e.length>0&&e.some(i=>i.costUsd>0)))return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost Over Time"}),h.jsx("div",{className:"h-[220px] flex items-center justify-center text-xs text-muted-foreground",children:"No cost data for this period"})]});const n=Math.max(1,Math.floor(e.length/7)),r=e.filter((i,o)=>o%n===0).map(i=>i.date);return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost Over Time"}),h.jsx(Ol,{width:"100%",height:220,children:h.jsxs(BSe,{data:e,margin:{top:4,right:8,left:0,bottom:0},children:[h.jsx(Qc,{strokeDasharray:"3 3",stroke:"var(--color-border)"}),h.jsx(Oo,{dataKey:"date",ticks:r,tickFormatter:JPe,tick:{fontSize:10,fill:"var(--color-muted-foreground)"},axisLine:!1,tickLine:!1}),h.jsx(Eo,{tickFormatter:i=>`$${i.toFixed(2)}`,tick:{fontSize:10,fill:"var(--color-muted-foreground)"},axisLine:!1,tickLine:!1,width:55}),h.jsx(jt,{content:h.jsx(QPe,{})}),h.jsx(Jc,{type:"monotone",dataKey:"costUsd",stroke:_t.purple,strokeWidth:2,dot:!1,activeDot:{r:3,fill:_t.purple}})]})})]})}function eje({active:e,payload:t}){if(!e||!(t!=null&&t.length))return null;const n=t[0];return h.jsxs("div",{className:"bg-popover border border-border/30 rounded-lg p-2 text-xs shadow-lg",children:[h.jsx("p",{className:"capitalize font-medium",children:n.name}),h.jsxs("p",{className:"text-muted-foreground",children:[n.value," jobs"]})]})}function tje({data:e}){if(e.length===0)return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Jobs by Status"}),h.jsx("div",{className:"h-[220px] flex items-center justify-center text-xs text-muted-foreground",children:"No jobs in this period"})]});const t=e.reduce((n,r)=>n+r.count,0);return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Jobs by Status"}),h.jsx(Ol,{width:"100%",height:220,children:h.jsxs(WSe,{children:[h.jsx(Ii,{data:e,dataKey:"count",nameKey:"status",cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:2,children:e.map(n=>h.jsx(Nm,{fill:XPe[n.status]??"var(--color-muted-foreground)"},n.status))}),h.jsx(jt,{content:h.jsx(eje,{})}),h.jsx(ci,{formatter:n=>{const r=e.find(o=>o.status===n),i=r?(r.count/t*100).toFixed(0):"0";return h.jsxs("span",{className:"text-xs capitalize",children:[n," (",(r==null?void 0:r.count)??0,", ",i,"%)"]})}})]})})]})}const nje=["<1m","1-3m","3-5m","5-10m",">10m"];function rje(e){if(e===null)return"—";const t=Math.round(e/1e3),n=Math.floor(t/60),r=t%60;return n===0?`${r}s`:`${n}m ${r}s`}function ije({active:e,payload:t,label:n}){return!e||!(t!=null&&t.length)?null:h.jsxs("div",{className:"bg-popover border border-border/30 rounded-lg p-2 text-xs shadow-lg",children:[h.jsx("p",{className:"text-muted-foreground mb-1",children:n}),h.jsxs("p",{className:"font-medium",children:[t[0].value," jobs"]})]})}function oje({data:e,percentiles:t}){const n=nje.map(i=>{const o=e.find(a=>a.bucket===i);return{bucket:i,count:(o==null?void 0:o.count)??0}});return n.some(i=>i.count>0)?h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Duration Distribution"}),h.jsx(Ol,{width:"100%",height:180,children:h.jsxs(T1,{data:n,margin:{top:4,right:8,left:0,bottom:0},children:[h.jsx(Qc,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),h.jsx(Oo,{dataKey:"bucket",tick:{fontSize:10,fill:"var(--color-muted-foreground)"},axisLine:!1,tickLine:!1}),h.jsx(Eo,{allowDecimals:!1,tick:{fontSize:10,fill:"var(--color-muted-foreground)"},axisLine:!1,tickLine:!1,width:30}),h.jsx(jt,{content:h.jsx(ije,{})}),h.jsx(Qn,{dataKey:"count",fill:_t.cyan,radius:[3,3,0,0]})]})}),h.jsx("div",{className:"flex items-center gap-3 mt-2",children:["p50","p75","p95"].map(i=>h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsxs("span",{className:"text-[10px] text-muted-foreground uppercase",children:[i,":"]}),h.jsx("span",{className:"text-[10px] font-medium tabular-nums",children:rje(t[i])})]},i))})]}):h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Duration Distribution"}),h.jsx("div",{className:"h-[220px] flex items-center justify-center text-xs text-muted-foreground",children:"No duration data available"})]})}function aje({active:e,payload:t,label:n}){return!e||!(t!=null&&t.length)?null:h.jsxs("div",{className:"bg-popover border border-border/30 rounded-lg p-2 text-xs shadow-lg",children:[h.jsx("p",{className:"text-muted-foreground mb-1 font-mono truncate max-w-48",children:n}),t.map(r=>h.jsxs("p",{style:{color:r.color},children:[r.name,": ",r.value.toLocaleString()]},r.name))]})}function sje({data:e}){if(e.length===0)return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Token Efficiency"}),h.jsx("div",{className:"h-[220px] flex items-center justify-center text-xs text-muted-foreground",children:"No token data for this period"})]});const t=e.map(n=>({...n,name:n.command.length>20?`…${n.command.slice(-18)}`:n.command}));return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Token Efficiency"}),h.jsx(Ol,{width:"100%",height:220,children:h.jsxs(T1,{layout:"vertical",data:t,margin:{top:4,right:8,left:0,bottom:0},children:[h.jsx(Qc,{strokeDasharray:"3 3",stroke:"var(--color-border)",horizontal:!1}),h.jsx(Oo,{type:"number",tick:{fontSize:10,fill:"var(--color-muted-foreground)"},axisLine:!1,tickLine:!1,tickFormatter:n=>n>=1e3?`${(n/1e3).toFixed(0)}k`:String(n)}),h.jsx(Eo,{type:"category",dataKey:"name",width:110,tick:{fontSize:9,fill:"var(--color-muted-foreground)",fontFamily:"monospace"},axisLine:!1,tickLine:!1}),h.jsx(jt,{content:h.jsx(aje,{})}),h.jsx(ci,{formatter:n=>h.jsx("span",{className:"text-xs",children:n})}),h.jsx(Qn,{dataKey:"tokensOut",name:"Output tokens",fill:_t.purple,stackId:"a",radius:[0,3,3,0]}),h.jsx(Qn,{dataKey:"tokensCacheRead",name:"Cached tokens",fill:_t.cyan,stackId:"a",radius:[0,3,3,0]})]})})]})}function s_(e){return e===null?"—":`$${e.toFixed(4)}`}function lje(e){if(e===null)return"—";const t=Math.round(e/1e3),n=Math.floor(t/60),r=t%60;return n===0?`${r}s`:`${n}m ${r}s`}function uje({rate:e}){const t=(e*100).toFixed(0);return h.jsxs("span",{className:le("inline-block px-1.5 py-0.5 rounded text-[10px] font-medium",e>=.8?"bg-green-400/10 text-green-400":e>=.5?"bg-orange-400/10 text-orange-400":"bg-red-400/10 text-red-400"),children:[t,"%"]})}function Da({label:e,sortKey:t,current:n,dir:r,onSort:i}){const o=n===t;return h.jsx("th",{onClick:()=>i(t),className:"px-3 py-2 text-left text-[10px] font-medium text-muted-foreground uppercase tracking-wide cursor-pointer select-none hover:text-foreground whitespace-nowrap",children:h.jsxs("span",{className:"inline-flex items-center gap-1",children:[e,o?r==="asc"?h.jsx(t8,{className:"w-3 h-3"}):h.jsx(K0,{className:"w-3 h-3"}):h.jsx(r8,{className:"w-3 h-3 opacity-40"})]})})}function cje({data:e}){const[t,n]=k.useState("totalCostUsd"),[r,i]=k.useState("desc");function o(s){s===t?i(l=>l==="asc"?"desc":"asc"):(n(s),i("desc"))}const a=[...e].sort((s,l)=>{const u=s[t]??-1/0,f=l[t]??-1/0,c=typeof u=="string"?u.localeCompare(f):u-f;return r==="asc"?c:-c});return e.length===0?h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Command Performance"}),h.jsx("p",{className:"text-xs text-muted-foreground",children:"No command data for this period"})]}):h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Command Performance"}),h.jsx("div",{className:"overflow-x-auto",children:h.jsxs("table",{className:"w-full text-xs",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-border/30",children:[h.jsx(Da,{label:"Command",sortKey:"command",current:t,dir:r,onSort:o}),h.jsx(Da,{label:"Runs",sortKey:"totalRuns",current:t,dir:r,onSort:o}),h.jsx(Da,{label:"Success Rate",sortKey:"successRate",current:t,dir:r,onSort:o}),h.jsx(Da,{label:"Avg Cost",sortKey:"avgCostUsd",current:t,dir:r,onSort:o}),h.jsx(Da,{label:"Avg Duration",sortKey:"avgDurationMs",current:t,dir:r,onSort:o}),h.jsx(Da,{label:"Total Cost",sortKey:"totalCostUsd",current:t,dir:r,onSort:o})]})}),h.jsx("tbody",{children:a.map(s=>h.jsxs("tr",{className:"border-b border-border/20 hover:bg-accent/20 transition-colors",children:[h.jsx("td",{className:"px-3 py-2 font-mono text-[10px] text-foreground",children:s.command}),h.jsx("td",{className:"px-3 py-2 tabular-nums",children:s.totalRuns}),h.jsx("td",{className:"px-3 py-2",children:h.jsx(uje,{rate:s.successRate})}),h.jsx("td",{className:"px-3 py-2 tabular-nums",children:s_(s.avgCostUsd)}),h.jsx("td",{className:"px-3 py-2 tabular-nums",children:lje(s.avgDurationMs)}),h.jsx("td",{className:"px-3 py-2 tabular-nums font-medium",children:s_(s.totalCostUsd)})]},s.command))})]})})]})}function fje({active:e,payload:t,label:n}){return!e||!(t!=null&&t.length)?null:h.jsxs("div",{className:"bg-popover border border-border/30 rounded-lg p-2 text-xs shadow-lg",children:[h.jsx("p",{className:"text-muted-foreground mb-1",children:n}),t.map(r=>h.jsxs("p",{style:{color:r.color},children:[r.name,": ",r.value]},r.name))]})}function dje(e){try{return b$(new Date(e),"MMM d")}catch{return e}}function pje({data:e}){if(!(e.length>0&&e.some(i=>i.completed+i.failed+i.canceled>0)))return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Daily Throughput"}),h.jsx("div",{className:"h-[220px] flex items-center justify-center text-xs text-muted-foreground",children:"No throughput data for this period"})]});const n=Math.max(1,Math.floor(e.length/7)),r=e.filter((i,o)=>o%n===0).map(i=>i.date);return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Daily Throughput"}),h.jsx(Ol,{width:"100%",height:220,children:h.jsxs(T1,{data:e,margin:{top:4,right:8,left:0,bottom:0},children:[h.jsx(Qc,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),h.jsx(Oo,{dataKey:"date",ticks:r,tickFormatter:dje,tick:{fontSize:10,fill:"var(--color-muted-foreground)"},axisLine:!1,tickLine:!1}),h.jsx(Eo,{allowDecimals:!1,tick:{fontSize:10,fill:"var(--color-muted-foreground)"},axisLine:!1,tickLine:!1,width:30}),h.jsx(jt,{content:h.jsx(fje,{})}),h.jsx(ci,{formatter:i=>h.jsx("span",{className:"text-xs capitalize",children:i})}),h.jsx(Qn,{dataKey:"completed",name:"Completed",stackId:"a",fill:_t.purple}),h.jsx(Qn,{dataKey:"failed",name:"Failed",stackId:"a",fill:_t.pink}),h.jsx(Qn,{dataKey:"canceled",name:"Canceled",stackId:"a",fill:_t.orange,radius:[3,3,0,0]})]})})]})}function hje({x:e=0,y:t=0,width:n=0,height:r=0,name:i="",size:o=0,colorIndex:a=0}){const s=a_[a%a_.length],l=n>50&&r>30;return h.jsxs("g",{children:[h.jsx("rect",{x:e,y:t,width:n,height:r,style:{fill:s,fillOpacity:.8,stroke:"var(--color-background)",strokeWidth:2},rx:4}),l&&h.jsxs(h.Fragment,{children:[h.jsx("text",{x:e+6,y:t+16,fill:"var(--color-background)",fontSize:10,fontFamily:"monospace",style:{overflow:"hidden"},children:i.length>Math.floor(n/6)?i.slice(0,Math.floor(n/6)-1)+"…":i}),r>45&&h.jsxs("text",{x:e+6,y:t+30,fill:"hsl(231 15% 18% / 0.7)",fontSize:9,children:["$",o.toFixed(4)]})]})]})}function mje({active:e,payload:t}){if(!e||!(t!=null&&t.length))return null;const n=t[0].payload;return n?h.jsxs("div",{className:"bg-popover border border-border/30 rounded-lg p-2 text-xs shadow-lg",children:[h.jsx("p",{className:"font-mono font-medium mb-1",children:n.name}),h.jsxs("p",{className:"text-muted-foreground",children:["Cost: $",n.size.toFixed(4)]}),h.jsxs("p",{className:"text-muted-foreground",children:["Jobs: ",n.jobCount]})]}):null}function gje({data:e}){const t=e.filter(r=>r.totalCostUsd>0);if(t.length===0)return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost per Command"}),h.jsx("div",{className:"h-[220px] flex items-center justify-center text-xs text-muted-foreground",children:"No cost data for this period"})]});const n=t.map((r,i)=>({name:r.command,size:r.totalCostUsd,jobCount:r.jobCount,colorIndex:i}));return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4",children:[h.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost per Command"}),h.jsx(Ol,{width:"100%",height:220,children:h.jsx(M1,{data:n,dataKey:"size",content:h.jsx(hje,{}),children:h.jsx(jt,{content:h.jsx(mje,{})})})})]})}function Fy({label:e,value:t}){return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-3 space-y-1",children:[h.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-wide",children:e}),h.jsx("p",{className:"text-base font-semibold tabular-nums",children:t})]})}function yje({data:e}){const t=e.costPerSuccess!==null?`$${e.costPerSuccess.toFixed(4)}`:"—",n=e.apiEfficiencyPct!==null?`${e.apiEfficiencyPct.toFixed(0)}%`:"—",r=`$${e.failureCostUsd.toFixed(4)}`;return h.jsxs("div",{className:"rounded-lg border border-border/40 bg-card/50 p-4 space-y-4",children:[h.jsx("h3",{className:"text-sm font-medium",children:"Bonus Metrics"}),h.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[h.jsx(Fy,{label:"Cost per Success",value:t}),h.jsx(Fy,{label:"API Efficiency",value:n}),h.jsx(Fy,{label:"Failure Cost",value:r})]}),h.jsxs("div",{children:[h.jsx("h4",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Model Breakdown"}),e.modelBreakdown.length===0?h.jsx("p",{className:"text-xs text-muted-foreground",children:"No model data for this period"}):h.jsx("div",{className:"overflow-x-auto",children:h.jsxs("table",{className:"w-full text-xs",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-border/30",children:[h.jsx("th",{className:"px-3 py-1.5 text-left text-[10px] font-medium text-muted-foreground uppercase tracking-wide",children:"Model"}),h.jsx("th",{className:"px-3 py-1.5 text-left text-[10px] font-medium text-muted-foreground uppercase tracking-wide",children:"Jobs"}),h.jsx("th",{className:"px-3 py-1.5 text-left text-[10px] font-medium text-muted-foreground uppercase tracking-wide",children:"Total Cost"})]})}),h.jsx("tbody",{children:e.modelBreakdown.map(i=>h.jsxs("tr",{className:"border-b border-border/20",children:[h.jsx("td",{className:"px-3 py-1.5 font-mono text-[10px]",children:i.model}),h.jsx("td",{className:"px-3 py-1.5 tabular-nums",children:i.jobCount}),h.jsxs("td",{className:"px-3 py-1.5 tabular-nums",children:["$",i.totalCostUsd.toFixed(4)]})]},i.model))})]})})]})]})}function vje(){return h.jsxs("div",{className:"space-y-4",children:[h.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:Array.from({length:4}).map((e,t)=>h.jsx("div",{className:"h-20 rounded-lg border border-border/40 bg-card/50 animate-pulse"},t))}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:Array.from({length:4}).map((e,t)=>h.jsx("div",{className:"h-[260px] rounded-lg border border-border/40 bg-card/50 animate-pulse"},t))}),h.jsx("div",{className:"h-[180px] rounded-lg border border-border/40 bg-card/50 animate-pulse"})]})}function xje({message:e,onRetry:t}){return h.jsxs("div",{className:"rounded-lg border border-red-400/30 bg-red-400/10 p-4 flex items-center justify-between",children:[h.jsx("p",{className:"text-sm text-red-400",children:e}),h.jsxs("button",{onClick:t,className:"flex items-center gap-1.5 h-7 px-3 rounded-md text-xs text-red-400 border border-red-400/30 hover:bg-red-400/10 transition-colors",children:[h.jsx(N8,{className:"w-3 h-3"}),"Retry"]})]})}function oL(){const{activeProjectId:e}=Ni(),[t,n]=k.useState("7d"),[r,i]=k.useState(""),[o,a]=k.useState(""),[s,l]=k.useState(null),[u,f]=k.useState(!0),[c,d]=k.useState(null),[p,m]=k.useState(0),g=k.useRef(new Map);k.useEffect(()=>{if(e){const O=g.current.get(e);O&&(l(O),f(!1))}const x=new AbortController;!s&&!g.current.get(e??"")&&f(!0),d(null);const b=new URLSearchParams({period:t});if(t==="custom"){if(!r||!o){f(!1);return}b.set("from",r),b.set("to",o)}return fetch(`${Je()}/analytics?${b}`,{signal:x.signal}).then(O=>{if(!O.ok)throw new Error(`HTTP ${O.status}`);return O.json()}).then(O=>{l(O),e&&g.current.set(e,O),f(!1)}).catch(O=>{O.name!=="AbortError"&&(d(O.message),f(!1))}),()=>x.abort()},[t,r,o,p,e]);function v(x,b,O){n(x),i(b??""),a(O??"")}function y(){m(x=>x+1)}return h.jsxs("div",{className:"flex flex-col gap-4 p-4",children:[h.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"text-base font-semibold",children:"Analytics"}),s&&h.jsx("p",{className:"text-xs text-muted-foreground",children:s.period.label})]}),h.jsx(bX,{period:t,from:r,to:o,onChange:v})]}),u&&h.jsx(vje,{}),!u&&c&&h.jsx(xje,{message:`Failed to load analytics: ${c}`,onRetry:y}),!u&&!c&&s&&h.jsxs("div",{className:"space-y-6",children:[h.jsx(kX,{kpi:s.kpi}),h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[h.jsx(ZPe,{data:s.costTimeline}),h.jsx(tje,{data:s.statusBreakdown}),h.jsx(oje,{data:s.durationHistogram,percentiles:s.durationPercentiles}),h.jsx(sje,{data:s.tokenEfficiency})]}),h.jsx(cje,{data:s.commandPerformance}),h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[h.jsx(pje,{data:s.dailyThroughput}),h.jsx(gje,{data:s.costPerCommand})]}),h.jsx(yje,{data:s.bonusMetrics})]})]})}function bje({project:e,onRemove:t}){return h.jsxs("div",{className:"flex items-center gap-3 p-2.5 rounded-md border border-border",children:[h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-xs font-medium truncate",children:e.name}),h.jsx("p",{className:"text-[10px] text-muted-foreground truncate",children:e.path})]}),h.jsx(je,{size:"sm",variant:"ghost",className:"h-6 px-2 text-[10px] text-muted-foreground hover:text-destructive shrink-0",onClick:()=>t(e.id),children:"Remove"})]})}function wje({open:e,onClose:t}){const{projects:n,removeProject:r}=Ni(),[i,o]=k.useState(null),[a,s]=k.useState(!0);k.useEffect(()=>{if(!e)return;s(!0);async function u(){try{const f=await fetch("/api/hub/settings");if(f.ok){const c=await f.json();o(c)}}catch{}finally{s(!1)}}u()},[e]);async function l(u){try{await r(u),nt.success("Project removed")}catch(f){nt.error("Failed to remove project",{description:f.message})}}return h.jsx(Wc,{open:e,onOpenChange:u=>{u||t()},children:h.jsxs(cl,{className:"max-w-lg max-h-[80vh] overflow-y-auto",children:[h.jsxs(fl,{children:[h.jsxs(dl,{className:"flex items-center gap-2",children:[h.jsx(Y0,{className:"w-4 h-4"}),"Hub Settings"]}),h.jsx(xw,{children:"Manage registered projects and view hub information."})]}),a?h.jsxs("div",{className:"space-y-3 py-2",children:[h.jsx("div",{className:"h-20 bg-muted/30 rounded-lg animate-pulse"}),h.jsx("div",{className:"h-16 bg-muted/30 rounded-lg animate-pulse"})]}):h.jsxs("div",{className:"space-y-5 py-2",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("h3",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Registered Projects"}),n.length===0?h.jsx("div",{className:"rounded-md border border-dashed border-border p-4 text-center",children:h.jsx("p",{className:"text-xs text-muted-foreground",children:"No projects registered yet"})}):h.jsx("div",{className:"space-y-1.5",children:n.map(u=>h.jsx(bje,{project:u,onRemove:l},u.id))})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx("h3",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Hub Information"}),h.jsxs("div",{className:"rounded-md border border-border p-3 space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between text-xs",children:[h.jsx("span",{className:"text-muted-foreground",children:"Port"}),h.jsx("span",{className:"font-mono",children:(i==null?void 0:i.port)??4200})]}),h.jsxs("div",{className:"flex items-center justify-between text-xs",children:[h.jsx("span",{className:"text-muted-foreground",children:"Projects"}),h.jsx("span",{className:"font-mono",children:n.length})]}),h.jsxs("div",{className:"flex items-center justify-between text-xs",children:[h.jsx("span",{className:"text-muted-foreground",children:"Hub DB"}),h.jsx("span",{className:"font-mono text-[10px] text-muted-foreground",children:"~/.specrails/hub.sqlite"})]})]})]})]})]})})}function Sje({project:e}){const t=[{to:"/",end:!0,icon:q2,label:"Home"},{to:"/analytics",end:!1,icon:H2,label:"Analytics"}];return h.jsxs("nav",{className:"flex items-center justify-between h-9 px-3 border-b border-border bg-background/50",children:[h.jsx("span",{className:"text-xs text-muted-foreground truncate max-w-[160px]",children:e.path}),h.jsx("div",{className:"flex items-center gap-0.5",children:t.map(({to:n,end:r,icon:i,label:o})=>h.jsxs(Vo,{to:n,end:r,className:({isActive:a})=>le("h-7 px-2 flex items-center gap-1.5 rounded-md text-xs transition-colors",a?"text-foreground bg-accent":"text-muted-foreground hover:text-foreground hover:bg-accent"),children:[h.jsx(i,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:o})]},n))}),h.jsxs(wi,{children:[h.jsx(Si,{asChild:!0,children:h.jsx(Vo,{to:"/settings",className:({isActive:n})=>le("h-7 w-7 flex items-center justify-center rounded-md transition-colors",n?"text-foreground bg-accent":"text-muted-foreground hover:text-foreground hover:bg-accent"),children:h.jsx(Y0,{className:"w-3.5 h-3.5"})})}),h.jsx(Vr,{children:"Project Settings"})]})]})}function kje({project:e}){const{connectionStatus:t}=mw(),n=d$();return h.jsxs(B2,{delayDuration:400,children:[h.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[h.jsx(Sje,{project:e}),h.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[h.jsx("main",{className:"flex-1 overflow-auto",children:h.jsx(LT,{})}),h.jsx(u$,{chat:n})]}),h.jsx(eN,{connectionStatus:t})]}),h.jsx(HT,{position:"bottom-right",toastOptions:{unstyled:!0,classNames:{toast:"glass-card border border-border/30 text-foreground text-xs p-3 rounded-lg flex items-start gap-2 w-[356px]",title:"font-medium",description:"text-muted-foreground mt-0.5"}}})]})}function Oje({onAddProject:e}){return h.jsxs("div",{className:"flex flex-col items-center justify-center h-full min-h-[400px] gap-6 px-8 text-center",children:[h.jsx("div",{className:"w-14 h-14 rounded-2xl bg-muted/50 flex items-center justify-center",children:h.jsx(Q2,{className:"w-7 h-7 text-muted-foreground"})}),h.jsxs("div",{className:"space-y-2",children:[h.jsxs("h2",{className:"text-base font-semibold",children:["Welcome to ",h.jsx("span",{className:"text-dracula-purple",children:"spec"}),h.jsx("span",{className:"text-dracula-pink",children:"rails"})," hub"]}),h.jsx("p",{className:"text-sm text-muted-foreground max-w-sm",children:"The hub manages multiple projects from a single interface. Add your first project to get started."})]}),h.jsxs(je,{onClick:e,size:"sm",className:"gap-2",children:[h.jsx(G0,{className:"w-3.5 h-3.5"}),"Add your first project"]}),h.jsxs("div",{className:"text-[10px] text-muted-foreground space-y-1",children:[h.jsx("p",{children:"Or register a project from the terminal:"}),h.jsx("code",{className:"font-mono bg-muted/50 px-2 py-0.5 rounded text-xs",children:"srm hub add /path/to/project"})]})]})}function Eje({checkpoint:e,index:t}){const n=e.status==="done",r=e.status==="running",i=e.status==="pending";return h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("div",{className:"flex flex-col items-center flex-shrink-0",children:h.jsx("div",{className:le("w-6 h-6 rounded-full flex items-center justify-center text-xs font-bold border-2 transition-all",n&&"bg-dracula-green/20 border-dracula-green text-dracula-green",r&&"bg-dracula-purple/20 border-dracula-purple text-dracula-purple animate-pulse",i&&"bg-muted/30 border-border text-muted-foreground"),children:n?h.jsx(Gh,{className:"w-3 h-3"}):r?h.jsx(h8,{className:"w-3 h-3"}):h.jsx("span",{children:t+1})})}),h.jsxs("div",{className:"pb-4 flex-1 min-w-0",children:[h.jsx("div",{className:"flex items-center gap-2",children:h.jsx("span",{className:le("text-xs font-medium",n&&"text-foreground",r&&"text-dracula-purple",i&&"text-muted-foreground"),children:e.name})}),(r||n)&&e.detail&&h.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5 truncate",children:e.detail})]})]})}function Pje({checkpoints:e,logLines:t}){const[n,r]=k.useState(!1),i=e.filter(s=>s.status==="done").length,o=e.length,a=o>0?Math.round(i/o*100):0;return h.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[h.jsxs("div",{className:"px-4 py-3 border-b border-border/30 flex-shrink-0",children:[h.jsx("h3",{className:"text-xs font-semibold text-foreground mb-2",children:"Setup progress"}),h.jsx("div",{className:"h-1.5 bg-muted/50 rounded-full overflow-hidden",children:h.jsx("div",{className:"h-full bg-dracula-green rounded-full transition-all duration-500",style:{width:`${a}%`}})}),h.jsxs("div",{className:"flex justify-between items-center mt-1",children:[h.jsxs("span",{className:"text-[10px] text-muted-foreground",children:[i," of ",o," complete"]}),h.jsxs("span",{className:"text-[10px] text-muted-foreground",children:[a,"%"]})]})]}),h.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-0",children:e.map((s,l)=>h.jsxs("div",{className:"relative",children:[h.jsx(Eje,{checkpoint:s,index:l}),l<e.length-1&&h.jsx("div",{className:le("absolute left-[11px] top-6 w-0.5 h-4",s.status==="done"?"bg-dracula-green/40":"bg-border/40")})]},s.key))}),h.jsxs("div",{className:"flex-shrink-0 border-t border-border/30",children:[h.jsxs("button",{className:"w-full flex items-center gap-1.5 px-4 py-2 text-[10px] text-muted-foreground hover:text-foreground transition-colors",onClick:()=>r(s=>!s),children:[n?h.jsx(K0,{className:"w-3 h-3 flex-shrink-0"}):h.jsx(q0,{className:"w-3 h-3 flex-shrink-0"}),"Raw log (",t.length," lines)"]}),n&&h.jsx("div",{className:"max-h-40 overflow-auto px-4 pb-3 font-mono text-[9px] text-muted-foreground space-y-0.5",children:t.slice(-200).map((s,l)=>h.jsx("div",{className:"whitespace-pre-wrap break-all leading-tight",children:s},l))})]})]})}const l_=`prose prose-invert prose-xs max-w-none
|
|
464
|
+
prose-p:my-1 prose-p:leading-relaxed
|
|
465
|
+
prose-headings:mt-2 prose-headings:mb-1 prose-headings:text-sm prose-headings:font-semibold
|
|
466
|
+
prose-ul:my-1 prose-ol:my-1 prose-li:my-0
|
|
467
|
+
prose-code:text-cyan-300 prose-code:text-[10px] prose-code:bg-muted/40 prose-code:px-1 prose-code:py-0.5 prose-code:rounded
|
|
468
|
+
prose-pre:my-1 prose-pre:bg-muted/30 prose-pre:rounded-md prose-pre:p-2 prose-pre:text-[10px]
|
|
469
|
+
prose-strong:text-foreground prose-em:text-foreground/70
|
|
470
|
+
prose-table:my-2 prose-table:text-[10px]
|
|
471
|
+
prose-thead:border-border prose-thead:bg-muted/30
|
|
472
|
+
prose-th:px-2 prose-th:py-1 prose-th:text-left prose-th:font-semibold
|
|
473
|
+
prose-td:px-2 prose-td:py-1 prose-td:border-border
|
|
474
|
+
text-foreground/80`;function jje({messages:e,isStreaming:t,streamingText:n,onSendMessage:r}){const[i,o]=k.useState(""),a=k.useRef(null);k.useEffect(()=>{var f;(f=a.current)==null||f.scrollIntoView({behavior:"smooth"})},[e,n]);function s(){const f=i.trim();!f||t||(o(""),r(f))}function l(f){f.key==="Enter"&&!f.shiftKey&&(f.preventDefault(),s())}const u=e.length>0||t;return h.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[h.jsxs("div",{className:"px-4 py-3 border-b border-border/30 flex-shrink-0",children:[h.jsx("h3",{className:"text-xs font-semibold text-foreground",children:"Setup assistant"}),h.jsx("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:"Respond to prompts to configure your project"})]}),h.jsxs("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-3",children:[!u&&h.jsx("div",{className:"flex items-center justify-center h-full",children:h.jsxs("div",{className:"text-center space-y-2",children:[h.jsx("div",{className:"w-8 h-8 rounded-full bg-dracula-purple/20 flex items-center justify-center mx-auto",children:h.jsx(G2,{className:"w-4 h-4 text-dracula-purple animate-spin"})}),h.jsx("p",{className:"text-xs text-muted-foreground",children:"Setting up your project..."})]})}),e.map((f,c)=>h.jsx("div",{className:le("flex",f.role==="user"?"justify-end":"justify-start"),children:h.jsx("div",{className:le("max-w-[85%] rounded-lg px-3 py-2 text-xs",f.role==="user"?"bg-dracula-purple/20 text-foreground":"bg-muted/40 text-foreground"),children:f.role==="assistant"?h.jsx("div",{className:l_,children:h.jsx(Ps,{remarkPlugins:[js],children:f.text})}):h.jsx("p",{className:"whitespace-pre-wrap leading-relaxed",children:f.text})})},c)),t&&n&&h.jsx("div",{className:"flex justify-start",children:h.jsxs("div",{className:"max-w-[85%] rounded-lg px-3 py-2 text-xs bg-muted/40 text-foreground",children:[h.jsx("div",{className:l_,children:h.jsx(Ps,{remarkPlugins:[js],children:n})}),h.jsx("span",{className:"inline-block w-1.5 h-3 bg-dracula-purple ml-0.5 animate-pulse"})]})}),t&&!n&&h.jsx("div",{className:"flex justify-start",children:h.jsxs("div",{className:"rounded-lg px-3 py-2 bg-muted/40 flex items-center gap-1.5",children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-dracula-purple animate-bounce [animation-delay:0ms]"}),h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-dracula-purple animate-bounce [animation-delay:150ms]"}),h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-dracula-purple animate-bounce [animation-delay:300ms]"})]})}),h.jsx("div",{ref:a})]}),h.jsxs("div",{className:"flex-shrink-0 border-t border-border/30 p-3",children:[h.jsxs("div",{className:"flex gap-2",children:[h.jsx("textarea",{className:le("flex-1 resize-none rounded-md border border-border/50 bg-background/50","px-3 py-2 text-xs placeholder:text-muted-foreground","focus:outline-none focus:ring-1 focus:ring-dracula-purple/50","min-h-[36px] max-h-24"),placeholder:"Type a response...",value:i,onChange:f=>o(f.target.value),onKeyDown:l,disabled:t,rows:1}),h.jsx(je,{size:"sm",variant:"ghost",className:"h-9 w-9 p-0 flex-shrink-0",onClick:s,disabled:!i.trim()||t,children:h.jsx(F8,{className:"w-3.5 h-3.5"})})]}),h.jsx("p",{className:"text-[9px] text-muted-foreground mt-1.5",children:"Enter to send, Shift+Enter for new line"})]})]})}const u_=[{key:"base_install",name:"Base installation",status:"pending"},{key:"repo_analysis",name:"Repository analysis",status:"pending"},{key:"stack_conventions",name:"Stack & conventions",status:"pending"},{key:"product_discovery",name:"Product discovery",status:"pending"},{key:"agent_generation",name:"Agent generation",status:"pending"},{key:"command_config",name:"Command configuration",status:"pending"},{key:"final_verification",name:"Final verification",status:"pending"}],Jf=new Map;function Aje({project:e,onInstall:t,onSkip:n}){return h.jsxs("div",{className:"flex flex-col items-center justify-center h-full max-w-lg mx-auto px-6 gap-6",children:[h.jsx("div",{className:"w-14 h-14 rounded-2xl bg-dracula-purple/20 flex items-center justify-center",children:h.jsx(md,{className:"w-7 h-7 text-dracula-purple"})}),h.jsxs("div",{className:"text-center space-y-2",children:[h.jsxs("h2",{className:"text-base font-semibold",children:["Install specrails in ",e.name,"?"]}),h.jsx("p",{className:"text-sm text-muted-foreground",children:"This project doesn't have specrails installed yet. Install it to unlock AI-powered development workflows."})]}),h.jsxs("div",{className:"w-full rounded-lg border border-border/50 bg-muted/20 p-4 space-y-3",children:[h.jsx("p",{className:"text-xs font-medium text-foreground",children:"What will be installed:"}),h.jsx("ul",{className:"space-y-2",children:[{icon:Y6,text:"Specialized AI agents (architect, developer, reviewer)"},{icon:Q2,text:"Workflow commands (/sr:implement, /sr:product-backlog...)"},{icon:Q8,text:"User personas and per-layer conventions"},{icon:md,text:"Agent memory and configuration scaffolding"}].map(({text:r})=>h.jsxs("li",{className:"flex items-center gap-2.5 text-xs text-muted-foreground",children:[h.jsx("div",{className:"w-4 h-4 rounded bg-dracula-green/20 flex items-center justify-center flex-shrink-0",children:h.jsx(Gh,{className:"w-2.5 h-2.5 text-dracula-green"})}),r]},r))})]}),h.jsxs("div",{className:"flex gap-3 w-full",children:[h.jsx(je,{variant:"outline",size:"sm",className:"flex-1",onClick:n,children:"Skip for now"}),h.jsxs(je,{size:"sm",className:"flex-1 gap-2",onClick:t,children:[h.jsx(md,{className:"w-3.5 h-3.5"}),"Install specrails"]})]})]})}const _je=`prose prose-invert prose-xs max-w-none
|
|
475
|
+
prose-p:my-1 prose-p:leading-relaxed
|
|
476
|
+
prose-headings:mt-3 prose-headings:mb-1 prose-headings:text-sm prose-headings:font-semibold
|
|
477
|
+
prose-ul:my-1 prose-ol:my-1 prose-li:my-0
|
|
478
|
+
prose-code:text-cyan-300 prose-code:text-[10px] prose-code:bg-muted/40 prose-code:px-1 prose-code:py-0.5 prose-code:rounded
|
|
479
|
+
prose-pre:my-1 prose-pre:bg-muted/30 prose-pre:rounded-md prose-pre:p-2 prose-pre:text-[10px]
|
|
480
|
+
prose-strong:text-foreground prose-em:text-foreground/70
|
|
481
|
+
prose-table:my-2 prose-table:text-[10px]
|
|
482
|
+
prose-thead:border-border prose-thead:bg-muted/30
|
|
483
|
+
prose-th:px-2 prose-th:py-1 prose-th:text-left prose-th:font-semibold
|
|
484
|
+
prose-td:px-2 prose-td:py-1 prose-td:border-border
|
|
485
|
+
text-foreground/80`,Cje=k.memo(function({lines:t}){const n=t.join(`
|
|
486
|
+
`);return h.jsx("div",{className:_je,children:h.jsx(Ps,{remarkPlugins:[js],children:n})})});function Tje({logLines:e}){return h.jsxs("div",{className:"flex flex-col h-full max-w-lg mx-auto px-6 py-8 gap-4",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-8 h-8 rounded-full bg-dracula-purple/20 flex items-center justify-center flex-shrink-0",children:h.jsx(md,{className:"w-4 h-4 text-dracula-purple animate-pulse"})}),h.jsxs("div",{children:[h.jsx("h2",{className:"text-sm font-semibold",children:"Installing specrails..."}),h.jsx("p",{className:"text-xs text-muted-foreground",children:"Running npx specrails in your project"})]})]}),h.jsx("div",{className:"flex-1 rounded-lg border border-border/30 bg-muted/10 overflow-auto p-3 text-[11px] text-muted-foreground space-y-0.5",children:e.length===0?h.jsx("p",{className:"text-center text-muted-foreground mt-4",children:"Waiting for output..."}):h.jsx(Cje,{lines:e.slice(-300)})})]})}function Nje({projectName:e,summary:t,onGoToProject:n}){return h.jsxs("div",{className:"flex flex-col items-center justify-center h-full max-w-lg mx-auto px-6 gap-8",children:[h.jsx("div",{className:"w-16 h-16 rounded-2xl bg-dracula-green/20 flex items-center justify-center",children:h.jsx(Gh,{className:"w-8 h-8 text-dracula-green"})}),h.jsxs("div",{className:"text-center space-y-3",children:[h.jsxs("h2",{className:"text-lg font-semibold",children:["Welcome to ",h.jsx("span",{className:"text-dracula-purple",children:"spec"}),h.jsx("span",{className:"text-dracula-pink",children:"rails"})]}),h.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm",children:[h.jsx("strong",{className:"text-foreground",children:e})," is now configured with AI-powered development workflows. Your specialized agents, personas, and commands are ready to use."]})]}),h.jsx("div",{className:"w-full rounded-lg border border-border/50 bg-muted/20 p-4",children:h.jsxs("div",{className:"grid grid-cols-3 gap-4 text-center",children:[h.jsxs("div",{children:[h.jsx("div",{className:"text-2xl font-bold text-dracula-purple",children:t.agents}),h.jsx("div",{className:"text-[10px] text-muted-foreground",children:"Agents"})]}),h.jsxs("div",{children:[h.jsx("div",{className:"text-2xl font-bold text-dracula-pink",children:t.personas}),h.jsx("div",{className:"text-[10px] text-muted-foreground",children:"Personas"})]}),h.jsxs("div",{children:[h.jsx("div",{className:"text-2xl font-bold text-dracula-green",children:t.commands}),h.jsx("div",{className:"text-[10px] text-muted-foreground",children:"Commands"})]})]})}),h.jsxs("div",{className:"text-center space-y-1",children:[h.jsx("p",{className:"text-xs text-muted-foreground",children:"Learn how to get the most out of specrails:"}),h.jsx("a",{href:"https://specrails.dev/docs",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-dracula-purple hover:underline",children:"specrails.dev/docs"})]}),h.jsxs(je,{size:"sm",className:"gap-2",onClick:n,children:["Continue to project",h.jsx(U2,{className:"w-3.5 h-3.5"})]})]})}function $je({message:e,onRetry:t,onSkip:n}){return h.jsxs("div",{className:"flex flex-col items-center justify-center h-full max-w-lg mx-auto px-6 gap-6",children:[h.jsxs("div",{className:"text-center space-y-2",children:[h.jsx("h2",{className:"text-base font-semibold text-destructive",children:"Setup failed"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:e})]}),h.jsxs("div",{className:"flex gap-3",children:[h.jsx(je,{variant:"outline",size:"sm",onClick:n,children:"Skip setup"}),h.jsxs(je,{size:"sm",className:"gap-2",onClick:t,children:[h.jsx(R8,{className:"w-3.5 h-3.5"}),"Retry"]})]})]})}function Mje({project:e,onComplete:t,onSkip:n}){const r=k.useCallback(()=>{Jf.delete(e.id),t()},[e.id,t]),i=k.useCallback(()=>{Jf.delete(e.id),n()},[e.id,n]),o=Jf.get(e.id),[a,s]=k.useState((o==null?void 0:o.wizardStep)??{step:"proposal"}),[l,u]=k.useState((o==null?void 0:o.checkpoints)??u_),[f,c]=k.useState((o==null?void 0:o.logLines)??[]),[d,p]=k.useState((o==null?void 0:o.chatMessages)??[]),[m,g]=k.useState(""),[v,y]=k.useState(!1),[x,b]=k.useState((o==null?void 0:o.sessionId)??null),O=k.useRef(!1),S=k.useRef(a),w=k.useRef(l),E=k.useRef(f),P=k.useRef(d),_=k.useRef(x);S.current=a,w.current=l,E.current=f,P.current=d,_.current=x,k.useEffect(()=>()=>{Jf.set(e.id,{wizardStep:S.current,checkpoints:w.current,logLines:E.current,chatMessages:P.current,sessionId:_.current})},[e.id]),k.useEffect(()=>{if(a.step!=="installing"&&a.step!=="setup")return;async function L(){var M,z;try{const j=await fetch(`/api/projects/${e.id}/setup/checkpoints`);if(!j.ok)return;const W=await j.json();W.checkpoints&&u(W.checkpoints),a.step==="installing"&&!W.isInstalling&&((M=W.checkpoints)!=null&&M.some(Y=>Y.key==="base_install"&&Y.status==="done"))&&(s({step:"setup"}),O.current=!0);const U=(z=W.checkpoints)==null?void 0:z.find(T=>T.key==="final_verification");(U==null?void 0:U.status)==="done"&&!W.isSettingUp&&(await fetch(`/api/projects/${e.id}/setup/checkpoints`)).ok&&(u(Y=>Y.map(J=>({...J,status:"done"}))),s({step:"complete",summary:{agents:0,personas:0,commands:0}}))}catch{}}L()},[]);const{registerHandler:A,unregisterHandler:$}=zc(),N=k.useCallback(L=>{const M=L;if(typeof M.type=="string"&&M.projectId===e.id)switch(M.type){case"setup_log":{const z=M.line;c(j=>[...j,z]);break}case"setup_install_done":{O.current=!0,s({step:"setup"});break}case"setup_checkpoint":{const z=M.checkpoint,j=M.status,W=M.detail,U=M.duration_ms;u(T=>T.map(Y=>Y.key===z?{...Y,status:j,detail:W??Y.detail,duration_ms:U??Y.duration_ms}:Y));break}case"setup_chat":{const z=M.text;M.role==="assistant"&&(y(!0),g(W=>W+z));break}case"setup_turn_done":{const z=M.sessionId;z&&b(z),g(j=>(j&&p(W=>[...W,{role:"assistant",text:j}]),"")),y(!1);break}case"setup_complete":{const z=M.sessionId;z&&b(z),g(W=>(W&&p(U=>[...U,{role:"assistant",text:W}]),"")),y(!1),u(W=>W.map(U=>({...U,status:"done"})));const j=M.summary;s({step:"complete",summary:j});break}case"setup_error":{const z=M.error;g(W=>(W&&p(U=>[...U,{role:"assistant",text:W}]),"")),y(!1);const j=a.step==="installing"?"installing":"setup";s({step:"error",message:z,retryStep:j});break}}},[e.id,a.step]);k.useLayoutEffect(()=>(A(`setup-${e.id}`,N),()=>$(`setup-${e.id}`)),[N,A,$,e.id]);function R(){s({step:"installing"}),c([]),fetch(`/api/projects/${e.id}/setup/install`,{method:"POST"}).catch(L=>{console.error("[SetupWizard] install start error:",L)})}function F(){u(u_),p([]),g(""),y(!1),fetch(`/api/projects/${e.id}/setup/start`,{method:"POST"}).catch(L=>{console.error("[SetupWizard] setup start error:",L)})}function I(L){x&&(p(M=>[...M,{role:"user",text:L}]),g(""),y(!0),fetch(`/api/projects/${e.id}/setup/message`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:x,message:L})}).catch(M=>{console.error("[SetupWizard] send message error:",M)}))}function D(){if(a.step!=="error")return;const L=a.retryStep;s({step:L==="installing"?"installing":"setup"}),L==="installing"?R():F()}return k.useEffect(()=>{a.step==="setup"&&O.current&&(O.current=!1,F())},[a.step]),k.useEffect(()=>{!v&&m&&(p(L=>[...L,{role:"assistant",text:m}]),g(""))},[v,m]),h.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-background",children:[h.jsx("div",{className:"flex-shrink-0 border-b border-border/30 px-4 py-2",children:h.jsx("div",{className:"flex items-center gap-2",children:[{id:"proposal",label:"Proposal"},{id:"installing",label:"Install"},{id:"setup",label:"Configure"},{id:"complete",label:"Complete"}].map((L,M,z)=>{const j=["proposal","installing","setup","complete"],W=j.indexOf(a.step==="error"?a.retryStep:a.step),U=j.indexOf(L.id),T=U<W,Y=U===W;return h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("div",{className:le("w-4 h-4 rounded-full flex items-center justify-center text-[9px] font-bold",T&&"bg-dracula-green text-background",Y&&"bg-dracula-purple text-background",!T&&!Y&&"bg-muted/50 text-muted-foreground"),children:T?h.jsx(Gh,{className:"w-2.5 h-2.5"}):M+1}),h.jsx("span",{className:le("text-[10px] font-medium",Y&&"text-foreground",!Y&&"text-muted-foreground"),children:L.label})]}),M<z.length-1&&h.jsx("div",{className:le("w-6 h-px",T?"bg-dracula-green/50":"bg-border/50")})]},L.id)})})}),h.jsxs("div",{className:"flex-1 overflow-hidden",children:[a.step==="proposal"&&h.jsx(Aje,{project:e,onInstall:R,onSkip:i}),a.step==="installing"&&h.jsx(Tje,{logLines:f}),a.step==="setup"&&h.jsxs("div",{className:"flex h-full",children:[h.jsx("div",{className:"w-72 flex-shrink-0 border-r border-border/30 overflow-hidden",children:h.jsx(Pje,{checkpoints:l,logLines:f})}),h.jsx("div",{className:"flex-1 overflow-hidden",children:h.jsx(jje,{projectId:e.id,messages:d,isStreaming:v,streamingText:m,sessionId:x,onSendMessage:I})})]}),a.step==="complete"&&h.jsx(Nje,{projectName:e.name,summary:a.summary,onGoToProject:r}),a.step==="error"&&h.jsx($je,{message:a.message,onRetry:D,onSkip:i})]})]})}function Ije({project:e,isActive:t,onSelect:n,onRemove:r}){return h.jsxs("button",{type:"button",onClick:n,className:le("group relative flex items-center gap-1.5 h-8 px-3 text-xs font-medium rounded-t-md border-b-0 transition-colors whitespace-nowrap",t?"bg-background text-foreground border border-border border-b-background z-10":"text-muted-foreground hover:text-foreground hover:bg-muted/50 border border-transparent"),children:[h.jsx(G0,{className:"w-3 h-3 flex-shrink-0"}),h.jsx("span",{className:"max-w-[120px] truncate",children:e.name}),h.jsx("button",{type:"button",onClick:i=>{i.stopPropagation(),r()},className:le("flex-shrink-0 w-3.5 h-3.5 flex items-center justify-center rounded-sm transition-opacity",t?"opacity-50 hover:opacity-100 hover:bg-muted":"opacity-0 group-hover:opacity-50 hover:!opacity-100 hover:bg-muted"),"aria-label":`Remove ${e.name}`,children:h.jsx(J2,{className:"w-2.5 h-2.5"})})]})}function Rje({onAddProject:e}){const{projects:t,activeProjectId:n,setActiveProjectId:r,removeProject:i}=Ni();async function o(a){try{await i(a.id)}catch{}}return h.jsxs("div",{className:"flex items-end gap-0.5 px-2 pt-1 border-b border-border bg-card/30",children:[t.map(a=>h.jsx(Ije,{project:a,isActive:a.id===n,onSelect:()=>r(a.id),onRemove:()=>o(a)},a.id)),h.jsxs("button",{type:"button",onClick:e,className:"h-8 px-2 flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/50 rounded-t-md transition-colors","aria-label":"Add project",children:[h.jsx(C8,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"Add project"})]})]})}function Dje({open:e,onClose:t}){const[n,r]=k.useState(""),[i,o]=k.useState(""),[a,s]=k.useState(!1),[l]=k.useState({step:"input"}),{startSetupWizard:u,setActiveProjectId:f}=Ni();async function c(){const m=n.trim();if(!m){nt.error("Project path is required");return}s(!0);try{const g=await fetch("/api/hub/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:m,name:i.trim()||void 0})}),v=await g.json();if(!g.ok){nt.error("Failed to add project",{description:v.error});return}const y=v.project;v.has_specrails===!1?(d(),f(y.id),u(y.id)):(nt.success(`Project "${y.name}" registered`),d())}catch(g){nt.error("Failed to add project",{description:g.message})}finally{s(!1)}}function d(){r(""),o(""),t()}function p(m){m||d()}return l.step==="input"?h.jsx(Wc,{open:e,onOpenChange:p,children:h.jsxs(cl,{className:"max-w-md",children:[h.jsxs(fl,{children:[h.jsxs(dl,{className:"flex items-center gap-2",children:[h.jsx(G0,{className:"w-4 h-4"}),"Add Project"]}),h.jsx(xw,{children:"Register a project directory to manage it from the hub."})]}),h.jsxs("div",{className:"space-y-4 py-2",children:[h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("label",{className:"text-xs font-medium",children:["Project path ",h.jsx("span",{className:"text-destructive",children:"*"})]}),h.jsx(Oi,{placeholder:"/Users/me/my-project",value:n,onChange:m=>r(m.target.value),onKeyDown:m=>{m.key==="Enter"&&!m.shiftKey&&c()},autoFocus:!0}),h.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Absolute path to the project root"})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("label",{className:"text-xs font-medium",children:["Display name ",h.jsx("span",{className:"text-muted-foreground",children:"(optional)"})]}),h.jsx(Oi,{placeholder:"My Project",value:i,onChange:m=>o(m.target.value),onKeyDown:m=>{m.key==="Enter"&&!m.shiftKey&&c()}}),h.jsx("p",{className:"text-[10px] text-muted-foreground",children:"Defaults to the directory name"})]})]}),h.jsxs(Uc,{children:[h.jsx(je,{variant:"outline",size:"sm",onClick:t,disabled:a,children:"Cancel"}),h.jsx(je,{size:"sm",onClick:c,disabled:a||!n.trim(),children:a?"Adding...":"Add Project"})]})]})}):null}function Lje(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}`}const Fje=Lje();function zje(){const[e,t]=k.useState(!1);return k.useEffect(()=>{async function n(){try{const r=await fetch("/api/hub/state");t(r.ok)}catch{t(!1)}}n()},[]),e}function Bje(e){const t=qr(),n=Lh(),r=k.useRef(new Map),i=k.useRef(null);k.useEffect(()=>{if(i.current&&i.current!==e&&r.current.set(i.current,t.pathname),e&&e!==i.current){const a=r.current.get(e)??"/";t.pathname!==a&&n(a,{replace:!0})}i.current=e},[e,t.pathname,n])}function Wje(){const{projects:e,activeProjectId:t,isLoading:n,setupProjectIds:r,completeSetupWizard:i}=Ni(),[o,a]=k.useState(!1),[s,l]=k.useState(!1);Bje(t);const u=e.find(c=>c.id===t),f=t!==null&&r.has(t);return n?h.jsxs("div",{className:"flex flex-col h-screen bg-background",children:[h.jsx("div",{className:"h-11 border-b border-border bg-card/50 animate-pulse"}),h.jsx("div",{className:"flex-1 flex items-center justify-center",children:h.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})})]}):h.jsxs("div",{className:"flex flex-col h-screen overflow-hidden bg-background font-sans",children:[h.jsxs("div",{className:"flex items-center justify-between px-4 h-10 border-b border-border bg-card/50 backdrop-blur-sm flex-shrink-0",children:[h.jsxs("span",{className:"font-mono text-sm font-bold",children:[h.jsx("span",{className:"text-dracula-purple",children:"spec"}),h.jsx("span",{className:"text-dracula-pink",children:"rails"}),h.jsx("span",{className:"text-muted-foreground text-xs font-normal ml-1",children:"/ hub"})]}),h.jsx("button",{type:"button",onClick:()=>l(!0),className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Settings"})]}),e.length>0&&h.jsx(Rje,{onAddProject:()=>a(!0)}),h.jsx("div",{className:"flex-1 overflow-hidden",children:f&&u?h.jsx(Mje,{project:u,onComplete:()=>i(u.id),onSkip:()=>i(u.id)}):h.jsx(FT,{children:e.length===0?h.jsx(Qt,{path:"*",element:h.jsx(Oje,{onAddProject:()=>a(!0)})}):u?h.jsxs(Qt,{element:h.jsx(kje,{project:u}),children:[h.jsx(Qt,{path:"/",element:h.jsx(eM,{})}),h.jsx(Qt,{path:"/jobs/:id",element:h.jsx(tM,{})}),h.jsx(Qt,{path:"/analytics",element:h.jsx(oL,{})}),h.jsx(Qt,{path:"/settings",element:h.jsx(oM,{})}),h.jsx(Qt,{path:"*",element:h.jsx(DT,{to:"/",replace:!0})})]}):h.jsx(Qt,{path:"*",element:h.jsx("div",{className:"flex items-center justify-center h-full",children:h.jsx("p",{className:"text-sm text-muted-foreground",children:"Select a project"})})})})}),h.jsx(Dje,{open:o,onClose:()=>a(!1)}),h.jsx(wje,{open:s,onClose:()=>l(!1)})]})}function Uje(){const e=zje();return h.jsx(sq,{url:Fje,children:e?h.jsx(lq,{children:h.jsx(Wje,{})}):h.jsx(FT,{children:h.jsxs(Qt,{element:h.jsx(cq,{}),children:[h.jsx(Qt,{index:!0,element:h.jsx(eM,{})}),h.jsx(Qt,{path:"/jobs/:id",element:h.jsx(tM,{})}),h.jsx(Qt,{path:"/analytics",element:h.jsx(oL,{})}),h.jsx(Qt,{path:"/settings",element:h.jsx(oM,{})}),h.jsx(Qt,{path:"*",element:h.jsx(DT,{to:"/",replace:!0})})]})})})}kT(document.getElementById("root")).render(h.jsx(k.StrictMode,{children:h.jsx(nF,{children:h.jsx(Uje,{})})}));
|