truthound-dashboard 1.2.1__py3-none-any.whl → 1.3.1__py3-none-any.whl

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.
Files changed (54) hide show
  1. truthound_dashboard/api/deps.py +28 -0
  2. truthound_dashboard/api/drift.py +1 -0
  3. truthound_dashboard/api/mask.py +164 -0
  4. truthound_dashboard/api/profile.py +11 -3
  5. truthound_dashboard/api/router.py +22 -0
  6. truthound_dashboard/api/scan.py +168 -0
  7. truthound_dashboard/api/schemas.py +13 -4
  8. truthound_dashboard/api/validations.py +33 -1
  9. truthound_dashboard/api/validators.py +85 -0
  10. truthound_dashboard/core/__init__.py +8 -0
  11. truthound_dashboard/core/phase5/activity.py +1 -1
  12. truthound_dashboard/core/services.py +457 -7
  13. truthound_dashboard/core/truthound_adapter.py +441 -26
  14. truthound_dashboard/db/__init__.py +6 -0
  15. truthound_dashboard/db/models.py +250 -1
  16. truthound_dashboard/schemas/__init__.py +52 -1
  17. truthound_dashboard/schemas/collaboration.py +1 -1
  18. truthound_dashboard/schemas/drift.py +118 -3
  19. truthound_dashboard/schemas/mask.py +209 -0
  20. truthound_dashboard/schemas/profile.py +45 -2
  21. truthound_dashboard/schemas/scan.py +312 -0
  22. truthound_dashboard/schemas/schema.py +30 -2
  23. truthound_dashboard/schemas/validation.py +60 -3
  24. truthound_dashboard/schemas/validators/__init__.py +59 -0
  25. truthound_dashboard/schemas/validators/aggregate_validators.py +238 -0
  26. truthound_dashboard/schemas/validators/anomaly_validators.py +723 -0
  27. truthound_dashboard/schemas/validators/base.py +263 -0
  28. truthound_dashboard/schemas/validators/completeness_validators.py +269 -0
  29. truthound_dashboard/schemas/validators/cross_table_validators.py +375 -0
  30. truthound_dashboard/schemas/validators/datetime_validators.py +253 -0
  31. truthound_dashboard/schemas/validators/distribution_validators.py +422 -0
  32. truthound_dashboard/schemas/validators/drift_validators.py +615 -0
  33. truthound_dashboard/schemas/validators/geospatial_validators.py +486 -0
  34. truthound_dashboard/schemas/validators/multi_column_validators.py +706 -0
  35. truthound_dashboard/schemas/validators/privacy_validators.py +531 -0
  36. truthound_dashboard/schemas/validators/query_validators.py +510 -0
  37. truthound_dashboard/schemas/validators/registry.py +318 -0
  38. truthound_dashboard/schemas/validators/schema_validators.py +408 -0
  39. truthound_dashboard/schemas/validators/string_validators.py +396 -0
  40. truthound_dashboard/schemas/validators/table_validators.py +412 -0
  41. truthound_dashboard/schemas/validators/uniqueness_validators.py +355 -0
  42. truthound_dashboard/schemas/validators.py +59 -0
  43. truthound_dashboard/static/assets/index-BZG20KuF.js +586 -0
  44. truthound_dashboard/static/assets/index-D_HyZ3pb.css +1 -0
  45. truthound_dashboard/static/assets/unmerged_dictionaries-CtpqQBm0.js +1 -0
  46. truthound_dashboard/static/index.html +2 -2
  47. {truthound_dashboard-1.2.1.dist-info → truthound_dashboard-1.3.1.dist-info}/METADATA +50 -11
  48. {truthound_dashboard-1.2.1.dist-info → truthound_dashboard-1.3.1.dist-info}/RECORD +51 -27
  49. truthound_dashboard/static/assets/index-BqXVFyqj.js +0 -574
  50. truthound_dashboard/static/assets/index-o8qHVDte.css +0 -1
  51. truthound_dashboard/static/assets/unmerged_dictionaries-n_T3wZTf.js +0 -1
  52. {truthound_dashboard-1.2.1.dist-info → truthound_dashboard-1.3.1.dist-info}/WHEEL +0 -0
  53. {truthound_dashboard-1.2.1.dist-info → truthound_dashboard-1.3.1.dist-info}/entry_points.txt +0 -0
  54. {truthound_dashboard-1.2.1.dist-info → truthound_dashboard-1.3.1.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,586 @@
1
+ function YB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();const qB="modulepreload",XB=function(e){return"/"+e},sw={},ZB=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=XB(c),c in sw)return;sw[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":qB,u||(d.as="script"),d.crossOrigin="",d.href=c,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((p,m)=>{d.addEventListener("load",p),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};var yu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f_={exports:{}},dp={},p_={exports:{}},Ae={};/**
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 Bc=Symbol.for("react.element"),QB=Symbol.for("react.portal"),JB=Symbol.for("react.fragment"),e3=Symbol.for("react.strict_mode"),t3=Symbol.for("react.profiler"),n3=Symbol.for("react.provider"),r3=Symbol.for("react.context"),o3=Symbol.for("react.forward_ref"),i3=Symbol.for("react.suspense"),a3=Symbol.for("react.memo"),s3=Symbol.for("react.lazy"),lw=Symbol.iterator;function l3(e){return e===null||typeof e!="object"?null:(e=lw&&e[lw]||e["@@iterator"],typeof e=="function"?e:null)}var h_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m_=Object.assign,v_={};function vs(e,t,n){this.props=e,this.context=t,this.refs=v_,this.updater=n||h_}vs.prototype.isReactComponent={};vs.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")};vs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function y_(){}y_.prototype=vs.prototype;function sx(e,t,n){this.props=e,this.context=t,this.refs=v_,this.updater=n||h_}var lx=sx.prototype=new y_;lx.constructor=sx;m_(lx,vs.prototype);lx.isPureReactComponent=!0;var cw=Array.isArray,g_=Object.prototype.hasOwnProperty,cx={current:null},x_={key:!0,ref:!0,__self:!0,__source:!0};function b_(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)g_.call(t,r)&&!x_.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:Bc,type:e,key:i,ref:a,props:o,_owner:cx.current}}function c3(e,t){return{$$typeof:Bc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ux(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bc}function u3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var uw=/\/+/g;function Kh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?u3(""+e.key):t.toString(36)}function ad(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Bc:case QB:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Kh(a,0):r,cw(o)?(n="",e!=null&&(n=e.replace(uw,"$&/")+"/"),ad(o,t,n,"",function(u){return u})):o!=null&&(ux(o)&&(o=c3(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(uw,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",cw(e))for(var s=0;s<e.length;s++){i=e[s];var c=r+Kh(i,s);a+=ad(i,t,n,c,o)}else if(c=l3(e),typeof c=="function")for(e=c.call(e),s=0;!(i=e.next()).done;)i=i.value,c=r+Kh(i,s++),a+=ad(i,t,n,c,o);else if(i==="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 gu(e,t,n){if(e==null)return e;var r=[],o=0;return ad(e,r,"","",function(i){return t.call(n,i,o++)}),r}function d3(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 Kt={current:null},sd={transition:null},f3={ReactCurrentDispatcher:Kt,ReactCurrentBatchConfig:sd,ReactCurrentOwner:cx};function w_(){throw Error("act(...) is not supported in production builds of React.")}Ae.Children={map:gu,forEach:function(e,t,n){gu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return gu(e,function(){t++}),t},toArray:function(e){return gu(e,function(t){return t})||[]},only:function(e){if(!ux(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ae.Component=vs;Ae.Fragment=JB;Ae.Profiler=t3;Ae.PureComponent=sx;Ae.StrictMode=e3;Ae.Suspense=i3;Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f3;Ae.act=w_;Ae.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=m_({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=cx.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)g_.call(t,c)&&!x_.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Bc,type:e.type,key:o,ref:i,props:r,_owner:a}};Ae.createContext=function(e){return e={$$typeof:r3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:n3,_context:e},e.Consumer=e};Ae.createElement=b_;Ae.createFactory=function(e){var t=b_.bind(null,e);return t.type=e,t};Ae.createRef=function(){return{current:null}};Ae.forwardRef=function(e){return{$$typeof:o3,render:e}};Ae.isValidElement=ux;Ae.lazy=function(e){return{$$typeof:s3,_payload:{_status:-1,_result:e},_init:d3}};Ae.memo=function(e,t){return{$$typeof:a3,type:e,compare:t===void 0?null:t}};Ae.startTransition=function(e){var t=sd.transition;sd.transition={};try{e()}finally{sd.transition=t}};Ae.unstable_act=w_;Ae.useCallback=function(e,t){return Kt.current.useCallback(e,t)};Ae.useContext=function(e){return Kt.current.useContext(e)};Ae.useDebugValue=function(){};Ae.useDeferredValue=function(e){return Kt.current.useDeferredValue(e)};Ae.useEffect=function(e,t){return Kt.current.useEffect(e,t)};Ae.useId=function(){return Kt.current.useId()};Ae.useImperativeHandle=function(e,t,n){return Kt.current.useImperativeHandle(e,t,n)};Ae.useInsertionEffect=function(e,t){return Kt.current.useInsertionEffect(e,t)};Ae.useLayoutEffect=function(e,t){return Kt.current.useLayoutEffect(e,t)};Ae.useMemo=function(e,t){return Kt.current.useMemo(e,t)};Ae.useReducer=function(e,t,n){return Kt.current.useReducer(e,t,n)};Ae.useRef=function(e){return Kt.current.useRef(e)};Ae.useState=function(e){return Kt.current.useState(e)};Ae.useSyncExternalStore=function(e,t,n){return Kt.current.useSyncExternalStore(e,t,n)};Ae.useTransition=function(){return Kt.current.useTransition()};Ae.version="18.3.1";p_.exports=Ae;var h=p_.exports;const D=Re(h),fp=YB({__proto__:null,default:D},[h]);/**
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 p3=h,h3=Symbol.for("react.element"),m3=Symbol.for("react.fragment"),v3=Object.prototype.hasOwnProperty,y3=p3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g3={key:!0,ref:!0,__self:!0,__source:!0};function S_(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)v3.call(t,r)&&!g3.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:h3,type:e,key:i,ref:a,props:o,_owner:y3.current}}dp.Fragment=m3;dp.jsx=S_;dp.jsxs=S_;f_.exports=dp;var l=f_.exports,mv={},A_={exports:{}},xn={},E_={exports:{}},N_={};/**
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(R,k){var H=R.length;R.push(k);e:for(;0<H;){var G=H-1>>>1,W=R[G];if(0<o(W,k))R[G]=k,R[H]=W,H=G;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var k=R[0],H=R.pop();if(H!==k){R[0]=H;e:for(var G=0,W=R.length,J=W>>>1;G<J;){var ce=2*(G+1)-1,Ee=R[ce],we=ce+1,te=R[we];if(0>o(Ee,H))we<W&&0>o(te,Ee)?(R[G]=te,R[we]=H,G=we):(R[G]=Ee,R[ce]=H,G=ce);else if(we<W&&0>o(te,H))R[G]=te,R[we]=H,G=we;else break e}}return k}function o(R,k){var H=R.sortIndex-k.sortIndex;return H!==0?H:R.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var c=[],u=[],f=1,d=null,p=3,m=!1,b=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(R){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=R)r(u),k.sortIndex=k.expirationTime,t(c,k);else break;k=n(u)}}function E(R){if(y=!1,w(R),!b)if(n(c)!==null)b=!0,M(A);else{var k=n(u);k!==null&&L(E,k.startTime-R)}}function A(R,k){b=!1,y&&(y=!1,x(_),_=-1),m=!0;var H=p;try{for(w(k),d=n(c);d!==null&&(!(d.expirationTime>k)||R&&!j());){var G=d.callback;if(typeof G=="function"){d.callback=null,p=d.priorityLevel;var W=G(d.expirationTime<=k);k=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(c)&&r(c),w(k)}else r(c);d=n(c)}if(d!==null)var J=!0;else{var ce=n(u);ce!==null&&L(E,ce.startTime-k),J=!1}return J}finally{d=null,p=H,m=!1}}var S=!1,N=null,_=-1,O=5,T=-1;function j(){return!(e.unstable_now()-T<O)}function I(){if(N!==null){var R=e.unstable_now();T=R;var k=!0;try{k=N(!0,R)}finally{k?$():(S=!1,N=null)}}else S=!1}var $;if(typeof g=="function")$=function(){g(I)};else if(typeof MessageChannel<"u"){var C=new MessageChannel,P=C.port2;C.port1.onmessage=I,$=function(){P.postMessage(null)}}else $=function(){v(I,0)};function M(R){N=R,S||(S=!0,$())}function L(R,k){_=v(function(){R(e.unstable_now())},k)}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(R){R.callback=null},e.unstable_continueExecution=function(){b||m||(b=!0,M(A))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(R){switch(p){case 1:case 2:case 3:var k=3;break;default:k=p}var H=p;p=k;try{return R()}finally{p=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,k){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var H=p;p=R;try{return k()}finally{p=H}},e.unstable_scheduleCallback=function(R,k,H){var G=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?G+H:G):H=G,R){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=H+W,R={id:f++,callback:k,priorityLevel:R,startTime:H,expirationTime:W,sortIndex:-1},H>G?(R.sortIndex=H,t(u,R),n(c)===null&&R===n(u)&&(y?(x(_),_=-1):y=!0,L(E,H-G))):(R.sortIndex=W,t(c,R),b||m||(b=!0,M(A))),R},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(R){var k=p;return function(){var H=p;p=k;try{return R.apply(this,arguments)}finally{p=H}}}})(N_);E_.exports=N_;var x3=E_.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 b3=h,vn=x3;function K(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 __=new Set,Il={};function Ri(e,t){ka(e,t),ka(e+"Capture",t)}function ka(e,t){for(Il[e]=t,e=0;e<t.length;e++)__.add(t[e])}var Ur=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vv=Object.prototype.hasOwnProperty,w3=/^[: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]*$/,dw={},fw={};function S3(e){return vv.call(fw,e)?!0:vv.call(dw,e)?!1:w3.test(e)?fw[e]=!0:(dw[e]=!0,!1)}function A3(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 E3(e,t,n,r){if(t===null||typeof t>"u"||A3(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 Yt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tt[e]=new Yt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tt[t]=new Yt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tt[e]=new Yt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Tt[e]=new Yt(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){Tt[e]=new Yt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Tt[e]=new Yt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Tt[e]=new Yt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Tt[e]=new Yt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Tt[e]=new Yt(e,5,!1,e.toLowerCase(),null,!1,!1)});var dx=/[\-:]([a-z])/g;function fx(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(dx,fx);Tt[t]=new Yt(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(dx,fx);Tt[t]=new Yt(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(dx,fx);Tt[t]=new Yt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Tt[e]=new Yt(e,1,!1,e.toLowerCase(),null,!1,!1)});Tt.xlinkHref=new Yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Tt[e]=new Yt(e,1,!1,e.toLowerCase(),null,!0,!0)});function px(e,t,n,r){var o=Tt.hasOwnProperty(t)?Tt[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(E3(t,n,o,r)&&(n=null),r||o===null?S3(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Qr=b3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xu=Symbol.for("react.element"),oa=Symbol.for("react.portal"),ia=Symbol.for("react.fragment"),hx=Symbol.for("react.strict_mode"),yv=Symbol.for("react.profiler"),j_=Symbol.for("react.provider"),C_=Symbol.for("react.context"),mx=Symbol.for("react.forward_ref"),gv=Symbol.for("react.suspense"),xv=Symbol.for("react.suspense_list"),vx=Symbol.for("react.memo"),uo=Symbol.for("react.lazy"),O_=Symbol.for("react.offscreen"),pw=Symbol.iterator;function Ls(e){return e===null||typeof e!="object"?null:(e=pw&&e[pw]||e["@@iterator"],typeof e=="function"?e:null)}var Je=Object.assign,Yh;function il(e){if(Yh===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yh=t&&t[1]||""}return`
34
+ `+Yh+e}var qh=!1;function Xh(e,t){if(!e||qh)return"";qh=!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 o=u.stack.split(`
35
+ `),i=r.stack.split(`
36
+ `),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var c=`
37
+ `+o[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=s);break}}}finally{qh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?il(e):""}function N3(e){switch(e.tag){case 5:return il(e.type);case 16:return il("Lazy");case 13:return il("Suspense");case 19:return il("SuspenseList");case 0:case 2:case 15:return e=Xh(e.type,!1),e;case 11:return e=Xh(e.type.render,!1),e;case 1:return e=Xh(e.type,!0),e;default:return""}}function bv(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 ia:return"Fragment";case oa:return"Portal";case yv:return"Profiler";case hx:return"StrictMode";case gv:return"Suspense";case xv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C_:return(e.displayName||"Context")+".Consumer";case j_:return(e._context.displayName||"Context")+".Provider";case mx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vx:return t=e.displayName||null,t!==null?t:bv(e.type)||"Memo";case uo:t=e._payload,e=e._init;try{return bv(e(t))}catch{}}return null}function _3(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 bv(t);case 8:return t===hx?"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 Ro(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function T_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function j3(e){var t=T_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.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 bu(e){e._valueTracker||(e._valueTracker=j3(e))}function P_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=T_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Nd(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 wv(e,t){var n=t.checked;return Je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ro(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 I_(e,t){t=t.checked,t!=null&&px(e,"checked",t,!1)}function Sv(e,t){I_(e,t);var n=Ro(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")?Av(e,t.type,n):t.hasOwnProperty("defaultValue")&&Av(e,t.type,Ro(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mw(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 Av(e,t,n){(t!=="number"||Nd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var al=Array.isArray;function ba(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ro(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ev(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return Je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function vw(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(K(92));if(al(n)){if(1<n.length)throw Error(K(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ro(n)}}function R_(e,t){var n=Ro(t.value),r=Ro(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 yw(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function k_(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 Nv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?k_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wu,M_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(wu=wu||document.createElement("div"),wu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pl={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},C3=["Webkit","ms","Moz","O"];Object.keys(pl).forEach(function(e){C3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pl[t]=pl[e]})});function D_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||pl.hasOwnProperty(e)&&pl[e]?(""+t).trim():t+"px"}function $_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=D_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var O3=Je({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 _v(e,t){if(t){if(O3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function jv(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 Cv=null;function yx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ov=null,wa=null,Sa=null;function gw(e){if(e=zc(e)){if(typeof Ov!="function")throw Error(K(280));var t=e.stateNode;t&&(t=yp(t),Ov(e.stateNode,e.type,t))}}function L_(e){wa?Sa?Sa.push(e):Sa=[e]:wa=e}function F_(){if(wa){var e=wa,t=Sa;if(Sa=wa=null,gw(e),t)for(e=0;e<t.length;e++)gw(t[e])}}function B_(e,t){return e(t)}function U_(){}var Zh=!1;function H_(e,t,n){if(Zh)return e(t,n);Zh=!0;try{return B_(e,t,n)}finally{Zh=!1,(wa!==null||Sa!==null)&&(U_(),F_())}}function kl(e,t){var n=e.stateNode;if(n===null)return null;var r=yp(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(K(231,t,typeof n));return n}var Tv=!1;if(Ur)try{var Fs={};Object.defineProperty(Fs,"passive",{get:function(){Tv=!0}}),window.addEventListener("test",Fs,Fs),window.removeEventListener("test",Fs,Fs)}catch{Tv=!1}function T3(e,t,n,r,o,i,a,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var hl=!1,_d=null,jd=!1,Pv=null,P3={onError:function(e){hl=!0,_d=e}};function I3(e,t,n,r,o,i,a,s,c){hl=!1,_d=null,T3.apply(P3,arguments)}function R3(e,t,n,r,o,i,a,s,c){if(I3.apply(this,arguments),hl){if(hl){var u=_d;hl=!1,_d=null}else throw Error(K(198));jd||(jd=!0,Pv=u)}}function ki(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 z_(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 xw(e){if(ki(e)!==e)throw Error(K(188))}function k3(e){var t=e.alternate;if(!t){if(t=ki(e),t===null)throw Error(K(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return xw(o),e;if(i===r)return xw(o),t;i=i.sibling}throw Error(K(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,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){for(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)throw Error(K(189))}}if(n.alternate!==r)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function W_(e){return e=k3(e),e!==null?G_(e):null}function G_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=G_(e);if(t!==null)return t;e=e.sibling}return null}var V_=vn.unstable_scheduleCallback,bw=vn.unstable_cancelCallback,M3=vn.unstable_shouldYield,D3=vn.unstable_requestPaint,ot=vn.unstable_now,$3=vn.unstable_getCurrentPriorityLevel,gx=vn.unstable_ImmediatePriority,K_=vn.unstable_UserBlockingPriority,Cd=vn.unstable_NormalPriority,L3=vn.unstable_LowPriority,Y_=vn.unstable_IdlePriority,pp=null,pr=null;function F3(e){if(pr&&typeof pr.onCommitFiberRoot=="function")try{pr.onCommitFiberRoot(pp,e,void 0,(e.current.flags&128)===128)}catch{}}var Zn=Math.clz32?Math.clz32:H3,B3=Math.log,U3=Math.LN2;function H3(e){return e>>>=0,e===0?32:31-(B3(e)/U3|0)|0}var Su=64,Au=4194304;function sl(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 Od(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=sl(s):(i&=a,i!==0&&(r=sl(i)))}else a=n&~o,a!==0?r=sl(a):i!==0&&(r=sl(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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-Zn(t),o=1<<n,r|=e[n],t&=~o;return r}function z3(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 W3(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Zn(i),s=1<<a,c=o[a];c===-1?(!(s&n)||s&r)&&(o[a]=z3(s,t)):c<=t&&(e.expiredLanes|=s),i&=~s}}function Iv(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function q_(){var e=Su;return Su<<=1,!(Su&4194240)&&(Su=64),e}function Qh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Uc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zn(t),e[t]=n}function G3(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 o=31-Zn(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function xx(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Zn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ie=0;function X_(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Z_,bx,Q_,J_,ej,Rv=!1,Eu=[],wo=null,So=null,Ao=null,Ml=new Map,Dl=new Map,ho=[],V3="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 ww(e,t){switch(e){case"focusin":case"focusout":wo=null;break;case"dragenter":case"dragleave":So=null;break;case"mouseover":case"mouseout":Ao=null;break;case"pointerover":case"pointerout":Ml.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dl.delete(t.pointerId)}}function Bs(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=zc(t),t!==null&&bx(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function K3(e,t,n,r,o){switch(t){case"focusin":return wo=Bs(wo,e,t,n,r,o),!0;case"dragenter":return So=Bs(So,e,t,n,r,o),!0;case"mouseover":return Ao=Bs(Ao,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ml.set(i,Bs(Ml.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Dl.set(i,Bs(Dl.get(i)||null,e,t,n,r,o)),!0}return!1}function tj(e){var t=ai(e.target);if(t!==null){var n=ki(t);if(n!==null){if(t=n.tag,t===13){if(t=z_(n),t!==null){e.blockedOn=t,ej(e.priority,function(){Q_(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 ld(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=kv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cv=r,n.target.dispatchEvent(r),Cv=null}else return t=zc(n),t!==null&&bx(t),e.blockedOn=n,!1;t.shift()}return!0}function Sw(e,t,n){ld(e)&&n.delete(t)}function Y3(){Rv=!1,wo!==null&&ld(wo)&&(wo=null),So!==null&&ld(So)&&(So=null),Ao!==null&&ld(Ao)&&(Ao=null),Ml.forEach(Sw),Dl.forEach(Sw)}function Us(e,t){e.blockedOn===t&&(e.blockedOn=null,Rv||(Rv=!0,vn.unstable_scheduleCallback(vn.unstable_NormalPriority,Y3)))}function $l(e){function t(o){return Us(o,e)}if(0<Eu.length){Us(Eu[0],e);for(var n=1;n<Eu.length;n++){var r=Eu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(wo!==null&&Us(wo,e),So!==null&&Us(So,e),Ao!==null&&Us(Ao,e),Ml.forEach(t),Dl.forEach(t),n=0;n<ho.length;n++)r=ho[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ho.length&&(n=ho[0],n.blockedOn===null);)tj(n),n.blockedOn===null&&ho.shift()}var Aa=Qr.ReactCurrentBatchConfig,Td=!0;function q3(e,t,n,r){var o=Ie,i=Aa.transition;Aa.transition=null;try{Ie=1,wx(e,t,n,r)}finally{Ie=o,Aa.transition=i}}function X3(e,t,n,r){var o=Ie,i=Aa.transition;Aa.transition=null;try{Ie=4,wx(e,t,n,r)}finally{Ie=o,Aa.transition=i}}function wx(e,t,n,r){if(Td){var o=kv(e,t,n,r);if(o===null)lm(e,t,r,Pd,n),ww(e,r);else if(K3(o,e,t,n,r))r.stopPropagation();else if(ww(e,r),t&4&&-1<V3.indexOf(e)){for(;o!==null;){var i=zc(o);if(i!==null&&Z_(i),i=kv(e,t,n,r),i===null&&lm(e,t,r,Pd,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else lm(e,t,r,null,n)}}var Pd=null;function kv(e,t,n,r){if(Pd=null,e=yx(r),e=ai(e),e!==null)if(t=ki(e),t===null)e=null;else if(n=t.tag,n===13){if(e=z_(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 Pd=e,null}function nj(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($3()){case gx:return 1;case K_:return 4;case Cd:case L3:return 16;case Y_:return 536870912;default:return 16}default:return 16}}var yo=null,Sx=null,cd=null;function rj(){if(cd)return cd;var e,t=Sx,n=t.length,r,o="value"in yo?yo.value:yo.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return cd=o.slice(e,1<r?1-r:void 0)}function ud(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 Nu(){return!0}function Aw(){return!1}function bn(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Nu:Aw,this.isPropagationStopped=Aw,this}return Je(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=Nu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Nu)},persist:function(){},isPersistent:Nu}),t}var ys={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ax=bn(ys),Hc=Je({},ys,{view:0,detail:0}),Z3=bn(Hc),Jh,em,Hs,hp=Je({},Hc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ex,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!==Hs&&(Hs&&e.type==="mousemove"?(Jh=e.screenX-Hs.screenX,em=e.screenY-Hs.screenY):em=Jh=0,Hs=e),Jh)},movementY:function(e){return"movementY"in e?e.movementY:em}}),Ew=bn(hp),Q3=Je({},hp,{dataTransfer:0}),J3=bn(Q3),eU=Je({},Hc,{relatedTarget:0}),tm=bn(eU),tU=Je({},ys,{animationName:0,elapsedTime:0,pseudoElement:0}),nU=bn(tU),rU=Je({},ys,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oU=bn(rU),iU=Je({},ys,{data:0}),Nw=bn(iU),aU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sU={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"},lU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cU(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lU[e])?!!t[e]:!1}function Ex(){return cU}var uU=Je({},Hc,{key:function(e){if(e.key){var t=aU[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ud(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sU[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ex,charCode:function(e){return e.type==="keypress"?ud(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ud(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dU=bn(uU),fU=Je({},hp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_w=bn(fU),pU=Je({},Hc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ex}),hU=bn(pU),mU=Je({},ys,{propertyName:0,elapsedTime:0,pseudoElement:0}),vU=bn(mU),yU=Je({},hp,{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}),gU=bn(yU),xU=[9,13,27,32],Nx=Ur&&"CompositionEvent"in window,ml=null;Ur&&"documentMode"in document&&(ml=document.documentMode);var bU=Ur&&"TextEvent"in window&&!ml,oj=Ur&&(!Nx||ml&&8<ml&&11>=ml),jw=" ",Cw=!1;function ij(e,t){switch(e){case"keyup":return xU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function wU(e,t){switch(e){case"compositionend":return aj(t);case"keypress":return t.which!==32?null:(Cw=!0,jw);case"textInput":return e=t.data,e===jw&&Cw?null:e;default:return null}}function SU(e,t){if(aa)return e==="compositionend"||!Nx&&ij(e,t)?(e=rj(),cd=Sx=yo=null,aa=!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 oj&&t.locale!=="ko"?null:t.data;default:return null}}var AU={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 Ow(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!AU[e.type]:t==="textarea"}function sj(e,t,n,r){L_(r),t=Id(t,"onChange"),0<t.length&&(n=new Ax("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var vl=null,Ll=null;function EU(e){gj(e,0)}function mp(e){var t=ca(e);if(P_(t))return e}function NU(e,t){if(e==="change")return t}var lj=!1;if(Ur){var nm;if(Ur){var rm="oninput"in document;if(!rm){var Tw=document.createElement("div");Tw.setAttribute("oninput","return;"),rm=typeof Tw.oninput=="function"}nm=rm}else nm=!1;lj=nm&&(!document.documentMode||9<document.documentMode)}function Pw(){vl&&(vl.detachEvent("onpropertychange",cj),Ll=vl=null)}function cj(e){if(e.propertyName==="value"&&mp(Ll)){var t=[];sj(t,Ll,e,yx(e)),H_(EU,t)}}function _U(e,t,n){e==="focusin"?(Pw(),vl=t,Ll=n,vl.attachEvent("onpropertychange",cj)):e==="focusout"&&Pw()}function jU(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mp(Ll)}function CU(e,t){if(e==="click")return mp(t)}function OU(e,t){if(e==="input"||e==="change")return mp(t)}function TU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:TU;function Fl(e,t){if(Jn(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 o=n[r];if(!vv.call(t,o)||!Jn(e[o],t[o]))return!1}return!0}function Iw(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rw(e,t){var n=Iw(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=Iw(n)}}function uj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dj(){for(var e=window,t=Nd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nd(e.document)}return t}function _x(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 PU(e){var t=dj(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&uj(n.ownerDocument.documentElement,n)){if(r!==null&&_x(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Rw(n,i);var a=Rw(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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 IU=Ur&&"documentMode"in document&&11>=document.documentMode,sa=null,Mv=null,yl=null,Dv=!1;function kw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dv||sa==null||sa!==Nd(r)||(r=sa,"selectionStart"in r&&_x(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}),yl&&Fl(yl,r)||(yl=r,r=Id(Mv,"onSelect"),0<r.length&&(t=new Ax("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sa)))}function _u(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var la={animationend:_u("Animation","AnimationEnd"),animationiteration:_u("Animation","AnimationIteration"),animationstart:_u("Animation","AnimationStart"),transitionend:_u("Transition","TransitionEnd")},om={},fj={};Ur&&(fj=document.createElement("div").style,"AnimationEvent"in window||(delete la.animationend.animation,delete la.animationiteration.animation,delete la.animationstart.animation),"TransitionEvent"in window||delete la.transitionend.transition);function vp(e){if(om[e])return om[e];if(!la[e])return e;var t=la[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in fj)return om[e]=t[n];return e}var pj=vp("animationend"),hj=vp("animationiteration"),mj=vp("animationstart"),vj=vp("transitionend"),yj=new Map,Mw="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 Lo(e,t){yj.set(e,t),Ri(t,[e])}for(var im=0;im<Mw.length;im++){var am=Mw[im],RU=am.toLowerCase(),kU=am[0].toUpperCase()+am.slice(1);Lo(RU,"on"+kU)}Lo(pj,"onAnimationEnd");Lo(hj,"onAnimationIteration");Lo(mj,"onAnimationStart");Lo("dblclick","onDoubleClick");Lo("focusin","onFocus");Lo("focusout","onBlur");Lo(vj,"onTransitionEnd");ka("onMouseEnter",["mouseout","mouseover"]);ka("onMouseLeave",["mouseout","mouseover"]);ka("onPointerEnter",["pointerout","pointerover"]);ka("onPointerLeave",["pointerout","pointerover"]);Ri("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ri("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ri("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ri("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ri("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ri("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ll="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(" "),MU=new Set("cancel close invalid load scroll toggle".split(" ").concat(ll));function Dw(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,R3(r,t,void 0,e),e.currentTarget=null}function gj(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;Dw(o,s,u),i=c}else for(a=0;a<r.length;a++){if(s=r[a],c=s.instance,u=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;Dw(o,s,u),i=c}}}if(jd)throw e=Pv,jd=!1,Pv=null,e}function ze(e,t){var n=t[Uv];n===void 0&&(n=t[Uv]=new Set);var r=e+"__bubble";n.has(r)||(xj(t,e,2,!1),n.add(r))}function sm(e,t,n){var r=0;t&&(r|=4),xj(n,e,r,t)}var ju="_reactListening"+Math.random().toString(36).slice(2);function Bl(e){if(!e[ju]){e[ju]=!0,__.forEach(function(n){n!=="selectionchange"&&(MU.has(n)||sm(n,!1,e),sm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ju]||(t[ju]=!0,sm("selectionchange",!1,t))}}function xj(e,t,n,r){switch(nj(t)){case 1:var o=q3;break;case 4:o=X3;break;default:o=wx}n=o.bind(null,t,n,e),o=void 0,!Tv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function lm(e,t,n,r,o){var i=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===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;a=a.return}for(;s!==null;){if(a=ai(s),a===null)return;if(c=a.tag,c===5||c===6){r=i=a;continue e}s=s.parentNode}}r=r.return}H_(function(){var u=i,f=yx(n),d=[];e:{var p=yj.get(e);if(p!==void 0){var m=Ax,b=e;switch(e){case"keypress":if(ud(n)===0)break e;case"keydown":case"keyup":m=dU;break;case"focusin":b="focus",m=tm;break;case"focusout":b="blur",m=tm;break;case"beforeblur":case"afterblur":m=tm;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":m=Ew;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=J3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=hU;break;case pj:case hj:case mj:m=nU;break;case vj:m=vU;break;case"scroll":m=Z3;break;case"wheel":m=gU;break;case"copy":case"cut":case"paste":m=oU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=_w}var y=(t&4)!==0,v=!y&&e==="scroll",x=y?p!==null?p+"Capture":null:p;y=[];for(var g=u,w;g!==null;){w=g;var E=w.stateNode;if(w.tag===5&&E!==null&&(w=E,x!==null&&(E=kl(g,x),E!=null&&y.push(Ul(g,E,w)))),v)break;g=g.return}0<y.length&&(p=new m(p,b,null,n,f),d.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==Cv&&(b=n.relatedTarget||n.fromElement)&&(ai(b)||b[Hr]))break e;if((m||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,m?(b=n.relatedTarget||n.toElement,m=u,b=b?ai(b):null,b!==null&&(v=ki(b),b!==v||b.tag!==5&&b.tag!==6)&&(b=null)):(m=null,b=u),m!==b)){if(y=Ew,E="onMouseLeave",x="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=_w,E="onPointerLeave",x="onPointerEnter",g="pointer"),v=m==null?p:ca(m),w=b==null?p:ca(b),p=new y(E,g+"leave",m,n,f),p.target=v,p.relatedTarget=w,E=null,ai(f)===u&&(y=new y(x,g+"enter",b,n,f),y.target=w,y.relatedTarget=v,E=y),v=E,m&&b)t:{for(y=m,x=b,g=0,w=y;w;w=Xi(w))g++;for(w=0,E=x;E;E=Xi(E))w++;for(;0<g-w;)y=Xi(y),g--;for(;0<w-g;)x=Xi(x),w--;for(;g--;){if(y===x||x!==null&&y===x.alternate)break t;y=Xi(y),x=Xi(x)}y=null}else y=null;m!==null&&$w(d,p,m,y,!1),b!==null&&v!==null&&$w(d,v,b,y,!0)}}e:{if(p=u?ca(u):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var A=NU;else if(Ow(p))if(lj)A=OU;else{A=jU;var S=_U}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(A=CU);if(A&&(A=A(e,u))){sj(d,A,n,f);break e}S&&S(e,p,u),e==="focusout"&&(S=p._wrapperState)&&S.controlled&&p.type==="number"&&Av(p,"number",p.value)}switch(S=u?ca(u):window,e){case"focusin":(Ow(S)||S.contentEditable==="true")&&(sa=S,Mv=u,yl=null);break;case"focusout":yl=Mv=sa=null;break;case"mousedown":Dv=!0;break;case"contextmenu":case"mouseup":case"dragend":Dv=!1,kw(d,n,f);break;case"selectionchange":if(IU)break;case"keydown":case"keyup":kw(d,n,f)}var N;if(Nx)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else aa?ij(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(oj&&n.locale!=="ko"&&(aa||_!=="onCompositionStart"?_==="onCompositionEnd"&&aa&&(N=rj()):(yo=f,Sx="value"in yo?yo.value:yo.textContent,aa=!0)),S=Id(u,_),0<S.length&&(_=new Nw(_,e,null,n,f),d.push({event:_,listeners:S}),N?_.data=N:(N=aj(n),N!==null&&(_.data=N)))),(N=bU?wU(e,n):SU(e,n))&&(u=Id(u,"onBeforeInput"),0<u.length&&(f=new Nw("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=N))}gj(d,t)})}function Ul(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Id(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=kl(e,n),i!=null&&r.unshift(Ul(e,i,o)),i=kl(e,t),i!=null&&r.push(Ul(e,i,o))),e=e.return}return r}function Xi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function $w(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,c=s.alternate,u=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&u!==null&&(s=u,o?(c=kl(n,i),c!=null&&a.unshift(Ul(n,c,s))):o||(c=kl(n,i),c!=null&&a.push(Ul(n,c,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var DU=/\r\n?/g,$U=/\u0000|\uFFFD/g;function Lw(e){return(typeof e=="string"?e:""+e).replace(DU,`
38
+ `).replace($U,"")}function Cu(e,t,n){if(t=Lw(t),Lw(e)!==t&&n)throw Error(K(425))}function Rd(){}var $v=null,Lv=null;function Fv(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 Bv=typeof setTimeout=="function"?setTimeout:void 0,LU=typeof clearTimeout=="function"?clearTimeout:void 0,Fw=typeof Promise=="function"?Promise:void 0,FU=typeof queueMicrotask=="function"?queueMicrotask:typeof Fw<"u"?function(e){return Fw.resolve(null).then(e).catch(BU)}:Bv;function BU(e){setTimeout(function(){throw e})}function cm(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),$l(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);$l(t)}function Eo(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 Bw(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 gs=Math.random().toString(36).slice(2),cr="__reactFiber$"+gs,Hl="__reactProps$"+gs,Hr="__reactContainer$"+gs,Uv="__reactEvents$"+gs,UU="__reactListeners$"+gs,HU="__reactHandles$"+gs;function ai(e){var t=e[cr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hr]||n[cr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Bw(e);e!==null;){if(n=e[cr])return n;e=Bw(e)}return t}e=n,n=e.parentNode}return null}function zc(e){return e=e[cr]||e[Hr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ca(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function yp(e){return e[Hl]||null}var Hv=[],ua=-1;function Fo(e){return{current:e}}function Ve(e){0>ua||(e.current=Hv[ua],Hv[ua]=null,ua--)}function Fe(e,t){ua++,Hv[ua]=e.current,e.current=t}var ko={},Ht=Fo(ko),en=Fo(!1),gi=ko;function Ma(e,t){var n=e.type.contextTypes;if(!n)return ko;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function tn(e){return e=e.childContextTypes,e!=null}function kd(){Ve(en),Ve(Ht)}function Uw(e,t,n){if(Ht.current!==ko)throw Error(K(168));Fe(Ht,t),Fe(en,n)}function bj(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(K(108,_3(e)||"Unknown",o));return Je({},n,r)}function Md(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ko,gi=Ht.current,Fe(Ht,e),Fe(en,en.current),!0}function Hw(e,t,n){var r=e.stateNode;if(!r)throw Error(K(169));n?(e=bj(e,t,gi),r.__reactInternalMemoizedMergedChildContext=e,Ve(en),Ve(Ht),Fe(Ht,e)):Ve(en),Fe(en,n)}var Tr=null,gp=!1,um=!1;function wj(e){Tr===null?Tr=[e]:Tr.push(e)}function zU(e){gp=!0,wj(e)}function Bo(){if(!um&&Tr!==null){um=!0;var e=0,t=Ie;try{var n=Tr;for(Ie=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tr=null,gp=!1}catch(o){throw Tr!==null&&(Tr=Tr.slice(e+1)),V_(gx,Bo),o}finally{Ie=t,um=!1}}return null}var da=[],fa=0,Dd=null,$d=0,En=[],Nn=0,xi=null,Pr=1,Ir="";function ei(e,t){da[fa++]=$d,da[fa++]=Dd,Dd=e,$d=t}function Sj(e,t,n){En[Nn++]=Pr,En[Nn++]=Ir,En[Nn++]=xi,xi=e;var r=Pr;e=Ir;var o=32-Zn(r)-1;r&=~(1<<o),n+=1;var i=32-Zn(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Pr=1<<32-Zn(t)+o|n<<o|r,Ir=i+e}else Pr=1<<i|n<<o|r,Ir=e}function jx(e){e.return!==null&&(ei(e,1),Sj(e,1,0))}function Cx(e){for(;e===Dd;)Dd=da[--fa],da[fa]=null,$d=da[--fa],da[fa]=null;for(;e===xi;)xi=En[--Nn],En[Nn]=null,Ir=En[--Nn],En[Nn]=null,Pr=En[--Nn],En[Nn]=null}var pn=null,fn=null,Ye=!1,Kn=null;function Aj(e,t){var n=_n(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 zw(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,pn=e,fn=Eo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,pn=e,fn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=xi!==null?{id:Pr,overflow:Ir}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=_n(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,pn=e,fn=null,!0):!1;default:return!1}}function zv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Wv(e){if(Ye){var t=fn;if(t){var n=t;if(!zw(e,t)){if(zv(e))throw Error(K(418));t=Eo(n.nextSibling);var r=pn;t&&zw(e,t)?Aj(r,n):(e.flags=e.flags&-4097|2,Ye=!1,pn=e)}}else{if(zv(e))throw Error(K(418));e.flags=e.flags&-4097|2,Ye=!1,pn=e}}}function Ww(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;pn=e}function Ou(e){if(e!==pn)return!1;if(!Ye)return Ww(e),Ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Fv(e.type,e.memoizedProps)),t&&(t=fn)){if(zv(e))throw Ej(),Error(K(418));for(;t;)Aj(e,t),t=Eo(t.nextSibling)}if(Ww(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){fn=Eo(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}fn=null}}else fn=pn?Eo(e.stateNode.nextSibling):null;return!0}function Ej(){for(var e=fn;e;)e=Eo(e.nextSibling)}function Da(){fn=pn=null,Ye=!1}function Ox(e){Kn===null?Kn=[e]:Kn.push(e)}var WU=Qr.ReactCurrentBatchConfig;function zs(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(K(309));var r=n.stateNode}if(!r)throw Error(K(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(K(284));if(!n._owner)throw Error(K(290,e))}return e}function Tu(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gw(e){var t=e._init;return t(e._payload)}function Nj(e){function t(x,g){if(e){var w=x.deletions;w===null?(x.deletions=[g],x.flags|=16):w.push(g)}}function n(x,g){if(!e)return null;for(;g!==null;)t(x,g),g=g.sibling;return null}function r(x,g){for(x=new Map;g!==null;)g.key!==null?x.set(g.key,g):x.set(g.index,g),g=g.sibling;return x}function o(x,g){return x=Co(x,g),x.index=0,x.sibling=null,x}function i(x,g,w){return x.index=w,e?(w=x.alternate,w!==null?(w=w.index,w<g?(x.flags|=2,g):w):(x.flags|=2,g)):(x.flags|=1048576,g)}function a(x){return e&&x.alternate===null&&(x.flags|=2),x}function s(x,g,w,E){return g===null||g.tag!==6?(g=ym(w,x.mode,E),g.return=x,g):(g=o(g,w),g.return=x,g)}function c(x,g,w,E){var A=w.type;return A===ia?f(x,g,w.props.children,E,w.key):g!==null&&(g.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===uo&&Gw(A)===g.type)?(E=o(g,w.props),E.ref=zs(x,g,w),E.return=x,E):(E=yd(w.type,w.key,w.props,null,x.mode,E),E.ref=zs(x,g,w),E.return=x,E)}function u(x,g,w,E){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=gm(w,x.mode,E),g.return=x,g):(g=o(g,w.children||[]),g.return=x,g)}function f(x,g,w,E,A){return g===null||g.tag!==7?(g=hi(w,x.mode,E,A),g.return=x,g):(g=o(g,w),g.return=x,g)}function d(x,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=ym(""+g,x.mode,w),g.return=x,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case xu:return w=yd(g.type,g.key,g.props,null,x.mode,w),w.ref=zs(x,null,g),w.return=x,w;case oa:return g=gm(g,x.mode,w),g.return=x,g;case uo:var E=g._init;return d(x,E(g._payload),w)}if(al(g)||Ls(g))return g=hi(g,x.mode,w,null),g.return=x,g;Tu(x,g)}return null}function p(x,g,w,E){var A=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return A!==null?null:s(x,g,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case xu:return w.key===A?c(x,g,w,E):null;case oa:return w.key===A?u(x,g,w,E):null;case uo:return A=w._init,p(x,g,A(w._payload),E)}if(al(w)||Ls(w))return A!==null?null:f(x,g,w,E,null);Tu(x,w)}return null}function m(x,g,w,E,A){if(typeof E=="string"&&E!==""||typeof E=="number")return x=x.get(w)||null,s(g,x,""+E,A);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case xu:return x=x.get(E.key===null?w:E.key)||null,c(g,x,E,A);case oa:return x=x.get(E.key===null?w:E.key)||null,u(g,x,E,A);case uo:var S=E._init;return m(x,g,w,S(E._payload),A)}if(al(E)||Ls(E))return x=x.get(w)||null,f(g,x,E,A,null);Tu(g,E)}return null}function b(x,g,w,E){for(var A=null,S=null,N=g,_=g=0,O=null;N!==null&&_<w.length;_++){N.index>_?(O=N,N=null):O=N.sibling;var T=p(x,N,w[_],E);if(T===null){N===null&&(N=O);break}e&&N&&T.alternate===null&&t(x,N),g=i(T,g,_),S===null?A=T:S.sibling=T,S=T,N=O}if(_===w.length)return n(x,N),Ye&&ei(x,_),A;if(N===null){for(;_<w.length;_++)N=d(x,w[_],E),N!==null&&(g=i(N,g,_),S===null?A=N:S.sibling=N,S=N);return Ye&&ei(x,_),A}for(N=r(x,N);_<w.length;_++)O=m(N,x,_,w[_],E),O!==null&&(e&&O.alternate!==null&&N.delete(O.key===null?_:O.key),g=i(O,g,_),S===null?A=O:S.sibling=O,S=O);return e&&N.forEach(function(j){return t(x,j)}),Ye&&ei(x,_),A}function y(x,g,w,E){var A=Ls(w);if(typeof A!="function")throw Error(K(150));if(w=A.call(w),w==null)throw Error(K(151));for(var S=A=null,N=g,_=g=0,O=null,T=w.next();N!==null&&!T.done;_++,T=w.next()){N.index>_?(O=N,N=null):O=N.sibling;var j=p(x,N,T.value,E);if(j===null){N===null&&(N=O);break}e&&N&&j.alternate===null&&t(x,N),g=i(j,g,_),S===null?A=j:S.sibling=j,S=j,N=O}if(T.done)return n(x,N),Ye&&ei(x,_),A;if(N===null){for(;!T.done;_++,T=w.next())T=d(x,T.value,E),T!==null&&(g=i(T,g,_),S===null?A=T:S.sibling=T,S=T);return Ye&&ei(x,_),A}for(N=r(x,N);!T.done;_++,T=w.next())T=m(N,x,_,T.value,E),T!==null&&(e&&T.alternate!==null&&N.delete(T.key===null?_:T.key),g=i(T,g,_),S===null?A=T:S.sibling=T,S=T);return e&&N.forEach(function(I){return t(x,I)}),Ye&&ei(x,_),A}function v(x,g,w,E){if(typeof w=="object"&&w!==null&&w.type===ia&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case xu:e:{for(var A=w.key,S=g;S!==null;){if(S.key===A){if(A=w.type,A===ia){if(S.tag===7){n(x,S.sibling),g=o(S,w.props.children),g.return=x,x=g;break e}}else if(S.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===uo&&Gw(A)===S.type){n(x,S.sibling),g=o(S,w.props),g.ref=zs(x,S,w),g.return=x,x=g;break e}n(x,S);break}else t(x,S);S=S.sibling}w.type===ia?(g=hi(w.props.children,x.mode,E,w.key),g.return=x,x=g):(E=yd(w.type,w.key,w.props,null,x.mode,E),E.ref=zs(x,g,w),E.return=x,x=E)}return a(x);case oa:e:{for(S=w.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(x,g.sibling),g=o(g,w.children||[]),g.return=x,x=g;break e}else{n(x,g);break}else t(x,g);g=g.sibling}g=gm(w,x.mode,E),g.return=x,x=g}return a(x);case uo:return S=w._init,v(x,g,S(w._payload),E)}if(al(w))return b(x,g,w,E);if(Ls(w))return y(x,g,w,E);Tu(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(x,g.sibling),g=o(g,w),g.return=x,x=g):(n(x,g),g=ym(w,x.mode,E),g.return=x,x=g),a(x)):n(x,g)}return v}var $a=Nj(!0),_j=Nj(!1),Ld=Fo(null),Fd=null,pa=null,Tx=null;function Px(){Tx=pa=Fd=null}function Ix(e){var t=Ld.current;Ve(Ld),e._currentValue=t}function Gv(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 Ea(e,t){Fd=e,Tx=pa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qt=!0),e.firstContext=null)}function In(e){var t=e._currentValue;if(Tx!==e)if(e={context:e,memoizedValue:t,next:null},pa===null){if(Fd===null)throw Error(K(308));pa=e,Fd.dependencies={lanes:0,firstContext:e}}else pa=pa.next=e;return t}var si=null;function Rx(e){si===null?si=[e]:si.push(e)}function jj(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Rx(t)):(n.next=o.next,o.next=n),t.interleaved=n,zr(e,r)}function zr(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 fo=!1;function kx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cj(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 $r(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function No(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,je&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zr(e,n)}return o=r.interleaved,o===null?(t.next=t,Rx(r)):(t.next=o.next,o.next=t),r.interleaved=t,zr(e,n)}function dd(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,xx(e,n)}}function Vw(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=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};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Bd(e,t,n,r){var o=e.updateQueue;fo=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,u=c.next;c.next=null,a===null?i=u:a.next=u,a=c;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=c))}if(i!==null){var d=o.baseState;a=0,f=u=c=null,s=i;do{var p=s.lane,m=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var b=e,y=s;switch(p=t,m=n,y.tag){case 1:if(b=y.payload,typeof b=="function"){d=b.call(m,d,p);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=y.payload,p=typeof b=="function"?b.call(m,d,p):b,p==null)break e;d=Je({},d,p);break e;case 2:fo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else m={eventTime:m,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=m,c=d):f=f.next=m,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(f===null&&(c=d),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);wi|=a,e.lanes=a,e.memoizedState=d}}function Kw(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(K(191,o));o.call(r)}}}var Wc={},hr=Fo(Wc),zl=Fo(Wc),Wl=Fo(Wc);function li(e){if(e===Wc)throw Error(K(174));return e}function Mx(e,t){switch(Fe(Wl,t),Fe(zl,e),Fe(hr,Wc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nv(t,e)}Ve(hr),Fe(hr,t)}function La(){Ve(hr),Ve(zl),Ve(Wl)}function Oj(e){li(Wl.current);var t=li(hr.current),n=Nv(t,e.type);t!==n&&(Fe(zl,e),Fe(hr,n))}function Dx(e){zl.current===e&&(Ve(hr),Ve(zl))}var Ze=Fo(0);function Ud(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 dm=[];function $x(){for(var e=0;e<dm.length;e++)dm[e]._workInProgressVersionPrimary=null;dm.length=0}var fd=Qr.ReactCurrentDispatcher,fm=Qr.ReactCurrentBatchConfig,bi=0,Qe=null,mt=null,wt=null,Hd=!1,gl=!1,Gl=0,GU=0;function Rt(){throw Error(K(321))}function Lx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function Fx(e,t,n,r,o,i){if(bi=i,Qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fd.current=e===null||e.memoizedState===null?qU:XU,e=n(r,o),gl){i=0;do{if(gl=!1,Gl=0,25<=i)throw Error(K(301));i+=1,wt=mt=null,t.updateQueue=null,fd.current=ZU,e=n(r,o)}while(gl)}if(fd.current=zd,t=mt!==null&&mt.next!==null,bi=0,wt=mt=Qe=null,Hd=!1,t)throw Error(K(300));return e}function Bx(){var e=Gl!==0;return Gl=0,e}function sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?Qe.memoizedState=wt=e:wt=wt.next=e,wt}function Rn(){if(mt===null){var e=Qe.alternate;e=e!==null?e.memoizedState:null}else e=mt.next;var t=wt===null?Qe.memoizedState:wt.next;if(t!==null)wt=t,mt=e;else{if(e===null)throw Error(K(310));mt=e,e={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},wt===null?Qe.memoizedState=wt=e:wt=wt.next=e}return wt}function Vl(e,t){return typeof t=="function"?t(e):t}function pm(e){var t=Rn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var r=mt,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=a=null,c=null,u=i;do{var f=u.lane;if((bi&f)===f)c!==null&&(c=c.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 d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(s=c=d,a=r):c=c.next=d,Qe.lanes|=f,wi|=f}u=u.next}while(u!==null&&u!==i);c===null?a=r:c.next=s,Jn(r,t.memoizedState)||(Qt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Qe.lanes|=i,wi|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function hm(e){var t=Rn(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);Jn(i,t.memoizedState)||(Qt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Tj(){}function Pj(e,t){var n=Qe,r=Rn(),o=t(),i=!Jn(r.memoizedState,o);if(i&&(r.memoizedState=o,Qt=!0),r=r.queue,Ux(kj.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||wt!==null&&wt.memoizedState.tag&1){if(n.flags|=2048,Kl(9,Rj.bind(null,n,r,o,t),void 0,null),At===null)throw Error(K(349));bi&30||Ij(n,t,o)}return o}function Ij(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Qe.updateQueue,t===null?(t={lastEffect:null,stores:null},Qe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Rj(e,t,n,r){t.value=n,t.getSnapshot=r,Mj(t)&&Dj(e)}function kj(e,t,n){return n(function(){Mj(t)&&Dj(e)})}function Mj(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function Dj(e){var t=zr(e,1);t!==null&&Qn(t,e,1,-1)}function Yw(e){var t=sr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vl,lastRenderedState:e},t.queue=e,e=e.dispatch=YU.bind(null,Qe,e),[t.memoizedState,e]}function Kl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Qe.updateQueue,t===null?(t={lastEffect:null,stores:null},Qe.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 $j(){return Rn().memoizedState}function pd(e,t,n,r){var o=sr();Qe.flags|=e,o.memoizedState=Kl(1|t,n,void 0,r===void 0?null:r)}function xp(e,t,n,r){var o=Rn();r=r===void 0?null:r;var i=void 0;if(mt!==null){var a=mt.memoizedState;if(i=a.destroy,r!==null&&Lx(r,a.deps)){o.memoizedState=Kl(t,n,i,r);return}}Qe.flags|=e,o.memoizedState=Kl(1|t,n,i,r)}function qw(e,t){return pd(8390656,8,e,t)}function Ux(e,t){return xp(2048,8,e,t)}function Lj(e,t){return xp(4,2,e,t)}function Fj(e,t){return xp(4,4,e,t)}function Bj(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 Uj(e,t,n){return n=n!=null?n.concat([e]):null,xp(4,4,Bj.bind(null,t,e),n)}function Hx(){}function Hj(e,t){var n=Rn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function zj(e,t){var n=Rn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lx(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wj(e,t,n){return bi&21?(Jn(n,t)||(n=q_(),Qe.lanes|=n,wi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Qt=!0),e.memoizedState=n)}function VU(e,t){var n=Ie;Ie=n!==0&&4>n?n:4,e(!0);var r=fm.transition;fm.transition={};try{e(!1),t()}finally{Ie=n,fm.transition=r}}function Gj(){return Rn().memoizedState}function KU(e,t,n){var r=jo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Vj(e))Kj(t,n);else if(n=jj(e,t,n,r),n!==null){var o=Gt();Qn(n,e,r,o),Yj(n,t,r)}}function YU(e,t,n){var r=jo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vj(e))Kj(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Jn(s,a)){var c=t.interleaved;c===null?(o.next=o,Rx(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=jj(e,t,o,r),n!==null&&(o=Gt(),Qn(n,e,r,o),Yj(n,t,r))}}function Vj(e){var t=e.alternate;return e===Qe||t!==null&&t===Qe}function Kj(e,t){gl=Hd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yj(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xx(e,n)}}var zd={readContext:In,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useInsertionEffect:Rt,useLayoutEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useMutableSource:Rt,useSyncExternalStore:Rt,useId:Rt,unstable_isNewReconciler:!1},qU={readContext:In,useCallback:function(e,t){return sr().memoizedState=[e,t===void 0?null:t],e},useContext:In,useEffect:qw,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pd(4194308,4,Bj.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pd(4194308,4,e,t)},useInsertionEffect:function(e,t){return pd(4,2,e,t)},useMemo:function(e,t){var n=sr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sr();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=KU.bind(null,Qe,e),[r.memoizedState,e]},useRef:function(e){var t=sr();return e={current:e},t.memoizedState=e},useState:Yw,useDebugValue:Hx,useDeferredValue:function(e){return sr().memoizedState=e},useTransition:function(){var e=Yw(!1),t=e[0];return e=VU.bind(null,e[1]),sr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qe,o=sr();if(Ye){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),At===null)throw Error(K(349));bi&30||Ij(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qw(kj.bind(null,r,i,e),[e]),r.flags|=2048,Kl(9,Rj.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=sr(),t=At.identifierPrefix;if(Ye){var n=Ir,r=Pr;n=(r&~(1<<32-Zn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=GU++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},XU={readContext:In,useCallback:Hj,useContext:In,useEffect:Ux,useImperativeHandle:Uj,useInsertionEffect:Lj,useLayoutEffect:Fj,useMemo:zj,useReducer:pm,useRef:$j,useState:function(){return pm(Vl)},useDebugValue:Hx,useDeferredValue:function(e){var t=Rn();return Wj(t,mt.memoizedState,e)},useTransition:function(){var e=pm(Vl)[0],t=Rn().memoizedState;return[e,t]},useMutableSource:Tj,useSyncExternalStore:Pj,useId:Gj,unstable_isNewReconciler:!1},ZU={readContext:In,useCallback:Hj,useContext:In,useEffect:Ux,useImperativeHandle:Uj,useInsertionEffect:Lj,useLayoutEffect:Fj,useMemo:zj,useReducer:hm,useRef:$j,useState:function(){return hm(Vl)},useDebugValue:Hx,useDeferredValue:function(e){var t=Rn();return mt===null?t.memoizedState=e:Wj(t,mt.memoizedState,e)},useTransition:function(){var e=hm(Vl)[0],t=Rn().memoizedState;return[e,t]},useMutableSource:Tj,useSyncExternalStore:Pj,useId:Gj,unstable_isNewReconciler:!1};function Hn(e,t){if(e&&e.defaultProps){t=Je({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Vv(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Je({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bp={isMounted:function(e){return(e=e._reactInternals)?ki(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gt(),o=jo(e),i=$r(r,o);i.payload=t,n!=null&&(i.callback=n),t=No(e,i,o),t!==null&&(Qn(t,e,o,r),dd(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gt(),o=jo(e),i=$r(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=No(e,i,o),t!==null&&(Qn(t,e,o,r),dd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gt(),r=jo(e),o=$r(n,r);o.tag=2,t!=null&&(o.callback=t),t=No(e,o,r),t!==null&&(Qn(t,e,r,n),dd(t,e,r))}};function Xw(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!Fl(n,r)||!Fl(o,i):!0}function qj(e,t,n){var r=!1,o=ko,i=t.contextType;return typeof i=="object"&&i!==null?i=In(i):(o=tn(t)?gi:Ht.current,r=t.contextTypes,i=(r=r!=null)?Ma(e,o):ko),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Zw(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&&bp.enqueueReplaceState(t,t.state,null)}function Kv(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},kx(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=In(i):(i=tn(t)?gi:Ht.current,o.context=Ma(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Vv(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&bp.enqueueReplaceState(o,o.state,null),Bd(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Fa(e,t){try{var n="",r=t;do n+=N3(r),r=r.return;while(r);var o=n}catch(i){o=`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}return{value:e,source:t,stack:o,digest:null}}function mm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Yv(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var QU=typeof WeakMap=="function"?WeakMap:Map;function Xj(e,t,n){n=$r(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gd||(Gd=!0,oy=r),Yv(e,t)},n}function Zj(e,t,n){n=$r(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Yv(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Yv(e,t),typeof r!="function"&&(_o===null?_o=new Set([this]):_o.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Qw(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new QU;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=fH.bind(null,e,t,n),t.then(e,e))}function Jw(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 eS(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=$r(-1,1),t.tag=2,No(n,t,1))),n.lanes|=1),e)}var JU=Qr.ReactCurrentOwner,Qt=!1;function zt(e,t,n,r){t.child=e===null?_j(t,null,n,r):$a(t,e.child,n,r)}function tS(e,t,n,r,o){n=n.render;var i=t.ref;return Ea(t,o),r=Fx(e,t,n,r,i,o),n=Bx(),e!==null&&!Qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wr(e,t,o)):(Ye&&n&&jx(t),t.flags|=1,zt(e,t,r,o),t.child)}function nS(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Xx(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Qj(e,t,i,r,o)):(e=yd(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Fl,n(a,r)&&e.ref===t.ref)return Wr(e,t,o)}return t.flags|=1,e=Co(i,r),e.ref=t.ref,e.return=t,t.child=e}function Qj(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Fl(i,r)&&e.ref===t.ref)if(Qt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Qt=!0);else return t.lanes=e.lanes,Wr(e,t,o)}return qv(e,t,n,r,o)}function Jj(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Fe(ma,ln),ln|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Fe(ma,ln),ln|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Fe(ma,ln),ln|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Fe(ma,ln),ln|=r;return zt(e,t,o,n),t.child}function eC(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qv(e,t,n,r,o){var i=tn(n)?gi:Ht.current;return i=Ma(t,i),Ea(t,o),n=Fx(e,t,n,r,i,o),r=Bx(),e!==null&&!Qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wr(e,t,o)):(Ye&&r&&jx(t),t.flags|=1,zt(e,t,n,o),t.child)}function rS(e,t,n,r,o){if(tn(n)){var i=!0;Md(t)}else i=!1;if(Ea(t,o),t.stateNode===null)hd(e,t),qj(t,n,r),Kv(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=In(u):(u=tn(n)?gi:Ht.current,u=Ma(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||c!==u)&&Zw(t,a,r,u),fo=!1;var p=t.memoizedState;a.state=p,Bd(t,r,a,o),c=t.memoizedState,s!==r||p!==c||en.current||fo?(typeof f=="function"&&(Vv(t,n,f,r),c=t.memoizedState),(s=fo||Xw(t,n,s,r,p,c,u))?(d||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=c),a.props=r,a.state=c,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Cj(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Hn(t.type,s),a.props=u,d=t.pendingProps,p=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=In(c):(c=tn(n)?gi:Ht.current,c=Ma(t,c));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||p!==c)&&Zw(t,a,r,c),fo=!1,p=t.memoizedState,a.state=p,Bd(t,r,a,o);var b=t.memoizedState;s!==d||p!==b||en.current||fo?(typeof m=="function"&&(Vv(t,n,m,r),b=t.memoizedState),(u=fo||Xw(t,n,u,r,p,b,c)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,b,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,b,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),a.props=r,a.state=b,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Xv(e,t,n,r,i,o)}function Xv(e,t,n,r,o,i){eC(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&Hw(t,n,!1),Wr(e,t,i);r=t.stateNode,JU.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=$a(t,e.child,null,i),t.child=$a(t,null,s,i)):zt(e,t,s,i),t.memoizedState=r.state,o&&Hw(t,n,!0),t.child}function tC(e){var t=e.stateNode;t.pendingContext?Uw(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Uw(e,t.context,!1),Mx(e,t.containerInfo)}function oS(e,t,n,r,o){return Da(),Ox(o),t.flags|=256,zt(e,t,n,r),t.child}var Zv={dehydrated:null,treeContext:null,retryLane:0};function Qv(e){return{baseLanes:e,cachePool:null,transitions:null}}function nC(e,t,n){var r=t.pendingProps,o=Ze.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Fe(Ze,o&1),e===null)return Wv(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,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Ap(a,r,0,null),e=hi(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Qv(n),t.memoizedState=Zv,e):zx(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return eH(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Co(o,c),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Co(s,i):(i=hi(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Qv(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Zv,r}return i=e.child,e=i.sibling,r=Co(i,{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 zx(e,t){return t=Ap({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Pu(e,t,n,r){return r!==null&&Ox(r),$a(t,e.child,null,n),e=zx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function eH(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=mm(Error(K(422))),Pu(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ap({mode:"visible",children:r.children},o,0,null),i=hi(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&$a(t,e.child,null,a),t.child.memoizedState=Qv(a),t.memoizedState=Zv,i);if(!(t.mode&1))return Pu(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(K(419)),r=mm(i,r,void 0),Pu(e,t,a,r)}if(s=(a&e.childLanes)!==0,Qt||s){if(r=At,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,zr(e,o),Qn(r,e,o,-1))}return qx(),r=mm(Error(K(421))),Pu(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=pH.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,fn=Eo(o.nextSibling),pn=t,Ye=!0,Kn=null,e!==null&&(En[Nn++]=Pr,En[Nn++]=Ir,En[Nn++]=xi,Pr=e.id,Ir=e.overflow,xi=t),t=zx(t,r.children),t.flags|=4096,t)}function iS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gv(e.return,t,n)}function vm(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function rC(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(zt(e,t,r.children,n),r=Ze.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(Fe(Ze,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ud(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),vm(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ud(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}vm(t,!0,n,null,i);break;case"together":vm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=Co(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Co(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function tH(e,t,n){switch(t.tag){case 3:tC(t),Da();break;case 5:Oj(t);break;case 1:tn(t.type)&&Md(t);break;case 4:Mx(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Fe(Ld,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Fe(Ze,Ze.current&1),t.flags|=128,null):n&t.child.childLanes?nC(e,t,n):(Fe(Ze,Ze.current&1),e=Wr(e,t,n),e!==null?e.sibling:null);Fe(Ze,Ze.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return rC(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Fe(Ze,Ze.current),r)break;return null;case 22:case 23:return t.lanes=0,Jj(e,t,n)}return Wr(e,t,n)}var oC,Jv,iC,aC;oC=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}};Jv=function(){};iC=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,li(hr.current);var i=null;switch(n){case"input":o=wv(e,o),r=wv(e,r),i=[];break;case"select":o=Je({},o,{value:void 0}),r=Je({},r,{value:void 0}),i=[];break;case"textarea":o=Ev(e,o),r=Ev(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Rd)}_v(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Il.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Il.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&ze("scroll",e),i||s===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};aC=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ws(e,t){if(!Ye)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 kt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function nH(e,t,n){var r=t.pendingProps;switch(Cx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(t),null;case 1:return tn(t.type)&&kd(),kt(t),null;case 3:return r=t.stateNode,La(),Ve(en),Ve(Ht),$x(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ou(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Kn!==null&&(sy(Kn),Kn=null))),Jv(e,t),kt(t),null;case 5:Dx(t);var o=li(Wl.current);if(n=t.type,e!==null&&t.stateNode!=null)iC(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(K(166));return kt(t),null}if(e=li(hr.current),Ou(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[cr]=t,r[Hl]=i,e=(t.mode&1)!==0,n){case"dialog":ze("cancel",r),ze("close",r);break;case"iframe":case"object":case"embed":ze("load",r);break;case"video":case"audio":for(o=0;o<ll.length;o++)ze(ll[o],r);break;case"source":ze("error",r);break;case"img":case"image":case"link":ze("error",r),ze("load",r);break;case"details":ze("toggle",r);break;case"input":hw(r,i),ze("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ze("invalid",r);break;case"textarea":vw(r,i),ze("invalid",r)}_v(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Cu(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Cu(r.textContent,s,e),o=["children",""+s]):Il.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&ze("scroll",r)}switch(n){case"input":bu(r),mw(r,i,!0);break;case"textarea":bu(r),yw(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Rd)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=k_(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[cr]=t,e[Hl]=r,oC(e,t,!1,!1),t.stateNode=e;e:{switch(a=jv(n,r),n){case"dialog":ze("cancel",e),ze("close",e),o=r;break;case"iframe":case"object":case"embed":ze("load",e),o=r;break;case"video":case"audio":for(o=0;o<ll.length;o++)ze(ll[o],e);o=r;break;case"source":ze("error",e),o=r;break;case"img":case"image":case"link":ze("error",e),ze("load",e),o=r;break;case"details":ze("toggle",e),o=r;break;case"input":hw(e,r),o=wv(e,r),ze("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Je({},r,{value:void 0}),ze("invalid",e);break;case"textarea":vw(e,r),o=Ev(e,r),ze("invalid",e);break;default:o=r}_v(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?$_(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&M_(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Rl(e,c):typeof c=="number"&&Rl(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Il.hasOwnProperty(i)?c!=null&&i==="onScroll"&&ze("scroll",e):c!=null&&px(e,i,c,a))}switch(n){case"input":bu(e),mw(e,r,!1);break;case"textarea":bu(e),yw(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ro(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ba(e,!!r.multiple,i,!1):r.defaultValue!=null&&ba(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.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 kt(t),null;case 6:if(e&&t.stateNode!=null)aC(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(K(166));if(n=li(Wl.current),li(hr.current),Ou(t)){if(r=t.stateNode,n=t.memoizedProps,r[cr]=t,(i=r.nodeValue!==n)&&(e=pn,e!==null))switch(e.tag){case 3:Cu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Cu(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[cr]=t,t.stateNode=r}return kt(t),null;case 13:if(Ve(Ze),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ye&&fn!==null&&t.mode&1&&!(t.flags&128))Ej(),Da(),t.flags|=98560,i=!1;else if(i=Ou(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(K(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(K(317));i[cr]=t}else Da(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kt(t),i=!1}else Kn!==null&&(sy(Kn),Kn=null),i=!0;if(!i)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||Ze.current&1?yt===0&&(yt=3):qx())),t.updateQueue!==null&&(t.flags|=4),kt(t),null);case 4:return La(),Jv(e,t),e===null&&Bl(t.stateNode.containerInfo),kt(t),null;case 10:return Ix(t.type._context),kt(t),null;case 17:return tn(t.type)&&kd(),kt(t),null;case 19:if(Ve(Ze),i=t.memoizedState,i===null)return kt(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Ws(i,!1);else{if(yt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ud(e),a!==null){for(t.flags|=128,Ws(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Fe(Ze,Ze.current&1|2),t.child}e=e.sibling}i.tail!==null&&ot()>Ba&&(t.flags|=128,r=!0,Ws(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ud(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ws(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ye)return kt(t),null}else 2*ot()-i.renderingStartTime>Ba&&n!==1073741824&&(t.flags|=128,r=!0,Ws(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ot(),t.sibling=null,n=Ze.current,Fe(Ze,r?n&1|2:n&1),t):(kt(t),null);case 22:case 23:return Yx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ln&1073741824&&(kt(t),t.subtreeFlags&6&&(t.flags|=8192)):kt(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function rH(e,t){switch(Cx(t),t.tag){case 1:return tn(t.type)&&kd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return La(),Ve(en),Ve(Ht),$x(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Dx(t),null;case 13:if(Ve(Ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));Da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ve(Ze),null;case 4:return La(),null;case 10:return Ix(t.type._context),null;case 22:case 23:return Yx(),null;case 24:return null;default:return null}}var Iu=!1,$t=!1,oH=typeof WeakSet=="function"?WeakSet:Set,ne=null;function ha(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){et(e,t,r)}else n.current=null}function ey(e,t,n){try{n()}catch(r){et(e,t,r)}}var aS=!1;function iH(e,t){if($v=Td,e=dj(),_x(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,c=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var m;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(c=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)p=d,d=m;for(;;){if(d===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++f===r&&(c=a),(m=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=m}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lv={focusedElem:e,selectionRange:n},Td=!1,ne=t;ne!==null;)if(t=ne,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ne=e;else for(;ne!==null;){t=ne;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,v=b.memoizedState,x=t.stateNode,g=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:Hn(t.type,y),v);x.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(K(163))}}catch(E){et(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,ne=e;break}ne=t.return}return b=aS,aS=!1,b}function xl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ey(t,n,i)}o=o.next}while(o!==r)}}function wp(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 ty(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 sC(e){var t=e.alternate;t!==null&&(e.alternate=null,sC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cr],delete t[Hl],delete t[Uv],delete t[UU],delete t[HU])),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 lC(e){return e.tag===5||e.tag===3||e.tag===4}function sS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lC(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 ny(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(ny(e,t,n),e=e.sibling;e!==null;)ny(e,t,n),e=e.sibling}function ry(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(ry(e,t,n),e=e.sibling;e!==null;)ry(e,t,n),e=e.sibling}var jt=null,zn=!1;function io(e,t,n){for(n=n.child;n!==null;)cC(e,t,n),n=n.sibling}function cC(e,t,n){if(pr&&typeof pr.onCommitFiberUnmount=="function")try{pr.onCommitFiberUnmount(pp,n)}catch{}switch(n.tag){case 5:$t||ha(n,t);case 6:var r=jt,o=zn;jt=null,io(e,t,n),jt=r,zn=o,jt!==null&&(zn?(e=jt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):jt.removeChild(n.stateNode));break;case 18:jt!==null&&(zn?(e=jt,n=n.stateNode,e.nodeType===8?cm(e.parentNode,n):e.nodeType===1&&cm(e,n),$l(e)):cm(jt,n.stateNode));break;case 4:r=jt,o=zn,jt=n.stateNode.containerInfo,zn=!0,io(e,t,n),jt=r,zn=o;break;case 0:case 11:case 14:case 15:if(!$t&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&ey(n,t,a),o=o.next}while(o!==r)}io(e,t,n);break;case 1:if(!$t&&(ha(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){et(n,t,s)}io(e,t,n);break;case 21:io(e,t,n);break;case 22:n.mode&1?($t=(r=$t)||n.memoizedState!==null,io(e,t,n),$t=r):io(e,t,n);break;default:io(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 oH),t.forEach(function(r){var o=hH.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Fn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:jt=s.stateNode,zn=!1;break e;case 3:jt=s.stateNode.containerInfo,zn=!0;break e;case 4:jt=s.stateNode.containerInfo,zn=!0;break e}s=s.return}if(jt===null)throw Error(K(160));cC(i,a,o),jt=null,zn=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){et(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)uC(t,e),t=t.sibling}function uC(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Fn(t,e),ar(e),r&4){try{xl(3,e,e.return),wp(3,e)}catch(y){et(e,e.return,y)}try{xl(5,e,e.return)}catch(y){et(e,e.return,y)}}break;case 1:Fn(t,e),ar(e),r&512&&n!==null&&ha(n,n.return);break;case 5:if(Fn(t,e),ar(e),r&512&&n!==null&&ha(n,n.return),e.flags&32){var o=e.stateNode;try{Rl(o,"")}catch(y){et(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,s=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&I_(o,i),jv(s,a);var u=jv(s,i);for(a=0;a<c.length;a+=2){var f=c[a],d=c[a+1];f==="style"?$_(o,d):f==="dangerouslySetInnerHTML"?M_(o,d):f==="children"?Rl(o,d):px(o,f,d,u)}switch(s){case"input":Sv(o,i);break;case"textarea":R_(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var m=i.value;m!=null?ba(o,!!i.multiple,m,!1):p!==!!i.multiple&&(i.defaultValue!=null?ba(o,!!i.multiple,i.defaultValue,!0):ba(o,!!i.multiple,i.multiple?[]:"",!1))}o[Hl]=i}catch(y){et(e,e.return,y)}}break;case 6:if(Fn(t,e),ar(e),r&4){if(e.stateNode===null)throw Error(K(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){et(e,e.return,y)}}break;case 3:if(Fn(t,e),ar(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{$l(t.containerInfo)}catch(y){et(e,e.return,y)}break;case 4:Fn(t,e),ar(e);break;case 13:Fn(t,e),ar(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Vx=ot())),r&4&&lS(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?($t=(u=$t)||f,Fn(t,e),$t=u):Fn(t,e),ar(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(ne=e,f=e.child;f!==null;){for(d=ne=f;ne!==null;){switch(p=ne,m=p.child,p.tag){case 0:case 11:case 14:case 15:xl(4,p,p.return);break;case 1:ha(p,p.return);var b=p.stateNode;if(typeof b.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(y){et(r,n,y)}}break;case 5:ha(p,p.return);break;case 22:if(p.memoizedState!==null){uS(d);continue}}m!==null?(m.return=p,ne=m):uS(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,c=d.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=D_("display",a))}catch(y){et(e,e.return,y)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){et(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Fn(t,e),ar(e),r&4&&lS(e);break;case 21:break;default:Fn(t,e),ar(e)}}function ar(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(lC(n)){var r=n;break e}n=n.return}throw Error(K(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Rl(o,""),r.flags&=-33);var i=sS(e);ry(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,s=sS(e);ny(e,s,a);break;default:throw Error(K(161))}}catch(c){et(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function aH(e,t,n){ne=e,dC(e)}function dC(e,t,n){for(var r=(e.mode&1)!==0;ne!==null;){var o=ne,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Iu;if(!a){var s=o.alternate,c=s!==null&&s.memoizedState!==null||$t;s=Iu;var u=$t;if(Iu=a,($t=c)&&!u)for(ne=o;ne!==null;)a=ne,c=a.child,a.tag===22&&a.memoizedState!==null?dS(o):c!==null?(c.return=a,ne=c):dS(o);for(;i!==null;)ne=i,dC(i),i=i.sibling;ne=o,Iu=s,$t=u}cS(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,ne=i):cS(e)}}function cS(e){for(;ne!==null;){var t=ne;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:$t||wp(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!$t)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Hn(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Kw(t,i,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}Kw(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.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 d=f.dehydrated;d!==null&&$l(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}$t||t.flags&512&&ty(t)}catch(p){et(t,t.return,p)}}if(t===e){ne=null;break}if(n=t.sibling,n!==null){n.return=t.return,ne=n;break}ne=t.return}}function uS(e){for(;ne!==null;){var t=ne;if(t===e){ne=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ne=n;break}ne=t.return}}function dS(e){for(;ne!==null;){var t=ne;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wp(4,t)}catch(c){et(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){et(t,o,c)}}var i=t.return;try{ty(t)}catch(c){et(t,i,c)}break;case 5:var a=t.return;try{ty(t)}catch(c){et(t,a,c)}}}catch(c){et(t,t.return,c)}if(t===e){ne=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ne=s;break}ne=t.return}}var sH=Math.ceil,Wd=Qr.ReactCurrentDispatcher,Wx=Qr.ReactCurrentOwner,Cn=Qr.ReactCurrentBatchConfig,je=0,At=null,ut=null,Ot=0,ln=0,ma=Fo(0),yt=0,Yl=null,wi=0,Sp=0,Gx=0,bl=null,Zt=null,Vx=0,Ba=1/0,Or=null,Gd=!1,oy=null,_o=null,Ru=!1,go=null,Vd=0,wl=0,iy=null,md=-1,vd=0;function Gt(){return je&6?ot():md!==-1?md:md=ot()}function jo(e){return e.mode&1?je&2&&Ot!==0?Ot&-Ot:WU.transition!==null?(vd===0&&(vd=q_()),vd):(e=Ie,e!==0||(e=window.event,e=e===void 0?16:nj(e.type)),e):1}function Qn(e,t,n,r){if(50<wl)throw wl=0,iy=null,Error(K(185));Uc(e,n,r),(!(je&2)||e!==At)&&(e===At&&(!(je&2)&&(Sp|=n),yt===4&&mo(e,Ot)),nn(e,r),n===1&&je===0&&!(t.mode&1)&&(Ba=ot()+500,gp&&Bo()))}function nn(e,t){var n=e.callbackNode;W3(e,t);var r=Od(e,e===At?Ot:0);if(r===0)n!==null&&bw(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&bw(n),t===1)e.tag===0?zU(fS.bind(null,e)):wj(fS.bind(null,e)),FU(function(){!(je&6)&&Bo()}),n=null;else{switch(X_(r)){case 1:n=gx;break;case 4:n=K_;break;case 16:n=Cd;break;case 536870912:n=Y_;break;default:n=Cd}n=xC(n,fC.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function fC(e,t){if(md=-1,vd=0,je&6)throw Error(K(327));var n=e.callbackNode;if(Na()&&e.callbackNode!==n)return null;var r=Od(e,e===At?Ot:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Kd(e,r);else{t=r;var o=je;je|=2;var i=hC();(At!==e||Ot!==t)&&(Or=null,Ba=ot()+500,pi(e,t));do try{uH();break}catch(s){pC(e,s)}while(!0);Px(),Wd.current=i,je=o,ut!==null?t=0:(At=null,Ot=0,t=yt)}if(t!==0){if(t===2&&(o=Iv(e),o!==0&&(r=o,t=ay(e,o))),t===1)throw n=Yl,pi(e,0),mo(e,r),nn(e,ot()),n;if(t===6)mo(e,r);else{if(o=e.current.alternate,!(r&30)&&!lH(o)&&(t=Kd(e,r),t===2&&(i=Iv(e),i!==0&&(r=i,t=ay(e,i))),t===1))throw n=Yl,pi(e,0),mo(e,r),nn(e,ot()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(K(345));case 2:ti(e,Zt,Or);break;case 3:if(mo(e,r),(r&130023424)===r&&(t=Vx+500-ot(),10<t)){if(Od(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Gt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Bv(ti.bind(null,e,Zt,Or),t);break}ti(e,Zt,Or);break;case 4:if(mo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Zn(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=ot()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sH(r/1960))-r,10<r){e.timeoutHandle=Bv(ti.bind(null,e,Zt,Or),r);break}ti(e,Zt,Or);break;case 5:ti(e,Zt,Or);break;default:throw Error(K(329))}}}return nn(e,ot()),e.callbackNode===n?fC.bind(null,e):null}function ay(e,t){var n=bl;return e.current.memoizedState.isDehydrated&&(pi(e,t).flags|=256),e=Kd(e,t),e!==2&&(t=Zt,Zt=n,t!==null&&sy(t)),e}function sy(e){Zt===null?Zt=e:Zt.push.apply(Zt,e)}function lH(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 o=n[r],i=o.getSnapshot;o=o.value;try{if(!Jn(i(),o))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 mo(e,t){for(t&=~Gx,t&=~Sp,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Zn(t),r=1<<n;e[n]=-1,t&=~r}}function fS(e){if(je&6)throw Error(K(327));Na();var t=Od(e,0);if(!(t&1))return nn(e,ot()),null;var n=Kd(e,t);if(e.tag!==0&&n===2){var r=Iv(e);r!==0&&(t=r,n=ay(e,r))}if(n===1)throw n=Yl,pi(e,0),mo(e,t),nn(e,ot()),n;if(n===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ti(e,Zt,Or),nn(e,ot()),null}function Kx(e,t){var n=je;je|=1;try{return e(t)}finally{je=n,je===0&&(Ba=ot()+500,gp&&Bo())}}function Si(e){go!==null&&go.tag===0&&!(je&6)&&Na();var t=je;je|=1;var n=Cn.transition,r=Ie;try{if(Cn.transition=null,Ie=1,e)return e()}finally{Ie=r,Cn.transition=n,je=t,!(je&6)&&Bo()}}function Yx(){ln=ma.current,Ve(ma)}function pi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,LU(n)),ut!==null)for(n=ut.return;n!==null;){var r=n;switch(Cx(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&kd();break;case 3:La(),Ve(en),Ve(Ht),$x();break;case 5:Dx(r);break;case 4:La();break;case 13:Ve(Ze);break;case 19:Ve(Ze);break;case 10:Ix(r.type._context);break;case 22:case 23:Yx()}n=n.return}if(At=e,ut=e=Co(e.current,null),Ot=ln=t,yt=0,Yl=null,Gx=Sp=wi=0,Zt=bl=null,si!==null){for(t=0;t<si.length;t++)if(n=si[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}si=null}return e}function pC(e,t){do{var n=ut;try{if(Px(),fd.current=zd,Hd){for(var r=Qe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Hd=!1}if(bi=0,wt=mt=Qe=null,gl=!1,Gl=0,Wx.current=null,n===null||n.return===null){yt=1,Yl=t,ut=null;break}e:{var i=e,a=n.return,s=n,c=t;if(t=Ot,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=Jw(a);if(m!==null){m.flags&=-257,eS(m,a,s,i,t),m.mode&1&&Qw(i,u,t),t=m,c=u;var b=t.updateQueue;if(b===null){var y=new Set;y.add(c),t.updateQueue=y}else b.add(c);break e}else{if(!(t&1)){Qw(i,u,t),qx();break e}c=Error(K(426))}}else if(Ye&&s.mode&1){var v=Jw(a);if(v!==null){!(v.flags&65536)&&(v.flags|=256),eS(v,a,s,i,t),Ox(Fa(c,s));break e}}i=c=Fa(c,s),yt!==4&&(yt=2),bl===null?bl=[i]:bl.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var x=Xj(i,c,t);Vw(i,x);break e;case 1:s=c;var g=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(_o===null||!_o.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=Zj(i,s,t);Vw(i,E);break e}}i=i.return}while(i!==null)}vC(n)}catch(A){t=A,ut===n&&n!==null&&(ut=n=n.return);continue}break}while(!0)}function hC(){var e=Wd.current;return Wd.current=zd,e===null?zd:e}function qx(){(yt===0||yt===3||yt===2)&&(yt=4),At===null||!(wi&268435455)&&!(Sp&268435455)||mo(At,Ot)}function Kd(e,t){var n=je;je|=2;var r=hC();(At!==e||Ot!==t)&&(Or=null,pi(e,t));do try{cH();break}catch(o){pC(e,o)}while(!0);if(Px(),je=n,Wd.current=r,ut!==null)throw Error(K(261));return At=null,Ot=0,yt}function cH(){for(;ut!==null;)mC(ut)}function uH(){for(;ut!==null&&!M3();)mC(ut)}function mC(e){var t=gC(e.alternate,e,ln);e.memoizedProps=e.pendingProps,t===null?vC(e):ut=t,Wx.current=null}function vC(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=rH(n,t),n!==null){n.flags&=32767,ut=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{yt=6,ut=null;return}}else if(n=nH(n,t,ln),n!==null){ut=n;return}if(t=t.sibling,t!==null){ut=t;return}ut=t=e}while(t!==null);yt===0&&(yt=5)}function ti(e,t,n){var r=Ie,o=Cn.transition;try{Cn.transition=null,Ie=1,dH(e,t,n,r)}finally{Cn.transition=o,Ie=r}return null}function dH(e,t,n,r){do Na();while(go!==null);if(je&6)throw Error(K(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(K(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(G3(e,i),e===At&&(ut=At=null,Ot=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ru||(Ru=!0,xC(Cd,function(){return Na(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Cn.transition,Cn.transition=null;var a=Ie;Ie=1;var s=je;je|=4,Wx.current=null,iH(e,n),uC(n,e),PU(Lv),Td=!!$v,Lv=$v=null,e.current=n,aH(n),D3(),je=s,Ie=a,Cn.transition=i}else e.current=n;if(Ru&&(Ru=!1,go=e,Vd=o),i=e.pendingLanes,i===0&&(_o=null),F3(n.stateNode),nn(e,ot()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Gd)throw Gd=!1,e=oy,oy=null,e;return Vd&1&&e.tag!==0&&Na(),i=e.pendingLanes,i&1?e===iy?wl++:(wl=0,iy=e):wl=0,Bo(),null}function Na(){if(go!==null){var e=X_(Vd),t=Cn.transition,n=Ie;try{if(Cn.transition=null,Ie=16>e?16:e,go===null)var r=!1;else{if(e=go,go=null,Vd=0,je&6)throw Error(K(331));var o=je;for(je|=4,ne=e.current;ne!==null;){var i=ne,a=i.child;if(ne.flags&16){var s=i.deletions;if(s!==null){for(var c=0;c<s.length;c++){var u=s[c];for(ne=u;ne!==null;){var f=ne;switch(f.tag){case 0:case 11:case 15:xl(8,f,i)}var d=f.child;if(d!==null)d.return=f,ne=d;else for(;ne!==null;){f=ne;var p=f.sibling,m=f.return;if(sC(f),f===u){ne=null;break}if(p!==null){p.return=m,ne=p;break}ne=m}}}var b=i.alternate;if(b!==null){var y=b.child;if(y!==null){b.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(y!==null)}}ne=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,ne=a;else e:for(;ne!==null;){if(i=ne,i.flags&2048)switch(i.tag){case 0:case 11:case 15:xl(9,i,i.return)}var x=i.sibling;if(x!==null){x.return=i.return,ne=x;break e}ne=i.return}}var g=e.current;for(ne=g;ne!==null;){a=ne;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,ne=w;else e:for(a=g;ne!==null;){if(s=ne,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:wp(9,s)}}catch(A){et(s,s.return,A)}if(s===a){ne=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,ne=E;break e}ne=s.return}}if(je=o,Bo(),pr&&typeof pr.onPostCommitFiberRoot=="function")try{pr.onPostCommitFiberRoot(pp,e)}catch{}r=!0}return r}finally{Ie=n,Cn.transition=t}}return!1}function pS(e,t,n){t=Fa(n,t),t=Xj(e,t,1),e=No(e,t,1),t=Gt(),e!==null&&(Uc(e,1,t),nn(e,t))}function et(e,t,n){if(e.tag===3)pS(e,e,n);else for(;t!==null;){if(t.tag===3){pS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(_o===null||!_o.has(r))){e=Fa(n,e),e=Zj(t,e,1),t=No(t,e,1),e=Gt(),t!==null&&(Uc(t,1,e),nn(t,e));break}}t=t.return}}function fH(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Gt(),e.pingedLanes|=e.suspendedLanes&n,At===e&&(Ot&n)===n&&(yt===4||yt===3&&(Ot&130023424)===Ot&&500>ot()-Vx?pi(e,0):Gx|=n),nn(e,t)}function yC(e,t){t===0&&(e.mode&1?(t=Au,Au<<=1,!(Au&130023424)&&(Au=4194304)):t=1);var n=Gt();e=zr(e,t),e!==null&&(Uc(e,t,n),nn(e,n))}function pH(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yC(e,n)}function hH(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(K(314))}r!==null&&r.delete(t),yC(e,n)}var gC;gC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||en.current)Qt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qt=!1,tH(e,t,n);Qt=!!(e.flags&131072)}else Qt=!1,Ye&&t.flags&1048576&&Sj(t,$d,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hd(e,t),e=t.pendingProps;var o=Ma(t,Ht.current);Ea(t,n),o=Fx(null,t,r,e,o,n);var i=Bx();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tn(r)?(i=!0,Md(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,kx(t),o.updater=bp,t.stateNode=o,o._reactInternals=t,Kv(t,r,e,n),t=Xv(null,t,r,!0,i,n)):(t.tag=0,Ye&&i&&jx(t),zt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=vH(r),e=Hn(r,e),o){case 0:t=qv(null,t,r,e,n);break e;case 1:t=rS(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,Hn(r.type,e),n);break e}throw Error(K(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),qv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),rS(e,t,r,o,n);case 3:e:{if(tC(t),e===null)throw Error(K(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Cj(e,t),Bd(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Fa(Error(K(423)),t),t=oS(e,t,r,n,o);break e}else if(r!==o){o=Fa(Error(K(424)),t),t=oS(e,t,r,n,o);break e}else for(fn=Eo(t.stateNode.containerInfo.firstChild),pn=t,Ye=!0,Kn=null,n=_j(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Da(),r===o){t=Wr(e,t,n);break e}zt(e,t,r,n)}t=t.child}return t;case 5:return Oj(t),e===null&&Wv(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Fv(r,o)?a=null:i!==null&&Fv(r,i)&&(t.flags|=32),eC(e,t),zt(e,t,a,n),t.child;case 6:return e===null&&Wv(t),null;case 13:return nC(e,t,n);case 4:return Mx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$a(t,null,r,n):zt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),tS(e,t,r,o,n);case 7:return zt(e,t,t.pendingProps,n),t.child;case 8:return zt(e,t,t.pendingProps.children,n),t.child;case 12:return zt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Fe(Ld,r._currentValue),r._currentValue=a,i!==null)if(Jn(i.value,a)){if(i.children===o.children&&!en.current){t=Wr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=$r(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Gv(i.return,n,t),s.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(K(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Gv(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}zt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ea(t,n),o=In(o),r=r(o),t.flags|=1,zt(e,t,r,n),t.child;case 14:return r=t.type,o=Hn(r,t.pendingProps),o=Hn(r.type,o),nS(e,t,r,o,n);case 15:return Qj(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),hd(e,t),t.tag=1,tn(r)?(e=!0,Md(t)):e=!1,Ea(t,n),qj(t,r,o),Kv(t,r,o,n),Xv(null,t,r,!0,e,n);case 19:return rC(e,t,n);case 22:return Jj(e,t,n)}throw Error(K(156,t.tag))};function xC(e,t){return V_(e,t)}function mH(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 _n(e,t,n,r){return new mH(e,t,n,r)}function Xx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vH(e){if(typeof e=="function")return Xx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mx)return 11;if(e===vx)return 14}return 2}function Co(e,t){var n=e.alternate;return n===null?(n=_n(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 yd(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Xx(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ia:return hi(n.children,o,i,t);case hx:a=8,o|=8;break;case yv:return e=_n(12,n,t,o|2),e.elementType=yv,e.lanes=i,e;case gv:return e=_n(13,n,t,o),e.elementType=gv,e.lanes=i,e;case xv:return e=_n(19,n,t,o),e.elementType=xv,e.lanes=i,e;case O_:return Ap(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j_:a=10;break e;case C_:a=9;break e;case mx:a=11;break e;case vx:a=14;break e;case uo:a=16,r=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=_n(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function hi(e,t,n,r){return e=_n(7,e,r,t),e.lanes=n,e}function Ap(e,t,n,r){return e=_n(22,e,r,t),e.elementType=O_,e.lanes=n,e.stateNode={isHidden:!1},e}function ym(e,t,n){return e=_n(6,e,null,t),e.lanes=n,e}function gm(e,t,n){return t=_n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yH(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qh(0),this.expirationTimes=Qh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qh(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Zx(e,t,n,r,o,i,a,s,c){return e=new yH(e,t,n,s,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=_n(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kx(i),e}function gH(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:oa,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function bC(e){if(!e)return ko;e=e._reactInternals;e:{if(ki(e)!==e||e.tag!==1)throw Error(K(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(K(171))}if(e.tag===1){var n=e.type;if(tn(n))return bj(e,n,t)}return t}function wC(e,t,n,r,o,i,a,s,c){return e=Zx(n,r,!0,e,o,i,a,s,c),e.context=bC(null),n=e.current,r=Gt(),o=jo(n),i=$r(r,o),i.callback=t??null,No(n,i,o),e.current.lanes=o,Uc(e,o,r),nn(e,r),e}function Ep(e,t,n,r){var o=t.current,i=Gt(),a=jo(o);return n=bC(n),t.context===null?t.context=n:t.pendingContext=n,t=$r(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=No(o,t,a),e!==null&&(Qn(e,o,a,i),dd(e,o,a)),a}function Yd(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 Qx(e,t){hS(e,t),(e=e.alternate)&&hS(e,t)}function xH(){return null}var SC=typeof reportError=="function"?reportError:function(e){console.error(e)};function Jx(e){this._internalRoot=e}Np.prototype.render=Jx.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));Ep(e,t,null,null)};Np.prototype.unmount=Jx.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Si(function(){Ep(null,e,null,null)}),t[Hr]=null}};function Np(e){this._internalRoot=e}Np.prototype.unstable_scheduleHydration=function(e){if(e){var t=J_();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ho.length&&t!==0&&t<ho[n].priority;n++);ho.splice(n,0,e),n===0&&tj(e)}};function e0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function mS(){}function bH(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Yd(a);i.call(u)}}var a=wC(t,r,e,0,null,!1,!1,"",mS);return e._reactRootContainer=a,e[Hr]=a.current,Bl(e.nodeType===8?e.parentNode:e),Si(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Yd(c);s.call(u)}}var c=Zx(e,0,!1,null,null,!1,!1,"",mS);return e._reactRootContainer=c,e[Hr]=c.current,Bl(e.nodeType===8?e.parentNode:e),Si(function(){Ep(t,c,n,r)}),c}function jp(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var c=Yd(a);s.call(c)}}Ep(t,a,e,o)}else a=bH(n,t,e,o,r);return Yd(a)}Z_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=sl(t.pendingLanes);n!==0&&(xx(t,n|1),nn(t,ot()),!(je&6)&&(Ba=ot()+500,Bo()))}break;case 13:Si(function(){var r=zr(e,1);if(r!==null){var o=Gt();Qn(r,e,1,o)}}),Qx(e,1)}};bx=function(e){if(e.tag===13){var t=zr(e,134217728);if(t!==null){var n=Gt();Qn(t,e,134217728,n)}Qx(e,134217728)}};Q_=function(e){if(e.tag===13){var t=jo(e),n=zr(e,t);if(n!==null){var r=Gt();Qn(n,e,t,r)}Qx(e,t)}};J_=function(){return Ie};ej=function(e,t){var n=Ie;try{return Ie=e,t()}finally{Ie=n}};Ov=function(e,t,n){switch(t){case"input":if(Sv(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 o=yp(r);if(!o)throw Error(K(90));P_(r),Sv(r,o)}}}break;case"textarea":R_(e,n);break;case"select":t=n.value,t!=null&&ba(e,!!n.multiple,t,!1)}};B_=Kx;U_=Si;var wH={usingClientEntryPoint:!1,Events:[zc,ca,yp,L_,F_,Kx]},Gs={findFiberByHostInstance:ai,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},SH={bundleType:Gs.bundleType,version:Gs.version,rendererPackageName:Gs.rendererPackageName,rendererConfig:Gs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Qr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=W_(e),e===null?null:e.stateNode},findFiberByHostInstance:Gs.findFiberByHostInstance||xH,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 ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ku.isDisabled&&ku.supportsFiber)try{pp=ku.inject(SH),pr=ku}catch{}}xn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wH;xn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e0(t))throw Error(K(200));return gH(e,t,null,n)};xn.createRoot=function(e,t){if(!e0(e))throw Error(K(299));var n=!1,r="",o=SC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Zx(e,1,!1,null,null,n,!1,r,o),e[Hr]=t.current,Bl(e.nodeType===8?e.parentNode:e),new Jx(t)};xn.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(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=W_(t),e=e===null?null:e.stateNode,e};xn.flushSync=function(e){return Si(e)};xn.hydrate=function(e,t,n){if(!_p(t))throw Error(K(200));return jp(null,e,t,!0,n)};xn.hydrateRoot=function(e,t,n){if(!e0(e))throw Error(K(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=SC;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=wC(t,null,e,1,n??null,o,!1,i,a),e[Hr]=t.current,Bl(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Np(t)};xn.render=function(e,t,n){if(!_p(t))throw Error(K(200));return jp(null,e,t,!1,n)};xn.unmountComponentAtNode=function(e){if(!_p(e))throw Error(K(40));return e._reactRootContainer?(Si(function(){jp(null,null,e,!1,function(){e._reactRootContainer=null,e[Hr]=null})}),!0):!1};xn.unstable_batchedUpdates=Kx;xn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!_p(n))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return jp(e,t,n,!1,r)};xn.version="18.3.1-next-f1338f8080-20240426";function AC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(AC)}catch(e){console.error(e)}}AC(),A_.exports=xn;var Mi=A_.exports;const AH=Re(Mi);var vS=Mi;mv.createRoot=vS.createRoot,mv.hydrateRoot=vS.hydrateRoot;/**
41
+ * @remix-run/router v1.23.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
+ */function ql(){return ql=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},ql.apply(this,arguments)}var xo;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(xo||(xo={}));const yS="popstate";function EH(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return ly("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:qd(o)}return _H(t,n,null,e)}function dt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function t0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function NH(){return Math.random().toString(36).substr(2,8)}function gS(e,t){return{usr:e.state,key:e.key,idx:t}}function ly(e,t,n,r){return n===void 0&&(n=null),ql({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xs(t):t,{state:n,key:t&&t.key||r||NH()})}function qd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function xs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _H(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=xo.Pop,c=null,u=f();u==null&&(u=0,a.replaceState(ql({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=xo.Pop;let v=f(),x=v==null?null:v-u;u=v,c&&c({action:s,location:y.location,delta:x})}function p(v,x){s=xo.Push;let g=ly(y.location,v,x);u=f()+1;let w=gS(g,u),E=y.createHref(g);try{a.pushState(w,"",E)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;o.location.assign(E)}i&&c&&c({action:s,location:y.location,delta:1})}function m(v,x){s=xo.Replace;let g=ly(y.location,v,x);u=f();let w=gS(g,u),E=y.createHref(g);a.replaceState(w,"",E),i&&c&&c({action:s,location:y.location,delta:0})}function b(v){let x=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof v=="string"?v:qd(v);return g=g.replace(/ $/,"%20"),dt(x,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,x)}let y={get action(){return s},get location(){return e(o,a)},listen(v){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(yS,d),c=v,()=>{o.removeEventListener(yS,d),c=null}},createHref(v){return t(o,v)},createURL:b,encodeLocation(v){let x=b(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:m,go(v){return a.go(v)}};return y}var xS;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(xS||(xS={}));function jH(e,t,n){return n===void 0&&(n="/"),CH(e,t,n)}function CH(e,t,n,r){let o=typeof t=="string"?xs(t):t,i=n0(o.pathname||"/",n);if(i==null)return null;let a=EC(e);OH(a);let s=null;for(let c=0;s==null&&c<a.length;++c){let u=UH(i);s=LH(a[c],u)}return s}function EC(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,s)=>{let c={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(dt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Oo([r,c.relativePath]),f=n.concat(c);i.children&&i.children.length>0&&(dt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),EC(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:DH(u,i.index),routesMeta:f})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let c of NC(i.path))o(i,a,c)}),t}function NC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=NC(r.join("/")),s=[];return s.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function OH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$H(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const TH=/^:[\w-]+$/,PH=3,IH=2,RH=1,kH=10,MH=-2,bS=e=>e==="*";function DH(e,t){let n=e.split("/"),r=n.length;return n.some(bS)&&(r+=MH),t&&(r+=IH),n.filter(o=>!bS(o)).reduce((o,i)=>o+(TH.test(i)?PH:i===""?RH:kH),r)}function $H(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function LH(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let c=r[s],u=s===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",d=FH({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},f),p=c.route;if(!d)return null;Object.assign(o,d.params),a.push({params:o,pathname:Oo([i,d.pathname]),pathnameBase:VH(Oo([i,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(i=Oo([i,d.pathnameBase]))}return a}function FH(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=BH(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,f,d)=>{let{paramName:p,isOptional:m}=f;if(p==="*"){let y=s[d]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const b=s[d];return m&&!b?u[p]=void 0:u[p]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function BH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),t0(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function UH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return t0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function n0(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)||"/"}const HH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zH=e=>HH.test(e);function WH(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?xs(e):e,i;if(n)if(zH(n))i=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),t0(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?i=wS(n.substring(1),"/"):i=wS(n,t)}else i=t;return{pathname:i,search:KH(r),hash:YH(o)}}function wS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function xm(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 GH(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _C(e,t){let n=GH(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function jC(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=xs(e):(o=ql({},e),dt(!o.pathname||!o.pathname.includes("?"),xm("?","pathname","search",o)),dt(!o.pathname||!o.pathname.includes("#"),xm("#","pathname","hash",o)),dt(!o.search||!o.search.includes("#"),xm("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}s=d>=0?t[d]:"/"}let c=WH(o,s),u=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||f)&&(c.pathname+="/"),c}const Oo=e=>e.join("/").replace(/\/\/+/g,"/"),VH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),KH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,YH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const CC=["post","put","patch","delete"];new Set(CC);const XH=["get",...CC];new Set(XH);/**
50
+ * React Router v6.30.2
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */function Xl(){return Xl=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},Xl.apply(this,arguments)}const r0=h.createContext(null),ZH=h.createContext(null),Di=h.createContext(null),Cp=h.createContext(null),Jr=h.createContext({outlet:null,matches:[],isDataRoute:!1}),OC=h.createContext(null);function QH(e,t){let{relative:n}=t===void 0?{}:t;Gc()||dt(!1);let{basename:r,navigator:o}=h.useContext(Di),{hash:i,pathname:a,search:s}=IC(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Oo([r,a])),o.createHref({pathname:c,search:s,hash:i})}function Gc(){return h.useContext(Cp)!=null}function Vc(){return Gc()||dt(!1),h.useContext(Cp).location}function TC(e){h.useContext(Di).static||h.useLayoutEffect(e)}function PC(){let{isDataRoute:e}=h.useContext(Jr);return e?p5():JH()}function JH(){Gc()||dt(!1);let e=h.useContext(r0),{basename:t,future:n,navigator:r}=h.useContext(Di),{matches:o}=h.useContext(Jr),{pathname:i}=Vc(),a=JSON.stringify(_C(o,n.v7_relativeSplatPath)),s=h.useRef(!1);return TC(()=>{s.current=!0}),h.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=jC(u,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Oo([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,a,i,e])}const e5=h.createContext(null);function t5(e){let t=h.useContext(Jr).outlet;return t&&h.createElement(e5.Provider,{value:e},t)}function $i(){let{matches:e}=h.useContext(Jr),t=e[e.length-1];return t?t.params:{}}function IC(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Di),{matches:o}=h.useContext(Jr),{pathname:i}=Vc(),a=JSON.stringify(_C(o,r.v7_relativeSplatPath));return h.useMemo(()=>jC(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function n5(e,t){return r5(e,t)}function r5(e,t,n,r){Gc()||dt(!1);let{navigator:o}=h.useContext(Di),{matches:i}=h.useContext(Jr),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Vc(),f;if(t){var d;let v=typeof t=="string"?xs(t):t;c==="/"||(d=v.pathname)!=null&&d.startsWith(c)||dt(!1),f=v}else f=u;let p=f.pathname||"/",m=p;if(c!=="/"){let v=c.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(v.length).join("/")}let b=jH(e,{pathname:m}),y=l5(b&&b.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Oo([c,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:Oo([c,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r);return t&&y?h.createElement(Cp.Provider,{value:{location:Xl({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:xo.Pop}},y):y}function o5(){let e=f5(),t=qH(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const i5=h.createElement(o5,null);class a5 extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(Jr.Provider,{value:this.props.routeContext},h.createElement(OC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function s5(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(r0);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(Jr.Provider,{value:t},r)}function l5(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let f=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);f>=0||dt(!1),a=a.slice(0,Math.min(a.length,f+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=f),d.route.id){let{loaderData:p,errors:m}=n,b=d.route.loader&&p[d.route.id]===void 0&&(!m||m[d.route.id]===void 0);if(d.route.lazy||b){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,d,p)=>{let m,b=!1,y=null,v=null;n&&(m=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||i5,c&&(u<0&&p===0?(h5("route-fallback"),b=!0,v=null):u===p&&(b=!0,v=d.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,p+1)),g=()=>{let w;return m?w=y:b?w=v:d.route.Component?w=h.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=f,h.createElement(s5,{match:d,routeContext:{outlet:f,matches:x,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?h.createElement(a5,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:g(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):g()},null)}var RC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(RC||{}),kC=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(kC||{});function c5(e){let t=h.useContext(r0);return t||dt(!1),t}function u5(e){let t=h.useContext(ZH);return t||dt(!1),t}function d5(e){let t=h.useContext(Jr);return t||dt(!1),t}function MC(e){let t=d5(),n=t.matches[t.matches.length-1];return n.route.id||dt(!1),n.route.id}function f5(){var e;let t=h.useContext(OC),n=u5(),r=MC();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function p5(){let{router:e}=c5(RC.UseNavigateStable),t=MC(kC.UseNavigateStable),n=h.useRef(!1);return TC(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Xl({fromRouteId:t},i)))},[e,t])}const SS={};function h5(e,t,n){SS[e]||(SS[e]=!0)}function m5(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function v5(e){return t5(e.context)}function Nt(e){dt(!1)}function y5(e){let{basename:t="/",children:n=null,location:r,navigationType:o=xo.Pop,navigator:i,static:a=!1,future:s}=e;Gc()&&dt(!1);let c=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:c,navigator:i,static:a,future:Xl({v7_relativeSplatPath:!1},s)}),[c,s,i,a]);typeof r=="string"&&(r=xs(r));let{pathname:f="/",search:d="",hash:p="",state:m=null,key:b="default"}=r,y=h.useMemo(()=>{let v=n0(f,c);return v==null?null:{location:{pathname:v,search:d,hash:p,state:m,key:b},navigationType:o}},[c,f,d,p,m,b,o]);return y==null?null:h.createElement(Di.Provider,{value:u},h.createElement(Cp.Provider,{children:n,value:y}))}function g5(e){let{children:t,location:n}=e;return n5(cy(t),n)}new Promise(()=>{});function cy(e,t){t===void 0&&(t=[]);let n=[];return h.Children.forEach(e,(r,o)=>{if(!h.isValidElement(r))return;let i=[...t,o];if(r.type===h.Fragment){n.push.apply(n,cy(r.props.children,i));return}r.type!==Nt&&dt(!1),!r.props.index||!r.props.children||dt(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary: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=cy(r.props.children,i)),n.push(a)}),n}/**
59
+ * React Router DOM v6.30.2
60
+ *
61
+ * Copyright (c) Remix Software Inc.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE.md file in the root directory of this source tree.
65
+ *
66
+ * @license MIT
67
+ */function uy(){return uy=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},uy.apply(this,arguments)}function x5(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function b5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function w5(e,t){return e.button===0&&(!t||t==="_self")&&!b5(e)}const S5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],A5="6";try{window.__reactRouterVersion=A5}catch{}const E5="startTransition",AS=fp[E5];function N5(e){let{basename:t,children:n,future:r,window:o}=e,i=h.useRef();i.current==null&&(i.current=EH({window:o,v5Compat:!0}));let a=i.current,[s,c]=h.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=h.useCallback(d=>{u&&AS?AS(()=>c(d)):c(d)},[c,u]);return h.useLayoutEffect(()=>a.listen(f),[a,f]),h.useEffect(()=>m5(r),[r]),h.createElement(y5,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const _5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",j5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pe=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:c,to:u,preventScrollReset:f,viewTransition:d}=t,p=x5(t,S5),{basename:m}=h.useContext(Di),b,y=!1;if(typeof u=="string"&&j5.test(u)&&(b=u,_5))try{let w=new URL(window.location.href),E=u.startsWith("//")?new URL(w.protocol+u):new URL(u),A=n0(E.pathname,m);E.origin===w.origin&&A!=null?u=A+E.search+E.hash:y=!0}catch{}let v=QH(u,{relative:o}),x=C5(u,{replace:a,state:s,target:c,preventScrollReset:f,relative:o,viewTransition:d});function g(w){r&&r(w),w.defaultPrevented||x(w)}return h.createElement("a",uy({},p,{href:b||v,onClick:y||i?r:g,ref:n,target:c}))});var ES;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ES||(ES={}));var NS;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(NS||(NS={}));function C5(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,c=PC(),u=Vc(),f=IC(e,{relative:a});return h.useCallback(d=>{if(w5(d,n)){d.preventDefault();let p=r!==void 0?r:qd(u)===qd(f);c(e,{replace:p,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[u,c,f,r,o,n,e,i,a,s])}const O5="nav",T5={nodeType:"translation",translation:{en:{dashboard:"Dashboard",sources:"Data Sources",catalog:"Catalog",glossary:"Glossary",rules:"Rules",validations:"Validations",history:"History",schedules:"Schedules",activity:"Activity",notifications:"Notifications",profile:"Profile",drift:"Drift",settings:"Settings"},ko:{dashboard:"대시보드",sources:"데이터 소스",catalog:"카탈로그",glossary:"용어집",rules:"규칙",validations:"검증",history:"히스토리",schedules:"스케줄",activity:"활동",notifications:"알림",profile:"프로필",drift:"드리프트",settings:"설정"}}},P5=["nav::local::src/content/nav.content.ts"],Li={key:O5,content:T5,localIds:P5},I5=(e,t)=>{var p,m,b,y,v,x,g,w;const n=(t==null?void 0:t.isVerbose)??!1,r=((p=t==null?void 0:t.config)==null?void 0:p.mode)??"default",o=(t==null?void 0:t.level)??"info",i=(m=t==null?void 0:t.config)!=null&&m.prefix?(b=t==null?void 0:t.config)==null?void 0:b.prefix:void 0,a=((y=t==null?void 0:t.config)==null?void 0:y.log)??console.log,s=((v=t==null?void 0:t.config)==null?void 0:v.info)??console.info,c=((x=t==null?void 0:t.config)==null?void 0:x.warn)??console.warn,u=((g=t==null?void 0:t.config)==null?void 0:g.error)??console.error,f=((w=t==null?void 0:t.config)==null?void 0:w.debug)??console.debug;if(r==="disabled"||n&&r!=="verbose")return;const d=i?[i,...[e].flat()]:[e].flat();if(o==="debug")return f(...d);if(o==="info")return s(...d);if(o==="warn")return c(...d);if(o==="error")return u(...d);a(...d)};let _S=function(e){return e.RESET="\x1B[0m",e.GREY="\x1B[90m",e.GREY_DARK="\x1B[38;5;239m",e.GREY_LIGHT="\x1B[38;5;252m",e.BLUE="\x1B[34m",e.RED="\x1B[31m",e.GREEN="\x1B[32m",e.YELLOW="\x1B[38;5;226m",e.MAGENTA="\x1B[35m",e.BEIGE="\x1B[38;5;3m",e.ORANGE="\x1B[38;5;208m",e.CYAN="\x1B[36m",e.WHITE="\x1B[37m",e.BOLD="\x1B[1m",e}({});const R5=(e,t)=>(n,r)=>I5(n,{...r??{},config:{...e==null?void 0:e.log,...t==null?void 0:t.config,...(r==null?void 0:r.config)??{}}});var k5=Object.defineProperty,Fi=(e,t)=>{let n={};for(var r in e)k5(n,r,{get:e[r],enumerable:!0});return n},M5=Fi({BUILD_MODE:()=>D5,CACHE:()=>U5,IMPORT_MODE:()=>L5,OPTIMIZE:()=>$5,OUTPUT_FORMAT:()=>B5,TRAVERSE_PATTERN:()=>F5});const D5="auto",$5=void 0,L5="static",F5=["**/*.{tsx,ts,js,mjs,cjs,jsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"],B5=["cjs","esm"],U5=!0;var H5=Fi({CACHE_DIR:()=>oz,CONFIG_DIR:()=>rz,CONTENT_DIR:()=>G5,DICTIONARIES_DIR:()=>K5,DYNAMIC_DICTIONARIES_DIR:()=>Z5,EXCLUDED_PATHS:()=>W5,FETCH_DICTIONARIES_DIR:()=>Q5,FILE_EXTENSIONS:()=>z5,I18NEXT_DICTIONARIES_DIR:()=>tz,MAIN_DIR:()=>V5,MASKS_DIR:()=>Y5,MODULE_AUGMENTATION_DIR:()=>ez,REACT_INTL_MESSAGES_DIR:()=>nz,REMOTE_DICTIONARIES_DIR:()=>q5,TYPES_DIR:()=>J5,UNMERGED_DICTIONARIES_DIR:()=>X5,WATCH:()=>iz});const z5=[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".content.json",".content.tsx",".content.jsx"],W5=["**/node_modules/**","**/dist/**","**/build/**","**/.intlayer/**","**/.next/**","**/.nuxt/**","**/.expo/**","**/.vercel/**","**/.turbo/**","**/.tanstack/**"],G5=["."],V5=".intlayer/main",K5=".intlayer/dictionary",Y5=".intlayer/mask",q5=".intlayer/remote_dictionary",X5=".intlayer/unmerged_dictionary",Z5=".intlayer/dynamic_dictionary",Q5=".intlayer/fetch_dictionary",J5=".intlayer/types",ez=".intlayer/types",tz="i18next_resources",nz="intl_messages",rz=".intlayer/config",oz=".intlayer/cache",iz=!0;var az=Fi({APPLICATION_URL:()=>sz,BACKEND_URL:()=>uz,CMS_URL:()=>cz,DICTIONARY_PRIORITY_STRATEGY:()=>hz,EDITOR_URL:()=>lz,IS_ENABLED:()=>fz,LIVE_SYNC:()=>pz,LIVE_SYNC_PORT:()=>mz,PORT:()=>dz});const sz="",lz="http://localhost:8000",cz="https://app.intlayer.org",uz="https://back.intlayer.org",dz=8e3,fz=!0,pz=!0,hz="local_first",mz=4e3;var vz=Object.defineProperty,yz=(e,t)=>{let n={};for(var r in e)vz(n,r,{get:e[r],enumerable:!0});return n},br=yz({AFRIKAANS:()=>DC,AFRIKAANS_SOUTH_AFRICA:()=>$C,ALBANIAN:()=>AI,ALBANIAN_ALBANIA:()=>EI,ALL_LOCALES:()=>gz,AMHARIC:()=>PR,AMHARIC_ETHIOPIA:()=>IR,ARABIC:()=>LC,ARABIC_ALGERIA:()=>UC,ARABIC_BAHRAIN:()=>BC,ARABIC_CHAD:()=>dk,ARABIC_COMOROS:()=>fk,ARABIC_DJIBOUTI:()=>ck,ARABIC_EGYPT:()=>HC,ARABIC_IRAQ:()=>zC,ARABIC_JORDAN:()=>WC,ARABIC_KUWAIT:()=>GC,ARABIC_LEBANON:()=>VC,ARABIC_LIBYA:()=>KC,ARABIC_MAURITANIA:()=>ak,ARABIC_MOROCCO:()=>YC,ARABIC_OMAN:()=>qC,ARABIC_PALESTINE:()=>sk,ARABIC_QATAR:()=>XC,ARABIC_SAUDI_ARABIA:()=>ZC,ARABIC_SOMALIA:()=>uk,ARABIC_SUDAN:()=>lk,ARABIC_SYRIA:()=>QC,ARABIC_TUNISIA:()=>JC,ARABIC_UNITED_ARAB_EMIRATES:()=>FC,ARABIC_YEMEN:()=>eO,ARMENIAN:()=>HT,ARMENIAN_ARMENIA:()=>zT,AZERI_LATIN:()=>tO,AZERI_LATIN_AZERBAIJAN:()=>nO,BASQUE:()=>uT,BASQUE_SPAIN:()=>dT,BELARUSIAN:()=>rO,BELARUSIAN_BELARUS:()=>oO,BENGALI:()=>yR,BENGALI_BANGLADESH:()=>gR,BENGALI_INDIA:()=>xR,BENGALI_MYANMAR:()=>bR,BOSNIAN:()=>sO,BOSNIAN_BOSNIA_AND_HERZEGOVINA:()=>lO,BULGARIAN:()=>iO,BULGARIAN_BULGARIA:()=>aO,BURMESE:()=>wR,BURMESE_MYANMAR:()=>SR,CATALAN:()=>cO,CATALAN_SPAIN:()=>uO,CHINESE:()=>lR,CHINESE_HONG_KONG:()=>dR,CHINESE_MACAU:()=>fR,CHINESE_SIMPLIFIED:()=>cR,CHINESE_SIMPLIFIED_CHINA:()=>uR,CHINESE_SINGAPORE:()=>pR,CHINESE_TAIWAN:()=>ik,CHINESE_TRADITIONAL:()=>hR,CROATIAN:()=>$T,CROATIAN_BOSNIA_AND_HERZEGOVINA:()=>LT,CROATIAN_CROATIA:()=>FT,CZECH:()=>dO,CZECH_CZECH_REPUBLIC:()=>fO,DANISH:()=>mO,DANISH_DENMARK:()=>vO,DIVEHI:()=>AO,DIVEHI_MALDIVES:()=>EO,DUTCH:()=>MP,DUTCH_BELGIUM:()=>DP,DUTCH_NETHERLANDS:()=>$P,ENGLISH:()=>jO,ENGLISH_AUSTRALIA:()=>CO,ENGLISH_BELIZE:()=>OO,ENGLISH_BOTSWANA:()=>VR,ENGLISH_CANADA:()=>TO,ENGLISH_CARIBBEAN:()=>PO,ENGLISH_GHANA:()=>qR,ENGLISH_HONG_KONG:()=>HR,ENGLISH_INDIA:()=>BR,ENGLISH_IRELAND:()=>RO,ENGLISH_JAMAICA:()=>kO,ENGLISH_KENYA:()=>KR,ENGLISH_MALAYSIA:()=>GR,ENGLISH_NEW_ZEALAND:()=>MO,ENGLISH_NIGERIA:()=>zR,ENGLISH_PAKISTAN:()=>WR,ENGLISH_PHILIPPINES:()=>DO,ENGLISH_SINGAPORE:()=>UR,ENGLISH_SOUTH_AFRICA:()=>FO,ENGLISH_TANZANIA:()=>YR,ENGLISH_TRINIDAD_AND_TOBAGO:()=>$O,ENGLISH_UGANDA:()=>XR,ENGLISH_UNITED_KINGDOM:()=>IO,ENGLISH_UNITED_STATES:()=>LO,ENGLISH_ZIMBABWE:()=>BO,ESPERANTO:()=>UO,ESTONIAN:()=>lT,ESTONIAN_ESTONIA:()=>cT,FAROESE:()=>vT,FAROESE_FAROE_ISLANDS:()=>yT,FARSI:()=>fT,FARSI_IRAN:()=>pT,FINNISH:()=>hT,FINNISH_FINLAND:()=>mT,FRENCH:()=>gT,FRENCH_BELGIUM:()=>xT,FRENCH_CANADA:()=>bT,FRENCH_FRANCE:()=>ST,FRENCH_LUXEMBOURG:()=>AT,FRENCH_PRINCIPALITY_OF_MONACO:()=>ET,FRENCH_SWITZERLAND:()=>wT,FYRO_MACEDONIAN:()=>xP,FYRO_MACEDONIAN_MACEDONIA:()=>bP,GALICIAN:()=>OT,GALICIAN_SPAIN:()=>TT,GEORGIAN:()=>JT,GEORGIAN_GEORGIA:()=>eP,GERMAN:()=>yO,GERMAN_AUSTRIA:()=>gO,GERMAN_GERMANY:()=>bO,GERMAN_LIECHTENSTEIN:()=>wO,GERMAN_LUXEMBOURG:()=>SO,GERMAN_SWITZERLAND:()=>xO,GREEK:()=>NO,GREEK_GREECE:()=>_O,GUJARATI:()=>PT,GUJARATI_INDIA:()=>IT,HEBREW:()=>RT,HEBREW_ISRAEL:()=>kT,HINDI:()=>MT,HINDI_INDIA:()=>DT,HUNGARIAN:()=>BT,HUNGARIAN_HUNGARY:()=>UT,ICELANDIC:()=>VT,ICELANDIC_ICELAND:()=>KT,INDONESIAN:()=>WT,INDONESIAN_INDONESIA:()=>GT,IRISH:()=>NT,IRISH_IRELAND:()=>_T,ITALIAN:()=>YT,ITALIAN_ITALY:()=>XT,ITALIAN_SWITZERLAND:()=>qT,JAPANESE:()=>ZT,JAPANESE_JAPAN:()=>QT,KANNADA:()=>rP,KANNADA_INDIA:()=>oP,KAZAKH:()=>tP,KAZAKH_KAZAKHSTAN:()=>nP,KHMER:()=>AR,KHMER_CAMBODIA:()=>ER,KONKANI:()=>sP,KONKANI_INDIA:()=>lP,KOREAN:()=>iP,KOREAN_KOREA:()=>aP,KURDISH:()=>cP,KURDISH_TURKEY:()=>uP,KYRGYZ:()=>dP,KYRGYZ_KYRGYZSTAN:()=>fP,LAO:()=>NR,LAO_LAOS:()=>_R,LATVIAN:()=>mP,LATVIAN_LATVIA:()=>vP,LITHUANIAN:()=>pP,LITHUANIAN_LITHUANIA:()=>hP,LOWER_SORBIAN:()=>yI,LOWER_SORBIAN_GERMANY:()=>gI,MALAY:()=>NP,MALAYALAM:()=>TP,MALAYALAM_INDIA:()=>PP,MALAY_BRUNEI_DARUSSALAM:()=>_P,MALAY_MALAYSIA:()=>jP,MALTESE:()=>CP,MALTESE_MALTA:()=>OP,MAORI:()=>yP,MAORI_NEW_ZEALAND:()=>gP,MARATHI:()=>AP,MARATHI_INDIA:()=>EP,MONGOLIAN:()=>wP,MONGOLIAN_MONGOLIA:()=>SP,NEPALI:()=>RR,NEPALI_NEPAL:()=>kR,NORTHERN_SOTHO:()=>BP,NORTHERN_SOTHO_SOUTH_AFRICA:()=>UP,NORWEGIAN:()=>IP,NORWEGIAN_BOKMAL:()=>RP,NORWEGIAN_BOKMAL_NORWAY:()=>kP,NORWEGIAN_NYNORSK:()=>LP,NORWEGIAN_NYNORSK_NORWAY:()=>FP,PASHTO:()=>VP,PASHTO_AFGHANISTAN:()=>KP,POLISH:()=>WP,POLISH_POLAND:()=>GP,PORTUGUESE:()=>YP,PORTUGUESE_BRAZIL:()=>qP,PORTUGUESE_CAPE_VERDE:()=>nk,PORTUGUESE_GUINEA_BISSAU:()=>JR,PORTUGUESE_MACAU:()=>ok,PORTUGUESE_MOZAMBIQUE:()=>ek,PORTUGUESE_PORTUGAL:()=>XP,PORTUGUESE_SAO_TOME_AND_PRINCIPE:()=>tk,PORTUGUESE_TIMOR_LESTE:()=>rk,PUNJABI:()=>HP,PUNJABI_INDIA:()=>zP,QUECHUA:()=>ZP,QUECHUA_BOLIVIA:()=>QP,QUECHUA_ECUADOR:()=>JP,QUECHUA_PERU:()=>eI,ROMANIAN:()=>tI,ROMANIAN_MOLDOVA:()=>rI,ROMANIAN_ROMANIA:()=>nI,ROMANSH:()=>oI,ROMANSH_SWITZERLAND:()=>iI,RUSSIAN:()=>aI,RUSSIAN_MOLDOVA:()=>lI,RUSSIAN_RUSSIA:()=>sI,SAMI_NORTHERN:()=>dI,SAMI_NORTHERN_FINLAND:()=>fI,SAMI_NORTHERN_NORWAY:()=>pI,SAMI_NORTHERN_SWEDEN:()=>hI,SANSKRIT:()=>cI,SANSKRIT_INDIA:()=>uI,SCOTTISH_GAELIC:()=>jT,SCOTTISH_GAELIC_UNITED_KINGDOM:()=>CT,SERBIAN_CYRILLIC:()=>$R,SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA:()=>FR,SERBIAN_CYRILLIC_SERBIA:()=>LR,SERBIAN_LATIN:()=>NI,SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:()=>_I,SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:()=>jI,SINHALA:()=>MR,SINHALA_SRI_LANKA:()=>DR,SLOVAK:()=>xI,SLOVAK_SLOVAKIA:()=>bI,SLOVENIAN:()=>wI,SLOVENIAN_SLOVENIA:()=>SI,SPANISH:()=>HO,SPANISH_ARGENTINA:()=>zO,SPANISH_BOLIVIA:()=>WO,SPANISH_CHILE:()=>GO,SPANISH_COLOMBIA:()=>VO,SPANISH_COSTA_RICA:()=>KO,SPANISH_CUBA:()=>ZR,SPANISH_DOMINICAN_REPUBLIC:()=>YO,SPANISH_ECUADOR:()=>qO,SPANISH_EL_SALVADOR:()=>iT,SPANISH_GUATEMALA:()=>ZO,SPANISH_HONDURAS:()=>QO,SPANISH_MEXICO:()=>JO,SPANISH_NICARAGUA:()=>eT,SPANISH_PANAMA:()=>tT,SPANISH_PARAGUAY:()=>oT,SPANISH_PERU:()=>nT,SPANISH_PUERTO_RICO:()=>rT,SPANISH_SPAIN:()=>XO,SPANISH_UNITED_STATES:()=>QR,SPANISH_URUGUAY:()=>aT,SPANISH_VENEZUELA:()=>sT,SWAHILI:()=>PI,SWAHILI_KENYA:()=>II,SWEDISH:()=>CI,SWEDISH_FINLAND:()=>OI,SWEDISH_SWEDEN:()=>TI,SYRIAC:()=>RI,SYRIAC_SYRIA:()=>kI,TAGALOG:()=>UI,TAGALOG_PHILIPPINES:()=>HI,TAMIL:()=>MI,TAMIL_INDIA:()=>DI,TATAR:()=>KI,TATAR_RUSSIA:()=>YI,TELUGU:()=>$I,TELUGU_INDIA:()=>LI,THAI:()=>FI,THAI_THAILAND:()=>BI,TSOGA:()=>qI,TSWANA:()=>zI,TSWANA_SOUTH_AFRICA:()=>WI,TURKISH:()=>GI,TURKISH_TURKEY:()=>VI,UKRAINIAN:()=>XI,UKRAINIAN_UKRAINE:()=>ZI,UPPER_SORBIAN:()=>mI,UPPER_SORBIAN_GERMANY:()=>vI,URDU:()=>QI,URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:()=>JI,UZBEK_LATIN:()=>eR,UZBEK_LATIN_UZBEKISTAN:()=>tR,VENDA:()=>oR,VENDA_SOUTH_AFRICA:()=>iR,VIETNAMESE:()=>nR,VIETNAMESE_VIET_NAM:()=>rR,WELSH:()=>pO,WELSH_UNITED_KINGDOM:()=>hO,XHOSA:()=>aR,XHOSA_SOUTH_AFRICA:()=>sR,YIDDISH:()=>OR,YIDDISH_WORLD:()=>TR,YORUBA:()=>jR,YORUBA_NIGERIA:()=>CR,ZULU:()=>mR,ZULU_SOUTH_AFRICA:()=>vR});const DC="af",$C="af-ZA",LC="ar",FC="ar-AE",BC="ar-BH",UC="ar-DZ",HC="ar-EG",zC="ar-IQ",WC="ar-JO",GC="ar-KW",VC="ar-LB",KC="ar-LY",YC="ar-MA",qC="ar-OM",XC="ar-QA",ZC="ar-SA",QC="ar-SY",JC="ar-TN",eO="ar-YE",tO="az",nO="az-AZ",rO="be",oO="be-BY",iO="bg",aO="bg-BG",sO="bs",lO="bs-BA",cO="ca",uO="ca-ES",dO="cs",fO="cs-CZ",pO="cy",hO="cy-GB",mO="da",vO="da-DK",yO="de",gO="de-AT",xO="de-CH",bO="de-DE",wO="de-LI",SO="de-LU",AO="dv",EO="dv-MV",NO="el",_O="el-GR",jO="en",CO="en-AU",OO="en-BZ",TO="en-CA",PO="en-CB",IO="en-GB",RO="en-IE",kO="en-JM",MO="en-NZ",DO="en-PH",$O="en-TT",LO="en-US",FO="en-ZA",BO="en-ZW",UO="eo",HO="es",zO="es-AR",WO="es-BO",GO="es-CL",VO="es-CO",KO="es-CR",YO="es-DO",qO="es-EC",XO="es-ES",ZO="es-GT",QO="es-HN",JO="es-MX",eT="es-NI",tT="es-PA",nT="es-PE",rT="es-PR",oT="es-PY",iT="es-SV",aT="es-UY",sT="es-VE",lT="et",cT="et-EE",uT="eu",dT="eu-ES",fT="fa",pT="fa-IR",hT="fi",mT="fi-FI",vT="fo",yT="fo-FO",gT="fr",xT="fr-BE",bT="fr-CA",wT="fr-CH",ST="fr-FR",AT="fr-LU",ET="fr-MC",NT="ga",_T="ga-IE",jT="gd",CT="gd-GB",OT="gl",TT="gl-ES",PT="gu",IT="gu-IN",RT="he",kT="he-IL",MT="hi",DT="hi-IN",$T="hr",LT="hr-BA",FT="hr-HR",BT="hu",UT="hu-HU",HT="hy",zT="hy-AM",WT="id",GT="id-ID",VT="is",KT="is-IS",YT="it",qT="it-CH",XT="it-IT",ZT="ja",QT="ja-JP",JT="ka",eP="ka-GE",tP="kk",nP="kk-KZ",rP="kn",oP="kn-IN",iP="ko",aP="ko-KR",sP="kok",lP="kok-IN",cP="ku",uP="ku-TR",dP="ky",fP="ky-KG",pP="lt",hP="lt-LT",mP="lv",vP="lv-LV",yP="mi",gP="mi-NZ",xP="mk",bP="mk-MK",wP="mn",SP="mn-MN",AP="mr",EP="mr-IN",NP="ms",_P="ms-BN",jP="ms-MY",CP="mt",OP="mt-MT",TP="ml",PP="ml-IN",IP="no",RP="nb",kP="nb-NO",MP="nl",DP="nl-BE",$P="nl-NL",LP="nn",FP="nn-NO",BP="ns",UP="ns-ZA",HP="pa",zP="pa-IN",WP="pl",GP="pl-PL",VP="ps",KP="ps-AR",YP="pt",qP="pt-BR",XP="pt-PT",ZP="qu",QP="qu-BO",JP="qu-EC",eI="qu-PE",tI="ro",nI="ro-RO",rI="ro-MD",oI="rm",iI="rm-CH",aI="ru",sI="ru-RU",lI="ru-MD",cI="sa",uI="sa-IN",dI="se",fI="se-FI",pI="se-NO",hI="se-SE",mI="hsb",vI="hsb-DE",yI="dsb",gI="dsb-DE",xI="sk",bI="sk-SK",wI="sl",SI="sl-SI",AI="sq",EI="sq-AL",NI="sr",_I="sr-BA",jI="sr-SP",CI="sv",OI="sv-FI",TI="sv-SE",PI="sw",II="sw-KE",RI="syr",kI="syr-SY",MI="ta",DI="ta-IN",$I="te",LI="te-IN",FI="th",BI="th-TH",UI="tl",HI="tl-PH",zI="tn",WI="tn-ZA",GI="tr",VI="tr-TR",KI="tt",YI="tt-RU",qI="ts",XI="uk",ZI="uk-UA",QI="ur",JI="ur-PK",eR="uz",tR="uz-UZ",nR="vi",rR="vi-VN",oR="ve",iR="ve-ZA",aR="xh",sR="xh-ZA",lR="zh",cR="zh-Hans",uR="zh-CN",dR="zh-HK",fR="zh-MO",pR="zh-SG",hR="zh-Hant",mR="zu",vR="zu-ZA",yR="bn",gR="bn-BD",xR="bn-IN",bR="bn-MM",wR="my",SR="my-MM",AR="km",ER="km-KH",NR="lo",_R="lo-LA",jR="yo",CR="yo-NG",OR="yi",TR="yi-001",PR="am",IR="am-ET",RR="ne",kR="ne-NP",MR="si",DR="si-LK",$R="sr-Cyrl",LR="sr-RS",FR="sr-BA",BR="en-IN",UR="en-SG",HR="en-HK",zR="en-NG",WR="en-PK",GR="en-MY",VR="en-BW",KR="en-KE",YR="en-TZ",qR="en-GH",XR="en-UG",ZR="es-CU",QR="es-US",JR="pt-GW",ek="pt-MZ",tk="pt-ST",nk="pt-CV",rk="pt-TL",ok="pt-MO",ik="zh-TW",ak="ar-MR",sk="ar-PS",lk="ar-SD",ck="ar-DJ",uk="ar-SO",dk="ar-TD",fk="ar-KM",gz={AFRIKAANS:DC,AFRIKAANS_SOUTH_AFRICA:$C,ARABIC:LC,ARABIC_UNITED_ARAB_EMIRATES:FC,ARABIC_BAHRAIN:BC,ARABIC_ALGERIA:UC,ARABIC_EGYPT:HC,ARABIC_IRAQ:zC,ARABIC_JORDAN:WC,ARABIC_KUWAIT:GC,ARABIC_LEBANON:VC,ARABIC_LIBYA:KC,ARABIC_MOROCCO:YC,ARABIC_OMAN:qC,ARABIC_QATAR:XC,ARABIC_SAUDI_ARABIA:ZC,ARABIC_SYRIA:QC,ARABIC_TUNISIA:JC,ARABIC_YEMEN:eO,AZERI_LATIN:tO,AZERI_LATIN_AZERBAIJAN:nO,BELARUSIAN:rO,BELARUSIAN_BELARUS:oO,BULGARIAN:iO,BULGARIAN_BULGARIA:aO,BOSNIAN:sO,BOSNIAN_BOSNIA_AND_HERZEGOVINA:lO,CATALAN:cO,CATALAN_SPAIN:uO,CZECH:dO,CZECH_CZECH_REPUBLIC:fO,WELSH:pO,WELSH_UNITED_KINGDOM:hO,DANISH:mO,DANISH_DENMARK:vO,GERMAN:yO,GERMAN_AUSTRIA:gO,GERMAN_SWITZERLAND:xO,GERMAN_GERMANY:bO,GERMAN_LIECHTENSTEIN:wO,GERMAN_LUXEMBOURG:SO,DIVEHI:AO,DIVEHI_MALDIVES:EO,GREEK:NO,GREEK_GREECE:_O,ENGLISH:jO,ENGLISH_AUSTRALIA:CO,ENGLISH_BELIZE:OO,ENGLISH_CANADA:TO,ENGLISH_CARIBBEAN:PO,ENGLISH_UNITED_KINGDOM:IO,ENGLISH_IRELAND:RO,ENGLISH_JAMAICA:kO,ENGLISH_NEW_ZEALAND:MO,ENGLISH_PHILIPPINES:DO,ENGLISH_TRINIDAD_AND_TOBAGO:$O,ENGLISH_UNITED_STATES:LO,ENGLISH_SOUTH_AFRICA:FO,ENGLISH_ZIMBABWE:BO,ESPERANTO:UO,SPANISH:HO,SPANISH_ARGENTINA:zO,SPANISH_BOLIVIA:WO,SPANISH_CHILE:GO,SPANISH_COLOMBIA:VO,SPANISH_COSTA_RICA:KO,SPANISH_DOMINICAN_REPUBLIC:YO,SPANISH_ECUADOR:qO,SPANISH_SPAIN:XO,SPANISH_GUATEMALA:ZO,SPANISH_HONDURAS:QO,SPANISH_MEXICO:JO,SPANISH_NICARAGUA:eT,SPANISH_PANAMA:tT,SPANISH_PERU:nT,SPANISH_PUERTO_RICO:rT,SPANISH_PARAGUAY:oT,SPANISH_EL_SALVADOR:iT,SPANISH_URUGUAY:aT,SPANISH_VENEZUELA:sT,ESTONIAN:lT,ESTONIAN_ESTONIA:cT,BASQUE:uT,BASQUE_SPAIN:dT,FARSI:fT,FARSI_IRAN:pT,FINNISH:hT,FINNISH_FINLAND:mT,FAROESE:vT,FAROESE_FAROE_ISLANDS:yT,FRENCH:gT,FRENCH_BELGIUM:xT,FRENCH_CANADA:bT,FRENCH_SWITZERLAND:wT,FRENCH_FRANCE:ST,FRENCH_LUXEMBOURG:AT,FRENCH_PRINCIPALITY_OF_MONACO:ET,IRISH:NT,IRISH_IRELAND:_T,SCOTTISH_GAELIC:jT,SCOTTISH_GAELIC_UNITED_KINGDOM:CT,GALICIAN:OT,GALICIAN_SPAIN:TT,GUJARATI:PT,GUJARATI_INDIA:IT,HEBREW:RT,HEBREW_ISRAEL:kT,HINDI:MT,HINDI_INDIA:DT,CROATIAN:$T,CROATIAN_BOSNIA_AND_HERZEGOVINA:LT,CROATIAN_CROATIA:FT,HUNGARIAN:BT,HUNGARIAN_HUNGARY:UT,ARMENIAN:HT,ARMENIAN_ARMENIA:zT,INDONESIAN:WT,INDONESIAN_INDONESIA:GT,ICELANDIC:VT,ICELANDIC_ICELAND:KT,ITALIAN:YT,ITALIAN_SWITZERLAND:qT,ITALIAN_ITALY:XT,JAPANESE:ZT,JAPANESE_JAPAN:QT,GEORGIAN:JT,GEORGIAN_GEORGIA:eP,KAZAKH:tP,KAZAKH_KAZAKHSTAN:nP,KANNADA:rP,KANNADA_INDIA:oP,KOREAN:iP,KOREAN_KOREA:aP,KONKANI:sP,KONKANI_INDIA:lP,KURDISH:cP,KURDISH_TURKEY:uP,KYRGYZ:dP,KYRGYZ_KYRGYZSTAN:fP,LITHUANIAN:pP,LITHUANIAN_LITHUANIA:hP,LATVIAN:mP,LATVIAN_LATVIA:vP,MAORI:yP,MAORI_NEW_ZEALAND:gP,FYRO_MACEDONIAN:xP,FYRO_MACEDONIAN_MACEDONIA:bP,MONGOLIAN:wP,MONGOLIAN_MONGOLIA:SP,MARATHI:AP,MARATHI_INDIA:EP,MALAY:NP,MALAY_BRUNEI_DARUSSALAM:_P,MALAY_MALAYSIA:jP,MALTESE:CP,MALTESE_MALTA:OP,MALAYALAM:TP,MALAYALAM_INDIA:PP,NORWEGIAN:IP,NORWEGIAN_BOKMAL:RP,NORWEGIAN_BOKMAL_NORWAY:kP,DUTCH:MP,DUTCH_BELGIUM:DP,DUTCH_NETHERLANDS:$P,NORWEGIAN_NYNORSK:LP,NORWEGIAN_NYNORSK_NORWAY:FP,NORTHERN_SOTHO:BP,NORTHERN_SOTHO_SOUTH_AFRICA:UP,PUNJABI:HP,PUNJABI_INDIA:zP,POLISH:WP,POLISH_POLAND:GP,PASHTO:VP,PASHTO_AFGHANISTAN:KP,PORTUGUESE:YP,PORTUGUESE_BRAZIL:qP,PORTUGUESE_PORTUGAL:XP,QUECHUA:ZP,QUECHUA_BOLIVIA:QP,QUECHUA_ECUADOR:JP,QUECHUA_PERU:eI,ROMANIAN:tI,ROMANIAN_ROMANIA:nI,ROMANIAN_MOLDOVA:rI,ROMANSH:oI,ROMANSH_SWITZERLAND:iI,RUSSIAN:aI,RUSSIAN_RUSSIA:sI,RUSSIAN_MOLDOVA:lI,SANSKRIT:cI,SANSKRIT_INDIA:uI,SAMI_NORTHERN:dI,SAMI_NORTHERN_FINLAND:fI,SAMI_NORTHERN_NORWAY:pI,SAMI_NORTHERN_SWEDEN:hI,UPPER_SORBIAN:mI,UPPER_SORBIAN_GERMANY:vI,LOWER_SORBIAN:yI,LOWER_SORBIAN_GERMANY:gI,SLOVAK:xI,SLOVAK_SLOVAKIA:bI,SLOVENIAN:wI,SLOVENIAN_SLOVENIA:SI,ALBANIAN:AI,ALBANIAN_ALBANIA:EI,SERBIAN_LATIN:NI,SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:_I,SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:jI,SWEDISH:CI,SWEDISH_FINLAND:OI,SWEDISH_SWEDEN:TI,SWAHILI:PI,SWAHILI_KENYA:II,SYRIAC:RI,SYRIAC_SYRIA:kI,TAMIL:MI,TAMIL_INDIA:DI,TELUGU:$I,TELUGU_INDIA:LI,THAI:FI,THAI_THAILAND:BI,TAGALOG:UI,TAGALOG_PHILIPPINES:HI,TSWANA:zI,TSWANA_SOUTH_AFRICA:WI,TURKISH:GI,TURKISH_TURKEY:VI,TATAR:KI,TATAR_RUSSIA:YI,TSOGA:qI,UKRAINIAN:XI,UKRAINIAN_UKRAINE:ZI,URDU:QI,URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:JI,UZBEK_LATIN:eR,UZBEK_LATIN_UZBEKISTAN:tR,VIETNAMESE:nR,VIETNAMESE_VIET_NAM:rR,VENDA:oR,VENDA_SOUTH_AFRICA:iR,XHOSA:aR,XHOSA_SOUTH_AFRICA:sR,CHINESE:lR,CHINESE_SIMPLIFIED:cR,CHINESE_SIMPLIFIED_CHINA:uR,CHINESE_HONG_KONG:dR,CHINESE_MACAU:fR,CHINESE_SINGAPORE:pR,CHINESE_TRADITIONAL:hR,ZULU:mR,ZULU_SOUTH_AFRICA:vR,BENGALI:yR,BENGALI_BANGLADESH:gR,BENGALI_INDIA:xR,BENGALI_MYANMAR:bR,BURMESE:wR,BURMESE_MYANMAR:SR,KHMER:AR,KHMER_CAMBODIA:ER,LAO:NR,LAO_LAOS:_R,YORUBA:jR,YORUBA_NIGERIA:CR,YIDDISH:OR,YIDDISH_WORLD:TR,AMHARIC:PR,AMHARIC_ETHIOPIA:IR,NEPALI:RR,NEPALI_NEPAL:kR,SINHALA:MR,SINHALA_SRI_LANKA:DR,SERBIAN_CYRILLIC:$R,SERBIAN_CYRILLIC_SERBIA:LR,SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA:FR,ENGLISH_INDIA:BR,ENGLISH_SINGAPORE:UR,ENGLISH_HONG_KONG:HR,ENGLISH_NIGERIA:zR,ENGLISH_PAKISTAN:WR,ENGLISH_MALAYSIA:GR,ENGLISH_BOTSWANA:VR,ENGLISH_KENYA:KR,ENGLISH_TANZANIA:YR,ENGLISH_GHANA:qR,ENGLISH_UGANDA:XR,SPANISH_CUBA:ZR,SPANISH_UNITED_STATES:QR,PORTUGUESE_GUINEA_BISSAU:JR,PORTUGUESE_MOZAMBIQUE:ek,PORTUGUESE_SAO_TOME_AND_PRINCIPE:tk,PORTUGUESE_CAPE_VERDE:nk,PORTUGUESE_TIMOR_LESTE:rk,PORTUGUESE_MACAU:ok,CHINESE_TAIWAN:ik,ARABIC_MAURITANIA:ak,ARABIC_PALESTINE:sk,ARABIC_SUDAN:lk,ARABIC_DJIBOUTI:ck,ARABIC_SOMALIA:uk,ARABIC_CHAD:dk,ARABIC_COMOROS:fk};let ue=function(e){return e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Gender="gender",e.Null="null",e.Unknown="unknown",e}({});var xz=Fi({DEFAULT_LOCALE:()=>Sz,LOCALES:()=>bz,REQUIRED_LOCALES:()=>wz,STRICT_MODE:()=>Az});const bz=[br.ENGLISH],wz=[],Sz=br.ENGLISH,Az="inclusive";var Ez=Fi({MODE:()=>Nz,PREFIX:()=>_z});const Nz="default",_z=`${_S.GREY_DARK}[intlayer] ${_S.RESET}`;var jz=Fi({BASE_PATH:()=>Pz,COOKIE_NAME:()=>Oz,HEADER_NAME:()=>Cz,LOCALE_STORAGE_NAME:()=>Tz,ROUTING_MODE:()=>Rz,SERVER_SET_COOKIE:()=>Iz,STORAGE:()=>kz});const Cz="x-intlayer-locale",Oz="INTLAYER_LOCALE",Tz="INTLAYER_LOCALE",Pz="",Iz="always",Rz="prefix-no-default",kz=["cookie","header"];var o0=Fi({Build:()=>M5,Content:()=>H5,Editor:()=>az,Internationalization:()=>xz,Log:()=>Ez,Routing:()=>jz});const jS=e=>{const{name:t,path:n,expires:r,domain:o,secure:i,sameSite:a,httpOnly:s}=e??{};return{name:t??o0.Routing.COOKIE_NAME,attributes:{path:n,expires:r,domain:o,secure:i,sameSite:a,httpOnly:s}}},Vs=e=>{const{name:t}=e??{};return{name:t??o0.Routing.LOCALE_STORAGE_NAME}},CS=e=>{const{name:t}=e??{};return{name:t??o0.Routing.HEADER_NAME}},Mz=e=>e.type==="cookie"||"sameSite"in e||"httpOnly"in e||"secure"in e,Dz=e=>e==="cookie"||e==="localStorage"||e==="sessionStorage"||e==="header",OS=e=>{if(typeof e=="string"){if(!Dz(e))return{cookies:[],localStorage:[],sessionStorage:[],headers:[]};if(e==="cookie")return{cookies:[jS()]};if(e==="localStorage")return{localStorage:[Vs()]};if(e==="sessionStorage")return{sessionStorage:[Vs()]};if(e==="header")return{headers:[CS()]}}if(typeof e=="object"&&e!==null){const t=e;if(Mz(t))return{cookies:[jS(t)]};if("type"in t&&t.type==="localStorage"){const{name:o,...i}=t;return{localStorage:[Vs({name:o,...i})]}}if("type"in t&&t.type==="sessionStorage"){const{name:o,...i}=t;return{sessionStorage:[Vs({name:o,...i})]}}if("type"in t&&t.type==="header"){const{name:o,...i}=t;return{headers:[CS({name:o,...i})]}}const{name:n,...r}=t;return{localStorage:[Vs({name:n,...r})]}}return{cookies:[],localStorage:[],sessionStorage:[],headers:[]}},TS=(e,t)=>({cookies:[...e.cookies,...t.cookies??[]],localStorage:[...e.localStorage,...t.localStorage??[]],sessionStorage:[...e.sessionStorage,...t.sessionStorage??[]],headers:[...e.headers,...t.headers??[]]}),pk=e=>{const t={cookies:[],localStorage:[],sessionStorage:[],headers:[]};return e===!1||e===void 0?t:Array.isArray(e)?e.reduce((n,r)=>TS(n,OS(r)),t):TS(t,OS(e))},$z=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},gd=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(o,i)=>gd(o,i));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,o)=>gd(r,{...t,children:r,keyPath:[...t.keyPath,{type:ue.Array,key:o}]}));const n={};for(const r in e){const o={...t,children:e[r],keyPath:[...t.keyPath,{type:ue.Object,key:r}]};n[r]=gd(e[r],o)}return n},Lz=(e,t)=>{const n=Object.keys(e);for(const r of n){const o=!r.startsWith(">")&&!r.startsWith("<")&&!r.startsWith("=")&&parseFloat(r)===t||r.startsWith("=")&&parseFloat(r.slice(1))===t,i=r.startsWith(">")&&t>parseFloat(r.slice(1)),a=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),s=r.startsWith("<")&&t<parseFloat(r.slice(1)),c=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(o||i||a||s||c)return r}},Fz=(e,t)=>e[Lz(e,t)??"fallback"],Bz=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),Uz={locales:["en","ko"],requiredLocales:["en","ko"],strictMode:"inclusive",defaultLocale:"en"},Hz={mode:"prefix-no-default",storage:["cookie","header"],basePath:""},zz={fileExtensions:[".content.ts",".content.tsx"],baseDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend",excludedPath:["**/node_modules/**","**/dist/**","**/build/**","**/.intlayer/**","**/.next/**","**/.nuxt/**","**/.expo/**","**/.vercel/**","**/.turbo/**","**/.tanstack/**"],watch:!0,contentDir:["/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/src"],moduleAugmentationDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/types",unmergedDictionariesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/unmerged_dictionary",remoteDictionariesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/remote_dictionary",dictionariesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/dictionary",dynamicDictionariesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/dynamic_dictionary",fetchDictionariesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/fetch_dictionary",typesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/types",mainDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/main",configDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/config",cacheDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/cache",watchedFilesPattern:["/**/*.content.ts","/**/*.content.tsx"],watchedFilesPatternWithPath:["/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/src/**/*.content.ts","/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/src/**/*.content.tsx"],outputFilesPatternWithPath:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/dictionary/**/*.json"},Wz={applicationURL:"",editorURL:"http://localhost:8000",cmsURL:"https://app.intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",liveSync:!0,liveSyncPort:4e3,liveSyncURL:"http://localhost:4000"},Gz={mode:"default",prefix:"\x1B[38;5;239m[intlayer] \x1B[0m"},Vz={},Kz={mode:"auto",importMode:"static",traversePattern:["**/*.{tsx,ts,js,mjs,cjs,jsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"],outputFormat:["cjs","esm"],cache:!0},Yz={enabled:!0,transformPattern:["**/*.{ts,tsx,jsx,js,cjs,mjs,mjx,cjx,svelte,vue}"],excludePattern:["**/node_modules/**","**/dist/**","**/.next/**","**/.nuxt/**","**/.expo/**","**/.vercel/**","**/.turbo/**","**/.tanstack/**","**/*.stories.ts","**/*.test.ts"],outputDir:"./compiler"},qz={fill:!0},Xz={name:"Intlayer",version:"7.5.10",doc:"https://intlayer.org/docs"},Le={internationalization:Uz,routing:Hz,content:zz,editor:Wz,log:Gz,ai:Vz,build:Kz,compiler:Yz,dictionary:qz,metadata:Xz},Zz={},Qz=()=>Zz,hk=(e="")=>new Proxy(()=>e,{get:(t,n)=>{if(n==="toJSON"||n===Symbol.toPrimitive||n==="toString")return()=>e;if(n!=="then")return hk(e?`${e}.${String(n)}`:String(n))},apply:()=>e}),mk=(e,t,n)=>{const r=Qz()[e];return r?s8(r,t,n):(R5(Le)(`Dictionary "${e}" was not found. Using fallback proxy.`,{level:"warn",isVerbose:!0}),hk(e))},Jz=(e,t,n)=>{const r=mk(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const o=t.split(".");let i=r;for(const a of o)if(i=i==null?void 0:i[a],i===void 0)return r;return i}return r},dy=e=>{if(e===null||typeof e!="object"||e instanceof Promise||typeof e.then=="function"||e.$$typeof!==void 0)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Array.isArray(e)},vk=(e,t)=>{if(e===void 0)return t;if(t===void 0||Array.isArray(e))return e;if(dy(e)&&dy(t)){const n={...e};for(const r of Object.keys(t))r==="__proto__"||r==="constructor"||(Object.hasOwn(e,r)?n[r]=vk(e[r],t[r]):n[r]=t[r]);return n}return e},fy=(e,t=new WeakSet)=>{if(typeof e!="object"||e===null||t.has(e)||(t.add(e),!dy(e)))return e;if(Array.isArray(e))return e.map(r=>fy(r,t));const n={};for(const[r,o]of Object.entries(e))o!==void 0&&(n[r]=fy(o,t));return n},e8=(e,t,n)=>{const r=[],o=s=>e[s],i=o(t);if(typeof i=="string")return i;if(i!==void 0&&r.push(i),t.includes("-")){const s=t.split("-")[0];if(s in e){const c=o(s);if(typeof c=="string"){if(r.length===0)return c}else c!==void 0&&r.push(c)}}if(n!==void 0&&n!==t){if(n in e){const s=o(n);if(typeof s=="string"){if(r.length===0)return s}else s!==void 0&&r.push(s)}if(n.includes("-")){const s=n.split("-")[0];if(s!==t.split("-")[0]&&s in e){const c=o(s);if(typeof c=="string"){if(r.length===0)return c}else c!==void 0&&r.push(c)}}}if(r.length===0)return;const a=r.map(s=>fy(s));return a.length===1||Array.isArray(a[0])?a[0]:a.reduce((s,c)=>vk(s,c))},t8=(e,t,n)=>({id:"translation-plugin",canHandle:r=>typeof r=="object"&&(r==null?void 0:r.nodeType)===ue.Translation,transform:(r,o,i)=>{const a=structuredClone(r[ue.Translation]);for(const s in a){const c={...o,children:a[s],keyPath:[...o.keyPath,{type:ue.Translation,key:s}]};a[s]=i(a[s],c)}return e8(a,e,t)}}),n8={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===ue.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[ue.Enumeration]);for(const o in r){const i=r[o];r[o]=n(i,{...t,children:i,keyPath:[...t.keyPath,{type:ue.Enumeration,key:o}]})}return o=>Fz(r,o)}},r8={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===ue.Condition,transform:(e,t,n)=>{const r=structuredClone(e[ue.Condition]);for(const o in r){const i=r[o];r[o]=n(i,{...t,children:i,keyPath:[...t.keyPath,{type:ue.Condition,key:o}]})}return o=>$z(r,o)}},o8={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===ue.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:ue.Insertion}],o=e[ue.Insertion];return n(o,{...t,children:o,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:a=>typeof a=="string",transform:(a,s,c)=>{const u=c(a,{...s,children:a,plugins:[...(t.plugins??[]).filter(f=>f.id!=="intlayer-node-plugin")]});return f=>{const d=Bz(u,f);return c(d,{...s,plugins:t.plugins,children:d})}}},...t.plugins??[]]})}},i8=e=>({id:"nested-plugin",canHandle:t=>typeof t=="object"&&(t==null?void 0:t.nodeType)===ue.Nested,transform:(t,n)=>Jz(t.nested.dictionaryKey,t.nested.path,{...n,locale:e??n.locale})}),a8={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===ue.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},i0=(e,t,n)=>{var i;const r=(i=Le==null?void 0:Le.internationalization)==null?void 0:i.defaultLocale,o=[o8,t8(n??r,r),n8,r8,i8(n??r),a8,...t.plugins??[]];return gd(e,{...t,plugins:o})},s8=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return i0(e.content,r,t)},l8=e=>{const t=e.trim();if(!t)return null;let n=0;const r=S=>S===" "||S===`
68
+ `||S===" "||S==="\r",o=()=>t[n],i=()=>t[n++],a=()=>n>=t.length,s=()=>{for(;!a()&&r(o());)n++},c=S=>{i();let N="";for(;!a();){const _=i();if(_===S)return N;if(_==="\\"&&!a()){const O=i();N+=O}else N+=_}throw new SyntaxError("Unterminated string")},u=(S,N)=>!!S&&N.includes(S),f=S=>{let N="";for(;!a()&&!u(o(),S);)N+=i();return N.trim()},d=S=>S==="true"||S==="false"||S==="null"||S==="undefined"||S==="yes"||S==="no"||S==="on"||S==="off"||S==="NaN"||S==="Infinity"||S==="-Infinity"||/^0x[0-9a-fA-F]+$/.test(S)||/^#/.test(S)?S:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?$/i.test(S)?S==="3.14159265359"?Math.PI:Number(S):S,p=S=>{if(s(),a())throw new SyntaxError("Unexpected end of input");const N=o();if(N==="[")return m();if(N==="{")return w();if(N==='"'||N==="'")return c(N);const _=f(S);if(_==="")throw new SyntaxError("Empty token");return d(_)},m=()=>{i();const S=[];if(s(),o()==="]")return i(),S;for(;;){s(),S.push(p([",","]"])),s();const N=i();if(N==="]")break;if(N!==",")throw new SyntaxError("Expected ',' or ']' after array element");if(s(),o()==="]")throw new SyntaxError("Trailing comma in array")}return S},b=()=>{if(i(),s(),o()==="{")return w();const S=o();if(S==='"'||S==="'")return c(S);let N=!1,_=n;for(;_<t.length&&t[_]!==`
69
+ `;){if(t[_]===":"&&_+1<t.length&&t[_+1]===" "){N=!0;break}_++}return N?y():d(f([`
70
+ `]))},y=()=>{const S={},N=v();for(;!a();){const _=n,O=t[_-1];s();const T=v();if((_===0||O===`
71
+ `)&&T<=N){n=_;break}const j=o();if(j==="-"||a()){n=_;break}let I="";if(j==='"'||j==="'")I=c(j);else{for(;!a()&&o()!==":";)I+=i();I=I.trim()}if(a()||i()!==":")break;if(s(),o()===`
72
+ `&&(i(),s(),o()==="-")){S[I]=x();continue}S[I]=d(f([`
73
+ `])),o()===`
74
+ `&&i()}return S},v=()=>{let S=0,N=n;for(;N>0&&t[N-1]!==`
75
+ `;)N--;for(;N<t.length&&t[N]===" ";)S++,N++;return S},x=()=>{const S=[],N=v();for(;!a();){for(;!a()&&r(o())&&(i(),o()!=="-"););if(a()||v()<N||o()!=="-")break;S.push(b())}return S},g=S=>{const N={};for(s();;){if(s(),a()||u(o(),S))return N;let _="";const O=o();if(O==='"'||O==="'")_=c(O);else{for(;!a();){const j=o();if(j===":"||j===`
76
+ `)break;if(u(j,S))throw new SyntaxError("Expected ':' in object entry");_+=i()}_=_.trim()}if(!_)return N;if(a()||i()!==":")throw new SyntaxError("Expected ':' after key");for(!a()&&o()===" "&&i();!a()&&(o()===" "||o()===" ");)i();if(a())return N[_]="",N;if(o()===`
77
+ `){i();const j=n;if(s(),o()==="-"){N[_]=x(),s();continue}else{if(n=j,s(),!a()){const I=o();if(I&&!u(I,S)&&I!=="-"){N[_]="";continue}}return N[_]="",N}}if(N[_]=p(S.includes("}")?[",",`
78
+ `,...S]:[`
79
+ `,...S]),a())return N;let T=o();if(T===","){i(),s();continue}if(T===`
80
+ `){i(),s();continue}if(T===" "||T===" "){for(;!a()&&(o()===" "||o()===" ");)i();if(T=o(),T===`
81
+ `){i(),s();continue}if(a()||u(T,S))return N;continue}if(u(T,S))return N;if(a())return N}},w=()=>{if(i(),s(),o()==="}")return i(),{};const S=g(["}"]);if(o()!=="}")throw new SyntaxError("Expected '}' at end of object");return i(),S},E=S=>{let N=0,_=0,O=null;for(;N<S.length;){const T=S[N];if(O){if(T==="\\"&&N+1<S.length){N+=2;continue}if(T===O){O=null,N++;continue}N++;continue}if(T==='"'||T==="'"){O=T,N++;continue}if(T==="["||T==="{"){_++,N++;continue}if(T==="]"||T==="}"){_=Math.max(0,_-1),N++;continue}if(_===0&&T===":"){const j=S[N+1];if(j===" "||j===`
82
+ `||j===void 0)return!0}N++}return!1};if(t.startsWith("]")||t.startsWith("}"))throw new SyntaxError("Unexpected closing bracket");if(t.startsWith("[")){const S=m();if(s(),!a())throw new SyntaxError("Unexpected trailing characters");return S}if(t.startsWith("{")){const S=w();if(s(),!a())throw new SyntaxError("Unexpected trailing characters");return S}if(E(t)){const S=g([]);if(s(),!a())throw new SyntaxError("Unexpected trailing characters");return S}const A=p([]);if(s(),!a())throw new SyntaxError("Unexpected trailing characters");return A},yk=e=>{try{const t=e.split(/\r?\n/),n=t.find(o=>o.trim()!=="");if(!n||n.trim()!=="---")return{};let r=-1;for(let o=1;o<t.length;o++)if(t[o].trim()==="---"){r=o;break}return r===-1?{}:l8(t.slice(1,r).join(`
83
+ `))??{}}catch{return{}}},PS=(e,t,n)=>{let r=e,o=null,i=[];if(t.length===0)return n;try{for(let a=0;a<t.length;a++){const s=t[a];if(o=r,(s.type===ue.Object||s.type===ue.Array)&&(i=[s.key],(!r[s.key]||typeof r[s.key]!="object")&&(r[s.key]={}),r=r[s.key]),(s.type===ue.Translation||s.type===ue.Enumeration)&&(i=[s.type,s.key],(!r[s.type]||typeof r[s.type]!="object")&&(r[s.type]={}),(!r[s.type][s.key]||typeof r[s.type][s.key]!="object")&&(r[s.type][s.key]={}),r=r[s.type][s.key]),(s.type===ue.Enumeration||s.type===ue.Condition)&&s.type!==ue.Enumeration&&(i=[s.type,s.key],r=r[s.type][s.key]),(s.type===ue.Markdown||s.type===ue.Insertion)&&(i=[s.type],(!r[s.type]||typeof r[s.type]!="object")&&(r[s.type]=""),r=r[s.type]),s.type===ue.File&&(i=["content"],r=r.content),a===t.length-1&&o&&i.length>0){let c=o;for(const f of i.slice(0,-1))c=c[f];const u=i[i.length-1];if(typeof n>"u")if(Array.isArray(c)){const f=Number(u);!isNaN(f)&&f>=0&&f<c.length&&c.splice(f,1)}else delete c[u];else c[u]=n}}return e}catch(a){return console.error("Cannot edit dictionary by key path",{dictionaryContent:e,keyPath:t,newValue:n},a),e}},cl=(e,t,n)=>{var o,i;let r=structuredClone(e);for(const a of t)n&&(r==null?void 0:r.nodeType)===ue.Translation&&(r=(o=r==null?void 0:r[ue.Translation])==null?void 0:o[n]),(a.type===ue.Object||a.type===ue.Array)&&(r=r==null?void 0:r[a.key]),(a.type===ue.Translation||a.type===ue.Condition||a.type===ue.Enumeration)&&(r=(i=r==null?void 0:r[a.type])==null?void 0:i[a.key]),(a.type===ue.Markdown||a.type===ue.Insertion||a.type===ue.File)&&(r=r==null?void 0:r[a.type]);return r},c8=(e,t,n)=>{let r=e,o=null,i=null;for(const a of n)o=r,(a.type===ue.Object||a.type===ue.Array)&&(i=a.key,r=r[a.key]),(a.type===ue.Translation||a.type===ue.Enumeration||a.type===ue.Condition)&&(i=a.type,r=r[a.type][a.key]),(a.type===ue.Markdown||a.type===ue.ReactNode||a.type===ue.Insertion||a.type===ue.File)&&(i=a.type,r=r[a.type]);if(o&&i!==null)if(Array.isArray(o))o[i]=r;else{const a={};for(const s of Object.keys(o))s===i&&typeof t<"u"?a[t]=r:a[s]=o[s];Object.keys(o).forEach(s=>{delete o[s]}),Object.assign(o,a)}return e},u8=(e,t=(r=>(r=Le==null?void 0:Le.internationalization)==null?void 0:r.locales)(),n=(o=>(o=Le==null?void 0:Le.internationalization)==null?void 0:o.defaultLocale)())=>{const i=[e].flat(),a=s=>s.trim().toLowerCase();try{for(const s of i){const c=a(s),u=t.find(p=>a(p)===c);if(u)return u;const[f]=c.split("-"),d=t.find(p=>a(p).split("-")[0]===f);if(d)return d}}catch{}return n},d8=(e,t)=>{try{const n=t??(typeof document<"u"?document.cookie:"");if(!n)return;const r=n.split(";");for(let o=0;o<r.length;o++){const i=r[o].trim();if(!i)continue;const a=i.indexOf("=");if((a>=0?i.substring(0,a):i)===e){const s=a>=0?i.substring(a+1):"";try{return decodeURIComponent(s)}catch{return s}}}}catch{}},f8=(e,t,n)=>{const r=[`${e}=${encodeURIComponent(t)}`];return n.path&&r.push(`Path=${n.path}`),n.domain&&r.push(`Domain=${n.domain}`),n.expires instanceof Date&&r.push(`Expires=${n.expires.toUTCString()}`),n.secure&&r.push("Secure"),n.sameSite&&r.push(`SameSite=${n.sameSite}`),r.join("; ")},p8=e=>{var c,u,f;const{routing:t,internationalization:n}=Le,{locales:r}=n,{storage:o}=t;if(o===!1||(e==null?void 0:e.isCookieEnabled)===!1)return;const i=pk(o),a=d=>d?r.includes(d):!1,s=d=>{var p;try{const m=(p=e==null?void 0:e.getCookie)==null?void 0:p.call(e,d);if(m!=null)return m}catch{}return d8(d)};for(let d=0;d<i.cookies.length;d++){const{name:p}=i.cookies[d],m=s(p);if(a(m))return m}for(let d=0;d<i.localStorage.length;d++){const{name:p}=i.localStorage[d];try{const m=(c=e==null?void 0:e.getLocaleStorage)==null?void 0:c.call(e,p);if(a(m))return m}catch{}}for(let d=0;d<i.sessionStorage.length;d++){const{name:p}=i.sessionStorage[d];try{const m=(u=e==null?void 0:e.getSessionStorage)==null?void 0:u.call(e,p);if(a(m))return m}catch{}}for(let d=0;d<i.headers.length;d++){const{name:p}=i.headers[d];try{const m=(f=e==null?void 0:e.getHeader)==null?void 0:f.call(e,p);if(a(m))return m}catch{}}},h8=(e,t)=>{var r,o,i,a,s,c,u;if(Le.routing.storage===!1||(t==null?void 0:t.isCookieEnabled)===!1)return;const n=pk(Le.routing.storage);for(let f=0;f<n.cookies.length;f++){const{name:d,attributes:p}=n.cookies[f];try{t!=null&&t.setCookieStore&&((r=t==null?void 0:t.setCookieStore)==null||r.call(t,d,e,{...p,expires:p.expires instanceof Date?p.expires.getTime():p.expires}))}catch{try{if(t!=null&&t.setCookieString){const m=f8(d,e,p);(o=t==null?void 0:t.setCookieString)==null||o.call(t,d,m)}}catch{}}}if(t!=null&&t.setLocaleStorage)for(let f=0;f<n.localStorage.length;f++){const{name:d}=n.localStorage[f];try{if(!((t==null?void 0:t.overwrite)??!0)&&(t!=null&&t.getLocaleStorage)&&(i=t==null?void 0:t.getLocaleStorage)!=null&&i.call(t,d))continue;(a=t==null?void 0:t.setLocaleStorage)==null||a.call(t,d,e)}catch{}}if(t!=null&&t.setSessionStorage)for(let f=0;f<n.sessionStorage.length;f++){const{name:d}=n.sessionStorage[f];try{if(!((t==null?void 0:t.overwrite)??!0)&&(t!=null&&t.getSessionStorage)&&(s=t==null?void 0:t.getSessionStorage)!=null&&s.call(t,d))continue;(c=t==null?void 0:t.setSessionStorage)==null||c.call(t,d,e)}catch{}}if(t!=null&&t.setHeader)for(let f=0;f<n.headers.length;f++){const{name:d}=n.headers[f];try{(u=t==null?void 0:t.setHeader)==null||u.call(t,d,e)}catch{}}},gk={getCookie:e=>{var t;return(t=document.cookie.split(";").find(n=>n.trim().startsWith(`${e}=`)))==null?void 0:t.split("=")[1]},getLocaleStorage:e=>localStorage.getItem(e),getSessionStorage:e=>sessionStorage.getItem(e),isCookieEnabled:!0,setCookieStore:(e,t,n)=>cookieStore.set({name:e,value:t,path:n.path,domain:n.domain,expires:n.expires,sameSite:n.sameSite}),setCookieString:e=>{document.cookie=e},setSessionStorage:(e,t)=>sessionStorage.setItem(e,t),setLocaleStorage:(e,t)=>localStorage.setItem(e,t)},m8=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),xk=p8(gk),bk=(e,t)=>h8(e,{...gk,isCookieEnabled:t}),v8=()=>Math.random().toString(36).slice(2),{editor:_r}=Le??{},wk=h.createContext({postMessage:()=>null,allowedOrigins:[_r==null?void 0:_r.applicationURL,_r==null?void 0:_r.editorURL,_r==null?void 0:_r.cmsURL],senderId:""}),IS=({children:e,allowedOrigins:t,postMessage:n})=>{const r=h.useRef(v8()),o=h.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return l.jsx(wk.Provider,{value:o,children:e})},a0=()=>h.useContext(wk),y8=(e,t)=>{try{const n=new URL(e),r=new URL(t);if(n.protocol!==r.protocol||n.hostname!==r.hostname||n.port!==r.port)return!1;const o=n.pathname.replace(/\/$/,""),i=r.pathname.replace(/\/$/,"");return!(o!==""&&i!==""&&o!==i)}catch(n){return console.error("Invalid URL(s)",n,{url1:e,url2:t}),!1}};let kn=function(e){return e.INTLAYER_CONFIGURATION="INTLAYER_CONFIGURATION",e.INTLAYER_CURRENT_LOCALE="INTLAYER_CURRENT_LOCALE",e.INTLAYER_EDITOR_ENABLED="INTLAYER_EDITOR_ENABLED",e.INTLAYER_URL_CHANGE="INTLAYER_URL_CHANGE",e.INTLAYER_HOVERED_CONTENT_CHANGED="INTLAYER_HOVERED_CONTENT_CHANGED",e.INTLAYER_FOCUSED_CONTENT_CHANGED="INTLAYER_FOCUSED_CONTENT_CHANGED",e.INTLAYER_LOCALE_DICTIONARIES_CHANGED="INTLAYER_LOCALE_DICTIONARIES_CHANGED",e.INTLAYER_DISTANT_DICTIONARIES_CHANGED="INTLAYER_DISTANT_DICTIONARIES_CHANGED",e.INTLAYER_EDITED_CONTENT_CHANGED="INTLAYER_EDITED_CONTENT_CHANGED",e.INTLAYER_IFRAME_CLICKED="INTLAYER_IFRAME_CLICKED",e}({});const Zl=(e,t,n)=>{const{allowedOrigins:r,postMessage:o,senderId:i}=a0();return h.useEffect(()=>{if(t){const s=c=>{const{type:u,data:f,senderId:d}=c.data;u===e&&d!==i&&(typeof r>"u"||r!=null&&r.filter(p=>![null,void 0,"","*"].includes(p)).some(p=>y8(p,c.origin))||r!=null&&r.includes("*"))&&t(f)};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)}},[r,o,i,n]),s=>{o({type:e,data:s,senderId:i})}},g8=(e,t)=>typeof e=="function"?e(t):e,Bi=(e,t,n)=>{const{postMessage:r,senderId:o}=a0(),{emit:i,receive:a}=n??{emit:!0,receive:!0},s=(m,b)=>{const y=g8(m,b);return i&&typeof r=="function"&&typeof y<"u"&&r({type:`${e}/post`,data:y,senderId:o}),y},c=()=>{typeof r=="function"&&r({type:`${e}/post`,data:u,senderId:o})},[u,f]=h.useState(()=>s(t)),d=m=>f(b=>s(m,b));Zl(`${e}/post`,a?m=>{f(m)}:void 0);const p=(m,b)=>{i&&typeof r=="function"&&b!==o&&(typeof u>"u"||r({type:`${e}/post`,data:u,senderId:o}))};return Zl(`${e}/get`,i?p:void 0,u),h.useEffect(()=>{a&&typeof r=="function"&&typeof u>"u"&&r({type:`${e}/get`,senderId:o})},[]),[u,d,c]},x8=h.createContext(void 0),b8=({children:e,configuration:t})=>l.jsx(x8.Provider,{value:t,children:e}),Sk=h.createContext(void 0),Ak=h.createContext(void 0),w8=({children:e})=>{const[t,n]=Bi(kn.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=h.useMemo(()=>({localeDictionaries:t??{}}),[t]),o=h.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:i=>{i.localId&&n(a=>({...a,[i.localId]:i}))}}),[n]);return l.jsx(Sk.Provider,{value:r,children:l.jsx(Ak.Provider,{value:o,children:e})})},Ek=()=>h.useContext(Ak),S8=()=>{const e=Ek(),t=h.useContext(Sk);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},Nk=()=>{const[e]=Bi(kn.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1});return e},A8=h.createContext(void 0),E8=e=>Zl(`${kn.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),_k=h.createContext(void 0),RS=(e,t)=>typeof e=="function"?e(t):e,N8=({children:e})=>{const{localeDictionaries:t}=S8(),n=Nk(),[r,o]=Bi(kn.INTLAYER_EDITED_CONTENT_CHANGED),i=b=>{let y=RS(b);return o(v=>y.localId?(y=RS(b,v==null?void 0:v[y.localId]),{...v,[y.localId]:y}):(console.error("no localId",y),v)),y},a=(b,y)=>{o(v=>({...v,[b]:{...v==null?void 0:v[b],content:y}}))},s=(b,y,v=[],x=!0)=>{o(g=>{var N,_;const w=(N=t[b])==null?void 0:N.content,E=structuredClone(((_=g==null?void 0:g[b])==null?void 0:_.content)??w);let A=v;if(!x){let O=0;const T=v.slice(0,-1),j=v[v.length-1];let I=j.key;for(;typeof cl(E,A)<"u";)O++,I=O===0?j.key:`${j.key} (${O})`,A=[...T,{...j,key:I}]}const S=PS(E,A,y);return{...g,[b]:{...g==null?void 0:g[b],content:S}}})},c=(b,y,v=[])=>{o(x=>{var E,A;const g=(E=t[b])==null?void 0:E.content,w=c8(structuredClone(((A=x==null?void 0:x[b])==null?void 0:A.content)??g),y,v);return{...x,[b]:{...x==null?void 0:x[b],content:w}}})},u=(b,y)=>{o(v=>{var w,E;const x=(w=t[b])==null?void 0:w.content,g=PS(structuredClone(((E=v==null?void 0:v[b])==null?void 0:E.content)??x),y,cl(x,y));return{...v,[b]:{...v==null?void 0:v[b],content:g}}})},f=b=>{o(y=>{const v={...y};return delete v[b],v})},d=b=>{o(y=>Object.entries(y).reduce((v,[x,g])=>x===b?v:{...v,[x]:g},{}))},p=()=>{o({})},m=(b,y)=>{var g,w;if(!r)return;const v=y.filter(E=>E.type!==ue.Translation);if(b.includes(":local:")||b.includes(":remote:"))return cl(((g=r==null?void 0:r[b])==null?void 0:g.content)??{},v,n);const x=Object.keys(r).filter(E=>E.startsWith(`${b}:`));for(const E of x){const A=cl(((w=r==null?void 0:r[E])==null?void 0:w.content)??{},v,n);if(A)return A}};return l.jsx(A8.Provider,{value:{editedContent:r},children:l.jsx(_k.Provider,{value:{setEditedContentState:o,setEditedDictionary:i,setEditedContent:a,addEditedContent:s,renameEditedContent:c,removeEditedContent:u,restoreEditedContent:f,clearEditedDictionaryContent:d,clearEditedContent:p,getEditedContentValue:m},children:e})})},_8=()=>h.useContext(_k),jk=h.createContext({enabled:!1}),j8=e=>Bi(kn.INTLAYER_EDITOR_ENABLED,!1,e),C8=e=>Zl(`${kn.INTLAYER_EDITOR_ENABLED}/get`,e),O8=({children:e})=>{const[t]=j8({emit:!1,receive:!0});return l.jsx(jk.Provider,{value:{enabled:t},children:e})},s0=()=>h.useContext(jk),Ck=h.createContext(void 0),Ok=h.createContext(void 0),T8=({children:e})=>{const[t,n]=Bi(kn.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=o=>{n(i=>{if(!i)return i;const a=o.filter(s=>s.type!==ue.Translation);return{...i,keyPath:a}})};return l.jsx(Ck.Provider,{value:{focusedContent:t},children:l.jsx(Ok.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},P8=()=>{const e=h.useContext(Ok);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},I8=()=>{const e=P8(),t=h.useContext(Ck);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},kS=({children:e})=>{const t=E8();return h.useEffect(()=>{t()},[]),l.jsx(w8,{children:l.jsx(N8,{children:l.jsx(T8,{children:e})})})},R8=({children:e,fallback:t})=>{const n=C8(),{enabled:r}=s0();return h.useEffect(()=>{r||n()},[r]),r?e:t},k8=({children:e,fallback:t})=>{const[n,r]=h.useState(!1);return h.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},M8=({children:e,configuration:t,...n})=>l.jsx(O8,{children:l.jsx(b8,{configuration:t,children:n.mode==="editor"?l.jsx(IS,{...n,children:l.jsx(kS,{children:e})}):l.jsx(k8,{fallback:e,children:l.jsx(IS,{...n,children:l.jsx(R8,{fallback:e,children:l.jsx(kS,{children:e})})})})})}),D8=(e,t)=>Bi(kn.INTLAYER_URL_CHANGE,e,t),$8=e=>{const t=D8(e,{emit:!0,receive:!1}),[n,r]=t;return h.useEffect(()=>{const o=history.pushState,i=history.replaceState,a=c=>function(...u){c.apply(this,u),window.dispatchEvent(new Event("locationchange"))};history.pushState=a(o),history.replaceState=a(i);const s=()=>{r(window.location.pathname)};return window.addEventListener("locationchange",s),window.addEventListener("popstate",s),window.addEventListener("hashchange",s),window.addEventListener("load",s),s(),()=>{window.removeEventListener("locationchange",s),window.removeEventListener("popstate",s),window.removeEventListener("hashchange",s),window.removeEventListener("load",s),history.pushState=o,history.replaceState=i}},[]),t},L8=()=>{const e=Zl(kn.INTLAYER_IFRAME_CLICKED),t=()=>{e()};h.useEffect(()=>(window.addEventListener("mousedown",t),()=>window.removeEventListener("mousedown",t)),[e])},F8=()=>{$8(),L8();const{setLocaleDictionaries:e}=Ek();return h.useEffect(()=>{ZB(()=>import("./unmerged_dictionaries-CtpqQBm0.js"),[]).then(t=>{const n=t.getUnmergedDictionaries(),r=Object.fromEntries(Object.values(n).flat().map(o=>[o.localId,o]));e==null||e(r)})},[]),l.jsx(l.Fragment,{})},{editor:Mt}=Le??{},B8=()=>{const{enabled:e}=s0();return e?l.jsx(F8,{}):l.jsx(l.Fragment,{})},U8=({children:e})=>l.jsxs(M8,{postMessage:t=>{var n,r;typeof window>"u"||Mt&&window.self!==window.top&&(Mt.applicationURL.length>0&&(window==null||window.postMessage(t,Mt.applicationURL)),Mt.editorURL.length>0&&((n=window.parent)==null||n.postMessage(t,Mt.editorURL)),Mt.cmsURL.length>0&&((r=window.parent)==null||r.postMessage(t,Mt.cmsURL)))},allowedOrigins:[Mt==null?void 0:Mt.editorURL,Mt==null?void 0:Mt.cmsURL,Mt==null?void 0:Mt.applicationURL].filter(Boolean),mode:"client",configuration:Le,children:[l.jsx(B8,{}),e]});var d_;const Op=h.createContext({locale:xk??((d_=Le==null?void 0:Le.internationalization)==null?void 0:d_.defaultLocale),setLocale:()=>null,isCookieEnabled:!0,disableEditor:!1}),H8=()=>h.useContext(Op),z8=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:o,isCookieEnabled:i})=>{const{internationalization:a}=Le??{},{defaultLocale:s,locales:c}=a??{},u=e??xk??t??s,[f,d]=Bi(kn.INTLAYER_CURRENT_LOCALE,u),m=r??(y=>{if(f.toString()!==y.toString()){if(!(c!=null&&c.map(String).includes(y))){console.error(`Locale ${y} is not available`);return}d(y),bk(y,i)}}),b=u8(e??f);return l.jsx(Op.Provider,{value:{locale:b,setLocale:m,disableEditor:o},children:n})},W8=e=>l.jsx(U8,{children:l.jsx(z8,{...e})}),Xd=({children:e,value:t,additionalProps:n})=>{const r=h.isValidElement(e)?e:l.jsx(l.Fragment,{children:e});return new Proxy(r,{get(o,i,a){return i==="value"?t:n&&Object.keys(n).includes(i)?n[i]:Reflect.get(o,i,a)}})},G8=250,V8=({children:e,onPress:t,onHover:n,onUnhover:r,onClickOutside:o,pressDuration:i=G8,isSelecting:a,...s})=>{const c=h.useRef(null),[u,f]=h.useState(!1),[d,p]=h.useState(a),m=h.useRef(null),b=typeof e=="string",y=()=>{p(!0),t()},v=()=>{m.current=setTimeout(()=>{y()},i)},x=()=>{m.current&&(clearTimeout(m.current),m.current=null)},g=()=>{x(),v()},w=()=>{f(!0),n==null||n()},E=()=>{r==null||r(),f(!1),x()},A=h.useCallback(_=>{c.current&&!c.current.contains(_.target)&&(p(!1),o==null||o())},[o]);h.useEffect(()=>(document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)}),[A]);const S=_=>{d&&(_.preventDefault(),_.stopPropagation())},N=()=>{p(!1)};return l.jsx("span",{style:{display:b?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:a||d||u?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:S,onMouseDown:g,onMouseUp:E,onMouseLeave:E,onTouchStart:g,onTouchEnd:E,onTouchCancel:E,onBlur:N,onMouseEnter:w,ref:c,...s,children:e})},K8=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:o}=I8(),{postMessage:i,senderId:a}=a0(),s=h.useMemo(()=>n.filter(c=>c.type!==ue.Translation),[n]);return l.jsx(V8,{onPress:h.useCallback(()=>o({dictionaryKey:t,keyPath:s}),[t,s]),onHover:h.useCallback(()=>i({type:`${kn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t,keyPath:s},senderId:a}),[t,s]),onUnhover:h.useCallback(()=>i({type:`${kn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null,senderId:a}),[a]),isSelecting:h.useMemo(()=>{var c;return((r==null?void 0:r.dictionaryKey)===t&&(((c=r==null?void 0:r.keyPath)==null?void 0:c.length)??0)>0&&m8((r==null?void 0:r.keyPath)??[],s))??!1},[r,s,t]),children:e})},_a=({children:e,...t})=>{const{enabled:n}=s0(),{disableEditor:r}=H8();return n&&!r?l.jsx(K8,{...t,children:e}):e},l0=({dictionaryKey:e,keyPath:t,children:n})=>{const r=_8();return r?r.getEditedContentValue(e,t)??n:n},Y8=e=>{const t=l0(e);if(typeof t=="object"){const n=i0(t,e,e.locale);return typeof n!="string"?(console.error(`Incorrect edited content format. Content type: ${typeof n}. Expected string. Value ${JSON.stringify(n)}`),h.createElement(_a,{...e,key:e.children},e.children)):h.createElement(_a,{...e,key:e.children},n)}return h.createElement(_a,{...e,key:e.children},t)},q8=h.createContext({renderMarkdown:e=>e}),X8=()=>h.useContext(q8),Z8=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:o}=X8(),i=l0({dictionaryKey:e,keyPath:t,children:n});if(typeof i!="string"){const a=i0(i,{dictionaryKey:e,keyPath:t},r);return typeof a!="string"?(console.error(`Incorrect Markdown content. Edited Markdown content type: ${typeof a}. Expected string. Value ${JSON.stringify(a)}`),o(n)):o(a)}return o(i)},Q8=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const o=l0({dictionaryKey:e,keyPath:t,children:n}),i=Nk();return cl(yk(o),r,i)},Tk=e=>{if(typeof e=="string")return e;const t=o=>{var i;if(o!=null&&o.props&&typeof o.props.children=="object"){const a=[],{children:s}=o.props;return Object.keys(s??{}).forEach(c=>{var f,d;const u=Tk(s==null?void 0:s[c]);typeof u=="object"&&u!==null&&"type"in u?a.push(h.createElement(u.type,{...u.props,key:c},...Array.isArray((f=u.props)==null?void 0:f.children)?u.props.children:[(d=u.props)==null?void 0:d.children])):a.push(u)}),{...o,props:{...o.props,children:a}}}return{...o,props:{...o.props,children:((i=o.props)==null?void 0:i.children)??[]}}},{type:n,props:r}=t(e);return h.createElement(n??"span",r,...r.children)},J8={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>Xd({...n,value:n.children,children:l.jsx(Y8,{...n,children:n.children})})},e6={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof(e==null?void 0:e.props)<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>Xd({...n,value:"[[react-element]]",children:l.jsx(_a,{...n,children:Tk(e)})})},t6={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...o}=t,i=n(yk(e),{plugins:[{id:"markdown-metadata-plugin",canHandle:a=>typeof a=="string"||typeof a=="number"||typeof a=="boolean"||!a,transform:(a,s)=>Xd({...s,value:a,children:l.jsx(_a,{...o,children:l.jsx(Q8,{...o,metadataKeyPath:s.keyPath,children:e})})})}],dictionaryKey:o.dictionaryKey,keyPath:[]});return Xd({...t,value:e,children:l.jsx(_a,{...o,children:l.jsx(Z8,{...o,children:e})}),additionalProps:{metadata:i}})}},n6={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===ue.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:ue.Markdown}],o=e[ue.Markdown];return n(o,{...t,children:o,keyPath:r,plugins:[t6,...t.plugins??[]]})}},r6=(e,t,n)=>mk(e,t,[J8,e6,n6]),ye=(e,t)=>{const{locale:n}=h.useContext(Op);return h.useMemo(()=>r6(e,n),[e,n,t])},o6=({isCookieEnabled:e,onLocaleChange:t}={})=>{const{defaultLocale:n,locales:r}=(Le==null?void 0:Le.internationalization)??{},{locale:o,setLocale:i,isCookieEnabled:a}=h.useContext(Op);return{locale:o,defaultLocale:n,availableLocales:r,setLocale:h.useCallback(s=>{if(!(r!=null&&r.map(String).includes(s))){console.error(`Locale ${s} is not available`);return}i(s),bk(s,e??a??!0),t==null||t(s)},[r,t,i])}};br.ALL_LOCALES;Le.internationalization.locales;Le.internationalization.requiredLocales;Le.internationalization.defaultLocale;const i6=[br.ENGLISH,br.KOREAN],py=br.ENGLISH,a6="truthound-locale",MS=[{code:br.ENGLISH,name:"English",nativeName:"English",flag:"🇺🇸"},{code:br.KOREAN,name:"Korean",nativeName:"한국어",flag:"🇰🇷"}];function Pk(e){return i6.includes(e)}function s6(){if(typeof navigator>"u")return py;const e=navigator.languages||[navigator.language];for(const t of e){const n=t.split("-")[0].toLowerCase();if(n==="ko")return br.KOREAN;if(n==="en")return br.ENGLISH}return py}function l6(e,t){if(typeof window<"u"){const n=localStorage.getItem(e);if(n&&Pk(n))return n}return t?s6():py}function c6({children:e,forcedLocale:t,storageKey:n=a6,detectBrowserLocale:r=!0}){const[o,i]=h.useState(()=>t??l6(n,r)),a=h.useCallback(s=>{Pk(s)&&(i(s),typeof window<"u"&&localStorage.setItem(n,s))},[n]);return h.useEffect(()=>{t&&t!==o&&a(t)},[t,o,a]),h.useEffect(()=>{typeof document<"u"&&(document.documentElement.lang=o)},[o]),l.jsx(W8,{locale:o,setLocale:a,children:e})}/**
84
+ * @license lucide-react v0.312.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */var u6={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"};/**
89
+ * @license lucide-react v0.312.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ */const d6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ie=(e,t)=>{const n=h.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:c,...u},f)=>h.createElement("svg",{ref:f,...u6,width:o,height:o,stroke:r,strokeWidth:a?Number(i)*24/Number(o):i,className:["lucide",`lucide-${d6(e)}`,s].join(" "),...u},[...t.map(([d,p])=>h.createElement(d,p)),...Array.isArray(c)?c:[c]]));return n.displayName=`${e}`,n};/**
94
+ * @license lucide-react v0.312.0 - ISC
95
+ *
96
+ * This source code is licensed under the ISC license.
97
+ * See the LICENSE file in the root directory of this source tree.
98
+ */const Ik=ie("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
99
+ * @license lucide-react v0.312.0 - ISC
100
+ *
101
+ * This source code is licensed under the ISC license.
102
+ * See the LICENSE file in the root directory of this source tree.
103
+ */const Rk=ie("AlertCircle",[["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"}]]);/**
104
+ * @license lucide-react v0.312.0 - ISC
105
+ *
106
+ * This source code is licensed under the ISC license.
107
+ * See the LICENSE file in the root directory of this source tree.
108
+ */const Ai=ie("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
109
+ * @license lucide-react v0.312.0 - ISC
110
+ *
111
+ * This source code is licensed under the ISC license.
112
+ * See the LICENSE file in the root directory of this source tree.
113
+ */const Ui=ie("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
114
+ * @license lucide-react v0.312.0 - ISC
115
+ *
116
+ * This source code is licensed under the ISC license.
117
+ * See the LICENSE file in the root directory of this source tree.
118
+ */const hy=ie("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
119
+ * @license lucide-react v0.312.0 - ISC
120
+ *
121
+ * This source code is licensed under the ISC license.
122
+ * See the LICENSE file in the root directory of this source tree.
123
+ */const Mu=ie("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
124
+ * @license lucide-react v0.312.0 - ISC
125
+ *
126
+ * This source code is licensed under the ISC license.
127
+ * See the LICENSE file in the root directory of this source tree.
128
+ */const my=ie("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
129
+ * @license lucide-react v0.312.0 - ISC
130
+ *
131
+ * This source code is licensed under the ISC license.
132
+ * See the LICENSE file in the root directory of this source tree.
133
+ */const kk=ie("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
134
+ * @license lucide-react v0.312.0 - ISC
135
+ *
136
+ * This source code is licensed under the ISC license.
137
+ * See the LICENSE file in the root directory of this source tree.
138
+ */const Ua=ie("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
139
+ * @license lucide-react v0.312.0 - ISC
140
+ *
141
+ * This source code is licensed under the ISC license.
142
+ * See the LICENSE file in the root directory of this source tree.
143
+ */const f6=ie("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]);/**
144
+ * @license lucide-react v0.312.0 - ISC
145
+ *
146
+ * This source code is licensed under the ISC license.
147
+ * See the LICENSE file in the root directory of this source tree.
148
+ */const Ql=ie("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
149
+ * @license lucide-react v0.312.0 - ISC
150
+ *
151
+ * This source code is licensed under the ISC license.
152
+ * See the LICENSE file in the root directory of this source tree.
153
+ */const Zd=ie("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
154
+ * @license lucide-react v0.312.0 - ISC
155
+ *
156
+ * This source code is licensed under the ISC license.
157
+ * See the LICENSE file in the root directory of this source tree.
158
+ */const Tp=ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
159
+ * @license lucide-react v0.312.0 - ISC
160
+ *
161
+ * This source code is licensed under the ISC license.
162
+ * See the LICENSE file in the root directory of this source tree.
163
+ */const Jl=ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
164
+ * @license lucide-react v0.312.0 - ISC
165
+ *
166
+ * This source code is licensed under the ISC license.
167
+ * See the LICENSE file in the root directory of this source tree.
168
+ */const Qd=ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
169
+ * @license lucide-react v0.312.0 - ISC
170
+ *
171
+ * This source code is licensed under the ISC license.
172
+ * See the LICENSE file in the root directory of this source tree.
173
+ */const p6=ie("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
174
+ * @license lucide-react v0.312.0 - ISC
175
+ *
176
+ * This source code is licensed under the ISC license.
177
+ * See the LICENSE file in the root directory of this source tree.
178
+ */const h6=ie("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
179
+ * @license lucide-react v0.312.0 - ISC
180
+ *
181
+ * This source code is licensed under the ISC license.
182
+ * See the LICENSE file in the root directory of this source tree.
183
+ */const ec=ie("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
184
+ * @license lucide-react v0.312.0 - ISC
185
+ *
186
+ * This source code is licensed under the ISC license.
187
+ * See the LICENSE file in the root directory of this source tree.
188
+ */const Mk=ie("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
189
+ * @license lucide-react v0.312.0 - ISC
190
+ *
191
+ * This source code is licensed under the ISC license.
192
+ * See the LICENSE file in the root directory of this source tree.
193
+ */const m6=ie("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
194
+ * @license lucide-react v0.312.0 - ISC
195
+ *
196
+ * This source code is licensed under the ISC license.
197
+ * See the LICENSE file in the root directory of this source tree.
198
+ */const hn=ie("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
199
+ * @license lucide-react v0.312.0 - ISC
200
+ *
201
+ * This source code is licensed under the ISC license.
202
+ * See the LICENSE file in the root directory of this source tree.
203
+ */const Jd=ie("FileCode",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m10 13-2 2 2 2",key:"17smn8"}],["path",{d:"m14 17 2-2-2-2",key:"14mezr"}]]);/**
204
+ * @license lucide-react v0.312.0 - ISC
205
+ *
206
+ * This source code is licensed under the ISC license.
207
+ * See the LICENSE file in the root directory of this source tree.
208
+ */const c0=ie("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
209
+ * @license lucide-react v0.312.0 - ISC
210
+ *
211
+ * This source code is licensed under the ISC license.
212
+ * See the LICENSE file in the root directory of this source tree.
213
+ */const Pp=ie("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
214
+ * @license lucide-react v0.312.0 - ISC
215
+ *
216
+ * This source code is licensed under the ISC license.
217
+ * See the LICENSE file in the root directory of this source tree.
218
+ */const v6=ie("FolderOpen",[["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"}]]);/**
219
+ * @license lucide-react v0.312.0 - ISC
220
+ *
221
+ * This source code is licensed under the ISC license.
222
+ * See the LICENSE file in the root directory of this source tree.
223
+ */const Dk=ie("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);/**
224
+ * @license lucide-react v0.312.0 - ISC
225
+ *
226
+ * This source code is licensed under the ISC license.
227
+ * See the LICENSE file in the root directory of this source tree.
228
+ */const u0=ie("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
229
+ * @license lucide-react v0.312.0 - ISC
230
+ *
231
+ * This source code is licensed under the ISC license.
232
+ * See the LICENSE file in the root directory of this source tree.
233
+ */const y6=ie("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
234
+ * @license lucide-react v0.312.0 - ISC
235
+ *
236
+ * This source code is licensed under the ISC license.
237
+ * See the LICENSE file in the root directory of this source tree.
238
+ */const vy=ie("History",[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
239
+ * @license lucide-react v0.312.0 - ISC
240
+ *
241
+ * This source code is licensed under the ISC license.
242
+ * See the LICENSE file in the root directory of this source tree.
243
+ */const g6=ie("LayoutDashboard",[["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"}]]);/**
244
+ * @license lucide-react v0.312.0 - ISC
245
+ *
246
+ * This source code is licensed under the ISC license.
247
+ * See the LICENSE file in the root directory of this source tree.
248
+ */const Sl=ie("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
249
+ * @license lucide-react v0.312.0 - ISC
250
+ *
251
+ * This source code is licensed under the ISC license.
252
+ * See the LICENSE file in the root directory of this source tree.
253
+ */const bm=ie("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
254
+ * @license lucide-react v0.312.0 - ISC
255
+ *
256
+ * This source code is licensed under the ISC license.
257
+ * See the LICENSE file in the root directory of this source tree.
258
+ */const x6=ie("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
259
+ * @license lucide-react v0.312.0 - ISC
260
+ *
261
+ * This source code is licensed under the ISC license.
262
+ * See the LICENSE file in the root directory of this source tree.
263
+ */const b6=ie("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
264
+ * @license lucide-react v0.312.0 - ISC
265
+ *
266
+ * This source code is licensed under the ISC license.
267
+ * See the LICENSE file in the root directory of this source tree.
268
+ */const Kc=ie("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
269
+ * @license lucide-react v0.312.0 - ISC
270
+ *
271
+ * This source code is licensed under the ISC license.
272
+ * See the LICENSE file in the root directory of this source tree.
273
+ */const w6=ie("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
274
+ * @license lucide-react v0.312.0 - ISC
275
+ *
276
+ * This source code is licensed under the ISC license.
277
+ * See the LICENSE file in the root directory of this source tree.
278
+ */const S6=ie("MoreVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
279
+ * @license lucide-react v0.312.0 - ISC
280
+ *
281
+ * This source code is licensed under the ISC license.
282
+ * See the LICENSE file in the root directory of this source tree.
283
+ */const A6=ie("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);/**
284
+ * @license lucide-react v0.312.0 - ISC
285
+ *
286
+ * This source code is licensed under the ISC license.
287
+ * See the LICENSE file in the root directory of this source tree.
288
+ */const DS=ie("Pen",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}]]);/**
289
+ * @license lucide-react v0.312.0 - ISC
290
+ *
291
+ * This source code is licensed under the ISC license.
292
+ * See the LICENSE file in the root directory of this source tree.
293
+ */const E6=ie("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/**
294
+ * @license lucide-react v0.312.0 - ISC
295
+ *
296
+ * This source code is licensed under the ISC license.
297
+ * See the LICENSE file in the root directory of this source tree.
298
+ */const N6=ie("PlayCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
299
+ * @license lucide-react v0.312.0 - ISC
300
+ *
301
+ * This source code is licensed under the ISC license.
302
+ * See the LICENSE file in the root directory of this source tree.
303
+ */const ef=ie("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
304
+ * @license lucide-react v0.312.0 - ISC
305
+ *
306
+ * This source code is licensed under the ISC license.
307
+ * See the LICENSE file in the root directory of this source tree.
308
+ */const Vt=ie("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
309
+ * @license lucide-react v0.312.0 - ISC
310
+ *
311
+ * This source code is licensed under the ISC license.
312
+ * See the LICENSE file in the root directory of this source tree.
313
+ */const xd=ie("RefreshCw",[["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"}]]);/**
314
+ * @license lucide-react v0.312.0 - ISC
315
+ *
316
+ * This source code is licensed under the ISC license.
317
+ * See the LICENSE file in the root directory of this source tree.
318
+ */const _6=ie("Reply",[["polyline",{points:"9 17 4 12 9 7",key:"hvgpf2"}],["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}]]);/**
319
+ * @license lucide-react v0.312.0 - ISC
320
+ *
321
+ * This source code is licensed under the ISC license.
322
+ * See the LICENSE file in the root directory of this source tree.
323
+ */const j6=ie("Rows3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]);/**
324
+ * @license lucide-react v0.312.0 - ISC
325
+ *
326
+ * This source code is licensed under the ISC license.
327
+ * See the LICENSE file in the root directory of this source tree.
328
+ */const C6=ie("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);/**
329
+ * @license lucide-react v0.312.0 - ISC
330
+ *
331
+ * This source code is licensed under the ISC license.
332
+ * See the LICENSE file in the root directory of this source tree.
333
+ */const Ip=ie("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
334
+ * @license lucide-react v0.312.0 - ISC
335
+ *
336
+ * This source code is licensed under the ISC license.
337
+ * See the LICENSE file in the root directory of this source tree.
338
+ */const $k=ie("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
339
+ * @license lucide-react v0.312.0 - ISC
340
+ *
341
+ * This source code is licensed under the ISC license.
342
+ * See the LICENSE file in the root directory of this source tree.
343
+ */const Lk=ie("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
344
+ * @license lucide-react v0.312.0 - ISC
345
+ *
346
+ * This source code is licensed under the ISC license.
347
+ * See the LICENSE file in the root directory of this source tree.
348
+ */const Fk=ie("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/**
349
+ * @license lucide-react v0.312.0 - ISC
350
+ *
351
+ * This source code is licensed under the ISC license.
352
+ * See the LICENSE file in the root directory of this source tree.
353
+ */const Bk=ie("Sliders",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
354
+ * @license lucide-react v0.312.0 - ISC
355
+ *
356
+ * This source code is licensed under the ISC license.
357
+ * See the LICENSE file in the root directory of this source tree.
358
+ */const Ha=ie("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]]);/**
359
+ * @license lucide-react v0.312.0 - ISC
360
+ *
361
+ * This source code is licensed under the ISC license.
362
+ * See the LICENSE file in the root directory of this source tree.
363
+ */const O6=ie("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
364
+ * @license lucide-react v0.312.0 - ISC
365
+ *
366
+ * This source code is licensed under the ISC license.
367
+ * See the LICENSE file in the root directory of this source tree.
368
+ */const yy=ie("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/**
369
+ * @license lucide-react v0.312.0 - ISC
370
+ *
371
+ * This source code is licensed under the ISC license.
372
+ * See the LICENSE file in the root directory of this source tree.
373
+ */const T6=ie("Tag",[["path",{d:"M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2Z",key:"14b2ls"}],["path",{d:"M7 7h.01",key:"7u93v4"}]]);/**
374
+ * @license lucide-react v0.312.0 - ISC
375
+ *
376
+ * This source code is licensed under the ISC license.
377
+ * See the LICENSE file in the root directory of this source tree.
378
+ */const Gr=ie("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
379
+ * @license lucide-react v0.312.0 - ISC
380
+ *
381
+ * This source code is licensed under the ISC license.
382
+ * See the LICENSE file in the root directory of this source tree.
383
+ */const P6=ie("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
384
+ * @license lucide-react v0.312.0 - ISC
385
+ *
386
+ * This source code is licensed under the ISC license.
387
+ * See the LICENSE file in the root directory of this source tree.
388
+ */const I6=ie("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
389
+ * @license lucide-react v0.312.0 - ISC
390
+ *
391
+ * This source code is licensed under the ISC license.
392
+ * See the LICENSE file in the root directory of this source tree.
393
+ */const R6=ie("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
394
+ * @license lucide-react v0.312.0 - ISC
395
+ *
396
+ * This source code is licensed under the ISC license.
397
+ * See the LICENSE file in the root directory of this source tree.
398
+ */const k6=ie("Webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]);/**
399
+ * @license lucide-react v0.312.0 - ISC
400
+ *
401
+ * This source code is licensed under the ISC license.
402
+ * See the LICENSE file in the root directory of this source tree.
403
+ */const To=ie("XCircle",[["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"}]]);/**
404
+ * @license lucide-react v0.312.0 - ISC
405
+ *
406
+ * This source code is licensed under the ISC license.
407
+ * See the LICENSE file in the root directory of this source tree.
408
+ */const d0=ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
409
+ * @license lucide-react v0.312.0 - ISC
410
+ *
411
+ * This source code is licensed under the ISC license.
412
+ * See the LICENSE file in the root directory of this source tree.
413
+ */const $S=ie("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function Uk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Uk(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _e(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Uk(e))&&(r&&(r+=" "),r+=t);return r}const f0="-",M6=e=>{const t=$6(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(f0);return s[0]===""&&s.length!==1&&s.shift(),Hk(s,t)||D6(a)},getConflictingClassGroupIds:(a,s)=>{const c=n[a]||[];return s&&r[a]?[...c,...r[a]]:c}}},Hk=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Hk(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(f0);return(a=t.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},LS=/^\[(.+)\]$/,D6=e=>{if(LS.test(e)){const t=LS.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},$6=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return F6(Object.entries(e.classGroups),n).forEach(([i,a])=>{gy(a,r,i,t)}),r},gy=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:FS(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(L6(o)){gy(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,a])=>{gy(a,FS(t,i),n,r)})})},FS=(e,t)=>{let n=e;return t.split(f0).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},L6=e=>e.isThemeGetter,F6=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,s])=>[t+a,s])):i);return[n,o]}):e,B6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set(i,a){n.has(i)?n.set(i,a):o(i,a)}}},zk="!",U6=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,a=s=>{const c=[];let u=0,f=0,d;for(let v=0;v<s.length;v++){let x=s[v];if(u===0){if(x===o&&(r||s.slice(v,v+i)===t)){c.push(s.slice(f,v)),f=v+i;continue}if(x==="/"){d=v;continue}}x==="["?u++:x==="]"&&u--}const p=c.length===0?s:s.substring(f),m=p.startsWith(zk),b=m?p.substring(1):p,y=d&&d>f?d-f:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:y}};return n?s=>n({className:s,parseClassName:a}):a},H6=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},z6=e=>({cache:B6(e.cacheSize),parseClassName:U6(e),...M6(e)}),W6=/\s+/,G6=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(W6);let s="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:f,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:m}=n(u);let b=!!m,y=r(b?p.substring(0,m):p);if(!y){if(!b){s=u+(s.length>0?" "+s:s);continue}if(y=r(p),!y){s=u+(s.length>0?" "+s:s);continue}b=!1}const v=H6(f).join(":"),x=d?v+zk:v,g=x+y;if(i.includes(g))continue;i.push(g);const w=o(y,b);for(let E=0;E<w.length;++E){const A=w[E];i.push(x+A)}s=u+(s.length>0?" "+s:s)}return s};function V6(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Wk(t))&&(r&&(r+=" "),r+=n);return r}const Wk=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wk(e[r]))&&(n&&(n+=" "),n+=t);return n};function K6(e,...t){let n,r,o,i=a;function a(c){const u=t.reduce((f,d)=>d(f),e());return n=z6(u),r=n.cache.get,o=n.cache.set,i=s,s(c)}function s(c){const u=r(c);if(u)return u;const f=G6(c,n);return o(c,f),f}return function(){return i(V6.apply(null,arguments))}}const He=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Gk=/^\[(?:([a-z-]+):)?(.+)\]$/i,Y6=/^\d+\/\d+$/,q6=new Set(["px","full","screen"]),X6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Z6=/\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$/,Q6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,J6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eW=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jr=e=>ja(e)||q6.has(e)||Y6.test(e),ao=e=>bs(e,"length",lW),ja=e=>!!e&&!Number.isNaN(Number(e)),wm=e=>bs(e,"number",ja),Ks=e=>!!e&&Number.isInteger(Number(e)),tW=e=>e.endsWith("%")&&ja(e.slice(0,-1)),ge=e=>Gk.test(e),so=e=>X6.test(e),nW=new Set(["length","size","percentage"]),rW=e=>bs(e,nW,Vk),oW=e=>bs(e,"position",Vk),iW=new Set(["image","url"]),aW=e=>bs(e,iW,uW),sW=e=>bs(e,"",cW),Ys=()=>!0,bs=(e,t,n)=>{const r=Gk.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},lW=e=>Z6.test(e)&&!Q6.test(e),Vk=()=>!1,cW=e=>J6.test(e),uW=e=>eW.test(e),dW=()=>{const e=He("colors"),t=He("spacing"),n=He("blur"),r=He("brightness"),o=He("borderColor"),i=He("borderRadius"),a=He("borderSpacing"),s=He("borderWidth"),c=He("contrast"),u=He("grayscale"),f=He("hueRotate"),d=He("invert"),p=He("gap"),m=He("gradientColorStops"),b=He("gradientColorStopPositions"),y=He("inset"),v=He("margin"),x=He("opacity"),g=He("padding"),w=He("saturate"),E=He("scale"),A=He("sepia"),S=He("skew"),N=He("space"),_=He("translate"),O=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",ge,t],I=()=>[ge,t],$=()=>["",jr,ao],C=()=>["auto",ja,ge],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],k=()=>["","0",ge],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[ja,ge];return{cacheSize:500,separator:":",theme:{colors:[Ys],spacing:[jr,ao],blur:["none","",so,ge],brightness:G(),borderColor:[e],borderRadius:["none","","full",so,ge],borderSpacing:I(),borderWidth:$(),contrast:G(),grayscale:k(),hueRotate:G(),invert:k(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[tW,ao],inset:j(),margin:j(),opacity:G(),padding:I(),saturate:G(),scale:G(),sepia:k(),skew:G(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[so]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...P(),ge]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ks,ge]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:k()}],shrink:[{shrink:k()}],order:[{order:["first","last","none",Ks,ge]}],"grid-cols":[{"grid-cols":[Ys]}],"col-start-end":[{col:["auto",{span:["full",Ks,ge]},ge]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[Ys]}],"row-start-end":[{row:["auto",{span:[Ks,ge]},ge]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,t]}],"min-w":[{"min-w":[ge,t,"min","max","fit"]}],"max-w":[{"max-w":[ge,t,"none","full","min","max","fit","prose",{screen:[so]},so]}],h:[{h:[ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",so,ao]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wm]}],"font-family":[{font:[Ys]}],"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:["tighter","tight","normal","wide","wider","widest",ge]}],"line-clamp":[{"line-clamp":["none",ja,wm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jr,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jr,ao]}],"underline-offset":[{"underline-offset":["auto",jr,ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),oW]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rW]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},aW]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:M()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[jr,ge]}],"outline-w":[{outline:[jr,ao]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[jr,ao]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",so,sW]}],"shadow-color":[{shadow:[Ys]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...L(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":L()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",so,ge]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Ks,ge]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[jr,ao,wm]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},fW=K6(dW);function oe(...e){return fW(_e(e))}function yn(e){return e?(typeof e=="string"?new Date(e):e).toLocaleDateString("ko-KR",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}function Rr(e){return e==null?"-":e.toLocaleString()}function Kk(e){return e==null?"-":e<1e3?`${e}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${(e/6e4).toFixed(1)}m`}function BS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function eo(...e){return t=>{let n=!1;const r=e.map(o=>{const i=BS(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():BS(e[o],null)}}}}function Ce(...e){return h.useCallback(eo(...e),e)}var pW=Symbol.for("react.lazy"),tf=fp[" use ".trim().toString()];function hW(e){return typeof e=="object"&&e!==null&&"then"in e}function Yk(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===pW&&"_payload"in e&&hW(e._payload)}function qk(e){const t=vW(e),n=h.forwardRef((r,o)=>{let{children:i,...a}=r;Yk(i)&&typeof tf=="function"&&(i=tf(i._payload));const s=h.Children.toArray(i),c=s.find(gW);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var mW=qk("Slot");function vW(e){const t=h.forwardRef((n,r)=>{let{children:o,...i}=n;if(Yk(o)&&typeof tf=="function"&&(o=tf(o._payload)),h.isValidElement(o)){const a=bW(o),s=xW(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yW=Symbol("radix.slottable");function gW(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yW}function xW(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function bW(e){var r,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const US=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,HS=_e,Rp=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return HS(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],d=i==null?void 0:i[u];if(f===null)return null;const p=US(f)||US(d);return o[u][p]}),s=n&&Object.entries(n).reduce((u,f)=>{let[d,p]=f;return p===void 0||(u[d]=p),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:d,className:p,...m}=f;return Object.entries(m).every(b=>{let[y,v]=b;return Array.isArray(v)?v.includes({...i,...s}[y]):{...i,...s}[y]===v})?[...u,d,p]:u},[]);return HS(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},kp=Rp("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm 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-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Y=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const a=r?mW:"button";return l.jsx(a,{className:oe(kp({variant:t,size:n,className:e})),ref:i,...o})});Y.displayName="Button";function ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function wW(e,t){const n=h.createContext(t),r=i=>{const{children:a,...s}=i,c=h.useMemo(()=>s,Object.values(s));return l.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(i){const a=h.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function nr(e,t=[]){let n=[];function r(i,a){const s=h.createContext(a),c=n.length;n=[...n,a];const u=d=>{var x;const{scope:p,children:m,...b}=d,y=((x=p==null?void 0:p[e])==null?void 0:x[c])||s,v=h.useMemo(()=>b,Object.values(b));return l.jsx(y.Provider,{value:v,children:m})};u.displayName=i+"Provider";function f(d,p){var y;const m=((y=p==null?void 0:p[e])==null?void 0:y[c])||s,b=h.useContext(m);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,f]}const o=()=>{const i=n.map(a=>h.createContext(a));return function(s){const c=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,SW(o,...t)]}function SW(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:c,scopeName:u})=>{const d=c(i)[`__scope${u}`];return{...s,...d}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Pt=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},AW=fp[" useInsertionEffect ".trim().toString()]||Pt;function Mo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=EW({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o;{const f=h.useRef(e!==void 0);h.useEffect(()=>{const d=f.current;d!==s&&console.warn(`${r} is changing from ${d?"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=h.useCallback(f=>{var d;if(s){const p=NW(f)?f(e):f;p!==e&&((d=a.current)==null||d.call(a,p))}else i(f)},[s,e,i,a]);return[c,u]}function EW({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),i=h.useRef(t);return AW(()=>{i.current=t},[t]),h.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function NW(e){return typeof e=="function"}function _W(e){const t=jW(e),n=h.forwardRef((r,o)=>{const{children:i,...a}=r,s=h.Children.toArray(i),c=s.find(OW);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function jW(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const a=PW(o),s=TW(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var CW=Symbol("radix.slottable");function OW(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===CW}function TW(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function PW(e){var r,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=IW.reduce((e,t)=>{const n=_W(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:a,...s}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function p0(e,t){e&&Mi.flushSync(()=>e.dispatchEvent(t))}function zS(e){const t=RW(e),n=h.forwardRef((r,o)=>{const{children:i,...a}=r,s=h.Children.toArray(i),c=s.find(MW);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function RW(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const a=$W(o),s=DW(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kW=Symbol("radix.slottable");function MW(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kW}function DW(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function $W(e){var r,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Mp(e){const t=e+"CollectionProvider",[n,r]=nr(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=y=>{const{scope:v,children:x}=y,g=D.useRef(null),w=D.useRef(new Map).current;return l.jsx(o,{scope:v,itemMap:w,collectionRef:g,children:x})};a.displayName=t;const s=e+"CollectionSlot",c=zS(s),u=D.forwardRef((y,v)=>{const{scope:x,children:g}=y,w=i(s,x),E=Ce(v,w.collectionRef);return l.jsx(c,{ref:E,children:g})});u.displayName=s;const f=e+"CollectionItemSlot",d="data-radix-collection-item",p=zS(f),m=D.forwardRef((y,v)=>{const{scope:x,children:g,...w}=y,E=D.useRef(null),A=Ce(v,E),S=i(f,x);return D.useEffect(()=>(S.itemMap.set(E,{ref:E,...w}),()=>void S.itemMap.delete(E))),l.jsx(p,{[d]:"",ref:A,children:g})});m.displayName=f;function b(y){const v=i(e+"CollectionConsumer",y);return D.useCallback(()=>{const g=v.collectionRef.current;if(!g)return[];const w=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((S,N)=>w.indexOf(S.ref.current)-w.indexOf(N.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},b,r]}var LW=h.createContext(void 0);function Dp(e){const t=h.useContext(LW);return e||t||"ltr"}function rn(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function FW(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var BW="DismissableLayer",xy="dismissableLayer.update",UW="dismissableLayer.pointerDownOutside",HW="dismissableLayer.focusOutside",WS,Xk=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yc=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...c}=e,u=h.useContext(Xk),[f,d]=h.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=h.useState({}),b=Ce(t,N=>d(N)),y=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(v),g=f?y.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=g>=x,A=WW(N=>{const _=N.target,O=[...u.branches].some(T=>T.contains(_));!E||O||(o==null||o(N),a==null||a(N),N.defaultPrevented||s==null||s())},p),S=GW(N=>{const _=N.target;[...u.branches].some(T=>T.contains(_))||(i==null||i(N),a==null||a(N),N.defaultPrevented||s==null||s())},p);return FW(N=>{g===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},p),h.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(WS=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),GS(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=WS)}},[f,p,n,u]),h.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),GS())},[f,u]),h.useEffect(()=>{const N=()=>m({});return document.addEventListener(xy,N),()=>document.removeEventListener(xy,N)},[]),l.jsx(he.div,{...c,ref:b,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:ee(e.onFocusCapture,S.onFocusCapture),onBlurCapture:ee(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:ee(e.onPointerDownCapture,A.onPointerDownCapture)})});Yc.displayName=BW;var zW="DismissableLayerBranch",Zk=h.forwardRef((e,t)=>{const n=h.useContext(Xk),r=h.useRef(null),o=Ce(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.jsx(he.div,{...e,ref:o})});Zk.displayName=zW;function WW(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){Qk(UW,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function GW(e,t=globalThis==null?void 0:globalThis.document){const n=rn(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&Qk(HW,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function GS(){const e=new CustomEvent(xy);document.dispatchEvent(e)}function Qk(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?p0(o,i):o.dispatchEvent(i)}var VW=Yc,KW=Zk,Sm=0;function h0(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??VS()),document.body.insertAdjacentElement("beforeend",e[1]??VS()),Sm++,()=>{Sm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sm--}},[])}function VS(){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 Am="focusScope.autoFocusOnMount",Em="focusScope.autoFocusOnUnmount",KS={bubbles:!1,cancelable:!0},YW="FocusScope",$p=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=h.useState(null),u=rn(o),f=rn(i),d=h.useRef(null),p=Ce(t,y=>c(y)),m=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let y=function(w){if(m.paused||!s)return;const E=w.target;s.contains(E)?d.current=E:co(d.current,{select:!0})},v=function(w){if(m.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||co(d.current,{select:!0}))},x=function(w){if(document.activeElement===document.body)for(const A of w)A.removedNodes.length>0&&co(s)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const g=new MutationObserver(x);return s&&g.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),g.disconnect()}}},[r,s,m.paused]),h.useEffect(()=>{if(s){qS.add(m);const y=document.activeElement;if(!s.contains(y)){const x=new CustomEvent(Am,KS);s.addEventListener(Am,u),s.dispatchEvent(x),x.defaultPrevented||(qW(eG(Jk(s)),{select:!0}),document.activeElement===y&&co(s))}return()=>{s.removeEventListener(Am,u),setTimeout(()=>{const x=new CustomEvent(Em,KS);s.addEventListener(Em,f),s.dispatchEvent(x),x.defaultPrevented||co(y??document.body,{select:!0}),s.removeEventListener(Em,f),qS.remove(m)},0)}}},[s,u,f,m]);const b=h.useCallback(y=>{if(!n&&!r||m.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(v&&x){const g=y.currentTarget,[w,E]=XW(g);w&&E?!y.shiftKey&&x===E?(y.preventDefault(),n&&co(w,{select:!0})):y.shiftKey&&x===w&&(y.preventDefault(),n&&co(E,{select:!0})):x===g&&y.preventDefault()}},[n,r,m.paused]);return l.jsx(he.div,{tabIndex:-1,...a,ref:p,onKeyDown:b})});$p.displayName=YW;function qW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(co(r,{select:t}),document.activeElement!==n)return}function XW(e){const t=Jk(e),n=YS(t,e),r=YS(t.reverse(),e);return[n,r]}function Jk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function YS(e,t){for(const n of e)if(!ZW(n,{upTo:t}))return n}function ZW(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 QW(e){return e instanceof HTMLInputElement&&"select"in e}function co(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&QW(e)&&t&&e.select()}}var qS=JW();function JW(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=XS(e,t),e.unshift(t)},remove(t){var n;e=XS(e,t),(n=e[0])==null||n.resume()}}}function XS(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function eG(e){return e.filter(t=>t.tagName!=="A")}var tG=fp[" useId ".trim().toString()]||(()=>{}),nG=0;function mr(e){const[t,n]=h.useState(tG());return Pt(()=>{n(r=>r??String(nG++))},[e]),t?`radix-${t}`:""}const rG=["top","right","bottom","left"],Do=Math.min,un=Math.max,nf=Math.round,Du=Math.floor,vr=e=>({x:e,y:e}),oG={left:"right",right:"left",bottom:"top",top:"bottom"},iG={start:"end",end:"start"};function by(e,t,n){return un(e,Do(t,n))}function Vr(e,t){return typeof e=="function"?e(t):e}function Kr(e){return e.split("-")[0]}function ws(e){return e.split("-")[1]}function m0(e){return e==="x"?"y":"x"}function v0(e){return e==="y"?"height":"width"}const aG=new Set(["top","bottom"]);function dr(e){return aG.has(Kr(e))?"y":"x"}function y0(e){return m0(dr(e))}function sG(e,t,n){n===void 0&&(n=!1);const r=ws(e),o=y0(e),i=v0(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=rf(a)),[a,rf(a)]}function lG(e){const t=rf(e);return[wy(e),t,wy(t)]}function wy(e){return e.replace(/start|end/g,t=>iG[t])}const ZS=["left","right"],QS=["right","left"],cG=["top","bottom"],uG=["bottom","top"];function dG(e,t,n){switch(e){case"top":case"bottom":return n?t?QS:ZS:t?ZS:QS;case"left":case"right":return t?cG:uG;default:return[]}}function fG(e,t,n,r){const o=ws(e);let i=dG(Kr(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(wy)))),i}function rf(e){return e.replace(/left|right|bottom|top/g,t=>oG[t])}function pG(e){return{top:0,right:0,bottom:0,left:0,...e}}function e2(e){return typeof e!="number"?pG(e):{top:e,right:e,bottom:e,left:e}}function of(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function JS(e,t,n){let{reference:r,floating:o}=e;const i=dr(t),a=y0(t),s=v0(a),c=Kr(t),u=i==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let m;switch(c){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(ws(t)){case"start":m[a]-=p*(n&&u?-1:1);break;case"end":m[a]+=p*(n&&u?-1:1);break}return m}const hG=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=JS(u,r,c),p=r,m={},b=0;for(let y=0;y<s.length;y++){const{name:v,fn:x}=s[y],{x:g,y:w,data:E,reset:A}=await x({x:f,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});f=g??f,d=w??d,m={...m,[v]:{...m[v],...E}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(u=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:d}=JS(u,p,c)),y=-1)}return{x:f,y:d,placement:p,strategy:o,middlewareData:m}};async function tc(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=Vr(t,e),b=e2(m),v=s[p?d==="floating"?"reference":"floating":d],x=of(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),g=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),E=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},A=of(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:w,strategy:c}):g);return{top:(x.top-A.top+b.top)/E.y,bottom:(A.bottom-x.bottom+b.bottom)/E.y,left:(x.left-A.left+b.left)/E.x,right:(A.right-x.right+b.right)/E.x}}const mG=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:f=0}=Vr(e,t)||{};if(u==null)return{};const d=e2(f),p={x:n,y:r},m=y0(o),b=v0(m),y=await a.getDimensions(u),v=m==="y",x=v?"top":"left",g=v?"bottom":"right",w=v?"clientHeight":"clientWidth",E=i.reference[b]+i.reference[m]-p[m]-i.floating[b],A=p[m]-i.reference[m],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let N=S?S[w]:0;(!N||!await(a.isElement==null?void 0:a.isElement(S)))&&(N=s.floating[w]||i.floating[b]);const _=E/2-A/2,O=N/2-y[b]/2-1,T=Do(d[x],O),j=Do(d[g],O),I=T,$=N-y[b]-j,C=N/2-y[b]/2+_,P=by(I,C,$),M=!c.arrow&&ws(o)!=null&&C!==P&&i.reference[b]/2-(C<I?T:j)-y[b]/2<0,L=M?C<I?C-I:C-$:0;return{[m]:p[m]+L,data:{[m]:P,centerOffset:C-P-L,...M&&{alignmentOffset:L}},reset:M}}}),vG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...v}=Vr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=Kr(o),g=dr(s),w=Kr(s)===s,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),A=p||(w||!y?[rf(s)]:lG(s)),S=b!=="none";!p&&S&&A.push(...fG(s,y,b,E));const N=[s,...A],_=await tc(t,v),O=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&O.push(_[x]),d){const C=sG(o,a,E);O.push(_[C[0]],_[C[1]])}if(T=[...T,{placement:o,overflows:O}],!O.every(C=>C<=0)){var j,I;const C=(((j=i.flip)==null?void 0:j.index)||0)+1,P=N[C];if(P&&(!(d==="alignment"?g!==dr(P):!1)||T.every(R=>dr(R.placement)===g?R.overflows[0]>0:!0)))return{data:{index:C,overflows:T},reset:{placement:P}};let M=(I=T.filter(L=>L.overflows[0]<=0).sort((L,R)=>L.overflows[1]-R.overflows[1])[0])==null?void 0:I.placement;if(!M)switch(m){case"bestFit":{var $;const L=($=T.filter(R=>{if(S){const k=dr(R.placement);return k===g||k==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(k=>k>0).reduce((k,H)=>k+H,0)]).sort((R,k)=>R[1]-k[1])[0])==null?void 0:$[0];L&&(M=L);break}case"initialPlacement":M=s;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function eA(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tA(e){return rG.some(t=>e[t]>=0)}const yG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Vr(e,t);switch(r){case"referenceHidden":{const i=await tc(t,{...o,elementContext:"reference"}),a=eA(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:tA(a)}}}case"escaped":{const i=await tc(t,{...o,altBoundary:!0}),a=eA(i,n.floating);return{data:{escapedOffsets:a,escaped:tA(a)}}}default:return{}}}}},t2=new Set(["left","top"]);async function gG(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Kr(n),s=ws(n),c=dr(n)==="y",u=t2.has(a)?-1:1,f=i&&c?-1:1,d=Vr(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof b=="number"&&(m=s==="end"?b*-1:b),c?{x:m*f,y:p*u}:{x:p*u,y:m*f}}const xG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await gG(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},bG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:v=>{let{x,y:g}=v;return{x,y:g}}},...c}=Vr(e,t),u={x:n,y:r},f=await tc(t,c),d=dr(Kr(o)),p=m0(d);let m=u[p],b=u[d];if(i){const v=p==="y"?"top":"left",x=p==="y"?"bottom":"right",g=m+f[v],w=m-f[x];m=by(g,m,w)}if(a){const v=d==="y"?"top":"left",x=d==="y"?"bottom":"right",g=b+f[v],w=b-f[x];b=by(g,b,w)}const y=s.fn({...t,[p]:m,[d]:b});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:i,[d]:a}}}}}},wG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Vr(e,t),f={x:n,y:r},d=dr(o),p=m0(d);let m=f[p],b=f[d];const y=Vr(s,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const w=p==="y"?"height":"width",E=i.reference[p]-i.floating[w]+v.mainAxis,A=i.reference[p]+i.reference[w]-v.mainAxis;m<E?m=E:m>A&&(m=A)}if(u){var x,g;const w=p==="y"?"width":"height",E=t2.has(Kr(o)),A=i.reference[d]-i.floating[w]+(E&&((x=a.offset)==null?void 0:x[d])||0)+(E?0:v.crossAxis),S=i.reference[d]+i.reference[w]+(E?0:((g=a.offset)==null?void 0:g[d])||0)-(E?v.crossAxis:0);b<A?b=A:b>S&&(b=S)}return{[p]:m,[d]:b}}}},SG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...u}=Vr(e,t),f=await tc(t,u),d=Kr(o),p=ws(o),m=dr(o)==="y",{width:b,height:y}=i.floating;let v,x;d==="top"||d==="bottom"?(v=d,x=p===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(x=d,v=p==="end"?"top":"bottom");const g=y-f.top-f.bottom,w=b-f.left-f.right,E=Do(y-f[v],g),A=Do(b-f[x],w),S=!t.middlewareData.shift;let N=E,_=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=g),S&&!p){const T=un(f.left,0),j=un(f.right,0),I=un(f.top,0),$=un(f.bottom,0);m?_=b-2*(T!==0||j!==0?T+j:un(f.left,f.right)):N=y-2*(I!==0||$!==0?I+$:un(f.top,f.bottom))}await c({...t,availableWidth:_,availableHeight:N});const O=await a.getDimensions(s.floating);return b!==O.width||y!==O.height?{reset:{rects:!0}}:{}}}};function Lp(){return typeof window<"u"}function Ss(e){return n2(e)?(e.nodeName||"").toLowerCase():"#document"}function mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ar(e){var t;return(t=(n2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function n2(e){return Lp()?e instanceof Node||e instanceof mn(e).Node:!1}function er(e){return Lp()?e instanceof Element||e instanceof mn(e).Element:!1}function wr(e){return Lp()?e instanceof HTMLElement||e instanceof mn(e).HTMLElement:!1}function nA(e){return!Lp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mn(e).ShadowRoot}const AG=new Set(["inline","contents"]);function qc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!AG.has(o)}const EG=new Set(["table","td","th"]);function NG(e){return EG.has(Ss(e))}const _G=[":popover-open",":modal"];function Fp(e){return _G.some(t=>{try{return e.matches(t)}catch{return!1}})}const jG=["transform","translate","scale","rotate","perspective"],CG=["transform","translate","scale","rotate","perspective","filter"],OG=["paint","layout","strict","content"];function g0(e){const t=x0(),n=er(e)?tr(e):e;return jG.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||CG.some(r=>(n.willChange||"").includes(r))||OG.some(r=>(n.contain||"").includes(r))}function TG(e){let t=$o(e);for(;wr(t)&&!za(t);){if(g0(t))return t;if(Fp(t))return null;t=$o(t)}return null}function x0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const PG=new Set(["html","body","#document"]);function za(e){return PG.has(Ss(e))}function tr(e){return mn(e).getComputedStyle(e)}function Bp(e){return er(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $o(e){if(Ss(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nA(e)&&e.host||Ar(e);return nA(t)?t.host:t}function r2(e){const t=$o(e);return za(t)?e.ownerDocument?e.ownerDocument.body:e.body:wr(t)&&qc(t)?t:r2(t)}function nc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=r2(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=mn(o);if(i){const s=Sy(a);return t.concat(a,a.visualViewport||[],qc(o)?o:[],s&&n?nc(s):[])}return t.concat(o,nc(o,[],n))}function Sy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function o2(e){const t=tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=wr(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=nf(n)!==i||nf(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function b0(e){return er(e)?e:e.contextElement}function Ca(e){const t=b0(e);if(!wr(t))return vr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=o2(t);let a=(i?nf(n.width):n.width)/r,s=(i?nf(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const IG=vr(0);function i2(e){const t=mn(e);return!x0()||!t.visualViewport?IG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mn(e)?!1:t}function Ei(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=b0(e);let a=vr(1);t&&(r?er(r)&&(a=Ca(r)):a=Ca(e));const s=RG(i,n,r)?i2(i):vr(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(i){const p=mn(i),m=r&&er(r)?mn(r):r;let b=p,y=Sy(b);for(;y&&r&&m!==b;){const v=Ca(y),x=y.getBoundingClientRect(),g=tr(y),w=x.left+(y.clientLeft+parseFloat(g.paddingLeft))*v.x,E=x.top+(y.clientTop+parseFloat(g.paddingTop))*v.y;c*=v.x,u*=v.y,f*=v.x,d*=v.y,c+=w,u+=E,b=mn(y),y=Sy(b)}}return of({width:f,height:d,x:c,y:u})}function Up(e,t){const n=Bp(e).scrollLeft;return t?t.left+n:Ei(Ar(e)).left+n}function a2(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Up(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function kG(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=Ar(r),s=t?Fp(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=vr(1);const f=vr(0),d=wr(r);if((d||!d&&!i)&&((Ss(r)!=="body"||qc(a))&&(c=Bp(r)),wr(r))){const m=Ei(r);u=Ca(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const p=a&&!d&&!i?a2(a,c):vr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-c.scrollTop*u.y+f.y+p.y}}function MG(e){return Array.from(e.getClientRects())}function DG(e){const t=Ar(e),n=Bp(e),r=e.ownerDocument.body,o=un(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=un(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Up(e);const s=-n.scrollTop;return tr(r).direction==="rtl"&&(a+=un(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const rA=25;function $G(e,t){const n=mn(e),r=Ar(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const f=x0();(!f||f&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const u=Up(r);if(u<=0){const f=r.ownerDocument,d=f.body,p=getComputedStyle(d),m=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(r.clientWidth-d.clientWidth-m);b<=rA&&(i-=b)}else u<=rA&&(i+=u);return{width:i,height:a,x:s,y:c}}const LG=new Set(["absolute","fixed"]);function FG(e,t){const n=Ei(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=wr(e)?Ca(e):vr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:a,height:s,x:c,y:u}}function oA(e,t,n){let r;if(t==="viewport")r=$G(e,n);else if(t==="document")r=DG(Ar(e));else if(er(t))r=FG(t,n);else{const o=i2(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return of(r)}function s2(e,t){const n=$o(e);return n===t||!er(n)||za(n)?!1:tr(n).position==="fixed"||s2(n,t)}function BG(e,t){const n=t.get(e);if(n)return n;let r=nc(e,[],!1).filter(s=>er(s)&&Ss(s)!=="body"),o=null;const i=tr(e).position==="fixed";let a=i?$o(e):e;for(;er(a)&&!za(a);){const s=tr(a),c=g0(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&LG.has(o.position)||qc(a)&&!c&&s2(e,a))?r=r.filter(f=>f!==a):o=s,a=$o(a)}return t.set(e,r),r}function UG(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Fp(t)?[]:BG(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((u,f)=>{const d=oA(t,f,o);return u.top=un(d.top,u.top),u.right=Do(d.right,u.right),u.bottom=Do(d.bottom,u.bottom),u.left=un(d.left,u.left),u},oA(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function HG(e){const{width:t,height:n}=o2(e);return{width:t,height:n}}function zG(e,t,n){const r=wr(t),o=Ar(t),i=n==="fixed",a=Ei(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=vr(0);function u(){c.x=Up(o)}if(r||!r&&!i)if((Ss(t)!=="body"||qc(o))&&(s=Bp(t)),r){const m=Ei(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();i&&!r&&o&&u();const f=o&&!r&&!i?a2(o,s):vr(0),d=a.left+s.scrollLeft-c.x-f.x,p=a.top+s.scrollTop-c.y-f.y;return{x:d,y:p,width:a.width,height:a.height}}function Nm(e){return tr(e).position==="static"}function iA(e,t){if(!wr(e)||tr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ar(e)===n&&(n=n.ownerDocument.body),n}function l2(e,t){const n=mn(e);if(Fp(e))return n;if(!wr(e)){let o=$o(e);for(;o&&!za(o);){if(er(o)&&!Nm(o))return o;o=$o(o)}return n}let r=iA(e,t);for(;r&&NG(r)&&Nm(r);)r=iA(r,t);return r&&za(r)&&Nm(r)&&!g0(r)?n:r||TG(e)||n}const WG=async function(e){const t=this.getOffsetParent||l2,n=this.getDimensions,r=await n(e.floating);return{reference:zG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function GG(e){return tr(e).direction==="rtl"}const VG={convertOffsetParentRelativeRectToViewportRelativeRect:kG,getDocumentElement:Ar,getClippingRect:UG,getOffsetParent:l2,getElementRects:WG,getClientRects:MG,getDimensions:HG,getScale:Ca,isElement:er,isRTL:GG};function c2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function KG(e,t){let n=null,r;const o=Ar(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:f,top:d,width:p,height:m}=u;if(s||t(),!p||!m)return;const b=Du(d),y=Du(o.clientWidth-(f+p)),v=Du(o.clientHeight-(d+m)),x=Du(f),w={rootMargin:-b+"px "+-y+"px "+-v+"px "+-x+"px",threshold:un(0,Do(1,c))||1};let E=!0;function A(S){const N=S[0].intersectionRatio;if(N!==c){if(!E)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!c2(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(A,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,w)}n.observe(e)}return a(!0),i}function YG(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=b0(e),f=o||i?[...u?nc(u):[],...nc(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const d=u&&s?KG(u,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(x=>{let[g]=x;g&&g.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=m)==null||w.observe(t)})),n()}),u&&!c&&m.observe(u),m.observe(t));let b,y=c?Ei(e):null;c&&v();function v(){const x=Ei(e);y&&!c2(y,x)&&n(),y=x,b=requestAnimationFrame(v)}return n(),()=>{var x;f.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d==null||d(),(x=m)==null||x.disconnect(),m=null,c&&cancelAnimationFrame(b)}}const qG=xG,XG=bG,ZG=vG,QG=SG,JG=yG,aA=mG,eV=wG,tV=(e,t,n)=>{const r=new Map,o={platform:VG,...n},i={...o.platform,_c:r};return hG(e,t,{...o,platform:i})};var nV=typeof document<"u",rV=function(){},bd=nV?h.useLayoutEffect:rV;function af(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!af(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!af(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function u2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sA(e,t){const n=u2(e);return Math.round(t*n)/n}function _m(e){const t=h.useRef(e);return bd(()=>{t.current=e}),t}function oV(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,d]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=h.useState(r);af(p,r)||m(r);const[b,y]=h.useState(null),[v,x]=h.useState(null),g=h.useCallback(R=>{R!==S.current&&(S.current=R,y(R))},[]),w=h.useCallback(R=>{R!==N.current&&(N.current=R,x(R))},[]),E=i||b,A=a||v,S=h.useRef(null),N=h.useRef(null),_=h.useRef(f),O=c!=null,T=_m(c),j=_m(o),I=_m(u),$=h.useCallback(()=>{if(!S.current||!N.current)return;const R={placement:t,strategy:n,middleware:p};j.current&&(R.platform=j.current),tV(S.current,N.current,R).then(k=>{const H={...k,isPositioned:I.current!==!1};C.current&&!af(_.current,H)&&(_.current=H,Mi.flushSync(()=>{d(H)}))})},[p,t,n,j,I]);bd(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[u]);const C=h.useRef(!1);bd(()=>(C.current=!0,()=>{C.current=!1}),[]),bd(()=>{if(E&&(S.current=E),A&&(N.current=A),E&&A){if(T.current)return T.current(E,A,$);$()}},[E,A,$,T,O]);const P=h.useMemo(()=>({reference:S,floating:N,setReference:g,setFloating:w}),[g,w]),M=h.useMemo(()=>({reference:E,floating:A}),[E,A]),L=h.useMemo(()=>{const R={position:n,left:0,top:0};if(!M.floating)return R;const k=sA(M.floating,f.x),H=sA(M.floating,f.y);return s?{...R,transform:"translate("+k+"px, "+H+"px)",...u2(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:H}},[n,s,M.floating,f.x,f.y]);return h.useMemo(()=>({...f,update:$,refs:P,elements:M,floatingStyles:L}),[f,$,P,M,L])}const iV=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?aA({element:r.current,padding:o}).fn(n):{}:r?aA({element:r,padding:o}).fn(n):{}}}},aV=(e,t)=>({...qG(e),options:[e,t]}),sV=(e,t)=>({...XG(e),options:[e,t]}),lV=(e,t)=>({...eV(e),options:[e,t]}),cV=(e,t)=>({...ZG(e),options:[e,t]}),uV=(e,t)=>({...QG(e),options:[e,t]}),dV=(e,t)=>({...JG(e),options:[e,t]}),fV=(e,t)=>({...iV(e),options:[e,t]});var pV="Arrow",d2=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l.jsx(he.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});d2.displayName=pV;var hV=d2;function f2(e){const[t,n]=h.useState(void 0);return Pt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;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 w0="Popper",[p2,Hp]=nr(w0),[mV,h2]=p2(w0),m2=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return l.jsx(mV,{scope:t,anchor:r,onAnchorChange:o,children:n})};m2.displayName=w0;var v2="PopperAnchor",y2=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=h2(v2,n),a=h.useRef(null),s=Ce(t,a),c=h.useRef(null);return h.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||a.current,u!==c.current&&i.onAnchorChange(c.current)}),r?null:l.jsx(he.div,{...o,ref:s})});y2.displayName=v2;var S0="PopperContent",[vV,yV]=p2(S0),g2=h.forwardRef((e,t)=>{var te,me,V,Q,B,F;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:b,...y}=e,v=h2(S0,n),[x,g]=h.useState(null),w=Ce(t,pe=>g(pe)),[E,A]=h.useState(null),S=f2(E),N=(S==null?void 0:S.width)??0,_=(S==null?void 0:S.height)??0,O=r+(i!=="center"?"-"+i:""),T=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},j=Array.isArray(u)?u:[u],I=j.length>0,$={padding:T,boundary:j.filter(xV),altBoundary:I},{refs:C,floatingStyles:P,placement:M,isPositioned:L,middlewareData:R}=oV({strategy:"fixed",placement:O,whileElementsMounted:(...pe)=>YG(...pe,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[aV({mainAxis:o+_,alignmentAxis:a}),c&&sV({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?lV():void 0,...$}),c&&cV({...$}),uV({...$,apply:({elements:pe,rects:le,availableWidth:Be,availableHeight:Ue})=>{const{width:lt,height:ir}=le.reference,Ln=pe.floating.style;Ln.setProperty("--radix-popper-available-width",`${Be}px`),Ln.setProperty("--radix-popper-available-height",`${Ue}px`),Ln.setProperty("--radix-popper-anchor-width",`${lt}px`),Ln.setProperty("--radix-popper-anchor-height",`${ir}px`)}}),E&&fV({element:E,padding:s}),bV({arrowWidth:N,arrowHeight:_}),p&&dV({strategy:"referenceHidden",...$})]}),[k,H]=w2(M),G=rn(b);Pt(()=>{L&&(G==null||G())},[L,G]);const W=(te=R.arrow)==null?void 0:te.x,J=(me=R.arrow)==null?void 0:me.y,ce=((V=R.arrow)==null?void 0:V.centerOffset)!==0,[Ee,we]=h.useState();return Pt(()=>{x&&we(window.getComputedStyle(x).zIndex)},[x]),l.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...P,transform:L?P.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[(Q=R.transformOrigin)==null?void 0:Q.x,(B=R.transformOrigin)==null?void 0:B.y].join(" "),...((F=R.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(vV,{scope:n,placedSide:k,onArrowChange:A,arrowX:W,arrowY:J,shouldHideArrow:ce,children:l.jsx(he.div,{"data-side":k,"data-align":H,...y,ref:w,style:{...y.style,animation:L?void 0:"none"}})})})});g2.displayName=S0;var x2="PopperArrow",gV={top:"bottom",right:"left",bottom:"top",left:"right"},b2=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=yV(x2,r),a=gV[i.placedSide];return l.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:l.jsx(hV,{...o,ref:n,style:{...o.style,display:"block"}})})});b2.displayName=x2;function xV(e){return e!==null}var bV=e=>({name:"transformOrigin",options:e,fn(t){var v,x,g;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,s=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=w2(n),d={start:"0%",center:"50%",end:"100%"}[f],p=(((x=o.arrow)==null?void 0:x.x)??0)+s/2,m=(((g=o.arrow)==null?void 0:g.y)??0)+c/2;let b="",y="";return u==="bottom"?(b=a?d:`${p}px`,y=`${-c}px`):u==="top"?(b=a?d:`${p}px`,y=`${r.floating.height+c}px`):u==="right"?(b=`${-c}px`,y=a?d:`${m}px`):u==="left"&&(b=`${r.floating.width+c}px`,y=a?d:`${m}px`),{data:{x:b,y}}}});function w2(e){const[t,n="center"]=e.split("-");return[t,n]}var S2=m2,A2=y2,E2=g2,N2=b2,wV="Portal",Xc=h.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=h.useState(!1);Pt(()=>i(!0),[]);const a=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?AH.createPortal(l.jsx(he.div,{...r,ref:t}),a):null});Xc.displayName=wV;function SV(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Er=e=>{const{present:t,children:n}=e,r=AV(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=Ce(r.ref,EV(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};Er.displayName="Presence";function AV(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[s,c]=SV(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=$u(r.current);i.current=s==="mounted"?u:"none"},[s]),Pt(()=>{const u=r.current,f=o.current;if(f!==e){const p=i.current,m=$u(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Pt(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,d=m=>{const y=$u(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&y&&(c("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=m=>{m.target===t&&(i.current=$u(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function $u(e){return(e==null?void 0:e.animationName)||"none"}function EV(e){var r,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var jm="rovingFocusGroup.onEntryFocus",NV={bubbles:!1,cancelable:!0},Zc="RovingFocusGroup",[Ay,_2,_V]=Mp(Zc),[jV,zp]=nr(Zc,[_V]),[CV,OV]=jV(Zc),j2=h.forwardRef((e,t)=>l.jsx(Ay.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Ay.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(TV,{...e,ref:t})})}));j2.displayName=Zc;var TV=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...d}=e,p=h.useRef(null),m=Ce(t,p),b=Dp(i),[y,v]=Mo({prop:a,defaultProp:s??null,onChange:c,caller:Zc}),[x,g]=h.useState(!1),w=rn(u),E=_2(n),A=h.useRef(!1),[S,N]=h.useState(0);return h.useEffect(()=>{const _=p.current;if(_)return _.addEventListener(jm,w),()=>_.removeEventListener(jm,w)},[w]),l.jsx(CV,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:y,onItemFocus:h.useCallback(_=>v(_),[v]),onItemShiftTab:h.useCallback(()=>g(!0),[]),onFocusableItemAdd:h.useCallback(()=>N(_=>_+1),[]),onFocusableItemRemove:h.useCallback(()=>N(_=>_-1),[]),children:l.jsx(he.div,{tabIndex:x||S===0?-1:0,"data-orientation":r,...d,ref:m,style:{outline:"none",...e.style},onMouseDown:ee(e.onMouseDown,()=>{A.current=!0}),onFocus:ee(e.onFocus,_=>{const O=!A.current;if(_.target===_.currentTarget&&O&&!x){const T=new CustomEvent(jm,NV);if(_.currentTarget.dispatchEvent(T),!T.defaultPrevented){const j=E().filter(M=>M.focusable),I=j.find(M=>M.active),$=j.find(M=>M.id===y),P=[I,$,...j].filter(Boolean).map(M=>M.ref.current);T2(P,f)}}A.current=!1}),onBlur:ee(e.onBlur,()=>g(!1))})})}),C2="RovingFocusGroupItem",O2=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...s}=e,c=mr(),u=i||c,f=OV(C2,n),d=f.currentTabStopId===u,p=_2(n),{onFocusableItemAdd:m,onFocusableItemRemove:b,currentTabStopId:y}=f;return h.useEffect(()=>{if(r)return m(),()=>b()},[r,m,b]),l.jsx(Ay.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:l.jsx(he.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:ee(e.onMouseDown,v=>{r?f.onItemFocus(u):v.preventDefault()}),onFocus:ee(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:ee(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const x=RV(v,f.orientation,f.dir);if(x!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let w=p().filter(E=>E.focusable).map(E=>E.ref.current);if(x==="last")w.reverse();else if(x==="prev"||x==="next"){x==="prev"&&w.reverse();const E=w.indexOf(v.currentTarget);w=f.loop?kV(w,E+1):w.slice(E+1)}setTimeout(()=>T2(w))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:y!=null}):a})})});O2.displayName=C2;var PV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function IV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function RV(e,t,n){const r=IV(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return PV[r]}function T2(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function kV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var P2=j2,I2=O2;function MV(e){const t=DV(e),n=h.forwardRef((r,o)=>{const{children:i,...a}=r,s=h.Children.toArray(i),c=s.find(LV);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function DV(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const a=BV(o),s=FV(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $V=Symbol("radix.slottable");function LV(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$V}function FV(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function BV(e){var r,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var UV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Zi=new WeakMap,Lu=new WeakMap,Fu={},Cm=0,R2=function(e){return e&&(e.host||R2(e.parentNode))},HV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=R2(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})},zV=function(e,t,n,r){var o=HV(t,Array.isArray(e)?e:[e]);Fu[n]||(Fu[n]=new WeakMap);var i=Fu[n],a=[],s=new Set,c=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))f(p);else try{var m=p.getAttribute(r),b=m!==null&&m!=="false",y=(Zi.get(p)||0)+1,v=(i.get(p)||0)+1;Zi.set(p,y),i.set(p,v),a.push(p),y===1&&b&&Lu.set(p,!0),v===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return f(t),s.clear(),Cm++,function(){a.forEach(function(d){var p=Zi.get(d)-1,m=i.get(d)-1;Zi.set(d,p),i.set(d,m),p||(Lu.has(d)||d.removeAttribute(r),Lu.delete(d)),m||d.removeAttribute(n)}),Cm--,Cm||(Zi=new WeakMap,Zi=new WeakMap,Lu=new WeakMap,Fu={})}},A0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=UV(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),zV(r,o,n,"aria-hidden")):function(){return null}},ur=function(){return ur=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ur.apply(this,arguments)};function k2(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function WV(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var wd="right-scroll-bar-position",Sd="width-before-scroll-bar",GV="with-scroll-bars-hidden",VV="--removed-body-scroll-bar-size";function Om(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function KV(e,t){var n=h.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var YV=typeof window<"u"?h.useLayoutEffect:h.useEffect,lA=new WeakMap;function qV(e,t){var n=KV(null,function(r){return e.forEach(function(o){return Om(o,r)})});return YV(function(){var r=lA.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Om(s,null)}),i.forEach(function(s){o.has(s)||Om(s,a)})}lA.set(n,e)},[e]),n}function XV(e){return e}function ZV(e,t){t===void 0&&(t=XV);var n=[],r=!1,o={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(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function QV(e){e===void 0&&(e={});var t=ZV(null);return t.options=ur({async:!0,ssr:!1},e),t}var M2=function(e){var t=e.sideCar,n=k2(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 h.createElement(r,ur({},n))};M2.isSideCarExport=!0;function JV(e,t){return e.useMedium(t),M2}var D2=QV(),Tm=function(){},Wp=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Tm,onWheelCapture:Tm,onTouchMoveCapture:Tm}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,m=e.noRelative,b=e.noIsolation,y=e.inert,v=e.allowPinchZoom,x=e.as,g=x===void 0?"div":x,w=e.gapMode,E=k2(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,S=qV([n,t]),N=ur(ur({},E),o);return h.createElement(h.Fragment,null,f&&h.createElement(A,{sideCar:D2,removeScrollBar:u,shards:d,noRelative:m,noIsolation:b,inert:y,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:w}),a?h.cloneElement(h.Children.only(s),ur(ur({},N),{ref:S})):h.createElement(g,ur({},N,{className:c,ref:S}),s))});Wp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wp.classNames={fullWidth:Sd,zeroRight:wd};var eK=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tK(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eK();return t&&e.setAttribute("nonce",t),e}function nK(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function rK(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var oK=function(){var e=0,t=null;return{add:function(n){e==0&&(t=tK())&&(nK(t,n),rK(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iK=function(){var e=oK();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$2=function(){var e=iK(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},aK={left:0,top:0,right:0,gap:0},Pm=function(e){return parseInt(e||"",10)||0},sK=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Pm(n),Pm(r),Pm(o)]},lK=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aK;var t=sK(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])}},cK=$2(),Oa="data-scroll-locked",uK=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
414
+ .`.concat(GV,` {
415
+ overflow: hidden `).concat(r,`;
416
+ padding-right: `).concat(s,"px ").concat(r,`;
417
+ }
418
+ body[`).concat(Oa,`] {
419
+ overflow: hidden `).concat(r,`;
420
+ overscroll-behavior: contain;
421
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
422
+ padding-left: `.concat(o,`px;
423
+ padding-top: `).concat(i,`px;
424
+ padding-right: `).concat(a,`px;
425
+ margin-left:0;
426
+ margin-top:0;
427
+ margin-right: `).concat(s,"px ").concat(r,`;
428
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
429
+ }
430
+
431
+ .`).concat(wd,` {
432
+ right: `).concat(s,"px ").concat(r,`;
433
+ }
434
+
435
+ .`).concat(Sd,` {
436
+ margin-right: `).concat(s,"px ").concat(r,`;
437
+ }
438
+
439
+ .`).concat(wd," .").concat(wd,` {
440
+ right: 0 `).concat(r,`;
441
+ }
442
+
443
+ .`).concat(Sd," .").concat(Sd,` {
444
+ margin-right: 0 `).concat(r,`;
445
+ }
446
+
447
+ body[`).concat(Oa,`] {
448
+ `).concat(VV,": ").concat(s,`px;
449
+ }
450
+ `)},cA=function(){var e=parseInt(document.body.getAttribute(Oa)||"0",10);return isFinite(e)?e:0},dK=function(){h.useEffect(function(){return document.body.setAttribute(Oa,(cA()+1).toString()),function(){var e=cA()-1;e<=0?document.body.removeAttribute(Oa):document.body.setAttribute(Oa,e.toString())}},[])},fK=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;dK();var i=h.useMemo(function(){return lK(o)},[o]);return h.createElement(cK,{styles:uK(i,!t,o,n?"":"!important")})},Ey=!1;if(typeof window<"u")try{var Bu=Object.defineProperty({},"passive",{get:function(){return Ey=!0,!0}});window.addEventListener("test",Bu,Bu),window.removeEventListener("test",Bu,Bu)}catch{Ey=!1}var Qi=Ey?{passive:!1}:!1,pK=function(e){return e.tagName==="TEXTAREA"},L2=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pK(e)&&n[t]==="visible")},hK=function(e){return L2(e,"overflowY")},mK=function(e){return L2(e,"overflowX")},uA=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=F2(e,r);if(o){var i=B2(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},vK=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},yK=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},F2=function(e,t){return e==="v"?hK(t):mK(t)},B2=function(e,t){return e==="v"?vK(t):yK(t)},gK=function(e,t){return e==="h"&&t==="rtl"?-1:1},xK=function(e,t,n,r,o){var i=gK(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),u=!1,f=a>0,d=0,p=0;do{if(!s)break;var m=B2(e,s),b=m[0],y=m[1],v=m[2],x=y-v-i*b;(b||x)&&F2(e,s)&&(d+=x,p+=b);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&Math.abs(d)<1||!f&&Math.abs(p)<1)&&(u=!0),u},Uu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},dA=function(e){return[e.deltaX,e.deltaY]},fA=function(e){return e&&"current"in e?e.current:e},bK=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wK=function(e){return`
451
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
452
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
453
+ `)},SK=0,Ji=[];function AK(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(SK++)[0],i=h.useState($2)[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=WV([e.lockRef.current],(e.shards||[]).map(fA),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!a.current.allowPinchZoom;var x=Uu(y),g=n.current,w="deltaX"in y?y.deltaX:g[0]-x[0],E="deltaY"in y?y.deltaY:g[1]-x[1],A,S=y.target,N=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in y&&N==="h"&&S.type==="range")return!1;var _=window.getSelection(),O=_&&_.anchorNode,T=O?O===S||O.contains(S):!1;if(T)return!1;var j=uA(N,S);if(!j)return!0;if(j?A=N:(A=N==="v"?"h":"v",j=uA(N,S)),!j)return!1;if(!r.current&&"changedTouches"in y&&(w||E)&&(r.current=A),!A)return!0;var I=r.current||A;return xK(I,v,y,I==="h"?w:E)},[]),c=h.useCallback(function(y){var v=y;if(!(!Ji.length||Ji[Ji.length-1]!==i)){var x="deltaY"in v?dA(v):Uu(v),g=t.current.filter(function(A){return A.name===v.type&&(A.target===v.target||v.target===A.shadowParent)&&bK(A.delta,x)})[0];if(g&&g.should){v.cancelable&&v.preventDefault();return}if(!g){var w=(a.current.shards||[]).map(fA).filter(Boolean).filter(function(A){return A.contains(v.target)}),E=w.length>0?s(v,w[0]):!a.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),u=h.useCallback(function(y,v,x,g){var w={name:y,delta:v,target:x,should:g,shadowParent:EK(x)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=h.useCallback(function(y){n.current=Uu(y),r.current=void 0},[]),d=h.useCallback(function(y){u(y.type,dA(y),y.target,s(y,e.lockRef.current))},[]),p=h.useCallback(function(y){u(y.type,Uu(y),y.target,s(y,e.lockRef.current))},[]);h.useEffect(function(){return Ji.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Qi),document.addEventListener("touchmove",c,Qi),document.addEventListener("touchstart",f,Qi),function(){Ji=Ji.filter(function(y){return y!==i}),document.removeEventListener("wheel",c,Qi),document.removeEventListener("touchmove",c,Qi),document.removeEventListener("touchstart",f,Qi)}},[]);var m=e.removeScrollBar,b=e.inert;return h.createElement(h.Fragment,null,b?h.createElement(i,{styles:wK(o)}):null,m?h.createElement(fK,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function EK(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const NK=JV(D2,AK);var Gp=h.forwardRef(function(e,t){return h.createElement(Wp,ur({},e,{ref:t,sideCar:NK}))});Gp.classNames=Wp.classNames;var Ny=["Enter"," "],_K=["ArrowDown","PageUp","Home"],U2=["ArrowUp","PageDown","End"],jK=[..._K,...U2],CK={ltr:[...Ny,"ArrowRight"],rtl:[...Ny,"ArrowLeft"]},OK={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Qc="Menu",[rc,TK,PK]=Mp(Qc),[Hi,H2]=nr(Qc,[PK,Hp,zp]),Vp=Hp(),z2=zp(),[IK,zi]=Hi(Qc),[RK,Jc]=Hi(Qc),W2=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=Vp(t),[c,u]=h.useState(null),f=h.useRef(!1),d=rn(i),p=Dp(o);return h.useEffect(()=>{const m=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),l.jsx(S2,{...s,children:l.jsx(IK,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:u,children:l.jsx(RK,{scope:t,onClose:h.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:a,children:r})})})};W2.displayName=Qc;var kK="MenuAnchor",E0=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vp(n);return l.jsx(A2,{...o,...r,ref:t})});E0.displayName=kK;var N0="MenuPortal",[MK,G2]=Hi(N0,{forceMount:void 0}),V2=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=zi(N0,t);return l.jsx(MK,{scope:t,forceMount:n,children:l.jsx(Er,{present:n||i.open,children:l.jsx(Xc,{asChild:!0,container:o,children:r})})})};V2.displayName=N0;var On="MenuContent",[DK,_0]=Hi(On),K2=h.forwardRef((e,t)=>{const n=G2(On,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=zi(On,e.__scopeMenu),a=Jc(On,e.__scopeMenu);return l.jsx(rc.Provider,{scope:e.__scopeMenu,children:l.jsx(Er,{present:r||i.open,children:l.jsx(rc.Slot,{scope:e.__scopeMenu,children:a.modal?l.jsx($K,{...o,ref:t}):l.jsx(LK,{...o,ref:t})})})})}),$K=h.forwardRef((e,t)=>{const n=zi(On,e.__scopeMenu),r=h.useRef(null),o=Ce(t,r);return h.useEffect(()=>{const i=r.current;if(i)return A0(i)},[]),l.jsx(j0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ee(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),LK=h.forwardRef((e,t)=>{const n=zi(On,e.__scopeMenu);return l.jsx(j0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),FK=MV("MenuContent.ScrollLock"),j0=h.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:m,disableOutsideScroll:b,...y}=e,v=zi(On,n),x=Jc(On,n),g=Vp(n),w=z2(n),E=TK(n),[A,S]=h.useState(null),N=h.useRef(null),_=Ce(t,N,v.onContentChange),O=h.useRef(0),T=h.useRef(""),j=h.useRef(0),I=h.useRef(null),$=h.useRef("right"),C=h.useRef(0),P=b?Gp:h.Fragment,M=b?{as:FK,allowPinchZoom:!0}:void 0,L=k=>{var te,me;const H=T.current+k,G=E().filter(V=>!V.disabled),W=document.activeElement,J=(te=G.find(V=>V.ref.current===W))==null?void 0:te.textValue,ce=G.map(V=>V.textValue),Ee=ZK(ce,H,J),we=(me=G.find(V=>V.textValue===Ee))==null?void 0:me.ref.current;(function V(Q){T.current=Q,window.clearTimeout(O.current),Q!==""&&(O.current=window.setTimeout(()=>V(""),1e3))})(H),we&&setTimeout(()=>we.focus())};h.useEffect(()=>()=>window.clearTimeout(O.current),[]),h0();const R=h.useCallback(k=>{var G,W;return $.current===((G=I.current)==null?void 0:G.side)&&JK(k,(W=I.current)==null?void 0:W.area)},[]);return l.jsx(DK,{scope:n,searchRef:T,onItemEnter:h.useCallback(k=>{R(k)&&k.preventDefault()},[R]),onItemLeave:h.useCallback(k=>{var H;R(k)||((H=N.current)==null||H.focus(),S(null))},[R]),onTriggerLeave:h.useCallback(k=>{R(k)&&k.preventDefault()},[R]),pointerGraceTimerRef:j,onPointerGraceIntentChange:h.useCallback(k=>{I.current=k},[]),children:l.jsx(P,{...M,children:l.jsx($p,{asChild:!0,trapped:o,onMountAutoFocus:ee(i,k=>{var H;k.preventDefault(),(H=N.current)==null||H.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:l.jsx(Yc,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:m,children:l.jsx(P2,{asChild:!0,...w,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:A,onCurrentTabStopIdChange:S,onEntryFocus:ee(c,k=>{x.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(E2,{role:"menu","aria-orientation":"vertical","data-state":cM(v.open),"data-radix-menu-content":"",dir:x.dir,...g,...y,ref:_,style:{outline:"none",...y.style},onKeyDown:ee(y.onKeyDown,k=>{const G=k.target.closest("[data-radix-menu-content]")===k.currentTarget,W=k.ctrlKey||k.altKey||k.metaKey,J=k.key.length===1;G&&(k.key==="Tab"&&k.preventDefault(),!W&&J&&L(k.key));const ce=N.current;if(k.target!==ce||!jK.includes(k.key))return;k.preventDefault();const we=E().filter(te=>!te.disabled).map(te=>te.ref.current);U2.includes(k.key)&&we.reverse(),qK(we)}),onBlur:ee(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(O.current),T.current="")}),onPointerMove:ee(e.onPointerMove,oc(k=>{const H=k.target,G=C.current!==k.clientX;if(k.currentTarget.contains(H)&&G){const W=k.clientX>C.current?"right":"left";$.current=W,C.current=k.clientX}}))})})})})})})});K2.displayName=On;var BK="MenuGroup",C0=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(he.div,{role:"group",...r,ref:t})});C0.displayName=BK;var UK="MenuLabel",Y2=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(he.div,{...r,ref:t})});Y2.displayName=UK;var sf="MenuItem",pA="menu.itemSelect",Kp=h.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=h.useRef(null),a=Jc(sf,e.__scopeMenu),s=_0(sf,e.__scopeMenu),c=Ce(t,i),u=h.useRef(!1),f=()=>{const d=i.current;if(!n&&d){const p=new CustomEvent(pA,{bubbles:!0,cancelable:!0});d.addEventListener(pA,m=>r==null?void 0:r(m),{once:!0}),p0(d,p),p.defaultPrevented?u.current=!1:a.onClose()}};return l.jsx(q2,{...o,ref:c,disabled:n,onClick:ee(e.onClick,f),onPointerDown:d=>{var p;(p=e.onPointerDown)==null||p.call(e,d),u.current=!0},onPointerUp:ee(e.onPointerUp,d=>{var p;u.current||(p=d.currentTarget)==null||p.click()}),onKeyDown:ee(e.onKeyDown,d=>{const p=s.searchRef.current!=="";n||p&&d.key===" "||Ny.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Kp.displayName=sf;var q2=h.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=_0(sf,n),s=z2(n),c=h.useRef(null),u=Ce(t,c),[f,d]=h.useState(!1),[p,m]=h.useState("");return h.useEffect(()=>{const b=c.current;b&&m((b.textContent??"").trim())},[i.children]),l.jsx(rc.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:l.jsx(I2,{asChild:!0,...s,focusable:!r,children:l.jsx(he.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:ee(e.onPointerMove,oc(b=>{r?a.onItemLeave(b):(a.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ee(e.onPointerLeave,oc(b=>a.onItemLeave(b))),onFocus:ee(e.onFocus,()=>d(!0)),onBlur:ee(e.onBlur,()=>d(!1))})})})}),HK="MenuCheckboxItem",X2=h.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return l.jsx(tM,{scope:e.__scopeMenu,checked:n,children:l.jsx(Kp,{role:"menuitemcheckbox","aria-checked":lf(n)?"mixed":n,...o,ref:t,"data-state":T0(n),onSelect:ee(o.onSelect,()=>r==null?void 0:r(lf(n)?!0:!n),{checkForDefaultPrevented:!1})})})});X2.displayName=HK;var Z2="MenuRadioGroup",[zK,WK]=Hi(Z2,{value:void 0,onValueChange:()=>{}}),Q2=h.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=rn(r);return l.jsx(zK,{scope:e.__scopeMenu,value:n,onValueChange:i,children:l.jsx(C0,{...o,ref:t})})});Q2.displayName=Z2;var J2="MenuRadioItem",eM=h.forwardRef((e,t)=>{const{value:n,...r}=e,o=WK(J2,e.__scopeMenu),i=n===o.value;return l.jsx(tM,{scope:e.__scopeMenu,checked:i,children:l.jsx(Kp,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":T0(i),onSelect:ee(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});eM.displayName=J2;var O0="MenuItemIndicator",[tM,GK]=Hi(O0,{checked:!1}),nM=h.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=GK(O0,n);return l.jsx(Er,{present:r||lf(i.checked)||i.checked===!0,children:l.jsx(he.span,{...o,ref:t,"data-state":T0(i.checked)})})});nM.displayName=O0;var VK="MenuSeparator",rM=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(he.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});rM.displayName=VK;var KK="MenuArrow",oM=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vp(n);return l.jsx(N2,{...o,...r,ref:t})});oM.displayName=KK;var YK="MenuSub",[g1e,iM]=Hi(YK),ul="MenuSubTrigger",aM=h.forwardRef((e,t)=>{const n=zi(ul,e.__scopeMenu),r=Jc(ul,e.__scopeMenu),o=iM(ul,e.__scopeMenu),i=_0(ul,e.__scopeMenu),a=h.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=i,u={__scopeMenu:e.__scopeMenu},f=h.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return h.useEffect(()=>f,[f]),h.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),c(null)}},[s,c]),l.jsx(E0,{asChild:!0,...u,children:l.jsx(q2,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":cM(n.open),...e,ref:eo(t,o.onTriggerChange),onClick:d=>{var p;(p=e.onClick)==null||p.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ee(e.onPointerMove,oc(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:ee(e.onPointerLeave,oc(d=>{var m,b;f();const p=(m=n.content)==null?void 0:m.getBoundingClientRect();if(p){const y=(b=n.content)==null?void 0:b.dataset.side,v=y==="right",x=v?-5:5,g=p[v?"left":"right"],w=p[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+x,y:d.clientY},{x:g,y:p.top},{x:w,y:p.top},{x:w,y:p.bottom},{x:g,y:p.bottom}],side:y}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ee(e.onKeyDown,d=>{var m;const p=i.searchRef.current!=="";e.disabled||p&&d.key===" "||CK[r.dir].includes(d.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),d.preventDefault())})})})});aM.displayName=ul;var sM="MenuSubContent",lM=h.forwardRef((e,t)=>{const n=G2(On,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=zi(On,e.__scopeMenu),a=Jc(On,e.__scopeMenu),s=iM(sM,e.__scopeMenu),c=h.useRef(null),u=Ce(t,c);return l.jsx(rc.Provider,{scope:e.__scopeMenu,children:l.jsx(Er,{present:r||i.open,children:l.jsx(rc.Slot,{scope:e.__scopeMenu,children:l.jsx(j0,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;a.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:ee(e.onFocusOutside,f=>{f.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ee(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:ee(e.onKeyDown,f=>{var m;const d=f.currentTarget.contains(f.target),p=OK[a.dir].includes(f.key);d&&p&&(i.onOpenChange(!1),(m=s.trigger)==null||m.focus(),f.preventDefault())})})})})})});lM.displayName=sM;function cM(e){return e?"open":"closed"}function lf(e){return e==="indeterminate"}function T0(e){return lf(e)?"indeterminate":e?"checked":"unchecked"}function qK(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function XK(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function ZK(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=XK(e,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function QK(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],c=t[a],u=s.x,f=s.y,d=c.x,p=c.y;f>r!=p>r&&n<(d-u)*(r-f)/(p-f)+u&&(o=!o)}return o}function JK(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return QK(n,t)}function oc(e){return t=>t.pointerType==="mouse"?e(t):void 0}var e9=W2,t9=E0,n9=V2,r9=K2,o9=C0,i9=Y2,a9=Kp,s9=X2,l9=Q2,c9=eM,u9=nM,d9=rM,f9=oM,p9=aM,h9=lM,Yp="DropdownMenu",[m9]=nr(Yp,[H2]),qt=H2(),[v9,uM]=m9(Yp),dM=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,c=qt(t),u=h.useRef(null),[f,d]=Mo({prop:o,defaultProp:i??!1,onChange:a,caller:Yp});return l.jsx(v9,{scope:t,triggerId:mr(),triggerRef:u,contentId:mr(),open:f,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(p=>!p),[d]),modal:s,children:l.jsx(e9,{...c,open:f,onOpenChange:d,dir:r,modal:s,children:n})})};dM.displayName=Yp;var fM="DropdownMenuTrigger",pM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=uM(fM,n),a=qt(n);return l.jsx(t9,{asChild:!0,...a,children:l.jsx(he.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:eo(t,i.triggerRef),onPointerDown:ee(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:ee(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});pM.displayName=fM;var y9="DropdownMenuPortal",hM=e=>{const{__scopeDropdownMenu:t,...n}=e,r=qt(t);return l.jsx(n9,{...r,...n})};hM.displayName=y9;var mM="DropdownMenuContent",vM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=uM(mM,n),i=qt(n),a=h.useRef(!1);return l.jsx(r9,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:ee(e.onCloseAutoFocus,s=>{var c;a.current||(c=o.triggerRef.current)==null||c.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:ee(e.onInteractOutside,s=>{const c=s.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,f=c.button===2||u;(!o.modal||f)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});vM.displayName=mM;var g9="DropdownMenuGroup",x9=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qt(n);return l.jsx(o9,{...o,...r,ref:t})});x9.displayName=g9;var b9="DropdownMenuLabel",yM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qt(n);return l.jsx(i9,{...o,...r,ref:t})});yM.displayName=b9;var w9="DropdownMenuItem",gM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qt(n);return l.jsx(a9,{...o,...r,ref:t})});gM.displayName=w9;var S9="DropdownMenuCheckboxItem",xM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qt(n);return l.jsx(s9,{...o,...r,ref:t})});xM.displayName=S9;var A9="DropdownMenuRadioGroup",E9=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qt(n);return l.jsx(l9,{...o,...r,ref:t})});E9.displayName=A9;var N9="DropdownMenuRadioItem",bM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qt(n);return l.jsx(c9,{...o,...r,ref:t})});bM.displayName=N9;var _9="DropdownMenuItemIndicator",wM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qt(n);return l.jsx(u9,{...o,...r,ref:t})});wM.displayName=_9;var j9="DropdownMenuSeparator",SM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qt(n);return l.jsx(d9,{...o,...r,ref:t})});SM.displayName=j9;var C9="DropdownMenuArrow",O9=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qt(n);return l.jsx(f9,{...o,...r,ref:t})});O9.displayName=C9;var T9="DropdownMenuSubTrigger",AM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qt(n);return l.jsx(p9,{...o,...r,ref:t})});AM.displayName=T9;var P9="DropdownMenuSubContent",EM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qt(n);return l.jsx(h9,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});EM.displayName=P9;var I9=dM,R9=pM,k9=hM,NM=vM,_M=yM,jM=gM,CM=xM,OM=bM,TM=wM,PM=SM,IM=AM,RM=EM;const kM=I9,MM=R9,M9=h.forwardRef(({className:e,inset:t,children:n,...r},o)=>l.jsxs(IM,{ref:o,className:oe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,l.jsx(Qd,{className:"ml-auto h-4 w-4"})]}));M9.displayName=IM.displayName;const D9=h.forwardRef(({className:e,...t},n)=>l.jsx(RM,{ref:n,className:oe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));D9.displayName=RM.displayName;const P0=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(k9,{children:l.jsx(NM,{ref:r,sideOffset:t,className:oe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));P0.displayName=NM.displayName;const va=h.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(jM,{ref:r,className:oe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));va.displayName=jM.displayName;const $9=h.forwardRef(({className:e,children:t,checked:n,...r},o)=>l.jsxs(CM,{ref:o,className:oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(TM,{children:l.jsx(Tp,{className:"h-4 w-4"})})}),t]}));$9.displayName=CM.displayName;const L9=h.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(OM,{ref:r,className:oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(TM,{children:l.jsx(h6,{className:"h-2 w-2 fill-current"})})}),t]}));L9.displayName=OM.displayName;const F9=h.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(_M,{ref:r,className:oe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));F9.displayName=_M.displayName;const B9=h.forwardRef(({className:e,...t},n)=>l.jsx(PM,{ref:n,className:oe("-mx-1 my-1 h-px bg-muted",e),...t}));B9.displayName=PM.displayName;const U9={theme:"system",setTheme:()=>null},DM=h.createContext(U9);function H9({children:e,defaultTheme:t="system",storageKey:n="truthound-theme",...r}){const[o,i]=h.useState(()=>localStorage.getItem(n)||t);h.useEffect(()=>{const s=window.document.documentElement;if(s.classList.remove("light","dark"),o==="system"){const c=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";s.classList.add(c);return}s.classList.add(o)},[o]);const a={theme:o,setTheme:s=>{localStorage.setItem(n,s),i(s)}};return l.jsx(DM.Provider,{...r,value:a,children:e})}const z9=()=>{const e=h.useContext(DM);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},W9="/assets/logo--IpBiMPK.png",G9=[{key:"dashboard",href:"/",icon:g6},{key:"sources",href:"/sources",icon:hn},{key:"catalog",href:"/catalog",icon:v6},{key:"glossary",href:"/glossary",icon:Ua},{key:"drift",href:"/drift",icon:Dk},{key:"schedules",href:"/schedules",icon:ec},{key:"activity",href:"/activity",icon:Ik},{key:"notifications",href:"/notifications",icon:kk}];function V9(){const e=Vc(),t=ye(Li),{locale:n,setLocale:r}=o6(),{theme:o,setTheme:i}=z9(),[a,s]=h.useState(!1),c=MS.find(u=>u.code===n);return l.jsxs("div",{className:"min-h-screen bg-background",children:[a&&l.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 lg:hidden",onClick:()=>s(!1)}),l.jsxs("aside",{className:oe("fixed left-0 top-0 bottom-0 z-50 w-48 transform bg-card border-r transition-transform duration-200 lg:translate-x-0",a?"translate-x-0":"-translate-x-full"),children:[l.jsxs("div",{className:"flex h-16 items-center gap-2 border-b px-6",children:[l.jsx("div",{className:"h-8 w-8 rounded-lg bg-primary flex items-center justify-center",children:l.jsx("img",{src:W9,alt:"Truthound",className:"h-6 w-6"})}),l.jsx("span",{className:"font-semibold text-lg",children:"Truthound"})]}),l.jsx("nav",{className:"flex-1 space-y-1 p-4",children:G9.map(u=>{const f=u.href==="/"?e.pathname==="/":e.pathname.startsWith(u.href);return l.jsxs(Pe,{to:u.href,onClick:()=>s(!1),className:oe("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors",f?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:[l.jsx(u.icon,{className:"h-5 w-5"}),t[u.key]]},u.key)})})]}),l.jsxs("div",{className:"lg:pl-48",children:[l.jsxs("header",{className:"sticky top-0 z-30 flex h-16 items-center gap-4 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 px-6",children:[l.jsx(Y,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>s(!0),children:l.jsx(b6,{className:"h-5 w-5"})}),l.jsx("div",{className:"flex-1"}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsxs(kM,{children:[l.jsx(MM,{asChild:!0,children:l.jsx(Y,{variant:"ghost",size:"icon",title:c==null?void 0:c.nativeName,children:l.jsx(u0,{className:"h-4 w-4"})})}),l.jsx(P0,{align:"end",children:MS.map(u=>l.jsxs(va,{onClick:()=>r(u.code),className:"flex items-center justify-between gap-2",children:[l.jsx("span",{children:u.nativeName}),n===u.code&&l.jsx(Tp,{className:"h-4 w-4 text-primary"})]},u.code))})]}),l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>i(o==="dark"?"light":"dark"),title:"Toggle theme",children:o==="dark"?l.jsx(O6,{className:"h-4 w-4"}):l.jsx(w6,{className:"h-4 w-4"})})]})]}),l.jsx("main",{className:"p-6",children:l.jsx(v5,{})})]})]})}function K9({message:e="Loading...",fullScreen:t=!0}){const n=t?"flex items-center justify-center h-screen w-full":"flex items-center justify-center p-8";return l.jsx("div",{className:n,children:l.jsxs("div",{className:"flex flex-col items-center gap-3",children:[l.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"}),l.jsx("span",{className:"text-sm text-muted-foreground",children:e})]})})}const Y9="dashboard",q9={nodeType:"translation",translation:{en:{title:"Data Health Overview",subtitle:"Data quality overview and monitoring",totalSources:"Total Sources",configuredSources:"Configured data sources",passed:"Passed",validationPassed:"Validation passed",failed:"Failed",validationFailed:"Validation failed",pending:"Pending",notValidated:"Not yet validated",recentSources:"Recent Sources",recentSourcesDesc:"Your configured data sources",viewAll:"View All",noSources:"No data sources configured yet",addFirstSource:"Add Your First Source",lastValidated:"Last validated",loadError:"Failed to load dashboard data",sources:"Data Sources",passRate:"Pass Rate",failedToday:"Failed Today",scheduled:"Scheduled",recentFailures:"Recent Failures",upcomingSchedules:"Upcoming Schedules",noFailures:"No recent failures",noSchedules:"No upcoming schedules"},ko:{title:"데이터 품질 현황",subtitle:"데이터 품질 개요 및 모니터링",totalSources:"전체 소스",configuredSources:"설정된 데이터 소스",passed:"통과",validationPassed:"검증 통과",failed:"실패",validationFailed:"검증 실패",pending:"대기 중",notValidated:"검증 전",recentSources:"최근 소스",recentSourcesDesc:"설정된 데이터 소스 목록",viewAll:"전체 보기",noSources:"설정된 데이터 소스가 없습니다",addFirstSource:"첫 번째 소스 추가하기",lastValidated:"마지막 검증",loadError:"대시보드 데이터를 불러오지 못했습니다",sources:"데이터 소스",passRate:"통과율",failedToday:"오늘 실패",scheduled:"스케줄됨",recentFailures:"최근 실패",upcomingSchedules:"예정된 스케줄",noFailures:"최근 실패가 없습니다",noSchedules:"예정된 스케줄이 없습니다"}}},X9=["dashboard::local::src/content/dashboard.content.ts"],Z9={key:Y9,content:q9,localIds:X9},Q9="common",J9={nodeType:"translation",translation:{en:{save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",create:"Create",update:"Update",close:"Close",confirm:"Confirm",loading:"Loading...",error:"Error",success:"Success",warning:"Warning",info:"Info",search:"Search",filter:"Filter",refresh:"Refresh",back:"Back",next:"Next",previous:"Previous",yes:"Yes",no:"No",all:"All",none:"None",actions:"Actions",status:"Status",name:"Name",type:"Type",description:"Description",createdAt:"Created At",updatedAt:"Updated At",active:"Active",inactive:"Inactive",enabled:"Enabled",disabled:"Disabled",noData:"No data available",noResults:"No results found",retry:"Retry",source:"Source",schedule:"Schedule",never:"Never",saving:"Saving..."},ko:{save:"저장",cancel:"취소",delete:"삭제",edit:"편집",add:"추가",create:"생성",update:"수정",close:"닫기",confirm:"확인",loading:"로딩 중...",error:"오류",success:"성공",warning:"경고",info:"정보",search:"검색",filter:"필터",refresh:"새로고침",back:"뒤로",next:"다음",previous:"이전",yes:"예",no:"아니오",all:"전체",none:"없음",actions:"작업",status:"상태",name:"이름",type:"유형",description:"설명",createdAt:"생성일",updatedAt:"수정일",active:"활성",inactive:"비활성",enabled:"활성화됨",disabled:"비활성화됨",noData:"데이터가 없습니다",noResults:"검색 결과가 없습니다",retry:"다시 시도",source:"소스",schedule:"스케줄",never:"없음",saving:"저장 중..."}}},e7=["common::local::src/content/common.content.ts"],Xt={key:Q9,content:J9,localIds:e7},t7="validation",n7={nodeType:"translation",translation:{en:{title:"Validations",run:"Run Validation",running:"Running...",passed:"Passed",failed:"Failed",error:"Error",pending:"Pending",success:"Passed",warning:"Warning",passRate:"Pass Rate",totalRules:"Total Rules",duration:"Duration",totalIssues:"Total Issues",criticalIssues:"Critical Issues",highIssues:"High Issues",mediumIssues:"Medium Issues",lowIssues:"Low Issues",noIssues:"No issues found",viewDetails:"View Details",severity:{critical:"Critical",high:"High",medium:"Medium",low:"Low"}},ko:{title:"검증",run:"검증 실행",running:"실행 중...",passed:"통과",failed:"실패",error:"오류",pending:"대기 중",success:"통과",warning:"경고",passRate:"통과율",totalRules:"전체 규칙",duration:"소요 시간",totalIssues:"전체 이슈",criticalIssues:"심각한 이슈",highIssues:"높은 이슈",mediumIssues:"중간 이슈",lowIssues:"낮은 이슈",noIssues:"발견된 이슈가 없습니다",viewDetails:"상세 보기",severity:{critical:"심각",high:"높음",medium:"중간",low:"낮음"}}}},r7=["validation::local::src/content/validation.content.ts"],I0={key:t7,content:n7,localIds:r7},X=h.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:oe("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));X.displayName="Card";const ve=h.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:oe("flex flex-col space-y-1.5 p-6",e),...t}));ve.displayName="CardHeader";const xe=h.forwardRef(({className:e,...t},n)=>l.jsx("h3",{ref:n,className:oe("text-2xl font-semibold leading-none tracking-tight",e),...t}));xe.displayName="CardTitle";const yr=h.forwardRef(({className:e,...t},n)=>l.jsx("p",{ref:n,className:oe("text-sm text-muted-foreground",e),...t}));yr.displayName="CardDescription";const Z=h.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:oe("p-6 pt-0",e),...t}));Z.displayName="CardContent";const o7=h.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:oe("flex items-center p-6 pt-0",e),...t}));o7.displayName="CardFooter";const i7=Rp("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs 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 hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",warning:"border-transparent bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",critical:"border-transparent bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200",high:"border-transparent bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200",medium:"border-transparent bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",low:"border-transparent bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"}},defaultVariants:{variant:"default"}});function ae({className:e,variant:t,...n}){return l.jsx("div",{className:oe(i7({variant:t}),e),...n})}const a7="/api/v1";class s7 extends Error{constructor(t,n,r){super(`API Error: ${t} ${n}`),this.status=t,this.statusText=n,this.data=r,this.name="ApiError"}}async function se(e,t={}){const{params:n,...r}=t;let o=`${a7}${e}`;if(n){const c=new URLSearchParams;Object.entries(n).forEach(([f,d])=>{d!=null&&c.append(f,String(d))});const u=c.toString();u&&(o+=`?${u}`)}const i=new Headers(r.headers);!i.has("Content-Type")&&r.body&&i.set("Content-Type","application/json");const a=await fetch(o,{...r,headers:i});if(!a.ok){let c;try{c=await a.json()}catch{}throw new s7(a.status,a.statusText,c)}const s=a.headers.get("Content-Type");return!s||!s.includes("application/json")?{}:a.json()}async function eu(e){return se("/sources",{params:e})}async function R0(e){return(await se(`/sources/${e}`)).data}async function l7(e){return se(`/sources/${e}`,{method:"DELETE"})}async function _y(e,t){return(await se(`/validations/sources/${e}/validate`,{method:"POST",body:JSON.stringify(t||{})})).data}async function c7(e){return(await se(`/validations/${e}`)).data}async function u7(e,t){return se(`/validations/sources/${e}/validations`,{params:t})}async function $M(e){return(await se(`/sources/${e}/schema`)).data}async function LM(e,t){return(await se(`/sources/${e}/learn`,{method:"POST",body:JSON.stringify(t||{})})).data}async function d7(e,t){return(await se(`/sources/${e}/profile`,{method:"POST",body:void 0})).data}async function f7(e,t){return se(`/sources/${e}/history`,{params:t})}async function p7(e){return se("/drift/compare",{method:"POST",body:JSON.stringify(e)})}async function h7(e){return se("/drift/comparisons",{params:e})}async function m7(e){return se("/schedules",{params:e})}async function v7(e){return se("/schedules",{method:"POST",body:JSON.stringify(e)})}async function y7(e){return se(`/schedules/${e}`,{method:"DELETE"})}async function g7(e){return se(`/schedules/${e}/pause`,{method:"POST"})}async function x7(e){return se(`/schedules/${e}/resume`,{method:"POST"})}async function b7(e){return se(`/schedules/${e}/run`,{method:"POST"})}async function w7(e){return se("/notifications/channels",{params:e})}async function S7(e,t){return se(`/notifications/channels/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function A7(e){return se(`/notifications/channels/${e}`,{method:"DELETE"})}async function E7(e){return se(`/notifications/channels/${e}/test`,{method:"POST"})}async function N7(e){return se("/notifications/rules",{params:e})}async function _7(e,t){return se(`/notifications/rules/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function j7(e){return se(`/notifications/rules/${e}`,{method:"DELETE"})}async function C7(e){return se("/notifications/logs",{params:e})}async function O7(e){return se("/notifications/logs/stats",{params:e})}async function T7(e){return se("/glossary/terms",{params:e})}async function FM(e){return se(`/glossary/terms/${e}`)}async function P7(e){return se("/glossary/terms",{method:"POST",body:JSON.stringify(e)})}async function I7(e,t){return se(`/glossary/terms/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function R7(e){return se(`/glossary/terms/${e}`,{method:"DELETE"})}async function k7(e){return se(`/glossary/terms/${e}/history`)}async function M7(e){return se(`/glossary/terms/${e}/relationships`)}async function D7(){return se("/glossary/categories")}async function $7(e){return se("/glossary/categories",{method:"POST",body:JSON.stringify(e)})}async function L7(e,t){return se(`/glossary/categories/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function F7(e){return se(`/glossary/categories/${e}`,{method:"DELETE"})}async function B7(e){return se("/catalog/assets",{params:e})}async function BM(e){return se(`/catalog/assets/${e}`)}async function U7(e){return se("/catalog/assets",{method:"POST",body:JSON.stringify(e)})}async function H7(e,t){return se(`/catalog/assets/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function z7(e){return se(`/catalog/assets/${e}`,{method:"DELETE"})}async function W7(e,t){return se(`/catalog/columns/${e}/term`,{method:"PUT",body:JSON.stringify({term_id:t})})}async function G7(e){return se(`/catalog/columns/${e}/term`,{method:"DELETE"})}async function V7(e,t){return se("/comments",{params:{resource_type:e,resource_id:t}})}async function hA(e){return se("/comments",{method:"POST",body:JSON.stringify(e)})}async function K7(e,t){return se(`/comments/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function Y7(e){return se(`/comments/${e}`,{method:"DELETE"})}async function q7(e){return se("/activities",{params:e})}async function UM(e){return se("/validators",{params:e})}const lo={get:e=>se(e),post:(e,t)=>se(e,{method:"POST",body:JSON.stringify(t)}),put:(e,t)=>se(e,{method:"PUT",body:JSON.stringify(t)}),delete:e=>se(e,{method:"DELETE"})};function Hu({value:e,duration:t=1e3,className:n}){const[r,o]=h.useState(0),[i,a]=h.useState(!0),s=h.useRef(null),c=h.useRef(null),u=h.useRef(!1);return h.useEffect(()=>{if(u.current){o(e);return}a(!0);const f=0,d=e;if(d===0){o(0),a(!1),u.current=!0;return}const p=m=>{c.current===null&&(c.current=m);const b=m-c.current,y=Math.min(b/t,1),v=y===1?1:1-Math.pow(2,-10*y),x=f+(d-f)*v;o(x),y<1?s.current=requestAnimationFrame(p):(o(d),a(!1),u.current=!0)};return c.current=null,s.current=requestAnimationFrame(p),()=>{s.current&&cancelAnimationFrame(s.current)}},[e,t]),l.jsx("span",{className:oe("inline-block transition-all",i&&"animate-in fade-in zoom-in-50 duration-500",n),children:Math.round(r)})}function zu({children:e,className:t,glowColor:n="white"}){const r=h.useRef(null),[o,i]=h.useState({x:0,y:0}),[a,s]=h.useState(!1),c=d=>{if(!r.current)return;const p=r.current.getBoundingClientRect(),m=d.clientX-p.left,b=d.clientY-p.top;i({x:m,y:b})},u=()=>s(!0),f=()=>s(!1);return l.jsxs(X,{ref:r,className:oe("relative overflow-hidden transition-all duration-300",t),onMouseMove:c,onMouseEnter:u,onMouseLeave:f,style:{transform:a?"translateY(-2px)":"translateY(0)"},children:[l.jsx("div",{className:"pointer-events-none absolute inset-0 z-10 transition-opacity duration-300",style:{opacity:a?1:0,background:`radial-gradient(
454
+ 350px circle at ${o.x}px ${o.y}px,
455
+ ${n}15 0%,
456
+ ${n}08 25%,
457
+ transparent 50%
458
+ )`}}),l.jsx("div",{className:"pointer-events-none absolute inset-0 z-10 rounded-lg transition-opacity duration-300",style:{opacity:a?1:0,background:`radial-gradient(
459
+ 200px circle at ${o.x}px ${o.y}px,
460
+ ${n}20 0%,
461
+ transparent 70%
462
+ )`,mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"xor",WebkitMaskComposite:"xor",padding:"1px"}}),l.jsx("div",{className:"pointer-events-none absolute inset-0 z-10 transition-opacity duration-500",style:{opacity:a?.6:0,background:`linear-gradient(
463
+ 105deg,
464
+ transparent 40%,
465
+ ${n}10 45%,
466
+ ${n}25 50%,
467
+ ${n}10 55%,
468
+ transparent 60%
469
+ )`,backgroundSize:"200% 100%",backgroundPosition:a?"100% 0":"-100% 0",transition:"background-position 0.8s ease, opacity 0.3s ease"}}),e]})}function X7(){const e=ye(Li),t=ye(Z9),n=ye(Xt),r=ye(I0),[o,i]=h.useState([]),[a,s]=h.useState(!0),[c,u]=h.useState(null),f=h.useMemo(()=>v=>{if(!v)return null;switch(v){case"passed":return r.passed;case"success":return r.success;case"failed":return r.failed;case"error":return r.error;case"pending":return r.pending;case"warning":return r.warning;default:return v}},[r]);h.useEffect(()=>{d()},[]);async function d(){try{s(!0);const v=await eu({limit:10});i(v.data)}catch(v){u(v)}finally{s(!1)}}const p=o.length,m=o.filter(v=>v.latest_validation_status==="success").length,b=o.filter(v=>v.latest_validation_status==="failed"||v.latest_validation_status==="error").length,y=o.filter(v=>!v.latest_validation_status||v.latest_validation_status==="pending"||v.latest_validation_status==="running").length;return a?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):c?l.jsxs("div",{className:"flex flex-col items-center justify-center h-64 gap-4",children:[l.jsx(To,{className:"h-12 w-12 text-destructive"}),l.jsx("p",{className:"text-muted-foreground",children:t.loadError}),l.jsx(Y,{onClick:d,children:n.retry})]}):l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:e.dashboard}),l.jsx("p",{className:"text-muted-foreground",children:t.subtitle})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[l.jsxs(zu,{className:"bg-gradient-to-br from-primary/10 via-primary/5 to-transparent border-primary/20",glowColor:"#fd9e4b",children:[l.jsx("div",{className:"absolute top-0 right-0 -mt-4 -mr-4 h-24 w-24 rounded-full bg-primary/10 blur-2xl"}),l.jsx(Z,{className:"p-6",children:l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-xl bg-primary/20 flex items-center justify-center",children:l.jsx(hn,{className:"h-7 w-7 text-primary"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:t.totalSources}),l.jsx("p",{className:"text-3xl font-bold",children:l.jsx(Hu,{value:p,duration:1200})}),l.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t.configuredSources})]})]})})]}),l.jsxs(zu,{className:"bg-gradient-to-br from-green-500/10 via-green-500/5 to-transparent border-green-500/20",glowColor:"#22c55e",children:[l.jsx("div",{className:"absolute top-0 right-0 -mt-4 -mr-4 h-24 w-24 rounded-full bg-green-500/10 blur-2xl"}),l.jsx(Z,{className:"p-6",children:l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-xl bg-green-500/20 flex items-center justify-center",children:l.jsx(Ql,{className:"h-7 w-7 text-green-500"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:t.passed}),l.jsx("p",{className:"text-3xl font-bold text-green-500",children:l.jsx(Hu,{value:m,duration:1200})}),l.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t.validationPassed})]})]})})]}),l.jsxs(zu,{className:"bg-gradient-to-br from-red-500/10 via-red-500/5 to-transparent border-red-500/20",glowColor:"#ef4444",children:[l.jsx("div",{className:"absolute top-0 right-0 -mt-4 -mr-4 h-24 w-24 rounded-full bg-red-500/10 blur-2xl"}),l.jsx(Z,{className:"p-6",children:l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-xl bg-red-500/20 flex items-center justify-center",children:l.jsx(To,{className:"h-7 w-7 text-red-500"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:t.failed}),l.jsx("p",{className:"text-3xl font-bold text-red-500",children:l.jsx(Hu,{value:b,duration:1200})}),l.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t.validationFailed})]})]})})]}),l.jsxs(zu,{className:"bg-gradient-to-br from-yellow-500/10 via-yellow-500/5 to-transparent border-yellow-500/20",glowColor:"#eab308",children:[l.jsx("div",{className:"absolute top-0 right-0 -mt-4 -mr-4 h-24 w-24 rounded-full bg-yellow-500/10 blur-2xl"}),l.jsx(Z,{className:"p-6",children:l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-xl bg-yellow-500/20 flex items-center justify-center",children:l.jsx(Ai,{className:"h-7 w-7 text-yellow-500"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:t.pending}),l.jsx("p",{className:"text-3xl font-bold text-yellow-500",children:l.jsx(Hu,{value:y,duration:1200})}),l.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t.notValidated})]})]})})]})]}),l.jsxs(X,{children:[l.jsxs(ve,{className:"flex flex-row items-center justify-between",children:[l.jsxs("div",{children:[l.jsx(xe,{children:t.recentSources}),l.jsx("p",{className:"text-sm text-muted-foreground",children:t.recentSourcesDesc})]}),l.jsx(Y,{asChild:!0,variant:"outline",size:"sm",children:l.jsxs(Pe,{to:"/sources",children:[t.viewAll,l.jsx(hy,{className:"ml-2 h-4 w-4"})]})})]}),l.jsx(Z,{children:o.length===0?l.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[l.jsx(hn,{className:"h-12 w-12 text-muted-foreground/50 mb-4"}),l.jsx("p",{className:"text-muted-foreground mb-4",children:t.noSources}),l.jsx(Y,{asChild:!0,children:l.jsx(Pe,{to:"/sources",children:t.addFirstSource})})]}):l.jsx("div",{className:"space-y-4",children:o.slice(0,5).map(v=>l.jsxs(Pe,{to:`/sources/${v.id}`,className:"flex items-center justify-between p-4 rounded-lg border hover:bg-accent transition-colors",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-10 w-10 rounded-lg bg-primary/10 flex items-center justify-center",children:l.jsx(hn,{className:"h-5 w-5 text-primary"})}),l.jsxs("div",{children:[l.jsx("p",{className:"font-medium",children:v.name}),l.jsxs("p",{className:"text-sm text-muted-foreground",children:[v.type," • ",t.lastValidated,":"," ",yn(v.last_validated_at)]})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[v.latest_validation_status&&l.jsx(ae,{variant:v.latest_validation_status==="success"?"success":v.latest_validation_status==="failed"||v.latest_validation_status==="error"?"destructive":v.latest_validation_status==="pending"||v.latest_validation_status==="running"?"warning":"secondary",children:f(v.latest_validation_status)}),l.jsx(hy,{className:"h-4 w-4 text-muted-foreground"})]})]},v.id))})})]})]})}const Z7="sources",Q7={nodeType:"translation",translation:{en:{title:"Data Sources",subtitle:"Manage your data sources and validations",addSource:"Add Source",addFirstSource:"Add Your First Source",editSource:"Edit Source",deleteSource:"Delete Source",noSources:"No data sources configured",noSourcesYet:"No sources yet",noSourcesDesc:"Add your first data source to start monitoring data quality",sourceName:"Source Name",sourceType:"Source Type",sourcePath:"Path / Connection",lastValidated:"Last validated",never:"Never",validate:"Validate",loadError:"Failed to load sources",deleteSuccess:"Source deleted successfully",deleteFailed:"Failed to delete source",validationStarted:"Validation Started",runningValidation:"Running validation...",validationPassed:"Validation Passed",validationFailed:"Validation Failed",validationError:"Failed to run validation",confirmDelete:"Are you sure you want to delete this source? This will also delete all related schemas, rules, and validations.",types:{file:"File",csv:"CSV File",parquet:"Parquet File",json:"JSON File",database:"Database",postgresql:"PostgreSQL",mysql:"MySQL",snowflake:"Snowflake",bigquery:"BigQuery"}},ko:{title:"데이터 소스",subtitle:"데이터 소스 및 검증 관리",addSource:"소스 추가",addFirstSource:"첫 번째 소스 추가하기",editSource:"소스 편집",deleteSource:"소스 삭제",noSources:"설정된 데이터 소스가 없습니다",noSourcesYet:"소스가 없습니다",noSourcesDesc:"데이터 품질 모니터링을 시작하려면 첫 번째 소스를 추가하세요",sourceName:"소스 이름",sourceType:"소스 유형",sourcePath:"경로 / 연결",lastValidated:"마지막 검증",never:"없음",validate:"검증",loadError:"소스를 불러오지 못했습니다",deleteSuccess:"소스가 삭제되었습니다",deleteFailed:"소스 삭제에 실패했습니다",validationStarted:"검증 시작",runningValidation:"검증 실행 중...",validationPassed:"검증 통과",validationFailed:"검증 실패",validationError:"검증 실행에 실패했습니다",confirmDelete:"이 소스를 삭제하시겠습니까? 관련된 모든 스키마, 규칙, 검증 결과도 함께 삭제됩니다.",types:{file:"파일",csv:"CSV 파일",parquet:"Parquet 파일",json:"JSON 파일",database:"데이터베이스",postgresql:"PostgreSQL",mysql:"MySQL",snowflake:"Snowflake",bigquery:"BigQuery"}}}},J7=["sources::local::src/content/sources.content.ts"],eY={key:Z7,content:Q7,localIds:J7};function U(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(typeof e=="object"&&e!==null){const t=e;if("value"in t){const n=t.value;if(typeof n=="string")return n;if(typeof n=="number")return String(n)}if("props"in t&&typeof t.props=="object"&&t.props!==null){const n=t.props;if("value"in n){const r=n.value;if(typeof r=="string")return r}if("children"in n&&typeof n.children=="string")return n.children}}return String(e)}const tY=1,nY=1e6;let Im=0;function rY(){return Im=(Im+1)%Number.MAX_SAFE_INTEGER,Im.toString()}const Rm=new Map,mA=e=>{if(Rm.has(e))return;const t=setTimeout(()=>{Rm.delete(e),Al({type:"REMOVE_TOAST",toastId:e})},nY);Rm.set(e,t)},oY=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,tY)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?mA(n):e.toasts.forEach(r=>{mA(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Ad=[];let Ed={toasts:[]};function Al(e){Ed=oY(Ed,e),Ad.forEach(t=>{t(Ed)})}function iY({...e}){const t=rY(),n=o=>Al({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Al({type:"DISMISS_TOAST",toastId:t});return Al({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function It(){const[e,t]=h.useState(Ed);return h.useEffect(()=>(Ad.push(t),()=>{const n=Ad.indexOf(t);n>-1&&Ad.splice(n,1)}),[e]),{...e,toast:iY,dismiss:n=>Al({type:"DISMISS_TOAST",toastId:n})}}function aY(e){const t=sY(e),n=h.forwardRef((r,o)=>{const{children:i,...a}=r,s=h.Children.toArray(i),c=s.find(cY);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function sY(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const a=dY(o),s=uY(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lY=Symbol("radix.slottable");function cY(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lY}function uY(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function dY(e){var r,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qp="Dialog",[HM,zM]=nr(qp),[fY,rr]=HM(qp),WM=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=h.useRef(null),c=h.useRef(null),[u,f]=Mo({prop:r,defaultProp:o??!1,onChange:i,caller:qp});return l.jsx(fY,{scope:t,triggerRef:s,contentRef:c,contentId:mr(),titleId:mr(),descriptionId:mr(),open:u,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(d=>!d),[f]),modal:a,children:n})};WM.displayName=qp;var GM="DialogTrigger",VM=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=rr(GM,n),i=Ce(t,o.triggerRef);return l.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":D0(o.open),...r,ref:i,onClick:ee(e.onClick,o.onOpenToggle)})});VM.displayName=GM;var k0="DialogPortal",[pY,KM]=HM(k0,{forceMount:void 0}),YM=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=rr(k0,t);return l.jsx(pY,{scope:t,forceMount:n,children:h.Children.map(r,a=>l.jsx(Er,{present:n||i.open,children:l.jsx(Xc,{asChild:!0,container:o,children:a})}))})};YM.displayName=k0;var cf="DialogOverlay",qM=h.forwardRef((e,t)=>{const n=KM(cf,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rr(cf,e.__scopeDialog);return i.modal?l.jsx(Er,{present:r||i.open,children:l.jsx(mY,{...o,ref:t})}):null});qM.displayName=cf;var hY=aY("DialogOverlay.RemoveScroll"),mY=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=rr(cf,n);return l.jsx(Gp,{as:hY,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(he.div,{"data-state":D0(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ni="DialogContent",XM=h.forwardRef((e,t)=>{const n=KM(Ni,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rr(Ni,e.__scopeDialog);return l.jsx(Er,{present:r||i.open,children:i.modal?l.jsx(vY,{...o,ref:t}):l.jsx(yY,{...o,ref:t})})});XM.displayName=Ni;var vY=h.forwardRef((e,t)=>{const n=rr(Ni,e.__scopeDialog),r=h.useRef(null),o=Ce(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return A0(i)},[]),l.jsx(ZM,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ee(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ee(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:ee(e.onFocusOutside,i=>i.preventDefault())})}),yY=h.forwardRef((e,t)=>{const n=rr(Ni,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return l.jsx(ZM,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),ZM=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=rr(Ni,n),c=h.useRef(null),u=Ce(t,c);return h0(),l.jsxs(l.Fragment,{children:[l.jsx($p,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:l.jsx(Yc,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":D0(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(xY,{titleId:s.titleId}),l.jsx(wY,{contentRef:c,descriptionId:s.descriptionId})]})]})}),M0="DialogTitle",QM=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=rr(M0,n);return l.jsx(he.h2,{id:o.titleId,...r,ref:t})});QM.displayName=M0;var JM="DialogDescription",eD=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=rr(JM,n);return l.jsx(he.p,{id:o.descriptionId,...r,ref:t})});eD.displayName=JM;var tD="DialogClose",nD=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=rr(tD,n);return l.jsx(he.button,{type:"button",...r,ref:t,onClick:ee(e.onClick,()=>o.onOpenChange(!1))})});nD.displayName=tD;function D0(e){return e?"open":"closed"}var rD="DialogTitleWarning",[gY,oD]=wW(rD,{contentName:Ni,titleName:M0,docsSlug:"dialog"}),xY=({titleId:e})=>{const t=oD(rD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
470
+
471
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
472
+
473
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},bY="DialogDescriptionWarning",wY=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oD(bY).contentName}}.`;return h.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},iD=WM,aD=VM,sD=YM,$0=qM,L0=XM,F0=QM,B0=eD,U0=nD,SY=Symbol("radix.slottable");function AY(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=SY,t}var lD="AlertDialog",[EY]=nr(lD,[zM]),to=zM(),cD=e=>{const{__scopeAlertDialog:t,...n}=e,r=to(t);return l.jsx(iD,{...r,...n,modal:!0})};cD.displayName=lD;var NY="AlertDialogTrigger",_Y=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=to(n);return l.jsx(aD,{...o,...r,ref:t})});_Y.displayName=NY;var jY="AlertDialogPortal",uD=e=>{const{__scopeAlertDialog:t,...n}=e,r=to(t);return l.jsx(sD,{...r,...n})};uD.displayName=jY;var CY="AlertDialogOverlay",dD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=to(n);return l.jsx($0,{...o,...r,ref:t})});dD.displayName=CY;var Ta="AlertDialogContent",[OY,TY]=EY(Ta),PY=AY("AlertDialogContent"),fD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=to(n),a=h.useRef(null),s=Ce(t,a),c=h.useRef(null);return l.jsx(gY,{contentName:Ta,titleName:pD,docsSlug:"alert-dialog",children:l.jsx(OY,{scope:n,cancelRef:c,children:l.jsxs(L0,{role:"alertdialog",...i,...o,ref:s,onOpenAutoFocus:ee(o.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=c.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[l.jsx(PY,{children:r}),l.jsx(RY,{contentRef:a})]})})})});fD.displayName=Ta;var pD="AlertDialogTitle",hD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=to(n);return l.jsx(F0,{...o,...r,ref:t})});hD.displayName=pD;var mD="AlertDialogDescription",vD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=to(n);return l.jsx(B0,{...o,...r,ref:t})});vD.displayName=mD;var IY="AlertDialogAction",yD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=to(n);return l.jsx(U0,{...o,...r,ref:t})});yD.displayName=IY;var gD="AlertDialogCancel",xD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=TY(gD,n),i=to(n),a=Ce(t,o);return l.jsx(U0,{...i,...r,ref:a})});xD.displayName=gD;var RY=({contentRef:e})=>{const t=`\`${Ta}\` requires a description for the component to be accessible for screen reader users.
474
+
475
+ You can add a description to the \`${Ta}\` by passing a \`${mD}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
476
+
477
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Ta}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
478
+
479
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return h.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},kY=cD,MY=uD,bD=dD,wD=fD,SD=yD,AD=xD,ED=hD,ND=vD;const DY=kY,$Y=MY,_D=h.forwardRef(({className:e,...t},n)=>l.jsx(bD,{className:oe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));_D.displayName=bD.displayName;const jD=h.forwardRef(({className:e,...t},n)=>l.jsxs($Y,{children:[l.jsx(_D,{}),l.jsx(wD,{ref:n,className:oe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-lg",e),...t})]}));jD.displayName=wD.displayName;const CD=({className:e,...t})=>l.jsx("div",{className:oe("flex flex-col space-y-2 text-center sm:text-left",e),...t});CD.displayName="AlertDialogHeader";const OD=({className:e,...t})=>l.jsx("div",{className:oe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});OD.displayName="AlertDialogFooter";const TD=h.forwardRef(({className:e,...t},n)=>l.jsx(ED,{ref:n,className:oe("text-lg font-semibold",e),...t}));TD.displayName=ED.displayName;const PD=h.forwardRef(({className:e,...t},n)=>l.jsx(ND,{ref:n,className:oe("text-sm text-muted-foreground",e),...t}));PD.displayName=ND.displayName;const ID=h.forwardRef(({className:e,...t},n)=>l.jsx(SD,{ref:n,className:oe(kp(),e),...t}));ID.displayName=SD.displayName;const RD=h.forwardRef(({className:e,...t},n)=>l.jsx(AD,{ref:n,className:oe(kp({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));RD.displayName=AD.displayName;function tu(){const e=ye(Xt),[t,n]=h.useState({isOpen:!1,title:"",description:"",confirmText:"",cancelText:"",variant:"default",resolve:null}),r=h.useCallback(s=>new Promise(c=>{n({isOpen:!0,title:s.title,description:s.description,confirmText:s.confirmText||U(e.confirm),cancelText:s.cancelText||U(e.cancel),variant:s.variant||"default",resolve:c})}),[e]),o=h.useCallback(()=>{var s;(s=t.resolve)==null||s.call(t,!0),n(c=>({...c,isOpen:!1,resolve:null}))},[t.resolve]),i=h.useCallback(()=>{var s;(s=t.resolve)==null||s.call(t,!1),n(c=>({...c,isOpen:!1,resolve:null}))},[t.resolve]),a=h.useCallback(()=>l.jsx(DY,{open:t.isOpen,onOpenChange:s=>!s&&i(),children:l.jsxs(jD,{children:[l.jsxs(CD,{children:[l.jsx(TD,{children:t.title}),t.description&&l.jsx(PD,{children:t.description})]}),l.jsxs(OD,{children:[l.jsx(RD,{onClick:i,children:t.cancelText}),l.jsx(ID,{onClick:o,className:oe(t.variant==="destructive"&&kp({variant:"destructive"})),children:t.confirmText})]})]})}),[t,o,i]);return{confirm:r,ConfirmDialog:a}}function LY(){const e=ye(Li),t=ye(eY),n=ye(Xt),r=ye(I0),[o,i]=h.useState([]),[a,s]=h.useState(!0),{toast:c}=It(),{confirm:u,ConfirmDialog:f}=tu(),d=y=>{if(!y)return null;switch(y){case"passed":return r.passed;case"success":return r.success;case"failed":return r.failed;case"error":return r.error;case"pending":return r.pending;case"warning":return r.warning;default:return y}},p=h.useCallback(async()=>{try{s(!0);const y=await eu();i(y.data)}catch{c({title:U(n.error),description:U(t.loadError),variant:"destructive"})}finally{s(!1)}},[c,n,t]);h.useEffect(()=>{p()},[p]);async function m(y){if(await u({title:U(t.deleteSource),description:U(t.confirmDelete),confirmText:U(n.delete),variant:"destructive"}))try{await l7(y),i(x=>x.filter(g=>g.id!==y)),c({title:U(n.success),description:U(t.deleteSuccess)})}catch{c({title:U(n.error),description:U(t.deleteFailed),variant:"destructive"})}}async function b(y){try{c({title:U(t.validationStarted),description:U(t.runningValidation)});const v=await _y(y,{});i(x=>x.map(g=>g.id===y?{...g,latest_validation_status:v.status}:g)),c({title:U(v.passed?t.validationPassed:t.validationFailed),description:`${v.total_issues} issues found`,variant:v.passed?"default":"destructive"})}catch{c({title:U(n.error),description:U(t.validationError),variant:"destructive"})}}return a?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:e.sources}),l.jsx("p",{className:"text-muted-foreground",children:t.subtitle})]}),l.jsxs(Y,{children:[l.jsx(Vt,{className:"mr-2 h-4 w-4"}),t.addSource]})]}),o.length===0?l.jsx(X,{children:l.jsxs(Z,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(hn,{className:"h-16 w-16 text-muted-foreground/50 mb-4"}),l.jsx("h3",{className:"text-lg font-semibold mb-2",children:t.noSourcesYet}),l.jsx("p",{className:"text-muted-foreground text-center mb-4",children:t.noSourcesDesc}),l.jsxs(Y,{children:[l.jsx(Vt,{className:"mr-2 h-4 w-4"}),t.addFirstSource]})]})}):l.jsx("div",{className:"grid gap-4",children:o.map(y=>l.jsx(X,{children:l.jsx(Z,{className:"p-6",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-12 w-12 rounded-lg bg-primary/10 flex items-center justify-center",children:l.jsx(hn,{className:"h-6 w-6 text-primary"})}),l.jsxs("div",{children:[l.jsx(Pe,{to:`/sources/${y.id}`,className:"font-semibold hover:text-primary transition-colors",children:y.name}),l.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[l.jsx(ae,{variant:"outline",children:y.type}),l.jsx("span",{children:"•"}),l.jsxs("span",{children:[t.lastValidated,": ",yn(y.last_validated_at)]})]}),y.description&&l.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:y.description})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[y.latest_validation_status&&l.jsx(ae,{variant:y.latest_validation_status==="success"||y.latest_validation_status==="passed"?"success":y.latest_validation_status==="failed"?"destructive":y.latest_validation_status==="warning"?"warning":"secondary",children:d(y.latest_validation_status)}),l.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>b(y.id),children:[l.jsx(ef,{className:"mr-2 h-4 w-4"}),t.validate]}),l.jsx(Y,{variant:"ghost",size:"icon",asChild:!0,children:l.jsx(Pe,{to:`/sources/${y.id}`,children:l.jsx(c0,{className:"h-4 w-4"})})}),l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>m(y.id),children:l.jsx(Gr,{className:"h-4 w-4 text-destructive"})})]})]})})},y.id))}),l.jsx(f,{})]})}const Wi=iD,H0=aD,FY=sD,kD=h.forwardRef(({className:e,...t},n)=>l.jsx($0,{ref:n,className:oe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));kD.displayName=$0.displayName;const Uo=h.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(FY,{children:[l.jsx(kD,{}),l.jsxs(L0,{ref:r,className:oe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-lg",e),...n,children:[t,l.jsxs(U0,{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:[l.jsx(d0,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Uo.displayName=L0.displayName;const Ho=({className:e,...t})=>l.jsx("div",{className:oe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ho.displayName="DialogHeader";const nu=({className:e,...t})=>l.jsx("div",{className:oe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});nu.displayName="DialogFooter";const zo=h.forwardRef(({className:e,...t},n)=>l.jsx(F0,{ref:n,className:oe("text-lg font-semibold leading-none tracking-tight",e),...t}));zo.displayName=F0.displayName;const ru=h.forwardRef(({className:e,...t},n)=>l.jsx(B0,{ref:n,className:oe("text-sm text-muted-foreground",e),...t}));ru.displayName=B0.displayName;const St=h.forwardRef(({className:e,type:t,...n},r)=>l.jsx("input",{type:t,className:oe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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}));St.displayName="Input";var BY=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],UY=BY.reduce((e,t)=>{const n=qk(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:a,...s}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),HY="Label",MD=h.forwardRef((e,t)=>l.jsx(UY.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));MD.displayName=HY;var DD=MD;const zY=Rp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),vt=h.forwardRef(({className:e,...t},n)=>l.jsx(DD,{ref:n,className:oe(zY(),e),...t}));vt.displayName=DD.displayName;function $D(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Xp="Switch",[WY]=nr(Xp),[GY,VY]=WY(Xp),LD=h.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:c="on",onCheckedChange:u,form:f,...d}=e,[p,m]=h.useState(null),b=Ce(t,w=>m(w)),y=h.useRef(!1),v=p?f||!!p.closest("form"):!0,[x,g]=Mo({prop:o,defaultProp:i??!1,onChange:u,caller:Xp});return l.jsxs(GY,{scope:n,checked:x,disabled:s,children:[l.jsx(he.button,{type:"button",role:"switch","aria-checked":x,"aria-required":a,"data-state":HD(x),"data-disabled":s?"":void 0,disabled:s,value:c,...d,ref:b,onClick:ee(e.onClick,w=>{g(E=>!E),v&&(y.current=w.isPropagationStopped(),y.current||w.stopPropagation())})}),v&&l.jsx(UD,{control:p,bubbles:!y.current,name:r,value:c,checked:x,required:a,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});LD.displayName=Xp;var FD="SwitchThumb",BD=h.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=VY(FD,n);return l.jsx(he.span,{"data-state":HD(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});BD.displayName=FD;var KY="SwitchBubbleInput",UD=h.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const a=h.useRef(null),s=Ce(a,i),c=$D(n),u=f2(t);return h.useEffect(()=>{const f=a.current;if(!f)return;const d=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(d,"checked").set;if(c!==n&&m){const b=new Event("click",{bubbles:r});m.call(f,n),f.dispatchEvent(b)}},[c,n,r]),l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});UD.displayName=KY;function HD(e){return e?"checked":"unchecked"}var zD=LD,YY=BD;const Wa=h.forwardRef(({className:e,...t},n)=>l.jsx(zD,{className:oe("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:l.jsx(YY,{className:oe("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Wa.displayName=zD.displayName;function vA(e,[t,n]){return Math.min(n,Math.max(t,e))}function qY(e){const t=XY(e),n=h.forwardRef((r,o)=>{const{children:i,...a}=r,s=h.Children.toArray(i),c=s.find(QY);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function XY(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const a=eq(o),s=JY(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ZY=Symbol("radix.slottable");function QY(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ZY}function JY(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function eq(e){var r,o;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=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var WD=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"}),tq="VisuallyHidden",z0=h.forwardRef((e,t)=>l.jsx(he.span,{...e,ref:t,style:{...WD,...e.style}}));z0.displayName=tq;var nq=[" ","Enter","ArrowUp","ArrowDown"],rq=[" ","Enter"],_i="Select",[Zp,Qp,oq]=Mp(_i),[As]=nr(_i,[oq,Hp]),Jp=Hp(),[iq,Wo]=As(_i),[aq,sq]=As(_i),GD=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:c,dir:u,name:f,autoComplete:d,disabled:p,required:m,form:b}=e,y=Jp(t),[v,x]=h.useState(null),[g,w]=h.useState(null),[E,A]=h.useState(!1),S=Dp(u),[N,_]=Mo({prop:r,defaultProp:o??!1,onChange:i,caller:_i}),[O,T]=Mo({prop:a,defaultProp:s,onChange:c,caller:_i}),j=h.useRef(null),I=v?b||!!v.closest("form"):!0,[$,C]=h.useState(new Set),P=Array.from($).map(M=>M.props.value).join(";");return l.jsx(S2,{...y,children:l.jsxs(iq,{required:m,scope:t,trigger:v,onTriggerChange:x,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:A,contentId:mr(),value:O,onValueChange:T,open:N,onOpenChange:_,dir:S,triggerPointerDownPosRef:j,disabled:p,children:[l.jsx(Zp.Provider,{scope:t,children:l.jsx(aq,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(M=>{C(L=>new Set(L).add(M))},[]),onNativeOptionRemove:h.useCallback(M=>{C(L=>{const R=new Set(L);return R.delete(M),R})},[]),children:n})}),I?l.jsxs(m$,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:d,value:O,onChange:M=>T(M.target.value),disabled:p,form:b,children:[O===void 0?l.jsx("option",{value:""}):null,Array.from($)]},P):null]})})};GD.displayName=_i;var VD="SelectTrigger",KD=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Jp(n),a=Wo(VD,n),s=a.disabled||r,c=Ce(t,a.onTriggerChange),u=Qp(n),f=h.useRef("touch"),[d,p,m]=y$(y=>{const v=u().filter(w=>!w.disabled),x=v.find(w=>w.value===a.value),g=g$(v,y,x);g!==void 0&&a.onValueChange(g.value)}),b=y=>{s||(a.onOpenChange(!0),m()),y&&(a.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return l.jsx(A2,{asChild:!0,...i,children:l.jsx(he.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":v$(a.value)?"":void 0,...o,ref:c,onClick:ee(o.onClick,y=>{y.currentTarget.focus(),f.current!=="mouse"&&b(y)}),onPointerDown:ee(o.onPointerDown,y=>{f.current=y.pointerType;const v=y.target;v.hasPointerCapture(y.pointerId)&&v.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(b(y),y.preventDefault())}),onKeyDown:ee(o.onKeyDown,y=>{const v=d.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&p(y.key),!(v&&y.key===" ")&&nq.includes(y.key)&&(b(),y.preventDefault())})})})});KD.displayName=VD;var YD="SelectValue",qD=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=e,c=Wo(YD,n),{onValueNodeHasChildrenChange:u}=c,f=i!==void 0,d=Ce(t,c.onValueNodeChange);return Pt(()=>{u(f)},[u,f]),l.jsx(he.span,{...s,ref:d,style:{pointerEvents:"none"},children:v$(c.value)?l.jsx(l.Fragment,{children:a}):i})});qD.displayName=YD;var lq="SelectIcon",XD=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsx(he.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});XD.displayName=lq;var cq="SelectPortal",ZD=e=>l.jsx(Xc,{asChild:!0,...e});ZD.displayName=cq;var ji="SelectContent",QD=h.forwardRef((e,t)=>{const n=Wo(ji,e.__scopeSelect),[r,o]=h.useState();if(Pt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Mi.createPortal(l.jsx(JD,{scope:e.__scopeSelect,children:l.jsx(Zp.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),i):null}return l.jsx(e$,{...e,ref:t})});QD.displayName=ji;var Un=10,[JD,Go]=As(ji),uq="SelectContentImpl",dq=qY("SelectContent.RemoveScroll"),e$=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:c,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:m,sticky:b,hideWhenDetached:y,avoidCollisions:v,...x}=e,g=Wo(ji,n),[w,E]=h.useState(null),[A,S]=h.useState(null),N=Ce(t,te=>E(te)),[_,O]=h.useState(null),[T,j]=h.useState(null),I=Qp(n),[$,C]=h.useState(!1),P=h.useRef(!1);h.useEffect(()=>{if(w)return A0(w)},[w]),h0();const M=h.useCallback(te=>{const[me,...V]=I().map(F=>F.ref.current),[Q]=V.slice(-1),B=document.activeElement;for(const F of te)if(F===B||(F==null||F.scrollIntoView({block:"nearest"}),F===me&&A&&(A.scrollTop=0),F===Q&&A&&(A.scrollTop=A.scrollHeight),F==null||F.focus(),document.activeElement!==B))return},[I,A]),L=h.useCallback(()=>M([_,w]),[M,_,w]);h.useEffect(()=>{$&&L()},[$,L]);const{onOpenChange:R,triggerPointerDownPosRef:k}=g;h.useEffect(()=>{if(w){let te={x:0,y:0};const me=Q=>{var B,F;te={x:Math.abs(Math.round(Q.pageX)-(((B=k.current)==null?void 0:B.x)??0)),y:Math.abs(Math.round(Q.pageY)-(((F=k.current)==null?void 0:F.y)??0))}},V=Q=>{te.x<=10&&te.y<=10?Q.preventDefault():w.contains(Q.target)||R(!1),document.removeEventListener("pointermove",me),k.current=null};return k.current!==null&&(document.addEventListener("pointermove",me),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",me),document.removeEventListener("pointerup",V,{capture:!0})}}},[w,R,k]),h.useEffect(()=>{const te=()=>R(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[R]);const[H,G]=y$(te=>{const me=I().filter(B=>!B.disabled),V=me.find(B=>B.ref.current===document.activeElement),Q=g$(me,te,V);Q&&setTimeout(()=>Q.ref.current.focus())}),W=h.useCallback((te,me,V)=>{const Q=!P.current&&!V;(g.value!==void 0&&g.value===me||Q)&&(O(te),Q&&(P.current=!0))},[g.value]),J=h.useCallback(()=>w==null?void 0:w.focus(),[w]),ce=h.useCallback((te,me,V)=>{const Q=!P.current&&!V;(g.value!==void 0&&g.value===me||Q)&&j(te)},[g.value]),Ee=r==="popper"?jy:t$,we=Ee===jy?{side:s,sideOffset:c,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:m,sticky:b,hideWhenDetached:y,avoidCollisions:v}:{};return l.jsx(JD,{scope:n,content:w,viewport:A,onViewportChange:S,itemRefCallback:W,selectedItem:_,onItemLeave:J,itemTextRefCallback:ce,focusSelectedItem:L,selectedItemText:T,position:r,isPositioned:$,searchRef:H,children:l.jsx(Gp,{as:dq,allowPinchZoom:!0,children:l.jsx($p,{asChild:!0,trapped:g.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:ee(o,te=>{var me;(me=g.trigger)==null||me.focus({preventScroll:!0}),te.preventDefault()}),children:l.jsx(Yc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:l.jsx(Ee,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:te=>te.preventDefault(),...x,...we,onPlaced:()=>C(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:ee(x.onKeyDown,te=>{const me=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!me&&te.key.length===1&&G(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let Q=I().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(te.key)&&(Q=Q.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const B=te.target,F=Q.indexOf(B);Q=Q.slice(F+1)}setTimeout(()=>M(Q)),te.preventDefault()}})})})})})})});e$.displayName=uq;var fq="SelectItemAlignedPosition",t$=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Wo(ji,n),a=Go(ji,n),[s,c]=h.useState(null),[u,f]=h.useState(null),d=Ce(t,N=>f(N)),p=Qp(n),m=h.useRef(!1),b=h.useRef(!0),{viewport:y,selectedItem:v,selectedItemText:x,focusSelectedItem:g}=a,w=h.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&y&&v&&x){const N=i.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),O=i.valueNode.getBoundingClientRect(),T=x.getBoundingClientRect();if(i.dir!=="rtl"){const B=T.left-_.left,F=O.left-B,pe=N.left-F,le=N.width+pe,Be=Math.max(le,_.width),Ue=window.innerWidth-Un,lt=vA(F,[Un,Math.max(Un,Ue-Be)]);s.style.minWidth=le+"px",s.style.left=lt+"px"}else{const B=_.right-T.right,F=window.innerWidth-O.right-B,pe=window.innerWidth-N.right-F,le=N.width+pe,Be=Math.max(le,_.width),Ue=window.innerWidth-Un,lt=vA(F,[Un,Math.max(Un,Ue-Be)]);s.style.minWidth=le+"px",s.style.right=lt+"px"}const j=p(),I=window.innerHeight-Un*2,$=y.scrollHeight,C=window.getComputedStyle(u),P=parseInt(C.borderTopWidth,10),M=parseInt(C.paddingTop,10),L=parseInt(C.borderBottomWidth,10),R=parseInt(C.paddingBottom,10),k=P+M+$+R+L,H=Math.min(v.offsetHeight*5,k),G=window.getComputedStyle(y),W=parseInt(G.paddingTop,10),J=parseInt(G.paddingBottom,10),ce=N.top+N.height/2-Un,Ee=I-ce,we=v.offsetHeight/2,te=v.offsetTop+we,me=P+M+te,V=k-me;if(me<=ce){const B=j.length>0&&v===j[j.length-1].ref.current;s.style.bottom="0px";const F=u.clientHeight-y.offsetTop-y.offsetHeight,pe=Math.max(Ee,we+(B?J:0)+F+L),le=me+pe;s.style.height=le+"px"}else{const B=j.length>0&&v===j[0].ref.current;s.style.top="0px";const pe=Math.max(ce,P+y.offsetTop+(B?W:0)+we)+V;s.style.height=pe+"px",y.scrollTop=me-ce+y.offsetTop}s.style.margin=`${Un}px 0`,s.style.minHeight=H+"px",s.style.maxHeight=I+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[p,i.trigger,i.valueNode,s,u,y,v,x,i.dir,r]);Pt(()=>w(),[w]);const[E,A]=h.useState();Pt(()=>{u&&A(window.getComputedStyle(u).zIndex)},[u]);const S=h.useCallback(N=>{N&&b.current===!0&&(w(),g==null||g(),b.current=!1)},[w,g]);return l.jsx(hq,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:S,children:l.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:l.jsx(he.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});t$.displayName=fq;var pq="SelectPopperPosition",jy=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Un,...i}=e,a=Jp(n);return l.jsx(E2,{...a,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});jy.displayName=pq;var[hq,W0]=As(ji,{}),Cy="SelectViewport",n$=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Go(Cy,n),a=W0(Cy,n),s=Ce(t,i.onViewportChange),c=h.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsx(Zp.Slot,{scope:n,children:l.jsx(he.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ee(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:p}=a;if(p!=null&&p.current&&d){const m=Math.abs(c.current-f.scrollTop);if(m>0){const b=window.innerHeight-Un*2,y=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),x=Math.max(y,v);if(x<b){const g=x+m,w=Math.min(b,g),E=g-w;d.style.height=w+"px",d.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,d.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});n$.displayName=Cy;var r$="SelectGroup",[mq,vq]=As(r$),yq=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=mr();return l.jsx(mq,{scope:n,id:o,children:l.jsx(he.div,{role:"group","aria-labelledby":o,...r,ref:t})})});yq.displayName=r$;var o$="SelectLabel",i$=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=vq(o$,n);return l.jsx(he.div,{id:o.id,...r,ref:t})});i$.displayName=o$;var uf="SelectItem",[gq,a$]=As(uf),s$=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=Wo(uf,n),c=Go(uf,n),u=s.value===r,[f,d]=h.useState(i??""),[p,m]=h.useState(!1),b=Ce(t,g=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,g,r,o)}),y=mr(),v=h.useRef("touch"),x=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(gq,{scope:n,value:r,disabled:o,textId:y,isSelected:u,onItemTextChange:h.useCallback(g=>{d(w=>w||((g==null?void 0:g.textContent)??"").trim())},[]),children:l.jsx(Zp.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:l.jsx(he.div,{role:"option","aria-labelledby":y,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:b,onFocus:ee(a.onFocus,()=>m(!0)),onBlur:ee(a.onBlur,()=>m(!1)),onClick:ee(a.onClick,()=>{v.current!=="mouse"&&x()}),onPointerUp:ee(a.onPointerUp,()=>{v.current==="mouse"&&x()}),onPointerDown:ee(a.onPointerDown,g=>{v.current=g.pointerType}),onPointerMove:ee(a.onPointerMove,g=>{var w;v.current=g.pointerType,o?(w=c.onItemLeave)==null||w.call(c):v.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ee(a.onPointerLeave,g=>{var w;g.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:ee(a.onKeyDown,g=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&g.key===" "||(rq.includes(g.key)&&x(),g.key===" "&&g.preventDefault())})})})})});s$.displayName=uf;var dl="SelectItemText",l$=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=Wo(dl,n),s=Go(dl,n),c=a$(dl,n),u=sq(dl,n),[f,d]=h.useState(null),p=Ce(t,x=>d(x),c.onItemTextChange,x=>{var g;return(g=s.itemTextRefCallback)==null?void 0:g.call(s,x,c.value,c.disabled)}),m=f==null?void 0:f.textContent,b=h.useMemo(()=>l.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:y,onNativeOptionRemove:v}=u;return Pt(()=>(y(b),()=>v(b)),[y,v,b]),l.jsxs(l.Fragment,{children:[l.jsx(he.span,{id:c.textId,...i,ref:p}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Mi.createPortal(i.children,a.valueNode):null]})});l$.displayName=dl;var c$="SelectItemIndicator",u$=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return a$(c$,n).isSelected?l.jsx(he.span,{"aria-hidden":!0,...r,ref:t}):null});u$.displayName=c$;var Oy="SelectScrollUpButton",d$=h.forwardRef((e,t)=>{const n=Go(Oy,e.__scopeSelect),r=W0(Oy,e.__scopeSelect),[o,i]=h.useState(!1),a=Ce(t,r.onScrollButtonChange);return Pt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollTop>0;i(u)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?l.jsx(p$,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});d$.displayName=Oy;var Ty="SelectScrollDownButton",f$=h.forwardRef((e,t)=>{const n=Go(Ty,e.__scopeSelect),r=W0(Ty,e.__scopeSelect),[o,i]=h.useState(!1),a=Ce(t,r.onScrollButtonChange);return Pt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;i(f)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?l.jsx(p$,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});f$.displayName=Ty;var p$=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Go("SelectScrollButton",n),a=h.useRef(null),s=Qp(n),c=h.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return h.useEffect(()=>()=>c(),[c]),Pt(()=>{var f;const u=s().find(d=>d.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[s]),l.jsx(he.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ee(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:ee(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:ee(o.onPointerLeave,()=>{c()})})}),xq="SelectSeparator",h$=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsx(he.div,{"aria-hidden":!0,...r,ref:t})});h$.displayName=xq;var Py="SelectArrow",bq=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Jp(n),i=Wo(Py,n),a=Go(Py,n);return i.open&&a.position==="popper"?l.jsx(N2,{...o,...r,ref:t}):null});bq.displayName=Py;var wq="SelectBubbleInput",m$=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),i=Ce(r,o),a=$D(t);return h.useEffect(()=>{const s=o.current;if(!s)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&f){const d=new Event("change",{bubbles:!0});f.call(s,t),s.dispatchEvent(d)}},[a,t]),l.jsx(he.select,{...n,style:{...WD,...n.style},ref:i,defaultValue:t})});m$.displayName=wq;function v$(e){return e===""||e===void 0}function y$(e){const t=rn(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(a=>{const s=n.current+a;t(s),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),i=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function g$(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=Sq(e,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function Sq(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Aq=GD,x$=KD,Eq=qD,Nq=XD,_q=ZD,b$=QD,jq=n$,w$=i$,S$=s$,Cq=l$,Oq=u$,A$=d$,E$=f$,N$=h$;const at=Aq,st=Eq,nt=h.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(x$,{ref:r,className:oe("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,l.jsx(Nq,{asChild:!0,children:l.jsx(Jl,{className:"h-4 w-4 opacity-50"})})]}));nt.displayName=x$.displayName;const _$=h.forwardRef(({className:e,...t},n)=>l.jsx(A$,{ref:n,className:oe("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(p6,{className:"h-4 w-4"})}));_$.displayName=A$.displayName;const j$=h.forwardRef(({className:e,...t},n)=>l.jsx(E$,{ref:n,className:oe("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(Jl,{className:"h-4 w-4"})}));j$.displayName=E$.displayName;const rt=h.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>l.jsx(_q,{children:l.jsxs(b$,{ref:o,className:oe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[l.jsx(_$,{}),l.jsx(jq,{className:oe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),l.jsx(j$,{})]})}));rt.displayName=b$.displayName;const Tq=h.forwardRef(({className:e,...t},n)=>l.jsx(w$,{ref:n,className:oe("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Tq.displayName=w$.displayName;const fe=h.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(S$,{ref:r,className:oe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Oq,{children:l.jsx(Tp,{className:"h-4 w-4"})})}),l.jsx(Cq,{children:t})]}));fe.displayName=S$.displayName;const Pq=h.forwardRef(({className:e,...t},n)=>l.jsx(N$,{ref:n,className:oe("-mx-1 my-1 h-px bg-muted",e),...t}));Pq.displayName=N$.displayName;function Iq({param:e,value:t,onChange:n,error:r,columns:o=[],disabled:i=!1}){const[a,s]=h.useState(""),c=h.useCallback(()=>{if(!a.trim())return;const p=Array.isArray(t)?t:[];p.includes(a.trim())||n([...p,a.trim()]),s("")},[a,t,n]),u=h.useCallback(p=>{const m=Array.isArray(t)?t:[];n(m.filter(b=>b!==p))},[t,n]),f=h.useCallback(p=>{const m=Array.isArray(t)?t:[];m.includes(p)?n(m.filter(b=>b!==p)):n([...m,p])},[t,n]),d=()=>{var p,m;switch(e.type){case"string":return l.jsx(St,{value:t||"",onChange:v=>n(v.target.value),placeholder:e.placeholder,disabled:i});case"integer":return l.jsx(St,{type:"number",value:t!=null?String(t):"",onChange:v=>{const x=v.target.value;n(x===""?void 0:parseInt(x,10))},min:e.min_value,max:e.max_value,placeholder:e.placeholder,disabled:i});case"float":return l.jsx(St,{type:"number",step:"any",value:t!=null?String(t):"",onChange:v=>{const x=v.target.value;n(x===""?void 0:parseFloat(x))},min:e.min_value,max:e.max_value,placeholder:e.placeholder,disabled:i});case"boolean":return l.jsx(Wa,{checked:!!t,onCheckedChange:n,disabled:i});case"select":return l.jsxs(at,{value:t||"",onValueChange:n,disabled:i,children:[l.jsx(nt,{children:l.jsx(st,{placeholder:e.placeholder||"Select..."})}),l.jsx(rt,{children:(p=e.options)==null?void 0:p.map(v=>l.jsx(fe,{value:v.value,children:v.label},v.value))})]});case"multi_select":return l.jsx("div",{className:"space-y-2",children:l.jsx("div",{className:"flex flex-wrap gap-1",children:(m=e.options)==null?void 0:m.map(v=>{const x=Array.isArray(t)&&t.includes(v.value);return l.jsx(ae,{variant:x?"default":"outline",className:"cursor-pointer",onClick:()=>!i&&f(v.value),children:v.label},v.value)})})});case"column":return l.jsxs(at,{value:t||"",onValueChange:n,disabled:i,children:[l.jsx(nt,{children:l.jsx(st,{placeholder:"Select column..."})}),l.jsx(rt,{children:o.map(v=>l.jsx(fe,{value:v,children:v},v))})]});case"column_list":case"string_list":const b=Array.isArray(t)?t:[],y=e.type==="column_list";return l.jsxs("div",{className:"space-y-2",children:[l.jsx("div",{className:"flex flex-wrap gap-1",children:b.map(v=>l.jsxs(ae,{variant:"secondary",className:"gap-1",children:[v,l.jsx(d0,{className:"h-3 w-3 cursor-pointer hover:text-destructive",onClick:()=>!i&&u(v)})]},v))}),l.jsx("div",{className:"flex gap-2",children:y&&o.length>0?l.jsxs(at,{value:"",onValueChange:v=>{v&&!b.includes(v)&&n([...b,v])},disabled:i,children:[l.jsx(nt,{className:"flex-1",children:l.jsx(st,{placeholder:"Add column..."})}),l.jsx(rt,{children:o.filter(v=>!b.includes(v)).map(v=>l.jsx(fe,{value:v,children:v},v))})]}):l.jsxs(l.Fragment,{children:[l.jsx(St,{value:a,onChange:v=>s(v.target.value),onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),c())},placeholder:e.placeholder||"Add value...",disabled:i,className:"flex-1"}),l.jsx(Y,{type:"button",variant:"outline",size:"icon",onClick:c,disabled:i||!a.trim(),children:l.jsx(Vt,{className:"h-4 w-4"})})]})})]});case"regex":return l.jsx(St,{value:t||"",onChange:v=>n(v.target.value),placeholder:e.placeholder||"Regular expression...",disabled:i,className:"font-mono text-sm"});case"expression":return l.jsx(St,{value:t||"",onChange:v=>n(v.target.value),placeholder:e.placeholder||"Polars expression...",disabled:i,className:"font-mono text-sm"});case"schema":return l.jsx("textarea",{value:typeof t=="string"?t:JSON.stringify(t,null,2)||"",onChange:v=>n(v.target.value),placeholder:e.placeholder||`{
480
+ "column": "type"
481
+ }`,disabled:i,className:"flex min-h-[100px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm font-mono 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",rows:4});default:return l.jsx(St,{value:t||"",onChange:v=>n(v.target.value),placeholder:e.placeholder,disabled:i})}};return l.jsxs("div",{className:"space-y-2",children:[l.jsx("div",{className:"flex items-center gap-2",children:l.jsxs(vt,{htmlFor:e.name,className:"text-sm font-medium",children:[e.label,e.required&&l.jsx("span",{className:"text-destructive ml-1",children:"*"})]})}),e.description&&l.jsx("p",{className:"text-xs text-muted-foreground",children:e.description}),d(),r&&l.jsx("p",{className:"text-xs text-destructive",children:r})]})}function yA({definition:e,config:t,onChange:n,columns:r=[],errors:o={}}){const[i,a]=h.useState(!1),s=e.parameters.length>0,c=Object.keys(o).length>0,u=Object.keys(t.params).some(m=>t.params[m]!==void 0&&t.params[m]!==null&&t.params[m]!==""),f=m=>{n({...t,enabled:m})},d=(m,b)=>{n({...t,params:{...t.params,[m]:b}})},p={low:"bg-blue-500/10 text-blue-500",medium:"bg-yellow-500/10 text-yellow-500",high:"bg-orange-500/10 text-orange-500",critical:"bg-red-500/10 text-red-500"};return l.jsxs(X,{className:`transition-all ${t.enabled?"":"opacity-60"}`,children:[l.jsx(ve,{className:"py-3 px-4",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(Wa,{checked:t.enabled,onCheckedChange:f,"aria-label":`Enable ${e.display_name}`}),l.jsxs("div",{className:"flex flex-col",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"font-medium text-sm",children:e.display_name}),l.jsx(ae,{variant:"outline",className:p[e.severity_default],children:e.severity_default}),u&&l.jsxs(ae,{variant:"secondary",className:"gap-1",children:[l.jsx(Lk,{className:"h-3 w-3"}),"Configured"]}),c&&l.jsxs(ae,{variant:"destructive",children:[Object.keys(o).length," error(s)"]})]}),l.jsx(yr,{className:"text-xs mt-0.5",children:e.description})]})]}),s&&l.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>a(!i),className:"h-8 w-8 p-0",children:i?l.jsx(Jl,{className:"h-4 w-4"}):l.jsx(Qd,{className:"h-4 w-4"})})]})}),s&&i&&l.jsx(Z,{className:"pt-0 pb-4 px-4",children:l.jsx("div",{className:"grid gap-4 pl-9",children:e.parameters.map(m=>m.depends_on&&t.params[m.depends_on]!==m.depends_value?null:l.jsx(Iq,{param:m,value:t.params[m.name],onChange:b=>d(m.name,b),error:o[m.name],columns:r,disabled:!t.enabled},m.name))})})]})}var eh="Tabs",[Rq]=nr(eh,[zp]),C$=zp(),[kq,G0]=Rq(eh),O$=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:c="automatic",...u}=e,f=Dp(s),[d,p]=Mo({prop:r,onChange:o,defaultProp:i??"",caller:eh});return l.jsx(kq,{scope:n,baseId:mr(),value:d,onValueChange:p,orientation:a,dir:f,activationMode:c,children:l.jsx(he.div,{dir:f,"data-orientation":a,...u,ref:t})})});O$.displayName=eh;var T$="TabsList",P$=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=G0(T$,n),a=C$(n);return l.jsx(P2,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:l.jsx(he.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});P$.displayName=T$;var I$="TabsTrigger",R$=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=G0(I$,n),s=C$(n),c=D$(a.baseId,r),u=$$(a.baseId,r),f=r===a.value;return l.jsx(I2,{asChild:!0,...s,focusable:!o,active:f,children:l.jsx(he.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...i,ref:t,onMouseDown:ee(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?a.onValueChange(r):d.preventDefault()}),onKeyDown:ee(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&a.onValueChange(r)}),onFocus:ee(e.onFocus,()=>{const d=a.activationMode!=="manual";!f&&!o&&d&&a.onValueChange(r)})})})});R$.displayName=I$;var k$="TabsContent",M$=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=G0(k$,n),c=D$(s.baseId,r),u=$$(s.baseId,r),f=r===s.value,d=h.useRef(f);return h.useEffect(()=>{const p=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(p)},[]),l.jsx(Er,{present:o||f,children:({present:p})=>l.jsx(he.div,{"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:p&&i})})});M$.displayName=k$;function D$(e,t){return`${e}-trigger-${t}`}function $$(e,t){return`${e}-content-${t}`}var Mq=O$,L$=P$,F$=R$,B$=M$;const ou=Mq,Es=h.forwardRef(({className:e,...t},n)=>l.jsx(L$,{ref:n,className:oe("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Es.displayName=L$.displayName;const Bt=h.forwardRef(({className:e,...t},n)=>l.jsx(F$,{ref:n,className:oe("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Bt.displayName=F$.displayName;const Ut=h.forwardRef(({className:e,...t},n)=>l.jsx(B$,{ref:n,className:oe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Ut.displayName=B$.displayName;function Dq(e){const t={};for(const n of e.parameters)n.default!==void 0?t[n.name]=n.default:n.type==="boolean"?t[n.name]=!1:(n.type==="string_list"||n.type==="column_list"||n.type==="multi_select")&&(t[n.name]=[]);return{name:e.name,enabled:!0,params:t}}const km=[{id:"all",label:"All Validators",icon:$S,description:"Run all available validators",filter:()=>!0},{id:"quick",label:"Quick Check",icon:$S,description:"Fast validation for common issues",filter:e=>["Null","Duplicate","ColumnExists","RowCount"].includes(e.name)},{id:"schema",label:"Schema Only",icon:hn,description:"Structure and type validation",filter:e=>e.category==="schema"},{id:"completeness",label:"Data Quality",icon:Fk,description:"Completeness and uniqueness checks",filter:e=>e.category==="completeness"||e.category==="uniqueness"}],Mm={schema:"Schema",completeness:"Completeness",uniqueness:"Uniqueness",distribution:"Distribution",string:"String",datetime:"Datetime",aggregate:"Aggregate",cross_table:"Cross-Table",query:"Query",multi_column:"Multi-Column",table:"Table",geospatial:"Geospatial",drift:"Drift",anomaly:"Anomaly"};function U$({validators:e,configs:t,onChange:n,columns:r=[],errors:o={}}){const[i,a]=h.useState(""),[s,c]=h.useState("all"),[u,f]=h.useState(new Set(["schema","completeness"]));h.useEffect(()=>{if(t.length===0&&e.length>0){const g=e.map(w=>Dq(w));n(g)}},[e,t.length,n]);const d=h.useCallback(g=>t.find(w=>w.name===g)||{name:g,enabled:!1,params:{}},[t]),p=h.useCallback(g=>{const w=t.map(E=>E.name===g.name?g:E);t.find(E=>E.name===g.name)||w.push(g),n(w)},[t,n]),m=h.useCallback(g=>{const w=km.find(A=>A.id===g);if(!w)return;const E=e.map(A=>({...d(A.name),enabled:w.filter(A)}));n(E)},[e,d,n]),b=h.useCallback((g,w)=>{const E=t.map(A=>{const S=e.find(N=>N.name===A.name);return(S==null?void 0:S.category)===g?{...A,enabled:w}:A});n(E)},[t,e,n]),y=h.useCallback(g=>{f(w=>{const E=new Set(w);return E.has(g)?E.delete(g):E.add(g),E})},[]),v=h.useMemo(()=>{const g={},w=e.filter(E=>{if(!i)return!0;const A=i.toLowerCase();return E.name.toLowerCase().includes(A)||E.display_name.toLowerCase().includes(A)||E.description.toLowerCase().includes(A)||E.tags.some(S=>S.toLowerCase().includes(A))});for(const E of w)g[E.category]||(g[E.category]=[]),g[E.category].push(E);return Object.entries(g).map(([E,A])=>({category:E,label:Mm[E]||E,validators:A,enabledCount:A.filter(S=>d(S.name).enabled).length})).filter(E=>s==="all"||E.category===s).sort((E,A)=>{const S=Object.keys(Mm);return S.indexOf(E.category)-S.indexOf(A.category)})},[e,i,s,d]),x=h.useMemo(()=>{const g=t.filter(E=>E.enabled).length,w=e.length;return{enabled:g,total:w}},[t,e]);return l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"flex flex-wrap gap-3",children:[l.jsxs("div",{className:"relative flex-1 min-w-[200px]",children:[l.jsx(Ip,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),l.jsx(St,{placeholder:"Search validators...",value:i,onChange:g=>a(g.target.value),className:"pl-9"})]}),l.jsxs(at,{value:s,onValueChange:g=>c(g),children:[l.jsxs(nt,{className:"w-[180px]",children:[l.jsx(Pp,{className:"h-4 w-4 mr-2"}),l.jsx(st,{placeholder:"Category"})]}),l.jsxs(rt,{children:[l.jsx(fe,{value:"all",children:"All Categories"}),Object.entries(Mm).map(([g,w])=>l.jsx(fe,{value:g,children:w},g))]})]}),l.jsxs(ae,{variant:"outline",className:"h-10 px-3 flex items-center gap-2",children:[x.enabled," / ",x.total," enabled"]})]}),l.jsxs(ou,{defaultValue:"custom",className:"w-full",children:[l.jsxs(Es,{className:"w-full justify-start",children:[l.jsx(Bt,{value:"custom",children:"Custom"}),km.map(g=>l.jsxs(Bt,{value:g.id,onClick:()=>m(g.id),children:[l.jsx(g.icon,{className:"h-4 w-4 mr-1"}),g.label]},g.id))]}),l.jsx(Ut,{value:"custom",className:"mt-4",children:l.jsxs("div",{className:"space-y-4",children:[v.map(g=>l.jsxs("div",{className:"border rounded-lg overflow-hidden",children:[l.jsxs("button",{onClick:()=>y(g.category),className:"w-full flex items-center justify-between p-3 bg-muted/50 hover:bg-muted/80 transition-colors",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[u.has(g.category)?l.jsx(Jl,{className:"h-4 w-4"}):l.jsx(Qd,{className:"h-4 w-4"}),l.jsx("span",{className:"font-medium",children:g.label}),l.jsxs(ae,{variant:"secondary",children:[g.enabledCount," / ",g.validators.length]})]}),l.jsxs("div",{className:"flex gap-2",onClick:w=>w.stopPropagation(),children:[l.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>b(g.category,!0),children:"Enable All"}),l.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>b(g.category,!1),children:"Disable All"})]})]}),u.has(g.category)&&l.jsx("div",{className:"p-3 space-y-2",children:g.validators.map(w=>l.jsx(yA,{definition:w,config:d(w.name),onChange:p,columns:r,errors:o[w.name]},w.name))})]},g.category)),v.length===0&&l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No validators match your search criteria."})]})}),km.map(g=>l.jsxs(Ut,{value:g.id,className:"mt-4",children:[l.jsx("div",{className:"p-4 bg-muted/30 rounded-lg mb-4",children:l.jsx("p",{className:"text-sm text-muted-foreground",children:g.description})}),l.jsx("div",{className:"space-y-4",children:v.map(w=>l.jsxs("div",{className:"border rounded-lg overflow-hidden",children:[l.jsx("button",{onClick:()=>y(w.category),className:"w-full flex items-center justify-between p-3 bg-muted/50 hover:bg-muted/80 transition-colors",children:l.jsxs("div",{className:"flex items-center gap-2",children:[u.has(w.category)?l.jsx(Jl,{className:"h-4 w-4"}):l.jsx(Qd,{className:"h-4 w-4"}),l.jsx("span",{className:"font-medium",children:w.label}),l.jsxs(ae,{variant:"secondary",children:[w.enabledCount," / ",w.validators.length]})]})}),u.has(w.category)&&l.jsx("div",{className:"p-3 space-y-2",children:w.validators.map(E=>l.jsx(yA,{definition:E,config:d(E.name),onChange:p,columns:r,errors:o[E.name]},E.name))})]},w.category))})]},g.id))]})]})}function $q(){const{id:e}=$i(),[t,n]=h.useState(null),[r,o]=h.useState(null),[i,a]=h.useState([]),[s,c]=h.useState(!0),[u,f]=h.useState(!1),[d,p]=h.useState(!1),[m,b]=h.useState([]),[y,v]=h.useState([]),[x,g]=h.useState(!1),{toast:w}=It(),E=h.useCallback(async()=>{if(e)try{c(!0);const[j,I,$]=await Promise.all([R0(e),$M(e),u7(e)]);n(j),o(I),a($.data)}catch{w({title:"Error",description:"Failed to load source details",variant:"destructive"})}finally{c(!1)}},[e,w]),A=h.useCallback(async()=>{if(!(m.length>0))try{g(!0);const j=await UM();b(j)}catch{w({title:"Error",description:"Failed to load validators",variant:"destructive"})}finally{g(!1)}},[m.length,w]);h.useEffect(()=>{E()},[E]);async function S(){if(e)try{f(!0);const j=y.filter(C=>C.enabled),I=j.length>0?{validator_configs:j}:{},$=await _y(e,I);a(C=>[$,...C]),p(!1),w({title:$.passed?"Validation Passed":"Validation Failed",description:`Found ${$.total_issues} issues`,variant:$.passed?"default":"destructive"})}catch{w({title:"Error",description:"Failed to run validation",variant:"destructive"})}finally{f(!1)}}async function N(){if(e)try{f(!0);const j=await _y(e,{});a(I=>[j,...I]),w({title:j.passed?"Validation Passed":"Validation Failed",description:`Found ${j.total_issues} issues`,variant:j.passed?"default":"destructive"})}catch{w({title:"Error",description:"Failed to run validation",variant:"destructive"})}finally{f(!1)}}function _(){A(),p(!0)}async function O(){if(e)try{w({title:"Learning Schema",description:"Analyzing data structure..."});const j=await LM(e);o(j),w({title:"Schema Learned",description:`Found ${j.column_count} columns`})}catch{w({title:"Error",description:"Failed to learn schema",variant:"destructive"})}}if(s)return l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});if(!t)return l.jsxs("div",{className:"flex flex-col items-center justify-center h-64",children:[l.jsx(To,{className:"h-12 w-12 text-destructive mb-4"}),l.jsx("p",{className:"text-muted-foreground",children:"Source not found"}),l.jsx(Y,{asChild:!0,className:"mt-4",children:l.jsx(Pe,{to:"/sources",children:"Back to Sources"})})]});const T=i[0];return l.jsxs("div",{className:"space-y-6",children:[l.jsxs(Pe,{to:"/sources",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground",children:[l.jsx(Ui,{className:"mr-2 h-4 w-4"}),"Back to Sources"]}),l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-lg bg-primary/10 flex items-center justify-center",children:l.jsx(hn,{className:"h-7 w-7 text-primary"})}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:t.name}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx(ae,{variant:"outline",children:t.type}),t.is_active?l.jsx(ae,{variant:"success",children:"Active"}):l.jsx(ae,{variant:"secondary",children:"Inactive"})]})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Y,{variant:"outline",asChild:!0,children:l.jsxs(Pe,{to:`/sources/${e}/rules`,children:[l.jsx(Lk,{className:"mr-2 h-4 w-4"}),"Rules"]})}),l.jsx(Y,{variant:"outline",asChild:!0,children:l.jsxs(Pe,{to:`/sources/${e}/profile`,children:[l.jsx(my,{className:"mr-2 h-4 w-4"}),"Profile"]})}),l.jsx(Y,{variant:"outline",asChild:!0,children:l.jsxs(Pe,{to:`/sources/${e}/history`,children:[l.jsx(vy,{className:"mr-2 h-4 w-4"}),"History"]})}),l.jsxs(Y,{variant:"outline",onClick:O,children:[l.jsx(Jd,{className:"mr-2 h-4 w-4"}),"Learn Schema"]}),l.jsxs(Y,{variant:"outline",onClick:N,disabled:u,children:[l.jsx(ef,{className:"mr-2 h-4 w-4"}),u?"Validating...":"Quick Validate"]}),l.jsxs(Wi,{open:d,onOpenChange:p,children:[l.jsx(H0,{asChild:!0,children:l.jsxs(Y,{onClick:_,disabled:u,children:[l.jsx(Bk,{className:"mr-2 h-4 w-4"}),"Configure & Run"]})}),l.jsxs(Uo,{className:"max-w-4xl max-h-[80vh] overflow-y-auto",children:[l.jsxs(Ho,{children:[l.jsx(zo,{children:"Configure Validation"}),l.jsx(ru,{children:"Select and configure validators to run against this data source. Use presets for quick setup or customize individual validators."})]}),l.jsx("div",{className:"py-4",children:x?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsx(U$,{validators:m,configs:y,onChange:v,columns:(r==null?void 0:r.columns)||[]})}),l.jsxs(nu,{children:[l.jsx(Y,{variant:"outline",onClick:()=>p(!1),children:"Cancel"}),l.jsxs(Y,{onClick:S,disabled:u,children:[l.jsx(ef,{className:"mr-2 h-4 w-4"}),u?"Validating...":"Run Validation"]})]})]})]})]})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[l.jsx(X,{children:l.jsx(Z,{className:"pt-6",children:l.jsx("div",{className:"flex items-center justify-between",children:l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Status"}),l.jsx("div",{className:"flex items-center gap-2 mt-1",children:T!=null&&T.passed?l.jsxs(l.Fragment,{children:[l.jsx(Ql,{className:"h-5 w-5 text-green-600"}),l.jsx("span",{className:"font-semibold text-green-600",children:"Passed"})]}):T?l.jsxs(l.Fragment,{children:[l.jsx(To,{className:"h-5 w-5 text-red-600"}),l.jsx("span",{className:"font-semibold text-red-600",children:"Failed"})]}):l.jsxs(l.Fragment,{children:[l.jsx(Ai,{className:"h-5 w-5 text-yellow-600"}),l.jsx("span",{className:"font-semibold text-yellow-600",children:"Not Validated"})]})})]})})})}),l.jsx(X,{children:l.jsxs(Z,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Total Issues"}),l.jsx("p",{className:"text-2xl font-bold mt-1",children:Rr(T==null?void 0:T.total_issues)})]})}),l.jsx(X,{children:l.jsxs(Z,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Rows"}),l.jsx("p",{className:"text-2xl font-bold mt-1",children:Rr(T==null?void 0:T.row_count)})]})}),l.jsx(X,{children:l.jsxs(Z,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Last Validation"}),l.jsx("p",{className:"text-lg font-medium mt-1",children:yn(t.last_validated_at)})]})})]}),T&&T.issues.length>0&&l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(Ai,{className:"h-5 w-5 text-yellow-600"}),"Issues Found (",T.total_issues,")"]})}),l.jsx(Z,{children:l.jsx("div",{className:"space-y-3",children:T.issues.slice(0,10).map((j,I)=>l.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg border",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(ae,{variant:j.severity==="critical"?"critical":j.severity==="high"?"high":j.severity==="medium"?"medium":"low",children:j.severity}),l.jsxs("div",{children:[l.jsxs("p",{className:"font-medium",children:[j.column,": ",j.issue_type]}),j.details&&l.jsx("p",{className:"text-sm text-muted-foreground",children:j.details})]})]}),l.jsxs("span",{className:"text-sm text-muted-foreground",children:[Rr(j.count)," occurrences"]})]},I))})})]}),r&&l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(Jd,{className:"h-5 w-5"}),"Schema (",r.column_count," columns)"]})}),l.jsx(Z,{children:l.jsx("div",{className:"flex flex-wrap gap-2",children:r.columns.map(j=>l.jsx(ae,{variant:"outline",children:j},j))})})]}),l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(vy,{className:"h-5 w-5"}),"Validation History"]})}),l.jsx(Z,{children:i.length===0?l.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No validations yet. Run your first validation to see results here."}):l.jsx("div",{className:"space-y-3",children:i.map(j=>l.jsxs(Pe,{to:`/validations/${j.id}`,className:"flex items-center justify-between p-3 rounded-lg border hover:bg-accent transition-colors",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[j.passed?l.jsx(Ql,{className:"h-5 w-5 text-green-600"}):l.jsx(To,{className:"h-5 w-5 text-red-600"}),l.jsxs("div",{children:[l.jsxs("p",{className:"font-medium",children:[j.passed?"Passed":"Failed"," -"," ",Rr(j.total_issues)," issues"]}),l.jsxs("p",{className:"text-sm text-muted-foreground",children:[yn(j.created_at)," •"," ",Kk(j.duration_ms)]})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[j.critical_issues>0&&l.jsxs(ae,{variant:"critical",children:[j.critical_issues," critical"]}),j.high_issues>0&&l.jsxs(ae,{variant:"high",children:[j.high_issues," high"]})]})]},j.id))})})]})]})}const Dm=`# Validation Rules
482
+ # Define column-level and table-level validation rules
483
+
484
+ columns:
485
+ # Example: user_id must be not null and unique
486
+ # user_id:
487
+ # not_null: true
488
+ # unique: true
489
+
490
+ # Example: email must match a pattern
491
+ # email:
492
+ # pattern: "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\\\.[a-zA-Z0-9-.]+$"
493
+
494
+ # Example: age must be between 0 and 150
495
+ # age:
496
+ # min: 0
497
+ # max: 150
498
+
499
+ # table:
500
+ # min_rows: 1
501
+ # max_rows: 1000000
502
+ `;function Lq(){const{id:e}=$i(),t=PC(),{toast:n}=It(),[r,o]=h.useState(null),[i,a]=h.useState([]),[s,c]=h.useState(null),[u,f]=h.useState(!0),[d,p]=h.useState(!1),[m,b]=h.useState(!1),[y,v]=h.useState(""),[x,g]=h.useState(""),[w,E]=h.useState(""),[A,S]=h.useState(!1),N=h.useCallback(async()=>{if(e)try{const P=await lo.get(`/sources/${e}`);o(P)}catch{n({title:"Error",description:"Failed to load source",variant:"destructive"})}},[e,n]),_=h.useCallback(async()=>{if(e)try{const P=await lo.get(`/sources/${e}/rules`);a(P.data)}catch{n({title:"Error",description:"Failed to load rules",variant:"destructive"})}},[e,n]),O=h.useCallback(async()=>{if(e)try{const P=await lo.get(`/sources/${e}/rules/active`);P?(c(P),v(P.rules_yaml),g(P.name),E(P.description||"")):(c(null),v(Dm),g("Default Rules"),E(""))}catch{c(null),v(Dm),g("Default Rules"),E("")}},[e]);h.useEffect(()=>{(async()=>{f(!0),await Promise.all([N(),_(),O()]),f(!1)})()},[N,_,O]);const T=P=>{v(P),S(!0)},j=async()=>{if(e){p(!0);try{s?(await lo.put(`/rules/${s.id}`,{name:x,description:w||null,rules_yaml:y}),n({title:"Saved",description:"Rules updated successfully"})):(await lo.post(`/sources/${e}/rules?activate=true`,{name:x,description:w||null,rules_yaml:y}),n({title:"Created",description:"Rules created successfully"})),S(!1),await Promise.all([_(),O()])}catch(P){n({title:"Error",description:P instanceof Error?P.message:"Failed to save rules",variant:"destructive"})}finally{p(!1)}}},I=async()=>{if(e){b(!0);try{await lo.post(`/sources/${e}/rules?activate=true`,{name:"New Rules",description:null,rules_yaml:Dm}),n({title:"Created",description:"New rule created successfully"}),await Promise.all([_(),O()])}catch(P){n({title:"Error",description:P instanceof Error?P.message:"Failed to create rule",variant:"destructive"})}finally{b(!1)}}},$=async P=>{try{await lo.post(`/rules/${P}/activate`,{}),n({title:"Activated",description:"Rule activated successfully"}),await Promise.all([_(),O()])}catch(M){n({title:"Error",description:M instanceof Error?M.message:"Failed to activate rule",variant:"destructive"})}},C=async P=>{if(confirm("Are you sure you want to delete this rule?"))try{await lo.delete(`/rules/${P}`),n({title:"Deleted",description:"Rule deleted successfully"}),await Promise.all([_(),O()])}catch(M){n({title:"Error",description:M instanceof Error?M.message:"Failed to delete rule",variant:"destructive"})}};return u?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx(bm,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>t(`/sources/${e}`),children:l.jsx(Ui,{className:"h-5 w-5"})}),l.jsxs("div",{className:"flex-1",children:[l.jsx("h1",{className:"text-2xl font-semibold",children:"Validation Rules"}),r&&l.jsxs("p",{className:"text-muted-foreground",children:[r.name," (",r.type,")"]})]}),l.jsxs(Y,{onClick:I,disabled:m,variant:"outline",children:[m?l.jsx(bm,{className:"mr-2 h-4 w-4 animate-spin"}):l.jsx(Vt,{className:"mr-2 h-4 w-4"}),"New Rule"]})]}),l.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[l.jsx("div",{className:"lg:col-span-1 space-y-4",children:l.jsxs(X,{children:[l.jsxs(ve,{className:"pb-3",children:[l.jsx(xe,{className:"text-sm font-medium",children:"Rule History"}),l.jsxs(yr,{className:"text-xs",children:[i.length," rule",i.length!==1?"s":""," defined"]})]}),l.jsx(Z,{className:"space-y-2",children:i.length===0?l.jsx("div",{className:"text-center py-4 text-sm text-muted-foreground",children:"No rules defined yet"}):i.map(P=>l.jsx("div",{className:`p-3 rounded-lg border cursor-pointer transition-colors ${(s==null?void 0:s.id)===P.id?"border-primary bg-primary/5":"hover:bg-accent"}`,onClick:()=>{(s==null?void 0:s.id)!==P.id&&$(P.id)},children:l.jsxs("div",{className:"flex items-start justify-between gap-2",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Jd,{className:"h-4 w-4 text-muted-foreground"}),l.jsx("span",{className:"font-medium text-sm truncate",children:P.name}),P.is_active&&l.jsx(ae,{variant:"default",className:"text-xs",children:"Active"})]}),l.jsxs("div",{className:"mt-1 text-xs text-muted-foreground",children:[P.column_count," column rule",P.column_count!==1?"s":"",P.version&&` - v${P.version}`]})]}),l.jsx(Y,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:M=>{M.stopPropagation(),C(P.id)},children:l.jsx(Gr,{className:"h-3.5 w-3.5 text-muted-foreground hover:text-destructive"})})]})},P.id))})]})}),l.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[l.jsxs(X,{children:[l.jsx(ve,{className:"pb-3",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"space-y-1",children:[l.jsx(xe,{className:"text-sm font-medium",children:"Rule Editor"}),l.jsx(yr,{className:"text-xs",children:"Define validation rules in YAML format"})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[A&&l.jsxs(ae,{variant:"outline",className:"text-xs",children:[l.jsx(Rk,{className:"mr-1 h-3 w-3"}),"Unsaved changes"]}),l.jsxs(Y,{size:"sm",onClick:j,disabled:d||!A,children:[d?l.jsx(bm,{className:"mr-2 h-4 w-4 animate-spin"}):l.jsx(C6,{className:"mr-2 h-4 w-4"}),"Save"]})]})]})}),l.jsxs(Z,{className:"space-y-4",children:[l.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium",children:"Rule Name"}),l.jsx("input",{type:"text",value:x,onChange:P=>{g(P.target.value),S(!0)},className:"w-full px-3 py-2 text-sm rounded-md border bg-background",placeholder:"Enter rule name"})]}),l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium",children:"Description"}),l.jsx("input",{type:"text",value:w,onChange:P=>{E(P.target.value),S(!0)},className:"w-full px-3 py-2 text-sm rounded-md border bg-background",placeholder:"Optional description"})]})]}),l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium",children:"Rules YAML"}),l.jsx("textarea",{value:y,onChange:P=>T(P.target.value),className:"w-full h-96 px-3 py-2 text-sm font-mono rounded-md border bg-background resize-none",placeholder:"Enter validation rules in YAML format...",spellCheck:!1})]})]})]}),l.jsxs(X,{children:[l.jsx(ve,{className:"pb-3",children:l.jsx(xe,{className:"text-sm font-medium",children:"Quick Reference"})}),l.jsx(Z,{children:l.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 text-xs",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx("h4",{className:"font-medium",children:"Column Constraints"}),l.jsxs("ul",{className:"space-y-1 text-muted-foreground",children:[l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"not_null: true"})," - No nulls allowed"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"unique: true"})," - Values must be unique"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"min: 0"})," - Minimum value"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"max: 100"})," - Maximum value"]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx("h4",{className:"font-medium",children:"String Constraints"}),l.jsxs("ul",{className:"space-y-1 text-muted-foreground",children:[l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:'pattern: "regex"'})," - Match pattern"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"min_length: 1"})," - Min string length"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"max_length: 255"})," - Max string length"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"allowed_values: [a, b]"})," - Enum"]})]})]})]})})]})]})]})]})}function Fq(){const{id:e}=$i(),[t,n]=h.useState(null),[r,o]=h.useState(!0),{toast:i}=It(),a=h.useCallback(async()=>{if(e)try{o(!0);const c=await c7(e);n(c)}catch{i({title:"Error",description:"Failed to load validation details",variant:"destructive"})}finally{o(!1)}},[e,i]);if(h.useEffect(()=>{a()},[a]),r)return l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});if(!t)return l.jsxs("div",{className:"flex flex-col items-center justify-center h-64",children:[l.jsx(To,{className:"h-12 w-12 text-destructive mb-4"}),l.jsx("p",{className:"text-muted-foreground",children:"Validation not found"}),l.jsx(Y,{asChild:!0,className:"mt-4",children:l.jsx(Pe,{to:"/",children:"Back to Dashboard"})})]});const s={critical:t.issues.filter(c=>c.severity==="critical"),high:t.issues.filter(c=>c.severity==="high"),medium:t.issues.filter(c=>c.severity==="medium"),low:t.issues.filter(c=>c.severity==="low")};return l.jsxs("div",{className:"space-y-6",children:[l.jsxs(Pe,{to:`/sources/${t.source_id}`,className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground",children:[l.jsx(Ui,{className:"mr-2 h-4 w-4"}),"Back to Source"]}),l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-3",children:[t.passed?l.jsx(Ql,{className:"h-8 w-8 text-green-600"}):l.jsx(To,{className:"h-8 w-8 text-red-600"}),l.jsxs("h1",{className:"text-3xl font-bold",children:["Validation ",t.passed?"Passed":"Failed"]})]}),l.jsx("p",{className:"text-muted-foreground mt-2",children:yn(t.created_at)})]}),l.jsx(ae,{variant:t.passed?"success":"destructive",className:"text-lg px-4 py-1",children:t.status})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[l.jsx(X,{children:l.jsx(Z,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(Ai,{className:"h-5 w-5 text-muted-foreground"}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Total Issues"}),l.jsx("p",{className:"text-2xl font-bold",children:t.total_issues})]})]})})}),l.jsx(X,{children:l.jsx(Z,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(j6,{className:"h-5 w-5 text-muted-foreground"}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Rows"}),l.jsx("p",{className:"text-2xl font-bold",children:Rr(t.row_count)})]})]})})}),l.jsx(X,{children:l.jsx(Z,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(Mk,{className:"h-5 w-5 text-muted-foreground"}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Columns"}),l.jsx("p",{className:"text-2xl font-bold",children:Rr(t.column_count)})]})]})})}),l.jsx(X,{children:l.jsx(Z,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(ec,{className:"h-5 w-5 text-muted-foreground"}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),l.jsx("p",{className:"text-2xl font-bold",children:Kk(t.duration_ms)})]})]})})})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[l.jsx(X,{className:"border-red-200 dark:border-red-900",children:l.jsx(Z,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:"Critical"}),l.jsx(ae,{variant:"critical",children:t.critical_issues})]})})}),l.jsx(X,{className:"border-orange-200 dark:border-orange-900",children:l.jsx(Z,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:"High"}),l.jsx(ae,{variant:"high",children:t.high_issues})]})})}),l.jsx(X,{className:"border-yellow-200 dark:border-yellow-900",children:l.jsx(Z,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:"Medium"}),l.jsx(ae,{variant:"medium",children:t.medium_issues})]})})}),l.jsx(X,{className:"border-green-200 dark:border-green-900",children:l.jsx(Z,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:"Low"}),l.jsx(ae,{variant:"low",children:t.low_issues})]})})})]}),t.issues.length>0?l.jsxs(X,{children:[l.jsx(ve,{children:l.jsx(xe,{children:"Issues Detail"})}),l.jsx(Z,{children:l.jsx("div",{className:"space-y-4",children:["critical","high","medium","low"].map(c=>{const u=s[c];return u.length===0?null:l.jsxs("div",{children:[l.jsxs("h3",{className:"font-semibold capitalize mb-2 flex items-center gap-2",children:[l.jsx(ae,{variant:c,children:c}),l.jsxs("span",{className:"text-muted-foreground",children:["(",u.length,")"]})]}),l.jsx("div",{className:"space-y-2",children:u.map((f,d)=>l.jsx("div",{className:"p-4 rounded-lg border bg-card",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{children:[l.jsxs("p",{className:"font-medium",children:[l.jsx("span",{className:"text-primary",children:f.column})," - ",f.issue_type]}),f.details&&l.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:f.details}),(f.expected!==void 0||f.actual!==void 0)&&l.jsxs("div",{className:"flex gap-4 mt-2 text-sm",children:[f.expected!==void 0&&l.jsxs("span",{children:["Expected:"," ",l.jsx("code",{className:"bg-muted px-1 rounded",children:String(f.expected)})]}),f.actual!==void 0&&l.jsxs("span",{children:["Actual:"," ",l.jsx("code",{className:"bg-muted px-1 rounded",children:String(f.actual)})]})]})]}),l.jsxs("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:[Rr(f.count)," occurrences"]})]})},d))})]},c)})})})]}):l.jsx(X,{children:l.jsxs(Z,{className:"py-16 flex flex-col items-center justify-center",children:[l.jsx(Ql,{className:"h-16 w-16 text-green-600 mb-4"}),l.jsx("h3",{className:"text-lg font-semibold",children:"No Issues Found"}),l.jsx("p",{className:"text-muted-foreground",children:"All validation checks passed successfully."})]})}),t.error_message&&l.jsxs(X,{className:"border-destructive",children:[l.jsx(ve,{children:l.jsx(xe,{className:"text-destructive",children:"Error"})}),l.jsx(Z,{children:l.jsx("pre",{className:"text-sm text-destructive whitespace-pre-wrap",children:t.error_message})})]})]})}var Bq=Array.isArray,on=Bq,Uq=typeof yu=="object"&&yu&&yu.Object===Object&&yu,H$=Uq,Hq=H$,zq=typeof self=="object"&&self&&self.Object===Object&&self,Wq=Hq||zq||Function("return this")(),Nr=Wq,Gq=Nr,Vq=Gq.Symbol,iu=Vq,gA=iu,z$=Object.prototype,Kq=z$.hasOwnProperty,Yq=z$.toString,qs=gA?gA.toStringTag:void 0;function qq(e){var t=Kq.call(e,qs),n=e[qs];try{e[qs]=void 0;var r=!0}catch{}var o=Yq.call(e);return r&&(t?e[qs]=n:delete e[qs]),o}var Xq=qq,Zq=Object.prototype,Qq=Zq.toString;function Jq(e){return Qq.call(e)}var eX=Jq,xA=iu,tX=Xq,nX=eX,rX="[object Null]",oX="[object Undefined]",bA=xA?xA.toStringTag:void 0;function iX(e){return e==null?e===void 0?oX:rX:bA&&bA in Object(e)?tX(e):nX(e)}var no=iX;function aX(e){return e!=null&&typeof e=="object"}var ro=aX,sX=no,lX=ro,cX="[object Symbol]";function uX(e){return typeof e=="symbol"||lX(e)&&sX(e)==cX}var Ns=uX,dX=on,fX=Ns,pX=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hX=/^\w*$/;function mX(e,t){if(dX(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||fX(e)?!0:hX.test(e)||!pX.test(e)||t!=null&&e in Object(t)}var V0=mX;function vX(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Vo=vX;const _s=Re(Vo);var yX=no,gX=Vo,xX="[object AsyncFunction]",bX="[object Function]",wX="[object GeneratorFunction]",SX="[object Proxy]";function AX(e){if(!gX(e))return!1;var t=yX(e);return t==bX||t==wX||t==xX||t==SX}var K0=AX;const be=Re(K0);var EX=Nr,NX=EX["__core-js_shared__"],_X=NX,$m=_X,wA=function(){var e=/[^.]+$/.exec($m&&$m.keys&&$m.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jX(e){return!!wA&&wA in e}var CX=jX,OX=Function.prototype,TX=OX.toString;function PX(e){if(e!=null){try{return TX.call(e)}catch{}try{return e+""}catch{}}return""}var W$=PX,IX=K0,RX=CX,kX=Vo,MX=W$,DX=/[\\^$.*+?()[\]{}|]/g,$X=/^\[object .+?Constructor\]$/,LX=Function.prototype,FX=Object.prototype,BX=LX.toString,UX=FX.hasOwnProperty,HX=RegExp("^"+BX.call(UX).replace(DX,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zX(e){if(!kX(e)||RX(e))return!1;var t=IX(e)?HX:$X;return t.test(MX(e))}var WX=zX;function GX(e,t){return e==null?void 0:e[t]}var VX=GX,KX=WX,YX=VX;function qX(e,t){var n=YX(e,t);return KX(n)?n:void 0}var Gi=qX,XX=Gi,ZX=XX(Object,"create"),th=ZX,SA=th;function QX(){this.__data__=SA?SA(null):{},this.size=0}var JX=QX;function eZ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tZ=eZ,nZ=th,rZ="__lodash_hash_undefined__",oZ=Object.prototype,iZ=oZ.hasOwnProperty;function aZ(e){var t=this.__data__;if(nZ){var n=t[e];return n===rZ?void 0:n}return iZ.call(t,e)?t[e]:void 0}var sZ=aZ,lZ=th,cZ=Object.prototype,uZ=cZ.hasOwnProperty;function dZ(e){var t=this.__data__;return lZ?t[e]!==void 0:uZ.call(t,e)}var fZ=dZ,pZ=th,hZ="__lodash_hash_undefined__";function mZ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pZ&&t===void 0?hZ:t,this}var vZ=mZ,yZ=JX,gZ=tZ,xZ=sZ,bZ=fZ,wZ=vZ;function js(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])}}js.prototype.clear=yZ;js.prototype.delete=gZ;js.prototype.get=xZ;js.prototype.has=bZ;js.prototype.set=wZ;var SZ=js;function AZ(){this.__data__=[],this.size=0}var EZ=AZ;function NZ(e,t){return e===t||e!==e&&t!==t}var Y0=NZ,_Z=Y0;function jZ(e,t){for(var n=e.length;n--;)if(_Z(e[n][0],t))return n;return-1}var nh=jZ,CZ=nh,OZ=Array.prototype,TZ=OZ.splice;function PZ(e){var t=this.__data__,n=CZ(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():TZ.call(t,n,1),--this.size,!0}var IZ=PZ,RZ=nh;function kZ(e){var t=this.__data__,n=RZ(t,e);return n<0?void 0:t[n][1]}var MZ=kZ,DZ=nh;function $Z(e){return DZ(this.__data__,e)>-1}var LZ=$Z,FZ=nh;function BZ(e,t){var n=this.__data__,r=FZ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var UZ=BZ,HZ=EZ,zZ=IZ,WZ=MZ,GZ=LZ,VZ=UZ;function Cs(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])}}Cs.prototype.clear=HZ;Cs.prototype.delete=zZ;Cs.prototype.get=WZ;Cs.prototype.has=GZ;Cs.prototype.set=VZ;var rh=Cs,KZ=Gi,YZ=Nr,qZ=KZ(YZ,"Map"),q0=qZ,AA=SZ,XZ=rh,ZZ=q0;function QZ(){this.size=0,this.__data__={hash:new AA,map:new(ZZ||XZ),string:new AA}}var JZ=QZ;function eQ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var tQ=eQ,nQ=tQ;function rQ(e,t){var n=e.__data__;return nQ(t)?n[typeof t=="string"?"string":"hash"]:n.map}var oh=rQ,oQ=oh;function iQ(e){var t=oQ(this,e).delete(e);return this.size-=t?1:0,t}var aQ=iQ,sQ=oh;function lQ(e){return sQ(this,e).get(e)}var cQ=lQ,uQ=oh;function dQ(e){return uQ(this,e).has(e)}var fQ=dQ,pQ=oh;function hQ(e,t){var n=pQ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var mQ=hQ,vQ=JZ,yQ=aQ,gQ=cQ,xQ=fQ,bQ=mQ;function Os(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])}}Os.prototype.clear=vQ;Os.prototype.delete=yQ;Os.prototype.get=gQ;Os.prototype.has=xQ;Os.prototype.set=bQ;var X0=Os,G$=X0,wQ="Expected a function";function Z0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wQ);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Z0.Cache||G$),n}Z0.Cache=G$;var V$=Z0;const SQ=Re(V$);var AQ=V$,EQ=500;function NQ(e){var t=AQ(e,function(r){return n.size===EQ&&n.clear(),r}),n=t.cache;return t}var _Q=NQ,jQ=_Q,CQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,OQ=/\\(\\)?/g,TQ=jQ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(CQ,function(n,r,o,i){t.push(o?i.replace(OQ,"$1"):r||n)}),t}),PQ=TQ;function IQ(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Q0=IQ,EA=iu,RQ=Q0,kQ=on,MQ=Ns,NA=EA?EA.prototype:void 0,_A=NA?NA.toString:void 0;function K$(e){if(typeof e=="string")return e;if(kQ(e))return RQ(e,K$)+"";if(MQ(e))return _A?_A.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var DQ=K$,$Q=DQ;function LQ(e){return e==null?"":$Q(e)}var Y$=LQ,FQ=on,BQ=V0,UQ=PQ,HQ=Y$;function zQ(e,t){return FQ(e)?e:BQ(e,t)?[e]:UQ(HQ(e))}var q$=zQ,WQ=Ns;function GQ(e){if(typeof e=="string"||WQ(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var ih=GQ,VQ=q$,KQ=ih;function YQ(e,t){t=VQ(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[KQ(t[n++])];return n&&n==r?e:void 0}var J0=YQ,qQ=J0;function XQ(e,t,n){var r=e==null?void 0:qQ(e,t);return r===void 0?n:r}var X$=XQ;const Tn=Re(X$);function ZQ(e){return e==null}var QQ=ZQ;const Se=Re(QQ);var JQ=no,eJ=on,tJ=ro,nJ="[object String]";function rJ(e){return typeof e=="string"||!eJ(e)&&tJ(e)&&JQ(e)==nJ}var oJ=rJ;const Ci=Re(oJ);var Z$={exports:{}},ke={};/**
503
+ * @license React
504
+ * react-is.production.min.js
505
+ *
506
+ * Copyright (c) Facebook, Inc. and its affiliates.
507
+ *
508
+ * This source code is licensed under the MIT license found in the
509
+ * LICENSE file in the root directory of this source tree.
510
+ */var eb=Symbol.for("react.element"),tb=Symbol.for("react.portal"),ah=Symbol.for("react.fragment"),sh=Symbol.for("react.strict_mode"),lh=Symbol.for("react.profiler"),ch=Symbol.for("react.provider"),uh=Symbol.for("react.context"),iJ=Symbol.for("react.server_context"),dh=Symbol.for("react.forward_ref"),fh=Symbol.for("react.suspense"),ph=Symbol.for("react.suspense_list"),hh=Symbol.for("react.memo"),mh=Symbol.for("react.lazy"),aJ=Symbol.for("react.offscreen"),Q$;Q$=Symbol.for("react.module.reference");function Dn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case eb:switch(e=e.type,e){case ah:case lh:case sh:case fh:case ph:return e;default:switch(e=e&&e.$$typeof,e){case iJ:case uh:case dh:case mh:case hh:case ch:return e;default:return t}}case tb:return t}}}ke.ContextConsumer=uh;ke.ContextProvider=ch;ke.Element=eb;ke.ForwardRef=dh;ke.Fragment=ah;ke.Lazy=mh;ke.Memo=hh;ke.Portal=tb;ke.Profiler=lh;ke.StrictMode=sh;ke.Suspense=fh;ke.SuspenseList=ph;ke.isAsyncMode=function(){return!1};ke.isConcurrentMode=function(){return!1};ke.isContextConsumer=function(e){return Dn(e)===uh};ke.isContextProvider=function(e){return Dn(e)===ch};ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===eb};ke.isForwardRef=function(e){return Dn(e)===dh};ke.isFragment=function(e){return Dn(e)===ah};ke.isLazy=function(e){return Dn(e)===mh};ke.isMemo=function(e){return Dn(e)===hh};ke.isPortal=function(e){return Dn(e)===tb};ke.isProfiler=function(e){return Dn(e)===lh};ke.isStrictMode=function(e){return Dn(e)===sh};ke.isSuspense=function(e){return Dn(e)===fh};ke.isSuspenseList=function(e){return Dn(e)===ph};ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ah||e===lh||e===sh||e===fh||e===ph||e===aJ||typeof e=="object"&&e!==null&&(e.$$typeof===mh||e.$$typeof===hh||e.$$typeof===ch||e.$$typeof===uh||e.$$typeof===dh||e.$$typeof===Q$||e.getModuleId!==void 0)};ke.typeOf=Dn;Z$.exports=ke;var sJ=Z$.exports,lJ=no,cJ=ro,uJ="[object Number]";function dJ(e){return typeof e=="number"||cJ(e)&&lJ(e)==uJ}var J$=dJ;const fJ=Re(J$);var pJ=J$;function hJ(e){return pJ(e)&&e!=+e}var mJ=hJ;const au=Re(mJ);var Xn=function(t){return t===0?0:t>0?1:-1},ci=function(t){return Ci(t)&&t.indexOf("%")===t.length-1},q=function(t){return fJ(t)&&!au(t)},vJ=function(t){return Se(t)},gt=function(t){return q(t)||Ci(t)},yJ=0,su=function(t){var n=++yJ;return"".concat(t||"").concat(n)},Oi=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!Ci(t))return r;var i;if(ci(t)){var a=t.indexOf("%");i=n*parseFloat(t.slice(0,a))/100}else i=+t;return au(i)&&(i=r),o&&i>n&&(i=n),i},vo=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},gJ=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},o=0;o<n;o++)if(!r[t[o]])r[t[o]]=!0;else return!0;return!1},Yn=function(t,n){return q(t)&&q(n)?function(r){return t+r*(n-t)}:function(){return n}};function df(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Tn(r,t))===n})}var xJ=function(t,n){return q(t)&&q(n)?t-n:Ci(t)&&Ci(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Pa(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 Iy(e){"@babel/helpers - typeof";return Iy=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},Iy(e)}var bJ=["viewBox","children"],wJ=["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"],jA=["points","pathLength"],Lm={svg:bJ,polygon:jA,polyline:jA},nb=["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"],ff=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(h.isValidElement(t)&&(r=t.props),!_s(r))return null;var o={};return Object.keys(r).forEach(function(i){nb.includes(i)&&(o[i]=n||function(a){return r[i](r,a)})}),o},SJ=function(t,n,r){return function(o){return t(n,r,o),null}},pf=function(t,n,r){if(!_s(t)||Iy(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(i){var a=t[i];nb.includes(i)&&typeof a=="function"&&(o||(o={}),o[i]=SJ(a,n,r))}),o},AJ=["children"],EJ=["children"];function CA(e,t){if(e==null)return{};var n=NJ(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NJ(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 Ry(e){"@babel/helpers - typeof";return Ry=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},Ry(e)}var OA={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"},Lr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},TA=null,Fm=null,rb=function e(t){if(t===TA&&Array.isArray(Fm))return Fm;var n=[];return h.Children.forEach(t,function(r){Se(r)||(sJ.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Fm=n,TA=t,n};function Pn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return Lr(o)}):r=[Lr(t)],rb(e).forEach(function(o){var i=Tn(o,"type.displayName")||Tn(o,"type.name");r.indexOf(i)!==-1&&n.push(o)}),n}function cn(e,t){var n=Pn(e,t);return n&&n[0]}var PA=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,o=n.height;return!(!q(r)||r<=0||!q(o)||o<=0)},_J=["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"],jJ=function(t){return t&&t.type&&Ci(t.type)&&_J.indexOf(t.type)>=0},CJ=function(t){return t&&Ry(t)==="object"&&"clipDot"in t},OJ=function(t,n,r,o){var i,a=(i=Lm==null?void 0:Lm[o])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!be(t)&&(o&&a.includes(n)||wJ.includes(n))||r&&nb.includes(n)},Ne=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(h.isValidElement(t)&&(o=t.props),!_s(o))return null;var i={};return Object.keys(o).forEach(function(a){var s;OJ((s=o)===null||s===void 0?void 0:s[a],a,n,r)&&(i[a]=o[a])}),i},ky=function e(t,n){if(t===n)return!0;var r=h.Children.count(t);if(r!==h.Children.count(n))return!1;if(r===0)return!0;if(r===1)return IA(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],a=n[o];if(Array.isArray(i)||Array.isArray(a)){if(!e(i,a))return!1}else if(!IA(i,a))return!1}return!0},IA=function(t,n){if(Se(t)&&Se(n))return!0;if(!Se(t)&&!Se(n)){var r=t.props||{},o=r.children,i=CA(r,AJ),a=n.props||{},s=a.children,c=CA(a,EJ);return o&&s?Pa(i,c)&&ky(o,s):!o&&!s?Pa(i,c):!1}return!1},RA=function(t,n){var r=[],o={};return rb(t).forEach(function(i,a){if(jJ(i))r.push(i);else if(i){var s=Lr(i.type),c=n[s]||{},u=c.handler,f=c.once;if(u&&(!f||!o[s])){var d=u(i,s,a);r.push(d),o[s]=!0}}}),r},TJ=function(t){var n=t&&t.type;return n&&OA[n]?OA[n]:null},PJ=function(t,n){return rb(n).indexOf(t)},IJ=["children","width","height","viewBox","className","style","title","desc"];function My(){return My=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},My.apply(this,arguments)}function RJ(e,t){if(e==null)return{};var n=kJ(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kJ(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 Dy(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,s=e.title,c=e.desc,u=RJ(e,IJ),f=o||{width:n,height:r,x:0,y:0},d=_e("recharts-surface",i);return D.createElement("svg",My({},Ne(u,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),D.createElement("title",null,s),D.createElement("desc",null,c),t)}var MJ=["children","className"];function $y(){return $y=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},$y.apply(this,arguments)}function DJ(e,t){if(e==null)return{};var n=$J(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $J(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 it=D.forwardRef(function(e,t){var n=e.children,r=e.className,o=DJ(e,MJ),i=_e("recharts-layer",r);return D.createElement("g",$y({className:i},Ne(o,!0),{ref:t}),n)}),Fr=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i]};function LJ(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}var FJ=LJ,BJ=FJ;function UJ(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:BJ(e,t,n)}var HJ=UJ,zJ="\\ud800-\\udfff",WJ="\\u0300-\\u036f",GJ="\\ufe20-\\ufe2f",VJ="\\u20d0-\\u20ff",KJ=WJ+GJ+VJ,YJ="\\ufe0e\\ufe0f",qJ="\\u200d",XJ=RegExp("["+qJ+zJ+KJ+YJ+"]");function ZJ(e){return XJ.test(e)}var eL=ZJ;function QJ(e){return e.split("")}var JJ=QJ,tL="\\ud800-\\udfff",eee="\\u0300-\\u036f",tee="\\ufe20-\\ufe2f",nee="\\u20d0-\\u20ff",ree=eee+tee+nee,oee="\\ufe0e\\ufe0f",iee="["+tL+"]",Ly="["+ree+"]",Fy="\\ud83c[\\udffb-\\udfff]",aee="(?:"+Ly+"|"+Fy+")",nL="[^"+tL+"]",rL="(?:\\ud83c[\\udde6-\\uddff]){2}",oL="[\\ud800-\\udbff][\\udc00-\\udfff]",see="\\u200d",iL=aee+"?",aL="["+oee+"]?",lee="(?:"+see+"(?:"+[nL,rL,oL].join("|")+")"+aL+iL+")*",cee=aL+iL+lee,uee="(?:"+[nL+Ly+"?",Ly,rL,oL,iee].join("|")+")",dee=RegExp(Fy+"(?="+Fy+")|"+uee+cee,"g");function fee(e){return e.match(dee)||[]}var pee=fee,hee=JJ,mee=eL,vee=pee;function yee(e){return mee(e)?vee(e):hee(e)}var gee=yee,xee=HJ,bee=eL,wee=gee,See=Y$;function Aee(e){return function(t){t=See(t);var n=bee(t)?wee(t):void 0,r=n?n[0]:t.charAt(0),o=n?xee(n,1).join(""):t.slice(1);return r[e]()+o}}var Eee=Aee,Nee=Eee,_ee=Nee("toUpperCase"),jee=_ee;const vh=Re(jee);function $e(e){return function(){return e}}const sL=Math.cos,hf=Math.sin,or=Math.sqrt,mf=Math.PI,yh=2*mf,By=Math.PI,Uy=2*By,ni=1e-6,Cee=Uy-ni;function lL(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Oee(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lL;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class Tee{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?lL:Oee(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,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,i,a){this._append`C${+t},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(t,n,r,o,i){if(t=+t,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,c=r-t,u=o-n,f=a-t,d=s-n,p=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>ni)if(!(Math.abs(d*c-u*f)>ni)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-a,b=o-s,y=c*c+u*u,v=m*m+b*b,x=Math.sqrt(y),g=Math.sqrt(p),w=i*Math.tan((By-Math.acos((y+p-v)/(2*x*g)))/2),E=w/g,A=w/x;Math.abs(E-1)>ni&&this._append`L${t+E*f},${n+E*d}`,this._append`A${i},${i},0,0,${+(d*m>f*b)},${this._x1=t+A*c},${this._y1=n+A*u}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),c=r*Math.sin(o),u=t+s,f=n+c,d=1^a,p=a?o-i:i-o;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>ni||Math.abs(this._y1-f)>ni)&&this._append`L${u},${f}`,r&&(p<0&&(p=p%Uy+Uy),p>Cee?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:p>ni&&this._append`A${r},${r},0,${+(p>=By)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function ob(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 Tee(t)}function ib(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cL(e){this._context=e}cL.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 gh(e){return new cL(e)}function uL(e){return e[0]}function dL(e){return e[1]}function fL(e,t){var n=$e(!0),r=null,o=gh,i=null,a=ob(s);e=typeof e=="function"?e:e===void 0?uL:$e(e),t=typeof t=="function"?t:t===void 0?dL:$e(t);function s(c){var u,f=(c=ib(c)).length,d,p=!1,m;for(r==null&&(i=o(m=a())),u=0;u<=f;++u)!(u<f&&n(d=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(d,u,c),+t(d,u,c));if(m)return i=null,m+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:$e(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:$e(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:$e(!!c),s):n},s.curve=function(c){return arguments.length?(o=c,r!=null&&(i=o(r)),s):o},s.context=function(c){return arguments.length?(c==null?r=i=null:i=o(r=c),s):r},s}function Wu(e,t,n){var r=null,o=$e(!0),i=null,a=gh,s=null,c=ob(u);e=typeof e=="function"?e:e===void 0?uL:$e(+e),t=typeof t=="function"?t:$e(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?dL:$e(+n);function u(d){var p,m,b,y=(d=ib(d)).length,v,x=!1,g,w=new Array(y),E=new Array(y);for(i==null&&(s=a(g=c())),p=0;p<=y;++p){if(!(p<y&&o(v=d[p],p,d))===x)if(x=!x)m=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),b=p-1;b>=m;--b)s.point(w[b],E[b]);s.lineEnd(),s.areaEnd()}x&&(w[p]=+e(v,p,d),E[p]=+t(v,p,d),s.point(r?+r(v,p,d):w[p],n?+n(v,p,d):E[p]))}if(g)return s=null,g+""||null}function f(){return fL().defined(o).curve(a).context(i)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:$e(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:$e(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:$e(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:$e(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:$e(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:$e(+d),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(d){return arguments.length?(o=typeof d=="function"?d:$e(!!d),u):o},u.curve=function(d){return arguments.length?(a=d,i!=null&&(s=a(i)),u):a},u.context=function(d){return arguments.length?(d==null?i=s=null:s=a(i=d),u):i},u}class pL{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 Pee(e){return new pL(e,!0)}function Iee(e){return new pL(e,!1)}const ab={draw(e,t){const n=or(t/mf);e.moveTo(n,0),e.arc(0,0,n,0,yh)}},Ree={draw(e,t){const n=or(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()}},hL=or(1/3),kee=hL*2,Mee={draw(e,t){const n=or(t/kee),r=n*hL;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Dee={draw(e,t){const n=or(t),r=-n/2;e.rect(r,r,n,n)}},$ee=.8908130915292852,mL=hf(mf/10)/hf(7*mf/10),Lee=hf(yh/10)*mL,Fee=-sL(yh/10)*mL,Bee={draw(e,t){const n=or(t*$ee),r=Lee*n,o=Fee*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const a=yh*i/5,s=sL(a),c=hf(a);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*o,c*r+s*o)}e.closePath()}},Bm=or(3),Uee={draw(e,t){const n=-or(t/(Bm*3));e.moveTo(0,n*2),e.lineTo(-Bm*n,-n),e.lineTo(Bm*n,-n),e.closePath()}},wn=-.5,Sn=or(3)/2,Hy=1/or(12),Hee=(Hy/2+1)*3,zee={draw(e,t){const n=or(t/Hee),r=n/2,o=n*Hy,i=r,a=n*Hy+n,s=-i,c=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,c),e.lineTo(wn*r-Sn*o,Sn*r+wn*o),e.lineTo(wn*i-Sn*a,Sn*i+wn*a),e.lineTo(wn*s-Sn*c,Sn*s+wn*c),e.lineTo(wn*r+Sn*o,wn*o-Sn*r),e.lineTo(wn*i+Sn*a,wn*a-Sn*i),e.lineTo(wn*s+Sn*c,wn*c-Sn*s),e.closePath()}};function Wee(e,t){let n=null,r=ob(o);e=typeof e=="function"?e:$e(e||ab),t=typeof t=="function"?t:$e(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:$e(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:$e(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function vf(){}function yf(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 vL(e){this._context=e}vL.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:yf(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:yf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gee(e){return new vL(e)}function yL(e){this._context=e}yL.prototype={areaStart:vf,areaEnd:vf,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:yf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vee(e){return new yL(e)}function gL(e){this._context=e}gL.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:yf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Kee(e){return new gL(e)}function xL(e){this._context=e}xL.prototype={areaStart:vf,areaEnd:vf,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 Yee(e){return new xL(e)}function kA(e){return e<0?-1:1}function MA(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(kA(i)+kA(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function DA(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Um(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function gf(e){this._context=e}gf.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:Um(this,this._t0,DA(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,Um(this,DA(this,n=MA(this,e,t)),n);break;default:Um(this,this._t0,n=MA(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function bL(e){this._context=new wL(e)}(bL.prototype=Object.create(gf.prototype)).point=function(e,t){gf.prototype.point.call(this,t,e)};function wL(e){this._context=e}wL.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,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function qee(e){return new gf(e)}function Xee(e){return new bL(e)}function SL(e){this._context=e}SL.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=$A(e),o=$A(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],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 $A(e){var t,n=e.length-1,r,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function Zee(e){return new SL(e)}function xh(e,t){this._context=e,this._t=t}xh.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 Qee(e){return new xh(e,.5)}function Jee(e){return new xh(e,0)}function ete(e){return new xh(e,1)}function Ga(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n<a;++n)for(o=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function zy(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function tte(e,t){return e[t]}function nte(e){const t=[];return t.key=e,t}function rte(){var e=$e([]),t=zy,n=Ga,r=tte;function o(i){var a=Array.from(e.apply(this,arguments),nte),s,c=a.length,u=-1,f;for(const d of i)for(s=0,++u;s<c;++s)(a[s][u]=[0,+r(d,a[s].key,u,i)]).data=d;for(s=0,f=ib(t(a));s<c;++s)a[f[s]].index=s;return n(a,f),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:$e(Array.from(i)),o):e},o.value=function(i){return arguments.length?(r=typeof i=="function"?i:$e(+i),o):r},o.order=function(i){return arguments.length?(t=i==null?zy:typeof i=="function"?i:$e(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(n=i??Ga,o):n},o}function ote(e,t){if((r=e.length)>0){for(var n,r,o=0,i=e[0].length,a;o<i;++o){for(a=n=0;n<r;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<r;++n)e[n][o][1]/=a}Ga(e,t)}}function ite(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n<i;++n){for(var a=0,s=0;a<o;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Ga(e,t)}}function ate(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r<i;++r){for(var s=0,c=0,u=0;s<a;++s){for(var f=e[t[s]],d=f[r][1]||0,p=f[r-1][1]||0,m=(d-p)/2,b=0;b<s;++b){var y=e[t[b]],v=y[r][1]||0,x=y[r-1][1]||0;m+=v-x}c+=d,u+=m*d}o[r-1][1]+=o[r-1][0]=n,c&&(n-=u/c)}o[r-1][1]+=o[r-1][0]=n,Ga(e,t)}}function ic(e){"@babel/helpers - typeof";return ic=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},ic(e)}var ste=["type","size","sizeType"];function Wy(){return Wy=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},Wy.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(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function FA(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){lte(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 lte(e,t,n){return t=cte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cte(e){var t=ute(e,"string");return ic(t)=="symbol"?t:t+""}function ute(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dte(e,t){if(e==null)return{};var n=fte(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fte(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 AL={symbolCircle:ab,symbolCross:Ree,symbolDiamond:Mee,symbolSquare:Dee,symbolStar:Bee,symbolTriangle:Uee,symbolWye:zee},pte=Math.PI/180,hte=function(t){var n="symbol".concat(vh(t));return AL[n]||ab},mte=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 o=18*pte;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),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}},vte=function(t,n){AL["symbol".concat(vh(t))]=n},sb=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,i=o===void 0?64:o,a=t.sizeType,s=a===void 0?"area":a,c=dte(t,ste),u=FA(FA({},c),{},{type:r,size:i,sizeType:s}),f=function(){var v=hte(r),x=Wee().type(v).size(mte(i,s,r));return x()},d=u.className,p=u.cx,m=u.cy,b=Ne(u,!0);return p===+p&&m===+m&&i===+i?D.createElement("path",Wy({},b,{className:_e("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(m,")"),d:f()})):null};sb.registerSymbol=vte;function Va(e){"@babel/helpers - typeof";return Va=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},Va(e)}function Gy(){return Gy=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},Gy.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(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yte(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){ac(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 gte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xte(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,NL(r.key),r)}}function bte(e,t,n){return t&&xte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wte(e,t,n){return t=xf(t),Ste(e,EL()?Reflect.construct(t,n||[],xf(e).constructor):t.apply(e,n))}function Ste(e,t){if(t&&(Va(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ate(e)}function Ate(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EL=function(){return!!e})()}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function Ete(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&&Vy(e,t)}function Vy(e,t){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Vy(e,t)}function ac(e,t,n){return t=NL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NL(e){var t=Nte(e,"string");return Va(t)=="symbol"?t:t+""}function Nte(e,t){if(Va(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Va(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var An=32,lb=function(e){function t(){return gte(this,t),wte(this,t,arguments)}return Ete(t,e),bte(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,i=An/2,a=An/6,s=An/3,c=r.inactive?o:r.color;if(r.type==="plainline")return D.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:An,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return D.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(s,`
511
+ A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(i,`
512
+ H`).concat(An,"M").concat(2*s,",").concat(i,`
513
+ A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return D.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(An/8,"h").concat(An,"v").concat(An*3/4,"h").concat(-An,"z"),className:"recharts-legend-icon"});if(D.isValidElement(r.legendIcon)){var u=yte({},r);return delete u.legendIcon,D.cloneElement(r.legendIcon,u)}return D.createElement(sb,{fill:c,cx:i,cy:i,size:An,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,i=o.payload,a=o.iconSize,s=o.layout,c=o.formatter,u=o.inactiveColor,f={x:0,y:0,width:An,height:An},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(m,b){var y=m.formatter||c,v=_e(ac(ac({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",m.inactive));if(m.type==="none")return null;var x=be(m.value)?null:m.value;Fr(!be(m.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 g=m.inactive?u:m.color;return D.createElement("li",Gy({className:v,style:d,key:"legend-item-".concat(b)},pf(r.props,m,b)),D.createElement(Dy,{width:a,height:a,viewBox:f,style:p},r.renderIcon(m)),D.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},y?y(x,m,b):x))})}},{key:"render",value:function(){var r=this.props,o=r.payload,i=r.layout,a=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?a:"left"};return D.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(h.PureComponent);ac(lb,"displayName","Legend");ac(lb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var _te=rh;function jte(){this.__data__=new _te,this.size=0}var Cte=jte;function Ote(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Tte=Ote;function Pte(e){return this.__data__.get(e)}var Ite=Pte;function Rte(e){return this.__data__.has(e)}var kte=Rte,Mte=rh,Dte=q0,$te=X0,Lte=200;function Fte(e,t){var n=this.__data__;if(n instanceof Mte){var r=n.__data__;if(!Dte||r.length<Lte-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new $te(r)}return n.set(e,t),this.size=n.size,this}var Bte=Fte,Ute=rh,Hte=Cte,zte=Tte,Wte=Ite,Gte=kte,Vte=Bte;function Ts(e){var t=this.__data__=new Ute(e);this.size=t.size}Ts.prototype.clear=Hte;Ts.prototype.delete=zte;Ts.prototype.get=Wte;Ts.prototype.has=Gte;Ts.prototype.set=Vte;var _L=Ts,Kte="__lodash_hash_undefined__";function Yte(e){return this.__data__.set(e,Kte),this}var qte=Yte;function Xte(e){return this.__data__.has(e)}var Zte=Xte,Qte=X0,Jte=qte,ene=Zte;function bf(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Qte;++t<n;)this.add(e[t])}bf.prototype.add=bf.prototype.push=Jte;bf.prototype.has=ene;var jL=bf;function tne(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 CL=tne;function nne(e,t){return e.has(t)}var OL=nne,rne=jL,one=CL,ine=OL,ane=1,sne=2;function lne(e,t,n,r,o,i){var a=n&ane,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var d=-1,p=!0,m=n&sne?new rne:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var b=e[d],y=t[d];if(r)var v=a?r(y,b,d,t,e,i):r(b,y,d,e,t,i);if(v!==void 0){if(v)continue;p=!1;break}if(m){if(!one(t,function(x,g){if(!ine(m,g)&&(b===x||o(b,x,n,r,i)))return m.push(g)})){p=!1;break}}else if(!(b===y||o(b,y,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var TL=lne,cne=Nr,une=cne.Uint8Array,dne=une;function fne(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var pne=fne;function hne(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var cb=hne,UA=iu,HA=dne,mne=Y0,vne=TL,yne=pne,gne=cb,xne=1,bne=2,wne="[object Boolean]",Sne="[object Date]",Ane="[object Error]",Ene="[object Map]",Nne="[object Number]",_ne="[object RegExp]",jne="[object Set]",Cne="[object String]",One="[object Symbol]",Tne="[object ArrayBuffer]",Pne="[object DataView]",zA=UA?UA.prototype:void 0,Hm=zA?zA.valueOf:void 0;function Ine(e,t,n,r,o,i,a){switch(n){case Pne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Tne:return!(e.byteLength!=t.byteLength||!i(new HA(e),new HA(t)));case wne:case Sne:case Nne:return mne(+e,+t);case Ane:return e.name==t.name&&e.message==t.message;case _ne:case Cne:return e==t+"";case Ene:var s=yne;case jne:var c=r&xne;if(s||(s=gne),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=bne,a.set(e,t);var f=vne(s(e),s(t),r,o,i,a);return a.delete(e),f;case One:if(Hm)return Hm.call(e)==Hm.call(t)}return!1}var Rne=Ine;function kne(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var PL=kne,Mne=PL,Dne=on;function $ne(e,t,n){var r=t(e);return Dne(e)?r:Mne(r,n(e))}var Lne=$ne;function Fne(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}var Bne=Fne;function Une(){return[]}var Hne=Une,zne=Bne,Wne=Hne,Gne=Object.prototype,Vne=Gne.propertyIsEnumerable,WA=Object.getOwnPropertySymbols,Kne=WA?function(e){return e==null?[]:(e=Object(e),zne(WA(e),function(t){return Vne.call(e,t)}))}:Wne,Yne=Kne;function qne(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Xne=qne,Zne=no,Qne=ro,Jne="[object Arguments]";function ere(e){return Qne(e)&&Zne(e)==Jne}var tre=ere,GA=tre,nre=ro,IL=Object.prototype,rre=IL.hasOwnProperty,ore=IL.propertyIsEnumerable,ire=GA(function(){return arguments}())?GA:function(e){return nre(e)&&rre.call(e,"callee")&&!ore.call(e,"callee")},ub=ire,wf={exports:{}};function are(){return!1}var sre=are;wf.exports;(function(e,t){var n=Nr,r=sre,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||r;e.exports=u})(wf,wf.exports);var RL=wf.exports,lre=9007199254740991,cre=/^(?:0|[1-9]\d*)$/;function ure(e,t){var n=typeof e;return t=t??lre,!!t&&(n=="number"||n!="symbol"&&cre.test(e))&&e>-1&&e%1==0&&e<t}var db=ure,dre=9007199254740991;function fre(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dre}var fb=fre,pre=no,hre=fb,mre=ro,vre="[object Arguments]",yre="[object Array]",gre="[object Boolean]",xre="[object Date]",bre="[object Error]",wre="[object Function]",Sre="[object Map]",Are="[object Number]",Ere="[object Object]",Nre="[object RegExp]",_re="[object Set]",jre="[object String]",Cre="[object WeakMap]",Ore="[object ArrayBuffer]",Tre="[object DataView]",Pre="[object Float32Array]",Ire="[object Float64Array]",Rre="[object Int8Array]",kre="[object Int16Array]",Mre="[object Int32Array]",Dre="[object Uint8Array]",$re="[object Uint8ClampedArray]",Lre="[object Uint16Array]",Fre="[object Uint32Array]",We={};We[Pre]=We[Ire]=We[Rre]=We[kre]=We[Mre]=We[Dre]=We[$re]=We[Lre]=We[Fre]=!0;We[vre]=We[yre]=We[Ore]=We[gre]=We[Tre]=We[xre]=We[bre]=We[wre]=We[Sre]=We[Are]=We[Ere]=We[Nre]=We[_re]=We[jre]=We[Cre]=!1;function Bre(e){return mre(e)&&hre(e.length)&&!!We[pre(e)]}var Ure=Bre;function Hre(e){return function(t){return e(t)}}var kL=Hre,Sf={exports:{}};Sf.exports;(function(e,t){var n=H$,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Sf,Sf.exports);var zre=Sf.exports,Wre=Ure,Gre=kL,VA=zre,KA=VA&&VA.isTypedArray,Vre=KA?Gre(KA):Wre,ML=Vre,Kre=Xne,Yre=ub,qre=on,Xre=RL,Zre=db,Qre=ML,Jre=Object.prototype,eoe=Jre.hasOwnProperty;function toe(e,t){var n=qre(e),r=!n&&Yre(e),o=!n&&!r&&Xre(e),i=!n&&!r&&!o&&Qre(e),a=n||r||o||i,s=a?Kre(e.length,String):[],c=s.length;for(var u in e)(t||eoe.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Zre(u,c)))&&s.push(u);return s}var noe=toe,roe=Object.prototype;function ooe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||roe;return e===n}var ioe=ooe;function aoe(e,t){return function(n){return e(t(n))}}var DL=aoe,soe=DL,loe=soe(Object.keys,Object),coe=loe,uoe=ioe,doe=coe,foe=Object.prototype,poe=foe.hasOwnProperty;function hoe(e){if(!uoe(e))return doe(e);var t=[];for(var n in Object(e))poe.call(e,n)&&n!="constructor"&&t.push(n);return t}var moe=hoe,voe=K0,yoe=fb;function goe(e){return e!=null&&yoe(e.length)&&!voe(e)}var lu=goe,xoe=noe,boe=moe,woe=lu;function Soe(e){return woe(e)?xoe(e):boe(e)}var bh=Soe,Aoe=Lne,Eoe=Yne,Noe=bh;function _oe(e){return Aoe(e,Noe,Eoe)}var joe=_oe,YA=joe,Coe=1,Ooe=Object.prototype,Toe=Ooe.hasOwnProperty;function Poe(e,t,n,r,o,i){var a=n&Coe,s=YA(e),c=s.length,u=YA(t),f=u.length;if(c!=f&&!a)return!1;for(var d=c;d--;){var p=s[d];if(!(a?p in t:Toe.call(t,p)))return!1}var m=i.get(e),b=i.get(t);if(m&&b)return m==t&&b==e;var y=!0;i.set(e,t),i.set(t,e);for(var v=a;++d<c;){p=s[d];var x=e[p],g=t[p];if(r)var w=a?r(g,x,p,t,e,i):r(x,g,p,e,t,i);if(!(w===void 0?x===g||o(x,g,n,r,i):w)){y=!1;break}v||(v=p=="constructor")}if(y&&!v){var E=e.constructor,A=t.constructor;E!=A&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof A=="function"&&A instanceof A)&&(y=!1)}return i.delete(e),i.delete(t),y}var Ioe=Poe,Roe=Gi,koe=Nr,Moe=Roe(koe,"DataView"),Doe=Moe,$oe=Gi,Loe=Nr,Foe=$oe(Loe,"Promise"),Boe=Foe,Uoe=Gi,Hoe=Nr,zoe=Uoe(Hoe,"Set"),$L=zoe,Woe=Gi,Goe=Nr,Voe=Woe(Goe,"WeakMap"),Koe=Voe,Ky=Doe,Yy=q0,qy=Boe,Xy=$L,Zy=Koe,LL=no,Ps=W$,qA="[object Map]",Yoe="[object Object]",XA="[object Promise]",ZA="[object Set]",QA="[object WeakMap]",JA="[object DataView]",qoe=Ps(Ky),Xoe=Ps(Yy),Zoe=Ps(qy),Qoe=Ps(Xy),Joe=Ps(Zy),ri=LL;(Ky&&ri(new Ky(new ArrayBuffer(1)))!=JA||Yy&&ri(new Yy)!=qA||qy&&ri(qy.resolve())!=XA||Xy&&ri(new Xy)!=ZA||Zy&&ri(new Zy)!=QA)&&(ri=function(e){var t=LL(e),n=t==Yoe?e.constructor:void 0,r=n?Ps(n):"";if(r)switch(r){case qoe:return JA;case Xoe:return qA;case Zoe:return XA;case Qoe:return ZA;case Joe:return QA}return t});var eie=ri,zm=_L,tie=TL,nie=Rne,rie=Ioe,e1=eie,t1=on,n1=RL,oie=ML,iie=1,r1="[object Arguments]",o1="[object Array]",Gu="[object Object]",aie=Object.prototype,i1=aie.hasOwnProperty;function sie(e,t,n,r,o,i){var a=t1(e),s=t1(t),c=a?o1:e1(e),u=s?o1:e1(t);c=c==r1?Gu:c,u=u==r1?Gu:u;var f=c==Gu,d=u==Gu,p=c==u;if(p&&n1(e)){if(!n1(t))return!1;a=!0,f=!1}if(p&&!f)return i||(i=new zm),a||oie(e)?tie(e,t,n,r,o,i):nie(e,t,c,n,r,o,i);if(!(n&iie)){var m=f&&i1.call(e,"__wrapped__"),b=d&&i1.call(t,"__wrapped__");if(m||b){var y=m?e.value():e,v=b?t.value():t;return i||(i=new zm),o(y,v,n,r,i)}}return p?(i||(i=new zm),rie(e,t,n,r,o,i)):!1}var lie=sie,cie=lie,a1=ro;function FL(e,t,n,r,o){return e===t?!0:e==null||t==null||!a1(e)&&!a1(t)?e!==e&&t!==t:cie(e,t,n,r,FL,o)}var pb=FL,uie=_L,die=pb,fie=1,pie=2;function hie(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var c=s[0],u=e[c],f=s[1];if(a&&s[2]){if(u===void 0&&!(c in e))return!1}else{var d=new uie;if(r)var p=r(u,f,c,e,t,d);if(!(p===void 0?die(f,u,fie|pie,r,d):p))return!1}}return!0}var mie=hie,vie=Vo;function yie(e){return e===e&&!vie(e)}var BL=yie,gie=BL,xie=bh;function bie(e){for(var t=xie(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,gie(o)]}return t}var wie=bie;function Sie(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var UL=Sie,Aie=mie,Eie=wie,Nie=UL;function _ie(e){var t=Eie(e);return t.length==1&&t[0][2]?Nie(t[0][0],t[0][1]):function(n){return n===e||Aie(n,e,t)}}var jie=_ie;function Cie(e,t){return e!=null&&t in Object(e)}var Oie=Cie,Tie=q$,Pie=ub,Iie=on,Rie=db,kie=fb,Mie=ih;function Die(e,t,n){t=Tie(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=Mie(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&kie(o)&&Rie(a,o)&&(Iie(e)||Pie(e)))}var $ie=Die,Lie=Oie,Fie=$ie;function Bie(e,t){return e!=null&&Fie(e,t,Lie)}var Uie=Bie,Hie=pb,zie=X$,Wie=Uie,Gie=V0,Vie=BL,Kie=UL,Yie=ih,qie=1,Xie=2;function Zie(e,t){return Gie(e)&&Vie(t)?Kie(Yie(e),t):function(n){var r=zie(n,e);return r===void 0&&r===t?Wie(n,e):Hie(t,r,qie|Xie)}}var Qie=Zie;function Jie(e){return e}var Is=Jie;function eae(e){return function(t){return t==null?void 0:t[e]}}var tae=eae,nae=J0;function rae(e){return function(t){return nae(t,e)}}var oae=rae,iae=tae,aae=oae,sae=V0,lae=ih;function cae(e){return sae(e)?iae(lae(e)):aae(e)}var uae=cae,dae=jie,fae=Qie,pae=Is,hae=on,mae=uae;function vae(e){return typeof e=="function"?e:e==null?pae:typeof e=="object"?hae(e)?fae(e[0],e[1]):dae(e):mae(e)}var Ko=vae;function yae(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var HL=yae;function gae(e){return e!==e}var xae=gae;function bae(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var wae=bae,Sae=HL,Aae=xae,Eae=wae;function Nae(e,t,n){return t===t?Eae(e,t,n):Sae(e,Aae,n)}var _ae=Nae,jae=_ae;function Cae(e,t){var n=e==null?0:e.length;return!!n&&jae(e,t,0)>-1}var Oae=Cae;function Tae(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var Pae=Tae;function Iae(){}var Rae=Iae,Wm=$L,kae=Rae,Mae=cb,Dae=1/0,$ae=Wm&&1/Mae(new Wm([,-0]))[1]==Dae?function(e){return new Wm(e)}:kae,Lae=$ae,Fae=jL,Bae=Oae,Uae=Pae,Hae=OL,zae=Lae,Wae=cb,Gae=200;function Vae(e,t,n){var r=-1,o=Bae,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=Uae;else if(i>=Gae){var u=t?null:zae(e);if(u)return Wae(u);a=!1,o=Hae,c=new Fae}else c=t?[]:s;e:for(;++r<i;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,a&&d===d){for(var p=c.length;p--;)if(c[p]===d)continue e;t&&c.push(d),s.push(f)}else o(c,d,n)||(c!==s&&c.push(d),s.push(f))}return s}var Kae=Vae,Yae=Ko,qae=Kae;function Xae(e,t){return e&&e.length?qae(e,Yae(t)):[]}var Zae=Xae;const s1=Re(Zae);function zL(e,t,n){return t===!0?s1(e,n):be(t)?s1(e,t):e}function Ka(e){"@babel/helpers - typeof";return Ka=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},Ka(e)}var Qae=["ref"];function l1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).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?l1(Object(n),!0).forEach(function(r){wh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c1(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,GL(r.key),r)}}function ese(e,t,n){return t&&c1(e.prototype,t),n&&c1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tse(e,t,n){return t=Af(t),nse(e,WL()?Reflect.construct(t,n||[],Af(e).constructor):t.apply(e,n))}function nse(e,t){if(t&&(Ka(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rse(e)}function rse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WL=function(){return!!e})()}function Af(e){return Af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Af(e)}function ose(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&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Qy(e,t)}function wh(e,t,n){return t=GL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GL(e){var t=ise(e,"string");return Ka(t)=="symbol"?t:t+""}function ise(e,t){if(Ka(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ka(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ase(e,t){if(e==null)return{};var n=sse(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sse(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 lse(e){return e.value}function cse(e,t){if(D.isValidElement(e))return D.cloneElement(e,t);if(typeof e=="function")return D.createElement(e,t);t.ref;var n=ase(t,Qae);return D.createElement(lb,n)}var u1=1,mi=function(e){function t(){var n;Jae(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=tse(this,t,[].concat(o)),wh(n,"lastBoundingBox",{width:-1,height:-1}),n}return ose(t,e),ese(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,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>u1||Math.abs(o.height-this.lastBoundingBox.height)>u1)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(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?Cr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,i=o.layout,a=o.align,s=o.verticalAlign,c=o.margin,u=o.chartWidth,f=o.chartHeight,d,p;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&i==="vertical"){var m=this.getBBoxSnapshot();d={left:((u||0)-m.width)/2}}else d=a==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var b=this.getBBoxSnapshot();p={top:((f||0)-b.height)/2}}else p=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Cr(Cr({},d),p)}},{key:"render",value:function(){var r=this,o=this.props,i=o.content,a=o.width,s=o.height,c=o.wrapperStyle,u=o.payloadUniqBy,f=o.payload,d=Cr(Cr({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return D.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(m){r.wrapperNode=m}},cse(i,Cr(Cr({},this.props),{},{payload:zL(f,u,lse)})))}}],[{key:"getWithHeight",value:function(r,o){var i=Cr(Cr({},this.defaultProps),r.props),a=i.layout;return a==="vertical"&&q(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||o}:null}}])}(h.PureComponent);wh(mi,"displayName","Legend");wh(mi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var d1=iu,use=ub,dse=on,f1=d1?d1.isConcatSpreadable:void 0;function fse(e){return dse(e)||use(e)||!!(f1&&e&&e[f1])}var pse=fse,hse=PL,mse=pse;function VL(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=mse),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?VL(s,t-1,n,r,o):hse(o,s):r||(o[o.length]=s)}return o}var KL=VL;function vse(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(n(i[c],c,i)===!1)break}return t}}var yse=vse,gse=yse,xse=gse(),bse=xse,wse=bse,Sse=bh;function Ase(e,t){return e&&wse(e,t,Sse)}var YL=Ase,Ese=lu;function Nse(e,t){return function(n,r){if(n==null)return n;if(!Ese(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}var _se=Nse,jse=YL,Cse=_se,Ose=Cse(jse),hb=Ose,Tse=hb,Pse=lu;function Ise(e,t){var n=-1,r=Pse(e)?Array(e.length):[];return Tse(e,function(o,i,a){r[++n]=t(o,i,a)}),r}var qL=Ise;function Rse(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var kse=Rse,p1=Ns;function Mse(e,t){if(e!==t){var n=e!==void 0,r=e===null,o=e===e,i=p1(e),a=t!==void 0,s=t===null,c=t===t,u=p1(t);if(!s&&!u&&!i&&e>t||i&&a&&c&&!s&&!u||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!c)return-1}return 0}var Dse=Mse,$se=Dse;function Lse(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var c=$se(o[r],i[r]);if(c){if(r>=s)return c;var u=n[r];return c*(u=="desc"?-1:1)}}return e.index-t.index}var Fse=Lse,Gm=Q0,Bse=J0,Use=Ko,Hse=qL,zse=kse,Wse=kL,Gse=Fse,Vse=Is,Kse=on;function Yse(e,t,n){t.length?t=Gm(t,function(i){return Kse(i)?function(a){return Bse(a,i.length===1?i[0]:i)}:i}):t=[Vse];var r=-1;t=Gm(t,Wse(Use));var o=Hse(e,function(i,a,s){var c=Gm(t,function(u){return u(i)});return{criteria:c,index:++r,value:i}});return zse(o,function(i,a){return Gse(i,a,n)})}var qse=Yse;function Xse(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 Zse=Xse,Qse=Zse,h1=Math.max;function Jse(e,t,n){return t=h1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=h1(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),Qse(e,this,s)}}var ele=Jse;function tle(e){return function(){return e}}var nle=tle,rle=Gi,ole=function(){try{var e=rle(Object,"defineProperty");return e({},"",{}),e}catch{}}(),XL=ole,ile=nle,m1=XL,ale=Is,sle=m1?function(e,t){return m1(e,"toString",{configurable:!0,enumerable:!1,value:ile(t),writable:!0})}:ale,lle=sle,cle=800,ule=16,dle=Date.now;function fle(e){var t=0,n=0;return function(){var r=dle(),o=ule-(r-n);if(n=r,o>0){if(++t>=cle)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ple=fle,hle=lle,mle=ple,vle=mle(hle),yle=vle,gle=Is,xle=ele,ble=yle;function wle(e,t){return ble(xle(e,t,gle),e+"")}var Sle=wle,Ale=Y0,Ele=lu,Nle=db,_le=Vo;function jle(e,t,n){if(!_le(n))return!1;var r=typeof t;return(r=="number"?Ele(n)&&Nle(t,n.length):r=="string"&&t in n)?Ale(n[t],e):!1}var Sh=jle,Cle=KL,Ole=qse,Tle=Sle,v1=Sh,Ple=Tle(function(e,t){if(e==null)return[];var n=t.length;return n>1&&v1(e,t[0],t[1])?t=[]:n>2&&v1(t[0],t[1],t[2])&&(t=[t[0]]),Ole(e,Cle(t,1),[])}),Ile=Ple;const mb=Re(Ile);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 Jy(){return Jy=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},Jy.apply(this,arguments)}function Rle(e,t){return $le(e)||Dle(e,t)||Mle(e,t)||kle()}function kle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
514
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mle(e,t){if(e){if(typeof e=="string")return y1(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 y1(e,t)}}function y1(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 Dle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function $le(e){if(Array.isArray(e))return e}function g1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Vm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g1(Object(n),!0).forEach(function(r){Lle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lle(e,t,n){return t=Fle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fle(e){var t=Ble(e,"string");return sc(t)=="symbol"?t:t+""}function Ble(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 Ule(e){return Array.isArray(e)&&gt(e[0])&&gt(e[1])?e.join(" ~ "):e}var Hle=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,i=o===void 0?{}:o,a=t.itemStyle,s=a===void 0?{}:a,c=t.labelStyle,u=c===void 0?{}:c,f=t.payload,d=t.formatter,p=t.itemSorter,m=t.wrapperClassName,b=t.labelClassName,y=t.label,v=t.labelFormatter,x=t.accessibilityLayer,g=x===void 0?!1:x,w=function(){if(f&&f.length){var I={padding:0,margin:0},$=(p?mb(f,p):f).map(function(C,P){if(C.type==="none")return null;var M=Vm({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},s),L=C.formatter||d||Ule,R=C.value,k=C.name,H=R,G=k;if(L&&H!=null&&G!=null){var W=L(R,k,C,P,f);if(Array.isArray(W)){var J=Rle(W,2);H=J[0],G=J[1]}else H=W}return D.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(P),style:M},gt(G)?D.createElement("span",{className:"recharts-tooltip-item-name"},G):null,gt(G)?D.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,D.createElement("span",{className:"recharts-tooltip-item-value"},H),D.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return D.createElement("ul",{className:"recharts-tooltip-item-list",style:I},$)}return null},E=Vm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),A=Vm({margin:0},u),S=!Se(y),N=S?y:"",_=_e("recharts-default-tooltip",m),O=_e("recharts-tooltip-label",b);S&&v&&f!==void 0&&f!==null&&(N=v(y,f));var T=g?{role:"status","aria-live":"assertive"}:{};return D.createElement("div",Jy({className:_,style:E},T),D.createElement("p",{className:O,style:A},D.isValidElement(N)?N:"".concat(N)),w())};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 Vu(e,t,n){return t=zle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zle(e){var t=Wle(e,"string");return lc(t)=="symbol"?t:t+""}function Wle(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)}var Xs="recharts-tooltip-wrapper",Gle={visibility:"hidden"};function Vle(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return _e(Xs,Vu(Vu(Vu(Vu({},"".concat(Xs,"-right"),q(n)&&t&&q(t.x)&&n>=t.x),"".concat(Xs,"-left"),q(n)&&t&&q(t.x)&&n<t.x),"".concat(Xs,"-bottom"),q(r)&&t&&q(t.y)&&r>=t.y),"".concat(Xs,"-top"),q(r)&&t&&q(t.y)&&r<t.y))}function x1(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(i&&q(i[r]))return i[r];var f=n[r]-s-o,d=n[r]+o;if(t[r])return a[r]?f:d;if(a[r]){var p=f,m=c[r];return p<m?Math.max(d,c[r]):Math.max(f,c[r])}var b=d+s,y=c[r]+u;return b>y?Math.max(f,c[r]):Math.max(d,c[r])}function Kle(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 Yle(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,i=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,u,f,d;return a.height>0&&a.width>0&&n?(f=x1({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),d=x1({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),u=Kle({translateX:f,translateY:d,useTranslate3d:s})):u=Gle,{cssProperties:u,cssClasses:Vle({translateX:f,translateY:d,coordinate:n})}}function Ya(e){"@babel/helpers - typeof";return Ya=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},Ya(e)}function b1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function w1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b1(Object(n),!0).forEach(function(r){tg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xle(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,QL(r.key),r)}}function Zle(e,t,n){return t&&Xle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qle(e,t,n){return t=Ef(t),Jle(e,ZL()?Reflect.construct(t,n||[],Ef(e).constructor):t.apply(e,n))}function Jle(e,t){if(t&&(Ya(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ece(e)}function ece(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZL=function(){return!!e})()}function Ef(e){return Ef=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ef(e)}function tce(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&&eg(e,t)}function eg(e,t){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},eg(e,t)}function tg(e,t,n){return t=QL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QL(e){var t=nce(e,"string");return Ya(t)=="symbol"?t:t+""}function nce(e,t){if(Ya(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ya(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var S1=1,rce=function(e){function t(){var n;qle(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=Qle(this,t,[].concat(o)),tg(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),tg(n,"handleKeyDown",function(a){if(a.key==="Escape"){var s,c,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=n.props.coordinate)===null||c===void 0?void 0:c.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 tce(t,e),Zle(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>S1||Math.abs(r.height-this.state.lastBoundingBox.height)>S1)&&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,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,u=o.children,f=o.coordinate,d=o.hasPayload,p=o.isAnimationActive,m=o.offset,b=o.position,y=o.reverseDirection,v=o.useTranslate3d,x=o.viewBox,g=o.wrapperStyle,w=Yle({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:m,position:b,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:x}),E=w.cssClasses,A=w.cssProperties,S=w1(w1({transition:p&&i?"transform ".concat(s,"ms ").concat(c):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},g);return D.createElement("div",{tabIndex:-1,className:E,style:S,ref:function(_){r.wrapperNode=_}},u)}}])}(h.PureComponent),oce=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Rs={isSsr:oce()};function qa(e){"@babel/helpers - typeof";return qa=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},qa(e)}function A1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function E1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A1(Object(n),!0).forEach(function(r){vb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ice(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ace(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,eF(r.key),r)}}function sce(e,t,n){return t&&ace(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lce(e,t,n){return t=Nf(t),cce(e,JL()?Reflect.construct(t,n||[],Nf(e).constructor):t.apply(e,n))}function cce(e,t){if(t&&(qa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uce(e)}function uce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JL=function(){return!!e})()}function Nf(e){return Nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nf(e)}function dce(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&&ng(e,t)}function ng(e,t){return ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ng(e,t)}function vb(e,t,n){return t=eF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eF(e){var t=fce(e,"string");return qa(t)=="symbol"?t:t+""}function fce(e,t){if(qa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function pce(e){return e.dataKey}function hce(e,t){return D.isValidElement(e)?D.cloneElement(e,t):typeof e=="function"?D.createElement(e,t):D.createElement(Hle,t)}var Wn=function(e){function t(){return ice(this,t),lce(this,t,arguments)}return dce(t,e),sce(t,[{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,u=o.content,f=o.coordinate,d=o.filterNull,p=o.isAnimationActive,m=o.offset,b=o.payload,y=o.payloadUniqBy,v=o.position,x=o.reverseDirection,g=o.useTranslate3d,w=o.viewBox,E=o.wrapperStyle,A=b??[];d&&A.length&&(A=zL(b.filter(function(N){return N.value!=null&&(N.hide!==!0||r.props.includeHidden)}),y,pce));var S=A.length>0;return D.createElement(rce,{allowEscapeViewBox:a,animationDuration:s,animationEasing:c,isAnimationActive:p,active:i,coordinate:f,hasPayload:S,offset:m,position:v,reverseDirection:x,useTranslate3d:g,viewBox:w,wrapperStyle:E},hce(u,E1(E1({},this.props),{},{payload:A})))}}])}(h.PureComponent);vb(Wn,"displayName","Tooltip");vb(Wn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Rs.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 mce=Nr,vce=function(){return mce.Date.now()},yce=vce,gce=/\s/;function xce(e){for(var t=e.length;t--&&gce.test(e.charAt(t)););return t}var bce=xce,wce=bce,Sce=/^\s+/;function Ace(e){return e&&e.slice(0,wce(e)+1).replace(Sce,"")}var Ece=Ace,Nce=Ece,N1=Vo,_ce=Ns,_1=NaN,jce=/^[-+]0x[0-9a-f]+$/i,Cce=/^0b[01]+$/i,Oce=/^0o[0-7]+$/i,Tce=parseInt;function Pce(e){if(typeof e=="number")return e;if(_ce(e))return _1;if(N1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=N1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Nce(e);var n=Cce.test(e);return n||Oce.test(e)?Tce(e.slice(2),n?2:8):jce.test(e)?_1:+e}var tF=Pce,Ice=Vo,Km=yce,j1=tF,Rce="Expected a function",kce=Math.max,Mce=Math.min;function Dce(e,t,n){var r,o,i,a,s,c,u=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(Rce);t=j1(t)||0,Ice(n)&&(f=!!n.leading,d="maxWait"in n,i=d?kce(j1(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function m(S){var N=r,_=o;return r=o=void 0,u=S,a=e.apply(_,N),a}function b(S){return u=S,s=setTimeout(x,t),f?m(S):a}function y(S){var N=S-c,_=S-u,O=t-N;return d?Mce(O,i-_):O}function v(S){var N=S-c,_=S-u;return c===void 0||N>=t||N<0||d&&_>=i}function x(){var S=Km();if(v(S))return g(S);s=setTimeout(x,y(S))}function g(S){return s=void 0,p&&r?m(S):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),u=0,r=c=o=s=void 0}function E(){return s===void 0?a:g(Km())}function A(){var S=Km(),N=v(S);if(r=arguments,o=this,c=S,N){if(s===void 0)return b(c);if(d)return clearTimeout(s),s=setTimeout(x,t),m(c)}return s===void 0&&(s=setTimeout(x,t)),a}return A.cancel=w,A.flush=E,A}var $ce=Dce,Lce=$ce,Fce=Vo,Bce="Expected a function";function Uce(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Bce);return Fce(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Lce(e,t,{leading:r,maxWait:t,trailing:o})}var Hce=Uce;const nF=Re(Hce);function cc(e){"@babel/helpers - typeof";return cc=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},cc(e)}function C1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ku(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C1(Object(n),!0).forEach(function(r){zce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zce(e,t,n){return t=Wce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wce(e){var t=Gce(e,"string");return cc(t)=="symbol"?t:t+""}function Gce(e,t){if(cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vce(e,t){return Xce(e)||qce(e,t)||Yce(e,t)||Kce()}function Kce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
515
+ 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 O1(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 O1(e,t)}}function O1(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 qce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Xce(e){if(Array.isArray(e))return e}var T1=h.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,i=e.width,a=i===void 0?"100%":i,s=e.height,c=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,d=e.minHeight,p=e.maxHeight,m=e.children,b=e.debounce,y=b===void 0?0:b,v=e.id,x=e.className,g=e.onResize,w=e.style,E=w===void 0?{}:w,A=h.useRef(null),S=h.useRef();S.current=g,h.useImperativeHandle(t,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var N=h.useState({containerWidth:o.width,containerHeight:o.height}),_=Vce(N,2),O=_[0],T=_[1],j=h.useCallback(function($,C){T(function(P){var M=Math.round($),L=Math.round(C);return P.containerWidth===M&&P.containerHeight===L?P:{containerWidth:M,containerHeight:L}})},[]);h.useEffect(function(){var $=function(k){var H,G=k[0].contentRect,W=G.width,J=G.height;j(W,J),(H=S.current)===null||H===void 0||H.call(S,W,J)};y>0&&($=nF($,y,{trailing:!0,leading:!1}));var C=new ResizeObserver($),P=A.current.getBoundingClientRect(),M=P.width,L=P.height;return j(M,L),C.observe(A.current),function(){C.disconnect()}},[j,y]);var I=h.useMemo(function(){var $=O.containerWidth,C=O.containerHeight;if($<0||C<0)return null;Fr(ci(a)||ci(c),`The width(%s) and height(%s) are both fixed numbers,
516
+ maybe you don't need to use a ResponsiveContainer.`,a,c),Fr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var P=ci(a)?$:a,M=ci(c)?C:c;n&&n>0&&(P?M=P/n:M&&(P=M*n),p&&M>p&&(M=p)),Fr(P>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0,
517
+ please check the style of container, or the props width(%s) and height(%s),
518
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
519
+ height and width.`,P,M,a,c,f,d,n);var L=!Array.isArray(m)&&Lr(m.type).endsWith("Chart");return D.Children.map(m,function(R){return D.isValidElement(R)?h.cloneElement(R,Ku({width:P,height:M},L?{style:Ku({height:"100%",width:"100%",maxHeight:M,maxWidth:P},R.props.style)}:{})):R})},[n,m,c,p,d,f,O,a]);return D.createElement("div",{id:v?"".concat(v):void 0,className:_e("recharts-responsive-container",x),style:Ku(Ku({},E),{},{width:a,height:c,minWidth:f,minHeight:d,maxHeight:p}),ref:A},I)}),rF=function(t){return null};rF.displayName="Cell";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)}function P1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P1(Object(n),!0).forEach(function(r){Zce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zce(e,t,n){return t=Qce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qce(e){var t=Jce(e,"string");return uc(t)=="symbol"?t:t+""}function Jce(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)}var ea={widthCache:{},cacheCount:0},eue=2e3,tue={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},I1="recharts_measurement_span";function nue(e){var t=rg({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var El=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Rs.isSsr)return{width:0,height:0};var r=nue(n),o=JSON.stringify({text:t,copyStyle:r});if(ea.widthCache[o])return ea.widthCache[o];try{var i=document.getElementById(I1);i||(i=document.createElement("span"),i.setAttribute("id",I1),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=rg(rg({},tue),r);Object.assign(i.style,a),i.textContent="".concat(t);var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return ea.widthCache[o]=c,++ea.cacheCount>eue&&(ea.cacheCount=0,ea.widthCache={}),c}catch{return{width:0,height:0}}},rue=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 _f(e,t){return sue(e)||aue(e,t)||iue(e,t)||oue()}function oue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
520
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iue(e,t){if(e){if(typeof e=="string")return R1(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 R1(e,t)}}function R1(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 aue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function sue(e){if(Array.isArray(e))return e}function lue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k1(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,uue(r.key),r)}}function cue(e,t,n){return t&&k1(e.prototype,t),n&&k1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uue(e){var t=due(e,"string");return dc(t)=="symbol"?t:t+""}function due(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 String(e)}var M1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,D1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,fue=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,pue=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,oF={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},hue=Object.keys(oF),ya="NaN";function mue(e,t){return e*oF[t]}var Yu=function(){function e(t,n){lue(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!fue.test(n)&&(this.num=NaN,this.unit=""),hue.includes(n)&&(this.num=mue(t,n),this.unit="px")}return cue(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,o=(r=pue.exec(n))!==null&&r!==void 0?r:[],i=_f(o,3),a=i[1],s=i[2];return new e(parseFloat(a),s??"")}}])}();function iF(e){if(e.includes(ya))return ya;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=M1.exec(t))!==null&&n!==void 0?n:[],o=_f(r,4),i=o[1],a=o[2],s=o[3],c=Yu.parse(i??""),u=Yu.parse(s??""),f=a==="*"?c.multiply(u):c.divide(u);if(f.isNaN())return ya;t=t.replace(M1,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,p=(d=D1.exec(t))!==null&&d!==void 0?d:[],m=_f(p,4),b=m[1],y=m[2],v=m[3],x=Yu.parse(b??""),g=Yu.parse(v??""),w=y==="+"?x.add(g):x.subtract(g);if(w.isNaN())return ya;t=t.replace(D1,w.toString())}return t}var $1=/\(([^()]*)\)/;function vue(e){for(var t=e;t.includes("(");){var n=$1.exec(t),r=_f(n,2),o=r[1];t=t.replace($1,iF(o))}return t}function yue(e){var t=e.replace(/\s+/g,"");return t=vue(t),t=iF(t),t}function gue(e){try{return yue(e)}catch{return ya}}function Ym(e){var t=gue(e.slice(5,-1));return t===ya?"":t}var xue=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],bue=["dx","dy","angle","className","breakAll"];function og(){return og=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},og.apply(this,arguments)}function L1(e,t){if(e==null)return{};var n=wue(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wue(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 F1(e,t){return Nue(e)||Eue(e,t)||Aue(e,t)||Sue()}function Sue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
521
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aue(e,t){if(e){if(typeof e=="string")return B1(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 B1(e,t)}}function B1(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 Eue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Nue(e){if(Array.isArray(e))return e}var aF=/[ \f\n\r\t\v\u2028\u2029]+/,sF=function(t){var n=t.children,r=t.breakAll,o=t.style;try{var i=[];Se(n)||(r?i=n.toString().split(""):i=n.toString().split(aF));var a=i.map(function(c){return{word:c,width:El(c,o).width}}),s=r?0:El(" ",o).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},_ue=function(t,n,r,o,i){var a=t.maxLines,s=t.children,c=t.style,u=t.breakAll,f=q(a),d=s,p=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return P.reduce(function(M,L){var R=L.word,k=L.width,H=M[M.length-1];if(H&&(o==null||i||H.width+k+r<Number(o)))H.words.push(R),H.width+=k+r;else{var G={words:[R],width:k};M.push(G)}return M},[])},m=p(n),b=function(P){return P.reduce(function(M,L){return M.width>L.width?M:L})};if(!f)return m;for(var y="…",v=function(P){var M=d.slice(0,P),L=sF({breakAll:u,style:c,children:M+y}).wordsWithComputedWidth,R=p(L),k=R.length>a||b(R).width>Number(o);return[k,R]},x=0,g=d.length-1,w=0,E;x<=g&&w<=d.length-1;){var A=Math.floor((x+g)/2),S=A-1,N=v(S),_=F1(N,2),O=_[0],T=_[1],j=v(A),I=F1(j,1),$=I[0];if(!O&&!$&&(x=A+1),O&&$&&(g=A-1),!O&&$){E=T;break}w++}return E||m},U1=function(t){var n=Se(t)?[]:t.toString().split(aF);return[{words:n}]},jue=function(t){var n=t.width,r=t.scaleToFit,o=t.children,i=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!Rs.isSsr){var c,u,f=sF({breakAll:a,children:o,style:i});if(f){var d=f.wordsWithComputedWidth,p=f.spaceWidth;c=d,u=p}else return U1(o);return _ue({breakAll:a,children:o,maxLines:s,style:i},c,u,n,r)}return U1(o)},H1="#808080",jf=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.lineHeight,s=a===void 0?"1em":a,c=t.capHeight,u=c===void 0?"0.71em":c,f=t.scaleToFit,d=f===void 0?!1:f,p=t.textAnchor,m=p===void 0?"start":p,b=t.verticalAnchor,y=b===void 0?"end":b,v=t.fill,x=v===void 0?H1:v,g=L1(t,xue),w=h.useMemo(function(){return jue({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:d,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,d,g.style,g.width]),E=g.dx,A=g.dy,S=g.angle,N=g.className,_=g.breakAll,O=L1(g,bue);if(!gt(r)||!gt(i))return null;var T=r+(q(E)?E:0),j=i+(q(A)?A:0),I;switch(y){case"start":I=Ym("calc(".concat(u,")"));break;case"middle":I=Ym("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:I=Ym("calc(".concat(w.length-1," * -").concat(s,")"));break}var $=[];if(d){var C=w[0].width,P=g.width;$.push("scale(".concat((q(P)?P/C:1)/C,")"))}return S&&$.push("rotate(".concat(S,", ").concat(T,", ").concat(j,")")),$.length&&(O.transform=$.join(" ")),D.createElement("text",og({},Ne(O,!0),{x:T,y:j,className:_e("recharts-text",N),textAnchor:m,fill:x.includes("url")?H1:x}),w.map(function(M,L){var R=M.words.join(_?"":" ");return D.createElement("tspan",{x:T,dy:L===0?I:s,key:"".concat(R,"-").concat(L)},R)}))};function Po(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Cue(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function yb(e){let t,n,r;e.length!==2?(t=Po,n=(s,c)=>Po(e(s),c),r=(s,c)=>e(s)-c):(t=e===Po||e===Cue?e:Oue,n=e,r=e);function o(s,c,u=0,f=s.length){if(u<f){if(t(c,c)!==0)return f;do{const d=u+f>>>1;n(s[d],c)<0?u=d+1:f=d}while(u<f)}return u}function i(s,c,u=0,f=s.length){if(u<f){if(t(c,c)!==0)return f;do{const d=u+f>>>1;n(s[d],c)<=0?u=d+1:f=d}while(u<f)}return u}function a(s,c,u=0,f=s.length){const d=o(s,c,u,f-1);return d>u&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:o,center:a,right:i}}function Oue(){return 0}function lF(e){return e===null?NaN:+e}function*Tue(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Pue=yb(Po),cu=Pue.right;yb(lF).center;class z1 extends Map{constructor(t,n=kue){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(W1(this,t))}has(t){return super.has(W1(this,t))}set(t,n){return super.set(Iue(this,t),n)}delete(t){return super.delete(Rue(this,t))}}function W1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Iue({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Rue({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function kue(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Mue(e=Po){if(e===Po)return cF;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 cF(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Due=Math.sqrt(50),$ue=Math.sqrt(10),Lue=Math.sqrt(2);function Cf(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=Due?10:i>=$ue?5:i>=Lue?2:1;let s,c,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?Cf(e,t,n*2):[s,c,u]}function ig(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,i,a]=r?Cf(t,e,n):Cf(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)c[u]=(i-u)/-a;else for(let u=0;u<s;++u)c[u]=(i-u)*a;else if(a<0)for(let u=0;u<s;++u)c[u]=(o+u)/-a;else for(let u=0;u<s;++u)c[u]=(o+u)*a;return c}function ag(e,t,n){return t=+t,e=+e,n=+n,Cf(e,t,n)[2]}function sg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?ag(t,e,n):ag(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function G1(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function V1(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function uF(e,t,n=0,r=1/0,o){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(o=o===void 0?cF:Mue(o);r>n;){if(r-n>600){const c=r-n+1,u=t-n+1,f=Math.log(c),d=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*d*(c-d)/c)*(u-c/2<0?-1:1),m=Math.max(n,Math.floor(t-u*d/c+p)),b=Math.min(r,Math.floor(t+(c-u)*d/c+p));uF(e,t,m,b,o)}const i=e[t];let a=n,s=r;for(Zs(e,n,t),o(e[r],i)>0&&Zs(e,n,r);a<s;){for(Zs(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[n],i)===0?Zs(e,n,s):(++s,Zs(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Zs(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Fue(e,t,n){if(e=Float64Array.from(Tue(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return V1(e);if(t>=1)return G1(e);var r,o=(r-1)*t,i=Math.floor(o),a=G1(uF(e,i).subarray(0,i+1)),s=V1(e.subarray(i+1));return a+(s-a)*(o-i)}}function Bue(e,t,n=lF){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,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function Uue(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r<o;)i[r]=e+r*n;return i}function $n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function oo(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 lg=Symbol("implicit");function gb(){var e=new z1,t=[],n=[],r=lg;function o(i){let a=e.get(i);if(a===void 0){if(r!==lg)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new z1;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return gb(t,n).unknown(r)},$n.apply(o,arguments),o}function fc(){var e=gb().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,s=!1,c=0,u=0,f=.5;delete e.unknown;function d(){var p=t().length,m=o<r,b=m?o:r,y=m?r:o;i=(y-b)/Math.max(1,p-c+u*2),s&&(i=Math.floor(i)),b+=(y-b-i*(p-c))*f,a=i*(1-c),s&&(b=Math.round(b),a=Math.round(a));var v=Uue(p).map(function(x){return b+i*x});return n(m?v.reverse():v)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([r,o]=p,r=+r,o=+o,d()):[r,o]},e.rangeRound=function(p){return[r,o]=p,r=+r,o=+o,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(c=Math.min(1,u=+p),d()):c},e.paddingInner=function(p){return arguments.length?(c=Math.min(1,p),d()):c},e.paddingOuter=function(p){return arguments.length?(u=+p,d()):u},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),d()):f},e.copy=function(){return fc(t(),[r,o]).round(s).paddingInner(c).paddingOuter(u).align(f)},$n.apply(d(),arguments)}function dF(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return dF(t())},e}function Nl(){return dF(fc.apply(null,arguments).paddingInner(1))}function xb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function fF(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function uu(){}var pc=.7,Of=1/pc,Ia="\\s*([+-]?\\d+)\\s*",hc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hue=/^#([0-9a-f]{3,8})$/,zue=new RegExp(`^rgb\\(${Ia},${Ia},${Ia}\\)$`),Wue=new RegExp(`^rgb\\(${gr},${gr},${gr}\\)$`),Gue=new RegExp(`^rgba\\(${Ia},${Ia},${Ia},${hc}\\)$`),Vue=new RegExp(`^rgba\\(${gr},${gr},${gr},${hc}\\)$`),Kue=new RegExp(`^hsl\\(${hc},${gr},${gr}\\)$`),Yue=new RegExp(`^hsla\\(${hc},${gr},${gr},${hc}\\)$`),K1={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};xb(uu,mc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Y1,formatHex:Y1,formatHex8:que,formatHsl:Xue,formatRgb:q1,toString:q1});function Y1(){return this.rgb().formatHex()}function que(){return this.rgb().formatHex8()}function Xue(){return pF(this).formatHsl()}function q1(){return this.rgb().formatRgb()}function mc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Hue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?X1(t):n===3?new Jt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?qu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?qu(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=zue.exec(e))?new Jt(t[1],t[2],t[3],1):(t=Wue.exec(e))?new Jt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Gue.exec(e))?qu(t[1],t[2],t[3],t[4]):(t=Vue.exec(e))?qu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Kue.exec(e))?J1(t[1],t[2]/100,t[3]/100,1):(t=Yue.exec(e))?J1(t[1],t[2]/100,t[3]/100,t[4]):K1.hasOwnProperty(e)?X1(K1[e]):e==="transparent"?new Jt(NaN,NaN,NaN,0):null}function X1(e){return new Jt(e>>16&255,e>>8&255,e&255,1)}function qu(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jt(e,t,n,r)}function Zue(e){return e instanceof uu||(e=mc(e)),e?(e=e.rgb(),new Jt(e.r,e.g,e.b,e.opacity)):new Jt}function cg(e,t,n,r){return arguments.length===1?Zue(e):new Jt(e,t,n,r??1)}function Jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}xb(Jt,cg,fF(uu,{brighter(e){return e=e==null?Of:Math.pow(Of,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jt(vi(this.r),vi(this.g),vi(this.b),Tf(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:Z1,formatHex:Z1,formatHex8:Que,formatRgb:Q1,toString:Q1}));function Z1(){return`#${ui(this.r)}${ui(this.g)}${ui(this.b)}`}function Que(){return`#${ui(this.r)}${ui(this.g)}${ui(this.b)}${ui((isNaN(this.opacity)?1:this.opacity)*255)}`}function Q1(){const e=Tf(this.opacity);return`${e===1?"rgb(":"rgba("}${vi(this.r)}, ${vi(this.g)}, ${vi(this.b)}${e===1?")":`, ${e})`}`}function Tf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ui(e){return e=vi(e),(e<16?"0":"")+e.toString(16)}function J1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qn(e,t,n,r)}function pF(e){if(e instanceof qn)return new qn(e.h,e.s,e.l,e.opacity);if(e instanceof uu||(e=mc(e)),!e)return new qn;if(e instanceof qn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(t===i?a=(n-r)/s+(n<r)*6:n===i?a=(r-t)/s+2:a=(t-n)/s+4,s/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new qn(a,s,c,e.opacity)}function Jue(e,t,n,r){return arguments.length===1?pF(e):new qn(e,t,n,r??1)}function qn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}xb(qn,Jue,fF(uu,{brighter(e){return e=e==null?Of:Math.pow(Of,e),new qn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new qn(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,o=2*n-r;return new Jt(qm(e>=240?e-240:e+120,o,r),qm(e,o,r),qm(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qn(eE(this.h),Xu(this.s),Xu(this.l),Tf(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=Tf(this.opacity);return`${e===1?"hsl(":"hsla("}${eE(this.h)}, ${Xu(this.s)*100}%, ${Xu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function eE(e){return e=(e||0)%360,e<0?e+360:e}function Xu(e){return Math.max(0,Math.min(1,e||0))}function qm(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 bb=e=>()=>e;function ede(e,t){return function(n){return e+n*t}}function tde(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 nde(e){return(e=+e)==1?hF:function(t,n){return n-t?tde(t,n,e):bb(isNaN(t)?n:t)}}function hF(e,t){var n=t-e;return n?ede(e,n):bb(isNaN(e)?t:e)}const tE=function e(t){var n=nde(t);function r(o,i){var a=n((o=cg(o)).r,(i=cg(i)).r),s=n(o.g,i.g),c=n(o.b,i.b),u=hF(o.opacity,i.opacity);return function(f){return o.r=a(f),o.g=s(f),o.b=c(f),o.opacity=u(f),o+""}}return r.gamma=e,r}(1);function rde(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function ode(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ide(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=ks(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(s){for(a=0;a<r;++a)i[a]=o[a](s);return i}}function ade(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Pf(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function sde(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=ks(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var ug=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xm=new RegExp(ug.source,"g");function lde(e){return function(){return e}}function cde(e){return function(t){return e(t)+""}}function ude(e,t){var n=ug.lastIndex=Xm.lastIndex=0,r,o,i,a=-1,s=[],c=[];for(e=e+"",t=t+"";(r=ug.exec(e))&&(o=Xm.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,c.push({i:a,x:Pf(r,o)})),n=Xm.lastIndex;return n<t.length&&(i=t.slice(n),s[a]?s[a]+=i:s[++a]=i),s.length<2?c[0]?cde(c[0].x):lde(t):(t=c.length,function(u){for(var f=0,d;f<t;++f)s[(d=c[f]).i]=d.x(u);return s.join("")})}function ks(e,t){var n=typeof t,r;return t==null||n==="boolean"?bb(t):(n==="number"?Pf:n==="string"?(r=mc(t))?(t=r,tE):ude:t instanceof mc?tE:t instanceof Date?ade:ode(t)?rde:Array.isArray(t)?ide:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?sde:Pf)(e,t)}function wb(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function dde(e,t){t===void 0&&(t=e,e=ks);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return i[s](a-s)}}function fde(e){return function(){return e}}function If(e){return+e}var nE=[0,1];function Wt(e){return e}function dg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:fde(isNaN(t)?NaN:.5)}function pde(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function hde(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=dg(o,r),i=n(a,i)):(r=dg(r,o),i=n(i,a)),function(s){return i(r(s))}}function mde(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=dg(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(s){var c=cu(e,s,1,r)-1;return i[c](o[c](s))}}function du(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ah(){var e=nE,t=nE,n=ks,r,o,i,a=Wt,s,c,u;function f(){var p=Math.min(e.length,t.length);return a!==Wt&&(a=pde(e[0],e[p-1])),s=p>2?mde:hde,c=u=null,d}function d(p){return p==null||isNaN(p=+p)?i:(c||(c=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(o((u||(u=s(t,e.map(r),Pf)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,If),f()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=wb,f()},d.clamp=function(p){return arguments.length?(a=p?!0:Wt,f()):a!==Wt},d.interpolate=function(p){return arguments.length?(n=p,f()):n},d.unknown=function(p){return arguments.length?(i=p,d):i},function(p,m){return r=p,o=m,f()}}function Sb(){return Ah()(Wt,Wt)}function vde(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rf(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Xa(e){return e=Rf(Math.abs(e)),e?e[1]:NaN}function yde(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(o-=s,o+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function gde(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var xde=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vc(e){if(!(t=xde.exec(e)))throw new Error("invalid format: "+e);var t;return new Ab({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]})}vc.prototype=Ab.prototype;function Ab(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+""}Ab.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 bde(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var mF;function wde(e,t){var n=Rf(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(mF=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Rf(e,Math.max(0,t+i-1))[0]}function rE(e,t){var n=Rf(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const oE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:vde,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)=>rE(e*100,t),r:rE,s:wde,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function iE(e){return e}var aE=Array.prototype.map,sE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Sde(e){var t=e.grouping===void 0||e.thousands===void 0?iE:yde(aE.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?iE:gde(aE.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(d){d=vc(d);var p=d.fill,m=d.align,b=d.sign,y=d.symbol,v=d.zero,x=d.width,g=d.comma,w=d.precision,E=d.trim,A=d.type;A==="n"?(g=!0,A="g"):oE[A]||(w===void 0&&(w=12),E=!0,A="g"),(v||p==="0"&&m==="=")&&(v=!0,p="0",m="=");var S=y==="$"?n:y==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",N=y==="$"?r:/[%p]/.test(A)?a:"",_=oE[A],O=/[defgprs%]/.test(A);w=w===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function T(j){var I=S,$=N,C,P,M;if(A==="c")$=_(j)+$,j="";else{j=+j;var L=j<0||1/j<0;if(j=isNaN(j)?c:_(Math.abs(j),w),E&&(j=bde(j)),L&&+j==0&&b!=="+"&&(L=!1),I=(L?b==="("?b:s:b==="-"||b==="("?"":b)+I,$=(A==="s"?sE[8+mF/3]:"")+$+(L&&b==="("?")":""),O){for(C=-1,P=j.length;++C<P;)if(M=j.charCodeAt(C),48>M||M>57){$=(M===46?o+j.slice(C+1):j.slice(C))+$,j=j.slice(0,C);break}}}g&&!v&&(j=t(j,1/0));var R=I.length+j.length+$.length,k=R<x?new Array(x-R+1).join(p):"";switch(g&&v&&(j=t(k+j,k.length?x-$.length:1/0),k=""),m){case"<":j=I+j+$+k;break;case"=":j=I+k+j+$;break;case"^":j=k.slice(0,R=k.length>>1)+I+j+$+k.slice(R);break;default:j=k+I+j+$;break}return i(j)}return T.toString=function(){return d+""},T}function f(d,p){var m=u((d=vc(d),d.type="f",d)),b=Math.max(-8,Math.min(8,Math.floor(Xa(p)/3)))*3,y=Math.pow(10,-b),v=sE[8+b/3];return function(x){return m(y*x)+v}}return{format:u,formatPrefix:f}}var Zu,Eb,vF;Ade({thousands:",",grouping:[3],currency:["$",""]});function Ade(e){return Zu=Sde(e),Eb=Zu.format,vF=Zu.formatPrefix,Zu}function Ede(e){return Math.max(0,-Xa(Math.abs(e)))}function Nde(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xa(t)/3)))*3-Xa(Math.abs(e)))}function _de(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xa(t)-Xa(e))+1}function yF(e,t,n,r){var o=sg(e,t,n),i;switch(r=vc(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=Nde(o,a))&&(r.precision=i),vF(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=_de(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=Ede(o))&&(r.precision=i-(r.type==="%")*2);break}}return Eb(r)}function Yo(e){var t=e.domain;return e.ticks=function(n){var r=t();return ig(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return yF(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],c,u,f=10;for(s<a&&(u=a,a=s,s=u,u=o,o=i,i=u);f-- >0;){if(u=ag(a,s,n),u===c)return r[o]=a,r[i]=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;c=u}return e},e}function kf(){var e=Sb();return e.copy=function(){return du(e,kf())},$n.apply(e,arguments),Yo(e)}function gF(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,If),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return gF(e).unknown(t)},e=arguments.length?Array.from(e,If):[0,1],Yo(n)}function xF(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),e[n]=t.floor(o),e[r]=t.ceil(i),e}function lE(e){return Math.log(e)}function cE(e){return Math.exp(e)}function jde(e){return-Math.log(-e)}function Cde(e){return-Math.exp(-e)}function Ode(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Tde(e){return e===10?Ode:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Pde(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 uE(e){return(t,n)=>-e(-t,n)}function Nb(e){const t=e(lE,cE),n=t.domain;let r=10,o,i;function a(){return o=Pde(r),i=Tde(r),n()[0]<0?(o=uE(o),i=uE(i),e(jde,Cde)):e(lE,cE),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 c=n();let u=c[0],f=c[c.length-1];const d=f<u;d&&([u,f]=[f,u]);let p=o(u),m=o(f),b,y;const v=s==null?10:+s;let x=[];if(!(r%1)&&m-p<v){if(p=Math.floor(p),m=Math.ceil(m),u>0){for(;p<=m;++p)for(b=1;b<r;++b)if(y=p<0?b/i(-p):b*i(p),!(y<u)){if(y>f)break;x.push(y)}}else for(;p<=m;++p)for(b=r-1;b>=1;--b)if(y=p>0?b/i(-p):b*i(p),!(y<u)){if(y>f)break;x.push(y)}x.length*2<v&&(x=ig(u,f,v))}else x=ig(p,m,Math.min(m-p,v)).map(i);return d?x.reverse():x},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=vc(c)).precision==null&&(c.trim=!0),c=Eb(c)),s===1/0)return c;const u=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/i(Math.round(o(f)));return d*r<r-.5&&(d*=r),d<=u?c(f):""}},t.nice=()=>n(xF(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function bF(){const e=Nb(Ah()).domain([1,10]);return e.copy=()=>du(e,bF()).base(e.base()),$n.apply(e,arguments),e}function dE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function fE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _b(e){var t=1,n=e(dE(t),fE(t));return n.constant=function(r){return arguments.length?e(dE(t=+r),fE(t)):t},Yo(n)}function wF(){var e=_b(Ah());return e.copy=function(){return du(e,wF()).constant(e.constant())},$n.apply(e,arguments)}function pE(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 Rde(e){return e<0?-e*e:e*e}function jb(e){var t=e(Wt,Wt),n=1;function r(){return n===1?e(Wt,Wt):n===.5?e(Ide,Rde):e(pE(n),pE(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Yo(t)}function Cb(){var e=jb(Ah());return e.copy=function(){return du(e,Cb()).exponent(e.exponent())},$n.apply(e,arguments),e}function kde(){return Cb.apply(null,arguments).exponent(.5)}function hE(e){return Math.sign(e)*e*e}function Mde(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function SF(){var e=Sb(),t=[0,1],n=!1,r;function o(i){var a=Mde(e(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return e.invert(hE(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,If)).map(hE)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return SF(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$n.apply(o,arguments),Yo(o)}function AF(){var e=[],t=[],n=[],r;function o(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=Bue(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?r:t[cu(n,a)]}return i.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]]},i.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(Po),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return AF().domain(e).range(t).unknown(r)},$n.apply(i,arguments)}function EF(){var e=0,t=1,n=1,r=[.5],o=[0,1],i;function a(c){return c!=null&&c<=c?o[cu(r,c,0,n)]:i}function s(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return a}return a.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},a.range=function(c){return arguments.length?(n=(o=Array.from(c)).length-1,s()):o.slice()},a.invertExtent=function(c){var u=o.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(c){return arguments.length&&(i=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return EF().domain([e,t]).range(o).unknown(i)},$n.apply(Yo(a),arguments)}function NF(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[cu(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return NF().domain(e).range(t).unknown(n)},$n.apply(o,arguments)}const Zm=new Date,Qm=new Date;function xt(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a<s-i?a:s},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const c=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i<a)||!(s>0))return c;let u;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<a);return c},o.filter=i=>xt(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(Zm.setTime(+i),Qm.setTime(+a),e(Zm),e(Qm),Math.floor(n(Zm,Qm))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const Mf=xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Mf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Mf);Mf.range;const kr=1e3,jn=kr*60,Mr=jn*60,Yr=Mr*24,Ob=Yr*7,mE=Yr*30,Jm=Yr*365,di=xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*kr)},(e,t)=>(t-e)/kr,e=>e.getUTCSeconds());di.range;const Tb=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr)},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getMinutes());Tb.range;const Pb=xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getUTCMinutes());Pb.range;const Ib=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kr-e.getMinutes()*jn)},(e,t)=>{e.setTime(+e+t*Mr)},(e,t)=>(t-e)/Mr,e=>e.getHours());Ib.range;const Rb=xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Mr)},(e,t)=>(t-e)/Mr,e=>e.getUTCHours());Rb.range;const fu=xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*jn)/Yr,e=>e.getDate()-1);fu.range;const Eh=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yr,e=>e.getUTCDate()-1);Eh.range;const _F=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yr,e=>Math.floor(e/Yr));_F.range;function Vi(e){return xt(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())*jn)/Ob)}const Nh=Vi(0),Df=Vi(1),Dde=Vi(2),$de=Vi(3),Za=Vi(4),Lde=Vi(5),Fde=Vi(6);Nh.range;Df.range;Dde.range;$de.range;Za.range;Lde.range;Fde.range;function Ki(e){return xt(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)/Ob)}const _h=Ki(0),$f=Ki(1),Bde=Ki(2),Ude=Ki(3),Qa=Ki(4),Hde=Ki(5),zde=Ki(6);_h.range;$f.range;Bde.range;Ude.range;Qa.range;Hde.range;zde.range;const kb=xt(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());kb.range;const Mb=xt(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());Mb.range;const qr=xt(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());qr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(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)});qr.range;const Xr=xt(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());Xr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(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)});Xr.range;function jF(e,t,n,r,o,i){const a=[[di,1,kr],[di,5,5*kr],[di,15,15*kr],[di,30,30*kr],[i,1,jn],[i,5,5*jn],[i,15,15*jn],[i,30,30*jn],[o,1,Mr],[o,3,3*Mr],[o,6,6*Mr],[o,12,12*Mr],[r,1,Yr],[r,2,2*Yr],[n,1,Ob],[t,1,mE],[t,3,3*mE],[e,1,Jm]];function s(u,f,d){const p=f<u;p&&([u,f]=[f,u]);const m=d&&typeof d.range=="function"?d:c(u,f,d),b=m?m.range(u,+f+1):[];return p?b.reverse():b}function c(u,f,d){const p=Math.abs(f-u)/d,m=yb(([,,v])=>v).right(a,p);if(m===a.length)return e.every(sg(u/Jm,f/Jm,d));if(m===0)return Mf.every(Math.max(sg(u,f,d),1));const[b,y]=a[p/a[m-1][2]<a[m][2]/p?m-1:m];return b.every(y)}return[s,c]}const[Wde,Gde]=jF(Xr,Mb,_h,_F,Rb,Pb),[Vde,Kde]=jF(qr,kb,Nh,fu,Ib,Tb);function ev(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 tv(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 Qs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Yde(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=Js(o),f=el(o),d=Js(i),p=el(i),m=Js(a),b=el(a),y=Js(s),v=el(s),x=Js(c),g=el(c),w={a:L,A:R,b:k,B:H,c:null,d:wE,e:wE,f:yfe,g:jfe,G:Ofe,H:hfe,I:mfe,j:vfe,L:CF,m:gfe,M:xfe,p:G,q:W,Q:EE,s:NE,S:bfe,u:wfe,U:Sfe,V:Afe,w:Efe,W:Nfe,x:null,X:null,y:_fe,Y:Cfe,Z:Tfe,"%":AE},E={a:J,A:ce,b:Ee,B:we,c:null,d:SE,e:SE,f:kfe,g:Wfe,G:Vfe,H:Pfe,I:Ife,j:Rfe,L:TF,m:Mfe,M:Dfe,p:te,q:me,Q:EE,s:NE,S:$fe,u:Lfe,U:Ffe,V:Bfe,w:Ufe,W:Hfe,x:null,X:null,y:zfe,Y:Gfe,Z:Kfe,"%":AE},A={a:T,A:j,b:I,B:$,c:C,d:xE,e:xE,f:ufe,g:gE,G:yE,H:bE,I:bE,j:afe,L:cfe,m:ife,M:sfe,p:O,q:ofe,Q:ffe,s:pfe,S:lfe,u:Jde,U:efe,V:tfe,w:Qde,W:nfe,x:P,X:M,y:gE,Y:yE,Z:rfe,"%":dfe};w.x=S(n,w),w.X=S(r,w),w.c=S(t,w),E.x=S(n,E),E.X=S(r,E),E.c=S(t,E);function S(V,Q){return function(B){var F=[],pe=-1,le=0,Be=V.length,Ue,lt,ir;for(B instanceof Date||(B=new Date(+B));++pe<Be;)V.charCodeAt(pe)===37&&(F.push(V.slice(le,pe)),(lt=vE[Ue=V.charAt(++pe)])!=null?Ue=V.charAt(++pe):lt=Ue==="e"?" ":"0",(ir=Q[Ue])&&(Ue=ir(B,lt)),F.push(Ue),le=pe+1);return F.push(V.slice(le,pe)),F.join("")}}function N(V,Q){return function(B){var F=Qs(1900,void 0,1),pe=_(F,V,B+="",0),le,Be;if(pe!=B.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(Q&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(le=tv(Qs(F.y,0,1)),Be=le.getUTCDay(),le=Be>4||Be===0?$f.ceil(le):$f(le),le=Eh.offset(le,(F.V-1)*7),F.y=le.getUTCFullYear(),F.m=le.getUTCMonth(),F.d=le.getUTCDate()+(F.w+6)%7):(le=ev(Qs(F.y,0,1)),Be=le.getDay(),le=Be>4||Be===0?Df.ceil(le):Df(le),le=fu.offset(le,(F.V-1)*7),F.y=le.getFullYear(),F.m=le.getMonth(),F.d=le.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Be="Z"in F?tv(Qs(F.y,0,1)).getUTCDay():ev(Qs(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Be+5)%7:F.w+F.U*7-(Be+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,tv(F)):ev(F)}}function _(V,Q,B,F){for(var pe=0,le=Q.length,Be=B.length,Ue,lt;pe<le;){if(F>=Be)return-1;if(Ue=Q.charCodeAt(pe++),Ue===37){if(Ue=Q.charAt(pe++),lt=A[Ue in vE?Q.charAt(pe++):Ue],!lt||(F=lt(V,B,F))<0)return-1}else if(Ue!=B.charCodeAt(F++))return-1}return F}function O(V,Q,B){var F=u.exec(Q.slice(B));return F?(V.p=f.get(F[0].toLowerCase()),B+F[0].length):-1}function T(V,Q,B){var F=m.exec(Q.slice(B));return F?(V.w=b.get(F[0].toLowerCase()),B+F[0].length):-1}function j(V,Q,B){var F=d.exec(Q.slice(B));return F?(V.w=p.get(F[0].toLowerCase()),B+F[0].length):-1}function I(V,Q,B){var F=x.exec(Q.slice(B));return F?(V.m=g.get(F[0].toLowerCase()),B+F[0].length):-1}function $(V,Q,B){var F=y.exec(Q.slice(B));return F?(V.m=v.get(F[0].toLowerCase()),B+F[0].length):-1}function C(V,Q,B){return _(V,t,Q,B)}function P(V,Q,B){return _(V,n,Q,B)}function M(V,Q,B){return _(V,r,Q,B)}function L(V){return a[V.getDay()]}function R(V){return i[V.getDay()]}function k(V){return c[V.getMonth()]}function H(V){return s[V.getMonth()]}function G(V){return o[+(V.getHours()>=12)]}function W(V){return 1+~~(V.getMonth()/3)}function J(V){return a[V.getUTCDay()]}function ce(V){return i[V.getUTCDay()]}function Ee(V){return c[V.getUTCMonth()]}function we(V){return s[V.getUTCMonth()]}function te(V){return o[+(V.getUTCHours()>=12)]}function me(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var Q=S(V+="",w);return Q.toString=function(){return V},Q},parse:function(V){var Q=N(V+="",!1);return Q.toString=function(){return V},Q},utcFormat:function(V){var Q=S(V+="",E);return Q.toString=function(){return V},Q},utcParse:function(V){var Q=N(V+="",!0);return Q.toString=function(){return V},Q}}}var vE={"-":"",_:" ",0:"0"},Et=/^\s*\d+/,qde=/^%/,Xde=/[\\^$*+?|[\]().{}]/g;function Oe(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Zde(e){return e.replace(Xde,"\\$&")}function Js(e){return new RegExp("^(?:"+e.map(Zde).join("|")+")","i")}function el(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Qde(e,t,n){var r=Et.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Jde(e,t,n){var r=Et.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function efe(e,t,n){var r=Et.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tfe(e,t,n){var r=Et.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function nfe(e,t,n){var r=Et.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function yE(e,t,n){var r=Et.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function gE(e,t,n){var r=Et.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rfe(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 ofe(e,t,n){var r=Et.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function ife(e,t,n){var r=Et.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function xE(e,t,n){var r=Et.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function afe(e,t,n){var r=Et.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function bE(e,t,n){var r=Et.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function sfe(e,t,n){var r=Et.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lfe(e,t,n){var r=Et.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cfe(e,t,n){var r=Et.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ufe(e,t,n){var r=Et.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dfe(e,t,n){var r=qde.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ffe(e,t,n){var r=Et.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function pfe(e,t,n){var r=Et.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function wE(e,t){return Oe(e.getDate(),t,2)}function hfe(e,t){return Oe(e.getHours(),t,2)}function mfe(e,t){return Oe(e.getHours()%12||12,t,2)}function vfe(e,t){return Oe(1+fu.count(qr(e),e),t,3)}function CF(e,t){return Oe(e.getMilliseconds(),t,3)}function yfe(e,t){return CF(e,t)+"000"}function gfe(e,t){return Oe(e.getMonth()+1,t,2)}function xfe(e,t){return Oe(e.getMinutes(),t,2)}function bfe(e,t){return Oe(e.getSeconds(),t,2)}function wfe(e){var t=e.getDay();return t===0?7:t}function Sfe(e,t){return Oe(Nh.count(qr(e)-1,e),t,2)}function OF(e){var t=e.getDay();return t>=4||t===0?Za(e):Za.ceil(e)}function Afe(e,t){return e=OF(e),Oe(Za.count(qr(e),e)+(qr(e).getDay()===4),t,2)}function Efe(e){return e.getDay()}function Nfe(e,t){return Oe(Df.count(qr(e)-1,e),t,2)}function _fe(e,t){return Oe(e.getFullYear()%100,t,2)}function jfe(e,t){return e=OF(e),Oe(e.getFullYear()%100,t,2)}function Cfe(e,t){return Oe(e.getFullYear()%1e4,t,4)}function Ofe(e,t){var n=e.getDay();return e=n>=4||n===0?Za(e):Za.ceil(e),Oe(e.getFullYear()%1e4,t,4)}function Tfe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Oe(t/60|0,"0",2)+Oe(t%60,"0",2)}function SE(e,t){return Oe(e.getUTCDate(),t,2)}function Pfe(e,t){return Oe(e.getUTCHours(),t,2)}function Ife(e,t){return Oe(e.getUTCHours()%12||12,t,2)}function Rfe(e,t){return Oe(1+Eh.count(Xr(e),e),t,3)}function TF(e,t){return Oe(e.getUTCMilliseconds(),t,3)}function kfe(e,t){return TF(e,t)+"000"}function Mfe(e,t){return Oe(e.getUTCMonth()+1,t,2)}function Dfe(e,t){return Oe(e.getUTCMinutes(),t,2)}function $fe(e,t){return Oe(e.getUTCSeconds(),t,2)}function Lfe(e){var t=e.getUTCDay();return t===0?7:t}function Ffe(e,t){return Oe(_h.count(Xr(e)-1,e),t,2)}function PF(e){var t=e.getUTCDay();return t>=4||t===0?Qa(e):Qa.ceil(e)}function Bfe(e,t){return e=PF(e),Oe(Qa.count(Xr(e),e)+(Xr(e).getUTCDay()===4),t,2)}function Ufe(e){return e.getUTCDay()}function Hfe(e,t){return Oe($f.count(Xr(e)-1,e),t,2)}function zfe(e,t){return Oe(e.getUTCFullYear()%100,t,2)}function Wfe(e,t){return e=PF(e),Oe(e.getUTCFullYear()%100,t,2)}function Gfe(e,t){return Oe(e.getUTCFullYear()%1e4,t,4)}function Vfe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Qa(e):Qa.ceil(e),Oe(e.getUTCFullYear()%1e4,t,4)}function Kfe(){return"+0000"}function AE(){return"%"}function EE(e){return+e}function NE(e){return Math.floor(+e/1e3)}var ta,IF,RF;Yfe({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 Yfe(e){return ta=Yde(e),IF=ta.format,ta.parse,RF=ta.utcFormat,ta.utcParse,ta}function qfe(e){return new Date(e)}function Xfe(e){return e instanceof Date?+e:+new Date(+e)}function Db(e,t,n,r,o,i,a,s,c,u){var f=Sb(),d=f.invert,p=f.domain,m=u(".%L"),b=u(":%S"),y=u("%I:%M"),v=u("%I %p"),x=u("%a %d"),g=u("%b %d"),w=u("%B"),E=u("%Y");function A(S){return(c(S)<S?m:s(S)<S?b:a(S)<S?y:i(S)<S?v:r(S)<S?o(S)<S?x:g:n(S)<S?w:E)(S)}return f.invert=function(S){return new Date(d(S))},f.domain=function(S){return arguments.length?p(Array.from(S,Xfe)):p().map(qfe)},f.ticks=function(S){var N=p();return e(N[0],N[N.length-1],S??10)},f.tickFormat=function(S,N){return N==null?A:u(N)},f.nice=function(S){var N=p();return(!S||typeof S.range!="function")&&(S=t(N[0],N[N.length-1],S??10)),S?p(xF(N,S)):f},f.copy=function(){return du(f,Db(e,t,n,r,o,i,a,s,c,u))},f}function Zfe(){return $n.apply(Db(Vde,Kde,qr,kb,Nh,fu,Ib,Tb,di,IF).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Qfe(){return $n.apply(Db(Wde,Gde,Xr,Mb,_h,Eh,Rb,Pb,di,RF).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function jh(){var e=0,t=1,n,r,o,i,a=Wt,s=!1,c;function u(d){return d==null||isNaN(d=+d)?c:a(o===0?.5:(d=(i(d)-n)*o,s?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,t]=d,n=i(e=+e),r=i(t=+t),o=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(d){return arguments.length?(s=!!d,u):s},u.interpolator=function(d){return arguments.length?(a=d,u):a};function f(d){return function(p){var m,b;return arguments.length?([m,b]=p,a=d(m,b),u):[a(0),a(1)]}}return u.range=f(ks),u.rangeRound=f(wb),u.unknown=function(d){return arguments.length?(c=d,u):c},function(d){return i=d,n=d(e),r=d(t),o=n===r?0:1/(r-n),u}}function qo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function kF(){var e=Yo(jh()(Wt));return e.copy=function(){return qo(e,kF())},oo.apply(e,arguments)}function MF(){var e=Nb(jh()).domain([1,10]);return e.copy=function(){return qo(e,MF()).base(e.base())},oo.apply(e,arguments)}function DF(){var e=_b(jh());return e.copy=function(){return qo(e,DF()).constant(e.constant())},oo.apply(e,arguments)}function $b(){var e=jb(jh());return e.copy=function(){return qo(e,$b()).exponent(e.exponent())},oo.apply(e,arguments)}function Jfe(){return $b.apply(null,arguments).exponent(.5)}function $F(){var e=[],t=Wt;function n(r){if(r!=null&&!isNaN(r=+r))return t((cu(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Po),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,i)=>Fue(e,i/r))},n.copy=function(){return $F(t).domain(e)},oo.apply(n,arguments)}function Ch(){var e=0,t=.5,n=1,r=1,o,i,a,s,c,u=Wt,f,d=!1,p;function m(y){return isNaN(y=+y)?p:(y=.5+((y=+f(y))-i)*(r*y<r*i?s:c),u(d?Math.max(0,Math.min(1,y)):y))}m.domain=function(y){return arguments.length?([e,t,n]=y,o=f(e=+e),i=f(t=+t),a=f(n=+n),s=o===i?0:.5/(i-o),c=i===a?0:.5/(a-i),r=i<o?-1:1,m):[e,t,n]},m.clamp=function(y){return arguments.length?(d=!!y,m):d},m.interpolator=function(y){return arguments.length?(u=y,m):u};function b(y){return function(v){var x,g,w;return arguments.length?([x,g,w]=v,u=dde(y,[x,g,w]),m):[u(0),u(.5),u(1)]}}return m.range=b(ks),m.rangeRound=b(wb),m.unknown=function(y){return arguments.length?(p=y,m):p},function(y){return f=y,o=y(e),i=y(t),a=y(n),s=o===i?0:.5/(i-o),c=i===a?0:.5/(a-i),r=i<o?-1:1,m}}function LF(){var e=Yo(Ch()(Wt));return e.copy=function(){return qo(e,LF())},oo.apply(e,arguments)}function FF(){var e=Nb(Ch()).domain([.1,1,10]);return e.copy=function(){return qo(e,FF()).base(e.base())},oo.apply(e,arguments)}function BF(){var e=_b(Ch());return e.copy=function(){return qo(e,BF()).constant(e.constant())},oo.apply(e,arguments)}function Lb(){var e=jb(Ch());return e.copy=function(){return qo(e,Lb()).exponent(e.exponent())},oo.apply(e,arguments)}function epe(){return Lb.apply(null,arguments).exponent(.5)}const _E=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:fc,scaleDiverging:LF,scaleDivergingLog:FF,scaleDivergingPow:Lb,scaleDivergingSqrt:epe,scaleDivergingSymlog:BF,scaleIdentity:gF,scaleImplicit:lg,scaleLinear:kf,scaleLog:bF,scaleOrdinal:gb,scalePoint:Nl,scalePow:Cb,scaleQuantile:AF,scaleQuantize:EF,scaleRadial:SF,scaleSequential:kF,scaleSequentialLog:MF,scaleSequentialPow:$b,scaleSequentialQuantile:$F,scaleSequentialSqrt:Jfe,scaleSequentialSymlog:DF,scaleSqrt:kde,scaleSymlog:wF,scaleThreshold:NF,scaleTime:Zfe,scaleUtc:Qfe,tickFormat:yF},Symbol.toStringTag,{value:"Module"}));var tpe=Ns;function npe(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(a!=null&&(s===void 0?a===a&&!tpe(a):n(a,s)))var s=a,c=i}return c}var UF=npe;function rpe(e,t){return e>t}var ope=rpe,ipe=UF,ape=ope,spe=Is;function lpe(e){return e&&e.length?ipe(e,spe,ape):void 0}var cpe=lpe;const Oh=Re(cpe);function upe(e,t){return e<t}var dpe=upe,fpe=UF,ppe=dpe,hpe=Is;function mpe(e){return e&&e.length?fpe(e,hpe,ppe):void 0}var vpe=mpe;const Th=Re(vpe);var ype=Q0,gpe=Ko,xpe=qL,bpe=on;function wpe(e,t){var n=bpe(e)?ype:xpe;return n(e,gpe(t))}var Spe=wpe,Ape=KL,Epe=Spe;function Npe(e,t){return Ape(Epe(e,t),1)}var _pe=Npe;const jpe=Re(_pe);var Cpe=pb;function Ope(e,t){return Cpe(e,t)}var Tpe=Ope;const Ph=Re(Tpe);var Ms=1e9,Ppe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Bb,qe=!0,Mn="[DecimalError] ",yi=Mn+"Invalid argument: ",Fb=Mn+"Exponent out of range: ",Ds=Math.floor,oi=Math.pow,Ipe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,dn,bt=1e7,Ge=7,HF=9007199254740991,Lf=Ds(HF/Ge),re={};re.absoluteValue=re.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};re.comparedTo=re.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1};re.decimalPlaces=re.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ge;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};re.dividedBy=re.div=function(e){return Br(this,new this.constructor(e))};re.dividedToIntegerBy=re.idiv=function(e){var t=this,n=t.constructor;return De(Br(t,new n(e),0,1),n.precision)};re.equals=re.eq=function(e){return!this.cmp(e)};re.exponent=function(){return ft(this)};re.greaterThan=re.gt=function(e){return this.cmp(e)>0};re.greaterThanOrEqualTo=re.gte=function(e){return this.cmp(e)>=0};re.isInteger=re.isint=function(){return this.e>this.d.length-2};re.isNegative=re.isneg=function(){return this.s<0};re.isPositive=re.ispos=function(){return this.s>0};re.isZero=function(){return this.s===0};re.lessThan=re.lt=function(e){return this.cmp(e)<0};re.lessThanOrEqualTo=re.lte=function(e){return this.cmp(e)<1};re.logarithm=re.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(dn))throw Error(Mn+"NaN");if(n.s<1)throw Error(Mn+(n.s?"NaN":"-Infinity"));return n.eq(dn)?new r(0):(qe=!1,t=Br(yc(n,i),yc(e,i),i),qe=!0,De(t,o))};re.minus=re.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?GF(t,e):zF(t,(e.s=-e.s,e))};re.modulo=re.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(Mn+"NaN");return n.s?(qe=!1,t=Br(n,e,0,1).times(e),qe=!0,n.minus(t)):De(new r(n),o)};re.naturalExponential=re.exp=function(){return WF(this)};re.naturalLogarithm=re.ln=function(){return yc(this)};re.negated=re.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};re.plus=re.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?zF(t,e):GF(t,(e.s=-e.s,e))};re.precision=re.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(yi+e);if(t=ft(o)+1,r=o.d.length-1,n=r*Ge+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};re.squareRoot=re.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(Mn+"NaN")}for(e=ft(s),qe=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=fr(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Ds((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new c(t)):r=new c(o.toString()),n=c.precision,o=a=n+3;;)if(i=r,r=i.plus(Br(s,i,a+2)).times(.5),fr(i.d).slice(0,a)===(t=fr(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(De(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;a+=4}return qe=!0,De(r,n)};re.times=re.mul=function(e){var t,n,r,o,i,a,s,c,u,f=this,d=f.constructor,p=f.d,m=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,c=p.length,u=m.length,c<u&&(i=p,p=m,m=i,a=c,c=u,u=a),i=[],a=c+u,r=a;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+m[r]*p[o-r-1]+t,i[o--]=s%bt|0,t=s/bt|0;i[o]=(i[o]+t)%bt|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,qe?De(e,d.precision):e};re.toDecimalPlaces=re.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Sr(e,0,Ms),t===void 0?t=r.rounding:Sr(t,0,8),De(n,e+ft(n)+1,t))};re.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Ti(r,!0):(Sr(e,0,Ms),t===void 0?t=o.rounding:Sr(t,0,8),r=De(new o(r),e+1,t),n=Ti(r,!0,e+1)),n};re.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?Ti(o):(Sr(e,0,Ms),t===void 0?t=i.rounding:Sr(t,0,8),r=De(new i(o),e+ft(o)+1,t),n=Ti(r.abs(),!1,e+ft(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};re.toInteger=re.toint=function(){var e=this,t=e.constructor;return De(new t(e),ft(e)+1,t.rounding)};re.toNumber=function(){return+this};re.toPower=re.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,u=12,f=+(e=new c(e));if(!e.s)return new c(dn);if(s=new c(s),!s.s){if(e.s<1)throw Error(Mn+"Infinity");return s}if(s.eq(dn))return s;if(r=c.precision,e.eq(dn))return De(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,i=s.s,a){if((n=f<0?-f:f)<=HF){for(o=new c(dn),t=Math.ceil(r/Ge+4),qe=!1;n%2&&(o=o.times(s),CE(o.d,t)),n=Ds(n/2),n!==0;)s=s.times(s),CE(s.d,t);return qe=!0,e.s<0?new c(dn).div(o):De(o,r)}}else if(i<0)throw Error(Mn+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,qe=!1,o=e.times(yc(s,r+u)),qe=!0,o=WF(o),o.s=i,o};re.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?(n=ft(o),r=Ti(o,n<=i.toExpNeg||n>=i.toExpPos)):(Sr(e,1,Ms),t===void 0?t=i.rounding:Sr(t,0,8),o=De(new i(o),e,t),n=ft(o),r=Ti(o,e<=n||n<=i.toExpNeg,e)),r};re.toSignificantDigits=re.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Sr(e,1,Ms),t===void 0?t=r.rounding:Sr(t,0,8)),De(new r(n),e,t)};re.toString=re.valueOf=re.val=re.toJSON=re[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ft(e),n=e.constructor;return Ti(e,t<=n.toExpNeg||t>=n.toExpPos)};function zF(e,t){var n,r,o,i,a,s,c,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),qe?De(t,d):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o,i){for(i<0?(r=c,i=-i,s=u.length):(r=u,o=a,s=c.length),a=Math.ceil(d/Ge),s=a>s?a+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=c.length,i=u.length,s-i<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/bt|0,c[i]%=bt;for(n&&(c.unshift(n),++o),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=o,qe?De(t,d):t}function Sr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(yi+e)}function fr(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",n=Ge-r.length,n&&(i+=po(n)),i+=r;a=e[t],r=a+"",n=Ge-r.length,n&&(i+=po(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var Br=function(){function e(r,o){var i,a=0,s=r.length;for(r=r.slice();s--;)i=r[s]*o+a,r[s]=i%bt|0,a=i/bt|0;return a&&r.unshift(a),r}function t(r,o,i,a){var s,c;if(i!=a)c=i>a?1:-1;else for(s=c=0;s<i;s++)if(r[s]!=o[s]){c=r[s]>o[s]?1:-1;break}return c}function n(r,o,i){for(var a=0;i--;)r[i]-=a,a=r[i]<o[i]?1:0,r[i]=a*bt+r[i]-o[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,i,a){var s,c,u,f,d,p,m,b,y,v,x,g,w,E,A,S,N,_,O=r.constructor,T=r.s==o.s?1:-1,j=r.d,I=o.d;if(!r.s)return new O(r);if(!o.s)throw Error(Mn+"Division by zero");for(c=r.e-o.e,N=I.length,A=j.length,m=new O(T),b=m.d=[],u=0;I[u]==(j[u]||0);)++u;if(I[u]>(j[u]||0)&&--c,i==null?g=i=O.precision:a?g=i+(ft(r)-ft(o))+1:g=i,g<0)return new O(0);if(g=g/Ge+2|0,u=0,N==1)for(f=0,I=I[0],g++;(u<A||f)&&g--;u++)w=f*bt+(j[u]||0),b[u]=w/I|0,f=w%I|0;else{for(f=bt/(I[0]+1)|0,f>1&&(I=e(I,f),j=e(j,f),N=I.length,A=j.length),E=N,y=j.slice(0,N),v=y.length;v<N;)y[v++]=0;_=I.slice(),_.unshift(0),S=I[0],I[1]>=bt/2&&++S;do f=0,s=t(I,y,N,v),s<0?(x=y[0],N!=v&&(x=x*bt+(y[1]||0)),f=x/S|0,f>1?(f>=bt&&(f=bt-1),d=e(I,f),p=d.length,v=y.length,s=t(d,y,p,v),s==1&&(f--,n(d,N<p?_:I,p))):(f==0&&(s=f=1),d=I.slice()),p=d.length,p<v&&d.unshift(0),n(y,d,v),s==-1&&(v=y.length,s=t(I,y,N,v),s<1&&(f++,n(y,N<v?_:I,v))),v=y.length):s===0&&(f++,y=[0]),b[u++]=f,s&&y[0]?y[v++]=j[E]||0:(y=[j[E]],v=1);while((E++<A||y[0]!==void 0)&&g--)}return b[0]||b.shift(),m.e=c,De(m,a?i+ft(m)+1:i)}}();function WF(e,t){var n,r,o,i,a,s,c=0,u=0,f=e.constructor,d=f.precision;if(ft(e)>16)throw Error(Fb+ft(e));if(!e.s)return new f(dn);for(qe=!1,s=d,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(oi(2,u))/Math.LN10*2+5|0,s+=r,n=o=i=new f(dn),f.precision=s;;){if(o=De(o.times(e),s),n=n.times(++c),a=i.plus(Br(o,n,s)),fr(a.d).slice(0,s)===fr(i.d).slice(0,s)){for(;u--;)i=De(i.times(i),s);return f.precision=d,t==null?(qe=!0,De(i,d)):i}i=a}}function ft(e){for(var t=e.e*Ge,n=e.d[0];n>=10;n/=10)t++;return t}function nv(e,t,n){if(t>e.LN10.sd())throw qe=!0,n&&(e.precision=n),Error(Mn+"LN10 precision limit exceeded");return De(new e(e.LN10),t)}function po(e){for(var t="";e--;)t+="0";return t}function yc(e,t){var n,r,o,i,a,s,c,u,f,d=1,p=10,m=e,b=m.d,y=m.constructor,v=y.precision;if(m.s<1)throw Error(Mn+(m.s?"NaN":"-Infinity"));if(m.eq(dn))return new y(0);if(t==null?(qe=!1,u=v):u=t,m.eq(10))return t==null&&(qe=!0),nv(y,u);if(u+=p,y.precision=u,n=fr(b),r=n.charAt(0),i=ft(m),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=fr(m.d),r=n.charAt(0),d++;i=ft(m),r>1?(m=new y("0."+n),i++):m=new y(r+"."+n.slice(1))}else return c=nv(y,u+2,v).times(i+""),m=yc(new y(r+"."+n.slice(1)),u-p).plus(c),y.precision=v,t==null?(qe=!0,De(m,v)):m;for(s=a=m=Br(m.minus(dn),m.plus(dn),u),f=De(m.times(m),u),o=3;;){if(a=De(a.times(f),u),c=s.plus(Br(a,new y(o),u)),fr(c.d).slice(0,u)===fr(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(nv(y,u+2,v).times(i+""))),s=Br(s,new y(d),u),y.precision=v,t==null?(qe=!0,De(s,v)):s;s=c,o+=2}}function jE(e,t){var n,r,o;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(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=Ds(n/Ge),e.d=[],r=(n+1)%Ge,n<0&&(r+=Ge),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=Ge;r<o;)e.d.push(+t.slice(r,r+=Ge));t=t.slice(r),r=Ge-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),qe&&(e.e>Lf||e.e<-Lf))throw Error(Fb+n)}else e.s=0,e.e=0,e.d=[0];return e}function De(e,t,n){var r,o,i,a,s,c,u,f,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if(r=t-a,r<0)r+=Ge,o=t,u=d[f=0];else{if(f=Math.ceil((r+1)/Ge),i=d.length,f>=i)return e;for(u=i=d[f],a=1;i>=10;i/=10)a++;r%=Ge,o=r-Ge+a}if(n!==void 0&&(i=oi(10,a-o-1),s=u/i%10|0,c=t<0||d[f+1]!==void 0||u%i,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?o>0?u/oi(10,a-o):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(i=ft(e),d.length=1,t=t-i-1,d[0]=oi(10,(Ge-t%Ge)%Ge),e.e=Ds(-t/Ge)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,i=1,f--):(d.length=f+1,i=oi(10,Ge-r),d[f]=o>0?(u/oi(10,a-o)%oi(10,o)|0)*i:0),c)for(;;)if(f==0){(d[0]+=i)==bt&&(d[0]=1,++e.e);break}else{if(d[f]+=i,d[f]!=bt)break;d[f--]=0,i=1}for(r=d.length;d[--r]===0;)d.pop();if(qe&&(e.e>Lf||e.e<-Lf))throw Error(Fb+ft(e));return e}function GF(e,t){var n,r,o,i,a,s,c,u,f,d,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),qe?De(t,m):t;if(c=e.d,d=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r,a){for(f=a<0,f?(n=c,a=-a,s=d.length):(n=d,r=u,s=c.length),o=Math.max(Math.ceil(m/Ge),s)+2,a>o&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for(o=c.length,s=d.length,f=o<s,f&&(s=o),o=0;o<s;o++)if(c[o]!=d[o]){f=c[o]<d[o];break}a=0}for(f&&(n=c,c=d,d=n,t.s=-t.s),s=c.length,o=d.length-s;o>0;--o)c[s++]=0;for(o=d.length;o>a;){if(c[--o]<d[o]){for(i=o;i&&c[--i]===0;)c[i]=bt-1;--c[i],c[o]+=bt}c[o]-=d[o]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,qe?De(t,m):t):new p(0)}function Ti(e,t,n){var r,o=ft(e),i=fr(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+po(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+po(-o-1)+i,n&&(r=n-a)>0&&(i+=po(r))):o>=a?(i+=po(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+po(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=po(r))),e.s<0?"-"+i:i}function CE(e,t){if(e.length>t)return e.length=t,!0}function VF(e){var t,n,r;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(yi+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return jE(a,i.toString())}else if(typeof i!="string")throw Error(yi+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,Ipe.test(i))jE(a,i);else throw Error(yi+i)}if(o.prototype=re,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=VF,o.config=o.set=Rpe,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 o.config(e),o}function Rpe(e){if(!e||typeof e!="object")throw Error(Mn+"Object expected");var t,n,r,o=["precision",1,Ms,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((r=e[n=o[t]])!==void 0)if(Ds(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(yi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(yi+n+": "+r);return this}var Bb=VF(Ppe);dn=new Bb(1);const Me=Bb;function kpe(e){return Lpe(e)||$pe(e)||Dpe(e)||Mpe()}function Mpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
522
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dpe(e,t){if(e){if(typeof e=="string")return fg(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 fg(e,t)}}function $pe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Lpe(e){if(Array.isArray(e))return fg(e)}function fg(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 Fpe=function(t){return t},KF={},YF=function(t){return t===KF},OE=function(t){return function n(){return arguments.length===0||arguments.length===1&&YF(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Bpe=function e(t,n){return t===1?n:OE(function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter(function(s){return s!==KF}).length;return a>=t?n.apply(void 0,o):e(t-a,OE(function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var f=o.map(function(d){return YF(d)?c.shift():d});return n.apply(void 0,kpe(f).concat(c))}))})},Ih=function(t){return Bpe(t.length,t)},pg=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},Upe=Ih(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Hpe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Fpe;var o=n.reverse(),i=o[0],a=o.slice(1);return function(){return a.reduce(function(s,c){return c(s)},i.apply(void 0,arguments))}},hg=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},qF=function(t){var n=null,r=null;return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n&&i.every(function(s,c){return s===n[c]})||(n=i,r=t.apply(void 0,i)),r}};function zpe(e){var t;return e===0?t=1:t=Math.floor(new Me(e).abs().log(10).toNumber())+1,t}function Wpe(e,t,n){for(var r=new Me(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i}var Gpe=Ih(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),Vpe=Ih(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Kpe=Ih(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Rh={rangeStep:Wpe,getDigitCount:zpe,interpolateNumber:Gpe,uninterpolateNumber:Vpe,uninterpolateTruncation:Kpe};function mg(e){return Xpe(e)||qpe(e)||XF(e)||Ype()}function Ype(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
523
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qpe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Xpe(e){if(Array.isArray(e))return vg(e)}function gc(e,t){return Jpe(e)||Qpe(e,t)||XF(e,t)||Zpe()}function Zpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
524
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XF(e,t){if(e){if(typeof e=="string")return vg(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 vg(e,t)}}function vg(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 Qpe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,i=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(c){o=!0,i=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function Jpe(e){if(Array.isArray(e))return e}function ZF(e){var t=gc(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function QF(e,t,n){if(e.lte(0))return new Me(0);var r=Rh.getDigitCount(e.toNumber()),o=new Me(10).pow(r),i=e.div(o),a=r!==1?.05:.1,s=new Me(Math.ceil(i.div(a).toNumber())).add(n).mul(a),c=s.mul(o);return t?c:new Me(Math.ceil(c))}function ehe(e,t,n){var r=1,o=new Me(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new Me(10).pow(Rh.getDigitCount(e)-1),o=new Me(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new Me(Math.floor(e)))}else e===0?o=new Me(Math.floor((t-1)/2)):n||(o=new Me(Math.floor(e)));var a=Math.floor((t-1)/2),s=Hpe(Upe(function(c){return o.add(new Me(c-a).mul(r)).toNumber()}),pg);return s(0,t)}function JF(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Me(0),tickMin:new Me(0),tickMax:new Me(0)};var i=QF(new Me(t).sub(e).div(n-1),r,o),a;e<=0&&t>=0?a=new Me(0):(a=new Me(e).add(t).div(2),a=a.sub(new Me(a).mod(i)));var s=Math.ceil(a.sub(e).div(i).toNumber()),c=Math.ceil(new Me(t).sub(a).div(i).toNumber()),u=s+c+1;return u>n?JF(e,t,n,r,o+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:i,tickMin:a.sub(new Me(s).mul(i)),tickMax:a.add(new Me(c).mul(i))})}function the(e){var t=gc(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),s=ZF([n,r]),c=gc(s,2),u=c[0],f=c[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(mg(pg(0,o-1).map(function(){return 1/0}))):[].concat(mg(pg(0,o-1).map(function(){return-1/0})),[f]);return n>r?hg(d):d}if(u===f)return ehe(u,o,i);var p=JF(u,f,a,i),m=p.step,b=p.tickMin,y=p.tickMax,v=Rh.rangeStep(b,y.add(new Me(.1).mul(m)),m);return n>r?hg(v):v}function nhe(e,t){var n=gc(e,2),r=n[0],o=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=ZF([r,o]),s=gc(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[r,o];if(c===u)return[c];var f=Math.max(t,2),d=QF(new Me(u).sub(c).div(f-1),i,0),p=[].concat(mg(Rh.rangeStep(new Me(c),new Me(u).sub(new Me(.99).mul(d)),d)),[u]);return r>o?hg(p):p}var rhe=qF(the),ohe=qF(nhe),ihe="Invariant failed";function Pi(e,t){throw new Error(ihe)}var ahe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ja(e){"@babel/helpers - typeof";return Ja=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},Ja(e)}function Ff(){return Ff=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},Ff.apply(this,arguments)}function she(e,t){return dhe(e)||uhe(e,t)||che(e,t)||lhe()}function lhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
525
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function che(e,t){if(e){if(typeof e=="string")return TE(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 TE(e,t)}}function TE(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 uhe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function dhe(e){if(Array.isArray(e))return e}function fhe(e,t){if(e==null)return{};var n=phe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function phe(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 hhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mhe(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,n4(r.key),r)}}function vhe(e,t,n){return t&&mhe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yhe(e,t,n){return t=Bf(t),ghe(e,e4()?Reflect.construct(t,n||[],Bf(e).constructor):t.apply(e,n))}function ghe(e,t){if(t&&(Ja(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xhe(e)}function xhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e4=function(){return!!e})()}function Bf(e){return Bf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bf(e)}function bhe(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&&yg(e,t)}function yg(e,t){return yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},yg(e,t)}function t4(e,t,n){return t=n4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n4(e){var t=whe(e,"string");return Ja(t)=="symbol"?t:t+""}function whe(e,t){if(Ja(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ja(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pu=function(e){function t(){return hhe(this,t),yhe(this,t,arguments)}return bhe(t,e),vhe(t,[{key:"render",value:function(){var r=this.props,o=r.offset,i=r.layout,a=r.width,s=r.dataKey,c=r.data,u=r.dataPointFormatter,f=r.xAxis,d=r.yAxis,p=fhe(r,ahe),m=Ne(p,!1);this.props.direction==="x"&&f.type!=="number"&&Pi();var b=c.map(function(y){var v=u(y,s),x=v.x,g=v.y,w=v.value,E=v.errorVal;if(!E)return null;var A=[],S,N;if(Array.isArray(E)){var _=she(E,2);S=_[0],N=_[1]}else S=N=E;if(i==="vertical"){var O=f.scale,T=g+o,j=T+a,I=T-a,$=O(w-S),C=O(w+N);A.push({x1:C,y1:j,x2:C,y2:I}),A.push({x1:$,y1:T,x2:C,y2:T}),A.push({x1:$,y1:j,x2:$,y2:I})}else if(i==="horizontal"){var P=d.scale,M=x+o,L=M-a,R=M+a,k=P(w-S),H=P(w+N);A.push({x1:L,y1:H,x2:R,y2:H}),A.push({x1:M,y1:k,x2:M,y2:H}),A.push({x1:L,y1:k,x2:R,y2:k})}return D.createElement(it,Ff({className:"recharts-errorBar",key:"bar-".concat(A.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},m),A.map(function(G){return D.createElement("line",Ff({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return D.createElement(it,{className:"recharts-errorBars"},b)}}])}(D.Component);t4(pu,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});t4(pu,"displayName","ErrorBar");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 PE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PE(Object(n),!0).forEach(function(r){She(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function She(e,t,n){return t=Ahe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ahe(e){var t=Ehe(e,"string");return xc(t)=="symbol"?t:t+""}function Ehe(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)}var r4=function(t){var n=t.children,r=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=cn(n,mi);if(!a)return null;var s=mi.defaultProps,c=s!==void 0?Jo(Jo({},s),a.props):{},u;return a.props&&a.props.payload?u=a.props&&a.props.payload:i==="children"?u=(r||[]).reduce(function(f,d){var p=d.item,m=d.props,b=m.sectors||m.data||[];return f.concat(b.map(function(y){return{type:a.props.iconType||p.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):u=(r||[]).map(function(f){var d=f.item,p=d.type.defaultProps,m=p!==void 0?Jo(Jo({},p),d.props):{},b=m.dataKey,y=m.name,v=m.legendType,x=m.hide;return{inactive:x,dataKey:b,type:c.iconType||v||"square",color:Ub(d),value:y||b,payload:m}}),Jo(Jo(Jo({},c),mi.getWithHeight(a,o)),{},{payload:u,item:a})};function bc(e){"@babel/helpers - typeof";return bc=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},bc(e)}function IE(e){return Che(e)||jhe(e)||_he(e)||Nhe()}function Nhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
526
+ 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 gg(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 gg(e,t)}}function jhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Che(e){if(Array.isArray(e))return gg(e)}function gg(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 RE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RE(Object(n),!0).forEach(function(r){Ra(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ra(e,t,n){return t=Ohe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ohe(e){var t=The(e,"string");return bc(t)=="symbol"?t:t+""}function The(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gn(e,t,n){return Se(e)||Se(t)?n:gt(t)?Tn(e,t,n):be(t)?t(e):n}function _l(e,t,n,r){var o=jpe(e,function(s){return gn(s,t)});if(n==="number"){var i=o.filter(function(s){return q(s)||parseFloat(s)});return i.length?[Th(i),Oh(i)]:[1/0,-1/0]}var a=r?o.filter(function(s){return!Se(s)}):o;return a.map(function(s){return gt(s)||s instanceof Date?s:""})}var Phe=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,i=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(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<s;u++){var f=u>0?o[u-1].coordinate:o[s-1].coordinate,d=o[u].coordinate,p=u>=s-1?o[0].coordinate:o[u+1].coordinate,m=void 0;if(Xn(d-f)!==Xn(p-d)){var b=[];if(Xn(p-d)===Xn(c[1]-c[0])){m=p;var y=d+c[1]-c[0];b[0]=Math.min(y,(y+f)/2),b[1]=Math.max(y,(y+f)/2)}else{m=f;var v=p+c[1]-c[0];b[0]=Math.min(d,(v+d)/2),b[1]=Math.max(d,(v+d)/2)}var x=[Math.min(d,(m+d)/2),Math.max(d,(m+d)/2)];if(t>x[0]&&t<=x[1]||t>=b[0]&&t<=b[1]){a=o[u].index;break}}else{var g=Math.min(f,p),w=Math.max(f,p);if(t>(g+d)/2&&t<=(w+d)/2){a=o[u].index;break}}}else for(var E=0;E<s;E++)if(E===0&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E>0&&E<s-1&&t>(r[E].coordinate+r[E-1].coordinate)/2&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E===s-1&&t>(r[E].coordinate+r[E-1].coordinate)/2){a=r[E].index;break}return a},Ub=function(t){var n,r=t,o=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?tt(tt({},t.type.defaultProps),t.props):t.props,a=i.stroke,s=i.fill,c;switch(o){case"Line":c=a;break;case"Area":case"Radar":c=a&&a!=="none"?a:s;break;default:c=s;break}return c},Ihe=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,i=o===void 0?{}:o;if(!i)return{};for(var a={},s=Object.keys(i),c=0,u=s.length;c<u;c++)for(var f=i[s[c]].stackGroups,d=Object.keys(f),p=0,m=d.length;p<m;p++){var b=f[d[p]],y=b.items,v=b.cateAxisId,x=y.filter(function(N){return Lr(N.type).indexOf("Bar")>=0});if(x&&x.length){var g=x[0].type.defaultProps,w=g!==void 0?tt(tt({},g),x[0].props):x[0].props,E=w.barSize,A=w[v];a[A]||(a[A]=[]);var S=Se(E)?n:E;a[A].push({item:x[0],stackList:x.slice(1),barSize:Se(S)?void 0:Oi(S,r,0)})}}return a},Rhe=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=i===void 0?[]:i,s=t.maxBarSize,c=a.length;if(c<1)return null;var u=Oi(n,o,0,!0),f,d=[];if(a[0].barSize===+a[0].barSize){var p=!1,m=o/c,b=a.reduce(function(E,A){return E+A.barSize||0},0);b+=(c-1)*u,b>=o&&(b-=(c-1)*u,u=0),b>=o&&m>0&&(p=!0,m*=.9,b=c*m);var y=(o-b)/2>>0,v={offset:y-u,size:0};f=a.reduce(function(E,A){var S={item:A.item,position:{offset:v.offset+v.size+u,size:p?m:A.barSize}},N=[].concat(IE(E),[S]);return v=N[N.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(_){N.push({item:_,position:v})}),N},d)}else{var x=Oi(r,o,0,!0);o-2*x-(c-1)*u<=0&&(u=0);var g=(o-2*x-(c-1)*u)/c;g>1&&(g>>=0);var w=s===+s?Math.min(g,s):g;f=a.reduce(function(E,A,S){var N=[].concat(IE(E),[{item:A.item,position:{offset:x+(g+u)*S+(g-w)/2,size:w}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(_){N.push({item:_,position:N[N.length-1].position})}),N},d)}return f},khe=function(t,n,r,o){var i=r.children,a=r.width,s=r.margin,c=a-(s.left||0)-(s.right||0),u=r4({children:i,legendWidth:c});if(u){var f=o||{},d=f.width,p=f.height,m=u.align,b=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&b==="middle")&&m!=="center"&&q(t[m]))return tt(tt({},t),{},Ra({},m,t[m]+(d||0)));if((y==="horizontal"||y==="vertical"&&m==="center")&&b!=="middle"&&q(t[b]))return tt(tt({},t),{},Ra({},b,t[b]+(p||0)))}return t},Mhe=function(t,n,r){return Se(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},o4=function(t,n,r,o,i){var a=n.props.children,s=Pn(a,pu).filter(function(u){return Mhe(o,i,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var d=gn(f,r);if(Se(d))return u;var p=Array.isArray(d)?[Th(d),Oh(d)]:[d,d],m=c.reduce(function(b,y){var v=gn(f,y,0),x=p[0]-Math.abs(Array.isArray(v)?v[0]:v),g=p[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(x,b[0]),Math.max(g,b[1])]},[1/0,-1/0]);return[Math.min(m[0],u[0]),Math.max(m[1],u[1])]},[1/0,-1/0])}return null},Dhe=function(t,n,r,o,i){var a=n.map(function(s){return o4(t,s,r,i,o)}).filter(function(s){return!Se(s)});return a&&a.length?a.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},i4=function(t,n,r,o,i){var a=n.map(function(c){var u=c.props.dataKey;return r==="number"&&u&&o4(t,c,u,o)||_l(t,u,r,i)});if(r==="number")return a.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(c,u){for(var f=0,d=u.length;f<d;f++)s[u[f]]||(s[u[f]]=!0,c.push(u[f]));return c},[])},a4=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},s4=function(t,n,r,o){if(o)return t.map(function(c){return c.coordinate});var i,a,s=t.map(function(c){return c.coordinate===n&&(i=!0),c.coordinate===r&&(a=!0),c.coordinate});return i||s.push(n),a||s.push(r),s},Dr=function(t,n,r){if(!t)return null;var o=t.scale,i=t.duplicateDomain,a=t.type,s=t.range,c=t.realScaleType==="scaleBand"?o.bandwidth()/2:2,u=(n||r)&&a==="category"&&o.bandwidth?o.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Xn(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var p=i?i.indexOf(d):d;return{coordinate:o(p)+u,value:d,offset:u}});return f.filter(function(d){return!au(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,p){return{coordinate:o(d)+u,value:d,index:p,offset:u}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(d){return{coordinate:o(d)+u,value:d,offset:u}}):o.domain().map(function(d,p){return{coordinate:o(d)+u,value:i?i[d]:d,index:p,offset:u}})},rv=new WeakMap,Qu=function(t,n){if(typeof n!="function")return t;rv.has(t)||rv.set(t,new WeakMap);var r=rv.get(t);if(r.has(n))return r.get(n);var o=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,o),o},$he=function(t,n,r){var o=t.scale,i=t.type,a=t.layout,s=t.axisType;if(o==="auto")return a==="radial"&&s==="radiusAxis"?{scale:fc(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:kf(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Nl(),realScaleType:"point"}:i==="category"?{scale:fc(),realScaleType:"band"}:{scale:kf(),realScaleType:"linear"};if(Ci(o)){var c="scale".concat(vh(o));return{scale:(_E[c]||Nl)(),realScaleType:_E[c]?c:"point"}}return be(o)?{scale:o}:{scale:Nl(),realScaleType:"point"}},kE=1e-4,Lhe=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,o=t.range(),i=Math.min(o[0],o[1])-kE,a=Math.max(o[0],o[1])+kE,s=t(n[0]),c=t(n[r-1]);(s<i||s>a||c<i||c>a)&&t.domain([n[0],n[r-1]])}},Fhe=function(t,n){if(!t)return null;for(var r=0,o=t.length;r<o;r++)if(t[r].item===n)return t[r].position;return null},Bhe=function(t,n){if(!n||n.length!==2||!q(n[0])||!q(n[1]))return t;var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!q(t[0])||t[0]<r)&&(i[0]=r),(!q(t[1])||t[1]>o)&&(i[1]=o),i[0]>o&&(i[0]=o),i[1]<r&&(i[1]=r),i},Uhe=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var i=0,a=0,s=0;s<n;++s){var c=au(t[s][r][1])?t[s][r][0]:t[s][r][1];c>=0?(t[s][r][0]=i,t[s][r][1]=i+c,i=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+c,a=t[s][r][1])}},Hhe=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var i=0,a=0;a<n;++a){var s=au(t[a][r][1])?t[a][r][0]:t[a][r][1];s>=0?(t[a][r][0]=i,t[a][r][1]=i+s,i=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},zhe={sign:Uhe,expand:ote,none:Ga,silhouette:ite,wiggle:ate,positive:Hhe},Whe=function(t,n,r){var o=n.map(function(s){return s.props.dataKey}),i=zhe[r],a=rte().keys(o).value(function(s,c){return+gn(s,c,0)}).order(zy).offset(i);return a(t)},Ghe=function(t,n,r,o,i,a){if(!t)return null;var s=a?n.reverse():n,c={},u=s.reduce(function(d,p){var m,b=(m=p.type)!==null&&m!==void 0&&m.defaultProps?tt(tt({},p.type.defaultProps),p.props):p.props,y=b.stackId,v=b.hide;if(v)return d;var x=b[r],g=d[x]||{hasStack:!1,stackGroups:{}};if(gt(y)){var w=g.stackGroups[y]||{numericAxisId:r,cateAxisId:o,items:[]};w.items.push(p),g.hasStack=!0,g.stackGroups[y]=w}else g.stackGroups[su("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[p]};return tt(tt({},d),{},Ra({},x,g))},c),f={};return Object.keys(u).reduce(function(d,p){var m=u[p];if(m.hasStack){var b={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(y,v){var x=m.stackGroups[v];return tt(tt({},y),{},Ra({},v,{numericAxisId:r,cateAxisId:o,items:x.items,stackedData:Whe(t,x.items,i)}))},b)}return tt(tt({},d),{},Ra({},p,m))},f)},Vhe=function(t,n){var r=n.realScaleType,o=n.type,i=n.tickCount,a=n.originalDomain,s=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(i&&o==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=rhe(u,i,s);return t.domain([Th(f),Oh(f)]),{niceTicks:f}}if(i&&o==="number"){var d=t.domain(),p=ohe(d,i,s);return{niceTicks:p}}return null};function ME(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Se(o[t.dataKey])){var s=df(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=gn(o,Se(a)?t.dataKey:a);return Se(c)?null:t.scale(c)}var DE=function(t){var n=t.axis,r=t.ticks,o=t.offset,i=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+o:null;var c=gn(a,n.dataKey,n.domain[s]);return Se(c)?null:n.scale(c)-i/2+o},Khe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var o=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return o<=0&&i>=0?0:i<0?i:o}return r[0]},Yhe=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?tt(tt({},t.type.defaultProps),t.props):t.props,i=o.stackId;if(gt(i)){var a=n[i];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},qhe=function(t){return t.reduce(function(n,r){return[Th(r.concat([n[0]]).filter(q)),Oh(r.concat([n[1]]).filter(q))]},[1/0,-1/0])},l4=function(t,n,r){return Object.keys(t).reduce(function(o,i){var a=t[i],s=a.stackedData,c=s.reduce(function(u,f){var d=qhe(f.slice(n,r+1));return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);return[Math.min(c[0],o[0]),Math.max(c[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},$E=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,LE=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,xg=function(t,n,r){if(be(t))return t(n,r);if(!Array.isArray(t))return n;var o=[];if(q(t[0]))o[0]=r?t[0]:Math.min(t[0],n[0]);else if($E.test(t[0])){var i=+$E.exec(t[0])[1];o[0]=n[0]-i}else be(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(q(t[1]))o[1]=r?t[1]:Math.max(t[1],n[1]);else if(LE.test(t[1])){var a=+LE.exec(t[1])[1];o[1]=n[1]+a}else be(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},Uf=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!r||o>0)return o}if(t&&n&&n.length>=2){for(var i=mb(n,function(d){return d.coordinate}),a=1/0,s=1,c=i.length;s<c;s++){var u=i[s],f=i[s-1];a=Math.min((u.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},FE=function(t,n,r){return!t||!t.length||Ph(t,Tn(r,"type.defaultProps.domain"))?n:t},c4=function(t,n){var r=t.type.defaultProps?tt(tt({},t.type.defaultProps),t.props):t.props,o=r.dataKey,i=r.name,a=r.unit,s=r.formatter,c=r.tooltipType,u=r.chartType,f=r.hide;return tt(tt({},Ne(t,!1)),{},{dataKey:o,unit:a,formatter:s,name:i||o,color:Ub(t),value:gn(n,o),type:c,payload:n,chartType:u,hide:f})};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 BE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).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?BE(Object(n),!0).forEach(function(r){Xhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xhe(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=Qhe(e,"string");return wc(t)=="symbol"?t:t+""}function Qhe(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 Hf=Math.PI/180,Jhe=function(t){return t*180/Math.PI},Ct=function(t,n,r,o){return{x:t+Math.cos(-Hf*o)*r,y:n+Math.sin(-Hf*o)*r}},eme=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(o-a,2))},tme=function(t,n){var r=t.x,o=t.y,i=n.cx,a=n.cy,s=eme({x:r,y:o},{x:i,y:a});if(s<=0)return{radius:s};var c=(r-i)/s,u=Math.acos(c);return o>a&&(u=2*Math.PI-u),{radius:s,angle:Jhe(u),angleInRadian:u}},nme=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360),a=Math.min(o,i);return{startAngle:n-a*360,endAngle:r-a*360}},rme=function(t,n){var r=n.startAngle,o=n.endAngle,i=Math.floor(r/360),a=Math.floor(o/360),s=Math.min(i,a);return t+s*360},HE=function(t,n){var r=t.x,o=t.y,i=tme({x:r,y:o},n),a=i.radius,s=i.angle,c=n.innerRadius,u=n.outerRadius;if(a<c||a>u)return!1;if(a===0)return!0;var f=nme(n),d=f.startAngle,p=f.endAngle,m=s,b;if(d<=p){for(;m>p;)m-=360;for(;m<d;)m+=360;b=m>=d&&m<=p}else{for(;m>d;)m-=360;for(;m<p;)m+=360;b=m>=p&&m<=d}return b?UE(UE({},n),{},{radius:a,angle:rme(m,n)}):null};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)}var ome=["offset"];function ime(e){return cme(e)||lme(e)||sme(e)||ame()}function ame(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
527
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sme(e,t){if(e){if(typeof e=="string")return bg(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 bg(e,t)}}function lme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cme(e){if(Array.isArray(e))return bg(e)}function bg(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 ume(e,t){if(e==null)return{};var n=dme(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(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 zE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).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?zE(Object(n),!0).forEach(function(r){fme(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 fme(e,t,n){return t=pme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pme(e){var t=hme(e,"string");return Sc(t)=="symbol"?t:t+""}function hme(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 Ac(){return Ac=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},Ac.apply(this,arguments)}var mme=function(t){var n=t.value,r=t.formatter,o=Se(t.children)?n:t.children;return be(r)?r(o):o},vme=function(t,n){var r=Xn(n-t),o=Math.min(Math.abs(n-t),360);return r*o},yme=function(t,n,r){var o=t.position,i=t.viewBox,a=t.offset,s=t.className,c=i,u=c.cx,f=c.cy,d=c.innerRadius,p=c.outerRadius,m=c.startAngle,b=c.endAngle,y=c.clockWise,v=(d+p)/2,x=vme(m,b),g=x>=0?1:-1,w,E;o==="insideStart"?(w=m+g*a,E=y):o==="insideEnd"?(w=b-g*a,E=!y):o==="end"&&(w=b+g*a,E=y),E=x<=0?E:!E;var A=Ct(u,f,v,w),S=Ct(u,f,v,w+(E?1:-1)*359),N="M".concat(A.x,",").concat(A.y,`
528
+ A`).concat(v,",").concat(v,",0,1,").concat(E?0:1,`,
529
+ `).concat(S.x,",").concat(S.y),_=Se(t.id)?su("recharts-radial-line-"):t.id;return D.createElement("text",Ac({},r,{dominantBaseline:"central",className:_e("recharts-radial-bar-label",s)}),D.createElement("defs",null,D.createElement("path",{id:_,d:N})),D.createElement("textPath",{xlinkHref:"#".concat(_)},n))},gme=function(t){var n=t.viewBox,r=t.offset,o=t.position,i=n,a=i.cx,s=i.cy,c=i.innerRadius,u=i.outerRadius,f=i.startAngle,d=i.endAngle,p=(f+d)/2;if(o==="outside"){var m=Ct(a,s,u+r,p),b=m.x,y=m.y;return{x:b,y,textAnchor:b>=a?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(c+u)/2,x=Ct(a,s,v,p),g=x.x,w=x.y;return{x:g,y:w,textAnchor:"middle",verticalAnchor:"middle"}},xme=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,i=t.position,a=n,s=a.x,c=a.y,u=a.width,f=a.height,d=f>=0?1:-1,p=d*o,m=d>0?"end":"start",b=d>0?"start":"end",y=u>=0?1:-1,v=y*o,x=y>0?"end":"start",g=y>0?"start":"end";if(i==="top"){var w={x:s+u/2,y:c-d*o,textAnchor:"middle",verticalAnchor:m};return ht(ht({},w),r?{height:Math.max(c-r.y,0),width:u}:{})}if(i==="bottom"){var E={x:s+u/2,y:c+f+p,textAnchor:"middle",verticalAnchor:b};return ht(ht({},E),r?{height:Math.max(r.y+r.height-(c+f),0),width:u}:{})}if(i==="left"){var A={x:s-v,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return ht(ht({},A),r?{width:Math.max(A.x-r.x,0),height:f}:{})}if(i==="right"){var S={x:s+u+v,y:c+f/2,textAnchor:g,verticalAnchor:"middle"};return ht(ht({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:f}:{})}var N=r?{width:u,height:f}:{};return i==="insideLeft"?ht({x:s+v,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},N):i==="insideRight"?ht({x:s+u-v,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},N):i==="insideTop"?ht({x:s+u/2,y:c+p,textAnchor:"middle",verticalAnchor:b},N):i==="insideBottom"?ht({x:s+u/2,y:c+f-p,textAnchor:"middle",verticalAnchor:m},N):i==="insideTopLeft"?ht({x:s+v,y:c+p,textAnchor:g,verticalAnchor:b},N):i==="insideTopRight"?ht({x:s+u-v,y:c+p,textAnchor:x,verticalAnchor:b},N):i==="insideBottomLeft"?ht({x:s+v,y:c+f-p,textAnchor:g,verticalAnchor:m},N):i==="insideBottomRight"?ht({x:s+u-v,y:c+f-p,textAnchor:x,verticalAnchor:m},N):_s(i)&&(q(i.x)||ci(i.x))&&(q(i.y)||ci(i.y))?ht({x:s+Oi(i.x,u),y:c+Oi(i.y,f),textAnchor:"end",verticalAnchor:"end"},N):ht({x:s+u/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},N)},bme=function(t){return"cx"in t&&q(t.cx)};function Lt(e){var t=e.offset,n=t===void 0?5:t,r=ume(e,ome),o=ht({offset:n},r),i=o.viewBox,a=o.position,s=o.value,c=o.children,u=o.content,f=o.className,d=f===void 0?"":f,p=o.textBreakAll;if(!i||Se(s)&&Se(c)&&!h.isValidElement(u)&&!be(u))return null;if(h.isValidElement(u))return h.cloneElement(u,o);var m;if(be(u)){if(m=h.createElement(u,o),h.isValidElement(m))return m}else m=mme(o);var b=bme(i),y=Ne(o,!0);if(b&&(a==="insideStart"||a==="insideEnd"||a==="end"))return yme(o,m,y);var v=b?gme(o):xme(o);return D.createElement(jf,Ac({className:_e("recharts-label",d)},y,v,{breakAll:p}),m)}Lt.displayName="Label";var u4=function(t){var n=t.cx,r=t.cy,o=t.angle,i=t.startAngle,a=t.endAngle,s=t.r,c=t.radius,u=t.innerRadius,f=t.outerRadius,d=t.x,p=t.y,m=t.top,b=t.left,y=t.width,v=t.height,x=t.clockWise,g=t.labelViewBox;if(g)return g;if(q(y)&&q(v)){if(q(d)&&q(p))return{x:d,y:p,width:y,height:v};if(q(m)&&q(b))return{x:m,y:b,width:y,height:v}}return q(d)&&q(p)?{x:d,y:p,width:0,height:0}:q(n)&&q(r)?{cx:n,cy:r,startAngle:i||o||0,endAngle:a||o||0,innerRadius:u||0,outerRadius:f||c||s||0,clockWise:x}:t.viewBox?t.viewBox:{}},wme=function(t,n){return t?t===!0?D.createElement(Lt,{key:"label-implicit",viewBox:n}):gt(t)?D.createElement(Lt,{key:"label-implicit",viewBox:n,value:t}):h.isValidElement(t)?t.type===Lt?h.cloneElement(t,{key:"label-implicit",viewBox:n}):D.createElement(Lt,{key:"label-implicit",content:t,viewBox:n}):be(t)?D.createElement(Lt,{key:"label-implicit",content:t,viewBox:n}):_s(t)?D.createElement(Lt,Ac({viewBox:n},t,{key:"label-implicit"})):null:null},Sme=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 o=t.children,i=u4(t),a=Pn(o,Lt).map(function(c,u){return h.cloneElement(c,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return a;var s=wme(t.label,n||i);return[s].concat(ime(a))};Lt.parseViewBox=u4;Lt.renderCallByParent=Sme;function Ame(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Eme=Ame;const Nme=Re(Eme);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)}var _me=["valueAccessor"],jme=["data","dataKey","clockWise","id","textBreakAll"];function Cme(e){return Ime(e)||Pme(e)||Tme(e)||Ome()}function Ome(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
530
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tme(e,t){if(e){if(typeof e=="string")return wg(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 wg(e,t)}}function Pme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ime(e){if(Array.isArray(e))return wg(e)}function wg(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 zf(){return zf=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},zf.apply(this,arguments)}function WE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function GE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WE(Object(n),!0).forEach(function(r){Rme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rme(e,t,n){return t=kme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kme(e){var t=Mme(e,"string");return Ec(t)=="symbol"?t:t+""}function Mme(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(t==="string"?String:Number)(e)}function VE(e,t){if(e==null)return{};var n=Dme(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(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}var $me=function(t){return Array.isArray(t.value)?Nme(t.value):t.value};function Io(e){var t=e.valueAccessor,n=t===void 0?$me:t,r=VE(e,_me),o=r.data,i=r.dataKey,a=r.clockWise,s=r.id,c=r.textBreakAll,u=VE(r,jme);return!o||!o.length?null:D.createElement(it,{className:"recharts-label-list"},o.map(function(f,d){var p=Se(i)?n(f,d):gn(f&&f.payload,i),m=Se(s)?{}:{id:"".concat(s,"-").concat(d)};return D.createElement(Lt,zf({},Ne(f,!0),u,m,{parentViewBox:f.parentViewBox,value:p,textBreakAll:c,viewBox:Lt.parseViewBox(Se(a)?f:GE(GE({},f),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}Io.displayName="LabelList";function Lme(e,t){return e?e===!0?D.createElement(Io,{key:"labelList-implicit",data:t}):D.isValidElement(e)||be(e)?D.createElement(Io,{key:"labelList-implicit",data:t,content:e}):_s(e)?D.createElement(Io,zf({data:t},e,{key:"labelList-implicit"})):null:null}function Fme(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,o=Pn(r,Io).map(function(a,s){return h.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return o;var i=Lme(e.label,t);return[i].concat(Cme(o))}Io.renderCallByParent=Fme;function Nc(e){"@babel/helpers - typeof";return Nc=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},Nc(e)}function Sg(){return Sg=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},Sg.apply(this,arguments)}function KE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).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?KE(Object(n),!0).forEach(function(r){Bme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bme(e,t,n){return t=Ume(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ume(e){var t=Hme(e,"string");return Nc(t)=="symbol"?t:t+""}function Hme(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zme=function(t,n){var r=Xn(n-t),o=Math.min(Math.abs(n-t),359.999);return r*o},Ju=function(t){var n=t.cx,r=t.cy,o=t.radius,i=t.angle,a=t.sign,s=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,f=c*(s?1:-1)+o,d=Math.asin(c/f)/Hf,p=u?i:i+a*d,m=Ct(n,r,f,p),b=Ct(n,r,o,p),y=u?i-a*d:i,v=Ct(n,r,f*Math.cos(d*Hf),y);return{center:m,circleTangency:b,lineTangency:v,theta:d}},d4=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.startAngle,s=t.endAngle,c=zme(a,s),u=a+c,f=Ct(n,r,i,a),d=Ct(n,r,i,u),p="M ".concat(f.x,",").concat(f.y,`
531
+ A `).concat(i,",").concat(i,`,0,
532
+ `).concat(+(Math.abs(c)>180),",").concat(+(a>u),`,
533
+ `).concat(d.x,",").concat(d.y,`
534
+ `);if(o>0){var m=Ct(n,r,o,a),b=Ct(n,r,o,u);p+="L ".concat(b.x,",").concat(b.y,`
535
+ A `).concat(o,",").concat(o,`,0,
536
+ `).concat(+(Math.abs(c)>180),",").concat(+(a<=u),`,
537
+ `).concat(m.x,",").concat(m.y," Z")}else p+="L ".concat(n,",").concat(r," Z");return p},Wme=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=Xn(f-u),p=Ju({cx:n,cy:r,radius:i,angle:u,sign:d,cornerRadius:a,cornerIsExternal:c}),m=p.circleTangency,b=p.lineTangency,y=p.theta,v=Ju({cx:n,cy:r,radius:i,angle:f,sign:-d,cornerRadius:a,cornerIsExternal:c}),x=v.circleTangency,g=v.lineTangency,w=v.theta,E=c?Math.abs(u-f):Math.abs(u-f)-y-w;if(E<0)return s?"M ".concat(b.x,",").concat(b.y,`
538
+ a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
539
+ a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
540
+ `):d4({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:f});var A="M ".concat(b.x,",").concat(b.y,`
541
+ A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(m.x,",").concat(m.y,`
542
+ A`).concat(i,",").concat(i,",0,").concat(+(E>180),",").concat(+(d<0),",").concat(x.x,",").concat(x.y,`
543
+ A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(g.x,",").concat(g.y,`
544
+ `);if(o>0){var S=Ju({cx:n,cy:r,radius:o,angle:u,sign:d,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),N=S.circleTangency,_=S.lineTangency,O=S.theta,T=Ju({cx:n,cy:r,radius:o,angle:f,sign:-d,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),j=T.circleTangency,I=T.lineTangency,$=T.theta,C=c?Math.abs(u-f):Math.abs(u-f)-O-$;if(C<0&&a===0)return"".concat(A,"L").concat(n,",").concat(r,"Z");A+="L".concat(I.x,",").concat(I.y,`
545
+ A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(j.x,",").concat(j.y,`
546
+ A`).concat(o,",").concat(o,",0,").concat(+(C>180),",").concat(+(d>0),",").concat(N.x,",").concat(N.y,`
547
+ A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(_.x,",").concat(_.y,"Z")}else A+="L".concat(n,",").concat(r,"Z");return A},Gme={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},f4=function(t){var n=YE(YE({},Gme),t),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,c=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,p=n.className;if(a<i||f===d)return null;var m=_e("recharts-sector",p),b=a-i,y=Oi(s,b,0,!0),v;return y>0&&Math.abs(f-d)<360?v=Wme({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(y,b/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:f,endAngle:d}):v=d4({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:f,endAngle:d}),D.createElement("path",Sg({},Ne(n,!0),{className:m,d:v,role:"img"}))};function _c(e){"@babel/helpers - typeof";return _c=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},_c(e)}function Ag(){return Ag=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},Ag.apply(this,arguments)}function qE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function XE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qE(Object(n),!0).forEach(function(r){Vme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vme(e,t,n){return t=Kme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kme(e){var t=Yme(e,"string");return _c(t)=="symbol"?t:t+""}function Yme(e,t){if(_c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZE={curveBasisClosed:Vee,curveBasisOpen:Kee,curveBasis:Gee,curveBumpX:Pee,curveBumpY:Iee,curveLinearClosed:Yee,curveLinear:gh,curveMonotoneX:qee,curveMonotoneY:Xee,curveNatural:Zee,curveStep:Qee,curveStepAfter:ete,curveStepBefore:Jee},ed=function(t){return t.x===+t.x&&t.y===+t.y},tl=function(t){return t.x},nl=function(t){return t.y},qme=function(t,n){if(be(t))return t;var r="curve".concat(vh(t));return(r==="curveMonotone"||r==="curveBump")&&n?ZE["".concat(r).concat(n==="vertical"?"Y":"X")]:ZE[r]||gh},Xme=function(t){var n=t.type,r=n===void 0?"linear":n,o=t.points,i=o===void 0?[]:o,a=t.baseLine,s=t.layout,c=t.connectNulls,u=c===void 0?!1:c,f=qme(r,s),d=u?i.filter(function(y){return ed(y)}):i,p;if(Array.isArray(a)){var m=u?a.filter(function(y){return ed(y)}):a,b=d.map(function(y,v){return XE(XE({},y),{},{base:m[v]})});return s==="vertical"?p=Wu().y(nl).x1(tl).x0(function(y){return y.base.x}):p=Wu().x(tl).y1(nl).y0(function(y){return y.base.y}),p.defined(ed).curve(f),p(b)}return s==="vertical"&&q(a)?p=Wu().y(nl).x1(tl).x0(a):q(a)?p=Wu().x(tl).y1(nl).y0(a):p=fL().x(tl).y(nl),p.defined(ed).curve(f),p(d)},Eg=function(t){var n=t.className,r=t.points,o=t.path,i=t.pathRef;if((!r||!r.length)&&!o)return null;var a=r&&r.length?Xme(t):o;return h.createElement("path",Ag({},Ne(t,!1),ff(t),{className:_e("recharts-curve",n),d:a,ref:i}))},p4={exports:{}},Zme="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Qme=Zme,Jme=Qme;function h4(){}function m4(){}m4.resetWarningCache=h4;var eve=function(){function e(r,o,i,a,s,c){if(c!==Jme){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:m4,resetWarningCache:h4};return n.PropTypes=n,n};p4.exports=eve();var tve=p4.exports;const Te=Re(tve),{getOwnPropertyNames:nve,getOwnPropertySymbols:rve}=Object,{hasOwnProperty:ove}=Object.prototype;function ov(e,t){return function(r,o,i){return e(r,o,i)&&t(r,o,i)}}function td(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);const{cache:i}=o,a=i.get(n),s=i.get(r);if(a&&s)return a===r&&s===n;i.set(n,r),i.set(r,n);const c=e(n,r,o);return i.delete(n),i.delete(r),c}}function ive(e){return e!=null?e[Symbol.toStringTag]:void 0}function QE(e){return nve(e).concat(rve(e))}const ave=Object.hasOwn||((e,t)=>ove.call(e,t));function Yi(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const sve="__v",lve="__o",cve="_owner",{getOwnPropertyDescriptor:JE,keys:eN}=Object;function uve(e,t){return e.byteLength===t.byteLength&&Wf(new Uint8Array(e),new Uint8Array(t))}function dve(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 fve(e,t){return e.byteLength===t.byteLength&&Wf(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function pve(e,t){return Yi(e.getTime(),t.getTime())}function hve(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function mve(e,t){return e===t}function tN(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),i=e.entries();let a,s,c=0;for(;(a=i.next())&&!a.done;){const u=t.entries();let f=!1,d=0;for(;(s=u.next())&&!s.done;){if(o[d]){d++;continue}const p=a.value,m=s.value;if(n.equals(p[0],m[0],c,d,e,t,n)&&n.equals(p[1],m[1],p[0],m[0],e,t,n)){f=o[d]=!0;break}d++}if(!f)return!1;c++}return!0}const vve=Yi;function yve(e,t,n){const r=eN(e);let o=r.length;if(eN(t).length!==o)return!1;for(;o-- >0;)if(!v4(e,t,n,r[o]))return!1;return!0}function rl(e,t,n){const r=QE(e);let o=r.length;if(QE(t).length!==o)return!1;let i,a,s;for(;o-- >0;)if(i=r[o],!v4(e,t,n,i)||(a=JE(e,i),s=JE(t,i),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function gve(e,t){return Yi(e.valueOf(),t.valueOf())}function xve(e,t){return e.source===t.source&&e.flags===t.flags}function nN(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),i=e.values();let a,s;for(;(a=i.next())&&!a.done;){const c=t.values();let u=!1,f=0;for(;(s=c.next())&&!s.done;){if(!o[f]&&n.equals(a.value,s.value,a.value,s.value,e,t,n)){u=o[f]=!0;break}f++}if(!u)return!1}return!0}function Wf(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 bve(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 v4(e,t,n,r){return(r===cve||r===lve||r===sve)&&(e.$$typeof||t.$$typeof)?!0:ave(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const wve="[object ArrayBuffer]",Sve="[object Arguments]",Ave="[object Boolean]",Eve="[object DataView]",Nve="[object Date]",_ve="[object Error]",jve="[object Map]",Cve="[object Number]",Ove="[object Object]",Tve="[object RegExp]",Pve="[object Set]",Ive="[object String]",Rve={"[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},kve="[object URL]",Mve=Object.prototype.toString;function Dve({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:o,areFunctionsEqual:i,areMapsEqual:a,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:d,areTypedArraysEqual:p,areUrlsEqual:m,unknownTagComparators:b}){return function(v,x,g){if(v===x)return!0;if(v==null||x==null)return!1;const w=typeof v;if(w!==typeof x)return!1;if(w!=="object")return w==="number"?s(v,x,g):w==="function"?i(v,x,g):!1;const E=v.constructor;if(E!==x.constructor)return!1;if(E===Object)return c(v,x,g);if(Array.isArray(v))return t(v,x,g);if(E===Date)return r(v,x,g);if(E===RegExp)return f(v,x,g);if(E===Map)return a(v,x,g);if(E===Set)return d(v,x,g);const A=Mve.call(v);if(A===Nve)return r(v,x,g);if(A===Tve)return f(v,x,g);if(A===jve)return a(v,x,g);if(A===Pve)return d(v,x,g);if(A===Ove)return typeof v.then!="function"&&typeof x.then!="function"&&c(v,x,g);if(A===kve)return m(v,x,g);if(A===_ve)return o(v,x,g);if(A===Sve)return c(v,x,g);if(Rve[A])return p(v,x,g);if(A===wve)return e(v,x,g);if(A===Eve)return n(v,x,g);if(A===Ave||A===Cve||A===Ive)return u(v,x,g);if(b){let S=b[A];if(!S){const N=ive(v);N&&(S=b[N])}if(S)return S(v,x,g)}return!1}}function $ve({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:uve,areArraysEqual:n?rl:dve,areDataViewsEqual:fve,areDatesEqual:pve,areErrorsEqual:hve,areFunctionsEqual:mve,areMapsEqual:n?ov(tN,rl):tN,areNumbersEqual:vve,areObjectsEqual:n?rl:yve,arePrimitiveWrappersEqual:gve,areRegExpsEqual:xve,areSetsEqual:n?ov(nN,rl):nN,areTypedArraysEqual:n?ov(Wf,rl):Wf,areUrlsEqual:bve,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const o=td(r.areArraysEqual),i=td(r.areMapsEqual),a=td(r.areObjectsEqual),s=td(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:o,areMapsEqual:i,areObjectsEqual:a,areSetsEqual:s})}return r}function Lve(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}function Fve({circular:e,comparator:t,createState:n,equals:r,strict:o}){if(n)return function(s,c){const{cache:u=e?new WeakMap:void 0,meta:f}=n();return t(s,c,{cache:u,equals:r,meta:f,strict:o})};if(e)return function(s,c){return t(s,c,{cache:new WeakMap,equals:r,meta:void 0,strict:o})};const i={cache:void 0,equals:r,meta:void 0,strict:o};return function(s,c){return t(s,c,i)}}const Bve=Xo();Xo({strict:!0});Xo({circular:!0});Xo({circular:!0,strict:!0});Xo({createInternalComparator:()=>Yi});Xo({strict:!0,createInternalComparator:()=>Yi});Xo({circular:!0,createInternalComparator:()=>Yi});Xo({circular:!0,createInternalComparator:()=>Yi,strict:!0});function Xo(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:o=!1}=e,i=$ve(e),a=Dve(i),s=n?n(a):Lve(a);return Fve({circular:t,comparator:a,createState:r,equals:s,strict:o})}function Uve(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function rN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function o(i){n<0&&(n=i),i-n>t?(e(i),n=-1):Uve(o)};requestAnimationFrame(r)}function Ng(e){"@babel/helpers - typeof";return Ng=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},Ng(e)}function Hve(e){return Vve(e)||Gve(e)||Wve(e)||zve()}function zve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
548
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wve(e,t){if(e){if(typeof e=="string")return oN(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 oN(e,t)}}function oN(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 Gve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vve(e){if(Array.isArray(e))return e}function Kve(){var e={},t=function(){return null},n=!1,r=function o(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var a=i,s=Hve(a),c=s[0],u=s.slice(1);if(typeof c=="number"){rN(o.bind(null,u),c);return}o(c),rN(o.bind(null,u));return}Ng(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function jc(e){"@babel/helpers - typeof";return jc=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},jc(e)}function iN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function aN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iN(Object(n),!0).forEach(function(r){y4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y4(e,t,n){return t=Yve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yve(e){var t=qve(e,"string");return jc(t)==="symbol"?t:String(t)}function qve(e,t){if(jc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xve=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(i){return o.includes(i)})})},Zve=function(t){return t},Qve=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},jl=function(t,n){return Object.keys(n).reduce(function(r,o){return aN(aN({},r),{},y4({},o,t(o,n[o])))},{})},sN=function(t,n,r){return t.map(function(o){return"".concat(Qve(o)," ").concat(n,"ms ").concat(r)}).join(",")};function Jve(e,t){return nye(e)||tye(e,t)||g4(e,t)||eye()}function eye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
549
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function nye(e){if(Array.isArray(e))return e}function rye(e){return aye(e)||iye(e)||g4(e)||oye()}function oye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
550
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g4(e,t){if(e){if(typeof e=="string")return _g(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 _g(e,t)}}function iye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aye(e){if(Array.isArray(e))return _g(e)}function _g(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 Gf=1e-4,x4=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},b4=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},lN=function(t,n){return function(r){var o=x4(t,n);return b4(o,r)}},sye=function(t,n){return function(r){var o=x4(t,n),i=[].concat(rye(o.map(function(a,s){return a*s}).slice(1)),[0]);return b4(i,r)}},cN=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=n[2],s=n[3];if(n.length===1)switch(n[0]){case"linear":o=0,i=0,a=1,s=1;break;case"ease":o=.25,i=.1,a=.25,s=1;break;case"ease-in":o=.42,i=0,a=1,s=1;break;case"ease-out":o=.42,i=0,a=.58,s=1;break;case"ease-in-out":o=0,i=0,a=.58,s=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),f=Jve(u,4);o=f[0],i=f[1],a=f[2],s=f[3]}}}var d=lN(o,a),p=lN(i,s),m=sye(o,a),b=function(x){return x>1?1:x<0?0:x},y=function(x){for(var g=x>1?1:x,w=g,E=0;E<8;++E){var A=d(w)-g,S=m(w);if(Math.abs(A-g)<Gf||S<Gf)return p(w);w=b(w-A/S)}return p(w)};return y.isStepper=!1,y},lye=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,i=o===void 0?8:o,a=t.dt,s=a===void 0?17:a,c=function(f,d,p){var m=-(f-d)*r,b=p*i,y=p+(m-b)*s/1e3,v=p*s/1e3+f;return Math.abs(v-d)<Gf&&Math.abs(y)<Gf?[d,0]:[v,y]};return c.isStepper=!0,c.dt=s,c},cye=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0];if(typeof o=="string")switch(o){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return cN(o);case"spring":return lye();default:if(o.split("(")[0]==="cubic-bezier")return cN(o)}return typeof o=="function"?o:null};function Cc(e){"@babel/helpers - typeof";return Cc=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},Cc(e)}function uN(e){return fye(e)||dye(e)||w4(e)||uye()}function uye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
551
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fye(e){if(Array.isArray(e))return Cg(e)}function dN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dN(Object(n),!0).forEach(function(r){jg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jg(e,t,n){return t=pye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pye(e){var t=hye(e,"string");return Cc(t)==="symbol"?t:String(t)}function hye(e,t){if(Cc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mye(e,t){return gye(e)||yye(e,t)||w4(e,t)||vye()}function vye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
552
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w4(e,t){if(e){if(typeof e=="string")return Cg(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 Cg(e,t)}}function Cg(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 yye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function gye(e){if(Array.isArray(e))return e}var Vf=function(t,n,r){return t+(n-t)*r},Og=function(t){var n=t.from,r=t.to;return n!==r},xye=function e(t,n,r){var o=jl(function(i,a){if(Og(a)){var s=t(a.from,a.to,a.velocity),c=mye(s,2),u=c[0],f=c[1];return _t(_t({},a),{},{from:u,velocity:f})}return a},n);return r<1?jl(function(i,a){return Og(a)?_t(_t({},a),{},{velocity:Vf(a.velocity,o[i].velocity,r),from:Vf(a.from,o[i].from,r)}):a},n):e(t,o,r-1)};const bye=function(e,t,n,r,o){var i=Xve(e,t),a=i.reduce(function(v,x){return _t(_t({},v),{},jg({},x,[e[x],t[x]]))},{}),s=i.reduce(function(v,x){return _t(_t({},v),{},jg({},x,{from:e[x],velocity:0,to:t[x]}))},{}),c=-1,u,f,d=function(){return null},p=function(){return jl(function(x,g){return g.from},s)},m=function(){return!Object.values(s).filter(Og).length},b=function(x){u||(u=x);var g=x-u,w=g/n.dt;s=xye(n,s,w),o(_t(_t(_t({},e),t),p())),u=x,m()||(c=requestAnimationFrame(d))},y=function(x){f||(f=x);var g=(x-f)/r,w=jl(function(A,S){return Vf.apply(void 0,uN(S).concat([n(g)]))},a);if(o(_t(_t(_t({},e),t),w)),g<1)c=requestAnimationFrame(d);else{var E=jl(function(A,S){return Vf.apply(void 0,uN(S).concat([n(1)]))},a);o(_t(_t(_t({},e),t),E))}};return d=n.isStepper?b:y,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}};function es(e){"@babel/helpers - typeof";return es=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},es(e)}var wye=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Sye(e,t){if(e==null)return{};var n=Aye(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Aye(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function iv(e){return jye(e)||_ye(e)||Nye(e)||Eye()}function Eye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
553
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nye(e,t){if(e){if(typeof e=="string")return Tg(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 Tg(e,t)}}function _ye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jye(e){if(Array.isArray(e))return Tg(e)}function Tg(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 fN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fN(Object(n),!0).forEach(function(r){fl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fl(e,t,n){return t=S4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oye(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,S4(r.key),r)}}function Tye(e,t,n){return t&&Oye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function S4(e){var t=Pye(e,"string");return es(t)==="symbol"?t:String(t)}function Pye(e,t){if(es(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(es(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iye(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&&Pg(e,t)}function Pg(e,t){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Pg(e,t)}function Rye(e){var t=kye();return function(){var r=Kf(e),o;if(t){var i=Kf(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ig(this,o)}}function Ig(e,t){if(t&&(es(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rg(e)}function Rg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kye(){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 Kf(e){return Kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kf(e)}var Zr=function(e){Iye(n,e);var t=Rye(n);function n(r,o){var i;Cye(this,n),i=t.call(this,r,o);var a=i.props,s=a.isActive,c=a.attributeName,u=a.from,f=a.to,d=a.steps,p=a.children,m=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(Rg(i)),i.changeStyle=i.changeStyle.bind(Rg(i)),!s||m<=0)return i.state={style:{}},typeof p=="function"&&(i.state={style:f}),Ig(i);if(d&&d.length)i.state={style:d[0].style};else if(u){if(typeof p=="function")return i.state={style:u},Ig(i);i.state={style:c?fl({},c,u):u}}else i.state={style:{}};return i}return Tye(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.isActive,a=o.canBegin;this.mounted=!0,!(!i||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isActive,s=i.canBegin,c=i.attributeName,u=i.shouldReAnimate,f=i.to,d=i.from,p=this.state.style;if(s){if(!a){var m={style:c?fl({},c,f):f};this.state&&p&&(c&&p[c]!==f||!c&&p!==f)&&this.setState(m);return}if(!(Bve(o.to,f)&&o.canBegin&&o.isActive)){var b=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=b||u?d:o.to;if(this.state&&p){var v={style:c?fl({},c,y):y};(c&&p[c]!==y||!c&&p!==y)&&this.setState(v)}this.runAnimation(Bn(Bn({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var i=this,a=o.from,s=o.to,c=o.duration,u=o.easing,f=o.begin,d=o.onAnimationEnd,p=o.onAnimationStart,m=bye(a,s,cye(u),c,this.changeStyle),b=function(){i.stopJSAnimation=m()};this.manager.start([p,f,b,c,d])}},{key:"runStepAnimation",value:function(o){var i=this,a=o.steps,s=o.begin,c=o.onAnimationStart,u=a[0],f=u.style,d=u.duration,p=d===void 0?0:d,m=function(y,v,x){if(x===0)return y;var g=v.duration,w=v.easing,E=w===void 0?"ease":w,A=v.style,S=v.properties,N=v.onAnimationEnd,_=x>0?a[x-1]:v,O=S||Object.keys(A);if(typeof E=="function"||E==="spring")return[].concat(iv(y),[i.runJSAnimation.bind(i,{from:_.style,to:A,duration:g,easing:E}),g]);var T=sN(O,g,E),j=Bn(Bn(Bn({},_.style),A),{},{transition:T});return[].concat(iv(y),[j,g,N]).filter(Zve)};return this.manager.start([c].concat(iv(a.reduce(m,[f,Math.max(p,s)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=Kve());var i=o.begin,a=o.duration,s=o.attributeName,c=o.to,u=o.easing,f=o.onAnimationStart,d=o.onAnimationEnd,p=o.steps,m=o.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof u=="function"||typeof m=="function"||u==="spring"){this.runJSAnimation(o);return}if(p.length>1){this.runStepAnimation(o);return}var y=s?fl({},s,c):c,v=sN(Object.keys(y),a,u);b.start([f,i,Bn(Bn({},y),{},{transition:v}),a,d])}},{key:"render",value:function(){var o=this.props,i=o.children;o.begin;var a=o.duration;o.attributeName,o.easing;var s=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var c=Sye(o,wye),u=h.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!s||u===0||a<=0)return i;var d=function(m){var b=m.props,y=b.style,v=y===void 0?{}:y,x=b.className,g=h.cloneElement(m,Bn(Bn({},c),{},{style:Bn(Bn({},v),f),className:x}));return g};return u===1?d(h.Children.only(i)):D.createElement("div",null,h.Children.map(i,function(p){return d(p)}))}}]),n}(h.PureComponent);Zr.displayName="Animate";Zr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Zr.propTypes={from:Te.oneOfType([Te.object,Te.string]),to:Te.oneOfType([Te.object,Te.string]),attributeName:Te.string,duration:Te.number,begin:Te.number,easing:Te.oneOfType([Te.string,Te.func]),steps:Te.arrayOf(Te.shape({duration:Te.number.isRequired,style:Te.object.isRequired,easing:Te.oneOfType([Te.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Te.func]),properties:Te.arrayOf("string"),onAnimationEnd:Te.func})),children:Te.oneOfType([Te.node,Te.func]),isActive:Te.bool,canBegin:Te.bool,onAnimationEnd:Te.func,shouldReAnimate:Te.bool,onAnimationStart:Te.func,onAnimationReStart:Te.func};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 Yf(){return Yf=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},Yf.apply(this,arguments)}function Mye(e,t){return Fye(e)||Lye(e,t)||$ye(e,t)||Dye()}function Dye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
554
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ye(e,t){if(e){if(typeof e=="string")return pN(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 pN(e,t)}}function pN(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 Lye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Fye(e){if(Array.isArray(e))return e}function hN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hN(Object(n),!0).forEach(function(r){Bye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bye(e,t,n){return t=Uye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uye(e){var t=Hye(e,"string");return Oc(t)=="symbol"?t:t+""}function Hye(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)}var vN=function(t,n,r,o,i){var a=Math.min(Math.abs(r)/2,Math.abs(o)/2),s=o>=0?1:-1,c=r>=0?1:-1,u=o>=0&&r>=0||o<0&&r<0?1:0,f;if(a>0&&i instanceof Array){for(var d=[0,0,0,0],p=0,m=4;p<m;p++)d[p]=i[p]>a?a:i[p];f="M".concat(t,",").concat(n+s*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(u,",").concat(t+c*d[0],",").concat(n)),f+="L ".concat(t+r-c*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(u,`,
555
+ `).concat(t+r,",").concat(n+s*d[1])),f+="L ".concat(t+r,",").concat(n+o-s*d[2]),d[2]>0&&(f+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(u,`,
556
+ `).concat(t+r-c*d[2],",").concat(n+o)),f+="L ".concat(t+c*d[3],",").concat(n+o),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(u,`,
557
+ `).concat(t,",").concat(n+o-s*d[3])),f+="Z"}else if(a>0&&i===+i&&i>0){var b=Math.min(a,i);f="M ".concat(t,",").concat(n+s*b,`
558
+ A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+c*b,",").concat(n,`
559
+ L `).concat(t+r-c*b,",").concat(n,`
560
+ A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+r,",").concat(n+s*b,`
561
+ L `).concat(t+r,",").concat(n+o-s*b,`
562
+ A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+r-c*b,",").concat(n+o,`
563
+ L `).concat(t+c*b,",").concat(n+o,`
564
+ A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t,",").concat(n+o-s*b," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return f},zye=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,i=n.x,a=n.y,s=n.width,c=n.height;if(Math.abs(s)>0&&Math.abs(c)>0){var u=Math.min(i,i+s),f=Math.max(i,i+s),d=Math.min(a,a+c),p=Math.max(a,a+c);return r>=u&&r<=f&&o>=d&&o<=p}return!1},Wye={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Hb=function(t){var n=mN(mN({},Wye),t),r=h.useRef(),o=h.useState(-1),i=Mye(o,2),a=i[0],s=i[1];h.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&s(E)}catch{}},[]);var c=n.x,u=n.y,f=n.width,d=n.height,p=n.radius,m=n.className,b=n.animationEasing,y=n.animationDuration,v=n.animationBegin,x=n.isAnimationActive,g=n.isUpdateAnimationActive;if(c!==+c||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var w=_e("recharts-rectangle",m);return g?D.createElement(Zr,{canBegin:a>0,from:{width:f,height:d,x:c,y:u},to:{width:f,height:d,x:c,y:u},duration:y,animationEasing:b,isActive:g},function(E){var A=E.width,S=E.height,N=E.x,_=E.y;return D.createElement(Zr,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:x,easing:b},D.createElement("path",Yf({},Ne(n,!0),{className:w,d:vN(N,_,A,S,p),ref:r})))}):D.createElement("path",Yf({},Ne(n,!0),{className:w,d:vN(c,u,f,d,p)}))};function kg(){return kg=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},kg.apply(this,arguments)}var zb=function(t){var n=t.cx,r=t.cy,o=t.r,i=t.className,a=_e("recharts-dot",i);return n===+n&&r===+r&&o===+o?h.createElement("circle",kg({},Ne(t,!1),ff(t),{className:a,cx:n,cy:r,r:o})):null};function Tc(e){"@babel/helpers - typeof";return Tc=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},Tc(e)}var Gye=["x","y","top","left","width","height","className"];function Mg(){return Mg=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},Mg.apply(this,arguments)}function yN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Vye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yN(Object(n),!0).forEach(function(r){Kye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kye(e,t,n){return t=Yye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yye(e){var t=qye(e,"string");return Tc(t)=="symbol"?t:t+""}function qye(e,t){if(Tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xye(e,t){if(e==null)return{};var n=Zye(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zye(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 Qye=function(t,n,r,o,i,a){return"M".concat(t,",").concat(i,"v").concat(o,"M").concat(a,",").concat(n,"h").concat(r)},Jye=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.top,s=a===void 0?0:a,c=t.left,u=c===void 0?0:c,f=t.width,d=f===void 0?0:f,p=t.height,m=p===void 0?0:p,b=t.className,y=Xye(t,Gye),v=Vye({x:r,y:i,top:s,left:u,width:d,height:m},y);return!q(r)||!q(i)||!q(d)||!q(m)||!q(s)||!q(u)?null:D.createElement("path",Mg({},Ne(v,!0),{className:_e("recharts-cross",b),d:Qye(r,i,d,m,s,u)}))},ege=DL,tge=ege(Object.getPrototypeOf,Object),nge=tge,rge=no,oge=nge,ige=ro,age="[object Object]",sge=Function.prototype,lge=Object.prototype,A4=sge.toString,cge=lge.hasOwnProperty,uge=A4.call(Object);function dge(e){if(!ige(e)||rge(e)!=age)return!1;var t=oge(e);if(t===null)return!0;var n=cge.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&A4.call(n)==uge}var fge=dge;const pge=Re(fge);var hge=no,mge=ro,vge="[object Boolean]";function yge(e){return e===!0||e===!1||mge(e)&&hge(e)==vge}var gge=yge;const xge=Re(gge);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 qf(){return qf=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},qf.apply(this,arguments)}function bge(e,t){return Ege(e)||Age(e,t)||Sge(e,t)||wge()}function wge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
565
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sge(e,t){if(e){if(typeof e=="string")return gN(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 gN(e,t)}}function gN(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 Age(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Ege(e){if(Array.isArray(e))return e}function xN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function bN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xN(Object(n),!0).forEach(function(r){Nge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nge(e,t,n){return t=_ge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ge(e){var t=jge(e,"string");return Pc(t)=="symbol"?t:t+""}function jge(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 wN=function(t,n,r,o,i){var a=r-o,s;return s="M ".concat(t,",").concat(n),s+="L ".concat(t+r,",").concat(n),s+="L ".concat(t+r-a/2,",").concat(n+i),s+="L ".concat(t+r-a/2-o,",").concat(n+i),s+="L ".concat(t,",").concat(n," Z"),s},Cge={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Oge=function(t){var n=bN(bN({},Cge),t),r=h.useRef(),o=h.useState(-1),i=bge(o,2),a=i[0],s=i[1];h.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&s(w)}catch{}},[]);var c=n.x,u=n.y,f=n.upperWidth,d=n.lowerWidth,p=n.height,m=n.className,b=n.animationEasing,y=n.animationDuration,v=n.animationBegin,x=n.isUpdateAnimationActive;if(c!==+c||u!==+u||f!==+f||d!==+d||p!==+p||f===0&&d===0||p===0)return null;var g=_e("recharts-trapezoid",m);return x?D.createElement(Zr,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:u},to:{upperWidth:f,lowerWidth:d,height:p,x:c,y:u},duration:y,animationEasing:b,isActive:x},function(w){var E=w.upperWidth,A=w.lowerWidth,S=w.height,N=w.x,_=w.y;return D.createElement(Zr,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:b},D.createElement("path",qf({},Ne(n,!0),{className:g,d:wN(N,_,E,A,S),ref:r})))}):D.createElement("g",null,D.createElement("path",qf({},Ne(n,!0),{className:g,d:wN(c,u,f,d,p)})))},Tge=["option","shapeType","propTransformer","activeClassName","isActive"];function Ic(e){"@babel/helpers - typeof";return Ic=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},Ic(e)}function Pge(e,t){if(e==null)return{};var n=Ige(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ige(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 SN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).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?SN(Object(n),!0).forEach(function(r){Rge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rge(e,t,n){return t=kge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kge(e){var t=Mge(e,"string");return Ic(t)=="symbol"?t:t+""}function Mge(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dge(e,t){return Xf(Xf({},t),e)}function $ge(e,t){return e==="symbols"}function AN(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return D.createElement(Hb,n);case"trapezoid":return D.createElement(Oge,n);case"sector":return D.createElement(f4,n);case"symbols":if($ge(t))return D.createElement(sb,n);break;default:return null}}function Lge(e){return h.isValidElement(e)?e.props:e}function Fge(e){var t=e.option,n=e.shapeType,r=e.propTransformer,o=r===void 0?Dge:r,i=e.activeClassName,a=i===void 0?"recharts-active-shape":i,s=e.isActive,c=Pge(e,Tge),u;if(h.isValidElement(t))u=h.cloneElement(t,Xf(Xf({},c),Lge(t)));else if(be(t))u=t(c);else if(pge(t)&&!xge(t)){var f=o(t,c);u=D.createElement(AN,{shapeType:n,elementProps:f})}else{var d=c;u=D.createElement(AN,{shapeType:n,elementProps:d})}return s?D.createElement(it,{className:a},u):u}function kh(e,t){return t!=null&&"trapezoids"in e.props}function Mh(e,t){return t!=null&&"sectors"in e.props}function Rc(e,t){return t!=null&&"points"in e.props}function Bge(e,t){var n,r,o=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,i=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return o&&i}function Uge(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Hge(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function zge(e,t){var n;return kh(e,t)?n=Bge:Mh(e,t)?n=Uge:Rc(e,t)&&(n=Hge),n}function Wge(e,t){var n;return kh(e,t)?n="trapezoids":Mh(e,t)?n="sectors":Rc(e,t)&&(n="points"),n}function Gge(e,t){if(kh(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(Mh(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 Rc(e,t)?t.payload:{}}function Vge(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=Wge(n,t),i=Gge(n,t),a=r.filter(function(c,u){var f=Ph(i,c),d=n.props[o].filter(function(b){var y=zge(n,t);return y(b,t)}),p=n.props[o].indexOf(d[d.length-1]),m=u===p;return f&&m}),s=r.indexOf(a[a.length-1]);return s}var Kge=Math.ceil,Yge=Math.max;function qge(e,t,n,r){for(var o=-1,i=Yge(Kge((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}var Xge=qge,Zge=tF,EN=1/0,Qge=17976931348623157e292;function Jge(e){if(!e)return e===0?e:0;if(e=Zge(e),e===EN||e===-EN){var t=e<0?-1:1;return t*Qge}return e===e?e:0}var E4=Jge,exe=Xge,txe=Sh,av=E4;function nxe(e){return function(t,n,r){return r&&typeof r!="number"&&txe(t,n,r)&&(n=r=void 0),t=av(t),n===void 0?(n=t,t=0):n=av(n),r=r===void 0?t<n?1:-1:av(r),exe(t,n,r,e)}}var rxe=nxe,oxe=rxe,ixe=oxe(),axe=ixe;const Zf=Re(axe);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 NN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _N(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NN(Object(n),!0).forEach(function(r){N4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N4(e,t,n){return t=sxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sxe(e){var t=lxe(e,"string");return kc(t)=="symbol"?t:t+""}function lxe(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 cxe=["Webkit","Moz","O","ms"],uxe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),o=cxe.reduce(function(i,a){return _N(_N({},i),{},N4({},a+r,n))},{});return o[t]=n,o};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 Qf(){return Qf=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},Qf.apply(this,arguments)}function jN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jN(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CN(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,j4(r.key),r)}}function fxe(e,t,n){return t&&CN(e.prototype,t),n&&CN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pxe(e,t,n){return t=Jf(t),hxe(e,_4()?Reflect.construct(t,n||[],Jf(e).constructor):t.apply(e,n))}function hxe(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 mxe(e)}function mxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_4=function(){return!!e})()}function Jf(e){return Jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jf(e)}function vxe(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&&Dg(e,t)}function Dg(e,t){return Dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Dg(e,t)}function sn(e,t,n){return t=j4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j4(e){var t=yxe(e,"string");return ts(t)=="symbol"?t:t+""}function yxe(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 gxe=function(t){var n=t.data,r=t.startIndex,o=t.endIndex,i=t.x,a=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,u=Nl().domain(Zf(0,c)).range([i,i+a-s]),f=u.domain().map(function(d){return u(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(o),scale:u,scaleValues:f}},ON=function(t){return t.changedTouches&&!!t.changedTouches.length},ns=function(e){function t(n){var r;return dxe(this,t),r=pxe(this,t,[n]),sn(r,"handleDrag",function(o){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(o):r.state.isSlideMoving&&r.handleSlideDrag(o)}),sn(r,"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&r.handleDrag(o.changedTouches[0])}),sn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,i=o.endIndex,a=o.onDragEnd,s=o.startIndex;a==null||a({endIndex:i,startIndex:s})}),r.detachDragEndListener()}),sn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),sn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),sn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),sn(r,"handleSlideDragStart",function(o){var i=ON(o)?o.changedTouches[0]:o;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return vxe(t,e),fxe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var o=r.startX,i=r.endX,a=this.state.scaleValues,s=this.props,c=s.gap,u=s.data,f=u.length-1,d=Math.min(o,i),p=Math.max(o,i),m=t.getIndexInRange(a,d),b=t.getIndexInRange(a,p);return{startIndex:m-m%c,endIndex:b===f?f:b-b%c}}},{key:"getTextOfTick",value:function(r){var o=this.props,i=o.data,a=o.tickFormatter,s=o.dataKey,c=gn(i[r],s,r);return be(a)?a(c,r):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var o=this.state,i=o.slideMoveStartX,a=o.startX,s=o.endX,c=this.props,u=c.x,f=c.width,d=c.travellerWidth,p=c.startIndex,m=c.endIndex,b=c.onChange,y=r.pageX-i;y>0?y=Math.min(y,u+f-d-s,u+f-d-a):y<0&&(y=Math.max(y,u-a,u-s));var v=this.getIndex({startX:a+y,endX:s+y});(v.startIndex!==p||v.endIndex!==m)&&b&&b(v),this.setState({startX:a+y,endX:s+y,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var i=ON(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var o=this.state,i=o.brushMoveStartX,a=o.movingTravellerId,s=o.endX,c=o.startX,u=this.state[a],f=this.props,d=f.x,p=f.width,m=f.travellerWidth,b=f.onChange,y=f.gap,v=f.data,x={startX:this.state.startX,endX:this.state.endX},g=r.pageX-i;g>0?g=Math.min(g,d+p-m-u):g<0&&(g=Math.max(g,d-u)),x[a]=u+g;var w=this.getIndex(x),E=w.startIndex,A=w.endIndex,S=function(){var _=v.length-1;return a==="startX"&&(s>c?E%y===0:A%y===0)||s<c&&A===_||a==="endX"&&(s>c?A%y===0:E%y===0)||s>c&&A===_};this.setState(sn(sn({},a,u+g),"brushMoveStartX",r.pageX),function(){b&&S()&&b(w)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var i=this,a=this.state,s=a.scaleValues,c=a.startX,u=a.endX,f=this.state[o],d=s.indexOf(f);if(d!==-1){var p=d+r;if(!(p===-1||p>=s.length)){var m=s[p];o==="startX"&&m>=u||o==="endX"&&m<=c||this.setState(sn({},o,m),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,c=r.fill,u=r.stroke;return D.createElement("rect",{stroke:u,fill:c,x:o,y:i,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,c=r.data,u=r.children,f=r.padding,d=h.Children.only(u);return d?D.cloneElement(d,{x:o,y:i,width:a,height:s,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,o){var i,a,s=this,c=this.props,u=c.y,f=c.travellerWidth,d=c.height,p=c.traveller,m=c.ariaLabel,b=c.data,y=c.startIndex,v=c.endIndex,x=Math.max(r,this.props.x),g=sv(sv({},Ne(this.props,!1)),{},{x,y:u,width:f,height:d}),w=m||"Min value: ".concat((i=b[y])===null||i===void 0?void 0:i.name,", Max value: ").concat((a=b[v])===null||a===void 0?void 0:a.name);return D.createElement(it,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),s.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,o))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,g))}},{key:"renderSlide",value:function(r,o){var i=this.props,a=i.y,s=i.height,c=i.stroke,u=i.travellerWidth,f=Math.min(r,o)+u,d=Math.max(Math.abs(o-r)-u,0);return D.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:a,width:d,height:s})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,i=r.endIndex,a=r.y,s=r.height,c=r.travellerWidth,u=r.stroke,f=this.state,d=f.startX,p=f.endX,m=5,b={pointerEvents:"none",fill:u};return D.createElement(it,{className:"recharts-brush-texts"},D.createElement(jf,Qf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,p)-m,y:a+s/2},b),this.getTextOfTick(o)),D.createElement(jf,Qf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,p)+c+m,y:a+s/2},b),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,o=r.data,i=r.className,a=r.children,s=r.x,c=r.y,u=r.width,f=r.height,d=r.alwaysShowText,p=this.state,m=p.startX,b=p.endX,y=p.isTextActive,v=p.isSlideMoving,x=p.isTravellerMoving,g=p.isTravellerFocused;if(!o||!o.length||!q(s)||!q(c)||!q(u)||!q(f)||u<=0||f<=0)return null;var w=_e("recharts-brush",i),E=D.Children.count(a)===1,A=uxe("userSelect","none");return D.createElement(it,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(m,b),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(b,"endX"),(y||v||x||g||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,i=r.y,a=r.width,s=r.height,c=r.stroke,u=Math.floor(i+s/2)-1;return D.createElement(D.Fragment,null,D.createElement("rect",{x:o,y:i,width:a,height:s,fill:c,stroke:"none"}),D.createElement("line",{x1:o+1,y1:u,x2:o+a-1,y2:u,fill:"none",stroke:"#fff"}),D.createElement("line",{x1:o+1,y1:u+2,x2:o+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var i;return D.isValidElement(r)?i=D.cloneElement(r,o):be(r)?i=r(o):i=t.renderDefaultTraveller(o),i}},{key:"getDerivedStateFromProps",value:function(r,o){var i=r.data,a=r.width,s=r.x,c=r.travellerWidth,u=r.updateId,f=r.startIndex,d=r.endIndex;if(i!==o.prevData||u!==o.prevUpdateId)return sv({prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a},i&&i.length?gxe({data:i,width:a,x:s,travellerWidth:c,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(o.scale&&(a!==o.prevWidth||s!==o.prevX||c!==o.prevTravellerWidth)){o.scale.range([s,s+a-c]);var p=o.scale.domain().map(function(m){return o.scale(m)});return{prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a,startX:o.scale(r.startIndex),endX:o.scale(r.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(r,o){for(var i=r.length,a=0,s=i-1;s-a>1;){var c=Math.floor((a+s)/2);r[c]>o?s=c:a=c}return o>=r[s]?s:a}}])}(h.PureComponent);sn(ns,"displayName","Brush");sn(ns,"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 xxe=hb;function bxe(e,t){var n;return xxe(e,function(r,o,i){return n=t(r,o,i),!n}),!!n}var wxe=bxe,Sxe=CL,Axe=Ko,Exe=wxe,Nxe=on,_xe=Sh;function jxe(e,t,n){var r=Nxe(e)?Sxe:Exe;return n&&_xe(e,t,n)&&(t=void 0),r(e,Axe(t))}var Cxe=jxe;const Oxe=Re(Cxe);var xr=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},TN=XL;function Txe(e,t,n){t=="__proto__"&&TN?TN(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Pxe=Txe,Ixe=Pxe,Rxe=YL,kxe=Ko;function Mxe(e,t){var n={};return t=kxe(t),Rxe(e,function(r,o,i){Ixe(n,o,t(r,o,i))}),n}var Dxe=Mxe;const $xe=Re(Dxe);function Lxe(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 Fxe=Lxe,Bxe=hb;function Uxe(e,t){var n=!0;return Bxe(e,function(r,o,i){return n=!!t(r,o,i),n}),n}var Hxe=Uxe,zxe=Fxe,Wxe=Hxe,Gxe=Ko,Vxe=on,Kxe=Sh;function Yxe(e,t,n){var r=Vxe(e)?zxe:Wxe;return n&&Kxe(e,t,n)&&(t=void 0),r(e,Gxe(t))}var qxe=Yxe;const C4=Re(qxe);var Xxe=["x","y"];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 $g(){return $g=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},$g.apply(this,arguments)}function PN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PN(Object(n),!0).forEach(function(r){Zxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zxe(e,t,n){return t=Qxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qxe(e){var t=Jxe(e,"string");return Mc(t)=="symbol"?t:t+""}function Jxe(e,t){if(Mc(e)!="object"||!e)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 e0e(e,t){if(e==null)return{};var n=t0e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function t0e(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 n0e(e,t){var n=e.x,r=e.y,o=e0e(e,Xxe),i="".concat(n),a=parseInt(i,10),s="".concat(r),c=parseInt(s,10),u="".concat(t.height||o.height),f=parseInt(u,10),d="".concat(t.width||o.width),p=parseInt(d,10);return ol(ol(ol(ol(ol({},t),o),a?{x:a}:{}),c?{y:c}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function IN(e){return D.createElement(Fge,$g({shapeType:"rectangle",propTransformer:n0e,activeClassName:"recharts-active-bar"},e))}var r0e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,o){if(typeof t=="number")return t;var i=q(r)||vJ(r);return i?t(r,o):(i||Pi(),n)}},o0e=["value","background"],O4;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 i0e(e,t){if(e==null)return{};var n=a0e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function a0e(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 ep(){return ep=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},ep.apply(this,arguments)}function RN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).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?RN(Object(n),!0).forEach(function(r){bo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kN(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,P4(r.key),r)}}function l0e(e,t,n){return t&&kN(e.prototype,t),n&&kN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c0e(e,t,n){return t=tp(t),u0e(e,T4()?Reflect.construct(t,n||[],tp(e).constructor):t.apply(e,n))}function u0e(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 d0e(e)}function d0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T4=function(){return!!e})()}function tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tp(e)}function f0e(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&&Lg(e,t)}function Lg(e,t){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Lg(e,t)}function bo(e,t,n){return t=P4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P4(e){var t=p0e(e,"string");return rs(t)=="symbol"?t:t+""}function p0e(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 qi=function(e){function t(){var n;s0e(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=c0e(this,t,[].concat(o)),bo(n,"state",{isAnimationFinished:!1}),bo(n,"id",su("recharts-bar-")),bo(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),bo(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return f0e(t,e),l0e(t,[{key:"renderRectanglesStatically",value:function(r){var o=this,i=this.props,a=i.shape,s=i.dataKey,c=i.activeIndex,u=i.activeBar,f=Ne(this.props,!1);return r&&r.map(function(d,p){var m=p===c,b=m?u:a,y=ct(ct(ct({},f),d),{},{isActive:m,option:b,index:p,dataKey:s,onAnimationStart:o.handleAnimationStart,onAnimationEnd:o.handleAnimationEnd});return D.createElement(it,ep({className:"recharts-bar-rectangle"},pf(o.props,d,p),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value,"-").concat(p)}),D.createElement(IN,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,o=this.props,i=o.data,a=o.layout,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,f=o.animationEasing,d=o.animationId,p=this.state.prevData;return D.createElement(Zr,{begin:c,duration:u,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var b=m.t,y=i.map(function(v,x){var g=p&&p[x];if(g){var w=Yn(g.x,v.x),E=Yn(g.y,v.y),A=Yn(g.width,v.width),S=Yn(g.height,v.height);return ct(ct({},v),{},{x:w(b),y:E(b),width:A(b),height:S(b)})}if(a==="horizontal"){var N=Yn(0,v.height),_=N(b);return ct(ct({},v),{},{y:v.y+v.height-_,height:_})}var O=Yn(0,v.width),T=O(b);return ct(ct({},v),{},{width:T})});return D.createElement(it,null,r.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var r=this.props,o=r.data,i=r.isAnimationActive,a=this.state.prevData;return i&&o&&o.length&&(!a||!Ph(a,o))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(o)}},{key:"renderBackground",value:function(){var r=this,o=this.props,i=o.data,a=o.dataKey,s=o.activeIndex,c=Ne(this.props.background,!1);return i.map(function(u,f){u.value;var d=u.background,p=i0e(u,o0e);if(!d)return null;var m=ct(ct(ct(ct(ct({},p),{},{fill:"#eee"},d),c),pf(r.props,u,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:f,className:"recharts-bar-background-rectangle"});return D.createElement(IN,ep({key:"background-bar-".concat(f),option:r.props.background,isActive:f===s},m))})}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.data,s=i.xAxis,c=i.yAxis,u=i.layout,f=i.children,d=Pn(f,pu);if(!d)return null;var p=u==="vertical"?a[0].height/2:a[0].width/2,m=function(v,x){var g=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:g,errorVal:gn(v,x)}},b={clipPath:r?"url(#clipPath-".concat(o,")"):null};return D.createElement(it,b,d.map(function(y){return D.cloneElement(y,{key:"error-bar-".concat(o,"-").concat(y.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,offset:p,dataPointFormatter:m})}))}},{key:"render",value:function(){var r=this.props,o=r.hide,i=r.data,a=r.className,s=r.xAxis,c=r.yAxis,u=r.left,f=r.top,d=r.width,p=r.height,m=r.isAnimationActive,b=r.background,y=r.id;if(o||!i||!i.length)return null;var v=this.state.isAnimationFinished,x=_e("recharts-bar",a),g=s&&s.allowDataOverflow,w=c&&c.allowDataOverflow,E=g||w,A=Se(y)?this.id:y;return D.createElement(it,{className:x},g||w?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(A)},D.createElement("rect",{x:g?u:u-d/2,y:w?f:f-p/2,width:g?d:d*2,height:w?p:p*2}))):null,D.createElement(it,{className:"recharts-bar-rectangles",clipPath:E?"url(#clipPath-".concat(A,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(E,A),(!m||v)&&Io.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:o.curData}:r.data!==o.curData?{curData:r.data}:null}}])}(h.PureComponent);O4=qi;bo(qi,"displayName","Bar");bo(qi,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Rs.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});bo(qi,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,m=Fhe(r,n);if(!m)return null;var b=t.layout,y=n.type.defaultProps,v=y!==void 0?ct(ct({},y),n.props):n.props,x=v.dataKey,g=v.children,w=v.minPointSize,E=b==="horizontal"?a:i,A=u?E.scale.domain():null,S=Khe({numericAxis:E}),N=Pn(g,rF),_=d.map(function(O,T){var j,I,$,C,P,M;u?j=Bhe(u[f+T],A):(j=gn(O,x),Array.isArray(j)||(j=[S,j]));var L=r0e(w,O4.defaultProps.minPointSize)(j[1],T);if(b==="horizontal"){var R,k=[a.scale(j[0]),a.scale(j[1])],H=k[0],G=k[1];I=DE({axis:i,ticks:s,bandSize:o,offset:m.offset,entry:O,index:T}),$=(R=G??H)!==null&&R!==void 0?R:void 0,C=m.size;var W=H-G;if(P=Number.isNaN(W)?0:W,M={x:I,y:a.y,width:C,height:a.height},Math.abs(L)>0&&Math.abs(P)<Math.abs(L)){var J=Xn(P||L)*(Math.abs(L)-Math.abs(P));$-=J,P+=J}}else{var ce=[i.scale(j[0]),i.scale(j[1])],Ee=ce[0],we=ce[1];if(I=Ee,$=DE({axis:a,ticks:c,bandSize:o,offset:m.offset,entry:O,index:T}),C=we-Ee,P=m.size,M={x:i.x,y:$,width:i.width,height:P},Math.abs(L)>0&&Math.abs(C)<Math.abs(L)){var te=Xn(C||L)*(Math.abs(L)-Math.abs(C));C+=te}}return ct(ct(ct({},O),{},{x:I,y:$,width:C,height:P,value:u?j:j[1],payload:O,background:M},N&&N[T]&&N[T].props),{},{tooltipPayload:[c4(n,O)],tooltipPosition:{x:I+C/2,y:$+P/2}})});return ct({data:_,layout:b},p)});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 h0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MN(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,I4(r.key),r)}}function m0e(e,t,n){return t&&MN(e.prototype,t),n&&MN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function DN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DN(Object(n),!0).forEach(function(r){Dh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dh(e,t,n){return t=I4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I4(e){var t=v0e(e,"string");return Dc(t)=="symbol"?t:t+""}function v0e(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 R4=function(t,n,r,o,i){var a=t.width,s=t.height,c=t.layout,u=t.children,f=Object.keys(n),d={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},p=!!cn(u,qi);return f.reduce(function(m,b){var y=n[b],v=y.orientation,x=y.domain,g=y.padding,w=g===void 0?{}:g,E=y.mirror,A=y.reversed,S="".concat(v).concat(E?"Mirror":""),N,_,O,T,j;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var I=x[1]-x[0],$=1/0,C=y.categoricalDomain.sort(xJ);if(C.forEach(function(ce,Ee){Ee>0&&($=Math.min((ce||0)-(C[Ee-1]||0),$))}),Number.isFinite($)){var P=$/I,M=y.layout==="vertical"?r.height:r.width;if(y.padding==="gap"&&(N=P*M/2),y.padding==="no-gap"){var L=Oi(t.barCategoryGap,P*M),R=P*M/2;N=R-L-(R-L)/M*L}}}o==="xAxis"?_=[r.left+(w.left||0)+(N||0),r.left+r.width-(w.right||0)-(N||0)]:o==="yAxis"?_=c==="horizontal"?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(N||0),r.top+r.height-(w.bottom||0)-(N||0)]:_=y.range,A&&(_=[_[1],_[0]]);var k=$he(y,i,p),H=k.scale,G=k.realScaleType;H.domain(x).range(_),Lhe(H);var W=Vhe(H,Gn(Gn({},y),{},{realScaleType:G}));o==="xAxis"?(j=v==="top"&&!E||v==="bottom"&&E,O=r.left,T=d[S]-j*y.height):o==="yAxis"&&(j=v==="left"&&!E||v==="right"&&E,O=d[S]-j*y.width,T=r.top);var J=Gn(Gn(Gn({},y),W),{},{realScaleType:G,x:O,y:T,scale:H,width:o==="xAxis"?r.width:y.width,height:o==="yAxis"?r.height:y.height});return J.bandSize=Uf(J,W),!y.hide&&o==="xAxis"?d[S]+=(j?-1:1)*J.height:y.hide||(d[S]+=(j?-1:1)*J.width),Gn(Gn({},m),{},Dh({},b,J))},{})},k4=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return{x:Math.min(r,i),y:Math.min(o,a),width:Math.abs(i-r),height:Math.abs(a-o)}},y0e=function(t){var n=t.x1,r=t.y1,o=t.x2,i=t.y2;return k4({x:n,y:r},{x:o,y:i})},M4=function(){function e(t){h0e(this,e),this.scale=t}return m0e(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]:{},o=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){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(o){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),o=r[0],i=r[r.length-1];return o<=i?n>=o&&n<=i:n>=i&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])}();Dh(M4,"EPS",1e-4);var Wb=function(t){var n=Object.keys(t).reduce(function(r,o){return Gn(Gn({},r),{},Dh({},o,M4.create(t[o])))},{});return Gn(Gn({},n),{},{apply:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.bandAware,s=i.position;return $xe(o,function(c,u){return n[u].apply(c,{bandAware:a,position:s})})},isInRange:function(o){return C4(o,function(i,a){return n[a].isInRange(i)})}})};function g0e(e){return(e%180+180)%180}var x0e=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=g0e(o),a=i*Math.PI/180,s=Math.atan(r/n),c=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(c)},b0e=Ko,w0e=lu,S0e=bh;function A0e(e){return function(t,n,r){var o=Object(t);if(!w0e(t)){var i=b0e(n);t=S0e(t),n=function(s){return i(o[s],s,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var E0e=A0e,N0e=E4;function _0e(e){var t=N0e(e),n=t%1;return t===t?n?t-n:t:0}var j0e=_0e,C0e=HL,O0e=Ko,T0e=j0e,P0e=Math.max;function I0e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:T0e(n);return o<0&&(o=P0e(r+o,0)),C0e(e,O0e(t),o)}var R0e=I0e,k0e=E0e,M0e=R0e,D0e=k0e(M0e),$0e=D0e;const L0e=Re($0e);var F0e=SQ(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("")}),Gb=h.createContext(void 0),Vb=h.createContext(void 0),D4=h.createContext(void 0),$4=h.createContext({}),L4=h.createContext(void 0),F4=h.createContext(0),B4=h.createContext(0),$N=function(t){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=t.clipPathId,s=t.children,c=t.width,u=t.height,f=F0e(i);return D.createElement(Gb.Provider,{value:r},D.createElement(Vb.Provider,{value:o},D.createElement($4.Provider,{value:i},D.createElement(D4.Provider,{value:f},D.createElement(L4.Provider,{value:a},D.createElement(F4.Provider,{value:u},D.createElement(B4.Provider,{value:c},s)))))))},B0e=function(){return h.useContext(L4)},U4=function(t){var n=h.useContext(Gb);n==null&&Pi();var r=n[t];return r==null&&Pi(),r},U0e=function(){var t=h.useContext(Gb);return vo(t)},H0e=function(){var t=h.useContext(Vb),n=L0e(t,function(r){return C4(r.domain,Number.isFinite)});return n||vo(t)},H4=function(t){var n=h.useContext(Vb);n==null&&Pi();var r=n[t];return r==null&&Pi(),r},z0e=function(){var t=h.useContext(D4);return t},W0e=function(){return h.useContext($4)},Kb=function(){return h.useContext(B4)},Yb=function(){return h.useContext(F4)};function os(e){"@babel/helpers - typeof";return os=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},os(e)}function G0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V0e(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,W4(r.key),r)}}function K0e(e,t,n){return t&&V0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y0e(e,t,n){return t=np(t),q0e(e,z4()?Reflect.construct(t,n||[],np(e).constructor):t.apply(e,n))}function q0e(e,t){if(t&&(os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X0e(e)}function X0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z4=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},np(e)}function Z0e(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&&Fg(e,t)}function Fg(e,t){return Fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Fg(e,t)}function LN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function FN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LN(Object(n),!0).forEach(function(r){qb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qb(e,t,n){return t=W4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W4(e){var t=Q0e(e,"string");return os(t)=="symbol"?t:t+""}function Q0e(e,t){if(os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function J0e(e,t){return rbe(e)||nbe(e,t)||tbe(e,t)||ebe()}function ebe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
566
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tbe(e,t){if(e){if(typeof e=="string")return BN(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 BN(e,t)}}function BN(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 nbe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function rbe(e){if(Array.isArray(e))return e}function Bg(){return Bg=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},Bg.apply(this,arguments)}var obe=function(t,n){var r;return D.isValidElement(t)?r=D.cloneElement(t,n):be(t)?r=t(n):r=D.createElement("line",Bg({},n,{className:"recharts-reference-line-line"})),r},ibe=function(t,n,r,o,i,a,s,c,u){var f=i.x,d=i.y,p=i.width,m=i.height;if(r){var b=u.y,y=t.y.apply(b,{position:a});if(xr(u,"discard")&&!t.y.isInRange(y))return null;var v=[{x:f+p,y},{x:f,y}];return c==="left"?v.reverse():v}if(n){var x=u.x,g=t.x.apply(x,{position:a});if(xr(u,"discard")&&!t.x.isInRange(g))return null;var w=[{x:g,y:d+m},{x:g,y:d}];return s==="top"?w.reverse():w}if(o){var E=u.segment,A=E.map(function(S){return t.apply(S,{position:a})});return xr(u,"discard")&&Oxe(A,function(S){return!t.isInRange(S)})?null:A}return null};function abe(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,i=e.yAxisId,a=e.shape,s=e.className,c=e.alwaysShow,u=B0e(),f=U4(o),d=H4(i),p=z0e();if(!u||!p)return null;Fr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=Wb({x:f.scale,y:d.scale}),b=gt(t),y=gt(n),v=r&&r.length===2,x=ibe(m,b,y,v,p,e.position,f.orientation,d.orientation,e);if(!x)return null;var g=J0e(x,2),w=g[0],E=w.x,A=w.y,S=g[1],N=S.x,_=S.y,O=xr(e,"hidden")?"url(#".concat(u,")"):void 0,T=FN(FN({clipPath:O},Ne(e,!0)),{},{x1:E,y1:A,x2:N,y2:_});return D.createElement(it,{className:_e("recharts-reference-line",s)},obe(a,T),Lt.renderCallByParent(e,y0e({x1:E,y1:A,x2:N,y2:_})))}var Xb=function(e){function t(){return G0e(this,t),Y0e(this,t,arguments)}return Z0e(t,e),K0e(t,[{key:"render",value:function(){return D.createElement(abe,this.props)}}])}(D.Component);qb(Xb,"displayName","ReferenceLine");qb(Xb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Ug(){return Ug=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},Ug.apply(this,arguments)}function is(e){"@babel/helpers - typeof";return is=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},is(e)}function UN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function HN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UN(Object(n),!0).forEach(function(r){$h(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lbe(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,V4(r.key),r)}}function cbe(e,t,n){return t&&lbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ube(e,t,n){return t=rp(t),dbe(e,G4()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function dbe(e,t){if(t&&(is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fbe(e)}function fbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G4=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function pbe(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&&Hg(e,t)}function Hg(e,t){return Hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Hg(e,t)}function $h(e,t,n){return t=V4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V4(e){var t=hbe(e,"string");return is(t)=="symbol"?t:t+""}function hbe(e,t){if(is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mbe=function(t){var n=t.x,r=t.y,o=t.xAxis,i=t.yAxis,a=Wb({x:o.scale,y:i.scale}),s=a.apply({x:n,y:r},{bandAware:!0});return xr(t,"discard")&&!a.isInRange(s)?null:s},Lh=function(e){function t(){return sbe(this,t),ube(this,t,arguments)}return pbe(t,e),cbe(t,[{key:"render",value:function(){var r=this.props,o=r.x,i=r.y,a=r.r,s=r.alwaysShow,c=r.clipPathId,u=gt(o),f=gt(i);if(Fr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var d=mbe(this.props);if(!d)return null;var p=d.x,m=d.y,b=this.props,y=b.shape,v=b.className,x=xr(this.props,"hidden")?"url(#".concat(c,")"):void 0,g=HN(HN({clipPath:x},Ne(this.props,!0)),{},{cx:p,cy:m});return D.createElement(it,{className:_e("recharts-reference-dot",v)},t.renderDot(y,g),Lt.renderCallByParent(this.props,{x:p-a,y:m-a,width:2*a,height:2*a}))}}])}(D.Component);$h(Lh,"displayName","ReferenceDot");$h(Lh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});$h(Lh,"renderDot",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):be(e)?n=e(t):n=D.createElement(zb,Ug({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function zg(){return zg=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},zg.apply(this,arguments)}function as(e){"@babel/helpers - typeof";return as=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},as(e)}function zN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function WN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zN(Object(n),!0).forEach(function(r){Fh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ybe(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,Y4(r.key),r)}}function gbe(e,t,n){return t&&ybe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xbe(e,t,n){return t=op(t),bbe(e,K4()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}function bbe(e,t){if(t&&(as(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wbe(e)}function wbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K4=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},op(e)}function Sbe(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&&Wg(e,t)}function Wg(e,t){return Wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Wg(e,t)}function Fh(e,t,n){return t=Y4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y4(e){var t=Abe(e,"string");return as(t)=="symbol"?t:t+""}function Abe(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ebe=function(t,n,r,o,i){var a=i.x1,s=i.x2,c=i.y1,u=i.y2,f=i.xAxis,d=i.yAxis;if(!f||!d)return null;var p=Wb({x:f.scale,y:d.scale}),m={x:t?p.x.apply(a,{position:"start"}):p.x.rangeMin,y:r?p.y.apply(c,{position:"start"}):p.y.rangeMin},b={x:n?p.x.apply(s,{position:"end"}):p.x.rangeMax,y:o?p.y.apply(u,{position:"end"}):p.y.rangeMax};return xr(i,"discard")&&(!p.isInRange(m)||!p.isInRange(b))?null:k4(m,b)},Bh=function(e){function t(){return vbe(this,t),xbe(this,t,arguments)}return Sbe(t,e),gbe(t,[{key:"render",value:function(){var r=this.props,o=r.x1,i=r.x2,a=r.y1,s=r.y2,c=r.className,u=r.alwaysShow,f=r.clipPathId;Fr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=gt(o),p=gt(i),m=gt(a),b=gt(s),y=this.props.shape;if(!d&&!p&&!m&&!b&&!y)return null;var v=Ebe(d,p,m,b,this.props);if(!v&&!y)return null;var x=xr(this.props,"hidden")?"url(#".concat(f,")"):void 0;return D.createElement(it,{className:_e("recharts-reference-area",c)},t.renderRect(y,WN(WN({clipPath:x},Ne(this.props,!0)),v)),Lt.renderCallByParent(this.props,v))}}])}(D.Component);Fh(Bh,"displayName","ReferenceArea");Fh(Bh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Fh(Bh,"renderRect",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):be(e)?n=e(t):n=D.createElement(Hb,zg({},t,{className:"recharts-reference-area-rect"})),n});function q4(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],o=0;o<e.length;o+=t)r.push(e[o]);return r}function Nbe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return x0e(r,n)}function _be(e,t,n){var r=n==="width",o=e.x,i=e.y,a=e.width,s=e.height;return t===1?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}function ip(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function jbe(e,t){return q4(e,t+1)}function Cbe(e,t,n,r,o){for(var i=(r||[]).slice(),a=t.start,s=t.end,c=0,u=1,f=a,d=function(){var b=r==null?void 0:r[c];if(b===void 0)return{v:q4(r,u)};var y=c,v,x=function(){return v===void 0&&(v=n(b,y)),v},g=b.coordinate,w=c===0||ip(e,g,x,f,s);w||(c=0,f=a,u+=1),w&&(f=g+e*(x()/2+o),c+=u)},p;u<=i.length;)if(p=d(),p)return p.v;return[]}function $c(e){"@babel/helpers - typeof";return $c=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},$c(e)}function GN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GN(Object(n),!0).forEach(function(r){Obe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Obe(e,t,n){return t=Tbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tbe(e){var t=Pbe(e,"string");return $c(t)=="symbol"?t:t+""}function Pbe(e,t){if($c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ibe(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=t.start,c=t.end,u=function(p){var m=i[p],b,y=function(){return b===void 0&&(b=n(m,p)),b};if(p===a-1){var v=e*(m.coordinate+e*y()/2-c);i[p]=m=Dt(Dt({},m),{},{tickCoord:v>0?m.coordinate-v*e:m.coordinate})}else i[p]=m=Dt(Dt({},m),{},{tickCoord:m.coordinate});var x=ip(e,m.tickCoord,y,s,c);x&&(c=m.tickCoord-e*(y()/2+o),i[p]=Dt(Dt({},m),{},{isShow:!0}))},f=a-1;f>=0;f--)u(f);return i}function Rbe(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,c=t.start,u=t.end;if(i){var f=r[s-1],d=n(f,s-1),p=e*(f.coordinate+e*d/2-u);a[s-1]=f=Dt(Dt({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var m=ip(e,f.tickCoord,function(){return d},c,u);m&&(u=f.tickCoord-e*(d/2+o),a[s-1]=Dt(Dt({},f),{},{isShow:!0}))}for(var b=i?s-1:s,y=function(g){var w=a[g],E,A=function(){return E===void 0&&(E=n(w,g)),E};if(g===0){var S=e*(w.coordinate-e*A()/2-c);a[g]=w=Dt(Dt({},w),{},{tickCoord:S<0?w.coordinate-S*e:w.coordinate})}else a[g]=w=Dt(Dt({},w),{},{tickCoord:w.coordinate});var N=ip(e,w.tickCoord,A,c,u);N&&(c=w.tickCoord+e*(A()/2+o),a[g]=Dt(Dt({},w),{},{isShow:!0}))},v=0;v<b;v++)y(v);return a}function Zb(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,f=e.unit,d=e.angle;if(!o||!o.length||!r)return[];if(q(c)||Rs.isSsr)return jbe(o,typeof c=="number"&&q(c)?c:0);var p=[],m=s==="top"||s==="bottom"?"width":"height",b=f&&m==="width"?El(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},y=function(w,E){var A=be(u)?u(w.value,E):w.value;return m==="width"?Nbe(El(A,{fontSize:t,letterSpacing:n}),b,d):El(A,{fontSize:t,letterSpacing:n})[m]},v=o.length>=2?Xn(o[1].coordinate-o[0].coordinate):1,x=_be(i,v,m);return c==="equidistantPreserveStart"?Cbe(v,x,y,o,a):(c==="preserveStart"||c==="preserveStartEnd"?p=Rbe(v,x,y,o,a,c==="preserveStartEnd"):p=Ibe(v,x,y,o,a),p.filter(function(g){return g.isShow}))}var kbe=["viewBox"],Mbe=["viewBox"],Dbe=["ticks"];function ss(e){"@babel/helpers - typeof";return ss=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},ss(e)}function ga(){return ga=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},ga.apply(this,arguments)}function VN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VN(Object(n),!0).forEach(function(r){Qb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lv(e,t){if(e==null)return{};var n=$be(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $be(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 Lbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KN(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,Z4(r.key),r)}}function Fbe(e,t,n){return t&&KN(e.prototype,t),n&&KN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bbe(e,t,n){return t=ap(t),Ube(e,X4()?Reflect.construct(t,n||[],ap(e).constructor):t.apply(e,n))}function Ube(e,t){if(t&&(ss(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hbe(e)}function Hbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X4=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ap(e)}function zbe(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&&Gg(e,t)}function Gg(e,t){return Gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Gg(e,t)}function Qb(e,t,n){return t=Z4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z4(e){var t=Wbe(e,"string");return ss(t)=="symbol"?t:t+""}function Wbe(e,t){if(ss(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $s=function(e){function t(n){var r;return Lbe(this,t),r=Bbe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return zbe(t,e),Fbe(t,[{key:"shouldComponentUpdate",value:function(r,o){var i=r.viewBox,a=lv(r,kbe),s=this.props,c=s.viewBox,u=lv(s,Mbe);return!Pa(i,c)||!Pa(a,u)||!Pa(o,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var o=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];o&&this.setState({fontSize:window.getComputedStyle(o).fontSize,letterSpacing:window.getComputedStyle(o).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var o=this.props,i=o.x,a=o.y,s=o.width,c=o.height,u=o.orientation,f=o.tickSize,d=o.mirror,p=o.tickMargin,m,b,y,v,x,g,w=d?-1:1,E=r.tickSize||f,A=q(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":m=b=r.coordinate,v=a+ +!d*c,y=v-w*E,g=y-w*p,x=A;break;case"left":y=v=r.coordinate,b=i+ +!d*s,m=b-w*E,x=m-w*p,g=A;break;case"right":y=v=r.coordinate,b=i+ +d*s,m=b+w*E,x=m+w*p,g=A;break;default:m=b=r.coordinate,v=a+ +d*c,y=v+w*E,g=y+w*p,x=A;break}return{line:{x1:m,y1:y,x2:b,y2:v},tick:{x,y:g}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,o=r.orientation,i=r.mirror,a;switch(o){case"left":a=i?"start":"end";break;case"right":a=i?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,o=r.orientation,i=r.mirror,a="end";switch(o){case"left":case"right":a="middle";break;case"top":a=i?"start":"end";break;default:a=i?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,c=r.orientation,u=r.mirror,f=r.axisLine,d=pt(pt(pt({},Ne(this.props,!1)),Ne(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var p=+(c==="top"&&!u||c==="bottom"&&u);d=pt(pt({},d),{},{x1:o,y1:i+p*s,x2:o+a,y2:i+p*s})}else{var m=+(c==="left"&&!u||c==="right"&&u);d=pt(pt({},d),{},{x1:o+m*a,y1:i,x2:o+m*a,y2:i+s})}return D.createElement("line",ga({},d,{className:_e("recharts-cartesian-axis-line",Tn(f,"className"))}))}},{key:"renderTicks",value:function(r,o,i){var a=this,s=this.props,c=s.tickLine,u=s.stroke,f=s.tick,d=s.tickFormatter,p=s.unit,m=Zb(pt(pt({},this.props),{},{ticks:r}),o,i),b=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=Ne(this.props,!1),x=Ne(f,!1),g=pt(pt({},v),{},{fill:"none"},Ne(c,!1)),w=m.map(function(E,A){var S=a.getTickLineCoord(E),N=S.line,_=S.tick,O=pt(pt(pt(pt({textAnchor:b,verticalAnchor:y},v),{},{stroke:"none",fill:u},x),_),{},{index:A,payload:E,visibleTicksCount:m.length,tickFormatter:d});return D.createElement(it,ga({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},pf(a.props,E,A)),c&&D.createElement("line",ga({},g,N,{className:_e("recharts-cartesian-axis-tick-line",Tn(c,"className"))})),f&&t.renderTickItem(f,O,"".concat(be(d)?d(E.value,A):E.value).concat(p||"")))});return D.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var r=this,o=this.props,i=o.axisLine,a=o.width,s=o.height,c=o.ticksGenerator,u=o.className,f=o.hide;if(f)return null;var d=this.props,p=d.ticks,m=lv(d,Dbe),b=p;return be(c)&&(b=p&&p.length>0?c(this.props):c(m)),a<=0||s<=0||!b||!b.length?null:D.createElement(it,{className:_e("recharts-cartesian-axis",u),ref:function(v){r.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Lt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,i){var a,s=_e(o.className,"recharts-cartesian-axis-tick-value");return D.isValidElement(r)?a=D.cloneElement(r,pt(pt({},o),{},{className:s})):be(r)?a=r(pt(pt({},o),{},{className:s})):a=D.createElement(jf,ga({},o,{className:"recharts-cartesian-axis-tick-value"}),i),a}}])}(h.Component);Qb($s,"displayName","CartesianAxis");Qb($s,"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 Gbe=["x1","y1","x2","y2","key"],Vbe=["offset"];function Ii(e){"@babel/helpers - typeof";return Ii=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},Ii(e)}function YN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YN(Object(n),!0).forEach(function(r){Kbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kbe(e,t,n){return t=Ybe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ybe(e){var t=qbe(e,"string");return Ii(t)=="symbol"?t:t+""}function qbe(e,t){if(Ii(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ii(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fi(){return fi=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},fi.apply(this,arguments)}function qN(e,t){if(e==null)return{};var n=Xbe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xbe(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 Zbe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,o=t.x,i=t.y,a=t.width,s=t.height,c=t.ry;return D.createElement("rect",{x:o,y:i,ry:c,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Q4(e,t){var n;if(D.isValidElement(e))n=D.cloneElement(e,t);else if(be(e))n=e(t);else{var r=t.x1,o=t.y1,i=t.x2,a=t.y2,s=t.key,c=qN(t,Gbe),u=Ne(c,!1);u.offset;var f=qN(u,Vbe);n=D.createElement("line",fi({},f,{x1:r,y1:o,x2:i,y2:a,fill:"none",key:s}))}return n}function Qbe(e){var t=e.x,n=e.width,r=e.horizontal,o=r===void 0?!0:r,i=e.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,c){var u=Ft(Ft({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(c),index:c});return Q4(o,u)});return D.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Jbe(e){var t=e.y,n=e.height,r=e.vertical,o=r===void 0?!0:r,i=e.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,c){var u=Ft(Ft({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(c),index:c});return Q4(o,u)});return D.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function ewe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,i=e.width,a=e.height,s=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var f=s.map(function(p){return Math.round(p+o-o)}).sort(function(p,m){return p-m});o!==f[0]&&f.unshift(0);var d=f.map(function(p,m){var b=!f[m+1],y=b?o+a-p:f[m+1]-p;if(y<=0)return null;var v=m%t.length;return D.createElement("rect",{key:"react-".concat(m),y:p,x:r,height:y,width:i,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return D.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function twe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var f=u.map(function(p){return Math.round(p+i-i)}).sort(function(p,m){return p-m});i!==f[0]&&f.unshift(0);var d=f.map(function(p,m){var b=!f[m+1],y=b?i+s-p:f[m+1]-p;if(y<=0)return null;var v=m%r.length;return D.createElement("rect",{key:"react-".concat(m),x:p,y:a,width:y,height:c,stroke:"none",fill:r[v],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return D.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var nwe=function(t,n){var r=t.xAxis,o=t.width,i=t.height,a=t.offset;return s4(Zb(Ft(Ft(Ft({},$s.defaultProps),r),{},{ticks:Dr(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.left,a.left+a.width,n)},rwe=function(t,n){var r=t.yAxis,o=t.width,i=t.height,a=t.offset;return s4(Zb(Ft(Ft(Ft({},$s.defaultProps),r),{},{ticks:Dr(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.top,a.top+a.height,n)},na={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Vg(e){var t,n,r,o,i,a,s=Kb(),c=Yb(),u=W0e(),f=Ft(Ft({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:na.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:na.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:na.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:na.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:na.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:na.verticalFill,x:q(e.x)?e.x:u.left,y:q(e.y)?e.y:u.top,width:q(e.width)?e.width:u.width,height:q(e.height)?e.height:u.height}),d=f.x,p=f.y,m=f.width,b=f.height,y=f.syncWithTicks,v=f.horizontalValues,x=f.verticalValues,g=U0e(),w=H0e();if(!q(m)||m<=0||!q(b)||b<=0||!q(d)||d!==+d||!q(p)||p!==+p)return null;var E=f.verticalCoordinatesGenerator||nwe,A=f.horizontalCoordinatesGenerator||rwe,S=f.horizontalPoints,N=f.verticalPoints;if((!S||!S.length)&&be(A)){var _=v&&v.length,O=A({yAxis:w?Ft(Ft({},w),{},{ticks:_?v:w.ticks}):void 0,width:s,height:c,offset:u},_?!0:y);Fr(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ii(O),"]")),Array.isArray(O)&&(S=O)}if((!N||!N.length)&&be(E)){var T=x&&x.length,j=E({xAxis:g?Ft(Ft({},g),{},{ticks:T?x:g.ticks}):void 0,width:s,height:c,offset:u},T?!0:y);Fr(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ii(j),"]")),Array.isArray(j)&&(N=j)}return D.createElement("g",{className:"recharts-cartesian-grid"},D.createElement(Zbe,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),D.createElement(Qbe,fi({},f,{offset:u,horizontalPoints:S,xAxis:g,yAxis:w})),D.createElement(Jbe,fi({},f,{offset:u,verticalPoints:N,xAxis:g,yAxis:w})),D.createElement(ewe,fi({},f,{horizontalPoints:S})),D.createElement(twe,fi({},f,{verticalPoints:N})))}Vg.displayName="CartesianGrid";var owe=["type","layout","connectNulls","ref"],iwe=["key"];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 XN(e,t){if(e==null)return{};var n=awe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function awe(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 Cl(){return Cl=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},Cl.apply(this,arguments)}function ZN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZN(Object(n),!0).forEach(function(r){Vn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ra(e){return uwe(e)||cwe(e)||lwe(e)||swe()}function swe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
567
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lwe(e,t){if(e){if(typeof e=="string")return Kg(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 Kg(e,t)}}function cwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uwe(e){if(Array.isArray(e))return Kg(e)}function Kg(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 dwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QN(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,eB(r.key),r)}}function fwe(e,t,n){return t&&QN(e.prototype,t),n&&QN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pwe(e,t,n){return t=sp(t),hwe(e,J4()?Reflect.construct(t,n||[],sp(e).constructor):t.apply(e,n))}function hwe(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 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 J4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J4=function(){return!!e})()}function sp(e){return sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sp(e)}function vwe(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&&Yg(e,t)}function Yg(e,t){return Yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Yg(e,t)}function Vn(e,t,n){return t=eB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eB(e){var t=ywe(e,"string");return ls(t)=="symbol"?t:t+""}function ywe(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 String(e)}var hu=function(e){function t(){var n;dwe(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=pwe(this,t,[].concat(o)),Vn(n,"state",{isAnimationFinished:!0,totalLength:0}),Vn(n,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),Vn(n,"getStrokeDasharray",function(a,s,c){var u=c.reduce(function(x,g){return x+g});if(!u)return n.generateSimpleStrokeDasharray(s,a);for(var f=Math.floor(a/u),d=a%u,p=s-a,m=[],b=0,y=0;b<c.length;y+=c[b],++b)if(y+c[b]>d){m=[].concat(ra(c.slice(0,b)),[d-y]);break}var v=m.length%2===0?[0,p]:[p];return[].concat(ra(t.repeat(c,f)),ra(m),v).map(function(x){return"".concat(x,"px")}).join(", ")}),Vn(n,"id",su("recharts-line-")),Vn(n,"pathRef",function(a){n.mainCurve=a}),Vn(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Vn(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return vwe(t,e),fwe(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,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,s=i.xAxis,c=i.yAxis,u=i.layout,f=i.children,d=Pn(f,pu);if(!d)return null;var p=function(y,v){return{x:y.x,y:y.y,value:y.value,errorVal:gn(y.payload,v)}},m={clipPath:r?"url(#clipPath-".concat(o,")"):null};return D.createElement(it,m,d.map(function(b){return D.cloneElement(b,{key:"bar-".concat(b.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,dataPointFormatter:p})}))}},{key:"renderDots",value:function(r,o,i){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,u=s.points,f=s.dataKey,d=Ne(this.props,!1),p=Ne(c,!0),m=u.map(function(y,v){var x=an(an(an({key:"dot-".concat(v),r:3},d),p),{},{index:v,cx:y.x,cy:y.y,value:y.value,dataKey:f,payload:y.payload,points:u});return t.renderDotItem(c,x)}),b={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(i,")"):null};return D.createElement(it,Cl({className:"recharts-line-dots",key:"dots"},b),m)}},{key:"renderCurveStatically",value:function(r,o,i,a){var s=this.props,c=s.type,u=s.layout,f=s.connectNulls;s.ref;var d=XN(s,owe),p=an(an(an({},Ne(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:o?"url(#clipPath-".concat(i,")"):null,points:r},a),{},{type:c,layout:u,connectNulls:f});return D.createElement(Eg,Cl({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,o){var i=this,a=this.props,s=a.points,c=a.strokeDasharray,u=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,m=a.animationId,b=a.animateNewValues,y=a.width,v=a.height,x=this.state,g=x.prevPoints,w=x.totalLength;return D.createElement(Zr,{begin:f,duration:d,isActive:u,easing:p,from:{t:0},to:{t:1},key:"line-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(E){var A=E.t;if(g){var S=g.length/s.length,N=s.map(function(I,$){var C=Math.floor($*S);if(g[C]){var P=g[C],M=Yn(P.x,I.x),L=Yn(P.y,I.y);return an(an({},I),{},{x:M(A),y:L(A)})}if(b){var R=Yn(y*2,I.x),k=Yn(v/2,I.y);return an(an({},I),{},{x:R(A),y:k(A)})}return an(an({},I),{},{x:I.x,y:I.y})});return i.renderCurveStatically(N,r,o)}var _=Yn(0,w),O=_(A),T;if(c){var j="".concat(c).split(/[,\s]+/gim).map(function(I){return parseFloat(I)});T=i.getStrokeDasharray(O,w,j)}else T=i.generateSimpleStrokeDasharray(w,O);return i.renderCurveStatically(s,r,o,{strokeDasharray:T})})}},{key:"renderCurve",value:function(r,o){var i=this.props,a=i.points,s=i.isAnimationActive,c=this.state,u=c.prevPoints,f=c.totalLength;return s&&a&&a.length&&(!u&&f>0||!Ph(u,a))?this.renderCurveWithAnimation(r,o):this.renderCurveStatically(a,r,o)}},{key:"render",value:function(){var r,o=this.props,i=o.hide,a=o.dot,s=o.points,c=o.className,u=o.xAxis,f=o.yAxis,d=o.top,p=o.left,m=o.width,b=o.height,y=o.isAnimationActive,v=o.id;if(i||!s||!s.length)return null;var x=this.state.isAnimationFinished,g=s.length===1,w=_e("recharts-line",c),E=u&&u.allowDataOverflow,A=f&&f.allowDataOverflow,S=E||A,N=Se(v)?this.id:v,_=(r=Ne(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},O=_.r,T=O===void 0?3:O,j=_.strokeWidth,I=j===void 0?2:j,$=CJ(a)?a:{},C=$.clipDot,P=C===void 0?!0:C,M=T*2+I;return D.createElement(it,{className:w},E||A?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(N)},D.createElement("rect",{x:E?p:p-m/2,y:A?d:d-b/2,width:E?m:m*2,height:A?b:b*2})),!P&&D.createElement("clipPath",{id:"clipPath-dots-".concat(N)},D.createElement("rect",{x:p-M/2,y:d-M/2,width:m+M,height:b+M}))):null,!g&&this.renderCurve(S,N),this.renderErrorBar(S,N),(g||a)&&this.renderDots(S,P,N),(!y||x)&&Io.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:o.curPoints}:r.points!==o.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,o){for(var i=r.length%2!==0?[].concat(ra(r),[0]):r,a=[],s=0;s<o;++s)a=[].concat(ra(a),ra(i));return a}},{key:"renderDotItem",value:function(r,o){var i;if(D.isValidElement(r))i=D.cloneElement(r,o);else if(be(r))i=r(o);else{var a=o.key,s=XN(o,iwe),c=_e("recharts-line-dot",typeof r!="boolean"?r.className:"");i=D.createElement(zb,Cl({key:a},s,{className:c}))}return i}}])}(h.PureComponent);Vn(hu,"displayName","Line");Vn(hu,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Rs.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Vn(hu,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,f=t.layout,d=c.map(function(p,m){var b=gn(p,a);return f==="horizontal"?{x:ME({axis:n,ticks:o,bandSize:s,entry:p,index:m}),y:Se(b)?null:r.scale(b),value:b,payload:p}:{x:Se(b)?null:n.scale(b),y:ME({axis:r,ticks:i,bandSize:s,entry:p,index:m}),value:b,payload:p}});return an({points:d,layout:f},u)});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)}function gwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xwe(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,rB(r.key),r)}}function bwe(e,t,n){return t&&xwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wwe(e,t,n){return t=lp(t),Swe(e,tB()?Reflect.construct(t,n||[],lp(e).constructor):t.apply(e,n))}function Swe(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 Awe(e)}function Awe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tB=function(){return!!e})()}function lp(e){return lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lp(e)}function Ewe(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&&qg(e,t)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},qg(e,t)}function nB(e,t,n){return t=rB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rB(e){var t=Nwe(e,"string");return cs(t)=="symbol"?t:t+""}function Nwe(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 Xg(){return Xg=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},Xg.apply(this,arguments)}function _we(e){var t=e.xAxisId,n=Kb(),r=Yb(),o=U4(t);return o==null?null:h.createElement($s,Xg({},o,{className:_e("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(a){return Dr(a,!0)}}))}var us=function(e){function t(){return gwe(this,t),wwe(this,t,arguments)}return Ewe(t,e),bwe(t,[{key:"render",value:function(){return h.createElement(_we,this.props)}}])}(h.Component);nB(us,"displayName","XAxis");nB(us,"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 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)}function jwe(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,aB(r.key),r)}}function Owe(e,t,n){return t&&Cwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Twe(e,t,n){return t=cp(t),Pwe(e,oB()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}function Pwe(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 Iwe(e)}function Iwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oB=function(){return!!e})()}function cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cp(e)}function Rwe(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&&Zg(e,t)}function Zg(e,t){return Zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Zg(e,t)}function iB(e,t,n){return t=aB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aB(e){var t=kwe(e,"string");return ds(t)=="symbol"?t:t+""}function kwe(e,t){if(ds(e)!="object"||!e)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 String(e)}function Qg(){return Qg=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},Qg.apply(this,arguments)}var Mwe=function(t){var n=t.yAxisId,r=Kb(),o=Yb(),i=H4(n);return i==null?null:h.createElement($s,Qg({},i,{className:_e("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(s){return Dr(s,!0)}}))},fs=function(e){function t(){return jwe(this,t),Twe(this,t,arguments)}return Rwe(t,e),Owe(t,[{key:"render",value:function(){return h.createElement(Mwe,this.props)}}])}(h.Component);iB(fs,"displayName","YAxis");iB(fs,"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 JN(e){return Fwe(e)||Lwe(e)||$we(e)||Dwe()}function Dwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
568
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $we(e,t){if(e){if(typeof e=="string")return Jg(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 Jg(e,t)}}function Lwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fwe(e){if(Array.isArray(e))return Jg(e)}function Jg(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 ex=function(t,n,r,o,i){var a=Pn(t,Xb),s=Pn(t,Lh),c=[].concat(JN(a),JN(s)),u=Pn(t,Bh),f="".concat(o,"Id"),d=o[0],p=n;if(c.length&&(p=c.reduce(function(y,v){if(v.props[f]===r&&xr(v.props,"extendDomain")&&q(v.props[d])){var x=v.props[d];return[Math.min(y[0],x),Math.max(y[1],x)]}return y},p)),u.length){var m="".concat(d,"1"),b="".concat(d,"2");p=u.reduce(function(y,v){if(v.props[f]===r&&xr(v.props,"extendDomain")&&q(v.props[m])&&q(v.props[b])){var x=v.props[m],g=v.props[b];return[Math.min(y[0],x,g),Math.max(y[1],x,g)]}return y},p)}return i&&i.length&&(p=i.reduce(function(y,v){return q(v)?[Math.min(y[0],v),Math.max(y[1],v)]:y},p)),p},sB={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function i(c,u,f,d,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var m=new o(f,d||c,p),b=n?n+u:u;return c._events[b]?c._events[b].fn?c._events[b]=[c._events[b],m]:c._events[b].push(m):(c._events[b]=m,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)t.call(f,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},s.prototype.listeners=function(u){var f=n?n+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,m=d.length,b=new Array(m);p<m;p++)b[p]=d[p].fn;return b},s.prototype.listenerCount=function(u){var f=n?n+u:u,d=this._events[f];return d?d.fn?1:d.length:0},s.prototype.emit=function(u,f,d,p,m,b){var y=n?n+u:u;if(!this._events[y])return!1;var v=this._events[y],x=arguments.length,g,w;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),x){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,d),!0;case 4:return v.fn.call(v.context,f,d,p),!0;case 5:return v.fn.call(v.context,f,d,p,m),!0;case 6:return v.fn.call(v.context,f,d,p,m,b),!0}for(w=1,g=new Array(x-1);w<x;w++)g[w-1]=arguments[w];v.fn.apply(v.context,g)}else{var E=v.length,A;for(w=0;w<E;w++)switch(v[w].once&&this.removeListener(u,v[w].fn,void 0,!0),x){case 1:v[w].fn.call(v[w].context);break;case 2:v[w].fn.call(v[w].context,f);break;case 3:v[w].fn.call(v[w].context,f,d);break;case 4:v[w].fn.call(v[w].context,f,d,p);break;default:if(!g)for(A=1,g=new Array(x-1);A<x;A++)g[A-1]=arguments[A];v[w].fn.apply(v[w].context,g)}}return!0},s.prototype.on=function(u,f,d){return i(this,u,f,d,!1)},s.prototype.once=function(u,f,d){return i(this,u,f,d,!0)},s.prototype.removeListener=function(u,f,d,p){var m=n?n+u:u;if(!this._events[m])return this;if(!f)return a(this,m),this;var b=this._events[m];if(b.fn)b.fn===f&&(!p||b.once)&&(!d||b.context===d)&&a(this,m);else{for(var y=0,v=[],x=b.length;y<x;y++)(b[y].fn!==f||p&&!b[y].once||d&&b[y].context!==d)&&v.push(b[y]);v.length?this._events[m]=v.length===1?v[0]:v:a(this,m)}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})(sB);var Bwe=sB.exports;const Uwe=Re(Bwe);var cv=new Uwe,uv="recharts.syncMouseEvents";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 Hwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zwe(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,lB(r.key),r)}}function Wwe(e,t,n){return t&&zwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dv(e,t,n){return t=lB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lB(e){var t=Gwe(e,"string");return Lc(t)=="symbol"?t:t+""}function Gwe(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 String(e)}var Vwe=function(){function e(){Hwe(this,e),dv(this,"activeIndex",0),dv(this,"coordinateList",[]),dv(this,"layout","horizontal")}return Wwe(e,[{key:"setDetails",value:function(n){var r,o=n.coordinateList,i=o===void 0?null:o,a=n.container,s=a===void 0?null:a,c=n.layout,u=c===void 0?null:c,f=n.offset,d=f===void 0?null:f,p=n.mouseHandlerCallback,m=p===void 0?null:p;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=m??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 o=this.container.getBoundingClientRect(),i=o.x,a=o.y,s=o.height,c=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,d=i+c+u,p=a+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:d,pageY:p})}}}])}();function Kwe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],o=e==null?void 0:e[1];if(r&&o&&q(r)&&q(o))return!0}return!1}function Ywe(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-o,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function cB(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle,a=Ct(t,n,r,o),s=Ct(t,n,r,i);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function qwe(e,t,n){var r,o,i,a;if(e==="horizontal")r=t.x,i=r,o=n.top,a=n.top+n.height;else if(e==="vertical")o=t.y,a=o,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,c=t.cy,u=t.innerRadius,f=t.outerRadius,d=t.angle,p=Ct(s,c,u,d),m=Ct(s,c,f,d);r=p.x,o=p.y,i=m.x,a=m.y}else return cB(t);return[{x:r,y:o},{x:i,y:a}]}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)}function e_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e_(Object(n),!0).forEach(function(r){Xwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xwe(e,t,n){return t=Zwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zwe(e){var t=Qwe(e,"string");return Fc(t)=="symbol"?t:t+""}function Qwe(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 Jwe(e){var t,n,r=e.element,o=e.tooltipEventType,i=e.isActive,a=e.activeCoordinate,s=e.activePayload,c=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,d=e.layout,p=e.chartName,m=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!m||!i||!a||p!=="ScatterChart"&&o!=="axis")return null;var b,y=Eg;if(p==="ScatterChart")b=a,y=Jye;else if(p==="BarChart")b=Ywe(d,a,c,f),y=Hb;else if(d==="radial"){var v=cB(a),x=v.cx,g=v.cy,w=v.radius,E=v.startAngle,A=v.endAngle;b={cx:x,cy:g,startAngle:E,endAngle:A,innerRadius:w,outerRadius:w},y=f4}else b={points:qwe(d,a,c)},y=Eg;var S=nd(nd(nd(nd({stroke:"#ccc",pointerEvents:"none"},c),b),Ne(m,!1)),{},{payload:s,payloadIndex:u,className:_e("recharts-tooltip-cursor",m.className)});return h.isValidElement(m)?h.cloneElement(m,S):h.createElement(y,S)}var eSe=["item"],tSe=["children","className","width","height","style","compact","title","desc"];function ps(e){"@babel/helpers - typeof";return ps=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},ps(e)}function xa(){return xa=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},xa.apply(this,arguments)}function t_(e,t){return oSe(e)||rSe(e,t)||dB(e,t)||nSe()}function nSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
569
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rSe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function oSe(e){if(Array.isArray(e))return e}function n_(e,t){if(e==null)return{};var n=iSe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(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 aSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sSe(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,fB(r.key),r)}}function lSe(e,t,n){return t&&sSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cSe(e,t,n){return t=up(t),uSe(e,uB()?Reflect.construct(t,n||[],up(e).constructor):t.apply(e,n))}function uSe(e,t){if(t&&(ps(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dSe(e)}function dSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uB=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},up(e)}function fSe(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&&tx(e,t)}function tx(e,t){return tx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},tx(e,t)}function hs(e){return mSe(e)||hSe(e)||dB(e)||pSe()}function pSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
570
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dB(e,t){if(e){if(typeof e=="string")return nx(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 nx(e,t)}}function hSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mSe(e){if(Array.isArray(e))return nx(e)}function nx(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 r_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r_(Object(n),!0).forEach(function(r){de(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function de(e,t,n){return t=fB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fB(e){var t=vSe(e,"string");return ps(t)=="symbol"?t:t+""}function vSe(e,t){if(ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ySe={xAxis:["bottom","top"],yAxis:["left","right"]},gSe={width:"100%",height:"100%"},pB={x:0,y:0};function rd(e){return e}var xSe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},bSe=function(t,n,r,o){var i=n.find(function(f){return f&&f.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:o.y};if(t==="vertical")return{x:o.x,y:i.coordinate};if(t==="centric"){var a=i.coordinate,s=o.radius;return z(z(z({},o),Ct(o.cx,o.cy,s,a)),{},{angle:a,radius:s})}var c=i.coordinate,u=o.angle;return z(z(z({},o),Ct(o.cx,o.cy,c,u)),{},{angle:u,radius:c})}return pB},Uh=function(t,n){var r=n.graphicalItems,o=n.dataStartIndex,i=n.dataEndIndex,a=(r??[]).reduce(function(s,c){var u=c.props.data;return u&&u.length?[].concat(hs(s),hs(u)):s},[]);return a.length>0?a:t&&t.length&&q(o)&&q(i)?t.slice(o,i+1):[]};function hB(e){return e==="number"?[0,"auto"]:void 0}var rx=function(t,n,r,o){var i=t.graphicalItems,a=t.tooltipAxis,s=Uh(n,t);return r<0||!i||!i.length||r>=s.length?null:i.reduce(function(c,u){var f,d=(f=u.props.data)!==null&&f!==void 0?f:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(a.dataKey&&!a.allowDuplicatedCategory){var m=d===void 0?s:d;p=df(m,a.dataKey,o)}else p=d&&d[r]||s[r];return p?[].concat(hs(c),[c4(u,p)]):c},[])},o_=function(t,n,r,o){var i=o||{x:t.chartX,y:t.chartY},a=xSe(i,r),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,f=Phe(a,s,u,c);if(f>=0&&u){var d=u[f]&&u[f].value,p=rx(t,n,f,d),m=bSe(r,s,f,i);return{activeTooltipIndex:f,activeLabel:d,activePayload:p,activeCoordinate:m}}return null},wSe=function(t,n){var r=n.axes,o=n.graphicalItems,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,p=t.stackOffset,m=a4(f,i);return r.reduce(function(b,y){var v,x=y.type.defaultProps!==void 0?z(z({},y.type.defaultProps),y.props):y.props,g=x.type,w=x.dataKey,E=x.allowDataOverflow,A=x.allowDuplicatedCategory,S=x.scale,N=x.ticks,_=x.includeHidden,O=x[a];if(b[O])return b;var T=Uh(t.data,{graphicalItems:o.filter(function(W){var J,ce=a in W.props?W.props[a]:(J=W.type.defaultProps)===null||J===void 0?void 0:J[a];return ce===O}),dataStartIndex:c,dataEndIndex:u}),j=T.length,I,$,C;Kwe(x.domain,E,g)&&(I=xg(x.domain,null,E),m&&(g==="number"||S!=="auto")&&(C=_l(T,w,"category")));var P=hB(g);if(!I||I.length===0){var M,L=(M=x.domain)!==null&&M!==void 0?M:P;if(w){if(I=_l(T,w,g),g==="category"&&m){var R=gJ(I);A&&R?($=I,I=Zf(0,j)):A||(I=FE(L,I,y).reduce(function(W,J){return W.indexOf(J)>=0?W:[].concat(hs(W),[J])},[]))}else if(g==="category")A?I=I.filter(function(W){return W!==""&&!Se(W)}):I=FE(L,I,y).reduce(function(W,J){return W.indexOf(J)>=0||J===""||Se(J)?W:[].concat(hs(W),[J])},[]);else if(g==="number"){var k=Dhe(T,o.filter(function(W){var J,ce,Ee=a in W.props?W.props[a]:(J=W.type.defaultProps)===null||J===void 0?void 0:J[a],we="hide"in W.props?W.props.hide:(ce=W.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return Ee===O&&(_||!we)}),w,i,f);k&&(I=k)}m&&(g==="number"||S!=="auto")&&(C=_l(T,w,"category"))}else m?I=Zf(0,j):s&&s[O]&&s[O].hasStack&&g==="number"?I=p==="expand"?[0,1]:l4(s[O].stackGroups,c,u):I=i4(T,o.filter(function(W){var J=a in W.props?W.props[a]:W.type.defaultProps[a],ce="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return J===O&&(_||!ce)}),g,f,!0);if(g==="number")I=ex(d,I,O,i,N),L&&(I=xg(L,I,E));else if(g==="category"&&L){var H=L,G=I.every(function(W){return H.indexOf(W)>=0});G&&(I=H)}}return z(z({},b),{},de({},O,z(z({},x),{},{axisType:i,domain:I,categoricalDomain:C,duplicateDomain:$,originalDomain:(v=x.domain)!==null&&v!==void 0?v:P,isCategorical:m,layout:f})))},{})},SSe=function(t,n){var r=n.graphicalItems,o=n.Axis,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,p=Uh(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),m=p.length,b=a4(f,i),y=-1;return r.reduce(function(v,x){var g=x.type.defaultProps!==void 0?z(z({},x.type.defaultProps),x.props):x.props,w=g[a],E=hB("number");if(!v[w]){y++;var A;return b?A=Zf(0,m):s&&s[w]&&s[w].hasStack?(A=l4(s[w].stackGroups,c,u),A=ex(d,A,w,i)):(A=xg(E,i4(p,r.filter(function(S){var N,_,O=a in S.props?S.props[a]:(N=S.type.defaultProps)===null||N===void 0?void 0:N[a],T="hide"in S.props?S.props.hide:(_=S.type.defaultProps)===null||_===void 0?void 0:_.hide;return O===w&&!T}),"number",f),o.defaultProps.allowDataOverflow),A=ex(d,A,w,i)),z(z({},v),{},de({},w,z(z({axisType:i},o.defaultProps),{},{hide:!0,orientation:Tn(ySe,"".concat(i,".").concat(y%2),null),domain:A,originalDomain:E,isCategorical:b,layout:f})))}return v},{})},ASe=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,i=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.children,d="".concat(o,"Id"),p=Pn(f,i),m={};return p&&p.length?m=wSe(t,{axes:p,graphicalItems:a,axisType:o,axisIdKey:d,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):a&&a.length&&(m=SSe(t,{Axis:i,graphicalItems:a,axisType:o,axisIdKey:d,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),m},ESe=function(t){var n=vo(t),r=Dr(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:mb(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Uf(n,r)}},i_=function(t){var n=t.children,r=t.defaultShowTooltip,o=cn(n,ns),i=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(i=o.props.startIndex),o.props.endIndex>=0&&(a=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},NSe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Lr(n&&n.type);return r&&r.indexOf("Bar")>=0})},a_=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"}},_Se=function(t,n){var r=t.props,o=t.graphicalItems,i=t.xAxisMap,a=i===void 0?{}:i,s=t.yAxisMap,c=s===void 0?{}:s,u=r.width,f=r.height,d=r.children,p=r.margin||{},m=cn(d,ns),b=cn(d,mi),y=Object.keys(c).reduce(function(A,S){var N=c[S],_=N.orientation;return!N.mirror&&!N.hide?z(z({},A),{},de({},_,A[_]+N.width)):A},{left:p.left||0,right:p.right||0}),v=Object.keys(a).reduce(function(A,S){var N=a[S],_=N.orientation;return!N.mirror&&!N.hide?z(z({},A),{},de({},_,Tn(A,"".concat(_))+N.height)):A},{top:p.top||0,bottom:p.bottom||0}),x=z(z({},v),y),g=x.bottom;m&&(x.bottom+=m.props.height||ns.defaultProps.height),b&&n&&(x=khe(x,o,r,n));var w=u-x.left-x.right,E=f-x.top-x.bottom;return z(z({brushBottom:g},x),{},{width:Math.max(w,0),height:Math.max(E,0)})},jSe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},mB=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,i=o===void 0?"axis":o,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,c=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,p=function(x,g){var w=g.graphicalItems,E=g.stackGroups,A=g.offset,S=g.updateId,N=g.dataStartIndex,_=g.dataEndIndex,O=x.barSize,T=x.layout,j=x.barGap,I=x.barCategoryGap,$=x.maxBarSize,C=a_(T),P=C.numericAxisName,M=C.cateAxisName,L=NSe(w),R=[];return w.forEach(function(k,H){var G=Uh(x.data,{graphicalItems:[k],dataStartIndex:N,dataEndIndex:_}),W=k.type.defaultProps!==void 0?z(z({},k.type.defaultProps),k.props):k.props,J=W.dataKey,ce=W.maxBarSize,Ee=W["".concat(P,"Id")],we=W["".concat(M,"Id")],te={},me=c.reduce(function(Zo,Qo){var Vh=g["".concat(Qo.axisType,"Map")],iw=W["".concat(Qo.axisType,"Id")];Vh&&Vh[iw]||Qo.axisType==="zAxis"||Pi();var aw=Vh[iw];return z(z({},Zo),{},de(de({},Qo.axisType,aw),"".concat(Qo.axisType,"Ticks"),Dr(aw)))},te),V=me[M],Q=me["".concat(M,"Ticks")],B=E&&E[Ee]&&E[Ee].hasStack&&Yhe(k,E[Ee].stackGroups),F=Lr(k.type).indexOf("Bar")>=0,pe=Uf(V,Q),le=[],Be=L&&Ihe({barSize:O,stackGroups:E,totalSize:jSe(me,M)});if(F){var Ue,lt,ir=Se(ce)?$:ce,Ln=(Ue=(lt=Uf(V,Q,!0))!==null&&lt!==void 0?lt:ir)!==null&&Ue!==void 0?Ue:0;le=Rhe({barGap:j,barCategoryGap:I,bandSize:Ln!==pe?Ln:pe,sizeList:Be[we],maxBarSize:ir}),Ln!==pe&&(le=le.map(function(Zo){return z(z({},Zo),{},{position:z(z({},Zo.position),{},{offset:Zo.position.offset-Ln/2})})}))}var vu=k&&k.type&&k.type.getComposedData;vu&&R.push({props:z(z({},vu(z(z({},me),{},{displayedData:G,props:x,dataKey:J,item:k,bandSize:pe,barPosition:le,offset:A,stackedData:B,layout:T,dataStartIndex:N,dataEndIndex:_}))),{},de(de(de({key:k.key||"item-".concat(H)},P,me[P]),M,me[M]),"animationId",S)),childIndex:PJ(k,x.children),item:k})}),R},m=function(x,g){var w=x.props,E=x.dataStartIndex,A=x.dataEndIndex,S=x.updateId;if(!PA({props:w}))return null;var N=w.children,_=w.layout,O=w.stackOffset,T=w.data,j=w.reverseStackOrder,I=a_(_),$=I.numericAxisName,C=I.cateAxisName,P=Pn(N,r),M=Ghe(T,P,"".concat($,"Id"),"".concat(C,"Id"),O,j),L=c.reduce(function(W,J){var ce="".concat(J.axisType,"Map");return z(z({},W),{},de({},ce,ASe(w,z(z({},J),{},{graphicalItems:P,stackGroups:J.axisType===$&&M,dataStartIndex:E,dataEndIndex:A}))))},{}),R=_Se(z(z({},L),{},{props:w,graphicalItems:P}),g==null?void 0:g.legendBBox);Object.keys(L).forEach(function(W){L[W]=f(w,L[W],R,W.replace("Map",""),n)});var k=L["".concat(C,"Map")],H=ESe(k),G=p(w,z(z({},L),{},{dataStartIndex:E,dataEndIndex:A,updateId:S,graphicalItems:P,stackGroups:M,offset:R}));return z(z({formattedGraphicalItems:G,graphicalItems:P,offset:R,stackGroups:M},H),L)},b=function(v){function x(g){var w,E,A;return aSe(this,x),A=cSe(this,x,[g]),de(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),de(A,"accessibilityManager",new Vwe),de(A,"handleLegendBBoxUpdate",function(S){if(S){var N=A.state,_=N.dataStartIndex,O=N.dataEndIndex,T=N.updateId;A.setState(z({legendBBox:S},m({props:A.props,dataStartIndex:_,dataEndIndex:O,updateId:T},z(z({},A.state),{},{legendBBox:S}))))}}),de(A,"handleReceiveSyncEvent",function(S,N,_){if(A.props.syncId===S){if(_===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(N)}}),de(A,"handleBrushChange",function(S){var N=S.startIndex,_=S.endIndex;if(N!==A.state.dataStartIndex||_!==A.state.dataEndIndex){var O=A.state.updateId;A.setState(function(){return z({dataStartIndex:N,dataEndIndex:_},m({props:A.props,dataStartIndex:N,dataEndIndex:_,updateId:O},A.state))}),A.triggerSyncEvent({dataStartIndex:N,dataEndIndex:_})}}),de(A,"handleMouseEnter",function(S){var N=A.getMouseInfo(S);if(N){var _=z(z({},N),{},{isTooltipActive:!0});A.setState(_),A.triggerSyncEvent(_);var O=A.props.onMouseEnter;be(O)&&O(_,S)}}),de(A,"triggeredAfterMouseMove",function(S){var N=A.getMouseInfo(S),_=N?z(z({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(_),A.triggerSyncEvent(_);var O=A.props.onMouseMove;be(O)&&O(_,S)}),de(A,"handleItemMouseEnter",function(S){A.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),de(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),de(A,"handleMouseMove",function(S){S.persist(),A.throttleTriggeredAfterMouseMove(S)}),de(A,"handleMouseLeave",function(S){A.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};A.setState(N),A.triggerSyncEvent(N);var _=A.props.onMouseLeave;be(_)&&_(N,S)}),de(A,"handleOuterEvent",function(S){var N=TJ(S),_=Tn(A.props,"".concat(N));if(N&&be(_)){var O,T;/.*touch.*/i.test(N)?T=A.getMouseInfo(S.changedTouches[0]):T=A.getMouseInfo(S),_((O=T)!==null&&O!==void 0?O:{},S)}}),de(A,"handleClick",function(S){var N=A.getMouseInfo(S);if(N){var _=z(z({},N),{},{isTooltipActive:!0});A.setState(_),A.triggerSyncEvent(_);var O=A.props.onClick;be(O)&&O(_,S)}}),de(A,"handleMouseDown",function(S){var N=A.props.onMouseDown;if(be(N)){var _=A.getMouseInfo(S);N(_,S)}}),de(A,"handleMouseUp",function(S){var N=A.props.onMouseUp;if(be(N)){var _=A.getMouseInfo(S);N(_,S)}}),de(A,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),de(A,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&A.handleMouseDown(S.changedTouches[0])}),de(A,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&A.handleMouseUp(S.changedTouches[0])}),de(A,"handleDoubleClick",function(S){var N=A.props.onDoubleClick;if(be(N)){var _=A.getMouseInfo(S);N(_,S)}}),de(A,"handleContextMenu",function(S){var N=A.props.onContextMenu;if(be(N)){var _=A.getMouseInfo(S);N(_,S)}}),de(A,"triggerSyncEvent",function(S){A.props.syncId!==void 0&&cv.emit(uv,A.props.syncId,S,A.eventEmitterSymbol)}),de(A,"applySyncEvent",function(S){var N=A.props,_=N.layout,O=N.syncMethod,T=A.state.updateId,j=S.dataStartIndex,I=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)A.setState(z({dataStartIndex:j,dataEndIndex:I},m({props:A.props,dataStartIndex:j,dataEndIndex:I,updateId:T},A.state)));else if(S.activeTooltipIndex!==void 0){var $=S.chartX,C=S.chartY,P=S.activeTooltipIndex,M=A.state,L=M.offset,R=M.tooltipTicks;if(!L)return;if(typeof O=="function")P=O(R,S);else if(O==="value"){P=-1;for(var k=0;k<R.length;k++)if(R[k].value===S.activeLabel){P=k;break}}var H=z(z({},L),{},{x:L.left,y:L.top}),G=Math.min($,H.x+H.width),W=Math.min(C,H.y+H.height),J=R[P]&&R[P].value,ce=rx(A.state,A.props.data,P),Ee=R[P]?{x:_==="horizontal"?R[P].coordinate:G,y:_==="horizontal"?W:R[P].coordinate}:pB;A.setState(z(z({},S),{},{activeLabel:J,activeCoordinate:Ee,activePayload:ce,activeTooltipIndex:P}))}else A.setState(S)}),de(A,"renderCursor",function(S){var N,_=A.state,O=_.isTooltipActive,T=_.activeCoordinate,j=_.activePayload,I=_.offset,$=_.activeTooltipIndex,C=_.tooltipAxisBandSize,P=A.getTooltipEventType(),M=(N=S.props.active)!==null&&N!==void 0?N:O,L=A.props.layout,R=S.key||"_recharts-cursor";return D.createElement(Jwe,{key:R,activeCoordinate:T,activePayload:j,activeTooltipIndex:$,chartName:n,element:S,isActive:M,layout:L,offset:I,tooltipAxisBandSize:C,tooltipEventType:P})}),de(A,"renderPolarAxis",function(S,N,_){var O=Tn(S,"type.axisType"),T=Tn(A.state,"".concat(O,"Map")),j=S.type.defaultProps,I=j!==void 0?z(z({},j),S.props):S.props,$=T&&T[I["".concat(O,"Id")]];return h.cloneElement(S,z(z({},$),{},{className:_e(O,$.className),key:S.key||"".concat(N,"-").concat(_),ticks:Dr($,!0)}))}),de(A,"renderPolarGrid",function(S){var N=S.props,_=N.radialLines,O=N.polarAngles,T=N.polarRadius,j=A.state,I=j.radiusAxisMap,$=j.angleAxisMap,C=vo(I),P=vo($),M=P.cx,L=P.cy,R=P.innerRadius,k=P.outerRadius;return h.cloneElement(S,{polarAngles:Array.isArray(O)?O:Dr(P,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(T)?T:Dr(C,!0).map(function(H){return H.coordinate}),cx:M,cy:L,innerRadius:R,outerRadius:k,key:S.key||"polar-grid",radialLines:_})}),de(A,"renderLegend",function(){var S=A.state.formattedGraphicalItems,N=A.props,_=N.children,O=N.width,T=N.height,j=A.props.margin||{},I=O-(j.left||0)-(j.right||0),$=r4({children:_,formattedGraphicalItems:S,legendWidth:I,legendContent:u});if(!$)return null;var C=$.item,P=n_($,eSe);return h.cloneElement(C,z(z({},P),{},{chartWidth:O,chartHeight:T,margin:j,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),de(A,"renderTooltip",function(){var S,N=A.props,_=N.children,O=N.accessibilityLayer,T=cn(_,Wn);if(!T)return null;var j=A.state,I=j.isTooltipActive,$=j.activeCoordinate,C=j.activePayload,P=j.activeLabel,M=j.offset,L=(S=T.props.active)!==null&&S!==void 0?S:I;return h.cloneElement(T,{viewBox:z(z({},M),{},{x:M.left,y:M.top}),active:L,label:P,payload:L?C:[],coordinate:$,accessibilityLayer:O})}),de(A,"renderBrush",function(S){var N=A.props,_=N.margin,O=N.data,T=A.state,j=T.offset,I=T.dataStartIndex,$=T.dataEndIndex,C=T.updateId;return h.cloneElement(S,{key:S.key||"_recharts-brush",onChange:Qu(A.handleBrushChange,S.props.onChange),data:O,x:q(S.props.x)?S.props.x:j.left,y:q(S.props.y)?S.props.y:j.top+j.height+j.brushBottom-(_.bottom||0),width:q(S.props.width)?S.props.width:j.width,startIndex:I,endIndex:$,updateId:"brush-".concat(C)})}),de(A,"renderReferenceElement",function(S,N,_){if(!S)return null;var O=A,T=O.clipPathId,j=A.state,I=j.xAxisMap,$=j.yAxisMap,C=j.offset,P=S.type.defaultProps||{},M=S.props,L=M.xAxisId,R=L===void 0?P.xAxisId:L,k=M.yAxisId,H=k===void 0?P.yAxisId:k;return h.cloneElement(S,{key:S.key||"".concat(N,"-").concat(_),xAxis:I[R],yAxis:$[H],viewBox:{x:C.left,y:C.top,width:C.width,height:C.height},clipPathId:T})}),de(A,"renderActivePoints",function(S){var N=S.item,_=S.activePoint,O=S.basePoint,T=S.childIndex,j=S.isRange,I=[],$=N.props.key,C=N.item.type.defaultProps!==void 0?z(z({},N.item.type.defaultProps),N.item.props):N.item.props,P=C.activeDot,M=C.dataKey,L=z(z({index:T,dataKey:M,cx:_.x,cy:_.y,r:4,fill:Ub(N.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},Ne(P,!1)),ff(P));return I.push(x.renderActiveDot(P,L,"".concat($,"-activePoint-").concat(T))),O?I.push(x.renderActiveDot(P,z(z({},L),{},{cx:O.x,cy:O.y}),"".concat($,"-basePoint-").concat(T))):j&&I.push(null),I}),de(A,"renderGraphicChild",function(S,N,_){var O=A.filterFormatItem(S,N,_);if(!O)return null;var T=A.getTooltipEventType(),j=A.state,I=j.isTooltipActive,$=j.tooltipAxis,C=j.activeTooltipIndex,P=j.activeLabel,M=A.props.children,L=cn(M,Wn),R=O.props,k=R.points,H=R.isRange,G=R.baseLine,W=O.item.type.defaultProps!==void 0?z(z({},O.item.type.defaultProps),O.item.props):O.item.props,J=W.activeDot,ce=W.hide,Ee=W.activeBar,we=W.activeShape,te=!!(!ce&&I&&L&&(J||Ee||we)),me={};T!=="axis"&&L&&L.props.trigger==="click"?me={onClick:Qu(A.handleItemMouseEnter,S.props.onClick)}:T!=="axis"&&(me={onMouseLeave:Qu(A.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:Qu(A.handleItemMouseEnter,S.props.onMouseEnter)});var V=h.cloneElement(S,z(z({},O.props),me));function Q(Qo){return typeof $.dataKey=="function"?$.dataKey(Qo.payload):null}if(te)if(C>=0){var B,F;if($.dataKey&&!$.allowDuplicatedCategory){var pe=typeof $.dataKey=="function"?Q:"payload.".concat($.dataKey.toString());B=df(k,pe,P),F=H&&G&&df(G,pe,P)}else B=k==null?void 0:k[C],F=H&&G&&G[C];if(we||Ee){var le=S.props.activeIndex!==void 0?S.props.activeIndex:C;return[h.cloneElement(S,z(z(z({},O.props),me),{},{activeIndex:le})),null,null]}if(!Se(B))return[V].concat(hs(A.renderActivePoints({item:O,activePoint:B,basePoint:F,childIndex:C,isRange:H})))}else{var Be,Ue=(Be=A.getItemByXY(A.state.activeCoordinate))!==null&&Be!==void 0?Be:{graphicalItem:V},lt=Ue.graphicalItem,ir=lt.item,Ln=ir===void 0?S:ir,vu=lt.childIndex,Zo=z(z(z({},O.props),me),{},{activeIndex:vu});return[h.cloneElement(Ln,Zo),null,null]}return H?[V,null,null]:[V,null]}),de(A,"renderCustomized",function(S,N,_){return h.cloneElement(S,z(z({key:"recharts-customized-".concat(_)},A.props),A.state))}),de(A,"renderMap",{CartesianGrid:{handler:rd,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:rd},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:rd},YAxis:{handler:rd},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((w=g.id)!==null&&w!==void 0?w:su("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=nF(A.triggeredAfterMouseMove,(E=g.throttleDelay)!==null&&E!==void 0?E:1e3/60),A.state={},A}return fSe(x,v),lSe(x,[{key:"componentDidMount",value:function(){var w,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,E=w.children,A=w.data,S=w.height,N=w.layout,_=cn(E,Wn);if(_){var O=_.props.defaultIndex;if(!(typeof O!="number"||O<0||O>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[O]&&this.state.tooltipTicks[O].value,j=rx(this.state,A,O,T),I=this.state.tooltipTicks[O].coordinate,$=(this.state.offset.top+S)/2,C=N==="horizontal",P=C?{x:I,y:$}:{y:I,x:$},M=this.state.formattedGraphicalItems.find(function(R){var k=R.item;return k.type.name==="Scatter"});M&&(P=z(z({},P),M.props.points[O].tooltipPosition),j=M.props.points[O].tooltipPayload);var L={activeTooltipIndex:O,isTooltipActive:!0,activeLabel:T,activePayload:j,activeCoordinate:P};this.setState(L),this.renderCursor(_),this.accessibilityManager.setIndex(O)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var A,S;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(w){ky([cn(w.children,Wn)],[cn(this.props.children,Wn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=cn(this.props.children,Wn);if(w&&typeof w.props.shared=="boolean"){var E=w.props.shared?"axis":"item";return s.indexOf(E)>=0?E:i}return i}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var E=this.container,A=E.getBoundingClientRect(),S=rue(A),N={chartX:Math.round(w.pageX-S.left),chartY:Math.round(w.pageY-S.top)},_=A.width/E.offsetWidth||1,O=this.inRange(N.chartX,N.chartY,_);if(!O)return null;var T=this.state,j=T.xAxisMap,I=T.yAxisMap,$=this.getTooltipEventType(),C=o_(this.state,this.props.data,this.props.layout,O);if($!=="axis"&&j&&I){var P=vo(j).scale,M=vo(I).scale,L=P&&P.invert?P.invert(N.chartX):null,R=M&&M.invert?M.invert(N.chartY):null;return z(z({},N),{},{xValue:L,yValue:R},C)}return C?z(z({},N),C):null}},{key:"inRange",value:function(w,E){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,N=w/A,_=E/A;if(S==="horizontal"||S==="vertical"){var O=this.state.offset,T=N>=O.left&&N<=O.left+O.width&&_>=O.top&&_<=O.top+O.height;return T?{x:N,y:_}:null}var j=this.state,I=j.angleAxisMap,$=j.radiusAxisMap;if(I&&$){var C=vo(I);return HE({x:N,y:_},C)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,E=this.getTooltipEventType(),A=cn(w,Wn),S={};A&&E==="axis"&&(A.props.trigger==="click"?S={onClick:this.handleClick}:S={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 N=ff(this.props,this.handleOuterEvent);return z(z({},N),S)}},{key:"addListener",value:function(){cv.on(uv,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){cv.removeListener(uv,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,E,A){for(var S=this.state.formattedGraphicalItems,N=0,_=S.length;N<_;N++){var O=S[N];if(O.item===w||O.props.key===w.key||E===Lr(O.item.type)&&A===O.childIndex)return O}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,E=this.state.offset,A=E.left,S=E.top,N=E.height,_=E.width;return D.createElement("defs",null,D.createElement("clipPath",{id:w},D.createElement("rect",{x:A,y:S,height:N,width:_})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(E,A){var S=t_(A,2),N=S[0],_=S[1];return z(z({},E),{},de({},N,_.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(E,A){var S=t_(A,2),N=S[0],_=S[1];return z(z({},E),{},de({},N,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(w){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(w){var E=this.state,A=E.formattedGraphicalItems,S=E.activeItem;if(A&&A.length)for(var N=0,_=A.length;N<_;N++){var O=A[N],T=O.props,j=O.item,I=j.type.defaultProps!==void 0?z(z({},j.type.defaultProps),j.props):j.props,$=Lr(j.type);if($==="Bar"){var C=(T.data||[]).find(function(R){return zye(w,R)});if(C)return{graphicalItem:O,payload:C}}else if($==="RadialBar"){var P=(T.data||[]).find(function(R){return HE(w,R)});if(P)return{graphicalItem:O,payload:P}}else if(kh(O,S)||Mh(O,S)||Rc(O,S)){var M=Vge({graphicalItem:O,activeTooltipItem:S,itemData:I.data}),L=I.activeIndex===void 0?M:I.activeIndex;return{graphicalItem:z(z({},O),{},{childIndex:L}),payload:Rc(O,S)?I.data[M]:O.props.data[M]}}}return null}},{key:"render",value:function(){var w=this;if(!PA(this))return null;var E=this.props,A=E.children,S=E.className,N=E.width,_=E.height,O=E.style,T=E.compact,j=E.title,I=E.desc,$=n_(E,tSe),C=Ne($,!1);if(T)return D.createElement($N,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement(Dy,xa({},C,{width:N,height:_,title:j,desc:I}),this.renderClipPath(),RA(A,this.renderMap)));if(this.props.accessibilityLayer){var P,M;C.tabIndex=(P=this.props.tabIndex)!==null&&P!==void 0?P:0,C.role=(M=this.props.role)!==null&&M!==void 0?M:"application",C.onKeyDown=function(R){w.accessibilityManager.keyboardEvent(R)},C.onFocus=function(){w.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return D.createElement($N,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement("div",xa({className:_e("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:N,height:_},O)},L,{ref:function(k){w.container=k}}),D.createElement(Dy,xa({},C,{width:N,height:_,title:j,desc:I,style:gSe}),this.renderClipPath(),RA(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(h.Component);de(b,"displayName",n),de(b,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),de(b,"getDerivedStateFromProps",function(v,x){var g=v.dataKey,w=v.data,E=v.children,A=v.width,S=v.height,N=v.layout,_=v.stackOffset,O=v.margin,T=x.dataStartIndex,j=x.dataEndIndex;if(x.updateId===void 0){var I=i_(v);return z(z(z({},I),{},{updateId:0},m(z(z({props:v},I),{},{updateId:0}),x)),{},{prevDataKey:g,prevData:w,prevWidth:A,prevHeight:S,prevLayout:N,prevStackOffset:_,prevMargin:O,prevChildren:E})}if(g!==x.prevDataKey||w!==x.prevData||A!==x.prevWidth||S!==x.prevHeight||N!==x.prevLayout||_!==x.prevStackOffset||!Pa(O,x.prevMargin)){var $=i_(v),C={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},P=z(z({},o_(x,w,N)),{},{updateId:x.updateId+1}),M=z(z(z({},$),C),P);return z(z(z({},M),m(z({props:v},M),x)),{},{prevDataKey:g,prevData:w,prevWidth:A,prevHeight:S,prevLayout:N,prevStackOffset:_,prevMargin:O,prevChildren:E})}if(!ky(E,x.prevChildren)){var L,R,k,H,G=cn(E,ns),W=G&&(L=(R=G.props)===null||R===void 0?void 0:R.startIndex)!==null&&L!==void 0?L:T,J=G&&(k=(H=G.props)===null||H===void 0?void 0:H.endIndex)!==null&&k!==void 0?k:j,ce=W!==T||J!==j,Ee=!Se(w),we=Ee&&!ce?x.updateId:x.updateId+1;return z(z({updateId:we},m(z(z({props:v},x),{},{updateId:we,dataStartIndex:W,dataEndIndex:J}),x)),{},{prevChildren:E,dataStartIndex:W,dataEndIndex:J})}return null}),de(b,"renderActiveDot",function(v,x,g){var w;return h.isValidElement(v)?w=h.cloneElement(v,x):be(v)?w=v(x):w=D.createElement(zb,x),D.createElement(it,{className:"recharts-active-dot",key:g},w)});var y=h.forwardRef(function(x,g){return D.createElement(b,xa({},x,{ref:g}))});return y.displayName=b.displayName,y},CSe=mB({chartName:"LineChart",GraphicalChild:hu,axisComponents:[{axisType:"xAxis",AxisComp:us},{axisType:"yAxis",AxisComp:fs}],formatAxisMap:R4}),OSe=mB({chartName:"BarChart",GraphicalChild:qi,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:us},{axisType:"yAxis",AxisComp:fs}],formatAxisMap:R4});function TSe(){const{id:e}=$i(),[t,n]=h.useState(null),[r,o]=h.useState(null),[i,a]=h.useState(!0),[s,c]=h.useState(null),[u,f]=h.useState("30d"),[d,p]=h.useState("daily");if(h.useEffect(()=>{if(!e)return;async function x(){try{a(!0);const[g,w]=await Promise.all([R0(e),f7(e,{period:u,granularity:d})]);n(g),o(w.data),c(null)}catch(g){c(g instanceof Error?g.message:"Failed to load history")}finally{a(!1)}}x()},[e,u,d]),i)return l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});if(s)return l.jsx("div",{className:"p-6",children:l.jsx("div",{className:"bg-destructive/10 border border-destructive rounded-lg p-4",children:l.jsx("p",{className:"text-destructive",children:s})})});if(!t||!r)return l.jsx("div",{className:"p-6",children:"Source not found"});const{summary:m,trend:b,failure_frequency:y,recent_validations:v}=r;return l.jsxs("div",{className:"p-6 space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx(Pe,{to:`/sources/${e}`,children:l.jsxs(Y,{variant:"ghost",size:"sm",children:[l.jsx(Ui,{className:"h-4 w-4 mr-2"}),"Back"]})}),l.jsxs("div",{children:[l.jsxs("h1",{className:"text-2xl font-bold",children:[t.name," - History"]}),l.jsx("p",{className:"text-muted-foreground",children:"Validation trends and analytics"})]})]}),l.jsxs("div",{className:"flex gap-2",children:[l.jsxs(at,{value:u,onValueChange:x=>f(x),children:[l.jsx(nt,{className:"w-32",children:l.jsx(st,{})}),l.jsxs(rt,{children:[l.jsx(fe,{value:"7d",children:"Last 7 days"}),l.jsx(fe,{value:"30d",children:"Last 30 days"}),l.jsx(fe,{value:"90d",children:"Last 90 days"})]})]}),l.jsxs(at,{value:d,onValueChange:x=>p(x),children:[l.jsx(nt,{className:"w-32",children:l.jsx(st,{})}),l.jsxs(rt,{children:[l.jsx(fe,{value:"hourly",children:"Hourly"}),l.jsx(fe,{value:"daily",children:"Daily"}),l.jsx(fe,{value:"weekly",children:"Weekly"})]})]})]})]}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsx(xe,{className:"text-sm font-medium text-muted-foreground",children:"Total Runs"})}),l.jsx(Z,{children:l.jsx("div",{className:"text-2xl font-bold",children:m.total_runs})})]}),l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsx(xe,{className:"text-sm font-medium text-muted-foreground",children:"Passed"})}),l.jsx(Z,{children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Zd,{className:"h-5 w-5 text-green-500"}),l.jsx("span",{className:"text-2xl font-bold text-green-600",children:m.passed_runs})]})})]}),l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsx(xe,{className:"text-sm font-medium text-muted-foreground",children:"Failed"})}),l.jsx(Z,{children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Ai,{className:"h-5 w-5 text-red-500"}),l.jsx("span",{className:"text-2xl font-bold text-red-600",children:m.failed_runs})]})})]}),l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsx(xe,{className:"text-sm font-medium text-muted-foreground",children:"Success Rate"})}),l.jsx(Z,{children:l.jsxs("div",{className:"flex items-center gap-2",children:[m.success_rate>=80?l.jsx(I6,{className:"h-5 w-5 text-green-500"}):l.jsx(P6,{className:"h-5 w-5 text-red-500"}),l.jsxs("span",{className:`text-2xl font-bold ${m.success_rate>=80?"text-green-600":"text-red-600"}`,children:[m.success_rate,"%"]})]})})]})]}),l.jsxs(X,{children:[l.jsxs(ve,{children:[l.jsx(xe,{children:"Success Rate Trend"}),l.jsx(yr,{children:"Validation success rate over time"})]}),l.jsx(Z,{children:b.length>0?l.jsx(T1,{width:"100%",height:300,children:l.jsxs(CSe,{data:b,children:[l.jsx(Vg,{strokeDasharray:"3 3"}),l.jsx(us,{dataKey:"date"}),l.jsx(fs,{domain:[0,100]}),l.jsx(Wn,{}),l.jsx(mi,{}),l.jsx(hu,{type:"monotone",dataKey:"success_rate",stroke:"#fd9e4b",strokeWidth:2,name:"Success Rate (%)"})]})}):l.jsx("div",{className:"flex items-center justify-center h-64 text-muted-foreground",children:"No data for the selected period"})})]}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[l.jsxs(X,{children:[l.jsxs(ve,{children:[l.jsx(xe,{children:"Top Failure Types"}),l.jsx(yr,{children:"Most common validation issues"})]}),l.jsx(Z,{children:y.length>0?l.jsx(T1,{width:"100%",height:250,children:l.jsxs(OSe,{data:y,layout:"vertical",children:[l.jsx(Vg,{strokeDasharray:"3 3"}),l.jsx(us,{type:"number"}),l.jsx(fs,{type:"category",dataKey:"issue",width:150}),l.jsx(Wn,{}),l.jsx(qi,{dataKey:"count",fill:"#fd9e4b"})]})}):l.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No failures recorded"})})]}),l.jsxs(X,{children:[l.jsxs(ve,{children:[l.jsx(xe,{children:"Recent Validations"}),l.jsx(yr,{children:"Latest validation runs"})]}),l.jsx(Z,{children:l.jsx("div",{className:"space-y-3",children:v.length>0?v.map(x=>l.jsxs(Pe,{to:`/validations/${x.id}`,className:"flex items-center justify-between p-3 rounded-lg border hover:bg-muted/50 transition-colors",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[x.passed?l.jsx(Zd,{className:"h-4 w-4 text-green-500"}):l.jsx(Ai,{className:"h-4 w-4 text-red-500"}),l.jsxs("div",{children:[l.jsxs("div",{className:"font-medium",children:[x.passed?"Passed":"Failed",x.has_critical&&l.jsx(ae,{variant:"destructive",className:"ml-2",children:"Critical"})]}),l.jsx("div",{className:"text-xs text-muted-foreground",children:yn(x.created_at)})]})]}),l.jsxs(ae,{variant:"outline",children:[x.total_issues," issues"]})]},x.id)):l.jsx("div",{className:"text-center text-muted-foreground py-8",children:"No validations yet"})})})]})]})]})}const Ol=h.forwardRef(({className:e,...t},n)=>l.jsx("div",{className:"relative w-full overflow-auto",children:l.jsx("table",{ref:n,className:oe("w-full caption-bottom text-sm",e),...t})}));Ol.displayName="Table";const Tl=h.forwardRef(({className:e,...t},n)=>l.jsx("thead",{ref:n,className:oe("[&_tr]:border-b",e),...t}));Tl.displayName="TableHeader";const Pl=h.forwardRef(({className:e,...t},n)=>l.jsx("tbody",{ref:n,className:oe("[&_tr:last-child]:border-0",e),...t}));Pl.displayName="TableBody";const PSe=h.forwardRef(({className:e,...t},n)=>l.jsx("tfoot",{ref:n,className:oe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));PSe.displayName="TableFooter";const lr=h.forwardRef(({className:e,...t},n)=>l.jsx("tr",{ref:n,className:oe("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));lr.displayName="TableRow";const Xe=h.forwardRef(({className:e,...t},n)=>l.jsx("th",{ref:n,className:oe("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Xe.displayName="TableHead";const Ke=h.forwardRef(({className:e,...t},n)=>l.jsx("td",{ref:n,className:oe("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Ke.displayName="TableCell";const ISe=h.forwardRef(({className:e,...t},n)=>l.jsx("caption",{ref:n,className:oe("mt-4 text-sm text-muted-foreground",e),...t}));ISe.displayName="TableCaption";function ii(e){return e&&parseFloat(e.replace("%",""))||0}function RSe(e){if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,r)).toFixed(1))} ${n[r]}`}function kSe(e){const t=ii(e);return t===0?"outline":t<5?"secondary":t<20?"default":"destructive"}function MSe(e){const t=ii(e);return t>=99?"outline":t>=80?"secondary":t>=20?"default":"destructive"}function DSe(){const{id:e}=$i(),{toast:t}=It(),[n,r]=h.useState(null),[o,i]=h.useState(null),[a,s]=h.useState(!0),[c,u]=h.useState(!1),[f,d]=h.useState(!1),[p,m]=h.useState(null),[b,y]=h.useState(!1),[v,x]=h.useState(null),[g,w]=h.useState(!1),[E,A]=h.useState({key:"name",direction:"asc"}),[S,N]=h.useState("all");h.useEffect(()=>{if(!e)return;async function C(){try{s(!0);const P=await R0(e);r(P),m(null)}catch(P){m(P instanceof Error?P.message:"Failed to load source")}finally{s(!1)}}C()},[e]);const _=h.useCallback(async()=>{if(e)try{u(!0);const C=await d7(e);i(C),t({title:"Profile Complete",description:`Analyzed ${C.row_count.toLocaleString()} rows across ${C.column_count} columns`})}catch(C){t({variant:"destructive",title:"Profiling Failed",description:C instanceof Error?C.message:"Unknown error"})}finally{u(!1)}},[e,t]),O=h.useCallback(async()=>{if(e)try{d(!0);const C=await LM(e,{infer_constraints:!0});x(C),y(!0),t({title:"Schema Generated",description:`Generated schema with ${C.column_count} columns`})}catch(C){t({variant:"destructive",title:"Schema Generation Failed",description:C instanceof Error?C.message:"Unknown error"})}finally{d(!1)}},[e,t]),T=h.useCallback(async()=>{if(v!=null&&v.schema_yaml)try{await navigator.clipboard.writeText(v.schema_yaml),w(!0),setTimeout(()=>w(!1),2e3),t({title:"Copied",description:"Schema YAML copied to clipboard"})}catch{t({variant:"destructive",title:"Copy Failed",description:"Failed to copy to clipboard"})}},[v,t]),j=h.useCallback(C=>{A(P=>({key:C,direction:P.key===C&&P.direction==="asc"?"desc":"asc"}))},[]),I=o!=null&&o.columns?[...new Set(o.columns.map(C=>C.dtype))].sort():[],$=o!=null&&o.columns?[...o.columns].filter(C=>S==="all"||C.dtype===S).sort((C,P)=>{const{key:M,direction:L}=E;let R=0;switch(M){case"name":R=C.name.localeCompare(P.name);break;case"dtype":R=C.dtype.localeCompare(P.dtype);break;case"null_pct":R=ii(C.null_pct)-ii(P.null_pct);break;case"unique_pct":R=ii(C.unique_pct)-ii(P.unique_pct);break}return L==="asc"?R:-R}):[];return a?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):p?l.jsx("div",{className:"p-6",children:l.jsxs("div",{className:"bg-destructive/10 border border-destructive rounded-lg p-4 flex items-center gap-3",children:[l.jsx(Rk,{className:"h-5 w-5 text-destructive"}),l.jsx("p",{className:"text-destructive",children:p})]})}):n?l.jsxs("div",{className:"p-6 space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx(Pe,{to:`/sources/${e}`,children:l.jsxs(Y,{variant:"ghost",size:"sm",children:[l.jsx(Ui,{className:"h-4 w-4 mr-2"}),"Back"]})}),l.jsxs("div",{children:[l.jsxs("h1",{className:"text-2xl font-bold",children:[n.name," - Profile"]}),l.jsx("p",{className:"text-muted-foreground",children:"Data profiling and schema generation"})]})]}),l.jsxs("div",{className:"flex gap-2",children:[l.jsxs(Y,{variant:"outline",onClick:O,disabled:f||c,children:[l.jsx(Jd,{className:"h-4 w-4 mr-2"}),f?"Generating...":"Generate Schema"]}),l.jsx(Y,{onClick:_,disabled:c||f,children:c?l.jsxs(l.Fragment,{children:[l.jsx(xd,{className:"h-4 w-4 mr-2 animate-spin"}),"Profiling..."]}):l.jsxs(l.Fragment,{children:[l.jsx(my,{className:"h-4 w-4 mr-2"}),"Run Profile"]})})]})]}),!o&&l.jsx(X,{children:l.jsxs(Z,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(my,{className:"h-12 w-12 text-muted-foreground mb-4"}),l.jsx("h3",{className:"text-lg font-medium mb-2",children:"No Profile Data"}),l.jsx("p",{className:"text-muted-foreground text-center mb-4 max-w-md",children:"Run a profile to analyze your data structure, column types, null percentages, and unique value distributions."}),l.jsx(Y,{onClick:_,disabled:c,children:c?"Profiling...":"Run Profile"})]})}),o&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsxs(xe,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[l.jsx(y6,{className:"h-4 w-4"}),"Rows"]})}),l.jsx(Z,{children:l.jsx("div",{className:"text-2xl font-bold",children:Rr(o.row_count)})})]}),l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsxs(xe,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[l.jsx(R6,{className:"h-4 w-4"}),"Columns"]})}),l.jsx(Z,{children:l.jsx("div",{className:"text-2xl font-bold",children:o.column_count})})]}),l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsxs(xe,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[l.jsx(hn,{className:"h-4 w-4"}),"Size"]})}),l.jsx(Z,{children:l.jsx("div",{className:"text-2xl font-bold",children:RSe(o.size_bytes)})})]}),l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsxs(xe,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[l.jsx(E6,{className:"h-4 w-4"}),"Avg Null %"]})}),l.jsx(Z,{children:l.jsxs("div",{className:"text-2xl font-bold",children:[o.columns.length>0?(o.columns.reduce((C,P)=>C+ii(P.null_pct),0)/o.columns.length).toFixed(1):0,"%"]})})]})]}),l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx(xe,{children:"Column Statistics"}),l.jsx(yr,{children:"Detailed statistics for each column"})]}),l.jsxs(at,{value:S,onValueChange:N,children:[l.jsx(nt,{className:"w-40",children:l.jsx(st,{placeholder:"Filter by type"})}),l.jsxs(rt,{children:[l.jsx(fe,{value:"all",children:"All Types"}),I.map(C=>l.jsx(fe,{value:C,children:C},C))]})]})]})}),l.jsxs(Z,{children:[l.jsx("div",{className:"rounded-md border",children:l.jsxs(Ol,{children:[l.jsx(Tl,{children:l.jsxs(lr,{children:[l.jsx(Xe,{children:l.jsxs(Y,{variant:"ghost",size:"sm",className:"h-8 -ml-3 font-semibold",onClick:()=>j("name"),children:["Column",l.jsx(Mu,{className:"ml-2 h-3 w-3"})]})}),l.jsx(Xe,{children:l.jsxs(Y,{variant:"ghost",size:"sm",className:"h-8 -ml-3 font-semibold",onClick:()=>j("dtype"),children:["Type",l.jsx(Mu,{className:"ml-2 h-3 w-3"})]})}),l.jsx(Xe,{children:l.jsxs(Y,{variant:"ghost",size:"sm",className:"h-8 -ml-3 font-semibold",onClick:()=>j("null_pct"),children:["Nulls",l.jsx(Mu,{className:"ml-2 h-3 w-3"})]})}),l.jsx(Xe,{children:l.jsxs(Y,{variant:"ghost",size:"sm",className:"h-8 -ml-3 font-semibold",onClick:()=>j("unique_pct"),children:["Unique",l.jsx(Mu,{className:"ml-2 h-3 w-3"})]})}),l.jsx(Xe,{children:"Min"}),l.jsx(Xe,{children:"Max"}),l.jsx(Xe,{children:"Mean"}),l.jsx(Xe,{children:"Std"})]})}),l.jsx(Pl,{children:$.length===0?l.jsx(lr,{children:l.jsx(Ke,{colSpan:8,className:"text-center py-8 text-muted-foreground",children:"No columns match the filter"})}):$.map(C=>l.jsxs(lr,{children:[l.jsx(Ke,{className:"font-mono text-sm font-medium",children:C.name}),l.jsx(Ke,{children:l.jsx(ae,{variant:"outline",children:C.dtype})}),l.jsx(Ke,{children:l.jsx(ae,{variant:kSe(C.null_pct),children:C.null_pct})}),l.jsx(Ke,{children:l.jsx(ae,{variant:MSe(C.unique_pct),children:C.unique_pct})}),l.jsx(Ke,{className:"font-mono text-sm",children:C.min!==void 0&&C.min!==null?String(C.min).length>20?`${String(C.min).slice(0,20)}...`:String(C.min):"-"}),l.jsx(Ke,{className:"font-mono text-sm",children:C.max!==void 0&&C.max!==null?String(C.max).length>20?`${String(C.max).slice(0,20)}...`:String(C.max):"-"}),l.jsx(Ke,{className:"font-mono text-sm",children:C.mean!==void 0&&C.mean!==null?typeof C.mean=="number"?C.mean.toFixed(2):C.mean:"-"}),l.jsx(Ke,{className:"font-mono text-sm",children:C.std!==void 0&&C.std!==null?typeof C.std=="number"?C.std.toFixed(2):C.std:"-"})]},C.name))})]})}),l.jsxs("div",{className:"mt-4 text-sm text-muted-foreground",children:["Showing ",$.length," of ",o.columns.length," columns",S!=="all"&&` (filtered by ${S})`]})]})]})]}),l.jsx(Wi,{open:b,onOpenChange:y,children:l.jsxs(Uo,{className:"max-w-2xl max-h-[80vh]",children:[l.jsxs(Ho,{children:[l.jsx(zo,{children:"Generated Schema"}),l.jsxs(ru,{children:["Auto-generated schema from ",n.name,". You can copy this YAML to use with truthound validation."]})]}),v&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"flex gap-4 text-sm",children:[l.jsxs("div",{children:[l.jsx("span",{className:"text-muted-foreground",children:"Columns:"})," ",l.jsx("span",{className:"font-medium",children:v.column_count})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-muted-foreground",children:"Rows analyzed:"})," ",l.jsx("span",{className:"font-medium",children:Rr(v.row_count)})]})]}),l.jsx("div",{className:"relative",children:l.jsx("pre",{className:"bg-muted p-4 rounded-lg text-sm overflow-auto max-h-[400px] font-mono",children:v.schema_yaml})})]}),l.jsxs(nu,{children:[l.jsx(Y,{variant:"outline",onClick:()=>y(!1),children:"Close"}),l.jsx(Y,{onClick:T,children:g?l.jsxs(l.Fragment,{children:[l.jsx(Tp,{className:"h-4 w-4 mr-2"}),"Copied"]}):l.jsxs(l.Fragment,{children:[l.jsx(m6,{className:"h-4 w-4 mr-2"}),"Copy YAML"]})})]})]})})]}):l.jsx("div",{className:"p-6",children:l.jsxs("div",{className:"text-center py-12",children:[l.jsx(hn,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),l.jsx("h2",{className:"text-lg font-medium mb-2",children:"Source not found"}),l.jsx(Y,{asChild:!0,children:l.jsx(Pe,{to:"/sources",children:"Back to Sources"})})]})})}const $Se="drift",LSe={nodeType:"translation",translation:{en:{title:"Drift Detection",subtitle:"Compare datasets to detect data drift",compare:"Compare",comparing:"Comparing...",newComparison:"New Comparison",compareDatasets:"Compare Datasets",compareDescription:"Select baseline and current datasets to compare for drift",baseline:"Baseline",current:"Current",selectSource:"Select source",baselineSource:"Baseline Source",currentSource:"Current Source",selectBaseline:"Select baseline...",selectCurrent:"Select current...",detectionMethod:"Detection Method",selectBothSources:"Please select both baseline and current sources",mustBeDifferent:"Baseline and current sources must be different",comparisonComplete:"Comparison complete",comparisonFailed:"Comparison failed",noDriftDetected:"No significant drift detected",noComparisonsYet:"No comparisons yet",noComparisonsDesc:"Compare two datasets to detect data drift",highDrift:"High Drift",driftDetected:"Drift Detected",noDrift:"No Drift",columnsCompared:"Columns Compared",driftedColumns:"Drifted Columns",driftPercentage:"Drift Percentage",columnDetails:"Column Details",methods:{auto:"Auto (recommended)",ks:"Kolmogorov-Smirnov",psi:"Population Stability Index",chi2:"Chi-Square",js:"Jensen-Shannon"},noChanges:"No changes detected",columnAdded:"Column Added",columnRemoved:"Column Removed",typeChanged:"Type Changed",statsChanged:"Statistics Changed"},ko:{title:"드리프트 감지",subtitle:"데이터셋을 비교하여 데이터 드리프트 감지",compare:"비교",comparing:"비교 중...",newComparison:"새 비교",compareDatasets:"데이터셋 비교",compareDescription:"드리프트 비교를 위한 기준 및 현재 데이터셋을 선택하세요",baseline:"기준",current:"현재",selectSource:"소스 선택",baselineSource:"기준 소스",currentSource:"현재 소스",selectBaseline:"기준 선택...",selectCurrent:"현재 선택...",detectionMethod:"감지 방법",selectBothSources:"기준 소스와 현재 소스를 모두 선택하세요",mustBeDifferent:"기준 소스와 현재 소스가 서로 달라야 합니다",comparisonComplete:"비교 완료",comparisonFailed:"비교 실패",noDriftDetected:"유의미한 드리프트가 감지되지 않았습니다",noComparisonsYet:"비교 기록 없음",noComparisonsDesc:"두 데이터셋을 비교하여 데이터 드리프트를 감지하세요",highDrift:"높은 드리프트",driftDetected:"드리프트 감지됨",noDrift:"드리프트 없음",columnsCompared:"비교된 컬럼",driftedColumns:"드리프트 컬럼",driftPercentage:"드리프트 비율",columnDetails:"컬럼 상세",methods:{auto:"자동 (권장)",ks:"콜모고로프-스미르노프",psi:"모집단 안정성 지수",chi2:"카이제곱",js:"젠슨-샤논"},noChanges:"변경 사항이 없습니다",columnAdded:"컬럼 추가됨",columnRemoved:"컬럼 제거됨",typeChanged:"타입 변경됨",statsChanged:"통계 변경됨"}}},FSe=["drift::local::src/content/drift.content.ts"],BSe={key:$Se,content:LSe,localIds:FSe},USe="errors",HSe={nodeType:"translation",translation:{en:{generic:"An error occurred. Please try again.",notFound:"The requested resource was not found.",unauthorized:"You are not authorized to perform this action.",validation:"Please check your input and try again.",network:"Network error. Please check your connection.",serverError:"Server error. Please try again later.",loadFailed:"Failed to load data"},ko:{generic:"오류가 발생했습니다. 다시 시도해 주세요.",notFound:"요청한 리소스를 찾을 수 없습니다.",unauthorized:"이 작업을 수행할 권한이 없습니다.",validation:"입력을 확인하고 다시 시도해 주세요.",network:"네트워크 오류입니다. 연결을 확인해 주세요.",serverError:"서버 오류입니다. 나중에 다시 시도해 주세요.",loadFailed:"데이터를 불러오지 못했습니다"}}},zSe=["errors::local::src/content/errors.content.ts"],vB={key:USe,content:HSe,localIds:zSe};function WSe(){const e=ye(BSe),t=ye(Xt),n=ye(vB),{toast:r}=It(),[o,i]=h.useState([]),[a,s]=h.useState([]),[c,u]=h.useState(!0),[f,d]=h.useState(!1),[p,m]=h.useState(!1),[b,y]=h.useState(""),[v,x]=h.useState(""),[g,w]=h.useState("auto");h.useEffect(()=>{async function S(){try{const[N,_]=await Promise.all([eu(),h7({limit:20})]);i(N.data),s(_.data)}catch(N){r({variant:"destructive",title:U(t.error),description:N instanceof Error?N.message:U(n.loadFailed)})}finally{u(!1)}}S()},[r,t,n]);const E=async()=>{if(!b||!v){r({variant:"destructive",title:U(t.error),description:U(e.selectBothSources)});return}if(b===v){r({variant:"destructive",title:U(t.error),description:U(e.mustBeDifferent)});return}try{d(!0);const S=await p7({baseline_source_id:b,current_source_id:v,method:g});s(N=>[S.data,...N]),m(!1),y(""),x(""),r({title:U(e.comparisonComplete),description:S.data.has_drift?`${S.data.drifted_columns} columns drifted`:U(e.noDriftDetected)})}catch(S){r({variant:"destructive",title:U(e.comparisonFailed),description:S instanceof Error?S.message:U(n.generic)})}finally{d(!1)}},A=S=>{const N=o.find(_=>_.id===S);return(N==null?void 0:N.name)||S.slice(0,8)};return c?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs("div",{className:"p-6 space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-2xl font-bold",children:e.title}),l.jsx("p",{className:"text-muted-foreground",children:e.subtitle})]}),l.jsxs(Wi,{open:p,onOpenChange:m,children:[l.jsx(H0,{asChild:!0,children:l.jsxs(Y,{children:[l.jsx(Vt,{className:"h-4 w-4 mr-2"}),e.newComparison]})}),l.jsxs(Uo,{children:[l.jsxs(Ho,{children:[l.jsx(zo,{children:e.compareDatasets}),l.jsx(ru,{children:e.compareDescription})]}),l.jsxs("div",{className:"space-y-4 py-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{children:e.baselineSource}),l.jsxs(at,{value:b,onValueChange:y,children:[l.jsx(nt,{children:l.jsx(st,{placeholder:e.selectBaseline})}),l.jsx(rt,{children:o.map(S=>l.jsx(fe,{value:S.id,children:S.name},S.id))})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{children:e.currentSource}),l.jsxs(at,{value:v,onValueChange:x,children:[l.jsx(nt,{children:l.jsx(st,{placeholder:e.selectCurrent})}),l.jsx(rt,{children:o.map(S=>l.jsx(fe,{value:S.id,children:S.name},S.id))})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{children:e.detectionMethod}),l.jsxs(at,{value:g,onValueChange:S=>w(S),children:[l.jsx(nt,{children:l.jsx(st,{})}),l.jsxs(rt,{children:[l.jsx(fe,{value:"auto",children:e.methods.auto}),l.jsx(fe,{value:"ks",children:e.methods.ks}),l.jsx(fe,{value:"psi",children:e.methods.psi}),l.jsx(fe,{value:"chi2",children:e.methods.chi2}),l.jsx(fe,{value:"js",children:e.methods.js})]})]})]})]}),l.jsxs(nu,{children:[l.jsx(Y,{variant:"outline",onClick:()=>m(!1),children:t.cancel}),l.jsx(Y,{onClick:E,disabled:f,children:f?e.comparing:e.compare})]})]})]})]}),a.length===0?l.jsx(X,{children:l.jsxs(Z,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(Dk,{className:"h-12 w-12 text-muted-foreground mb-4"}),l.jsx("h3",{className:"text-lg font-medium mb-2",children:e.noComparisonsYet}),l.jsx("p",{className:"text-muted-foreground text-center mb-4",children:e.noComparisonsDesc}),l.jsxs(Y,{onClick:()=>m(!0),children:[l.jsx(Vt,{className:"h-4 w-4 mr-2"}),e.newComparison]})]})}):l.jsx("div",{className:"space-y-4",children:a.map(S=>{var N,_;return l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[S.has_drift?l.jsx(Ai,{className:"h-5 w-5 text-amber-500"}):l.jsx(Zd,{className:"h-5 w-5 text-green-500"}),l.jsxs("div",{children:[l.jsxs(xe,{className:"flex items-center gap-2 text-lg",children:[A(S.baseline_source_id),l.jsx(hy,{className:"h-4 w-4"}),A(S.current_source_id)]}),l.jsx(yr,{children:yn(S.created_at)})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[S.has_high_drift&&l.jsx(ae,{variant:"destructive",children:e.highDrift}),S.has_drift&&!S.has_high_drift&&l.jsx(ae,{variant:"warning",className:"bg-amber-500 text-white",children:e.driftDetected}),!S.has_drift&&l.jsx(ae,{variant:"outline",children:e.noDrift})]})]})}),l.jsxs(Z,{children:[l.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-sm text-muted-foreground",children:e.columnsCompared}),l.jsx("div",{className:"text-xl font-semibold",children:S.total_columns||0})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-sm text-muted-foreground",children:e.driftedColumns}),l.jsx("div",{className:"text-xl font-semibold text-amber-600",children:S.drifted_columns||0})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-sm text-muted-foreground",children:e.driftPercentage}),l.jsxs("div",{className:"text-xl font-semibold",children:[((N=S.drift_percentage)==null?void 0:N.toFixed(1))||0,"%"]})]})]}),((_=S.result)==null?void 0:_.columns)&&S.result.columns.length>0&&l.jsxs("div",{className:"mt-4 pt-4 border-t",children:[l.jsx("div",{className:"text-sm font-medium mb-2",children:e.columnDetails}),l.jsx("div",{className:"space-y-2",children:S.result.columns.filter(O=>O.drifted).slice(0,5).map(O=>l.jsxs("div",{className:"flex items-center justify-between p-2 bg-muted/50 rounded",children:[l.jsxs("div",{children:[l.jsx("span",{className:"font-mono text-sm",children:O.column}),l.jsxs("span",{className:"text-xs text-muted-foreground ml-2",children:["(",O.dtype,")"]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(ae,{variant:"outline",children:O.method}),l.jsx(ae,{variant:O.level==="high"?"destructive":"secondary",children:O.level})]})]},O.column))})]})]})]},S.id)})})]})}const GSe="schedules",VSe={nodeType:"translation",translation:{en:{title:"Schedules",subtitle:"Manage scheduled validation runs",addSchedule:"Add Schedule",newSchedule:"New Schedule",editSchedule:"Edit Schedule",createSchedule:"Create Schedule",createScheduleDesc:"Set up automated validation runs for a data source",noSchedules:"No schedules configured",noSchedulesYet:"No schedules yet",noSchedulesDesc:"Create a schedule to automate validation runs",cronExpression:"Cron Expression",cronFormat:"Format: minute hour day month weekday",customCron:"Custom cron expression",selectSource:"Select source...",lastRun:"Last Run",nextRun:"Next Run",notifyOnFailure:"Notify on Failure",pause:"Pause",resume:"Resume",runNow:"Run Now",paused:"Paused",active:"Active",scheduleCreated:"Schedule created",createFailed:"Failed to create schedule",deleted:"Schedule deleted",deleteFailed:"Failed to delete",schedulePaused:"Schedule paused",pauseFailed:"Failed to pause",scheduleResumed:"Schedule resumed",resumeFailed:"Failed to resume",validationTriggered:"Validation triggered",runFailed:"Failed to run",fillRequired:"Please fill in all required fields",creating:"Creating...",cronPresets:{everyHour:"Every hour",every6Hours:"Every 6 hours",dailyMidnight:"Daily at midnight",daily8am:"Daily at 8 AM",everyMonday:"Every Monday",everyMonth:"Every month"}},ko:{title:"스케줄",subtitle:"예약된 검증 실행 관리",addSchedule:"스케줄 추가",newSchedule:"새 스케줄",editSchedule:"스케줄 편집",createSchedule:"스케줄 생성",createScheduleDesc:"데이터 소스의 자동 검증 실행 설정",noSchedules:"설정된 스케줄이 없습니다",noSchedulesYet:"스케줄이 없습니다",noSchedulesDesc:"검증 자동화를 위해 스케줄을 생성하세요",cronExpression:"Cron 표현식",cronFormat:"형식: 분 시 일 월 요일",customCron:"사용자 정의 Cron 표현식",selectSource:"소스 선택...",lastRun:"마지막 실행",nextRun:"다음 실행",notifyOnFailure:"실패 시 알림",pause:"일시정지",resume:"재개",runNow:"지금 실행",paused:"일시정지됨",active:"활성",scheduleCreated:"스케줄 생성됨",createFailed:"스케줄 생성 실패",deleted:"스케줄 삭제됨",deleteFailed:"삭제 실패",schedulePaused:"스케줄 일시정지됨",pauseFailed:"일시정지 실패",scheduleResumed:"스케줄 재개됨",resumeFailed:"재개 실패",validationTriggered:"검증 실행됨",runFailed:"실행 실패",fillRequired:"필수 항목을 모두 입력해주세요",creating:"생성 중...",cronPresets:{everyHour:"매시간",every6Hours:"6시간마다",dailyMidnight:"매일 자정",daily8am:"매일 오전 8시",everyMonday:"매주 월요일",everyMonth:"매월"}}}},KSe=["schedules::local::src/content/schedules.content.ts"],YSe={key:GSe,content:VSe,localIds:KSe};function qSe(){const e=ye(Li),t=ye(YSe),n=ye(Xt),r=ye(vB),o=ye(I0),{toast:i}=It(),a=h.useMemo(()=>[{label:t.cronPresets.everyHour,value:"0 * * * *"},{label:t.cronPresets.every6Hours,value:"0 */6 * * *"},{label:t.cronPresets.dailyMidnight,value:"0 0 * * *"},{label:t.cronPresets.daily8am,value:"0 8 * * *"},{label:t.cronPresets.everyMonday,value:"0 0 * * 1"},{label:t.cronPresets.everyMonth,value:"0 0 1 * *"}],[t]),[s,c]=h.useState([]),[u,f]=h.useState([]),[d,p]=h.useState(!0),[m,b]=h.useState(!1),[y,v]=h.useState(!1),[x,g]=h.useState([]),[w,E]=h.useState([]),[A,S]=h.useState(!1),[N,_]=h.useState(null),[O,T]=h.useState("basic"),[j,I]=h.useState(""),[$,C]=h.useState(""),[P,M]=h.useState("0 0 * * *"),[L,R]=h.useState(!0),k=h.useCallback(async()=>{try{const[B,F]=await Promise.all([eu(),m7()]);c(B.data),f(F.data)}catch(B){i({variant:"destructive",title:U(n.error),description:B instanceof Error?B.message:U(r.loadFailed)})}finally{p(!1)}},[i,n,r]);h.useEffect(()=>{k()},[k]);const H=h.useCallback(async()=>{if(!(x.length>0))try{S(!0);const B=await UM();g(B)}catch{i({variant:"destructive",title:U(n.error),description:U(r.loadFailed)})}finally{S(!1)}},[x.length,i,n,r]),G=h.useCallback(async B=>{if(!B){_(null);return}try{const F=await $M(B);_(F)}catch{_(null)}},[]),W=async()=>{if(!j||!$||!P){i({variant:"destructive",title:U(n.error),description:U(t.fillRequired)});return}try{b(!0);const B=w.filter(le=>le.enabled),F=B.length>0?{validator_configs:B}:void 0,pe=await v7({name:j,source_id:$,cron_expression:P,notify_on_failure:L,config:F});f(le=>[pe.data,...le]),v(!1),J(),i({title:U(t.scheduleCreated),description:`${pe.data.name} created successfully`})}catch(B){i({variant:"destructive",title:U(t.createFailed),description:B instanceof Error?B.message:U(r.generic)})}finally{b(!1)}},J=()=>{I(""),C(""),M("0 0 * * *"),R(!0),E([]),_(null),T("basic")},ce=B=>{v(B),B?H():J()},Ee=B=>{C(B),G(B)},we=async B=>{try{await y7(B),f(F=>F.filter(pe=>pe.id!==B)),i({title:U(t.deleted)})}catch(F){i({variant:"destructive",title:U(t.deleteFailed),description:F instanceof Error?F.message:U(r.generic)})}},te=async B=>{try{const F=await g7(B);f(pe=>pe.map(le=>le.id===B?F.schedule:le)),i({title:U(t.schedulePaused)})}catch(F){i({variant:"destructive",title:U(t.pauseFailed),description:F instanceof Error?F.message:U(r.generic)})}},me=async B=>{try{const F=await x7(B);f(pe=>pe.map(le=>le.id===B?F.schedule:le)),i({title:U(t.scheduleResumed)})}catch(F){i({variant:"destructive",title:U(t.resumeFailed),description:F instanceof Error?F.message:U(r.generic)})}},V=async B=>{try{const F=await b7(B);i({title:U(t.validationTriggered),description:U(F.passed?o.passed:o.failed)})}catch(F){i({variant:"destructive",title:U(t.runFailed),description:F instanceof Error?F.message:U(r.generic)})}},Q=B=>{const F=s.find(pe=>pe.id===B);return(F==null?void 0:F.name)||B.slice(0,8)};return d?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs("div",{className:"p-6 space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-2xl font-bold",children:e.schedules}),l.jsx("p",{className:"text-muted-foreground",children:t.subtitle})]}),l.jsxs(Wi,{open:y,onOpenChange:ce,children:[l.jsx(H0,{asChild:!0,children:l.jsxs(Y,{children:[l.jsx(Vt,{className:"h-4 w-4 mr-2"}),t.newSchedule]})}),l.jsxs(Uo,{className:"max-w-4xl max-h-[85vh] overflow-hidden flex flex-col",children:[l.jsxs(Ho,{children:[l.jsx(zo,{children:t.createSchedule}),l.jsx(ru,{children:t.createScheduleDesc})]}),l.jsxs(ou,{value:O,onValueChange:T,className:"flex-1 overflow-hidden flex flex-col",children:[l.jsxs(Es,{className:"grid w-full grid-cols-2",children:[l.jsxs(Bt,{value:"basic",children:[l.jsx(ec,{className:"h-4 w-4 mr-2"}),"Basic Settings"]}),l.jsxs(Bt,{value:"validators",disabled:!$,children:[l.jsx(Bk,{className:"h-4 w-4 mr-2"}),"Validators",w.filter(B=>B.enabled).length>0&&l.jsx(ae,{variant:"secondary",className:"ml-2",children:w.filter(B=>B.enabled).length})]})]}),l.jsxs(Ut,{value:"basic",className:"space-y-4 py-4 overflow-y-auto flex-1",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{children:n.name}),l.jsx(St,{placeholder:U(t.cronPresets.dailyMidnight),value:j,onChange:B=>I(B.target.value)})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{children:n.source}),l.jsxs(at,{value:$,onValueChange:Ee,children:[l.jsx(nt,{children:l.jsx(st,{placeholder:U(t.selectSource)})}),l.jsx(rt,{children:s.map(B=>l.jsx(fe,{value:B.id,children:B.name},B.id))})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{children:n.schedule}),l.jsxs(at,{value:P,onValueChange:M,children:[l.jsx(nt,{children:l.jsx(st,{})}),l.jsx(rt,{children:a.map(B=>l.jsx(fe,{value:B.value,children:B.label},B.value))})]}),l.jsx(St,{placeholder:U(t.customCron),value:P,onChange:B=>M(B.target.value),className:"mt-2"}),l.jsx("p",{className:"text-xs text-muted-foreground",children:t.cronFormat})]}),l.jsxs("div",{className:"flex items-center space-x-2",children:[l.jsx(Wa,{id:"notify",checked:L,onCheckedChange:R}),l.jsx(vt,{htmlFor:"notify",children:t.notifyOnFailure})]}),$&&l.jsx("div",{className:"pt-4 border-t",children:l.jsx("p",{className:"text-sm text-muted-foreground",children:'Select a source first, then configure validators in the "Validators" tab. If no validators are configured, all validators will run by default.'})})]}),l.jsx(Ut,{value:"validators",className:"py-4 overflow-y-auto flex-1",children:A?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsx(U$,{validators:x,configs:w,onChange:E,columns:(N==null?void 0:N.columns)||[]})})]}),l.jsxs(nu,{className:"pt-4 border-t",children:[l.jsx(Y,{variant:"outline",onClick:()=>ce(!1),children:n.cancel}),l.jsx(Y,{onClick:W,disabled:m,children:m?t.creating:n.create})]})]})]})]}),u.length===0?l.jsx(X,{children:l.jsxs(Z,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(f6,{className:"h-12 w-12 text-muted-foreground mb-4"}),l.jsx("h3",{className:"text-lg font-medium mb-2",children:t.noSchedulesYet}),l.jsx("p",{className:"text-muted-foreground text-center mb-4",children:t.noSchedulesDesc}),l.jsxs(Y,{onClick:()=>v(!0),children:[l.jsx(Vt,{className:"h-4 w-4 mr-2"}),t.newSchedule]})]})}):l.jsx("div",{className:"space-y-4",children:u.map(B=>l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(ec,{className:`h-5 w-5 ${B.is_active?"text-green-500":"text-muted-foreground"}`}),l.jsxs("div",{children:[l.jsx(xe,{className:"text-lg",children:B.name}),l.jsxs(yr,{children:[n.source,": ",Q(B.source_id)]})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(ae,{variant:B.is_active?"default":"secondary",children:B.is_active?t.active:t.paused}),l.jsxs(kM,{children:[l.jsx(MM,{asChild:!0,children:l.jsx(Y,{variant:"ghost",size:"sm",children:l.jsx(S6,{className:"h-4 w-4"})})}),l.jsxs(P0,{align:"end",children:[l.jsxs(va,{onClick:()=>V(B.id),children:[l.jsx(N6,{className:"h-4 w-4 mr-2"}),t.runNow]}),B.is_active?l.jsxs(va,{onClick:()=>te(B.id),children:[l.jsx(A6,{className:"h-4 w-4 mr-2"}),t.pause]}):l.jsxs(va,{onClick:()=>me(B.id),children:[l.jsx(ef,{className:"h-4 w-4 mr-2"}),t.resume]}),l.jsxs(va,{className:"text-destructive",onClick:()=>we(B.id),children:[l.jsx(Gr,{className:"h-4 w-4 mr-2"}),n.delete]})]})]})]})]})}),l.jsx(Z,{children:l.jsxs("div",{className:"grid grid-cols-3 gap-4 text-sm",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-muted-foreground",children:t.cronExpression}),l.jsx("div",{className:"font-mono",children:B.cron_expression})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-muted-foreground",children:t.lastRun}),l.jsx("div",{children:B.last_run_at?yn(B.last_run_at):n.never})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-muted-foreground",children:t.nextRun}),l.jsx("div",{children:B.next_run_at&&B.is_active?yn(B.next_run_at):"-"})]})]})})]},B.id))})]})}const XSe="notifications",ZSe={nodeType:"translation",translation:{en:{title:"Notifications",subtitle:"Configure notification channels and rules",channels:"Channels",rules:"Rules",logs:"Logs",addChannel:"Add Channel",addRule:"Add Rule",editChannel:"Edit Channel",editRule:"Edit Rule",testChannel:"Test",noChannels:"No notification channels configured",noRules:"No notification rules configured",noLogs:"No notification logs",channelTypes:{slack:"Slack",email:"Email",webhook:"Webhook"},conditions:{validation_failed:"Validation Failed",critical_issues:"Critical Issues Detected",high_issues:"High Severity Issues",schedule_failed:"Schedule Failed",drift_detected:"Drift Detected"},testSuccess:"Test notification sent successfully",testFailed:"Failed to send test notification",sent:"Sent",failed:"Failed",deleteChannel:"Delete Channel",deleteChannelConfirm:"Are you sure you want to delete this channel? This action cannot be undone.",channelDeleted:"Channel deleted successfully",deleteChannelFailed:"Failed to delete channel",deleteRule:"Delete Rule",deleteRuleConfirm:"Are you sure you want to delete this rule? This action cannot be undone.",ruleDeleted:"Rule deleted successfully",deleteRuleFailed:"Failed to delete rule"},ko:{title:"알림",subtitle:"알림 채널 및 규칙 설정",channels:"채널",rules:"규칙",logs:"로그",addChannel:"채널 추가",addRule:"규칙 추가",editChannel:"채널 편집",editRule:"규칙 편집",testChannel:"테스트",noChannels:"설정된 알림 채널이 없습니다",noRules:"설정된 알림 규칙이 없습니다",noLogs:"알림 로그가 없습니다",channelTypes:{slack:"Slack",email:"이메일",webhook:"웹훅"},conditions:{validation_failed:"검증 실패",critical_issues:"심각한 이슈 발견",high_issues:"높은 심각도 이슈",schedule_failed:"스케줄 실패",drift_detected:"드리프트 감지"},testSuccess:"테스트 알림이 성공적으로 전송되었습니다",testFailed:"테스트 알림 전송에 실패했습니다",sent:"전송됨",failed:"실패",deleteChannel:"채널 삭제",deleteChannelConfirm:"이 채널을 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다.",channelDeleted:"채널이 삭제되었습니다",deleteChannelFailed:"채널 삭제에 실패했습니다",deleteRule:"규칙 삭제",deleteRuleConfirm:"이 규칙을 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다.",ruleDeleted:"규칙이 삭제되었습니다",deleteRuleFailed:"규칙 삭제에 실패했습니다"}}},QSe=["notifications::local::src/content/notifications.content.ts"],JSe={key:XSe,content:ZSe,localIds:QSe};function od(e,t=[]){const[n,r]=h.useState({data:null,loading:!0,error:null}),o=h.useRef(e);o.current=e;const i=h.useCallback(async()=>{r(s=>({...s,loading:!0,error:null}));try{const s=await o.current();r({data:s,loading:!1,error:null})}catch(s){r({data:null,loading:!1,error:s})}},t);h.useEffect(()=>{i()},[i]);const a=h.useCallback(s=>{r(c=>({...c,data:s}))},[]);return{...n,refetch:i,mutate:a}}function fv(e){const[t,n]=h.useState({data:null,loading:!1,error:null}),r=h.useCallback(async i=>{n({data:null,loading:!0,error:null});try{const a=await e(i);return n({data:a,loading:!1,error:null}),a}catch(a){throw n({data:null,loading:!1,error:a}),a}},[e]),o=h.useCallback(()=>{n({data:null,loading:!1,error:null})},[]);return{...t,mutate:r,reset:o}}function eAe(e){switch(e){case"slack":return l.jsx(Kc,{className:"h-4 w-4"});case"email":return l.jsx(x6,{className:"h-4 w-4"});case"webhook":return l.jsx(k6,{className:"h-4 w-4"});default:return l.jsx(kk,{className:"h-4 w-4"})}}function tAe(e){switch(e){case"sent":return l.jsxs(ae,{className:"bg-green-500/10 text-green-500 border-green-500/20",children:[l.jsx(Zd,{className:"h-3 w-3 mr-1"}),"Sent"]});case"failed":return l.jsxs(ae,{className:"bg-red-500/10 text-red-500 border-red-500/20",children:[l.jsx(To,{className:"h-3 w-3 mr-1"}),"Failed"]});default:return l.jsxs(ae,{className:"bg-yellow-500/10 text-yellow-500 border-yellow-500/20",children:[l.jsx(ec,{className:"h-3 w-3 mr-1"}),"Pending"]})}}function nAe(e){return{validation_failed:"Validation Failed",critical_issues:"Critical Issues",high_issues:"High Issues",schedule_failed:"Schedule Failed",drift_detected:"Drift Detected"}[e]||e}function rAe(){var $,C;const e=ye(JSe),t=ye(Xt),{toast:n}=It(),{confirm:r,ConfirmDialog:o}=tu(),[i,a]=h.useState("channels"),{data:s,loading:c,refetch:u}=od(()=>w7(),[]),{data:f,loading:d,refetch:p}=od(()=>N7(),[]),{data:m,loading:b,refetch:y}=od(()=>C7({limit:50}),[]),{data:v}=od(()=>O7({hours:24}),[]),x=fv(E7),g=fv(A7),w=fv(j7),E=(s==null?void 0:s.data)||[],A=(f==null?void 0:f.data)||[],S=(m==null?void 0:m.data)||[],N=v==null?void 0:v.data,_=async P=>{try{const M=await x.mutate(P);M.success?n({title:U(e.testSuccess),variant:"default"}):n({title:U(e.testFailed),description:M.error,variant:"destructive"})}catch{n({title:U(e.testFailed),variant:"destructive"})}},O=async P=>{if(await r({title:U(e.deleteChannel),description:U(e.deleteChannelConfirm),confirmText:U(t.delete),variant:"destructive"}))try{await g.mutate(P),n({title:U(e.channelDeleted)}),u()}catch{n({title:U(e.deleteChannelFailed),variant:"destructive"})}},T=async P=>{try{await S7(P.id,{is_active:!P.is_active}),u()}catch{n({title:"Failed to update channel",variant:"destructive"})}},j=async P=>{if(await r({title:U(e.deleteRule),description:U(e.deleteRuleConfirm),confirmText:U(t.delete),variant:"destructive"}))try{await w.mutate(P),n({title:U(e.ruleDeleted)}),p()}catch{n({title:U(e.deleteRuleFailed),variant:"destructive"})}},I=async P=>{try{await _7(P.id,{is_active:!P.is_active}),p()}catch{n({title:"Failed to update rule",variant:"destructive"})}};return l.jsxs("div",{className:"space-y-6",children:[l.jsx("div",{className:"flex items-center justify-between",children:l.jsxs("div",{children:[l.jsx("h1",{className:"text-2xl font-bold",children:e.title}),l.jsx("p",{className:"text-muted-foreground",children:e.subtitle})]})}),N&&l.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsx(xe,{className:"text-sm font-medium text-muted-foreground",children:"Total (24h)"})}),l.jsx(Z,{children:l.jsx("div",{className:"text-2xl font-bold",children:N.total})})]}),l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsx(xe,{className:"text-sm font-medium text-muted-foreground",children:"Success Rate"})}),l.jsx(Z,{children:l.jsxs("div",{className:"text-2xl font-bold",children:[N.success_rate,"%"]})})]}),l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsx(xe,{className:"text-sm font-medium text-muted-foreground",children:e.sent})}),l.jsx(Z,{children:l.jsx("div",{className:"text-2xl font-bold text-green-500",children:(($=N.by_status)==null?void 0:$.sent)||0})})]}),l.jsxs(X,{children:[l.jsx(ve,{className:"pb-2",children:l.jsx(xe,{className:"text-sm font-medium text-muted-foreground",children:e.failed})}),l.jsx(Z,{children:l.jsx("div",{className:"text-2xl font-bold text-red-500",children:((C=N.by_status)==null?void 0:C.failed)||0})})]})]}),l.jsxs(ou,{value:i,onValueChange:a,children:[l.jsxs(Es,{children:[l.jsxs(Bt,{value:"channels",children:[e.channels," (",E.length,")"]}),l.jsxs(Bt,{value:"rules",children:[e.rules," (",A.length,")"]}),l.jsxs(Bt,{value:"logs",children:[e.logs," (",S.length,")"]})]}),l.jsxs(Ut,{value:"channels",className:"space-y-4",children:[l.jsxs("div",{className:"flex justify-between",children:[l.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>u(),children:[l.jsx(xd,{className:"h-4 w-4 mr-2"}),t.refresh]}),l.jsxs(Y,{children:[l.jsx(Vt,{className:"h-4 w-4 mr-2"}),e.addChannel]})]}),c?l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:t.loading}):E.length===0?l.jsx(X,{children:l.jsx(Z,{className:"py-8 text-center text-muted-foreground",children:e.noChannels})}):l.jsx(X,{children:l.jsxs(Ol,{children:[l.jsx(Tl,{children:l.jsxs(lr,{children:[l.jsx(Xe,{children:t.name}),l.jsx(Xe,{children:t.type}),l.jsx(Xe,{children:"Config"}),l.jsx(Xe,{children:t.status}),l.jsx(Xe,{className:"text-right",children:t.actions})]})}),l.jsx(Pl,{children:E.map(P=>l.jsxs(lr,{children:[l.jsx(Ke,{className:"font-medium",children:P.name}),l.jsx(Ke,{children:l.jsxs("div",{className:"flex items-center gap-2",children:[eAe(P.type),l.jsx("span",{className:"capitalize",children:P.type})]})}),l.jsx(Ke,{className:"text-muted-foreground text-sm",children:P.config_summary}),l.jsx(Ke,{children:l.jsx(Wa,{checked:P.is_active,onCheckedChange:()=>T(P)})}),l.jsx(Ke,{className:"text-right",children:l.jsxs("div",{className:"flex items-center justify-end gap-2",children:[l.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>_(P.id),disabled:x.loading,children:l.jsx($k,{className:"h-4 w-4"})}),l.jsx(Y,{variant:"ghost",size:"sm",children:l.jsx(DS,{className:"h-4 w-4"})}),l.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>O(P.id),children:l.jsx(Gr,{className:"h-4 w-4 text-red-500"})})]})})]},P.id))})]})})]}),l.jsxs(Ut,{value:"rules",className:"space-y-4",children:[l.jsxs("div",{className:"flex justify-between",children:[l.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>p(),children:[l.jsx(xd,{className:"h-4 w-4 mr-2"}),t.refresh]}),l.jsxs(Y,{children:[l.jsx(Vt,{className:"h-4 w-4 mr-2"}),e.addRule]})]}),d?l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:t.loading}):A.length===0?l.jsx(X,{children:l.jsx(Z,{className:"py-8 text-center text-muted-foreground",children:e.noRules})}):l.jsx(X,{children:l.jsxs(Ol,{children:[l.jsx(Tl,{children:l.jsxs(lr,{children:[l.jsx(Xe,{children:t.name}),l.jsx(Xe,{children:"Condition"}),l.jsx(Xe,{children:"Channels"}),l.jsx(Xe,{children:t.status}),l.jsx(Xe,{className:"text-right",children:t.actions})]})}),l.jsx(Pl,{children:A.map(P=>l.jsxs(lr,{children:[l.jsx(Ke,{className:"font-medium",children:P.name}),l.jsx(Ke,{children:l.jsx(ae,{variant:"outline",children:nAe(P.condition)})}),l.jsx(Ke,{children:l.jsxs("span",{className:"text-muted-foreground",children:[P.channel_ids.length," channel(s)"]})}),l.jsx(Ke,{children:l.jsx(Wa,{checked:P.is_active,onCheckedChange:()=>I(P)})}),l.jsx(Ke,{className:"text-right",children:l.jsxs("div",{className:"flex items-center justify-end gap-2",children:[l.jsx(Y,{variant:"ghost",size:"sm",children:l.jsx(DS,{className:"h-4 w-4"})}),l.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>j(P.id),children:l.jsx(Gr,{className:"h-4 w-4 text-red-500"})})]})})]},P.id))})]})})]}),l.jsxs(Ut,{value:"logs",className:"space-y-4",children:[l.jsx("div",{className:"flex justify-between",children:l.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>y(),children:[l.jsx(xd,{className:"h-4 w-4 mr-2"}),t.refresh]})}),b?l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:t.loading}):S.length===0?l.jsx(X,{children:l.jsx(Z,{className:"py-8 text-center text-muted-foreground",children:e.noLogs})}):l.jsx(X,{children:l.jsxs(Ol,{children:[l.jsx(Tl,{children:l.jsxs(lr,{children:[l.jsx(Xe,{children:t.status}),l.jsx(Xe,{children:"Event"}),l.jsx(Xe,{children:"Message"}),l.jsx(Xe,{children:"Time"})]})}),l.jsx(Pl,{children:S.map(P=>l.jsxs(lr,{children:[l.jsx(Ke,{children:tAe(P.status)}),l.jsx(Ke,{children:l.jsx(ae,{variant:"outline",children:P.event_type})}),l.jsx(Ke,{className:"max-w-xs truncate text-muted-foreground",children:P.message_preview}),l.jsx(Ke,{className:"text-muted-foreground text-sm",children:yn(P.created_at)})]},P.id))})]})})]})]}),l.jsx(o,{})]})}const oAe="glossary",iAe={nodeType:"translation",translation:{en:{title:"Business Glossary",subtitle:"Manage business terms and definitions",terms:"Terms",categories:"Categories",addTerm:"Add Term",editTerm:"Edit Term",deleteTerm:"Delete Term",addCategory:"Add Category",termName:"Term Name",definition:"Definition",category:"Category",owner:"Owner",selectCategory:"Select category",noCategory:"No category",relationships:"Relationships",synonyms:"Synonyms",relatedTerms:"Related Terms",addRelationship:"Add Relationship",selectTerm:"Select term",history:"History",noHistory:"No changes recorded",changedBy:"Changed by",changedFrom:"From",changedTo:"To",status:{label:"Status",draft:"Draft",approved:"Approved",deprecated:"Deprecated"},relationshipTypes:{synonym:"Synonym",related:"Related",parent:"Parent",child:"Child"},searchTerms:"Search terms...",filterByCategory:"Filter by category",filterByStatus:"Filter by status",allCategories:"All categories",allStatuses:"All statuses",noTerms:"No terms found",noTermsYet:"No terms yet",noTermsDesc:"Add your first business term to start building your glossary",addFirstTerm:"Add Your First Term",confirmDelete:"Are you sure you want to delete this term? This action cannot be undone.",loadError:"Failed to load terms",createSuccess:"Term created successfully",createError:"Failed to create term",updateSuccess:"Term updated successfully",updateError:"Failed to update term",deleteSuccess:"Term deleted successfully",deleteError:"Failed to delete term",tabs:{overview:"Overview",relationships:"Relationships",history:"History",comments:"Comments"}},ko:{title:"비즈니스 용어집",subtitle:"비즈니스 용어와 정의 관리",terms:"용어",categories:"카테고리",addTerm:"용어 추가",editTerm:"용어 수정",deleteTerm:"용어 삭제",addCategory:"카테고리 추가",termName:"용어명",definition:"정의",category:"카테고리",owner:"담당자",selectCategory:"카테고리 선택",noCategory:"카테고리 없음",relationships:"관계",synonyms:"동의어",relatedTerms:"관련 용어",addRelationship:"관계 추가",selectTerm:"용어 선택",history:"변경 이력",noHistory:"기록된 변경 이력 없음",changedBy:"변경자",changedFrom:"이전",changedTo:"이후",status:{label:"상태",draft:"임시저장",approved:"승인됨",deprecated:"폐기됨"},relationshipTypes:{synonym:"동의어",related:"관련",parent:"상위",child:"하위"},searchTerms:"용어 검색...",filterByCategory:"카테고리 필터",filterByStatus:"상태 필터",allCategories:"모든 카테고리",allStatuses:"모든 상태",noTerms:"용어가 없습니다",noTermsYet:"등록된 용어가 없습니다",noTermsDesc:"첫 번째 비즈니스 용어를 추가하여 용어집을 구축하세요",addFirstTerm:"첫 번째 용어 추가",confirmDelete:"이 용어를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.",loadError:"용어를 불러오지 못했습니다",createSuccess:"용어가 생성되었습니다",createError:"용어 생성에 실패했습니다",updateSuccess:"용어가 수정되었습니다",updateError:"용어 수정에 실패했습니다",deleteSuccess:"용어가 삭제되었습니다",deleteError:"용어 삭제에 실패했습니다",tabs:{overview:"개요",relationships:"관계",history:"이력",comments:"댓글"}}}},aAe=["glossary::local::src/content/glossary.content.ts"],Jb={key:oAe,content:iAe,localIds:aAe},sAe={},s_=e=>{let t;const n=new Set,r=(f,d)=>{const p=typeof f=="function"?f(t):f;if(!Object.is(p,t)){const m=t;t=d??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(b=>b(t,m))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(sAe?"pip":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,c);return c},lAe=e=>e?s_(e):s_;var yB={exports:{}},gB={},xB={exports:{}},bB={};/**
571
+ * @license React
572
+ * use-sync-external-store-shim.production.js
573
+ *
574
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
575
+ *
576
+ * This source code is licensed under the MIT license found in the
577
+ * LICENSE file in the root directory of this source tree.
578
+ */var ms=h;function cAe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var uAe=typeof Object.is=="function"?Object.is:cAe,dAe=ms.useState,fAe=ms.useEffect,pAe=ms.useLayoutEffect,hAe=ms.useDebugValue;function mAe(e,t){var n=t(),r=dAe({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return pAe(function(){o.value=n,o.getSnapshot=t,pv(o)&&i({inst:o})},[e,n,t]),fAe(function(){return pv(o)&&i({inst:o}),e(function(){pv(o)&&i({inst:o})})},[e]),hAe(n),n}function pv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!uAe(e,n)}catch{return!0}}function vAe(e,t){return t()}var yAe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vAe:mAe;bB.useSyncExternalStore=ms.useSyncExternalStore!==void 0?ms.useSyncExternalStore:yAe;xB.exports=bB;var gAe=xB.exports;/**
579
+ * @license React
580
+ * use-sync-external-store-shim/with-selector.production.js
581
+ *
582
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
583
+ *
584
+ * This source code is licensed under the MIT license found in the
585
+ * LICENSE file in the root directory of this source tree.
586
+ */var Hh=h,xAe=gAe;function bAe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wAe=typeof Object.is=="function"?Object.is:bAe,SAe=xAe.useSyncExternalStore,AAe=Hh.useRef,EAe=Hh.useEffect,NAe=Hh.useMemo,_Ae=Hh.useDebugValue;gB.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=AAe(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=NAe(function(){function c(m){if(!u){if(u=!0,f=m,m=r(m),o!==void 0&&a.hasValue){var b=a.value;if(o(b,m))return d=b}return d=m}if(b=d,wAe(f,m))return b;var y=r(m);return o!==void 0&&o(b,y)?(f=m,b):(f=m,d=y)}var u=!1,f,d,p=n===void 0?null:n;return[function(){return c(t())},p===null?void 0:function(){return c(p())}]},[t,n,r,o]);var s=SAe(e,i[0],i[1]);return EAe(function(){a.hasValue=!0,a.value=s},[s]),_Ae(s),s};yB.exports=gB;var jAe=yB.exports;const CAe=Re(jAe),wB={},{useDebugValue:OAe}=D,{useSyncExternalStoreWithSelector:TAe}=CAe;let l_=!1;const PAe=e=>e;function IAe(e,t=PAe,n){(wB?"pip":void 0)!=="production"&&n&&!l_&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),l_=!0);const r=TAe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return OAe(r),r}const c_=e=>{(wB?"pip":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?lAe(e):e,n=(r,o)=>IAe(t,r,o);return Object.assign(n,t),n},SB=e=>e?c_(e):c_,zh=SB(e=>({terms:[],categories:[],selectedTerm:null,loading:!1,error:null,fetchTerms:async t=>{e({loading:!0,error:null});try{const n=await T7(t);e({terms:n,loading:!1})}catch(n){const r=n instanceof Error?n.message:"Failed to fetch terms";e({error:r,loading:!1})}},fetchTerm:async t=>{e({loading:!0,error:null});try{const n=await FM(t);e({selectedTerm:n,loading:!1})}catch(n){const r=n instanceof Error?n.message:"Failed to fetch term";e({error:r,loading:!1})}},createTerm:async t=>{e({loading:!0,error:null});try{const n=await P7(t);return e(r=>({terms:[n,...r.terms],loading:!1})),n}catch(n){const r=n instanceof Error?n.message:"Failed to create term";throw e({error:r,loading:!1}),n}},updateTerm:async(t,n)=>{e({loading:!0,error:null});try{const r=await I7(t,n);return e(o=>{var i;return{terms:o.terms.map(a=>a.id===t?r:a),selectedTerm:((i=o.selectedTerm)==null?void 0:i.id)===t?r:o.selectedTerm,loading:!1}}),r}catch(r){const o=r instanceof Error?r.message:"Failed to update term";throw e({error:o,loading:!1}),r}},deleteTerm:async t=>{e({loading:!0,error:null});try{await R7(t),e(n=>{var r;return{terms:n.terms.filter(o=>o.id!==t),selectedTerm:((r=n.selectedTerm)==null?void 0:r.id)===t?null:n.selectedTerm,loading:!1}})}catch(n){const r=n instanceof Error?n.message:"Failed to delete term";throw e({error:r,loading:!1}),n}},clearSelectedTerm:()=>e({selectedTerm:null}),fetchCategories:async()=>{try{const t=await D7();e({categories:t})}catch(t){const n=t instanceof Error?t.message:"Failed to fetch categories";e({error:n})}},createCategory:async t=>{try{const n=await $7(t);return e(r=>({categories:[...r.categories,n]})),n}catch(n){const r=n instanceof Error?n.message:"Failed to create category";throw e({error:r}),n}},updateCategory:async(t,n)=>{try{const r=await L7(t,n);return e(o=>({categories:o.categories.map(i=>i.id===t?r:i)})),r}catch(r){const o=r instanceof Error?r.message:"Failed to update category";throw e({error:o}),r}},deleteCategory:async t=>{try{await F7(t),e(n=>({categories:n.categories.filter(r=>r.id!==t)}))}catch(n){const r=n instanceof Error?n.message:"Failed to delete category";throw e({error:r}),n}},clearError:()=>e({error:null})}));function RAe({open:e,onOpenChange:t,termId:n,categories:r,onSuccess:o}){const i=ye(Jb),a=ye(Xt),{createTerm:s,updateTerm:c}=zh(),{toast:u}=It(),[f,d]=h.useState(!1),[p,m]=h.useState(""),[b,y]=h.useState(""),[v,x]=h.useState(""),[g,w]=h.useState("draft"),[E,A]=h.useState(""),S=!!n;h.useEffect(()=>{e&&n?FM(n).then(_=>{m(_.name),y(_.definition),x(_.category_id||""),w(_.status),A(_.owner_id||"")}):e&&(m(""),y(""),x(""),w("draft"),A(""))},[e,n]);const N=async _=>{if(_.preventDefault(),!(!p.trim()||!b.trim())){d(!0);try{S&&n?(await c(n,{name:p,definition:b,category_id:v||void 0,status:g,owner_id:E||void 0}),u({title:U(a.success),description:U(i.updateSuccess)})):(await s({name:p,definition:b,category_id:v||void 0,status:g,owner_id:E||void 0}),u({title:U(a.success),description:U(i.createSuccess)})),o==null||o()}catch{u({title:U(a.error),description:U(S?i.updateError:i.createError),variant:"destructive"})}finally{d(!1)}}};return l.jsx(Wi,{open:e,onOpenChange:t,children:l.jsxs(Uo,{className:"sm:max-w-[500px]",children:[l.jsx(Ho,{children:l.jsx(zo,{children:S?i.editTerm:i.addTerm})}),l.jsxs("form",{onSubmit:N,className:"space-y-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{htmlFor:"name",children:i.termName}),l.jsx(St,{id:"name",value:p,onChange:_=>m(_.target.value),placeholder:"Customer Lifetime Value",required:!0})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{htmlFor:"definition",children:i.definition}),l.jsx("textarea",{id:"definition",value:b,onChange:_=>y(_.target.value),placeholder:"The total revenue a business can expect...",className:"w-full min-h-[100px] rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",required:!0})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{children:i.category}),l.jsxs(at,{value:v||"none",onValueChange:_=>x(_==="none"?"":_),children:[l.jsx(nt,{children:l.jsx(st,{placeholder:U(i.selectCategory)})}),l.jsxs(rt,{children:[l.jsx(fe,{value:"none",children:i.noCategory}),r.map(_=>l.jsx(fe,{value:_.id,children:_.name},_.id))]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{children:i.status.label}),l.jsxs(at,{value:g,onValueChange:_=>w(_),children:[l.jsx(nt,{children:l.jsx(st,{})}),l.jsxs(rt,{children:[l.jsx(fe,{value:"draft",children:i.status.draft}),l.jsx(fe,{value:"approved",children:i.status.approved}),l.jsx(fe,{value:"deprecated",children:i.status.deprecated})]})]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{htmlFor:"owner",children:i.owner}),l.jsx(St,{id:"owner",value:E,onChange:_=>A(_.target.value),placeholder:"John Doe"})]}),l.jsxs("div",{className:"flex justify-end gap-2 pt-4",children:[l.jsx(Y,{type:"button",variant:"outline",onClick:()=>t(!1),children:a.cancel}),l.jsx(Y,{type:"submit",disabled:f,children:f?a.saving:a.save})]})]})]})})}function kAe(){const e=ye(Li),t=ye(Jb),n=ye(Xt),{terms:r,categories:o,loading:i,fetchTerms:a,fetchCategories:s,deleteTerm:c}=zh(),{toast:u}=It(),{confirm:f,ConfirmDialog:d}=tu(),[p,m]=h.useState(""),[b,y]=h.useState(""),[v,x]=h.useState(""),[g,w]=h.useState(!1),[E,A]=h.useState(null),S=h.useCallback(async()=>{await Promise.all([a({search:p||void 0,category_id:b||void 0,status:v||void 0}),s()])},[a,s,p,b,v]);h.useEffect(()=>{S()},[S]);const N=async T=>{if(await f({title:U(t.deleteTerm),description:U(t.confirmDelete),confirmText:U(n.delete),variant:"destructive"}))try{await c(T),u({title:U(n.success),description:U(t.deleteSuccess)})}catch{u({title:U(n.error),description:U(t.deleteError),variant:"destructive"})}},_=T=>{switch(T){case"approved":return"success";case"deprecated":return"destructive";default:return"secondary"}},O=T=>{switch(T){case"approved":return t.status.approved;case"deprecated":return t.status.deprecated;default:return t.status.draft}};return i&&r.length===0?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:e.glossary}),l.jsx("p",{className:"text-muted-foreground",children:t.subtitle})]}),l.jsxs(Y,{onClick:()=>w(!0),children:[l.jsx(Vt,{className:"mr-2 h-4 w-4"}),t.addTerm]})]}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[l.jsxs("div",{className:"relative flex-1",children:[l.jsx(Ip,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),l.jsx(St,{placeholder:U(t.searchTerms),value:p,onChange:T=>m(T.target.value),className:"pl-10"})]}),l.jsxs(at,{value:b||"all",onValueChange:T=>y(T==="all"?"":T),children:[l.jsxs(nt,{className:"w-[200px]",children:[l.jsx(Pp,{className:"mr-2 h-4 w-4"}),l.jsx(st,{placeholder:U(t.filterByCategory)})]}),l.jsxs(rt,{children:[l.jsx(fe,{value:"all",children:t.allCategories}),o.map(T=>l.jsx(fe,{value:T.id,children:T.name},T.id))]})]}),l.jsxs(at,{value:v||"all",onValueChange:T=>x(T==="all"?"":T),children:[l.jsx(nt,{className:"w-[180px]",children:l.jsx(st,{placeholder:U(t.filterByStatus)})}),l.jsxs(rt,{children:[l.jsx(fe,{value:"all",children:t.allStatuses}),l.jsx(fe,{value:"draft",children:t.status.draft}),l.jsx(fe,{value:"approved",children:t.status.approved}),l.jsx(fe,{value:"deprecated",children:t.status.deprecated})]})]})]}),r.length===0?l.jsx(X,{children:l.jsxs(Z,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(Ua,{className:"h-16 w-16 text-muted-foreground/50 mb-4"}),l.jsx("h3",{className:"text-lg font-semibold mb-2",children:t.noTermsYet}),l.jsx("p",{className:"text-muted-foreground text-center mb-4",children:t.noTermsDesc}),l.jsxs(Y,{onClick:()=>w(!0),children:[l.jsx(Vt,{className:"mr-2 h-4 w-4"}),t.addFirstTerm]})]})}):l.jsx("div",{className:"grid gap-4",children:r.map(T=>l.jsx(X,{children:l.jsx(Z,{className:"p-6",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex items-start gap-4 flex-1",children:[l.jsx("div",{className:"h-12 w-12 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(Ua,{className:"h-6 w-6 text-primary"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx(Pe,{to:`/glossary/${T.id}`,className:"font-semibold hover:text-primary transition-colors",children:T.name}),l.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mt-1",children:T.definition}),l.jsxs("div",{className:"flex items-center gap-2 mt-2 flex-wrap",children:[l.jsx(ae,{variant:_(T.status),children:O(T.status)}),T.category&&l.jsx(ae,{variant:"outline",children:T.category.name}),T.owner_id&&l.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.owner,": ",T.owner_id]})]})]})]}),l.jsxs("div",{className:"flex items-center gap-2 ml-4",children:[l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>{A(T.id),w(!0)},children:l.jsx(Ha,{className:"h-4 w-4"})}),l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>N(T.id),children:l.jsx(Gr,{className:"h-4 w-4 text-destructive"})})]})]})})},T.id))}),l.jsx(RAe,{open:g,onOpenChange:T=>{w(T),T||A(null)},termId:E,categories:o,onSuccess:()=>{S(),w(!1),A(null)}}),l.jsx(d,{})]})}const MAe="collaboration",DAe={nodeType:"translation",translation:{en:{comments:"Comments",addComment:"Add Comment",editComment:"Edit",deleteComment:"Delete",noComments:"No comments yet",writeComment:"Write a comment...",reply:"Reply",replyTo:"Reply to comment",cancelReply:"Cancel",postComment:"Post",commentPosted:"Comment posted",commentUpdated:"Comment updated",commentDeleted:"Comment deleted",commentError:"Failed to post comment",confirmDeleteComment:"Are you sure you want to delete this comment?",activity:"Activity",recentActivity:"Recent Activity",allActivity:"All Activity",noActivity:"No activity recorded",loadMore:"Load more",actions:{created:"created",updated:"updated",deleted:"deleted",commented:"commented on"},resourceTypes:{term:"term",asset:"asset",column:"column"},timeAgo:{justNow:"Just now",minutesAgo:"{count} minutes ago",hoursAgo:"{count} hours ago",daysAgo:"{count} days ago",weeksAgo:"{count} weeks ago",monthsAgo:"{count} months ago"},filterByResource:"Filter by resource",allResources:"All resources"},ko:{comments:"댓글",addComment:"댓글 추가",editComment:"수정",deleteComment:"삭제",noComments:"댓글이 없습니다",writeComment:"댓글을 작성하세요...",reply:"답글",replyTo:"답글 작성",cancelReply:"취소",postComment:"등록",commentPosted:"댓글이 등록되었습니다",commentUpdated:"댓글이 수정되었습니다",commentDeleted:"댓글이 삭제되었습니다",commentError:"댓글 등록에 실패했습니다",confirmDeleteComment:"이 댓글을 삭제하시겠습니까?",activity:"활동",recentActivity:"최근 활동",allActivity:"모든 활동",noActivity:"기록된 활동이 없습니다",loadMore:"더 보기",actions:{created:"생성됨",updated:"수정됨",deleted:"삭제됨",commented:"댓글 작성"},resourceTypes:{term:"용어",asset:"자산",column:"컬럼"},timeAgo:{justNow:"방금 전",minutesAgo:"{count}분 전",hoursAgo:"{count}시간 전",daysAgo:"{count}일 전",weeksAgo:"{count}주 전",monthsAgo:"{count}개월 전"},filterByResource:"리소스 필터",allResources:"모든 리소스"}}},$Ae=["collaboration::local::src/content/collaboration.content.ts"],ew={key:MAe,content:DAe,localIds:$Ae};function AB({resourceType:e,resourceId:t}){const n=ye(ew),r=ye(Xt),{toast:o}=It(),{confirm:i,ConfirmDialog:a}=tu(),[s,c]=h.useState([]),[u,f]=h.useState(!0),[d,p]=h.useState(""),[m,b]=h.useState(null),[y,v]=h.useState(""),[x,g]=h.useState(null),[w,E]=h.useState(""),[A,S]=h.useState(!1),N=h.useCallback(async()=>{try{f(!0);const C=await V7(e,t);c(C)}catch{o({title:U(r.error),description:U(n.commentError),variant:"destructive"})}finally{f(!1)}},[e,t,o,r,n]);h.useEffect(()=>{N()},[N]);const _=async()=>{if(d.trim()){S(!0);try{const C=await hA({resource_type:e,resource_id:t,content:d.trim()});c([{...C,replies:[]},...s]),p(""),o({title:U(r.success),description:U(n.commentPosted)})}catch{o({title:U(r.error),description:U(n.commentError),variant:"destructive"})}finally{S(!1)}}},O=async()=>{if(!(!m||!y.trim())){S(!0);try{const C=await hA({resource_type:e,resource_id:t,content:y.trim(),parent_id:m});c(s.map(P=>P.id===m?{...P,replies:[...P.replies,{...C,replies:[]}]}:P)),b(null),v(""),o({title:U(r.success),description:U(n.commentPosted)})}catch{o({title:U(r.error),description:U(n.commentError),variant:"destructive"})}finally{S(!1)}}},T=async()=>{if(!(!x||!w.trim())){S(!0);try{await K7(x,{content:w.trim()}),c(s.map(C=>C.id===x?{...C,content:w.trim()}:{...C,replies:C.replies.map(P=>P.id===x?{...P,content:w.trim()}:P)})),g(null),E(""),o({title:U(r.success),description:U(n.commentUpdated)})}catch{o({title:U(r.error),description:U(n.commentError),variant:"destructive"})}finally{S(!1)}}},j=async C=>{if(await i({title:U(n.deleteComment),description:U(n.confirmDeleteComment),confirmText:U(r.delete),variant:"destructive"}))try{await Y7(C),c(s.filter(M=>M.id!==C).map(M=>({...M,replies:M.replies.filter(L=>L.id!==C)}))),o({title:U(r.success),description:U(n.commentDeleted)})}catch{o({title:U(r.error),description:U(n.commentError),variant:"destructive"})}},I=C=>{g(C.id),E(C.content),b(null)},$=(C,P=!1)=>{const M=x===C.id;return l.jsxs("div",{className:`${P?"ml-8 border-l-2 pl-4":""}`,children:[l.jsx("div",{className:"p-3 rounded-lg border bg-card",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex-1",children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[l.jsx("span",{className:"font-medium",children:C.author_id||"Anonymous"}),l.jsx("span",{className:"text-muted-foreground",children:"·"}),l.jsx("span",{className:"text-muted-foreground",children:yn(C.created_at)})]}),M?l.jsxs("div",{className:"mt-2 space-y-2",children:[l.jsx("textarea",{value:w,onChange:L=>E(L.target.value),className:"w-full min-h-[60px] rounded-md border border-input bg-background px-3 py-2 text-sm",autoFocus:!0}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(Y,{size:"sm",onClick:T,disabled:A,children:r.save}),l.jsx(Y,{size:"sm",variant:"ghost",onClick:()=>{g(null),E("")},children:r.cancel})]})]}):l.jsx("p",{className:"mt-1 text-sm",children:C.content})]}),!M&&l.jsxs("div",{className:"flex items-center gap-1 ml-2",children:[!P&&l.jsx(Y,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>{b(C.id),g(null)},children:l.jsx(_6,{className:"h-3 w-3"})}),l.jsx(Y,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>I(C),children:l.jsx(Ha,{className:"h-3 w-3"})}),l.jsx(Y,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>j(C.id),children:l.jsx(Gr,{className:"h-3 w-3 text-destructive"})})]})]})}),m===C.id&&l.jsxs("div",{className:"ml-8 mt-2 space-y-2",children:[l.jsx("textarea",{value:y,onChange:L=>v(L.target.value),placeholder:U(n.replyTo),className:"w-full min-h-[60px] rounded-md border border-input bg-background px-3 py-2 text-sm",autoFocus:!0}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(Y,{size:"sm",onClick:O,disabled:A,children:n.reply}),l.jsx(Y,{size:"sm",variant:"ghost",onClick:()=>{b(null),v("")},children:n.cancelReply})]})]}),C.replies.length>0&&l.jsx("div",{className:"mt-2 space-y-2",children:C.replies.map(L=>$(L,!0))})]},C.id)};return u?l.jsx("div",{className:"flex items-center justify-center py-8",children:l.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-primary"})}):l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx("textarea",{value:d,onChange:C=>p(C.target.value),placeholder:U(n.writeComment),className:"w-full min-h-[80px] rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"}),l.jsx("div",{className:"flex justify-end",children:l.jsxs(Y,{onClick:_,disabled:A||!d.trim(),children:[l.jsx($k,{className:"mr-2 h-4 w-4"}),n.postComment]})})]}),s.length===0?l.jsxs("div",{className:"text-center py-8",children:[l.jsx(Kc,{className:"h-12 w-12 mx-auto text-muted-foreground/50 mb-2"}),l.jsx("p",{className:"text-muted-foreground",children:n.noComments})]}):l.jsx("div",{className:"space-y-4",children:s.map(C=>$(C))}),l.jsx(a,{})]})}function LAe(){var w;const{id:e}=$i(),t=ye(Jb),n=ye(Xt),{selectedTerm:r,loading:o,fetchTerm:i,fetchCategories:a,clearSelectedTerm:s}=zh(),{toast:c}=It(),[u,f]=h.useState([]),[d,p]=h.useState([]),[,m]=h.useState(!1),b=h.useCallback(async()=>{if(e)try{await Promise.all([i(e),a()]),m(!0);const[E,A]=await Promise.all([k7(e),M7(e)]);f(E),p(A)}catch{c({title:"Error",description:"Failed to load term details",variant:"destructive"})}finally{m(!1)}},[e,i,a,c]);h.useEffect(()=>(b(),()=>s()),[b,s]);const y=E=>{switch(E){case"approved":return"success";case"deprecated":return"destructive";default:return"secondary"}},v=E=>{switch(E){case"approved":return t.status.approved;case"deprecated":return t.status.deprecated;default:return t.status.draft}};if(o||!r)return l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});const x=d.filter(E=>E.relationship_type==="synonym"),g=d.filter(E=>E.relationship_type==="related");return l.jsxs("div",{className:"space-y-6",children:[l.jsxs(Pe,{to:"/glossary",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground",children:[l.jsx(Ui,{className:"mr-2 h-4 w-4"}),n.back]}),l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-lg bg-primary/10 flex items-center justify-center",children:l.jsx(Ua,{className:"h-7 w-7 text-primary"})}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:r.name}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx(ae,{variant:y(r.status),children:v(r.status)}),r.category&&l.jsx(ae,{variant:"outline",children:r.category.name})]})]})]}),l.jsx(Y,{variant:"outline",asChild:!0,children:l.jsxs(Pe,{to:`/glossary/${e}/edit`,children:[l.jsx(Ha,{className:"mr-2 h-4 w-4"}),n.edit]})})]}),l.jsxs(ou,{defaultValue:"overview",className:"space-y-4",children:[l.jsxs(Es,{children:[l.jsx(Bt,{value:"overview",children:t.tabs.overview}),l.jsx(Bt,{value:"relationships",children:t.tabs.relationships}),l.jsx(Bt,{value:"history",children:t.tabs.history}),l.jsx(Bt,{value:"comments",children:t.tabs.comments})]}),l.jsxs(Ut,{value:"overview",className:"space-y-4",children:[l.jsxs(X,{children:[l.jsx(ve,{children:l.jsx(xe,{children:t.definition})}),l.jsx(Z,{children:l.jsx("p",{className:"text-muted-foreground",children:r.definition})})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[l.jsxs(X,{children:[l.jsx(ve,{children:l.jsx(xe,{className:"text-base",children:t.category})}),l.jsx(Z,{children:l.jsx("p",{children:((w=r.category)==null?void 0:w.name)||t.noCategory})})]}),l.jsxs(X,{children:[l.jsx(ve,{children:l.jsx(xe,{className:"text-base",children:t.owner})}),l.jsx(Z,{children:l.jsx("p",{children:r.owner_id||"-"})})]})]}),(x.length>0||g.length>0)&&l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(Sl,{className:"h-5 w-5"}),t.relationships]})}),l.jsxs(Z,{className:"space-y-4",children:[x.length>0&&l.jsxs("div",{children:[l.jsx("h4",{className:"text-sm font-medium mb-2",children:t.synonyms}),l.jsx("div",{className:"flex flex-wrap gap-2",children:x.map(E=>l.jsx(Pe,{to:`/glossary/${E.target_term.id}`,children:l.jsx(ae,{variant:"outline",className:"cursor-pointer hover:bg-accent",children:E.target_term.name})},E.id))})]}),g.length>0&&l.jsxs("div",{children:[l.jsx("h4",{className:"text-sm font-medium mb-2",children:t.relatedTerms}),l.jsx("div",{className:"flex flex-wrap gap-2",children:g.map(E=>l.jsx(Pe,{to:`/glossary/${E.target_term.id}`,children:l.jsx(ae,{variant:"outline",className:"cursor-pointer hover:bg-accent",children:E.target_term.name})},E.id))})]})]})]})]}),l.jsxs(Ut,{value:"relationships",className:"space-y-4",children:[l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(Sl,{className:"h-5 w-5"}),t.synonyms]})}),l.jsx(Z,{children:x.length===0?l.jsx("p",{className:"text-muted-foreground text-sm",children:"-"}):l.jsx("div",{className:"space-y-2",children:x.map(E=>l.jsxs(Pe,{to:`/glossary/${E.target_term.id}`,className:"flex items-center justify-between p-3 rounded-lg border hover:bg-accent transition-colors",children:[l.jsxs("div",{children:[l.jsx("p",{className:"font-medium",children:E.target_term.name}),l.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1",children:E.target_term.definition})]}),l.jsx(ae,{variant:"secondary",children:t.relationshipTypes.synonym})]},E.id))})})]}),l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(Sl,{className:"h-5 w-5"}),t.relatedTerms]})}),l.jsx(Z,{children:g.length===0?l.jsx("p",{className:"text-muted-foreground text-sm",children:"-"}):l.jsx("div",{className:"space-y-2",children:g.map(E=>l.jsxs(Pe,{to:`/glossary/${E.target_term.id}`,className:"flex items-center justify-between p-3 rounded-lg border hover:bg-accent transition-colors",children:[l.jsxs("div",{children:[l.jsx("p",{className:"font-medium",children:E.target_term.name}),l.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1",children:E.target_term.definition})]}),l.jsx(ae,{variant:"secondary",children:t.relationshipTypes.related})]},E.id))})})]})]}),l.jsx(Ut,{value:"history",children:l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(vy,{className:"h-5 w-5"}),t.history]})}),l.jsx(Z,{children:u.length===0?l.jsx("p",{className:"text-muted-foreground text-center py-8",children:t.noHistory}):l.jsx("div",{className:"space-y-3",children:u.map(E=>l.jsx("div",{className:"flex items-start gap-4 p-3 rounded-lg border",children:l.jsxs("div",{className:"flex-1",children:[l.jsxs("p",{className:"font-medium",children:[E.field_name," updated"]}),l.jsxs("div",{className:"text-sm text-muted-foreground mt-1",children:[l.jsxs("span",{children:[t.changedFrom,": ",E.old_value||"-"]}),l.jsx("span",{className:"mx-2",children:"→"}),l.jsxs("span",{children:[t.changedTo,": ",E.new_value||"-"]})]}),l.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[t.changedBy,": ",E.changed_by," · ",yn(E.changed_at)]})]})},E.id))})})]})}),l.jsx(Ut,{value:"comments",children:l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(Kc,{className:"h-5 w-5"}),t.tabs.comments]})}),l.jsx(Z,{children:l.jsx(AB,{resourceType:"term",resourceId:e})})]})})]})]})}const FAe="catalog",BAe={nodeType:"translation",translation:{en:{title:"Data Catalog",subtitle:"Browse and manage data assets",assets:"Assets",addAsset:"Add Asset",editAsset:"Edit Asset",deleteAsset:"Delete Asset",addColumn:"Add Column",addTag:"Add Tag",assetName:"Asset Name",assetType:"Asset Type",dataSource:"Data Source",columns:"Columns",qualityScore:"Quality Score",tags:"Tags",description:"Description",owner:"Owner",selectSource:"Select data source",noSource:"No data source",assetTypes:{table:"Table",file:"File",api:"API"},columnName:"Column Name",dataType:"Data Type",nullable:"Nullable",primaryKey:"Primary Key",mappedTerm:"Mapped Term",columnMapping:"Column Mapping",mapToTerm:"Map to Term",unmapTerm:"Remove Mapping",searchTermToMap:"Search terms to map...",noTermSelected:"No term mapped",tagName:"Tag Name",tagValue:"Tag Value",noTags:"No tags",sensitivity:{title:"Sensitivity",public:"Public",internal:"Internal",confidential:"Confidential",restricted:"Restricted"},searchAssets:"Search assets...",filterByType:"Filter by type",filterBySource:"Filter by source",allTypes:"All types",allSources:"All sources",noAssets:"No assets found",noAssetsYet:"No assets yet",noAssetsDesc:"Add your first data asset to start building your catalog",addFirstAsset:"Add Your First Asset",noColumns:"No columns defined",confirmDelete:"Are you sure you want to delete this asset? All columns and tags will also be deleted.",loadError:"Failed to load assets",createSuccess:"Asset created successfully",createError:"Failed to create asset",updateSuccess:"Asset updated successfully",updateError:"Failed to update asset",deleteSuccess:"Asset deleted successfully",deleteError:"Failed to delete asset",mappingSuccess:"Column mapped successfully",mappingError:"Failed to map column",unmappingSuccess:"Mapping removed",tabs:{overview:"Overview",columns:"Columns",tags:"Tags",comments:"Comments"}},ko:{title:"데이터 카탈로그",subtitle:"데이터 자산 탐색 및 관리",assets:"자산",addAsset:"자산 추가",editAsset:"자산 수정",deleteAsset:"자산 삭제",addColumn:"컬럼 추가",addTag:"태그 추가",assetName:"자산명",assetType:"자산 유형",dataSource:"데이터 소스",columns:"컬럼",qualityScore:"품질 점수",tags:"태그",description:"설명",owner:"담당자",selectSource:"데이터 소스 선택",noSource:"데이터 소스 없음",assetTypes:{table:"테이블",file:"파일",api:"API"},columnName:"컬럼명",dataType:"데이터 타입",nullable:"Null 허용",primaryKey:"기본키",mappedTerm:"매핑된 용어",columnMapping:"컬럼 매핑",mapToTerm:"용어에 매핑",unmapTerm:"매핑 해제",searchTermToMap:"매핑할 용어 검색...",noTermSelected:"매핑된 용어 없음",tagName:"태그명",tagValue:"태그 값",noTags:"태그 없음",sensitivity:{title:"민감도",public:"공개",internal:"내부용",confidential:"기밀",restricted:"제한"},searchAssets:"자산 검색...",filterByType:"유형 필터",filterBySource:"소스 필터",allTypes:"모든 유형",allSources:"모든 소스",noAssets:"자산이 없습니다",noAssetsYet:"등록된 자산이 없습니다",noAssetsDesc:"첫 번째 데이터 자산을 추가하여 카탈로그를 구축하세요",addFirstAsset:"첫 번째 자산 추가",noColumns:"정의된 컬럼이 없습니다",confirmDelete:"이 자산을 삭제하시겠습니까? 모든 컬럼과 태그도 함께 삭제됩니다.",loadError:"자산을 불러오지 못했습니다",createSuccess:"자산이 생성되었습니다",createError:"자산 생성에 실패했습니다",updateSuccess:"자산이 수정되었습니다",updateError:"자산 수정에 실패했습니다",deleteSuccess:"자산이 삭제되었습니다",deleteError:"자산 삭제에 실패했습니다",mappingSuccess:"컬럼이 매핑되었습니다",mappingError:"컬럼 매핑에 실패했습니다",unmappingSuccess:"매핑이 해제되었습니다",tabs:{overview:"개요",columns:"컬럼",tags:"태그",comments:"댓글"}}}},UAe=["catalog::local::src/content/catalog.content.ts"],Wh={key:FAe,content:BAe,localIds:UAe},tw=SB((e,t)=>({assets:[],selectedAsset:null,loading:!1,error:null,fetchAssets:async n=>{e({loading:!0,error:null});try{const r=await B7(n);e({assets:r,loading:!1})}catch(r){const o=r instanceof Error?r.message:"Failed to fetch assets";e({error:o,loading:!1})}},fetchAsset:async n=>{e({loading:!0,error:null});try{const r=await BM(n);e({selectedAsset:r,loading:!1})}catch(r){const o=r instanceof Error?r.message:"Failed to fetch asset";e({error:o,loading:!1})}},createAsset:async n=>{e({loading:!0,error:null});try{const r=await U7(n);return await t().fetchAssets(),e({loading:!1}),r}catch(r){const o=r instanceof Error?r.message:"Failed to create asset";throw e({error:o,loading:!1}),r}},updateAsset:async(n,r)=>{e({loading:!0,error:null});try{const o=await H7(n,r);return e(i=>{var a;return{assets:i.assets.map(s=>s.id===n?{...s,name:o.name,asset_type:o.asset_type,source_id:o.source_id,quality_score:o.quality_score,updated_at:o.updated_at}:s),selectedAsset:((a=i.selectedAsset)==null?void 0:a.id)===n?o:i.selectedAsset,loading:!1}}),o}catch(o){const i=o instanceof Error?o.message:"Failed to update asset";throw e({error:i,loading:!1}),o}},deleteAsset:async n=>{e({loading:!0,error:null});try{await z7(n),e(r=>{var o;return{assets:r.assets.filter(i=>i.id!==n),selectedAsset:((o=r.selectedAsset)==null?void 0:o.id)===n?null:r.selectedAsset,loading:!1}})}catch(r){const o=r instanceof Error?r.message:"Failed to delete asset";throw e({error:o,loading:!1}),r}},clearSelectedAsset:()=>e({selectedAsset:null}),mapColumnToTerm:async(n,r)=>{try{const o=await W7(n,r);e(i=>i.selectedAsset?{selectedAsset:{...i.selectedAsset,columns:i.selectedAsset.columns.map(a=>a.id===n?o:a)}}:i)}catch(o){const i=o instanceof Error?o.message:"Failed to map column to term";throw e({error:i}),o}},unmapColumnFromTerm:async n=>{try{const r=await G7(n);e(o=>o.selectedAsset?{selectedAsset:{...o.selectedAsset,columns:o.selectedAsset.columns.map(i=>i.id===n?r:i)}}:o)}catch(r){const o=r instanceof Error?r.message:"Failed to unmap column from term";throw e({error:o}),r}},clearError:()=>e({error:null})}));function HAe({open:e,onOpenChange:t,assetId:n,sources:r,onSuccess:o}){const i=ye(Wh),a=ye(Xt),{createAsset:s,updateAsset:c}=tw(),{toast:u}=It(),[f,d]=h.useState(!1),[p,m]=h.useState(""),[b,y]=h.useState("table"),[v,x]=h.useState(""),[g,w]=h.useState(""),[E,A]=h.useState(""),S=!!n;h.useEffect(()=>{e&&n?BM(n).then(_=>{m(_.name),y(_.asset_type),x(_.source_id||""),w(_.description||""),A(_.owner_id||"")}):e&&(m(""),y("table"),x(""),w(""),A(""))},[e,n]);const N=async _=>{if(_.preventDefault(),!!p.trim()){d(!0);try{S&&n?(await c(n,{name:p,asset_type:b,source_id:v||void 0,description:g||void 0,owner_id:E||void 0}),u({title:U(a.success),description:U(i.updateSuccess)})):(await s({name:p,asset_type:b,source_id:v||void 0,description:g||void 0,owner_id:E||void 0}),u({title:U(a.success),description:U(i.createSuccess)})),o==null||o()}catch{u({title:U(a.error),description:U(S?i.updateError:i.createError),variant:"destructive"})}finally{d(!1)}}};return l.jsx(Wi,{open:e,onOpenChange:t,children:l.jsxs(Uo,{className:"sm:max-w-[500px]",children:[l.jsx(Ho,{children:l.jsx(zo,{children:S?i.editAsset:i.addAsset})}),l.jsxs("form",{onSubmit:N,className:"space-y-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{htmlFor:"name",children:i.assetName}),l.jsx(St,{id:"name",value:p,onChange:_=>m(_.target.value),placeholder:"customers, orders, transactions...",required:!0})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{children:i.assetType}),l.jsxs(at,{value:b,onValueChange:_=>y(_),children:[l.jsx(nt,{children:l.jsx(st,{})}),l.jsxs(rt,{children:[l.jsx(fe,{value:"table",children:i.assetTypes.table}),l.jsx(fe,{value:"file",children:i.assetTypes.file}),l.jsx(fe,{value:"api",children:i.assetTypes.api})]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{children:i.dataSource}),l.jsxs(at,{value:v||"none",onValueChange:_=>x(_==="none"?"":_),children:[l.jsx(nt,{children:l.jsx(st,{placeholder:U(i.selectSource)})}),l.jsxs(rt,{children:[l.jsx(fe,{value:"none",children:i.noSource}),r.map(_=>l.jsx(fe,{value:_.id,children:_.name},_.id))]})]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{htmlFor:"description",children:i.description}),l.jsx("textarea",{id:"description",value:g,onChange:_=>w(_.target.value),placeholder:"Describe this data asset...",className:"w-full min-h-[80px] rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(vt,{htmlFor:"owner",children:i.owner}),l.jsx(St,{id:"owner",value:E,onChange:_=>A(_.target.value),placeholder:"John Doe"})]}),l.jsxs("div",{className:"flex justify-end gap-2 pt-4",children:[l.jsx(Y,{type:"button",variant:"outline",onClick:()=>t(!1),children:a.cancel}),l.jsx(Y,{type:"submit",disabled:f,children:f?a.saving:a.save})]})]})]})})}function zAe(){const e=ye(Li),t=ye(Wh),n=ye(Xt),{assets:r,loading:o,fetchAssets:i,deleteAsset:a}=tw(),{toast:s}=It(),{confirm:c,ConfirmDialog:u}=tu(),[f,d]=h.useState([]),[p,m]=h.useState(""),[b,y]=h.useState(""),[v,x]=h.useState(""),[g,w]=h.useState(!1),[E,A]=h.useState(null),S=h.useCallback(async()=>{await i({search:p||void 0,asset_type:b||void 0,source_id:v||void 0})},[i,p,b,v]);h.useEffect(()=>{S(),eu().then(j=>d(j.data))},[S]);const N=async j=>{if(await c({title:U(t.deleteAsset),description:U(t.confirmDelete),confirmText:U(n.delete),variant:"destructive"}))try{await a(j),s({title:U(n.success),description:U(t.deleteSuccess)})}catch{s({title:U(n.error),description:U(t.deleteError),variant:"destructive"})}},_=j=>{switch(j){case"table":return yy;case"api":return u0;default:return c0}},O=j=>{switch(j){case"table":return t.assetTypes.table;case"file":return t.assetTypes.file;case"api":return t.assetTypes.api;default:return j}},T=j=>j?j>=80?"text-green-600":j>=60?"text-yellow-600":"text-red-600":"text-muted-foreground";return o&&r.length===0?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:e.catalog}),l.jsx("p",{className:"text-muted-foreground",children:t.subtitle})]}),l.jsxs(Y,{onClick:()=>w(!0),children:[l.jsx(Vt,{className:"mr-2 h-4 w-4"}),t.addAsset]})]}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[l.jsxs("div",{className:"relative flex-1",children:[l.jsx(Ip,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),l.jsx(St,{placeholder:U(t.searchAssets),value:p,onChange:j=>m(j.target.value),className:"pl-10"})]}),l.jsxs(at,{value:b||"all",onValueChange:j=>y(j==="all"?"":j),children:[l.jsxs(nt,{className:"w-[160px]",children:[l.jsx(Pp,{className:"mr-2 h-4 w-4"}),l.jsx(st,{placeholder:U(t.filterByType)})]}),l.jsxs(rt,{children:[l.jsx(fe,{value:"all",children:t.allTypes}),l.jsx(fe,{value:"table",children:t.assetTypes.table}),l.jsx(fe,{value:"file",children:t.assetTypes.file}),l.jsx(fe,{value:"api",children:t.assetTypes.api})]})]}),l.jsxs(at,{value:v||"all",onValueChange:j=>x(j==="all"?"":j),children:[l.jsx(nt,{className:"w-[200px]",children:l.jsx(st,{placeholder:U(t.filterBySource)})}),l.jsxs(rt,{children:[l.jsx(fe,{value:"all",children:t.allSources}),f.map(j=>l.jsx(fe,{value:j.id,children:j.name},j.id))]})]})]}),r.length===0?l.jsx(X,{children:l.jsxs(Z,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(hn,{className:"h-16 w-16 text-muted-foreground/50 mb-4"}),l.jsx("h3",{className:"text-lg font-semibold mb-2",children:t.noAssetsYet}),l.jsx("p",{className:"text-muted-foreground text-center mb-4",children:t.noAssetsDesc}),l.jsxs(Y,{onClick:()=>w(!0),children:[l.jsx(Vt,{className:"mr-2 h-4 w-4"}),t.addFirstAsset]})]})}):l.jsx("div",{className:"grid gap-4",children:r.map(j=>{const I=_(j.asset_type);return l.jsx(X,{children:l.jsx(Z,{className:"p-6",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex items-start gap-4 flex-1",children:[l.jsx("div",{className:"h-12 w-12 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(I,{className:"h-6 w-6 text-primary"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx(Pe,{to:`/catalog/${j.id}`,className:"font-semibold hover:text-primary transition-colors",children:j.name}),l.jsxs("div",{className:"flex items-center gap-2 mt-1 flex-wrap",children:[l.jsx(ae,{variant:"outline",children:O(j.asset_type)}),j.source_name&&l.jsx(ae,{variant:"secondary",children:j.source_name}),l.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.columns,": ",j.column_count]}),j.tag_count>0&&l.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.tags,": ",j.tag_count]})]})]})]}),l.jsxs("div",{className:"flex items-center gap-4 ml-4",children:[j.quality_score!==void 0&&l.jsxs("div",{className:"text-right",children:[l.jsx("p",{className:"text-xs text-muted-foreground",children:t.qualityScore}),l.jsxs("p",{className:`font-semibold ${T(j.quality_score)}`,children:[j.quality_score.toFixed(1),"%"]})]}),l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>N(j.id),children:l.jsx(Gr,{className:"h-4 w-4 text-destructive"})})]})]})})},j.id)})}),l.jsx(HAe,{open:g,onOpenChange:j=>{w(j),j||A(null)},assetId:E,sources:f,onSuccess:()=>{S(),w(!1),A(null)}}),l.jsx(u,{})]})}function WAe({open:e,onOpenChange:t,columnId:n,terms:r,onMap:o}){const i=ye(Wh),a=ye(Xt),[s,c]=h.useState(""),u=h.useMemo(()=>{if(!s)return r;const d=s.toLowerCase();return r.filter(p=>p.name.toLowerCase().includes(d)||p.definition.toLowerCase().includes(d))},[r,s]),f=d=>{n&&o(n,d)};return l.jsx(Wi,{open:e,onOpenChange:t,children:l.jsxs(Uo,{className:"sm:max-w-[500px]",children:[l.jsx(Ho,{children:l.jsx(zo,{children:i.columnMapping})}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"relative",children:[l.jsx(Ip,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),l.jsx(St,{placeholder:U(i.searchTermToMap),value:s,onChange:d=>c(d.target.value),className:"pl-10"})]}),l.jsx("div",{className:"max-h-[300px] overflow-y-auto space-y-2",children:u.length===0?l.jsx("p",{className:"text-muted-foreground text-center py-4",children:i.noTermSelected}):u.map(d=>l.jsx("button",{onClick:()=>f(d.id),className:"w-full text-left p-3 rounded-lg border hover:bg-accent transition-colors",children:l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx("div",{className:"h-8 w-8 rounded bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(Ua,{className:"h-4 w-4 text-primary"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:"font-medium",children:d.name}),l.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:d.definition})]})]})},d.id))}),l.jsx("div",{className:"flex justify-end",children:l.jsx(Y,{variant:"outline",onClick:()=>t(!1),children:a.cancel})})]})]})})}function GAe(){const{id:e}=$i(),t=ye(Wh),n=ye(Xt),{selectedAsset:r,loading:o,fetchAsset:i,clearSelectedAsset:a,mapColumnToTerm:s,unmapColumnFromTerm:c}=tw(),{terms:u,fetchTerms:f}=zh(),{toast:d}=It(),[p,m]=h.useState(!1),[b,y]=h.useState(null),v=h.useCallback(async()=>{if(e)try{await Promise.all([i(e),f()])}catch{d({title:"Error",description:"Failed to load asset details",variant:"destructive"})}},[e,i,f,d]);h.useEffect(()=>(v(),()=>a()),[v,a]);const x=_=>{switch(_){case"table":return yy;case"api":return u0;default:return c0}},g=_=>{switch(_){case"table":return t.assetTypes.table;case"file":return t.assetTypes.file;case"api":return t.assetTypes.api;default:return _}},w=_=>{switch(_){case"restricted":return"destructive";case"confidential":return"high";case"internal":return"warning";default:return"secondary"}},E=_=>{switch(_){case"restricted":return t.sensitivity.restricted;case"confidential":return t.sensitivity.confidential;case"internal":return t.sensitivity.internal;default:return t.sensitivity.public}},A=async(_,O)=>{try{await s(_,O),d({title:U(n.success),description:U(t.mappingSuccess)}),m(!1),y(null)}catch{d({title:U(n.error),description:U(t.mappingError),variant:"destructive"})}},S=async _=>{try{await c(_),d({title:U(n.success),description:U(t.unmappingSuccess)})}catch{d({title:U(n.error),description:U(t.mappingError),variant:"destructive"})}};if(o||!r)return l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});const N=x(r.asset_type);return l.jsxs("div",{className:"space-y-6",children:[l.jsxs(Pe,{to:"/catalog",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground",children:[l.jsx(Ui,{className:"mr-2 h-4 w-4"}),n.back]}),l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-lg bg-primary/10 flex items-center justify-center",children:l.jsx(N,{className:"h-7 w-7 text-primary"})}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:r.name}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx(ae,{variant:"outline",children:g(r.asset_type)}),r.source&&l.jsx(ae,{variant:"secondary",children:r.source.name}),r.quality_score!==void 0&&l.jsxs(ae,{variant:r.quality_score>=80?"success":r.quality_score>=60?"warning":"destructive",children:[t.qualityScore,": ",r.quality_score.toFixed(1),"%"]})]})]})]}),l.jsxs(Y,{variant:"outline",children:[l.jsx(Ha,{className:"mr-2 h-4 w-4"}),n.edit]})]}),l.jsxs(ou,{defaultValue:"overview",className:"space-y-4",children:[l.jsxs(Es,{children:[l.jsx(Bt,{value:"overview",children:t.tabs.overview}),l.jsx(Bt,{value:"columns",children:t.tabs.columns}),l.jsx(Bt,{value:"tags",children:t.tabs.tags}),l.jsx(Bt,{value:"comments",children:t.tabs.comments})]}),l.jsxs(Ut,{value:"overview",className:"space-y-4",children:[r.description&&l.jsxs(X,{children:[l.jsx(ve,{children:l.jsx(xe,{children:t.description})}),l.jsx(Z,{children:l.jsx("p",{className:"text-muted-foreground",children:r.description})})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[l.jsx(X,{children:l.jsxs(Z,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:t.columns}),l.jsx("p",{className:"text-2xl font-bold mt-1",children:r.columns.length})]})}),l.jsx(X,{children:l.jsxs(Z,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:t.tags}),l.jsx("p",{className:"text-2xl font-bold mt-1",children:r.tags.length})]})}),l.jsx(X,{children:l.jsxs(Z,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:t.owner}),l.jsx("p",{className:"text-lg font-medium mt-1",children:r.owner_id||"-"})]})})]})]}),l.jsx(Ut,{value:"columns",children:l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(yy,{className:"h-5 w-5"}),t.columns," (",r.columns.length,")"]})}),l.jsx(Z,{children:r.columns.length===0?l.jsx("p",{className:"text-muted-foreground text-center py-8",children:t.noColumns}):l.jsx("div",{className:"space-y-2",children:r.columns.map(_=>l.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg border",children:[l.jsx("div",{className:"flex items-center gap-4",children:l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("p",{className:"font-medium",children:_.name}),_.is_primary_key&&l.jsx(ae,{variant:"outline",className:"text-xs",children:"PK"}),!_.is_nullable&&l.jsx(ae,{variant:"outline",className:"text-xs",children:"NOT NULL"})]}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:_.data_type||"unknown"}),_.sensitivity_level&&l.jsxs(ae,{variant:w(_.sensitivity_level),className:"text-xs",children:[l.jsx(Fk,{className:"h-3 w-3 mr-1"}),E(_.sensitivity_level)]})]}),_.description&&l.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:_.description})]})}),l.jsx("div",{className:"flex items-center gap-2",children:_.term?l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs(Pe,{to:`/glossary/${_.term.id}`,className:"flex items-center gap-1 text-sm text-primary hover:underline",children:[l.jsx(Sl,{className:"h-3 w-3"}),_.term.name]}),l.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>S(_.id),children:t.unmapTerm})]}):l.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>{y(_.id),m(!0)},children:[l.jsx(Sl,{className:"h-4 w-4 mr-1"}),t.mapToTerm]})})]},_.id))})})]})}),l.jsx(Ut,{value:"tags",children:l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(T6,{className:"h-5 w-5"}),t.tags," (",r.tags.length,")"]})}),l.jsx(Z,{children:r.tags.length===0?l.jsx("p",{className:"text-muted-foreground text-center py-8",children:t.noTags}):l.jsx("div",{className:"flex flex-wrap gap-2",children:r.tags.map(_=>l.jsxs(ae,{variant:"secondary",children:[_.tag_name,_.tag_value&&`: ${_.tag_value}`]},_.id))})})]})}),l.jsx(Ut,{value:"comments",children:l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(Kc,{className:"h-5 w-5"}),t.tabs.comments]})}),l.jsx(Z,{children:l.jsx(AB,{resourceType:"asset",resourceId:e})})]})})]}),l.jsx(WAe,{open:p,onOpenChange:m,columnId:b,terms:u,onMap:A})]})}function VAe({activities:e,showResourceLinks:t=!0}){const n=ye(ew),r=u=>{switch(u){case"created":return Vt;case"updated":return Ha;case"deleted":return Gr;case"commented":return Kc;default:return Ha}},o=u=>{switch(u){case"created":return"text-green-600 bg-green-100 dark:bg-green-900/30";case"deleted":return"text-red-600 bg-red-100 dark:bg-red-900/30";case"commented":return"text-blue-600 bg-blue-100 dark:bg-blue-900/30";default:return"text-yellow-600 bg-yellow-100 dark:bg-yellow-900/30"}},i=u=>{switch(u){case"term":return Ua;case"asset":return hn;case"column":return Mk;default:return hn}},a=(u,f)=>{switch(u){case"term":return`/glossary/${f}`;case"asset":return`/catalog/${f}`;default:return null}},s=u=>{switch(u){case"created":return n.actions.created;case"updated":return n.actions.updated;case"deleted":return n.actions.deleted;case"commented":return n.actions.commented;default:return u}},c=u=>{switch(u){case"term":return n.resourceTypes.term;case"asset":return n.resourceTypes.asset;case"column":return n.resourceTypes.column;default:return u}};return e.length===0?l.jsx("div",{className:"text-center py-8",children:l.jsx("p",{className:"text-muted-foreground",children:n.noActivity})}):l.jsx("div",{className:"space-y-4",children:e.map(u=>{const f=r(u.action),d=i(u.resource_type),p=t?a(u.resource_type,u.resource_id):null;return l.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg border",children:[l.jsx("div",{className:`h-8 w-8 rounded-full flex items-center justify-center flex-shrink-0 ${o(u.action)}`,children:l.jsx(f,{className:"h-4 w-4"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[l.jsx("span",{className:"font-medium",children:u.actor_id||"System"}),l.jsx("span",{className:"text-muted-foreground",children:s(u.action)}),l.jsxs(ae,{variant:"outline",className:"flex items-center gap-1",children:[l.jsx(d,{className:"h-3 w-3"}),c(u.resource_type)]})]}),u.description&&l.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:u.description}),l.jsxs("div",{className:"flex items-center gap-2 mt-2 text-xs text-muted-foreground",children:[l.jsx("span",{children:yn(u.created_at)}),p&&l.jsxs(l.Fragment,{children:[l.jsx("span",{children:"·"}),l.jsxs(Pe,{to:p,className:"text-primary hover:underline",children:["View ",u.resource_type]})]})]})]})]},u.id)})})}function KAe(){const e=ye(Li),t=ye(ew),n=ye(Xt),{toast:r}=It(),[o,i]=h.useState([]),[a,s]=h.useState(!0),[c,u]=h.useState(""),[f,d]=h.useState(!0),[p,m]=h.useState(0),b=20,y=h.useCallback(async(x=!1)=>{try{s(!0);const w=await q7({resource_type:c||void 0,skip:x?0:p,limit:b});x?(i(w),m(b)):(i(E=>[...E,...w]),m(E=>E+b)),d(w.length===b)}catch{r({title:U(n.error),description:"Failed to load activities",variant:"destructive"})}finally{s(!1)}},[c,p,r,n]);h.useEffect(()=>{y(!0)},[c]);const v=()=>{!a&&f&&y(!1)};return l.jsxs("div",{className:"space-y-6",children:[l.jsx("div",{className:"flex items-center justify-between",children:l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:e.activity}),l.jsx("p",{className:"text-muted-foreground",children:t.recentActivity})]})}),l.jsx("div",{className:"flex items-center gap-4",children:l.jsxs(at,{value:c||"all",onValueChange:x=>u(x==="all"?"":x),children:[l.jsxs(nt,{className:"w-[200px]",children:[l.jsx(Pp,{className:"mr-2 h-4 w-4"}),l.jsx(st,{placeholder:U(t.filterByResource)})]}),l.jsxs(rt,{children:[l.jsx(fe,{value:"all",children:t.allResources}),l.jsx(fe,{value:"term",children:t.resourceTypes.term}),l.jsx(fe,{value:"asset",children:t.resourceTypes.asset}),l.jsx(fe,{value:"column",children:t.resourceTypes.column})]})]})}),l.jsxs(X,{children:[l.jsx(ve,{children:l.jsxs(xe,{className:"flex items-center gap-2",children:[l.jsx(Ik,{className:"h-5 w-5"}),t.allActivity]})}),l.jsx(Z,{children:a&&o.length===0?l.jsx("div",{className:"flex items-center justify-center py-8",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs(l.Fragment,{children:[l.jsx(VAe,{activities:o}),f&&l.jsx("div",{className:"flex justify-center mt-4",children:l.jsx(Y,{variant:"outline",onClick:v,disabled:a,children:a?n.loading:t.loadMore})})]})})]})]})}function YAe(){return l.jsx(h.Suspense,{fallback:l.jsx(K9,{}),children:l.jsx(g5,{children:l.jsxs(Nt,{path:"/",element:l.jsx(V9,{}),children:[l.jsx(Nt,{index:!0,element:l.jsx(X7,{})}),l.jsx(Nt,{path:"sources",element:l.jsx(LY,{})}),l.jsx(Nt,{path:"sources/:id",element:l.jsx($q,{})}),l.jsx(Nt,{path:"sources/:id/rules",element:l.jsx(Lq,{})}),l.jsx(Nt,{path:"sources/:id/history",element:l.jsx(TSe,{})}),l.jsx(Nt,{path:"sources/:id/profile",element:l.jsx(DSe,{})}),l.jsx(Nt,{path:"validations/:id",element:l.jsx(Fq,{})}),l.jsx(Nt,{path:"drift",element:l.jsx(WSe,{})}),l.jsx(Nt,{path:"schedules",element:l.jsx(qSe,{})}),l.jsx(Nt,{path:"notifications",element:l.jsx(rAe,{})}),l.jsx(Nt,{path:"glossary",element:l.jsx(kAe,{})}),l.jsx(Nt,{path:"glossary/:id",element:l.jsx(LAe,{})}),l.jsx(Nt,{path:"catalog",element:l.jsx(zAe,{})}),l.jsx(Nt,{path:"catalog/:id",element:l.jsx(GAe,{})}),l.jsx(Nt,{path:"activity",element:l.jsx(KAe,{})})]})})})}var nw="ToastProvider",[rw,qAe,XAe]=Mp("Toast"),[EB]=nr("Toast",[XAe]),[ZAe,Gh]=EB(nw),NB=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,c]=h.useState(null),[u,f]=h.useState(0),d=h.useRef(!1),p=h.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${nw}\`. Expected non-empty \`string\`.`),l.jsx(rw.Provider,{scope:t,children:l.jsx(ZAe,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:s,onViewportChange:c,onToastAdd:h.useCallback(()=>f(m=>m+1),[]),onToastRemove:h.useCallback(()=>f(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:a})})};NB.displayName=nw;var _B="ToastViewport",QAe=["F8"],ox="toast.viewportPause",ix="toast.viewportResume",jB=h.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=QAe,label:o="Notifications ({hotkey})",...i}=e,a=Gh(_B,n),s=qAe(n),c=h.useRef(null),u=h.useRef(null),f=h.useRef(null),d=h.useRef(null),p=Ce(t,d,a.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=a.toastCount>0;h.useEffect(()=>{const v=x=>{var w;r.length!==0&&r.every(E=>x[E]||x.code===E)&&((w=d.current)==null||w.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),h.useEffect(()=>{const v=c.current,x=d.current;if(b&&v&&x){const g=()=>{if(!a.isClosePausedRef.current){const S=new CustomEvent(ox);x.dispatchEvent(S),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const S=new CustomEvent(ix);x.dispatchEvent(S),a.isClosePausedRef.current=!1}},E=S=>{!v.contains(S.relatedTarget)&&w()},A=()=>{v.contains(document.activeElement)||w()};return v.addEventListener("focusin",g),v.addEventListener("focusout",E),v.addEventListener("pointermove",g),v.addEventListener("pointerleave",A),window.addEventListener("blur",g),window.addEventListener("focus",w),()=>{v.removeEventListener("focusin",g),v.removeEventListener("focusout",E),v.removeEventListener("pointermove",g),v.removeEventListener("pointerleave",A),window.removeEventListener("blur",g),window.removeEventListener("focus",w)}}},[b,a.isClosePausedRef]);const y=h.useCallback(({tabbingDirection:v})=>{const g=s().map(w=>{const E=w.ref.current,A=[E,...d1e(E)];return v==="forwards"?A:A.reverse()});return(v==="forwards"?g.reverse():g).flat()},[s]);return h.useEffect(()=>{const v=d.current;if(v){const x=g=>{var A,S,N;const w=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!w){const _=document.activeElement,O=g.shiftKey;if(g.target===v&&O){(A=u.current)==null||A.focus();return}const I=y({tabbingDirection:O?"backwards":"forwards"}),$=I.findIndex(C=>C===_);hv(I.slice($+1))?g.preventDefault():O?(S=u.current)==null||S.focus():(N=f.current)==null||N.focus()}};return v.addEventListener("keydown",x),()=>v.removeEventListener("keydown",x)}},[s,y]),l.jsxs(KW,{ref:c,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&l.jsx(ax,{ref:u,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"forwards"});hv(v)}}),l.jsx(rw.Slot,{scope:n,children:l.jsx(he.ol,{tabIndex:-1,...i,ref:p})}),b&&l.jsx(ax,{ref:f,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"backwards"});hv(v)}})]})});jB.displayName=_B;var CB="ToastFocusProxy",ax=h.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Gh(CB,n);return l.jsx(z0,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const s=a.relatedTarget;!((u=i.viewport)!=null&&u.contains(s))&&r()}})});ax.displayName=CB;var mu="Toast",JAe="toast.swipeStart",e1e="toast.swipeMove",t1e="toast.swipeCancel",n1e="toast.swipeEnd",OB=h.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[s,c]=Mo({prop:r,defaultProp:o??!0,onChange:i,caller:mu});return l.jsx(Er,{present:n||s,children:l.jsx(i1e,{open:s,...a,ref:t,onClose:()=>c(!1),onPause:rn(e.onPause),onResume:rn(e.onResume),onSwipeStart:ee(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ee(e.onSwipeMove,u=>{const{x:f,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ee(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ee(e.onSwipeEnd,u=>{const{x:f,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),c(!1)})})})});OB.displayName=mu;var[r1e,o1e]=EB(mu,{onClose(){}}),i1e=h.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:c,onResume:u,onSwipeStart:f,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:m,...b}=e,y=Gh(mu,n),[v,x]=h.useState(null),g=Ce(t,C=>x(C)),w=h.useRef(null),E=h.useRef(null),A=o||y.duration,S=h.useRef(0),N=h.useRef(A),_=h.useRef(0),{onToastAdd:O,onToastRemove:T}=y,j=rn(()=>{var P;(v==null?void 0:v.contains(document.activeElement))&&((P=y.viewport)==null||P.focus()),a()}),I=h.useCallback(C=>{!C||C===1/0||(window.clearTimeout(_.current),S.current=new Date().getTime(),_.current=window.setTimeout(j,C))},[j]);h.useEffect(()=>{const C=y.viewport;if(C){const P=()=>{I(N.current),u==null||u()},M=()=>{const L=new Date().getTime()-S.current;N.current=N.current-L,window.clearTimeout(_.current),c==null||c()};return C.addEventListener(ox,M),C.addEventListener(ix,P),()=>{C.removeEventListener(ox,M),C.removeEventListener(ix,P)}}},[y.viewport,A,c,u,I]),h.useEffect(()=>{i&&!y.isClosePausedRef.current&&I(A)},[i,A,y.isClosePausedRef,I]),h.useEffect(()=>(O(),()=>T()),[O,T]);const $=h.useMemo(()=>v?DB(v):null,[v]);return y.viewport?l.jsxs(l.Fragment,{children:[$&&l.jsx(a1e,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:$}),l.jsx(r1e,{scope:n,onClose:j,children:Mi.createPortal(l.jsx(rw.ItemSlot,{scope:n,children:l.jsx(VW,{asChild:!0,onEscapeKeyDown:ee(s,()=>{y.isFocusedToastEscapeKeyDownRef.current||j(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(he.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...b,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ee(e.onKeyDown,C=>{C.key==="Escape"&&(s==null||s(C.nativeEvent),C.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,j()))}),onPointerDown:ee(e.onPointerDown,C=>{C.button===0&&(w.current={x:C.clientX,y:C.clientY})}),onPointerMove:ee(e.onPointerMove,C=>{if(!w.current)return;const P=C.clientX-w.current.x,M=C.clientY-w.current.y,L=!!E.current,R=["left","right"].includes(y.swipeDirection),k=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,H=R?k(0,P):0,G=R?0:k(0,M),W=C.pointerType==="touch"?10:2,J={x:H,y:G},ce={originalEvent:C,delta:J};L?(E.current=J,id(e1e,d,ce,{discrete:!1})):u_(J,y.swipeDirection,W)?(E.current=J,id(JAe,f,ce,{discrete:!1}),C.target.setPointerCapture(C.pointerId)):(Math.abs(P)>W||Math.abs(M)>W)&&(w.current=null)}),onPointerUp:ee(e.onPointerUp,C=>{const P=E.current,M=C.target;if(M.hasPointerCapture(C.pointerId)&&M.releasePointerCapture(C.pointerId),E.current=null,w.current=null,P){const L=C.currentTarget,R={originalEvent:C,delta:P};u_(P,y.swipeDirection,y.swipeThreshold)?id(n1e,m,R,{discrete:!0}):id(t1e,p,R,{discrete:!0}),L.addEventListener("click",k=>k.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),a1e=e=>{const{__scopeToast:t,children:n,...r}=e,o=Gh(mu,t),[i,a]=h.useState(!1),[s,c]=h.useState(!1);return c1e(()=>a(!0)),h.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),s?null:l.jsx(Xc,{asChild:!0,children:l.jsx(z0,{...r,children:i&&l.jsxs(l.Fragment,{children:[o.label," ",n]})})})},s1e="ToastTitle",TB=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(he.div,{...r,ref:t})});TB.displayName=s1e;var l1e="ToastDescription",PB=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(he.div,{...r,ref:t})});PB.displayName=l1e;var IB="ToastAction",RB=h.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsx(MB,{altText:n,asChild:!0,children:l.jsx(ow,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${IB}\`. Expected non-empty \`string\`.`),null)});RB.displayName=IB;var kB="ToastClose",ow=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=o1e(kB,n);return l.jsx(MB,{asChild:!0,children:l.jsx(he.button,{type:"button",...r,ref:t,onClick:ee(e.onClick,o.onClose)})})});ow.displayName=kB;var MB=h.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return l.jsx(he.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function DB(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),u1e(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...DB(r))}}),t}function id(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?p0(o,i):o.dispatchEvent(i)}var u_=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function c1e(e=()=>{}){const t=rn(e);Pt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function u1e(e){return e.nodeType===e.ELEMENT_NODE}function d1e(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function hv(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var f1e=NB,$B=jB,LB=OB,FB=TB,BB=PB,UB=RB,HB=ow;const p1e=f1e,zB=h.forwardRef(({className:e,...t},n)=>l.jsx($B,{ref:n,className:oe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));zB.displayName=$B.displayName;const h1e=Rp("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),WB=h.forwardRef(({className:e,variant:t,...n},r)=>l.jsx(LB,{ref:r,className:oe(h1e({variant:t}),e),...n}));WB.displayName=LB.displayName;const m1e=h.forwardRef(({className:e,...t},n)=>l.jsx(UB,{ref:n,className:oe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));m1e.displayName=UB.displayName;const GB=h.forwardRef(({className:e,...t},n)=>l.jsx(HB,{ref:n,className:oe("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:l.jsx(d0,{className:"h-4 w-4"})}));GB.displayName=HB.displayName;const VB=h.forwardRef(({className:e,...t},n)=>l.jsx(FB,{ref:n,className:oe("text-sm font-semibold",e),...t}));VB.displayName=FB.displayName;const KB=h.forwardRef(({className:e,...t},n)=>l.jsx(BB,{ref:n,className:oe("text-sm opacity-90",e),...t}));KB.displayName=BB.displayName;function v1e(){const{toasts:e}=It();return l.jsxs(p1e,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return l.jsxs(WB,{...i,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(VB,{children:n}),r&&l.jsx(KB,{children:r})]}),o,l.jsx(GB,{})]},t)}),l.jsx(zB,{})]})}async function y1e(){}y1e().then(()=>{mv.createRoot(document.getElementById("root")).render(l.jsx(D.StrictMode,{children:l.jsx(c6,{children:l.jsx(N5,{children:l.jsxs(H9,{defaultTheme:"dark",storageKey:"truthound-theme",children:[l.jsx(YAe,{}),l.jsx(v1e,{})]})})})}))});