@oh-my-pi-zen/omp-stats 16.3.6-zen.1

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 (120) hide show
  1. package/CHANGELOG.md +197 -0
  2. package/README.md +82 -0
  3. package/build.ts +95 -0
  4. package/dist/client/index.css +1 -0
  5. package/dist/client/index.html +24 -0
  6. package/dist/client/index.js +257 -0
  7. package/dist/client/styles.css +1656 -0
  8. package/dist/types/aggregator.d.ts +87 -0
  9. package/dist/types/client/App.d.ts +1 -0
  10. package/dist/types/client/api.d.ts +21 -0
  11. package/dist/types/client/app/AppLayout.d.ts +16 -0
  12. package/dist/types/client/app/NavRail.d.ts +7 -0
  13. package/dist/types/client/app/RangeControl.d.ts +7 -0
  14. package/dist/types/client/app/SyncButton.d.ts +14 -0
  15. package/dist/types/client/app/ThemeToggle.d.ts +1 -0
  16. package/dist/types/client/app/TopBar.d.ts +15 -0
  17. package/dist/types/client/app/routes.d.ts +12 -0
  18. package/dist/types/client/components/AgentTokenShare.d.ts +5 -0
  19. package/dist/types/client/components/chart-shared.d.ts +173 -0
  20. package/dist/types/client/components/models-table-shared.d.ts +175 -0
  21. package/dist/types/client/components/range-meta.d.ts +21 -0
  22. package/dist/types/client/data/charts.d.ts +1 -0
  23. package/dist/types/client/data/formatters.d.ts +8 -0
  24. package/dist/types/client/data/useHashRoute.d.ts +8 -0
  25. package/dist/types/client/data/useResource.d.ts +13 -0
  26. package/dist/types/client/data/view-models.d.ts +67 -0
  27. package/dist/types/client/index.d.ts +2 -0
  28. package/dist/types/client/routes/BehaviorRoute.d.ts +7 -0
  29. package/dist/types/client/routes/CostsRoute.d.ts +7 -0
  30. package/dist/types/client/routes/ErrorsRoute.d.ts +8 -0
  31. package/dist/types/client/routes/GainRoute.d.ts +7 -0
  32. package/dist/types/client/routes/ModelsRoute.d.ts +7 -0
  33. package/dist/types/client/routes/OverviewRoute.d.ts +8 -0
  34. package/dist/types/client/routes/ProjectsRoute.d.ts +7 -0
  35. package/dist/types/client/routes/RequestsRoute.d.ts +8 -0
  36. package/dist/types/client/routes/ToolsRoute.d.ts +7 -0
  37. package/dist/types/client/routes/index.d.ts +9 -0
  38. package/dist/types/client/types.d.ts +63 -0
  39. package/dist/types/client/ui/AsyncBoundary.d.ts +12 -0
  40. package/dist/types/client/ui/DataTable.d.ts +17 -0
  41. package/dist/types/client/ui/EmptyState.d.ts +7 -0
  42. package/dist/types/client/ui/ErrorState.d.ts +6 -0
  43. package/dist/types/client/ui/JsonBlock.d.ts +7 -0
  44. package/dist/types/client/ui/MetricCluster.d.ts +5 -0
  45. package/dist/types/client/ui/Panel.d.ts +7 -0
  46. package/dist/types/client/ui/RequestDrawer.d.ts +5 -0
  47. package/dist/types/client/ui/SegmentedControl.d.ts +12 -0
  48. package/dist/types/client/ui/Skeleton.d.ts +8 -0
  49. package/dist/types/client/ui/StatusPill.d.ts +7 -0
  50. package/dist/types/client/ui/index.d.ts +11 -0
  51. package/dist/types/client/useSystemTheme.d.ts +11 -0
  52. package/dist/types/db.d.ts +144 -0
  53. package/dist/types/embedded-client.d.ts +18 -0
  54. package/dist/types/gain-aggregator.d.ts +26 -0
  55. package/dist/types/index.d.ts +7 -0
  56. package/dist/types/parser.d.ts +53 -0
  57. package/dist/types/server.d.ts +7 -0
  58. package/dist/types/shared-types.d.ts +301 -0
  59. package/dist/types/sync-worker.d.ts +31 -0
  60. package/dist/types/types.d.ts +164 -0
  61. package/dist/types/user-metrics.d.ts +72 -0
  62. package/package.json +95 -0
  63. package/src/aggregator.ts +501 -0
  64. package/src/client/App.tsx +109 -0
  65. package/src/client/api.ts +102 -0
  66. package/src/client/app/AppLayout.tsx +93 -0
  67. package/src/client/app/NavRail.tsx +44 -0
  68. package/src/client/app/RangeControl.tsx +39 -0
  69. package/src/client/app/SyncButton.tsx +75 -0
  70. package/src/client/app/ThemeToggle.tsx +37 -0
  71. package/src/client/app/TopBar.tsx +73 -0
  72. package/src/client/app/routes.ts +69 -0
  73. package/src/client/components/AgentTokenShare.tsx +68 -0
  74. package/src/client/components/chart-shared.tsx +257 -0
  75. package/src/client/components/models-table-shared.tsx +255 -0
  76. package/src/client/components/range-meta.ts +73 -0
  77. package/src/client/css.d.ts +1 -0
  78. package/src/client/data/charts.ts +14 -0
  79. package/src/client/data/formatters.ts +45 -0
  80. package/src/client/data/useHashRoute.ts +87 -0
  81. package/src/client/data/useResource.ts +154 -0
  82. package/src/client/data/view-models.ts +251 -0
  83. package/src/client/index.tsx +10 -0
  84. package/src/client/routes/BehaviorRoute.tsx +623 -0
  85. package/src/client/routes/CostsRoute.tsx +234 -0
  86. package/src/client/routes/ErrorsRoute.tsx +118 -0
  87. package/src/client/routes/GainRoute.tsx +226 -0
  88. package/src/client/routes/ModelsRoute.tsx +430 -0
  89. package/src/client/routes/OverviewRoute.tsx +342 -0
  90. package/src/client/routes/ProjectsRoute.tsx +163 -0
  91. package/src/client/routes/RequestsRoute.tsx +123 -0
  92. package/src/client/routes/ToolsRoute.tsx +463 -0
  93. package/src/client/routes/index.ts +9 -0
  94. package/src/client/styles.css +1330 -0
  95. package/src/client/types.ts +80 -0
  96. package/src/client/ui/AsyncBoundary.tsx +54 -0
  97. package/src/client/ui/DataTable.tsx +122 -0
  98. package/src/client/ui/EmptyState.tsx +16 -0
  99. package/src/client/ui/ErrorState.tsx +25 -0
  100. package/src/client/ui/JsonBlock.tsx +75 -0
  101. package/src/client/ui/MetricCluster.tsx +67 -0
  102. package/src/client/ui/Panel.tsx +24 -0
  103. package/src/client/ui/RequestDrawer.tsx +208 -0
  104. package/src/client/ui/SegmentedControl.tsx +36 -0
  105. package/src/client/ui/Skeleton.tsx +17 -0
  106. package/src/client/ui/StatusPill.tsx +15 -0
  107. package/src/client/ui/index.ts +11 -0
  108. package/src/client/useSystemTheme.ts +87 -0
  109. package/src/db.ts +1530 -0
  110. package/src/embedded-client.generated.txt +0 -0
  111. package/src/embedded-client.ts +26 -0
  112. package/src/gain-aggregator.ts +281 -0
  113. package/src/index.ts +194 -0
  114. package/src/parser.ts +450 -0
  115. package/src/server.ts +352 -0
  116. package/src/shared-types.ts +323 -0
  117. package/src/sync-worker.ts +40 -0
  118. package/src/types.ts +171 -0
  119. package/src/user-metrics.ts +685 -0
  120. package/tailwind.config.js +40 -0
@@ -0,0 +1,257 @@
1
+ var DO=Object.create;var{getPrototypeOf:vO,defineProperty:PR,getOwnPropertyNames:bO}=Object;var kO=Object.prototype.hasOwnProperty;function fO(Q){return this[Q]}var yO,gO,o=(Q,J,X)=>{var q=Q!=null&&typeof Q==="object";if(q){var N=J?yO??=new WeakMap:gO??=new WeakMap,K=N.get(Q);if(K)return K}X=Q!=null?DO(vO(Q)):{};let H=J||!Q||!Q.__esModule?PR(X,"default",{value:Q,enumerable:!0}):X;for(let M of bO(Q))if(!kO.call(H,M))PR(H,M,{get:fO.bind(Q,M),enumerable:!0});if(q)N.set(Q,H);return H};var I2=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var pT=I2((rS)=>{(function(){function Q(){if(s=!1,i){var l=rS.unstable_now();H0=l;var q0=!0;try{$:{h=!1,p&&(p=!1,J0(Y0),Y0=-1),D=!0;var M0=O;try{Z:{K(l);for(V=X(_);V!==null&&!(V.expirationTime>l&&M());){var n0=V.callback;if(typeof n0==="function"){V.callback=null,O=V.priorityLevel;var m0=n0(V.expirationTime<=l);if(l=rS.unstable_now(),typeof m0==="function"){V.callback=m0,K(l),q0=!0;break Z}V===X(_)&&q(_),K(l)}else q(_);V=X(_)}if(V!==null)q0=!0;else{var v=X(I);v!==null&&F(H,v.startTime-l),q0=!1}}break $}finally{V=null,O=M0,D=!1}q0=void 0}}finally{q0?_0():i=!1}}}function J(l,q0){var M0=l.length;l.push(q0);$:for(;0<M0;){var n0=M0-1>>>1,m0=l[n0];if(0<N(m0,q0))l[n0]=q0,l[M0]=m0,M0=n0;else break $}}function X(l){return l.length===0?null:l[0]}function q(l){if(l.length===0)return null;var q0=l[0],M0=l.pop();if(M0!==q0){l[0]=M0;$:for(var n0=0,m0=l.length,v=m0>>>1;n0<v;){var n=2*(n0+1)-1,F0=l[n],W0=n+1,d0=l[W0];if(0>N(F0,M0))W0<m0&&0>N(d0,F0)?(l[n0]=d0,l[W0]=M0,n0=W0):(l[n0]=F0,l[n]=M0,n0=n);else if(W0<m0&&0>N(d0,M0))l[n0]=d0,l[W0]=M0,n0=W0;else break $}}return q0}function N(l,q0){var M0=l.sortIndex-q0.sortIndex;return M0!==0?M0:l.id-q0.id}function K(l){for(var q0=X(I);q0!==null;){if(q0.callback===null)q(I);else if(q0.startTime<=l)q(I),q0.sortIndex=q0.expirationTime,J(_,q0);else break;q0=X(I)}}function H(l){if(p=!1,K(l),!h)if(X(_)!==null)h=!0,i||(i=!0,_0());else{var q0=X(I);q0!==null&&F(H,q0.startTime-l)}}function M(){return s?!0:rS.unstable_now()-H0<d?!1:!0}function F(l,q0){Y0=a(function(){l(rS.unstable_now())},q0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),rS.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var w=performance;rS.unstable_now=function(){return w.now()}}else{var z=Date,T=z.now();rS.unstable_now=function(){return z.now()-T}}var _=[],I=[],E=1,V=null,O=3,D=!1,h=!1,p=!1,s=!1,a=typeof setTimeout==="function"?setTimeout:null,J0=typeof clearTimeout==="function"?clearTimeout:null,t=typeof setImmediate<"u"?setImmediate:null,i=!1,Y0=-1,d=5,H0=-1;if(typeof t==="function")var _0=function(){t(Q)};else if(typeof MessageChannel<"u"){var C0=new MessageChannel,v0=C0.port2;C0.port1.onmessage=Q,_0=function(){v0.postMessage(null)}}else _0=function(){a(Q,0)};rS.unstable_IdlePriority=5,rS.unstable_ImmediatePriority=1,rS.unstable_LowPriority=4,rS.unstable_NormalPriority=3,rS.unstable_Profiling=null,rS.unstable_UserBlockingPriority=2,rS.unstable_cancelCallback=function(l){l.callback=null},rS.unstable_forceFrameRate=function(l){0>l||125<l?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):d=0<l?Math.floor(1000/l):5},rS.unstable_getCurrentPriorityLevel=function(){return O},rS.unstable_next=function(l){switch(O){case 1:case 2:case 3:var q0=3;break;default:q0=O}var M0=O;O=q0;try{return l()}finally{O=M0}},rS.unstable_requestPaint=function(){s=!0},rS.unstable_runWithPriority=function(l,q0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var M0=O;O=l;try{return q0()}finally{O=M0}},rS.unstable_scheduleCallback=function(l,q0,M0){var n0=rS.unstable_now();switch(typeof M0==="object"&&M0!==null?(M0=M0.delay,M0=typeof M0==="number"&&0<M0?n0+M0:n0):M0=n0,l){case 1:var m0=-1;break;case 2:m0=250;break;case 5:m0=1073741823;break;case 4:m0=1e4;break;default:m0=5000}return m0=M0+m0,l={id:E++,callback:q0,priorityLevel:l,startTime:M0,expirationTime:m0,sortIndex:-1},M0>n0?(l.sortIndex=M0,J(I,l),X(_)===null&&l===X(I)&&(p?(J0(Y0),Y0=-1):p=!0,F(H,M0-n0))):(l.sortIndex=m0,J(_,l),h||D||(h=!0,i||(i=!0,_0()))),l},rS.unstable_shouldYield=M,rS.unstable_wrapCallback=function(l){var q0=O;return function(){var M0=O;O=q0;try{return l.apply(this,arguments)}finally{O=M0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var P1=I2((sS,t3)=>{(function(){function Q(C,y){Object.defineProperty(q.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function J(C){if(C===null||typeof C!=="object")return null;return C=JJ&&C[JJ]||C["@@iterator"],typeof C==="function"?C:null}function X(C,y){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var r=C+"."+y;X0[r]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",y,C),X0[r]=!0)}function q(C,y,r){this.props=C,this.context=y,this.refs=k8,this.updater=r||i9}function N(){}function K(C,y,r){this.props=C,this.context=y,this.refs=k8,this.updater=r||i9}function H(){}function M(C){return""+C}function F(C){try{M(C);var y=!1}catch(N0){y=!0}if(y){y=console;var r=y.error,Z0=typeof Symbol==="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return r.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z0),M(C)}}function w(C){if(C==null)return null;if(typeof C==="function")return C.$$typeof===V$?null:C.displayName||C.name||null;if(typeof C==="string")return C;switch(C){case m0:return"Fragment";case n:return"Profiler";case v:return"StrictMode";case u1:return"Suspense";case b0:return"SuspenseList";case a6:return"Activity"}if(typeof C==="object")switch(typeof C.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case n0:return"Portal";case W0:return C.displayName||"Context";case F0:return(C._context.displayName||"Context")+".Consumer";case d0:var y=C.render;return C=C.displayName,C||(C=y.displayName||y.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case r1:return y=C.displayName||null,y!==null?y:w(C.type)||"Memo";case O5:y=C._payload,C=C._init;try{return w(C(y))}catch(r){}}return null}function z(C){if(C===m0)return"<>";if(typeof C==="object"&&C!==null&&C.$$typeof===O5)return"<...>";try{var y=w(C);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function T(){var C=f0.A;return C===null?null:C.getOwner()}function _(){return Error("react-stack-top-frame")}function I(C){if(t9.call(C,"key")){var y=Object.getOwnPropertyDescriptor(C,"key").get;if(y&&y.isReactWarning)return!1}return C.key!==void 0}function E(C,y){function r(){GJ||(GJ=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}r.isReactWarning=!0,Object.defineProperty(C,"key",{get:r,configurable:!0})}function V(){var C=w(this.type);return m2[C]||(m2[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function O(C,y,r,Z0,N0,j0){var D0=r.ref;return C={$$typeof:M0,type:C,key:y,props:r,_owner:Z0},(D0!==void 0?D0:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:V}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:N0}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j0}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function D(C,y){return y=O(C.type,y,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(y._store.validated=C._store.validated),y}function h(C){p(C)?C._store&&(C._store.validated=1):typeof C==="object"&&C!==null&&C.$$typeof===O5&&(C._payload.status==="fulfilled"?p(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function p(C){return typeof C==="object"&&C!==null&&C.$$typeof===M0}function s(C){var y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(r){return y[r]})}function a(C,y){return typeof C==="object"&&C!==null&&C.key!=null?(F(C.key),s(""+C.key)):y.toString(36)}function J0(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status==="string"?C.then(H,H):(C.status="pending",C.then(function(y){C.status==="pending"&&(C.status="fulfilled",C.value=y)},function(y){C.status==="pending"&&(C.status="rejected",C.reason=y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function t(C,y,r,Z0,N0){var j0=typeof C;if(j0==="undefined"||j0==="boolean")C=null;var D0=!1;if(C===null)D0=!0;else switch(j0){case"bigint":case"string":case"number":D0=!0;break;case"object":switch(C.$$typeof){case M0:case n0:D0=!0;break;case O5:return D0=C._init,t(D0(C._payload),y,r,Z0,N0)}}if(D0){D0=C,N0=N0(D0);var $1=Z0===""?"."+a(D0,0):Z0;return H1(N0)?(r="",$1!=null&&(r=$1.replace($7,"$&/")+"/"),t(N0,y,r,"",function(V5){return V5})):N0!=null&&(p(N0)&&(N0.key!=null&&(D0&&D0.key===N0.key||F(N0.key)),r=D(N0,r+(N0.key==null||D0&&D0.key===N0.key?"":(""+N0.key).replace($7,"$&/")+"/")+$1),Z0!==""&&D0!=null&&p(D0)&&D0.key==null&&D0._store&&!D0._store.validated&&(r._store.validated=2),N0=r),y.push(N0)),1}if(D0=0,$1=Z0===""?".":Z0+":",H1(C))for(var T0=0;T0<C.length;T0++)Z0=C[T0],j0=$1+a(Z0,T0),D0+=t(Z0,y,r,j0,N0);else if(T0=J(C),typeof T0==="function")for(T0===C.entries&&(e9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),e9=!0),C=T0.call(C),T0=0;!(Z0=C.next()).done;)Z0=Z0.value,j0=$1+a(Z0,T0++),D0+=t(Z0,y,r,j0,N0);else if(j0==="object"){if(typeof C.then==="function")return t(J0(C),y,r,Z0,N0);throw y=String(C),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return D0}function i(C,y,r){if(C==null)return C;var Z0=[],N0=0;return t(C,Z0,"","",function(j0){return y.call(r,j0,N0++)}),Z0}function Y0(C){if(C._status===-1){var y=C._ioInfo;y!=null&&(y.start=y.end=performance.now()),y=C._result;var r=y();if(r.then(function(N0){if(C._status===0||C._status===-1){C._status=1,C._result=N0;var j0=C._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=N0)}},function(N0){if(C._status===0||C._status===-1){C._status=2,C._result=N0;var j0=C._ioInfo;j0!=null&&(j0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=N0)}}),y=C._ioInfo,y!=null){y.value=r;var Z0=r.displayName;typeof Z0==="string"&&(y.name=Z0)}C._status===-1&&(C._status=0,C._result=r)}if(C._status===1)return y=C._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,y),"default"in y||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,y),y.default;throw C._result}function d(){var C=f0.H;return C===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function H0(){f0.asyncTransitions--}function _0(C){if(p2===null)try{var y=("require"+Math.random()).slice(0,7);p2=(t3&&t3[y]).call(t3,"timers").setImmediate}catch(r){p2=function(Z0){XJ===!1&&(XJ=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var N0=new MessageChannel;N0.port1.onmessage=Z0,N0.port2.postMessage(void 0)}}return p2(C)}function C0(C){return 1<C.length&&typeof AggregateError==="function"?AggregateError(C):C[0]}function v0(C,y){y!==c2-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),c2=y}function l(C,y,r){var Z0=f0.actQueue;if(Z0!==null)if(Z0.length!==0)try{q0(Z0),_0(function(){return l(C,y,r)});return}catch(N0){f0.thrownErrors.push(N0)}else f0.actQueue=null;0<f0.thrownErrors.length?(Z0=C0(f0.thrownErrors),f0.thrownErrors.length=0,r(Z0)):y(C)}function q0(C){if(!r2){r2=!0;var y=0;try{for(;y<C.length;y++){var r=C[y];do{f0.didUsePromise=!1;var Z0=r(!1);if(Z0!==null){if(f0.didUsePromise){C[y]=r,C.splice(0,y);return}r=Z0}else break}while(1)}C.length=0}catch(N0){C.splice(0,y+1),f0.thrownErrors.push(N0)}finally{r2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M0=Symbol.for("react.transitional.element"),n0=Symbol.for("react.portal"),m0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),F0=Symbol.for("react.consumer"),W0=Symbol.for("react.context"),d0=Symbol.for("react.forward_ref"),u1=Symbol.for("react.suspense"),b0=Symbol.for("react.suspense_list"),r1=Symbol.for("react.memo"),O5=Symbol.for("react.lazy"),a6=Symbol.for("react.activity"),JJ=Symbol.iterator,X0={},i9={isMounted:function(){return!1},enqueueForceUpdate:function(C){X(C,"forceUpdate")},enqueueReplaceState:function(C){X(C,"replaceState")},enqueueSetState:function(C){X(C,"setState")}},x2=Object.assign,k8={};Object.freeze(k8),q.prototype.isReactComponent={},q.prototype.setState=function(C,y){if(typeof C!=="object"&&typeof C!=="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,y,"setState")},q.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var U5={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(y8 in U5)U5.hasOwnProperty(y8)&&Q(y8,U5[y8]);N.prototype=q.prototype,U5=K.prototype=new N,U5.constructor=K,x2(U5,q.prototype),U5.isPureReactComponent=!0;var H1=Array.isArray,V$=Symbol.for("react.client.reference"),f0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},t9=Object.prototype.hasOwnProperty,z1=console.createTask?console.createTask:function(){return null};U5={react_stack_bottom_frame:function(C){return C()}};var GJ,H4,m2={},d2=U5.react_stack_bottom_frame.bind(U5,_)(),AX=z1(z(_)),e9=!1,$7=/\/+/g,f8=typeof reportError==="function"?reportError:function(C){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C==="object"&&C!==null&&typeof C.message==="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(y))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",C);return}console.error(C)},XJ=!1,p2=null,c2=0,l2=!1,r2=!1,A$=typeof queueMicrotask==="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:_0;U5=Object.freeze({__proto__:null,c:function(C){return d().useMemoCache(C)}});var y8={map:i,forEach:function(C,y,r){i(C,function(){y.apply(this,arguments)},r)},count:function(C){var y=0;return i(C,function(){y++}),y},toArray:function(C){return i(C,function(y){return y})||[]},only:function(C){if(!p(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};sS.Activity=a6,sS.Children=y8,sS.Component=q,sS.Fragment=m0,sS.Profiler=n,sS.PureComponent=K,sS.StrictMode=v,sS.Suspense=u1,sS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f0,sS.__COMPILER_RUNTIME=U5,sS.act=function(C){var y=f0.actQueue,r=c2;c2++;var Z0=f0.actQueue=y!==null?y:[],N0=!1;try{var j0=C()}catch(T0){f0.thrownErrors.push(T0)}if(0<f0.thrownErrors.length)throw v0(y,r),C=C0(f0.thrownErrors),f0.thrownErrors.length=0,C;if(j0!==null&&typeof j0==="object"&&typeof j0.then==="function"){var D0=j0;return A$(function(){N0||l2||(l2=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(T0,V5){N0=!0,D0.then(function(N6){if(v0(y,r),r===0){try{q0(Z0),_0(function(){return l(N6,T0,V5)})}catch(E$){f0.thrownErrors.push(E$)}if(0<f0.thrownErrors.length){var g8=C0(f0.thrownErrors);f0.thrownErrors.length=0,V5(g8)}}else T0(N6)},function(N6){v0(y,r),0<f0.thrownErrors.length?(N6=C0(f0.thrownErrors),f0.thrownErrors.length=0,V5(N6)):V5(N6)})}}}var $1=j0;if(v0(y,r),r===0&&(q0(Z0),Z0.length!==0&&A$(function(){N0||l2||(l2=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),f0.actQueue=null),0<f0.thrownErrors.length)throw C=C0(f0.thrownErrors),f0.thrownErrors.length=0,C;return{then:function(T0,V5){N0=!0,r===0?(f0.actQueue=Z0,_0(function(){return l($1,T0,V5)})):T0($1)}}},sS.cache=function(C){return function(){return C.apply(null,arguments)}},sS.cacheSignal=function(){return null},sS.captureOwnerStack=function(){var C=f0.getCurrentStack;return C===null?null:C()},sS.cloneElement=function(C,y,r){if(C===null||C===void 0)throw Error("The argument must be a React element, but you passed "+C+".");var Z0=x2({},C.props),N0=C.key,j0=C._owner;if(y!=null){var D0;$:{if(t9.call(y,"ref")&&(D0=Object.getOwnPropertyDescriptor(y,"ref").get)&&D0.isReactWarning){D0=!1;break $}D0=y.ref!==void 0}D0&&(j0=T()),I(y)&&(F(y.key),N0=""+y.key);for($1 in y)!t9.call(y,$1)||$1==="key"||$1==="__self"||$1==="__source"||$1==="ref"&&y.ref===void 0||(Z0[$1]=y[$1])}var $1=arguments.length-2;if($1===1)Z0.children=r;else if(1<$1){D0=Array($1);for(var T0=0;T0<$1;T0++)D0[T0]=arguments[T0+2];Z0.children=D0}Z0=O(C.type,N0,Z0,j0,C._debugStack,C._debugTask);for(N0=2;N0<arguments.length;N0++)h(arguments[N0]);return Z0},sS.createContext=function(C){return C={$$typeof:W0,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:F0,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},sS.createElement=function(C,y,r){for(var Z0=2;Z0<arguments.length;Z0++)h(arguments[Z0]);Z0={};var N0=null;if(y!=null)for(T0 in H4||!("__self"in y)||"key"in y||(H4=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),I(y)&&(F(y.key),N0=""+y.key),y)t9.call(y,T0)&&T0!=="key"&&T0!=="__self"&&T0!=="__source"&&(Z0[T0]=y[T0]);var j0=arguments.length-2;if(j0===1)Z0.children=r;else if(1<j0){for(var D0=Array(j0),$1=0;$1<j0;$1++)D0[$1]=arguments[$1+2];Object.freeze&&Object.freeze(D0),Z0.children=D0}if(C&&C.defaultProps)for(T0 in j0=C.defaultProps,j0)Z0[T0]===void 0&&(Z0[T0]=j0[T0]);N0&&E(Z0,typeof C==="function"?C.displayName||C.name||"Unknown":C);var T0=1e4>f0.recentlyCreatedOwnerStacks++;return O(C,N0,Z0,T(),T0?Error("react-stack-top-frame"):d2,T0?z1(z(C)):AX)},sS.createRef=function(){var C={current:null};return Object.seal(C),C},sS.forwardRef=function(C){C!=null&&C.$$typeof===r1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!=="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:d0,render:C},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},sS.isValidElement=p,sS.lazy=function(C){C={_status:-1,_result:C};var y={$$typeof:O5,_payload:C,_init:Y0},r={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return C._ioInfo=r,y._debugInfo=[{awaited:r}],y},sS.memo=function(C,y){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),y={$$typeof:r1,type:C,compare:y===void 0?null:y};var r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(Z0){r=Z0,C.name||C.displayName||(Object.defineProperty(C,"name",{value:Z0}),C.displayName=Z0)}}),y},sS.startTransition=function(C){var y=f0.T,r={};r._updatedFibers=new Set,f0.T=r;try{var Z0=C(),N0=f0.S;N0!==null&&N0(r,Z0),typeof Z0==="object"&&Z0!==null&&typeof Z0.then==="function"&&(f0.asyncTransitions++,Z0.then(H0,H0),Z0.then(H,f8))}catch(j0){f8(j0)}finally{y===null&&r._updatedFibers&&(C=r._updatedFibers.size,r._updatedFibers.clear(),10<C&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),y!==null&&r.types!==null&&(y.types!==null&&y.types!==r.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),y.types=r.types),f0.T=y}},sS.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},sS.use=function(C){return d().use(C)},sS.useActionState=function(C,y,r){return d().useActionState(C,y,r)},sS.useCallback=function(C,y){return d().useCallback(C,y)},sS.useContext=function(C){var y=d();return C.$$typeof===F0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(C)},sS.useDebugValue=function(C,y){return d().useDebugValue(C,y)},sS.useDeferredValue=function(C,y){return d().useDeferredValue(C,y)},sS.useEffect=function(C,y){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(C,y)},sS.useEffectEvent=function(C){return d().useEffectEvent(C)},sS.useId=function(){return d().useId()},sS.useImperativeHandle=function(C,y,r){return d().useImperativeHandle(C,y,r)},sS.useInsertionEffect=function(C,y){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(C,y)},sS.useLayoutEffect=function(C,y){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(C,y)},sS.useMemo=function(C,y){return d().useMemo(C,y)},sS.useOptimistic=function(C,y){return d().useOptimistic(C,y)},sS.useReducer=function(C,y,r){return d().useReducer(C,y,r)},sS.useRef=function(C){return d().useRef(C)},sS.useState=function(C){return d().useState(C)},sS.useSyncExternalStore=function(C,y,r){return d().useSyncExternalStore(C,y,r)},sS.useTransition=function(){return d().useTransition()},sS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var cT=I2((nS)=>{var WK=o(P1());(function(){function Q(){}function J(z){return""+z}function X(z,T,_){var I=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(I);var E=!1}catch(V){E=!0}return E&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object"),J(I)),{$$typeof:F,key:I==null?null:""+I,children:z,containerInfo:T,implementation:_}}function q(z,T){if(z==="font")return"";if(typeof T==="string")return T==="use-credentials"?T:""}function N(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":'something with type "'+typeof z+'"'}function K(z){return z===null?"`null`":z===void 0?"`undefined`":z===""?"an empty string":typeof z==="string"?JSON.stringify(z):typeof z==="number"?"`"+z+"`":'something with type "'+typeof z+'"'}function H(){var z=w.H;return z===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
15
+ 2. You might be breaking the Rules of Hooks
16
+ 3. You might have more than one copy of React in the same app
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),z}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M={d:{f:Q,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:Q,C:Q,L:Q,m:Q,X:Q,S:Q,M:Q},p:0,findDOMNode:null},F=Symbol.for("react.portal"),w=WK.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),nS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,nS.createPortal=function(z,T){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T||T.nodeType!==1&&T.nodeType!==9&&T.nodeType!==11)throw Error("Target container is not a DOM element.");return X(z,T,null,_)},nS.flushSync=function(z){var T=w.T,_=M.p;try{if(w.T=null,M.p=2,z)return z()}finally{w.T=T,M.p=_,M.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},nS.preconnect=function(z,T){typeof z==="string"&&z?T!=null&&typeof T!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",K(T)):T!=null&&typeof T.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",N(T.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&(T?(T=T.crossOrigin,T=typeof T==="string"?T==="use-credentials"?T:"":void 0):T=null,M.d.C(z,T))},nS.prefetchDNS=function(z){if(typeof z!=="string"||!z)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z));else if(1<arguments.length){var T=arguments[1];typeof T==="object"&&T.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(T)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",K(T))}typeof z==="string"&&M.d.D(z)},nS.preinit=function(z,T){if(typeof z==="string"&&z?T==null||typeof T!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",K(T)):T.as!=="style"&&T.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',K(T.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(z)),typeof z==="string"&&T&&typeof T.as==="string"){var _=T.as,I=q(_,T.crossOrigin),E=typeof T.integrity==="string"?T.integrity:void 0,V=typeof T.fetchPriority==="string"?T.fetchPriority:void 0;_==="style"?M.d.S(z,typeof T.precedence==="string"?T.precedence:void 0,{crossOrigin:I,integrity:E,fetchPriority:V}):_==="script"&&M.d.X(z,{crossOrigin:I,integrity:E,fetchPriority:V,nonce:typeof T.nonce==="string"?T.nonce:void 0})}},nS.preinitModule=function(z,T){var _="";if(typeof z==="string"&&z||(_+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?_+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&T.as!=="script"&&(_+=" The `as` option encountered was "+K(T.as)+"."),_)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",_);else switch(_=T&&typeof T.as==="string"?T.as:"script",_){case"script":break;default:_=K(_),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',_,z)}if(typeof z==="string")if(typeof T==="object"&&T!==null){if(T.as==null||T.as==="script")_=q(T.as,T.crossOrigin),M.d.M(z,{crossOrigin:_,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0})}else T==null&&M.d.M(z)},nS.preload=function(z,T){var _="";if(typeof z==="string"&&z||(_+=" The `href` argument encountered was "+N(z)+"."),T==null||typeof T!=="object"?_+=" The `options` argument encountered was "+N(T)+".":typeof T.as==="string"&&T.as||(_+=" The `as` option encountered was "+N(T.as)+"."),_&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',_),typeof z==="string"&&typeof T==="object"&&T!==null&&typeof T.as==="string"){_=T.as;var I=q(_,T.crossOrigin);M.d.L(z,_,{crossOrigin:I,integrity:typeof T.integrity==="string"?T.integrity:void 0,nonce:typeof T.nonce==="string"?T.nonce:void 0,type:typeof T.type==="string"?T.type:void 0,fetchPriority:typeof T.fetchPriority==="string"?T.fetchPriority:void 0,referrerPolicy:typeof T.referrerPolicy==="string"?T.referrerPolicy:void 0,imageSrcSet:typeof T.imageSrcSet==="string"?T.imageSrcSet:void 0,imageSizes:typeof T.imageSizes==="string"?T.imageSizes:void 0,media:typeof T.media==="string"?T.media:void 0})}},nS.preloadModule=function(z,T){var _="";typeof z==="string"&&z||(_+=" The `href` argument encountered was "+N(z)+"."),T!==void 0&&typeof T!=="object"?_+=" The `options` argument encountered was "+N(T)+".":T&&("as"in T)&&typeof T.as!=="string"&&(_+=" The `as` option encountered was "+N(T.as)+"."),_&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',_),typeof z==="string"&&(T?(_=q(T.as,T.crossOrigin),M.d.m(z,{as:typeof T.as==="string"&&T.as!=="script"?T.as:void 0,crossOrigin:_,integrity:typeof T.integrity==="string"?T.integrity:void 0})):M.d.m(z))},nS.requestFormReset=function(z){M.d.r(z)},nS.unstable_batchedUpdates=function(z,T){return z(T)},nS.useFormState=function(z,T,_){return H().useFormState(z,T,_)},nS.useFormStatus=function(){return H().useHostTransitionStatus()},nS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rT=I2((jb,lT)=>{var oS=o(cT());lT.exports=oS});var sT=I2((aS)=>{var Q1=o(pT()),M$=o(P1()),wK=o(rT());(function(){function Q($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function J($,Z,G,Y){if(G>=Z.length)return Y;var U=Z[G],B=Q5($)?$.slice():c0({},$);return B[U]=J($[U],Z,G+1,Y),B}function X($,Z,G){if(Z.length!==G.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<G.length-1;Y++)if(Z[Y]!==G[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return q($,Z,G,0)}}function q($,Z,G,Y){var U=Z[Y],B=Q5($)?$.slice():c0({},$);return Y+1===Z.length?(B[G[Y]]=B[U],Q5(B)?B.splice(U,1):delete B[U]):B[U]=q($[U],Z,G,Y+1),B}function N($,Z,G){var Y=Z[G],U=Q5($)?$.slice():c0({},$);if(G+1===Z.length)return Q5(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,G+1),U}function K(){return!1}function H(){return null}function M(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function F(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function w(){}function z(){}function T($){var Z=[];return $.forEach(function(G){Z.push(G)}),Z.sort().join(", ")}function _($,Z,G,Y){return new LP($,Z,G,Y)}function I($,Z){$.context===J2&&(AY($.current,2,Z,$,null,null),M7())}function E($,Z){if(v6!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,$Z(),EB($.current,Z,G),M7()}}function V($){v6=$}function O($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function D($){var Z=$,G=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(G=Z.return),$=Z.return;while($)}return Z.tag===3?G:null}function h($){if($.tag===13){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function p($){if($.tag===31){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function s($){if(D($)!==$)throw Error("Unable to find node on an unmounted component.")}function a($){var Z=$.alternate;if(!Z){if(Z=D($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var G=$,Y=Z;;){var U=G.return;if(U===null)break;var B=U.alternate;if(B===null){if(Y=U.return,Y!==null){G=Y;continue}break}if(U.child===B.child){for(B=U.child;B;){if(B===G)return s(U),$;if(B===Y)return s(U),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==Y.return)G=U,Y=B;else{for(var W=!1,R=U.child;R;){if(R===G){W=!0,G=U,Y=B;break}if(R===Y){W=!0,Y=U,G=B;break}R=R.sibling}if(!W){for(R=B.child;R;){if(R===G){W=!0,G=B,Y=U;break}if(R===Y){W=!0,Y=B,G=U;break}R=R.sibling}if(!W)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(G.alternate!==Y)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(G.tag!==3)throw Error("Unable to find node on an unmounted component.");return G.stateNode.current===G?$:Z}function J0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=J0($),Z!==null)return Z;$=$.sibling}return null}function t($){if($===null||typeof $!=="object")return null;return $=fF&&$[fF]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===mC?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case L7:return"Fragment";case bY:return"Profiler";case FG:return"StrictMode";case fY:return"Suspense";case yY:return"SuspenseList";case gY:return"Activity"}if(typeof $==="object")switch(typeof $.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case T7:return"Portal";case j4:return $.displayName||"Context";case kY:return($._context.displayName||"Context")+".Consumer";case KZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case WG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case R6:Z=$._payload,$=$._init;try{return i($(Z))}catch(G){}}return null}function Y0($){return typeof $.tag==="number"?d($):typeof $.name==="string"?$.name:null}function d($){var Z=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(Z._context.displayName||"Context")+".Consumer";case 10:return Z.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=Z.render,$=$.displayName||$.name||"",Z.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return Z;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return i(Z);case 8:return Z===FG?"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 14:case 15:if(typeof Z==="function")return Z.displayName||Z.name||null;if(typeof Z==="string")return Z;break;case 29:if(Z=$._debugInfo,Z!=null){for(var G=Z.length-1;0<=G;G--)if(typeof Z[G].name==="string")return Z[G].name}if($.return!==null)return d($.return)}return null}function H0($){return{current:$}}function _0($,Z){0>J8?console.error("Unexpected pop."):(Z!==uY[J8]&&console.error("Unexpected Fiber popped."),$.current=hY[J8],hY[J8]=null,uY[J8]=null,J8--)}function C0($,Z,G){J8++,hY[J8]=$.current,uY[J8]=G,$.current=Z}function v0($){return $===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),$}function l($,Z){C0(i8,Z,$),C0(BZ,$,$),C0(a8,null,$);var G=Z.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?XF(Z):R8:R8;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=XF(Z),Z=qF(Z,G);else switch(G){case"svg":Z=$$;break;case"math":Z=M3;break;default:Z=R8}}G=G.toLowerCase(),G=eK(null,G),G={context:Z,ancestorInfo:G},_0(a8,$),C0(a8,G,$)}function q0($){_0(a8,$),_0(BZ,$),_0(i8,$)}function M0(){return v0(a8.current)}function n0($){$.memoizedState!==null&&C0(wG,$,$);var Z=v0(a8.current),G=$.type,Y=qF(Z.context,G);G=eK(Z.ancestorInfo,G),Y={context:Y,ancestorInfo:G},Z!==Y&&(C0(BZ,$,$),C0(a8,Y,$))}function m0($){BZ.current===$&&(_0(a8,$),_0(BZ,$)),wG.current===$&&(_0(wG,$),QQ._currentValue=j9)}function v(){}function n(){if(HZ===0){yF=console.log,gF=console.info,hF=console.warn,uF=console.error,xF=console.group,mF=console.groupCollapsed,dF=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}HZ++}function F0(){if(HZ--,HZ===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:c0({},$,{value:yF}),info:c0({},$,{value:gF}),warn:c0({},$,{value:hF}),error:c0({},$,{value:uF}),group:c0({},$,{value:xF}),groupCollapsed:c0({},$,{value:mF}),groupEnd:c0({},$,{value:dF})})}0>HZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
18
+ `)&&($=$.slice(29)),Z=$.indexOf(`
19
+ `),Z!==-1&&($=$.slice(Z+1)),Z=$.indexOf("react_stack_bottom_frame"),Z!==-1&&(Z=$.lastIndexOf(`
20
+ `,Z)),Z!==-1)$=$.slice(0,Z);else return"";return $}function d0($){if(xY===void 0)try{throw Error()}catch(G){var Z=G.stack.trim().match(/\n( *(at )?)/);xY=Z&&Z[1]||"",pF=-1<G.stack.indexOf(`
21
+ at`)?" (<anonymous>)":-1<G.stack.indexOf("@")?"@unknown:0:0":""}return`
22
+ `+xY+$+pF}function u1($,Z){if(!$||mY)return"";var G=dY.get($);if(G!==void 0)return G;mY=!0,G=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Y=null;Y=x.H,x.H=null,n();try{var U={DetermineComponentFrameRoot:function(){try{if(Z){var S=function(){throw Error()};if(Object.defineProperty(S.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(S,[])}catch($0){var g=$0}Reflect.construct($,[],S)}else{try{S.call()}catch($0){g=$0}$.call(S.prototype)}}else{try{throw Error()}catch($0){g=$0}(S=$())&&typeof S.catch==="function"&&S.catch(function(){})}}catch($0){if($0&&g&&typeof $0.stack==="string")return[$0.stack,g.stack]}return[null,null]}};U.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var B=Object.getOwnPropertyDescriptor(U.DetermineComponentFrameRoot,"name");B&&B.configurable&&Object.defineProperty(U.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var W=U.DetermineComponentFrameRoot(),R=W[0],L=W[1];if(R&&L){var P=R.split(`
23
+ `),k=L.split(`
24
+ `);for(W=B=0;B<P.length&&!P[B].includes("DetermineComponentFrameRoot");)B++;for(;W<k.length&&!k[W].includes("DetermineComponentFrameRoot");)W++;if(B===P.length||W===k.length)for(B=P.length-1,W=k.length-1;1<=B&&0<=W&&P[B]!==k[W];)W--;for(;1<=B&&0<=W;B--,W--)if(P[B]!==k[W]){if(B!==1||W!==1)do if(B--,W--,0>W||P[B]!==k[W]){var f=`
25
+ `+P[B].replace(" at new "," at ");return $.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",$.displayName)),typeof $==="function"&&dY.set($,f),f}while(1<=B&&0<=W);break}}}finally{mY=!1,x.H=Y,F0(),Error.prepareStackTrace=G}return P=(P=$?$.displayName||$.name:"")?d0(P):"",typeof $==="function"&&dY.set($,P),P}function b0($,Z){switch($.tag){case 26:case 27:case 5:return d0($.type);case 16:return d0("Lazy");case 13:return $.child!==Z&&Z!==null?d0("Suspense Fallback"):d0("Suspense");case 19:return d0("SuspenseList");case 0:case 15:return u1($.type,!1);case 11:return u1($.type.render,!1);case 1:return u1($.type,!0);case 31:return d0("Activity");default:return""}}function r1($){try{var Z="",G=null;do{Z+=b0($,G);var Y=$._debugInfo;if(Y)for(var U=Y.length-1;0<=U;U--){var B=Y[U];if(typeof B.name==="string"){var W=Z;$:{var{name:R,env:L,debugLocation:P}=B;if(P!=null){var k=W0(P),f=k.lastIndexOf(`
26
+ `),S=f===-1?k:k.slice(f+1);if(S.indexOf(R)!==-1){var g=`
27
+ `+S;break $}}g=d0(R+(L?" ["+L+"]":""))}Z=W+g}}G=$,$=$.return}while($);return Z}catch($0){return`
28
+ Error generating stack: `+$0.message+`
29
+ `+$0.stack}}function O5($){return($=$?$.displayName||$.name:"")?d0($):""}function a6(){if(z6===null)return null;var $=z6._debugOwner;return $!=null?Y0($):null}function JJ(){if(z6===null)return"";var $=z6;try{var Z="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Z+=d0($.type);break;case 13:Z+=d0("Suspense");break;case 19:Z+=d0("SuspenseList");break;case 31:Z+=d0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Z!==""||(Z+=O5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=O5($.type.render))}for(;$;)if(typeof $.tag==="number"){var G=$;$=G._debugOwner;var Y=G._debugStack;if($&&Y){var U=W0(Y);U!==""&&(Z+=`
30
+ `+U)}}else if($.debugStack!=null){var B=$.debugStack;($=$.owner)&&B&&(Z+=`
31
+ `+W0(B))}else break;var W=Z}catch(R){W=`
32
+ Error generating stack: `+R.message+`
33
+ `+R.stack}return W}function X0($,Z,G,Y,U,B,W){var R=z6;i9($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,G,Y,U,B,W)):Z(G,Y,U,B,W)}finally{i9(R)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function i9($){x.getCurrentStack=$===null?null:JJ,D4=!1,z6=$}function x2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function k8($){try{return U5($),!1}catch(Z){return!0}}function U5($){return""+$}function H1($,Z){if(k8($))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",Z,x2($)),U5($)}function V$($,Z){if(k8($))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",Z,x2($)),U5($)}function f0($){if(k8($))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",x2($)),U5($)}function t9($){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var Z=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(Z.isDisabled)return!0;if(!Z.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{P7=Z.inject($),E5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function z1($){if(typeof nC==="function"&&oC($),E5&&typeof E5.setStrictMode==="function")try{E5.setStrictMode(P7,$)}catch(Z){v4||(v4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function GJ($){return $>>>=0,$===0?32:31-(aC($)/iC|0)|0}function H4($){var Z=$&42;if(Z!==0)return Z;switch($&-$){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),$}}function m2($,Z,G){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var R=Y&134217727;return R!==0?(Y=R&~B,Y!==0?U=H4(Y):(W&=R,W!==0?U=H4(W):G||(G=R&~$,G!==0&&(U=H4(G))))):(R=Y&~B,R!==0?U=H4(R):W!==0?U=H4(W):G||(G=Y&~$,G!==0&&(U=H4(G)))),U===0?0:Z!==0&&Z!==U&&(Z&B)===0&&(B=U&-U,G=Z&-Z,B>=G||B===32&&(G&4194048)!==0)?Z:U}function d2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function AX($,Z){switch($){case 1:case 2:case 4:case 8:case 64:return Z+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return Z+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function e9(){var $=TG;return TG<<=1,(TG&62914560)===0&&(TG=4194304),$}function $7($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function f8($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function XJ($,Z,G,Y,U,B){var W=$.pendingLanes;$.pendingLanes=G,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=G,$.entangledLanes&=G,$.errorRecoveryDisabledLanes&=G,$.shellSuspendCounter=0;var{entanglements:R,expirationTimes:L,hiddenUpdates:P}=$;for(G=W&~G;0<G;){var k=31-y5(G),f=1<<k;R[k]=0,L[k]=-1;var S=P[k];if(S!==null)for(P[k]=null,k=0;k<S.length;k++){var g=S[k];g!==null&&(g.lane&=-536870913)}G&=~f}Y!==0&&p2($,Y,0),B!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function p2($,Z,G){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-y5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|G&261930}function c2($,Z){var G=$.entangledLanes|=Z;for($=$.entanglements;G;){var Y=31-y5(G),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),G&=~U}}function l2($,Z){var G=Z&-Z;return G=(G&42)!==0?1:r2(G),(G&($.suspendedLanes|Z))!==0?0:G}function r2($){switch($){case 2:$=1;break;case 8:$=4;break;case 32:$=16;break;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:$=128;break;case 268435456:$=134217728;break;default:$=0}return $}function A$($,Z,G){if(b4)for($=$.pendingUpdatersLaneMap;0<G;){var Y=31-y5(G),U=1<<Y;$[Y].add(Z),G&=~U}}function y8($,Z){if(b4)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:Y}=$;0<Z;){var U=31-y5(Z);$=1<<U,U=G[U],0<U.size&&(U.forEach(function(B){var W=B.alternate;W!==null&&Y.has(W)||Y.add(B)}),U.clear()),Z&=~$}}function C($){return $&=-$,T6!==0&&T6<$?Z4!==0&&Z4<$?($&134217727)!==0?k4:LG:Z4:T6}function y(){var $=Y1.p;if($!==0)return $;return $=window.event,$===void 0?k4:EF($.type)}function r($,Z){var G=Y1.p;try{return Y1.p=$,Z()}finally{Y1.p=G}}function Z0($){delete $[z5],delete $[g5],delete $[sY],delete $[tC],delete $[eC]}function N0($){var Z=$[z5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[e8]||G[z5]){if(G=Z.alternate,Z.child!==null||G!==null&&G.child!==null)for($=FF($);$!==null;){if(G=$[z5])return G;$=FF($)}return Z}$=G,G=$.parentNode}return null}function j0($){if($=$[z5]||$[e8]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function D0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function $1($){var Z=$[cF];return Z||(Z=$[cF]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function T0($){$[MZ]=!0}function V5($,Z){N6($,Z),N6($+"Capture",Z)}function N6($,Z){N9[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),N9[$]=Z;var G=$.toLowerCase();nY[G]=$,$==="onDoubleClick"&&(nY.ondblclick=$);for($=0;$<Z.length;$++)lF.add(Z[$])}function g8($,Z){$I[Z.type]||Z.onChange||Z.onInput||Z.readOnly||Z.disabled||Z.value==null||($==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),Z.onChange||Z.readOnly||Z.disabled||Z.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function E$($){if($4.call(sF,$))return!0;if($4.call(rF,$))return!1;if(ZI.test($))return sF[$]=!0;return rF[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function hK($,Z,G){if(E$(Z)){if(!$.hasAttribute(Z)){switch(typeof G){case"symbol":case"object":return G;case"function":return G;case"boolean":if(G===!1)return G}return G===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&G===!0)return!0;return H1(G,Z),$===""+G?G:$}}function qJ($,Z,G){if(E$(Z))if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":$.removeAttribute(Z);return;case"boolean":var Y=Z.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-"){$.removeAttribute(Z);return}}H1(G,Z),$.setAttribute(Z,""+G)}}function YJ($,Z,G){if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}H1(G,Z),$.setAttribute(Z,""+G)}}function n4($,Z,G,Y){if(Y===null)$.removeAttribute(G);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}H1(Y,G),$.setAttributeNS(Z,G,""+Y)}}function A6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return f0($),$;default:return""}}function uK($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function i_($,Z,G){var Y=Object.getOwnPropertyDescriptor($.constructor.prototype,Z);if(!$.hasOwnProperty(Z)&&typeof Y<"u"&&typeof Y.get==="function"&&typeof Y.set==="function"){var{get:U,set:B}=Y;return Object.defineProperty($,Z,{configurable:!0,get:function(){return U.call(this)},set:function(W){f0(W),G=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return G},setValue:function(W){f0(W),G=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function EX($){if(!$._valueTracker){var Z=uK($)?"checked":"value";$._valueTracker=i_($,Z,""+$[Z])}}function xK($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var G=Z.getValue(),Y="";return $&&(Y=uK($)?$.checked?"true":"false":$.value),$=Y,$!==G?(Z.setValue($),!0):!1}function NJ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function E6($){return $.replace(QI,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function mK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||oF||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",a6()||"A component",Z.type),oF=!0),Z.value===void 0||Z.defaultValue===void 0||nF||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",a6()||"A component",Z.type),nF=!0)}function SX($,Z,G,Y,U,B,W,R){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(H1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+A6(Z)}else $.value!==""+A6(Z)&&($.value=""+A6(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?jX($,W,A6(Z)):G!=null?jX($,W,A6(G)):Y!=null&&$.removeAttribute("value"),U==null&&B!=null&&($.defaultChecked=!!B),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"?(H1(R,"name"),$.name=""+A6(R)):$.removeAttribute("name")}function dK($,Z,G,Y,U,B,W,R){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(H1(B,"type"),$.type=B),Z!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){EX($);return}G=G!=null?""+A6(G):"",Z=Z!=null?""+A6(Z):G,R||Z===$.value||($.value=Z),$.defaultValue=Z}Y=Y!=null?Y:U,Y=typeof Y!=="function"&&typeof Y!=="symbol"&&!!Y,$.checked=R?$.checked:!!Y,$.defaultChecked=!!Y,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(H1(W,"name"),$.name=W),EX($)}function jX($,Z,G){Z==="number"&&NJ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function pK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?M$.Children.forEach(Z.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||iF||(iF=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):Z.dangerouslySetInnerHTML==null||tF||(tF=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||aF||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),aF=!0)}function cK(){var $=a6();return $?`
34
+
35
+ Check the render method of \``+$+"`.":""}function Z7($,Z,G,Y){if($=$.options,Z){Z={};for(var U=0;U<G.length;U++)Z["$"+G[U]]=!0;for(G=0;G<$.length;G++)U=Z.hasOwnProperty("$"+$[G].value),$[G].selected!==U&&($[G].selected=U),U&&Y&&($[G].defaultSelected=!0)}else{G=""+A6(G),Z=null;for(U=0;U<$.length;U++){if($[U].value===G){$[U].selected=!0,Y&&($[U].defaultSelected=!0);return}Z!==null||$[U].disabled||(Z=$[U])}Z!==null&&(Z.selected=!0)}}function lK($,Z){for($=0;$<$W.length;$++){var G=$W[$];if(Z[G]!=null){var Y=Q5(Z[G]);Z.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",G,cK()):!Z.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",G,cK())}}Z.value===void 0||Z.defaultValue===void 0||eF||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),eF=!0)}function rK($,Z){Z.value===void 0||Z.defaultValue===void 0||ZW||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",a6()||"A component"),ZW=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function sK($,Z,G){if(Z!=null&&(Z=""+A6(Z),Z!==$.value&&($.value=Z),G==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=G!=null?""+A6(G):""}function nK($,Z,G,Y){if(Z==null){if(Y!=null){if(G!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Q5(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}G=Y}G==null&&(G=""),Z=G}G=A6(Z),$.defaultValue=G,Y=$.textContent,Y===G&&Y!==""&&Y!==null&&($.value=Y),EX($)}function oK($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?oK($.children[0],Z):$}function U6($){return" "+" ".repeat($)}function Q7($){return"+ "+" ".repeat($)}function s2($){return"- "+" ".repeat($)}function aK($){switch($.tag){case 26:case 27:case 5:return $.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return $=$.type,$.displayName||$.name||null;case 11:return $=$.type.render,$.displayName||$.name||null;case 1:return $=$.type,$.displayName||$.name||null;default:return null}}function S$($,Z){return QW.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function UJ($,Z,G){var Y=120-2*G;if(Z===null)return Q7(G)+S$($,Y)+`
36
+ `;if(typeof Z==="string"){for(var U=0;U<Z.length&&U<$.length&&Z.charCodeAt(U)===$.charCodeAt(U);U++);return U>Y-8&&10<U&&($="..."+$.slice(U-8),Z="..."+Z.slice(U-8)),Q7(G)+S$($,Y)+`
37
+ `+s2(G)+S$(Z,Y)+`
38
+ `}return U6(G)+S$($,Y)+`
39
+ `}function DX($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,G){return G})}function j$($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if(Q5($))return"[...]";if($.$$typeof===S4)return(Z=i($.type))?"<"+Z+">":"<...>";var G=DX($);if(G==="Object"){G="",Z-=2;for(var Y in $)if($.hasOwnProperty(Y)){var U=JSON.stringify(Y);if(U!=='"'+Y+'"'&&(Y=U),Z-=Y.length-2,U=j$($[Y],15>Z?Z:15),Z-=U.length,0>Z){G+=G===""?"...":", ...";break}G+=(G===""?"":",")+Y+":"+U}return"{"+G+"}"}return G;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function J7($,Z){return typeof $!=="string"||QW.test($)?"{"+j$($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function vX($,Z,G){var Y=120-G.length-$.length,U=[],B;for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var W=J7(Z[B],120-G.length-B.length-1);Y-=B.length+W.length+2,U.push(B+"="+W)}return U.length===0?G+"<"+$+`>
40
+ `:0<Y?G+"<"+$+" "+U.join(" ")+`>
41
+ `:G+"<"+$+`
42
+ `+G+" "+U.join(`
43
+ `+G+" ")+`
44
+ `+G+`>
45
+ `}function t_($,Z,G){var Y="",U=c0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete U[B];var W=120-2*G-B.length-2,R=j$($[B],W);Z.hasOwnProperty(B)?(W=j$(Z[B],W),Y+=Q7(G)+B+": "+R+`
46
+ `,Y+=s2(G)+B+": "+W+`
47
+ `):Y+=Q7(G)+B+": "+R+`
48
+ `}for(var L in U)U.hasOwnProperty(L)&&($=j$(U[L],120-2*G-L.length-2),Y+=s2(G)+L+": "+$+`
49
+ `);return Y}function e_($,Z,G,Y){var U="",B=new Map;for(P in G)G.hasOwnProperty(P)&&B.set(P.toLowerCase(),P);if(B.size===1&&B.has("children"))U+=vX($,Z,U6(Y));else{for(var W in Z)if(Z.hasOwnProperty(W)&&W!=="children"){var R=120-2*(Y+1)-W.length-1,L=B.get(W.toLowerCase());if(L!==void 0){B.delete(W.toLowerCase());var P=Z[W];L=G[L];var k=J7(P,R);R=J7(L,R),typeof P==="object"&&P!==null&&typeof L==="object"&&L!==null&&DX(P)==="Object"&&DX(L)==="Object"&&(2<Object.keys(P).length||2<Object.keys(L).length||-1<k.indexOf("...")||-1<R.indexOf("..."))?U+=U6(Y+1)+W+`={{
50
+ `+t_(P,L,Y+2)+U6(Y+1)+`}}
51
+ `:(U+=Q7(Y+1)+W+"="+k+`
52
+ `,U+=s2(Y+1)+W+"="+R+`
53
+ `)}else U+=U6(Y+1)+W+"="+J7(Z[W],R)+`
54
+ `}B.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=s2(Y+1)+f+"="+J7(G[f],S)+`
55
+ `}}),U=U===""?U6(Y)+"<"+$+`>
56
+ `:U6(Y)+"<"+$+`
57
+ `+U+U6(Y)+`>
58
+ `}if($=G.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(B="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")B=""+Z;U+=UJ(B,""+$,Y+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")U=$==null?U+UJ(""+Z,null,Y+1):U+UJ(""+Z,void 0,Y+1);return U}function iK($,Z){var G=aK($);if(G===null){G="";for($=$.child;$;)G+=iK($,Z),$=$.sibling;return G}return U6(Z)+"<"+G+`>
59
+ `}function bX($,Z){var G=oK($,Z);if(G!==$&&($.children.length!==1||$.children[0]!==G))return U6(Z)+`...
60
+ `+bX(G,Z+1);G="";var Y=$.fiber._debugInfo;if(Y)for(var U=0;U<Y.length;U++){var B=Y[U].name;typeof B==="string"&&(G+=U6(Z)+"<"+B+`>
61
+ `,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=UJ(U,$.serverProps,Z),Z++;else if(B=aK($.fiber),B!==null)if($.serverProps===void 0){Y=Z;var W=120-2*Y-B.length-2,R="";for(P in U)if(U.hasOwnProperty(P)&&P!=="children"){var L=J7(U[P],15);if(W-=P.length+L.length+2,0>W){R+=" ...";break}R+=" "+P+"="+L}Y=U6(Y)+"<"+B+R+`>
62
+ `,Z++}else $.serverProps===null?(Y=vX(B,U,Q7(Z)),Z++):typeof $.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(Y=e_(B,U,$.serverProps,Z),Z++);var P="";U=$.fiber.child;for(B=0;U&&B<$.children.length;)W=$.children[B],W.fiber===U?(P+=bX(W,Z),B++):P+=iK(U,Z),U=U.sibling;U&&0<$.children.length&&(P+=U6(Z)+`...
63
+ `),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)B=U[$],P=typeof B==="string"?P+(s2(Z)+S$(B,120-2*Z)+`
64
+ `):P+vX(B.type,B.props,s2(Z));return G+Y+P}function kX($){try{return`
65
+
66
+ `+bX($,0)}catch(Z){return""}}function tK($,Z,G){for(var Y=Z,U=null,B=0;Y;)Y===$&&(B=0),U={fiber:Y,children:U!==null?[U]:[],serverProps:Y===Z?G:Y===$?null:void 0,serverTail:[],distanceFromLeaf:B},B++,Y=Y.return;return U!==null?kX(U).replaceAll(/^[+-]/gm,">"):""}function eK($,Z){var G=c0({},$||GW),Y={tag:Z};if(JW.indexOf(Z)!==-1&&(G.aTagInScope=null,G.buttonTagInScope=null,G.nobrTagInScope=null),GI.indexOf(Z)!==-1&&(G.pTagInButtonScope=null),JI.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(G.listItemTagAutoclosing=null,G.dlItemTagAutoclosing=null),G.current=Y,Z==="form"&&(G.formTag=Y),Z==="a"&&(G.aTagInScope=Y),Z==="button"&&(G.buttonTagInScope=Y),Z==="nobr"&&(G.nobrTagInScope=Y),Z==="p"&&(G.pTagInButtonScope=Y),Z==="li"&&(G.listItemTagAutoclosing=Y),Z==="dd"||Z==="dt")G.dlItemTagAutoclosing=Y;return Z==="#document"||Z==="html"?G.containerTagInScope=null:G.containerTagInScope||(G.containerTagInScope=Y),$!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?G.implicitRootScope===!0&&(G.implicitRootScope=!1):G.implicitRootScope=!0,G}function $B($,Z,G){switch(Z){case"select":return $==="hr"||$==="option"||$==="optgroup"||$==="script"||$==="template"||$==="#text";case"optgroup":return $==="option"||$==="#text";case"option":return $==="#text";case"tr":return $==="th"||$==="td"||$==="style"||$==="script"||$==="template";case"tbody":case"thead":case"tfoot":return $==="tr"||$==="style"||$==="script"||$==="template";case"colgroup":return $==="col"||$==="template";case"table":return $==="caption"||$==="colgroup"||$==="tbody"||$==="tfoot"||$==="thead"||$==="style"||$==="script"||$==="template";case"head":return $==="base"||$==="basefont"||$==="bgsound"||$==="link"||$==="meta"||$==="title"||$==="noscript"||$==="noframes"||$==="style"||$==="script"||$==="template";case"html":if(G)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!G)return $==="html"}switch($){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Z!=="h1"&&Z!=="h2"&&Z!=="h3"&&Z!=="h4"&&Z!=="h5"&&Z!=="h6";case"rp":case"rt":return XI.indexOf(Z)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return Z==null;case"head":return G||Z===null;case"html":return G&&Z==="#document"||Z===null;case"body":return G&&(Z==="#document"||Z==="html")||Z===null}return!0}function $P($,Z){switch($){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return Z.pTagInButtonScope;case"form":return Z.formTag||Z.pTagInButtonScope;case"li":return Z.listItemTagAutoclosing;case"dd":case"dt":return Z.dlItemTagAutoclosing;case"button":return Z.buttonTagInScope;case"a":return Z.aTagInScope;case"nobr":return Z.nobrTagInScope}return null}function ZB($,Z){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Z)return $}$=$.return}return null}function fX($,Z){Z=Z||GW;var G=Z.current;if(Z=(G=$B($,G&&G.tag,Z.implicitRootScope)?null:G)?null:$P($,Z),Z=G||Z,!Z)return!0;var Y=Z.tag;if(Z=String(!!G)+"|"+$+"|"+Y,_G[Z])return!1;_G[Z]=!0;var U=(Z=z6)?ZB(Z.return,Y):null,B=Z!==null&&U!==null?tK(U,Z,null):"",W="<"+$+">";return G?(G="",Y==="table"&&$==="tr"&&(G+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
+ This will cause a hydration error.%s`,W,Y,G,B)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,W,Y,B),Z&&($=Z.return,U===null||$===null||U===$&&$._debugOwner===Z._debugOwner||X0(U,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,Y,W)})),!1}function KJ($,Z,G){if(G||$B("#text",Z,!1))return!0;if(G="#text|"+Z,_G[G])return!1;_G[G]=!0;var Y=(G=z6)?ZB(G,Z):null;return G=G!==null&&Y!==null?tK(Y,G,G.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
+ This will cause a hydration error.%s`,Z,G):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
+ This will cause a hydration error.%s`,Z,G),!1}function D$($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function ZP($){return $.replace(NI,function(Z,G){return G.toUpperCase()})}function QB($,Z,G){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?C7.hasOwnProperty(Z)&&C7[Z]||(C7[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,ZP(Z.replace(YI,"ms-")))):qI.test(Z)?C7.hasOwnProperty(Z)&&C7[Z]||(C7[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!YW.test(G)||aY.hasOwnProperty(G)&&aY[G]||(aY[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,G.replace(YW,""))),typeof G==="number"&&(isNaN(G)?NW||(NW=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(G)||UW||(UW=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),G==null||typeof G==="boolean"||G===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,G):typeof G!=="number"||G===0||KW.has(Z)?Z==="float"?$.cssFloat=G:(V$(G,Z),$[Z]=(""+G).trim()):$[Z]=G+"px"}function JB($,Z,G){if(Z!=null&&typeof Z!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(Z&&Object.freeze(Z),$=$.style,G!=null){if(Z){var Y={};if(G){for(var U in G)if(G.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var B=oY[U]||[U],W=0;W<B.length;W++)Y[B[W]]=U}for(var R in Z)if(Z.hasOwnProperty(R)&&(!G||G[R]!==Z[R]))for(U=oY[R]||[R],B=0;B<U.length;B++)Y[U[B]]=R;R={};for(var L in Z)for(U=oY[L]||[L],B=0;B<U.length;B++)R[U[B]]=L;L={};for(var P in Y)if(U=Y[P],(B=R[P])&&U!==B&&(W=U+","+B,!L[W])){L[W]=!0,W=console;var k=Z[U];W.error.call(W,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",k==null||typeof k==="boolean"||k===""?"Removing":"Updating",U,B)}}for(var f in G)!G.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var S in Z)P=Z[S],Z.hasOwnProperty(S)&&G[S]!==P&&QB($,S,P)}else for(Y in Z)Z.hasOwnProperty(Y)&&QB($,Y,Z[Y])}function v$($){if($.indexOf("-")===-1)return!1;switch($){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}}function GB($){return UI.get($)||$}function QP($,Z){if($4.call(O7,Z)&&O7[Z])return!0;if(BI.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=BW.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),O7[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),O7[Z]=!0}if(KI.test(Z)){if($=Z.toLowerCase(),$=BW.hasOwnProperty($)?$:null,$==null)return O7[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),O7[Z]=!0)}return!0}function JP($,Z){var G=[],Y;for(Y in Z)QP($,Y)||G.push(Y);Z=G.map(function(U){return"`"+U+"`"}).join(", "),G.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<G.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function GP($,Z,G,Y){if($4.call(h5,Z)&&h5[Z])return!0;var U=Z.toLowerCase();if(U==="onfocusin"||U==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),h5[Z]=!0;if(typeof G==="function"&&($==="form"&&Z==="action"||$==="input"&&Z==="formAction"||$==="button"&&Z==="formAction"))return!0;if(Y!=null){if($=Y.possibleRegistrationNames,Y.registrationNameDependencies.hasOwnProperty(Z))return!0;if(Y=$.hasOwnProperty(U)?$[U]:null,Y!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",Z,Y),h5[Z]=!0;if(MW.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),h5[Z]=!0}else if(MW.test(Z))return HI.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),h5[Z]=!0;if(MI.test(Z)||FI.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),h5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),h5[Z]=!0;if(U==="is"&&G!==null&&G!==void 0&&typeof G!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof G),h5[Z]=!0;if(typeof G==="number"&&isNaN(G))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),h5[Z]=!0;if(CG.hasOwnProperty(U)){if(U=CG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),h5[Z]=!0}else if(Z!==U)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",Z,U),h5[Z]=!0;switch(Z){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof G){case"boolean":switch(Z){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(U=Z.toLowerCase().slice(0,5),U==="data-"||U==="aria-")return!0;return G?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',G,Z,Z,G,Z):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',G,Z,Z,G,Z,Z,Z),h5[Z]=!0}case"function":case"symbol":return h5[Z]=!0,!1;case"string":if(G==="false"||G==="true"){switch(Z){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",G,Z,G==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',Z,G),h5[Z]=!0}}return!0}function XP($,Z,G){var Y=[],U;for(U in Z)GP($,U,Z[U],G)||Y.push(U);Z=Y.map(function(B){return"`"+B+"`"}).join(", "),Y.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",Z,$):1<Y.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",Z,$)}function b$($){return WI.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function o4(){}function yX($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function XB($){var Z=j0($);if(Z&&($=Z.stateNode)){var G=$[g5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(SX($,G.value,G.defaultValue,G.defaultValue,G.checked,G.defaultChecked,G.type,G.name),Z=G.name,G.type==="radio"&&Z!=null){for(G=$;G.parentNode;)G=G.parentNode;H1(Z,"name"),G=G.querySelectorAll('input[name="'+E6(""+Z)+'"][type="radio"]');for(Z=0;Z<G.length;Z++){var Y=G[Z];if(Y!==$&&Y.form===$.form){var U=Y[g5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");SX(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<G.length;Z++)Y=G[Z],Y.form===$.form&&xK(Y)}break $;case"textarea":sK($,G.value,G.defaultValue);break $;case"select":Z=G.value,Z!=null&&Z7($,!!G.multiple,Z,!1)}}}function qB($,Z,G){if(iY)return $(Z,G);iY=!0;try{var Y=$(Z);return Y}finally{if(iY=!1,V7!==null||A7!==null){if(M7(),V7&&(Z=V7,$=A7,A7=V7=null,XB(Z),$))for(Z=0;Z<$.length;Z++)XB($[Z])}}}function k$($,Z){var G=$.stateNode;if(G===null)return null;var Y=G[g5]||null;if(Y===null)return null;G=Y[Z];$:switch(Z){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Y=!Y.disabled)||($=$.type,Y=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!Y;break $;default:$=!1}if($)return null;if(G&&typeof G!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof G+"` type.");return G}function YB(){if(IG)return IG;var $,Z=eY,G=Z.length,Y,U="value"in $2?$2.value:$2.textContent,B=U.length;for($=0;$<G&&Z[$]===U[$];$++);var W=G-$;for(Y=1;Y<=W&&Z[G-Y]===U[B-Y];Y++);return IG=U.slice($,1<Y?1-Y:void 0)}function BJ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function HJ(){return!0}function NB(){return!1}function c5($){function Z(G,Y,U,B,W){this._reactName=G,this._targetInst=U,this.type=Y,this.nativeEvent=B,this.target=W,this.currentTarget=null;for(var R in $)$.hasOwnProperty(R)&&(G=$[R],this[R]=G?G(B):B[R]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?HJ:NB,this.isPropagationStopped=NB,this}return c0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var G=this.nativeEvent;G&&(G.preventDefault?G.preventDefault():typeof G.returnValue!=="unknown"&&(G.returnValue=!1),this.isDefaultPrevented=HJ)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=HJ)},persist:function(){},isPersistent:HJ}),Z}function qP($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=EI[$])?!!Z[$]:!1}function gX(){return qP}function UB($,Z){switch($){case"keyup":return xI.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==RW;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function KB($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function YP($,Z){switch($){case"compositionend":return KB(Z);case"keypress":if(Z.which!==TW)return null;return _W=!0,LW;case"textInput":return $=Z.data,$===LW&&_W?null:$;default:return null}}function NP($,Z){if(E7)return $==="compositionend"||!JN&&UB($,Z)?($=YB(),IG=eY=$2=null,E7=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(Z.ctrlKey||Z.altKey||Z.metaKey)||Z.ctrlKey&&Z.altKey){if(Z.char&&1<Z.char.length)return Z.char;if(Z.which)return String.fromCharCode(Z.which)}return null;case"compositionend":return zW&&Z.locale!=="ko"?null:Z.data;default:return null}}function BB($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!dI[$.type]:Z==="textarea"?!0:!1}function UP($){if(!f4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function HB($,Z,G,Y){V7?A7?A7.push(Y):A7=[Y]:V7=Y,Z=GG(Z,"onChange"),0<Z.length&&(G=new OG("onChange","change",null,G,Y),$.push({event:G,listeners:Z}))}function KP($){nM($,0)}function MJ($){var Z=D0($);if(xK(Z))return $}function MB($,Z){if($==="change")return Z}function FB(){TZ&&(TZ.detachEvent("onpropertychange",WB),LZ=TZ=null)}function WB($){if($.propertyName==="value"&&MJ(LZ)){var Z=[];HB(Z,LZ,$,yX($)),qB(KP,Z)}}function BP($,Z,G){$==="focusin"?(FB(),TZ=Z,LZ=G,TZ.attachEvent("onpropertychange",WB)):$==="focusout"&&FB()}function HP($){if($==="selectionchange"||$==="keyup"||$==="keydown")return MJ(LZ)}function MP($,Z){if($==="click")return MJ(Z)}function FP($,Z){if($==="input"||$==="change")return MJ(Z)}function WP($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function f$($,Z){if(u5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var G=Object.keys($),Y=Object.keys(Z);if(G.length!==Y.length)return!1;for(Y=0;Y<G.length;Y++){var U=G[Y];if(!$4.call(Z,U)||!u5($[U],Z[U]))return!1}return!0}function wB($){for(;$&&$.firstChild;)$=$.firstChild;return $}function RB($,Z){var G=wB($);$=0;for(var Y;G;){if(G.nodeType===3){if(Y=$+G.textContent.length,$<=Z&&Y>=Z)return{node:G,offset:Z-$};$=Y}$:{for(;G;){if(G.nextSibling){G=G.nextSibling;break $}G=G.parentNode}G=void 0}G=wB(G)}}function zB($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?zB($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function TB($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=NJ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(Y){G=!1}if(G)$=Z.contentWindow;else break;Z=NJ($.document)}return Z}function hX($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function LB($,Z,G){var Y=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;XN||S7==null||S7!==NJ(Y)||(Y=S7,("selectionStart"in Y)&&hX(Y)?Y={start:Y.selectionStart,end:Y.selectionEnd}:(Y=(Y.ownerDocument&&Y.ownerDocument.defaultView||window).getSelection(),Y={anchorNode:Y.anchorNode,anchorOffset:Y.anchorOffset,focusNode:Y.focusNode,focusOffset:Y.focusOffset}),_Z&&f$(_Z,Y)||(_Z=Y,Y=GG(GN,"onSelect"),0<Y.length&&(Z=new OG("onSelect","select",null,Z,G),$.push({event:Z,listeners:Y}),Z.target=S7)))}function n2($,Z){var G={};return G[$.toLowerCase()]=Z.toLowerCase(),G["Webkit"+$]="webkit"+Z,G["Moz"+$]="moz"+Z,G}function o2($){if(qN[$])return qN[$];if(!j7[$])return $;var Z=j7[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in CW)return qN[$]=Z[G];return $}function i6($,Z){EW.set($,Z),V5(Z,[$])}function wP($){for(var Z=AG,G=0;G<$.length;G++){var Y=$[G];if(typeof Y==="object"&&Y!==null)if(Q5(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==AG&&Z!==BN)return UN;Z=BN}else return UN;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==AG&&Z!==KN)return UN;Z=KN}}return Z}function uX($,Z,G,Y){for(var U in $)$4.call($,U)&&U[0]!=="_"&&M4(U,$[U],Z,G,Y)}function M4($,Z,G,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===S4){var B=i(Z.type)||"…",W=Z.key;Z=Z.props;var R=Object.keys(Z),L=R.length;if(W==null&&L===0){Z="<"+B+" />";break}if(3>Y||L===1&&R[0]==="children"&&W==null){Z="<"+B+" … />";break}G.push([U+"  ".repeat(Y)+$,"<"+B]),W!==null&&M4("key",W,G,Y+1,U),$=!1;for(var P in Z)P==="children"?Z.children!=null&&(!Q5(Z.children)||0<Z.children.length)&&($=!0):$4.call(Z,P)&&P[0]!=="_"&&M4(P,Z[P],G,Y+1,U);G.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(P=wP(Z),P===KN||P===AG){Z=JSON.stringify(Z);break}else if(P===BN){G.push([U+"  ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)B=Z[$],M4(B[0],B[1],G,Y+1,U);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=G.length,M4($,Z.value,G,Y,U),G.length>B){G=G[B],G[1]="Promise<"+(G[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=G.length,M4($,Z.reason,G,Y,U),G.length>B)){G=G[B],G[1]="Rejected Promise<"+G[1]+">";return}G.push(["  ".repeat(Y)+$,"Promise"]);return}B==="Object"&&(P=Object.getPrototypeOf(Z))&&typeof P.constructor==="function"&&(B=P.constructor.name),G.push([U+"  ".repeat(Y)+$,B==="Object"?3>Y?"":"…":B]),3>Y&&uX(Z,G,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===oI?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}G.push([U+"  ".repeat(Y)+$,Z])}function _B($,Z,G,Y){var U=!0;for(W in $)W in Z||(G.push([EG+"  ".repeat(Y)+W,"…"]),U=!1);for(var B in Z)if(B in $){var W=$[B],R=Z[B];if(W!==R){if(Y===0&&B==="children")U="  ".repeat(Y)+B,G.push([EG+U,"…"],[SG+U,"…"]);else{if(!(3<=Y)){if(typeof W==="object"&&typeof R==="object"&&W!==null&&R!==null&&W.$$typeof===R.$$typeof)if(R.$$typeof===S4){if(W.type===R.type&&W.key===R.key){W=i(R.type)||"…",U="  ".repeat(Y)+B,W="<"+W+" … />",G.push([EG+U,W],[SG+U,W]),U=!1;continue}}else{var L=Object.prototype.toString.call(W),P=Object.prototype.toString.call(R);if(L===P&&(P==="[object Object]"||P==="[object Array]")){L=[DW+"  ".repeat(Y)+B,P==="[object Array]"?"Array":""],G.push(L),P=G.length,_B(W,R,G,Y+1)?P===G.length&&(L[1]="Referentially unequal but deeply equal objects. Consider memoization."):U=!1;continue}}else if(typeof W==="function"&&typeof R==="function"&&W.name===R.name&&W.length===R.length&&(L=Function.prototype.toString.call(W),P=Function.prototype.toString.call(R),L===P)){W=R.name===""?"() => {}":R.name+"() {}",G.push([DW+"  ".repeat(Y)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}M4(B,W,G,Y,EG),M4(B,R,G,Y,SG)}U=!1}}else G.push([SG+"  ".repeat(Y)+B,"…"]),U=!1;return U}function K6($){s0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function F4($,Z,G,Y){C1&&(Q2.start=Z,Q2.end=G,G8.color="warning",G8.tooltipText=Y,G8.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,Q2)):performance.measure(Y,Q2))}function FJ($,Z,G){F4($,Z,G,"Reconnect")}function WJ($,Z,G,Y,U){var B=d($);if(B!==null&&C1){var{alternate:W,actualDuration:R}=$;if(W===null||W.child!==$.child)for(var L=$.child;L!==null;L=L.sibling)R-=L.actualDuration;Y=0.5>R?Y?"tertiary-light":"primary-light":10>R?Y?"tertiary":"primary":100>R?Y?"tertiary-dark":"primary-dark":"error";var P=$.memoizedProps;R=$._debugTask,P!==null&&W!==null&&W.memoizedProps!==P?(L=[aI],P=_B(W.memoizedProps,P,L,0),1<L.length&&(P&&!Z2&&(W.lanes&U)===0&&100<$.actualDuration?(Z2=!0,L[0]=iI,G8.color="warning",G8.tooltipText=vW):(G8.color=Y,G8.tooltipText=B),G8.properties=L,Q2.start=Z,Q2.end=G,R!=null?R.run(performance.measure.bind(performance,"​"+B,Q2)):performance.measure("​"+B,Q2))):R!=null?R.run(console.timeStamp.bind(console,B,Z,G,j6,void 0,Y)):console.timeStamp(B,Z,G,j6,void 0,Y)}}function xX($,Z,G,Y){if(C1){var U=d($);if(U!==null){for(var B=null,W=[],R=0;R<Y.length;R++){var L=Y[R];B==null&&L.source!==null&&(B=L.source._debugTask),L=L.value,W.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&M4("key",$.key,W,0,""),$.memoizedProps!==null&&uX($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:G,detail:{devtools:{color:"error",track:j6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,"​"+U,$)):performance.measure("​"+U,$)}}}function W4($,Z,G,Y,U){if(U!==null){if(C1){var B=d($);if(B!==null){Y=[];for(var W=0;W<U.length;W++){var R=U[W].value;Y.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$.key!==null&&M4("key",$.key,Y,0,""),$.memoizedProps!==null&&uX($.memoizedProps,Y,0,""),Z={start:Z,end:G,detail:{devtools:{color:"error",track:j6,tooltipText:"A lifecycle or effect errored",properties:Y}}},($=$._debugTask)?$.run(performance.measure.bind(performance,"​"+B,Z)):performance.measure("​"+B,Z)}}}else B=d($),B!==null&&C1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,G,j6,void 0,U)):console.timeStamp(B,Z,G,j6,void 0,U))}function RP($,Z,G,Y){if(C1&&!(Z<=$)){var U=(G&738197653)===G?"tertiary-dark":"primary-dark";G=(G&536870912)===G?"Prepared":(G&201326741)===G?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,G,$,Z,s0,l0,U)):console.timeStamp(G,$,Z,s0,l0,U)}}function PB($,Z,G,Y){!C1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,s0,l0,G)):console.timeStamp("Prewarm",$,Z,s0,l0,G))}function CB($,Z,G,Y){!C1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,s0,l0,G)):console.timeStamp("Suspended",$,Z,s0,l0,G))}function zP($,Z,G,Y,U,B){if(C1&&!(Z<=$)){G=[];for(var W=0;W<Y.length;W++){var R=Y[W].value;G.push(["Recoverable Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:s0,trackGroup:l0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function mX($,Z,G,Y){!C1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,s0,l0,"error")):console.timeStamp("Errored",$,Z,s0,l0,"error"))}function TP($,Z,G,Y){!C1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G,$,Z,s0,l0,"secondary-light")):console.timeStamp(G,$,Z,s0,l0,"secondary-light"))}function IB($,Z,G,Y,U){if(C1&&!(Z<=$)){for(var B=[],W=0;W<G.length;W++){var R=G[W].value;B.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:s0,trackGroup:l0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:B}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function y$($,Z,G){!C1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,s0,l0,"secondary-dark")):console.timeStamp("Animating",$,Z,s0,l0,"secondary-dark"))}function wJ(){for(var $=D7,Z=HN=D7=0;Z<$;){var G=D6[Z];D6[Z++]=null;var Y=D6[Z];D6[Z++]=null;var U=D6[Z];D6[Z++]=null;var B=D6[Z];if(D6[Z++]=null,Y!==null&&U!==null){var W=Y.pending;W===null?U.next=U:(U.next=W.next,W.next=U),Y.pending=U}B!==0&&OB(G,U,B)}}function RJ($,Z,G,Y){D6[D7++]=$,D6[D7++]=Z,D6[D7++]=G,D6[D7++]=Y,HN|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function dX($,Z,G,Y){return RJ($,Z,G,Y),zJ($)}function A5($,Z){return RJ($,null,null,Z),zJ($)}function OB($,Z,G){$.lanes|=G;var Y=$.alternate;Y!==null&&(Y.lanes|=G);for(var U=!1,B=$.return;B!==null;)B.childLanes|=G,Y=B.alternate,Y!==null&&(Y.childLanes|=G),B.tag===22&&($=B.stateNode,$===null||$._visibility&PZ||(U=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,U&&Z!==null&&(U=31-y5(G),$=B.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=G|536870912),B):null}function zJ($){if(oZ>HO)throw I9=oZ=0,aZ=lN=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");I9>MO&&(I9=0,aZ=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),$.alternate===null&&($.flags&4098)!==0&&mM($);for(var Z=$,G=Z.return;G!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&mM($),Z=G,G=Z.return;return Z.tag===3?Z.stateNode:null}function a2($){if(v6===null)return $;var Z=v6($);return Z===void 0?$:Z.current}function pX($){if(v6===null)return $;var Z=v6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=a2($.render),$.render!==Z)?(Z={$$typeof:KZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function VB($,Z){if(v6===null)return!1;var G=$.elementType;Z=Z.type;var Y=!1,U=typeof Z==="object"&&Z!==null?Z.$$typeof:null;switch($.tag){case 1:typeof Z==="function"&&(Y=!0);break;case 0:typeof Z==="function"?Y=!0:U===R6&&(Y=!0);break;case 11:U===KZ?Y=!0:U===R6&&(Y=!0);break;case 14:case 15:U===WG?Y=!0:U===R6&&(Y=!0);break;default:return!1}return Y&&($=v6(G),$!==void 0&&$===v6(Z))?!0:!1}function AB($){v6!==null&&typeof WeakSet==="function"&&(v7===null&&(v7=new WeakSet),v7.add($))}function EB($,Z,G){do{var Y=$,U=Y.alternate,B=Y.child,W=Y.sibling,R=Y.tag;Y=Y.type;var L=null;switch(R){case 0:case 15:case 1:L=Y;break;case 11:L=Y.render}if(v6===null)throw Error("Expected resolveFamily to be set during hot reload.");var P=!1;if(Y=!1,L!==null&&(L=v6(L),L!==void 0&&(G.has(L)?Y=!0:Z.has(L)&&(R===1?Y=!0:P=!0))),v7!==null&&(v7.has($)||U!==null&&v7.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||P)U=A5($,2),U!==null&&f1(U,$,2);if(B===null||Y||EB(B,Z,G),W===null)break;$=W}while(1)}function LP($,Z,G,Y){this.tag=$,this.key=G,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=Z,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,bW||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function cX($){return $=$.prototype,!(!$||!$.isReactComponent)}function a4($,Z){var G=$.alternate;switch(G===null?(G=_($.tag,Z,$.key,$.mode),G.elementType=$.elementType,G.type=$.type,G.stateNode=$.stateNode,G._debugOwner=$._debugOwner,G._debugStack=$._debugStack,G._debugTask=$._debugTask,G._debugHookTypes=$._debugHookTypes,G.alternate=$,$.alternate=G):(G.pendingProps=Z,G.type=$.type,G.flags=0,G.subtreeFlags=0,G.deletions=null,G.actualDuration=-0,G.actualStartTime=-1.1),G.flags=$.flags&65011712,G.childLanes=$.childLanes,G.lanes=$.lanes,G.child=$.child,G.memoizedProps=$.memoizedProps,G.memoizedState=$.memoizedState,G.updateQueue=$.updateQueue,Z=$.dependencies,G.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},G.sibling=$.sibling,G.index=$.index,G.ref=$.ref,G.refCleanup=$.refCleanup,G.selfBaseDuration=$.selfBaseDuration,G.treeBaseDuration=$.treeBaseDuration,G._debugInfo=$._debugInfo,G._debugNeedsRemount=$._debugNeedsRemount,G.tag){case 0:case 15:G.type=a2($.type);break;case 1:G.type=a2($.type);break;case 11:G.type=pX($.type)}return G}function SB($,Z){$.flags&=65011714;var G=$.alternate;return G===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=G.childLanes,$.lanes=G.lanes,$.child=G.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=G.memoizedProps,$.memoizedState=G.memoizedState,$.updateQueue=G.updateQueue,$.type=G.type,Z=G.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=G.selfBaseDuration,$.treeBaseDuration=G.treeBaseDuration),$}function lX($,Z,G,Y,U,B){var W=0,R=$;if(typeof $==="function")cX($)&&(W=1),R=a2(R);else if(typeof $==="string")W=M0(),W=SC($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case gY:return Z=_(31,G,Z,U),Z.elementType=gY,Z.lanes=B,Z;case L7:return i2(G.children,U,B,Z);case FG:W=8,U|=S5,U|=Q4;break;case bY:return $=G,Y=U,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Z=_(12,$,Z,Y|y0),Z.elementType=bY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case fY:return Z=_(13,G,Z,U),Z.elementType=fY,Z.lanes=B,Z;case yY:return Z=_(19,G,Z,U),Z.elementType=yY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case j4:W=10;break $;case kY:W=9;break $;case KZ:W=11,R=pX(R);break $;case WG:W=14;break $;case R6:W=16,R=null;break $}if(R="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";$===null?G="null":Q5($)?G="array":$!==void 0&&$.$$typeof===S4?(G="<"+(i($.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=Y?Y0(Y):null)&&(R+=`
72
+
73
+ Check the render method of \``+W+"`."),W=29,G=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(G+"."+R)),R=null}return Z=_(W,G,Z,U),Z.elementType=$,Z.type=R,Z.lanes=B,Z._debugOwner=Y,Z}function TJ($,Z,G){return Z=lX($.type,$.key,$.props,$._owner,Z,G),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function i2($,Z,G,Y){return $=_(7,$,Y,Z),$.lanes=G,$}function rX($,Z,G){return $=_(6,$,null,Z),$.lanes=G,$}function jB($){var Z=_(18,null,null,O0);return Z.stateNode=$,Z}function sX($,Z,G){return Z=_(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=G,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function B6($,Z){if(typeof $==="object"&&$!==null){var G=MN.get($);if(G!==void 0)return G;return Z={value:$,source:Z,stack:r1(Z)},MN.set($,Z),Z}return{value:$,source:Z,stack:r1(Z)}}function i4($,Z){h8(),b7[k7++]=CZ,b7[k7++]=jG,jG=$,CZ=Z}function DB($,Z,G){h8(),b6[k6++]=q8,b6[k6++]=Y8,b6[k6++]=K9,K9=$;var Y=q8;$=Y8;var U=32-y5(Y)-1;Y&=~(1<<U),G+=1;var B=32-y5(Z)+U;if(30<B){var W=U-U%5;B=(Y&(1<<W)-1).toString(32),Y>>=W,U-=W,q8=1<<32-y5(Z)+U|G<<U|Y,Y8=B+$}else q8=1<<B|G<<U|Y,Y8=$}function nX($){h8(),$.return!==null&&(i4($,1),DB($,1,0))}function oX($){for(;$===jG;)jG=b7[--k7],b7[k7]=null,CZ=b7[--k7],b7[k7]=null;for(;$===K9;)K9=b6[--k6],b6[k6]=null,Y8=b6[--k6],b6[k6]=null,q8=b6[--k6],b6[k6]=null}function vB(){return h8(),K9!==null?{id:q8,overflow:Y8}:null}function bB($,Z){h8(),b6[k6++]=q8,b6[k6++]=Y8,b6[k6++]=K9,q8=Z.id,Y8=Z.overflow,K9=$}function h8(){o0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function t2($,Z){if($.return===null){if(L6===null)L6={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if(L6.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");L6.distanceFromLeaf>Z&&(L6.distanceFromLeaf=Z)}return L6}var G=t2($.return,Z+1).children;if(0<G.length&&G[G.length-1].fiber===$)return G=G[G.length-1],G.distanceFromLeaf>Z&&(G.distanceFromLeaf=Z),G;return Z={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},G.push(Z),Z}function kB(){o0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function LJ($,Z){y4||($=t2($,0),$.serverProps=null,Z!==null&&(Z=HF(Z),$.serverTail.push(Z)))}function u8($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,G="",Y=L6;throw Y!==null&&(L6=null,G=kX(Y)),g$(B6(Error("Hydration failed because the server rendered "+(Z?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
74
+
75
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
76
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
77
+ - Date formatting in a user's locale which doesn't match the server.
78
+ - External changing data without sending a snapshot of it along with the HTML.
79
+ - Invalid HTML tag nesting.
80
+
81
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
+
83
+ https://react.dev/link/hydration-mismatch`+G),$)),FN}function fB($){var{stateNode:Z,type:G,memoizedProps:Y}=$;switch(Z[z5]=$,Z[g5]=Y,WY(G,Y),G){case"dialog":a0("cancel",Z),a0("close",Z);break;case"iframe":case"object":case"embed":a0("load",Z);break;case"video":case"audio":for(G=0;G<iZ.length;G++)a0(iZ[G],Z);break;case"source":a0("error",Z);break;case"img":case"image":case"link":a0("error",Z),a0("load",Z);break;case"details":a0("toggle",Z);break;case"input":g8("input",Y),a0("invalid",Z),mK(Z,Y),dK(Z,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":pK(Z,Y);break;case"select":g8("select",Y),a0("invalid",Z),lK(Z,Y);break;case"textarea":g8("textarea",Y),a0("invalid",Z),rK(Z,Y),nK(Z,Y.value,Y.defaultValue,Y.children)}G=Y.children,typeof G!=="string"&&typeof G!=="number"&&typeof G!=="bigint"||Z.textContent===""+G||Y.suppressHydrationWarning===!0||tM(Z.textContent,G)?(Y.popover!=null&&(a0("beforetoggle",Z),a0("toggle",Z)),Y.onScroll!=null&&a0("scroll",Z),Y.onScrollEnd!=null&&a0("scrollend",Z),Y.onClick!=null&&(Z.onclick=o4),Z=!0):Z=!1,Z||u8($,!0)}function yB($){for(T5=$.return;T5;)switch(T5.tag){case 5:case 31:case 13:f6=!1;return;case 27:case 3:f6=!0;return;default:T5=T5.return}}function G7($){if($!==T5)return!1;if(!o0)return yB($),o0=!0,!1;var Z=$.tag,G;if(G=Z!==3&&Z!==27){if(G=Z===5)G=$.type,G=!(G!=="form"&&G!=="button")||LY($.type,$.memoizedProps);G=!G}if(G&&I1){for(G=I1;G;){var Y=t2($,0),U=HF(G);Y.serverTail.push(U),G=U.type==="Suspense"?IY(G):w6(G.nextSibling)}u8($)}if(yB($),Z===13){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");I1=IY($)}else if(Z===31){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");I1=IY($)}else Z===27?(Z=I1,o8($.type)?($=JU,JU=null,I1=$):I1=Z):I1=T5?w6($.stateNode.nextSibling):null;return!0}function e2(){I1=T5=null,y4=o0=!1}function aX(){var $=G2;return $!==null&&(p5===null?p5=$:p5.push.apply(p5,$),G2=null),$}function g$($){G2===null?G2=[$]:G2.push($)}function iX(){var $=L6;if($!==null){L6=null;for(var Z=kX($);0<$.children.length;)$=$.children[0];X0($.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
84
+
85
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
86
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
87
+ - Date formatting in a user's locale which doesn't match the server.
88
+ - External changing data without sending a snapshot of it along with the HTML.
89
+ - Invalid HTML tag nesting.
90
+
91
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
+
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",Z)})}}function _J(){f7=DG=null,y7=!1}function x8($,Z,G){C0(WN,Z._currentValue,$),Z._currentValue=G,C0(wN,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==fW&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=fW}function t4($,Z){$._currentValue=WN.current;var G=wN.current;_0(wN,Z),$._currentRenderer=G,_0(WN,Z)}function tX($,Z,G){for(;$!==null;){var Y=$.alternate;if(($.childLanes&Z)!==Z?($.childLanes|=Z,Y!==null&&(Y.childLanes|=Z)):Y!==null&&(Y.childLanes&Z)!==Z&&(Y.childLanes|=Z),$===G)break;$=$.return}$!==G&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function eX($,Z,G,Y){var U=$.child;U!==null&&(U.return=$);for(;U!==null;){var B=U.dependencies;if(B!==null){var W=U.child;B=B.firstContext;$:for(;B!==null;){var R=B;B=U;for(var L=0;L<Z.length;L++)if(R.context===Z[L]){B.lanes|=G,R=B.alternate,R!==null&&(R.lanes|=G),tX(B.return,G,$),Y||(W=null);break $}B=R.next}}else if(U.tag===18){if(W=U.return,W===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");W.lanes|=G,B=W.alternate,B!==null&&(B.lanes|=G),tX(W,G,$),W=null}else W=U.child;if(W!==null)W.return=U;else for(W=U;W!==null;){if(W===$){W=null;break}if(U=W.sibling,U!==null){U.return=W.return,W=U;break}W=W.return}U=W}}function X7($,Z,G,Y){$=null;for(var U=Z,B=!1;U!==null;){if(!B){if((U.flags&524288)!==0)B=!0;else if((U.flags&262144)!==0)break}if(U.tag===10){var W=U.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var R=U.type;u5(U.pendingProps.value,W.value)||($!==null?$.push(R):$=[R])}}else if(U===wG.current){if(W=U.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==U.memoizedState.memoizedState&&($!==null?$.push(QQ):$=[QQ])}U=U.return}$!==null&&eX(Z,$,G,Y),Z.flags|=262144}function PJ($){for($=$.firstContext;$!==null;){if(!u5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function $9($){DG=$,f7=null,$=$.dependencies,$!==null&&($.firstContext=null)}function S1($){return y7&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),gB(DG,$)}function CJ($,Z){return DG===null&&$9($),gB($,Z)}function gB($,Z){var G=Z._currentValue;if(Z={context:Z,memoizedValue:G,next:null},f7===null){if($===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");f7=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else f7=f7.next=Z;return G}function $q(){return{controller:new $O,data:new Map,refCount:0}}function Z9($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function h$($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&ZO(QO,function(){$.controller.abort()})}function w4($,Z,G){if(($&127)!==0)0>g4&&(g4=n1(),OZ=vG(Z),RN=Z,G!=null&&(zN=d(G)),(e0&(G5|C6))!==F5&&(y1=!0,Y2=IZ),$=XZ(),Z=GZ(),$!==g7||Z!==VZ?g7=-1.1:Z!==null&&(Y2=IZ),H9=$,VZ=Z);else if(($&4194048)!==0&&0>y6&&(y6=n1(),AZ=vG(Z),yW=Z,G!=null&&(gW=d(G)),0>K8)){if($=XZ(),Z=GZ(),$!==U2||Z!==M9)U2=-1.1;N2=$,M9=Z}}function _P($){if(0>g4){g4=n1(),OZ=$._debugTask!=null?$._debugTask:null,(e0&(G5|C6))!==F5&&(Y2=IZ);var Z=XZ(),G=GZ();Z!==g7||G!==VZ?g7=-1.1:G!==null&&(Y2=IZ),H9=Z,VZ=G}if(0>y6&&(y6=n1(),AZ=$._debugTask!=null?$._debugTask:null,0>K8)){if($=XZ(),Z=GZ(),$!==U2||Z!==M9)U2=-1.1;N2=$,M9=Z}}function e4(){var $=B9;return B9=0,$}function IJ($){var Z=B9;return B9=$,Z}function u$($){var Z=B9;return B9+=$,Z}function OJ(){P0=L0=-1.1}function H6(){var $=L0;return L0=-1.1,$}function M6($){0<=$&&(L0=$)}function R4(){var $=v1;return v1=-0,$}function z4($){0<=$&&(v1=$)}function T4(){var $=j1;return j1=null,$}function L4(){var $=y1;return y1=!1,$}function Zq($){x5=n1(),0>$.actualStartTime&&($.actualStartTime=x5)}function Qq($){if(0<=x5){var Z=n1()-x5;$.actualDuration+=Z,$.selfBaseDuration=Z,x5=-1}}function hB($){if(0<=x5){var Z=n1()-x5;$.actualDuration+=Z,x5=-1}}function _4(){if(0<=x5){var $=n1(),Z=$-x5;x5=-1,B9+=Z,v1+=Z,P0=$}}function uB($){j1===null&&(j1=[]),j1.push($),U8===null&&(U8=[]),U8.push($)}function P4(){x5=n1(),0>L0&&(L0=x5)}function x$($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function PP($,Z){if(SZ===null){var G=SZ=[];LN=0,F9=BY(),h7={status:"pending",value:void 0,then:function(Y){G.push(Y)}}}return LN++,Z.then(xB,xB),Z}function xB(){if(--LN===0&&(-1<y6||(K8=-1.1),SZ!==null)){h7!==null&&(h7.status="fulfilled");var $=SZ;SZ=null,F9=0,h7=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function CP($,Z){var G=[],Y={status:"pending",value:null,reason:null,then:function(U){G.push(U)}};return $.then(function(){Y.status="fulfilled",Y.value=Z;for(var U=0;U<G.length;U++)(0,G[U])(Z)},function(U){Y.status="rejected",Y.reason=U;for(U=0;U<G.length;U++)(0,G[U])(void 0)}),Y}function Jq(){var $=W9.current;return $!==null?$:w1.pooledCache}function VJ($,Z){Z===null?C0(W9,W9.current,$):C0(W9,Z.pool,$)}function mB(){var $=Jq();return $===null?null:{parent:s1._currentValue,pool:$}}function dB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function pB($){return $=$.status,$==="fulfilled"||$==="rejected"}function cB($,Z,G){x.actQueue!==null&&(x.didUsePromise=!0);var Y=$.thenables;if(G=Y[G],G===void 0?Y.push(Z):G!==Z&&($.didWarnAboutUncachedPromise||($.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),Z.then(o4,o4),Z=G),Z._debugInfo===void 0){$=performance.now(),Y=Z.displayName;var U={name:typeof Y==="string"?Y:"Promise",start:$,end:$,value:Z};Z._debugInfo=[{awaited:U}],Z.status!=="fulfilled"&&Z.status!=="rejected"&&($=function(){U.end=performance.now()},Z.then($,$))}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,rB($),$;default:if(typeof Z.status==="string")Z.then(o4,o4);else{if($=w1,$!==null&&100<$.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");$=Z,$.status="pending",$.then(function(B){if(Z.status==="pending"){var W=Z;W.status="fulfilled",W.value=B}},function(B){if(Z.status==="pending"){var W=Z;W.status="rejected",W.reason=B}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,rB($),$}throw R9=Z,yZ=!0,u7}}function m8($){try{return qO($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw R9=Z,yZ=!0,u7;throw Z}}function lB(){if(R9===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=R9;return R9=null,yZ=!1,$}function rB($){if($===u7||$===xG)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function W5($){var Z=g0;return $!=null&&(g0=Z===null?$:Z.concat($)),Z}function Gq(){var $=g0;if($!=null){for(var Z=$.length-1;0<=Z;Z--)if($[Z].name!=null){var G=$[Z].debugTask;if(G!=null)return G}}return null}function AJ($,Z,G){for(var Y=Object.keys($.props),U=0;U<Y.length;U++){var B=Y[U];if(B!=="children"&&B!=="key"){Z===null&&(Z=TJ($,G.mode,0),Z._debugInfo=g0,Z.return=G),X0(Z,function(W){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W)},B);break}}}function EJ($){var Z=gZ;return gZ+=1,x7===null&&(x7=dB()),cB(x7,$,Z)}function m$($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function sB($,Z){if(Z.$$typeof===uC)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
+ - Multiple copies of the "react" package is used.
95
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
+ - A compiler tries to "inline" JSX instead of using the runtime.`);throw $=Object.prototype.toString.call(Z),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}function SJ($,Z){var G=Gq();G!==null?G.run(sB.bind(null,$,Z)):sB($,Z)}function nB($,Z){var G=d($)||"Component";Jw[G]||(Jw[G]=!0,Z=Z.displayName||Z.name||"Component",$.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
97
+ root.render(%s)`,Z,Z,Z):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
98
+ <%s>{%s}</%s>`,Z,Z,G,Z,G))}function jJ($,Z){var G=Gq();G!==null?G.run(nB.bind(null,$,Z)):nB($,Z)}function oB($,Z){var G=d($)||"Component";Gw[G]||(Gw[G]=!0,Z=String(Z),$.tag===3?console.error(`Symbols are not valid as a React child.
99
+ root.render(%s)`,Z):console.error(`Symbols are not valid as a React child.
100
+ <%s>%s</%s>`,G,Z,G))}function DJ($,Z){var G=Gq();G!==null?G.run(oB.bind(null,$,Z)):oB($,Z)}function aB($){function Z(A,j){if($){var b=A.deletions;b===null?(A.deletions=[j],A.flags|=16):b.push(j)}}function G(A,j){if(!$)return null;for(;j!==null;)Z(A,j),j=j.sibling;return null}function Y(A){for(var j=new Map;A!==null;)A.key!==null?j.set(A.key,A):j.set(A.index,A),A=A.sibling;return j}function U(A,j){return A=a4(A,j),A.index=0,A.sibling=null,A}function B(A,j,b){if(A.index=b,!$)return A.flags|=1048576,j;if(b=A.alternate,b!==null)return b=b.index,b<j?(A.flags|=67108866,j):b;return A.flags|=67108866,j}function W(A){return $&&A.alternate===null&&(A.flags|=67108866),A}function R(A,j,b,m){if(j===null||j.tag!==6)return j=rX(b,A.mode,m),j.return=A,j._debugOwner=A,j._debugTask=A._debugTask,j._debugInfo=g0,j;return j=U(j,b),j.return=A,j._debugInfo=g0,j}function L(A,j,b,m){var Q0=b.type;if(Q0===L7)return j=k(A,j,b.props.children,m,b.key),AJ(b,j,A),j;if(j!==null&&(j.elementType===Q0||VB(j,b)||typeof Q0==="object"&&Q0!==null&&Q0.$$typeof===R6&&m8(Q0)===j.type))return j=U(j,b.props),m$(j,b),j.return=A,j._debugOwner=b._owner,j._debugInfo=g0,j;return j=TJ(b,A.mode,m),m$(j,b),j.return=A,j._debugInfo=g0,j}function P(A,j,b,m){if(j===null||j.tag!==4||j.stateNode.containerInfo!==b.containerInfo||j.stateNode.implementation!==b.implementation)return j=sX(b,A.mode,m),j.return=A,j._debugInfo=g0,j;return j=U(j,b.children||[]),j.return=A,j._debugInfo=g0,j}function k(A,j,b,m,Q0){if(j===null||j.tag!==7)return j=i2(b,A.mode,m,Q0),j.return=A,j._debugOwner=A,j._debugTask=A._debugTask,j._debugInfo=g0,j;return j=U(j,b),j.return=A,j._debugInfo=g0,j}function f(A,j,b){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=rX(""+j,A.mode,b),j.return=A,j._debugOwner=A,j._debugTask=A._debugTask,j._debugInfo=g0,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case S4:return b=TJ(j,A.mode,b),m$(b,j),b.return=A,A=W5(j._debugInfo),b._debugInfo=g0,g0=A,b;case T7:return j=sX(j,A.mode,b),j.return=A,j._debugInfo=g0,j;case R6:var m=W5(j._debugInfo);return j=m8(j),A=f(A,j,b),g0=m,A}if(Q5(j)||t(j))return b=i2(j,A.mode,b,null),b.return=A,b._debugOwner=A,b._debugTask=A._debugTask,A=W5(j._debugInfo),b._debugInfo=g0,g0=A,b;if(typeof j.then==="function")return m=W5(j._debugInfo),A=f(A,EJ(j),b),g0=m,A;if(j.$$typeof===j4)return f(A,CJ(A,j),b);SJ(A,j)}return typeof j==="function"&&jJ(A,j),typeof j==="symbol"&&DJ(A,j),null}function S(A,j,b,m){var Q0=j!==null?j.key:null;if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0!==null?null:R(A,j,""+b,m);if(typeof b==="object"&&b!==null){switch(b.$$typeof){case S4:return b.key===Q0?(Q0=W5(b._debugInfo),A=L(A,j,b,m),g0=Q0,A):null;case T7:return b.key===Q0?P(A,j,b,m):null;case R6:return Q0=W5(b._debugInfo),b=m8(b),A=S(A,j,b,m),g0=Q0,A}if(Q5(b)||t(b)){if(Q0!==null)return null;return Q0=W5(b._debugInfo),A=k(A,j,b,m,null),g0=Q0,A}if(typeof b.then==="function")return Q0=W5(b._debugInfo),A=S(A,j,EJ(b),m),g0=Q0,A;if(b.$$typeof===j4)return S(A,j,CJ(A,b),m);SJ(A,b)}return typeof b==="function"&&jJ(A,b),typeof b==="symbol"&&DJ(A,b),null}function g(A,j,b,m,Q0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return A=A.get(b)||null,R(j,A,""+m,Q0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case S4:return b=A.get(m.key===null?b:m.key)||null,A=W5(m._debugInfo),j=L(j,b,m,Q0),g0=A,j;case T7:return A=A.get(m.key===null?b:m.key)||null,P(j,A,m,Q0);case R6:var E0=W5(m._debugInfo);return m=m8(m),j=g(A,j,b,m,Q0),g0=E0,j}if(Q5(m)||t(m))return b=A.get(b)||null,A=W5(m._debugInfo),j=k(j,b,m,Q0,null),g0=A,j;if(typeof m.then==="function")return E0=W5(m._debugInfo),j=g(A,j,b,EJ(m),Q0),g0=E0,j;if(m.$$typeof===j4)return g(A,j,b,CJ(j,m),Q0);SJ(j,m)}return typeof m==="function"&&jJ(j,m),typeof m==="symbol"&&DJ(j,m),null}function $0(A,j,b,m){if(typeof b!=="object"||b===null)return m;switch(b.$$typeof){case S4:case T7:z(A,j,b);var Q0=b.key;if(typeof Q0!=="string")break;if(m===null){m=new Set,m.add(Q0);break}if(!m.has(Q0)){m.add(Q0);break}X0(j,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Q0)});break;case R6:b=m8(b),$0(A,j,b,m)}return m}function G0(A,j,b,m){for(var Q0=null,E0=null,z0=null,K0=j,k0=j=0,O1=null;K0!==null&&k0<b.length;k0++){K0.index>k0?(O1=K0,K0=null):O1=K0.sibling;var c1=S(A,K0,b[k0],m);if(c1===null){K0===null&&(K0=O1);break}Q0=$0(A,c1,b[k0],Q0),$&&K0&&c1.alternate===null&&Z(A,K0),j=B(c1,j,k0),z0===null?E0=c1:z0.sibling=c1,z0=c1,K0=O1}if(k0===b.length)return G(A,K0),o0&&i4(A,k0),E0;if(K0===null){for(;k0<b.length;k0++)K0=f(A,b[k0],m),K0!==null&&(Q0=$0(A,K0,b[k0],Q0),j=B(K0,j,k0),z0===null?E0=K0:z0.sibling=K0,z0=K0);return o0&&i4(A,k0),E0}for(K0=Y(K0);k0<b.length;k0++)O1=g(K0,A,k0,b[k0],m),O1!==null&&(Q0=$0(A,O1,b[k0],Q0),$&&O1.alternate!==null&&K0.delete(O1.key===null?k0:O1.key),j=B(O1,j,k0),z0===null?E0=O1:z0.sibling=O1,z0=O1);return $&&K0.forEach(function(T8){return Z(A,T8)}),o0&&i4(A,k0),E0}function L1(A,j,b,m){if(b==null)throw Error("An iterable object provided no iterator.");for(var Q0=null,E0=null,z0=j,K0=j=0,k0=null,O1=null,c1=b.next();z0!==null&&!c1.done;K0++,c1=b.next()){z0.index>K0?(k0=z0,z0=null):k0=z0.sibling;var T8=S(A,z0,c1.value,m);if(T8===null){z0===null&&(z0=k0);break}O1=$0(A,T8,c1.value,O1),$&&z0&&T8.alternate===null&&Z(A,z0),j=B(T8,j,K0),E0===null?Q0=T8:E0.sibling=T8,E0=T8,z0=k0}if(c1.done)return G(A,z0),o0&&i4(A,K0),Q0;if(z0===null){for(;!c1.done;K0++,c1=b.next())z0=f(A,c1.value,m),z0!==null&&(O1=$0(A,z0,c1.value,O1),j=B(z0,j,K0),E0===null?Q0=z0:E0.sibling=z0,E0=z0);return o0&&i4(A,K0),Q0}for(z0=Y(z0);!c1.done;K0++,c1=b.next())k0=g(z0,A,K0,c1.value,m),k0!==null&&(O1=$0(A,k0,c1.value,O1),$&&k0.alternate!==null&&z0.delete(k0.key===null?K0:k0.key),j=B(k0,j,K0),E0===null?Q0=k0:E0.sibling=k0,E0=k0);return $&&z0.forEach(function(jO){return Z(A,jO)}),o0&&i4(A,K0),Q0}function i0(A,j,b,m){if(typeof b==="object"&&b!==null&&b.type===L7&&b.key===null&&(AJ(b,null,A),b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case S4:var Q0=W5(b._debugInfo);$:{for(var E0=b.key;j!==null;){if(j.key===E0){if(E0=b.type,E0===L7){if(j.tag===7){G(A,j.sibling),m=U(j,b.props.children),m.return=A,m._debugOwner=b._owner,m._debugInfo=g0,AJ(b,m,A),A=m;break $}}else if(j.elementType===E0||VB(j,b)||typeof E0==="object"&&E0!==null&&E0.$$typeof===R6&&m8(E0)===j.type){G(A,j.sibling),m=U(j,b.props),m$(m,b),m.return=A,m._debugOwner=b._owner,m._debugInfo=g0,A=m;break $}G(A,j);break}else Z(A,j);j=j.sibling}b.type===L7?(m=i2(b.props.children,A.mode,m,b.key),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=g0,AJ(b,m,A),A=m):(m=TJ(b,A.mode,m),m$(m,b),m.return=A,m._debugInfo=g0,A=m)}return A=W(A),g0=Q0,A;case T7:$:{Q0=b;for(b=Q0.key;j!==null;){if(j.key===b)if(j.tag===4&&j.stateNode.containerInfo===Q0.containerInfo&&j.stateNode.implementation===Q0.implementation){G(A,j.sibling),m=U(j,Q0.children||[]),m.return=A,A=m;break $}else{G(A,j);break}else Z(A,j);j=j.sibling}m=sX(Q0,A.mode,m),m.return=A,A=m}return W(A);case R6:return Q0=W5(b._debugInfo),b=m8(b),A=i0(A,j,b,m),g0=Q0,A}if(Q5(b))return Q0=W5(b._debugInfo),A=G0(A,j,b,m),g0=Q0,A;if(t(b)){if(Q0=W5(b._debugInfo),E0=t(b),typeof E0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var z0=E0.call(b);if(z0===b){if(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(z0)!=="[object Generator]")Zw||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Zw=!0}else b.entries!==E0||IN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),IN=!0);return A=L1(A,j,z0,m),g0=Q0,A}if(typeof b.then==="function")return Q0=W5(b._debugInfo),A=i0(A,j,EJ(b),m),g0=Q0,A;if(b.$$typeof===j4)return i0(A,j,CJ(A,b),m);SJ(A,b)}if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Q0=""+b,j!==null&&j.tag===6?(G(A,j.sibling),m=U(j,Q0),m.return=A,A=m):(G(A,j),m=rX(Q0,A.mode,m),m.return=A,m._debugOwner=A,m._debugTask=A._debugTask,m._debugInfo=g0,A=m),W(A);return typeof b==="function"&&jJ(A,b),typeof b==="symbol"&&DJ(A,b),G(A,j)}return function(A,j,b,m){var Q0=g0;g0=null;try{gZ=0;var E0=i0(A,j,b,m);return x7=null,E0}catch(O1){if(O1===u7||O1===xG)throw O1;var z0=_(29,O1,null,A.mode);z0.lanes=m,z0.return=A;var K0=z0._debugInfo=g0;if(z0._debugOwner=A._debugOwner,z0._debugTask=A._debugTask,K0!=null){for(var k0=K0.length-1;0<=k0;k0--)if(typeof K0[k0].stack==="string"){z0._debugOwner=K0[k0],z0._debugTask=K0[k0].debugTask;break}}return z0}finally{g0=Q0}}}function iB($,Z){var G=Q5($);return $=!G&&typeof t($)==="function",G||$?(G=G?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",G,Z,G),!1):!0}function Xq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function d8($){return{lane:$,tag:qw,payload:null,callback:null,next:null}}function p8($,Z,G){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,VN===Y&&!Uw){var U=d($);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
101
+
102
+ Please update the following component: %s`,U),Uw=!0}if((e0&G5)!==F5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=zJ($),OB($,null,G),Z;return RJ($,Y,Z,G),zJ($)}function d$($,Z,G){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(G&4194048)!==0)){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,c2($,G)}}function vJ($,Z){var{updateQueue:G,alternate:Y}=$;if(Y!==null&&(Y=Y.updateQueue,G===Y)){var U=null,B=null;if(G=G.firstBaseUpdate,G!==null){do{var W={lane:G.lane,tag:G.tag,payload:G.payload,callback:null,next:null};B===null?U=B=W:B=B.next=W,G=G.next}while(G!==null);B===null?U=B=Z:B=B.next=Z}else U=B=Z;G={baseState:Y.baseState,firstBaseUpdate:U,lastBaseUpdate:B,shared:Y.shared,callbacks:Y.callbacks},$.updateQueue=G;return}$=G.lastBaseUpdate,$===null?G.firstBaseUpdate=Z:$.next=Z,G.lastBaseUpdate=Z}function p$(){if(AN){var $=h7;if($!==null)throw $}}function c$($,Z,G,Y){AN=!1;var U=$.updateQueue;K2=!1,VN=U.shared;var{firstBaseUpdate:B,lastBaseUpdate:W}=U,R=U.shared.pending;if(R!==null){U.shared.pending=null;var L=R,P=L.next;L.next=null,W===null?B=P:W.next=P,W=L;var k=$.alternate;k!==null&&(k=k.updateQueue,R=k.lastBaseUpdate,R!==W&&(R===null?k.firstBaseUpdate=P:R.next=P,k.lastBaseUpdate=L))}if(B!==null){var f=U.baseState;W=0,k=P=L=null,R=B;do{var S=R.lane&-536870913,g=S!==R.lane;if(g?(h0&S)===S:(Y&S)===S){S!==0&&S===F9&&(AN=!0),k!==null&&(k=k.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});$:{S=$;var $0=R,G0=Z,L1=G;switch($0.tag){case Yw:if($0=$0.payload,typeof $0==="function"){y7=!0;var i0=$0.call(L1,f,G0);if(S.mode&S5){z1(!0);try{$0.call(L1,f,G0)}finally{z1(!1)}}y7=!1,f=i0;break $}f=$0;break $;case ON:S.flags=S.flags&-65537|128;case qw:if(i0=$0.payload,typeof i0==="function"){if(y7=!0,$0=i0.call(L1,f,G0),S.mode&S5){z1(!0);try{i0.call(L1,f,G0)}finally{z1(!1)}}y7=!1}else $0=i0;if($0===null||$0===void 0)break $;f=c0({},f,$0);break $;case Nw:K2=!0}}S=R.callback,S!==null&&($.flags|=64,g&&($.flags|=8192),g=U.callbacks,g===null?U.callbacks=[S]:g.push(S))}else g={lane:S,tag:R.tag,payload:R.payload,callback:R.callback,next:null},k===null?(P=k=g,L=f):k=k.next=g,W|=S;if(R=R.next,R===null)if(R=U.shared.pending,R===null)break;else g=R,R=g.next,g.next=null,U.lastBaseUpdate=g,U.shared.pending=null}while(1);k===null&&(L=f),U.baseState=L,U.firstBaseUpdate=P,U.lastBaseUpdate=k,B===null&&(U.shared.lanes=0),M2|=W,$.lanes=W,$.memoizedState=f}VN=null}function tB($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function IP($,Z){var G=$.shared.hiddenCallbacks;if(G!==null)for($.shared.hiddenCallbacks=null,$=0;$<G.length;$++)tB(G[$],Z)}function eB($,Z){var G=$.callbacks;if(G!==null)for($.callbacks=null,$=0;$<G.length;$++)tB(G[$],Z)}function $H($,Z){var G=x4;C0(dG,G,$),C0(m7,Z,$),x4=G|Z.baseLanes}function Yq($){C0(dG,x4,$),C0(m7,m7.current,$)}function Nq($){x4=dG.current,_0(m7,$),_0(dG,$)}function c8($){var Z=$.alternate;C0(p1,p1.current&d7,$),C0(_6,$,$),g6===null&&(Z===null||m7.current!==null?g6=$:Z.memoizedState!==null&&(g6=$))}function Uq($){C0(p1,p1.current,$),C0(_6,$,$),g6===null&&(g6=$)}function ZH($){$.tag===22?(C0(p1,p1.current,$),C0(_6,$,$),g6===null&&(g6=$)):l8($)}function l8($){C0(p1,p1.current,$),C0(_6,_6.current,$)}function F6($){_0(_6,$),g6===$&&(g6=null),_0(p1,$)}function bJ($){for(var Z=$;Z!==null;){if(Z.tag===13){var G=Z.memoizedState;if(G!==null&&(G=G.dehydrated,G===null||PY(G)||CY(G)))return Z}else if(Z.tag===19&&(Z.memoizedProps.revealOrder==="forwards"||Z.memoizedProps.revealOrder==="backwards"||Z.memoizedProps.revealOrder==="unstable_legacy-backwards"||Z.memoizedProps.revealOrder==="together")){if((Z.flags&128)!==0)return Z}else if(Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return null;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}return null}function p0(){var $=u;u6===null?u6=[$]:u6.push($)}function c(){var $=u;if(u6!==null&&(F8++,u6[F8]!==$)){var Z=d(A0);if(!Kw.has(Z)&&(Kw.add(Z),u6!==null)){for(var G="",Y=0;Y<=F8;Y++){var U=u6[Y],B=Y===F8?$:U;for(U=Y+1+". "+U;30>U.length;)U+=" ";U+=B+`
103
+ `,G+=U}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
104
+
105
+ Previous render Next render
106
+ ------------------------------------------------------
107
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
+ `,Z,G)}}}function q7($){$===void 0||$===null||Q5($)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",u,typeof $)}function kJ(){var $=d(A0);Hw.has($)||(Hw.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function x1(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
109
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
110
+ 2. You might be breaking the Rules of Hooks
111
+ 3. You might have more than one copy of React in the same app
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Kq($,Z){if(xZ)return!1;if(Z===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",u),!1;$.length!==Z.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
113
+
114
+ Previous: %s
115
+ Incoming: %s`,u,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var G=0;G<Z.length&&G<$.length;G++)if(!u5($[G],Z[G]))return!1;return!0}function Bq($,Z,G,Y,U,B){if(H8=B,A0=Z,u6=$!==null?$._debugHookTypes:null,F8=-1,xZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(A0),EN.has(B)||(EN.add(B),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",B===null?"An unknown Component":"<"+B+">"));Z.memoizedState=null,Z.updateQueue=null,Z.lanes=0,x.H=$!==null&&$.memoizedState!==null?jN:u6!==null?Mw:SN,T9=B=(Z.mode&S5)!==O0;var W=_N(G,Y,U);if(T9=!1,c7&&(W=Hq(Z,G,Y,U)),B){z1(!0);try{W=Hq(Z,G,Y,U)}finally{z1(!1)}}return QH($,Z),W}function QH($,Z){Z._debugHookTypes=u6,Z.dependencies===null?M8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:M8}):Z.dependencies._debugThenableState=M8,x.H=mZ;var G=W1!==null&&W1.next!==null;if(H8=0,u6=u=o1=W1=A0=null,F8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),cG=!1,uZ=0,M8=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||a1||($=$.dependencies,$!==null&&PJ($)&&(a1=!0)),yZ?(yZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",Bw.has(Z)||EN.has(Z)||(Bw.add(Z),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Hq($,Z,G,Y){A0=$;var U=0;do{if(c7&&(M8=null),uZ=0,c7=!1,U>=NO)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,xZ=!1,o1=W1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}F8=-1,x.H=Fw,B=_N(Z,G,Y)}while(c7);return B}function OP(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?l$(Z):Z,$=$.useState()[0],(W1!==null?W1.memoizedState:null)!==$&&(A0.flags|=1024),Z}function Mq(){var $=lG!==0;return lG=0,$}function Fq($,Z,G){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&Q4)!==O0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~G}function Wq($){if(cG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}cG=!1}H8=0,u6=o1=W1=A0=null,F8=-1,u=null,c7=!1,uZ=lG=0,M8=null}function f5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return o1===null?A0.memoizedState=o1=$:o1=o1.next=$,o1}function U1(){if(W1===null){var $=A0.alternate;$=$!==null?$.memoizedState:null}else $=W1.next;var Z=o1===null?A0.memoizedState:o1.next;if(Z!==null)o1=Z,W1=$;else{if($===null){if(A0.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}W1=$,$={memoizedState:W1.memoizedState,baseState:W1.baseState,baseQueue:W1.baseQueue,queue:W1.queue,next:null},o1===null?A0.memoizedState=o1=$:o1=o1.next=$}return o1}function fJ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function l$($){var Z=uZ;return uZ+=1,M8===null&&(M8=dB()),$=cB(M8,$,Z),Z=A0,(o1===null?Z.memoizedState:o1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?jN:SN),$}function r8($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return l$($);if($.$$typeof===j4)return S1($)}throw Error("An unsupported type was passed to use(): "+String($))}function Q9($){var Z=null,G=A0.updateQueue;if(G!==null&&(Z=G.memoCache),Z==null){var Y=A0.alternate;Y!==null&&(Y=Y.updateQueue,Y!==null&&(Y=Y.memoCache,Y!=null&&(Z={data:Y.data.map(function(U){return U.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),G===null&&(G=fJ(),A0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||xZ)for(G=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)G[Y]=xC;else G.length!==$&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",G.length,$);return Z.index++,G}function t6($,Z){return typeof Z==="function"?Z($):Z}function wq($,Z,G){var Y=f5();if(G!==void 0){var U=G(Z);if(T9){z1(!0);try{G(Z)}finally{z1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=jP.bind(null,A0,$),[Y.memoizedState,$]}function Y7($){var Z=U1();return Rq(Z,W1,$)}function Rq($,Z,G){var Y=$.queue;if(Y===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Y.lastRenderedReducer=G;var U=$.baseQueue,B=Y.pending;if(B!==null){if(U!==null){var W=U.next;U.next=B.next,B.next=W}Z.baseQueue!==U&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),Z.baseQueue=U=B,Y.pending=null}if(B=$.baseState,U===null)$.memoizedState=B;else{Z=U.next;var R=W=null,L=null,P=Z,k=!1;do{var f=P.lane&-536870913;if(f!==P.lane?(h0&f)===f:(H8&f)===f){var S=P.revertLane;if(S===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),f===F9&&(k=!0);else if((H8&S)===S){P=P.next,S===F9&&(k=!0);continue}else f={lane:0,revertLane:P.revertLane,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},L===null?(R=L=f,W=B):L=L.next=f,A0.lanes|=S,M2|=S;f=P.action,T9&&G(B,f),B=P.hasEagerState?P.eagerState:G(B,f)}else S={lane:f,revertLane:P.revertLane,gesture:P.gesture,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},L===null?(R=L=S,W=B):L=L.next=S,A0.lanes|=f,M2|=f;P=P.next}while(P!==null&&P!==Z);if(L===null?W=B:L.next=R,!u5(B,$.memoizedState)&&(a1=!0,k&&(G=h7,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=L,Y.lastRenderedState=B}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function r$($){var Z=U1(),G=Z.queue;if(G===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");G.lastRenderedReducer=$;var{dispatch:Y,pending:U}=G,B=Z.memoizedState;if(U!==null){G.pending=null;var W=U=U.next;do B=$(B,W.action),W=W.next;while(W!==U);u5(B,Z.memoizedState)||(a1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),G.lastRenderedState=B}return[B,Y]}function zq($,Z,G){var Y=A0,U=f5();if(o0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();p7||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),p7=!0)}else{if(B=Z(),p7||(G=Z(),u5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p7=!0)),w1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(h0&127)!==0||JH(Y,Z,B)}return U.memoizedState=B,G={value:B,getSnapshot:Z},U.queue=G,uJ(XH.bind(null,Y,G,$),[$]),Y.flags|=2048,U7(h6|d5,{destroy:void 0},GH.bind(null,Y,G,B,Z),null),B}function yJ($,Z,G){var Y=A0,U=U1(),B=o0;if(B){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");G=G()}else if(G=Z(),!p7){var W=Z();u5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p7=!0)}if(W=!u5((W1||U).memoizedState,G))U.memoizedState=G,a1=!0;U=U.queue;var R=XH.bind(null,Y,U,$);if(l5(2048,d5,R,[$]),U.getSnapshot!==Z||W||o1!==null&&o1.memoizedState.tag&h6){if(Y.flags|=2048,U7(h6|d5,{destroy:void 0},GH.bind(null,Y,U,G,Z),null),w1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(H8&127)!==0||JH(Y,Z,G)}return G}function JH($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=A0.updateQueue,Z===null?(Z=fJ(),A0.updateQueue=Z,Z.stores=[$]):(G=Z.stores,G===null?Z.stores=[$]:G.push($))}function GH($,Z,G,Y){Z.value=G,Z.getSnapshot=Y,qH(Z)&&YH($)}function XH($,Z,G){return G(function(){qH(Z)&&(w4(2,"updateSyncExternalStore()",$),YH($))})}function qH($){var Z=$.getSnapshot;$=$.value;try{var G=Z();return!u5($,G)}catch(Y){return!0}}function YH($){var Z=A5($,2);Z!==null&&f1(Z,$,2)}function Tq($){var Z=f5();if(typeof $==="function"){var G=$;if($=G(),T9){z1(!0);try{G()}finally{z1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t6,lastRenderedState:$},Z}function Lq($){$=Tq($);var Z=$.queue,G=VH.bind(null,A0,Z);return Z.dispatch=G,[$.memoizedState,G]}function _q($){var Z=f5();Z.memoizedState=Z.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=G,Z=fq.bind(null,A0,!0,G),G.dispatch=Z,[$,Z]}function NH($,Z){var G=U1();return UH(G,W1,$,Z)}function UH($,Z,G,Y){return $.baseState=G,Rq($,W1,typeof Y==="function"?Y:t6)}function KH($,Z){var G=U1();if(W1!==null)return UH(G,W1,$,Z);return G.baseState=$,[$,G.queue.dispatch]}function VP($,Z,G,Y,U){if(lJ($))throw Error("Cannot update form state while rendering.");if($=Z.action,$!==null){var B={payload:U,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){B.listeners.push(W)}};x.T!==null?G(!0):B.isTransition=!1,Y(B),G=Z.pending,G===null?(B.next=Z.pending=B,BH(Z,B)):(B.next=G.next,Z.pending=G.next=B)}}function BH($,Z){var{action:G,payload:Y}=Z,U=$.state;if(Z.isTransition){var B=x.T,W={};W._updatedFibers=new Set,x.T=W;try{var R=G(U,Y),L=x.S;L!==null&&L(W,R),HH($,Z,R)}catch(P){Pq($,Z,P)}finally{B!==null&&W.types!==null&&(B.types!==null&&B.types!==W.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),B.types=W.types),x.T=B,B===null&&W._updatedFibers&&($=W._updatedFibers.size,W._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{W=G(U,Y),HH($,Z,W)}catch(P){Pq($,Z,P)}}function HH($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(cJ,cJ),G.then(function(Y){MH($,Z,Y)},function(Y){return Pq($,Z,Y)}),Z.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):MH($,Z,G)}function MH($,Z,G){Z.status="fulfilled",Z.value=G,FH(Z),$.state=G,Z=$.pending,Z!==null&&(G=Z.next,G===Z?$.pending=null:(G=G.next,Z.next=G,BH($,G)))}function Pq($,Z,G){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=G,FH(Z),Z=Z.next;while(Z!==Y)}$.action=null}function FH($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function WH($,Z){return Z}function N7($,Z){if(o0){var G=w1.formState;if(G!==null){$:{var Y=A0;if(o0){if(I1){Z:{var U=I1;for(var B=f6;U.nodeType!==8;){if(!B){U=null;break Z}if(U=w6(U.nextSibling),U===null){U=null;break Z}}B=U.data,U=B===eN||B===ew?U:null}if(U){I1=w6(U.nextSibling),Y=U.data===eN;break $}}u8(Y)}Y=!1}Y&&(Z=G[0])}}return G=f5(),G.memoizedState=G.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:WH,lastRenderedState:Z},G.queue=Y,G=VH.bind(null,A0,Y),Y.dispatch=G,Y=Tq(!1),B=fq.bind(null,A0,!1,Y.queue),Y=f5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,G=VP.bind(null,A0,U,B,G),U.dispatch=G,Y.memoizedState=$,[Z,G,!1]}function gJ($){var Z=U1();return wH(Z,W1,$)}function wH($,Z,G){if(Z=Rq($,Z,WH)[0],$=Y7(t6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=l$(Z)}catch(W){if(W===u7)throw xG;throw W}else Y=Z;Z=U1();var U=Z.queue,B=U.dispatch;return G!==Z.memoizedState&&(A0.flags|=2048,U7(h6|d5,{destroy:void 0},AP.bind(null,U,G),null)),[Y,B,$]}function AP($,Z){$.action=Z}function hJ($){var Z=U1(),G=W1;if(G!==null)return wH(Z,G,$);U1(),Z=Z.memoizedState,G=U1();var Y=G.queue.dispatch;return G.memoizedState=$,[Z,Y,!1]}function U7($,Z,G,Y){return $={tag:$,create:G,deps:Y,inst:Z,next:null},Z=A0.updateQueue,Z===null&&(Z=fJ(),A0.updateQueue=Z),G=Z.lastEffect,G===null?Z.lastEffect=$.next=$:(Y=G.next,G.next=$,$.next=Y,Z.lastEffect=$),$}function Cq($){var Z=f5();return $={current:$},Z.memoizedState=$}function J9($,Z,G,Y){var U=f5();A0.flags|=$,U.memoizedState=U7(h6|Z,{destroy:void 0},G,Y===void 0?null:Y)}function l5($,Z,G,Y){var U=U1();Y=Y===void 0?null:Y;var B=U.memoizedState.inst;W1!==null&&Y!==null&&Kq(Y,W1.memoizedState.deps)?U.memoizedState=U7(Z,B,G,Y):(A0.flags|=$,U.memoizedState=U7(h6|Z,B,G,Y))}function uJ($,Z){(A0.mode&Q4)!==O0?J9(276826112,d5,$,Z):J9(8390656,d5,$,Z)}function EP($){A0.flags|=4;var Z=A0.updateQueue;if(Z===null)Z=fJ(),A0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function Iq($){var Z=f5(),G={impl:$};return Z.memoizedState=G,function(){if((e0&G5)!==F5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function xJ($){var Z=U1().memoizedState;return EP({ref:Z,nextImpl:$}),function(){if((e0&G5)!==F5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function Oq($,Z){var G=4194308;return(A0.mode&Q4)!==O0&&(G|=134217728),J9(G,P6,$,Z)}function RH($,Z){if(typeof Z==="function"){$=$();var G=Z($);return function(){typeof G==="function"?G():Z(null)}}if(Z!==null&&Z!==void 0)return Z.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(Z).join(", ")+"}"),$=$(),Z.current=$,function(){Z.current=null}}function Vq($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null;var Y=4194308;(A0.mode&Q4)!==O0&&(Y|=134217728),J9(Y,P6,RH.bind(null,Z,$),G)}function mJ($,Z,G){typeof Z!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",Z!==null?typeof Z:"null"),G=G!==null&&G!==void 0?G.concat([$]):null,l5(4,P6,RH.bind(null,Z,$),G)}function Aq($,Z){return f5().memoizedState=[$,Z===void 0?null:Z],$}function dJ($,Z){var G=U1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&Kq(Z,Y[1]))return Y[0];return G.memoizedState=[$,Z],$}function Eq($,Z){var G=f5();Z=Z===void 0?null:Z;var Y=$();if(T9){z1(!0);try{$()}finally{z1(!1)}}return G.memoizedState=[Y,Z],Y}function pJ($,Z){var G=U1();Z=Z===void 0?null:Z;var Y=G.memoizedState;if(Z!==null&&Kq(Z,Y[1]))return Y[0];if(Y=$(),T9){z1(!0);try{$()}finally{z1(!1)}}return G.memoizedState=[Y,Z],Y}function Sq($,Z){var G=f5();return jq(G,$,Z)}function zH($,Z){var G=U1();return LH(G,W1.memoizedState,$,Z)}function TH($,Z){var G=U1();return W1===null?jq(G,$,Z):LH(G,W1.memoizedState,$,Z)}function jq($,Z,G){if(G===void 0||(H8&1073741824)!==0&&(h0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=_M(),A0.lanes|=$,M2|=$,G}function LH($,Z,G,Y){if(u5(G,Z))return G;if(m7.current!==null)return $=jq($,G,Y),u5($,Z)||(a1=!0),$;if((H8&42)===0||(H8&1073741824)!==0&&(h0&261930)===0)return a1=!0,$.memoizedState=G;return $=_M(),A0.lanes|=$,M2|=$,Z}function cJ(){x.asyncTransitions--}function _H($,Z,G,Y,U){var B=Y1.p;Y1.p=B!==0&&B<Z4?B:Z4;var W=x.T,R={};R._updatedFibers=new Set,x.T=R,fq($,!1,Z,G);try{var L=U(),P=x.S;if(P!==null&&P(R,L),L!==null&&typeof L==="object"&&typeof L.then==="function"){x.asyncTransitions++,L.then(cJ,cJ);var k=CP(L,Y);s$($,Z,k,W6($))}else s$($,Z,Y,W6($))}catch(f){s$($,Z,{then:function(){},status:"rejected",reason:f},W6($))}finally{Y1.p=B,W!==null&&R.types!==null&&(W.types!==null&&W.types!==R.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),W.types=R.types),x.T=W,W===null&&R._updatedFibers&&($=R._updatedFibers.size,R._updatedFibers.clear(),10<$&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Dq($,Z,G,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=PH($).queue;_P($),_H($,U,Z,j9,G===null?w:function(){return CH($),G(Y)})}function PH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:j9,baseState:j9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t6,lastRenderedState:j9},next:null};var G={};return Z.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:t6,lastRenderedState:G},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function CH($){x.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var Z=PH($);Z.next===null&&(Z=$.alternate.memoizedState),s$($,Z.next.queue,{},W6($))}function vq(){var $=Tq(!1);return $=_H.bind(null,A0,$.queue,!0,!1),f5().memoizedState=$,[!1,$]}function IH(){var $=Y7(t6)[0],Z=U1().memoizedState;return[typeof $==="boolean"?$:l$($),Z]}function OH(){var $=r$(t6)[0],Z=U1().memoizedState;return[typeof $==="boolean"?$:l$($),Z]}function G9(){return S1(QQ)}function bq(){var $=f5(),Z=w1.identifierPrefix;if(o0){var G=Y8,Y=q8;G=(Y&~(1<<32-y5(Y)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=lG++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=YO++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function kq(){return f5().memoizedState=SP.bind(null,A0)}function SP($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var Y=W6(G),U=d8(Y),B=p8(G,U,Y);B!==null&&(w4(Y,"refresh()",$),f1(B,G,Y),d$(B,G,Y)),$=$q(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}G=G.return}}function jP($,Z,G){var Y=arguments;typeof Y[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Y=W6($);var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};lJ($)?AH(Z,U):(U=dX($,Z,U,Y),U!==null&&(w4(Y,"dispatch()",$),f1(U,$,Y),EH(U,Z,Y)))}function VH($,Z,G){var Y=arguments;typeof Y[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Y=W6($),s$($,Z,G,Y)&&w4(Y,"setState()",$)}function s$($,Z,G,Y){var U={lane:Y,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(lJ($))AH(Z,U);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var W=x.H;x.H=G4;try{var R=Z.lastRenderedState,L=B(R,G);if(U.hasEagerState=!0,U.eagerState=L,u5(L,R))return RJ($,Z,U,0),w1===null&&wJ(),!1}catch(P){}finally{x.H=W}}if(G=dX($,Z,U,Y),G!==null)return f1(G,$,Y),EH(G,Z,Y),!0}return!1}function fq($,Z,G,Y){if(x.T===null&&F9===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),Y={lane:2,revertLane:BY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},lJ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=dX($,G,Y,2),Z!==null&&(w4(2,"setOptimistic()",$),f1(Z,$,2))}function lJ($){var Z=$.alternate;return $===A0||Z!==null&&Z===A0}function AH($,Z){c7=cG=!0;var G=$.pending;G===null?Z.next=Z:(Z.next=G.next,G.next=Z),$.pending=Z}function EH($,Z,G){if((G&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,G|=Y,Z.lanes=G,c2($,G)}}function yq($){if($!==null&&typeof $!=="function"){var Z=String($);Ow.has(Z)||(Ow.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function gq($,Z,G,Y){var U=$.memoizedState,B=G(Y,U);if($.mode&S5){z1(!0);try{B=G(Y,U)}finally{z1(!1)}}B===void 0&&(Z=i(Z)||"Component",_w.has(Z)||(_w.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),U=B===null||B===void 0?U:c0({},U,B),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function SH($,Z,G,Y,U,B,W){var R=$.stateNode;if(typeof R.shouldComponentUpdate==="function"){if(G=R.shouldComponentUpdate(Y,B,W),$.mode&S5){z1(!0);try{G=R.shouldComponentUpdate(Y,B,W)}finally{z1(!1)}}return G===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",i(Z)||"Component"),G}return Z.prototype&&Z.prototype.isPureReactComponent?!f$(G,Y)||!f$(U,B):!0}function jH($,Z,G,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(G,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(G,Y),Z.state!==U&&($=d($)||"Component",ww.has($)||(ww.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),DN.enqueueReplaceState(Z,Z.state,null))}function X9($,Z){var G=Z;if("ref"in Z){G={};for(var Y in Z)Y!=="ref"&&(G[Y]=Z[Y])}if($=$.defaultProps){G===Z&&(G=c0({},G));for(var U in $)G[U]===void 0&&(G[U]=$[U])}return G}function DH($){NN($),console.warn(`%s
116
+
117
+ %s
118
+ `,l7?"An error occurred in the <"+l7+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function vH($){var Z=l7?"The above error occurred in the <"+l7+"> component.":"The above error occurred in one of your React components.",G="React will try to recreate this component tree from scratch using the error boundary you provided, "+((vN||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var Y=$.environmentName;$=[`%o
120
+
121
+ %s
122
+
123
+ %s
124
+ `,$,Z,G].slice(0),typeof $[0]==="string"?$.splice(0,1,YR+" "+$[0],NR,w3+Y+w3,UR):$.splice(0,0,YR,NR,w3+Y+w3,UR),$.unshift(console),Y=EO.apply(console.error,$),Y()}else console.error(`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,$,Z,G)}function bH($){NN($)}function rJ($,Z){try{l7=Z.source?d(Z.source):null,vN=null;var G=Z.value;if(x.actQueue!==null)x.thrownErrors.push(G);else{var Y=$.onUncaughtError;Y(G,{componentStack:Z.stack})}}catch(U){setTimeout(function(){throw U})}}function kH($,Z,G){try{l7=G.source?d(G.source):null,vN=d(Z);var Y=$.onCaughtError;Y(G.value,{componentStack:G.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function hq($,Z,G){return G=d8(G),G.tag=ON,G.payload={element:null},G.callback=function(){X0(Z.source,rJ,$,Z)},G}function uq($){return $=d8($),$.tag=ON,$}function xq($,Z,G,Y){var U=G.type.getDerivedStateFromError;if(typeof U==="function"){var B=Y.value;$.payload=function(){return U(B)},$.callback=function(){AB(G),X0(Y.source,kH,Z,G,Y)}}var W=G.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&($.callback=function(){AB(G),X0(Y.source,kH,Z,G,Y),typeof U!=="function"&&(W2===null?W2=new Set([this]):W2.add(this)),JO(this,Y),typeof U==="function"||(G.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",d(G)||"Unknown")})}function DP($,Z,G,Y,U){if(G.flags|=32768,b4&&ZZ($,U),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if(Z=G.alternate,Z!==null&&X7(Z,G,U,!0),o0&&(y4=!0),G=_6.current,G!==null){switch(G.tag){case 31:case 13:return g6===null?ZG():G.alternate===null&&b1===w8&&(b1=nG),G.flags&=-257,G.flags|=65536,G.lanes=U,Y===mG?G.flags|=16384:(Z=G.updateQueue,Z===null?G.updateQueue=new Set([Y]):Z.add(Y),YY($,Y,U)),!1;case 22:return G.flags|=65536,Y===mG?G.flags|=16384:(Z=G.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([Y])},G.updateQueue=Z):(G=Z.retryQueue,G===null?Z.retryQueue=new Set([Y]):G.add(Y)),YY($,Y,U)),!1}throw Error("Unexpected Suspense handler tag ("+G.tag+"). This is a bug in React.")}return YY($,Y,U),ZG(),!1}if(o0)return y4=!0,Z=_6.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=U,Y!==FN&&g$(B6(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),G))):(Y!==FN&&g$(B6(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),G)),$=$.current.alternate,$.flags|=65536,U&=-U,$.lanes|=U,Y=B6(Y,G),U=hq($.stateNode,Y,U),vJ($,U),b1!==B2&&(b1=L9)),!1;var B=B6(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),G);if(sZ===null?sZ=[B]:sZ.push(B),b1!==B2&&(b1=L9),Z===null)return!0;Y=B6(Y,G),G=Z;do{switch(G.tag){case 3:return G.flags|=65536,$=U&-U,G.lanes|=$,$=hq(G.stateNode,Y,$),vJ(G,$),!1;case 1:if(Z=G.type,B=G.stateNode,(G.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||B!==null&&typeof B.componentDidCatch==="function"&&(W2===null||!W2.has(B))))return G.flags|=65536,U&=-U,G.lanes|=U,U=uq(U),xq(U,$,G,Y),vJ(G,U),!1}G=G.return}while(G!==null);return!1}function w5($,Z,G,Y){Z.child=$===null?Xw(Z,null,G,Y):z9(Z,$.child,G,Y)}function fH($,Z,G,Y,U){G=G.render;var B=Z.ref;if("ref"in Y){var W={};for(var R in Y)R!=="ref"&&(W[R]=Y[R])}else W=Y;if($9(Z),Y=Bq($,Z,G,W,B,U),R=Mq(),$!==null&&!a1)return Fq($,Z,U),$8($,Z,U);return o0&&R&&nX(Z),Z.flags|=1,w5($,Z,Y,U),Z.child}function yH($,Z,G,Y,U){if($===null){var B=G.type;if(typeof B==="function"&&!cX(B)&&B.defaultProps===void 0&&G.compare===null)return G=a2(B),Z.tag=15,Z.type=G,dq(Z,B),gH($,Z,G,Y,U);return $=lX(G.type,null,Y,Z,Z.mode,U),$.ref=Z.ref,$.return=Z,Z.child=$}if(B=$.child,!nq($,U)){var W=B.memoizedProps;if(G=G.compare,G=G!==null?G:f$,G(W,Y)&&$.ref===Z.ref)return $8($,Z,U)}return Z.flags|=1,$=a4(B,Y),$.ref=Z.ref,$.return=Z,Z.child=$}function gH($,Z,G,Y,U){if($!==null){var B=$.memoizedProps;if(f$(B,Y)&&$.ref===Z.ref&&Z.type===$.type)if(a1=!1,Z.pendingProps=Y=B,nq($,U))($.flags&131072)!==0&&(a1=!0);else return Z.lanes=$.lanes,$8($,Z,U)}return mq($,Z,G,Y,U)}function hH($,Z,G,Y){var U=Y.children,B=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:PZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if((Z.flags&128)!==0){if(B=B!==null?B.baseLanes|G:G,$!==null){Y=Z.child=$.child;for(U=0;Y!==null;)U=U|Y.lanes|Y.childLanes,Y=Y.sibling;Y=U&~B}else Y=0,Z.child=null;return uH($,Z,B,G,Y)}if((G&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&VJ(Z,B!==null?B.cachePool:null),B!==null?$H(Z,B):Yq(Z),ZH(Z);else return Y=Z.lanes=536870912,uH($,Z,B!==null?B.baseLanes|G:G,G,Y)}else B!==null?(VJ(Z,B.cachePool),$H(Z,B),l8(Z),Z.memoizedState=null):($!==null&&VJ(Z,null),Yq(Z),l8(Z));return w5($,Z,U,G),Z.child}function n$($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:PZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function uH($,Z,G,Y,U){var B=Jq();return B=B===null?null:{parent:s1._currentValue,pool:B},Z.memoizedState={baseLanes:G,cachePool:B},$!==null&&VJ(Z,null),Yq(Z),ZH(Z),$!==null&&X7($,Z,Y,!0),Z.childLanes=U,null}function sJ($,Z){var G=Z.hidden;return G!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
+ - <Activity %s>
131
+ + <Activity %s>`,G===!0?"hidden":G===!1?"hidden={false}":"hidden={...}",G?'mode="hidden"':'mode="visible"'),Z=oJ({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function xH($,Z,G){return z9(Z,$.child,null,G),$=sJ(Z,Z.pendingProps),$.flags|=2,F6(Z),Z.memoizedState=null,$}function vP($,Z,G){var Y=Z.pendingProps,U=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(o0){if(Y.mode==="hidden")return $=sJ(Z,Y),Z.lanes=536870912,n$(null,$);if(Uq(Z),($=I1)?(G=BF($,f6),G=G!==null&&G.data===V9?G:null,G!==null&&(Y={dehydrated:G,treeContext:vB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=jB(G),Y.return=Z,Z.child=Y,T5=Z,I1=null)):G=null,G===null)throw LJ(Z,$),u8(Z);return Z.lanes=536870912,null}return sJ(Z,Y)}var B=$.memoizedState;if(B!==null){var W=B.dehydrated;if(Uq(Z),U)if(Z.flags&256)Z.flags&=-257,Z=xH($,Z,G);else if(Z.memoizedState!==null)Z.child=$.child,Z.flags|=128,Z=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(kB(),(G&536870912)!==0&&$G(Z),a1||X7($,Z,G,!1),U=(G&$.childLanes)!==0,a1||U){if(Y=w1,Y!==null&&(W=l2(Y,G),W!==0&&W!==B.retryLane))throw B.retryLane=W,A5($,W),f1(Y,$,W),bN;ZG(),Z=xH($,Z,G)}else $=B.treeContext,I1=w6(W.nextSibling),T5=Z,o0=!0,G2=null,y4=!1,L6=null,f6=!1,$!==null&&bB(Z,$),Z=sJ(Z,Y),Z.flags|=4096;return Z}return B=$.child,Y={mode:Y.mode,children:Y.children},(G&536870912)!==0&&(G&$.lanes)!==0&&$G(Z),$=a4(B,Y),$.ref=Z.ref,Z.child=$,$.return=Z,$}function nJ($,Z){var G=Z.ref;if(G===null)$!==null&&$.ref!==null&&(Z.flags|=4194816);else{if(typeof G!=="function"&&typeof G!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==G)Z.flags|=4194816}}function mq($,Z,G,Y,U){if(G.prototype&&typeof G.prototype.render==="function"){var B=i(G)||"Unknown";Vw[B]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",B,B),Vw[B]=!0)}if(Z.mode&S5&&J4.recordLegacyContextWarning(Z,null),$===null&&(dq(Z,Z.type),G.contextTypes&&(B=i(G)||"Unknown",Ew[B]||(Ew[B]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",B)))),$9(Z),G=Bq($,Z,G,Y,void 0,U),Y=Mq(),$!==null&&!a1)return Fq($,Z,U),$8($,Z,U);return o0&&Y&&nX(Z),Z.flags|=1,w5($,Z,G,U),Z.child}function mH($,Z,G,Y,U,B){if($9(Z),F8=-1,xZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,G=Hq(Z,Y,G,U),QH($,Z),Y=Mq(),$!==null&&!a1)return Fq($,Z,B),$8($,Z,B);return o0&&Y&&nX(Z),Z.flags|=1,w5($,Z,G,B),Z.child}function dH($,Z,G,Y,U){switch(H(Z)){case!1:var B=Z.stateNode,W=new Z.type(Z.memoizedProps,B.context).state;B.updater.enqueueSetState(B,W,null);break;case!0:Z.flags|=128,Z.flags|=65536,B=Error("Simulated error coming from DevTools");var R=U&-U;if(Z.lanes|=R,W=w1,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");R=uq(R),xq(R,W,Z,B6(B,Z)),vJ(Z,R)}if($9(Z),Z.stateNode===null){if(W=J2,B=G.contextType,"contextType"in G&&B!==null&&(B===void 0||B.$$typeof!==j4)&&!Iw.has(G)&&(Iw.add(G),R=B===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof B!=="object"?" However, it is set to a "+typeof B+".":B.$$typeof===kY?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(B).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",i(G)||"Component",R)),typeof B==="object"&&B!==null&&(W=S1(B)),B=new G(Y,W),Z.mode&S5){z1(!0);try{B=new G(Y,W)}finally{z1(!1)}}if(W=Z.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=DN,Z.stateNode=B,B._reactInternals=Z,B._reactInternalInstance=Ww,typeof G.getDerivedStateFromProps==="function"&&W===null&&(W=i(G)||"Component",Rw.has(W)||(Rw.add(W),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",W,B.state===null?"null":"undefined",W))),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"){var L=R=W=null;if(typeof B.componentWillMount==="function"&&B.componentWillMount.__suppressDeprecationWarning!==!0?W="componentWillMount":typeof B.UNSAFE_componentWillMount==="function"&&(W="UNSAFE_componentWillMount"),typeof B.componentWillReceiveProps==="function"&&B.componentWillReceiveProps.__suppressDeprecationWarning!==!0?R="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(R="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?L="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(L="UNSAFE_componentWillUpdate"),W!==null||R!==null||L!==null){B=i(G)||"Component";var P=typeof G.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Tw.has(B)||(Tw.add(B),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
+
133
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
+
135
+ The above lifecycles should be removed. Learn more about this warning here:
136
+ https://react.dev/link/unsafe-component-lifecycles`,B,P,W!==null?`
137
+ `+W:"",R!==null?`
138
+ `+R:"",L!==null?`
139
+ `+L:""))}}B=Z.stateNode,W=i(G)||"Component",B.render||(G.prototype&&typeof G.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",W):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",W)),!B.getInitialState||B.getInitialState.isReactClassApproved||B.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",W),B.getDefaultProps&&!B.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",W),B.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",W),G.childContextTypes&&!Cw.has(G)&&(Cw.add(G),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",W)),G.contextTypes&&!Pw.has(G)&&(Pw.add(G),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",W)),typeof B.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",W),G.prototype&&G.prototype.isPureReactComponent&&typeof B.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",i(G)||"A pure component"),typeof B.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",W),typeof B.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",W),typeof B.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",W),typeof B.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",W),R=B.props!==Y,B.props!==void 0&&R&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",W),B.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",W,W),typeof B.getSnapshotBeforeUpdate!=="function"||typeof B.componentDidUpdate==="function"||zw.has(G)||(zw.add(G),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",i(G))),typeof B.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof B.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",W),typeof G.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",W),(R=B.state)&&(typeof R!=="object"||Q5(R))&&console.error("%s.state: must be set to an object or null",W),typeof B.getChildContext==="function"&&typeof G.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",W),B=Z.stateNode,B.props=Y,B.state=Z.memoizedState,B.refs={},Xq(Z),W=G.contextType,B.context=typeof W==="object"&&W!==null?S1(W):J2,B.state===Y&&(W=i(G)||"Component",Lw.has(W)||(Lw.add(W),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",W))),Z.mode&S5&&J4.recordLegacyContextWarning(Z,B),J4.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,W=G.getDerivedStateFromProps,typeof W==="function"&&(gq(Z,G,W,Y),B.state=Z.memoizedState),typeof G.getDerivedStateFromProps==="function"||typeof B.getSnapshotBeforeUpdate==="function"||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(W=B.state,typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount(),W!==B.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(Z)||"Component"),DN.enqueueReplaceState(B,B.state,null)),c$(Z,Y,B,U),p$(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==O0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var k=Z.memoizedProps;R=X9(G,k),B.props=R;var f=B.context;L=G.contextType,W=J2,typeof L==="object"&&L!==null&&(W=S1(L)),P=G.getDerivedStateFromProps,L=typeof P==="function"||typeof B.getSnapshotBeforeUpdate==="function",k=Z.pendingProps!==k,L||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(k||f!==W)&&jH(Z,B,Y,W),K2=!1;var S=Z.memoizedState;B.state=S,c$(Z,Y,B,U),p$(),f=Z.memoizedState,k||S!==f||K2?(typeof P==="function"&&(gq(Z,G,P,Y),f=Z.memoizedState),(R=K2||SH(Z,G,R,Y,S,f,W))?(L||typeof B.UNSAFE_componentWillMount!=="function"&&typeof B.componentWillMount!=="function"||(typeof B.componentWillMount==="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount==="function"&&B.UNSAFE_componentWillMount()),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==O0&&(Z.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==O0&&(Z.flags|=134217728),Z.memoizedProps=Y,Z.memoizedState=f),B.props=Y,B.state=f,B.context=W,B=R):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&Q4)!==O0&&(Z.flags|=134217728),B=!1)}else{B=Z.stateNode,qq($,Z),W=Z.memoizedProps,L=X9(G,W),B.props=L,P=Z.pendingProps,S=B.context,f=G.contextType,R=J2,typeof f==="object"&&f!==null&&(R=S1(f)),k=G.getDerivedStateFromProps,(f=typeof k==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(W!==P||S!==R)&&jH(Z,B,Y,R),K2=!1,S=Z.memoizedState,B.state=S,c$(Z,Y,B,U),p$();var g=Z.memoizedState;W!==P||S!==g||K2||$!==null&&$.dependencies!==null&&PJ($.dependencies)?(typeof k==="function"&&(gq(Z,G,k,Y),g=Z.memoizedState),(L=K2||SH(Z,G,L,Y,S,g,R)||$!==null&&$.dependencies!==null&&PJ($.dependencies))?(f||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(Y,g,R),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(Y,g,R)),typeof B.componentDidUpdate==="function"&&(Z.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=Y,Z.memoizedState=g),B.props=Y,B.state=g,B.context=R,B=L):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),B=!1)}if(R=B,nJ($,Z),W=(Z.flags&128)!==0,R||W){if(R=Z.stateNode,i9(Z),W&&typeof G.getDerivedStateFromError!=="function")G=null,x5=-1;else if(G=lW(R),Z.mode&S5){z1(!0);try{lW(R)}finally{z1(!1)}}Z.flags|=1,$!==null&&W?(Z.child=z9(Z,$.child,null,U),Z.child=z9(Z,null,G,U)):w5($,Z,G,U),Z.memoizedState=R.state,$=Z.child}else $=$8($,Z,U);return U=Z.stateNode,B&&U.props!==Y&&(r7||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",d(Z)||"a component"),r7=!0),$}function pH($,Z,G,Y){return e2(),Z.flags|=256,w5($,Z,G,Y),Z.child}function dq($,Z){Z&&Z.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
+ %s.childContextTypes = ...`,Z.displayName||Z.name||"Component"),typeof Z.getDerivedStateFromProps==="function"&&($=i(Z)||"Unknown",Sw[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),Sw[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",Aw[Z]||(console.error("%s: Function components do not support contextType.",Z),Aw[Z]=!0))}function pq($){return{baseLanes:$,cachePool:mB()}}function cq($,Z,G){return $=$!==null?$.childLanes&~G:0,Z&&($|=a5),$}function cH($,Z,G){var Y,U=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,W=(Z.flags&128)!==0;if((Y=W)||(Y=$!==null&&$.memoizedState===null?!1:(p1.current&hZ)!==0),Y&&(B=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(o0){if(B?c8(Z):l8(Z),($=I1)?(G=BF($,f6),G=G!==null&&G.data!==V9?G:null,G!==null&&(Y={dehydrated:G,treeContext:vB(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=jB(G),Y.return=Z,Z.child=Y,T5=Z,I1=null)):G=null,G===null)throw LJ(Z,$),u8(Z);return CY(G)?Z.lanes=32:Z.lanes=536870912,null}var R=U.children;if(U=U.fallback,B){l8(Z);var L=Z.mode;return R=oJ({mode:"hidden",children:R},L),U=i2(U,L,G,null),R.return=Z,U.return=Z,R.sibling=U,Z.child=R,U=Z.child,U.memoizedState=pq(G),U.childLanes=cq($,Y,G),Z.memoizedState=kN,n$(null,U)}return c8(Z),lq(Z,R)}var P=$.memoizedState;if(P!==null){var k=P.dehydrated;if(k!==null){if(W)Z.flags&256?(c8(Z),Z.flags&=-257,Z=rq($,Z,G)):Z.memoizedState!==null?(l8(Z),Z.child=$.child,Z.flags|=128,Z=null):(l8(Z),R=U.fallback,L=Z.mode,U=oJ({mode:"visible",children:U.children},L),R=i2(R,L,G,null),R.flags|=2,U.return=Z,R.return=Z,U.sibling=R,Z.child=U,z9(Z,$.child,null,G),U=Z.child,U.memoizedState=pq(G),U.childLanes=cq($,Y,G),Z.memoizedState=kN,Z=n$(null,U));else if(c8(Z),kB(),(G&536870912)!==0&&$G(Z),CY(k)){if(Y=k.nextSibling&&k.nextSibling.dataset,Y){R=Y.dgst;var f=Y.msg;L=Y.stck;var S=Y.cstck}B=f,Y=R,U=L,k=S,R=B,L=k,R=R?Error(R):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),R.stack=U||"",R.digest=Y,Y=L===void 0?null:L,U={value:R,source:null,stack:Y},typeof Y==="string"&&MN.set(R,U),g$(U),Z=rq($,Z,G)}else if(a1||X7($,Z,G,!1),Y=(G&$.childLanes)!==0,a1||Y){if(Y=w1,Y!==null&&(U=l2(Y,G),U!==0&&U!==P.retryLane))throw P.retryLane=U,A5($,U),f1(Y,$,U),bN;PY(k)||ZG(),Z=rq($,Z,G)}else PY(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=P.treeContext,I1=w6(k.nextSibling),T5=Z,o0=!0,G2=null,y4=!1,L6=null,f6=!1,$!==null&&bB(Z,$),Z=lq(Z,U.children),Z.flags|=4096);return Z}}if(B)return l8(Z),R=U.fallback,L=Z.mode,S=$.child,k=S.sibling,U=a4(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,k!==null?R=a4(k,R):(R=i2(R,L,G,null),R.flags|=2),R.return=Z,U.return=Z,U.sibling=R,Z.child=U,n$(null,U),U=Z.child,R=$.child.memoizedState,R===null?R=pq(G):(L=R.cachePool,L!==null?(S=s1._currentValue,L=L.parent!==S?{parent:S,pool:S}:L):L=mB(),R={baseLanes:R.baseLanes|G,cachePool:L}),U.memoizedState=R,U.childLanes=cq($,Y,G),Z.memoizedState=kN,n$($.child,U);return P!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&$G(Z),c8(Z),G=$.child,$=G.sibling,G=a4(G,{mode:"visible",children:U.children}),G.return=Z,G.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=G,Z.memoizedState=null,G}function lq($,Z){return Z=oJ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function oJ($,Z){return $=_(22,$,null,Z),$.lanes=0,$}function rq($,Z,G){return z9(Z,$.child,null,G),$=lq(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function lH($,Z,G){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),tX($.return,Z,G)}function sq($,Z,G,Y,U,B){var W=$.memoizedState;W===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:G,tailMode:U,treeForkCount:B}:(W.isBackwards=Z,W.rendering=null,W.renderingStartTime=0,W.last=Y,W.tail=G,W.tailMode=U,W.treeForkCount=B)}function rH($,Z,G){var Y=Z.pendingProps,U=Y.revealOrder,B=Y.tail,W=Y.children,R=p1.current;if((Y=(R&hZ)!==0)?(R=R&d7|hZ,Z.flags|=128):R&=d7,C0(p1,R,Z),R=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!jw[R])if(jw[R]=!0,U==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(U==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof U==="string")switch(U.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',U,U.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',U,U.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',U)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',U);if(R=B==null?"null":B,!sG[R])if(B==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")sG[R]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else B!=="visible"&&B!=="collapsed"&&B!=="hidden"?(sG[R]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',B)):U!=="forwards"&&U!=="backwards"&&U!=="unstable_legacy-backwards"&&(sG[R]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',B));$:if((U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")&&W!==void 0&&W!==null&&W!==!1)if(Q5(W)){for(R=0;R<W.length;R++)if(!iB(W[R],R))break $}else if(R=t(W),typeof R==="function"){if(R=R.call(W))for(var L=R.next(),P=0;!L.done;L=R.next()){if(!iB(L.value,P))break $;P++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',U);if(w5($,Z,W,G),o0?(h8(),W=CZ):W=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&lH($,G,Z);else if($.tag===19)lH($,G,Z);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===Z)break $;for(;$.sibling===null;){if($.return===null||$.return===Z)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(U){case"forwards":G=Z.child;for(U=null;G!==null;)$=G.alternate,$!==null&&bJ($)===null&&(U=G),G=G.sibling;G=U,G===null?(U=Z.child,Z.child=null):(U=G.sibling,G.sibling=null),sq(Z,!1,U,G,B,W);break;case"backwards":case"unstable_legacy-backwards":G=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&bJ($)===null){Z.child=U;break}$=U.sibling,U.sibling=G,G=U,U=$}sq(Z,!0,G,null,B,W);break;case"together":sq(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function $8($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),x5=-1,M2|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(X7($,Z,G,!1),(G&Z.childLanes)===0)return null}else return null;if($!==null&&Z.child!==$.child)throw Error("Resuming work not yet implemented.");if(Z.child!==null){$=Z.child,G=a4($,$.pendingProps),Z.child=G;for(G.return=Z;$.sibling!==null;)$=$.sibling,G=G.sibling=a4($,$.pendingProps),G.return=Z;G.sibling=null}return Z.child}function nq($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&PJ($)?!0:!1}function bP($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),x8(Z,s1,$.memoizedState.cache),e2();break;case 27:case 5:n0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:x8(Z,Z.type,Z.memoizedProps.value);break;case 12:(G&Z.childLanes)!==0&&(Z.flags|=4),Z.flags|=2048;var Y=Z.stateNode;Y.effectDuration=-0,Y.passiveEffectDuration=-0;break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,Uq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return c8(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return cH($,Z,G);return c8(Z),$=$8($,Z,G),$!==null?$.sibling:null}c8(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(G&Z.childLanes)!==0,Y||(X7($,Z,G,!1),Y=(G&Z.childLanes)!==0),U){if(Y)return rH($,Z,G);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),C0(p1,p1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,hH($,Z,G,Z.pendingProps);case 24:x8(Z,s1,$.memoizedState.cache)}return $8($,Z,G)}function oq($,Z,G){if(Z._debugNeedsRemount&&$!==null){G=lX(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),G._debugStack=Z._debugStack,G._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,G.index=Z.index,G.sibling=Z.sibling,G.return=Z.return,G.ref=Z.ref,G._debugInfo=Z._debugInfo,Z===Y.child)Y.child=G;else{var U=Y.child;if(U===null)throw Error("Expected parent to have a child.");for(;U.sibling!==Z;)if(U=U.sibling,U===null)throw Error("Expected to find the previous sibling.");U.sibling=G}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),G.flags|=2,G}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)a1=!0;else{if(!nq($,G)&&(Z.flags&128)===0)return a1=!1,bP($,Z,G);a1=($.flags&131072)!==0?!0:!1}else{if(a1=!1,Y=o0)h8(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,h8(),DB(Z,CZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=m8(Z.elementType),Z.type=$,typeof $==="function")cX($)?(Y=X9($,Y),Z.tag=1,Z.type=$=a2($),Z=dH(null,Z,$,Y,G)):(Z.tag=0,dq(Z,$),Z.type=$=a2($),Z=mq(null,Z,$,Y,G));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===KZ){Z.tag=11,Z.type=$=pX($),Z=fH(null,Z,$,Y,G);break $}else if(U===WG){Z.tag=14,Z=yH(null,Z,$,Y,G);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===R6&&(Z=" Did you wrap a component in React.lazy() more than once?"),G=i($)||$,Error("Element type is invalid. Received a promise that resolves to: "+G+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return mq($,Z,Z.type,Z.pendingProps,G);case 1:return Y=Z.type,U=X9(Y,Z.pendingProps),dH($,Z,Y,U,G);case 3:$:{if(l(Z,Z.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");Y=Z.pendingProps;var B=Z.memoizedState;U=B.element,qq($,Z),c$(Z,Y,null,G);var W=Z.memoizedState;if(Y=W.cache,x8(Z,s1,Y),Y!==B.cache&&eX(Z,[s1],G,!0),p$(),Y=W.element,B.isDehydrated)if(B={element:Y,isDehydrated:!1,cache:W.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=pH($,Z,Y,G);break $}else if(Y!==U){U=B6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),g$(U),Z=pH($,Z,Y,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}I1=w6($.firstChild),T5=Z,o0=!0,G2=null,y4=!1,L6=null,f6=!0,G=Xw(Z,null,Y,G);for(Z.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(e2(),Y===U){Z=$8($,Z,G);break $}w5($,Z,Y,G)}Z=Z.child}return Z;case 26:return nJ($,Z),$===null?(G=RF(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:o0||(G=Z.type,$=Z.pendingProps,Y=v0(i8.current),Y=XG(Y).createElement(G),Y[z5]=Z,Y[g5]=$,R5(Y,G,$),T0(Y),Z.stateNode=Y):Z.memoizedState=RF(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return n0(Z),$===null&&o0&&(Y=v0(i8.current),U=M0(),Y=Z.stateNode=WF(Z.type,Z.pendingProps,Y,U,!1),y4||(U=JF(Y,Z.type,Z.pendingProps,U),U!==null&&(t2(Z,0).serverProps=U)),T5=Z,f6=!0,U=I1,o8(Z.type)?(JU=U,I1=w6(Y.firstChild)):I1=U),w5($,Z,Z.pendingProps.children,G),nJ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&o0&&(B=M0(),Y=fX(Z.type,B.ancestorInfo),U=I1,(W=!U)||(W=_C(U,Z.type,Z.pendingProps,f6),W!==null?(Z.stateNode=W,y4||(B=JF(W,Z.type,Z.pendingProps,B),B!==null&&(t2(Z,0).serverProps=B)),T5=Z,I1=w6(W.firstChild),f6=!1,B=!0):B=!1,W=!B),W&&(Y&&LJ(Z,U),u8(Z))),n0(Z),U=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,Y=B.children,LY(U,B)?Y=null:W!==null&&LY(U,W)&&(Z.flags|=32),Z.memoizedState!==null&&(U=Bq($,Z,OP,null,null,G),QQ._currentValue=U),nJ($,Z),w5($,Z,Y,G),Z.child;case 6:return $===null&&o0&&(G=Z.pendingProps,$=M0(),Y=$.ancestorInfo.current,G=Y!=null?KJ(G,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=I1,(Y=!$)||(Y=PC($,Z.pendingProps,f6),Y!==null?(Z.stateNode=Y,T5=Z,I1=null,Y=!0):Y=!1,Y=!Y),Y&&(G&&LJ(Z,$),u8(Z))),null;case 13:return cH($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=z9(Z,null,Y,G):w5($,Z,Y,G),Z.child;case 11:return fH($,Z,Z.type,Z.pendingProps,G);case 7:return w5($,Z,Z.pendingProps,G),Z.child;case 8:return w5($,Z,Z.pendingProps.children,G),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,Y=Z.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,w5($,Z,Z.pendingProps.children,G),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,B=U.value,"value"in U||Dw||(Dw=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),x8(Z,Y,B),w5($,Z,U.children,G),Z.child;case 9:return U=Z.type._context,Y=Z.pendingProps.children,typeof Y!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),$9(Z),U=S1(U),Y=_N(Y,U,void 0),Z.flags|=1,w5($,Z,Y,G),Z.child;case 14:return yH($,Z,Z.type,Z.pendingProps,G);case 15:return gH($,Z,Z.type,Z.pendingProps,G);case 19:return rH($,Z,G);case 31:return vP($,Z,G);case 22:return hH($,Z,G,Z.pendingProps);case 24:return $9(Z),Y=S1(s1),$===null?(U=Jq(),U===null&&(U=w1,B=$q(),U.pooledCache=B,Z9(B),B!==null&&(U.pooledCacheLanes|=G),U=B),Z.memoizedState={parent:Y,cache:U},Xq(Z),x8(Z,s1,U)):(($.lanes&G)!==0&&(qq($,Z),c$(Z,null,null,G),p$()),U=$.memoizedState,B=Z.memoizedState,U.parent!==Y?(U={parent:Y,cache:Y},Z.memoizedState=U,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=U),x8(Z,s1,Y)):(Y=B.cache,x8(Z,s1,Y),Y!==U.cache&&eX(Z,[s1],G,!0))),w5($,Z,Z.pendingProps.children,G),Z.child;case 29:throw Z.pendingProps}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Z8($){$.flags|=4}function aq($,Z,G,Y,U){if(Z=($.mode&eI)!==O0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(OM())$.flags|=8192;else throw R9=mG,CN}else $.flags&=-16777217}function sH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&x6)!==S9)$.flags&=-16777217;else if($.flags|=16777216,!PF(Z))if(OM())$.flags|=8192;else throw R9=mG,CN}function aJ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?e9():536870912,$.lanes|=Z,C9|=Z)}function o$($,Z){if(!o0)switch($.tailMode){case"hidden":Z=$.tail;for(var G=null;Z!==null;)Z.alternate!==null&&(G=Z),Z=Z.sibling;G===null?$.tail=null:G.sibling=null;break;case"collapsed":G=$.tail;for(var Y=null;G!==null;)G.alternate!==null&&(Y=G),G=G.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function T1($){var Z=$.alternate!==null&&$.alternate.child===$.child,G=0,Y=0;if(Z)if(($.mode&y0)!==O0){for(var{selfBaseDuration:U,child:B}=$;B!==null;)G|=B.lanes|B.childLanes,Y|=B.subtreeFlags&65011712,Y|=B.flags&65011712,U+=B.treeBaseDuration,B=B.sibling;$.treeBaseDuration=U}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&y0)!==O0){U=$.actualDuration,B=$.selfBaseDuration;for(var W=$.child;W!==null;)G|=W.lanes|W.childLanes,Y|=W.subtreeFlags,Y|=W.flags,U+=W.actualDuration,B+=W.treeBaseDuration,W=W.sibling;$.actualDuration=U,$.treeBaseDuration=B}else for(U=$.child;U!==null;)G|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=G,Z}function kP($,Z,G){var Y=Z.pendingProps;switch(oX(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return T1(Z),null;case 1:return T1(Z),null;case 3:if(G=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),t4(s1,Z),q0(Z),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)G7(Z)?(iX(),Z8(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,aX());return T1(Z),null;case 26:var{type:U,memoizedState:B}=Z;return $===null?(Z8(Z),B!==null?(T1(Z),sH(Z,B)):(T1(Z),aq(Z,U,null,Y,G))):B?B!==$.memoizedState?(Z8(Z),T1(Z),sH(Z,B)):(T1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&Z8(Z),T1(Z),aq(Z,U,$,Y,G)),null;case 27:if(m0(Z),G=v0(i8.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(Z);else{if(!Y){if(Z.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return T1(Z),null}$=M0(),G7(Z)?fB(Z,$):($=WF(U,Y,G,$,!0),Z.stateNode=$,Z8(Z))}return T1(Z),null;case 5:if(m0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(Z);else{if(!Y){if(Z.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return T1(Z),null}var W=M0();if(G7(Z))fB(Z,W);else{switch(B=v0(i8.current),fX(U,W.ancestorInfo),W=W.context,B=XG(B),W){case $$:B=B.createElementNS(I7,U);break;case M3:B=B.createElementNS(PG,U);break;default:switch(U){case"svg":B=B.createElementNS(I7,U);break;case"math":B=B.createElementNS(PG,U);break;case"script":B=B.createElement("div"),B.innerHTML="<script></script>",B=B.removeChild(B.firstChild);break;case"select":B=typeof Y.is==="string"?B.createElement("select",{is:Y.is}):B.createElement("select"),Y.multiple?B.multiple=!0:Y.size&&(B.size=Y.size);break;default:B=typeof Y.is==="string"?B.createElement(U,{is:Y.is}):B.createElement(U),U.indexOf("-")===-1&&(U!==U.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",U),Object.prototype.toString.call(B)!=="[object HTMLUnknownElement]"||$4.call(ZR,U)||(ZR[U]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",U)))}}B[z5]=Z,B[g5]=Y;$:for(W=Z.child;W!==null;){if(W.tag===5||W.tag===6)B.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===Z)break $;for(;W.sibling===null;){if(W.return===null||W.return===Z)break $;W=W.return}W.sibling.return=W.return,W=W.sibling}Z.stateNode=B;$:switch(R5(B,U,Y),U){case"button":case"input":case"select":case"textarea":Y=!!Y.autoFocus;break $;case"img":Y=!0;break $;default:Y=!1}Y&&Z8(Z)}}return T1(Z),aq(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,G),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&Z8(Z);else{if(typeof Y!=="string"&&Z.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if($=v0(i8.current),G=M0(),G7(Z)){if($=Z.stateNode,G=Z.memoizedProps,U=!y4,Y=null,B=T5,B!==null)switch(B.tag){case 3:U&&(U=MF($,G,Y),U!==null&&(t2(Z,0).serverProps=U));break;case 27:case 5:Y=B.memoizedProps,U&&(U=MF($,G,Y),U!==null&&(t2(Z,0).serverProps=U))}$[z5]=Z,$=$.nodeValue===G||Y!==null&&Y.suppressHydrationWarning===!0||tM($.nodeValue,G)?!0:!1,$||u8(Z,!0)}else U=G.ancestorInfo.current,U!=null&&KJ(Y,U.tag,G.ancestorInfo.implicitRootScope),$=XG($).createTextNode(Y),$[z5]=Z,Z.stateNode=$}return T1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=G7(Z),G!==null){if($===null){if(!Y)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if($=Z.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");$[z5]=Z,T1(Z),(Z.mode&y0)!==O0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else iX(),e2(),(Z.flags&128)===0&&(G=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&y0)!==O0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=aX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Z.flags&256)return F6(Z),Z;return F6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return T1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,B=G7(Z),U!==null&&U.dehydrated!==null){if($===null){if(!B)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(B=Z.memoizedState,B=B!==null?B.dehydrated:null,!B)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");B[z5]=Z,T1(Z),(Z.mode&y0)!==O0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else iX(),e2(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,T1(Z),(Z.mode&y0)!==O0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=aX(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return F6(Z),Z;return F6(Z),null}}if(F6(Z),(Z.flags&128)!==0)return Z.lanes=G,(Z.mode&y0)!==O0&&x$(Z),Z;return G=Y!==null,$=$!==null&&$.memoizedState!==null,G&&(Y=Z.child,U=null,Y.alternate!==null&&Y.alternate.memoizedState!==null&&Y.alternate.memoizedState.cachePool!==null&&(U=Y.alternate.memoizedState.cachePool.pool),B=null,Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(B=Y.memoizedState.cachePool.pool),B!==U&&(Y.flags|=2048)),G!==$&&G&&(Z.child.flags|=8192),aJ(Z,Z.updateQueue),T1(Z),(Z.mode&y0)!==O0&&G&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return q0(Z),$===null&&MY(Z.stateNode.containerInfo),T1(Z),null;case 10:return t4(Z.type,Z),T1(Z),null;case 19:if(_0(p1,Z),Y=Z.memoizedState,Y===null)return T1(Z),null;if(U=(Z.flags&128)!==0,B=Y.rendering,B===null)if(U)o$(Y,!1);else{if(b1!==w8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=bJ($),B!==null){Z.flags|=128,o$(Y,!1),$=B.updateQueue,Z.updateQueue=$,aJ(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)SB(G,$),G=G.sibling;return C0(p1,p1.current&d7|hZ,Z),o0&&i4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&B5()>$3&&(Z.flags|=128,U=!0,o$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=bJ(B),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,aJ(Z,$),o$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!B.alternate&&!o0)return T1(Z),null}else 2*B5()-Y.renderingStartTime>$3&&G!==536870912&&(Z.flags|=128,U=!0,o$(Y,!1),Z.lanes=4194304);Y.isBackwards?(B.sibling=Z.child,Z.child=B):($=Y.last,$!==null?$.sibling=B:Z.child=B,Y.last=B)}if(Y.tail!==null)return $=Y.tail,Y.rendering=$,Y.tail=$.sibling,Y.renderingStartTime=B5(),$.sibling=null,G=p1.current,G=U?G&d7|hZ:G&d7,C0(p1,G,Z),o0&&i4(Z,Y.treeForkCount),$;return T1(Z),null;case 22:case 23:return F6(Z),Nq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(G&536870912)!==0&&(Z.flags&128)===0&&(T1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):T1(Z),G=Z.updateQueue,G!==null&&aJ(Z,G.retryQueue),G=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==G&&(Z.flags|=2048),$!==null&&_0(W9,Z),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Z.memoizedState.cache!==G&&(Z.flags|=2048),t4(s1,Z),T1(Z),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+Z.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function fP($,Z){switch(oX(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&y0)!==O0&&x$(Z),Z):null;case 3:return t4(s1,Z),q0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return m0(Z),null;case 31:if(Z.memoizedState!==null){if(F6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");e2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&y0)!==O0&&x$(Z),Z):null;case 13:if(F6(Z),$=Z.memoizedState,$!==null&&$.dehydrated!==null){if(Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");e2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&y0)!==O0&&x$(Z),Z):null;case 19:return _0(p1,Z),null;case 4:return q0(Z),null;case 10:return t4(Z.type,Z),null;case 22:case 23:return F6(Z),Nq(Z),$!==null&&_0(W9,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&y0)!==O0&&x$(Z),Z):null;case 24:return t4(s1,Z),null;case 25:return null;default:return null}}function nH($,Z){switch(oX(Z),Z.tag){case 3:t4(s1,Z),q0(Z);break;case 26:case 27:case 5:m0(Z);break;case 4:q0(Z);break;case 31:Z.memoizedState!==null&&F6(Z);break;case 13:F6(Z);break;case 19:_0(p1,Z);break;case 10:t4(Z.type,Z);break;case 22:case 23:F6(Z),Nq(Z),$!==null&&_0(W9,Z);break;case 24:t4(s1,Z)}}function C4($){return($.mode&y0)!==O0}function oH($,Z){C4($)?(P4(),a$(Z,$),_4()):a$(Z,$)}function iq($,Z,G){C4($)?(P4(),K7(G,$,Z),_4()):K7(G,$,Z)}function a$($,Z){try{var G=Z.updateQueue,Y=G!==null?G.lastEffect:null;if(Y!==null){var U=Y.next;G=U;do{if((G.tag&$)===$&&(Y=void 0,($&m5)!==pG&&(i7=!0),Y=X0(Z,GO,G),($&m5)!==pG&&(i7=!1),Y!==void 0&&typeof Y!=="function")){var B=void 0;B=(G.tag&P6)!==0?"useLayoutEffect":(G.tag&m5)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=Y===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Y.then==="function"?`
141
+
142
+ It looks like you wrote `+B+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
+
144
+ `+B+`(() => {
145
+ async function fetchData() {
146
+ // You can await here
147
+ const response = await MyAPI.getData(someId);
148
+ // ...
149
+ }
150
+ fetchData();
151
+ }, [someId]); // Or [] if effect doesn't need props or state
152
+
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+Y,X0(Z,function(R,L){console.error("%s must not return anything besides a function, which is used for clean-up.%s",R,L)},B,W)}G=G.next}while(G!==U)}}catch(R){q1(Z,Z.return,R)}}function K7($,Z,G){try{var Y=Z.updateQueue,U=Y!==null?Y.lastEffect:null;if(U!==null){var B=U.next;Y=B;do{if((Y.tag&$)===$){var W=Y.inst,R=W.destroy;R!==void 0&&(W.destroy=void 0,($&m5)!==pG&&(i7=!0),U=Z,X0(U,XO,U,G,R),($&m5)!==pG&&(i7=!1))}Y=Y.next}while(Y!==B)}}catch(L){q1(Z,Z.return,L)}}function aH($,Z){C4($)?(P4(),a$(Z,$),_4()):a$(Z,$)}function tq($,Z,G){C4($)?(P4(),K7(G,$,Z),_4()):K7(G,$,Z)}function iH($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||r7||(G.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d($)||"instance"),G.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d($)||"instance"));try{X0($,eB,Z,G)}catch(Y){q1($,$.return,Y)}}}function yP($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function gP($,Z){var{memoizedProps:G,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||r7||(Z.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d($)||"instance"),Z.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d($)||"instance"));try{var U=X9($.type,G),B=X0($,yP,Z,U,Y);G=vw,B!==void 0||G.has($.type)||(G.add($.type),X0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){q1($,$.return,W)}}function tH($,Z,G){G.props=X9($.type,$.memoizedProps),G.state=$.memoizedState,C4($)?(P4(),X0($,iW,$,Z,G),_4()):X0($,iW,$,Z,G)}function hP($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var G=$.stateNode;break;case 30:G=$.stateNode;break;default:G=$.stateNode}if(typeof Z==="function")if(C4($))try{P4(),$.refCleanup=Z(G)}finally{_4()}else $.refCleanup=Z(G);else typeof Z==="string"?console.error("String refs are no longer supported."):Z.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",d($)),Z.current=G}}function i$($,Z){try{X0($,hP,$)}catch(G){q1($,Z,G)}}function I4($,Z){var{ref:G,refCleanup:Y}=$;if(G!==null)if(typeof Y==="function")try{if(C4($))try{P4(),X0($,Y)}finally{_4($)}else X0($,Y)}catch(U){q1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(C4($))try{P4(),X0($,G,null)}finally{_4($)}else X0($,G,null)}catch(U){q1($,Z,U)}else G.current=null}function eH($,Z,G,Y){var U=$.memoizedProps,B=U.id,W=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",gG&&(Z="nested-update"),typeof U==="function"&&U(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,Y,G)}function uP($,Z,G,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",gG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,G)}function $M($){var{type:Z,memoizedProps:G,stateNode:Y}=$;try{X0($,UC,Y,Z,G,$)}catch(U){q1($,$.return,U)}}function eq($,Z,G){try{X0($,BC,$.stateNode,$.type,G,Z,$)}catch(Y){q1($,$.return,Y)}}function ZM($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&o8($.type)||$.tag===4}function $Y($){$:for(;;){for(;$.sibling===null;){if($.return===null||ZM($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&o8($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function ZY($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(NF(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Z)):(NF(G),Z=G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G,Z.appendChild($),G=G._reactRootContainer,G!==null&&G!==void 0||Z.onclick!==null||(Z.onclick=o4));else if(Y!==4&&(Y===27&&o8($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(ZY($,Z,G),$=$.sibling;$!==null;)ZY($,Z,G),$=$.sibling}function iJ($,Z,G){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(Y!==4&&(Y===27&&o8($.type)&&(G=$.stateNode),$=$.child,$!==null))for(iJ($,Z,G),$=$.sibling;$!==null;)iJ($,Z,G),$=$.sibling}function xP($){for(var Z,G=$.return;G!==null;){if(ZM(G)){Z=G;break}G=G.return}if(Z==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(Z.tag){case 27:Z=Z.stateNode,G=$Y($),iJ($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(YF(G),Z.flags&=-33),Z=$Y($),iJ($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=$Y($),ZY($,G,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function QM($){var{stateNode:Z,memoizedProps:G}=$;try{X0($,AC,$.type,G,Z,$)}catch(Y){q1($,$.return,Y)}}function JM($,Z){return Z.tag===31?(Z=Z.memoizedState,$.memoizedState!==null&&Z===null):Z.tag===13?($=$.memoizedState,Z=Z.memoizedState,$!==null&&$.dehydrated!==null&&(Z===null||Z.dehydrated===null)):Z.tag===3?$.memoizedState.isDehydrated&&(Z.flags&256)===0:!1}function mP($,Z){if($=$.containerInfo,$U=R3,$=TB($),hX($)){if("selectionStart"in $)var G={start:$.selectionStart,end:$.selectionEnd};else $:{G=(G=$.ownerDocument)&&G.defaultView||window;var Y=G.getSelection&&G.getSelection();if(Y&&Y.rangeCount!==0){G=Y.anchorNode;var{anchorOffset:U,focusNode:B}=Y;Y=Y.focusOffset;try{G.nodeType,B.nodeType}catch($0){G=null;break $}var W=0,R=-1,L=-1,P=0,k=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==G||U!==0&&f.nodeType!==3||(R=W+U),f!==B||Y!==0&&f.nodeType!==3||(L=W+Y),f.nodeType===3&&(W+=f.nodeValue.length),(g=f.firstChild)===null)break;S=f,f=g}for(;;){if(f===$)break Z;if(S===G&&++P===U&&(R=W),S===B&&++k===Y&&(L=W),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}G=R===-1||L===-1?null:{start:R,end:L}}else G=null}G=G||{start:0,end:0}}else G=null;ZU={focusedElem:$,selectionRange:G},R3=!1;for(M5=Z;M5!==null;)if(Z=M5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,M5=$;else for(;M5!==null;){switch($=Z=M5,G=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(G=0;G<$.length;G++)U=$[G],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&G!==null&&gP($,G);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)_Y($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":_Y($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((U&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if($=Z.sibling,$!==null){$.return=Z.return,M5=$;break}M5=Z.return}}function GM($,Z,G){var Y=H6(),U=R4(),B=T4(),W=L4(),R=G.flags;switch(G.tag){case 0:case 11:case 15:O4($,G),R&4&&oH(G,P6|h6);break;case 1:if(O4($,G),R&4)if($=G.stateNode,Z===null)G.type.defaultProps||"ref"in G.memoizedProps||r7||($.props!==G.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d(G)||"instance"),$.state!==G.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d(G)||"instance")),C4(G)?(P4(),X0(G,PN,G,$),_4()):X0(G,PN,G,$);else{var L=X9(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||r7||($.props!==G.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",d(G)||"instance"),$.state!==G.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",d(G)||"instance")),C4(G)?(P4(),X0(G,nW,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate),_4()):X0(G,nW,G,$,L,Z,$.__reactInternalSnapshotBeforeUpdate)}R&64&&iH(G),R&512&&i$(G,G.return);break;case 3:if(Z=e4(),O4($,G),R&64&&(R=G.updateQueue,R!==null)){if(L=null,G.child!==null)switch(G.child.tag){case 27:case 5:L=G.child.stateNode;break;case 1:L=G.child.stateNode}try{X0(G,eB,R,L)}catch(k){q1(G,G.return,k)}}$.effectDuration+=IJ(Z);break;case 27:Z===null&&R&4&&QM(G);case 26:case 5:if(O4($,G),Z===null){if(R&4)$M(G);else if(R&64){$=G.type,Z=G.memoizedProps,L=G.stateNode;try{X0(G,KC,L,$,Z,G)}catch(k){q1(G,G.return,k)}}}R&512&&i$(G,G.return);break;case 12:if(R&4){R=e4(),O4($,G),$=G.stateNode,$.effectDuration+=u$(R);try{X0(G,eH,G,Z,X2,$.effectDuration)}catch(k){q1(G,G.return,k)}}else O4($,G);break;case 31:O4($,G),R&4&&YM($,G);break;case 13:O4($,G),R&4&&NM($,G),R&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(R=aP.bind(null,G),CC($,R))));break;case 22:if(R=G.memoizedState!==null||W8,!R){Z=Z!==null&&Z.memoizedState!==null||i1,L=W8;var P=i1;W8=R,(i1=Z)&&!P?(V4($,G,(G.subtreeFlags&8772)!==0),(G.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&FJ(G,L0,P0)):O4($,G),W8=L,i1=P}break;case 30:break;default:O4($,G)}(G.mode&y0)!==O0&&0<=L0&&0<=P0&&((y1||0.05<v1)&&W4(G,L0,P0,v1,j1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<P0-L0&&(JM(G.return.alternate,G.return)||F4(G,L0,P0,"Mount"))),M6(Y),z4(U),j1=B,y1=W}function XM($){var Z=$.alternate;Z!==null&&($.alternate=null,XM(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&Z0(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function Q8($,Z,G){for(G=G.child;G!==null;)qM($,Z,G),G=G.sibling}function qM($,Z,G){if(E5&&typeof E5.onCommitFiberUnmount==="function")try{E5.onCommitFiberUnmount(P7,G)}catch(P){v4||(v4=!0,console.error("React instrumentation encountered an error: %o",P))}var Y=H6(),U=R4(),B=T4(),W=L4();switch(G.tag){case 26:i1||I4(G,Z),Q8($,Z,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:i1||I4(G,Z);var R=t1,L=n5;o8(G.type)&&(t1=G.stateNode,n5=!1),Q8($,Z,G),X0(G,qZ,G.stateNode),t1=R,n5=L;break;case 5:i1||I4(G,Z);case 6:if(R=t1,L=n5,t1=null,Q8($,Z,G),t1=R,n5=L,t1!==null)if(n5)try{X0(G,FC,t1,G.stateNode)}catch(P){q1(G,Z,P)}else try{X0(G,MC,t1,G.stateNode)}catch(P){q1(G,Z,P)}break;case 18:t1!==null&&(n5?($=t1,UF($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),z7($)):UF(t1,G.stateNode));break;case 4:R=t1,L=n5,t1=G.stateNode.containerInfo,n5=!0,Q8($,Z,G),t1=R,n5=L;break;case 0:case 11:case 14:case 15:K7(m5,G,Z),i1||iq(G,Z,P6),Q8($,Z,G);break;case 1:i1||(I4(G,Z),R=G.stateNode,typeof R.componentWillUnmount==="function"&&tH(G,Z,R)),Q8($,Z,G);break;case 21:Q8($,Z,G);break;case 22:i1=(R=i1)||G.memoizedState!==null,Q8($,Z,G),i1=R;break;default:Q8($,Z,G)}(G.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4(G,L0,P0,v1,j1),M6(Y),z4(U),j1=B,y1=W}function YM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{X0(Z,OC,$)}catch(G){q1(Z,Z.return,G)}}}function NM($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{X0(Z,VC,$)}catch(G){q1(Z,Z.return,G)}}function dP($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new bw),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new bw),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function tJ($,Z){var G=dP($);Z.forEach(function(Y){if(!G.has(Y)){if(G.add(Y),b4)if(s7!==null&&n7!==null)ZZ(n7,s7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=iP.bind(null,$,Y);Y.then(U,U)}})}function r5($,Z){var G=Z.deletions;if(G!==null)for(var Y=0;Y<G.length;Y++){var U=$,B=Z,W=G[Y],R=H6(),L=B;$:for(;L!==null;){switch(L.tag){case 27:if(o8(L.type)){t1=L.stateNode,n5=!1;break $}break;case 5:t1=L.stateNode,n5=!1;break $;case 3:case 4:t1=L.stateNode.containerInfo,n5=!0;break $}L=L.return}if(t1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");qM(U,B,W),t1=null,n5=!1,(W.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&F4(W,L0,P0,"Unmount"),M6(R),U=W,B=U.alternate,B!==null&&(B.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)UM(Z,$),Z=Z.sibling}function UM($,Z){var G=H6(),Y=R4(),U=T4(),B=L4(),W=$.alternate,R=$.flags;switch($.tag){case 0:case 11:case 14:case 15:r5(Z,$),s5($),R&4&&(K7(m5|h6,$,$.return),a$(m5|h6,$),iq($,$.return,P6|h6));break;case 1:if(r5(Z,$),s5($),R&512&&(i1||W===null||I4(W,W.return)),R&64&&W8&&(R=$.updateQueue,R!==null&&(W=R.callbacks,W!==null))){var L=R.shared.hiddenCallbacks;R.shared.hiddenCallbacks=L===null?W:L.concat(W)}break;case 26:if(L=X4,r5(Z,$),s5($),R&512&&(i1||W===null||I4(W,W.return)),R&4){var P=W!==null?W.memoizedState:null;if(R=$.memoizedState,W===null)if(R===null)if($.stateNode===null){$:{R=$.type,W=$.memoizedProps,L=L.ownerDocument||L;Z:switch(R){case"title":if(P=L.getElementsByTagName("title")[0],!P||P[MZ]||P[z5]||P.namespaceURI===I7||P.hasAttribute("itemprop"))P=L.createElement(R),L.head.insertBefore(P,L.querySelector("head > title"));R5(P,R,W),P[z5]=$,T0(P),R=P;break $;case"link":var k=LF("link","href",L).get(R+(W.href||""));if(k){for(var f=0;f<k.length;f++)if(P=k[f],P.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&P.getAttribute("rel")===(W.rel==null?null:W.rel)&&P.getAttribute("title")===(W.title==null?null:W.title)&&P.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(f,1);break Z}}P=L.createElement(R),R5(P,R,W),L.head.appendChild(P);break;case"meta":if(k=LF("meta","content",L).get(R+(W.content||""))){for(f=0;f<k.length;f++)if(P=k[f],H1(W.content,"content"),P.getAttribute("content")===(W.content==null?null:""+W.content)&&P.getAttribute("name")===(W.name==null?null:W.name)&&P.getAttribute("property")===(W.property==null?null:W.property)&&P.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&P.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(f,1);break Z}}P=L.createElement(R),R5(P,R,W),L.head.appendChild(P);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+R+'". This is a bug in React.')}P[z5]=$,T0(P),R=P}$.stateNode=R}else _F(L,$.type,$.stateNode);else $.stateNode=TF(L,R,$.memoizedProps);else P!==R?(P===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):P.count--,R===null?_F(L,$.type,$.stateNode):TF(L,R,$.memoizedProps)):R===null&&$.stateNode!==null&&eq($,$.memoizedProps,W.memoizedProps)}break;case 27:r5(Z,$),s5($),R&512&&(i1||W===null||I4(W,W.return)),W!==null&&R&4&&eq($,$.memoizedProps,W.memoizedProps);break;case 5:if(r5(Z,$),s5($),R&512&&(i1||W===null||I4(W,W.return)),$.flags&32){L=$.stateNode;try{X0($,YF,L)}catch(G0){q1($,$.return,G0)}}R&4&&$.stateNode!=null&&(L=$.memoizedProps,eq($,L,W!==null?W.memoizedProps:L)),R&1024&&(fN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(r5(Z,$),s5($),R&4){if($.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");R=$.memoizedProps,W=W!==null?W.memoizedProps:R,L=$.stateNode;try{X0($,HC,L,W,R)}catch(G0){q1($,$.return,G0)}}break;case 3:if(L=e4(),F3=null,P=X4,X4=qG(Z.containerInfo),r5(Z,$),X4=P,s5($),R&4&&W!==null&&W.memoizedState.isDehydrated)try{X0($,IC,Z.containerInfo)}catch(G0){q1($,$.return,G0)}fN&&(fN=!1,KM($)),Z.effectDuration+=IJ(L);break;case 4:R=X4,X4=qG($.stateNode.containerInfo),r5(Z,$),s5($),X4=R;break;case 12:R=e4(),r5(Z,$),s5($),$.stateNode.effectDuration+=u$(R);break;case 31:r5(Z,$),s5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,tJ($,R)));break;case 13:r5(Z,$),s5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(eG=B5()),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,tJ($,R)));break;case 22:L=$.memoizedState!==null;var S=W!==null&&W.memoizedState!==null,g=W8,$0=i1;if(W8=g||L,i1=$0||S,r5(Z,$),i1=$0,W8=g,S&&!L&&!g&&!$0&&($.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&FJ($,L0,P0),s5($),R&8192)$:for(Z=$.stateNode,Z._visibility=L?Z._visibility&~PZ:Z._visibility|PZ,!L||W===null||S||W8||i1||(q9($),($.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&F4($,L0,P0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){S=W=Z;try{P=S.stateNode,L?X0(S,wC,P):X0(S,TC,S.stateNode,S.memoizedProps)}catch(G0){q1(S,S.return,G0)}}}else if(Z.tag===6){if(W===null){S=Z;try{k=S.stateNode,L?X0(S,RC,k):X0(S,LC,k,S.memoizedProps)}catch(G0){q1(S,S.return,G0)}}}else if(Z.tag===18){if(W===null){S=Z;try{f=S.stateNode,L?X0(S,WC,f):X0(S,zC,S.stateNode)}catch(G0){q1(S,S.return,G0)}}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===$)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===$)break $;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)break $;W===Z&&(W=null),Z=Z.return}W===Z&&(W=null),Z.sibling.return=Z.return,Z=Z.sibling}R&4&&(R=$.updateQueue,R!==null&&(W=R.retryQueue,W!==null&&(R.retryQueue=null,tJ($,W))));break;case 19:r5(Z,$),s5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,tJ($,R)));break;case 30:break;case 21:break;default:r5(Z,$),s5($)}($.mode&y0)!==O0&&0<=L0&&0<=P0&&((y1||0.05<v1)&&W4($,L0,P0,v1,j1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<P0-L0&&(JM($.return.alternate,$.return)||F4($,L0,P0,"Mount"))),M6(G),z4(Y),j1=U,y1=B}function s5($){var Z=$.flags;if(Z&2){try{X0($,xP,$)}catch(G){q1($,$.return,G)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function KM($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;KM(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function O4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)GM($,Z.alternate,Z),Z=Z.sibling}function BM($){var Z=H6(),G=R4(),Y=T4(),U=L4();switch($.tag){case 0:case 11:case 14:case 15:iq($,$.return,P6),q9($);break;case 1:I4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&tH($,$.return,B),q9($);break;case 27:X0($,qZ,$.stateNode);case 26:case 5:I4($,$.return),q9($);break;case 22:$.memoizedState===null&&q9($);break;case 30:q9($);break;default:q9($)}($.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4($,L0,P0,v1,j1),M6(Z),z4(G),j1=Y,y1=U}function q9($){for($=$.child;$!==null;)BM($),$=$.sibling}function HM($,Z,G,Y){var U=H6(),B=R4(),W=T4(),R=L4(),L=G.flags;switch(G.tag){case 0:case 11:case 15:V4($,G,Y),oH(G,P6);break;case 1:if(V4($,G,Y),Z=G.stateNode,typeof Z.componentDidMount==="function"&&X0(G,PN,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{X0(G,IP,Z,$)}catch(P){q1(G,G.return,P)}}Y&&L&64&&iH(G),i$(G,G.return);break;case 27:QM(G);case 26:case 5:V4($,G,Y),Y&&Z===null&&L&4&&$M(G),i$(G,G.return);break;case 12:if(Y&&L&4){L=e4(),V4($,G,Y),Y=G.stateNode,Y.effectDuration+=u$(L);try{X0(G,eH,G,Z,X2,Y.effectDuration)}catch(P){q1(G,G.return,P)}}else V4($,G,Y);break;case 31:V4($,G,Y),Y&&L&4&&YM($,G);break;case 13:V4($,G,Y),Y&&L&4&&NM($,G);break;case 22:G.memoizedState===null&&V4($,G,Y),i$(G,G.return);break;case 30:break;default:V4($,G,Y)}(G.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4(G,L0,P0,v1,j1),M6(U),z4(B),j1=W,y1=R}function V4($,Z,G){G=G&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)HM($,Z.alternate,Z,G),Z=Z.sibling}function QY($,Z){var G=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==G&&($!=null&&Z9($),G!=null&&h$(G))}function JY($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(Z9(Z),$!=null&&h$($))}function e6($,Z,G,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(Z=Z.child;Z!==null;){var B=Z.sibling;MM($,Z,G,Y,B!==null?B.actualStartTime:U),Z=B}}function MM($,Z,G,Y,U){var B=H6(),W=R4(),R=T4(),L=L4(),P=Z2,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&y0)!==O0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&WJ(Z,Z.actualStartTime,U,J5,G),e6($,Z,G,Y,U),k&2048&&aH(Z,d5|h6);break;case 1:(Z.mode&y0)!==O0&&0<Z.actualStartTime&&((Z.flags&128)!==0?xX(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&WJ(Z,Z.actualStartTime,U,J5,G)),e6($,Z,G,Y,U);break;case 3:var f=e4(),S=J5;J5=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,e6($,Z,G,Y,U),J5=S,k&2048&&(G=null,Z.alternate!==null&&(G=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==G&&(Z9(Y),G!=null&&h$(G))),$.passiveEffectDuration+=IJ(f);break;case 12:if(k&2048){k=e4(),e6($,Z,G,Y,U),$=Z.stateNode,$.passiveEffectDuration+=u$(k);try{X0(Z,uP,Z,Z.alternate,X2,$.passiveEffectDuration)}catch(g){q1(Z,Z.return,g)}}else e6($,Z,G,Y,U);break;case 31:k=J5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f!==null&&S===null?(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(J5=!1,f=f.hydrationErrors,f!==null&&xX(Z,Z.actualStartTime,U,f)):J5=!0):J5=!1,e6($,Z,G,Y,U),J5=k;break;case 13:k=J5,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?J5=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(J5=!1,f=f.hydrationErrors,f!==null&&xX(Z,Z.actualStartTime,U,f)):J5=!0),e6($,Z,G,Y,U),J5=k;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&X8?e6($,Z,G,Y,U):t$($,Z,G,Y,U):S._visibility&X8?e6($,Z,G,Y,U):(S._visibility|=X8,B7($,Z,G,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&y0)===O0||J5||($=Z.actualStartTime,0<=$&&0.05<U-$&&FJ(Z,$,U),0<=L0&&0<=P0&&0.05<P0-L0&&FJ(Z,L0,P0))),k&2048&&QY(f,Z);break;case 24:e6($,Z,G,Y,U),k&2048&&JY(Z.alternate,Z);break;default:e6($,Z,G,Y,U)}if((Z.mode&y0)!==O0){if($=!J5&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)G=Z.actualStartTime,0<=G&&0.05<U-G&&F4(Z,G,U,"Mount");0<=L0&&0<=P0&&((y1||0.05<v1)&&W4(Z,L0,P0,v1,j1),$&&0.05<P0-L0&&F4(Z,L0,P0,"Mount"))}M6(B),z4(W),j1=R,y1=L,Z2=P}function B7($,Z,G,Y,U,B){U=U&&((Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child));for(Z=Z.child;Z!==null;){var W=Z.sibling;FM($,Z,G,Y,U,W!==null?W.actualStartTime:B),Z=W}}function FM($,Z,G,Y,U,B){var W=H6(),R=R4(),L=T4(),P=L4(),k=Z2;U&&(Z.mode&y0)!==O0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&WJ(Z,Z.actualStartTime,B,J5,G);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:B7($,Z,G,Y,U,B),aH(Z,d5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&X8?B7($,Z,G,Y,U,B):t$($,Z,G,Y,B):(S._visibility|=X8,B7($,Z,G,Y,U,B)),U&&f&2048&&QY(Z.alternate,Z);break;case 24:B7($,Z,G,Y,U,B),U&&f&2048&&JY(Z.alternate,Z);break;default:B7($,Z,G,Y,U,B)}(Z.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4(Z,L0,P0,v1,j1),M6(W),z4(R),j1=L,y1=P,Z2=k}function t$($,Z,G,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(var B=Z.child;B!==null;){Z=B.sibling;var W=$,R=G,L=Y,P=Z!==null?Z.actualStartTime:U,k=Z2;(B.mode&y0)!==O0&&0<B.actualStartTime&&(B.flags&1)!==0&&WJ(B,B.actualStartTime,P,J5,R);var f=B.flags;switch(B.tag){case 22:t$(W,B,R,L,P),f&2048&&QY(B.alternate,B);break;case 24:t$(W,B,R,L,P),f&2048&&JY(B.alternate,B);break;default:t$(W,B,R,L,P)}Z2=k,B=Z}}function H7($,Z,G){if($.subtreeFlags&dZ)for($=$.child;$!==null;)WM($,Z,G),$=$.sibling}function WM($,Z,G){switch($.tag){case 26:H7($,Z,G),$.flags&dZ&&$.memoizedState!==null&&jC(G,X4,$.memoizedState,$.memoizedProps);break;case 5:H7($,Z,G);break;case 3:case 4:var Y=X4;X4=qG($.stateNode.containerInfo),H7($,Z,G),X4=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=dZ,dZ=16777216,H7($,Z,G),dZ=Y):H7($,Z,G));break;default:H7($,Z,G)}}function wM($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function e$($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=H6();M5=Y,TM(Y,$),(Y.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&F4(Y,L0,P0,"Unmount"),M6(U)}wM($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)RM($),$=$.sibling}function RM($){var Z=H6(),G=R4(),Y=T4(),U=L4();switch($.tag){case 0:case 11:case 15:e$($),$.flags&2048&&tq($,$.return,d5|h6);break;case 3:var B=e4();e$($),$.stateNode.passiveEffectDuration+=IJ(B);break;case 12:B=e4(),e$($),$.stateNode.passiveEffectDuration+=u$(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&X8&&($.return===null||$.return.tag!==13)?(B._visibility&=~X8,eJ($),($.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&F4($,L0,P0,"Disconnect")):e$($);break;default:e$($)}($.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4($,L0,P0,v1,j1),M6(Z),z4(G),y1=U,j1=Y}function eJ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var Y=Z[G],U=H6();M5=Y,TM(Y,$),(Y.mode&y0)!==O0&&0<=L0&&0<=P0&&0.05<P0-L0&&F4(Y,L0,P0,"Unmount"),M6(U)}wM($)}for($=$.child;$!==null;)zM($),$=$.sibling}function zM($){var Z=H6(),G=R4(),Y=T4(),U=L4();switch($.tag){case 0:case 11:case 15:tq($,$.return,d5),eJ($);break;case 22:var B=$.stateNode;B._visibility&X8&&(B._visibility&=~X8,eJ($));break;default:eJ($)}($.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4($,L0,P0,v1,j1),M6(Z),z4(G),y1=U,j1=Y}function TM($,Z){for(;M5!==null;){var G=M5,Y=G,U=Z,B=H6(),W=R4(),R=T4(),L=L4();switch(Y.tag){case 0:case 11:case 15:tq(Y,U,d5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&Z9(U));break;case 24:h$(Y.memoizedState.cache)}if((Y.mode&y0)!==O0&&0<=L0&&0<=P0&&(y1||0.05<v1)&&W4(Y,L0,P0,v1,j1),M6(B),z4(W),y1=L,j1=R,Y=G.child,Y!==null)Y.return=G,M5=Y;else $:for(G=$;M5!==null;){if(Y=M5,B=Y.sibling,W=Y.return,XM(Y),Y===G){M5=null;break $}if(B!==null){B.return=W,M5=B;break $}M5=W}}}function pP(){KO.forEach(function($){return $()})}function LM(){var $=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return $||x.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),$}function W6($){if((e0&G5)!==F5&&h0!==0)return h0&-h0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),BY()):y()}function _M(){if(a5===0)if((h0&536870912)===0||o0){var $=zG;zG<<=1,(zG&3932160)===0&&(zG=262144),a5=$}else a5=536870912;return $=_6.current,$!==null&&($.flags|=32),a5}function f1($,Z,G){if(i7&&console.error("useInsertionEffect must not schedule updates."),rN&&(J3=!0),$===w1&&(K1===_9||K1===P9)||$.cancelPendingCommit!==null)F7($,0),s8($,h0,a5,!1);if(f8($,G),(e0&G5)!==F5&&$===w1){if(D4)switch(Z.tag){case 0:case 11:case 15:$=x0&&d(x0)||"Unknown",nw.has($)||(nw.add($),Z=d(Z)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",Z,$,$));break;case 1:sw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),sw=!0)}}else b4&&A$($,Z,G),eP(Z),$===w1&&((e0&G5)===F5&&(F2|=G),b1===B2&&s8($,h0,a5,!1)),A4($)}function PM($,Z,G){if((e0&(G5|C6))!==F5)throw Error("Should not already be working.");if(h0!==0&&x0!==null){var Y=x0,U=B5();switch(xW){case lZ:case _9:var B=EZ;C1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",B,U,j6,void 0,"primary-light")):console.timeStamp("Suspended",B,U,j6,void 0,"primary-light"));break;case P9:B=EZ,C1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",B,U,j6,void 0,"primary-light")):console.timeStamp("Action",B,U,j6,void 0,"primary-light"));break;default:C1&&(Y=U-EZ,3>Y||console.timeStamp("Blocked",EZ,U,j6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}B=(G=!G&&(Z&127)===0&&(Z&$.expiredLanes)===0||d2($,Z))?lP($,Z):XY($,Z,!0);var W=G;do{if(B===w8){o7&&!G&&s8($,Z,0,!1),Z=K1,EZ=n1(),xW=Z;break}else{if(Y=B5(),U=$.current.alternate,W&&!cP(U)){K6(Z),U=H5,B=Y,!C1||B<=U||(m1?m1.run(console.timeStamp.bind(console,"Teared Render",U,B,s0,l0,"error")):console.timeStamp("Teared Render",U,B,s0,l0,"error")),Y9(Z,Y),B=XY($,Z,!1),W=!1;continue}if(B===L9){if(W=Z,$.errorRecoveryDisabledLanes&W)var R=0;else R=$.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){K6(Z),mX(H5,Y,Z,m1),Y9(Z,Y),Z=R;$:{Y=$,B=W,W=sZ;var L=Y.current.memoizedState.isDehydrated;if(L&&(F7(Y,R).flags|=256),R=XY(Y,R,!1),R!==L9){if(hN&&!L){Y.errorRecoveryDisabledLanes|=B,F2|=B,B=B2;break $}Y=p5,p5=W,Y!==null&&(p5===null?p5=Y:p5.push.apply(p5,Y))}B=R}if(W=!1,B!==L9)continue;else Y=B5()}}if(B===cZ){K6(Z),mX(H5,Y,Z,m1),Y9(Z,Y),F7($,0),s8($,Z,0,!0);break}$:{switch(G=$,B){case w8:case cZ:throw Error("Root did not complete. This is a bug in React.");case B2:if((Z&4194048)!==Z)break;case oG:K6(Z),PB(H5,Y,Z,m1),Y9(Z,Y),U=Z,(U&127)!==0?kG=Y:(U&4194048)!==0&&(fG=Y),s8(G,Z,a5,!H2);break $;case L9:p5=null;break;case nG:case kw:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)qY(G,U,Z,p5,nZ,tG,a5,F2,C9,B,null,null,H5,Y);else{if((Z&62914560)===Z&&(W=eG+gw-B5(),10<W)){if(s8(G,Z,a5,!H2),m2(G,0,!0)!==0)break $;q4=Z,G.timeoutHandle=QR(CM.bind(null,G,U,p5,nZ,tG,Z,a5,F2,C9,H2,B,"Throttled",H5,Y),W);break $}CM(G,U,p5,nZ,tG,Z,a5,F2,C9,H2,B,null,H5,Y)}}}break}while(1);A4($)}function CM($,Z,G,Y,U,B,W,R,L,P,k,f,S,g){$.timeoutHandle=E9;var $0=Z.subtreeFlags,G0=null;if($0&8192||($0&16785408)===16785408){if(G0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:o4},WM(Z,B,G0),$0=(B&62914560)===B?eG-B5():(B&4194048)===B?yw-B5():0,$0=DC(G0,$0),$0!==null){q4=B,$.cancelPendingCommit=$0(qY.bind(null,$,Z,B,G,Y,U,W,R,L,k,G0,G0.waitingForViewTransition?"Waiting for the previous Animation":0<G0.count?0<G0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":G0.imgCount===1?"Suspended on an Image":0<G0.imgCount?"Suspended on Images":null,S,g)),s8($,B,W,!P);return}}qY($,Z,B,G,Y,U,W,R,L,k,G0,f,S,g)}function cP($){for(var Z=$;;){var G=Z.tag;if((G===0||G===11||G===15)&&Z.flags&16384&&(G=Z.updateQueue,G!==null&&(G=G.stores,G!==null)))for(var Y=0;Y<G.length;Y++){var U=G[Y],B=U.getSnapshot;U=U.value;try{if(!u5(B(),U))return!1}catch(W){return!1}}if(G=Z.child,Z.subtreeFlags&16384&&G!==null)G.return=Z,Z=G;else{if(Z===$)break;for(;Z.sibling===null;){if(Z.return===null||Z.return===$)return!0;Z=Z.return}Z.sibling.return=Z.return,Z=Z.sibling}}return!0}function s8($,Z,G,Y){Z&=~uN,Z&=~F2,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var B=31-y5(U),W=1<<B;Y[B]=-1,U&=~W}G!==0&&p2($,G,Z)}function M7(){return(e0&(G5|C6))===F5?(QZ(0,!1),!1):!0}function GY(){if(x0!==null){if(K1===o5)var $=x0.return;else $=x0,_J(),Wq($),x7=null,gZ=0,$=x0;for(;$!==null;)nH($.alternate,$),$=$.return;x0=null}}function Y9($,Z){($&127)!==0&&(q2=Z),($&4194048)!==0&&(h4=Z),($&62914560)!==0&&(hW=Z),($&2080374784)!==0&&(uW=Z)}function F7($,Z){C1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",l0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",l0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",l0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",l0,"primary-light"));var G=H5;if(H5=n1(),h0!==0&&0<G){if(K6(h0),b1===nG||b1===B2)PB(G,H5,Z,m1);else{var Y=H5,U=m1;if(C1&&!(Y<=G)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",W=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";U?U.run(console.timeStamp.bind(console,W,G,Y,s0,l0,B)):console.timeStamp(W,G,Y,s0,l0,B)}}Y9(h0,H5)}if(G=m1,m1=null,(Z&127)!==0){m1=OZ,U=0<=g4&&g4<q2?q2:g4,Y=0<=H9&&H9<q2?q2:H9,B=0<=Y?Y:0<=U?U:H5,0<=kG?(K6(2),CB(kG,B,Z,G)):(yG&127)!==0&&(K6(2),y$(q2,B,B8)),G=U;var R=Y,L=VZ,P=0<g7,k=Y2===IZ,f=Y2===bG;if(U=H5,Y=OZ,B=RN,W=zN,C1){if(s0="Blocking",0<G?G>U&&(G=U):G=U,0<R?R>G&&(R=G):R=G,L!==null&&G>R){var S=P?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,P?"Consecutive":"Event: "+L,R,G,s0,l0,S)):console.timeStamp(P?"Consecutive":"Event: "+L,R,G,s0,l0,S)}U>G&&(R=k?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",k=f?"Promise Resolved":k?"Cascading Update":5<U-G?"Update Blocked":"Update",f=[],W!=null&&f.push(["Component name",W]),B!=null&&f.push(["Method name",B]),G={start:G,end:U,detail:{devtools:{properties:f,track:s0,trackGroup:l0,color:R}}},Y?Y.run(performance.measure.bind(performance,k,G)):performance.measure(k,G))}g4=-1.1,Y2=0,zN=RN=null,kG=-1.1,g7=H9,H9=-1.1,q2=n1()}if((Z&4194048)!==0&&(m1=AZ,U=0<=K8&&K8<h4?h4:K8,G=0<=y6&&y6<h4?h4:y6,Y=0<=N2&&N2<h4?h4:N2,B=0<=Y?Y:0<=G?G:H5,0<=fG?(K6(256),CB(fG,B,Z,m1)):(yG&4194048)!==0&&(K6(256),y$(h4,B,B8)),f=Y,R=M9,L=0<U2,P=TN===bG,B=H5,Y=AZ,W=yW,k=gW,C1&&(s0="Transition",0<G?G>B&&(G=B):G=B,0<U?U>G&&(U=G):U=G,0<f?f>U&&(f=U):f=U,U>f&&R!==null&&(S=L?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+R,f,U,s0,l0,S)):console.timeStamp(L?"Consecutive":"Event: "+R,f,U,s0,l0,S)),G>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,G,s0,l0,"primary-dark")):console.timeStamp("Action",U,G,s0,l0,"primary-dark")),B>G&&(U=P?"Promise Resolved":5<B-G?"Update Blocked":"Update",f=[],k!=null&&f.push(["Component name",k]),W!=null&&f.push(["Method name",W]),G={start:G,end:B,detail:{devtools:{properties:f,track:s0,trackGroup:l0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,G)):performance.measure(U,G))),y6=K8=-1.1,TN=0,fG=-1.1,U2=N2,N2=-1.1,h4=n1()),(Z&62914560)!==0&&(yG&62914560)!==0&&(K6(4194304),y$(hW,H5,B8)),(Z&2080374784)!==0&&(yG&2080374784)!==0&&(K6(268435456),y$(uW,H5,B8)),G=$.timeoutHandle,G!==E9&&($.timeoutHandle=E9,CO(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),q4=0,GY(),w1=$,x0=G=a4($.current,null),h0=Z,K1=o5,I6=null,H2=!1,o7=d2($,Z),hN=!1,b1=w8,C9=a5=uN=F2=M2=0,p5=sZ=null,tG=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-y5(Y),B=1<<U,Z|=$[U],Y&=~B;return x4=Z,wJ(),$=jW(),1000<$-SW&&(x.recentlyCreatedOwnerStacks=0,SW=$),J4.discardPendingWarnings(),G}function IM($,Z){A0=null,x.H=mZ,x.getCurrentStack=null,D4=!1,z6=null,Z===u7||Z===xG?(Z=lB(),K1=lZ):Z===CN?(Z=lB(),K1=fw):K1=Z===bN?gN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?rZ:aG,I6=Z;var G=x0;G===null?(b1=cZ,rJ($,B6(Z,$.current))):G.mode&y0&&Qq(G)}function OM(){var $=_6.current;return $===null?!0:(h0&4194048)===h0?g6===null?!0:!1:(h0&62914560)===h0||(h0&536870912)!==0?$===g6:!1}function VM(){var $=x.H;return x.H=mZ,$===null?mZ:$}function AM(){var $=x.A;return x.A=UO,$}function $G($){m1===null&&(m1=$._debugTask==null?null:$._debugTask)}function ZG(){b1=B2,H2||(h0&4194048)!==h0&&_6.current!==null||(o7=!0),(M2&134217727)===0&&(F2&134217727)===0||w1===null||s8(w1,h0,a5,!1)}function XY($,Z,G){var Y=e0;e0|=G5;var U=VM(),B=AM();if(w1!==$||h0!==Z){if(b4){var W=$.memoizedUpdaters;0<W.size&&(ZZ($,h0),W.clear()),y8($,Z)}nZ=null,F7($,Z)}Z=!1,W=b1;$:do try{if(K1!==o5&&x0!==null){var R=x0,L=I6;switch(K1){case gN:GY(),W=oG;break $;case lZ:case _9:case P9:case rZ:_6.current===null&&(Z=!0);var P=K1;if(K1=o5,I6=null,W7($,R,L,P),G&&o7){W=w8;break $}break;default:P=K1,K1=o5,I6=null,W7($,R,L,P)}}EM(),W=b1;break}catch(k){IM($,k)}while(1);return Z&&$.shellSuspendCounter++,_J(),e0=Y,x.H=U,x.A=B,x0===null&&(w1=null,h0=0,wJ()),W}function EM(){for(;x0!==null;)SM(x0)}function lP($,Z){var G=e0;e0|=G5;var Y=VM(),U=AM();if(w1!==$||h0!==Z){if(b4){var B=$.memoizedUpdaters;0<B.size&&(ZZ($,h0),B.clear()),y8($,Z)}nZ=null,$3=B5()+hw,F7($,Z)}else o7=d2($,Z);$:do try{if(K1!==o5&&x0!==null)Z:switch(Z=x0,B=I6,K1){case aG:K1=o5,I6=null,W7($,Z,B,aG);break;case _9:case P9:if(pB(B)){K1=o5,I6=null,jM(Z);break}Z=function(){K1!==_9&&K1!==P9||w1!==$||(K1=iG),A4($)},B.then(Z,Z);break $;case lZ:K1=iG;break $;case fw:K1=yN;break $;case iG:pB(B)?(K1=o5,I6=null,jM(Z)):(K1=o5,I6=null,W7($,Z,B,iG));break;case yN:var W=null;switch(x0.tag){case 26:W=x0.memoizedState;case 5:case 27:var R=x0;if(W?PF(W):R.stateNode.complete){K1=o5,I6=null;var L=R.sibling;if(L!==null)x0=L;else{var P=R.return;P!==null?(x0=P,QG(P)):x0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}K1=o5,I6=null,W7($,Z,B,yN);break;case rZ:K1=o5,I6=null,W7($,Z,B,rZ);break;case gN:GY(),b1=oG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?EM():rP();break}catch(k){IM($,k)}while(1);if(_J(),x.H=Y,x.A=U,e0=G,x0!==null)return w8;return w1=null,h0=0,wJ(),b1}function rP(){for(;x0!==null&&!cC();)SM(x0)}function SM($){var Z=$.alternate;($.mode&y0)!==O0?(Zq($),Z=X0($,oq,Z,$,x4),Qq($)):Z=X0($,oq,Z,$,x4),$.memoizedProps=$.pendingProps,Z===null?QG($):x0=Z}function jM($){var Z=X0($,sP,$);$.memoizedProps=$.pendingProps,Z===null?QG($):x0=Z}function sP($){var Z=$.alternate,G=($.mode&y0)!==O0;switch(G&&Zq($),$.tag){case 15:case 0:Z=mH(Z,$,$.pendingProps,$.type,void 0,h0);break;case 11:Z=mH(Z,$,$.pendingProps,$.type.render,$.ref,h0);break;case 5:Wq($);default:nH(Z,$),$=x0=SB($,x4),Z=oq(Z,$,x4)}return G&&Qq($),Z}function W7($,Z,G,Y){_J(),Wq(Z),x7=null,gZ=0;var U=Z.return;try{if(DP($,U,Z,G,h0)){b1=cZ,rJ($,B6(G,$.current)),x0=null;return}}catch(B){if(U!==null)throw x0=U,B;b1=cZ,rJ($,B6(G,$.current)),x0=null;return}if(Z.flags&32768){if(o0||Y===aG)$=!0;else if(o7||(h0&536870912)!==0)$=!1;else if(H2=$=!0,Y===_9||Y===P9||Y===lZ||Y===rZ)Y=_6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);DM(Z,$)}else QG(Z)}function QG($){var Z=$;do{if((Z.flags&32768)!==0){DM(Z,H2);return}var G=Z.alternate;if($=Z.return,Zq(Z),G=X0(Z,kP,G,Z,x4),(Z.mode&y0)!==O0&&hB(Z),G!==null){x0=G;return}if(Z=Z.sibling,Z!==null){x0=Z;return}x0=Z=$}while(Z!==null);b1===w8&&(b1=kw)}function DM($,Z){do{var G=fP($.alternate,$);if(G!==null){G.flags&=32767,x0=G;return}if(($.mode&y0)!==O0){hB($),G=$.actualDuration;for(var Y=$.child;Y!==null;)G+=Y.actualDuration,Y=Y.sibling;$.actualDuration=G}if(G=$.return,G!==null&&(G.flags|=32768,G.subtreeFlags=0,G.deletions=null),!Z&&($=$.sibling,$!==null)){x0=$;return}x0=$=G}while($!==null);b1=oG,x0=null}function qY($,Z,G,Y,U,B,W,R,L,P,k,f,S,g){$.cancelPendingCommit=null;do $Z();while(e1!==w2);if(J4.flushLegacyContextWarning(),J4.flushPendingUnsafeLifecycleWarnings(),(e0&(G5|C6))!==F5)throw Error("Should not already be working.");if(K6(G),P===L9?mX(S,g,G,m1):Y!==null?zP(S,g,G,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,m1):RP(S,g,G,m1),Z!==null){if(G===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),Z===$.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(B=Z.lanes|Z.childLanes,B|=HN,XJ($,G,B,W,R,L),$===w1&&(x0=w1=null,h0=0),a7=Z,R2=$,q4=G,dN=B,cN=U,cw=Y,pN=g,lw=f,Y4=Z3,rw=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,tP(_7,function(){return $Q=window.event,Y4===Z3&&(Y4=mN),yM(),null})):($.callbackNode=null,$.callbackPriority=0),U8=null,X2=n1(),f!==null&&TP(g,X2,f,m1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=Y1.p,Y1.p=T6,W=e0,e0|=C6;try{mP($,Z,G)}finally{e0=W,Y1.p=U,x.T=Y}}e1=xw,vM(),bM(),kM()}}function vM(){if(e1===xw){e1=w2;var $=R2,Z=a7,G=q4,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=Y1.p;Y1.p=T6;var B=e0;e0|=C6;try{s7=G,n7=$,OJ(),UM(Z,$),n7=s7=null,G=ZU;var W=TB($.containerInfo),R=G.focusedElem,L=G.selectionRange;if(W!==R&&R&&R.ownerDocument&&zB(R.ownerDocument.documentElement,R)){if(L!==null&&hX(R)){var{start:P,end:k}=L;if(k===void 0&&(k=P),"selectionStart"in R)R.selectionStart=P,R.selectionEnd=Math.min(k,R.value.length);else{var f=R.ownerDocument||document,S=f&&f.defaultView||window;if(S.getSelection){var g=S.getSelection(),$0=R.textContent.length,G0=Math.min(L.start,$0),L1=L.end===void 0?G0:Math.min(L.end,$0);!g.extend&&G0>L1&&(W=L1,L1=G0,G0=W);var i0=RB(R,G0),A=RB(R,L1);if(i0&&A&&(g.rangeCount!==1||g.anchorNode!==i0.node||g.anchorOffset!==i0.offset||g.focusNode!==A.node||g.focusOffset!==A.offset)){var j=f.createRange();j.setStart(i0.node,i0.offset),g.removeAllRanges(),G0>L1?(g.addRange(j),g.extend(A.node,A.offset)):(j.setEnd(A.node,A.offset),g.addRange(j))}}}}f=[];for(g=R;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof R.focus==="function"&&R.focus();for(R=0;R<f.length;R++){var b=f[R];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}R3=!!$U,ZU=$U=null}finally{e0=B,Y1.p=U,x.T=Y}}$.current=Z,e1=mw}}function bM(){if(e1===mw){e1=w2;var $=rw;if($!==null){X2=n1();var Z=N8,G=X2;!C1||G<=Z||(B8?B8.run(console.timeStamp.bind(console,$,Z,G,s0,l0,"secondary-light")):console.timeStamp($,Z,G,s0,l0,"secondary-light"))}$=R2,Z=a7,G=q4;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=Y1.p;Y1.p=T6;var B=e0;e0|=C6;try{s7=G,n7=$,OJ(),GM($,Z.alternate,Z),n7=s7=null}finally{e0=B,Y1.p=U,x.T=Y}}$=pN,Z=lw,N8=n1(),$=Z===null?$:X2,Z=N8,G=Y4===xN,Y=m1,U8!==null?IB($,Z,U8,!1,Y):!C1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Z,s0,l0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Z,s0,l0,G?"error":"secondary-dark")),e1=dw}}function kM(){if(e1===pw||e1===dw){if(e1===pw){var $=N8;N8=n1();var Z=N8,G=Y4===xN;!C1||Z<=$||(B8?B8.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Z,s0,l0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Z,s0,l0,G?" error":"secondary-light")),Y4!==xN&&(Y4=uw)}e1=w2,lC(),$=R2;var Y=a7;Z=q4,G=cw;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?e1=Q3:(e1=w2,a7=R2=null,fM($,$.pendingLanes),I9=0,aZ=null);var B=$.pendingLanes;if(B===0&&(W2=null),U||xM($),B=C(Z),Y=Y.stateNode,E5&&typeof E5.onCommitFiberRoot==="function")try{var W=(Y.current.flags&128)===128;switch(B){case T6:var R=cY;break;case Z4:R=lY;break;case k4:R=_7;break;case LG:R=rY;break;default:R=_7}E5.onCommitFiberRoot(P7,Y,R,W)}catch(f){v4||(v4=!0,console.error("React instrumentation encountered an error: %o",f))}if(b4&&$.memoizedUpdaters.clear(),pP(),G!==null){W=x.T,R=Y1.p,Y1.p=T6,x.T=null;try{var L=$.onRecoverableError;for(Y=0;Y<G.length;Y++){var P=G[Y],k=nP(P.stack);X0(P.source,L,P.value,k)}}finally{x.T=W,Y1.p=R}}(q4&3)!==0&&$Z(),A4($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(hG=!0,$===lN?oZ++:(oZ=0,lN=$)):oZ=0,U||Y9(Z,N8),QZ(0,!1)}}function nP($){return $={componentStack:$},Object.defineProperty($,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),$}function fM($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,h$(Z)))}function $Z(){return vM(),bM(),kM(),yM()}function yM(){if(e1!==Q3)return!1;var $=R2,Z=dN;dN=0;var G=C(q4),Y=k4===0||k4>G?k4:G;G=x.T;var U=Y1.p;try{Y1.p=Y,x.T=null;var B=cN;cN=null,Y=R2;var W=q4;if(e1=w2,a7=R2=null,q4=0,(e0&(G5|C6))!==F5)throw Error("Cannot flush passive effects while already rendering.");K6(W),rN=!0,J3=!1;var R=0;if(U8=null,R=B5(),Y4===uw)y$(N8,R,B8);else{var L=N8,P=R,k=Y4===mN;!C1||P<=L||(m1?m1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",L,P,s0,l0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",L,P,s0,l0,"secondary-light"))}L=e0,e0|=C6;var f=Y.current;OJ(),RM(f);var S=Y.current;f=pN,OJ(),MM(Y,S,W,B,f),xM(Y),e0=L;var g=B5();if(S=R,f=m1,U8!==null?IB(S,g,U8,!0,f):!C1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,s0,l0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,s0,l0,"secondary-dark")),Y9(W,g),QZ(0,!1),J3?Y===aZ?I9++:(I9=0,aZ=Y):I9=0,J3=rN=!1,E5&&typeof E5.onPostCommitFiberRoot==="function")try{E5.onPostCommitFiberRoot(P7,Y)}catch(G0){v4||(v4=!0,console.error("React instrumentation encountered an error: %o",G0))}var $0=Y.current.stateNode;return $0.effectDuration=0,$0.passiveEffectDuration=0,!0}finally{Y1.p=U,x.T=G,fM($,Z)}}function gM($,Z,G){Z=B6(G,Z),uB(Z),Z=hq($.stateNode,Z,2),$=p8($,Z,2),$!==null&&(f8($,2),A4($))}function q1($,Z,G){if(i7=!1,$.tag===3)gM($,$,G);else{for(;Z!==null;){if(Z.tag===3){gM(Z,$,G);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(W2===null||!W2.has(Y))){$=B6(G,$),uB($),G=uq(2),Y=p8(Z,G,2),Y!==null&&(xq(G,Y,Z,$),f8(Y,2),A4(Y));return}}Z=Z.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
154
+
155
+ Error message:
156
+
157
+ %s`,G)}}function YY($,Z,G){var Y=$.pingCache;if(Y===null){Y=$.pingCache=new BO;var U=new Set;Y.set(Z,U)}else U=Y.get(Z),U===void 0&&(U=new Set,Y.set(Z,U));U.has(G)||(hN=!0,U.add(G),Y=oP.bind(null,$,Z,G),b4&&ZZ($,G),Z.then(Y,Y))}function oP($,Z,G){var Y=$.pingCache;Y!==null&&Y.delete(Z),$.pingedLanes|=$.suspendedLanes&G,$.warmLanes&=~G,(G&127)!==0?0>g4&&(q2=g4=n1(),OZ=vG("Promise Resolved"),Y2=bG):(G&4194048)!==0&&0>y6&&(h4=y6=n1(),AZ=vG("Promise Resolved"),TN=bG),LM()&&x.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
+
159
+ When testing, code that resolves suspended data should be wrapped into act(...):
160
+
161
+ act(() => {
162
+ /* finish loading suspended data */
163
+ });
164
+ /* assert on the output */
165
+
166
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),w1===$&&(h0&G)===G&&(b1===B2||b1===nG&&(h0&62914560)===h0&&B5()-eG<gw?(e0&G5)===F5&&F7($,0):uN|=G,C9===h0&&(C9=0)),A4($)}function hM($,Z){Z===0&&(Z=e9()),$=A5($,Z),$!==null&&(f8($,Z),A4($))}function aP($){var Z=$.memoizedState,G=0;Z!==null&&(G=Z.retryLane),hM($,G)}function iP($,Z){var G=0;switch($.tag){case 31:case 13:var{stateNode:Y,memoizedState:U}=$;U!==null&&(G=U.retryLane);break;case 19:Y=$.stateNode;break;case 22:Y=$.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}Y!==null&&Y.delete(Z),hM($,G)}function NY($,Z,G){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var Y=$,U=Z,B=U.type===FG;B=G||B,U.tag!==22?U.flags&67108864?B&&X0(U,uM,Y,U):NY(Y,U,B):U.memoizedState===null&&(B&&U.flags&8192?X0(U,uM,Y,U):U.subtreeFlags&67108864&&X0(U,NY,Y,U,B)),Z=Z.sibling}}function uM($,Z){z1(!0);try{BM(Z),zM(Z),HM($,Z.alternate,Z,!1),FM($,Z,0,null,!1,0)}finally{z1(!1)}}function xM($){var Z=!0;$.current.mode&(S5|Q4)||(Z=!1),NY($,$.current,Z)}function mM($){if((e0&G5)===F5){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",G3!==null){if(G3.has(Z))return;G3.add(Z)}else G3=new Set([Z]);X0($,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function ZZ($,Z){b4&&$.memoizedUpdaters.forEach(function(G){A$($,G,Z)})}function tP($,Z){var G=x.actQueue;return G!==null?(G.push(Z),FO):pY($,Z)}function eP($){LM()&&x.actQueue===null&&X0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
+
168
+ When testing, code that causes React state updates should be wrapped into act(...):
169
+
170
+ act(() => {
171
+ /* fire events that update state */
172
+ });
173
+ /* assert on the output */
174
+
175
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,d($))})}function A4($){$!==t7&&$.next===null&&(t7===null?X3=t7=$:t7=t7.next=$),q3=!0,x.actQueue!==null?nN||(nN=!0,lM()):sN||(sN=!0,lM())}function QZ($,Z){if(!oN&&q3){oN=!0;do{var G=!1;for(var Y=X3;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var B=0;else{var{suspendedLanes:W,pingedLanes:R}=Y;B=(1<<31-y5(42|$)+1)-1,B&=U&~(W&~R),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,cM(Y,B))}else B=h0,B=m2(Y,Y===w1?B:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==E9),(B&3)===0||d2(Y,B)||(G=!0,cM(Y,B));Y=Y.next}}while(G);oN=!1}}function $C(){$Q=window.event,UY()}function UY(){q3=nN=sN=!1;var $=0;z2!==0&&YC()&&($=z2);for(var Z=B5(),G=null,Y=X3;Y!==null;){var U=Y.next,B=dM(Y,Z);if(B===0)Y.next=null,G===null?X3=U:G.next=U,U===null&&(t7=G);else if(G=Y,$!==0||(B&3)!==0)q3=!0;Y=U}e1!==w2&&e1!==Q3||QZ($,!1),z2!==0&&(z2=0)}function dM($,Z){for(var{suspendedLanes:G,pingedLanes:Y,expirationTimes:U}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-y5(B),R=1<<W,L=U[W];if(L===-1){if((R&G)===0||(R&Y)!==0)U[W]=AX(R,Z)}else L<=Z&&($.expiredLanes|=R);B&=~R}if(Z=w1,G=h0,G=m2($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==E9),Y=$.callbackNode,G===0||$===Z&&(K1===_9||K1===P9)||$.cancelPendingCommit!==null)return Y!==null&&KY(Y),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||d2($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&Y!==aN)KY(Y);else return Z;switch(C(G)){case T6:case Z4:G=lY;break;case k4:G=_7;break;case LG:G=rY;break;default:G=_7}return Y=pM.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),G=aN):G=pY(G,Y),$.callbackPriority=Z,$.callbackNode=G,Z}return Y!==null&&KY(Y),$.callbackPriority=2,$.callbackNode=null,2}function pM($,Z){if(hG=gG=!1,$Q=window.event,e1!==w2&&e1!==Q3)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(Y4===Z3&&(Y4=mN),$Z()&&$.callbackNode!==G)return null;var Y=h0;if(Y=m2($,$===w1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==E9),Y===0)return null;return PM($,Y,Z),dM($,B5()),$.callbackNode!=null&&$.callbackNode===G?pM.bind(null,$):null}function cM($,Z){if($Z())return null;gG=hG,hG=!1,PM($,Z,!0)}function KY($){$!==aN&&$!==null&&pC($)}function lM(){x.actQueue!==null&&x.actQueue.push(function(){return UY(),null}),IO(function(){(e0&(G5|C6))!==F5?pY(cY,$C):UY()})}function BY(){if(z2===0){var $=F9;$===0&&($=RG,RG<<=1,(RG&261888)===0&&(RG=256)),z2=$}return z2}function rM($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return H1($,"action"),b$(""+$)}function sM($,Z){var G=Z.ownerDocument.createElement("input");return G.name=Z.name,G.value=Z.value,$.id&&G.setAttribute("form",$.id),Z.parentNode.insertBefore(G,Z),$=new FormData($),G.parentNode.removeChild(G),$}function ZC($,Z,G,Y,U){if(Z==="submit"&&G&&G.stateNode===U){var B=rM((U[g5]||null).action),W=Y.submitter;W&&(Z=(Z=W[g5]||null)?rM(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var R=new OG("action","action",null,Y,U);$.push({event:R,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(z2!==0){var L=W?sM(U,W):new FormData(U),P={pending:!0,data:L,method:U.method,action:B};Object.freeze(P),Dq(G,P,null,L)}}else typeof B==="function"&&(R.preventDefault(),L=W?sM(U,W):new FormData(U),P={pending:!0,data:L,method:U.method,action:B},Object.freeze(P),Dq(G,P,B,L))},currentTarget:U}]})}}function JG($,Z,G){$.currentTarget=G;try{Z($)}catch(Y){NN(Y)}$.currentTarget=null}function nM($,Z){Z=(Z&4)!==0;for(var G=0;G<$.length;G++){var Y=$[G];$:{var U=void 0,B=Y.event;if(Y=Y.listeners,Z)for(var W=Y.length-1;0<=W;W--){var R=Y[W],L=R.instance,P=R.currentTarget;if(R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?X0(L,JG,B,R,P):JG(B,R,P),U=L}else for(W=0;W<Y.length;W++){if(R=Y[W],L=R.instance,P=R.currentTarget,R=R.listener,L!==U&&B.isPropagationStopped())break $;L!==null?X0(L,JG,B,R,P):JG(B,R,P),U=L}}}}function a0($,Z){iN.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Z[sY];G===void 0&&(G=Z[sY]=new Set);var Y=$+"__bubble";G.has(Y)||(oM(Z,$,2,!1),G.add(Y))}function HY($,Z,G){iN.has($)&&!Z&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',$);var Y=0;Z&&(Y|=4),oM(G,$,Y,Z)}function MY($){if(!$[Y3]){$[Y3]=!0,lF.forEach(function(G){G!=="selectionchange"&&(iN.has(G)||HY(G,!1,$),HY(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[Y3]||(Z[Y3]=!0,HY("selectionchange",!1,Z))}}function oM($,Z,G,Y){switch(EF(Z)){case T6:var U=fC;break;case Z4:U=yC;break;default:U=SY}G=U.bind(null,Z,G,$),U=void 0,!tY||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,G,{capture:!0,passive:U}):$.addEventListener(Z,G,!0):U!==void 0?$.addEventListener(Z,G,{passive:U}):$.addEventListener(Z,G,!1)}function FY($,Z,G,Y,U){var B=Y;if((Z&1)===0&&(Z&2)===0&&Y!==null)$:for(;;){if(Y===null)return;var W=Y.tag;if(W===3||W===4){var R=Y.stateNode.containerInfo;if(R===U)break;if(W===4)for(W=Y.return;W!==null;){var L=W.tag;if((L===3||L===4)&&W.stateNode.containerInfo===U)return;W=W.return}for(;R!==null;){if(W=N0(R),W===null)return;if(L=W.tag,L===5||L===6||L===26||L===27){Y=B=W;continue $}R=R.parentNode}}Y=Y.return}qB(function(){var P=B,k=yX(G),f=[];$:{var S=EW.get($);if(S!==void 0){var g=OG,$0=$;switch($){case"keypress":if(BJ(G)===0)break $;case"keydown":case"keyup":g=jI;break;case"focusin":$0="focus",g=QN;break;case"focusout":$0="blur",g=QN;break;case"beforeblur":case"afterblur":g=QN;break;case"click":if(G.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=FW;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=zI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=bI;break;case IW:case OW:case VW:g=_I;break;case AW:g=fI;break;case"scroll":case"scrollend":g=wI;break;case"wheel":g=gI;break;case"copy":case"cut":case"paste":g=CI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=wW;break;case"toggle":case"beforetoggle":g=uI}var G0=(Z&4)!==0,L1=!G0&&($==="scroll"||$==="scrollend"),i0=G0?S!==null?S+"Capture":null:S;G0=[];for(var A=P,j;A!==null;){var b=A;if(j=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||j===null||i0===null||(b=k$(A,i0),b!=null&&G0.push(JZ(A,b,j))),L1)break;A=A.return}0<G0.length&&(S=new g(S,$0,null,G,k),f.push({event:S,listeners:G0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&G!==FZ&&($0=G.relatedTarget||G.fromElement)&&(N0($0)||$0[e8]))break $;if(g||S){if(S=k.window===k?k:(S=k.ownerDocument)?S.defaultView||S.parentWindow:window,g){if($0=G.relatedTarget||G.toElement,g=P,$0=$0?N0($0):null,$0!==null&&(L1=D($0),G0=$0.tag,$0!==L1||G0!==5&&G0!==27&&G0!==6))$0=null}else g=null,$0=P;if(g!==$0){if(G0=FW,b="onMouseLeave",i0="onMouseEnter",A="mouse",$==="pointerout"||$==="pointerover")G0=wW,b="onPointerLeave",i0="onPointerEnter",A="pointer";if(L1=g==null?S:D0(g),j=$0==null?S:D0($0),S=new G0(b,A+"leave",g,G,k),S.target=L1,S.relatedTarget=j,b=null,N0(k)===P&&(G0=new G0(i0,A+"enter",$0,G,k),G0.target=j,G0.relatedTarget=L1,b=G0),L1=b,g&&$0)Z:{G0=QC,i0=g,A=$0,j=0;for(b=i0;b;b=G0(b))j++;b=0;for(var m=A;m;m=G0(m))b++;for(;0<j-b;)i0=G0(i0),j--;for(;0<b-j;)A=G0(A),b--;for(;j--;){if(i0===A||A!==null&&i0===A.alternate){G0=i0;break Z}i0=G0(i0),A=G0(A)}G0=null}else G0=null;g!==null&&aM(f,S,g,G0,!1),$0!==null&&L1!==null&&aM(f,L1,$0,G0,!0)}}}$:{if(S=P?D0(P):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var Q0=MB;else if(BB(S))if(PW)Q0=FP;else{Q0=HP;var E0=BP}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?P&&v$(P.elementType)&&(Q0=MB):Q0=MP;if(Q0&&(Q0=Q0($,P))){HB(f,Q0,G,k);break $}E0&&E0($,S,P),$==="focusout"&&P&&S.type==="number"&&P.memoizedProps.value!=null&&jX(S,"number",S.value)}switch(E0=P?D0(P):window,$){case"focusin":if(BB(E0)||E0.contentEditable==="true")S7=E0,GN=P,_Z=null;break;case"focusout":_Z=GN=S7=null;break;case"mousedown":XN=!0;break;case"contextmenu":case"mouseup":case"dragend":XN=!1,LB(f,G,k);break;case"selectionchange":if(pI)break;case"keydown":case"keyup":LB(f,G,k)}var z0;if(JN)$:{switch($){case"compositionstart":var K0="onCompositionStart";break $;case"compositionend":K0="onCompositionEnd";break $;case"compositionupdate":K0="onCompositionUpdate";break $}K0=void 0}else E7?UB($,G)&&(K0="onCompositionEnd"):$==="keydown"&&G.keyCode===RW&&(K0="onCompositionStart");if(K0&&(zW&&G.locale!=="ko"&&(E7||K0!=="onCompositionStart"?K0==="onCompositionEnd"&&E7&&(z0=YB()):($2=k,eY=("value"in $2)?$2.value:$2.textContent,E7=!0)),E0=GG(P,K0),0<E0.length&&(K0=new WW(K0,$,null,G,k),f.push({event:K0,listeners:E0}),z0?K0.data=z0:(z0=KB(G),z0!==null&&(K0.data=z0)))),z0=mI?YP($,G):NP($,G))K0=GG(P,"onBeforeInput"),0<K0.length&&(E0=new OI("onBeforeInput","beforeinput",null,G,k),f.push({event:E0,listeners:K0}),E0.data=z0);ZC(f,$,P,G,k)}nM(f,Z)})}function JZ($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function GG($,Z){for(var G=Z+"Capture",Y=[];$!==null;){var U=$,B=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||B===null||(U=k$($,G),U!=null&&Y.unshift(JZ($,U,B)),U=k$($,Z),U!=null&&Y.push(JZ($,U,B))),$.tag===3)return Y;$=$.return}return[]}function QC($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function aM($,Z,G,Y,U){for(var B=Z._reactName,W=[];G!==null&&G!==Y;){var R=G,L=R.alternate,P=R.stateNode;if(R=R.tag,L!==null&&L===Y)break;R!==5&&R!==26&&R!==27||P===null||(L=P,U?(P=k$(G,B),P!=null&&W.unshift(JZ(G,P,L))):U||(P=k$(G,B),P!=null&&W.push(JZ(G,P,L)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function WY($,Z){JP($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||HW||(HW=!0,$==="select"&&Z.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var G={registrationNameDependencies:N9,possibleRegistrationNames:nY};v$($)||typeof Z.is==="string"||XP($,Z,G),Z.contentEditable&&!Z.suppressContentEditableWarning&&Z.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function K5($,Z,G,Y){Z!==G&&(G=n8(G),n8(Z)!==G&&(Y[$]=Z))}function JC($,Z,G){Z.forEach(function(Y){G[eM(Y)]=Y==="style"?RY($):$.getAttribute(Y)})}function E4($,Z){Z===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",$,$,$):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",$,typeof Z)}function iM($,Z){return $=$.namespaceURI===PG||$.namespaceURI===I7?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function n8($){return k8($)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",x2($)),U5($)),(typeof $==="string"?$:""+$).replace(WO,`
176
+ `).replace(wO,"")}function tM($,Z){return Z=n8(Z),n8($)===Z?!0:!1}function F1($,Z,G,Y,U,B){switch(G){case"children":if(typeof Y==="string")KJ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||D$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")KJ(""+Y,Z,!1),Z!=="body"&&D$($,""+Y);break;case"className":YJ($,"class",Y);break;case"tabIndex":YJ($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":YJ($,G,Y);break;case"style":JB($,Y,B);break;case"data":if(Z!=="object"){YJ($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||G!=="href")){G==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',G,G),$.removeAttribute(G);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}H1(Y,G),Y=b$(""+Y),$.setAttribute(G,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?G==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof Y==="function"&&(U.encType==null&&U.method==null||K3||(K3=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),U.target==null||U3||(U3=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):Z==="input"||Z==="button"?G==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):Z!=="input"||U.type==="submit"||U.type==="image"||N3?Z!=="button"||U.type==null||U.type==="submit"||N3?typeof Y==="function"&&(U.name==null||iw||(iw=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),U.formEncType==null&&U.formMethod==null||K3||(K3=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),U.formTarget==null||U3||(U3=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(N3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(N3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):G==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof Y==="function"){$.setAttribute(G,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof B==="function"&&(G==="formAction"?(Z!=="input"&&F1($,Z,"name",U.name,U,null),F1($,Z,"formEncType",U.formEncType,U,null),F1($,Z,"formMethod",U.formMethod,U,null),F1($,Z,"formTarget",U.formTarget,U,null)):(F1($,Z,"encType",U.encType,U,null),F1($,Z,"method",U.method,U,null),F1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(G);break}H1(Y,G),Y=b$(""+Y),$.setAttribute(G,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&E4(G,Y),$.onclick=o4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&E4(G,Y),a0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&E4(G,Y),a0("scrollend",$));break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"multiple":$.multiple=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"muted":$.muted=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Y==null||typeof Y==="function"||typeof Y==="boolean"||typeof Y==="symbol"){$.removeAttribute("xlink:href");break}H1(Y,G),G=b$(""+Y),$.setAttributeNS(O9,"xlink:href",G);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(H1(Y,G),$.setAttribute(G,""+Y)):$.removeAttribute(G);break;case"inert":Y!==""||B3[G]||(B3[G]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",G));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Y&&typeof Y!=="function"&&typeof Y!=="symbol"?$.setAttribute(G,""):$.removeAttribute(G);break;case"capture":case"download":Y===!0?$.setAttribute(G,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(H1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(H1(Y,G),$.setAttribute(G,Y)):$.removeAttribute(G);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(G):(H1(Y,G),$.setAttribute(G,Y));break;case"popover":a0("beforetoggle",$),a0("toggle",$),qJ($,"popover",Y);break;case"xlinkActuate":n4($,O9,"xlink:actuate",Y);break;case"xlinkArcrole":n4($,O9,"xlink:arcrole",Y);break;case"xlinkRole":n4($,O9,"xlink:role",Y);break;case"xlinkShow":n4($,O9,"xlink:show",Y);break;case"xlinkTitle":n4($,O9,"xlink:title",Y);break;case"xlinkType":n4($,O9,"xlink:type",Y);break;case"xmlBase":n4($,tN,"xml:base",Y);break;case"xmlLang":n4($,tN,"xml:lang",Y);break;case"xmlSpace":n4($,tN,"xml:space",Y);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),qJ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":tw||Y==null||typeof Y!=="object"||(tw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"?(G=GB(G),qJ($,G,Y)):N9.hasOwnProperty(G)&&Y!=null&&typeof Y!=="function"&&E4(G,Y)}}function wY($,Z,G,Y,U,B){switch(G){case"style":JB($,Y,B);break;case"dangerouslySetInnerHTML":if(Y!=null){if(typeof Y!=="object"||!("__html"in Y))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(G=Y.__html,G!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"children":typeof Y==="string"?D$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&D$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&E4(G,Y),a0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&E4(G,Y),a0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&E4(G,Y),$.onclick=o4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(N9.hasOwnProperty(G))Y!=null&&typeof Y!=="function"&&E4(G,Y);else $:{if(G[0]==="o"&&G[1]==="n"&&(U=G.endsWith("Capture"),Z=G.slice(2,U?G.length-7:void 0),B=$[g5]||null,B=B!=null?B[G]:null,typeof B==="function"&&$.removeEventListener(Z,B,U),typeof Y==="function")){typeof B!=="function"&&B!==null&&(G in $?$[G]=null:$.hasAttribute(G)&&$.removeAttribute(G)),$.addEventListener(Z,Y,U);break $}G in $?$[G]=Y:Y===!0?$.setAttribute(G,""):qJ($,G,Y)}}}function R5($,Z,G){switch(WY(Z,G),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":a0("error",$),a0("load",$);var Y=!1,U=!1,B;for(B in G)if(G.hasOwnProperty(B)){var W=G[B];if(W!=null)switch(B){case"src":Y=!0;break;case"srcSet":U=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:F1($,Z,B,W,G,null)}}U&&F1($,Z,"srcSet",G.srcSet,G,null),Y&&F1($,Z,"src",G.src,G,null);return;case"input":g8("input",G),a0("invalid",$);var R=B=W=U=null,L=null,P=null;for(Y in G)if(G.hasOwnProperty(Y)){var k=G[Y];if(k!=null)switch(Y){case"name":U=k;break;case"type":W=k;break;case"checked":L=k;break;case"defaultChecked":P=k;break;case"value":B=k;break;case"defaultValue":R=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F1($,Z,Y,k,G,null)}}mK($,G),dK($,B,R,L,P,W,U,!1);return;case"select":g8("select",G),a0("invalid",$),Y=W=B=null;for(U in G)if(G.hasOwnProperty(U)&&(R=G[U],R!=null))switch(U){case"value":B=R;break;case"defaultValue":W=R;break;case"multiple":Y=R;default:F1($,Z,U,R,G,null)}lK($,G),Z=B,G=W,$.multiple=!!Y,Z!=null?Z7($,!!Y,Z,!1):G!=null&&Z7($,!!Y,G,!0);return;case"textarea":g8("textarea",G),a0("invalid",$),B=U=Y=null;for(W in G)if(G.hasOwnProperty(W)&&(R=G[W],R!=null))switch(W){case"value":Y=R;break;case"defaultValue":U=R;break;case"children":B=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:F1($,Z,W,R,G,null)}rK($,G),nK($,Y,U,B);return;case"option":pK($,G);for(L in G)if(G.hasOwnProperty(L)&&(Y=G[L],Y!=null))switch(L){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:F1($,Z,L,Y,G,null)}return;case"dialog":a0("beforetoggle",$),a0("toggle",$),a0("cancel",$),a0("close",$);break;case"iframe":case"object":a0("load",$);break;case"video":case"audio":for(Y=0;Y<iZ.length;Y++)a0(iZ[Y],$);break;case"image":a0("error",$),a0("load",$);break;case"details":a0("toggle",$);break;case"embed":case"source":case"link":a0("error",$),a0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in G)if(G.hasOwnProperty(P)&&(Y=G[P],Y!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:F1($,Z,P,Y,G,null)}return;default:if(v$(Z)){for(k in G)G.hasOwnProperty(k)&&(Y=G[k],Y!==void 0&&wY($,Z,k,Y,G,void 0));return}}for(R in G)G.hasOwnProperty(R)&&(Y=G[R],Y!=null&&F1($,Z,R,Y,G,null))}function GC($,Z,G,Y){switch(WY(Z,Y),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var U=null,B=null,W=null,R=null,L=null,P=null,k=null;for(g in G){var f=G[g];if(G.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":L=f;default:Y.hasOwnProperty(g)||F1($,Z,g,null,Y,f)}}for(var S in Y){var g=Y[S];if(f=G[S],Y.hasOwnProperty(S)&&(g!=null||f!=null))switch(S){case"type":B=g;break;case"name":U=g;break;case"checked":P=g;break;case"defaultChecked":k=g;break;case"value":W=g;break;case"defaultValue":R=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:g!==f&&F1($,Z,S,g,Y,f)}}Z=G.type==="checkbox"||G.type==="radio"?G.checked!=null:G.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||aw||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),aw=!0),!Z||Y||ow||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),ow=!0),SX($,W,R,L,P,k,B,U);return;case"select":g=W=R=S=null;for(B in G)if(L=G[B],G.hasOwnProperty(B)&&L!=null)switch(B){case"value":break;case"multiple":g=L;default:Y.hasOwnProperty(B)||F1($,Z,B,null,Y,L)}for(U in Y)if(B=Y[U],L=G[U],Y.hasOwnProperty(U)&&(B!=null||L!=null))switch(U){case"value":S=B;break;case"defaultValue":R=B;break;case"multiple":W=B;default:B!==L&&F1($,Z,U,B,Y,L)}Y=R,Z=W,G=g,S!=null?Z7($,!!Z,S,!1):!!G!==!!Z&&(Y!=null?Z7($,!!Z,Y,!0):Z7($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(R in G)if(U=G[R],G.hasOwnProperty(R)&&U!=null&&!Y.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:F1($,Z,R,null,Y,U)}for(W in Y)if(U=Y[W],B=G[W],Y.hasOwnProperty(W)&&(U!=null||B!=null))switch(W){case"value":S=U;break;case"defaultValue":g=U;break;case"children":break;case"dangerouslySetInnerHTML":if(U!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:U!==B&&F1($,Z,W,U,Y,B)}sK($,S,g);return;case"option":for(var $0 in G)if(S=G[$0],G.hasOwnProperty($0)&&S!=null&&!Y.hasOwnProperty($0))switch($0){case"selected":$.selected=!1;break;default:F1($,Z,$0,null,Y,S)}for(L in Y)if(S=Y[L],g=G[L],Y.hasOwnProperty(L)&&S!==g&&(S!=null||g!=null))switch(L){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:F1($,Z,L,S,Y,g)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var G0 in G)S=G[G0],G.hasOwnProperty(G0)&&S!=null&&!Y.hasOwnProperty(G0)&&F1($,Z,G0,null,Y,S);for(P in Y)if(S=Y[P],g=G[P],Y.hasOwnProperty(P)&&S!==g&&(S!=null||g!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F1($,Z,P,S,Y,g)}return;default:if(v$(Z)){for(var L1 in G)S=G[L1],G.hasOwnProperty(L1)&&S!==void 0&&!Y.hasOwnProperty(L1)&&wY($,Z,L1,void 0,Y,S);for(k in Y)S=Y[k],g=G[k],!Y.hasOwnProperty(k)||S===g||S===void 0&&g===void 0||wY($,Z,k,S,Y,g);return}}for(var i0 in G)S=G[i0],G.hasOwnProperty(i0)&&S!=null&&!Y.hasOwnProperty(i0)&&F1($,Z,i0,null,Y,S);for(f in Y)S=Y[f],g=G[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||F1($,Z,f,S,Y,g)}function eM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function RY($){var Z={};$=$.style;for(var G=0;G<$.length;G++){var Y=$[G];Z[Y]=$.getPropertyValue(Y)}return Z}function $F($,Z,G){if(Z!=null&&typeof Z!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var Y,U=Y="",B;for(B in Z)if(Z.hasOwnProperty(B)){var W=Z[B];W!=null&&typeof W!=="boolean"&&W!==""&&(B.indexOf("--")===0?(V$(W,B),Y+=U+B+":"+(""+W).trim()):typeof W!=="number"||W===0||KW.has(B)?(V$(W,B),Y+=U+B.replace(XW,"-$1").toLowerCase().replace(qW,"-ms-")+":"+(""+W).trim()):Y+=U+B.replace(XW,"-$1").toLowerCase().replace(qW,"-ms-")+":"+W+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=n8(Y),n8(Z)!==Y&&(G.style=RY($)))}}function S6($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(H1(Y,Z),$===""+Y)return}K5(Z,$,Y,B)}function ZF($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null){switch(typeof Y){case"function":case"symbol":return}if(!Y)return}else switch(typeof Y){case"function":case"symbol":break;default:if(Y)return}K5(Z,$,Y,B)}function zY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":break;default:if(H1(Y,G),$===""+Y)return}K5(Z,$,Y,B)}function QF($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Y))return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Y)&&(H1(Y,Z),$===""+Y))return}K5(Z,$,Y,B)}function TY($,Z,G,Y,U,B){if(U.delete(G),$=$.getAttribute(G),$===null)switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":return}else if(Y!=null)switch(typeof Y){case"function":case"symbol":case"boolean":break;default:if(H1(Y,Z),G=b$(""+Y),$===G)return}K5(Z,$,Y,B)}function JF($,Z,G,Y){for(var U={},B=new Set,W=$.attributes,R=0;R<W.length;R++)switch(W[R].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[R].name)}if(v$(Z)){for(var L in G)if(G.hasOwnProperty(L)){var P=G[L];if(P!=null){if(N9.hasOwnProperty(L))typeof P!=="function"&&E4(L,P);else if(G.suppressHydrationWarning!==!0)switch(L){case"children":typeof P!=="string"&&typeof P!=="number"||K5("children",$.textContent,P,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,P=P?P.__html:void 0,P!=null&&(P=iM($,P),K5(L,W,P,U));continue;case"style":B.delete(L),$F($,P,U);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(L.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",L);continue;case"className":B.delete("class"),W=hK($,"class",P),K5("className",W,P,U);continue;default:Y.context===R8&&Z!=="svg"&&Z!=="math"?B.delete(L.toLowerCase()):B.delete(L),W=hK($,L,P),K5(L,W,P,U)}}}}else for(P in G)if(G.hasOwnProperty(P)&&(L=G[P],L!=null)){if(N9.hasOwnProperty(P))typeof L!=="function"&&E4(P,L);else if(G.suppressHydrationWarning!==!0)switch(P){case"children":typeof L!=="string"&&typeof L!=="number"||K5("children",$.textContent,L,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=iM($,L),W!==L&&(U[P]={__html:W}));continue;case"className":S6($,P,"class",L,B,U);continue;case"tabIndex":S6($,P,"tabindex",L,B,U);continue;case"style":B.delete(P),$F($,L,U);continue;case"multiple":B.delete(P),K5(P,$.multiple,L,U);continue;case"muted":B.delete(P),K5(P,$.muted,L,U);continue;case"autoFocus":B.delete("autofocus"),K5(P,$.autofocus,L,U);continue;case"data":if(Z!=="object"){B.delete(P),W=$.getAttribute("data"),K5(P,W,L,U);continue}case"src":case"href":if(!(L!==""||Z==="a"&&P==="href"||Z==="object"&&P==="data")){P==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',P,P):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',P,P);continue}TY($,P,P,L,B,U);continue;case"action":case"formAction":if(W=$.getAttribute(P),typeof L==="function"){B.delete(P.toLowerCase()),P==="formAction"?(B.delete("name"),B.delete("formenctype"),B.delete("formmethod"),B.delete("formtarget")):(B.delete("enctype"),B.delete("method"),B.delete("target"));continue}else if(W===RO){B.delete(P.toLowerCase()),K5(P,"function",L,U);continue}TY($,P,P.toLowerCase(),L,B,U);continue;case"xlinkHref":TY($,P,"xlink:href",L,B,U);continue;case"contentEditable":zY($,P,"contenteditable",L,B,U);continue;case"spellCheck":zY($,P,"spellcheck",L,B,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":zY($,P,P,L,B,U);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":ZF($,P,P.toLowerCase(),L,B,U);continue;case"capture":case"download":$:{R=$;var k=W=P,f=U;if(B.delete(k),R=R.getAttribute(k),R===null)switch(typeof L){case"undefined":case"function":case"symbol":break $;default:if(L===!1)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":break;case"boolean":if(L===!0&&R==="")break $;break;default:if(H1(L,W),R===""+L)break $}K5(W,R,L,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(R=$,k=W=P,f=U,B.delete(k),R=R.getAttribute(k),R===null)switch(typeof L){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(L)||1>L)break $}else if(L!=null)switch(typeof L){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(L)||1>L)&&(H1(L,W),R===""+L))break $}K5(W,R,L,f)}continue;case"rowSpan":QF($,P,"rowspan",L,B,U);continue;case"start":QF($,P,P,L,B,U);continue;case"xHeight":S6($,P,"x-height",L,B,U);continue;case"xlinkActuate":S6($,P,"xlink:actuate",L,B,U);continue;case"xlinkArcrole":S6($,P,"xlink:arcrole",L,B,U);continue;case"xlinkRole":S6($,P,"xlink:role",L,B,U);continue;case"xlinkShow":S6($,P,"xlink:show",L,B,U);continue;case"xlinkTitle":S6($,P,"xlink:title",L,B,U);continue;case"xlinkType":S6($,P,"xlink:type",L,B,U);continue;case"xmlBase":S6($,P,"xml:base",L,B,U);continue;case"xmlLang":S6($,P,"xml:lang",L,B,U);continue;case"xmlSpace":S6($,P,"xml:space",L,B,U);continue;case"inert":L!==""||B3[P]||(B3[P]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",P)),ZF($,P,P,L,B,U);continue;default:if(!(2<P.length)||P[0]!=="o"&&P[0]!=="O"||P[1]!=="n"&&P[1]!=="N"){R=GB(P),W=!1,Y.context===R8&&Z!=="svg"&&Z!=="math"?B.delete(R.toLowerCase()):(k=P.toLowerCase(),k=CG.hasOwnProperty(k)?CG[k]||null:null,k!==null&&k!==P&&(W=!0,B.delete(k)),B.delete(R));$:if(k=$,f=R,R=L,E$(f))if(k.hasAttribute(f))k=k.getAttribute(f),H1(R,f),R=k===""+R?R:k;else{switch(typeof R){case"function":case"symbol":break $;case"boolean":if(k=f.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}R=R===void 0?void 0:null}else R=void 0;W||K5(P,R,L,U)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&JC($,B,U),Object.keys(U).length===0?null:U}function XC($,Z){switch($.length){case 0:return"";case 1:return $[0];case 2:return $[0]+" "+Z+" "+$[1];default:return $.slice(0,-1).join(", ")+", "+Z+" "+$[$.length-1]}}function GF($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qC(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,G=performance.getEntriesByType("resource"),Y=0;Y<G.length;Y++){var U=G[Y],B=U.transferSize,W=U.initiatorType,R=U.duration;if(B&&R&&GF(W)){W=0,R=U.responseEnd;for(Y+=1;Y<G.length;Y++){var L=G[Y],P=L.startTime;if(P>R)break;var{transferSize:k,initiatorType:f}=L;k&&GF(f)&&(L=L.responseEnd,W+=k*(L<R?1:(R-P)/(L-P)))}if(--Y,Z+=8*(B+W)/(U.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function XG($){return $.nodeType===9?$:$.ownerDocument}function XF($){switch($){case I7:return $$;case PG:return M3;default:return R8}}function qF($,Z){if($===R8)switch(Z){case"svg":return $$;case"math":return M3;default:return R8}return $===$$&&Z==="foreignObject"?R8:$}function LY($,Z){return $==="textarea"||$==="noscript"||typeof Z.children==="string"||typeof Z.children==="number"||typeof Z.children==="bigint"||typeof Z.dangerouslySetInnerHTML==="object"&&Z.dangerouslySetInnerHTML!==null&&Z.dangerouslySetInnerHTML.__html!=null}function YC(){var $=window.event;if($&&$.type==="popstate"){if($===QU)return!1;return QU=$,!0}return QU=null,!1}function GZ(){var $=window.event;return $&&$!==$Q?$.type:null}function XZ(){var $=window.event;return $&&$!==$Q?$.timeStamp:-1.1}function NC($){setTimeout(function(){throw $})}function UC($,Z,G){switch(Z){case"button":case"input":case"select":case"textarea":G.autoFocus&&$.focus();break;case"img":G.src?$.src=G.src:G.srcSet&&($.srcset=G.srcSet)}}function KC(){}function BC($,Z,G,Y){GC($,Z,G,Y),$[g5]=Y}function YF($){D$($,"")}function HC($,Z,G){$.nodeValue=G}function NF($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[g5]||null;if(Z!==null){var G=j0($);G!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,X0(G,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):Z.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,X0(G,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function o8($){return $==="head"}function MC($,Z){$.removeChild(Z)}function FC($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function UF($,Z){var G=Z,Y=0;do{var U=G.nextSibling;if($.removeChild(G),U&&U.nodeType===8)if(G=U.data,G===eZ||G===H3){if(Y===0){$.removeChild(U),z7(Z);return}Y--}else if(G===tZ||G===T2||G===A9||G===e7||G===V9)Y++;else if(G===TO)qZ($.ownerDocument.documentElement);else if(G===_O){G=$.ownerDocument.head,qZ(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:R}=B;B[MZ]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===LO&&qZ($.ownerDocument.body);G=U}while(G);z7(Z)}function KF($,Z){var G=$;$=0;do{var Y=G.nextSibling;if(G.nodeType===1?Z?(G._stashedDisplay=G.style.display,G.style.display="none"):(G.style.display=G._stashedDisplay||"",G.getAttribute("style")===""&&G.removeAttribute("style")):G.nodeType===3&&(Z?(G._stashedText=G.nodeValue,G.nodeValue=""):G.nodeValue=G._stashedText||""),Y&&Y.nodeType===8)if(G=Y.data,G===eZ)if($===0)break;else $--;else G!==tZ&&G!==T2&&G!==A9&&G!==e7||$++;G=Y}while(G)}function WC($){KF($,!0)}function wC($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function RC($){$.nodeValue=""}function zC($){KF($,!1)}function TC($,Z){Z=Z[PO],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function LC($,Z){$.nodeValue=Z}function _Y($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var G=Z;switch(Z=Z.nextSibling,G.nodeName){case"HTML":case"HEAD":case"BODY":_Y(G),Z0(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function _C($,Z,G,Y){for(;$.nodeType===1;){var U=G;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){H1(U.name,"name");var B=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[MZ])switch(Z){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(B=$.getAttribute("rel"),B==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(B!==U.rel||$.getAttribute("href")!==(U.href==null||U.href===""?null:U.href)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin)||$.getAttribute("title")!==(U.title==null?null:U.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(B=$.getAttribute("src"),(B!==(U.src==null?null:U.src)||$.getAttribute("type")!==(U.type==null?null:U.type)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin))&&B&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=w6($.nextSibling),$===null)break}return null}function PC($,Z,G){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=w6($.nextSibling),$===null)return null}return $}function BF($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=w6($.nextSibling),$===null)return null}return $}function PY($){return $.data===T2||$.data===A9}function CY($){return $.data===e7||$.data===T2&&$.ownerDocument.readyState!==$R}function CC($,Z){var G=$.ownerDocument;if($.data===A9)$._reactRetry=Z;else if($.data!==T2||G.readyState!==$R)Z();else{var Y=function(){Z(),G.removeEventListener("DOMContentLoaded",Y)};G.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function w6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===tZ||Z===e7||Z===T2||Z===A9||Z===V9||Z===eN||Z===ew)break;if(Z===eZ||Z===H3)return null}}return $}function HF($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),G={},Y=$.attributes,U=0;U<Y.length;U++){var B=Y[U];G[eM(B.name)]=B.name.toLowerCase()==="style"?RY($):B.value}return{type:Z,props:G}}return $.nodeType===8?$.data===V9?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function MF($,Z,G){return G===null||G[zO]!==!0?($.nodeValue===Z?$=null:(Z=n8(Z),$=n8($.nodeValue)===Z?null:$.nodeValue),$):null}function IY($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===eZ||G===H3){if(Z===0)return w6($.nextSibling);Z--}else G!==tZ&&G!==e7&&G!==T2&&G!==A9&&G!==V9||Z++}$=$.nextSibling}return null}function FF($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===tZ||G===e7||G===T2||G===A9||G===V9){if(Z===0)return $;Z--}else G!==eZ&&G!==H3||Z++}$=$.previousSibling}return null}function IC($){z7($)}function OC($){z7($)}function VC($){z7($)}function WF($,Z,G,Y,U){switch(U&&fX($,Y.ancestorInfo),Z=XG(G),$){case"html":if($=Z.documentElement,!$)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"head":if($=Z.head,!$)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"body":if($=Z.body,!$)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function AC($,Z,G,Y){if(!G[e8]&&j0(G)){var U=G.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",U,U,U)}switch($){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(U=G.attributes;U.length;)G.removeAttributeNode(U[0]);R5(G,$,Z),G[z5]=Y,G[g5]=Z}function qZ($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);Z0($)}function qG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function wF($,Z,G){var Y=Z$;if(Y&&typeof Z==="string"&&Z){var U=E6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof G==="string"&&(U+='[crossorigin="'+G+'"]'),qR.has(U)||(qR.add(U),$={rel:$,crossOrigin:G,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),R5(Z,"link",$),T0(Z),Y.head.appendChild(Z)))}}function RF($,Z,G,Y){var U=(U=i8.current)?qG(U):null;if(!U)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof G.precedence==="string"&&typeof G.href==="string"?(G=w7(G.href),Z=$1(U).hoistableStyles,Y=Z.get(G),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(G,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(G.rel==="stylesheet"&&typeof G.href==="string"&&typeof G.precedence==="string"){$=w7(G.href);var B=$1(U).hoistableStyles,W=B.get($);if(!W&&(U=U.ownerDocument||U,W={type:"stylesheet",instance:null,count:0,state:{loading:S9,preload:null}},B.set($,W),(B=U.querySelector(YZ($)))&&!B._p&&(W.instance=B,W.state.loading=ZQ|x6),!m6.has($))){var R={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};m6.set($,R),B||EC(U,$,R,W.state)}if(Z&&Y===null)throw G=`
177
+
178
+ - `+YG(Z)+`
179
+ + `+YG(G),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+G);return W}if(Z&&Y!==null)throw G=`
180
+
181
+ - `+YG(Z)+`
182
+ + `+YG(G),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+G);return null;case"script":return Z=G.async,G=G.src,typeof G==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(G=R7(G),Z=$1(U).hoistableScripts,Y=Z.get(G),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(G,Y)),Y):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+$+'". this is a bug in React.')}}function YG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):$4.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):$4.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):$4.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function w7($){return'href="'+E6($)+'"'}function YZ($){return'link[rel="stylesheet"]['+$+"]"}function zF($){return c0({},$,{"data-precedence":$.precedence,precedence:null})}function EC($,Z,G,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=ZQ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=ZQ}),Z.addEventListener("error",function(){return Y.loading|=GR}),R5(Z,"link",G),T0(Z),$.head.appendChild(Z))}function R7($){return'[src="'+E6($)+'"]'}function NZ($){return"script[async]"+$}function TF($,Z,G){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+E6(G.href)+'"]');if(Y)return Z.instance=Y,T0(Y),Y;var U=c0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),T0(Y),R5(Y,"style",U),NG(Y,G.precedence,$),Z.instance=Y;case"stylesheet":U=w7(G.href);var B=$.querySelector(YZ(U));if(B)return Z.state.loading|=x6,Z.instance=B,T0(B),B;Y=zF(G),(U=m6.get(U))&&OY(Y,U),B=($.ownerDocument||$).createElement("link"),T0(B);var W=B;return W._p=new Promise(function(R,L){W.onload=R,W.onerror=L}),R5(B,"link",Y),Z.state.loading|=x6,NG(B,G.precedence,$),Z.instance=B;case"script":if(B=R7(G.src),U=$.querySelector(NZ(B)))return Z.instance=U,T0(U),U;if(Y=G,U=m6.get(B))Y=c0({},G),VY(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),T0(U),R5(U,"link",Y),$.head.appendChild(U),Z.instance=U;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+Z.type+'". this is a bug in React.')}else Z.type==="stylesheet"&&(Z.state.loading&x6)===S9&&(Y=Z.instance,Z.state.loading|=x6,NG(Y,G.precedence,$));return Z.instance}function NG($,Z,G){for(var Y=G.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=Y.length?Y[Y.length-1]:null,B=U,W=0;W<Y.length;W++){var R=Y[W];if(R.dataset.precedence===Z)B=R;else if(B!==U)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=G.nodeType===9?G.head:G,Z.insertBefore($,Z.firstChild))}function OY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function VY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function LF($,Z,G){if(F3===null){var Y=new Map,U=F3=new Map;U.set(G,Y)}else U=F3,Y=U.get(G),Y||(Y=new Map,U.set(G,Y));if(Y.has($))return Y;Y.set($,null),G=G.getElementsByTagName($);for(U=0;U<G.length;U++){var B=G[U];if(!(B[MZ]||B[z5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==I7){var W=B.getAttribute(Z)||"";W=$+W;var R=Y.get(W);R?R.push(B):Y.set(W,[B])}}return Y}function _F($,Z,G){$=$.ownerDocument||$,$.head.insertBefore(G,Z==="title"?$.querySelector("head > title"):null)}function SC($,Z,G){var Y=!G.ancestorInfo.containerTagInScope;if(G.context===$$||Z.itemProp!=null)return!Y||Z.itemProp==null||$!=="meta"&&$!=="title"&&$!=="style"&&$!=="link"&&$!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",$,$),!1;switch($){case"meta":case"title":return!0;case"style":if(typeof Z.precedence!=="string"||typeof Z.href!=="string"||Z.href===""){Y&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""||Z.onLoad||Z.onError){if(Z.rel==="stylesheet"&&typeof Z.precedence==="string"){$=Z.href;var{onError:U,disabled:B}=Z;G=[],Z.onLoad&&G.push("`onLoad`"),U&&G.push("`onError`"),B!=null&&G.push("`disabled`"),U=XC(G,"and"),U+=G.length===1?" prop":" props",B=G.length===1?"an "+U:"the "+U,G.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',$,B,U)}Y&&(typeof Z.rel!=="string"||typeof Z.href!=="string"||Z.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(Z.onError||Z.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(Z.rel){case"stylesheet":return $=Z.precedence,Z=Z.disabled,typeof $!=="string"&&Y&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof $==="string"&&Z==null;default:return!0}case"script":if($=Z.async&&typeof Z.async!=="function"&&typeof Z.async!=="symbol",!$||Z.onLoad||Z.onError||!Z.src||typeof Z.src!=="string"){Y&&($?Z.onLoad||Z.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":Y&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function PF($){return $.type==="stylesheet"&&($.state.loading&XR)===S9?!1:!0}function jC($,Z,G,Y){if(G.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(G.state.loading&x6)===S9){if(G.instance===null){var U=w7(Y.href),B=Z.querySelector(YZ(U));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=UG.bind($),Z.then($,$)),G.state.loading|=x6,G.instance=B,T0(B);return}B=Z.ownerDocument||Z,Y=zF(Y),(U=m6.get(U))&&OY(Y,U),B=B.createElement("link"),T0(B);var W=B;W._p=new Promise(function(R,L){W.onload=R,W.onerror=L}),R5(B,"link",Y),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&XR)===S9&&($.count++,G=UG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function DC($,Z){return $.stylesheets&&$.count===0&&KG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var Y=setTimeout(function(){if($.stylesheets&&KG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},OO+Z);0<$.imgBytes&&GU===0&&(GU=125*qC()*AO);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&KG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>GU?50:VO)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function UG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)KG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function KG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,W3=new Map,Z.forEach(vC,$),W3=null,UG.call($))}function vC($,Z){if(!(Z.state.loading&x6)){var G=W3.get($);if(G)var Y=G.get(XU);else{G=new Map,W3.set($,G);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<U.length;B++){var W=U[B];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")G.set(W.dataset.precedence,W),Y=W}Y&&G.set(XU,Y)}U=Z.instance,W=U.getAttribute("data-precedence"),B=G.get(W)||Y,B===Y&&G.set(XU,U),G.set(W,U),this.count++,Y=UG.bind(this),U.addEventListener("load",Y),U.addEventListener("error",Y),B?B.parentNode.insertBefore(U,B.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(U,$.firstChild)),Z.state.loading|=x6}}function bC($,Z,G,Y,U,B,W,R,L){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=E9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$7(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$7(0),this.hiddenUpdates=$7(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=B,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(Z=0;31>Z;Z++)$.push(new Set);this._debugRootType=G?"hydrateRoot()":"createRoot()"}function CF($,Z,G,Y,U,B,W,R,L,P,k,f){return $=new bC($,Z,G,W,L,P,k,f,R),Z=tI,B===!0&&(Z|=S5|Q4),Z|=y0,B=_(3,null,null,Z),$.current=B,B.stateNode=$,Z=$q(),Z9(Z),$.pooledCache=Z,Z9(Z),B.memoizedState={element:Y,isDehydrated:G,cache:Z},Xq(B),$}function IF($){if(!$)return J2;return $=J2,$}function AY($,Z,G,Y,U,B){if(E5&&typeof E5.onScheduleFiberRoot==="function")try{E5.onScheduleFiberRoot(P7,Y,G)}catch(W){v4||(v4=!0,console.error("React instrumentation encountered an error: %o",W))}U=IF(U),Y.context===null?Y.context=U:Y.pendingContext=U,D4&&z6!==null&&!KR&&(KR=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
183
+
184
+ Check the render method of %s.`,d(z6)||"Unknown")),Y=d8(Z),Y.payload={element:G},B=B===void 0?null:B,B!==null&&(typeof B!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",B),Y.callback=B),G=p8($,Y,Z),G!==null&&(w4(Z,"root.render()",null),f1(G,$,Z),d$(G,$,Z))}function OF($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function EY($,Z){OF($,Z),($=$.alternate)&&OF($,Z)}function VF($){if($.tag===13||$.tag===31){var Z=A5($,67108864);Z!==null&&f1(Z,$,67108864),EY($,67108864)}}function AF($){if($.tag===13||$.tag===31){var Z=W6($);Z=r2(Z);var G=A5($,Z);G!==null&&f1(G,$,Z),EY($,Z)}}function kC(){return z6}function fC($,Z,G,Y){var U=x.T;x.T=null;var B=Y1.p;try{Y1.p=T6,SY($,Z,G,Y)}finally{Y1.p=B,x.T=U}}function yC($,Z,G,Y){var U=x.T;x.T=null;var B=Y1.p;try{Y1.p=Z4,SY($,Z,G,Y)}finally{Y1.p=B,x.T=U}}function SY($,Z,G,Y){if(R3){var U=jY(Y);if(U===null)FY($,Z,Y,z3,G),SF($,Y);else if(gC(U,$,Z,G,Y))Y.stopPropagation();else if(SF($,Y),Z&4&&-1<SO.indexOf($)){for(;U!==null;){var B=j0(U);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var W=H4(B.pendingLanes);if(W!==0){var R=B;R.pendingLanes|=2;for(R.entangledLanes|=2;W;){var L=1<<31-y5(W);R.entanglements[1]|=L,W&=~L}A4(B),(e0&(G5|C6))===F5&&($3=B5()+hw,QZ(0,!1))}}break;case 31:case 13:R=A5(B,2),R!==null&&f1(R,B,2),M7(),EY(B,2)}if(B=jY(Y),B===null&&FY($,Z,Y,z3,G),B===U)break;U=B}U!==null&&Y.stopPropagation()}else FY($,Z,Y,null,G)}}function jY($){return $=yX($),DY($)}function DY($){if(z3=null,$=N0($),$!==null){var Z=D($);if(Z===null)$=null;else{var G=Z.tag;if(G===13){if($=h(Z),$!==null)return $;$=null}else if(G===31){if($=p(Z),$!==null)return $;$=null}else if(G===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return z3=$,null}function EF($){switch($){case"beforetoggle":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"toggle":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 T6;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Z4;case"message":switch(rC()){case cY:return T6;case lY:return Z4;case _7:case sC:return k4;case rY:return LG;default:return k4}default:return k4}}function SF($,Z){switch($){case"focusin":case"focusout":L2=null;break;case"dragenter":case"dragleave":_2=null;break;case"mouseover":case"mouseout":P2=null;break;case"pointerover":case"pointerout":JQ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":GQ.delete(Z.pointerId)}}function UZ($,Z,G,Y,U,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:G,eventSystemFlags:Y,nativeEvent:B,targetContainers:[U]},Z!==null&&(Z=j0(Z),Z!==null&&VF(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function gC($,Z,G,Y,U){switch(Z){case"focusin":return L2=UZ(L2,$,Z,G,Y,U),!0;case"dragenter":return _2=UZ(_2,$,Z,G,Y,U),!0;case"mouseover":return P2=UZ(P2,$,Z,G,Y,U),!0;case"pointerover":var B=U.pointerId;return JQ.set(B,UZ(JQ.get(B)||null,$,Z,G,Y,U)),!0;case"gotpointercapture":return B=U.pointerId,GQ.set(B,UZ(GQ.get(B)||null,$,Z,G,Y,U)),!0}return!1}function jF($){var Z=N0($.target);if(Z!==null){var G=D(Z);if(G!==null){if(Z=G.tag,Z===13){if(Z=h(G),Z!==null){$.blockedOn=Z,r($.priority,function(){AF(G)});return}}else if(Z===31){if(Z=p(G),Z!==null){$.blockedOn=Z,r($.priority,function(){AF(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function BG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var G=jY($.nativeEvent);if(G===null){G=$.nativeEvent;var Y=new G.constructor(G.type,G),U=Y;FZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),FZ=U,G.target.dispatchEvent(Y),FZ===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),FZ=null}else return Z=j0(G),Z!==null&&VF(Z),$.blockedOn=G,!1;Z.shift()}return!0}function DF($,Z,G){BG($)&&G.delete(Z)}function hC(){qU=!1,L2!==null&&BG(L2)&&(L2=null),_2!==null&&BG(_2)&&(_2=null),P2!==null&&BG(P2)&&(P2=null),JQ.forEach(DF),GQ.forEach(DF)}function HG($,Z){$.blockedOn===Z&&($.blockedOn=null,qU||(qU=!0,Q1.unstable_scheduleCallback(Q1.unstable_NormalPriority,hC)))}function vF($){T3!==$&&(T3=$,Q1.unstable_scheduleCallback(Q1.unstable_NormalPriority,function(){T3===$&&(T3=null);for(var Z=0;Z<$.length;Z+=3){var G=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(DY(Y||G)===null)continue;else break;var B=j0(G);B!==null&&($.splice(Z,3),Z-=3,G={pending:!0,data:U,method:G.method,action:Y},Object.freeze(G),Dq(B,G,Y,U))}}))}function z7($){function Z(L){return HG(L,$)}L2!==null&&HG(L2,$),_2!==null&&HG(_2,$),P2!==null&&HG(P2,$),JQ.forEach(Z),GQ.forEach(Z);for(var G=0;G<C2.length;G++){var Y=C2[G];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<C2.length&&(G=C2[0],G.blockedOn===null);)jF(G),G.blockedOn===null&&C2.shift();if(G=($.ownerDocument||$).$$reactFormReplay,G!=null)for(Y=0;Y<G.length;Y+=3){var U=G[Y],B=G[Y+1],W=U[g5]||null;if(typeof B==="function")W||vF(G);else if(W){var R=null;if(B&&B.hasAttribute("formAction")){if(U=B,W=B[g5]||null)R=W.formAction;else if(DY(U)!==null)continue}else R=W.action;typeof R==="function"?G[Y+1]=R:(G.splice(Y,3),Y-=3),vF(G)}}}function bF(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(W){return U=W})},focusReset:"manual",scroll:"manual"})}function Z(){U!==null&&(U(),U=null),Y||setTimeout(G,20)}function G(){if(!Y&&!navigation.transition){var B=navigation.currentEntry;B&&B.url!=null&&navigation.navigate(B.url,{state:B.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var Y=!1,U=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(G,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function vY($){this._internalRoot=$}function MG($){this._internalRoot=$}function kF($){$[e8]&&($._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c0=Object.assign,uC=Symbol.for("react.element"),S4=Symbol.for("react.transitional.element"),T7=Symbol.for("react.portal"),L7=Symbol.for("react.fragment"),FG=Symbol.for("react.strict_mode"),bY=Symbol.for("react.profiler"),kY=Symbol.for("react.consumer"),j4=Symbol.for("react.context"),KZ=Symbol.for("react.forward_ref"),fY=Symbol.for("react.suspense"),yY=Symbol.for("react.suspense_list"),WG=Symbol.for("react.memo"),R6=Symbol.for("react.lazy"),gY=Symbol.for("react.activity"),xC=Symbol.for("react.memo_cache_sentinel"),fF=Symbol.iterator,mC=Symbol.for("react.client.reference"),Q5=Array.isArray,x=M$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y1=wK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,dC=Object.freeze({pending:!1,data:null,method:null,action:null}),hY=[],uY=[],J8=-1,a8=H0(null),BZ=H0(null),i8=H0(null),wG=H0(null),HZ=0,yF,gF,hF,uF,xF,mF,dF;v.__reactDisabledLog=!0;var xY,pF,mY=!1,dY=new(typeof WeakMap==="function"?WeakMap:Map),z6=null,D4=!1,$4=Object.prototype.hasOwnProperty,pY=Q1.unstable_scheduleCallback,pC=Q1.unstable_cancelCallback,cC=Q1.unstable_shouldYield,lC=Q1.unstable_requestPaint,B5=Q1.unstable_now,rC=Q1.unstable_getCurrentPriorityLevel,cY=Q1.unstable_ImmediatePriority,lY=Q1.unstable_UserBlockingPriority,_7=Q1.unstable_NormalPriority,sC=Q1.unstable_LowPriority,rY=Q1.unstable_IdlePriority,nC=Q1.log,oC=Q1.unstable_setDisableYieldValue,P7=null,E5=null,v4=!1,b4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",y5=Math.clz32?Math.clz32:GJ,aC=Math.log,iC=Math.LN2,RG=256,zG=262144,TG=4194304,T6=2,Z4=8,k4=32,LG=268435456,t8=Math.random().toString(36).slice(2),z5="__reactFiber$"+t8,g5="__reactProps$"+t8,e8="__reactContainer$"+t8,sY="__reactEvents$"+t8,tC="__reactListeners$"+t8,eC="__reactHandles$"+t8,cF="__reactResources$"+t8,MZ="__reactMarker$"+t8,lF=new Set,N9={},nY={},$I={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},ZI=RegExp("^[: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]*$"),rF={},sF={},QI=/[\n"\\]/g,nF=!1,oF=!1,aF=!1,iF=!1,tF=!1,eF=!1,$W=["value","defaultValue"],ZW=!1,QW=/["'&<>\n\t]|^\s|\s$/,JI="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),JW="applet caption html table td th marquee object template foreignObject desc title".split(" "),GI=JW.concat(["button"]),XI="dd dt li option optgroup p rp rt".split(" "),GW={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},_G={},oY={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},XW=/([A-Z])/g,qW=/^ms-/,qI=/^(?:webkit|moz|o)[A-Z]/,YI=/^-ms-/,NI=/-(.)/g,YW=/;\s*$/,C7={},aY={},NW=!1,UW=!1,KW=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),PG="http://www.w3.org/1998/Math/MathML",I7="http://www.w3.org/2000/svg",UI=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),CG={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},BW={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},O7={},KI=RegExp("^(aria)-[: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]*$"),BI=RegExp("^(aria)[A-Z][: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]*$"),HW=!1,h5={},MW=/^on./,HI=/^on[^A-Z]/,MI=RegExp("^(aria)-[: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]*$"),FI=RegExp("^(aria)[A-Z][: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]*$"),WI=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,FZ=null,V7=null,A7=null,iY=!1,f4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tY=!1;if(f4)try{var WZ={};Object.defineProperty(WZ,"passive",{get:function(){tY=!0}}),window.addEventListener("test",WZ,WZ),window.removeEventListener("test",WZ,WZ)}catch($){tY=!1}var $2=null,eY=null,IG=null,U9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},OG=c5(U9),wZ=c0({},U9,{view:0,detail:0}),wI=c5(wZ),$N,ZN,RZ,VG=c0({},wZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gX,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==RZ&&(RZ&&$.type==="mousemove"?($N=$.screenX-RZ.screenX,ZN=$.screenY-RZ.screenY):ZN=$N=0,RZ=$),$N},movementY:function($){return"movementY"in $?$.movementY:ZN}}),FW=c5(VG),RI=c0({},VG,{dataTransfer:0}),zI=c5(RI),TI=c0({},wZ,{relatedTarget:0}),QN=c5(TI),LI=c0({},U9,{animationName:0,elapsedTime:0,pseudoElement:0}),_I=c5(LI),PI=c0({},U9,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),CI=c5(PI),II=c0({},U9,{data:0}),WW=c5(II),OI=WW,VI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AI={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"},EI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},SI=c0({},wZ,{key:function($){if($.key){var Z=VI[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=BJ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?AI[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gX,charCode:function($){return $.type==="keypress"?BJ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?BJ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),jI=c5(SI),DI=c0({},VG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wW=c5(DI),vI=c0({},wZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gX}),bI=c5(vI),kI=c0({},U9,{propertyName:0,elapsedTime:0,pseudoElement:0}),fI=c5(kI),yI=c0({},VG,{deltaX:function($){return"deltaX"in $?$.deltaX:("wheelDeltaX"in $)?-$.wheelDeltaX:0},deltaY:function($){return"deltaY"in $?$.deltaY:("wheelDeltaY"in $)?-$.wheelDeltaY:("wheelDelta"in $)?-$.wheelDelta:0},deltaZ:0,deltaMode:0}),gI=c5(yI),hI=c0({},U9,{newState:0,oldState:0}),uI=c5(hI),xI=[9,13,27,32],RW=229,JN=f4&&"CompositionEvent"in window,zZ=null;f4&&"documentMode"in document&&(zZ=document.documentMode);var mI=f4&&"TextEvent"in window&&!zZ,zW=f4&&(!JN||zZ&&8<zZ&&11>=zZ),TW=32,LW=String.fromCharCode(TW),_W=!1,E7=!1,dI={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},TZ=null,LZ=null,PW=!1;f4&&(PW=UP("input")&&(!document.documentMode||9<document.documentMode));var u5=typeof Object.is==="function"?Object.is:WP,pI=f4&&"documentMode"in document&&11>=document.documentMode,S7=null,GN=null,_Z=null,XN=!1,j7={animationend:n2("Animation","AnimationEnd"),animationiteration:n2("Animation","AnimationIteration"),animationstart:n2("Animation","AnimationStart"),transitionrun:n2("Transition","TransitionRun"),transitionstart:n2("Transition","TransitionStart"),transitioncancel:n2("Transition","TransitionCancel"),transitionend:n2("Transition","TransitionEnd")},qN={},CW={};f4&&(CW=document.createElement("div").style,("AnimationEvent"in window)||(delete j7.animationend.animation,delete j7.animationiteration.animation,delete j7.animationstart.animation),("TransitionEvent"in window)||delete j7.transitionend.transition);var IW=o2("animationend"),OW=o2("animationiteration"),VW=o2("animationstart"),cI=o2("transitionrun"),lI=o2("transitionstart"),rI=o2("transitioncancel"),AW=o2("transitionend"),EW=new Map,YN="abort auxClick beforeToggle 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(" ");YN.push("scrollEnd");var SW=0;if(typeof performance==="object"&&typeof performance.now==="function")var sI=performance,jW=function(){return sI.now()};else{var nI=Date;jW=function(){return nI.now()}}var NN=typeof reportError==="function"?reportError:function($){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $==="object"&&$!==null&&typeof $.message==="string"?String($.message):String($),error:$});if(!window.dispatchEvent(Z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",$);return}console.error($)},oI="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",AG=0,UN=1,KN=2,BN=3,EG="– ",SG="+ ",DW="  ",C1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",j6="Components ⚛",l0="Scheduler ⚛",s0="Blocking",Z2=!1,G8={color:"primary",properties:null,tooltipText:"",track:j6},Q2={start:-0,end:-0,detail:{devtools:G8}},aI=["Changed Props",""],vW="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",iI=["Changed Props",vW],PZ=1,X8=2,D6=[],D7=0,HN=0,J2={};Object.freeze(J2);var v6=null,v7=null,O0=0,tI=1,y0=2,S5=8,Q4=16,eI=32,bW=!1;try{var kW=Object.preventExtensions({})}catch($){bW=!0}var MN=new WeakMap,b7=[],k7=0,jG=null,CZ=0,b6=[],k6=0,K9=null,q8=1,Y8="",T5=null,I1=null,o0=!1,y4=!1,L6=null,G2=null,f6=!1,FN=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),WN=H0(null),wN=H0(null),fW={},DG=null,f7=null,y7=!1,$O=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(G,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(G){return G()})}},ZO=Q1.unstable_scheduleCallback,QO=Q1.unstable_NormalPriority,s1={$$typeof:j4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},n1=Q1.unstable_now,vG=console.createTask?console.createTask:function(){return null},IZ=1,bG=2,H5=-0,X2=-0,N8=-0,U8=null,x5=-1.1,B9=-0,v1=-0,L0=-1.1,P0=-1.1,j1=null,y1=!1,q2=-0,g4=-1.1,OZ=null,Y2=0,RN=null,zN=null,H9=-1.1,VZ=null,g7=-1.1,kG=-1.1,h4=-0,K8=-1.1,y6=-1.1,TN=0,AZ=null,yW=null,gW=null,N2=-1.1,M9=null,U2=-1.1,fG=-1.1,hW=-0,uW=-0,yG=0,B8=null,xW=0,EZ=-1.1,gG=!1,hG=!1,SZ=null,LN=0,F9=0,h7=null,mW=x.S;x.S=function($,Z){if(yw=B5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>K8&&0>y6){K8=n1();var G=XZ(),Y=GZ();if(G!==U2||Y!==M9)U2=-1.1;N2=G,M9=Y}PP($,Z)}mW!==null&&mW($,Z)};var W9=H0(null),J4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},jZ=[],DZ=[],vZ=[],bZ=[],kZ=[],fZ=[],w9=new Set;J4.recordUnsafeLifecycleWarnings=function($,Z){w9.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&jZ.push($),$.mode&S5&&typeof Z.UNSAFE_componentWillMount==="function"&&DZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&vZ.push($),$.mode&S5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&bZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&kZ.push($),$.mode&S5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&fZ.push($))},J4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<jZ.length&&(jZ.forEach(function(R){$.add(d(R)||"Component"),w9.add(R.type)}),jZ=[]);var Z=new Set;0<DZ.length&&(DZ.forEach(function(R){Z.add(d(R)||"Component"),w9.add(R.type)}),DZ=[]);var G=new Set;0<vZ.length&&(vZ.forEach(function(R){G.add(d(R)||"Component"),w9.add(R.type)}),vZ=[]);var Y=new Set;0<bZ.length&&(bZ.forEach(function(R){Y.add(d(R)||"Component"),w9.add(R.type)}),bZ=[]);var U=new Set;0<kZ.length&&(kZ.forEach(function(R){U.add(d(R)||"Component"),w9.add(R.type)}),kZ=[]);var B=new Set;if(0<fZ.length&&(fZ.forEach(function(R){B.add(d(R)||"Component"),w9.add(R.type)}),fZ=[]),0<Z.size){var W=T(Z);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
185
+
186
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
+
188
+ Please update the following components: %s`,W)}0<Y.size&&(W=T(Y),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
+
190
+ * Move data fetching code or side effects to componentDidUpdate.
191
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
192
+
193
+ Please update the following components: %s`,W)),0<B.size&&(W=T(B),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+
197
+ Please update the following components: %s`,W)),0<$.size&&(W=T($),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
198
+
199
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
200
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
201
+
202
+ Please update the following components: %s`,W)),0<G.size&&(W=T(G),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move data fetching code or side effects to componentDidUpdate.
205
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
206
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
207
+
208
+ Please update the following components: %s`,W)),0<U.size&&(W=T(U),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
209
+
210
+ * Move data fetching code or side effects to componentDidUpdate.
211
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
+
213
+ Please update the following components: %s`,W))};var uG=new Map,dW=new Set;J4.recordLegacyContextWarning=function($,Z){var G=null;for(var Y=$;Y!==null;)Y.mode&S5&&(G=Y),Y=Y.return;G===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!dW.has($.type)&&(Y=uG.get(G),$.type.contextTypes!=null||$.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(Y===void 0&&(Y=[],uG.set(G,Y)),Y.push($))},J4.flushLegacyContextWarning=function(){uG.forEach(function($){if($.length!==0){var Z=$[0],G=new Set;$.forEach(function(U){G.add(d(U)||"Component"),dW.add(U.type)});var Y=T(G);X0(Z,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
+
215
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
+
217
+ Please update the following components: %s
218
+
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},J4.discardPendingWarnings=function(){jZ=[],DZ=[],vZ=[],bZ=[],kZ=[],fZ=[],uG=new Map};var pW={react_stack_bottom_frame:function($,Z,G){var Y=D4;D4=!0;try{return $(Z,G)}finally{D4=Y}}},_N=pW.react_stack_bottom_frame.bind(pW),cW={react_stack_bottom_frame:function($){var Z=D4;D4=!0;try{return $.render()}finally{D4=Z}}},lW=cW.react_stack_bottom_frame.bind(cW),rW={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(G){q1($,$.return,G)}}},PN=rW.react_stack_bottom_frame.bind(rW),sW={react_stack_bottom_frame:function($,Z,G,Y,U){try{Z.componentDidUpdate(G,Y,U)}catch(B){q1($,$.return,B)}}},nW=sW.react_stack_bottom_frame.bind(sW),oW={react_stack_bottom_frame:function($,Z){var G=Z.stack;$.componentDidCatch(Z.value,{componentStack:G!==null?G:""})}},JO=oW.react_stack_bottom_frame.bind(oW),aW={react_stack_bottom_frame:function($,Z,G){try{G.componentWillUnmount()}catch(Y){q1($,Z,Y)}}},iW=aW.react_stack_bottom_frame.bind(aW),tW={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},GO=tW.react_stack_bottom_frame.bind(tW),eW={react_stack_bottom_frame:function($,Z,G){try{G()}catch(Y){q1($,Z,Y)}}},XO=eW.react_stack_bottom_frame.bind(eW),$w={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},qO=$w.react_stack_bottom_frame.bind($w),u7=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),CN=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),xG=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),mG={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},R9=null,yZ=!1,x7=null,gZ=0,g0=null,IN,Zw=IN=!1,Qw={},Jw={},Gw={};z=function($,Z,G){if(G!==null&&typeof G==="object"&&G._store&&(!G._store.validated&&G.key==null||G._store.validated===2)){if(typeof G._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");G._store.validated=1;var Y=d($),U=Y||"null";if(!Qw[U]){Qw[U]=!0,G=G._owner,$=$._debugOwner;var B="";$&&typeof $.tag==="number"&&(U=d($))&&(B=`
220
+
221
+ Check the render method of \``+U+"`."),B||Y&&(B=`
222
+
223
+ Check the top-level render call using <`+Y+">.");var W="";G!=null&&$!==G&&(Y=null,typeof G.tag==="number"?Y=d(G):typeof G.name==="string"&&(Y=G.name),Y&&(W=" It was passed a child from "+Y+".")),X0(Z,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',B,W)})}}};var z9=aB(!0),Xw=aB(!1),qw=0,Yw=1,Nw=2,ON=3,K2=!1,Uw=!1,VN=null,AN=!1,m7=H0(null),dG=H0(0),_6=H0(null),g6=null,d7=1,hZ=2,p1=H0(0),pG=0,h6=1,m5=2,P6=4,d5=8,p7,Kw=new Set,Bw=new Set,EN=new Set,Hw=new Set,H8=0,A0=null,W1=null,o1=null,cG=!1,c7=!1,T9=!1,lG=0,uZ=0,M8=null,YO=0,NO=25,u=null,u6=null,F8=-1,xZ=!1,mZ={readContext:S1,use:r8,useCallback:x1,useContext:x1,useEffect:x1,useImperativeHandle:x1,useLayoutEffect:x1,useInsertionEffect:x1,useMemo:x1,useReducer:x1,useRef:x1,useState:x1,useDebugValue:x1,useDeferredValue:x1,useTransition:x1,useSyncExternalStore:x1,useId:x1,useHostTransitionStatus:x1,useFormState:x1,useActionState:x1,useOptimistic:x1,useMemoCache:x1,useCacheRefresh:x1};mZ.useEffectEvent=x1;var SN=null,Mw=null,jN=null,Fw=null,u4=null,G4=null,rG=null;SN={readContext:function($){return S1($)},use:r8,useCallback:function($,Z){return u="useCallback",p0(),q7(Z),Aq($,Z)},useContext:function($){return u="useContext",p0(),S1($)},useEffect:function($,Z){return u="useEffect",p0(),q7(Z),uJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",p0(),q7(G),Vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",p0(),q7(Z),J9(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",p0(),q7(Z),Oq($,Z)},useMemo:function($,Z){u="useMemo",p0(),q7(Z);var G=x.H;x.H=u4;try{return Eq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",p0();var Y=x.H;x.H=u4;try{return wq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",p0(),Cq($)},useState:function($){u="useState",p0();var Z=x.H;x.H=u4;try{return Lq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",p0()},useDeferredValue:function($,Z){return u="useDeferredValue",p0(),Sq($,Z)},useTransition:function(){return u="useTransition",p0(),vq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",p0(),zq($,Z,G)},useId:function(){return u="useId",p0(),bq()},useFormState:function($,Z){return u="useFormState",p0(),kJ(),N7($,Z)},useActionState:function($,Z){return u="useActionState",p0(),N7($,Z)},useOptimistic:function($){return u="useOptimistic",p0(),_q($)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",p0(),kq()},useEffectEvent:function($){return u="useEffectEvent",p0(),Iq($)}},Mw={readContext:function($){return S1($)},use:r8,useCallback:function($,Z){return u="useCallback",c(),Aq($,Z)},useContext:function($){return u="useContext",c(),S1($)},useEffect:function($,Z){return u="useEffect",c(),uJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),Vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),J9(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),Oq($,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=u4;try{return Eq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=u4;try{return wq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),Cq($)},useState:function($){u="useState",c();var Z=x.H;x.H=u4;try{return Lq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),Sq($,Z)},useTransition:function(){return u="useTransition",c(),vq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),zq($,Z,G)},useId:function(){return u="useId",c(),bq()},useActionState:function($,Z){return u="useActionState",c(),N7($,Z)},useFormState:function($,Z){return u="useFormState",c(),kJ(),N7($,Z)},useOptimistic:function($){return u="useOptimistic",c(),_q($)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),kq()},useEffectEvent:function($){return u="useEffectEvent",c(),Iq($)}},jN={readContext:function($){return S1($)},use:r8,useCallback:function($,Z){return u="useCallback",c(),dJ($,Z)},useContext:function($){return u="useContext",c(),S1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),mJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,P6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=G4;try{return pJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=G4;try{return Y7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),U1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=G4;try{return Y7(t6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),zH($,Z)},useTransition:function(){return u="useTransition",c(),IH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),yJ($,Z,G)},useId:function(){return u="useId",c(),U1().memoizedState},useFormState:function($){return u="useFormState",c(),kJ(),gJ($)},useActionState:function($){return u="useActionState",c(),gJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),NH($,Z)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),U1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),xJ($)}},Fw={readContext:function($){return S1($)},use:r8,useCallback:function($,Z){return u="useCallback",c(),dJ($,Z)},useContext:function($){return u="useContext",c(),S1($)},useEffect:function($,Z){u="useEffect",c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",c(),mJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),l5(4,P6,$,Z)},useMemo:function($,Z){u="useMemo",c();var G=x.H;x.H=rG;try{return pJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",c();var Y=x.H;x.H=rG;try{return r$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),U1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=rG;try{return r$(t6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),TH($,Z)},useTransition:function(){return u="useTransition",c(),OH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",c(),yJ($,Z,G)},useId:function(){return u="useId",c(),U1().memoizedState},useFormState:function($){return u="useFormState",c(),kJ(),hJ($)},useActionState:function($){return u="useActionState",c(),hJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),KH($,Z)},useHostTransitionStatus:G9,useMemoCache:Q9,useCacheRefresh:function(){return u="useCacheRefresh",c(),U1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),xJ($)}},u4={readContext:function($){return F(),S1($)},use:function($){return M(),r8($)},useCallback:function($,Z){return u="useCallback",M(),p0(),Aq($,Z)},useContext:function($){return u="useContext",M(),p0(),S1($)},useEffect:function($,Z){return u="useEffect",M(),p0(),uJ($,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),p0(),Vq($,Z,G)},useInsertionEffect:function($,Z){u="useInsertionEffect",M(),p0(),J9(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),p0(),Oq($,Z)},useMemo:function($,Z){u="useMemo",M(),p0();var G=x.H;x.H=u4;try{return Eq($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),p0();var Y=x.H;x.H=u4;try{return wq($,Z,G)}finally{x.H=Y}},useRef:function($){return u="useRef",M(),p0(),Cq($)},useState:function($){u="useState",M(),p0();var Z=x.H;x.H=u4;try{return Lq($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",M(),p0()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),p0(),Sq($,Z)},useTransition:function(){return u="useTransition",M(),p0(),vq()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),p0(),zq($,Z,G)},useId:function(){return u="useId",M(),p0(),bq()},useFormState:function($,Z){return u="useFormState",M(),p0(),N7($,Z)},useActionState:function($,Z){return u="useActionState",M(),p0(),N7($,Z)},useOptimistic:function($){return u="useOptimistic",M(),p0(),_q($)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",p0(),kq()},useEffectEvent:function($){return u="useEffectEvent",M(),p0(),Iq($)}},G4={readContext:function($){return F(),S1($)},use:function($){return M(),r8($)},useCallback:function($,Z){return u="useCallback",M(),c(),dJ($,Z)},useContext:function($){return u="useContext",M(),c(),S1($)},useEffect:function($,Z){u="useEffect",M(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),c(),mJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),l5(4,P6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var G=x.H;x.H=G4;try{return pJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=G4;try{return Y7($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),U1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=G4;try{return Y7(t6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),zH($,Z)},useTransition:function(){return u="useTransition",M(),c(),IH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),yJ($,Z,G)},useId:function(){return u="useId",M(),c(),U1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),gJ($)},useActionState:function($){return u="useActionState",M(),c(),gJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),NH($,Z)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",c(),U1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),xJ($)}},rG={readContext:function($){return F(),S1($)},use:function($){return M(),r8($)},useCallback:function($,Z){return u="useCallback",M(),c(),dJ($,Z)},useContext:function($){return u="useContext",M(),c(),S1($)},useEffect:function($,Z){u="useEffect",M(),c(),l5(2048,d5,$,Z)},useImperativeHandle:function($,Z,G){return u="useImperativeHandle",M(),c(),mJ($,Z,G)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),l5(4,m5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),l5(4,P6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var G=x.H;x.H=G4;try{return pJ($,Z)}finally{x.H=G}},useReducer:function($,Z,G){u="useReducer",M(),c();var Y=x.H;x.H=G4;try{return r$($,Z,G)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),U1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=G4;try{return r$(t6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),TH($,Z)},useTransition:function(){return u="useTransition",M(),c(),OH()},useSyncExternalStore:function($,Z,G){return u="useSyncExternalStore",M(),c(),yJ($,Z,G)},useId:function(){return u="useId",M(),c(),U1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),hJ($)},useActionState:function($){return u="useActionState",M(),c(),hJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),KH($,Z)},useMemoCache:function($){return M(),Q9($)},useHostTransitionStatus:G9,useCacheRefresh:function(){return u="useCacheRefresh",c(),U1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),xJ($)}};var Ww={},ww=new Set,Rw=new Set,zw=new Set,Tw=new Set,Lw=new Set,_w=new Set,Pw=new Set,Cw=new Set,Iw=new Set,Ow=new Set;Object.freeze(Ww);var DN={enqueueSetState:function($,Z,G){$=$._reactInternals;var Y=W6($),U=d8(Y);U.payload=Z,G!==void 0&&G!==null&&(yq(G),U.callback=G),Z=p8($,U,Y),Z!==null&&(w4(Y,"this.setState()",$),f1(Z,$,Y),d$(Z,$,Y))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var Y=W6($),U=d8(Y);U.tag=Yw,U.payload=Z,G!==void 0&&G!==null&&(yq(G),U.callback=G),Z=p8($,U,Y),Z!==null&&(w4(Y,"this.replaceState()",$),f1(Z,$,Y),d$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=W6($),Y=d8(G);Y.tag=Nw,Z!==void 0&&Z!==null&&(yq(Z),Y.callback=Z),Z=p8($,Y,G),Z!==null&&(w4(G,"this.forceUpdate()",$),f1(Z,$,G),d$(Z,$,G))}},l7=null,vN=null,bN=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),a1=!1,Vw={},Aw={},Ew={},Sw={},r7=!1,jw={},sG={},kN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Dw=!1,vw=null;vw=new Set;var W8=!1,i1=!1,fN=!1,bw=typeof WeakSet==="function"?WeakSet:Set,M5=null,s7=null,n7=null,t1=null,n5=!1,X4=null,J5=!1,dZ=8192,UO={getCacheForType:function($){var Z=S1(s1),G=Z.data.get($);return G===void 0&&(G=$(),Z.data.set($,G)),G},cacheSignal:function(){return S1(s1).controller.signal},getOwner:function(){return z6}};if(typeof Symbol==="function"&&Symbol.for){var pZ=Symbol.for;pZ("selector.component"),pZ("selector.has_pseudo_class"),pZ("selector.role"),pZ("selector.test_id"),pZ("selector.text")}var KO=[],BO=typeof WeakMap==="function"?WeakMap:Map,F5=0,G5=2,C6=4,w8=0,cZ=1,L9=2,nG=3,B2=4,oG=6,kw=5,e0=F5,w1=null,x0=null,h0=0,o5=0,aG=1,_9=2,lZ=3,fw=4,yN=5,rZ=6,iG=7,gN=8,P9=9,K1=o5,I6=null,H2=!1,o7=!1,hN=!1,x4=0,b1=w8,M2=0,F2=0,uN=0,a5=0,C9=0,sZ=null,p5=null,tG=!1,eG=0,yw=0,gw=300,$3=1/0,hw=500,nZ=null,m1=null,W2=null,Z3=0,xN=1,mN=2,uw=3,w2=0,xw=1,mw=2,dw=3,pw=4,Q3=5,e1=0,R2=null,a7=null,q4=0,dN=0,pN=-0,cN=null,cw=null,lw=null,Y4=Z3,rw=null,HO=50,oZ=0,lN=null,rN=!1,J3=!1,MO=50,I9=0,aZ=null,i7=!1,G3=null,sw=!1,nw=new Set,FO={},X3=null,t7=null,sN=!1,nN=!1,q3=!1,oN=!1,z2=0,aN={};(function(){for(var $=0;$<YN.length;$++){var Z=YN[$],G=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),i6(G,"on"+Z)}i6(IW,"onAnimationEnd"),i6(OW,"onAnimationIteration"),i6(VW,"onAnimationStart"),i6("dblclick","onDoubleClick"),i6("focusin","onFocus"),i6("focusout","onBlur"),i6(cI,"onTransitionRun"),i6(lI,"onTransitionStart"),i6(rI,"onTransitionCancel"),i6(AW,"onTransitionEnd")})(),N6("onMouseEnter",["mouseout","mouseover"]),N6("onMouseLeave",["mouseout","mouseover"]),N6("onPointerEnter",["pointerout","pointerover"]),N6("onPointerLeave",["pointerout","pointerover"]),V5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),V5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),V5("onBeforeInput",["compositionend","keypress","textInput","paste"]),V5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),V5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),V5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var iZ="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(" "),iN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(iZ)),Y3="_reactListening"+Math.random().toString(36).slice(2),ow=!1,aw=!1,N3=!1,iw=!1,U3=!1,K3=!1,tw=!1,B3={},WO=/\r\n?/g,wO=/\u0000|\uFFFD/g,O9="http://www.w3.org/1999/xlink",tN="http://www.w3.org/XML/1998/namespace",RO="javascript:throw new Error('React form unexpectedly submitted.')",zO="suppressHydrationWarning",V9="&",H3="/&",tZ="$",eZ="/$",T2="$?",A9="$~",e7="$!",TO="html",LO="body",_O="head",eN="F!",ew="F",$R="loading",PO="style",R8=0,$$=1,M3=2,$U=null,ZU=null,ZR={dialog:!0,webview:!0},QU=null,$Q=void 0,QR=typeof setTimeout==="function"?setTimeout:void 0,CO=typeof clearTimeout==="function"?clearTimeout:void 0,E9=-1,JR=typeof Promise==="function"?Promise:void 0,IO=typeof queueMicrotask==="function"?queueMicrotask:typeof JR<"u"?function($){return JR.resolve(null).then($).catch(NC)}:QR,JU=null,S9=0,ZQ=1,GR=2,XR=3,x6=4,m6=new Map,qR=new Set,z8=Y1.d;Y1.d={f:function(){var $=z8.f(),Z=M7();return $||Z},r:function($){var Z=j0($);Z!==null&&Z.tag===5&&Z.type==="form"?CH(Z):z8.r($)},D:function($){z8.D($),wF("dns-prefetch",$,null)},C:function($,Z){z8.C($,Z),wF("preconnect",$,Z)},L:function($,Z,G){z8.L($,Z,G);var Y=Z$;if(Y&&$&&Z){var U='link[rel="preload"][as="'+E6(Z)+'"]';Z==="image"?G&&G.imageSrcSet?(U+='[imagesrcset="'+E6(G.imageSrcSet)+'"]',typeof G.imageSizes==="string"&&(U+='[imagesizes="'+E6(G.imageSizes)+'"]')):U+='[href="'+E6($)+'"]':U+='[href="'+E6($)+'"]';var B=U;switch(Z){case"style":B=w7($);break;case"script":B=R7($)}m6.has(B)||($=c0({rel:"preload",href:Z==="image"&&G&&G.imageSrcSet?void 0:$,as:Z},G),m6.set(B,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(YZ(B))||Z==="script"&&Y.querySelector(NZ(B))||(Z=Y.createElement("link"),R5(Z,"link",$),T0(Z),Y.head.appendChild(Z)))}},m:function($,Z){z8.m($,Z);var G=Z$;if(G&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+E6(Y)+'"][href="'+E6($)+'"]',B=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=R7($)}if(!m6.has(B)&&($=c0({rel:"modulepreload",href:$},Z),m6.set(B,$),G.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(NZ(B)))return}Y=G.createElement("link"),R5(Y,"link",$),T0(Y),G.head.appendChild(Y)}}},X:function($,Z){z8.X($,Z);var G=Z$;if(G&&$){var Y=$1(G).hoistableScripts,U=R7($),B=Y.get(U);B||(B=G.querySelector(NZ(U)),B||($=c0({src:$,async:!0},Z),(Z=m6.get(U))&&VY($,Z),B=G.createElement("script"),T0(B),R5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}},S:function($,Z,G){z8.S($,Z,G);var Y=Z$;if(Y&&$){var U=$1(Y).hoistableStyles,B=w7($);Z=Z||"default";var W=U.get(B);if(!W){var R={loading:S9,preload:null};if(W=Y.querySelector(YZ(B)))R.loading=ZQ|x6;else{$=c0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=m6.get(B))&&OY($,G);var L=W=Y.createElement("link");T0(L),R5(L,"link",$),L._p=new Promise(function(P,k){L.onload=P,L.onerror=k}),L.addEventListener("load",function(){R.loading|=ZQ}),L.addEventListener("error",function(){R.loading|=GR}),R.loading|=x6,NG(W,Z,Y)}W={type:"stylesheet",instance:W,count:1,state:R},U.set(B,W)}}},M:function($,Z){z8.M($,Z);var G=Z$;if(G&&$){var Y=$1(G).hoistableScripts,U=R7($),B=Y.get(U);B||(B=G.querySelector(NZ(U)),B||($=c0({src:$,async:!0,type:"module"},Z),(Z=m6.get(U))&&VY($,Z),B=G.createElement("script"),T0(B),R5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},Y.set(U,B))}}};var Z$=typeof document>"u"?null:document,F3=null,OO=60000,VO=800,AO=500,GU=0,XU=null,W3=null,j9=dC,QQ={$$typeof:j4,Provider:null,Consumer:null,_currentValue:j9,_currentValue2:j9,_threadCount:0},YR="%c%s%c",NR="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",UR="",w3=" ",EO=Function.prototype.bind,KR=!1,BR=null,HR=null,MR=null,FR=null,WR=null,wR=null,RR=null,zR=null,TR=null,LR=null;BR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=J(Z.memoizedState,G,0,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=c0({},$.memoizedProps),G=A5($,2),G!==null&&f1(G,$,2))},HR=function($,Z,G){Z=Q($,Z),Z!==null&&(G=N(Z.memoizedState,G,0),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=c0({},$.memoizedProps),G=A5($,2),G!==null&&f1(G,$,2))},MR=function($,Z,G,Y){Z=Q($,Z),Z!==null&&(G=X(Z.memoizedState,G,Y),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=c0({},$.memoizedProps),G=A5($,2),G!==null&&f1(G,$,2))},FR=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=A5($,2),Z!==null&&f1(Z,$,2)},WR=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=A5($,2),Z!==null&&f1(Z,$,2)},wR=function($,Z,G){$.pendingProps=X($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=A5($,2),Z!==null&&f1(Z,$,2)},RR=function($){var Z=A5($,2);Z!==null&&f1(Z,$,2)},zR=function($){var Z=e9(),G=A5($,Z);G!==null&&f1(G,$,Z)},TR=function($){H=$},LR=function($){K=$};var R3=!0,z3=null,qU=!1,L2=null,_2=null,P2=null,JQ=new Map,GQ=new Map,C2=[],SO="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".split(" "),T3=null;if(MG.prototype.render=vY.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var G=arguments;typeof G[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):O(G[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof G[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),G=$;var Y=Z.current,U=W6(Y);AY(Y,U,G,Z,null,null)},MG.prototype.unmount=vY.prototype.unmount=function(){var $=arguments;if(typeof $[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),$=this._internalRoot,$!==null){this._internalRoot=null;var Z=$.containerInfo;(e0&(G5|C6))!==F5&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),AY($.current,2,null,$,null,null),M7(),Z[e8]=null}},MG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<C2.length&&Z!==0&&Z<C2[G].priority;G++);C2.splice(G,0,$),G===0&&jF($)}},function(){var $=M$.version;if($!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
+ - react: `+($+`
225
+ - react-dom: 19.2.7
226
+ Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Y1.findDOMNode=function($){var Z=$._reactInternals;if(Z===void 0){if(typeof $.render==="function")throw Error("Unable to find node on an unmounted component.");throw $=Object.keys($).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+$)}return $=a(Z),$=$!==null?J0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.7"};return $.overrideHookState=BR,$.overrideHookStateDeletePath=HR,$.overrideHookStateRenamePath=MR,$.overrideProps=FR,$.overridePropsDeletePath=WR,$.overridePropsRenamePath=wR,$.scheduleUpdate=RR,$.scheduleRetry=zR,$.setErrorHandler=TR,$.setSuspenseHandler=LR,$.scheduleRefresh=E,$.scheduleRoot=I,$.setRefreshHandler=V,$.getCurrentFiber=kC,t9($)}()&&f4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var _R=window.location.protocol;/^(https?|file):$/.test(_R)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(_R==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}aS.createRoot=function($,Z){if(!O($))throw Error("Target container is not a DOM element.");kF($);var G=!1,Y="",U=DH,B=vH,W=bH;return Z!==null&&Z!==void 0&&(Z.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof Z==="object"&&Z!==null&&Z.$$typeof===S4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
+
229
+ let root = createRoot(domContainer);
230
+ root.render(<App />);`),Z.unstable_strictMode===!0&&(G=!0),Z.identifierPrefix!==void 0&&(Y=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(U=Z.onUncaughtError),Z.onCaughtError!==void 0&&(B=Z.onCaughtError),Z.onRecoverableError!==void 0&&(W=Z.onRecoverableError)),Z=CF($,1,!1,null,null,G,Y,null,U,B,W,bF),$[e8]=Z.current,MY($),new vY(Z)},aS.hydrateRoot=function($,Z,G){if(!O($))throw Error("Target container is not a DOM element.");kF($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",B=DH,W=vH,R=bH,L=null;return G!==null&&G!==void 0&&(G.unstable_strictMode===!0&&(Y=!0),G.identifierPrefix!==void 0&&(U=G.identifierPrefix),G.onUncaughtError!==void 0&&(B=G.onUncaughtError),G.onCaughtError!==void 0&&(W=G.onCaughtError),G.onRecoverableError!==void 0&&(R=G.onRecoverableError),G.formState!==void 0&&(L=G.formState)),Z=CF($,1,!0,Z,G!=null?G:null,Y,U,L,B,W,R,bF),Z.context=IF(null),G=Z.current,Y=W6(G),Y=r2(Y),U=d8(Y),U.callback=null,p8(G,U,Y),w4(Y,"hydrateRoot()",null),G=Y,Z.current.lanes=G,f8(Z,G),A4(Z),$[e8]=Z.current,MY($),new MG(Z)},aS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var oT=I2((hb,nT)=>{var iS=o(sT());nT.exports=iS});var B0=I2((Ij)=>{var p9=o(P1());(function(){function Q(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===d?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case V:return"Fragment";case D:return"Profiler";case O:return"StrictMode";case a:return"Suspense";case J0:return"SuspenseList";case Y0:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case E:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var n=v.render;return v=v.displayName,v||(v=n.displayName||n.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case i:n=v._payload,v=v._init;try{return Q(v(n))}catch(F0){}}return null}function J(v){return""+v}function X(v){try{J(v);var n=!1}catch(d0){n=!0}if(n){n=console;var F0=n.error,W0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return F0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W0),J(v)}}function q(v){if(v===V)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===i)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(F0){return"<...>"}}function N(){var v=H0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(_0.call(v,"key")){var n=Object.getOwnPropertyDescriptor(v,"key").get;if(n&&n.isReactWarning)return!1}return v.key!==void 0}function M(v,n){function F0(){l||(l=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}F0.isReactWarning=!0,Object.defineProperty(v,"key",{get:F0,configurable:!0})}function F(){var v=Q(this.type);return q0[v]||(q0[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function w(v,n,F0,W0,d0,u1){var b0=F0.ref;return v={$$typeof:I,type:v,key:n,props:F0,_owner:W0},(b0!==void 0?b0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:F}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:d0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:u1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,n,F0,W0,d0,u1){var b0=n.children;if(b0!==void 0)if(W0)if(C0(b0)){for(W0=0;W0<b0.length;W0++)T(b0[W0]);Object.freeze&&Object.freeze(b0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(b0);if(_0.call(n,"key")){b0=Q(v);var r1=Object.keys(n).filter(function(a6){return a6!=="key"});W0=0<r1.length?"{key: someKey, "+r1.join(": ..., ")+": ...}":"{key: someKey}",m0[b0+W0]||(r1=0<r1.length?"{"+r1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
231
+ let props = %s;
232
+ <%s {...props} />
233
+ React keys must be passed directly to JSX without using spread:
234
+ let props = %s;
235
+ <%s key={someKey} {...props} />`,W0,b0,r1,b0),m0[b0+W0]=!0)}if(b0=null,F0!==void 0&&(X(F0),b0=""+F0),H(n)&&(X(n.key),b0=""+n.key),"key"in n){F0={};for(var O5 in n)O5!=="key"&&(F0[O5]=n[O5])}else F0=n;return b0&&M(F0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,b0,F0,N(),d0,u1)}function T(v){_(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===i&&(v._payload.status==="fulfilled"?_(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function _(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=p9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_0=Object.prototype.hasOwnProperty,C0=Array.isArray,v0=console.createTask?console.createTask:function(){return null};p9={react_stack_bottom_frame:function(v){return v()}};var l,q0={},M0=p9.react_stack_bottom_frame.bind(p9,K)(),n0=v0(q(K)),m0={};Ij.Fragment=V,Ij.jsxDEV=function(v,n,F0,W0){var d0=1e4>H0.recentlyCreatedOwnerStacks++;return z(v,n,F0,W0,d0?Error("react-stack-top-frame"):M0,d0?v0(q(v)):n0)}})()});var Y_=I2((wD)=>{var s9=o(P1());(function(){function Q(v){if(v==null)return null;if(typeof v==="function")return v.$$typeof===d?null:v.displayName||v.name||null;if(typeof v==="string")return v;switch(v){case V:return"Fragment";case D:return"Profiler";case O:return"StrictMode";case a:return"Suspense";case J0:return"SuspenseList";case Y0:return"Activity"}if(typeof v==="object")switch(typeof v.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case E:return"Portal";case p:return v.displayName||"Context";case h:return(v._context.displayName||"Context")+".Consumer";case s:var n=v.render;return v=v.displayName,v||(v=n.displayName||n.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case t:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case i:n=v._payload,v=v._init;try{return Q(v(n))}catch(F0){}}return null}function J(v){return""+v}function X(v){try{J(v);var n=!1}catch(d0){n=!0}if(n){n=console;var F0=n.error,W0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return F0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W0),J(v)}}function q(v){if(v===V)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===i)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(F0){return"<...>"}}function N(){var v=H0.A;return v===null?null:v.getOwner()}function K(){return Error("react-stack-top-frame")}function H(v){if(_0.call(v,"key")){var n=Object.getOwnPropertyDescriptor(v,"key").get;if(n&&n.isReactWarning)return!1}return v.key!==void 0}function M(v,n){function F0(){l||(l=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n))}F0.isReactWarning=!0,Object.defineProperty(v,"key",{get:F0,configurable:!0})}function F(){var v=Q(this.type);return q0[v]||(q0[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function w(v,n,F0,W0,d0,u1){var b0=F0.ref;return v={$$typeof:I,type:v,key:n,props:F0,_owner:W0},(b0!==void 0?b0:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:F}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:d0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:u1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function z(v,n,F0,W0,d0,u1){var b0=n.children;if(b0!==void 0)if(W0)if(C0(b0)){for(W0=0;W0<b0.length;W0++)T(b0[W0]);Object.freeze&&Object.freeze(b0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(b0);if(_0.call(n,"key")){b0=Q(v);var r1=Object.keys(n).filter(function(a6){return a6!=="key"});W0=0<r1.length?"{key: someKey, "+r1.join(": ..., ")+": ...}":"{key: someKey}",m0[b0+W0]||(r1=0<r1.length?"{"+r1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
236
+ let props = %s;
237
+ <%s {...props} />
238
+ React keys must be passed directly to JSX without using spread:
239
+ let props = %s;
240
+ <%s key={someKey} {...props} />`,W0,b0,r1,b0),m0[b0+W0]=!0)}if(b0=null,F0!==void 0&&(X(F0),b0=""+F0),H(n)&&(X(n.key),b0=""+n.key),"key"in n){F0={};for(var O5 in n)O5!=="key"&&(F0[O5]=n[O5])}else F0=n;return b0&&M(F0,typeof v==="function"?v.displayName||v.name||"Unknown":v),w(v,b0,F0,N(),d0,u1)}function T(v){_(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===i&&(v._payload.status==="fulfilled"?_(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function _(v){return typeof v==="object"&&v!==null&&v.$$typeof===I}var I=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),J0=Symbol.for("react.suspense_list"),t=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),H0=s9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_0=Object.prototype.hasOwnProperty,C0=Array.isArray,v0=console.createTask?console.createTask:function(){return null};s9={react_stack_bottom_frame:function(v){return v()}};var l,q0={},M0=s9.react_stack_bottom_frame.bind(s9,K)(),n0=v0(q(K)),m0={};wD.Fragment=V,wD.jsx=function(v,n,F0){var W0=1e4>H0.recentlyCreatedOwnerStacks++;return z(v,n,F0,!1,W0?Error("react-stack-top-frame"):M0,W0?v0(q(v)):n0)},wD.jsxs=function(v,n,F0){var W0=1e4>H0.recentlyCreatedOwnerStacks++;return z(v,n,F0,!0,W0?Error("react-stack-top-frame"):M0,W0?v0(q(v)):n0)}})()});/*!
241
+ * @kurkle/color v0.3.4
242
+ * https://github.com/kurkle/color#readme
243
+ * (c) 2024 Jukka Kurkela
244
+ * Released under the MIT License
245
+ */function qQ(Q){return Q+0.5|0}var O2=(Q,J,X)=>Math.max(Math.min(Q,X),J);function XQ(Q){return O2(qQ(Q*2.55),0,255)}function V2(Q){return O2(qQ(Q*255),0,255)}function L8(Q){return O2(qQ(Q/2.55)/100,0,1)}function CR(Q){return O2(qQ(Q*100),0,100)}var d6={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},NU=[..."0123456789ABCDEF"],hO=(Q)=>NU[Q&15],uO=(Q)=>NU[(Q&240)>>4]+NU[Q&15],L3=(Q)=>(Q&240)>>4===(Q&15),xO=(Q)=>L3(Q.r)&&L3(Q.g)&&L3(Q.b)&&L3(Q.a);function mO(Q){var J=Q.length,X;if(Q[0]==="#"){if(J===4||J===5)X={r:255&d6[Q[1]]*17,g:255&d6[Q[2]]*17,b:255&d6[Q[3]]*17,a:J===5?d6[Q[4]]*17:255};else if(J===7||J===9)X={r:d6[Q[1]]<<4|d6[Q[2]],g:d6[Q[3]]<<4|d6[Q[4]],b:d6[Q[5]]<<4|d6[Q[6]],a:J===9?d6[Q[7]]<<4|d6[Q[8]]:255}}return X}var dO=(Q,J)=>Q<255?J(Q):"";function pO(Q){var J=xO(Q)?hO:uO;return Q?"#"+J(Q.r)+J(Q.g)+J(Q.b)+dO(Q.a,J):void 0}var cO=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function AR(Q,J,X){let q=J*Math.min(X,1-X),N=(K,H=(K+Q/30)%12)=>X-q*Math.max(Math.min(H-3,9-H,1),-1);return[N(0),N(8),N(4)]}function lO(Q,J,X){let q=(N,K=(N+Q/60)%6)=>X-X*J*Math.max(Math.min(K,4-K,1),0);return[q(5),q(3),q(1)]}function rO(Q,J,X){let q=AR(Q,1,0.5),N;if(J+X>1)N=1/(J+X),J*=N,X*=N;for(N=0;N<3;N++)q[N]*=1-J-X,q[N]+=J;return q}function sO(Q,J,X,q,N){if(Q===N)return(J-X)/q+(J<X?6:0);if(J===N)return(X-Q)/q+2;return(Q-J)/q+4}function UU(Q){let X=Q.r/255,q=Q.g/255,N=Q.b/255,K=Math.max(X,q,N),H=Math.min(X,q,N),M=(K+H)/2,F,w,z;if(K!==H)z=K-H,w=M>0.5?z/(2-K-H):z/(K+H),F=sO(X,q,N,z,K),F=F*60+0.5;return[F|0,w||0,M]}function KU(Q,J,X,q){return(Array.isArray(J)?Q(J[0],J[1],J[2]):Q(J,X,q)).map(V2)}function BU(Q,J,X){return KU(AR,Q,J,X)}function nO(Q,J,X){return KU(rO,Q,J,X)}function oO(Q,J,X){return KU(lO,Q,J,X)}function ER(Q){return(Q%360+360)%360}function aO(Q){let J=cO.exec(Q),X=255,q;if(!J)return;if(J[5]!==q)X=J[6]?XQ(+J[5]):V2(+J[5]);let N=ER(+J[2]),K=+J[3]/100,H=+J[4]/100;if(J[1]==="hwb")q=nO(N,K,H);else if(J[1]==="hsv")q=oO(N,K,H);else q=BU(N,K,H);return{r:q[0],g:q[1],b:q[2],a:X}}function iO(Q,J){var X=UU(Q);X[0]=ER(X[0]+J),X=BU(X),Q.r=X[0],Q.g=X[1],Q.b=X[2]}function tO(Q){if(!Q)return;let J=UU(Q),X=J[0],q=CR(J[1]),N=CR(J[2]);return Q.a<255?`hsla(${X}, ${q}%, ${N}%, ${L8(Q.a)})`:`hsl(${X}, ${q}%, ${N}%)`}var IR={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},OR={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function eO(){let Q={},J=Object.keys(OR),X=Object.keys(IR),q,N,K,H,M;for(q=0;q<J.length;q++){H=M=J[q];for(N=0;N<X.length;N++)K=X[N],M=M.replace(K,IR[K]);K=parseInt(OR[H],16),Q[M]=[K>>16&255,K>>8&255,K&255]}return Q}var _3;function $V(Q){if(!_3)_3=eO(),_3.transparent=[0,0,0,0];let J=_3[Q.toLowerCase()];return J&&{r:J[0],g:J[1],b:J[2],a:J.length===4?J[3]:255}}var ZV=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function QV(Q){let J=ZV.exec(Q),X=255,q,N,K;if(!J)return;if(J[7]!==q){let H=+J[7];X=J[8]?XQ(H):O2(H*255,0,255)}return q=+J[1],N=+J[3],K=+J[5],q=255&(J[2]?XQ(q):O2(q,0,255)),N=255&(J[4]?XQ(N):O2(N,0,255)),K=255&(J[6]?XQ(K):O2(K,0,255)),{r:q,g:N,b:K,a:X}}function JV(Q){return Q&&(Q.a<255?`rgba(${Q.r}, ${Q.g}, ${Q.b}, ${L8(Q.a)})`:`rgb(${Q.r}, ${Q.g}, ${Q.b})`)}var YU=(Q)=>Q<=0.0031308?Q*12.92:Math.pow(Q,0.4166666666666667)*1.055-0.055,Q$=(Q)=>Q<=0.04045?Q/12.92:Math.pow((Q+0.055)/1.055,2.4);function GV(Q,J,X){let q=Q$(L8(Q.r)),N=Q$(L8(Q.g)),K=Q$(L8(Q.b));return{r:V2(YU(q+X*(Q$(L8(J.r))-q))),g:V2(YU(N+X*(Q$(L8(J.g))-N))),b:V2(YU(K+X*(Q$(L8(J.b))-K))),a:Q.a+X*(J.a-Q.a)}}function P3(Q,J,X){if(Q){let q=UU(Q);q[J]=Math.max(0,Math.min(q[J]+q[J]*X,J===0?360:1)),q=BU(q),Q.r=q[0],Q.g=q[1],Q.b=q[2]}}function SR(Q,J){return Q?Object.assign(J||{},Q):Q}function VR(Q){var J={r:0,g:0,b:0,a:255};if(Array.isArray(Q)){if(Q.length>=3){if(J={r:Q[0],g:Q[1],b:Q[2],a:255},Q.length>3)J.a=V2(Q[3])}}else J=SR(Q,{r:0,g:0,b:0,a:1}),J.a=V2(J.a);return J}function XV(Q){if(Q.charAt(0)==="r")return QV(Q);return aO(Q)}class J${constructor(Q){if(Q instanceof J$)return Q;let J=typeof Q,X;if(J==="object")X=VR(Q);else if(J==="string")X=mO(Q)||$V(Q)||XV(Q);this._rgb=X,this._valid=!!X}get valid(){return this._valid}get rgb(){var Q=SR(this._rgb);if(Q)Q.a=L8(Q.a);return Q}set rgb(Q){this._rgb=VR(Q)}rgbString(){return this._valid?JV(this._rgb):void 0}hexString(){return this._valid?pO(this._rgb):void 0}hslString(){return this._valid?tO(this._rgb):void 0}mix(Q,J){if(Q){let X=this.rgb,q=Q.rgb,N,K=J===N?0.5:J,H=2*K-1,M=X.a-q.a,F=((H*M===-1?H:(H+M)/(1+H*M))+1)/2;N=1-F,X.r=255&F*X.r+N*q.r+0.5,X.g=255&F*X.g+N*q.g+0.5,X.b=255&F*X.b+N*q.b+0.5,X.a=K*X.a+(1-K)*q.a,this.rgb=X}return this}interpolate(Q,J){if(Q)this._rgb=GV(this._rgb,Q._rgb,J);return this}clone(){return new J$(this.rgb)}alpha(Q){return this._rgb.a=V2(Q),this}clearer(Q){let J=this._rgb;return J.a*=1-Q,this}greyscale(){let Q=this._rgb,J=qQ(Q.r*0.3+Q.g*0.59+Q.b*0.11);return Q.r=Q.g=Q.b=J,this}opaquer(Q){let J=this._rgb;return J.a*=1+Q,this}negate(){let Q=this._rgb;return Q.r=255-Q.r,Q.g=255-Q.g,Q.b=255-Q.b,this}lighten(Q){return P3(this._rgb,2,Q),this}darken(Q){return P3(this._rgb,2,-Q),this}saturate(Q){return P3(this._rgb,1,Q),this}desaturate(Q){return P3(this._rgb,1,-Q),this}rotate(Q){return iO(this._rgb,Q),this}}/*!
246
+ * Chart.js v4.5.1
247
+ * https://www.chartjs.org
248
+ * (c) 2025 Chart.js Contributors
249
+ * Released under the MIT License
250
+ */function d4(){}var xR=(()=>{let Q=0;return()=>Q++})();function Z1(Q){return Q===null||Q===void 0}function V1(Q){if(Array.isArray&&Array.isArray(Q))return!0;let J=Object.prototype.toString.call(Q);if(J.slice(0,7)==="[object"&&J.slice(-6)==="Array]")return!0;return!1}function t0(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function g1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function Z6(Q,J){return g1(Q)?Q:J}function r0(Q,J){return typeof Q>"u"?J:Q}var mR=(Q,J)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*J:+Q;function _1(Q,J,X){if(Q&&typeof Q.call==="function")return Q.apply(X,J)}function B1(Q,J,X,q){let N,K,H;if(V1(Q))if(K=Q.length,q)for(N=K-1;N>=0;N--)J.call(X,Q[N],N);else for(N=0;N<K;N++)J.call(X,Q[N],N);else if(t0(Q)){H=Object.keys(Q),K=H.length;for(N=0;N<K;N++)J.call(X,Q[H[N]],H[N])}}function UQ(Q,J){let X,q,N,K;if(!Q||!J||Q.length!==J.length)return!1;for(X=0,q=Q.length;X<q;++X)if(N=Q[X],K=J[X],N.datasetIndex!==K.datasetIndex||N.index!==K.index)return!1;return!0}function V3(Q){if(V1(Q))return Q.map(V3);if(t0(Q)){let J=Object.create(null),X=Object.keys(Q),q=X.length,N=0;for(;N<q;++N)J[X[N]]=V3(Q[X[N]]);return J}return Q}function dR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function qV(Q,J,X,q){if(!dR(Q))return;let N=J[Q],K=X[Q];if(t0(N)&&t0(K))X$(N,K,q);else J[Q]=V3(K)}function X$(Q,J,X){let q=V1(J)?J:[J],N=q.length;if(!t0(Q))return Q;X=X||{};let K=X.merger||qV,H;for(let M=0;M<N;++M){if(H=q[M],!t0(H))continue;let F=Object.keys(H);for(let w=0,z=F.length;w<z;++w)K(F[w],Q,H,X)}return Q}function Y$(Q,J){return X$(Q,J,{merger:YV})}function YV(Q,J,X){if(!dR(Q))return;let q=J[Q],N=X[Q];if(t0(q)&&t0(N))Y$(q,N);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=V3(N)}var jR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function NV(Q){let J=Q.split("."),X=[],q="";for(let N of J)if(q+=N,q.endsWith("\\"))q=q.slice(0,-1)+".";else X.push(q),q="";return X}function UV(Q){let J=NV(Q);return(X)=>{for(let q of J){if(q==="")break;X=X&&X[q]}return X}}function k9(Q,J){return(jR[J]||(jR[J]=UV(J)))(Q)}function j3(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var N$=(Q)=>typeof Q<"u",_8=(Q)=>typeof Q==="function",FU=(Q,J)=>{if(Q.size!==J.size)return!1;for(let X of Q)if(!J.has(X))return!1;return!0};function pR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var l1=Math.PI,e5=2*l1,KV=e5+l1,A3=Number.POSITIVE_INFINITY,BV=l1/180,t5=l1/2,D9=l1/4,DR=l1*2/3,P8=Math.log10,N4=Math.sign;function U$(Q,J,X){return Math.abs(Q-J)<X}function WU(Q){let J=Math.round(Q);Q=U$(Q,J,Q/1000)?J:Q;let X=Math.pow(10,Math.floor(P8(Q))),q=Q/X;return(q<=1?1:q<=2?2:q<=5?5:10)*X}function cR(Q){let J=[],X=Math.sqrt(Q),q;for(q=1;q<X;q++)if(Q%q===0)J.push(q),J.push(Q/q);if(X===(X|0))J.push(X);return J.sort((N,K)=>N-K).pop(),J}function HV(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function K$(Q){return!HV(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function lR(Q,J){let X=Math.round(Q);return X-J<=Q&&X+J>=Q}function wU(Q,J,X){let q,N,K;for(q=0,N=Q.length;q<N;q++)if(K=Q[q][X],!isNaN(K))J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}function C8(Q){return Q*(l1/180)}function D3(Q){return Q*(180/l1)}function RU(Q){if(!g1(Q))return;let J=1,X=0;while(Math.round(Q*J)/J!==Q)J*=10,X++;return X}function rR(Q,J){let X=J.x-Q.x,q=J.y-Q.y,N=Math.sqrt(X*X+q*q),K=Math.atan2(q,X);if(K<-0.5*l1)K+=e5;return{angle:K,distance:N}}function E3(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function MV(Q,J){return(Q-J+KV)%e5-l1}function i5(Q){return(Q%e5+e5)%e5}function zU(Q,J,X,q){let N=i5(Q),K=i5(J),H=i5(X),M=i5(K-N),F=i5(H-N),w=i5(N-K),z=i5(N-H);return N===K||N===H||q&&K===H||M>F&&w<z}function $6(Q,J,X){return Math.max(J,Math.min(X,Q))}function sR(Q){return $6(Q,-32768,32767)}function I8(Q,J,X,q=0.000001){return Q>=Math.min(J,X)-q&&Q<=Math.max(J,X)+q}function v3(Q,J,X){X=X||((H)=>Q[H]<J);let q=Q.length-1,N=0,K;while(q-N>1)if(K=N+q>>1,X(K))N=K;else q=K;return{lo:N,hi:q}}var E2=(Q,J,X,q)=>v3(Q,X,q?(N)=>{let K=Q[N][J];return K<X||K===X&&Q[N+1][J]===X}:(N)=>Q[N][J]<X),nR=(Q,J,X)=>v3(Q,X,(q)=>Q[q][J]>=X);function oR(Q,J,X){let q=0,N=Q.length;while(q<N&&Q[q]<J)q++;while(N>q&&Q[N-1]>X)N--;return q>0||N<Q.length?Q.slice(q,N):Q}var aR=["push","pop","shift","splice","unshift"];function iR(Q,J){if(Q._chartjs){Q._chartjs.listeners.push(J);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[J]}}),aR.forEach((X)=>{let q="_onData"+j3(X),N=Q[X];Object.defineProperty(Q,X,{configurable:!0,enumerable:!1,value(...K){let H=N.apply(this,K);return Q._chartjs.listeners.forEach((M)=>{if(typeof M[q]==="function")M[q](...K)}),H}})})}function TU(Q,J){let X=Q._chartjs;if(!X)return;let q=X.listeners,N=q.indexOf(J);if(N!==-1)q.splice(N,1);if(q.length>0)return;aR.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function LU(Q){let J=new Set(Q);if(J.size===Q.length)return Q;return Array.from(J)}var _U=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function PU(Q,J){let X=[],q=!1;return function(...N){if(X=N,!q)q=!0,_U.call(window,()=>{q=!1,Q.apply(J,X)})}}function tR(Q,J){let X;return function(...q){if(J)clearTimeout(X),X=setTimeout(Q,J,q);else Q.apply(this,q);return J}}var b3=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",L5=(Q,J,X)=>Q==="start"?J:Q==="end"?X:(J+X)/2,eR=(Q,J,X,q)=>{return Q===(q?"left":"right")?X:Q==="center"?(J+X)/2:J};function $z(Q,J,X){let q=J.length,N=0,K=q;if(Q._sorted){let{iScale:H,vScale:M,_parsed:F}=Q,w=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,z=H.axis,{min:T,max:_,minDefined:I,maxDefined:E}=H.getUserBounds();if(I){if(N=Math.min(E2(F,z,T).lo,X?q:E2(J,z,H.getPixelForValue(T)).lo),w){let V=F.slice(0,N+1).reverse().findIndex((O)=>!Z1(O[M.axis]));N-=Math.max(0,V)}N=$6(N,0,q-1)}if(E){let V=Math.max(E2(F,H.axis,_,!0).hi+1,X?0:E2(J,z,H.getPixelForValue(_),!0).hi+1);if(w){let O=F.slice(V-1).findIndex((D)=>!Z1(D[M.axis]));V+=Math.max(0,O)}K=$6(V,N,q)-N}else K=q-N}return{start:N,count:K}}function Zz(Q){let{xScale:J,yScale:X,_scaleRanges:q}=Q,N={xmin:J.min,xmax:J.max,ymin:X.min,ymax:X.max};if(!q)return Q._scaleRanges=N,!0;let K=q.xmin!==J.min||q.xmax!==J.max||q.ymin!==X.min||q.ymax!==X.max;return Object.assign(q,N),K}var C3=(Q)=>Q===0||Q===1,vR=(Q,J,X)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-J)*e5/X)),bR=(Q,J,X)=>Math.pow(2,-10*Q)*Math.sin((Q-J)*e5/X)+1,G$={linear:(Q)=>Q,easeInQuad:(Q)=>Q*Q,easeOutQuad:(Q)=>-Q*(Q-2),easeInOutQuad:(Q)=>(Q/=0.5)<1?0.5*Q*Q:-0.5*(--Q*(Q-2)-1),easeInCubic:(Q)=>Q*Q*Q,easeOutCubic:(Q)=>(Q-=1)*Q*Q+1,easeInOutCubic:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q:0.5*((Q-=2)*Q*Q+2),easeInQuart:(Q)=>Q*Q*Q*Q,easeOutQuart:(Q)=>-((Q-=1)*Q*Q*Q-1),easeInOutQuart:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q:-0.5*((Q-=2)*Q*Q*Q-2),easeInQuint:(Q)=>Q*Q*Q*Q*Q,easeOutQuint:(Q)=>(Q-=1)*Q*Q*Q*Q+1,easeInOutQuint:(Q)=>(Q/=0.5)<1?0.5*Q*Q*Q*Q*Q:0.5*((Q-=2)*Q*Q*Q*Q+2),easeInSine:(Q)=>-Math.cos(Q*t5)+1,easeOutSine:(Q)=>Math.sin(Q*t5),easeInOutSine:(Q)=>-0.5*(Math.cos(l1*Q)-1),easeInExpo:(Q)=>Q===0?0:Math.pow(2,10*(Q-1)),easeOutExpo:(Q)=>Q===1?1:-Math.pow(2,-10*Q)+1,easeInOutExpo:(Q)=>C3(Q)?Q:Q<0.5?0.5*Math.pow(2,10*(Q*2-1)):0.5*(-Math.pow(2,-10*(Q*2-1))+2),easeInCirc:(Q)=>Q>=1?Q:-(Math.sqrt(1-Q*Q)-1),easeOutCirc:(Q)=>Math.sqrt(1-(Q-=1)*Q),easeInOutCirc:(Q)=>(Q/=0.5)<1?-0.5*(Math.sqrt(1-Q*Q)-1):0.5*(Math.sqrt(1-(Q-=2)*Q)+1),easeInElastic:(Q)=>C3(Q)?Q:vR(Q,0.075,0.3),easeOutElastic:(Q)=>C3(Q)?Q:bR(Q,0.075,0.3),easeInOutElastic(Q){return C3(Q)?Q:Q<0.5?0.5*vR(Q*2,0.1125,0.45):0.5+0.5*bR(Q*2-1,0.1125,0.45)},easeInBack(Q){return Q*Q*(2.70158*Q-1.70158)},easeOutBack(Q){return(Q-=1)*Q*(2.70158*Q+1.70158)+1},easeInOutBack(Q){let J=1.70158;if((Q/=0.5)<1)return 0.5*(Q*Q*(((J*=1.525)+1)*Q-J));return 0.5*((Q-=2)*Q*(((J*=1.525)+1)*Q+J)+2)},easeInBounce:(Q)=>1-G$.easeOutBounce(1-Q),easeOutBounce(Q){if(Q<0.36363636363636365)return 7.5625*Q*Q;if(Q<0.7272727272727273)return 7.5625*(Q-=0.5454545454545454)*Q+0.75;if(Q<0.9090909090909091)return 7.5625*(Q-=0.8181818181818182)*Q+0.9375;return 7.5625*(Q-=0.9545454545454546)*Q+0.984375},easeInOutBounce:(Q)=>Q<0.5?G$.easeInBounce(Q*2)*0.5:G$.easeOutBounce(Q*2-1)*0.5+0.5};function CU(Q){if(Q&&typeof Q==="object"){let J=Q.toString();return J==="[object CanvasPattern]"||J==="[object CanvasGradient]"}return!1}function IU(Q){return CU(Q)?Q:new J$(Q)}function HU(Q){return CU(Q)?Q:new J$(Q).saturate(0.5).darken(0.1).hexString()}var FV=["x","y","borderWidth","radius","tension"],WV=["color","borderColor","backgroundColor"];function wV(Q){Q.set("animation",{delay:void 0,duration:1000,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),Q.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:(J)=>J!=="onProgress"&&J!=="onComplete"&&J!=="fn"}),Q.set("animations",{colors:{type:"color",properties:WV},numbers:{type:"number",properties:FV}}),Q.describe("animations",{_fallback:"animation"}),Q.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:(J)=>J|0}}}})}function RV(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var kR=new Map;function zV(Q,J){J=J||{};let X=Q+JSON.stringify(J),q=kR.get(X);if(!q)q=new Intl.NumberFormat(Q,J),kR.set(X,q);return q}function k3(Q,J,X){return zV(J,X).format(Q)}var Qz={values(Q){return V1(Q)?Q:""+Q},numeric(Q,J,X){if(Q===0)return"0";let q=this.chart.options.locale,N,K=Q;if(X.length>1){let w=Math.max(Math.abs(X[0].value),Math.abs(X[X.length-1].value));if(w<0.0001||w>1000000000000000)N="scientific";K=TV(Q,X)}let H=P8(Math.abs(K)),M=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),F={notation:N,minimumFractionDigits:M,maximumFractionDigits:M};return Object.assign(F,this.options.ticks.format),k3(Q,q,F)},logarithmic(Q,J,X){if(Q===0)return"0";let q=X[J].significand||Q/Math.pow(10,Math.floor(P8(Q)));if([1,2,3,5,10,15].includes(q)||J>0.8*X.length)return Qz.numeric.call(this,Q,J,X);return""}};function TV(Q,J){let X=J.length>3?J[2].value-J[1].value:J[1].value-J[0].value;if(Math.abs(X)>=1&&Q!==Math.floor(Q))X=Q-Math.floor(Q);return X}var KQ={formatters:Qz};function LV(Q){Q.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(J,X)=>X.lineWidth,tickColor:(J,X)=>X.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:KQ.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Q.route("scale.ticks","color","","color"),Q.route("scale.grid","color","","borderColor"),Q.route("scale.border","color","","borderColor"),Q.route("scale.title","color","","color"),Q.describe("scale",{_fallback:!1,_scriptable:(J)=>!J.startsWith("before")&&!J.startsWith("after")&&J!=="callback"&&J!=="parser",_indexable:(J)=>J!=="borderDash"&&J!=="tickBorderDash"&&J!=="dash"}),Q.describe("scales",{_fallback:"scale"}),Q.describe("scale.ticks",{_scriptable:(J)=>J!=="backdropPadding"&&J!=="callback",_indexable:(J)=>J!=="backdropPadding"})}var j2=Object.create(null),f3=Object.create(null);function YQ(Q,J){if(!J)return Q;let X=J.split(".");for(let q=0,N=X.length;q<N;++q){let K=X[q];Q=Q[K]||(Q[K]=Object.create(null))}return Q}function MU(Q,J,X){if(typeof J==="string")return X$(YQ(Q,J),X);return X$(YQ(Q,""),J)}class Jz{constructor(Q,J){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=(X)=>X.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(X,q)=>HU(q.backgroundColor),this.hoverBorderColor=(X,q)=>HU(q.borderColor),this.hoverColor=(X,q)=>HU(q.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(Q),this.apply(J)}set(Q,J){return MU(this,Q,J)}get(Q){return YQ(this,Q)}describe(Q,J){return MU(f3,Q,J)}override(Q,J){return MU(j2,Q,J)}route(Q,J,X,q){let N=YQ(this,Q),K=YQ(this,X),H="_"+J;Object.defineProperties(N,{[H]:{value:N[J],writable:!0},[J]:{enumerable:!0,get(){let M=this[H],F=K[q];if(t0(M))return Object.assign({},F,M);return r0(M,F)},set(M){this[H]=M}}})}apply(Q){Q.forEach((J)=>J(this))}}var h1=new Jz({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[wV,RV,LV]);function _V(Q){if(!Q||Z1(Q.size)||Z1(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function NQ(Q,J,X,q,N){let K=J[N];if(!K)K=J[N]=Q.measureText(N).width,X.push(N);if(K>q)q=K;return q}function Gz(Q,J,X,q){q=q||{};let N=q.data=q.data||{},K=q.garbageCollect=q.garbageCollect||[];if(q.font!==J)N=q.data={},K=q.garbageCollect=[],q.font=J;Q.save(),Q.font=J;let H=0,M=X.length,F,w,z,T,_;for(F=0;F<M;F++)if(T=X[F],T!==void 0&&T!==null&&!V1(T))H=NQ(Q,N,K,H,T);else if(V1(T)){for(w=0,z=T.length;w<z;w++)if(_=T[w],_!==void 0&&_!==null&&!V1(_))H=NQ(Q,N,K,H,_)}Q.restore();let I=K.length/2;if(I>X.length){for(F=0;F<I;F++)delete N[K[F]];K.splice(0,I)}return H}function D2(Q,J,X){let q=Q.currentDevicePixelRatio,N=X!==0?Math.max(X/2,0.5):0;return Math.round((J-N)*q)/q+N}function OU(Q,J){if(!J&&!Q)return;J=J||Q.getContext("2d"),J.save(),J.resetTransform(),J.clearRect(0,0,Q.width,Q.height),J.restore()}function y3(Q,J,X,q){VU(Q,J,X,q,null)}function VU(Q,J,X,q,N){let K,H,M,F,w,z,T,_,I=J.pointStyle,E=J.rotation,V=J.radius,O=(E||0)*BV;if(I&&typeof I==="object"){if(K=I.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(X,q),Q.rotate(O),Q.drawImage(I,-I.width/2,-I.height/2,I.width,I.height),Q.restore();return}}if(isNaN(V)||V<=0)return;switch(Q.beginPath(),I){default:if(N)Q.ellipse(X,q,N/2,V,0,0,e5);else Q.arc(X,q,V,0,e5);Q.closePath();break;case"triangle":z=N?N/2:V,Q.moveTo(X+Math.sin(O)*z,q-Math.cos(O)*V),O+=DR,Q.lineTo(X+Math.sin(O)*z,q-Math.cos(O)*V),O+=DR,Q.lineTo(X+Math.sin(O)*z,q-Math.cos(O)*V),Q.closePath();break;case"rectRounded":w=V*0.516,F=V-w,H=Math.cos(O+D9)*F,T=Math.cos(O+D9)*(N?N/2-w:F),M=Math.sin(O+D9)*F,_=Math.sin(O+D9)*(N?N/2-w:F),Q.arc(X-T,q-M,w,O-l1,O-t5),Q.arc(X+_,q-H,w,O-t5,O),Q.arc(X+T,q+M,w,O,O+t5),Q.arc(X-_,q+H,w,O+t5,O+l1),Q.closePath();break;case"rect":if(!E){F=Math.SQRT1_2*V,z=N?N/2:F,Q.rect(X-z,q-F,2*z,2*F);break}O+=D9;case"rectRot":T=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,M=Math.sin(O)*V,_=Math.sin(O)*(N?N/2:V),Q.moveTo(X-T,q-M),Q.lineTo(X+_,q-H),Q.lineTo(X+T,q+M),Q.lineTo(X-_,q+H),Q.closePath();break;case"crossRot":O+=D9;case"cross":T=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,M=Math.sin(O)*V,_=Math.sin(O)*(N?N/2:V),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+_,q-H),Q.lineTo(X-_,q+H);break;case"star":T=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,M=Math.sin(O)*V,_=Math.sin(O)*(N?N/2:V),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+_,q-H),Q.lineTo(X-_,q+H),O+=D9,T=Math.cos(O)*(N?N/2:V),H=Math.cos(O)*V,M=Math.sin(O)*V,_=Math.sin(O)*(N?N/2:V),Q.moveTo(X-T,q-M),Q.lineTo(X+T,q+M),Q.moveTo(X+_,q-H),Q.lineTo(X-_,q+H);break;case"line":H=N?N/2:Math.cos(O)*V,M=Math.sin(O)*V,Q.moveTo(X-H,q-M),Q.lineTo(X+H,q+M);break;case"dash":Q.moveTo(X,q),Q.lineTo(X+Math.cos(O)*(N?N/2:V),q+Math.sin(O)*V);break;case!1:Q.closePath();break}if(Q.fill(),J.borderWidth>0)Q.stroke()}function m4(Q,J,X){return X=X||0.5,!J||Q&&Q.x>J.left-X&&Q.x<J.right+X&&Q.y>J.top-X&&Q.y<J.bottom+X}function BQ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function HQ(Q){Q.restore()}function Xz(Q,J,X,q,N){if(!J)return Q.lineTo(X.x,X.y);if(N==="middle"){let K=(J.x+X.x)/2;Q.lineTo(K,J.y),Q.lineTo(K,X.y)}else if(N==="after"!==!!q)Q.lineTo(J.x,X.y);else Q.lineTo(X.x,J.y);Q.lineTo(X.x,X.y)}function qz(Q,J,X,q){if(!J)return Q.lineTo(X.x,X.y);Q.bezierCurveTo(q?J.cp1x:J.cp2x,q?J.cp1y:J.cp2y,q?X.cp2x:X.cp1x,q?X.cp2y:X.cp1y,X.x,X.y)}function PV(Q,J){if(J.translation)Q.translate(J.translation[0],J.translation[1]);if(!Z1(J.rotation))Q.rotate(J.rotation);if(J.color)Q.fillStyle=J.color;if(J.textAlign)Q.textAlign=J.textAlign;if(J.textBaseline)Q.textBaseline=J.textBaseline}function CV(Q,J,X,q,N){if(N.strikethrough||N.underline){let K=Q.measureText(q),H=J-K.actualBoundingBoxLeft,M=J+K.actualBoundingBoxRight,F=X-K.actualBoundingBoxAscent,w=X+K.actualBoundingBoxDescent,z=N.strikethrough?(F+w)/2:w;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=N.decorationWidth||2,Q.moveTo(H,z),Q.lineTo(M,z),Q.stroke()}}function IV(Q,J){let X=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=X}function v2(Q,J,X,q,N,K={}){let H=V1(J)?J:[J],M=K.strokeWidth>0&&K.strokeColor!=="",F,w;Q.save(),Q.font=N.string,PV(Q,K);for(F=0;F<H.length;++F){if(w=H[F],K.backdrop)IV(Q,K.backdrop);if(M){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!Z1(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(w,X,q,K.maxWidth)}Q.fillText(w,X,q,K.maxWidth),CV(Q,X,q,w,K),q+=Number(N.lineHeight)}Q.restore()}function B$(Q,J){let{x:X,y:q,w:N,h:K,radius:H}=J;Q.arc(X+H.topLeft,q+H.topLeft,H.topLeft,1.5*l1,l1,!0),Q.lineTo(X,q+K-H.bottomLeft),Q.arc(X+H.bottomLeft,q+K-H.bottomLeft,H.bottomLeft,l1,t5,!0),Q.lineTo(X+N-H.bottomRight,q+K),Q.arc(X+N-H.bottomRight,q+K-H.bottomRight,H.bottomRight,t5,0,!0),Q.lineTo(X+N,q+H.topRight),Q.arc(X+N-H.topRight,q+H.topRight,H.topRight,0,-t5,!0),Q.lineTo(X+H.topLeft,q)}var OV=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,VV=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function AV(Q,J){let X=(""+Q).match(OV);if(!X||X[1]==="normal")return J*1.2;switch(Q=+X[2],X[3]){case"px":return Q;case"%":Q/=100;break}return J*Q}var EV=(Q)=>+Q||0;function AU(Q,J){let X={},q=t0(J),N=q?Object.keys(J):J,K=t0(Q)?q?(H)=>r0(Q[H],Q[J[H]]):(H)=>Q[H]:()=>Q;for(let H of N)X[H]=EV(K(H));return X}function EU(Q){return AU(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function b2(Q){return AU(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function _5(Q){let J=EU(Q);return J.width=J.left+J.right,J.height=J.top+J.bottom,J}function $5(Q,J){Q=Q||{},J=J||h1.font;let X=r0(Q.size,J.size);if(typeof X==="string")X=parseInt(X,10);let q=r0(Q.style,J.style);if(q&&!(""+q).match(VV))console.warn('Invalid font style specified: "'+q+'"'),q=void 0;let N={family:r0(Q.family,J.family),lineHeight:AV(r0(Q.lineHeight,J.lineHeight),X),size:X,style:q,weight:r0(Q.weight,J.weight),string:""};return N.string=_V(N),N}function MQ(Q,J,X,q){let N=!0,K,H,M;for(K=0,H=Q.length;K<H;++K){if(M=Q[K],M===void 0)continue;if(J!==void 0&&typeof M==="function")M=M(J),N=!1;if(X!==void 0&&V1(M))M=M[X%M.length],N=!1;if(M!==void 0){if(q&&!N)q.cacheable=!1;return M}}}function Yz(Q,J,X){let{min:q,max:N}=Q,K=mR(J,(N-q)/2),H=(M,F)=>X&&M===0?0:M+F;return{min:H(q,-Math.abs(K)),max:H(N,K)}}function O8(Q,J){return Object.assign(Object.create(Q),J)}function g3(Q,J=[""],X,q,N=()=>Q[0]){let K=X||Q;if(typeof q>"u")q=Kz("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:q,_getTarget:N,override:(M)=>g3([M,...Q],J,K,q)};return new Proxy(H,{deleteProperty(M,F){return delete M[F],delete M._keys,delete Q[0][F],!0},get(M,F){return Nz(M,F,()=>yV(F,J,Q,M))},getOwnPropertyDescriptor(M,F){return Reflect.getOwnPropertyDescriptor(M._scopes[0],F)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(M,F){return yR(M).includes(F)},ownKeys(M){return yR(M)},set(M,F,w){let z=M._storage||(M._storage=N());return M[F]=z[F]=w,delete M._keys,!0}})}function b9(Q,J,X,q){let N={_cacheable:!1,_proxy:Q,_context:J,_subProxy:X,_stack:new Set,_descriptors:SU(Q,q),setContext:(K)=>b9(Q,K,X,q),override:(K)=>b9(Q.override(K),J,X,q)};return new Proxy(N,{deleteProperty(K,H){return delete K[H],delete Q[H],!0},get(K,H,M){return Nz(K,H,()=>jV(K,H,M))},getOwnPropertyDescriptor(K,H){return K._descriptors.allKeys?Reflect.has(Q,H)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(Q,H)},getPrototypeOf(){return Reflect.getPrototypeOf(Q)},has(K,H){return Reflect.has(Q,H)},ownKeys(){return Reflect.ownKeys(Q)},set(K,H,M){return Q[H]=M,delete K[H],!0}})}function SU(Q,J={scriptable:!0,indexable:!0}){let{_scriptable:X=J.scriptable,_indexable:q=J.indexable,_allKeys:N=J.allKeys}=Q;return{allKeys:N,scriptable:X,indexable:q,isScriptable:_8(X)?X:()=>X,isIndexable:_8(q)?q:()=>q}}var SV=(Q,J)=>Q?Q+j3(J):J,jU=(Q,J)=>t0(J)&&Q!=="adapters"&&(Object.getPrototypeOf(J)===null||J.constructor===Object);function Nz(Q,J,X){if(Object.prototype.hasOwnProperty.call(Q,J)||J==="constructor")return Q[J];let q=X();return Q[J]=q,q}function jV(Q,J,X){let{_proxy:q,_context:N,_subProxy:K,_descriptors:H}=Q,M=q[J];if(_8(M)&&H.isScriptable(J))M=DV(J,M,Q,X);if(V1(M)&&M.length)M=vV(J,M,Q,H.isIndexable);if(jU(J,M))M=b9(M,N,K&&K[J],H);return M}function DV(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_stack:M}=X;if(M.has(Q))throw Error("Recursion detected: "+Array.from(M).join("->")+"->"+Q);M.add(Q);let F=J(K,H||q);if(M.delete(Q),jU(Q,F))F=DU(N._scopes,N,Q,F);return F}function vV(Q,J,X,q){let{_proxy:N,_context:K,_subProxy:H,_descriptors:M}=X;if(typeof K.index<"u"&&q(Q))return J[K.index%J.length];else if(t0(J[0])){let F=J,w=N._scopes.filter((z)=>z!==F);J=[];for(let z of F){let T=DU(w,N,Q,z);J.push(b9(T,K,H&&H[Q],M))}}return J}function Uz(Q,J,X){return _8(Q)?Q(J,X):Q}var bV=(Q,J)=>Q===!0?J:typeof Q==="string"?k9(J,Q):void 0;function kV(Q,J,X,q,N){for(let K of J){let H=bV(X,K);if(H){Q.add(H);let M=Uz(H._fallback,X,N);if(typeof M<"u"&&M!==X&&M!==q)return M}else if(H===!1&&typeof q<"u"&&X!==q)return null}return!1}function DU(Q,J,X,q){let N=J._rootScopes,K=Uz(J._fallback,X,q),H=[...Q,...N],M=new Set;M.add(q);let F=fR(M,H,X,K||X,q);if(F===null)return!1;if(typeof K<"u"&&K!==X){if(F=fR(M,H,K,F,q),F===null)return!1}return g3(Array.from(M),[""],N,K,()=>fV(J,X,q))}function fR(Q,J,X,q,N){while(X)X=kV(Q,J,X,q,N);return X}function fV(Q,J,X){let q=Q._getTarget();if(!(J in q))q[J]={};let N=q[J];if(V1(N)&&t0(X))return X;return N||{}}function yV(Q,J,X,q){let N;for(let K of J)if(N=Kz(SV(K,Q),X),typeof N<"u")return jU(Q,N)?DU(X,q,Q,N):N}function Kz(Q,J){for(let X of J){if(!X)continue;let q=X[Q];if(typeof q<"u")return q}}function yR(Q){let J=Q._keys;if(!J)J=Q._keys=gV(Q._scopes);return J}function gV(Q){let J=new Set;for(let X of Q)for(let q of Object.keys(X).filter((N)=>!N.startsWith("_")))J.add(q);return Array.from(J)}var hV=Number.EPSILON||0.00000000000001,q$=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],Bz=(Q)=>Q==="x"?"y":"x";function uV(Q,J,X,q){let N=Q.skip?J:Q,K=J,H=X.skip?J:X,M=E3(K,N),F=E3(H,K),w=M/(M+F),z=F/(M+F);w=isNaN(w)?0:w,z=isNaN(z)?0:z;let T=q*w,_=q*z;return{previous:{x:K.x-T*(H.x-N.x),y:K.y-T*(H.y-N.y)},next:{x:K.x+_*(H.x-N.x),y:K.y+_*(H.y-N.y)}}}function xV(Q,J,X){let q=Q.length,N,K,H,M,F,w=q$(Q,0);for(let z=0;z<q-1;++z){if(F=w,w=q$(Q,z+1),!F||!w)continue;if(U$(J[z],0,hV)){X[z]=X[z+1]=0;continue}if(N=X[z]/J[z],K=X[z+1]/J[z],M=Math.pow(N,2)+Math.pow(K,2),M<=9)continue;H=3/Math.sqrt(M),X[z]=N*H*J[z],X[z+1]=K*H*J[z]}}function mV(Q,J,X="x"){let q=Bz(X),N=Q.length,K,H,M,F=q$(Q,0);for(let w=0;w<N;++w){if(H=M,M=F,F=q$(Q,w+1),!M)continue;let z=M[X],T=M[q];if(H)K=(z-H[X])/3,M[`cp1${X}`]=z-K,M[`cp1${q}`]=T-K*J[w];if(F)K=(F[X]-z)/3,M[`cp2${X}`]=z+K,M[`cp2${q}`]=T+K*J[w]}}function dV(Q,J="x"){let X=Bz(J),q=Q.length,N=Array(q).fill(0),K=Array(q),H,M,F,w=q$(Q,0);for(H=0;H<q;++H){if(M=F,F=w,w=q$(Q,H+1),!F)continue;if(w){let z=w[J]-F[J];N[H]=z!==0?(w[X]-F[X])/z:0}K[H]=!M?N[H]:!w?N[H-1]:N4(N[H-1])!==N4(N[H])?0:(N[H-1]+N[H])/2}xV(Q,N,K),mV(Q,K,J)}function I3(Q,J,X){return Math.max(Math.min(Q,X),J)}function pV(Q,J){let X,q,N,K,H,M=m4(Q[0],J);for(X=0,q=Q.length;X<q;++X){if(H=K,K=M,M=X<q-1&&m4(Q[X+1],J),!K)continue;if(N=Q[X],H)N.cp1x=I3(N.cp1x,J.left,J.right),N.cp1y=I3(N.cp1y,J.top,J.bottom);if(M)N.cp2x=I3(N.cp2x,J.left,J.right),N.cp2y=I3(N.cp2y,J.top,J.bottom)}}function Hz(Q,J,X,q,N){let K,H,M,F;if(J.spanGaps)Q=Q.filter((w)=>!w.skip);if(J.cubicInterpolationMode==="monotone")dV(Q,N);else{let w=q?Q[Q.length-1]:Q[0];for(K=0,H=Q.length;K<H;++K)M=Q[K],F=uV(w,M,Q[Math.min(K+1,H-(q?0:1))%H],J.tension),M.cp1x=F.previous.x,M.cp1y=F.previous.y,M.cp2x=F.next.x,M.cp2y=F.next.y,w=M}if(J.capBezierPoints)pV(Q,X)}function h3(){return typeof window<"u"&&typeof document<"u"}function u3(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function S3(Q,J,X){let q;if(typeof Q==="string"){if(q=parseInt(Q,10),Q.indexOf("%")!==-1)q=q/100*J.parentNode[X]}else q=Q;return q}var x3=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function cV(Q,J){return x3(Q).getPropertyValue(J)}var lV=["top","right","bottom","left"];function v9(Q,J,X){let q={};X=X?"-"+X:"";for(let N=0;N<4;N++){let K=lV[N];q[K]=parseFloat(Q[J+"-"+K+X])||0}return q.width=q.left+q.right,q.height=q.top+q.bottom,q}var rV=(Q,J,X)=>(Q>0||J>0)&&(!X||!X.shadowRoot);function sV(Q,J){let X=Q.touches,q=X&&X.length?X[0]:Q,{offsetX:N,offsetY:K}=q,H=!1,M,F;if(rV(N,K,Q.target))M=N,F=K;else{let w=J.getBoundingClientRect();M=q.clientX-w.left,F=q.clientY-w.top,H=!0}return{x:M,y:F,box:H}}function k2(Q,J){if("native"in Q)return Q;let{canvas:X,currentDevicePixelRatio:q}=J,N=x3(X),K=N.boxSizing==="border-box",H=v9(N,"padding"),M=v9(N,"border","width"),{x:F,y:w,box:z}=sV(Q,X),T=H.left+(z&&M.left),_=H.top+(z&&M.top),{width:I,height:E}=J;if(K)I-=H.width+M.width,E-=H.height+M.height;return{x:Math.round((F-T)/I*X.width/q),y:Math.round((w-_)/E*X.height/q)}}function nV(Q,J,X){let q,N;if(J===void 0||X===void 0){let K=Q&&u3(Q);if(!K)J=Q.clientWidth,X=Q.clientHeight;else{let H=K.getBoundingClientRect(),M=x3(K),F=v9(M,"border","width"),w=v9(M,"padding");J=H.width-w.width-F.width,X=H.height-w.height-F.height,q=S3(M.maxWidth,K,"clientWidth"),N=S3(M.maxHeight,K,"clientHeight")}}return{width:J,height:X,maxWidth:q||A3,maxHeight:N||A3}}var S2=(Q)=>Math.round(Q*10)/10;function Mz(Q,J,X,q){let N=x3(Q),K=v9(N,"margin"),H=S3(N.maxWidth,Q,"clientWidth")||A3,M=S3(N.maxHeight,Q,"clientHeight")||A3,F=nV(Q,J,X),{width:w,height:z}=F;if(N.boxSizing==="content-box"){let _=v9(N,"border","width"),I=v9(N,"padding");w-=I.width+_.width,z-=I.height+_.height}if(w=Math.max(0,w-K.width),z=Math.max(0,q?w/q:z-K.height),w=S2(Math.min(w,H,F.maxWidth)),z=S2(Math.min(z,M,F.maxHeight)),w&&!z)z=S2(w/2);if((J!==void 0||X!==void 0)&&q&&F.height&&z>F.height)z=F.height,w=S2(Math.floor(z*q));return{width:w,height:z}}function vU(Q,J,X){let q=J||1,N=S2(Q.height*q),K=S2(Q.width*q);Q.height=S2(Q.height),Q.width=S2(Q.width);let H=Q.canvas;if(H.style&&(X||!H.style.height&&!H.style.width))H.style.height=`${Q.height}px`,H.style.width=`${Q.width}px`;if(Q.currentDevicePixelRatio!==q||H.height!==N||H.width!==K)return Q.currentDevicePixelRatio=q,H.height=N,H.width=K,Q.ctx.setTransform(q,0,0,q,0,0),!0;return!1}var Fz=function(){let Q=!1;try{let J={get passive(){return Q=!0,!1}};if(h3())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function bU(Q,J){let X=cV(Q,J),q=X&&X.match(/^(\d+)(\.\d+)?px$/);return q?+q[1]:void 0}function A2(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:Q.y+X*(J.y-Q.y)}}function Wz(Q,J,X,q){return{x:Q.x+X*(J.x-Q.x),y:q==="middle"?X<0.5?Q.y:J.y:q==="after"?X<1?Q.y:J.y:X>0?J.y:Q.y}}function wz(Q,J,X,q){let N={x:Q.cp2x,y:Q.cp2y},K={x:J.cp1x,y:J.cp1y},H=A2(Q,N,X),M=A2(N,K,X),F=A2(K,J,X),w=A2(H,M,X),z=A2(M,F,X);return A2(w,z,X)}var oV=function(Q,J){return{x(X){return Q+Q+J-X},setWidth(X){J=X},textAlign(X){if(X==="center")return X;return X==="right"?"left":"right"},xPlus(X,q){return X-q},leftForLtr(X,q){return X-q}}},aV=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,J){return Q+J},leftForLtr(Q,J){return Q}}};function f9(Q,J,X){return Q?oV(J,X):aV()}function kU(Q,J){let X,q;if(J==="ltr"||J==="rtl")X=Q.canvas.style,q=[X.getPropertyValue("direction"),X.getPropertyPriority("direction")],X.setProperty("direction",J,"important"),Q.prevTextDirection=q}function fU(Q,J){if(J!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",J[0],J[1])}function Rz(Q){if(Q==="angle")return{between:zU,compare:MV,normalize:i5};return{between:I8,compare:(J,X)=>J-X,normalize:(J)=>J}}function gR({start:Q,end:J,count:X,loop:q,style:N}){return{start:Q%X,end:J%X,loop:q&&(J-Q+1)%X===0,style:N}}function iV(Q,J,X){let{property:q,start:N,end:K}=X,{between:H,normalize:M}=Rz(q),F=J.length,{start:w,end:z,loop:T}=Q,_,I;if(T){w+=F,z+=F;for(_=0,I=F;_<I;++_){if(!H(M(J[w%F][q]),N,K))break;w--,z--}w%=F,z%=F}if(z<w)z+=F;return{start:w,end:z,loop:T,style:Q.style}}function yU(Q,J,X){if(!X)return[Q];let{property:q,start:N,end:K}=X,H=J.length,{compare:M,between:F,normalize:w}=Rz(q),{start:z,end:T,loop:_,style:I}=iV(Q,J,X),E=[],V=!1,O=null,D,h,p,s=()=>F(N,p,D)&&M(N,p)!==0,a=()=>M(K,D)===0||F(K,p,D),J0=()=>V||s(),t=()=>!V||a();for(let i=z,Y0=z;i<=T;++i){if(h=J[i%H],h.skip)continue;if(D=w(h[q]),D===p)continue;if(V=F(D,N,K),O===null&&J0())O=M(D,N)===0?i:Y0;if(O!==null&&t())E.push(gR({start:O,end:i,loop:_,count:H,style:I})),O=null;Y0=i,p=D}if(O!==null)E.push(gR({start:O,end:T,loop:_,count:H,style:I}));return E}function gU(Q,J){let X=[],q=Q.segments;for(let N=0;N<q.length;N++){let K=yU(q[N],Q.points,J);if(K.length)X.push(...K)}return X}function tV(Q,J,X,q){let N=0,K=J-1;if(X&&!q)while(N<J&&!Q[N].skip)N++;while(N<J&&Q[N].skip)N++;if(N%=J,X)K+=N;while(K>N&&Q[K%J].skip)K--;return K%=J,{start:N,end:K}}function eV(Q,J,X,q){let N=Q.length,K=[],H=J,M=Q[J],F;for(F=J+1;F<=X;++F){let w=Q[F%N];if(w.skip||w.stop){if(!M.skip)q=!1,K.push({start:J%N,end:(F-1)%N,loop:q}),J=H=w.stop?F:null}else if(H=F,M.skip)J=F;M=w}if(H!==null)K.push({start:J%N,end:H%N,loop:q});return K}function zz(Q,J){let X=Q.points,q=Q.options.spanGaps,N=X.length;if(!N)return[];let K=!!Q._loop,{start:H,end:M}=tV(X,N,K,q);if(q===!0)return hR(Q,[{start:H,end:M,loop:K}],X,J);let F=M<H?M+N:M,w=!!Q._fullLoop&&H===0&&M===N-1;return hR(Q,eV(X,H,F,w),X,J)}function hR(Q,J,X,q){if(!q||!q.setContext||!X)return J;return $A(Q,J,X,q)}function $A(Q,J,X,q){let N=Q._chart.getContext(),K=uR(Q.options),{_datasetIndex:H,options:{spanGaps:M}}=Q,F=X.length,w=[],z=K,T=J[0].start,_=T;function I(E,V,O,D){let h=M?-1:1;if(E===V)return;E+=F;while(X[E%F].skip)E-=h;while(X[V%F].skip)V+=h;if(E%F!==V%F)w.push({start:E%F,end:V%F,loop:O,style:D}),z=D,T=V%F}for(let E of J){T=M?T:E.start;let V=X[T%F],O;for(_=T+1;_<=E.end;_++){let D=X[_%F];if(O=uR(q.setContext(O8(N,{type:"segment",p0:V,p1:D,p0DataIndex:(_-1)%F,p1DataIndex:_%F,datasetIndex:H}))),ZA(O,z))I(T,_-1,E.loop,z);V=D,z=O}if(T<_-1)I(T,_-1,E.loop,z)}return w}function uR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function ZA(Q,J){if(!J)return!1;let X=[],q=function(N,K){if(!CU(K))return K;if(!X.includes(K))X.push(K);return X.indexOf(K)};return JSON.stringify(Q,q)!==JSON.stringify(J,q)}function O3(Q,J,X){return Q.options.clip?Q[X]:J[X]}function QA(Q,J){let{xScale:X,yScale:q}=Q;if(X&&q)return{left:O3(X,J,"left"),right:O3(X,J,"right"),top:O3(q,J,"top"),bottom:O3(q,J,"bottom")};return J}function hU(Q,J){let X=J._clip;if(X.disabled)return!1;let q=QA(J,Q.chartArea);return{left:X.left===!1?0:q.left-(X.left===!0?0:X.left),right:X.right===!1?Q.width:q.right+(X.right===!0?0:X.right),top:X.top===!1?0:q.top-(X.top===!0?0:X.top),bottom:X.bottom===!1?Q.height:q.bottom+(X.bottom===!0?0:X.bottom)}}/*!
251
+ * Chart.js v4.5.1
252
+ * https://www.chartjs.org
253
+ * (c) 2025 Chart.js Contributors
254
+ * Released under the MIT License
255
+ */class WT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Q,J,X,q){let N=J.listeners[q],K=J.duration;N.forEach((H)=>H({chart:Q,initial:J.initial,numSteps:K,currentStep:Math.min(X-J.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=_U.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(Q=Date.now()){let J=0;if(this._charts.forEach((X,q)=>{if(!X.running||!X.items.length)return;let N=X.items,K=N.length-1,H=!1,M;for(;K>=0;--K)if(M=N[K],M._active){if(M._total>X.duration)X.duration=M._total;M.tick(Q),H=!0}else N[K]=N[N.length-1],N.pop();if(H)q.draw(),this._notify(q,X,Q,"progress");if(!N.length)X.running=!1,this._notify(q,X,Q,"complete"),X.initial=!1;J+=N.length}),this._lastDate=Q,J===0)this._running=!1}_getAnims(Q){let J=this._charts,X=J.get(Q);if(!X)X={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},J.set(Q,X);return X}listen(Q,J,X){this._getAnims(Q).listeners[J].push(X)}add(Q,J){if(!J||!J.length)return;this._getAnims(Q).items.push(...J)}has(Q){return this._getAnims(Q).items.length>0}start(Q){let J=this._charts.get(Q);if(!J)return;J.running=!0,J.start=Date.now(),J.duration=J.items.reduce((X,q)=>Math.max(X,q._duration),0),this._refresh()}running(Q){if(!this._running)return!1;let J=this._charts.get(Q);if(!J||!J.running||!J.items.length)return!1;return!0}stop(Q){let J=this._charts.get(Q);if(!J||!J.items.length)return;let X=J.items,q=X.length-1;for(;q>=0;--q)X[q].cancel();J.items=[],this._notify(Q,J,Date.now(),"complete")}remove(Q){return this._charts.delete(Q)}}var V8=new WT,Tz="transparent",JA={boolean(Q,J,X){return X>0.5?J:Q},color(Q,J,X){let q=IU(Q||Tz),N=q.valid&&IU(J||Tz);return N&&N.valid?N.mix(q,X).hexString():J},number(Q,J,X){return Q+(J-Q)*X}};class wT{constructor(Q,J,X,q){let N=J[X];q=MQ([Q.to,q,N,Q.from]);let K=MQ([Q.from,N,q]);this._active=!0,this._fn=Q.fn||JA[Q.type||typeof K],this._easing=G$[Q.easing]||G$.linear,this._start=Math.floor(Date.now()+(Q.delay||0)),this._duration=this._total=Math.floor(Q.duration),this._loop=!!Q.loop,this._target=J,this._prop=X,this._from=K,this._to=q,this._promises=void 0}active(){return this._active}update(Q,J,X){if(this._active){this._notify(!1);let q=this._target[this._prop],N=X-this._start,K=this._duration-N;this._start=X,this._duration=Math.floor(Math.max(K,Q.duration)),this._total+=N,this._loop=!!Q.loop,this._to=MQ([Q.to,J,q,Q.from]),this._from=MQ([Q.from,q,J])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(Q){let J=Q-this._start,X=this._duration,q=this._prop,N=this._from,K=this._loop,H=this._to,M;if(this._active=N!==H&&(K||J<X),!this._active){this._target[q]=H,this._notify(!0);return}if(J<0){this._target[q]=N;return}M=J/X%2,M=K&&M>1?2-M:M,M=this._easing(Math.min(1,Math.max(0,M))),this._target[q]=this._fn(N,H,M)}wait(){let Q=this._promises||(this._promises=[]);return new Promise((J,X)=>{Q.push({res:J,rej:X})})}_notify(Q){let J=Q?"res":"rej",X=this._promises||[];for(let q=0;q<X.length;q++)X[q][J]()}}class GK{constructor(Q,J){this._chart=Q,this._properties=new Map,this.configure(J)}configure(Q){if(!t0(Q))return;let J=Object.keys(h1.animation),X=this._properties;Object.getOwnPropertyNames(Q).forEach((q)=>{let N=Q[q];if(!t0(N))return;let K={};for(let H of J)K[H]=N[H];(V1(N.properties)&&N.properties||[q]).forEach((H)=>{if(H===q||!X.has(H))X.set(H,K)})})}_animateOptions(Q,J){let X=J.options,q=XA(Q,X);if(!q)return[];let N=this._createAnimations(q,X);if(X.$shared)GA(Q.options.$animations,X).then(()=>{Q.options=X},()=>{});return N}_createAnimations(Q,J){let X=this._properties,q=[],N=Q.$animations||(Q.$animations={}),K=Object.keys(J),H=Date.now(),M;for(M=K.length-1;M>=0;--M){let F=K[M];if(F.charAt(0)==="$")continue;if(F==="options"){q.push(...this._animateOptions(Q,J));continue}let w=J[F],z=N[F],T=X.get(F);if(z)if(T&&z.active()){z.update(T,w,H);continue}else z.cancel();if(!T||!T.duration){Q[F]=w;continue}N[F]=z=new wT(T,Q,F,w),q.push(z)}return q}update(Q,J){if(this._properties.size===0){Object.assign(Q,J);return}let X=this._createAnimations(Q,J);if(X.length)return V8.add(this._chart,X),!0}}function GA(Q,J){let X=[],q=Object.keys(J);for(let N=0;N<q.length;N++){let K=Q[q[N]];if(K&&K.active())X.push(K.wait())}return Promise.all(X)}function XA(Q,J){if(!J)return;let X=Q.options;if(!X){Q.options=J;return}if(X.$shared)Q.options=X=Object.assign({},X,{$shared:!1,$animations:{}});return X}function Lz(Q,J){let X=Q&&Q.options||{},q=X.reverse,N=X.min===void 0?J:0,K=X.max===void 0?J:0;return{start:q?K:N,end:q?N:K}}function qA(Q,J,X){if(X===!1)return!1;let q=Lz(Q,X),N=Lz(J,X);return{top:N.end,right:q.end,bottom:N.start,left:q.start}}function YA(Q){let J,X,q,N;if(t0(Q))J=Q.top,X=Q.right,q=Q.bottom,N=Q.left;else J=X=q=N=Q;return{top:J,right:X,bottom:q,left:N,disabled:Q===!1}}function RT(Q,J){let X=[],q=Q._getSortedDatasetMetas(J),N,K;for(N=0,K=q.length;N<K;++N)X.push(q[N].index);return X}function _z(Q,J,X,q={}){let N=Q.keys,K=q.mode==="single",H,M,F,w;if(J===null)return;let z=!1;for(H=0,M=N.length;H<M;++H){if(F=+N[H],F===X){if(z=!0,q.all)continue;break}if(w=Q.values[F],g1(w)&&(K||J===0||N4(J)===N4(w)))J+=w}if(!z&&!q.all)return 0;return J}function NA(Q,J){let{iScale:X,vScale:q}=J,N=X.axis==="x"?"x":"y",K=q.axis==="x"?"x":"y",H=Object.keys(Q),M=Array(H.length),F,w,z;for(F=0,w=H.length;F<w;++F)z=H[F],M[F]={[N]:z,[K]:Q[z]};return M}function uU(Q,J){let X=Q&&Q.options.stacked;return X||X===void 0&&J.stack!==void 0}function UA(Q,J,X){return`${Q.id}.${J.id}.${X.stack||X.type}`}function KA(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=Q.getUserBounds();return{min:q?J:Number.NEGATIVE_INFINITY,max:N?X:Number.POSITIVE_INFINITY}}function BA(Q,J,X){let q=Q[J]||(Q[J]={});return q[X]||(q[X]={})}function Pz(Q,J,X,q){for(let N of J.getMatchingVisibleMetas(q).reverse()){let K=Q[N.index];if(X&&K>0||!X&&K<0)return N.index}return null}function Cz(Q,J){let{chart:X,_cachedMeta:q}=Q,N=X._stacks||(X._stacks={}),{iScale:K,vScale:H,index:M}=q,F=K.axis,w=H.axis,z=UA(K,H,q),T=J.length,_;for(let I=0;I<T;++I){let E=J[I],{[F]:V,[w]:O}=E,D=E._stacks||(E._stacks={});_=D[w]=BA(N,z,V),_[M]=O,_._top=Pz(_,H,!0,q.type),_._bottom=Pz(_,H,!1,q.type);let h=_._visualValues||(_._visualValues={});h[M]=O}}function xU(Q,J){let X=Q.scales;return Object.keys(X).filter((q)=>X[q].axis===J).shift()}function HA(Q,J){return O8(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function MA(Q,J,X){return O8(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:X,index:J,mode:"default",type:"data"})}function FQ(Q,J){let X=Q.controller.index,q=Q.vScale&&Q.vScale.axis;if(!q)return;J=J||Q._parsed;for(let N of J){let K=N._stacks;if(!K||K[q]===void 0||K[q][X]===void 0)return;if(delete K[q][X],K[q]._visualValues!==void 0&&K[q]._visualValues[X]!==void 0)delete K[q]._visualValues[X]}}var mU=(Q)=>Q==="reset"||Q==="none",Iz=(Q,J)=>J?Q:Object.assign({},Q),FA=(Q,J,X)=>Q&&!J.hidden&&J._stacked&&{keys:RT(X,!0),values:null};class o3{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(Q,J){this.chart=Q,this._ctx=Q.ctx,this.index=J,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let Q=this._cachedMeta;if(this.configure(),this.linkScales(),Q._stacked=uU(Q.vScale,Q),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler"))console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(Q){if(this.index!==Q)FQ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,X=this.getDataset(),q=(z,T,_,I)=>z==="x"?T:z==="r"?I:_,N=J.xAxisID=r0(X.xAxisID,xU(Q,"x")),K=J.yAxisID=r0(X.yAxisID,xU(Q,"y")),H=J.rAxisID=r0(X.rAxisID,xU(Q,"r")),M=J.indexAxis,F=J.iAxisID=q(M,N,K,H),w=J.vAxisID=q(M,K,N,H);J.xScale=this.getScaleForId(N),J.yScale=this.getScaleForId(K),J.rScale=this.getScaleForId(H),J.iScale=this.getScaleForId(F),J.vScale=this.getScaleForId(w)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(Q){return this.chart.scales[Q]}_getOtherScale(Q){let J=this._cachedMeta;return Q===J.iScale?J.vScale:J.iScale}reset(){this._update("reset")}_destroy(){let Q=this._cachedMeta;if(this._data)TU(this._data,this);if(Q._stacked)FQ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),X=this._data;if(t0(J)){let q=this._cachedMeta;this._data=NA(J,q)}else if(X!==J){if(X){TU(X,this);let q=this._cachedMeta;FQ(q),q._parsed=[]}if(J&&Object.isExtensible(J))iR(J,this);this._syncList=[],this._data=J}}addElements(){let Q=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)Q.dataset=new this.datasetElementType}buildOrUpdateElements(Q){let J=this._cachedMeta,X=this.getDataset(),q=!1;this._dataCheck();let N=J._stacked;if(J._stacked=uU(J.vScale,J),J.stack!==X.stack)q=!0,FQ(J),J.stack=X.stack;if(this._resyncElements(Q),q||N!==J._stacked)Cz(this,J._parsed),J._stacked=uU(J.vScale,J)}configure(){let Q=this.chart.config,J=Q.datasetScopeKeys(this._type),X=Q.getOptionScopes(this.getDataset(),J,!0);this.options=Q.createResolver(X,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Q,J){let{_cachedMeta:X,_data:q}=this,{iScale:N,_stacked:K}=X,H=N.axis,M=Q===0&&J===q.length?!0:X._sorted,F=Q>0&&X._parsed[Q-1],w,z,T;if(this._parsing===!1)X._parsed=q,X._sorted=!0,T=q;else{if(V1(q[Q]))T=this.parseArrayData(X,q,Q,J);else if(t0(q[Q]))T=this.parseObjectData(X,q,Q,J);else T=this.parsePrimitiveData(X,q,Q,J);let _=()=>z[H]===null||F&&z[H]<F[H];for(w=0;w<J;++w)if(X._parsed[w+Q]=z=T[w],M){if(_())M=!1;F=z}X._sorted=M}if(K)Cz(this,T)}parsePrimitiveData(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.axis,M=K.axis,F=N.getLabels(),w=N===K,z=Array(q),T,_,I;for(T=0,_=q;T<_;++T)I=T+X,z[T]={[H]:w||N.parse(F[I],I),[M]:K.parse(J[I],I)};return z}parseArrayData(Q,J,X,q){let{xScale:N,yScale:K}=Q,H=Array(q),M,F,w,z;for(M=0,F=q;M<F;++M)w=M+X,z=J[w],H[M]={x:N.parse(z[0],w),y:K.parse(z[1],w)};return H}parseObjectData(Q,J,X,q){let{xScale:N,yScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=Array(q),w,z,T,_;for(w=0,z=q;w<z;++w)T=w+X,_=J[T],F[w]={x:N.parse(k9(_,H),T),y:K.parse(k9(_,M),T)};return F}getParsed(Q){return this._cachedMeta._parsed[Q]}getDataElement(Q){return this._cachedMeta.data[Q]}applyStack(Q,J,X){let q=this.chart,N=this._cachedMeta,K=J[Q.axis],H={keys:RT(q,!0),values:J._stacks[Q.axis]._visualValues};return _z(H,K,N.index,{mode:X})}updateRangeFromParsed(Q,J,X,q){let N=X[J.axis],K=N===null?NaN:N,H=q&&X._stacks[J.axis];if(q&&H)q.values=H,K=_z(q,N,this._cachedMeta.index);Q.min=Math.min(Q.min,K),Q.max=Math.max(Q.max,K)}getMinMax(Q,J){let X=this._cachedMeta,q=X._parsed,N=X._sorted&&Q===X.iScale,K=q.length,H=this._getOtherScale(Q),M=FA(J,X,this.chart),F={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:z}=KA(H),T,_;function I(){_=q[T];let E=_[H.axis];return!g1(_[Q.axis])||w>E||z<E}for(T=0;T<K;++T){if(I())continue;if(this.updateRangeFromParsed(F,Q,_,M),N)break}if(N)for(T=K-1;T>=0;--T){if(I())continue;this.updateRangeFromParsed(F,Q,_,M);break}return F}getAllParsedValues(Q){let J=this._cachedMeta._parsed,X=[],q,N,K;for(q=0,N=J.length;q<N;++q)if(K=J[q][Q.axis],g1(K))X.push(K);return X}getMaxOverflow(){return!1}getLabelAndValue(Q){let J=this._cachedMeta,X=J.iScale,q=J.vScale,N=this.getParsed(Q);return{label:X?""+X.getLabelForValue(N[X.axis]):"",value:q?""+q.getLabelForValue(N[q.axis]):""}}_update(Q){let J=this._cachedMeta;this.update(Q||"default"),J._clip=YA(r0(this.options.clip,qA(J.xScale,J.yScale,this.getMaxOverflow())))}update(Q){}draw(){let Q=this._ctx,J=this.chart,X=this._cachedMeta,q=X.data||[],N=J.chartArea,K=[],H=this._drawStart||0,M=this._drawCount||q.length-H,F=this.options.drawActiveElementsOnTop,w;if(X.dataset)X.dataset.draw(Q,N,H,M);for(w=H;w<H+M;++w){let z=q[w];if(z.hidden)continue;if(z.active&&F)K.push(z);else z.draw(Q,N)}for(w=0;w<K.length;++w)K[w].draw(Q,N)}getStyle(Q,J){let X=J?"active":"default";return Q===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(X):this.resolveDataElementOptions(Q||0,X)}getContext(Q,J,X){let q=this.getDataset(),N;if(Q>=0&&Q<this._cachedMeta.data.length){let K=this._cachedMeta.data[Q];N=K.$context||(K.$context=MA(this.getContext(),Q,K)),N.parsed=this.getParsed(Q),N.raw=q.data[Q],N.index=N.dataIndex=Q}else N=this.$context||(this.$context=HA(this.chart.getContext(),this.index)),N.dataset=q,N.index=N.datasetIndex=this.index;return N.active=!!J,N.mode=X,N}resolveDatasetElementOptions(Q){return this._resolveElementOptions(this.datasetElementType.id,Q)}resolveDataElementOptions(Q,J){return this._resolveElementOptions(this.dataElementType.id,J,Q)}_resolveElementOptions(Q,J="default",X){let q=J==="active",N=this._cachedDataOpts,K=Q+"-"+J,H=N[K],M=this.enableOptionSharing&&N$(X);if(H)return Iz(H,M);let F=this.chart.config,w=F.datasetElementScopeKeys(this._type,Q),z=q?[`${Q}Hover`,"hover",Q,""]:[Q,""],T=F.getOptionScopes(this.getDataset(),w),_=Object.keys(h1.elements[Q]),I=()=>this.getContext(X,q,J),E=F.resolveNamedOptions(T,_,I,z);if(E.$shared)E.$shared=M,N[K]=Object.freeze(Iz(E,M));return E}_resolveAnimations(Q,J,X){let q=this.chart,N=this._cachedDataOpts,K=`animation-${J}`,H=N[K];if(H)return H;let M;if(q.options.animation!==!1){let w=this.chart.config,z=w.datasetAnimationScopeKeys(this._type,J),T=w.getOptionScopes(this.getDataset(),z);M=w.createResolver(T,this.getContext(Q,X,J))}let F=new GK(q,M&&M.animations);if(M&&M._cacheable)N[K]=Object.freeze(F);return F}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,J){return!J||mU(Q)||this.chart._animationsDisabled}_getSharedOptions(Q,J){let X=this.resolveDataElementOptions(Q,J),q=this._sharedOptions,N=this.getSharedOptions(X),K=this.includeOptions(J,N)||N!==q;return this.updateSharedOptions(N,J,X),{sharedOptions:N,includeOptions:K}}updateElement(Q,J,X,q){if(mU(q))Object.assign(Q,X);else this._resolveAnimations(J,q).update(Q,X)}updateSharedOptions(Q,J,X){if(Q&&!mU(J))this._resolveAnimations(void 0,J).update(Q,X)}_setStyle(Q,J,X,q){Q.active=q;let N=this.getStyle(J,q);this._resolveAnimations(J,X,q).update(Q,{options:!q&&this.getSharedOptions(N)||N})}removeHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!1)}setHoverStyle(Q,J,X){this._setStyle(Q,X,"active",!0)}_removeDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!1)}_setDatasetHoverStyle(){let Q=this._cachedMeta.dataset;if(Q)this._setStyle(Q,void 0,"active",!0)}_resyncElements(Q){let J=this._data,X=this._cachedMeta.data;for(let[H,M,F]of this._syncList)this[H](M,F);this._syncList=[];let q=X.length,N=J.length,K=Math.min(N,q);if(K)this.parse(0,K);if(N>q)this._insertElements(q,N-q,Q);else if(N<q)this._removeElements(N,q-N)}_insertElements(Q,J,X=!0){let q=this._cachedMeta,N=q.data,K=Q+J,H,M=(F)=>{F.length+=J;for(H=F.length-1;H>=K;H--)F[H]=F[H-J]};M(N);for(H=Q;H<K;++H)N[H]=new this.dataElementType;if(this._parsing)M(q._parsed);if(this.parse(Q,J),X)this.updateElements(N,Q,J,"reset")}updateElements(Q,J,X,q){}_removeElements(Q,J){let X=this._cachedMeta;if(this._parsing){let q=X._parsed.splice(Q,J);if(X._stacked)FQ(X,q)}X.data.splice(Q,J)}_sync(Q){if(this._parsing)this._syncList.push(Q);else{let[J,X,q]=Q;this[J](X,q)}this.chart._dataChanges.push([this.index,...Q])}_onDataPush(){let Q=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-Q,Q])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(Q,J){if(J)this._sync(["_removeElements",Q,J]);let X=arguments.length-2;if(X)this._sync(["_insertElements",Q,X])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function WA(Q,J){if(!Q._cache.$bar){let X=Q.getMatchingVisibleMetas(J),q=[];for(let N=0,K=X.length;N<K;N++)q=q.concat(X[N].controller.getAllParsedValues(Q));Q._cache.$bar=LU(q.sort((N,K)=>N-K))}return Q._cache.$bar}function wA(Q){let J=Q.iScale,X=WA(J,Q.type),q=J._length,N,K,H,M,F=()=>{if(H===32767||H===-32768)return;if(N$(M))q=Math.min(q,Math.abs(H-M)||q);M=H};for(N=0,K=X.length;N<K;++N)H=J.getPixelForValue(X[N]),F();M=void 0;for(N=0,K=J.ticks.length;N<K;++N)H=J.getPixelForTick(N),F();return q}function RA(Q,J,X,q){let N=X.barThickness,K,H;if(Z1(N))K=J.min*X.categoryPercentage,H=X.barPercentage;else K=N*q,H=1;return{chunk:K/q,ratio:H,start:J.pixels[Q]-K/2}}function zA(Q,J,X,q){let N=J.pixels,K=N[Q],H=Q>0?N[Q-1]:null,M=Q<N.length-1?N[Q+1]:null,F=X.categoryPercentage;if(H===null)H=K-(M===null?J.end-J.start:M-K);if(M===null)M=K+K-H;let w=K-(K-Math.min(H,M))/2*F;return{chunk:Math.abs(M-H)/2*F/q,ratio:X.barPercentage,start:w}}function TA(Q,J,X,q){let N=X.parse(Q[0],q),K=X.parse(Q[1],q),H=Math.min(N,K),M=Math.max(N,K),F=H,w=M;if(Math.abs(H)>Math.abs(M))F=M,w=H;J[X.axis]=w,J._custom={barStart:F,barEnd:w,start:N,end:K,min:H,max:M}}function zT(Q,J,X,q){if(V1(Q))TA(Q,J,X,q);else J[X.axis]=X.parse(Q,q);return J}function Oz(Q,J,X,q){let{iScale:N,vScale:K}=Q,H=N.getLabels(),M=N===K,F=[],w,z,T,_;for(w=X,z=X+q;w<z;++w)_=J[w],T={},T[N.axis]=M||N.parse(H[w],w),F.push(zT(_,T,K,w));return F}function dU(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function LA(Q,J,X){if(Q!==0)return N4(Q);return(J.isHorizontal()?1:-1)*(J.min>=X?1:-1)}function _A(Q){let J,X,q,N,K;if(Q.horizontal)J=Q.base>Q.x,X="left",q="right";else J=Q.base<Q.y,X="bottom",q="top";if(J)N="end",K="start";else N="start",K="end";return{start:X,end:q,reverse:J,top:N,bottom:K}}function PA(Q,J,X,q){let N=J.borderSkipped,K={};if(!N){Q.borderSkipped=K;return}if(N===!0){Q.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:M,reverse:F,top:w,bottom:z}=_A(Q);if(N==="middle"&&X)if(Q.enableBorderRadius=!0,(X._top||0)===q)N=w;else if((X._bottom||0)===q)N=z;else K[Vz(z,H,M,F)]=!0,N=w;K[Vz(N,H,M,F)]=!0,Q.borderSkipped=K}function Vz(Q,J,X,q){if(q)Q=CA(Q,J,X),Q=Az(Q,X,J);else Q=Az(Q,J,X);return Q}function CA(Q,J,X){return Q===J?X:Q===X?J:Q}function Az(Q,J,X){return Q==="start"?J:Q==="end"?X:Q}function IA(Q,{inflateAmount:J},X){Q.inflateAmount=J==="auto"?X===1?0.33:0:J}class XK extends o3{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:0.8,barPercentage:0.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(Q,J,X,q){return Oz(Q,J,X,q)}parseArrayData(Q,J,X,q){return Oz(Q,J,X,q)}parseObjectData(Q,J,X,q){let{iScale:N,vScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=N.axis==="x"?H:M,w=K.axis==="x"?H:M,z=[],T,_,I,E;for(T=X,_=X+q;T<_;++T)E=J[T],I={},I[N.axis]=N.parse(k9(E,F),T),z.push(zT(k9(E,w),I,K,T));return z}updateRangeFromParsed(Q,J,X,q){super.updateRangeFromParsed(Q,J,X,q);let N=X._custom;if(N&&J===this._cachedMeta.vScale)Q.min=Math.min(Q.min,N.min),Q.max=Math.max(Q.max,N.max)}getMaxOverflow(){return 0}getLabelAndValue(Q){let J=this._cachedMeta,{iScale:X,vScale:q}=J,N=this.getParsed(Q),K=N._custom,H=dU(K)?"["+K.start+", "+K.end+"]":""+q.getLabelForValue(N[q.axis]);return{label:""+X.getLabelForValue(N[X.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let Q=this._cachedMeta;Q.stack=this.getDataset().stack}update(Q){let J=this._cachedMeta;this.updateElements(J.data,0,J.data.length,Q)}updateElements(Q,J,X,q){let N=q==="reset",{index:K,_cachedMeta:{vScale:H}}=this,M=H.getBasePixel(),F=H.isHorizontal(),w=this._getRuler(),{sharedOptions:z,includeOptions:T}=this._getSharedOptions(J,q);for(let _=J;_<J+X;_++){let I=this.getParsed(_),E=N||Z1(I[H.axis])?{base:M,head:M}:this._calculateBarValuePixels(_),V=this._calculateBarIndexPixels(_,w),O=(I._stacks||{})[H.axis],D={horizontal:F,base:E.base,enableBorderRadius:!O||dU(I._custom)||K===O._top||K===O._bottom,x:F?E.head:V.center,y:F?V.center:E.head,height:F?V.size:Math.abs(E.size),width:F?Math.abs(E.size):V.size};if(T)D.options=z||this.resolveDataElementOptions(_,Q[_].active?"active":q);let h=D.options||Q[_].options;PA(D,h,O,K),IA(D,h,w.ratio),this.updateElement(Q[_],_,D,q)}}_getStacks(Q,J){let{iScale:X}=this._cachedMeta,q=X.getMatchingVisibleMetas(this._type).filter((w)=>w.controller.options.grouped),N=X.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(J),M=H&&H[X.axis],F=(w)=>{let z=w._parsed.find((_)=>_[X.axis]===M),T=z&&z[w.vScale.axis];if(Z1(T)||isNaN(T))return!0};for(let w of q){if(J!==void 0&&F(w))continue;if(N===!1||K.indexOf(w.stack)===-1||N===void 0&&w.stack===void 0)K.push(w.stack);if(w.index===Q)break}if(!K.length)K.push(void 0);return K}_getStackCount(Q){return this._getStacks(void 0,Q).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let Q=this.chart.scales,J=this.chart.options.indexAxis;return Object.keys(Q).filter((X)=>Q[X].axis===J).shift()}_getAxis(){let Q={},J=this.getFirstScaleIdForIndexAxis();for(let X of this.chart.data.datasets)Q[r0(this.chart.options.indexAxis==="x"?X.xAxisID:X.yAxisID,J)]=!0;return Object.keys(Q)}_getStackIndex(Q,J,X){let q=this._getStacks(Q,X),N=J!==void 0?q.indexOf(J):-1;return N===-1?q.length-1:N}_getRuler(){let Q=this.options,J=this._cachedMeta,X=J.iScale,q=[],N,K;for(N=0,K=J.data.length;N<K;++N)q.push(X.getPixelForValue(this.getParsed(N)[X.axis],N));let H=Q.barThickness;return{min:H||wA(J),pixels:q,start:X._startPixel,end:X._endPixel,stackCount:this._getStackCount(),scale:X,grouped:Q.grouped,ratio:H?1:Q.categoryPercentage*Q.barPercentage}}_calculateBarValuePixels(Q){let{_cachedMeta:{vScale:J,_stacked:X,index:q},options:{base:N,minBarLength:K}}=this,H=N||0,M=this.getParsed(Q),F=M._custom,w=dU(F),z=M[J.axis],T=0,_=X?this.applyStack(J,M,X):z,I,E;if(_!==z)T=_-z,_=z;if(w){if(z=F.barStart,_=F.barEnd-F.barStart,z!==0&&N4(z)!==N4(F.barEnd))T=0;T+=z}let V=!Z1(N)&&!w?N:T,O=J.getPixelForValue(V);if(this.chart.getDataVisibility(Q))I=J.getPixelForValue(T+_);else I=O;if(E=I-O,Math.abs(E)<K){if(E=LA(E,J,H)*K,z===H)O-=E/2;let D=J.getPixelForDecimal(0),h=J.getPixelForDecimal(1),p=Math.min(D,h),s=Math.max(D,h);if(O=Math.max(Math.min(O,s),p),I=O+E,X&&!w)M._stacks[J.axis]._visualValues[q]=J.getValueForPixel(I)-J.getValueForPixel(O)}if(O===J.getPixelForValue(H)){let D=N4(E)*J.getLineWidthForValue(H)/2;O+=D,E-=D}return{size:E,base:O,head:I,center:I+E/2}}_calculateBarIndexPixels(Q,J){let X=J.scale,q=this.options,N=q.skipNull,K=r0(q.maxBarThickness,1/0),H,M,F=this._getAxisCount();if(J.grouped){let w=N?this._getStackCount(Q):J.stackCount,z=q.barThickness==="flex"?zA(Q,J,q,w*F):RA(Q,J,q,w*F),T=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,_=this._getAxis().indexOf(r0(T,this.getFirstScaleIdForIndexAxis())),I=this._getStackIndex(this.index,this._cachedMeta.stack,N?Q:void 0)+_;H=z.start+z.chunk*I+z.chunk/2,M=Math.min(K,z.chunk*z.ratio)}else H=X.getPixelForValue(this.getParsed(Q)[X.axis],Q),M=Math.min(K,J.min*J.ratio);return{base:H-M/2,head:H+M/2,center:H,size:M}}draw(){let Q=this._cachedMeta,J=Q.vScale,X=Q.data,q=X.length,N=0;for(;N<q;++N)if(this.getParsed(N)[J.axis]!==null&&!X[N].hidden)X[N].draw(this._ctx)}}class qK extends o3{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(Q){let J=this._cachedMeta,{dataset:X,data:q=[],_dataset:N}=J,K=this.chart._animationsDisabled,{start:H,count:M}=$z(J,q,K);if(this._drawStart=H,this._drawCount=M,Zz(J))H=0,M=q.length;X._chart=this.chart,X._datasetIndex=this.index,X._decimated=!!N._decimated,X.points=q;let F=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)F.borderWidth=0;F.segment=this.options.segment,this.updateElement(X,void 0,{animated:!K,options:F},Q),this.updateElements(q,H,M,Q)}updateElements(Q,J,X,q){let N=q==="reset",{iScale:K,vScale:H,_stacked:M,_dataset:F}=this._cachedMeta,{sharedOptions:w,includeOptions:z}=this._getSharedOptions(J,q),T=K.axis,_=H.axis,{spanGaps:I,segment:E}=this.options,V=K$(I)?I:Number.POSITIVE_INFINITY,O=this.chart._animationsDisabled||N||q==="none",D=J+X,h=Q.length,p=J>0&&this.getParsed(J-1);for(let s=0;s<h;++s){let a=Q[s],J0=O?a:{};if(s<J||s>=D){J0.skip=!0;continue}let t=this.getParsed(s),i=Z1(t[_]),Y0=J0[T]=K.getPixelForValue(t[T],s),d=J0[_]=N||i?H.getBasePixel():H.getPixelForValue(M?this.applyStack(H,t,M):t[_],s);if(J0.skip=isNaN(Y0)||isNaN(d)||i,J0.stop=s>0&&Math.abs(t[T]-p[T])>V,E)J0.parsed=t,J0.raw=F.data[s];if(z)J0.options=w||this.resolveDataElementOptions(s,a.active?"active":q);if(!O)this.updateElement(a,s,J0,q);p=t}}getMaxOverflow(){let Q=this._cachedMeta,J=Q.dataset,X=J.options&&J.options.borderWidth||0,q=Q.data||[];if(!q.length)return X;let N=q[0].size(this.resolveDataElementOptions(0)),K=q[q.length-1].size(this.resolveDataElementOptions(q.length-1));return Math.max(X,N,K)/2}draw(){let Q=this._cachedMeta;Q.dataset.updateControlPoints(this.chart.chartArea,Q.iScale.axis),super.draw()}}function y9(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class YK{static override(Q){Object.assign(YK.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return y9()}parse(){return y9()}format(){return y9()}add(){return y9()}diff(){return y9()}startOf(){return y9()}endOf(){return y9()}}var OA={_date:YK};function VA(Q,J,X,q){let{controller:N,data:K,_sorted:H}=Q,M=N._cachedMeta.iScale,F=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(M&&J===M.axis&&J!=="r"&&H&&K.length){let w=M._reversePixels?nR:E2;if(!q){let z=w(K,J,X);if(F){let{vScale:T}=N._cachedMeta,{_parsed:_}=Q,I=_.slice(0,z.lo+1).reverse().findIndex((V)=>!Z1(V[T.axis]));z.lo-=Math.max(0,I);let E=_.slice(z.hi).findIndex((V)=>!Z1(V[T.axis]));z.hi+=Math.max(0,E)}return z}else if(N._sharedOptions){let z=K[0],T=typeof z.getRange==="function"&&z.getRange(J);if(T){let _=w(K,J,X-T),I=w(K,J,X+T);return{lo:_.lo,hi:I.hi}}}}return{lo:0,hi:K.length-1}}function OQ(Q,J,X,q,N){let K=Q.getSortedVisibleDatasetMetas(),H=X[J];for(let M=0,F=K.length;M<F;++M){let{index:w,data:z}=K[M],{lo:T,hi:_}=VA(K[M],J,H,N);for(let I=T;I<=_;++I){let E=z[I];if(!E.skip)q(E,w,I)}}}function AA(Q){let J=Q.indexOf("x")!==-1,X=Q.indexOf("y")!==-1;return function(q,N){let K=J?Math.abs(q.x-N.x):0,H=X?Math.abs(q.y-N.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function pU(Q,J,X,q,N){let K=[];if(!N&&!Q.isPointInArea(J))return K;return OQ(Q,X,J,function(M,F,w){if(!N&&!m4(M,Q.chartArea,0))return;if(M.inRange(J.x,J.y,q))K.push({element:M,datasetIndex:F,index:w})},!0),K}function EA(Q,J,X,q){let N=[];function K(H,M,F){let{startAngle:w,endAngle:z}=H.getProps(["startAngle","endAngle"],q),{angle:T}=rR(H,{x:J.x,y:J.y});if(zU(T,w,z))N.push({element:H,datasetIndex:M,index:F})}return OQ(Q,X,J,K),N}function SA(Q,J,X,q,N,K){let H=[],M=AA(X),F=Number.POSITIVE_INFINITY;function w(z,T,_){let I=z.inRange(J.x,J.y,N);if(q&&!I)return;let E=z.getCenterPoint(N);if(!(!!K||Q.isPointInArea(E))&&!I)return;let O=M(J,E);if(O<F)H=[{element:z,datasetIndex:T,index:_}],F=O;else if(O===F)H.push({element:z,datasetIndex:T,index:_})}return OQ(Q,X,J,w),H}function cU(Q,J,X,q,N,K){if(!K&&!Q.isPointInArea(J))return[];return X==="r"&&!q?EA(Q,J,X,N):SA(Q,J,X,q,N,K)}function Ez(Q,J,X,q,N){let K=[],H=X==="x"?"inXRange":"inYRange",M=!1;if(OQ(Q,X,J,(F,w,z)=>{if(F[H]&&F[H](J[X],N))K.push({element:F,datasetIndex:w,index:z}),M=M||F.inRange(J.x,J.y,N)}),q&&!M)return[];return K}var jA={evaluateInteractionItems:OQ,modes:{index(Q,J,X,q){let N=k2(J,Q),K=X.axis||"x",H=X.includeInvisible||!1,M=X.intersect?pU(Q,N,K,q,H):cU(Q,N,K,!1,q,H),F=[];if(!M.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((w)=>{let z=M[0].index,T=w.data[z];if(T&&!T.skip)F.push({element:T,datasetIndex:w.index,index:z})}),F},dataset(Q,J,X,q){let N=k2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1,M=X.intersect?pU(Q,N,K,q,H):cU(Q,N,K,!1,q,H);if(M.length>0){let F=M[0].datasetIndex,w=Q.getDatasetMeta(F).data;M=[];for(let z=0;z<w.length;++z)M.push({element:w[z],datasetIndex:F,index:z})}return M},point(Q,J,X,q){let N=k2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return pU(Q,N,K,q,H)},nearest(Q,J,X,q){let N=k2(J,Q),K=X.axis||"xy",H=X.includeInvisible||!1;return cU(Q,N,K,X.intersect,q,H)},x(Q,J,X,q){let N=k2(J,Q);return Ez(Q,N,"x",X.intersect,q)},y(Q,J,X,q){let N=k2(J,Q);return Ez(Q,N,"y",X.intersect,q)}}},TT=["left","top","right","bottom"];function WQ(Q,J){return Q.filter((X)=>X.pos===J)}function Sz(Q,J){return Q.filter((X)=>TT.indexOf(X.pos)===-1&&X.box.axis===J)}function wQ(Q,J){return Q.sort((X,q)=>{let N=J?q:X,K=J?X:q;return N.weight===K.weight?N.index-K.index:N.weight-K.weight})}function DA(Q){let J=[],X,q,N,K,H,M;for(X=0,q=(Q||[]).length;X<q;++X)N=Q[X],{position:K,options:{stack:H,stackWeight:M=1}}=N,J.push({index:X,box:N,pos:K,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&K+H,stackWeight:M});return J}function vA(Q){let J={};for(let X of Q){let{stack:q,pos:N,stackWeight:K}=X;if(!q||!TT.includes(N))continue;let H=J[q]||(J[q]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return J}function bA(Q,J){let X=vA(Q),{vBoxMaxWidth:q,hBoxMaxHeight:N}=J,K,H,M;for(K=0,H=Q.length;K<H;++K){M=Q[K];let{fullSize:F}=M.box,w=X[M.stack],z=w&&M.stackWeight/w.weight;if(M.horizontal)M.width=z?z*q:F&&J.availableWidth,M.height=N;else M.width=q,M.height=z?z*N:F&&J.availableHeight}return X}function kA(Q){let J=DA(Q),X=wQ(J.filter((w)=>w.box.fullSize),!0),q=wQ(WQ(J,"left"),!0),N=wQ(WQ(J,"right")),K=wQ(WQ(J,"top"),!0),H=wQ(WQ(J,"bottom")),M=Sz(J,"x"),F=Sz(J,"y");return{fullSize:X,leftAndTop:q.concat(K),rightAndBottom:N.concat(F).concat(H).concat(M),chartArea:WQ(J,"chartArea"),vertical:q.concat(N).concat(F),horizontal:K.concat(H).concat(M)}}function jz(Q,J,X,q){return Math.max(Q[X],J[X])+Math.max(Q[q],J[q])}function LT(Q,J){Q.top=Math.max(Q.top,J.top),Q.left=Math.max(Q.left,J.left),Q.bottom=Math.max(Q.bottom,J.bottom),Q.right=Math.max(Q.right,J.right)}function fA(Q,J,X,q){let{pos:N,box:K}=X,H=Q.maxPadding;if(!t0(N)){if(X.size)Q[N]-=X.size;let T=q[X.stack]||{size:0,count:1};T.size=Math.max(T.size,X.horizontal?K.height:K.width),X.size=T.size/T.count,Q[N]+=X.size}if(K.getPadding)LT(H,K.getPadding());let M=Math.max(0,J.outerWidth-jz(H,Q,"left","right")),F=Math.max(0,J.outerHeight-jz(H,Q,"top","bottom")),w=M!==Q.w,z=F!==Q.h;return Q.w=M,Q.h=F,X.horizontal?{same:w,other:z}:{same:z,other:w}}function yA(Q){let J=Q.maxPadding;function X(q){let N=Math.max(J[q]-Q[q],0);return Q[q]+=N,N}Q.y+=X("top"),Q.x+=X("left"),X("right"),X("bottom")}function gA(Q,J){let X=J.maxPadding;function q(N){let K={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{K[H]=Math.max(J[H],X[H])}),K}return Q?q(["left","right"]):q(["top","bottom"])}function TQ(Q,J,X,q){let N=[],K,H,M,F,w,z;for(K=0,H=Q.length,w=0;K<H;++K){M=Q[K],F=M.box,F.update(M.width||J.w,M.height||J.h,gA(M.horizontal,J));let{same:T,other:_}=fA(J,X,M,q);if(w|=T&&N.length,z=z||_,!F.fullSize)N.push(M)}return w&&TQ(N,J,X,q)||z}function m3(Q,J,X,q,N){Q.top=X,Q.left=J,Q.right=J+q,Q.bottom=X+N,Q.width=q,Q.height=N}function Dz(Q,J,X,q){let N=X.padding,{x:K,y:H}=J;for(let M of Q){let F=M.box,w=q[M.stack]||{count:1,placed:0,weight:1},z=M.stackWeight/w.weight||1;if(M.horizontal){let T=J.w*z,_=w.size||F.height;if(N$(w.start))H=w.start;if(F.fullSize)m3(F,N.left,H,X.outerWidth-N.right-N.left,_);else m3(F,J.left+w.placed,H,T,_);w.start=H,w.placed+=T,H=F.bottom}else{let T=J.h*z,_=w.size||F.width;if(N$(w.start))K=w.start;if(F.fullSize)m3(F,K,N.top,_,X.outerHeight-N.bottom-N.top);else m3(F,K,J.top+w.placed,_,T);w.start=K,w.placed+=T,K=F.right}}J.x=K,J.y=H}var p6={addBox(Q,J){if(!Q.boxes)Q.boxes=[];J.fullSize=J.fullSize||!1,J.position=J.position||"top",J.weight=J.weight||0,J._layers=J._layers||function(){return[{z:0,draw(X){J.draw(X)}}]},Q.boxes.push(J)},removeBox(Q,J){let X=Q.boxes?Q.boxes.indexOf(J):-1;if(X!==-1)Q.boxes.splice(X,1)},configure(Q,J,X){J.fullSize=X.fullSize,J.position=X.position,J.weight=X.weight},update(Q,J,X,q){if(!Q)return;let N=_5(Q.options.layout.padding),K=Math.max(J-N.width,0),H=Math.max(X-N.height,0),M=kA(Q.boxes),F=M.vertical,w=M.horizontal;B1(Q.boxes,(V)=>{if(typeof V.beforeLayout==="function")V.beforeLayout()});let z=F.reduce((V,O)=>O.box.options&&O.box.options.display===!1?V:V+1,0)||1,T=Object.freeze({outerWidth:J,outerHeight:X,padding:N,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/z,hBoxMaxHeight:H/2}),_=Object.assign({},N);LT(_,_5(q));let I=Object.assign({maxPadding:_,w:K,h:H,x:N.left,y:N.top},N),E=bA(F.concat(w),T);if(TQ(M.fullSize,I,T,E),TQ(F,I,T,E),TQ(w,I,T,E))TQ(F,I,T,E);yA(I),Dz(M.leftAndTop,I,T,E),I.x+=I.w,I.y+=I.h,Dz(M.rightAndBottom,I,T,E),Q.chartArea={left:I.left,top:I.top,right:I.left+I.w,bottom:I.top+I.h,height:I.h,width:I.w},B1(M.chartArea,(V)=>{let O=V.box;Object.assign(O,Q.chartArea),O.update(I.w,I.h,{left:0,top:0,right:0,bottom:0})})}};class NK{acquireContext(Q,J){}releaseContext(Q){return!1}addEventListener(Q,J,X){}removeEventListener(Q,J,X){}getDevicePixelRatio(){return 1}getMaximumSize(Q,J,X,q){return J=Math.max(0,J||Q.width),X=X||Q.height,{width:J,height:Math.max(0,q?Math.floor(J/q):X)}}isAttached(Q){return!0}updateConfig(Q){}}class _T extends NK{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var r3="$chartjs",hA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},vz=(Q)=>Q===null||Q==="";function uA(Q,J){let X=Q.style,q=Q.getAttribute("height"),N=Q.getAttribute("width");if(Q[r3]={initial:{height:q,width:N,style:{display:X.display,height:X.height,width:X.width}}},X.display=X.display||"block",X.boxSizing=X.boxSizing||"border-box",vz(N)){let K=bU(Q,"width");if(K!==void 0)Q.width=K}if(vz(q))if(Q.style.height==="")Q.height=Q.width/(J||2);else{let K=bU(Q,"height");if(K!==void 0)Q.height=K}return Q}var PT=Fz?{passive:!0}:!1;function xA(Q,J,X){if(Q)Q.addEventListener(J,X,PT)}function mA(Q,J,X){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,X,PT)}function dA(Q,J){let X=hA[Q.type]||Q.type,{x:q,y:N}=k2(Q,J);return{type:X,chart:J,native:Q,x:q!==void 0?q:null,y:N!==void 0?N:null}}function n3(Q,J){for(let X of Q)if(X===J||X.contains(J))return!0}function pA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||n3(M.addedNodes,q),H=H&&!n3(M.removedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}function cA(Q,J,X){let q=Q.canvas,N=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||n3(M.removedNodes,q),H=H&&!n3(M.addedNodes,q);if(H)X()});return N.observe(document,{childList:!0,subtree:!0}),N}var PQ=new Map,bz=0;function CT(){let Q=window.devicePixelRatio;if(Q===bz)return;bz=Q,PQ.forEach((J,X)=>{if(X.currentDevicePixelRatio!==Q)J()})}function lA(Q,J){if(!PQ.size)window.addEventListener("resize",CT);PQ.set(Q,J)}function rA(Q){if(PQ.delete(Q),!PQ.size)window.removeEventListener("resize",CT)}function sA(Q,J,X){let q=Q.canvas,N=q&&u3(q);if(!N)return;let K=PU((M,F)=>{let w=N.clientWidth;if(X(M,F),w<N.clientWidth)X()},window),H=new ResizeObserver((M)=>{let F=M[0],w=F.contentRect.width,z=F.contentRect.height;if(w===0&&z===0)return;K(w,z)});return H.observe(N),lA(Q,K),H}function lU(Q,J,X){if(X)X.disconnect();if(J==="resize")rA(Q)}function nA(Q,J,X){let q=Q.canvas,N=PU((K)=>{if(Q.ctx!==null)X(dA(K,Q))},Q);return xA(q,J,N),N}class IT extends NK{acquireContext(Q,J){let X=Q&&Q.getContext&&Q.getContext("2d");if(X&&X.canvas===Q)return uA(Q,J),X;return null}releaseContext(Q){let J=Q.canvas;if(!J[r3])return!1;let X=J[r3].initial;["height","width"].forEach((N)=>{let K=X[N];if(Z1(K))J.removeAttribute(N);else J.setAttribute(N,K)});let q=X.style||{};return Object.keys(q).forEach((N)=>{J.style[N]=q[N]}),J.width=J.width,delete J[r3],!0}addEventListener(Q,J,X){this.removeEventListener(Q,J);let q=Q.$proxies||(Q.$proxies={}),K={attach:pA,detach:cA,resize:sA}[J]||nA;q[J]=K(Q,J,X)}removeEventListener(Q,J){let X=Q.$proxies||(Q.$proxies={}),q=X[J];if(!q)return;({attach:lU,detach:lU,resize:lU}[J]||mA)(Q,J,q),X[J]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,J,X,q){return Mz(Q,J,X,q)}isAttached(Q){let J=Q&&u3(Q);return!!(J&&J.isConnected)}}function oA(Q){if(!h3()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return _T;return IT}class E8{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}hasValue(){return K$(this.x)&&K$(this.y)}getProps(Q,J){let X=this.$animations;if(!J||!X)return this;let q={};return Q.forEach((N)=>{q[N]=X[N]&&X[N].active()?X[N]._to:this[N]}),q}}function aA(Q,J){let X=Q.options.ticks,q=iA(Q),N=Math.min(X.maxTicksLimit||q,q),K=X.major.enabled?eA(J):[],H=K.length,M=K[0],F=K[H-1],w=[];if(H>N)return $E(J,w,K,H/N),w;let z=tA(K,J,N);if(H>0){let T,_,I=H>1?Math.round((F-M)/(H-1)):null;d3(J,w,z,Z1(I)?0:M-I,M);for(T=0,_=H-1;T<_;T++)d3(J,w,z,K[T],K[T+1]);return d3(J,w,z,F,Z1(I)?J.length:F+I),w}return d3(J,w,z),w}function iA(Q){let J=Q.options.offset,X=Q._tickSize(),q=Q._length/X+(J?0:1),N=Q._maxLength/X;return Math.floor(Math.min(q,N))}function tA(Q,J,X){let q=ZE(Q),N=J.length/X;if(!q)return Math.max(N,1);let K=cR(q);for(let H=0,M=K.length-1;H<M;H++){let F=K[H];if(F>N)return F}return Math.max(N,1)}function eA(Q){let J=[],X,q;for(X=0,q=Q.length;X<q;X++)if(Q[X].major)J.push(X);return J}function $E(Q,J,X,q){let N=0,K=X[0],H;q=Math.ceil(q);for(H=0;H<Q.length;H++)if(H===K)J.push(Q[H]),N++,K=X[N*q]}function d3(Q,J,X,q,N){let K=r0(q,0),H=Math.min(r0(N,Q.length),Q.length),M=0,F,w,z;if(X=Math.ceil(X),N)F=N-q,X=F/Math.floor(F/X);z=K;while(z<0)M++,z=Math.round(K+M*X);for(w=Math.max(K,0);w<H;w++)if(w===z)J.push(Q[w]),M++,z=Math.round(K+M*X)}function ZE(Q){let J=Q.length,X,q;if(J<2)return!1;for(q=Q[0],X=1;X<J;++X)if(Q[X]-Q[X-1]!==q)return!1;return q}var QE=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,kz=(Q,J,X)=>J==="top"||J==="left"?Q[J]+X:Q[J]-X,fz=(Q,J)=>Math.min(J||Q,Q);function yz(Q,J){let X=[],q=Q.length/J,N=Q.length,K=0;for(;K<N;K+=q)X.push(Q[Math.floor(K)]);return X}function JE(Q,J,X){let q=Q.ticks.length,N=Math.min(J,q-1),K=Q._startPixel,H=Q._endPixel,M=0.000001,F=Q.getPixelForTick(N),w;if(X){if(q===1)w=Math.max(F-K,H-F);else if(J===0)w=(Q.getPixelForTick(1)-F)/2;else w=(F-Q.getPixelForTick(N-1))/2;if(F+=N<J?w:-w,F<K-0.000001||F>H+0.000001)return}return F}function GE(Q,J){B1(Q,(X)=>{let q=X.gc,N=q.length/2,K;if(N>J){for(K=0;K<N;++K)delete X.data[q[K]];q.splice(0,N)}})}function RQ(Q){return Q.drawTicks?Q.tickLength:0}function gz(Q,J){if(!Q.display)return 0;let X=$5(Q.font,J),q=_5(Q.padding);return(V1(Q.text)?Q.text.length:1)*X.lineHeight+q.height}function XE(Q,J){return O8(Q,{scale:J,type:"scale"})}function qE(Q,J,X){return O8(Q,{tick:X,index:J,type:"tick"})}function YE(Q,J,X){let q=b3(Q);if(X&&J!=="right"||!X&&J==="right")q=QE(q);return q}function NE(Q,J,X,q){let{top:N,left:K,bottom:H,right:M,chart:F}=Q,{chartArea:w,scales:z}=F,T=0,_,I,E,V=H-N,O=M-K;if(Q.isHorizontal()){if(I=L5(q,K,M),t0(X)){let D=Object.keys(X)[0],h=X[D];E=z[D].getPixelForValue(h)+V-J}else if(X==="center")E=(w.bottom+w.top)/2+V-J;else E=kz(Q,X,J);_=M-K}else{if(t0(X)){let D=Object.keys(X)[0],h=X[D];I=z[D].getPixelForValue(h)-O+J}else if(X==="center")I=(w.left+w.right)/2-O+J;else I=kz(Q,X,J);E=L5(q,H,N),T=X==="left"?-t5:t5}return{titleX:I,titleY:E,maxWidth:_,rotation:T}}class h9 extends E8{constructor(Q){super();this.id=Q.id,this.type=Q.type,this.options=void 0,this.ctx=Q.ctx,this.chart=Q.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(Q){this.options=Q.setContext(this.getContext()),this.axis=Q.axis,this._userMin=this.parse(Q.min),this._userMax=this.parse(Q.max),this._suggestedMin=this.parse(Q.suggestedMin),this._suggestedMax=this.parse(Q.suggestedMax)}parse(Q,J){return Q}getUserBounds(){let{_userMin:Q,_userMax:J,_suggestedMin:X,_suggestedMax:q}=this;return Q=Z6(Q,Number.POSITIVE_INFINITY),J=Z6(J,Number.NEGATIVE_INFINITY),X=Z6(X,Number.POSITIVE_INFINITY),q=Z6(q,Number.NEGATIVE_INFINITY),{min:Z6(Q,X),max:Z6(J,q),minDefined:g1(Q),maxDefined:g1(J)}}getMinMax(Q){let{min:J,max:X,minDefined:q,maxDefined:N}=this.getUserBounds(),K;if(q&&N)return{min:J,max:X};let H=this.getMatchingVisibleMetas();for(let M=0,F=H.length;M<F;++M){if(K=H[M].controller.getMinMax(this,Q),!q)J=Math.min(J,K.min);if(!N)X=Math.max(X,K.max)}return J=N&&J>X?X:J,X=q&&J>X?J:X,{min:Z6(J,Z6(X,J)),max:Z6(X,Z6(J,X))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let Q=this.chart.data;return this.options.labels||(this.isHorizontal()?Q.xLabels:Q.yLabels)||Q.labels||[]}getLabelItems(Q=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(Q))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){_1(this.options.beforeUpdate,[this])}update(Q,J,X){let{beginAtZero:q,grace:N,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=Q,this.maxHeight=J,this._margins=X=Object.assign({left:0,right:0,top:0,bottom:0},X),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+X.left+X.right:this.height+X.top+X.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Yz(this,N,q),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let M=H<this.ticks.length;if(this._convertTicksToLabels(M?yz(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=aA(this,this.ticks),this._labelSizes=null,this.afterAutoSkip();if(M)this._convertTicksToLabels(this.ticks);this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let Q=this.options.reverse,J,X;if(this.isHorizontal())J=this.left,X=this.right;else J=this.top,X=this.bottom,Q=!Q;this._startPixel=J,this._endPixel=X,this._reversePixels=Q,this._length=X-J,this._alignToPixels=this.options.alignToPixels}afterUpdate(){_1(this.options.afterUpdate,[this])}beforeSetDimensions(){_1(this.options.beforeSetDimensions,[this])}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=0,this.right=this.width;else this.height=this.maxHeight,this.top=0,this.bottom=this.height;this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){_1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),_1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){_1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Q){let J=this.options.ticks,X,q,N;for(X=0,q=Q.length;X<q;X++)N=Q[X],N.label=_1(J.callback,[N.value,X,Q],this)}afterTickToLabelConversion(){_1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){_1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,J=Q.ticks,X=fz(this.ticks.length,Q.ticks.maxTicksLimit),q=J.minRotation||0,N=J.maxRotation,K=q,H,M,F;if(!this._isVisible()||!J.display||q>=N||X<=1||!this.isHorizontal()){this.labelRotation=q;return}let w=this._getLabelSizes(),z=w.widest.width,T=w.highest.height,_=$6(this.chart.width-z,0,this.maxWidth);if(H=Q.offset?this.maxWidth/X:_/(X-1),z+6>H)H=_/(X-(Q.offset?0.5:1)),M=this.maxHeight-RQ(Q.grid)-J.padding-gz(Q.title,this.chart.options.font),F=Math.sqrt(z*z+T*T),K=D3(Math.min(Math.asin($6((w.highest.height+6)/H,-1,1)),Math.asin($6(M/F,-1,1))-Math.asin($6(T/F,-1,1)))),K=Math.max(q,Math.min(N,K));this.labelRotation=K}afterCalculateLabelRotation(){_1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){_1(this.options.beforeFit,[this])}fit(){let Q={width:0,height:0},{chart:J,options:{ticks:X,title:q,grid:N}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let M=gz(q,J.options.font);if(H)Q.width=this.maxWidth,Q.height=RQ(N)+M;else Q.height=this.maxHeight,Q.width=RQ(N)+M;if(X.display&&this.ticks.length){let{first:F,last:w,widest:z,highest:T}=this._getLabelSizes(),_=X.padding*2,I=C8(this.labelRotation),E=Math.cos(I),V=Math.sin(I);if(H){let O=X.mirror?0:V*z.width+E*T.height;Q.height=Math.min(this.maxHeight,Q.height+O+_)}else{let O=X.mirror?0:E*z.width+V*T.height;Q.width=Math.min(this.maxWidth,Q.width+O+_)}this._calculatePadding(F,w,V,E)}}if(this._handleMargins(),H)this.width=this._length=J.width-this._margins.left-this._margins.right,this.height=Q.height;else this.width=Q.width,this.height=this._length=J.height-this._margins.top-this._margins.bottom}_calculatePadding(Q,J,X,q){let{ticks:{align:N,padding:K},position:H}=this.options,M=this.labelRotation!==0,F=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let w=this.getPixelForTick(0)-this.left,z=this.right-this.getPixelForTick(this.ticks.length-1),T=0,_=0;if(M)if(F)T=q*Q.width,_=X*J.height;else T=X*Q.height,_=q*J.width;else if(N==="start")_=J.width;else if(N==="end")T=Q.width;else if(N!=="inner")T=Q.width/2,_=J.width/2;this.paddingLeft=Math.max((T-w+K)*this.width/(this.width-w),0),this.paddingRight=Math.max((_-z+K)*this.width/(this.width-z),0)}else{let w=J.height/2,z=Q.height/2;if(N==="start")w=0,z=Q.height;else if(N==="end")w=J.height,z=0;this.paddingTop=w+K,this.paddingBottom=z+K}}_handleMargins(){if(this._margins)this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom)}afterFit(){_1(this.options.afterFit,[this])}isHorizontal(){let{axis:Q,position:J}=this.options;return J==="top"||J==="bottom"||Q==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(Q){this.beforeTickToLabelConversion(),this.generateTickLabels(Q);let J,X;for(J=0,X=Q.length;J<X;J++)if(Z1(Q[J].label))Q.splice(J,1),X--,J--;this.afterTickToLabelConversion()}_getLabelSizes(){let Q=this._labelSizes;if(!Q){let J=this.options.ticks.sampleSize,X=this.ticks;if(J<X.length)X=yz(X,J);this._labelSizes=Q=this._computeLabelSizes(X,X.length,this.options.ticks.maxTicksLimit)}return Q}_computeLabelSizes(Q,J,X){let{ctx:q,_longestTextCache:N}=this,K=[],H=[],M=Math.floor(J/fz(J,X)),F=0,w=0,z,T,_,I,E,V,O,D,h,p,s;for(z=0;z<J;z+=M){if(I=Q[z].label,E=this._resolveTickFontOptions(z),q.font=V=E.string,O=N[V]=N[V]||{data:{},gc:[]},D=E.lineHeight,h=p=0,!Z1(I)&&!V1(I))h=NQ(q,O.data,O.gc,h,I),p=D;else if(V1(I)){for(T=0,_=I.length;T<_;++T)if(s=I[T],!Z1(s)&&!V1(s))h=NQ(q,O.data,O.gc,h,s),p+=D}K.push(h),H.push(p),F=Math.max(h,F),w=Math.max(p,w)}GE(N,J);let a=K.indexOf(F),J0=H.indexOf(w),t=(i)=>({width:K[i]||0,height:H[i]||0});return{first:t(0),last:t(J-1),widest:t(a),highest:t(J0),widths:K,heights:H}}getLabelForValue(Q){return Q}getPixelForValue(Q,J){return NaN}getValueForPixel(Q){}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getPixelForDecimal(Q){if(this._reversePixels)Q=1-Q;let J=this._startPixel+Q*this._length;return sR(this._alignToPixels?D2(this.chart,J,0):J)}getDecimalForPixel(Q){let J=(Q-this._startPixel)/this._length;return this._reversePixels?1-J:J}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:Q,max:J}=this;return Q<0&&J<0?J:Q>0&&J>0?Q:0}getContext(Q){let J=this.ticks||[];if(Q>=0&&Q<J.length){let X=J[Q];return X.$context||(X.$context=qE(this.getContext(),Q,X))}return this.$context||(this.$context=XE(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=C8(this.labelRotation),X=Math.abs(Math.cos(J)),q=Math.abs(Math.sin(J)),N=this._getLabelSizes(),K=Q.autoSkipPadding||0,H=N?N.widest.width+K:0,M=N?N.highest.height+K:0;return this.isHorizontal()?M*X>H*q?H/X:M/q:M*q<H*X?M/X:H/q}_isVisible(){let Q=this.options.display;if(Q!=="auto")return!!Q;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Q){let J=this.axis,X=this.chart,q=this.options,{grid:N,position:K,border:H}=q,M=N.offset,F=this.isHorizontal(),z=this.ticks.length+(M?1:0),T=RQ(N),_=[],I=H.setContext(this.getContext()),E=I.display?I.width:0,V=E/2,O=function(l){return D2(X,l,E)},D,h,p,s,a,J0,t,i,Y0,d,H0,_0;if(K==="top")D=O(this.bottom),J0=this.bottom-T,i=D-V,d=O(Q.top)+V,_0=Q.bottom;else if(K==="bottom")D=O(this.top),d=Q.top,_0=O(Q.bottom)-V,J0=D+V,i=this.top+T;else if(K==="left")D=O(this.right),a=this.right-T,t=D-V,Y0=O(Q.left)+V,H0=Q.right;else if(K==="right")D=O(this.left),Y0=Q.left,H0=O(Q.right)-V,a=D+V,t=this.left+T;else if(J==="x"){if(K==="center")D=O((Q.top+Q.bottom)/2+0.5);else if(t0(K)){let l=Object.keys(K)[0],q0=K[l];D=O(this.chart.scales[l].getPixelForValue(q0))}d=Q.top,_0=Q.bottom,J0=D+V,i=J0+T}else if(J==="y"){if(K==="center")D=O((Q.left+Q.right)/2);else if(t0(K)){let l=Object.keys(K)[0],q0=K[l];D=O(this.chart.scales[l].getPixelForValue(q0))}a=D-V,t=a-T,Y0=Q.left,H0=Q.right}let C0=r0(q.ticks.maxTicksLimit,z),v0=Math.max(1,Math.ceil(z/C0));for(h=0;h<z;h+=v0){let l=this.getContext(h),q0=N.setContext(l),M0=H.setContext(l),n0=q0.lineWidth,m0=q0.color,v=M0.dash||[],n=M0.dashOffset,F0=q0.tickWidth,W0=q0.tickColor,d0=q0.tickBorderDash||[],u1=q0.tickBorderDashOffset;if(p=JE(this,h,M),p===void 0)continue;if(s=D2(X,p,n0),F)a=t=Y0=H0=s;else J0=i=d=_0=s;_.push({tx1:a,ty1:J0,tx2:t,ty2:i,x1:Y0,y1:d,x2:H0,y2:_0,width:n0,color:m0,borderDash:v,borderDashOffset:n,tickWidth:F0,tickColor:W0,tickBorderDash:d0,tickBorderDashOffset:u1})}return this._ticksLength=z,this._borderValue=D,_}_computeLabelItems(Q){let J=this.axis,X=this.options,{position:q,ticks:N}=X,K=this.isHorizontal(),H=this.ticks,{align:M,crossAlign:F,padding:w,mirror:z}=N,T=RQ(X.grid),_=T+w,I=z?-w:_,E=-C8(this.labelRotation),V=[],O,D,h,p,s,a,J0,t,i,Y0,d,H0,_0="middle";if(q==="top")a=this.bottom-I,J0=this._getXAxisLabelAlignment();else if(q==="bottom")a=this.top+I,J0=this._getXAxisLabelAlignment();else if(q==="left"){let v0=this._getYAxisLabelAlignment(T);J0=v0.textAlign,s=v0.x}else if(q==="right"){let v0=this._getYAxisLabelAlignment(T);J0=v0.textAlign,s=v0.x}else if(J==="x"){if(q==="center")a=(Q.top+Q.bottom)/2+_;else if(t0(q)){let v0=Object.keys(q)[0],l=q[v0];a=this.chart.scales[v0].getPixelForValue(l)+_}J0=this._getXAxisLabelAlignment()}else if(J==="y"){if(q==="center")s=(Q.left+Q.right)/2-_;else if(t0(q)){let v0=Object.keys(q)[0],l=q[v0];s=this.chart.scales[v0].getPixelForValue(l)}J0=this._getYAxisLabelAlignment(T).textAlign}if(J==="y"){if(M==="start")_0="top";else if(M==="end")_0="bottom"}let C0=this._getLabelSizes();for(O=0,D=H.length;O<D;++O){h=H[O],p=h.label;let v0=N.setContext(this.getContext(O));t=this.getPixelForTick(O)+N.labelOffset,i=this._resolveTickFontOptions(O),Y0=i.lineHeight,d=V1(p)?p.length:1;let l=d/2,q0=v0.color,M0=v0.textStrokeColor,n0=v0.textStrokeWidth,m0=J0;if(K){if(s=t,J0==="inner")if(O===D-1)m0=!this.options.reverse?"right":"left";else if(O===0)m0=!this.options.reverse?"left":"right";else m0="center";if(q==="top")if(F==="near"||E!==0)H0=-d*Y0+Y0/2;else if(F==="center")H0=-C0.highest.height/2-l*Y0+Y0;else H0=-C0.highest.height+Y0/2;else if(F==="near"||E!==0)H0=Y0/2;else if(F==="center")H0=C0.highest.height/2-l*Y0;else H0=C0.highest.height-d*Y0;if(z)H0*=-1;if(E!==0&&!v0.showLabelBackdrop)s+=Y0/2*Math.sin(E)}else a=t,H0=(1-d)*Y0/2;let v;if(v0.showLabelBackdrop){let n=_5(v0.backdropPadding),F0=C0.heights[O],W0=C0.widths[O],d0=H0-n.top,u1=0-n.left;switch(_0){case"middle":d0-=F0/2;break;case"bottom":d0-=F0;break}switch(J0){case"center":u1-=W0/2;break;case"right":u1-=W0;break;case"inner":if(O===D-1)u1-=W0;else if(O>0)u1-=W0/2;break}v={left:u1,top:d0,width:W0+n.width,height:F0+n.height,color:v0.backdropColor}}V.push({label:p,font:i,textOffset:H0,options:{rotation:E,color:q0,strokeColor:M0,strokeWidth:n0,textAlign:m0,textBaseline:_0,translation:[s,a],backdrop:v}})}return V}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-C8(this.labelRotation))return Q==="top"?"left":"right";let q="center";if(J.align==="start")q="left";else if(J.align==="end")q="right";else if(J.align==="inner")q="inner";return q}_getYAxisLabelAlignment(Q){let{position:J,ticks:{crossAlign:X,mirror:q,padding:N}}=this.options,K=this._getLabelSizes(),H=Q+N,M=K.widest.width,F,w;if(J==="left")if(q)if(w=this.right+N,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w+=M;else if(w=this.right-H,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w=this.left;else if(J==="right")if(q)if(w=this.left+N,X==="near")F="right";else if(X==="center")F="center",w-=M/2;else F="left",w-=M;else if(w=this.left+H,X==="near")F="left";else if(X==="center")F="center",w+=M/2;else F="right",w=this.right;else F="right";return{textAlign:F,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;let Q=this.chart,J=this.options.position;if(J==="left"||J==="right")return{top:0,left:this.left,bottom:Q.height,right:this.right};if(J==="top"||J==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:Q.width}}drawBackground(){let{ctx:Q,options:{backgroundColor:J},left:X,top:q,width:N,height:K}=this;if(J)Q.save(),Q.fillStyle=J,Q.fillRect(X,q,N,K),Q.restore()}getLineWidthForValue(Q){let J=this.options.grid;if(!this._isVisible()||!J.display)return 0;let q=this.ticks.findIndex((N)=>N.value===Q);if(q>=0)return J.setContext(this.getContext(q)).lineWidth;return 0}drawGrid(Q){let J=this.options.grid,X=this.ctx,q=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Q)),N,K,H=(M,F,w)=>{if(!w.width||!w.color)return;X.save(),X.lineWidth=w.width,X.strokeStyle=w.color,X.setLineDash(w.borderDash||[]),X.lineDashOffset=w.borderDashOffset,X.beginPath(),X.moveTo(M.x,M.y),X.lineTo(F.x,F.y),X.stroke(),X.restore()};if(J.display)for(N=0,K=q.length;N<K;++N){let M=q[N];if(J.drawOnChartArea)H({x:M.x1,y:M.y1},{x:M.x2,y:M.y2},M);if(J.drawTicks)H({x:M.tx1,y:M.ty1},{x:M.tx2,y:M.ty2},{color:M.tickColor,width:M.tickWidth,borderDash:M.tickBorderDash,borderDashOffset:M.tickBorderDashOffset})}}drawBorder(){let{chart:Q,ctx:J,options:{border:X,grid:q}}=this,N=X.setContext(this.getContext()),K=X.display?N.width:0;if(!K)return;let H=q.setContext(this.getContext(0)).lineWidth,M=this._borderValue,F,w,z,T;if(this.isHorizontal())F=D2(Q,this.left,K)-K/2,w=D2(Q,this.right,H)+H/2,z=T=M;else z=D2(Q,this.top,K)-K/2,T=D2(Q,this.bottom,H)+H/2,F=w=M;J.save(),J.lineWidth=N.width,J.strokeStyle=N.color,J.beginPath(),J.moveTo(F,z),J.lineTo(w,T),J.stroke(),J.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let X=this.ctx,q=this._computeLabelArea();if(q)BQ(X,q);let N=this.getLabelItems(Q);for(let K of N){let{options:H,font:M,label:F,textOffset:w}=K;v2(X,F,0,w,M,H)}if(q)HQ(X)}drawTitle(){let{ctx:Q,options:{position:J,title:X,reverse:q}}=this;if(!X.display)return;let N=$5(X.font),K=_5(X.padding),H=X.align,M=N.lineHeight/2;if(J==="bottom"||J==="center"||t0(J)){if(M+=K.bottom,V1(X.text))M+=N.lineHeight*(X.text.length-1)}else M+=K.top;let{titleX:F,titleY:w,maxWidth:z,rotation:T}=NE(this,M,J,H);v2(Q,X.text,0,0,N,{color:X.color,maxWidth:z,rotation:T,textAlign:YE(H,J,q),textBaseline:"middle",translation:[F,w]})}draw(Q){if(!this._isVisible())return;this.drawBackground(),this.drawGrid(Q),this.drawBorder(),this.drawTitle(),this.drawLabels(Q)}_layers(){let Q=this.options,J=Q.ticks&&Q.ticks.z||0,X=r0(Q.grid&&Q.grid.z,-1),q=r0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==h9.prototype.draw)return[{z:J,draw:(N)=>{this.draw(N)}}];return[{z:X,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:q,draw:()=>{this.drawBorder()}},{z:J,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(Q){let J=this.chart.getSortedVisibleDatasetMetas(),X=this.axis+"AxisID",q=[],N,K;for(N=0,K=J.length;N<K;++N){let H=J[N];if(H[X]===this.id&&(!Q||H.type===Q))q.push(H)}return q}_resolveTickFontOptions(Q){let J=this.options.ticks.setContext(this.getContext(Q));return $5(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class LQ{constructor(Q,J,X){this.type=Q,this.scope=J,this.override=X,this.items=Object.create(null)}isForType(Q){return Object.prototype.isPrototypeOf.call(this.type.prototype,Q.prototype)}register(Q){let J=Object.getPrototypeOf(Q),X;if(BE(J))X=this.register(J);let q=this.items,N=Q.id,K=this.scope+"."+N;if(!N)throw Error("class does not have id: "+Q);if(N in q)return K;if(q[N]=Q,UE(Q,K,X),this.override)h1.override(Q.id,Q.overrides);return K}get(Q){return this.items[Q]}unregister(Q){let J=this.items,X=Q.id,q=this.scope;if(X in J)delete J[X];if(q&&X in h1[q]){if(delete h1[q][X],this.override)delete j2[X]}}}function UE(Q,J,X){let q=X$(Object.create(null),[X?h1.get(X):{},h1.get(J),Q.defaults]);if(h1.set(J,q),Q.defaultRoutes)KE(J,Q.defaultRoutes);if(Q.descriptors)h1.describe(J,Q.descriptors)}function KE(Q,J){Object.keys(J).forEach((X)=>{let q=X.split("."),N=q.pop(),K=[Q].concat(q).join("."),H=J[X].split("."),M=H.pop(),F=H.join(".");h1.route(K,N,F,M)})}function BE(Q){return"id"in Q&&"defaults"in Q}class OT{constructor(){this.controllers=new LQ(o3,"datasets",!0),this.elements=new LQ(E8,"elements"),this.plugins=new LQ(Object,"plugins"),this.scales=new LQ(h9,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...Q){this._each("register",Q)}remove(...Q){this._each("unregister",Q)}addControllers(...Q){this._each("register",Q,this.controllers)}addElements(...Q){this._each("register",Q,this.elements)}addPlugins(...Q){this._each("register",Q,this.plugins)}addScales(...Q){this._each("register",Q,this.scales)}getController(Q){return this._get(Q,this.controllers,"controller")}getElement(Q){return this._get(Q,this.elements,"element")}getPlugin(Q){return this._get(Q,this.plugins,"plugin")}getScale(Q){return this._get(Q,this.scales,"scale")}removeControllers(...Q){this._each("unregister",Q,this.controllers)}removeElements(...Q){this._each("unregister",Q,this.elements)}removePlugins(...Q){this._each("unregister",Q,this.plugins)}removeScales(...Q){this._each("unregister",Q,this.scales)}_each(Q,J,X){[...J].forEach((q)=>{let N=X||this._getRegistryForType(q);if(X||N.isForType(q)||N===this.plugins&&q.id)this._exec(Q,N,q);else B1(q,(K)=>{let H=X||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,J,X){let q=j3(Q);_1(X["before"+q],[],X),J[Q](X),_1(X["after"+q],[],X)}_getRegistryForType(Q){for(let J=0;J<this._typedRegistries.length;J++){let X=this._typedRegistries[J];if(X.isForType(Q))return X}return this.plugins}_get(Q,J,X){let q=J.get(Q);if(q===void 0)throw Error('"'+Q+'" is not a registered '+X+".");return q}}var c4=new OT;class VT{constructor(){this._init=void 0}notify(Q,J,X,q){if(J==="beforeInit")this._init=this._createDescriptors(Q,!0),this._notify(this._init,Q,"install");if(this._init===void 0)return;let N=q?this._descriptors(Q).filter(q):this._descriptors(Q),K=this._notify(N,Q,J,X);if(J==="afterDestroy")this._notify(N,Q,"stop"),this._notify(this._init,Q,"uninstall"),this._init=void 0;return K}_notify(Q,J,X,q){q=q||{};for(let N of Q){let K=N.plugin,H=K[X],M=[J,q,N.options];if(_1(H,M,K)===!1&&q.cancelable)return!1}return!0}invalidate(){if(!Z1(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(Q){if(this._cache)return this._cache;let J=this._cache=this._createDescriptors(Q);return this._notifyStateChanges(Q),J}_createDescriptors(Q,J){let X=Q&&Q.config,q=r0(X.options&&X.options.plugins,{}),N=HE(X);return q===!1&&!J?[]:FE(Q,N,q,J)}_notifyStateChanges(Q){let J=this._oldCache||[],X=this._cache,q=(N,K)=>N.filter((H)=>!K.some((M)=>H.plugin.id===M.plugin.id));this._notify(q(J,X),Q,"stop"),this._notify(q(X,J),Q,"start")}}function HE(Q){let J={},X=[],q=Object.keys(c4.plugins.items);for(let K=0;K<q.length;K++)X.push(c4.getPlugin(q[K]));let N=Q.plugins||[];for(let K=0;K<N.length;K++){let H=N[K];if(X.indexOf(H)===-1)X.push(H),J[H.id]=!0}return{plugins:X,localIds:J}}function ME(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function FE(Q,{plugins:J,localIds:X},q,N){let K=[],H=Q.getContext();for(let M of J){let F=M.id,w=ME(q[F],N);if(w===null)continue;K.push({plugin:M,options:WE(Q.config,{plugin:M,local:X[F]},w,H)})}return K}function WE(Q,{plugin:J,local:X},q,N){let K=Q.pluginScopeKeys(J),H=Q.getOptionScopes(q,K);if(X&&J.defaults)H.push(J.defaults);return Q.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function aU(Q,J){let X=h1.datasets[Q]||{};return((J.datasets||{})[Q]||{}).indexAxis||J.indexAxis||X.indexAxis||"x"}function wE(Q,J){let X=Q;if(Q==="_index_")X=J;else if(Q==="_value_")X=J==="x"?"y":"x";return X}function RE(Q,J){return Q===J?"_index_":"_value_"}function hz(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function zE(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function iU(Q,...J){if(hz(Q))return Q;for(let X of J){let q=X.axis||zE(X.position)||Q.length>1&&hz(Q[0].toLowerCase());if(q)return q}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function uz(Q,J,X){if(X[J+"AxisID"]===Q)return{axis:J}}function TE(Q,J){if(J.data&&J.data.datasets){let X=J.data.datasets.filter((q)=>q.xAxisID===Q||q.yAxisID===Q);if(X.length)return uz(Q,"x",X[0])||uz(Q,"y",X[0])}return{}}function LE(Q,J){let X=j2[Q.type]||{scales:{}},q=J.scales||{},N=aU(Q.type,J),K=Object.create(null);return Object.keys(q).forEach((H)=>{let M=q[H];if(!t0(M))return console.error(`Invalid scale configuration for scale: ${H}`);if(M._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${H}`);let F=iU(H,M,TE(H,Q),h1.scales[M.type]),w=RE(F,N),z=X.scales||{};K[H]=Y$(Object.create(null),[{axis:F},M,z[F],z[w]])}),Q.data.datasets.forEach((H)=>{let M=H.type||Q.type,F=H.indexAxis||aU(M,J),z=(j2[M]||{}).scales||{};Object.keys(z).forEach((T)=>{let _=wE(T,F),I=H[_+"AxisID"]||_;K[I]=K[I]||Object.create(null),Y$(K[I],[{axis:_},q[I],z[T]])})}),Object.keys(K).forEach((H)=>{let M=K[H];Y$(M,[h1.scales[M.type],h1.scale])}),K}function AT(Q){let J=Q.options||(Q.options={});J.plugins=r0(J.plugins,{}),J.scales=LE(Q,J)}function ET(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function _E(Q){return Q=Q||{},Q.data=ET(Q.data),AT(Q),Q}var xz=new Map,ST=new Set;function p3(Q,J){let X=xz.get(Q);if(!X)X=J(),xz.set(Q,X),ST.add(X);return X}var zQ=(Q,J,X)=>{let q=k9(J,X);if(q!==void 0)Q.add(q)};class jT{constructor(Q){this._config=_E(Q),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(Q){this._config.type=Q}get data(){return this._config.data}set data(Q){this._config.data=ET(Q)}get options(){return this._config.options}set options(Q){this._config.options=Q}get plugins(){return this._config.plugins}update(){let Q=this._config;this.clearCache(),AT(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return p3(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return p3(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return p3(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,X=this.type;return p3(`${X}-plugin-${J}`,()=>[[`plugins.${J}`,...Q.additionalOptionScopes||[]]])}_cachedScopes(Q,J){let X=this._scopeCache,q=X.get(Q);if(!q||J)q=new Map,X.set(Q,q);return q}getOptionScopes(Q,J,X){let{options:q,type:N}=this,K=this._cachedScopes(Q,X),H=K.get(J);if(H)return H;let M=new Set;J.forEach((w)=>{if(Q)M.add(Q),w.forEach((z)=>zQ(M,Q,z));w.forEach((z)=>zQ(M,q,z)),w.forEach((z)=>zQ(M,j2[N]||{},z)),w.forEach((z)=>zQ(M,h1,z)),w.forEach((z)=>zQ(M,f3,z))});let F=Array.from(M);if(F.length===0)F.push(Object.create(null));if(ST.has(J))K.set(J,F);return F}chartOptionScopes(){let{options:Q,type:J}=this;return[Q,j2[J]||{},h1.datasets[J]||{},{type:J},h1,f3]}resolveNamedOptions(Q,J,X,q=[""]){let N={$shared:!0},{resolver:K,subPrefixes:H}=mz(this._resolverCache,Q,q),M=K;if(CE(K,J)){N.$shared=!1,X=_8(X)?X():X;let F=this.createResolver(Q,X,H);M=b9(K,X,F)}for(let F of J)N[F]=M[F];return N}createResolver(Q,J,X=[""],q){let{resolver:N}=mz(this._resolverCache,Q,X);return t0(J)?b9(N,J,void 0,q):N}}function mz(Q,J,X){let q=Q.get(J);if(!q)q=new Map,Q.set(J,q);let N=X.join(),K=q.get(N);if(!K)K={resolver:g3(J,X),subPrefixes:X.filter((M)=>!M.toLowerCase().includes("hover"))},q.set(N,K);return K}var PE=(Q)=>t0(Q)&&Object.getOwnPropertyNames(Q).some((J)=>_8(Q[J]));function CE(Q,J){let{isScriptable:X,isIndexable:q}=SU(Q);for(let N of J){let K=X(N),H=q(N),M=(H||K)&&Q[N];if(K&&(_8(M)||PE(M))||H&&V1(M))return!0}return!1}var IE="4.5.1",OE=["top","bottom","left","right","chartArea"];function dz(Q,J){return Q==="top"||Q==="bottom"||OE.indexOf(Q)===-1&&J==="x"}function pz(Q,J){return function(X,q){return X[Q]===q[Q]?X[J]-q[J]:X[Q]-q[Q]}}function cz(Q){let J=Q.chart,X=J.options.animation;J.notifyPlugins("afterRender"),_1(X&&X.onComplete,[Q],J)}function VE(Q){let J=Q.chart,X=J.options.animation;_1(X&&X.onProgress,[Q],J)}function DT(Q){if(h3()&&typeof Q==="string")Q=document.getElementById(Q);else if(Q&&Q.length)Q=Q[0];if(Q&&Q.canvas)Q=Q.canvas;return Q}var s3={},lz=(Q)=>{let J=DT(Q);return Object.values(s3).filter((X)=>X.canvas===J).pop()};function AE(Q,J,X){let q=Object.keys(Q);for(let N of q){let K=+N;if(K>=J){let H=Q[N];if(delete Q[N],X>0||K>J)Q[K+X]=H}}}function EE(Q,J,X,q){if(!X||Q.type==="mouseout")return null;if(q)return J;return Q}class u9{static defaults=h1;static instances=s3;static overrides=j2;static registry=c4;static version=IE;static getChart=lz;static register(...Q){c4.add(...Q),rz()}static unregister(...Q){c4.remove(...Q),rz()}constructor(Q,J){let X=this.config=new jT(J),q=DT(Q),N=lz(q);if(N)throw Error("Canvas is already in use. Chart with ID '"+N.id+"' must be destroyed before the canvas with ID '"+N.canvas.id+"' can be reused.");let K=X.createResolver(X.chartOptionScopes(),this.getContext());this.platform=new(X.platform||oA(q)),this.platform.updateConfig(X);let H=this.platform.acquireContext(q,K.aspectRatio),M=H&&H.canvas,F=M&&M.height,w=M&&M.width;if(this.id=xR(),this.ctx=H,this.canvas=M,this.width=w,this.height=F,this._options=K,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new VT,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=tR((z)=>this.update(z),K.resizeDelay||0),this._dataChanges=[],s3[this.id]=this,!H||!M){console.error("Failed to create chart: can't acquire context from the given item");return}if(V8.listen(this,"complete",cz),V8.listen(this,"progress",VE),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:J},width:X,height:q,_aspectRatio:N}=this;if(!Z1(Q))return Q;if(J&&N)return N;return q?X/q:null}get data(){return this.config.data}set data(Q){this.config.data=Q}get options(){return this._options}set options(Q){this.config.options=Q}get registry(){return c4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else vU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return OU(this.canvas,this.ctx),this}stop(){return V8.stop(this),this}resize(Q,J){if(!V8.running(this))this._resize(Q,J);else this._resizeBeforeDraw={width:Q,height:J}}_resize(Q,J){let X=this.options,q=this.canvas,N=X.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(q,Q,J,N),H=X.devicePixelRatio||this.platform.getDevicePixelRatio(),M=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!vU(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),_1(X.onResize,[this,K],this),this.attached){if(this._doResize(M))this.render()}}ensureScalesHaveIDs(){let J=this.options.scales||{};B1(J,(X,q)=>{X.id=q})}buildOrUpdateScales(){let Q=this.options,J=Q.scales,X=this.scales,q=Object.keys(X).reduce((K,H)=>{return K[H]=!1,K},{}),N=[];if(J)N=N.concat(Object.keys(J).map((K)=>{let H=J[K],M=iU(K,H),F=M==="r",w=M==="x";return{options:H,dposition:F?"chartArea":w?"bottom":"left",dtype:F?"radialLinear":w?"category":"linear"}}));B1(N,(K)=>{let H=K.options,M=H.id,F=iU(M,H),w=r0(H.type,K.dtype);if(H.position===void 0||dz(H.position,F)!==dz(K.dposition))H.position=K.dposition;q[M]=!0;let z=null;if(M in X&&X[M].type===w)z=X[M];else z=new(c4.getScale(w))({id:M,type:w,ctx:this.ctx,chart:this}),X[z.id]=z;z.init(H,Q)}),B1(q,(K,H)=>{if(!K)delete X[H]}),B1(X,(K)=>{p6.configure(this,K,K.options),p6.addBox(this,K)})}_updateMetasets(){let Q=this._metasets,J=this.data.datasets.length,X=Q.length;if(Q.sort((q,N)=>q.index-N.index),X>J){for(let q=J;q<X;++q)this._destroyDatasetMeta(q);Q.splice(J,X-J)}this._sortedMetasets=Q.slice(0).sort(pz("order","index"))}_removeUnreferencedMetasets(){let{_metasets:Q,data:{datasets:J}}=this;if(Q.length>J.length)delete this._stacks;Q.forEach((X,q)=>{if(J.filter((N)=>N===X._dataset).length===0)this._destroyDatasetMeta(q)})}buildOrUpdateControllers(){let Q=[],J=this.data.datasets,X,q;this._removeUnreferencedMetasets();for(X=0,q=J.length;X<q;X++){let N=J[X],K=this.getDatasetMeta(X),H=N.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(X),K=this.getDatasetMeta(X);if(K.type=H,K.indexAxis=N.indexAxis||aU(H,this.options),K.order=N.order||0,K.index=X,K.label=""+N.label,K.visible=this.isDatasetVisible(X),K.controller)K.controller.updateIndex(X),K.controller.linkScales();else{let M=c4.getController(H),{datasetElementType:F,dataElementType:w}=h1.datasets[H];Object.assign(M,{dataElementType:c4.getElement(w),datasetElementType:F&&c4.getElement(F)}),K.controller=new M(this,X),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){B1(this.data.datasets,(Q,J)=>{this.getDatasetMeta(J).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(Q){let J=this.config;J.update();let X=this._options=J.createResolver(J.chartOptionScopes(),this.getContext()),q=this._animationsDisabled=!X.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:Q,cancelable:!0})===!1)return;let N=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let F=0,w=this.data.datasets.length;F<w;F++){let{controller:z}=this.getDatasetMeta(F),T=!q&&N.indexOf(z)===-1;z.buildOrUpdateElements(T),K=Math.max(+z.getMaxOverflow(),K)}if(K=this._minPadding=X.layout.autoPadding?K:0,this._updateLayout(K),!q)B1(N,(F)=>{F.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(pz("z","_idx"));let{_active:H,_lastEvent:M}=this;if(M)this._eventHandler(M,!0);else if(H.length)this._updateHoverStyles(H,H,!0);this.render()}_updateScales(){B1(this.scales,(Q)=>{p6.removeBox(this,Q)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let Q=this.options,J=new Set(Object.keys(this._listeners)),X=new Set(Q.events);if(!FU(J,X)||!!this._responsiveListeners!==Q.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:Q}=this,J=this._getUniformDataChanges()||[];for(let{method:X,start:q,count:N}of J){let K=X==="_removeElements"?-N:N;AE(Q,q,K)}}_getUniformDataChanges(){let Q=this._dataChanges;if(!Q||!Q.length)return;this._dataChanges=[];let J=this.data.datasets.length,X=(N)=>new Set(Q.filter((K)=>K[0]===N).map((K,H)=>H+","+K.splice(1).join(","))),q=X(0);for(let N=1;N<J;N++)if(!FU(q,X(N)))return;return Array.from(q).map((N)=>N.split(",")).map((N)=>({method:N[1],start:+N[2],count:+N[3]}))}_updateLayout(Q){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;p6.update(this,this.width,this.height,Q);let J=this.chartArea,X=J.width<=0||J.height<=0;this._layers=[],B1(this.boxes,(q)=>{if(X&&q.position==="chartArea")return;if(q.configure)q.configure();this._layers.push(...q._layers())},this),this._layers.forEach((q,N)=>{q._idx=N}),this.notifyPlugins("afterLayout")}_updateDatasets(Q){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:Q,cancelable:!0})===!1)return;for(let J=0,X=this.data.datasets.length;J<X;++J)this.getDatasetMeta(J).controller.configure();for(let J=0,X=this.data.datasets.length;J<X;++J)this._updateDataset(J,_8(Q)?Q({datasetIndex:J}):Q);this.notifyPlugins("afterDatasetsUpdate",{mode:Q})}_updateDataset(Q,J){let X=this.getDatasetMeta(Q),q={meta:X,index:Q,mode:J,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",q)===!1)return;X.controller._update(J),q.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",q)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(V8.has(this)){if(this.attached&&!V8.running(this))V8.start(this)}else this.draw(),cz({chart:this})}draw(){let Q;if(this._resizeBeforeDraw){let{width:X,height:q}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(X,q)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let J=this._layers;for(Q=0;Q<J.length&&J[Q].z<=0;++Q)J[Q].draw(this.chartArea);this._drawDatasets();for(;Q<J.length;++Q)J[Q].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(Q){let J=this._sortedMetasets,X=[],q,N;for(q=0,N=J.length;q<N;++q){let K=J[q];if(!Q||K.visible)X.push(K)}return X}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let Q=this.getSortedVisibleDatasetMetas();for(let J=Q.length-1;J>=0;--J)this._drawDataset(Q[J]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(Q){let J=this.ctx,X={meta:Q,index:Q.index,cancelable:!0},q=hU(this,Q);if(this.notifyPlugins("beforeDatasetDraw",X)===!1)return;if(q)BQ(J,q);if(Q.controller.draw(),q)HQ(J);X.cancelable=!1,this.notifyPlugins("afterDatasetDraw",X)}isPointInArea(Q){return m4(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,X,q){let N=jA.modes[J];if(typeof N==="function")return N(this,Q,X,q);return[]}getDatasetMeta(Q){let J=this.data.datasets[Q],X=this._metasets,q=X.filter((N)=>N&&N._dataset===J).pop();if(!q)q={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:J&&J.order||0,index:Q,_dataset:J,_parsed:[],_sorted:!1},X.push(q);return q}getContext(){return this.$context||(this.$context=O8(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Q){let J=this.data.datasets[Q];if(!J)return!1;let X=this.getDatasetMeta(Q);return typeof X.hidden==="boolean"?!X.hidden:!J.hidden}setDatasetVisibility(Q,J){let X=this.getDatasetMeta(Q);X.hidden=!J}toggleDataVisibility(Q){this._hiddenIndices[Q]=!this._hiddenIndices[Q]}getDataVisibility(Q){return!this._hiddenIndices[Q]}_updateVisibility(Q,J,X){let q=X?"show":"hide",N=this.getDatasetMeta(Q),K=N.controller._resolveAnimations(void 0,q);if(N$(J))N.data[J].hidden=!X,this.update();else this.setDatasetVisibility(Q,X),K.update(N,{visible:X}),this.update((H)=>H.datasetIndex===Q?q:void 0)}hide(Q,J){this._updateVisibility(Q,J,!1)}show(Q,J){this._updateVisibility(Q,J,!0)}_destroyDatasetMeta(Q){let J=this._metasets[Q];if(J&&J.controller)J.controller._destroy();delete this._metasets[Q]}_stop(){let Q,J;this.stop(),V8.remove(this);for(Q=0,J=this.data.datasets.length;Q<J;++Q)this._destroyDatasetMeta(Q)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:Q,ctx:J}=this;if(this._stop(),this.config.clearCache(),Q)this.unbindEvents(),OU(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete s3[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...Q){return this.canvas.toDataURL(...Q)}bindEvents(){if(this.bindUserEvents(),this.options.responsive)this.bindResponsiveEvents();else this.attached=!0}bindUserEvents(){let Q=this._listeners,J=this.platform,X=(N,K)=>{J.addEventListener(this,N,K),Q[N]=K},q=(N,K,H)=>{N.offsetX=K,N.offsetY=H,this._eventHandler(N)};B1(this.options.events,(N)=>X(N,q))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,J=this.platform,X=(M,F)=>{J.addEventListener(this,M,F),Q[M]=F},q=(M,F)=>{if(Q[M])J.removeEventListener(this,M,F),delete Q[M]},N=(M,F)=>{if(this.canvas)this.resize(M,F)},K,H=()=>{q("attach",H),this.attached=!0,this.resize(),X("resize",N),X("detach",K)};if(K=()=>{this.attached=!1,q("resize",N),this._stop(),this._resize(0,0),X("attach",H)},J.isAttached(this.canvas))H();else K()}unbindEvents(){B1(this._listeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._listeners={},B1(this._responsiveListeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._responsiveListeners=void 0}updateHoverStyle(Q,J,X){let q=X?"set":"remove",N,K,H,M;if(J==="dataset")N=this.getDatasetMeta(Q[0].datasetIndex),N.controller["_"+q+"DatasetHoverStyle"]();for(H=0,M=Q.length;H<M;++H){K=Q[H];let F=K&&this.getDatasetMeta(K.datasetIndex).controller;if(F)F[q+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(Q){let J=this._active||[],X=Q.map(({datasetIndex:N,index:K})=>{let H=this.getDatasetMeta(N);if(!H)throw Error("No dataset found at index "+N);return{datasetIndex:N,element:H.data[K],index:K}});if(!UQ(X,J))this._active=X,this._lastEvent=null,this._updateHoverStyles(X,J)}notifyPlugins(Q,J,X){return this._plugins.notify(this,Q,J,X)}isPluginEnabled(Q){return this._plugins._cache.filter((J)=>J.plugin.id===Q).length===1}_updateHoverStyles(Q,J,X){let q=this.options.hover,N=(M,F)=>M.filter((w)=>!F.some((z)=>w.datasetIndex===z.datasetIndex&&w.index===z.index)),K=N(J,Q),H=X?Q:N(Q,J);if(K.length)this.updateHoverStyle(K,q.mode,!1);if(H.length&&q.mode)this.updateHoverStyle(H,q.mode,!0)}_eventHandler(Q,J){let X={event:Q,replay:J,cancelable:!0,inChartArea:this.isPointInArea(Q)},q=(K)=>(K.options.events||this.options.events).includes(Q.native.type);if(this.notifyPlugins("beforeEvent",X,q)===!1)return;let N=this._handleEvent(Q,J,X.inChartArea);if(X.cancelable=!1,this.notifyPlugins("afterEvent",X,q),N||X.changed)this.render();return this}_handleEvent(Q,J,X){let{_active:q=[],options:N}=this,K=J,H=this._getActiveElements(Q,q,X,K),M=pR(Q),F=EE(Q,this._lastEvent,X,M);if(X){if(this._lastEvent=null,_1(N.onHover,[Q,H,this],this),M)_1(N.onClick,[Q,H,this],this)}let w=!UQ(H,q);if(w||J)this._active=H,this._updateHoverStyles(H,q,J);return this._lastEvent=F,w}_getActiveElements(Q,J,X,q){if(Q.type==="mouseout")return[];if(!X)return J;let N=this.options.hover;return this.getElementsAtEventForMode(Q,N.mode,N,q)}}function rz(){return B1(u9.instances,(Q)=>Q._plugins.invalidate())}function vT(Q,J,X=J){Q.lineCap=r0(X.borderCapStyle,J.borderCapStyle),Q.setLineDash(r0(X.borderDash,J.borderDash)),Q.lineDashOffset=r0(X.borderDashOffset,J.borderDashOffset),Q.lineJoin=r0(X.borderJoinStyle,J.borderJoinStyle),Q.lineWidth=r0(X.borderWidth,J.borderWidth),Q.strokeStyle=r0(X.borderColor,J.borderColor)}function SE(Q,J,X){Q.lineTo(X.x,X.y)}function jE(Q){if(Q.stepped)return Xz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return qz;return SE}function bT(Q,J,X={}){let q=Q.length,{start:N=0,end:K=q-1}=X,{start:H,end:M}=J,F=Math.max(N,H),w=Math.min(K,M),z=N<H&&K<H||N>M&&K>M;return{count:q,start:F,loop:J.loop,ilen:w<F&&!z?q+w-F:w-F}}function DE(Q,J,X,q){let{points:N,options:K}=J,{count:H,start:M,loop:F,ilen:w}=bT(N,X,q),z=jE(K),{move:T=!0,reverse:_}=q||{},I,E,V;for(I=0;I<=w;++I){if(E=N[(M+(_?w-I:I))%H],E.skip)continue;else if(T)Q.moveTo(E.x,E.y),T=!1;else z(Q,V,E,_,K.stepped);V=E}if(F)E=N[(M+(_?w:0))%H],z(Q,V,E,_,K.stepped);return!!F}function vE(Q,J,X,q){let N=J.points,{count:K,start:H,ilen:M}=bT(N,X,q),{move:F=!0,reverse:w}=q||{},z=0,T=0,_,I,E,V,O,D,h=(s)=>(H+(w?M-s:s))%K,p=()=>{if(V!==O)Q.lineTo(z,O),Q.lineTo(z,V),Q.lineTo(z,D)};if(F)I=N[h(0)],Q.moveTo(I.x,I.y);for(_=0;_<=M;++_){if(I=N[h(_)],I.skip)continue;let{x:s,y:a}=I,J0=s|0;if(J0===E){if(a<V)V=a;else if(a>O)O=a;z=(T*z+s)/++T}else p(),Q.lineTo(s,a),E=J0,T=0,V=O=a;D=a}p()}function tU(Q){let J=Q.options,X=J.borderDash&&J.borderDash.length;return!Q._decimated&&!Q._loop&&!J.tension&&J.cubicInterpolationMode!=="monotone"&&!J.stepped&&!X?vE:DE}function bE(Q){if(Q.stepped)return Wz;if(Q.tension||Q.cubicInterpolationMode==="monotone")return wz;return A2}function kE(Q,J,X,q){let N=J._path;if(!N){if(N=J._path=new Path2D,J.path(N,X,q))N.closePath()}vT(Q,J.options),Q.stroke(N)}function fE(Q,J,X,q){let{segments:N,options:K}=J,H=tU(J);for(let M of N){if(vT(Q,K,M.style),Q.beginPath(),H(Q,J,M,{start:X,end:X+q-1}))Q.closePath();Q.stroke()}}var yE=typeof Path2D==="function";function gE(Q,J,X,q){if(yE&&!J.options.segment)kE(Q,J,X,q);else fE(Q,J,X,q)}class H$ extends E8{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:(Q)=>Q!=="borderDash"&&Q!=="fill"};constructor(Q){super();if(this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,Q)Object.assign(this,Q)}updateControlPoints(Q,J){let X=this.options;if((X.tension||X.cubicInterpolationMode==="monotone")&&!X.stepped&&!this._pointsUpdated){let q=X.spanGaps?this._loop:this._fullLoop;Hz(this._points,X,Q,q,J),this._pointsUpdated=!0}}set points(Q){this._points=Q,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=zz(this,this.options.segment))}first(){let Q=this.segments,J=this.points;return Q.length&&J[Q[0].start]}last(){let Q=this.segments,J=this.points,X=Q.length;return X&&J[Q[X-1].end]}interpolate(Q,J){let X=this.options,q=Q[J],N=this.points,K=gU(this,{property:J,start:q,end:q});if(!K.length)return;let H=[],M=bE(X),F,w;for(F=0,w=K.length;F<w;++F){let{start:z,end:T}=K[F],_=N[z],I=N[T];if(_===I){H.push(_);continue}let E=Math.abs((q-_[J])/(I[J]-_[J])),V=M(_,I,E,X.stepped);V[J]=Q[J],H.push(V)}return H.length===1?H[0]:H}pathSegment(Q,J,X){return tU(this)(Q,this,J,X)}path(Q,J,X){let q=this.segments,N=tU(this),K=this._loop;J=J||0,X=X||this.points.length-J;for(let H of q)K&=N(Q,this,H,{start:J,end:J+X-1});return!!K}draw(Q,J,X,q){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)Q.save(),gE(Q,this,X,q),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function sz(Q,J,X,q){let N=Q.options,{[X]:K}=Q.getProps([X],q);return Math.abs(J-K)<N.radius+N.hitRadius}class UK extends E8{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,Q)Object.assign(this,Q)}inRange(Q,J,X){let q=this.options,{x:N,y:K}=this.getProps(["x","y"],X);return Math.pow(Q-N,2)+Math.pow(J-K,2)<Math.pow(q.hitRadius+q.radius,2)}inXRange(Q,J){return sz(this,Q,"x",J)}inYRange(Q,J){return sz(this,Q,"y",J)}getCenterPoint(Q){let{x:J,y:X}=this.getProps(["x","y"],Q);return{x:J,y:X}}size(Q){Q=Q||this.options||{};let J=Q.radius||0;J=Math.max(J,J&&Q.hoverRadius||0);let X=J&&Q.borderWidth||0;return(J+X)*2}draw(Q,J){let X=this.options;if(this.skip||X.radius<0.1||!m4(this,J,this.size(X)/2))return;Q.strokeStyle=X.borderColor,Q.lineWidth=X.borderWidth,Q.fillStyle=X.backgroundColor,y3(Q,X,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function kT(Q,J){let{x:X,y:q,base:N,width:K,height:H}=Q.getProps(["x","y","base","width","height"],J),M,F,w,z,T;if(Q.horizontal)T=H/2,M=Math.min(X,N),F=Math.max(X,N),w=q-T,z=q+T;else T=K/2,M=X-T,F=X+T,w=Math.min(q,N),z=Math.max(q,N);return{left:M,top:w,right:F,bottom:z}}function f2(Q,J,X,q){return Q?0:$6(J,X,q)}function hE(Q,J,X){let q=Q.options.borderWidth,N=Q.borderSkipped,K=EU(q);return{t:f2(N.top,K.top,0,X),r:f2(N.right,K.right,0,J),b:f2(N.bottom,K.bottom,0,X),l:f2(N.left,K.left,0,J)}}function uE(Q,J,X){let{enableBorderRadius:q}=Q.getProps(["enableBorderRadius"]),N=Q.options.borderRadius,K=b2(N),H=Math.min(J,X),M=Q.borderSkipped,F=q||t0(N);return{topLeft:f2(!F||M.top||M.left,K.topLeft,0,H),topRight:f2(!F||M.top||M.right,K.topRight,0,H),bottomLeft:f2(!F||M.bottom||M.left,K.bottomLeft,0,H),bottomRight:f2(!F||M.bottom||M.right,K.bottomRight,0,H)}}function xE(Q){let J=kT(Q),X=J.right-J.left,q=J.bottom-J.top,N=hE(Q,X/2,q/2),K=uE(Q,X/2,q/2);return{outer:{x:J.left,y:J.top,w:X,h:q,radius:K},inner:{x:J.left+N.l,y:J.top+N.t,w:X-N.l-N.r,h:q-N.t-N.b,radius:{topLeft:Math.max(0,K.topLeft-Math.max(N.t,N.l)),topRight:Math.max(0,K.topRight-Math.max(N.t,N.r)),bottomLeft:Math.max(0,K.bottomLeft-Math.max(N.b,N.l)),bottomRight:Math.max(0,K.bottomRight-Math.max(N.b,N.r))}}}}function rU(Q,J,X,q){let N=J===null,K=X===null,M=Q&&!(N&&K)&&kT(Q,q);return M&&(N||I8(J,M.left,M.right))&&(K||I8(X,M.top,M.bottom))}function mE(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function dE(Q,J){Q.rect(J.x,J.y,J.w,J.h)}function sU(Q,J,X={}){let q=Q.x!==X.x?-J:0,N=Q.y!==X.y?-J:0,K=(Q.x+Q.w!==X.x+X.w?J:0)-q,H=(Q.y+Q.h!==X.y+X.h?J:0)-N;return{x:Q.x+q,y:Q.y+N,w:Q.w+K,h:Q.h+H,radius:Q.radius}}class KK extends E8{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(Q){super();if(this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,Q)Object.assign(this,Q)}draw(Q){let{inflateAmount:J,options:{borderColor:X,backgroundColor:q}}=this,{inner:N,outer:K}=xE(this),H=mE(K.radius)?B$:dE;if(Q.save(),K.w!==N.w||K.h!==N.h)Q.beginPath(),H(Q,sU(K,J,N)),Q.clip(),H(Q,sU(N,-J,K)),Q.fillStyle=X,Q.fill("evenodd");Q.beginPath(),H(Q,sU(N,J)),Q.fillStyle=q,Q.fill(),Q.restore()}inRange(Q,J,X){return rU(this,Q,J,X)}inXRange(Q,J){return rU(this,Q,null,J)}inYRange(Q,J){return rU(this,null,Q,J)}getCenterPoint(Q){let{x:J,y:X,base:q,horizontal:N}=this.getProps(["x","y","base","horizontal"],Q);return{x:N?(J+q)/2:J,y:N?X:(X+q)/2}}getRange(Q){return Q==="x"?this.width/2:this.height/2}}function pE(Q,J,X){let{segments:q,points:N}=Q,K=J.points,H=[];for(let M of q){let{start:F,end:w}=M;w=a3(F,w,N);let z=eU(X,N[F],N[w],M.loop);if(!J.segments){H.push({source:M,target:z,start:N[F],end:N[w]});continue}let T=gU(J,z);for(let _ of T){let I=eU(X,K[_.start],K[_.end],_.loop),E=yU(M,N,I);for(let V of E)H.push({source:V,target:_,start:{[X]:nz(z,I,"start",Math.max)},end:{[X]:nz(z,I,"end",Math.min)}})}}return H}function eU(Q,J,X,q){if(q)return;let N=J[Q],K=X[Q];if(Q==="angle")N=i5(N),K=i5(K);return{property:Q,start:N,end:K}}function cE(Q,J){let{x:X=null,y:q=null}=Q||{},N=J.points,K=[];return J.segments.forEach(({start:H,end:M})=>{M=a3(H,M,N);let F=N[H],w=N[M];if(q!==null)K.push({x:F.x,y:q}),K.push({x:w.x,y:q});else if(X!==null)K.push({x:X,y:F.y}),K.push({x:X,y:w.y})}),K}function a3(Q,J,X){for(;J>Q;J--){let q=X[J];if(!isNaN(q.x)&&!isNaN(q.y))break}return J}function nz(Q,J,X,q){if(Q&&J)return q(Q[X],J[X]);return Q?Q[X]:J?J[X]:0}function fT(Q,J){let X=[],q=!1;if(V1(Q))q=!0,X=Q;else X=cE(Q,J);return X.length?new H$({points:X,options:{tension:0},_loop:q,_fullLoop:q}):null}function oz(Q){return Q&&Q.fill!==!1}function lE(Q,J,X){let N=Q[J].fill,K=[J],H;if(!X)return N;while(N!==!1&&K.indexOf(N)===-1){if(!g1(N))return N;if(H=Q[N],!H)return!1;if(H.visible)return N;K.push(N),N=H.fill}return!1}function rE(Q,J,X){let q=aE(Q);if(t0(q))return isNaN(q.value)?!1:q;let N=parseFloat(q);if(g1(N)&&Math.floor(N)===N)return sE(q[0],J,N,X);return["origin","start","end","stack","shape"].indexOf(q)>=0&&q}function sE(Q,J,X,q){if(Q==="-"||Q==="+")X=J+X;if(X===J||X<0||X>=q)return!1;return X}function nE(Q,J){let X=null;if(Q==="start")X=J.bottom;else if(Q==="end")X=J.top;else if(t0(Q))X=J.getPixelForValue(Q.value);else if(J.getBasePixel)X=J.getBasePixel();return X}function oE(Q,J,X){let q;if(Q==="start")q=X;else if(Q==="end")q=J.options.reverse?J.min:J.max;else if(t0(Q))q=Q.value;else q=J.getBaseValue();return q}function aE(Q){let J=Q.options,X=J.fill,q=r0(X&&X.target,X);if(q===void 0)q=!!J.backgroundColor;if(q===!1||q===null)return!1;if(q===!0)return"origin";return q}function iE(Q){let{scale:J,index:X,line:q}=Q,N=[],K=q.segments,H=q.points,M=tE(J,X);M.push(fT({x:null,y:J.bottom},q));for(let F=0;F<K.length;F++){let w=K[F];for(let z=w.start;z<=w.end;z++)eE(N,H[z],M)}return new H$({points:N,options:{}})}function tE(Q,J){let X=[],q=Q.getMatchingVisibleMetas("line");for(let N=0;N<q.length;N++){let K=q[N];if(K.index===J)break;if(!K.hidden)X.unshift(K.dataset)}return X}function eE(Q,J,X){let q=[];for(let N=0;N<X.length;N++){let K=X[N],{first:H,last:M,point:F}=$S(K,J,"x");if(!F||H&&M)continue;if(H)q.unshift(F);else if(Q.push(F),!M)break}Q.push(...q)}function $S(Q,J,X){let q=Q.interpolate(J,X);if(!q)return{};let N=q[X],K=Q.segments,H=Q.points,M=!1,F=!1;for(let w=0;w<K.length;w++){let z=K[w],T=H[z.start][X],_=H[z.end][X];if(I8(N,T,_)){M=N===T,F=N===_;break}}return{first:M,last:F,point:q}}class BK{constructor(Q){this.x=Q.x,this.y=Q.y,this.radius=Q.radius}pathSegment(Q,J,X){let{x:q,y:N,radius:K}=this;return J=J||{start:0,end:e5},Q.arc(q,N,K,J.end,J.start,!0),!X.bounds}interpolate(Q){let{x:J,y:X,radius:q}=this,N=Q.angle;return{x:J+Math.cos(N)*q,y:X+Math.sin(N)*q,angle:N}}}function ZS(Q){let{chart:J,fill:X,line:q}=Q;if(g1(X))return QS(J,X);if(X==="stack")return iE(Q);if(X==="shape")return!0;let N=JS(Q);if(N instanceof BK)return N;return fT(N,q)}function QS(Q,J){let X=Q.getDatasetMeta(J);return X&&Q.isDatasetVisible(J)?X.dataset:null}function JS(Q){if((Q.scale||{}).getPointPositionForValue)return XS(Q);return GS(Q)}function GS(Q){let{scale:J={},fill:X}=Q,q=nE(X,J);if(g1(q)){let N=J.isHorizontal();return{x:N?q:null,y:N?null:q}}return null}function XS(Q){let{scale:J,fill:X}=Q,q=J.options,N=J.getLabels().length,K=q.reverse?J.max:J.min,H=oE(X,J,K),M=[];if(q.grid.circular){let F=J.getPointPositionForValue(0,K);return new BK({x:F.x,y:F.y,radius:J.getDistanceFromCenterForValue(H)})}for(let F=0;F<N;++F)M.push(J.getPointPositionForValue(F,H));return M}function nU(Q,J,X){let q=ZS(J),{chart:N,index:K,line:H,scale:M,axis:F}=J,w=H.options,z=w.fill,T=w.backgroundColor,{above:_=T,below:I=T}=z||{},E=N.getDatasetMeta(K),V=hU(N,E);if(q&&H.points.length)BQ(Q,X),qS(Q,{line:H,target:q,above:_,below:I,area:X,scale:M,axis:F,clip:V}),HQ(Q)}function qS(Q,J){let{line:X,target:q,above:N,below:K,area:H,scale:M,clip:F}=J,w=X._loop?"angle":J.axis;Q.save();let z=K;if(K!==N){if(w==="x")az(Q,q,H.top),oU(Q,{line:X,target:q,color:N,scale:M,property:w,clip:F}),Q.restore(),Q.save(),az(Q,q,H.bottom);else if(w==="y")iz(Q,q,H.left),oU(Q,{line:X,target:q,color:K,scale:M,property:w,clip:F}),Q.restore(),Q.save(),iz(Q,q,H.right),z=N}oU(Q,{line:X,target:q,color:z,scale:M,property:w,clip:F}),Q.restore()}function az(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[a3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(z.x,X),Q.lineTo(z.x,z.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(T.x,X)}Q.lineTo(J.first().x,X),Q.closePath(),Q.clip()}function iz(Q,J,X){let{segments:q,points:N}=J,K=!0,H=!1;Q.beginPath();for(let M of q){let{start:F,end:w}=M,z=N[F],T=N[a3(F,w,N)];if(K)Q.moveTo(z.x,z.y),K=!1;else Q.lineTo(X,z.y),Q.lineTo(z.x,z.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(X,T.y)}Q.lineTo(X,J.first().y),Q.closePath(),Q.clip()}function oU(Q,J){let{line:X,target:q,property:N,color:K,scale:H,clip:M}=J,F=pE(X,q,N);for(let{source:w,target:z,start:T,end:_}of F){let{style:{backgroundColor:I=K}={}}=w,E=q!==!0;Q.save(),Q.fillStyle=I,YS(Q,H,M,E&&eU(N,T,_)),Q.beginPath();let V=!!X.pathSegment(Q,w),O;if(E){if(V)Q.closePath();else tz(Q,q,_,N);let D=!!q.pathSegment(Q,z,{move:V,reverse:!0});if(O=V&&D,!O)tz(Q,q,T,N)}Q.closePath(),Q.fill(O?"evenodd":"nonzero"),Q.restore()}}function YS(Q,J,X,q){let N=J.chart.chartArea,{property:K,start:H,end:M}=q||{};if(K==="x"||K==="y"){let F,w,z,T;if(K==="x")F=H,w=N.top,z=M,T=N.bottom;else F=N.left,w=H,z=N.right,T=M;if(Q.beginPath(),X)F=Math.max(F,X.left),z=Math.min(z,X.right),w=Math.max(w,X.top),T=Math.min(T,X.bottom);Q.rect(F,w,z-F,T-w),Q.clip()}}function tz(Q,J,X,q){let N=J.interpolate(X,q);if(N)Q.lineTo(N.x,N.y)}var yT={id:"filler",afterDatasetsUpdate(Q,J,X){let q=(Q.data.datasets||[]).length,N=[],K,H,M,F;for(H=0;H<q;++H){if(K=Q.getDatasetMeta(H),M=K.dataset,F=null,M&&M.options&&M instanceof H$)F={visible:Q.isDatasetVisible(H),index:H,fill:rE(M,H,q),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:M};K.$filler=F,N.push(F)}for(H=0;H<q;++H){if(F=N[H],!F||F.fill===!1)continue;F.fill=lE(N,H,X.propagate)}},beforeDraw(Q,J,X){let q=X.drawTime==="beforeDraw",N=Q.getSortedVisibleDatasetMetas(),K=Q.chartArea;for(let H=N.length-1;H>=0;--H){let M=N[H].$filler;if(!M)continue;if(M.line.updateControlPoints(K,M.axis),q&&M.fill)nU(Q.ctx,M,K)}},beforeDatasetsDraw(Q,J,X){if(X.drawTime!=="beforeDatasetsDraw")return;let q=Q.getSortedVisibleDatasetMetas();for(let N=q.length-1;N>=0;--N){let K=q[N].$filler;if(oz(K))nU(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,J,X){let q=J.meta.$filler;if(!oz(q)||X.drawTime!=="beforeDatasetDraw")return;nU(Q.ctx,q,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},ez=(Q,J)=>{let{boxHeight:X=J,boxWidth:q=J}=Q;if(Q.usePointStyle)X=Math.min(X,J),q=Q.pointStyleWidth||Math.min(q,J);return{boxWidth:q,boxHeight:X,itemHeight:Math.max(J,X)}},NS=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class $K extends E8{constructor(Q){super();this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J,X){this.maxWidth=Q,this.maxHeight=J,this._margins=X,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){if(this.isHorizontal())this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width;else this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height}buildLabels(){let Q=this.options.labels||{},J=_1(Q.generateLabels,[this.chart],this)||[];if(Q.filter)J=J.filter((X)=>Q.filter(X,this.chart.data));if(Q.sort)J=J.sort((X,q)=>Q.sort(X,q,this.chart.data));if(this.options.reverse)J.reverse();this.legendItems=J}fit(){let{options:Q,ctx:J}=this;if(!Q.display){this.width=this.height=0;return}let X=Q.labels,q=$5(X.font),N=q.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:M}=ez(X,N),F,w;if(J.font=q.string,this.isHorizontal())F=this.maxWidth,w=this._fitRows(K,N,H,M)+10;else w=this.maxHeight,F=this._fitCols(K,q,H,M)+10;this.width=Math.min(F,Q.maxWidth||this.maxWidth),this.height=Math.min(w,Q.maxHeight||this.maxHeight)}_fitRows(Q,J,X,q){let{ctx:N,maxWidth:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.lineWidths=[0],w=q+H,z=Q;N.textAlign="left",N.textBaseline="middle";let T=-1,_=-w;return this.legendItems.forEach((I,E)=>{let V=X+J/2+N.measureText(I.text).width;if(E===0||F[F.length-1]+V+2*H>K)z+=w,F[F.length-(E>0?0:1)]=0,_+=w,T++;M[E]={left:0,top:_,row:T,width:V,height:q},F[F.length-1]+=V+H}),z}_fitCols(Q,J,X,q){let{ctx:N,maxHeight:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.columnSizes=[],w=K-Q,z=H,T=0,_=0,I=0,E=0;return this.legendItems.forEach((V,O)=>{let{itemWidth:D,itemHeight:h}=US(X,J,N,V,q);if(O>0&&_+h+2*H>w)z+=T+H,F.push({width:T,height:_}),I+=T+H,E++,T=_=0;M[O]={left:I,top:_,col:E,width:D,height:h},T=Math.max(T,D),_+=h+H}),z+=T,F.push({width:T,height:_}),z}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:J,options:{align:X,labels:{padding:q},rtl:N}}=this,K=f9(N,this.left,this.width);if(this.isHorizontal()){let H=0,M=L5(X,this.left+q,this.right-this.lineWidths[H]);for(let F of J){if(H!==F.row)H=F.row,M=L5(X,this.left+q,this.right-this.lineWidths[H]);F.top+=this.top+Q+q,F.left=K.leftForLtr(K.x(M),F.width),M+=F.width+q}}else{let H=0,M=L5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);for(let F of J){if(F.col!==H)H=F.col,M=L5(X,this.top+Q+q,this.bottom-this.columnSizes[H].height);F.top=M,F.left+=this.left+q,F.left=K.leftForLtr(K.x(F.left),F.width),M+=F.height+q}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;BQ(Q,this),this._draw(),HQ(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:X,ctx:q}=this,{align:N,labels:K}=Q,H=h1.color,M=f9(Q.rtl,this.left,this.width),F=$5(K.font),{padding:w}=K,z=F.size,T=z/2,_;this.drawTitle(),q.textAlign=M.textAlign("left"),q.textBaseline="middle",q.lineWidth=0.5,q.font=F.string;let{boxWidth:I,boxHeight:E,itemHeight:V}=ez(K,z),O=function(a,J0,t){if(isNaN(I)||I<=0||isNaN(E)||E<0)return;q.save();let i=r0(t.lineWidth,1);if(q.fillStyle=r0(t.fillStyle,H),q.lineCap=r0(t.lineCap,"butt"),q.lineDashOffset=r0(t.lineDashOffset,0),q.lineJoin=r0(t.lineJoin,"miter"),q.lineWidth=i,q.strokeStyle=r0(t.strokeStyle,H),q.setLineDash(r0(t.lineDash,[])),K.usePointStyle){let Y0={radius:E*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:i},d=M.xPlus(a,I/2),H0=J0+T;VU(q,Y0,d,H0,K.pointStyleWidth&&I)}else{let Y0=J0+Math.max((z-E)/2,0),d=M.leftForLtr(a,I),H0=b2(t.borderRadius);if(q.beginPath(),Object.values(H0).some((_0)=>_0!==0))B$(q,{x:d,y:Y0,w:I,h:E,radius:H0});else q.rect(d,Y0,I,E);if(q.fill(),i!==0)q.stroke()}q.restore()},D=function(a,J0,t){v2(q,t.text,a,J0+V/2,F,{strikethrough:t.hidden,textAlign:M.textAlign(t.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)_={x:L5(N,this.left+w,this.right-X[0]),y:this.top+w+p,line:0};else _={x:this.left+w,y:L5(N,this.top+p+w,this.bottom-J[0].height),line:0};kU(this.ctx,Q.textDirection);let s=V+w;this.legendItems.forEach((a,J0)=>{q.strokeStyle=a.fontColor,q.fillStyle=a.fontColor;let t=q.measureText(a.text).width,i=M.textAlign(a.textAlign||(a.textAlign=K.textAlign)),Y0=I+T+t,d=_.x,H0=_.y;if(M.setWidth(this.width),h){if(J0>0&&d+Y0+w>this.right)H0=_.y+=s,_.line++,d=_.x=L5(N,this.left+w,this.right-X[_.line])}else if(J0>0&&H0+s>this.bottom)d=_.x=d+J[_.line].width+w,_.line++,H0=_.y=L5(N,this.top+p+w,this.bottom-J[_.line].height);let _0=M.x(d);if(O(_0,H0,a),d=eR(i,d+I+T,h?d+Y0:this.right,Q.rtl),D(M.x(d),H0,a),h)_.x+=Y0+w;else if(typeof a.text!=="string"){let C0=F.lineHeight;_.y+=gT(a,C0)+w}else _.y+=s}),fU(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,X=$5(J.font),q=_5(J.padding);if(!J.display)return;let N=f9(Q.rtl,this.left,this.width),K=this.ctx,H=J.position,M=X.size/2,F=q.top+M,w,z=this.left,T=this.width;if(this.isHorizontal())T=Math.max(...this.lineWidths),w=this.top+F,z=L5(Q.align,z,this.right-T);else{let I=this.columnSizes.reduce((E,V)=>Math.max(E,V.height),0);w=F+L5(Q.align,this.top,this.bottom-I-Q.labels.padding-this._computeTitleHeight())}let _=L5(H,z,z+T);K.textAlign=N.textAlign(b3(H)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=X.string,v2(K,J.text,_,w,X)}_computeTitleHeight(){let Q=this.options.title,J=$5(Q.font),X=_5(Q.padding);return Q.display?J.lineHeight+X.height:0}_getLegendItemAt(Q,J){let X,q,N;if(I8(Q,this.left,this.right)&&I8(J,this.top,this.bottom)){N=this.legendHitBoxes;for(X=0;X<N.length;++X)if(q=N[X],I8(Q,q.left,q.left+q.width)&&I8(J,q.top,q.top+q.height))return this.legendItems[X]}return null}handleEvent(Q){let J=this.options;if(!HS(Q.type,J))return;let X=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let q=this._hoveredItem,N=NS(q,X);if(q&&!N)_1(J.onLeave,[Q,q,this],this);if(this._hoveredItem=X,X&&!N)_1(J.onHover,[Q,X,this],this)}else if(X)_1(J.onClick,[Q,X,this],this)}}function US(Q,J,X,q,N){let K=KS(q,Q,J,X),H=BS(N,q,J.lineHeight);return{itemWidth:K,itemHeight:H}}function KS(Q,J,X,q){let N=Q.text;if(N&&typeof N!=="string")N=N.reduce((K,H)=>K.length>H.length?K:H);return J+X.size/2+q.measureText(N).width}function BS(Q,J,X){let q=Q;if(typeof J.text!=="string")q=gT(J,X);return q}function gT(Q,J){let X=Q.text?Q.text.length:0;return J*X}function HS(Q,J){if((Q==="mousemove"||Q==="mouseout")&&(J.onHover||J.onLeave))return!0;if(J.onClick&&(Q==="click"||Q==="mouseup"))return!0;return!1}var hT={id:"legend",_element:$K,start(Q,J,X){let q=Q.legend=new $K({ctx:Q.ctx,options:X,chart:Q});p6.configure(Q,q,X),p6.addBox(Q,q)},stop(Q){p6.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,J,X){let q=Q.legend;p6.configure(Q,q,X),q.options=X},afterUpdate(Q){let J=Q.legend;J.buildLabels(),J.adjustHitBoxes()},afterEvent(Q,J){if(!J.replay)Q.legend.handleEvent(J.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(Q,J,X){let q=J.datasetIndex,N=X.chart;if(N.isDatasetVisible(q))N.hide(q),J.hidden=!0;else N.show(q),J.hidden=!1},onHover:null,onLeave:null,labels:{color:(Q)=>Q.chart.options.color,boxWidth:40,padding:10,generateLabels(Q){let J=Q.data.datasets,{labels:{usePointStyle:X,pointStyle:q,textAlign:N,color:K,useBorderRadius:H,borderRadius:M}}=Q.legend.options;return Q._getSortedDatasetMetas().map((F)=>{let w=F.controller.getStyle(X?0:void 0),z=_5(w.borderWidth);return{text:J[F.index].label,fillStyle:w.backgroundColor,fontColor:K,hidden:!F.visible,lineCap:w.borderCapStyle,lineDash:w.borderDash,lineDashOffset:w.borderDashOffset,lineJoin:w.borderJoinStyle,lineWidth:(z.width+z.height)/4,strokeStyle:w.borderColor,pointStyle:q||w.pointStyle,rotation:w.rotation,textAlign:N||w.textAlign,borderRadius:H&&(M||w.borderRadius),datasetIndex:F.index}},this)}},title:{color:(Q)=>Q.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:(Q)=>!Q.startsWith("on"),labels:{_scriptable:(Q)=>!["generateLabels","filter","sort"].includes(Q)}}};class HK extends E8{constructor(Q){super();this.chart=Q.chart,this.options=Q.options,this.ctx=Q.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(Q,J){let X=this.options;if(this.left=0,this.top=0,!X.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=Q,this.height=this.bottom=J;let q=V1(X.text)?X.text.length:1;this._padding=_5(X.padding);let N=q*$5(X.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=N;else this.width=N}isHorizontal(){let Q=this.options.position;return Q==="top"||Q==="bottom"}_drawArgs(Q){let{top:J,left:X,bottom:q,right:N,options:K}=this,H=K.align,M=0,F,w,z;if(this.isHorizontal())w=L5(H,X,N),z=J+Q,F=N-X;else{if(K.position==="left")w=X+Q,z=L5(H,q,J),M=l1*-0.5;else w=N-Q,z=L5(H,J,q),M=l1*0.5;F=q-J}return{titleX:w,titleY:z,maxWidth:F,rotation:M}}draw(){let Q=this.ctx,J=this.options;if(!J.display)return;let X=$5(J.font),N=X.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:M,rotation:F}=this._drawArgs(N);v2(Q,J.text,0,0,X,{color:J.color,maxWidth:M,rotation:F,textAlign:b3(J.align),textBaseline:"middle",translation:[K,H]})}}function MS(Q,J){let X=new HK({ctx:Q.ctx,options:J,chart:Q});p6.configure(Q,X,J),p6.addBox(Q,X),Q.titleBlock=X}var uT={id:"title",_element:HK,start(Q,J,X){MS(Q,X)},stop(Q){let J=Q.titleBlock;p6.removeBox(Q,J),delete Q.titleBlock},beforeUpdate(Q,J,X){let q=Q.titleBlock;p6.configure(Q,q,X),q.options=X},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2000},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};var _Q={average(Q){if(!Q.length)return!1;let J,X,q=new Set,N=0,K=0;for(J=0,X=Q.length;J<X;++J){let M=Q[J].element;if(M&&M.hasValue()){let F=M.tooltipPosition();q.add(F.x),N+=F.y,++K}}if(K===0||q.size===0)return!1;return{x:[...q].reduce((M,F)=>M+F)/q.size,y:N/K}},nearest(Q,J){if(!Q.length)return!1;let{x:X,y:q}=J,N=Number.POSITIVE_INFINITY,K,H,M;for(K=0,H=Q.length;K<H;++K){let F=Q[K].element;if(F&&F.hasValue()){let w=F.getCenterPoint(),z=E3(J,w);if(z<N)N=z,M=F}}if(M){let F=M.tooltipPosition();X=F.x,q=F.y}return{x:X,y:q}}};function p4(Q,J){if(J)if(V1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function A8(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
256
+ `)>-1)return Q.split(`
257
+ `);return Q}function FS(Q,J){let{element:X,datasetIndex:q,index:N}=J,K=Q.getDatasetMeta(q).controller,{label:H,value:M}=K.getLabelAndValue(N);return{chart:Q,label:H,parsed:K.getParsed(N),raw:Q.data.datasets[q].data[N],formattedValue:M,dataset:K.getDataset(),dataIndex:N,datasetIndex:q,element:X}}function $T(Q,J){let X=Q.chart.ctx,{body:q,footer:N,title:K}=Q,{boxWidth:H,boxHeight:M}=J,F=$5(J.bodyFont),w=$5(J.titleFont),z=$5(J.footerFont),T=K.length,_=N.length,I=q.length,E=_5(J.padding),V=E.height,O=0,D=q.reduce((s,a)=>s+a.before.length+a.lines.length+a.after.length,0);if(D+=Q.beforeBody.length+Q.afterBody.length,T)V+=T*w.lineHeight+(T-1)*J.titleSpacing+J.titleMarginBottom;if(D){let s=J.displayColors?Math.max(M,F.lineHeight):F.lineHeight;V+=I*s+(D-I)*F.lineHeight+(D-1)*J.bodySpacing}if(_)V+=J.footerMarginTop+_*z.lineHeight+(_-1)*J.footerSpacing;let h=0,p=function(s){O=Math.max(O,X.measureText(s).width+h)};return X.save(),X.font=w.string,B1(Q.title,p),X.font=F.string,B1(Q.beforeBody.concat(Q.afterBody),p),h=J.displayColors?H+2+J.boxPadding:0,B1(q,(s)=>{B1(s.before,p),B1(s.lines,p),B1(s.after,p)}),h=0,X.font=z.string,B1(Q.footer,p),X.restore(),O+=E.width,{width:O,height:V}}function WS(Q,J){let{y:X,height:q}=J;if(X<q/2)return"top";else if(X>Q.height-q/2)return"bottom";return"center"}function wS(Q,J,X,q){let{x:N,width:K}=q,H=X.caretSize+X.caretPadding;if(Q==="left"&&N+K+H>J.width)return!0;if(Q==="right"&&N-K-H<0)return!0}function RS(Q,J,X,q){let{x:N,width:K}=X,{width:H,chartArea:{left:M,right:F}}=Q,w="center";if(q==="center")w=N<=(M+F)/2?"left":"right";else if(N<=K/2)w="left";else if(N>=H-K/2)w="right";if(wS(w,Q,J,X))w="center";return w}function ZT(Q,J,X){let q=X.yAlign||J.yAlign||WS(Q,X);return{xAlign:X.xAlign||J.xAlign||RS(Q,J,X,q),yAlign:q}}function zS(Q,J){let{x:X,width:q}=Q;if(J==="right")X-=q;else if(J==="center")X-=q/2;return X}function TS(Q,J,X){let{y:q,height:N}=Q;if(J==="top")q+=X;else if(J==="bottom")q-=N+X;else q-=N/2;return q}function QT(Q,J,X,q){let{caretSize:N,caretPadding:K,cornerRadius:H}=Q,{xAlign:M,yAlign:F}=X,w=N+K,{topLeft:z,topRight:T,bottomLeft:_,bottomRight:I}=b2(H),E=zS(J,M),V=TS(J,F,w);if(F==="center"){if(M==="left")E+=w;else if(M==="right")E-=w}else if(M==="left")E-=Math.max(z,_)+N;else if(M==="right")E+=Math.max(T,I)+N;return{x:$6(E,0,q.width-J.width),y:$6(V,0,q.height-J.height)}}function c3(Q,J,X){let q=_5(X.padding);return J==="center"?Q.x+Q.width/2:J==="right"?Q.x+Q.width-q.right:Q.x+q.left}function JT(Q){return p4([],A8(Q))}function LS(Q,J,X){return O8(Q,{tooltip:J,tooltipItems:X,type:"tooltip"})}function GT(Q,J){let X=J&&J.dataset&&J.dataset.tooltip&&J.dataset.tooltip.callbacks;return X?Q.override(X):Q}var xT={beforeTitle:d4,title(Q){if(Q.length>0){let J=Q[0],X=J.chart.data.labels,q=X?X.length:0;if(this&&this.options&&this.options.mode==="dataset")return J.dataset.label||"";else if(J.label)return J.label;else if(q>0&&J.dataIndex<q)return X[J.dataIndex]}return""},afterTitle:d4,beforeBody:d4,beforeLabel:d4,label(Q){if(this&&this.options&&this.options.mode==="dataset")return Q.label+": "+Q.formattedValue||Q.formattedValue;let J=Q.dataset.label||"";if(J)J+=": ";let X=Q.formattedValue;if(!Z1(X))J+=X;return J},labelColor(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{borderColor:X.borderColor,backgroundColor:X.backgroundColor,borderWidth:X.borderWidth,borderDash:X.borderDash,borderDashOffset:X.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(Q){let X=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{pointStyle:X.pointStyle,rotation:X.rotation}},afterLabel:d4,afterBody:d4,beforeFooter:d4,footer:d4,afterFooter:d4};function Q6(Q,J,X,q){let N=Q[J].call(X,q);if(typeof N>"u")return xT[J].call(X,q);return N}class ZK extends E8{static positioners=_Q;constructor(Q){super();this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=Q.chart,this.options=Q.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(Q){this.options=Q,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let Q=this._cachedAnimations;if(Q)return Q;let J=this.chart,X=this.options.setContext(this.getContext()),q=X.enabled&&J.options.animation&&X.animations,N=new GK(this.chart,q);if(q._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=LS(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,J){let{callbacks:X}=J,q=Q6(X,"beforeTitle",this,Q),N=Q6(X,"title",this,Q),K=Q6(X,"afterTitle",this,Q),H=[];return H=p4(H,A8(q)),H=p4(H,A8(N)),H=p4(H,A8(K)),H}getBeforeBody(Q,J){return JT(Q6(J.callbacks,"beforeBody",this,Q))}getBody(Q,J){let{callbacks:X}=J,q=[];return B1(Q,(N)=>{let K={before:[],lines:[],after:[]},H=GT(X,N);p4(K.before,A8(Q6(H,"beforeLabel",this,N))),p4(K.lines,Q6(H,"label",this,N)),p4(K.after,A8(Q6(H,"afterLabel",this,N))),q.push(K)}),q}getAfterBody(Q,J){return JT(Q6(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:X}=J,q=Q6(X,"beforeFooter",this,Q),N=Q6(X,"footer",this,Q),K=Q6(X,"afterFooter",this,Q),H=[];return H=p4(H,A8(q)),H=p4(H,A8(N)),H=p4(H,A8(K)),H}_createItems(Q){let J=this._active,X=this.chart.data,q=[],N=[],K=[],H=[],M,F;for(M=0,F=J.length;M<F;++M)H.push(FS(this.chart,J[M]));if(Q.filter)H=H.filter((w,z,T)=>Q.filter(w,z,T,X));if(Q.itemSort)H=H.sort((w,z)=>Q.itemSort(w,z,X));return B1(H,(w)=>{let z=GT(Q.callbacks,w);q.push(Q6(z,"labelColor",this,w)),N.push(Q6(z,"labelPointStyle",this,w)),K.push(Q6(z,"labelTextColor",this,w))}),this.labelColors=q,this.labelPointStyles=N,this.labelTextColors=K,this.dataPoints=H,H}update(Q,J){let X=this.options.setContext(this.getContext()),q=this._active,N,K=[];if(!q.length){if(this.opacity!==0)N={opacity:0}}else{let H=_Q[X.position].call(this,q,this._eventPosition);K=this._createItems(X),this.title=this.getTitle(K,X),this.beforeBody=this.getBeforeBody(K,X),this.body=this.getBody(K,X),this.afterBody=this.getAfterBody(K,X),this.footer=this.getFooter(K,X);let M=this._size=$T(this,X),F=Object.assign({},H,M),w=ZT(this.chart,X,F),z=QT(X,F,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,N={opacity:1,x:z.x,y:z.y,width:M.width,height:M.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,N)this._resolveAnimations().update(this,N);if(Q&&X.external)X.external.call(this,{chart:this.chart,tooltip:this,replay:J})}drawCaret(Q,J,X,q){let N=this.getCaretPosition(Q,X,q);J.lineTo(N.x1,N.y1),J.lineTo(N.x2,N.y2),J.lineTo(N.x3,N.y3)}getCaretPosition(Q,J,X){let{xAlign:q,yAlign:N}=this,{caretSize:K,cornerRadius:H}=X,{topLeft:M,topRight:F,bottomLeft:w,bottomRight:z}=b2(H),{x:T,y:_}=Q,{width:I,height:E}=J,V,O,D,h,p,s;if(N==="center"){if(p=_+E/2,q==="left")V=T,O=V-K,h=p+K,s=p-K;else V=T+I,O=V+K,h=p-K,s=p+K;D=V}else{if(q==="left")O=T+Math.max(M,w)+K;else if(q==="right")O=T+I-Math.max(F,z)-K;else O=this.caretX;if(N==="top")h=_,p=h-K,V=O-K,D=O+K;else h=_+E,p=h+K,V=O+K,D=O-K;s=h}return{x1:V,x2:O,x3:D,y1:h,y2:p,y3:s}}drawTitle(Q,J,X){let q=this.title,N=q.length,K,H,M;if(N){let F=f9(X.rtl,this.x,this.width);Q.x=c3(this,X.titleAlign,X),J.textAlign=F.textAlign(X.titleAlign),J.textBaseline="middle",K=$5(X.titleFont),H=X.titleSpacing,J.fillStyle=X.titleColor,J.font=K.string;for(M=0;M<N;++M)if(J.fillText(q[M],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+H,M+1===N)Q.y+=X.titleMarginBottom-H}}_drawColorBox(Q,J,X,q,N){let K=this.labelColors[X],H=this.labelPointStyles[X],{boxHeight:M,boxWidth:F}=N,w=$5(N.bodyFont),z=c3(this,"left",N),T=q.x(z),_=M<w.lineHeight?(w.lineHeight-M)/2:0,I=J.y+_;if(N.usePointStyle){let E={radius:Math.min(F,M)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},V=q.leftForLtr(T,F)+F/2,O=I+M/2;Q.strokeStyle=N.multiKeyBackground,Q.fillStyle=N.multiKeyBackground,y3(Q,E,V,O),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,y3(Q,E,V,O)}else{Q.lineWidth=t0(K.borderWidth)?Math.max(...Object.values(K.borderWidth)):K.borderWidth||1,Q.strokeStyle=K.borderColor,Q.setLineDash(K.borderDash||[]),Q.lineDashOffset=K.borderDashOffset||0;let E=q.leftForLtr(T,F),V=q.leftForLtr(q.xPlus(T,1),F-2),O=b2(K.borderRadius);if(Object.values(O).some((D)=>D!==0))Q.beginPath(),Q.fillStyle=N.multiKeyBackground,B$(Q,{x:E,y:I,w:F,h:M,radius:O}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),B$(Q,{x:V,y:I+1,w:F-2,h:M-2,radius:O}),Q.fill();else Q.fillStyle=N.multiKeyBackground,Q.fillRect(E,I,F,M),Q.strokeRect(E,I,F,M),Q.fillStyle=K.backgroundColor,Q.fillRect(V,I+1,F-2,M-2)}Q.fillStyle=this.labelTextColors[X]}drawBody(Q,J,X){let{body:q}=this,{bodySpacing:N,bodyAlign:K,displayColors:H,boxHeight:M,boxWidth:F,boxPadding:w}=X,z=$5(X.bodyFont),T=z.lineHeight,_=0,I=f9(X.rtl,this.x,this.width),E=function(t){J.fillText(t,I.x(Q.x+_),Q.y+T/2),Q.y+=T+N},V=I.textAlign(K),O,D,h,p,s,a,J0;J.textAlign=K,J.textBaseline="middle",J.font=z.string,Q.x=c3(this,V,X),J.fillStyle=X.bodyColor,B1(this.beforeBody,E),_=H&&V!=="right"?K==="center"?F/2+w:F+2+w:0;for(p=0,a=q.length;p<a;++p){if(O=q[p],D=this.labelTextColors[p],J.fillStyle=D,B1(O.before,E),h=O.lines,H&&h.length)this._drawColorBox(J,Q,p,I,X),T=Math.max(z.lineHeight,M);for(s=0,J0=h.length;s<J0;++s)E(h[s]),T=z.lineHeight;B1(O.after,E)}_=0,T=z.lineHeight,B1(this.afterBody,E),Q.y-=N}drawFooter(Q,J,X){let q=this.footer,N=q.length,K,H;if(N){let M=f9(X.rtl,this.x,this.width);Q.x=c3(this,X.footerAlign,X),Q.y+=X.footerMarginTop,J.textAlign=M.textAlign(X.footerAlign),J.textBaseline="middle",K=$5(X.footerFont),J.fillStyle=X.footerColor,J.font=K.string;for(H=0;H<N;++H)J.fillText(q[H],M.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+X.footerSpacing}}drawBackground(Q,J,X,q){let{xAlign:N,yAlign:K}=this,{x:H,y:M}=Q,{width:F,height:w}=X,{topLeft:z,topRight:T,bottomLeft:_,bottomRight:I}=b2(q.cornerRadius);if(J.fillStyle=q.backgroundColor,J.strokeStyle=q.borderColor,J.lineWidth=q.borderWidth,J.beginPath(),J.moveTo(H+z,M),K==="top")this.drawCaret(Q,J,X,q);if(J.lineTo(H+F-T,M),J.quadraticCurveTo(H+F,M,H+F,M+T),K==="center"&&N==="right")this.drawCaret(Q,J,X,q);if(J.lineTo(H+F,M+w-I),J.quadraticCurveTo(H+F,M+w,H+F-I,M+w),K==="bottom")this.drawCaret(Q,J,X,q);if(J.lineTo(H+_,M+w),J.quadraticCurveTo(H,M+w,H,M+w-_),K==="center"&&N==="left")this.drawCaret(Q,J,X,q);if(J.lineTo(H,M+z),J.quadraticCurveTo(H,M,H+z,M),J.closePath(),J.fill(),q.borderWidth>0)J.stroke()}_updateAnimationTarget(Q){let J=this.chart,X=this.$animations,q=X&&X.x,N=X&&X.y;if(q||N){let K=_Q[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=$T(this,Q),M=Object.assign({},K,this._size),F=ZT(J,Q,M),w=QT(Q,M,F,J);if(q._to!==w.x||N._to!==w.y)this.xAlign=F.xAlign,this.yAlign=F.yAlign,this.width=H.width,this.height=H.height,this.caretX=K.x,this.caretY=K.y,this._resolveAnimations().update(this,w)}}_willRender(){return!!this.opacity}draw(Q){let J=this.options.setContext(this.getContext()),X=this.opacity;if(!X)return;this._updateAnimationTarget(J);let q={width:this.width,height:this.height},N={x:this.x,y:this.y};X=Math.abs(X)<0.001?0:X;let K=_5(J.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(J.enabled&&H)Q.save(),Q.globalAlpha=X,this.drawBackground(N,Q,q,J),kU(Q,J.textDirection),N.y+=K.top,this.drawTitle(N,Q,J),this.drawBody(N,Q,J),this.drawFooter(N,Q,J),fU(Q,J.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,J){let X=this._active,q=Q.map(({datasetIndex:H,index:M})=>{let F=this.chart.getDatasetMeta(H);if(!F)throw Error("Cannot find a dataset at index "+H);return{datasetIndex:H,element:F.data[M],index:M}}),N=!UQ(X,q),K=this._positionChanged(q,J);if(N||K)this._active=q,this._eventPosition=J,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(Q,J,X=!0){if(J&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let q=this.options,N=this._active||[],K=this._getActiveElements(Q,N,J,X),H=this._positionChanged(K,Q),M=J||!UQ(K,N)||H;if(M){if(this._active=K,q.enabled||q.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,J)}return M}_getActiveElements(Q,J,X,q){let N=this.options;if(Q.type==="mouseout")return[];if(!q)return J.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let K=this.chart.getElementsAtEventForMode(Q,N.mode,N,X);if(N.reverse)K.reverse();return K}_positionChanged(Q,J){let{caretX:X,caretY:q,options:N}=this,K=_Q[N.position].call(this,Q,J);return K!==!1&&(X!==K.x||q!==K.y)}}var mT={id:"tooltip",_element:ZK,positioners:_Q,afterInit(Q,J,X){if(X)Q.tooltip=new ZK({chart:Q,options:X})},beforeUpdate(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},reset(Q,J,X){if(Q.tooltip)Q.tooltip.initialize(X)},afterDraw(Q){let J=Q.tooltip;if(J&&J._willRender()){let X={tooltip:J};if(Q.notifyPlugins("beforeTooltipDraw",{...X,cancelable:!0})===!1)return;J.draw(Q.ctx),Q.notifyPlugins("afterTooltipDraw",X)}},afterEvent(Q,J){if(Q.tooltip){let X=J.replay;if(Q.tooltip.handleEvent(J.event,X,J.inChartArea))J.changed=!0}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(Q,J)=>J.bodyFont.size,boxWidth:(Q,J)=>J.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:xT},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:(Q)=>Q!=="filter"&&Q!=="itemSort"&&Q!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};var _S=(Q,J,X,q)=>{if(typeof J==="string")X=Q.push(J)-1,q.unshift({index:X,label:J});else if(isNaN(J))X=null;return X};function PS(Q,J,X,q){let N=Q.indexOf(J);if(N===-1)return _S(Q,J,X,q);let K=Q.lastIndexOf(J);return N!==K?X:N}var CS=(Q,J)=>Q===null?null:$6(Math.round(Q),0,J);function XT(Q){let J=this.getLabels();if(Q>=0&&Q<J.length)return J[Q];return Q}class MK extends h9{static id="category";static defaults={ticks:{callback:XT}};constructor(Q){super(Q);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Q){let J=this._addedLabels;if(J.length){let X=this.getLabels();for(let{index:q,label:N}of J)if(X[q]===N)X.splice(q,1);this._addedLabels=[]}super.init(Q)}parse(Q,J){if(Z1(Q))return null;let X=this.getLabels();return J=isFinite(J)&&X[J]===Q?J:PS(X,Q,r0(J,Q),this._addedLabels),CS(J,X.length-1)}determineDataLimits(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),{min:X,max:q}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!Q)X=0;if(!J)q=this.getLabels().length-1}this.min=X,this.max=q}buildTicks(){let Q=this.min,J=this.max,X=this.options.offset,q=[],N=this.getLabels();N=Q===0&&J===N.length-1?N:N.slice(Q,J+1),this._valueRange=Math.max(N.length-(X?0:1),1),this._startValue=this.min-(X?0.5:0);for(let K=Q;K<=J;K++)q.push({value:K});return q}getLabelForValue(Q){return XT.call(this,Q)}configure(){if(super.configure(),!this.isHorizontal())this._reversePixels=!this._reversePixels}getPixelForValue(Q){if(typeof Q!=="number")Q=this.parse(Q);return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getPixelForTick(Q){let J=this.ticks;if(Q<0||Q>J.length-1)return null;return this.getPixelForValue(J[Q].value)}getValueForPixel(Q){return Math.round(this._startValue+this.getDecimalForPixel(Q)*this._valueRange)}getBasePixel(){return this.bottom}}function IS(Q,J){let X=[],q=0.00000000000001,{bounds:N,step:K,min:H,max:M,precision:F,count:w,maxTicks:z,maxDigits:T,includeBounds:_}=Q,I=K||1,E=z-1,{min:V,max:O}=J,D=!Z1(H),h=!Z1(M),p=!Z1(w),s=(O-V)/(T+1),a=WU((O-V)/E/I)*I,J0,t,i,Y0;if(a<0.00000000000001&&!D&&!h)return[{value:V},{value:O}];if(Y0=Math.ceil(O/a)-Math.floor(V/a),Y0>E)a=WU(Y0*a/E/I)*I;if(!Z1(F))J0=Math.pow(10,F),a=Math.ceil(a*J0)/J0;if(N==="ticks")t=Math.floor(V/a)*a,i=Math.ceil(O/a)*a;else t=V,i=O;if(D&&h&&K&&lR((M-H)/K,a/1000))Y0=Math.round(Math.min((M-H)/a,z)),a=(M-H)/Y0,t=H,i=M;else if(p)t=D?H:t,i=h?M:i,Y0=w-1,a=(i-t)/Y0;else if(Y0=(i-t)/a,U$(Y0,Math.round(Y0),a/1000))Y0=Math.round(Y0);else Y0=Math.ceil(Y0);let d=Math.max(RU(a),RU(t));J0=Math.pow(10,Z1(F)?d:F),t=Math.round(t*J0)/J0,i=Math.round(i*J0)/J0;let H0=0;if(D){if(_&&t!==H){if(X.push({value:H}),t<H)H0++;if(U$(Math.round((t+H0*a)*J0)/J0,H,qT(H,s,Q)))H0++}else if(t<H)H0++}for(;H0<Y0;++H0){let _0=Math.round((t+H0*a)*J0)/J0;if(h&&_0>M)break;X.push({value:_0})}if(h&&_&&i!==M)if(X.length&&U$(X[X.length-1].value,M,qT(M,s,Q)))X[X.length-1].value=M;else X.push({value:M});else if(!h||i===M)X.push({value:i});return X}function qT(Q,J,{horizontal:X,minRotation:q}){let N=C8(q),K=(X?Math.sin(N):Math.cos(N))||0.001,H=0.75*J*(""+Q).length;return Math.min(J/K,H)}class CQ extends h9{constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(Q,J){if(Z1(Q))return null;if((typeof Q==="number"||Q instanceof Number)&&!isFinite(+Q))return null;return+Q}handleTickRangeOptions(){let{beginAtZero:Q}=this.options,{minDefined:J,maxDefined:X}=this.getUserBounds(),{min:q,max:N}=this,K=(M)=>q=J?q:M,H=(M)=>N=X?N:M;if(Q){let M=N4(q),F=N4(N);if(M<0&&F<0)H(0);else if(M>0&&F>0)K(0)}if(q===N){let M=N===0?1:Math.abs(N*0.05);if(H(N+M),!Q)K(q-M)}this.min=q,this.max=N}getTickLimit(){let Q=this.options.ticks,{maxTicksLimit:J,stepSize:X}=Q,q;if(X){if(q=Math.ceil(this.max/X)-Math.floor(this.min/X)+1,q>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${X} would result generating up to ${q} ticks. Limiting to 1000.`),q=1000}else q=this.computeTickLimit(),J=J||11;if(J)q=Math.min(J,q);return q}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let Q=this.options,J=Q.ticks,X=this.getTickLimit();X=Math.max(2,X);let q={maxTicks:X,bounds:Q.bounds,min:Q.min,max:Q.max,precision:J.precision,step:J.stepSize,count:J.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:J.minRotation||0,includeBounds:J.includeBounds!==!1},N=this._range||this,K=IS(q,N);if(Q.bounds==="ticks")wU(K,this,"value");if(Q.reverse)K.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return K}configure(){let Q=this.ticks,J=this.min,X=this.max;if(super.configure(),this.options.offset&&Q.length){let q=(X-J)/Math.max(Q.length-1,1)/2;J-=q,X+=q}this._startValue=J,this._endValue=X,this._valueRange=X-J}getLabelForValue(Q){return k3(Q,this.chart.options.locale,this.options.ticks.format)}}class FK extends CQ{static id="linear";static defaults={ticks:{callback:KQ.formatters.numeric}};determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);this.min=g1(Q)?Q:0,this.max=g1(J)?J:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),J=Q?this.width:this.height,X=C8(this.options.ticks.minRotation),q=(Q?Math.sin(X):Math.cos(X))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(J/Math.min(40,N.lineHeight/q))}getPixelForValue(Q){return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getValueForPixel(Q){return this._startValue+this.getDecimalForPixel(Q)*this._valueRange}}var IQ=(Q)=>Math.floor(P8(Q)),g9=(Q,J)=>Math.pow(10,IQ(Q)+J);function YT(Q){return Q/Math.pow(10,IQ(Q))===1}function NT(Q,J,X){let q=Math.pow(10,X),N=Math.floor(Q/q);return Math.ceil(J/q)-N}function OS(Q,J){let X=J-Q,q=IQ(X);while(NT(Q,J,q)>10)q++;while(NT(Q,J,q)<10)q--;return Math.min(q,IQ(Q))}function VS(Q,{min:J,max:X}){J=Z6(Q.min,J);let q=[],N=IQ(J),K=OS(J,X),H=K<0?Math.pow(10,Math.abs(K)):1,M=Math.pow(10,K),F=N>K?Math.pow(10,N):0,w=Math.round((J-F)*H)/H,z=Math.floor((J-F)/M/10)*M*10,T=Math.floor((w-z)/Math.pow(10,K)),_=Z6(Q.min,Math.round((F+z+T*Math.pow(10,K))*H)/H);while(_<X){if(q.push({value:_,major:YT(_),significand:T}),T>=10)T=T<15?15:20;else T++;if(T>=20)K++,T=2,H=K>=0?1:H;_=Math.round((F+z+T*Math.pow(10,K))*H)/H}let I=Z6(Q.max,_);return q.push({value:I,major:YT(I),significand:T}),q}class AS extends h9{static id="logarithmic";static defaults={ticks:{callback:KQ.formatters.logarithmic,major:{enabled:!0}}};constructor(Q){super(Q);this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(Q,J){let X=CQ.prototype.parse.apply(this,[Q,J]);if(X===0){this._zero=!0;return}return g1(X)&&X>0?X:null}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);if(this.min=g1(Q)?Math.max(0,Q):null,this.max=g1(J)?Math.max(0,J):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!g1(this._userMin))this.min=Q===g9(this.min,0)?g9(this.min,-1):g9(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),X=this.min,q=this.max,N=(H)=>X=Q?X:H,K=(H)=>q=J?q:H;if(X===q)if(X<=0)N(1),K(10);else N(g9(X,-1)),K(g9(q,1));if(X<=0)N(g9(q,-1));if(q<=0)K(g9(X,1));this.min=X,this.max=q}buildTicks(){let Q=this.options,J={min:this._userMin,max:this._userMax},X=VS(J,this);if(Q.bounds==="ticks")wU(X,this,"value");if(Q.reverse)X.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return X}getLabelForValue(Q){return Q===void 0?"0":k3(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=P8(Q),this._valueRange=P8(this.max)-P8(Q)}getPixelForValue(Q){if(Q===void 0||Q===0)Q=this.min;if(Q===null||isNaN(Q))return NaN;return this.getPixelForDecimal(Q===this.min?0:(P8(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let J=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+J*this._valueRange)}}function QK(Q){let J=Q.ticks;if(J.display&&Q.display){let X=_5(J.backdropPadding);return r0(J.font&&J.font.size,h1.font.size)+X.height}return 0}function ES(Q,J,X){return X=V1(X)?X:[X],{w:Gz(Q,J.string,X),h:X.length*J.lineHeight}}function UT(Q,J,X,q,N){if(Q===q||Q===N)return{start:J-X/2,end:J+X/2};else if(Q<q||Q>N)return{start:J-X,end:J};return{start:J,end:J+X}}function SS(Q){let J={l:Q.left+Q._padding.left,r:Q.right-Q._padding.right,t:Q.top+Q._padding.top,b:Q.bottom-Q._padding.bottom},X=Object.assign({},J),q=[],N=[],K=Q._pointLabels.length,H=Q.options.pointLabels,M=H.centerPointLabels?l1/K:0;for(let F=0;F<K;F++){let w=H.setContext(Q.getPointLabelContext(F));N[F]=w.padding;let z=Q.getPointPosition(F,Q.drawingArea+N[F],M),T=$5(w.font),_=ES(Q.ctx,T,Q._pointLabels[F]);q[F]=_;let I=i5(Q.getIndexAngle(F)+M),E=Math.round(D3(I)),V=UT(E,z.x,_.w,0,180),O=UT(E,z.y,_.h,90,270);jS(X,J,I,V,O)}Q.setCenterPoint(J.l-X.l,X.r-J.r,J.t-X.t,X.b-J.b),Q._pointLabelItems=bS(Q,q,N)}function jS(Q,J,X,q,N){let K=Math.abs(Math.sin(X)),H=Math.abs(Math.cos(X)),M=0,F=0;if(q.start<J.l)M=(J.l-q.start)/K,Q.l=Math.min(Q.l,J.l-M);else if(q.end>J.r)M=(q.end-J.r)/K,Q.r=Math.max(Q.r,J.r+M);if(N.start<J.t)F=(J.t-N.start)/H,Q.t=Math.min(Q.t,J.t-F);else if(N.end>J.b)F=(N.end-J.b)/H,Q.b=Math.max(Q.b,J.b+F)}function DS(Q,J,X){let q=Q.drawingArea,{extra:N,additionalAngle:K,padding:H,size:M}=X,F=Q.getPointPosition(J,q+N+H,K),w=Math.round(D3(i5(F.angle+t5))),z=yS(F.y,M.h,w),T=kS(w),_=fS(F.x,M.w,T);return{visible:!0,x:F.x,y:z,textAlign:T,left:_,top:z,right:_+M.w,bottom:z+M.h}}function vS(Q,J){if(!J)return!0;let{left:X,top:q,right:N,bottom:K}=Q;return!(m4({x:X,y:q},J)||m4({x:X,y:K},J)||m4({x:N,y:q},J)||m4({x:N,y:K},J))}function bS(Q,J,X){let q=[],N=Q._pointLabels.length,K=Q.options,{centerPointLabels:H,display:M}=K.pointLabels,F={extra:QK(K)/2,additionalAngle:H?l1/N:0},w;for(let z=0;z<N;z++){F.padding=X[z],F.size=J[z];let T=DS(Q,z,F);if(q.push(T),M==="auto"){if(T.visible=vS(T,w),T.visible)w=T}}return q}function kS(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function fS(Q,J,X){if(X==="right")Q-=J;else if(X==="center")Q-=J/2;return Q}function yS(Q,J,X){if(X===90||X===270)Q-=J/2;else if(X>270||X<90)Q-=J;return Q}function gS(Q,J,X){let{left:q,top:N,right:K,bottom:H}=X,{backdropColor:M}=J;if(!Z1(M)){let F=b2(J.borderRadius),w=_5(J.backdropPadding);Q.fillStyle=M;let z=q-w.left,T=N-w.top,_=K-q+w.width,I=H-N+w.height;if(Object.values(F).some((E)=>E!==0))Q.beginPath(),B$(Q,{x:z,y:T,w:_,h:I,radius:F}),Q.fill();else Q.fillRect(z,T,_,I)}}function hS(Q,J){let{ctx:X,options:{pointLabels:q}}=Q;for(let N=J-1;N>=0;N--){let K=Q._pointLabelItems[N];if(!K.visible)continue;let H=q.setContext(Q.getPointLabelContext(N));gS(X,H,K);let M=$5(H.font),{x:F,y:w,textAlign:z}=K;v2(X,Q._pointLabels[N],F,w+M.lineHeight/2,M,{color:H.color,textAlign:z,textBaseline:"middle"})}}function dT(Q,J,X,q){let{ctx:N}=Q;if(X)N.arc(Q.xCenter,Q.yCenter,J,0,e5);else{let K=Q.getPointPosition(0,J);N.moveTo(K.x,K.y);for(let H=1;H<q;H++)K=Q.getPointPosition(H,J),N.lineTo(K.x,K.y)}}function uS(Q,J,X,q,N){let K=Q.ctx,H=J.circular,{color:M,lineWidth:F}=J;if(!H&&!q||!M||!F||X<0)return;K.save(),K.strokeStyle=M,K.lineWidth=F,K.setLineDash(N.dash||[]),K.lineDashOffset=N.dashOffset,K.beginPath(),dT(Q,X,H,q),K.closePath(),K.stroke(),K.restore()}function xS(Q,J,X){return O8(Q,{label:X,index:J,type:"pointLabel"})}class mS extends CQ{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:KQ.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(Q){return Q},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(Q){super(Q);this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let Q=this._padding=_5(QK(this.options)/2),J=this.width=this.maxWidth-Q.width,X=this.height=this.maxHeight-Q.height;this.xCenter=Math.floor(this.left+J/2+Q.left),this.yCenter=Math.floor(this.top+X/2+Q.top),this.drawingArea=Math.floor(Math.min(J,X)/2)}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!1);this.min=g1(Q)&&!isNaN(Q)?Q:0,this.max=g1(J)&&!isNaN(J)?J:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/QK(this.options))}generateTickLabels(Q){CQ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((J,X)=>{let q=_1(this.options.pointLabels.callback,[J,X],this);return q||q===0?q:""}).filter((J,X)=>this.chart.getDataVisibility(X))}fit(){let Q=this.options;if(Q.display&&Q.pointLabels.display)SS(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(Q,J,X,q){this.xCenter+=Math.floor((Q-J)/2),this.yCenter+=Math.floor((X-q)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Q,J,X,q))}getIndexAngle(Q){let J=e5/(this._pointLabels.length||1),X=this.options.startAngle||0;return i5(Q*J+C8(X))}getDistanceFromCenterForValue(Q){if(Z1(Q))return NaN;let J=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-Q)*J;return(Q-this.min)*J}getValueForDistanceFromCenter(Q){if(Z1(Q))return NaN;let J=Q/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-J:this.min+J}getPointLabelContext(Q){let J=this._pointLabels||[];if(Q>=0&&Q<J.length){let X=J[Q];return xS(this.getContext(),Q,X)}}getPointPosition(Q,J,X=0){let q=this.getIndexAngle(Q)-t5+X;return{x:Math.cos(q)*J+this.xCenter,y:Math.sin(q)*J+this.yCenter,angle:q}}getPointPositionForValue(Q,J){return this.getPointPosition(Q,this.getDistanceFromCenterForValue(J))}getBasePosition(Q){return this.getPointPositionForValue(Q||0,this.getBaseValue())}getPointLabelPosition(Q){let{left:J,top:X,right:q,bottom:N}=this._pointLabelItems[Q];return{left:J,top:X,right:q,bottom:N}}drawBackground(){let{backgroundColor:Q,grid:{circular:J}}=this.options;if(Q){let X=this.ctx;X.save(),X.beginPath(),dT(this,this.getDistanceFromCenterForValue(this._endValue),J,this._pointLabels.length),X.closePath(),X.fillStyle=Q,X.fill(),X.restore()}}drawGrid(){let Q=this.ctx,J=this.options,{angleLines:X,grid:q,border:N}=J,K=this._pointLabels.length,H,M,F;if(J.pointLabels.display)hS(this,K);if(q.display)this.ticks.forEach((w,z)=>{if(z!==0||z===0&&this.min<0){M=this.getDistanceFromCenterForValue(w.value);let T=this.getContext(z),_=q.setContext(T),I=N.setContext(T);uS(this,_,M,K,I)}});if(X.display){Q.save();for(H=K-1;H>=0;H--){let w=X.setContext(this.getPointLabelContext(H)),{color:z,lineWidth:T}=w;if(!T||!z)continue;Q.lineWidth=T,Q.strokeStyle=z,Q.setLineDash(w.borderDash),Q.lineDashOffset=w.borderDashOffset,M=this.getDistanceFromCenterForValue(J.reverse?this.min:this.max),F=this.getPointPosition(H,M),Q.beginPath(),Q.moveTo(this.xCenter,this.yCenter),Q.lineTo(F.x,F.y),Q.stroke()}Q.restore()}}drawBorder(){}drawLabels(){let Q=this.ctx,J=this.options,X=J.ticks;if(!X.display)return;let q=this.getIndexAngle(0),N,K;Q.save(),Q.translate(this.xCenter,this.yCenter),Q.rotate(q),Q.textAlign="center",Q.textBaseline="middle",this.ticks.forEach((H,M)=>{if(M===0&&this.min>=0&&!J.reverse)return;let F=X.setContext(this.getContext(M)),w=$5(F.font);if(N=this.getDistanceFromCenterForValue(this.ticks[M].value),F.showLabelBackdrop){Q.font=w.string,K=Q.measureText(H.label).width,Q.fillStyle=F.backdropColor;let z=_5(F.backdropPadding);Q.fillRect(-K/2-z.left,-N-w.size/2-z.top,K+z.width,w.size+z.height)}v2(Q,H.label,0,-N,w,{color:F.color,strokeColor:F.textStrokeColor,strokeWidth:F.textStrokeWidth})}),Q.restore()}drawTitle(){}}var i3={millisecond:{common:!0,size:1,steps:1000},second:{common:!0,size:1000,steps:60},minute:{common:!0,size:60000,steps:60},hour:{common:!0,size:3600000,steps:24},day:{common:!0,size:86400000,steps:30},week:{common:!1,size:604800000,steps:4},month:{common:!0,size:2628000000,steps:12},quarter:{common:!1,size:7884000000,steps:4},year:{common:!0,size:31540000000}},J6=Object.keys(i3);function KT(Q,J){return Q-J}function BT(Q,J){if(Z1(J))return null;let X=Q._adapter,{parser:q,round:N,isoWeekday:K}=Q._parseOpts,H=J;if(typeof q==="function")H=q(H);if(!g1(H))H=typeof q==="string"?X.parse(H,q):X.parse(H);if(H===null)return null;if(N)H=N==="week"&&(K$(K)||K===!0)?X.startOf(H,"isoWeek",K):X.startOf(H,N);return+H}function HT(Q,J,X,q){let N=J6.length;for(let K=J6.indexOf(Q);K<N-1;++K){let H=i3[J6[K]],M=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((X-J)/(M*H.size))<=q)return J6[K]}return J6[N-1]}function dS(Q,J,X,q,N){for(let K=J6.length-1;K>=J6.indexOf(X);K--){let H=J6[K];if(i3[H].common&&Q._adapter.diff(N,q,H)>=J-1)return H}return J6[X?J6.indexOf(X):0]}function pS(Q){for(let J=J6.indexOf(Q)+1,X=J6.length;J<X;++J)if(i3[J6[J]].common)return J6[J]}function MT(Q,J,X){if(!X)Q[J]=!0;else if(X.length){let{lo:q,hi:N}=v3(X,J),K=X[q]>=J?X[q]:X[N];Q[K]=!0}}function cS(Q,J,X,q){let N=Q._adapter,K=+N.startOf(J[0].value,q),H=J[J.length-1].value,M,F;for(M=K;M<=H;M=+N.add(M,1,q))if(F=X[M],F>=0)J[F].major=!0;return J}function FT(Q,J,X){let q=[],N={},K=J.length,H,M;for(H=0;H<K;++H)M=J[H],N[M]=H,q.push({value:M,major:!1});return K===0||!X?q:cS(Q,q,N,X)}class JK extends h9{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(Q){super(Q);this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(Q,J={}){let X=Q.time||(Q.time={}),q=this._adapter=new OA._date(Q.adapters.date);q.init(J),Y$(X.displayFormats,q.formats()),this._parseOpts={parser:X.parser,round:X.round,isoWeekday:X.isoWeekday},super.init(Q),this._normalized=J.normalized}parse(Q,J){if(Q===void 0)return null;return BT(this,Q)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let Q=this.options,J=this._adapter,X=Q.time.unit||"day",{min:q,max:N,minDefined:K,maxDefined:H}=this.getUserBounds();function M(F){if(!K&&!isNaN(F.min))q=Math.min(q,F.min);if(!H&&!isNaN(F.max))N=Math.max(N,F.max)}if(!K||!H){if(M(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")M(this.getMinMax(!1))}q=g1(q)&&!isNaN(q)?q:+J.startOf(Date.now(),X),N=g1(N)&&!isNaN(N)?N:+J.endOf(Date.now(),X)+1,this.min=Math.min(q,N-1),this.max=Math.max(q+1,N)}_getLabelBounds(){let Q=this.getLabelTimestamps(),J=Number.POSITIVE_INFINITY,X=Number.NEGATIVE_INFINITY;if(Q.length)J=Q[0],X=Q[Q.length-1];return{min:J,max:X}}buildTicks(){let Q=this.options,J=Q.time,X=Q.ticks,q=X.source==="labels"?this.getLabelTimestamps():this._generate();if(Q.bounds==="ticks"&&q.length)this.min=this._userMin||q[0],this.max=this._userMax||q[q.length-1];let N=this.min,K=this.max,H=oR(q,N,K);if(this._unit=J.unit||(X.autoSkip?HT(J.minUnit,this.min,this.max,this._getLabelCapacity(N)):dS(this,H.length,J.minUnit,this.min,this.max)),this._majorUnit=!X.major.enabled||this._unit==="year"?void 0:pS(this._unit),this.initOffsets(q),Q.reverse)H.reverse();return FT(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((Q)=>+Q.value))}initOffsets(Q=[]){let J=0,X=0,q,N;if(this.options.offset&&Q.length){if(q=this.getDecimalForValue(Q[0]),Q.length===1)J=1-q;else J=(this.getDecimalForValue(Q[1])-q)/2;if(N=this.getDecimalForValue(Q[Q.length-1]),Q.length===1)X=N;else X=(N-this.getDecimalForValue(Q[Q.length-2]))/2}let K=Q.length<3?0.5:0.25;J=$6(J,0,K),X=$6(X,0,K),this._offsets={start:J,end:X,factor:1/(J+1+X)}}_generate(){let Q=this._adapter,J=this.min,X=this.max,q=this.options,N=q.time,K=N.unit||HT(N.minUnit,J,X,this._getLabelCapacity(J)),H=r0(q.ticks.stepSize,1),M=K==="week"?N.isoWeekday:!1,F=K$(M)||M===!0,w={},z=J,T,_;if(F)z=+Q.startOf(z,"isoWeek",M);if(z=+Q.startOf(z,F?"day":K),Q.diff(X,J,K)>1e5*H)throw Error(J+" and "+X+" are too far apart with stepSize of "+H+" "+K);let I=q.ticks.source==="data"&&this.getDataTimestamps();for(T=z,_=0;T<X;T=+Q.add(T,H,K),_++)MT(w,T,I);if(T===X||q.bounds==="ticks"||_===1)MT(w,T,I);return Object.keys(w).sort(KT).map((E)=>+E)}getLabelForValue(Q){let J=this._adapter,X=this.options.time;if(X.tooltipFormat)return J.format(Q,X.tooltipFormat);return J.format(Q,X.displayFormats.datetime)}format(Q,J){let q=this.options.time.displayFormats,N=this._unit,K=J||q[N];return this._adapter.format(Q,K)}_tickFormatFunction(Q,J,X,q){let N=this.options,K=N.ticks.callback;if(K)return _1(K,[Q,J,X],this);let H=N.time.displayFormats,M=this._unit,F=this._majorUnit,w=M&&H[M],z=F&&H[F],T=X[J],_=F&&z&&T&&T.major;return this._adapter.format(Q,q||(_?z:w))}generateTickLabels(Q){let J,X,q;for(J=0,X=Q.length;J<X;++J)q=Q[J],q.label=this._tickFormatFunction(q.value,J,Q)}getDecimalForValue(Q){return Q===null?NaN:(Q-this.min)/(this.max-this.min)}getPixelForValue(Q){let J=this._offsets,X=this.getDecimalForValue(Q);return this.getPixelForDecimal((J.start+X)*J.factor)}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return this.min+X*(this.max-this.min)}_getLabelSize(Q){let J=this.options.ticks,X=this.ctx.measureText(Q).width,q=C8(this.isHorizontal()?J.maxRotation:J.minRotation),N=Math.cos(q),K=Math.sin(q),H=this._resolveTickFontOptions(0).size;return{w:X*N+H*K,h:X*K+H*N}}_getLabelCapacity(Q){let J=this.options.time,X=J.displayFormats,q=X[J.unit]||X.millisecond,N=this._tickFormatFunction(Q,0,FT(this,[Q],this._majorUnit),q),K=this._getLabelSize(N),H=Math.floor(this.isHorizontal()?this.width/K.w:this.height/K.h)-1;return H>0?H:1}getDataTimestamps(){let Q=this._cache.data||[],J,X;if(Q.length)return Q;let q=this.getMatchingVisibleMetas();if(this._normalized&&q.length)return this._cache.data=q[0].controller.getAllParsedValues(this);for(J=0,X=q.length;J<X;++J)Q=Q.concat(q[J].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Q)}getLabelTimestamps(){let Q=this._cache.labels||[],J,X;if(Q.length)return Q;let q=this.getLabels();for(J=0,X=q.length;J<X;++J)Q.push(BT(this,q[J]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return LU(Q.sort(KT))}}function l3(Q,J,X){let q=0,N=Q.length-1,K,H,M,F;if(X){if(J>=Q[q].pos&&J<=Q[N].pos)({lo:q,hi:N}=E2(Q,"pos",J));({pos:K,time:M}=Q[q]),{pos:H,time:F}=Q[N]}else{if(J>=Q[q].time&&J<=Q[N].time)({lo:q,hi:N}=E2(Q,"time",J));({time:K,pos:M}=Q[q]),{time:H,pos:F}=Q[N]}let w=H-K;return w?M+(F-M)*(J-K)/w:M}class lS extends JK{static id="timeseries";static defaults=JK.defaults;constructor(Q){super(Q);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let Q=this._getTimestampsForTable(),J=this._table=this.buildLookupTable(Q);this._minPos=l3(J,this.min),this._tableRange=l3(J,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:J,max:X}=this,q=[],N=[],K,H,M,F,w;for(K=0,H=Q.length;K<H;++K)if(F=Q[K],F>=J&&F<=X)q.push(F);if(q.length<2)return[{time:J,pos:0},{time:X,pos:1}];for(K=0,H=q.length;K<H;++K)if(w=q[K+1],M=q[K-1],F=q[K],Math.round((w+M)/2)!==F)N.push({time:F,pos:K/(H-1)});return N}_generate(){let Q=this.min,J=this.max,X=super.getDataTimestamps();if(!X.includes(Q)||!X.length)X.splice(0,0,Q);if(!X.includes(J)||X.length===1)X.push(J);return X.sort((q,N)=>q-N)}_getTimestampsForTable(){let Q=this._cache.all||[];if(Q.length)return Q;let J=this.getDataTimestamps(),X=this.getLabelTimestamps();if(J.length&&X.length)Q=this.normalize(J.concat(X));else Q=J.length?J:X;return Q=this._cache.all=Q,Q}getDecimalForValue(Q){return(l3(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,X=this.getDecimalForPixel(Q)/J.factor-J.end;return l3(this._table,X*this._tableRange+this._minPos,!0)}}u9.register(MK,FK,KK,H$,UK,uT,mT,hT,yT);var o_=o(oT(),1);var b8=o(P1(),1);var ZX=o(P1(),1);var e3=(...Q)=>Q.filter((J,X,q)=>{return Boolean(J)&&J.trim()!==""&&q.indexOf(J)===X}).join(" ").trim();var aT=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var iT=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(J,X,q)=>q?q.toUpperCase():X.toLowerCase());var RK=(Q)=>{let J=iT(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var VQ=o(P1(),1);var $X={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"};var tT=(Q)=>{for(let J in Q)if(J.startsWith("aria-")||J==="role"||J==="title")return!0;return!1};var F$=o(P1(),1),tS=F$.createContext({});var eT=()=>F$.useContext(tS);var $L=VQ.forwardRef(({color:Q,size:J,strokeWidth:X,absoluteStrokeWidth:q,className:N="",children:K,iconNode:H,...M},F)=>{let{size:w=24,strokeWidth:z=2,absoluteStrokeWidth:T=!1,color:_="currentColor",className:I=""}=eT()??{},E=q??T?Number(X??z)*24/Number(J??w):X??z;return VQ.createElement("svg",{ref:F,...$X,width:J??w??$X.width,height:J??w??$X.height,stroke:Q??_,strokeWidth:E,className:e3("lucide",I,N),...!K&&!tT(M)&&{"aria-hidden":"true"},...M},[...H.map(([V,O])=>VQ.createElement(V,O)),...Array.isArray(K)?K:[K]])});var V0=(Q,J)=>{let X=ZX.forwardRef(({className:q,...N},K)=>ZX.createElement($L,{ref:K,iconNode:J,className:e3(`lucide-${aT(RK(Q))}`,`lucide-${Q}`,q),...N}));return X.displayName=RK(Q),X};var eS=[["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"}]],y2=V0("circle-alert",eS);var $j=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],AQ=V0("activity",$j);var Zj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],EQ=V0("check",Zj);var Qj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],SQ=V0("chevron-down",Qj);var Jj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],jQ=V0("chevron-up",Jj);var Gj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],DQ=V0("clock",Gj);var Xj=[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]],m9=V0("coins",Xj);var qj=[["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"}]],vQ=V0("copy",qj);var Yj=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],bQ=V0("cpu",Yj);var Nj=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],kQ=V0("folder",Nj);var Uj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],fQ=V0("gauge",Uj);var Kj=[["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"}]],yQ=V0("hash",Kj);var Bj=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],gQ=V0("inbox",Bj);var Hj=[["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"}]],hQ=V0("layout-dashboard",Hj);var Mj=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],uQ=V0("menu",Mj);var Fj=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],xQ=V0("monitor",Fj);var Wj=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],mQ=V0("moon",Wj);var wj=[["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"}]],dQ=V0("refresh-cw",wj);var Rj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],pQ=V0("smile",Rj);var zj=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],cQ=V0("star",zj);var Tj=[["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"}]],lQ=V0("sun",Tj);var Lj=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],rQ=V0("trending-up",Lj);var _j=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],sQ=V0("wrench",_j);var Pj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],d9=V0("x",Pj);var Cj=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],nQ=V0("zap",Cj);var PL=o(P1(),1);var oQ=[{id:"overview",label:"Overview",icon:hQ},{id:"requests",label:"Requests",icon:AQ},{id:"errors",label:"Errors",icon:y2},{id:"models",label:"Models",icon:bQ},{id:"tools",label:"Tools",icon:sQ},{id:"costs",label:"Costs",icon:m9},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:pQ},{id:"projects",label:"Projects",icon:kQ},{id:"gain",label:"Gain",icon:rQ}];var c6=o(B0(),1);function zK({activeSection:Q,onSectionChange:J,className:X=""}){return c6.jsxDEV("aside",{className:`stats-nav-rail ${X}`,children:[c6.jsxDEV("div",{className:"stats-nav-rail-header",children:c6.jsxDEV("div",{className:"stats-logo-container",children:[c6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),c6.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),c6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:oQ.map((q)=>{let N=q.id===Q,K=q.icon;return c6.jsxDEV("button",{type:"button",onClick:()=>J(q.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[c6.jsxDEV(K,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),c6.jsxDEV("span",{className:"stats-nav-rail-item-label",children:q.label},void 0,!1,void 0,this)]},q.id,!0,void 0,this)})},void 0,!1,void 0,this),c6.jsxDEV("div",{className:"stats-nav-rail-footer",children:c6.jsxDEV("span",{className:"stats-version-tag",children:"OMP Stats v1.0.0"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var TK=o(B0(),1),Oj=[{value:"1h",label:"1h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"},{value:"30d",label:"30d"},{value:"90d",label:"90d"},{value:"all",label:"All"}];function ZL({value:Q,onChange:J,className:X=""}){return TK.jsxDEV("div",{className:`stats-range-control ${X}`,role:"radiogroup","aria-label":"Select time range",children:Oj.map((q)=>{let N=q.value===Q;return TK.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>J(q.value),children:q.label},q.value,!1,void 0,this)})},void 0,!1,void 0,this)}var LK=o(P1(),1);class QL extends Error{status;endpoint;constructor(Q,J,X){super(X);this.name="ApiError",this.status=Q,this.endpoint=J}}async function U4(Q,J){let X=await fetch(Q,J);if(!X.ok)throw new QL(X.status,Q,`HTTP error ${X.status} on ${Q}`);return X.json()}async function JL(Q="24h",J){return U4(`/api/stats/overview?range=${encodeURIComponent(Q)}`,{signal:J})}async function GL(Q="24h",J){return U4(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`,{signal:J})}async function XL(Q="24h",J){return U4(`/api/stats/costs?range=${encodeURIComponent(Q)}`,{signal:J})}async function QX(Q=50,J){return U4(`/api/stats/recent?limit=${Q}`,{signal:J})}async function qL(Q=50,J){return U4(`/api/stats/errors?limit=${Q}`,{signal:J})}async function YL(Q,J){return U4(`/api/request/${Q}`,{signal:J})}async function NL(Q){return U4("/api/sync",{signal:Q})}async function UL(Q="24h",J){return U4(`/api/stats/behavior?range=${encodeURIComponent(Q)}`,{signal:J})}async function KL(Q="24h",J){return U4(`/api/stats/folders?range=${encodeURIComponent(Q)}`,{signal:J})}async function BL(Q="24h",J,X){let q=new URLSearchParams({range:Q});if(J)q.set("project",J);return U4(`/api/stats/gain?${q}`,{signal:X})}async function HL(Q="24h",J){return U4(`/api/stats/tools?range=${encodeURIComponent(Q)}`,{signal:J})}var aQ=o(B0(),1);function ML({onSyncStart:Q,onSyncComplete:J,className:X=""}){let[q,N]=LK.useState(!1),[K,H]=LK.useState(null),M=async()=>{if(q)return;if(N(!0),H(null),Q)Q();try{let F=await NL(),w={processed:typeof F?.processed==="number"?F.processed:0,files:typeof F?.files==="number"?F.files:0,totalMessages:typeof F?.totalMessages==="number"?F.totalMessages:0};if(H({type:"success",message:`Synced: ${w.processed} new request${w.processed===1?"":"s"} found.`}),J)J({success:!0,data:w})}catch(F){let w=F instanceof Error?F.message:String(F);if(H({type:"error",message:`Sync failed: ${w}`}),J)J({success:!1,error:w})}finally{N(!1)}};return aQ.jsxDEV("div",{className:`stats-sync-container ${X}`,children:[K&&aQ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":K.type,children:K.message},void 0,!1,void 0,this),aQ.jsxDEV("button",{type:"button",onClick:M,disabled:q,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":q,children:[aQ.jsxDEV(dQ,{size:14,className:`stats-sync-icon ${q?"stats-spin":""}`},void 0,!1,void 0,this),q?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var JX=o(P1(),1),FL="omp-stats-theme",WL="(prefers-color-scheme: dark)";function Vj(){if(typeof localStorage>"u")return"system";let Q=localStorage.getItem(FL);return Q==="light"||Q==="dark"||Q==="system"?Q:"system"}function wL(){if(typeof window>"u")return"dark";return window.matchMedia(WL).matches?"dark":"light"}var c9=Vj(),iQ=c9==="system"?wL():c9,_K=new Set;function RL(){for(let Q of _K)Q()}function PK(){if(iQ=c9==="system"?wL():c9,typeof document<"u")document.documentElement.dataset.theme=iQ,document.documentElement.style.colorScheme=iQ}if(typeof window<"u")PK(),window.matchMedia(WL).addEventListener("change",()=>{if(c9==="system")PK(),RL()});function Aj(Q){if(c9=Q,typeof localStorage<"u")localStorage.setItem(FL,Q);PK(),RL()}function CK(Q){return _K.add(Q),()=>_K.delete(Q)}function G6(){return JX.useSyncExternalStore(CK,()=>iQ,()=>"dark")}function zL(){let Q=JX.useSyncExternalStore(CK,()=>c9,()=>"system"),J=JX.useSyncExternalStore(CK,()=>iQ,()=>"dark");return{preference:Q,resolved:J,setPreference:Aj}}var IK=o(B0(),1),Ej={system:"light",light:"dark",dark:"system"},Sj={system:xQ,light:lQ,dark:mQ},TL={system:"System theme",light:"Light theme",dark:"Dark theme"};function LL(){let{preference:Q,setPreference:J}=zL(),X=Sj[Q];return IK.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>J(Ej[Q]),"aria-label":`${TL[Q]} (click to switch)`,title:`${TL[Q]} — click to switch`,children:IK.jsxDEV(X,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var l6=o(B0(),1);function _L({activeSection:Q,range:J,onRangeChange:X,updatedAt:q,onSyncStart:N,onSyncComplete:K,onMenuToggle:H,className:M=""}){let w=oQ.find((T)=>T.id===Q)?.label||"Observability",z=(T)=>{if(!T)return"Not updated";return`Updated ${new Date(T).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return l6.jsxDEV("header",{className:`stats-top-bar ${M}`,children:[l6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&l6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:l6.jsxDEV(uQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),l6.jsxDEV("h1",{className:"stats-page-title",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l6.jsxDEV("div",{className:"stats-top-bar-right",children:[l6.jsxDEV("div",{className:"stats-top-bar-meta",children:l6.jsxDEV("span",{className:"stats-last-updated",title:q?new Date(q).toLocaleString():void 0,children:z(q)},void 0,!1,void 0,this)},void 0,!1,void 0,this),l6.jsxDEV(ZL,{value:J,onChange:X},void 0,!1,void 0,this),l6.jsxDEV(LL,{},void 0,!1,void 0,this),l6.jsxDEV(ML,{onSyncStart:N,onSyncComplete:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var j5=o(B0(),1);function CL({activeSection:Q,onSectionChange:J,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,children:M}){let[F,w]=PL.useState(!1),z=(T)=>{J(T),w(!1)};return j5.jsxDEV("div",{className:"stats-app-container",children:[j5.jsxDEV(zK,{activeSection:Q,onSectionChange:z,className:"stats-desktop-nav"},void 0,!1,void 0,this),F&&j5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>w(!1),role:"presentation",children:j5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(T)=>T.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[j5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[j5.jsxDEV("div",{className:"stats-logo-container",children:[j5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),j5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j5.jsxDEV("button",{type:"button",onClick:()=>w(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:j5.jsxDEV(d9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j5.jsxDEV(zK,{activeSection:Q,onSectionChange:z,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j5.jsxDEV("div",{className:"stats-main-pane",children:[j5.jsxDEV(_L,{activeSection:Q,range:X,onRangeChange:q,updatedAt:N,onSyncStart:K,onSyncComplete:H,onMenuToggle:()=>w(!0)},void 0,!1,void 0,this),j5.jsxDEV("main",{className:"stats-content-area",children:j5.jsxDEV("div",{className:"stats-content-inner",children:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var S8=o(P1(),1),jj=["overview","requests","errors","models","tools","costs","behavior","projects","gain"],IL=["1h","24h","7d","30d","90d","all"];function OK(Q){let J=Q.replace(/^#\/?/,""),[X,q]=J.split("?"),N=jj.includes(X)?X:"overview",K="24h";if(q){let M=new URLSearchParams(q).get("range");if(IL.includes(M))K=M}return{section:N,range:K}}function OL(){let[Q,J]=S8.useState(()=>OK(window.location.hash));S8.useEffect(()=>{let K=()=>{J(OK(window.location.hash))};return window.addEventListener("hashchange",K),()=>{window.removeEventListener("hashchange",K)}},[]);let X=S8.useCallback((K,H)=>{window.location.hash=`/${K}?range=${H}`},[]),q=S8.useCallback((K)=>{X(K,Q.range)},[Q.range,X]),N=S8.useCallback((K)=>{let H=IL.includes(K)?K:"24h";X(Q.section,H)},[Q.section,X]);return S8.useEffect(()=>{let K=window.location.hash,H=OK(K),M=`#/${H.section}?range=${H.range}`;if(K!==M)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:Q.section,setSection:q,range:Q.range,setRange:N}}var Dj=Math.pow(10,8)*24*60*60*1000,No1=-Dj,GX=604800000,VL=86400000;var tQ=43200,VK=1440;var AK=Symbol.for("constructDateFrom");function D5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&AK in Q)return Q[AK](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function J1(Q,J){return D5(J||Q,Q)}var vj={};function l4(){return vj}function j8(Q,J){let X=l4(),q=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,N=J1(Q,J?.in),K=N.getDay(),H=(K<q?7:0)+K-q;return N.setDate(N.getDate()-H),N.setHours(0,0,0,0),N}function l9(Q,J){return j8(Q,{...J,weekStartsOn:1})}function XX(Q,J){let X=J1(Q,J?.in),q=X.getFullYear(),N=D5(X,0);N.setFullYear(q+1,0,4),N.setHours(0,0,0,0);let K=l9(N),H=D5(X,0);H.setFullYear(q,0,4),H.setHours(0,0,0,0);let M=l9(H);if(X.getTime()>=K.getTime())return q+1;else if(X.getTime()>=M.getTime())return q;else return q-1}function W$(Q){let J=J1(Q),X=new Date(Date.UTC(J.getFullYear(),J.getMonth(),J.getDate(),J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()));return X.setUTCFullYear(J.getFullYear()),+Q-+X}function g2(Q,...J){let X=D5.bind(null,Q||J.find((q)=>typeof q==="object"));return J.map(X)}function EK(Q,J){let X=J1(Q,J?.in);return X.setHours(0,0,0,0),X}function AL(Q,J,X){let[q,N]=g2(X?.in,Q,J),K=EK(q),H=EK(N),M=+K-W$(K),F=+H-W$(H);return Math.round((M-F)/VL)}function EL(Q,J){let X=XX(Q,J),q=D5(J?.in||Q,0);return q.setFullYear(X,0,4),q.setHours(0,0,0,0),l9(q)}function w$(Q,J){let X=+J1(Q)-+J1(J);if(X<0)return-1;else if(X>0)return 1;return X}function SL(Q){return D5(Q,Date.now())}function jL(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function DL(Q){return!(!jL(Q)&&typeof Q!=="number"||isNaN(+J1(Q)))}function vL(Q,J,X){let[q,N]=g2(X?.in,Q,J),K=q.getFullYear()-N.getFullYear(),H=q.getMonth()-N.getMonth();return K*12+H}function bL(Q){return(J)=>{let q=(Q?Math[Q]:Math.trunc)(J);return q===0?0:q}}function kL(Q,J){return+J1(Q)-+J1(J)}function fL(Q,J){let X=J1(Q,J?.in);return X.setHours(23,59,59,999),X}function yL(Q,J){let X=J1(Q,J?.in),q=X.getMonth();return X.setFullYear(X.getFullYear(),q+1,0),X.setHours(23,59,59,999),X}function gL(Q,J){let X=J1(Q,J?.in);return+fL(X,J)===+yL(X,J)}function hL(Q,J,X){let[q,N,K]=g2(X?.in,Q,Q,J),H=w$(N,K),M=Math.abs(vL(N,K));if(M<1)return 0;if(N.getMonth()===1&&N.getDate()>27)N.setDate(30);N.setMonth(N.getMonth()-H*M);let F=w$(N,K)===-H;if(gL(q)&&M===1&&w$(q,K)===1)F=!1;let w=H*(M-+F);return w===0?0:w}function uL(Q,J,X){let q=kL(Q,J)/1000;return bL(X?.roundingMethod)(q)}function xL(Q,J){let X=J1(Q,J?.in);return X.setFullYear(X.getFullYear(),0,1),X.setHours(0,0,0,0),X}var bj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},mL=(Q,J,X)=>{let q,N=bj[Q];if(typeof N==="string")q=N;else if(J===1)q=N.one;else q=N.other.replace("{{count}}",J.toString());if(X?.addSuffix)if(X.comparison&&X.comparison>0)return"in "+q;else return q+" ago";return q};function qX(Q){return(J={})=>{let X=J.width?String(J.width):Q.defaultWidth;return Q.formats[X]||Q.formats[Q.defaultWidth]}}var kj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},yj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dL={date:qX({formats:kj,defaultWidth:"full"}),time:qX({formats:fj,defaultWidth:"full"}),dateTime:qX({formats:yj,defaultWidth:"full"})};var gj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pL=(Q,J,X,q)=>gj[Q];function R$(Q){return(J,X)=>{let q=X?.context?String(X.context):"standalone",N;if(q==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,M=X?.width?String(X.width):H;N=Q.formattingValues[M]||Q.formattingValues[H]}else{let H=Q.defaultWidth,M=X?.width?String(X.width):Q.defaultWidth;N=Q.values[M]||Q.values[H]}let K=Q.argumentCallback?Q.argumentCallback(J):J;return N[K]}}var hj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},uj={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xj={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},mj={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},pj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},cj=(Q,J)=>{let X=Number(Q),q=X%100;if(q>20||q<10)switch(q%10){case 1:return X+"st";case 2:return X+"nd";case 3:return X+"rd"}return X+"th"},cL={ordinalNumber:cj,era:R$({values:hj,defaultWidth:"wide"}),quarter:R$({values:uj,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:R$({values:xj,defaultWidth:"wide"}),day:R$({values:mj,defaultWidth:"wide"}),dayPeriod:R$({values:dj,defaultWidth:"wide",formattingValues:pj,defaultFormattingWidth:"wide"})};function z$(Q){return(J,X={})=>{let q=X.width,N=q&&Q.matchPatterns[q]||Q.matchPatterns[Q.defaultMatchWidth],K=J.match(N);if(!K)return null;let H=K[0],M=q&&Q.parsePatterns[q]||Q.parsePatterns[Q.defaultParseWidth],F=Array.isArray(M)?rj(M,(T)=>T.test(H)):lj(M,(T)=>T.test(H)),w;w=Q.valueCallback?Q.valueCallback(F):F,w=X.valueCallback?X.valueCallback(w):w;let z=J.slice(H.length);return{value:w,rest:z}}}function lj(Q,J){for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)&&J(Q[X]))return X;return}function rj(Q,J){for(let X=0;X<Q.length;X++)if(J(Q[X]))return X;return}function lL(Q){return(J,X={})=>{let q=J.match(Q.matchPattern);if(!q)return null;let N=q[0],K=J.match(Q.parsePattern);if(!K)return null;let H=Q.valueCallback?Q.valueCallback(K[0]):K[0];H=X.valueCallback?X.valueCallback(H):H;let M=J.slice(N.length);return{value:H,rest:M}}}var sj=/^(\d+)(th|st|nd|rd)?/i,nj=/\d+/i,oj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},aj={any:[/^b/i,/^(a|c)/i]},ij={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tj={any:[/1/i,/2/i,/3/i,/4/i]},ej={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},$D={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ZD={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},QD={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},JD={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},GD={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},rL={ordinalNumber:lL({matchPattern:sj,parsePattern:nj,valueCallback:(Q)=>parseInt(Q,10)}),era:z$({matchPatterns:oj,defaultMatchWidth:"wide",parsePatterns:aj,defaultParseWidth:"any"}),quarter:z$({matchPatterns:ij,defaultMatchWidth:"wide",parsePatterns:tj,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:z$({matchPatterns:ej,defaultMatchWidth:"wide",parsePatterns:$D,defaultParseWidth:"any"}),day:z$({matchPatterns:ZD,defaultMatchWidth:"wide",parsePatterns:QD,defaultParseWidth:"any"}),dayPeriod:z$({matchPatterns:JD,defaultMatchWidth:"any",parsePatterns:GD,defaultParseWidth:"any"})};var eQ={code:"en-US",formatDistance:mL,formatLong:dL,formatRelative:pL,localize:cL,match:rL,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sL(Q,J){let X=J1(Q,J?.in);return AL(X,xL(X))+1}function nL(Q,J){let X=J1(Q,J?.in),q=+l9(X)-+EL(X);return Math.round(q/GX)+1}function YX(Q,J){let X=J1(Q,J?.in),q=X.getFullYear(),N=l4(),K=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??N.firstWeekContainsDate??N.locale?.options?.firstWeekContainsDate??1,H=D5(J?.in||Q,0);H.setFullYear(q+1,0,K),H.setHours(0,0,0,0);let M=j8(H,J),F=D5(J?.in||Q,0);F.setFullYear(q,0,K),F.setHours(0,0,0,0);let w=j8(F,J);if(+X>=+M)return q+1;else if(+X>=+w)return q;else return q-1}function oL(Q,J){let X=l4(),q=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,N=YX(Q,J),K=D5(J?.in||Q,0);return K.setFullYear(N,0,q),K.setHours(0,0,0,0),j8(K,J)}function aL(Q,J){let X=J1(Q,J?.in),q=+j8(X,J)-+oL(X,J);return Math.round(q/GX)+1}function N1(Q,J){let X=Q<0?"-":"",q=Math.abs(Q).toString().padStart(J,"0");return X+q}var D8={y(Q,J){let X=Q.getFullYear(),q=X>0?X:1-X;return N1(J==="yy"?q%100:q,J.length)},M(Q,J){let X=Q.getMonth();return J==="M"?String(X+1):N1(X+1,2)},d(Q,J){return N1(Q.getDate(),J.length)},a(Q,J){let X=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.toUpperCase();case"aaa":return X;case"aaaaa":return X[0];case"aaaa":default:return X==="am"?"a.m.":"p.m."}},h(Q,J){return N1(Q.getHours()%12||12,J.length)},H(Q,J){return N1(Q.getHours(),J.length)},m(Q,J){return N1(Q.getMinutes(),J.length)},s(Q,J){return N1(Q.getSeconds(),J.length)},S(Q,J){let X=J.length,q=Q.getMilliseconds(),N=Math.trunc(q*Math.pow(10,X-3));return N1(N,J.length)}};var T$={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},SK={G:function(Q,J,X){let q=Q.getFullYear()>0?1:0;switch(J){case"G":case"GG":case"GGG":return X.era(q,{width:"abbreviated"});case"GGGGG":return X.era(q,{width:"narrow"});case"GGGG":default:return X.era(q,{width:"wide"})}},y:function(Q,J,X){if(J==="yo"){let q=Q.getFullYear(),N=q>0?q:1-q;return X.ordinalNumber(N,{unit:"year"})}return D8.y(Q,J)},Y:function(Q,J,X,q){let N=YX(Q,q),K=N>0?N:1-N;if(J==="YY"){let H=K%100;return N1(H,2)}if(J==="Yo")return X.ordinalNumber(K,{unit:"year"});return N1(K,J.length)},R:function(Q,J){let X=XX(Q);return N1(X,J.length)},u:function(Q,J){let X=Q.getFullYear();return N1(X,J.length)},Q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"Q":return String(q);case"QQ":return N1(q,2);case"Qo":return X.ordinalNumber(q,{unit:"quarter"});case"QQQ":return X.quarter(q,{width:"abbreviated",context:"formatting"});case"QQQQQ":return X.quarter(q,{width:"narrow",context:"formatting"});case"QQQQ":default:return X.quarter(q,{width:"wide",context:"formatting"})}},q:function(Q,J,X){let q=Math.ceil((Q.getMonth()+1)/3);switch(J){case"q":return String(q);case"qq":return N1(q,2);case"qo":return X.ordinalNumber(q,{unit:"quarter"});case"qqq":return X.quarter(q,{width:"abbreviated",context:"standalone"});case"qqqqq":return X.quarter(q,{width:"narrow",context:"standalone"});case"qqqq":default:return X.quarter(q,{width:"wide",context:"standalone"})}},M:function(Q,J,X){let q=Q.getMonth();switch(J){case"M":case"MM":return D8.M(Q,J);case"Mo":return X.ordinalNumber(q+1,{unit:"month"});case"MMM":return X.month(q,{width:"abbreviated",context:"formatting"});case"MMMMM":return X.month(q,{width:"narrow",context:"formatting"});case"MMMM":default:return X.month(q,{width:"wide",context:"formatting"})}},L:function(Q,J,X){let q=Q.getMonth();switch(J){case"L":return String(q+1);case"LL":return N1(q+1,2);case"Lo":return X.ordinalNumber(q+1,{unit:"month"});case"LLL":return X.month(q,{width:"abbreviated",context:"standalone"});case"LLLLL":return X.month(q,{width:"narrow",context:"standalone"});case"LLLL":default:return X.month(q,{width:"wide",context:"standalone"})}},w:function(Q,J,X,q){let N=aL(Q,q);if(J==="wo")return X.ordinalNumber(N,{unit:"week"});return N1(N,J.length)},I:function(Q,J,X){let q=nL(Q);if(J==="Io")return X.ordinalNumber(q,{unit:"week"});return N1(q,J.length)},d:function(Q,J,X){if(J==="do")return X.ordinalNumber(Q.getDate(),{unit:"date"});return D8.d(Q,J)},D:function(Q,J,X){let q=sL(Q);if(J==="Do")return X.ordinalNumber(q,{unit:"dayOfYear"});return N1(q,J.length)},E:function(Q,J,X){let q=Q.getDay();switch(J){case"E":case"EE":case"EEE":return X.day(q,{width:"abbreviated",context:"formatting"});case"EEEEE":return X.day(q,{width:"narrow",context:"formatting"});case"EEEEEE":return X.day(q,{width:"short",context:"formatting"});case"EEEE":default:return X.day(q,{width:"wide",context:"formatting"})}},e:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"e":return String(K);case"ee":return N1(K,2);case"eo":return X.ordinalNumber(K,{unit:"day"});case"eee":return X.day(N,{width:"abbreviated",context:"formatting"});case"eeeee":return X.day(N,{width:"narrow",context:"formatting"});case"eeeeee":return X.day(N,{width:"short",context:"formatting"});case"eeee":default:return X.day(N,{width:"wide",context:"formatting"})}},c:function(Q,J,X,q){let N=Q.getDay(),K=(N-q.weekStartsOn+8)%7||7;switch(J){case"c":return String(K);case"cc":return N1(K,J.length);case"co":return X.ordinalNumber(K,{unit:"day"});case"ccc":return X.day(N,{width:"abbreviated",context:"standalone"});case"ccccc":return X.day(N,{width:"narrow",context:"standalone"});case"cccccc":return X.day(N,{width:"short",context:"standalone"});case"cccc":default:return X.day(N,{width:"wide",context:"standalone"})}},i:function(Q,J,X){let q=Q.getDay(),N=q===0?7:q;switch(J){case"i":return String(N);case"ii":return N1(N,J.length);case"io":return X.ordinalNumber(N,{unit:"day"});case"iii":return X.day(q,{width:"abbreviated",context:"formatting"});case"iiiii":return X.day(q,{width:"narrow",context:"formatting"});case"iiiiii":return X.day(q,{width:"short",context:"formatting"});case"iiii":default:return X.day(q,{width:"wide",context:"formatting"})}},a:function(Q,J,X){let N=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"aaa":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"aaaa":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},b:function(Q,J,X){let q=Q.getHours(),N;if(q===12)N=T$.noon;else if(q===0)N=T$.midnight;else N=q/12>=1?"pm":"am";switch(J){case"b":case"bb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"bbb":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"bbbb":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},B:function(Q,J,X){let q=Q.getHours(),N;if(q>=17)N=T$.evening;else if(q>=12)N=T$.afternoon;else if(q>=4)N=T$.morning;else N=T$.night;switch(J){case"B":case"BB":case"BBB":return X.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"BBBBB":return X.dayPeriod(N,{width:"narrow",context:"formatting"});case"BBBB":default:return X.dayPeriod(N,{width:"wide",context:"formatting"})}},h:function(Q,J,X){if(J==="ho"){let q=Q.getHours()%12;if(q===0)q=12;return X.ordinalNumber(q,{unit:"hour"})}return D8.h(Q,J)},H:function(Q,J,X){if(J==="Ho")return X.ordinalNumber(Q.getHours(),{unit:"hour"});return D8.H(Q,J)},K:function(Q,J,X){let q=Q.getHours()%12;if(J==="Ko")return X.ordinalNumber(q,{unit:"hour"});return N1(q,J.length)},k:function(Q,J,X){let q=Q.getHours();if(q===0)q=24;if(J==="ko")return X.ordinalNumber(q,{unit:"hour"});return N1(q,J.length)},m:function(Q,J,X){if(J==="mo")return X.ordinalNumber(Q.getMinutes(),{unit:"minute"});return D8.m(Q,J)},s:function(Q,J,X){if(J==="so")return X.ordinalNumber(Q.getSeconds(),{unit:"second"});return D8.s(Q,J)},S:function(Q,J){return D8.S(Q,J)},X:function(Q,J,X){let q=Q.getTimezoneOffset();if(q===0)return"Z";switch(J){case"X":return tL(q);case"XXXX":case"XX":return r9(q);case"XXXXX":case"XXX":default:return r9(q,":")}},x:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"x":return tL(q);case"xxxx":case"xx":return r9(q);case"xxxxx":case"xxx":default:return r9(q,":")}},O:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+iL(q,":");case"OOOO":default:return"GMT"+r9(q,":")}},z:function(Q,J,X){let q=Q.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+iL(q,":");case"zzzz":default:return"GMT"+r9(q,":")}},t:function(Q,J,X){let q=Math.trunc(+Q/1000);return N1(q,J.length)},T:function(Q,J,X){return N1(+Q,J.length)}};function iL(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=Math.trunc(q/60),K=q%60;if(K===0)return X+String(N);return X+String(N)+J+N1(K,2)}function tL(Q,J){if(Q%60===0)return(Q>0?"-":"+")+N1(Math.abs(Q)/60,2);return r9(Q,J)}function r9(Q,J=""){let X=Q>0?"-":"+",q=Math.abs(Q),N=N1(Math.trunc(q/60),2),K=N1(q%60,2);return X+N+J+K}var eL=(Q,J)=>{switch(Q){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},$_=(Q,J)=>{switch(Q){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},XD=(Q,J)=>{let X=Q.match(/(P+)(p+)?/)||[],q=X[1],N=X[2];if(!N)return eL(Q,J);let K;switch(q){case"P":K=J.dateTime({width:"short"});break;case"PP":K=J.dateTime({width:"medium"});break;case"PPP":K=J.dateTime({width:"long"});break;case"PPPP":default:K=J.dateTime({width:"full"});break}return K.replace("{{date}}",eL(q,J)).replace("{{time}}",$_(N,J))},Z_={p:$_,P:XD};var qD=/^D+$/,YD=/^Y+$/,ND=["D","DD","YY","YYYY"];function Q_(Q){return qD.test(Q)}function J_(Q){return YD.test(Q)}function G_(Q,J,X){let q=UD(Q,J,X);if(console.warn(q),ND.includes(Q))throw RangeError(q)}function UD(Q,J,X){let q=Q[0]==="Y"?"years":"days of the month";return`Use \`${Q.toLowerCase()}\` instead of \`${Q}\` (in \`${J}\`) for formatting ${q} to the input \`${X}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var KD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,HD=/^'([^]*?)'?$/,MD=/''/g,FD=/[a-zA-Z]/;function K4(Q,J,X){let q=l4(),N=X?.locale??q.locale??eQ,K=X?.firstWeekContainsDate??X?.locale?.options?.firstWeekContainsDate??q.firstWeekContainsDate??q.locale?.options?.firstWeekContainsDate??1,H=X?.weekStartsOn??X?.locale?.options?.weekStartsOn??q.weekStartsOn??q.locale?.options?.weekStartsOn??0,M=J1(Q,X?.in);if(!DL(M))throw RangeError("Invalid time value");let F=J.match(BD).map((z)=>{let T=z[0];if(T==="p"||T==="P"){let _=Z_[T];return _(z,N.formatLong)}return z}).join("").match(KD).map((z)=>{if(z==="''")return{isToken:!1,value:"'"};let T=z[0];if(T==="'")return{isToken:!1,value:WD(z)};if(SK[T])return{isToken:!0,value:z};if(T.match(FD))throw RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return{isToken:!1,value:z}});if(N.localize.preprocessor)F=N.localize.preprocessor(M,F);let w={firstWeekContainsDate:K,weekStartsOn:H,locale:N};return F.map((z)=>{if(!z.isToken)return z.value;let T=z.value;if(!X?.useAdditionalWeekYearTokens&&J_(T)||!X?.useAdditionalDayOfYearTokens&&Q_(T))G_(T,J,String(Q));let _=SK[T[0]];return _(M,T,N.localize,w)}).join("")}function WD(Q){let J=Q.match(HD);if(!J)return Q;return J[1].replace(MD,"'")}function X_(Q,J,X){let q=l4(),N=X?.locale??q.locale??eQ,K=2520,H=w$(Q,J);if(isNaN(H))throw RangeError("Invalid time value");let M=Object.assign({},X,{addSuffix:X?.addSuffix,comparison:H}),[F,w]=g2(X?.in,...H>0?[J,Q]:[Q,J]),z=uL(w,F),T=(W$(w)-W$(F))/1000,_=Math.round((z-T)/60),I;if(_<2)if(X?.includeSeconds)if(z<5)return N.formatDistance("lessThanXSeconds",5,M);else if(z<10)return N.formatDistance("lessThanXSeconds",10,M);else if(z<20)return N.formatDistance("lessThanXSeconds",20,M);else if(z<40)return N.formatDistance("halfAMinute",0,M);else if(z<60)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",1,M);else if(_===0)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",_,M);else if(_<45)return N.formatDistance("xMinutes",_,M);else if(_<90)return N.formatDistance("aboutXHours",1,M);else if(_<VK){let E=Math.round(_/60);return N.formatDistance("aboutXHours",E,M)}else if(_<2520)return N.formatDistance("xDays",1,M);else if(_<tQ){let E=Math.round(_/VK);return N.formatDistance("xDays",E,M)}else if(_<tQ*2)return I=Math.round(_/tQ),N.formatDistance("aboutXMonths",I,M);if(I=hL(w,F),I<12){let E=Math.round(_/tQ);return N.formatDistance("xMonths",E,M)}else{let E=I%12,V=Math.trunc(I/12);if(E<3)return N.formatDistance("aboutXYears",V,M);else if(E<9)return N.formatDistance("overXYears",V,M);else return N.formatDistance("almostXYears",V+1,M)}}function q_(Q,J){return X_(Q,SL(Q),J)}var Y5=o(P1(),1);var jK=o(Y_(),1),O6=o(P1(),1);var U_="label";function N_(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function RD(Q,J){let X=Q.options;if(X&&J)Object.assign(X,J)}function K_(Q,J){Q.labels=J}function B_(Q,J,X=U_){let q=[];Q.datasets=J.map((N)=>{let K=Q.datasets.find((H)=>H[X]===N[X]);if(!K||!N.data||q.includes(K))return{...N};return q.push(K),Object.assign(K,N),K})}function zD(Q,J=U_){let X={labels:[],datasets:[]};return K_(X,Q.labels),B_(X,Q.datasets,J),X}function TD(Q,J){let{height:X=150,width:q=300,redraw:N=!1,datasetIdKey:K,type:H,data:M,options:F,plugins:w=[],fallbackContent:z,updateMode:T,..._}=Q,I=O6.useRef(null),E=O6.useRef(null),V=()=>{if(!I.current)return;E.current=new u9(I.current,{type:H,data:zD(M,K),options:F&&{...F},plugins:w}),N_(J,E.current)},O=()=>{if(N_(J,null),E.current)E.current.destroy(),E.current=null};return O6.useEffect(()=>{if(!N&&E.current&&F)RD(E.current,F)},[N,F]),O6.useEffect(()=>{if(!N&&E.current)K_(E.current.config.data,M.labels)},[N,M.labels]),O6.useEffect(()=>{if(!N&&E.current&&M.datasets)B_(E.current.config.data,M.datasets,K)},[N,M.datasets]),O6.useEffect(()=>{if(!E.current)return;if(N)O(),setTimeout(V);else E.current.update(T)},[N,F,M.labels,M.datasets,T]),O6.useEffect(()=>{if(!E.current)return;O(),setTimeout(V)},[H]),O6.useEffect(()=>{return V(),()=>O()},[]),jK.jsx("canvas",{ref:I,role:"img",height:X,width:q,..._,children:z})}var LD=O6.forwardRef(TD);function H_(Q,J){return u9.register(J),O6.forwardRef((X,q)=>jK.jsx(LD,{...X,ref:q,type:Q}))}var v5=H_("line",qK),NX=H_("bar",XK);var D1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],P5={dark:{legendLabel:"#a89fb3",tooltipBackground:"#241a2e",tooltipTitle:"#eae5ef",tooltipBody:"#a89fb3",tooltipBorder:"rgba(255, 255, 255, 0.12)",grid:"rgba(255, 255, 255, 0.06)",tick:"#867a93"},light:{legendLabel:"#5a5462",tooltipBackground:"#ffffff",tooltipTitle:"#241a2e",tooltipBody:"#5a5462",tooltipBorder:"rgba(20, 12, 28, 0.15)",grid:"rgba(20, 12, 28, 0.08)",tick:"#6a6275"}};function L$(Q){let{chartTheme:J,showLegend:X,defaultLabel:q,formatValue:N,footer:K}=Q;return{legend:{display:X,position:"top",align:"start",labels:{color:J.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:J.tooltipBackground,titleColor:J.tooltipTitle,bodyColor:J.tooltipBody,borderColor:J.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let M=H.dataset.label??q,F=H.parsed.y??0;return`${M}: ${N(F)}`},...K?{footer:K}:{}}}}}function _$(Q){let{chartTheme:J,formatY:X}=Q,q={grid:{color:J.grid,drawBorder:!1},ticks:{color:J.tick,font:{size:11}}},N={...q,ticks:{...q.ticks,callback:(K)=>X(Number(K))},min:0};return{sharedScaleBase:q,yScale:N}}function P$(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function UX(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:4,maxBarThickness:56}}function C$(Q,J){return Q.datasets.map((X,q)=>({label:X.label,data:X.data,...J(q)}))}function KX(Q,J,X){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:q,accumulate:N,bucketToValue:K}=X,H=new Map;for(let F of Q){let w=H.get(F.timestamp)??q();N(w,F),H.set(F.timestamp,w)}let M=[...H.entries()].sort((F,w)=>F[0]-w[0]);return{labels:M.map(([F])=>K4(new Date(F),"MMM d")),datasets:[{label:J,data:M.map(([,F])=>K(F))}]}}function BX(Q,J){if(Q.length===0)return{labels:[],datasets:[]};let{topN:X=5,rankWeight:q,initBucket:N,accumulate:K,bucketToValue:H}=J,M=new Map;for(let D of Q){let h=`${D.model}::${D.provider}`,p=M.get(h);if(p)p.weight+=q(D);else M.set(h,{model:D.model,provider:D.provider,weight:q(D)})}let w=[...M.entries()].sort((D,h)=>h[1].weight-D[1].weight).slice(0,X),z=new Set(w.map(([D])=>D)),T=new Map;for(let[,{model:D}]of w)T.set(D,(T.get(D)??0)+1);let _=new Map;for(let[D,{model:h,provider:p}]of w)_.set(D,(T.get(h)??0)>1?`${h} (${p})`:h);let I=[...new Set(Q.map((D)=>D.timestamp))].sort((D,h)=>D-h),E=w.map(([D])=>_.get(D)??D);if(Q.some((D)=>!z.has(`${D.model}::${D.provider}`)))E.push("Other");let O=new Map;for(let D of I)O.set(D,{});for(let D of Q){let h=`${D.model}::${D.provider}`,p=z.has(h)?_.get(h)??D.model:"Other",s=O.get(D.timestamp);if(!s)continue;let a=s[p]??N();K(a,D),s[p]=a}return{labels:I.map((D)=>K4(new Date(D),"MMM d")),datasets:E.map((D)=>({label:D,data:I.map((h)=>{let p=O.get(h)?.[D];return p?H(p):0})}))}}var k1=o(B0(),1);function v8(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function HX({timestamps:Q,values:J,color:X}){let q={labels:Q.map((K)=>K4(new Date(K),"MMM d")),datasets:[{data:J,...v8(X)}]};return k1.jsxDEV(v5,{data:q,options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1}},scales:{x:{display:!1},y:{display:!1,min:0}}}},void 0,!1,void 0,this)}function MX(Q){return{legend:{display:!0,position:"top",labels:{color:Q.legendLabel,usePointStyle:!0,padding:16,font:{size:12}}},tooltip:{backgroundColor:Q.tooltipBackground,titleColor:Q.tooltipTitle,bodyColor:Q.tooltipBody,borderColor:Q.tooltipBorder,borderWidth:1,cornerRadius:8}}}function M_(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}},min:0}}}function F_(Q){return{x:{grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y:{type:"linear",display:!0,position:"left",grid:{color:Q.grid},ticks:{color:Q.tick,font:{size:11}}},y1:{type:"linear",display:!0,position:"right",grid:{drawOnChartArea:!1},ticks:{color:Q.tick,font:{size:11}}}}}function FX({title:Q,subtitle:J,children:X}){return k1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[k1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[k1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),J?k1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:J},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),k1.jsxDEV("div",{className:"overflow-x-auto",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _D(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function WX({columns:Q,gridTemplate:J}){return k1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:J},children:[Q.map((X)=>k1.jsxDEV("div",{className:_D(X.align),children:X.label},X.label,!1,void 0,this)),k1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wX({children:Q}){return k1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function RX({model:Q,provider:J}){return k1.jsxDEV("div",{children:[k1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),k1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function zX({gridTemplate:Q,cells:J,trendCell:X,isExpanded:q,onToggle:N,expandedContent:K}){return k1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[k1.jsxDEV("button",{type:"button",onClick:N,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:k1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[J,k1.jsxDEV("div",{className:"h-10",children:X},void 0,!1,void 0,this),k1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:q?k1.jsxDEV(jQ,{size:16},void 0,!1,void 0,this):k1.jsxDEV(SQ,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q?k1.jsxDEV("div",{className:"px-5 py-4 bg-[var(--bg-elevated)] border-t border-[var(--border-subtle)]",children:K},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function TX(){return k1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function LX({message:Q="No data available"}){return k1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Q},void 0,!1,void 0,this)}function u0(Q){return Q.toLocaleString()}function Z5(Q){return Q.toLocaleString(void 0,{notation:"compact"})}function A1(Q,J){if(Q===0)return"$0";let X=J!==void 0?J:Q>0&&Q<0.01?4:2;return`$${Q.toLocaleString(void 0,{minimumFractionDigits:X,maximumFractionDigits:X})}`}function X5(Q,J=1){return`${(Q*100).toFixed(J)}%`}function b5(Q,J){if(Q===null)return"-";let X=Q/1000,q=J!==void 0?J:X<1?2:1;return`${X.toFixed(q)}s`}function W_(Q){if(Q===null)return"-";return Q.toFixed(1)}function r6(Q){return q_(new Date(Q),{addSuffix:!0})}function DK(Q){if(Q>=1e9)return`${(Q/1e9).toFixed(1)} GB`;if(Q>=1e6)return`${(Q/1e6).toFixed(1)} MB`;if(Q>=1000)return`${(Q/1000).toFixed(1)} KB`;return`${Q} B`}var C5=o(P1(),1),h2=new Map,PD=64;function q5(Q,J,X){let q=JSON.stringify(Q),[N,K]=C5.useState(()=>h2.get(q)?.data??null),[H,M]=C5.useState(null),[F,w]=C5.useState(()=>!h2.has(q)),[z,T]=C5.useState(!1),[_,I]=C5.useState(()=>h2.get(q)?.updatedAt??null),E=C5.useRef(J);E.current=J;let V=C5.useRef(q);V.current=q;let O=X?.enabled??!0,D=X?.pollMs,h=C5.useRef(null),p=C5.useRef(!1);p.current=N!==null;let s=C5.useCallback(async(J0)=>{if(h.current)h.current.abort();let t=new AbortController;if(h.current=t,J0)T(!0);else w(!0),K(null);M(null);try{let i=await E.current(t.signal);if(t.signal.aborted)return;if(h2.set(V.current,{data:i,updatedAt:Date.now()}),h2.size>PD){let Y0=h2.keys().next().value;if(Y0!==void 0)h2.delete(Y0)}K(i),I(Date.now()),M(null)}catch(i){if(t.signal.aborted)return;M(i instanceof Error?i:Error(String(i)))}finally{if(!t.signal.aborted){if(w(!1),T(!1),h.current===t)h.current=null}}},[]);C5.useEffect(()=>{if(!O){w(!1),T(!1);return}let J0=h2.get(q);if(J0)K(J0.data),I(J0.updatedAt),w(!1),s(!0);else s(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[q,O,s]),C5.useEffect(()=>{if(!O||!D)return;let J0=setInterval(()=>{if(document.hidden)return;s(!0)},D);return()=>{clearInterval(J0)}},[O,D,s]);let a=C5.useCallback(async()=>{await s(!0)},[s]);return{data:N,error:H,loading:F,refreshing:z,refetch:a,updatedAt:_}}var w_=3600000,_X=24*w_,CD=300000,R_={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:CD,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:w_,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:_X,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:_X,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:_X,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:_X,bucketCount:0,tickFormat:"MMM d"}};function n9(Q){return R_[Q]}function $J(Q,J){return K4(new Date(Q),R_[J].tickFormat)}var ID=["main","subagent","advisor"];function z_(Q){let J=new Map;for(let M of Q)J.set(M.agentType,M);let X=(M)=>M.totalInputTokens+M.totalOutputTokens+M.totalCacheReadTokens+M.totalCacheWriteTokens,q=ID.map((M)=>J.get(M)).filter((M)=>M!==void 0),N=q.reduce((M,F)=>M+X(F),0),K=q.reduce((M,F)=>M+F.totalCost,0),H=q.map((M)=>{let F=X(M);return{agentType:M.agentType,tokens:F,requests:M.totalRequests,cost:M.totalCost,share:N>0?F/N:0}});return{totalTokens:N,totalCost:K,segments:H}}function T_(Q){let J=Q.reduce((M,F)=>M+F.cost,0),X=new Set(Q.map((M)=>M.timestamp)).size,q=X>0?J/X:0,N=new Map;for(let M of Q)N.set(M.model,(N.get(M.model)??0)+M.cost);let K="",H=0;for(let[M,F]of N)if(F>H)K=M,H=F;return{totalCost:J,avgDailyCost:q,topModelName:K,topModelCost:H}}function L_(Q,J){if(Q.length===0)return new Map;let X=n9(J),q=X.bucketMs,N=X.bucketCount,K=N>0?(()=>{let F=Q.reduce((T,_)=>Math.max(T,_.timestamp),0),z=(F>0?F:Math.floor(Date.now()/q)*q)-(N-1)*q;return Array.from({length:N},(T,_)=>z+_*q)})():Array.from(new Set(Q.map((F)=>F.timestamp))).sort((F,w)=>F-w),H=new Map(K.map((F,w)=>[F,w])),M=new Map;for(let F of Q){let w=`${F.model}::${F.provider}`,z=M.get(w);if(!z)z={label:`${F.model} (${F.provider})`,data:K.map((_)=>({timestamp:_,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},M.set(w,z);let T=H.get(F.timestamp);if(T===void 0)continue;z.data[T]={timestamp:F.timestamp,avgTtftSeconds:F.avgTtft!==null?F.avgTtft/1000:null,avgTokensPerSecond:F.avgTokensPerSecond,requests:F.requests}}return M}function __(Q,J){let X=Q.totalNegation+Q.totalRepetition+Q.totalBlame,q=new Map;for(let K of J){let H=`${K.model}::${K.provider}`,M=q.get(H),F=K.yelling+K.profanity+K.anguish+K.negation+K.repetition+K.blame;if(M)M.score+=F;else q.set(H,{model:K.model,provider:K.provider,score:F})}let N=null;for(let K of q.values())if(!N||K.score>N.score)N=K;return{totalMessages:Q.totalMessages,totalYelling:Q.totalYelling,totalProfanity:Q.totalProfanity,totalAnguish:Q.totalAnguish,totalFrustration:X,highestFrictionModel:N}}function P_(Q){let J=[...Q].sort((N,K)=>{if(K.totalCost!==N.totalCost)return K.totalCost-N.totalCost;return K.totalRequests-N.totalRequests}),X=J.reduce((N,K)=>Math.max(N,K.totalCost),0),q=J.reduce((N,K)=>Math.max(N,K.totalRequests),0);return J.map((N)=>({...N,costPercentage:X>0?N.totalCost/X*100:0,requestsPercentage:q>0?N.totalRequests/q*100:0}))}function C_(Q){let J=Q.reduce((X,q)=>Math.max(X,q.calls),0);return Q.map((X)=>({...X,errorRate:X.calls>0?X.errors/X.calls:0,callsPercentage:J>0?X.calls/J*100:0}))}var PX=o(B0(),1);function I_({message:Q="No data available",icon:J=gQ,className:X=""}){return PX.jsxDEV("div",{className:`stats-empty-state ${X}`,children:[PX.jsxDEV(J,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),PX.jsxDEV("p",{className:"stats-empty-state-message",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var I$=o(B0(),1);function O_({error:Q,onRetry:J,className:X=""}){return I$.jsxDEV("div",{className:`stats-error-state ${X}`,children:I$.jsxDEV("div",{className:"stats-error-state-content",children:[I$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),Q&&I$.jsxDEV("p",{className:"stats-error-state-message",children:Q.message},void 0,!1,void 0,this),J&&I$.jsxDEV("button",{type:"button",onClick:J,className:"stats-button stats-button-secondary stats-error-state-btn",children:"Retry"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var V_=o(B0(),1);function X6({variant:Q="text",width:J,height:X,className:q=""}){let N={width:J!==void 0?typeof J==="number"?`${J}px`:J:void 0,height:X!==void 0?typeof X==="number"?`${X}px`:X:void 0};return V_.jsxDEV("div",{className:`stats-skeleton ${q}`,"data-variant":Q,style:N},void 0,!1,void 0,this)}var V6=o(B0(),1);function d1({loading:Q,error:J,data:X,empty:q=!1,emptyText:N="No data available",fallback:K,onRetry:H,children:M}){if(J&&X===null)return V6.jsxDEV(O_,{error:J,onRetry:H},void 0,!1,void 0,this);if(Q&&X===null){if(K)return V6.jsxDEV(V6.Fragment,{children:K},void 0,!1,void 0,this);return V6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[V6.jsxDEV(X6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),V6.jsxDEV(X6,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),V6.jsxDEV(X6,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),V6.jsxDEV(X6,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!Q&&(q||X===null))return V6.jsxDEV(I_,{message:N},void 0,!1,void 0,this);return V6.jsxDEV(V6.Fragment,{children:M},void 0,!1,void 0,this)}var q6=o(B0(),1);function B4({columns:Q,data:J,keyExtractor:X,onRowClick:q,renderMobileCard:N,emptyText:K="No data available"}){let H=(M,F)=>{if(q&&(M.key==="Enter"||M.key===" "))M.preventDefault(),q(F)};if(J.length===0)return q6.jsxDEV("div",{className:"stats-table-empty",children:K},void 0,!1,void 0,this);return q6.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&q6.jsxDEV("div",{className:"stats-table-mobile-only",children:q6.jsxDEV("div",{className:"stats-table-mobile-list",children:J.map((M)=>{let F=String(X(M));return q6.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(M,q?()=>q(M):void 0)},F,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),q6.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:q6.jsxDEV("table",{className:"stats-table",children:[q6.jsxDEV("thead",{children:q6.jsxDEV("tr",{children:Q.map((M)=>{let F=["stats-table-th",M.numeric?"stats-text-right":"stats-text-left",M.className||""].filter(Boolean).join(" ");return q6.jsxDEV("th",{className:F,children:M.header},M.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),q6.jsxDEV("tbody",{children:J.map((M)=>{let F=String(X(M)),w=typeof q==="function",z=["stats-table-tr",w?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return q6.jsxDEV("tr",{className:z,onClick:w?()=>q(M):void 0,onKeyDown:w?(T)=>H(T,M):void 0,tabIndex:w?0:void 0,role:w?"button":void 0,children:Q.map((T)=>{let _=["stats-table-td",T.numeric?"stats-text-right":"stats-text-left",T.className||""].filter(Boolean).join(" ");return q6.jsxDEV("td",{className:_,children:T.render?T.render(M):M[T.key]},T.key,!1,void 0,this)})},F,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var o9=o(P1(),1),s6=o(B0(),1);function vK({data:Q,title:J,initialCollapsed:X=!1}){let[q,N]=o9.useState(X),[K,H]=o9.useState(!1),M=o9.useRef(0),F=JSON.stringify(Q,null,2);return o9.useEffect(()=>()=>window.clearTimeout(M.current),[]),s6.jsxDEV("div",{className:"stats-json-block",children:[s6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!q),onKeyDown:(T)=>{if(T.key==="Enter"||T.key===" ")T.preventDefault(),N(!q)},tabIndex:0,role:"button","aria-expanded":!q,children:[s6.jsxDEV("span",{className:"stats-json-block-title",children:J||"JSON"},void 0,!1,void 0,this),s6.jsxDEV("div",{className:"stats-json-actions",children:[s6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(T)=>{T.stopPropagation();try{await navigator.clipboard.writeText(F),H(!0),window.clearTimeout(M.current),M.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":K?"Copied to clipboard":"Copy JSON to clipboard",children:[K?s6.jsxDEV(EQ,{size:13},void 0,!1,void 0,this):s6.jsxDEV(vQ,{size:13},void 0,!1,void 0,this),K?"Copied":"Copy"]},void 0,!0,void 0,this),s6.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":q,children:q?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!q&&s6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:s6.jsxDEV("pre",{className:"stats-json-block-content",children:s6.jsxDEV("code",{children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var G1=o(B0(),1);function A_({stats:Q}){return G1.jsxDEV("div",{className:"stats-metric-cluster",children:[G1.jsxDEV("div",{className:"stats-metric-primary-grid",children:[G1.jsxDEV("div",{className:"stats-metric-card primary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:A1(Q.totalCost,Q.totalCost>0&&Q.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card primary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:u0(Q.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card primary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:X5(Q.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card primary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:X5(Q.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Input Tokens"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:Z5(Q.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:Z5(Q.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:u0(Q.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:W_(Q.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:b5(Q.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G1.jsxDEV("div",{className:"stats-metric-card secondary",children:[G1.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),G1.jsxDEV("div",{className:"stats-metric-value",children:b5(Q.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var u2=o(B0(),1);function R1({title:Q,subtitle:J,actions:X,children:q,className:N="",...K}){return u2.jsxDEV("div",{className:`stats-panel ${N}`,...K,children:[(Q||J||X)&&u2.jsxDEV("div",{className:"stats-panel-header",children:[u2.jsxDEV("div",{className:"stats-panel-header-titles",children:[Q&&u2.jsxDEV("h3",{className:"stats-panel-title",children:Q},void 0,!1,void 0,this),J&&u2.jsxDEV("p",{className:"stats-panel-subtitle",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&u2.jsxDEV("div",{className:"stats-panel-actions",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u2.jsxDEV("div",{className:"stats-panel-body",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var r4=o(P1(),1);var E_=o(B0(),1);function I5({variant:Q,children:J,className:X=""}){return E_.jsxDEV("span",{className:`stats-status-pill ${X}`,"data-variant":Q,children:J},void 0,!1,void 0,this)}var w0=o(B0(),1);function S_({id:Q,onClose:J}){let[X,q]=r4.useState(null),[N,K]=r4.useState(!1),[H,M]=r4.useState(null),F=r4.useRef(null),w=r4.useRef(null);if(r4.useEffect(()=>{if(Q===null){q(null);return}F.current=document.activeElement,K(!0),M(null),q(null);let T=new AbortController;return YL(Q,T.signal).then((_)=>{if(T.signal.aborted)return;q(_),setTimeout(()=>w.current?.focus(),50)}).catch((_)=>{if(T.signal.aborted)return;M(_ instanceof Error?_:Error(String(_)))}).finally(()=>{if(!T.signal.aborted)K(!1)}),()=>T.abort()},[Q]),r4.useEffect(()=>{if(Q===null)return;let T=(_)=>{if(_.key==="Escape")J()};return window.addEventListener("keydown",T),()=>{if(window.removeEventListener("keydown",T),F.current)F.current.focus()}},[Q,J]),Q===null)return null;return w0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(T)=>{if(T.target===T.currentTarget)J()},role:"presentation",children:w0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[w0.jsxDEV("div",{className:"stats-drawer-header",children:[w0.jsxDEV("div",{className:"stats-drawer-header-left",children:[w0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),X&&w0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",Q]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("button",{ref:w,type:"button",onClick:J,className:"stats-drawer-close-btn","aria-label":"Close request details",children:w0.jsxDEV(d9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&w0.jsxDEV("div",{className:"stats-drawer-loading",children:[w0.jsxDEV(X6,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(X6,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(X6,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),w0.jsxDEV(X6,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&w0.jsxDEV("div",{className:"stats-drawer-error",children:[w0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),w0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X&&w0.jsxDEV("div",{className:"stats-drawer-content",children:[w0.jsxDEV("div",{className:"stats-drawer-status-card",children:[w0.jsxDEV("div",{className:"stats-drawer-status-row",children:[w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"stats-drawer-model",children:X.model},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-provider",children:X.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV(I5,{variant:X.errorMessage?"danger":"success",children:X.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.errorMessage&&w0.jsxDEV("div",{className:"stats-drawer-error-block",children:[w0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-error-text",children:X.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(m9,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:A1(X.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(cQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:u0(X.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(yQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:u0(X.usage.totalTokens)},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[u0(X.usage.input)," in · ",u0(X.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(DQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:b5(X.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(nQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:b5(X.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X.duration&&X.usage.output>0&&w0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[w0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[w0.jsxDEV(fQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(X.usage.output*1000/X.duration).toFixed(1)},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[w0.jsxDEV(vK,{data:X.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),w0.jsxDEV(vK,{data:X,title:"Raw Request Metadata",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var bK=o(B0(),1);function ZJ({options:Q,value:J,onChange:X,className:q=""}){return bK.jsxDEV("div",{className:`stats-segmented-control ${q}`,role:"radiogroup",children:Q.map((N)=>{let K=N.value===J;return bK.jsxDEV("button",{type:"button",role:"radio","aria-checked":K,"data-active":K?"true":"false",className:"stats-segmented-control-btn",title:N.title,onClick:()=>X(N.value),children:N.label},String(N.value),!1,void 0,this)})},void 0,!1,void 0,this)}var R0=o(B0(),1);function f_({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=q5(["behavior",J,X],(H)=>UL(J,H),{pollMs:30000,enabled:Q});return R0.jsxDEV("div",{className:"stats-route-container space-y-6",children:R0.jsxDEV(d1,{loading:K,error:N,data:q,children:q&&R0.jsxDEV(R0.Fragment,{children:[R0.jsxDEV(OD,{overall:q.overall,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),R0.jsxDEV(VD,{behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this),R0.jsxDEV(AD,{models:q.byModel,behaviorSeries:q.behaviorSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function CX(Q,J){if(J<=0)return;return`${(Q/J).toFixed(2)} / msg`}function OD({overall:Q,behaviorSeries:J}){let X=Y5.useMemo(()=>__(Q,J),[Q,J]),q=Q.totalMessages,N=[{label:"User Messages",value:u0(Q.totalMessages),sub:q>0?"in range":void 0},{label:"Yelling (CAPS)",value:u0(Q.totalYelling),sub:CX(Q.totalYelling,q)},{label:"Profanity Hits",value:u0(Q.totalProfanity),sub:CX(Q.totalProfanity,q)},{label:"Anguish Signals",value:u0(Q.totalAnguish),sub:CX(Q.totalAnguish,q)},{label:"Friction Signals",value:u0(X.totalFrustration),sub:CX(X.totalFrustration,q)},{label:"Highest Friction Model",value:X.highestFrictionModel?.model??"—",sub:X.highestFrictionModel?`${u0(X.highestFrictionModel.score)} hits`:void 0}];return R0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:N.map((K)=>R0.jsxDEV(R1,{className:"stats-behavior-summary-card py-3 px-4",children:[R0.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:K.label},void 0,!1,void 0,this),R0.jsxDEV("p",{className:"text-lg font-bold stats-text-primary truncate",title:K.value,children:K.value},void 0,!1,void 0,this),K.sub&&R0.jsxDEV("p",{className:"text-xs stats-text-muted mt-0.5",children:K.sub},void 0,!1,void 0,this)]},K.label,!0,void 0,this))},void 0,!1,void 0,this)}var kK=[{value:"yelling",label:"CAPS",title:"Yelling (CAPS)"},{value:"profanity",label:"Profanity",title:"Profanity"},{value:"anguish",label:"Anguish",title:"Anguish (!!!, nooo, dude, ..)"},{value:"negation",label:"Negation",title:"Negation (no/nope/wrong)"},{value:"repetition",label:"Repetition",title:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame",title:"Blame (you didnt, stop X-ing)"},{value:"frustration",label:"Frustration",title:"Frustration (neg + rep + blame)"},{value:"total",label:"All",title:"All signals combined"}];function j_(Q){if(!Number.isFinite(Q))return"-";if(Q===0)return"0%";if(Math.abs(Q)<1)return`${Q.toFixed(1)}%`;return`${Q.toFixed(0)}%`}function D_(Q,J){if(J==="frustration")return Q.negation+Q.repetition+Q.blame;if(J==="total")return Q.yelling+Q.profanity+Q.anguish+Q.negation+Q.repetition+Q.blame;return Q[J]}function v_(Q,J){if(J<=0)return 0;return Q/J*100}function VD({behaviorSeries:Q}){let[J,X]=Y5.useState(!1),[q,N]=Y5.useState("total"),K=G6(),H=P5[K],M=Y5.useMemo(()=>{if(J)return BX(Q,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=D_(p,q),h.messages+=p.messages},bucketToValue:(h)=>v_(h.hits,h.messages)});let D=kK.find((h)=>h.value===q)?.title??"Hits";return KX(Q,D,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=D_(p,q),h.messages+=p.messages},bucketToValue:(h)=>v_(h.hits,h.messages)})},[Q,J,q]),F=Y5.useMemo(()=>{return L$({chartTheme:H,showLegend:J,defaultLabel:"Hits",formatValue:j_})},[H,J]),{sharedScaleBase:w,yScale:z}=Y5.useMemo(()=>{return _$({chartTheme:H,formatY:j_})},[H]),T=Y5.useMemo(()=>{return kK.find((D)=>D.value===q)?.title??""},[q]),_=Y5.useMemo(()=>{if(!J)return null;return{labels:M.labels,datasets:C$(M,(D)=>P$(D1[D%D1.length]))}},[M,J]),I=Y5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:w,y:z}}},[F,w,z]),E=Y5.useMemo(()=>{if(J)return null;return{labels:M.labels,datasets:C$(M,(D)=>UX(D1[D%D1.length]))}},[M,J]),V=Y5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:{...w,stacked:!0},y:{...z,stacked:!0}},layout:{padding:{top:8}}}},[F,w,z]),O=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return R0.jsxDEV(R1,{title:"User Friction Signals",subtitle:`${T} as % of user messages per day`,actions:R0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[R0.jsxDEV(ZJ,{options:kK.map((D)=>({value:D.value,label:D.label,title:D.title})),value:q,onChange:N},void 0,!1,void 0,this),R0.jsxDEV(ZJ,{options:O,value:J,onChange:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:R0.jsxDEV("div",{className:"h-[300px]",children:M.labels.length===0?R0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No friction signal data available"},void 0,!1,void 0,this):J&&_?R0.jsxDEV(v5,{data:_,options:I},void 0,!1,void 0,this):E?R0.jsxDEV(NX,{data:E,options:V},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var b_="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function k_(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function O$(Q,J){if(J===0)return"-";let X=Q/J*100;if(X===0)return"0%";if(X<1)return`${X.toFixed(1)}%`;return`${X.toFixed(0)}%`}function AD({models:Q,behaviorSeries:J}){let[X,q]=Y5.useState(null),N=G6(),K=P5[N],H=Y5.useMemo(()=>SD(J),[J]),M=Y5.useMemo(()=>{return[...Q].sort((F,w)=>{if(w.totalMessages!==F.totalMessages)return w.totalMessages-F.totalMessages;return k_(w)-k_(F)})},[Q]);return R0.jsxDEV(FX,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[R0.jsxDEV(WX,{gridTemplate:b_,columns:[{label:"Model"},{label:"Messages",align:"right"},{label:"CAPS %",align:"right"},{label:"Profanity %",align:"right"},{label:"Anguish %",align:"right"},{label:"Frustration %",align:"right"},{label:"Hits %",align:"right"},{label:"Trend",align:"center"}]},void 0,!1,void 0,this),R0.jsxDEV(wX,{children:[M.map((F,w)=>{let z=`${F.model}::${F.provider}`,T=H.get(z)?.data??[],_=D1[w%D1.length],I=X===z,E=F.totalNegation+F.totalRepetition+F.totalBlame,V=F.totalYelling+F.totalProfanity+F.totalAnguish+E;return R0.jsxDEV(zX,{gridTemplate:b_,isExpanded:I,onToggle:()=>q(I?null:z),cells:[R0.jsxDEV(RX,{model:F.model,provider:F.provider},"name",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:u0(F.totalMessages)},"messages",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:O$(F.totalYelling,F.totalMessages)},"caps",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:O$(F.totalProfanity,F.totalMessages)},"profanity",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:O$(F.totalAnguish,F.totalMessages)},"anguish",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:O$(E,F.totalMessages)},"frustration",!1,void 0,this),R0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:O$(V,F.totalMessages)},"hits",!1,void 0,this)],trendCell:T.length===0?R0.jsxDEV(TX,{},void 0,!1,void 0,this):R0.jsxDEV(HX,{timestamps:T.map((O)=>O.timestamp),values:T.map((O)=>O.total),color:_},void 0,!1,void 0,this),expandedContent:R0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[R0.jsxDEV("div",{className:"space-y-4 text-sm",children:[R0.jsxDEV(a9,{label:"Yelling (CAPS)",total:F.totalYelling,messages:F.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Profanity",total:F.totalProfanity,messages:F.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Anguish (!!!, nooo, dude, ..)",total:F.totalAnguish,messages:F.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Negation (no/nope/wrong)",total:F.totalNegation,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Repetition (i meant, still doesnt)",total:F.totalRepetition,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Blame (you didnt, stop X-ing)",total:F.totalBlame,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),R0.jsxDEV(a9,{label:"Avg chars / msg",total:F.totalChars,messages:F.totalMessages,valueClass:"stats-text-secondary",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:"h-[200px]",children:T.length===0?R0.jsxDEV(LX,{},void 0,!1,void 0,this):R0.jsxDEV(ED,{data:T,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},z,!1,void 0,this)}),M.length===0?R0.jsxDEV("div",{className:"border-t border-[var(--border-subtle)] px-5 py-8 text-center text-[var(--text-muted)] text-sm",children:"No user behavior recorded for this range yet."},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function a9({label:Q,total:J,messages:X,valueClass:q,mode:N="rate"}){let K=N==="rate"?"% of msgs":"Per msg",H=Y5.useMemo(()=>{if(X===0)return"-";return N==="rate"?O$(J,X):(J/X).toFixed(0)},[J,X,N]);return R0.jsxDEV("div",{children:[R0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:Q},void 0,!1,void 0,this),R0.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[R0.jsxDEV("div",{className:"flex items-center justify-between",children:[R0.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),R0.jsxDEV("span",{className:`font-mono text-xs ${q}`,children:u0(J)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R0.jsxDEV("div",{className:"flex items-center justify-between",children:[R0.jsxDEV("span",{className:"stats-text-muted text-xs",children:K},void 0,!1,void 0,this),R0.jsxDEV("span",{className:"font-mono text-xs stats-text-primary",children:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var IX={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function ED({data:Q,chartTheme:J}){let X=Y5.useMemo(()=>{return{labels:Q.map((N)=>K4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((N)=>N.yelling),...v8(IX.yelling)},{label:"Profanity",data:Q.map((N)=>N.profanity),...v8(IX.profanity)},{label:"Anguish",data:Q.map((N)=>N.anguish),...v8(IX.anguish)},{label:"Frustration",data:Q.map((N)=>N.frustration),...v8(IX.frustration)}]}},[Q]),q=Y5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:MX(J),scales:M_(J)}},[J]);return R0.jsxDEV(v5,{data:X,options:q},void 0,!1,void 0,this)}function SD(Q){if(Q.length===0)return new Map;let J=[...new Set(Q.map((N)=>N.timestamp))].sort((N,K)=>N-K),X=new Map;for(let N of Q){let K=`${N.model}::${N.provider}`,H=X.get(K);if(!H)H=new Map,X.set(K,H);let M=H.get(N.timestamp)??{timestamp:N.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};M.yelling+=N.yelling,M.profanity+=N.profanity,M.anguish+=N.anguish,M.frustration+=N.negation+N.repetition+N.blame,M.total=M.yelling+M.profanity+M.anguish+M.frustration,H.set(N.timestamp,M)}let q=new Map;for(let[N,K]of X){let H=J.map((M)=>K.get(M)??{timestamp:M,yelling:0,profanity:0,anguish:0,frustration:0,total:0});q.set(N,{data:H})}return q}var n6=o(P1(),1);var N5=o(B0(),1);function y_({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=q5(["costs",J,X],(H)=>XL(J,H),{pollMs:30000,enabled:Q});return N5.jsxDEV("div",{className:"stats-route-container space-y-6",children:N5.jsxDEV(d1,{loading:K,error:N,data:q,children:q&&N5.jsxDEV(N5.Fragment,{children:[N5.jsxDEV(jD,{costSeries:q.costSeries},void 0,!1,void 0,this),N5.jsxDEV(bD,{costSeries:q.costSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function jD({costSeries:Q}){let J=n6.useMemo(()=>T_(Q),[Q]),X=[{label:"Total Cost",value:A1(J.totalCost)},{label:"Average / Day",value:A1(J.avgDailyCost)},{label:"Top Model",value:J.topModelName||"—",sub:J.topModelName?A1(J.topModelCost):void 0}];return N5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:X.map((q)=>N5.jsxDEV(R1,{className:"stats-cost-overview-card py-4 px-5",children:[N5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:q.label},void 0,!1,void 0,this),N5.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:q.value,children:q.value},void 0,!1,void 0,this),q.sub&&N5.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:["Total spent: ",q.sub]},void 0,!0,void 0,this)]},q.label,!0,void 0,this))},void 0,!1,void 0,this)}var DD={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function vD(Q){return{id:"costBarLabels",afterDatasetsDraw(J){let{ctx:X}=J;if(!J.data.datasets[0])return;let N=J.getDatasetMeta(0);X.save(),X.font="11px system-ui, sans-serif",X.fillStyle=Q,X.textAlign="center",X.textBaseline="bottom";for(let K of N.data){let H=K.$context.parsed.y;if(!H)continue;let M=`$${Math.round(H)}`,{x:F,y:w}=K.getProps(["x","y"],!0);X.fillText(M,F,w-3)}X.restore()}}}function bD({costSeries:Q}){let[J,X]=n6.useState(!1),q=G6(),N=P5[q],K=n6.useMemo(()=>{if(J)return BX(Q,{rankWeight:(V)=>V.cost,initBucket:()=>({total:0}),accumulate:(V,O)=>{V.total+=O.cost},bucketToValue:(V)=>V.total});return KX(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(V,O)=>{V.total+=O.cost},bucketToValue:(V)=>V.total})},[Q,J]),H=n6.useMemo(()=>{return L$({chartTheme:N,showLegend:J,defaultLabel:"Cost",formatValue:(V)=>`$${V.toFixed(2)}`,footer:(V)=>{if(!J||V.length<2)return;return`Total: $${V.reduce((D,h)=>D+(h.parsed.y??0),0).toFixed(2)}`}})},[N,J]),{sharedScaleBase:M,yScale:F}=n6.useMemo(()=>{return _$({chartTheme:N,formatY:(V)=>`$${Math.round(V)}`})},[N]),w=n6.useMemo(()=>{return vD(DD[q])},[q]),z=n6.useMemo(()=>{if(!J)return null;return{labels:K.labels,datasets:C$(K,(V)=>P$(D1[V%D1.length]))}},[K,J]),T=n6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:M,y:F}}},[H,M,F]),_=n6.useMemo(()=>{if(J)return null;return{labels:K.labels,datasets:C$(K,(V)=>UX(D1[V%D1.length]))}},[K,J]),I=n6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{...H,costBarLabels:{}},scales:{x:{...M,stacked:!0},y:{...F,stacked:!0}},layout:{padding:{top:24}}}},[H,M,F]);return N5.jsxDEV(R1,{title:"Daily Cost",subtitle:"API spending over time",actions:N5.jsxDEV(ZJ,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:J,onChange:X},void 0,!1,void 0,this),children:N5.jsxDEV("div",{className:"h-[300px]",children:K.labels.length===0?N5.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No cost data available"},void 0,!1,void 0,this):J&&z?N5.jsxDEV(v5,{data:z,options:T},void 0,!1,void 0,this):_?N5.jsxDEV(NX,{data:_,options:I,plugins:[w]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var g_=o(P1(),1);var E1=o(B0(),1);function h_({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=q5(["recent-errors-dense",J],(F)=>qL(50,F),{pollMs:30000,enabled:Q}),H=g_.useMemo(()=>[{key:"model",header:"Model",render:(F)=>E1.jsxDEV("div",{children:[E1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>r6(F.timestamp)},{key:"errorMessage",header:"Error Message",render:(F)=>E1.jsxDEV("div",{className:"stats-text-xs stats-text-danger stats-truncate stats-max-w-md stats-font-mono",title:F.errorMessage||"",children:F.errorMessage||"Unknown error"},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>u0(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>A1(F.usage.cost.total,4)}],[]);return E1.jsxDEV("div",{className:"stats-route-container",children:E1.jsxDEV(R1,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:E1.jsxDEV(d1,{loading:K,error:N,data:q,emptyText:"No recent failures in the local stats database",children:E1.jsxDEV(B4,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>E1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:w,children:[E1.jsxDEV("div",{className:"stats-mobile-card-header",children:[E1.jsxDEV("div",{children:[E1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E1.jsxDEV(I5,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[E1.jsxDEV("div",{children:[E1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"stats-mobile-card-value",children:r6(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E1.jsxDEV("div",{children:[E1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"stats-mobile-card-value",children:A1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E1.jsxDEV("div",{children:[E1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),E1.jsxDEV("div",{className:"stats-mobile-card-value",children:u0(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&E1.jsxDEV("div",{className:"stats-mobile-card-error mt-2 stats-font-mono",children:F.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent failures in the local stats database"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var OX=o(P1(),1);var I0=o(B0(),1);function u_({active:Q,range:J,refreshTrigger:X}){let[q,N]=OX.useState(null),{data:K,error:H,loading:M}=q5(["gain",J,X,q],(F)=>BL(J,q,F),{pollMs:30000,enabled:Q});return I0.jsxDEV("div",{className:"stats-route-container space-y-6",children:I0.jsxDEV(d1,{loading:M,error:H,data:K,children:K&&I0.jsxDEV(I0.Fragment,{children:[I0.jsxDEV(kD,{projects:K.projects,selected:q,onChange:N},void 0,!1,void 0,this),I0.jsxDEV(fD,{overall:K.overall},void 0,!1,void 0,this),I0.jsxDEV(gD,{bySource:K.bySource},void 0,!1,void 0,this),I0.jsxDEV(uD,{timeSeries:K.timeSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function kD({projects:Q,selected:J,onChange:X}){if(Q.length===0)return null;return I0.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[I0.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Project"},void 0,!1,void 0,this),I0.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(q)=>X(q.target.value||null),style:{maxWidth:"480px",flex:1},children:[I0.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),Q.map((q)=>I0.jsxDEV("option",{value:q,children:q},q,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function fD({overall:Q}){return I0.jsxDEV(R1,{title:"Overall Gain",subtitle:"Aggregate snapcompact savings",children:I0.jsxDEV("div",{className:"stats-metric-primary-grid",children:[I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:Z5(Q.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:DK(Q.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:Q.reductionPercent!==null?X5(Q.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{className:"stats-metric-card primary",children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Total Hits"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",children:u0(Q.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function yD({title:Q,totals:J}){return I0.jsxDEV("div",{className:"stats-metric-card secondary",style:{flex:1},children:[I0.jsxDEV("div",{className:"stats-metric-label",style:{fontWeight:600,marginBottom:8},children:Q},void 0,!1,void 0,this),I0.jsxDEV("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:[I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Tokens"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:Z5(J.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Saved Bytes"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:DK(J.savedBytes)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Hits"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:u0(J.hits)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I0.jsxDEV("div",{children:[I0.jsxDEV("div",{className:"stats-metric-label",children:"Reduction"},void 0,!1,void 0,this),I0.jsxDEV("div",{className:"stats-metric-value",style:{fontSize:"1rem"},children:J.reductionPercent!==null?X5(J.reductionPercent):"—"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function gD({bySource:Q}){return I0.jsxDEV(R1,{title:"By Source",subtitle:"Savings breakdown per subsystem",children:I0.jsxDEV("div",{style:{display:"flex",gap:16,flexWrap:"wrap"},children:I0.jsxDEV(yD,{title:"Snapcompact",totals:Q.snapcompact},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var hD={snapcompact:"rgb(34, 197, 94)"};function uD({timeSeries:Q}){let J=G6(),X=P5[J],{data:q,options:N}=OX.useMemo(()=>{let K=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),M={labels:Q.map((T)=>K.format(new Date(`${T.date}T00:00:00.000Z`))),datasets:[{label:"Snapcompact",data:Q.map((T)=>T.snapcompact),...P$(hD.snapcompact)}]},{sharedScaleBase:F,yScale:w}=_$({chartTheme:X,formatY:(T)=>Z5(T)}),z={responsive:!0,maintainAspectRatio:!1,plugins:L$({chartTheme:X,showLegend:!0,defaultLabel:"Tokens Saved",formatValue:Z5}),scales:{x:{...F,stacked:!0},y:{...w,stacked:!0}}};return{data:M,options:z}},[Q,X]);return I0.jsxDEV(R1,{title:"Savings Over Time",subtitle:"Daily token savings",children:I0.jsxDEV("div",{style:{height:240},children:Q.length===0?I0.jsxDEV("div",{className:"stats-table-empty",children:"No time series data yet"},void 0,!1,void 0,this):I0.jsxDEV(v5,{data:q,options:N},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var s4=o(P1(),1);var S0=o(B0(),1);function m_({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=q5(["models",J,X],(H)=>GL(J,H),{pollMs:30000,enabled:Q});return S0.jsxDEV("div",{className:"stats-route-container space-y-6",children:S0.jsxDEV(d1,{loading:K,error:N,data:q,children:q&&S0.jsxDEV(S0.Fragment,{children:[S0.jsxDEV(xD,{modelSeries:q.modelSeries,timeRange:J},void 0,!1,void 0,this),S0.jsxDEV(dD,{models:q.byModel,performanceSeries:q.modelPerformanceSeries,timeRange:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function xD({modelSeries:Q,timeRange:J}){let X=G6(),q=P5[X],N=n9(J),K=s4.useMemo(()=>mD(Q),[Q]),H=s4.useMemo(()=>{return{labels:K.data.map((F)=>$J(F.timestamp,J)),datasets:K.series.map((F,w)=>({label:F,data:K.data.map((z)=>z[F]??0),borderColor:D1[w%D1.length],backgroundColor:`${D1[w%D1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[K,J]),M=s4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:q.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:q.tooltipBackground,titleColor:q.tooltipTitle,bodyColor:q.tooltipBody,borderColor:q.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(F)=>{let w=F.dataset.label??"",z=F.parsed.y;return`${w}: ${(z??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11}}},y:{grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11},callback:(F)=>`${F}%`},min:0,max:100}}}},[q]);return S0.jsxDEV(R1,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:S0.jsxDEV("div",{className:"h-[280px]",children:K.data.length===0?S0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):S0.jsxDEV(v5,{data:H,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function mD(Q,J=5){if(Q.length===0)return{data:[],series:[]};let X=new Map;for(let T of Q){let _=`${T.model}::${T.provider}`,I=X.get(_);if(I)I.total+=T.requests;else X.set(_,{model:T.model,provider:T.provider,total:T.requests})}let N=[...X.entries()].map(([T,_])=>({key:T,..._})).sort((T,_)=>_.total-T.total).slice(0,J),K=new Set(N.map((T)=>T.key)),H=new Map;for(let T of N)H.set(T.model,(H.get(T.model)??0)+1);let M=new Map;for(let T of N){let _=(H.get(T.model)??0)>1;M.set(T.key,_?`${T.model} (${T.provider})`:T.model)}let F=new Map;for(let T of Q){let _=`${T.model}::${T.provider}`,I=F.get(T.timestamp)??{timestamp:T.timestamp,total:0};I.total+=T.requests;let E=K.has(_)?M.get(_)??T.model:"Other";I[E]=(I[E]??0)+T.requests,F.set(T.timestamp,I)}let w=N.map((T)=>M.get(T.key)??T.model);if([...F.values()].some((T)=>(T.Other??0)>0))w.push("Other");return{data:[...F.values()].sort((T,_)=>(T.timestamp??0)-(_.timestamp??0)).map((T)=>{let _=T.total??0;for(let I of w)T[I]=_>0?(T[I]??0)/_*100:0;return T}),series:w}}var x_="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function dD({models:Q,performanceSeries:J,timeRange:X}){let[q,N]=s4.useState(null),K=n9(X),H=s4.useMemo(()=>L_(J,X),[J,X]),M=G6(),F=P5[M],w=s4.useMemo(()=>{return[...Q].sort((z,T)=>T.totalInputTokens+T.totalOutputTokens-(z.totalInputTokens+z.totalOutputTokens))},[Q]);return S0.jsxDEV(FX,{title:"Model Statistics",children:[S0.jsxDEV(WX,{gridTemplate:x_,columns:[{label:"Model"},{label:"Requests",align:"right"},{label:"Cost",align:"right"},{label:"Tokens",align:"right"},{label:"Tokens/s",align:"right"},{label:"TTFT",align:"right"},{label:K.trendLabel,align:"center"}]},void 0,!1,void 0,this),S0.jsxDEV(wX,{children:w.map((z,T)=>{let _=`${z.model}::${z.provider}`,E=H.get(_)?.data??[],V=D1[T%D1.length],O=q===_,D=z.errorRate*100;return S0.jsxDEV(zX,{gridTemplate:x_,isExpanded:O,onToggle:()=>N(O?null:_),cells:[S0.jsxDEV(RX,{model:z.model,provider:z.provider},"name",!1,void 0,this),S0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.totalRequests.toLocaleString()},"requests",!1,void 0,this),S0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",z.totalCost.toFixed(2)]},"cost",!0,void 0,this),S0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(z.totalInputTokens+z.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),S0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),S0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:z.avgTtft?`${(z.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:E.length===0?S0.jsxDEV(TX,{},void 0,!1,void 0,this):S0.jsxDEV(HX,{timestamps:E.map((h)=>h.timestamp),values:E.map((h)=>h.avgTokensPerSecond??0),color:V},void 0,!1,void 0,this),expandedContent:S0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[S0.jsxDEV("div",{className:"space-y-4 text-sm",children:[S0.jsxDEV("div",{children:[S0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),S0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[S0.jsxDEV("div",{className:"flex items-center justify-between",children:[S0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),S0.jsxDEV("span",{className:D>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[D.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{className:"flex items-center justify-between",children:[S0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),S0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(z.cacheRate*100).toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{children:[S0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),S0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[S0.jsxDEV("div",{className:"flex items-center justify-between",children:[S0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),S0.jsxDEV("span",{className:"font-mono",children:z.avgDuration?`${(z.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{className:"flex items-center justify-between",children:[S0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),S0.jsxDEV("span",{className:"font-mono",children:z.avgTtft?`${(z.avgTtft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S0.jsxDEV("div",{className:"h-[200px]",children:E.length===0?S0.jsxDEV(LX,{},void 0,!1,void 0,this):S0.jsxDEV(pD,{data:E,color:V,chartTheme:F,timeRange:X},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},_,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function pD({data:Q,color:J,chartTheme:X,timeRange:q}){let N=s4.useMemo(()=>{return{labels:Q.map((H)=>$J(H.timestamp,q)),datasets:[{label:"TTFT",data:Q.map((H)=>H.avgTtftSeconds??null),...v8("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((H)=>H.avgTokensPerSecond??null),...v8(J),yAxisID:"y1"}]}},[Q,J,q]),K=s4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:MX(X),scales:F_(X)}},[X]);return S0.jsxDEV(v5,{data:N,options:K},void 0,!1,void 0,this)}var QJ=o(P1(),1);var d_=o(P1(),1);var Y6=o(B0(),1),VX={main:{label:"Main agent",color:"#ed4abf"},subagent:{label:"Subagents",color:"#9b4dff"},advisor:{label:"Advisor",color:"#5ad8e6"}};function p_({stats:Q}){let J=d_.useMemo(()=>z_(Q),[Q]);if(J.totalTokens===0)return Y6.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No token usage in this range"},void 0,!1,void 0,this);return Y6.jsxDEV("div",{className:"space-y-4",children:[Y6.jsxDEV("div",{className:"flex h-3 w-full overflow-hidden rounded-full",style:{background:"var(--surface-2)"},children:J.segments.map((X)=>X.share>0&&Y6.jsxDEV("div",{className:"h-full",style:{width:`${X.share*100}%`,background:VX[X.agentType].color},title:`${VX[X.agentType].label}: ${X5(X.share)}`},X.agentType,!1,void 0,this))},void 0,!1,void 0,this),Y6.jsxDEV("div",{className:"space-y-2",children:J.segments.map((X)=>Y6.jsxDEV("div",{className:"flex items-center justify-between gap-3 text-sm",children:[Y6.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[Y6.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:VX[X.agentType].color}},void 0,!1,void 0,this),Y6.jsxDEV("span",{className:"stats-text-primary truncate",children:VX[X.agentType].label},void 0,!1,void 0,this),Y6.jsxDEV("span",{className:"stats-text-muted stats-text-xs whitespace-nowrap",children:[u0(X.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y6.jsxDEV("div",{className:"flex items-center gap-3 whitespace-nowrap",children:[Y6.jsxDEV("span",{className:"stats-text-secondary",children:[Z5(X.tokens)," tok"]},void 0,!0,void 0,this),Y6.jsxDEV("span",{className:"stats-font-semibold stats-text-primary tabular-nums",children:X5(X.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},X.agentType,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var U0=o(B0(),1);function c_({active:Q,range:J,refreshTrigger:X,onRequestClick:q}){let{data:N,error:K,loading:H}=q5(["overview",J,X],(D)=>JL(J,D),{pollMs:30000,enabled:Q}),{data:M,error:F,loading:w}=q5(["recent-requests",X],(D)=>QX(50,D),{pollMs:30000,enabled:Q}),z=G6(),T=P5[z],_=QJ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let D=N.timeSeries.map((p)=>K4(new Date(p.timestamp),J==="1h"||J==="24h"?"HH:mm":"MMM d")),h=N.timeSeries.length<=2?3:0;return{labels:D,datasets:[{label:"Requests",data:N.timeSeries.map((p)=>p.requests),borderColor:"#5ad8e6",backgroundColor:"rgba(90, 216, 230, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0},{label:"Errors",data:N.timeSeries.map((p)=>p.errors),borderColor:"#ff6b7d",backgroundColor:"rgba(255, 107, 125, 0.12)",tension:0.2,borderWidth:2,pointRadius:h,pointHoverRadius:4,fill:!0}]}},[N?.timeSeries,J]),I=QJ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:T.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:T.tooltipBackground,titleColor:T.tooltipTitle,bodyColor:T.tooltipBody,borderColor:T.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}}},y:{grid:{color:T.grid,drawBorder:!1},ticks:{color:T.tick,font:{size:10}},min:0}}}},[T]),E=QJ.useMemo(()=>[{key:"model",header:"Model",render:(D)=>U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:D.model},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(D)=>r6(D.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(D)=>u0(D.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(D)=>A1(D.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(D)=>b5(D.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(D)=>U0.jsxDEV(I5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),V=(D,h)=>U0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[U0.jsxDEV("div",{className:"stats-mobile-card-header",children:[U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:D.model},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:D.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV(I5,{variant:D.errorMessage?"danger":"success",children:D.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:r6(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:A1(D.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:u0(D.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{children:[U0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-mobile-card-value",children:b5(D.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.errorMessage&&U0.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O=QJ.useMemo(()=>{if(!M)return[];return M.slice(0,10)},[M]);return U0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[U0.jsxDEV(d1,{loading:H,error:K,data:N,children:N&&U0.jsxDEV(A_,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),U0.jsxDEV(R1,{title:"Token Usage by Agent",subtitle:"Share of tokens across the main agent, task subagents, and the advisor",children:U0.jsxDEV(d1,{loading:H,error:K,data:N,children:N&&U0.jsxDEV(p_,{stats:N.byAgentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[U0.jsxDEV("div",{className:"lg:col-span-2",children:U0.jsxDEV(R1,{title:"System Throughput",subtitle:"Request volume and errors over time",children:U0.jsxDEV(d1,{loading:H,error:K,data:N,children:U0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?U0.jsxDEV(v5,{data:_,options:I},void 0,!1,void 0,this):U0.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No time-series data available"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),U0.jsxDEV("div",{children:U0.jsxDEV(R1,{title:"Operational Feed",subtitle:"Real-time request log",children:U0.jsxDEV(d1,{loading:w,error:F,data:M,fallback:U0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((D,h)=>U0.jsxDEV("div",{className:"flex items-center gap-3",children:[U0.jsxDEV(X6,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"flex-1",children:[U0.jsxDEV(X6,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),U0.jsxDEV(X6,{variant:"text",width:"40%",height:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},h,!0,void 0,this))},void 0,!1,void 0,this),children:U0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[O.map((D)=>{let h=!!D.errorMessage;return U0.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>D.id&&q(D.id),children:[U0.jsxDEV("div",{className:`w-2 h-2 mt-1.5 rounded-full flex-shrink-0 ${h?"bg-stats-danger":"bg-stats-success"}`},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"flex-1 min-w-0",children:[U0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[U0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:D.model},void 0,!1,void 0,this),U0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:r6(D.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[U0.jsxDEV("div",{children:D.provider},void 0,!1,void 0,this),U0.jsxDEV("div",{children:[D.duration?b5(D.duration):""," ",D.usage?.cost?.total?`· ${A1(D.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&U0.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.id||`${D.sessionFile}-${D.entryId}`,!0,void 0,this)}),O.length===0&&U0.jsxDEV("div",{className:"py-8 text-center stats-text-muted text-sm",children:"No recent requests found"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U0.jsxDEV(R1,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:U0.jsxDEV("a",{href:`#/requests?range=${J}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:U0.jsxDEV(d1,{loading:w,error:F,data:M,children:U0.jsxDEV(B4,{columns:E,data:O,keyExtractor:(D)=>D.id||`${D.sessionFile}-${D.entryId}`,onRowClick:(D)=>D.id&&q(D.id),renderMobileCard:V,emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var fK=o(P1(),1);var X1=o(B0(),1);function l_({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=q5(["projects",J,X],(w)=>KL(J,w),{pollMs:30000,enabled:Q}),H=fK.useMemo(()=>{if(!q)return[];return P_(q)},[q]),M=fK.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(w)=>X1.jsxDEV("div",{className:"stats-font-medium stats-text-primary truncate max-w-[440px]",title:w.folder||"(root)",children:w.folder||"(root)"},void 0,!1,void 0,this)},{key:"totalRequests",header:"Requests",numeric:!0,render:(w)=>X1.jsxDEV("div",{className:"stats-text-right",children:[X1.jsxDEV("div",{className:"font-mono",children:u0(w.totalRequests)},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:X1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${w.requestsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalCost",header:"Cost",numeric:!0,render:(w)=>X1.jsxDEV("div",{className:"stats-text-right",children:[X1.jsxDEV("div",{className:"font-mono",children:A1(w.totalCost)},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:X1.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"success",style:{width:`${w.costPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"totalTokens",header:"Tokens",numeric:!0,render:(w)=>X1.jsxDEV("div",{className:"font-mono",children:u0(w.totalInputTokens+w.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(w)=>X1.jsxDEV("span",{className:"stats-text-success font-medium",children:X5(w.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(w)=>X1.jsxDEV(I5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:X5(w.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(w)=>b5(w.avgDuration)}],[]);return X1.jsxDEV("div",{className:"stats-route-container",children:X1.jsxDEV(R1,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:X1.jsxDEV(d1,{loading:K,error:N,data:q,emptyText:"No project folders recorded for this range.",children:X1.jsxDEV(B4,{columns:M,data:H,keyExtractor:(w)=>w.folder,renderMobileCard:(w)=>X1.jsxDEV("div",{className:"stats-mobile-card",children:[X1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[X1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:w.folder||"(root)"},void 0,!1,void 0,this),X1.jsxDEV(I5,{variant:w.errorRate>0.1?"danger":w.errorRate>0?"warning":"success",children:[X5(w.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[X1.jsxDEV("div",{children:[X1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:u0(w.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X1.jsxDEV("div",{children:[X1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:A1(w.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X1.jsxDEV("div",{children:[X1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-mobile-card-value",children:X5(w.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X1.jsxDEV("div",{children:[X1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),X1.jsxDEV("div",{className:"stats-mobile-card-value",children:b5(w.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No project folders recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var r_=o(P1(),1);var M1=o(B0(),1);function s_({active:Q,refreshTrigger:J,onRequestClick:X}){let{data:q,error:N,loading:K}=q5(["recent-requests-dense",J],(F)=>QX(50,F),{pollMs:30000,enabled:Q}),H=r_.useMemo(()=>[{key:"model",header:"Model",render:(F)=>M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(F)=>r6(F.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>u0(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>A1(F.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(F)=>b5(F.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(F)=>M1.jsxDEV(I5,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return M1.jsxDEV("div",{className:"stats-route-container",children:M1.jsxDEV(R1,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:M1.jsxDEV(d1,{loading:K,error:N,data:q,children:M1.jsxDEV(B4,{columns:H,data:q||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&X(F.id),renderMobileCard:(F,w)=>M1.jsxDEV("div",{className:"stats-mobile-card",onClick:w,children:[M1.jsxDEV("div",{className:"stats-mobile-card-header",children:[M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV(I5,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:r6(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:A1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:u0(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M1.jsxDEV("div",{children:[M1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),M1.jsxDEV("div",{className:"stats-mobile-card-value",children:b5(F.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&M1.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:F.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),emptyText:"No recent requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var o6=o(P1(),1);var e=o(B0(),1);function n_({active:Q,range:J,refreshTrigger:X}){let{data:q,error:N,loading:K}=q5(["tools",J,X],(H)=>HL(J,H),{pollMs:30000,enabled:Q});return e.jsxDEV("div",{className:"stats-route-container space-y-6",children:e.jsxDEV(d1,{loading:K,error:N,data:q,emptyText:"No tool calls recorded for this range.",children:q&&e.jsxDEV(e.Fragment,{children:[e.jsxDEV(cD,{byTool:q.byTool},void 0,!1,void 0,this),e.jsxDEV(sD,{series:q.series,timeRange:J},void 0,!1,void 0,this),e.jsxDEV(nD,{byTool:q.byTool},void 0,!1,void 0,this),e.jsxDEV(oD,{byToolModel:q.byToolModel},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function cD({byTool:Q}){let J=o6.useMemo(()=>{let X=0,q=0,N=0,K=0,H=0,M=0,F=0;for(let w of Q)X+=w.calls,q+=w.errors,N+=w.totalTokensShare,K+=w.outputTokensShare,H+=w.costShare,M+=w.resultChars,F+=w.argsChars;return{calls:X,errors:q,tokens:N,output:K,cost:H,resultChars:M,argsChars:F,tools:Q.length}},[Q]);return e.jsxDEV(R1,{title:"Tool Usage",subtitle:"Tokens/cost are the invoking turns' real provider usage, split across each turn's tool calls",children:e.jsxDEV("div",{className:"stats-metric-cluster",children:[e.jsxDEV("div",{className:"stats-metric-primary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tool Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:u0(J.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Tools Used"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:u0(J.tools)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:X5(J.calls>0?J.errors/J.calls:0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card primary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:A1(J.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:Z5(Math.round(J.tokens))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Attributed Output"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:Z5(Math.round(J.output))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[Z5(J.resultChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-metric-card secondary",children:[e.jsxDEV("div",{className:"stats-metric-label",children:"Call Arguments"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-metric-value",children:[Z5(J.argsChars)," chars"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var lD=6;function rD(Q){let J=new Map;for(let w of Q)J.set(w.tool,(J.get(w.tool)??0)+w.calls);let X=[...J.entries()].sort((w,z)=>z[1]-w[1]),q=X.slice(0,lD).map(([w])=>w),N=new Set(q),H=X.length>q.length?[...q,"Other"]:q,M=[...new Set(Q.map((w)=>w.timestamp))].sort((w,z)=>w-z),F=new Map;for(let w of M)F.set(w,{});for(let w of Q){let z=N.has(w.tool)?w.tool:"Other",T=F.get(w.timestamp);if(T)T[z]=(T[z]??0)+w.calls}return{buckets:M,tools:H,data:F}}function sD({series:Q,timeRange:J}){let X=G6(),q=P5[X],N=n9(J),K=o6.useMemo(()=>rD(Q),[Q]),H=o6.useMemo(()=>({labels:K.buckets.map((F)=>$J(F,J)),datasets:K.tools.map((F,w)=>({label:F,data:K.buckets.map((z)=>K.data.get(z)?.[F]??0),borderColor:D1[w%D1.length],backgroundColor:`${D1[w%D1.length]}30`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}),[K,J]),M=o6.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:q.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:q.tooltipBackground,titleColor:q.tooltipTitle,bodyColor:q.tooltipBody,borderColor:q.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(F)=>`${F.dataset.label??""}: ${u0(F.parsed.y??0)} calls`}}},scales:{x:{stacked:!0,grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11}}},y:{stacked:!0,grid:{color:q.grid,drawBorder:!1},ticks:{color:q.tick,font:{size:11},precision:0},min:0}}}),[q]);return e.jsxDEV(R1,{title:"Calls Over Time",subtitle:`Tool calls over ${N.windowLabel}, stacked by tool`,children:e.jsxDEV("div",{className:"h-[280px]",children:K.buckets.length===0?e.jsxDEV("div",{className:"h-full flex items-center justify-center text-stats-muted text-sm",children:"No data available"},void 0,!1,void 0,this):e.jsxDEV(v5,{data:H,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function yK(Q){return Q>0.1?"danger":Q>0?"warning":"success"}function nD({byTool:Q}){let J=o6.useMemo(()=>C_(Q),[Q]),X=o6.useMemo(()=>[{key:"tool",header:"Tool",render:(N)=>e.jsxDEV("div",{className:"stats-font-medium stats-text-primary font-mono truncate max-w-[280px]",title:N.tool,children:N.tool},void 0,!1,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(N)=>e.jsxDEV("div",{className:"stats-text-right",children:[e.jsxDEV("div",{className:"font-mono",children:u0(N.calls)},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:e.jsxDEV("div",{className:"stats-progress-bar-fill","data-variant":"link",style:{width:`${N.callsPercentage}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(N)=>e.jsxDEV(I5,{variant:yK(N.errorRate),children:X5(N.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Invoking turns' total tokens, split across each turn's calls",children:Z5(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",children:A1(N.costShare)},void 0,!1,void 0,this)},{key:"resultChars",header:"Result Text",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"font-mono",title:"Characters of tool-result text fed back into context",children:Z5(N.resultChars)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last Used",numeric:!0,render:(N)=>e.jsxDEV("span",{className:"stats-text-secondary",children:r6(N.lastUsed)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(R1,{title:"By Tool",subtitle:"Usage per tool, most called first",children:e.jsxDEV(B4,{columns:X,data:J,keyExtractor:(N)=>N.tool,renderMobileCard:(N)=>e.jsxDEV("div",{className:"stats-mobile-card",children:[e.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[e.jsxDEV("div",{className:"stats-font-semibold stats-text-primary font-mono",children:N.tool},void 0,!1,void 0,this),e.jsxDEV(I5,{variant:yK(N.errorRate),children:[X5(N.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-grid",children:[e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Calls"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:u0(N.calls)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Tokens"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:Z5(Math.round(N.totalTokensShare))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Attr. Cost"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:A1(N.costShare)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-mobile-card-label",children:"Result Text"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:Z5(N.resultChars)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function oD({byToolModel:Q}){let[J,X]=o6.useState(null),q=o6.useMemo(()=>[...new Set(Q.map((H)=>H.tool))].sort(),[Q]),N=o6.useMemo(()=>{return(J?Q.filter((M)=>M.tool===J):Q).map((M)=>({...M,errorRate:M.calls>0?M.errors/M.calls:0}))},[Q,J]),K=o6.useMemo(()=>[{key:"tool",header:"Tool",render:(H)=>e.jsxDEV("span",{className:"stats-font-medium stats-text-primary font-mono",children:H.tool},void 0,!1,void 0,this)},{key:"model",header:"Model",render:(H)=>e.jsxDEV("div",{children:[e.jsxDEV("div",{className:"stats-text-primary",children:H.model||"(unknown)"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"stats-text-secondary text-xs",children:H.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"calls",header:"Calls",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:u0(H.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(H)=>e.jsxDEV(I5,{variant:yK(H.errorRate),children:X5(H.errorRate)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. Tokens",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:Z5(Math.round(H.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. Cost",numeric:!0,render:(H)=>e.jsxDEV("span",{className:"font-mono",children:A1(H.costShare)},void 0,!1,void 0,this)}],[]);return e.jsxDEV(R1,{title:"By Model",subtitle:"Which models call which tools",children:[e.jsxDEV("div",{className:"mb-4",style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[e.jsxDEV("span",{className:"stats-text-secondary",style:{fontSize:"0.875rem",whiteSpace:"nowrap"},children:"Tool"},void 0,!1,void 0,this),e.jsxDEV("select",{className:"stats-select",value:J??"",onChange:(H)=>X(H.target.value||null),style:{maxWidth:"320px",flex:1},children:[e.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),q.map((H)=>e.jsxDEV("option",{value:H,children:H},H,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV(B4,{columns:K,data:N,keyExtractor:(H)=>`${H.tool}::${H.model}::${H.provider}`,emptyText:"No tool calls recorded for this range."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var k5=o(B0(),1);function gK(){let{section:Q,setSection:J,range:X,setRange:q}=OL(),[N,K]=b8.useState(0),[H,M]=b8.useState(null),[F,w]=b8.useState(()=>Date.now()),z=b8.useCallback((V)=>{if(V.success)K((O)=>O+1),w(Date.now())},[]),T=b8.useCallback(()=>M(null),[]),_=Q,I=b8.useRef(new Set);I.current.add(_);let E=(V)=>{let O=V===_;switch(V){case"overview":return k5.jsxDEV(c_,{active:O,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"requests":return k5.jsxDEV(s_,{active:O,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"errors":return k5.jsxDEV(h_,{active:O,range:X,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"models":return k5.jsxDEV(m_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"tools":return k5.jsxDEV(n_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return k5.jsxDEV(y_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return k5.jsxDEV(f_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return k5.jsxDEV(l_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this);case"gain":return k5.jsxDEV(u_,{active:O,range:X,refreshTrigger:N},void 0,!1,void 0,this)}};return k5.jsxDEV(k5.Fragment,{children:[k5.jsxDEV(CL,{activeSection:_,onSectionChange:J,range:X,onRangeChange:q,updatedAt:F,onSyncComplete:z,children:[...I.current].map((V)=>k5.jsxDEV("div",{hidden:V!==_,children:E(V)},V,!1,void 0,this))},void 0,!1,void 0,this),k5.jsxDEV(S_,{id:H,onClose:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var a_=o(B0(),1),aD=o_.createRoot(document.getElementById("root"));aD.render(a_.jsxDEV(gK,{},void 0,!1,void 0,this));