@oh-my-pi/omp-stats 16.0.3 → 16.0.5

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 (107) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/build.ts +11 -0
  3. package/dist/client/index.css +1 -1
  4. package/dist/client/index.html +11 -0
  5. package/dist/client/index.js +108 -108
  6. package/dist/client/styles.css +1070 -631
  7. package/dist/types/client/api.d.ts +19 -10
  8. package/dist/types/client/app/AppLayout.d.ts +16 -0
  9. package/dist/types/client/app/NavRail.d.ts +7 -0
  10. package/dist/types/client/app/RangeControl.d.ts +7 -0
  11. package/dist/types/client/app/SyncButton.d.ts +14 -0
  12. package/dist/types/client/app/ThemeToggle.d.ts +1 -0
  13. package/dist/types/client/app/TopBar.d.ts +15 -0
  14. package/dist/types/client/app/routes.d.ts +12 -0
  15. package/dist/types/client/components/chart-shared.d.ts +26 -40
  16. package/dist/types/client/components/models-table-shared.d.ts +20 -40
  17. package/dist/types/client/data/charts.d.ts +1 -0
  18. package/dist/types/client/data/formatters.d.ts +7 -0
  19. package/dist/types/client/data/useHashRoute.d.ts +8 -0
  20. package/dist/types/client/data/useResource.d.ts +13 -0
  21. package/dist/types/client/data/view-models.d.ts +37 -0
  22. package/dist/types/client/index.d.ts +1 -0
  23. package/dist/types/client/routes/BehaviorRoute.d.ts +7 -0
  24. package/dist/types/client/routes/CostsRoute.d.ts +7 -0
  25. package/dist/types/client/routes/ErrorsRoute.d.ts +8 -0
  26. package/dist/types/client/routes/ModelsRoute.d.ts +7 -0
  27. package/dist/types/client/routes/OverviewRoute.d.ts +8 -0
  28. package/dist/types/client/routes/ProjectsRoute.d.ts +7 -0
  29. package/dist/types/client/routes/RequestsRoute.d.ts +8 -0
  30. package/dist/types/client/routes/index.d.ts +7 -0
  31. package/dist/types/client/ui/AsyncBoundary.d.ts +12 -0
  32. package/dist/types/client/ui/DataTable.d.ts +17 -0
  33. package/dist/types/client/ui/EmptyState.d.ts +7 -0
  34. package/dist/types/client/ui/ErrorState.d.ts +6 -0
  35. package/dist/types/client/ui/JsonBlock.d.ts +7 -0
  36. package/dist/types/client/ui/MetricCluster.d.ts +5 -0
  37. package/dist/types/client/ui/Panel.d.ts +7 -0
  38. package/dist/types/client/ui/RequestDrawer.d.ts +5 -0
  39. package/dist/types/client/ui/SegmentedControl.d.ts +12 -0
  40. package/dist/types/client/ui/Skeleton.d.ts +8 -0
  41. package/dist/types/client/ui/StatusPill.d.ts +7 -0
  42. package/dist/types/client/ui/index.d.ts +11 -0
  43. package/dist/types/client/useSystemTheme.d.ts +9 -0
  44. package/package.json +4 -4
  45. package/src/aggregator.ts +4 -3
  46. package/src/client/App.tsx +89 -207
  47. package/src/client/api.ts +55 -37
  48. package/src/client/app/AppLayout.tsx +93 -0
  49. package/src/client/app/NavRail.tsx +44 -0
  50. package/src/client/app/RangeControl.tsx +39 -0
  51. package/src/client/app/SyncButton.tsx +75 -0
  52. package/src/client/app/ThemeToggle.tsx +37 -0
  53. package/src/client/app/TopBar.tsx +73 -0
  54. package/src/client/app/routes.ts +50 -0
  55. package/src/client/components/chart-shared.tsx +28 -91
  56. package/src/client/components/models-table-shared.tsx +9 -29
  57. package/src/client/components/range-meta.ts +3 -2
  58. package/src/client/data/charts.ts +14 -0
  59. package/src/client/data/formatters.ts +38 -0
  60. package/src/client/data/useHashRoute.ts +85 -0
  61. package/src/client/data/useResource.ts +154 -0
  62. package/src/client/data/view-models.ts +178 -0
  63. package/src/client/index.tsx +4 -0
  64. package/src/client/routes/BehaviorRoute.tsx +623 -0
  65. package/src/client/routes/CostsRoute.tsx +234 -0
  66. package/src/client/routes/ErrorsRoute.tsx +118 -0
  67. package/src/client/routes/ModelsRoute.tsx +430 -0
  68. package/src/client/routes/OverviewRoute.tsx +332 -0
  69. package/src/client/routes/ProjectsRoute.tsx +163 -0
  70. package/src/client/routes/RequestsRoute.tsx +123 -0
  71. package/src/client/routes/index.ts +7 -0
  72. package/src/client/styles.css +1242 -225
  73. package/src/client/ui/AsyncBoundary.tsx +54 -0
  74. package/src/client/ui/DataTable.tsx +122 -0
  75. package/src/client/ui/EmptyState.tsx +16 -0
  76. package/src/client/ui/ErrorState.tsx +25 -0
  77. package/src/client/ui/JsonBlock.tsx +75 -0
  78. package/src/client/ui/MetricCluster.tsx +67 -0
  79. package/src/client/ui/Panel.tsx +24 -0
  80. package/src/client/ui/RequestDrawer.tsx +208 -0
  81. package/src/client/ui/SegmentedControl.tsx +36 -0
  82. package/src/client/ui/Skeleton.tsx +17 -0
  83. package/src/client/ui/StatusPill.tsx +15 -0
  84. package/src/client/ui/index.ts +11 -0
  85. package/src/client/useSystemTheme.ts +73 -17
  86. package/dist/types/client/components/BehaviorChart.d.ts +0 -6
  87. package/dist/types/client/components/BehaviorModelsTable.d.ts +0 -7
  88. package/dist/types/client/components/BehaviorSummary.d.ts +0 -7
  89. package/dist/types/client/components/ChartsContainer.d.ts +0 -7
  90. package/dist/types/client/components/CostChart.d.ts +0 -6
  91. package/dist/types/client/components/CostSummary.d.ts +0 -6
  92. package/dist/types/client/components/Header.d.ts +0 -12
  93. package/dist/types/client/components/ModelsTable.d.ts +0 -8
  94. package/dist/types/client/components/RequestDetail.d.ts +0 -6
  95. package/dist/types/client/components/RequestList.d.ts +0 -8
  96. package/dist/types/client/components/StatsGrid.d.ts +0 -6
  97. package/src/client/components/BehaviorChart.tsx +0 -189
  98. package/src/client/components/BehaviorModelsTable.tsx +0 -342
  99. package/src/client/components/BehaviorSummary.tsx +0 -95
  100. package/src/client/components/ChartsContainer.tsx +0 -221
  101. package/src/client/components/CostChart.tsx +0 -171
  102. package/src/client/components/CostSummary.tsx +0 -53
  103. package/src/client/components/Header.tsx +0 -72
  104. package/src/client/components/ModelsTable.tsx +0 -265
  105. package/src/client/components/RequestDetail.tsx +0 -172
  106. package/src/client/components/RequestList.tsx +0 -73
  107. package/src/client/components/StatsGrid.tsx +0 -135
@@ -1,76 +1,76 @@
1
- var MP=Object.create;var{getPrototypeOf:FP,defineProperty:yw,getOwnPropertyNames:WP}=Object;var wP=Object.prototype.hasOwnProperty;function RP(Q){return this[Q]}var TP,zP,R0=(Q,J,q)=>{var Y=Q!=null&&typeof Q==="object";if(Y){var U=J?TP??=new WeakMap:zP??=new WeakMap,K=U.get(Q);if(K)return K}q=Q!=null?MP(FP(Q)):{};let H=J||!Q||!Q.__esModule?yw(q,"default",{value:Q,enumerable:!0}):q;for(let M of WP(Q))if(!wP.call(H,M))yw(H,M,{get:RP.bind(Q,M),enumerable:!0});if(Y)U.set(Q,H);return H};var Z2=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var gw=Z2((_P)=>{(function(){function Q(){if(a=!1,i){var l=_P.unstable_now();N0=l;var J0=!0;try{$:{m=!1,o&&(o=!1,Q0(Y0),Y0=-1),g=!0;var K0=C;try{Z:{K(l);for(A=q(L);A!==null&&!(A.expirationTime>l&&M());){var d0=A.callback;if(typeof d0==="function"){A.callback=null,C=A.priorityLevel;var k0=d0(A.expirationTime<=l);if(l=_P.unstable_now(),typeof k0==="function"){A.callback=k0,K(l),J0=!0;break Z}A===q(L)&&Y(L),K(l)}else Y(L);A=q(L)}if(A!==null)J0=!0;else{var S=q(P);S!==null&&F(H,S.startTime-l),J0=!1}}break $}finally{A=null,C=K0,g=!1}J0=void 0}}finally{J0?w0():i=!1}}}function J(l,J0){var K0=l.length;l.push(J0);$:for(;0<K0;){var d0=K0-1>>>1,k0=l[d0];if(0<U(k0,J0))l[d0]=J0,l[K0]=k0,K0=d0;else break $}}function q(l){return l.length===0?null:l[0]}function Y(l){if(l.length===0)return null;var J0=l[0],K0=l.pop();if(K0!==J0){l[0]=K0;$:for(var d0=0,k0=l.length,S=k0>>>1;d0<S;){var n=2*(d0+1)-1,B0=l[n],H0=n+1,b0=l[H0];if(0>U(B0,K0))H0<k0&&0>U(b0,B0)?(l[d0]=b0,l[H0]=K0,d0=H0):(l[d0]=B0,l[n]=K0,d0=n);else if(H0<k0&&0>U(b0,K0))l[d0]=b0,l[H0]=K0,d0=H0;else break $}}return J0}function U(l,J0){var K0=l.sortIndex-J0.sortIndex;return K0!==0?K0:l.id-J0.id}function K(l){for(var J0=q(P);J0!==null;){if(J0.callback===null)Y(P);else if(J0.startTime<=l)Y(P),J0.sortIndex=J0.expirationTime,J(L,J0);else break;J0=q(P)}}function H(l){if(o=!1,K(l),!m)if(q(L)!==null)m=!0,i||(i=!0,w0());else{var J0=q(P);J0!==null&&F(H,J0.startTime-l)}}function M(){return a?!0:_P.unstable_now()-N0<d?!1:!0}function F(l,J0){Y0=s(function(){l(_P.unstable_now())},J0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),_P.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var R=performance;_P.unstable_now=function(){return R.now()}}else{var T=Date,z=T.now();_P.unstable_now=function(){return T.now()-z}}var L=[],P=[],I=1,A=null,C=3,g=!1,m=!1,o=!1,a=!1,s=typeof setTimeout==="function"?setTimeout:null,Q0=typeof clearTimeout==="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null,i=!1,Y0=-1,d=5,N0=-1;if(typeof p==="function")var w0=function(){p(Q)};else if(typeof MessageChannel<"u"){var z0=new MessageChannel,C0=z0.port2;z0.port1.onmessage=Q,w0=function(){C0.postMessage(null)}}else w0=function(){s(Q,0)};_P.unstable_IdlePriority=5,_P.unstable_ImmediatePriority=1,_P.unstable_LowPriority=4,_P.unstable_NormalPriority=3,_P.unstable_Profiling=null,_P.unstable_UserBlockingPriority=2,_P.unstable_cancelCallback=function(l){l.callback=null},_P.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},_P.unstable_getCurrentPriorityLevel=function(){return C},_P.unstable_next=function(l){switch(C){case 1:case 2:case 3:var J0=3;break;default:J0=C}var K0=C;C=J0;try{return l()}finally{C=K0}},_P.unstable_requestPaint=function(){a=!0},_P.unstable_runWithPriority=function(l,J0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var K0=C;C=l;try{return J0()}finally{C=K0}},_P.unstable_scheduleCallback=function(l,J0,K0){var d0=_P.unstable_now();switch(typeof K0==="object"&&K0!==null?(K0=K0.delay,K0=typeof K0==="number"&&0<K0?d0+K0:d0):K0=d0,l){case 1:var k0=-1;break;case 2:k0=250;break;case 5:k0=1073741823;break;case 4:k0=1e4;break;default:k0=5000}return k0=K0+k0,l={id:I++,callback:J0,priorityLevel:l,startTime:K0,expirationTime:k0,sortIndex:-1},K0>d0?(l.sortIndex=K0,J(P,l),q(L)===null&&l===q(P)&&(o?(Q0(Y0),Y0=-1):o=!0,F(H,K0-d0))):(l.sortIndex=k0,J(L,l),m||g||(m=!0,i||(i=!0,w0()))),l},_P.unstable_shouldYield=M,_P.unstable_wrapCallback=function(l){var J0=C;return function(){var K0=C;C=J0;try{return l.apply(this,arguments)}finally{C=K0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var e1=Z2((LP,xJ)=>{(function(){function Q(E,f){Object.defineProperty(Y.prototype,E,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})}function J(E){if(E===null||typeof E!=="object")return null;return E=VQ&&E[VQ]||E["@@iterator"],typeof E==="function"?E:null}function q(E,f){E=(E=E.constructor)&&(E.displayName||E.name)||"ReactClass";var r=E+"."+f;G0[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.",f,E),G0[r]=!0)}function Y(E,f,r){this.props=E,this.context=f,this.refs=B6,this.updater=r||O$}function U(){}function K(E,f,r){this.props=E,this.context=f,this.refs=B6,this.updater=r||O$}function H(){}function M(E){return""+E}function F(E){try{M(E);var f=!1}catch(q0){f=!0}if(f){f=console;var r=f.error,e=typeof Symbol==="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return r.call(f,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",e),M(E)}}function R(E){if(E==null)return null;if(typeof E==="function")return E.$$typeof===Q7?null:E.displayName||E.name||null;if(typeof E==="string")return E;switch(E){case k0:return"Fragment";case n:return"Profiler";case S:return"StrictMode";case j1:return"Suspense";case I0:return"SuspenseList";case P4:return"Activity"}if(typeof E==="object")switch(typeof E.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case d0:return"Portal";case H0:return E.displayName||"Context";case B0:return(E._context.displayName||"Context")+".Consumer";case b0:var f=E.render;return E=E.displayName,E||(E=f.displayName||f.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case f1:return f=E.displayName||null,f!==null?f:R(E.type)||"Memo";case N5:f=E._payload,E=E._init;try{return R(E(f))}catch(r){}}return null}function T(E){if(E===k0)return"<>";if(typeof E==="object"&&E!==null&&E.$$typeof===N5)return"<...>";try{var f=R(E);return f?"<"+f+">":"<...>"}catch(r){return"<...>"}}function z(){var E=D0.A;return E===null?null:E.getOwner()}function L(){return Error("react-stack-top-frame")}function P(E){if(D$.call(E,"key")){var f=Object.getOwnPropertyDescriptor(E,"key").get;if(f&&f.isReactWarning)return!1}return E.key!==void 0}function I(E,f){function r(){EQ||(EQ=!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)",f))}r.isReactWarning=!0,Object.defineProperty(E,"key",{get:r,configurable:!0})}function A(){var E=R(this.type);return _2[E]||(_2[E]=!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.")),E=this.props.ref,E!==void 0?E:null}function C(E,f,r,e,q0,E0){var P0=r.ref;return E={$$typeof:K0,type:E,key:f,props:r,_owner:e},(P0!==void 0?P0:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:A}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:q0}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:E0}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function g(E,f){return f=C(E.type,f,E.props,E._owner,E._debugStack,E._debugTask),E._store&&(f._store.validated=E._store.validated),f}function m(E){o(E)?E._store&&(E._store.validated=1):typeof E==="object"&&E!==null&&E.$$typeof===N5&&(E._payload.status==="fulfilled"?o(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function o(E){return typeof E==="object"&&E!==null&&E.$$typeof===K0}function a(E){var f={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(r){return f[r]})}function s(E,f){return typeof E==="object"&&E!==null&&E.key!=null?(F(E.key),a(""+E.key)):f.toString(36)}function Q0(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status==="string"?E.then(H,H):(E.status="pending",E.then(function(f){E.status==="pending"&&(E.status="fulfilled",E.value=f)},function(f){E.status==="pending"&&(E.status="rejected",E.reason=f)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function p(E,f,r,e,q0){var E0=typeof E;if(E0==="undefined"||E0==="boolean")E=null;var P0=!1;if(E===null)P0=!0;else switch(E0){case"bigint":case"string":case"number":P0=!0;break;case"object":switch(E.$$typeof){case K0:case d0:P0=!0;break;case N5:return P0=E._init,p(P0(E._payload),f,r,e,q0)}}if(P0){P0=E,q0=q0(P0);var a0=e===""?"."+s(P0,0):e;return Y1(q0)?(r="",a0!=null&&(r=a0.replace(A$,"$&/")+"/"),p(q0,f,r,"",function(K5){return K5})):q0!=null&&(o(q0)&&(q0.key!=null&&(P0&&P0.key===q0.key||F(q0.key)),r=g(q0,r+(q0.key==null||P0&&P0.key===q0.key?"":(""+q0.key).replace(A$,"$&/")+"/")+a0),e!==""&&P0!=null&&o(P0)&&P0.key==null&&P0._store&&!P0._store.validated&&(r._store.validated=2),q0=r),f.push(q0)),1}if(P0=0,a0=e===""?".":e+":",Y1(E))for(var F0=0;F0<E.length;F0++)e=E[F0],E0=a0+s(e,F0),P0+=p(e,f,r,E0,q0);else if(F0=J(E),typeof F0==="function")for(F0===E.entries&&(j$||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),j$=!0),E=F0.call(E),F0=0;!(e=E.next()).done;)e=e.value,E0=a0+s(e,F0++),P0+=p(e,f,r,E0,q0);else if(E0==="object"){if(typeof E.then==="function")return p(Q0(E),f,r,e,q0);throw f=String(E),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return P0}function i(E,f,r){if(E==null)return E;var e=[],q0=0;return p(E,e,"","",function(E0){return f.call(r,E0,q0++)}),e}function Y0(E){if(E._status===-1){var f=E._ioInfo;f!=null&&(f.start=f.end=performance.now()),f=E._result;var r=f();if(r.then(function(q0){if(E._status===0||E._status===-1){E._status=1,E._result=q0;var E0=E._ioInfo;E0!=null&&(E0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=q0)}},function(q0){if(E._status===0||E._status===-1){E._status=2,E._result=q0;var E0=E._ioInfo;E0!=null&&(E0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=q0)}}),f=E._ioInfo,f!=null){f.value=r;var e=r.displayName;typeof e==="string"&&(f.name=e)}E._status===-1&&(E._status=0,E._result=r)}if(E._status===1)return f=E._result,f===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var MI=Object.create;var{getPrototypeOf:FI,defineProperty:HR,getOwnPropertyNames:wI}=Object;var WI=Object.prototype.hasOwnProperty;function RI(Q){return this[Q]}var TI,zI,e=(Q,G,q)=>{var X=Q!=null&&typeof Q==="object";if(X){var N=G?TI??=new WeakMap:zI??=new WeakMap,B=N.get(Q);if(B)return B}q=Q!=null?MI(FI(Q)):{};let H=G||!Q||!Q.__esModule?HR(q,"default",{value:Q,enumerable:!0}):q;for(let M of wI(Q))if(!WI.call(H,M))HR(H,M,{get:RI.bind(Q,M),enumerable:!0});if(X)N.set(Q,H);return H};var R2=(Q,G)=>()=>(G||Q((G={exports:{}}).exports,G),G.exports);var bz=R2((AS)=>{(function(){function Q(){if(s=!1,a){var l=AS.unstable_now();U0=l;var q0=!0;try{$:{h=!1,p&&(p=!1,Q0(X0),X0=-1),j=!0;var B0=I;try{Z:{B(l);for(O=q(C);O!==null&&!(O.expirationTime>l&&M());){var l0=O.callback;if(typeof l0==="function"){O.callback=null,I=O.priorityLevel;var h0=l0(O.expirationTime<=l);if(l=AS.unstable_now(),typeof h0==="function"){O.callback=h0,B(l),q0=!0;break Z}O===q(C)&&X(C),B(l)}else X(C);O=q(C)}if(O!==null)q0=!0;else{var v=q(V);v!==null&&F(H,v.startTime-l),q0=!1}}break $}finally{O=null,I=B0,j=!1}q0=void 0}}finally{q0?P0():a=!1}}}function G(l,q0){var B0=l.length;l.push(q0);$:for(;0<B0;){var l0=B0-1>>>1,h0=l[l0];if(0<N(h0,q0))l[l0]=q0,l[B0]=h0,B0=l0;else break $}}function q(l){return l.length===0?null:l[0]}function X(l){if(l.length===0)return null;var q0=l[0],B0=l.pop();if(B0!==q0){l[0]=B0;$:for(var l0=0,h0=l.length,v=h0>>>1;l0<v;){var n=2*(l0+1)-1,H0=l[n],M0=n+1,u0=l[M0];if(0>N(H0,B0))M0<h0&&0>N(u0,H0)?(l[l0]=u0,l[M0]=B0,l0=M0):(l[l0]=H0,l[n]=B0,l0=n);else if(M0<h0&&0>N(u0,B0))l[l0]=u0,l[M0]=B0,l0=M0;else break $}}return q0}function N(l,q0){var B0=l.sortIndex-q0.sortIndex;return B0!==0?B0:l.id-q0.id}function B(l){for(var q0=q(V);q0!==null;){if(q0.callback===null)X(V);else if(q0.startTime<=l)X(V),q0.sortIndex=q0.expirationTime,G(C,q0);else break;q0=q(V)}}function H(l){if(p=!1,B(l),!h)if(q(C)!==null)h=!0,a||(a=!0,P0());else{var q0=q(V);q0!==null&&F(H,q0.startTime-l)}}function M(){return s?!0:AS.unstable_now()-U0<d?!1:!0}function F(l,q0){X0=o(function(){l(AS.unstable_now())},q0)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),AS.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var W=performance;AS.unstable_now=function(){return W.now()}}else{var T=Date,z=T.now();AS.unstable_now=function(){return T.now()-z}}var C=[],V=[],A=1,O=null,I=3,j=!1,h=!1,p=!1,s=!1,o=typeof setTimeout==="function"?setTimeout:null,Q0=typeof clearTimeout==="function"?clearTimeout:null,i=typeof setImmediate<"u"?setImmediate:null,a=!1,X0=-1,d=5,U0=-1;if(typeof i==="function")var P0=function(){i(Q)};else if(typeof MessageChannel<"u"){var L0=new MessageChannel,D0=L0.port2;L0.port1.onmessage=Q,P0=function(){D0.postMessage(null)}}else P0=function(){o(Q,0)};AS.unstable_IdlePriority=5,AS.unstable_ImmediatePriority=1,AS.unstable_LowPriority=4,AS.unstable_NormalPriority=3,AS.unstable_Profiling=null,AS.unstable_UserBlockingPriority=2,AS.unstable_cancelCallback=function(l){l.callback=null},AS.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},AS.unstable_getCurrentPriorityLevel=function(){return I},AS.unstable_next=function(l){switch(I){case 1:case 2:case 3:var q0=3;break;default:q0=I}var B0=I;I=q0;try{return l()}finally{I=B0}},AS.unstable_requestPaint=function(){s=!0},AS.unstable_runWithPriority=function(l,q0){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var B0=I;I=l;try{return q0()}finally{I=B0}},AS.unstable_scheduleCallback=function(l,q0,B0){var l0=AS.unstable_now();switch(typeof B0==="object"&&B0!==null?(B0=B0.delay,B0=typeof B0==="number"&&0<B0?l0+B0:l0):B0=l0,l){case 1:var h0=-1;break;case 2:h0=250;break;case 5:h0=1073741823;break;case 4:h0=1e4;break;default:h0=5000}return h0=B0+h0,l={id:A++,callback:q0,priorityLevel:l,startTime:B0,expirationTime:h0,sortIndex:-1},B0>l0?(l.sortIndex=B0,G(V,l),q(C)===null&&l===q(V)&&(p?(Q0(X0),X0=-1):p=!0,F(H,B0-l0))):(l.sortIndex=h0,G(C,l),h||j||(h=!0,a||(a=!0,P0()))),l},AS.unstable_shouldYield=M,AS.unstable_wrapCallback=function(l){var q0=I;return function(){var B0=I;I=q0;try{return l.apply(this,arguments)}finally{I=B0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var A1=R2((SS,m3)=>{(function(){function Q(_,y){Object.defineProperty(X.prototype,_,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function G(_){if(_===null||typeof _!=="object")return null;return _=rQ&&_[rQ]||_["@@iterator"],typeof _==="function"?_:null}function q(_,y){_=(_=_.constructor)&&(_.displayName||_.name)||"ReactClass";var r=_+"."+y;G0[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,_),G0[r]=!0)}function X(_,y,r){this.props=_,this.context=y,this.refs=E8,this.updater=r||l9}function N(){}function B(_,y,r){this.props=_,this.context=y,this.refs=E8,this.updater=r||l9}function H(){}function M(_){return""+_}function F(_){try{M(_);var y=!1}catch(Y0){y=!0}if(y){y=console;var r=y.error,$0=typeof Symbol==="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.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.",$0),M(_)}}function W(_){if(_==null)return null;if(typeof _==="function")return _.$$typeof===R$?null:_.displayName||_.name||null;if(typeof _==="string")return _;switch(_){case h0:return"Fragment";case n:return"Profiler";case v:return"StrictMode";case k1:return"Suspense";case j0:return"SuspenseList";case d6: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 l0:return"Portal";case M0:return _.displayName||"Context";case H0:return(_._context.displayName||"Context")+".Consumer";case u0:var y=_.render;return _=_.displayName,_||(_=y.displayName||y.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case m1:return y=_.displayName||null,y!==null?y:W(_.type)||"Memo";case T5:y=_._payload,_=_._init;try{return W(_(y))}catch(r){}}return null}function T(_){if(_===h0)return"<>";if(typeof _==="object"&&_!==null&&_.$$typeof===T5)return"<...>";try{var y=W(_);return y?"<"+y+">":"<...>"}catch(r){return"<...>"}}function z(){var _=b0.A;return _===null?null:_.getOwner()}function C(){return Error("react-stack-top-frame")}function V(_){if(r9.call(_,"key")){var y=Object.getOwnPropertyDescriptor(_,"key").get;if(y&&y.isReactWarning)return!1}return _.key!==void 0}function A(_,y){function r(){sQ||(sQ=!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(_,"key",{get:r,configurable:!0})}function O(){var _=W(this.type);return y2[_]||(y2[_]=!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.")),_=this.props.ref,_!==void 0?_:null}function I(_,y,r,$0,Y0,E0){var A0=r.ref;return _={$$typeof:B0,type:_,key:y,props:r,_owner:$0},(A0!==void 0?A0:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:O}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y0}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:E0}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function j(_,y){return y=I(_.type,y,_.props,_._owner,_._debugStack,_._debugTask),_._store&&(y._store.validated=_._store.validated),y}function h(_){p(_)?_._store&&(_._store.validated=1):typeof _==="object"&&_!==null&&_.$$typeof===T5&&(_._payload.status==="fulfilled"?p(_._payload.value)&&_._payload.value._store&&(_._payload.value._store.validated=1):_._store&&(_._store.validated=1))}function p(_){return typeof _==="object"&&_!==null&&_.$$typeof===B0}function s(_){var y={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(r){return y[r]})}function o(_,y){return typeof _==="object"&&_!==null&&_.key!=null?(F(_.key),s(""+_.key)):y.toString(36)}function Q0(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status==="string"?_.then(H,H):(_.status="pending",_.then(function(y){_.status==="pending"&&(_.status="fulfilled",_.value=y)},function(y){_.status==="pending"&&(_.status="rejected",_.reason=y)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function i(_,y,r,$0,Y0){var E0=typeof _;if(E0==="undefined"||E0==="boolean")_=null;var A0=!1;if(_===null)A0=!0;else switch(E0){case"bigint":case"string":case"number":A0=!0;break;case"object":switch(_.$$typeof){case B0:case l0:A0=!0;break;case T5:return A0=_._init,i(A0(_._payload),y,r,$0,Y0)}}if(A0){A0=_,Y0=Y0(A0);var i0=$0===""?"."+o(A0,0):$0;return B1(Y0)?(r="",i0!=null&&(r=i0.replace(n9,"$&/")+"/"),i(Y0,y,r,"",function(z5){return z5})):Y0!=null&&(p(Y0)&&(Y0.key!=null&&(A0&&A0.key===Y0.key||F(Y0.key)),r=j(Y0,r+(Y0.key==null||A0&&A0.key===Y0.key?"":(""+Y0.key).replace(n9,"$&/")+"/")+i0),$0!==""&&A0!=null&&p(A0)&&A0.key==null&&A0._store&&!A0._store.validated&&(r._store.validated=2),Y0=r),y.push(Y0)),1}if(A0=0,i0=$0===""?".":$0+":",B1(_))for(var R0=0;R0<_.length;R0++)$0=_[R0],E0=i0+o($0,R0),A0+=i($0,y,r,E0,Y0);else if(R0=G(_),typeof R0==="function")for(R0===_.entries&&(s9||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),s9=!0),_=R0.call(_),R0=0;!($0=_.next()).done;)$0=$0.value,E0=i0+o($0,R0++),A0+=i($0,y,r,E0,Y0);else if(E0==="object"){if(typeof _.then==="function")return i(Q0(_),y,r,$0,Y0);throw y=String(_),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return A0}function a(_,y,r){if(_==null)return _;var $0=[],Y0=0;return i(_,$0,"","",function(E0){return y.call(r,E0,Y0++)}),$0}function X0(_){if(_._status===-1){var y=_._ioInfo;y!=null&&(y.start=y.end=performance.now()),y=_._result;var r=y();if(r.then(function(Y0){if(_._status===0||_._status===-1){_._status=1,_._result=Y0;var E0=_._ioInfo;E0!=null&&(E0.end=performance.now()),r.status===void 0&&(r.status="fulfilled",r.value=Y0)}},function(Y0){if(_._status===0||_._status===-1){_._status=2,_._result=Y0;var E0=_._ioInfo;E0!=null&&(E0.end=performance.now()),r.status===void 0&&(r.status="rejected",r.reason=Y0)}}),y=_._ioInfo,y!=null){y.value=r;var $0=r.displayName;typeof $0==="string"&&(y.name=$0)}_._status===-1&&(_._status=0,_._result=r)}if(_._status===1)return y=_._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,f),"default"in f||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
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
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,f),f.default;throw E._result}function d(){var E=D0.H;return E===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:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,y),y.default;throw _._result}function d(){var _=b0.H;return _===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
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
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.`),E}function N0(){D0.asyncTransitions--}function w0(E){if(V2===null)try{var f=("require"+Math.random()).slice(0,7);V2=(xJ&&xJ[f]).call(xJ,"timers").setImmediate}catch(r){V2=function(e){PQ===!1&&(PQ=!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 q0=new MessageChannel;q0.port1.onmessage=e,q0.port2.postMessage(void 0)}}return V2(E)}function z0(E){return 1<E.length&&typeof AggregateError==="function"?AggregateError(E):E[0]}function C0(E,f){f!==E2-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. "),E2=f}function l(E,f,r){var e=D0.actQueue;if(e!==null)if(e.length!==0)try{J0(e),w0(function(){return l(E,f,r)});return}catch(q0){D0.thrownErrors.push(q0)}else D0.actQueue=null;0<D0.thrownErrors.length?(e=z0(D0.thrownErrors),D0.thrownErrors.length=0,r(e)):f(E)}function J0(E){if(!C2){C2=!0;var f=0;try{for(;f<E.length;f++){var r=E[f];do{D0.didUsePromise=!1;var e=r(!1);if(e!==null){if(D0.didUsePromise){E[f]=r,E.splice(0,f);return}r=e}else break}while(1)}E.length=0}catch(q0){E.splice(0,f+1),D0.thrownErrors.push(q0)}finally{C2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var K0=Symbol.for("react.transitional.element"),d0=Symbol.for("react.portal"),k0=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),B0=Symbol.for("react.consumer"),H0=Symbol.for("react.context"),b0=Symbol.for("react.forward_ref"),j1=Symbol.for("react.suspense"),I0=Symbol.for("react.suspense_list"),f1=Symbol.for("react.memo"),N5=Symbol.for("react.lazy"),P4=Symbol.for("react.activity"),VQ=Symbol.iterator,G0={},O$={isMounted:function(){return!1},enqueueForceUpdate:function(E){q(E,"forceUpdate")},enqueueReplaceState:function(E){q(E,"replaceState")},enqueueSetState:function(E){q(E,"setState")}},z2=Object.assign,B6={};Object.freeze(B6),Y.prototype.isReactComponent={},Y.prototype.setState=function(E,f){if(typeof E!=="object"&&typeof E!=="function"&&E!=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,E,f,"setState")},Y.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};var s1={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(M6 in s1)s1.hasOwnProperty(M6)&&Q(M6,s1[M6]);U.prototype=Y.prototype,s1=K.prototype=new U,s1.constructor=K,z2(s1,Y.prototype),s1.isPureReactComponent=!0;var Y1=Array.isArray,Q7=Symbol.for("react.client.reference"),D0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},D$=Object.prototype.hasOwnProperty,H1=console.createTask?console.createTask:function(){return null};s1={react_stack_bottom_frame:function(E){return E()}};var EQ,m4,_2={},L2=s1.react_stack_bottom_frame.bind(s1,L)(),Z3=H1(T(L)),j$=!1,A$=/\/+/g,H6=typeof reportError==="function"?reportError:function(E){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E==="object"&&E!==null&&typeof E.message==="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(f))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",E);return}console.error(E)},PQ=!1,V2=null,E2=0,P2=!1,C2=!1,G7=typeof queueMicrotask==="function"?function(E){queueMicrotask(function(){return queueMicrotask(E)})}:w0;s1=Object.freeze({__proto__:null,c:function(E){return d().useMemoCache(E)}});var M6={map:i,forEach:function(E,f,r){i(E,function(){f.apply(this,arguments)},r)},count:function(E){var f=0;return i(E,function(){f++}),f},toArray:function(E){return i(E,function(f){return f})||[]},only:function(E){if(!o(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};LP.Activity=P4,LP.Children=M6,LP.Component=Y,LP.Fragment=k0,LP.Profiler=n,LP.PureComponent=K,LP.StrictMode=S,LP.Suspense=j1,LP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D0,LP.__COMPILER_RUNTIME=s1,LP.act=function(E){var f=D0.actQueue,r=E2;E2++;var e=D0.actQueue=f!==null?f:[],q0=!1;try{var E0=E()}catch(F0){D0.thrownErrors.push(F0)}if(0<D0.thrownErrors.length)throw C0(f,r),E=z0(D0.thrownErrors),D0.thrownErrors.length=0,E;if(E0!==null&&typeof E0==="object"&&typeof E0.then==="function"){var P0=E0;return G7(function(){q0||P2||(P2=!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(F0,K5){q0=!0,P0.then(function(d5){if(C0(f,r),r===0){try{J0(e),w0(function(){return l(d5,F0,K5)})}catch(J7){D0.thrownErrors.push(J7)}if(0<D0.thrownErrors.length){var F6=z0(D0.thrownErrors);D0.thrownErrors.length=0,K5(F6)}}else F0(d5)},function(d5){C0(f,r),0<D0.thrownErrors.length?(d5=z0(D0.thrownErrors),D0.thrownErrors.length=0,K5(d5)):K5(d5)})}}}var a0=E0;if(C0(f,r),r===0&&(J0(e),e.length!==0&&G7(function(){q0||P2||(P2=!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(() => ...)"))}),D0.actQueue=null),0<D0.thrownErrors.length)throw E=z0(D0.thrownErrors),D0.thrownErrors.length=0,E;return{then:function(F0,K5){q0=!0,r===0?(D0.actQueue=e,w0(function(){return l(a0,F0,K5)})):F0(a0)}}},LP.cache=function(E){return function(){return E.apply(null,arguments)}},LP.cacheSignal=function(){return null},LP.captureOwnerStack=function(){var E=D0.getCurrentStack;return E===null?null:E()},LP.cloneElement=function(E,f,r){if(E===null||E===void 0)throw Error("The argument must be a React element, but you passed "+E+".");var e=z2({},E.props),q0=E.key,E0=E._owner;if(f!=null){var P0;$:{if(D$.call(f,"ref")&&(P0=Object.getOwnPropertyDescriptor(f,"ref").get)&&P0.isReactWarning){P0=!1;break $}P0=f.ref!==void 0}P0&&(E0=z()),P(f)&&(F(f.key),q0=""+f.key);for(a0 in f)!D$.call(f,a0)||a0==="key"||a0==="__self"||a0==="__source"||a0==="ref"&&f.ref===void 0||(e[a0]=f[a0])}var a0=arguments.length-2;if(a0===1)e.children=r;else if(1<a0){P0=Array(a0);for(var F0=0;F0<a0;F0++)P0[F0]=arguments[F0+2];e.children=P0}e=C(E.type,q0,e,E0,E._debugStack,E._debugTask);for(q0=2;q0<arguments.length;q0++)m(arguments[q0]);return e},LP.createContext=function(E){return E={$$typeof:H0,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:B0,_context:E},E._currentRenderer=null,E._currentRenderer2=null,E},LP.createElement=function(E,f,r){for(var e=2;e<arguments.length;e++)m(arguments[e]);e={};var q0=null;if(f!=null)for(F0 in m4||!("__self"in f)||"key"in f||(m4=!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")),P(f)&&(F(f.key),q0=""+f.key),f)D$.call(f,F0)&&F0!=="key"&&F0!=="__self"&&F0!=="__source"&&(e[F0]=f[F0]);var E0=arguments.length-2;if(E0===1)e.children=r;else if(1<E0){for(var P0=Array(E0),a0=0;a0<E0;a0++)P0[a0]=arguments[a0+2];Object.freeze&&Object.freeze(P0),e.children=P0}if(E&&E.defaultProps)for(F0 in E0=E.defaultProps,E0)e[F0]===void 0&&(e[F0]=E0[F0]);q0&&I(e,typeof E==="function"?E.displayName||E.name||"Unknown":E);var F0=1e4>D0.recentlyCreatedOwnerStacks++;return C(E,q0,e,z(),F0?Error("react-stack-top-frame"):L2,F0?H1(T(E)):Z3)},LP.createRef=function(){var E={current:null};return Object.seal(E),E},LP.forwardRef=function(E){E!=null&&E.$$typeof===f1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof E!=="function"?console.error("forwardRef requires a render function but was given %s.",E===null?"null":typeof E):E.length!==0&&E.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",E.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),E!=null&&E.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var f={$$typeof:b0,render:E},r;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(e){r=e,E.name||E.displayName||(Object.defineProperty(E,"name",{value:e}),E.displayName=e)}}),f},LP.isValidElement=o,LP.lazy=function(E){E={_status:-1,_result:E};var f={$$typeof:N5,_payload:E,_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 E._ioInfo=r,f._debugInfo=[{awaited:r}],f},LP.memo=function(E,f){E==null&&console.error("memo: The first argument must be a component. Instead received: %s",E===null?"null":typeof E),f={$$typeof:f1,type:E,compare:f===void 0?null:f};var r;return Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(e){r=e,E.name||E.displayName||(Object.defineProperty(E,"name",{value:e}),E.displayName=e)}}),f},LP.startTransition=function(E){var f=D0.T,r={};r._updatedFibers=new Set,D0.T=r;try{var e=E(),q0=D0.S;q0!==null&&q0(r,e),typeof e==="object"&&e!==null&&typeof e.then==="function"&&(D0.asyncTransitions++,e.then(N0,N0),e.then(H,H6))}catch(E0){H6(E0)}finally{f===null&&r._updatedFibers&&(E=r._updatedFibers.size,r._updatedFibers.clear(),10<E&&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.")),f!==null&&r.types!==null&&(f.types!==null&&f.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."),f.types=r.types),D0.T=f}},LP.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},LP.use=function(E){return d().use(E)},LP.useActionState=function(E,f,r){return d().useActionState(E,f,r)},LP.useCallback=function(E,f){return d().useCallback(E,f)},LP.useContext=function(E){var f=d();return E.$$typeof===B0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),f.useContext(E)},LP.useDebugValue=function(E,f){return d().useDebugValue(E,f)},LP.useDeferredValue=function(E,f){return d().useDeferredValue(E,f)},LP.useEffect=function(E,f){return E==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(E,f)},LP.useEffectEvent=function(E){return d().useEffectEvent(E)},LP.useId=function(){return d().useId()},LP.useImperativeHandle=function(E,f,r){return d().useImperativeHandle(E,f,r)},LP.useInsertionEffect=function(E,f){return E==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(E,f)},LP.useLayoutEffect=function(E,f){return E==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(E,f)},LP.useMemo=function(E,f){return d().useMemo(E,f)},LP.useOptimistic=function(E,f){return d().useOptimistic(E,f)},LP.useReducer=function(E,f,r){return d().useReducer(E,f,r)},LP.useRef=function(E){return d().useRef(E)},LP.useState=function(E){return d().useState(E)},LP.useSyncExternalStore=function(E,f,r){return d().useSyncExternalStore(E,f,r)},LP.useTransition=function(){return d().useTransition()},LP.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var hw=Z2((VP)=>{var fU=R0(e1());(function(){function Q(){}function J(T){return""+T}function q(T,z,L){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{J(P);var I=!1}catch(A){I=!0}return I&&(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&&P[Symbol.toStringTag]||P.constructor.name||"Object"),J(P)),{$$typeof:F,key:P==null?null:""+P,children:T,containerInfo:z,implementation:L}}function Y(T,z){if(T==="font")return"";if(typeof z==="string")return z==="use-credentials"?z:""}function U(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function K(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T==="string"?JSON.stringify(T):typeof T==="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function H(){var T=R.H;return T===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:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),_}function U0(){b0.asyncTransitions--}function P0(_){if(h2===null)try{var y=("require"+Math.random()).slice(0,7);h2=(m3&&m3[y]).call(m3,"timers").setImmediate}catch(r){h2=function($0){nQ===!1&&(nQ=!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 Y0=new MessageChannel;Y0.port1.onmessage=$0,Y0.port2.postMessage(void 0)}}return h2(_)}function L0(_){return 1<_.length&&typeof AggregateError==="function"?AggregateError(_):_[0]}function D0(_,y){y!==u2-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. "),u2=y}function l(_,y,r){var $0=b0.actQueue;if($0!==null)if($0.length!==0)try{q0($0),P0(function(){return l(_,y,r)});return}catch(Y0){b0.thrownErrors.push(Y0)}else b0.actQueue=null;0<b0.thrownErrors.length?($0=L0(b0.thrownErrors),b0.thrownErrors.length=0,r($0)):y(_)}function q0(_){if(!m2){m2=!0;var y=0;try{for(;y<_.length;y++){var r=_[y];do{b0.didUsePromise=!1;var $0=r(!1);if($0!==null){if(b0.didUsePromise){_[y]=r,_.splice(0,y);return}r=$0}else break}while(1)}_.length=0}catch(Y0){_.splice(0,y+1),b0.thrownErrors.push(Y0)}finally{m2=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var B0=Symbol.for("react.transitional.element"),l0=Symbol.for("react.portal"),h0=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),H0=Symbol.for("react.consumer"),M0=Symbol.for("react.context"),u0=Symbol.for("react.forward_ref"),k1=Symbol.for("react.suspense"),j0=Symbol.for("react.suspense_list"),m1=Symbol.for("react.memo"),T5=Symbol.for("react.lazy"),d6=Symbol.for("react.activity"),rQ=Symbol.iterator,G0={},l9={isMounted:function(){return!1},enqueueForceUpdate:function(_){q(_,"forceUpdate")},enqueueReplaceState:function(_){q(_,"replaceState")},enqueueSetState:function(_){q(_,"setState")}},f2=Object.assign,E8={};Object.freeze(E8),X.prototype.isReactComponent={},X.prototype.setState=function(_,y){if(typeof _!=="object"&&typeof _!=="function"&&_!=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,_,y,"setState")},X.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};var Q5={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(S8 in Q5)Q5.hasOwnProperty(S8)&&Q(S8,Q5[S8]);N.prototype=X.prototype,Q5=B.prototype=new N,Q5.constructor=B,f2(Q5,X.prototype),Q5.isPureReactComponent=!0;var B1=Array.isArray,R$=Symbol.for("react.client.reference"),b0={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},r9=Object.prototype.hasOwnProperty,w1=console.createTask?console.createTask:function(){return null};Q5={react_stack_bottom_frame:function(_){return _()}};var sQ,Q4,y2={},g2=Q5.react_stack_bottom_frame.bind(Q5,C)(),Rq=w1(T(C)),s9=!1,n9=/\/+/g,A8=typeof reportError==="function"?reportError:function(_){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(y))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",_);return}console.error(_)},nQ=!1,h2=null,u2=0,x2=!1,m2=!1,T$=typeof queueMicrotask==="function"?function(_){queueMicrotask(function(){return queueMicrotask(_)})}:P0;Q5=Object.freeze({__proto__:null,c:function(_){return d().useMemoCache(_)}});var S8={map:a,forEach:function(_,y,r){a(_,function(){y.apply(this,arguments)},r)},count:function(_){var y=0;return a(_,function(){y++}),y},toArray:function(_){return a(_,function(y){return y})||[]},only:function(_){if(!p(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};SS.Activity=d6,SS.Children=S8,SS.Component=X,SS.Fragment=h0,SS.Profiler=n,SS.PureComponent=B,SS.StrictMode=v,SS.Suspense=k1,SS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b0,SS.__COMPILER_RUNTIME=Q5,SS.act=function(_){var y=b0.actQueue,r=u2;u2++;var $0=b0.actQueue=y!==null?y:[],Y0=!1;try{var E0=_()}catch(R0){b0.thrownErrors.push(R0)}if(0<b0.thrownErrors.length)throw D0(y,r),_=L0(b0.thrownErrors),b0.thrownErrors.length=0,_;if(E0!==null&&typeof E0==="object"&&typeof E0.then==="function"){var A0=E0;return T$(function(){Y0||x2||(x2=!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(R0,z5){Y0=!0,A0.then(function(e5){if(D0(y,r),r===0){try{q0($0),P0(function(){return l(e5,R0,z5)})}catch(z$){b0.thrownErrors.push(z$)}if(0<b0.thrownErrors.length){var D8=L0(b0.thrownErrors);b0.thrownErrors.length=0,z5(D8)}}else R0(e5)},function(e5){D0(y,r),0<b0.thrownErrors.length?(e5=L0(b0.thrownErrors),b0.thrownErrors.length=0,z5(e5)):z5(e5)})}}}var i0=E0;if(D0(y,r),r===0&&(q0($0),$0.length!==0&&T$(function(){Y0||x2||(x2=!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(() => ...)"))}),b0.actQueue=null),0<b0.thrownErrors.length)throw _=L0(b0.thrownErrors),b0.thrownErrors.length=0,_;return{then:function(R0,z5){Y0=!0,r===0?(b0.actQueue=$0,P0(function(){return l(i0,R0,z5)})):R0(i0)}}},SS.cache=function(_){return function(){return _.apply(null,arguments)}},SS.cacheSignal=function(){return null},SS.captureOwnerStack=function(){var _=b0.getCurrentStack;return _===null?null:_()},SS.cloneElement=function(_,y,r){if(_===null||_===void 0)throw Error("The argument must be a React element, but you passed "+_+".");var $0=f2({},_.props),Y0=_.key,E0=_._owner;if(y!=null){var A0;$:{if(r9.call(y,"ref")&&(A0=Object.getOwnPropertyDescriptor(y,"ref").get)&&A0.isReactWarning){A0=!1;break $}A0=y.ref!==void 0}A0&&(E0=z()),V(y)&&(F(y.key),Y0=""+y.key);for(i0 in y)!r9.call(y,i0)||i0==="key"||i0==="__self"||i0==="__source"||i0==="ref"&&y.ref===void 0||($0[i0]=y[i0])}var i0=arguments.length-2;if(i0===1)$0.children=r;else if(1<i0){A0=Array(i0);for(var R0=0;R0<i0;R0++)A0[R0]=arguments[R0+2];$0.children=A0}$0=I(_.type,Y0,$0,E0,_._debugStack,_._debugTask);for(Y0=2;Y0<arguments.length;Y0++)h(arguments[Y0]);return $0},SS.createContext=function(_){return _={$$typeof:M0,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:H0,_context:_},_._currentRenderer=null,_._currentRenderer2=null,_},SS.createElement=function(_,y,r){for(var $0=2;$0<arguments.length;$0++)h(arguments[$0]);$0={};var Y0=null;if(y!=null)for(R0 in Q4||!("__self"in y)||"key"in y||(Q4=!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")),V(y)&&(F(y.key),Y0=""+y.key),y)r9.call(y,R0)&&R0!=="key"&&R0!=="__self"&&R0!=="__source"&&($0[R0]=y[R0]);var E0=arguments.length-2;if(E0===1)$0.children=r;else if(1<E0){for(var A0=Array(E0),i0=0;i0<E0;i0++)A0[i0]=arguments[i0+2];Object.freeze&&Object.freeze(A0),$0.children=A0}if(_&&_.defaultProps)for(R0 in E0=_.defaultProps,E0)$0[R0]===void 0&&($0[R0]=E0[R0]);Y0&&A($0,typeof _==="function"?_.displayName||_.name||"Unknown":_);var R0=1e4>b0.recentlyCreatedOwnerStacks++;return I(_,Y0,$0,z(),R0?Error("react-stack-top-frame"):g2,R0?w1(T(_)):Rq)},SS.createRef=function(){var _={current:null};return Object.seal(_),_},SS.forwardRef=function(_){_!=null&&_.$$typeof===m1?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof _!=="function"?console.error("forwardRef requires a render function but was given %s.",_===null?"null":typeof _):_.length!==0&&_.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",_.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),_!=null&&_.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:u0,render:_},r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function($0){r=$0,_.name||_.displayName||(Object.defineProperty(_,"name",{value:$0}),_.displayName=$0)}}),y},SS.isValidElement=p,SS.lazy=function(_){_={_status:-1,_result:_};var y={$$typeof:T5,_payload:_,_init:X0},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 _._ioInfo=r,y._debugInfo=[{awaited:r}],y},SS.memo=function(_,y){_==null&&console.error("memo: The first argument must be a component. Instead received: %s",_===null?"null":typeof _),y={$$typeof:m1,type:_,compare:y===void 0?null:y};var r;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function($0){r=$0,_.name||_.displayName||(Object.defineProperty(_,"name",{value:$0}),_.displayName=$0)}}),y},SS.startTransition=function(_){var y=b0.T,r={};r._updatedFibers=new Set,b0.T=r;try{var $0=_(),Y0=b0.S;Y0!==null&&Y0(r,$0),typeof $0==="object"&&$0!==null&&typeof $0.then==="function"&&(b0.asyncTransitions++,$0.then(U0,U0),$0.then(H,A8))}catch(E0){A8(E0)}finally{y===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.")),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),b0.T=y}},SS.unstable_useCacheRefresh=function(){return d().useCacheRefresh()},SS.use=function(_){return d().use(_)},SS.useActionState=function(_,y,r){return d().useActionState(_,y,r)},SS.useCallback=function(_,y){return d().useCallback(_,y)},SS.useContext=function(_){var y=d();return _.$$typeof===H0&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(_)},SS.useDebugValue=function(_,y){return d().useDebugValue(_,y)},SS.useDeferredValue=function(_,y){return d().useDeferredValue(_,y)},SS.useEffect=function(_,y){return _==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useEffect(_,y)},SS.useEffectEvent=function(_){return d().useEffectEvent(_)},SS.useId=function(){return d().useId()},SS.useImperativeHandle=function(_,y,r){return d().useImperativeHandle(_,y,r)},SS.useInsertionEffect=function(_,y){return _==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useInsertionEffect(_,y)},SS.useLayoutEffect=function(_,y){return _==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),d().useLayoutEffect(_,y)},SS.useMemo=function(_,y){return d().useMemo(_,y)},SS.useOptimistic=function(_,y){return d().useOptimistic(_,y)},SS.useReducer=function(_,y,r){return d().useReducer(_,y,r)},SS.useRef=function(_){return d().useRef(_)},SS.useState=function(_){return d().useState(_)},SS.useSyncExternalStore=function(_,y,r){return d().useSyncExternalStore(_,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 kz=R2((DS)=>{var qB=e(A1());(function(){function Q(){}function G(T){return""+T}function q(T,z,C){var V=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{G(V);var A=!1}catch(O){A=!0}return A&&(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&&V[Symbol.toStringTag]||V.constructor.name||"Object"),G(V)),{$$typeof:F,key:V==null?null:""+V,children:T,containerInfo:z,implementation:C}}function X(T,z){if(T==="font")return"";if(typeof z==="string")return z==="use-credentials"?z:""}function N(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":'something with type "'+typeof T+'"'}function B(T){return T===null?"`null`":T===void 0?"`undefined`":T===""?"an empty string":typeof T==="string"?JSON.stringify(T):typeof T==="number"?"`"+T+"`":'something with type "'+typeof T+'"'}function H(){var T=W.H;return T===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
14
  1. You might have mismatching versions of React and the renderer (such as React DOM)
15
15
  2. You might be breaking the Rules of Hooks
16
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.`),T}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"),R=fU.__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"),VP.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,VP.createPortal=function(T,z){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!z||z.nodeType!==1&&z.nodeType!==9&&z.nodeType!==11)throw Error("Target container is not a DOM element.");return q(T,z,null,L)},VP.flushSync=function(T){var z=R.T,L=M.p;try{if(R.T=null,M.p=2,T)return T()}finally{R.T=z,M.p=L,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.")}},VP.preconnect=function(T,z){typeof T==="string"&&T?z!=null&&typeof z!=="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(z)):z!=null&&typeof z.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.",U(z.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",U(T)),typeof T==="string"&&(z?(z=z.crossOrigin,z=typeof z==="string"?z==="use-credentials"?z:"":void 0):z=null,M.d.C(T,z))},VP.prefetchDNS=function(T){if(typeof T!=="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",U(T));else if(1<arguments.length){var z=arguments[1];typeof z==="object"&&z.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(z)):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(z))}typeof T==="string"&&M.d.D(T)},VP.preinit=function(T,z){if(typeof T==="string"&&T?z==null||typeof z!=="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(z)):z.as!=="style"&&z.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(z.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",U(T)),typeof T==="string"&&z&&typeof z.as==="string"){var L=z.as,P=Y(L,z.crossOrigin),I=typeof z.integrity==="string"?z.integrity:void 0,A=typeof z.fetchPriority==="string"?z.fetchPriority:void 0;L==="style"?M.d.S(T,typeof z.precedence==="string"?z.precedence:void 0,{crossOrigin:P,integrity:I,fetchPriority:A}):L==="script"&&M.d.X(T,{crossOrigin:P,integrity:I,fetchPriority:A,nonce:typeof z.nonce==="string"?z.nonce:void 0})}},VP.preinitModule=function(T,z){var L="";if(typeof T==="string"&&T||(L+=" The `href` argument encountered was "+U(T)+"."),z!==void 0&&typeof z!=="object"?L+=" The `options` argument encountered was "+U(z)+".":z&&("as"in z)&&z.as!=="script"&&(L+=" The `as` option encountered was "+K(z.as)+"."),L)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",L);else switch(L=z&&typeof z.as==="string"?z.as:"script",L){case"script":break;default:L=K(L),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)',L,T)}if(typeof T==="string")if(typeof z==="object"&&z!==null){if(z.as==null||z.as==="script")L=Y(z.as,z.crossOrigin),M.d.M(T,{crossOrigin:L,integrity:typeof z.integrity==="string"?z.integrity:void 0,nonce:typeof z.nonce==="string"?z.nonce:void 0})}else z==null&&M.d.M(T)},VP.preload=function(T,z){var L="";if(typeof T==="string"&&T||(L+=" The `href` argument encountered was "+U(T)+"."),z==null||typeof z!=="object"?L+=" The `options` argument encountered was "+U(z)+".":typeof z.as==="string"&&z.as||(L+=" The `as` option encountered was "+U(z.as)+"."),L&&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',L),typeof T==="string"&&typeof z==="object"&&z!==null&&typeof z.as==="string"){L=z.as;var P=Y(L,z.crossOrigin);M.d.L(T,L,{crossOrigin:P,integrity:typeof z.integrity==="string"?z.integrity:void 0,nonce:typeof z.nonce==="string"?z.nonce:void 0,type:typeof z.type==="string"?z.type:void 0,fetchPriority:typeof z.fetchPriority==="string"?z.fetchPriority:void 0,referrerPolicy:typeof z.referrerPolicy==="string"?z.referrerPolicy:void 0,imageSrcSet:typeof z.imageSrcSet==="string"?z.imageSrcSet:void 0,imageSizes:typeof z.imageSizes==="string"?z.imageSizes:void 0,media:typeof z.media==="string"?z.media:void 0})}},VP.preloadModule=function(T,z){var L="";typeof T==="string"&&T||(L+=" The `href` argument encountered was "+U(T)+"."),z!==void 0&&typeof z!=="object"?L+=" The `options` argument encountered was "+U(z)+".":z&&("as"in z)&&typeof z.as!=="string"&&(L+=" The `as` option encountered was "+U(z.as)+"."),L&&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',L),typeof T==="string"&&(z?(L=Y(z.as,z.crossOrigin),M.d.m(T,{as:typeof z.as==="string"&&z.as!=="script"?z.as:void 0,crossOrigin:L,integrity:typeof z.integrity==="string"?z.integrity:void 0})):M.d.m(T))},VP.requestFormReset=function(T){M.d.r(T)},VP.unstable_batchedUpdates=function(T,z){return T(z)},VP.useFormState=function(T,z,L){return H().useFormState(T,z,L)},VP.useFormStatus=function(){return H().useHostTransitionStatus()},VP.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var uw=Z2((gS,xw)=>{var EP=R0(hw());xw.exports=EP});var mw=Z2((PP)=>{var i0=R0(gw()),v9=R0(e1()),yU=R0(uw());(function(){function Q($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function J($,Z,G,X){if(G>=Z.length)return X;var N=Z[G],B=c1($)?$.slice():y0({},$);return B[N]=J($[N],Z,G+1,X),B}function q($,Z,G){if(Z.length!==G.length)console.warn("copyWithRename() expects paths of the same length");else{for(var X=0;X<G.length-1;X++)if(Z[X]!==G[X]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return Y($,Z,G,0)}}function Y($,Z,G,X){var N=Z[X],B=c1($)?$.slice():y0({},$);return X+1===Z.length?(B[G[X]]=B[N],c1(B)?B.splice(N,1):delete B[N]):B[N]=Y($[N],Z,G,X+1),B}function U($,Z,G){var X=Z[G],N=c1($)?$.slice():y0({},$);if(G+1===Z.length)return c1(N)?N.splice(X,1):delete N[X],N;return N[X]=U($[X],Z,G+1),N}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 R(){}function T(){}function z($){var Z=[];return $.forEach(function(G){Z.push(G)}),Z.sort().join(", ")}function L($,Z,G,X){return new QL($,Z,G,X)}function P($,Z){$.context===b6&&(ZY($.current,2,Z,$,null,null),p$())}function I($,Z){if(B4!==null){var G=Z.staleFamilies;Z=Z.updatedFamilies,A7(),dK($.current,Z,G),p$()}}function A($){B4=$}function C($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function g($){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 m($){if($.tag===13){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function o($){if($.tag===31){var Z=$.memoizedState;if(Z===null&&($=$.alternate,$!==null&&(Z=$.memoizedState)),Z!==null)return Z.dehydrated}return null}function a($){if(g($)!==$)throw Error("Unable to find node on an unmounted component.")}function s($){var Z=$.alternate;if(!Z){if(Z=g($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var G=$,X=Z;;){var N=G.return;if(N===null)break;var B=N.alternate;if(B===null){if(X=N.return,X!==null){G=X;continue}break}if(N.child===B.child){for(B=N.child;B;){if(B===G)return a(N),$;if(B===X)return a(N),Z;B=B.sibling}throw Error("Unable to find node on an unmounted component.")}if(G.return!==X.return)G=N,X=B;else{for(var W=!1,w=N.child;w;){if(w===G){W=!0,G=N,X=B;break}if(w===X){W=!0,X=N,G=B;break}w=w.sibling}if(!W){for(w=B.child;w;){if(w===G){W=!0,G=B,X=N;break}if(w===X){W=!0,X=B,G=N;break}w=w.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!==X)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 Q0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=Q0($),Z!==null)return Z;$=$.sibling}return null}function p($){if($===null||typeof $!=="object")return null;return $=oM&&$[oM]||$["@@iterator"],typeof $==="function"?$:null}function i($){if($==null)return null;if(typeof $==="function")return $.$$typeof===EV?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case a$:return"Fragment";case YY:return"Profiler";case kG:return"StrictMode";case NY:return"Suspense";case KY:return"SuspenseList";case BY: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 o$:return"Portal";case q8:return $.displayName||"Context";case UY:return($._context.displayName||"Context")+".Consumer";case u7:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case bG:return Z=$.displayName||null,Z!==null?Z:i($.type)||"Memo";case i5: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===kG?"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 N0($){return{current:$}}function w0($,Z){0>b8?console.error("Unexpected pop."):(Z!==MY[b8]&&console.error("Unexpected Fiber popped."),$.current=HY[b8],HY[b8]=null,MY[b8]=null,b8--)}function z0($,Z,G){b8++,HY[b8]=$.current,MY[b8]=G,$.current=Z}function C0($){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){z0(D6,Z,$),z0(m7,$,$),z0(O6,null,$);var G=Z.nodeType;switch(G){case 9:case 11:G=G===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?zM(Z):n8:n8;break;default:if(G=Z.tagName,Z=Z.namespaceURI)Z=zM(Z),Z=_M(Z,G);else switch(G){case"svg":Z=A9;break;case"math":Z=vJ;break;default:Z=n8}}G=G.toLowerCase(),G=MK(null,G),G={context:Z,ancestorInfo:G},w0(O6,$),z0(O6,G,$)}function J0($){w0(O6,$),w0(m7,$),w0(D6,$)}function K0(){return C0(O6.current)}function d0($){$.memoizedState!==null&&z0(fG,$,$);var Z=C0(O6.current),G=$.type,X=_M(Z.context,G);G=MK(Z.ancestorInfo,G),X={context:X,ancestorInfo:G},Z!==X&&(z0(m7,$,$),z0(O6,X,$))}function k0($){m7.current===$&&(w0(O6,$),w0(m7,$)),fG.current===$&&(w0(fG,$),vZ._currentValue=N$)}function S(){}function n(){if(d7===0){aM=console.log,iM=console.info,tM=console.warn,eM=console.error,$F=console.group,ZF=console.groupCollapsed,QF=console.groupEnd;var $={configurable:!0,enumerable:!0,value:S,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}d7++}function B0(){if(d7--,d7===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:y0({},$,{value:aM}),info:y0({},$,{value:iM}),warn:y0({},$,{value:tM}),error:y0({},$,{value:eM}),group:y0({},$,{value:$F}),groupCollapsed:y0({},$,{value:ZF}),groupEnd:y0({},$,{value:QF})})}0>d7&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function H0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),T}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=qB.__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"),DS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,DS.createPortal=function(T,z){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!z||z.nodeType!==1&&z.nodeType!==9&&z.nodeType!==11)throw Error("Target container is not a DOM element.");return q(T,z,null,C)},DS.flushSync=function(T){var z=W.T,C=M.p;try{if(W.T=null,M.p=2,T)return T()}finally{W.T=z,M.p=C,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.")}},DS.preconnect=function(T,z){typeof T==="string"&&T?z!=null&&typeof z!=="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.",B(z)):z!=null&&typeof z.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(z.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(T)),typeof T==="string"&&(z?(z=z.crossOrigin,z=typeof z==="string"?z==="use-credentials"?z:"":void 0):z=null,M.d.C(T,z))},DS.prefetchDNS=function(T){if(typeof T!=="string"||!T)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(T));else if(1<arguments.length){var z=arguments[1];typeof z==="object"&&z.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`.",B(z)):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`.",B(z))}typeof T==="string"&&M.d.D(T)},DS.preinit=function(T,z){if(typeof T==="string"&&T?z==null||typeof z!=="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.",B(z)):z.as!=="style"&&z.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".',B(z.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",N(T)),typeof T==="string"&&z&&typeof z.as==="string"){var C=z.as,V=X(C,z.crossOrigin),A=typeof z.integrity==="string"?z.integrity:void 0,O=typeof z.fetchPriority==="string"?z.fetchPriority:void 0;C==="style"?M.d.S(T,typeof z.precedence==="string"?z.precedence:void 0,{crossOrigin:V,integrity:A,fetchPriority:O}):C==="script"&&M.d.X(T,{crossOrigin:V,integrity:A,fetchPriority:O,nonce:typeof z.nonce==="string"?z.nonce:void 0})}},DS.preinitModule=function(T,z){var C="";if(typeof T==="string"&&T||(C+=" The `href` argument encountered was "+N(T)+"."),z!==void 0&&typeof z!=="object"?C+=" The `options` argument encountered was "+N(z)+".":z&&("as"in z)&&z.as!=="script"&&(C+=" The `as` option encountered was "+B(z.as)+"."),C)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",C);else switch(C=z&&typeof z.as==="string"?z.as:"script",C){case"script":break;default:C=B(C),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)',C,T)}if(typeof T==="string")if(typeof z==="object"&&z!==null){if(z.as==null||z.as==="script")C=X(z.as,z.crossOrigin),M.d.M(T,{crossOrigin:C,integrity:typeof z.integrity==="string"?z.integrity:void 0,nonce:typeof z.nonce==="string"?z.nonce:void 0})}else z==null&&M.d.M(T)},DS.preload=function(T,z){var C="";if(typeof T==="string"&&T||(C+=" The `href` argument encountered was "+N(T)+"."),z==null||typeof z!=="object"?C+=" The `options` argument encountered was "+N(z)+".":typeof z.as==="string"&&z.as||(C+=" The `as` option encountered was "+N(z.as)+"."),C&&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',C),typeof T==="string"&&typeof z==="object"&&z!==null&&typeof z.as==="string"){C=z.as;var V=X(C,z.crossOrigin);M.d.L(T,C,{crossOrigin:V,integrity:typeof z.integrity==="string"?z.integrity:void 0,nonce:typeof z.nonce==="string"?z.nonce:void 0,type:typeof z.type==="string"?z.type:void 0,fetchPriority:typeof z.fetchPriority==="string"?z.fetchPriority:void 0,referrerPolicy:typeof z.referrerPolicy==="string"?z.referrerPolicy:void 0,imageSrcSet:typeof z.imageSrcSet==="string"?z.imageSrcSet:void 0,imageSizes:typeof z.imageSizes==="string"?z.imageSizes:void 0,media:typeof z.media==="string"?z.media:void 0})}},DS.preloadModule=function(T,z){var C="";typeof T==="string"&&T||(C+=" The `href` argument encountered was "+N(T)+"."),z!==void 0&&typeof z!=="object"?C+=" The `options` argument encountered was "+N(z)+".":z&&("as"in z)&&typeof z.as!=="string"&&(C+=" The `as` option encountered was "+N(z.as)+"."),C&&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',C),typeof T==="string"&&(z?(C=X(z.as,z.crossOrigin),M.d.m(T,{as:typeof z.as==="string"&&z.as!=="script"?z.as:void 0,crossOrigin:C,integrity:typeof z.integrity==="string"?z.integrity:void 0})):M.d.m(T))},DS.requestFormReset=function(T){M.d.r(T)},DS.unstable_batchedUpdates=function(T,z){return T(z)},DS.useFormState=function(T,z,C){return H().useFormState(T,z,C)},DS.useFormStatus=function(){return H().useHostTransitionStatus()},DS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var yz=R2((iv,fz)=>{var jS=e(kz());fz.exports=jS});var gz=R2((vS)=>{var e0=e(bz()),Y$=e(A1()),XB=e(yz());(function(){function Q($,Z){for($=$.memoizedState;$!==null&&0<Z;)$=$.next,Z--;return $}function G($,Z,J,Y){if(J>=Z.length)return Y;var U=Z[J],K=i1($)?$.slice():m0({},$);return K[U]=G($[U],Z,J+1,Y),K}function q($,Z,J){if(Z.length!==J.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Y=0;Y<J.length-1;Y++)if(Z[Y]!==J[Y]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return X($,Z,J,0)}}function X($,Z,J,Y){var U=Z[Y],K=i1($)?$.slice():m0({},$);return Y+1===Z.length?(K[J[Y]]=K[U],i1(K)?K.splice(U,1):delete K[U]):K[U]=X($[U],Z,J,Y+1),K}function N($,Z,J){var Y=Z[J],U=i1($)?$.slice():m0({},$);if(J+1===Z.length)return i1(U)?U.splice(Y,1):delete U[Y],U;return U[Y]=N($[Y],Z,J+1),U}function B(){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 T(){}function z($){var Z=[];return $.forEach(function(J){Z.push(J)}),Z.sort().join(", ")}function C($,Z,J,Y){return new QL($,Z,J,Y)}function V($,Z){$.context===a8&&(RY($.current,2,Z,$,null,null),Y7())}function A($,Z){if(I6!==null){var J=Z.staleFamilies;Z=Z.updatedFamilies,l$(),TK($.current,Z,J),Y7()}}function O($){I6=$}function I($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function j($){var Z=$,J=$;if($.alternate)for(;Z.return;)Z=Z.return;else{$=Z;do Z=$,(Z.flags&4098)!==0&&(J=Z.return),$=Z.return;while($)}return Z.tag===3?J: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(j($)!==$)throw Error("Unable to find node on an unmounted component.")}function o($){var Z=$.alternate;if(!Z){if(Z=j($),Z===null)throw Error("Unable to find node on an unmounted component.");return Z!==$?null:$}for(var J=$,Y=Z;;){var U=J.return;if(U===null)break;var K=U.alternate;if(K===null){if(Y=U.return,Y!==null){J=Y;continue}break}if(U.child===K.child){for(K=U.child;K;){if(K===J)return s(U),$;if(K===Y)return s(U),Z;K=K.sibling}throw Error("Unable to find node on an unmounted component.")}if(J.return!==Y.return)J=U,Y=K;else{for(var w=!1,R=U.child;R;){if(R===J){w=!0,J=U,Y=K;break}if(R===Y){w=!0,Y=U,J=K;break}R=R.sibling}if(!w){for(R=K.child;R;){if(R===J){w=!0,J=K,Y=U;break}if(R===Y){w=!0,Y=K,J=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(J.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(J.tag!==3)throw Error("Unable to find node on an unmounted component.");return J.stateNode.current===J?$:Z}function Q0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $;for($=$.child;$!==null;){if(Z=Q0($),Z!==null)return Z;$=$.sibling}return null}function i($){if($===null||typeof $!=="object")return null;return $=IF&&$[IF]||$["@@iterator"],typeof $==="function"?$:null}function a($){if($==null)return null;if(typeof $==="function")return $.$$typeof===__?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case F7:return"Fragment";case _Y:return"Profiler";case JG:return"StrictMode";case IY:return"Suspense";case OY:return"SuspenseList";case EY: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 M7:return"Portal";case P4:return $.displayName||"Context";case VY:return($._context.displayName||"Context")+".Consumer";case ZZ:var Z=$.render;return $=$.displayName,$||($=Z.displayName||Z.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case GG:return Z=$.displayName||null,Z!==null?Z:a($.type)||"Memo";case N6:Z=$._payload,$=$._init;try{return a($(Z))}catch(J){}}return null}function X0($){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 a(Z);case 8:return Z===JG?"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 J=Z.length-1;0<=J;J--)if(typeof Z[J].name==="string")return Z[J].name}if($.return!==null)return d($.return)}return null}function U0($){return{current:$}}function P0($,Z){0>o4?console.error("Unexpected pop."):(Z!==SY[o4]&&console.error("Unexpected Fiber popped."),$.current=AY[o4],AY[o4]=null,SY[o4]=null,o4--)}function L0($,Z,J){o4++,AY[o4]=$.current,SY[o4]=J,$.current=Z}function D0($){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){L0(c8,Z,$),L0(QZ,$,$),L0(p8,null,$);var J=Z.nodeType;switch(J){case 9:case 11:J=J===9?"#document":"#fragment",Z=(Z=Z.documentElement)?(Z=Z.namespaceURI)?oM(Z):U8:U8;break;default:if(J=Z.tagName,Z=Z.namespaceURI)Z=oM(Z),Z=aM(Z,J);else switch(J){case"svg":Z=n7;break;case"math":Z=Q3;break;default:Z=U8}}J=J.toLowerCase(),J=pB(null,J),J={context:Z,ancestorInfo:J},P0(p8,$),L0(p8,J,$)}function q0($){P0(p8,$),P0(QZ,$),P0(c8,$)}function B0(){return D0(p8.current)}function l0($){$.memoizedState!==null&&L0(qG,$,$);var Z=D0(p8.current),J=$.type,Y=aM(Z.context,J);J=pB(Z.ancestorInfo,J),Y={context:Y,ancestorInfo:J},Z!==Y&&(L0(QZ,$,$),L0(p8,Y,$))}function h0($){QZ.current===$&&(P0(p8,$),P0(QZ,$)),qG.current===$&&(P0(qG,$),sZ._currentValue=I9)}function v(){}function n(){if(JZ===0){OF=console.log,EF=console.info,AF=console.warn,SF=console.error,DF=console.group,jF=console.groupCollapsed,vF=console.groupEnd;var $={configurable:!0,enumerable:!0,value:v,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}JZ++}function H0(){if(JZ--,JZ===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:m0({},$,{value:OF}),info:m0({},$,{value:EF}),warn:m0({},$,{value:AF}),error:m0({},$,{value:SF}),group:m0({},$,{value:DF}),groupCollapsed:m0({},$,{value:jF}),groupEnd:m0({},$,{value:vF})})}0>JZ&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function M0($){var Z=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=Z,$.startsWith(`Error: react-stack-top-frame
18
18
  `)&&($=$.slice(29)),Z=$.indexOf(`
19
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 b0($){if(FY===void 0)try{throw Error()}catch(G){var Z=G.stack.trim().match(/\n( *(at )?)/);FY=Z&&Z[1]||"",GF=-1<G.stack.indexOf(`
21
- at`)?" (<anonymous>)":-1<G.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+FY+$+GF}function j1($,Z){if(!$||WY)return"";var G=wY.get($);if(G!==void 0)return G;WY=!0,G=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var X=null;X=x.H,x.H=null,n();try{var N={DetermineComponentFrameRoot:function(){try{if(Z){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(t){var y=t}Reflect.construct($,[],D)}else{try{D.call()}catch(t){y=t}$.call(D.prototype)}}else{try{throw Error()}catch(t){y=t}(D=$())&&typeof D.catch==="function"&&D.catch(function(){})}}catch(t){if(t&&y&&typeof t.stack==="string")return[t.stack,y.stack]}return[null,null]}};N.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var B=Object.getOwnPropertyDescriptor(N.DetermineComponentFrameRoot,"name");B&&B.configurable&&Object.defineProperty(N.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var W=N.DetermineComponentFrameRoot(),w=W[0],_=W[1];if(w&&_){var V=w.split(`
23
- `),k=_.split(`
24
- `);for(W=B=0;B<V.length&&!V[B].includes("DetermineComponentFrameRoot");)B++;for(;W<k.length&&!k[W].includes("DetermineComponentFrameRoot");)W++;if(B===V.length||W===k.length)for(B=V.length-1,W=k.length-1;1<=B&&0<=W&&V[B]!==k[W];)W--;for(;1<=B&&0<=W;B--,W--)if(V[B]!==k[W]){if(B!==1||W!==1)do if(B--,W--,0>W||V[B]!==k[W]){var b=`
25
- `+V[B].replace(" at new "," at ");return $.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",$.displayName)),typeof $==="function"&&wY.set($,b),b}while(1<=B&&0<=W);break}}}finally{WY=!1,x.H=X,B0(),Error.prepareStackTrace=G}return V=(V=$?$.displayName||$.name:"")?b0(V):"",typeof $==="function"&&wY.set($,V),V}function I0($,Z){switch($.tag){case 26:case 27:case 5:return b0($.type);case 16:return b0("Lazy");case 13:return $.child!==Z&&Z!==null?b0("Suspense Fallback"):b0("Suspense");case 19:return b0("SuspenseList");case 0:case 15:return j1($.type,!1);case 11:return j1($.type.render,!1);case 1:return j1($.type,!0);case 31:return b0("Activity");default:return""}}function f1($){try{var Z="",G=null;do{Z+=I0($,G);var X=$._debugInfo;if(X)for(var N=X.length-1;0<=N;N--){var B=X[N];if(typeof B.name==="string"){var W=Z;$:{var{name:w,env:_,debugLocation:V}=B;if(V!=null){var k=H0(V),b=k.lastIndexOf(`
26
- `),D=b===-1?k:k.slice(b+1);if(D.indexOf(w)!==-1){var y=`
27
- `+D;break $}}y=b0(w+(_?" ["+_+"]":""))}Z=W+y}}G=$,$=$.return}while($);return Z}catch(t){return`
20
+ `,Z)),Z!==-1)$=$.slice(0,Z);else return"";return $}function u0($){if(DY===void 0)try{throw Error()}catch(J){var Z=J.stack.trim().match(/\n( *(at )?)/);DY=Z&&Z[1]||"",bF=-1<J.stack.indexOf(`
21
+ at`)?" (<anonymous>)":-1<J.stack.indexOf("@")?"@unknown:0:0":""}return`
22
+ `+DY+$+bF}function k1($,Z){if(!$||jY)return"";var J=vY.get($);if(J!==void 0)return J;jY=!0,J=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(t){var g=t}Reflect.construct($,[],S)}else{try{S.call()}catch(t){g=t}$.call(S.prototype)}}else{try{throw Error()}catch(t){g=t}(S=$())&&typeof S.catch==="function"&&S.catch(function(){})}}catch(t){if(t&&g&&typeof t.stack==="string")return[t.stack,g.stack]}return[null,null]}};U.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var K=Object.getOwnPropertyDescriptor(U.DetermineComponentFrameRoot,"name");K&&K.configurable&&Object.defineProperty(U.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=U.DetermineComponentFrameRoot(),R=w[0],P=w[1];if(R&&P){var L=R.split(`
23
+ `),k=P.split(`
24
+ `);for(w=K=0;K<L.length&&!L[K].includes("DetermineComponentFrameRoot");)K++;for(;w<k.length&&!k[w].includes("DetermineComponentFrameRoot");)w++;if(K===L.length||w===k.length)for(K=L.length-1,w=k.length-1;1<=K&&0<=w&&L[K]!==k[w];)w--;for(;1<=K&&0<=w;K--,w--)if(L[K]!==k[w]){if(K!==1||w!==1)do if(K--,w--,0>w||L[K]!==k[w]){var f=`
25
+ `+L[K].replace(" at new "," at ");return $.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",$.displayName)),typeof $==="function"&&vY.set($,f),f}while(1<=K&&0<=w);break}}}finally{jY=!1,x.H=Y,H0(),Error.prepareStackTrace=J}return L=(L=$?$.displayName||$.name:"")?u0(L):"",typeof $==="function"&&vY.set($,L),L}function j0($,Z){switch($.tag){case 26:case 27:case 5:return u0($.type);case 16:return u0("Lazy");case 13:return $.child!==Z&&Z!==null?u0("Suspense Fallback"):u0("Suspense");case 19:return u0("SuspenseList");case 0:case 15:return k1($.type,!1);case 11:return k1($.type.render,!1);case 1:return k1($.type,!0);case 31:return u0("Activity");default:return""}}function m1($){try{var Z="",J=null;do{Z+=j0($,J);var Y=$._debugInfo;if(Y)for(var U=Y.length-1;0<=U;U--){var K=Y[U];if(typeof K.name==="string"){var w=Z;$:{var{name:R,env:P,debugLocation:L}=K;if(L!=null){var k=M0(L),f=k.lastIndexOf(`
26
+ `),S=f===-1?k:k.slice(f+1);if(S.indexOf(R)!==-1){var g=`
27
+ `+S;break $}}g=u0(R+(P?" ["+P+"]":""))}Z=w+g}}J=$,$=$.return}while($);return Z}catch(t){return`
28
28
  Error generating stack: `+t.message+`
29
- `+t.stack}}function N5($){return($=$?$.displayName||$.name:"")?b0($):""}function P4(){if(t5===null)return null;var $=t5._debugOwner;return $!=null?Y0($):null}function VQ(){if(t5===null)return"";var $=t5;try{var Z="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Z+=b0($.type);break;case 13:Z+=b0("Suspense");break;case 19:Z+=b0("SuspenseList");break;case 31:Z+=b0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Z!==""||(Z+=N5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=N5($.type.render))}for(;$;)if(typeof $.tag==="number"){var G=$;$=G._debugOwner;var X=G._debugStack;if($&&X){var N=H0(X);N!==""&&(Z+=`
30
- `+N)}}else if($.debugStack!=null){var B=$.debugStack;($=$.owner)&&B&&(Z+=`
31
- `+H0(B))}else break;var W=Z}catch(w){W=`
32
- Error generating stack: `+w.message+`
33
- `+w.stack}return W}function G0($,Z,G,X,N,B,W){var w=t5;O$($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,G,X,N,B,W)):Z(G,X,N,B,W)}finally{O$(w)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function O$($){x.getCurrentStack=$===null?null:VQ,X8=!1,t5=$}function z2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function B6($){try{return s1($),!1}catch(Z){return!0}}function s1($){return""+$}function Y1($,Z){if(B6($))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,z2($)),s1($)}function Q7($,Z){if(B6($))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,z2($)),s1($)}function D0($){if(B6($))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.",z2($)),s1($)}function D$($){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{t$=Z.inject($),H5=Z}catch(G){console.error("React instrumentation encountered an error: %o.",G)}return Z.checkDCE?!0:!1}function H1($){if(typeof AV==="function"&&SV($),H5&&typeof H5.setStrictMode==="function")try{H5.setStrictMode(t$,$)}catch(Z){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",Z))}}function EQ($){return $>>>=0,$===0?32:31-(vV($)/kV|0)|0}function m4($){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 _2($,Z,G){var X=$.pendingLanes;if(X===0)return 0;var N=0,B=$.suspendedLanes,W=$.pingedLanes;$=$.warmLanes;var w=X&134217727;return w!==0?(X=w&~B,X!==0?N=m4(X):(W&=w,W!==0?N=m4(W):G||(G=w&~$,G!==0&&(N=m4(G))))):(w=X&~B,w!==0?N=m4(w):W!==0?N=m4(W):G||(G=X&~$,G!==0&&(N=m4(G)))),N===0?0:Z!==0&&Z!==N&&(Z&B)===0&&(B=N&-N,G=Z&-Z,B>=G||B===32&&(G&4194048)!==0)?Z:N}function L2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function Z3($,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 j$(){var $=hG;return hG<<=1,(hG&62914560)===0&&(hG=4194304),$}function A$($){for(var Z=[],G=0;31>G;G++)Z.push($);return Z}function H6($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function PQ($,Z,G,X,N,B){var W=$.pendingLanes;$.pendingLanes=G,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=G,$.entangledLanes&=G,$.errorRecoveryDisabledLanes&=G,$.shellSuspendCounter=0;var{entanglements:w,expirationTimes:_,hiddenUpdates:V}=$;for(G=W&~G;0<G;){var k=31-w5(G),b=1<<k;w[k]=0,_[k]=-1;var D=V[k];if(D!==null)for(V[k]=null,k=0;k<D.length;k++){var y=D[k];y!==null&&(y.lane&=-536870913)}G&=~b}X!==0&&V2($,X,0),B!==0&&N===0&&$.tag!==0&&($.suspendedLanes|=B&~(W&~Z))}function V2($,Z,G){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var X=31-w5(Z);$.entangledLanes|=Z,$.entanglements[X]=$.entanglements[X]|1073741824|G&261930}function E2($,Z){var G=$.entangledLanes|=Z;for($=$.entanglements;G;){var X=31-w5(G),N=1<<X;N&Z|$[X]&Z&&($[X]|=Z),G&=~N}}function P2($,Z){var G=Z&-Z;return G=(G&42)!==0?1:C2(G),(G&($.suspendedLanes|Z))!==0?0:G}function C2($){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 G7($,Z,G){if(U8)for($=$.pendingUpdatersLaneMap;0<G;){var X=31-w5(G),N=1<<X;$[X].add(Z),G&=~N}}function M6($,Z){if(U8)for(var{pendingUpdatersLaneMap:G,memoizedUpdaters:X}=$;0<Z;){var N=31-w5(Z);$=1<<N,N=G[N],0<N.size&&(N.forEach(function(B){var W=B.alternate;W!==null&&X.has(W)||X.add(B)}),N.clear()),Z&=~$}}function E($){return $&=-$,e5!==0&&e5<$?j4!==0&&j4<$?($&134217727)!==0?N8:xG:j4:e5}function f(){var $=Z1.p;if($!==0)return $;return $=window.event,$===void 0?N8:dM($.type)}function r($,Z){var G=Z1.p;try{return Z1.p=$,Z()}finally{Z1.p=G}}function e($){delete $[G5],delete $[R5],delete $[LY],delete $[bV],delete $[fV]}function q0($){var Z=$[G5];if(Z)return Z;for(var G=$.parentNode;G;){if(Z=G[A6]||G[G5]){if(G=Z.alternate,Z.child!==null||G!==null&&G.child!==null)for($=DM($);$!==null;){if(G=$[G5])return G;$=DM($)}return Z}$=G,G=$.parentNode}return null}function E0($){if($=$[G5]||$[A6]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function P0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function a0($){var Z=$[JF];return Z||(Z=$[JF]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function F0($){$[p7]=!0}function K5($,Z){d5($,Z),d5($+"Capture",Z)}function d5($,Z){m2[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),m2[$]=Z;var G=$.toLowerCase();VY[G]=$,$==="onDoubleClick"&&(VY.ondblclick=$);for($=0;$<Z.length;$++)qF.add(Z[$])}function F6($,Z){yV[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 J7($){if(D4.call(YF,$))return!0;if(D4.call(XF,$))return!1;if(gV.test($))return YF[$]=!0;return XF[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function tN($,Z,G){if(J7(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 Y1(G,Z),$===""+G?G:$}}function CQ($,Z,G){if(J7(Z))if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":$.removeAttribute(Z);return;case"boolean":var X=Z.toLowerCase().slice(0,5);if(X!=="data-"&&X!=="aria-"){$.removeAttribute(Z);return}}Y1(G,Z),$.setAttribute(Z,""+G)}}function IQ($,Z,G){if(G===null)$.removeAttribute(Z);else{switch(typeof G){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}Y1(G,Z),$.setAttribute(Z,""+G)}}function C8($,Z,G,X){if(X===null)$.removeAttribute(G);else{switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(G);return}Y1(X,G),$.setAttributeNS(Z,G,""+X)}}function X4($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return D0($),$;default:return""}}function eN($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function k_($,Z,G){var X=Object.getOwnPropertyDescriptor($.constructor.prototype,Z);if(!$.hasOwnProperty(Z)&&typeof X<"u"&&typeof X.get==="function"&&typeof X.set==="function"){var{get:N,set:B}=X;return Object.defineProperty($,Z,{configurable:!0,get:function(){return N.call(this)},set:function(W){D0(W),G=""+W,B.call(this,W)}}),Object.defineProperty($,Z,{enumerable:X.enumerable}),{getValue:function(){return G},setValue:function(W){D0(W),G=""+W},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function Q3($){if(!$._valueTracker){var Z=eN($)?"checked":"value";$._valueTracker=k_($,Z,""+$[Z])}}function $K($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var G=Z.getValue(),X="";return $&&(X=eN($)?$.checked?"true":"false":$.value),$=X,$!==G?(Z.setValue($),!0):!1}function OQ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function Y4($){return $.replace(hV,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function ZK($,Z){Z.checked===void 0||Z.defaultChecked===void 0||NF||(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",P4()||"A component",Z.type),NF=!0),Z.value===void 0||Z.defaultValue===void 0||UF||(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",P4()||"A component",Z.type),UF=!0)}function G3($,Z,G,X,N,B,W,w){if($.name="",W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"?(Y1(W,"type"),$.type=W):$.removeAttribute("type"),Z!=null)if(W==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+X4(Z)}else $.value!==""+X4(Z)&&($.value=""+X4(Z));else W!=="submit"&&W!=="reset"||$.removeAttribute("value");Z!=null?J3($,W,X4(Z)):G!=null?J3($,W,X4(G)):X!=null&&$.removeAttribute("value"),N==null&&B!=null&&($.defaultChecked=!!B),N!=null&&($.checked=N&&typeof N!=="function"&&typeof N!=="symbol"),w!=null&&typeof w!=="function"&&typeof w!=="symbol"&&typeof w!=="boolean"?(Y1(w,"name"),$.name=""+X4(w)):$.removeAttribute("name")}function QK($,Z,G,X,N,B,W,w){if(B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(Y1(B,"type"),$.type=B),Z!=null||G!=null){if(!(B!=="submit"&&B!=="reset"||Z!==void 0&&Z!==null)){Q3($);return}G=G!=null?""+X4(G):"",Z=Z!=null?""+X4(Z):G,w||Z===$.value||($.value=Z),$.defaultValue=Z}X=X!=null?X:N,X=typeof X!=="function"&&typeof X!=="symbol"&&!!X,$.checked=w?$.checked:!!X,$.defaultChecked=!!X,W!=null&&typeof W!=="function"&&typeof W!=="symbol"&&typeof W!=="boolean"&&(Y1(W,"name"),$.name=W),Q3($)}function J3($,Z,G){Z==="number"&&OQ($.ownerDocument)===$||$.defaultValue===""+G||($.defaultValue=""+G)}function GK($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?v9.Children.forEach(Z.children,function(G){G==null||typeof G==="string"||typeof G==="number"||typeof G==="bigint"||BF||(BF=!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||HF||(HF=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||KF||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),KF=!0)}function JK(){var $=P4();return $?`
34
-
35
- Check the render method of \``+$+"`.":""}function S$($,Z,G,X){if($=$.options,Z){Z={};for(var N=0;N<G.length;N++)Z["$"+G[N]]=!0;for(G=0;G<$.length;G++)N=Z.hasOwnProperty("$"+$[G].value),$[G].selected!==N&&($[G].selected=N),N&&X&&($[G].defaultSelected=!0)}else{G=""+X4(G),Z=null;for(N=0;N<$.length;N++){if($[N].value===G){$[N].selected=!0,X&&($[N].defaultSelected=!0);return}Z!==null||$[N].disabled||(Z=$[N])}Z!==null&&(Z.selected=!0)}}function qK($,Z){for($=0;$<FF.length;$++){var G=FF[$];if(Z[G]!=null){var X=c1(Z[G]);Z.multiple&&!X?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",G,JK()):!Z.multiple&&X&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",G,JK())}}Z.value===void 0||Z.defaultValue===void 0||MF||(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"),MF=!0)}function XK($,Z){Z.value===void 0||Z.defaultValue===void 0||WF||(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",P4()||"A component"),WF=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function YK($,Z,G){if(Z!=null&&(Z=""+X4(Z),Z!==$.value&&($.value=Z),G==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=G!=null?""+X4(G):""}function UK($,Z,G,X){if(Z==null){if(X!=null){if(G!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(c1(X)){if(1<X.length)throw Error("<textarea> can only have at most one child.");X=X[0]}G=X}G==null&&(G=""),Z=G}G=X4(Z),$.defaultValue=G,X=$.textContent,X===G&&X!==""&&X!==null&&($.value=X),Q3($)}function NK($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?NK($.children[0],Z):$}function p5($){return" "+" ".repeat($)}function v$($){return"+ "+" ".repeat($)}function I2($){return"- "+" ".repeat($)}function KK($){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 q7($,Z){return wF.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function DQ($,Z,G){var X=120-2*G;if(Z===null)return v$(G)+q7($,X)+`
36
- `;if(typeof Z==="string"){for(var N=0;N<Z.length&&N<$.length&&Z.charCodeAt(N)===$.charCodeAt(N);N++);return N>X-8&&10<N&&($="..."+$.slice(N-8),Z="..."+Z.slice(N-8)),v$(G)+q7($,X)+`
37
- `+I2(G)+q7(Z,X)+`
38
- `}return p5(G)+q7($,X)+`
39
- `}function q3($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,G){return G})}function X7($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if(c1($))return"[...]";if($.$$typeof===J8)return(Z=i($.type))?"<"+Z+">":"<...>";var G=q3($);if(G==="Object"){G="",Z-=2;for(var X in $)if($.hasOwnProperty(X)){var N=JSON.stringify(X);if(N!=='"'+X+'"'&&(X=N),Z-=X.length-2,N=X7($[X],15>Z?Z:15),Z-=N.length,0>Z){G+=G===""?"...":", ...";break}G+=(G===""?"":",")+X+":"+N}return"{"+G+"}"}return G;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function k$($,Z){return typeof $!=="string"||wF.test($)?"{"+X7($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function X3($,Z,G){var X=120-G.length-$.length,N=[],B;for(B in Z)if(Z.hasOwnProperty(B)&&B!=="children"){var W=k$(Z[B],120-G.length-B.length-1);X-=B.length+W.length+2,N.push(B+"="+W)}return N.length===0?G+"<"+$+`>
40
- `:0<X?G+"<"+$+" "+N.join(" ")+`>
41
- `:G+"<"+$+`
42
- `+G+" "+N.join(`
43
- `+G+" ")+`
44
- `+G+`>
45
- `}function b_($,Z,G){var X="",N=y0({},Z),B;for(B in $)if($.hasOwnProperty(B)){delete N[B];var W=120-2*G-B.length-2,w=X7($[B],W);Z.hasOwnProperty(B)?(W=X7(Z[B],W),X+=v$(G)+B+": "+w+`
46
- `,X+=I2(G)+B+": "+W+`
47
- `):X+=v$(G)+B+": "+w+`
48
- `}for(var _ in N)N.hasOwnProperty(_)&&($=X7(N[_],120-2*G-_.length-2),X+=I2(G)+_+": "+$+`
49
- `);return X}function f_($,Z,G,X){var N="",B=new Map;for(V in G)G.hasOwnProperty(V)&&B.set(V.toLowerCase(),V);if(B.size===1&&B.has("children"))N+=X3($,Z,p5(X));else{for(var W in Z)if(Z.hasOwnProperty(W)&&W!=="children"){var w=120-2*(X+1)-W.length-1,_=B.get(W.toLowerCase());if(_!==void 0){B.delete(W.toLowerCase());var V=Z[W];_=G[_];var k=k$(V,w);w=k$(_,w),typeof V==="object"&&V!==null&&typeof _==="object"&&_!==null&&q3(V)==="Object"&&q3(_)==="Object"&&(2<Object.keys(V).length||2<Object.keys(_).length||-1<k.indexOf("...")||-1<w.indexOf("..."))?N+=p5(X+1)+W+`={{
50
- `+b_(V,_,X+2)+p5(X+1)+`}}
51
- `:(N+=v$(X+1)+W+"="+k+`
52
- `,N+=I2(X+1)+W+"="+w+`
53
- `)}else N+=p5(X+1)+W+"="+k$(Z[W],w)+`
54
- `}B.forEach(function(b){if(b!=="children"){var D=120-2*(X+1)-b.length-1;N+=I2(X+1)+b+"="+k$(G[b],D)+`
55
- `}}),N=N===""?p5(X)+"<"+$+`>
56
- `:p5(X)+"<"+$+`
57
- `+N+p5(X)+`>
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;N+=DQ(B,""+$,X+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")N=$==null?N+DQ(""+Z,null,X+1):N+DQ(""+Z,void 0,X+1);return N}function BK($,Z){var G=KK($);if(G===null){G="";for($=$.child;$;)G+=BK($,Z),$=$.sibling;return G}return p5(Z)+"<"+G+`>
59
- `}function Y3($,Z){var G=NK($,Z);if(G!==$&&($.children.length!==1||$.children[0]!==G))return p5(Z)+`...
60
- `+Y3(G,Z+1);G="";var X=$.fiber._debugInfo;if(X)for(var N=0;N<X.length;N++){var B=X[N].name;typeof B==="string"&&(G+=p5(Z)+"<"+B+`>
61
- `,Z++)}if(X="",N=$.fiber.pendingProps,$.fiber.tag===6)X=DQ(N,$.serverProps,Z),Z++;else if(B=KK($.fiber),B!==null)if($.serverProps===void 0){X=Z;var W=120-2*X-B.length-2,w="";for(V in N)if(N.hasOwnProperty(V)&&V!=="children"){var _=k$(N[V],15);if(W-=V.length+_.length+2,0>W){w+=" ...";break}w+=" "+V+"="+_}X=p5(X)+"<"+B+w+`>
62
- `,Z++}else $.serverProps===null?(X=X3(B,N,v$(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."):(X=f_(B,N,$.serverProps,Z),Z++);var V="";N=$.fiber.child;for(B=0;N&&B<$.children.length;)W=$.children[B],W.fiber===N?(V+=Y3(W,Z),B++):V+=BK(N,Z),N=N.sibling;N&&0<$.children.length&&(V+=p5(Z)+`...
63
- `),N=$.serverTail,$.serverProps===null&&Z--;for($=0;$<N.length;$++)B=N[$],V=typeof B==="string"?V+(I2(Z)+q7(B,120-2*Z)+`
64
- `):V+X3(B.type,B.props,I2(Z));return G+X+V}function U3($){try{return`
65
-
66
- `+Y3($,0)}catch(Z){return""}}function HK($,Z,G){for(var X=Z,N=null,B=0;X;)X===$&&(B=0),N={fiber:X,children:N!==null?[N]:[],serverProps:X===Z?G:X===$?null:void 0,serverTail:[],distanceFromLeaf:B},B++,X=X.return;return N!==null?U3(N).replaceAll(/^[+-]/gm,">"):""}function MK($,Z){var G=y0({},$||TF),X={tag:Z};if(RF.indexOf(Z)!==-1&&(G.aTagInScope=null,G.buttonTagInScope=null,G.nobrTagInScope=null),uV.indexOf(Z)!==-1&&(G.pTagInButtonScope=null),xV.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(G.listItemTagAutoclosing=null,G.dlItemTagAutoclosing=null),G.current=X,Z==="form"&&(G.formTag=X),Z==="a"&&(G.aTagInScope=X),Z==="button"&&(G.buttonTagInScope=X),Z==="nobr"&&(G.nobrTagInScope=X),Z==="p"&&(G.pTagInButtonScope=X),Z==="li"&&(G.listItemTagAutoclosing=X),Z==="dd"||Z==="dt")G.dlItemTagAutoclosing=X;return Z==="#document"||Z==="html"?G.containerTagInScope=null:G.containerTagInScope||(G.containerTagInScope=X),$!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?G.implicitRootScope===!0&&(G.implicitRootScope=!1):G.implicitRootScope=!0,G}function FK($,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 mV.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 y_($,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 WK($,Z){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Z)return $}$=$.return}return null}function N3($,Z){Z=Z||TF;var G=Z.current;if(Z=(G=FK($,G&&G.tag,Z.implicitRootScope)?null:G)?null:y_($,Z),Z=G||Z,!Z)return!0;var X=Z.tag;if(Z=String(!!G)+"|"+$+"|"+X,uG[Z])return!1;uG[Z]=!0;var N=(Z=t5)?WK(Z.return,X):null,B=Z!==null&&N!==null?HK(N,Z,null):"",W="<"+$+">";return G?(G="",X==="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,X,G,B)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,W,X,B),Z&&($=Z.return,N===null||$===null||N===$&&$._debugOwner===Z._debugOwner||G0(N,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,X,W)})),!1}function jQ($,Z,G){if(G||FK("#text",Z,!1))return!0;if(G="#text|"+Z,uG[G])return!1;uG[G]=!0;var X=(G=t5)?WK(G,Z):null;return G=G!==null&&X!==null?HK(X,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 Y7($,Z){if(Z){var G=$.firstChild;if(G&&G===$.lastChild&&G.nodeType===3){G.nodeValue=Z;return}}$.textContent=Z}function g_($){return $.replace(cV,function(Z,G){return G.toUpperCase()})}function wK($,Z,G){var X=Z.indexOf("--")===0;X||(-1<Z.indexOf("-")?e$.hasOwnProperty(Z)&&e$[Z]||(e$[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,g_(Z.replace(pV,"ms-")))):dV.test(Z)?e$.hasOwnProperty(Z)&&e$[Z]||(e$[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!LF.test(G)||PY.hasOwnProperty(G)&&PY[G]||(PY[G]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,G.replace(LF,""))),typeof G==="number"&&(isNaN(G)?VF||(VF=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(G)||EF||(EF=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),G==null||typeof G==="boolean"||G===""?X?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":X?$.setProperty(Z,G):typeof G!=="number"||G===0||PF.has(Z)?Z==="float"?$.cssFloat=G:(Q7(G,Z),$[Z]=(""+G).trim()):$[Z]=G+"px"}function RK($,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 X={};if(G){for(var N in G)if(G.hasOwnProperty(N)&&!Z.hasOwnProperty(N))for(var B=EY[N]||[N],W=0;W<B.length;W++)X[B[W]]=N}for(var w in Z)if(Z.hasOwnProperty(w)&&(!G||G[w]!==Z[w]))for(N=EY[w]||[w],B=0;B<N.length;B++)X[N[B]]=w;w={};for(var _ in Z)for(N=EY[_]||[_],B=0;B<N.length;B++)w[N[B]]=_;_={};for(var V in X)if(N=X[V],(B=w[V])&&N!==B&&(W=N+","+B,!_[W])){_[W]=!0,W=console;var k=Z[N];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",N,B)}}for(var b in G)!G.hasOwnProperty(b)||Z!=null&&Z.hasOwnProperty(b)||(b.indexOf("--")===0?$.setProperty(b,""):b==="float"?$.cssFloat="":$[b]="");for(var D in Z)V=Z[D],Z.hasOwnProperty(D)&&G[D]!==V&&wK($,D,V)}else for(X in Z)Z.hasOwnProperty(X)&&wK($,X,Z[X])}function U7($){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 TK($){return lV.get($)||$}function h_($,Z){if(D4.call(Z9,Z)&&Z9[Z])return!0;if(sV.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=CF.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),Z9[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),Z9[Z]=!0}if(rV.test(Z)){if($=Z.toLowerCase(),$=CF.hasOwnProperty($)?$:null,$==null)return Z9[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),Z9[Z]=!0)}return!0}function x_($,Z){var G=[],X;for(X in Z)h_($,X)||G.push(X);Z=G.map(function(N){return"`"+N+"`"}).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 u_($,Z,G,X){if(D4.call(T5,Z)&&T5[Z])return!0;var N=Z.toLowerCase();if(N==="onfocusin"||N==="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."),T5[Z]=!0;if(typeof G==="function"&&($==="form"&&Z==="action"||$==="input"&&Z==="formAction"||$==="button"&&Z==="formAction"))return!0;if(X!=null){if($=X.possibleRegistrationNames,X.registrationNameDependencies.hasOwnProperty(Z))return!0;if(X=$.hasOwnProperty(N)?$[N]:null,X!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",Z,X),T5[Z]=!0;if(OF.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),T5[Z]=!0}else if(OF.test(Z))return nV.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),T5[Z]=!0;if(oV.test(Z)||aV.test(Z))return!0;if(N==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),T5[Z]=!0;if(N==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),T5[Z]=!0;if(N==="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),T5[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),T5[Z]=!0;if(dG.hasOwnProperty(N)){if(N=dG[N],N!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,N),T5[Z]=!0}else if(Z!==N)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,N),T5[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(N=Z.toLowerCase().slice(0,5),N==="data-"||N==="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),T5[Z]=!0}case"function":case"symbol":return T5[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),T5[Z]=!0}}return!0}function m_($,Z,G){var X=[],N;for(N in Z)u_($,N,Z[N],G)||X.push(N);Z=X.map(function(B){return"`"+B+"`"}).join(", "),X.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<X.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 N7($){return iV.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function I8(){}function K3($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function zK($){var Z=E0($);if(Z&&($=Z.stateNode)){var G=$[R5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(G3($,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;Y1(Z,"name"),G=G.querySelectorAll('input[name="'+Y4(""+Z)+'"][type="radio"]');for(Z=0;Z<G.length;Z++){var X=G[Z];if(X!==$&&X.form===$.form){var N=X[R5]||null;if(!N)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");G3(X,N.value,N.defaultValue,N.defaultValue,N.checked,N.defaultChecked,N.type,N.name)}}for(Z=0;Z<G.length;Z++)X=G[Z],X.form===$.form&&$K(X)}break $;case"textarea":YK($,G.value,G.defaultValue);break $;case"select":Z=G.value,Z!=null&&S$($,!!G.multiple,Z,!1)}}}function _K($,Z,G){if(CY)return $(Z,G);CY=!0;try{var X=$(Z);return X}finally{if(CY=!1,Q9!==null||G9!==null){if(p$(),Q9&&(Z=Q9,$=G9,G9=Q9=null,zK(Z),$))for(Z=0;Z<$.length;Z++)zK($[Z])}}}function K7($,Z){var G=$.stateNode;if(G===null)return null;var X=G[R5]||null;if(X===null)return null;G=X[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":(X=!X.disabled)||($=$.type,X=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!X;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 LK(){if(pG)return pG;var $,Z=OY,G=Z.length,X,N="value"in S6?S6.value:S6.textContent,B=N.length;for($=0;$<G&&Z[$]===N[$];$++);var W=G-$;for(X=1;X<=W&&Z[G-X]===N[B-X];X++);return pG=N.slice($,1<X?1-X:void 0)}function AQ($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function SQ(){return!0}function VK(){return!1}function I5($){function Z(G,X,N,B,W){this._reactName=G,this._targetInst=N,this.type=X,this.nativeEvent=B,this.target=W,this.currentTarget=null;for(var w in $)$.hasOwnProperty(w)&&(G=$[w],this[w]=G?G(B):B[w]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?SQ:VK,this.isPropagationStopped=VK,this}return y0(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=SQ)},stopPropagation:function(){var G=this.nativeEvent;G&&(G.stopPropagation?G.stopPropagation():typeof G.cancelBubble!=="unknown"&&(G.cancelBubble=!0),this.isPropagationStopped=SQ)},persist:function(){},isPersistent:SQ}),Z}function d_($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=KE[$])?!!Z[$]:!1}function B3(){return d_}function EK($,Z){switch($){case"keyup":return VE.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==SF;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function PK($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function p_($,Z){switch($){case"compositionend":return PK(Z);case"keypress":if(Z.which!==kF)return null;return fF=!0,bF;case"textInput":return $=Z.data,$===bF&&fF?null:$;default:return null}}function c_($,Z){if(J9)return $==="compositionend"||!SY&&EK($,Z)?($=LK(),pG=OY=S6=null,J9=!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 vF&&Z.locale!=="ko"?null:Z.data;default:return null}}function CK($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!PE[$.type]:Z==="textarea"?!0:!1}function l_($){if(!K8)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function IK($,Z,G,X){Q9?G9?G9.push(X):G9=[X]:Q9=X,Z=EG(Z,"onChange"),0<Z.length&&(G=new cG("onChange","change",null,G,X),$.push({event:G,listeners:Z}))}function r_($){UM($,0)}function vQ($){var Z=P0($);if($K(Z))return $}function OK($,Z){if($==="change")return Z}function DK(){o7&&(o7.detachEvent("onpropertychange",jK),a7=o7=null)}function jK($){if($.propertyName==="value"&&vQ(a7)){var Z=[];IK(Z,a7,$,K3($)),_K(r_,Z)}}function s_($,Z,G){$==="focusin"?(DK(),o7=Z,a7=G,o7.attachEvent("onpropertychange",jK)):$==="focusout"&&DK()}function n_($){if($==="selectionchange"||$==="keyup"||$==="keydown")return vQ(a7)}function o_($,Z){if($==="click")return vQ(Z)}function a_($,Z){if($==="input"||$==="change")return vQ(Z)}function i_($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function B7($,Z){if(z5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var G=Object.keys($),X=Object.keys(Z);if(G.length!==X.length)return!1;for(X=0;X<G.length;X++){var N=G[X];if(!D4.call(Z,N)||!z5($[N],Z[N]))return!1}return!0}function AK($){for(;$&&$.firstChild;)$=$.firstChild;return $}function SK($,Z){var G=AK($);$=0;for(var X;G;){if(G.nodeType===3){if(X=$+G.textContent.length,$<=Z&&X>=Z)return{node:G,offset:Z-$};$=X}$:{for(;G;){if(G.nextSibling){G=G.nextSibling;break $}G=G.parentNode}G=void 0}G=AK(G)}}function vK($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?vK($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function kK($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=OQ($.document);Z instanceof $.HTMLIFrameElement;){try{var G=typeof Z.contentWindow.location.href==="string"}catch(X){G=!1}if(G)$=Z.contentWindow;else break;Z=OQ($.document)}return Z}function H3($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function bK($,Z,G){var X=G.window===G?G.document:G.nodeType===9?G:G.ownerDocument;kY||q9==null||q9!==OQ(X)||(X=q9,("selectionStart"in X)&&H3(X)?X={start:X.selectionStart,end:X.selectionEnd}:(X=(X.ownerDocument&&X.ownerDocument.defaultView||window).getSelection(),X={anchorNode:X.anchorNode,anchorOffset:X.anchorOffset,focusNode:X.focusNode,focusOffset:X.focusOffset}),i7&&B7(i7,X)||(i7=X,X=EG(vY,"onSelect"),0<X.length&&(Z=new cG("onSelect","select",null,Z,G),$.push({event:Z,listeners:X}),Z.target=q9)))}function O2($,Z){var G={};return G[$.toLowerCase()]=Z.toLowerCase(),G["Webkit"+$]="webkit"+Z,G["Moz"+$]="moz"+Z,G}function D2($){if(bY[$])return bY[$];if(!X9[$])return $;var Z=X9[$],G;for(G in Z)if(Z.hasOwnProperty(G)&&G in gF)return bY[$]=Z[G];return $}function C4($,Z){dF.set($,Z),K5(Z,[$])}function t_($){for(var Z=rG,G=0;G<$.length;G++){var X=$[G];if(typeof X==="object"&&X!==null)if(c1(X)&&X.length===2&&typeof X[0]==="string"){if(Z!==rG&&Z!==xY)return gY;Z=xY}else return gY;else{if(typeof X==="function"||typeof X==="string"&&50<X.length||Z!==rG&&Z!==hY)return gY;Z=hY}}return Z}function M3($,Z,G,X){for(var N in $)D4.call($,N)&&N[0]!=="_"&&d4(N,$[N],Z,G,X)}function d4($,Z,G,X,N){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===J8){var B=i(Z.type)||"…",W=Z.key;Z=Z.props;var w=Object.keys(Z),_=w.length;if(W==null&&_===0){Z="<"+B+" />";break}if(3>X||_===1&&w[0]==="children"&&W==null){Z="<"+B+" … />";break}G.push([N+"  ".repeat(X)+$,"<"+B]),W!==null&&d4("key",W,G,X+1,N),$=!1;for(var V in Z)V==="children"?Z.children!=null&&(!c1(Z.children)||0<Z.children.length)&&($=!0):D4.call(Z,V)&&V[0]!=="_"&&d4(V,Z[V],G,X+1,N);G.push(["",$?">…</"+B+">":"/>"]);return}if(B=Object.prototype.toString.call(Z),B=B.slice(8,B.length-1),B==="Array"){if(V=t_(Z),V===hY||V===rG){Z=JSON.stringify(Z);break}else if(V===xY){G.push([N+"  ".repeat(X)+$,""]);for($=0;$<Z.length;$++)B=Z[$],d4(B[0],B[1],G,X+1,N);return}}if(B==="Promise"){if(Z.status==="fulfilled"){if(B=G.length,d4($,Z.value,G,X,N),G.length>B){G=G[B],G[1]="Promise<"+(G[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(B=G.length,d4($,Z.reason,G,X,N),G.length>B)){G=G[B],G[1]="Rejected Promise<"+G[1]+">";return}G.push(["  ".repeat(X)+$,"Promise"]);return}B==="Object"&&(V=Object.getPrototypeOf(Z))&&typeof V.constructor==="function"&&(B=V.constructor.name),G.push([N+"  ".repeat(X)+$,B==="Object"?3>X?"":"…":B]),3>X&&M3(Z,G,X+1,N);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===SE?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}G.push([N+"  ".repeat(X)+$,Z])}function fK($,Z,G,X){var N=!0;for(W in $)W in Z||(G.push([sG+"  ".repeat(X)+W,"…"]),N=!1);for(var B in Z)if(B in $){var W=$[B],w=Z[B];if(W!==w){if(X===0&&B==="children")N="  ".repeat(X)+B,G.push([sG+N,"…"],[nG+N,"…"]);else{if(!(3<=X)){if(typeof W==="object"&&typeof w==="object"&&W!==null&&w!==null&&W.$$typeof===w.$$typeof)if(w.$$typeof===J8){if(W.type===w.type&&W.key===w.key){W=i(w.type)||"…",N="  ".repeat(X)+B,W="<"+W+" … />",G.push([sG+N,W],[nG+N,W]),N=!1;continue}}else{var _=Object.prototype.toString.call(W),V=Object.prototype.toString.call(w);if(_===V&&(V==="[object Object]"||V==="[object Array]")){_=[lF+"  ".repeat(X)+B,V==="[object Array]"?"Array":""],G.push(_),V=G.length,fK(W,w,G,X+1)?V===G.length&&(_[1]="Referentially unequal but deeply equal objects. Consider memoization."):N=!1;continue}}else if(typeof W==="function"&&typeof w==="function"&&W.name===w.name&&W.length===w.length&&(_=Function.prototype.toString.call(W),V=Function.prototype.toString.call(w),_===V)){W=w.name===""?"() => {}":w.name+"() {}",G.push([lF+"  ".repeat(X)+B,W+" Referentially unequal function closure. Consider memoization."]);continue}}d4(B,W,G,X,sG),d4(B,w,G,X,nG)}N=!1}}else G.push([nG+"  ".repeat(X)+B,"…"]),N=!1;return N}function c5($){u0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function p4($,Z,G,X){w1&&(k6.start=Z,k6.end=G,f8.color="warning",f8.tooltipText=X,f8.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,X,k6)):performance.measure(X,k6))}function kQ($,Z,G){p4($,Z,G,"Reconnect")}function bQ($,Z,G,X,N){var B=d($);if(B!==null&&w1){var{alternate:W,actualDuration:w}=$;if(W===null||W.child!==$.child)for(var _=$.child;_!==null;_=_.sibling)w-=_.actualDuration;X=0.5>w?X?"tertiary-light":"primary-light":10>w?X?"tertiary":"primary":100>w?X?"tertiary-dark":"primary-dark":"error";var V=$.memoizedProps;w=$._debugTask,V!==null&&W!==null&&W.memoizedProps!==V?(_=[vE],V=fK(W.memoizedProps,V,_,0),1<_.length&&(V&&!v6&&(W.lanes&N)===0&&100<$.actualDuration?(v6=!0,_[0]=kE,f8.color="warning",f8.tooltipText=rF):(f8.color=X,f8.tooltipText=B),f8.properties=_,k6.start=Z,k6.end=G,w!=null?w.run(performance.measure.bind(performance,"​"+B,k6)):performance.measure("​"+B,k6))):w!=null?w.run(console.timeStamp.bind(console,B,Z,G,N4,void 0,X)):console.timeStamp(B,Z,G,N4,void 0,X)}}function F3($,Z,G,X){if(w1){var N=d($);if(N!==null){for(var B=null,W=[],w=0;w<X.length;w++){var _=X[w];B==null&&_.source!==null&&(B=_.source._debugTask),_=_.value,W.push(["Error",typeof _==="object"&&_!==null&&typeof _.message==="string"?String(_.message):String(_)])}$.key!==null&&d4("key",$.key,W,0,""),$.memoizedProps!==null&&M3($.memoizedProps,W,0,""),B==null&&(B=$._debugTask),$={start:Z,end:G,detail:{devtools:{color:"error",track:N4,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:W}}},B?B.run(performance.measure.bind(performance,"​"+N,$)):performance.measure("​"+N,$)}}}function c4($,Z,G,X,N){if(N!==null){if(w1){var B=d($);if(B!==null){X=[];for(var W=0;W<N.length;W++){var w=N[W].value;X.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$.key!==null&&d4("key",$.key,X,0,""),$.memoizedProps!==null&&M3($.memoizedProps,X,0,""),Z={start:Z,end:G,detail:{devtools:{color:"error",track:N4,tooltipText:"A lifecycle or effect errored",properties:X}}},($=$._debugTask)?$.run(performance.measure.bind(performance,"​"+B,Z)):performance.measure("​"+B,Z)}}}else B=d($),B!==null&&w1&&(N=1>X?"secondary-light":100>X?"secondary":500>X?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,B,Z,G,N4,void 0,N)):console.timeStamp(B,Z,G,N4,void 0,N))}function e_($,Z,G,X){if(w1&&!(Z<=$)){var N=(G&738197653)===G?"tertiary-dark":"primary-dark";G=(G&536870912)===G?"Prepared":(G&201326741)===G?"Hydrated":"Render",X?X.run(console.timeStamp.bind(console,G,$,Z,u0,g0,N)):console.timeStamp(G,$,Z,u0,g0,N)}}function yK($,Z,G,X){!w1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",X?X.run(console.timeStamp.bind(console,"Prewarm",$,Z,u0,g0,G)):console.timeStamp("Prewarm",$,Z,u0,g0,G))}function gK($,Z,G,X){!w1||Z<=$||(G=(G&738197653)===G?"tertiary-dark":"primary-dark",X?X.run(console.timeStamp.bind(console,"Suspended",$,Z,u0,g0,G)):console.timeStamp("Suspended",$,Z,u0,g0,G))}function $L($,Z,G,X,N,B){if(w1&&!(Z<=$)){G=[];for(var W=0;W<X.length;W++){var w=X[W].value;G.push(["Recoverable Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$={start:$,end:Z,detail:{devtools:{color:"primary-dark",track:u0,trackGroup:g0,tooltipText:N?"Hydration Failed":"Recovered after Error",properties:G}}},B?B.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function W3($,Z,G,X){!w1||Z<=$||(X?X.run(console.timeStamp.bind(console,"Errored",$,Z,u0,g0,"error")):console.timeStamp("Errored",$,Z,u0,g0,"error"))}function ZL($,Z,G,X){!w1||Z<=$||(X?X.run(console.timeStamp.bind(console,G,$,Z,u0,g0,"secondary-light")):console.timeStamp(G,$,Z,u0,g0,"secondary-light"))}function hK($,Z,G,X,N){if(w1&&!(Z<=$)){for(var B=[],W=0;W<G.length;W++){var w=G[W].value;B.push(["Error",typeof w==="object"&&w!==null&&typeof w.message==="string"?String(w.message):String(w)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:u0,trackGroup:g0,tooltipText:X?"Remaining Effects Errored":"Commit Errored",properties:B}}},N?N.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function H7($,Z,G){!w1||Z<=$||(G?G.run(console.timeStamp.bind(console,"Animating",$,Z,u0,g0,"secondary-dark")):console.timeStamp("Animating",$,Z,u0,g0,"secondary-dark"))}function fQ(){for(var $=Y9,Z=uY=Y9=0;Z<$;){var G=K4[Z];K4[Z++]=null;var X=K4[Z];K4[Z++]=null;var N=K4[Z];K4[Z++]=null;var B=K4[Z];if(K4[Z++]=null,X!==null&&N!==null){var W=X.pending;W===null?N.next=N:(N.next=W.next,W.next=N),X.pending=N}B!==0&&xK(G,N,B)}}function yQ($,Z,G,X){K4[Y9++]=$,K4[Y9++]=Z,K4[Y9++]=G,K4[Y9++]=X,uY|=X,$.lanes|=X,$=$.alternate,$!==null&&($.lanes|=X)}function w3($,Z,G,X){return yQ($,Z,G,X),gQ($)}function B5($,Z){return yQ($,null,null,Z),gQ($)}function xK($,Z,G){$.lanes|=G;var X=$.alternate;X!==null&&(X.lanes|=G);for(var N=!1,B=$.return;B!==null;)B.childLanes|=G,X=B.alternate,X!==null&&(X.childLanes|=G),B.tag===22&&($=B.stateNode,$===null||$._visibility&t7||(N=!0)),$=B,B=B.return;return $.tag===3?(B=$.stateNode,N&&Z!==null&&(N=31-w5(G),$=B.hiddenUpdates,X=$[N],X===null?$[N]=[Z]:X.push(Z),Z.lane=G|536870912),B):null}function gQ($){if(CZ>nE)throw G$=CZ=0,IZ=zU=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.");G$>oE&&(G$=0,IZ=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&&ZM($);for(var Z=$,G=Z.return;G!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&ZM($),Z=G,G=Z.return;return Z.tag===3?Z.stateNode:null}function j2($){if(B4===null)return $;var Z=B4($);return Z===void 0?$:Z.current}function R3($){if(B4===null)return $;var Z=B4($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=j2($.render),$.render!==Z)?(Z={$$typeof:u7,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function uK($,Z){if(B4===null)return!1;var G=$.elementType;Z=Z.type;var X=!1,N=typeof Z==="object"&&Z!==null?Z.$$typeof:null;switch($.tag){case 1:typeof Z==="function"&&(X=!0);break;case 0:typeof Z==="function"?X=!0:N===i5&&(X=!0);break;case 11:N===u7?X=!0:N===i5&&(X=!0);break;case 14:case 15:N===bG?X=!0:N===i5&&(X=!0);break;default:return!1}return X&&($=B4(G),$!==void 0&&$===B4(Z))?!0:!1}function mK($){B4!==null&&typeof WeakSet==="function"&&(U9===null&&(U9=new WeakSet),U9.add($))}function dK($,Z,G){do{var X=$,N=X.alternate,B=X.child,W=X.sibling,w=X.tag;X=X.type;var _=null;switch(w){case 0:case 15:case 1:_=X;break;case 11:_=X.render}if(B4===null)throw Error("Expected resolveFamily to be set during hot reload.");var V=!1;if(X=!1,_!==null&&(_=B4(_),_!==void 0&&(G.has(_)?X=!0:Z.has(_)&&(w===1?X=!0:V=!0))),U9!==null&&(U9.has($)||N!==null&&U9.has(N))&&(X=!0),X&&($._debugNeedsRemount=!0),X||V)N=B5($,2),N!==null&&C1(N,$,2);if(B===null||X||dK(B,Z,G),W===null)break;$=W}while(1)}function QL($,Z,G,X){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=X,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,sF||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function T3($){return $=$.prototype,!(!$||!$.isReactComponent)}function O8($,Z){var G=$.alternate;switch(G===null?(G=L($.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=j2($.type);break;case 1:G.type=j2($.type);break;case 11:G.type=R3($.type)}return G}function pK($,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 z3($,Z,G,X,N,B){var W=0,w=$;if(typeof $==="function")T3($)&&(W=1),w=j2(w);else if(typeof $==="string")W=K0(),W=BV($,G,W)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case BY:return Z=L(31,G,Z,N),Z.elementType=BY,Z.lanes=B,Z;case a$:return A2(G.children,N,B,Z);case kG:W=8,N|=M5,N|=A4;break;case YY:return $=G,X=N,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),Z=L(12,$,Z,X|j0),Z.elementType=YY,Z.lanes=B,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case NY:return Z=L(13,G,Z,N),Z.elementType=NY,Z.lanes=B,Z;case KY:return Z=L(19,G,Z,N),Z.elementType=KY,Z.lanes=B,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case q8:W=10;break $;case UY:W=9;break $;case u7:W=11,w=R3(w);break $;case bG:W=14;break $;case i5:W=16,w=null;break $}if(w="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)w+=" 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":c1($)?G="array":$!==void 0&&$.$$typeof===J8?(G="<"+(i($.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):G=typeof $,(W=X?Y0(X):null)&&(w+=`
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+"."+w)),w=null}return Z=L(W,G,Z,N),Z.elementType=$,Z.type=w,Z.lanes=B,Z._debugOwner=X,Z}function hQ($,Z,G){return Z=z3($.type,$.key,$.props,$._owner,Z,G),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function A2($,Z,G,X){return $=L(7,$,X,Z),$.lanes=G,$}function _3($,Z,G){return $=L(6,$,null,Z),$.lanes=G,$}function cK($){var Z=L(18,null,null,_0);return Z.stateNode=$,Z}function L3($,Z,G){return Z=L(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=G,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function l5($,Z){if(typeof $==="object"&&$!==null){var G=mY.get($);if(G!==void 0)return G;return Z={value:$,source:Z,stack:f1(Z)},mY.set($,Z),Z}return{value:$,source:Z,stack:f1(Z)}}function D8($,Z){W6(),N9[K9++]=e7,N9[K9++]=oG,oG=$,e7=Z}function lK($,Z,G){W6(),H4[M4++]=g8,H4[M4++]=h8,H4[M4++]=p2,p2=$;var X=g8;$=h8;var N=32-w5(X)-1;X&=~(1<<N),G+=1;var B=32-w5(Z)+N;if(30<B){var W=N-N%5;B=(X&(1<<W)-1).toString(32),X>>=W,N-=W,g8=1<<32-w5(Z)+N|G<<N|X,h8=B+$}else g8=1<<B|G<<N|X,h8=$}function V3($){W6(),$.return!==null&&(D8($,1),lK($,1,0))}function E3($){for(;$===oG;)oG=N9[--K9],N9[K9]=null,e7=N9[--K9],N9[K9]=null;for(;$===p2;)p2=H4[--M4],H4[M4]=null,h8=H4[--M4],H4[M4]=null,g8=H4[--M4],H4[M4]=null}function rK(){return W6(),p2!==null?{id:g8,overflow:h8}:null}function sK($,Z){W6(),H4[M4++]=g8,H4[M4++]=h8,H4[M4++]=p2,g8=Z.id,h8=Z.overflow,p2=$}function W6(){p0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function S2($,Z){if($.return===null){if($4===null)$4={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if($4.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");$4.distanceFromLeaf>Z&&($4.distanceFromLeaf=Z)}return $4}var G=S2($.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 nK(){p0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function xQ($,Z){B8||($=S2($,0),$.serverProps=null,Z!==null&&(Z=IM(Z),$.serverTail.push(Z)))}function w6($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,G="",X=$4;throw X!==null&&($4=null,G=U3(X)),M7(l5(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:
29
+ `+t.stack}}function T5($){return($=$?$.displayName||$.name:"")?u0($):""}function d6(){if(U6===null)return null;var $=U6._debugOwner;return $!=null?X0($):null}function rQ(){if(U6===null)return"";var $=U6;try{var Z="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:Z+=u0($.type);break;case 13:Z+=u0("Suspense");break;case 19:Z+=u0("SuspenseList");break;case 31:Z+=u0("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||Z!==""||(Z+=T5($.type));break;case 11:$._debugOwner||Z!==""||(Z+=T5($.type.render))}for(;$;)if(typeof $.tag==="number"){var J=$;$=J._debugOwner;var Y=J._debugStack;if($&&Y){var U=M0(Y);U!==""&&(Z+=`
30
+ `+U)}}else if($.debugStack!=null){var K=$.debugStack;($=$.owner)&&K&&(Z+=`
31
+ `+M0(K))}else break;var w=Z}catch(R){w=`
32
+ Error generating stack: `+R.message+`
33
+ `+R.stack}return w}function G0($,Z,J,Y,U,K,w){var R=U6;l9($);try{return $!==null&&$._debugTask?$._debugTask.run(Z.bind(null,J,Y,U,K,w)):Z(J,Y,U,K,w)}finally{l9(R)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function l9($){x.getCurrentStack=$===null?null:rQ,C4=!1,U6=$}function f2($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function E8($){try{return Q5($),!1}catch(Z){return!0}}function Q5($){return""+$}function B1($,Z){if(E8($))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,f2($)),Q5($)}function R$($,Z){if(E8($))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,f2($)),Q5($)}function b0($){if(E8($))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.",f2($)),Q5($)}function r9($){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{W7=Z.inject($),C5=Z}catch(J){console.error("React instrumentation encountered an error: %o.",J)}return Z.checkDCE?!0:!1}function w1($){if(typeof D_==="function"&&j_($),C5&&typeof C5.setStrictMode==="function")try{C5.setStrictMode(W7,$)}catch(Z){L4||(L4=!0,console.error("React instrumentation encountered an error: %o",Z))}}function sQ($){return $>>>=0,$===0?32:31-(v_($)/b_|0)|0}function Q4($){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 y2($,Z,J){var Y=$.pendingLanes;if(Y===0)return 0;var U=0,K=$.suspendedLanes,w=$.pingedLanes;$=$.warmLanes;var R=Y&134217727;return R!==0?(Y=R&~K,Y!==0?U=Q4(Y):(w&=R,w!==0?U=Q4(w):J||(J=R&~$,J!==0&&(U=Q4(J))))):(R=Y&~K,R!==0?U=Q4(R):w!==0?U=Q4(w):J||(J=Y&~$,J!==0&&(U=Q4(J)))),U===0?0:Z!==0&&Z!==U&&(Z&K)===0&&(K=U&-U,J=Z&-Z,K>=J||K===32&&(J&4194048)!==0)?Z:U}function g2($,Z){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&Z)===0}function Rq($,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 s9(){var $=NG;return NG<<=1,(NG&62914560)===0&&(NG=4194304),$}function n9($){for(var Z=[],J=0;31>J;J++)Z.push($);return Z}function A8($,Z){$.pendingLanes|=Z,Z!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function nQ($,Z,J,Y,U,K){var w=$.pendingLanes;$.pendingLanes=J,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=J,$.entangledLanes&=J,$.errorRecoveryDisabledLanes&=J,$.shellSuspendCounter=0;var{entanglements:R,expirationTimes:P,hiddenUpdates:L}=$;for(J=w&~J;0<J;){var k=31-E5(J),f=1<<k;R[k]=0,P[k]=-1;var S=L[k];if(S!==null)for(L[k]=null,k=0;k<S.length;k++){var g=S[k];g!==null&&(g.lane&=-536870913)}J&=~f}Y!==0&&h2($,Y,0),K!==0&&U===0&&$.tag!==0&&($.suspendedLanes|=K&~(w&~Z))}function h2($,Z,J){$.pendingLanes|=Z,$.suspendedLanes&=~Z;var Y=31-E5(Z);$.entangledLanes|=Z,$.entanglements[Y]=$.entanglements[Y]|1073741824|J&261930}function u2($,Z){var J=$.entangledLanes|=Z;for($=$.entanglements;J;){var Y=31-E5(J),U=1<<Y;U&Z|$[Y]&Z&&($[Y]|=Z),J&=~U}}function x2($,Z){var J=Z&-Z;return J=(J&42)!==0?1:m2(J),(J&($.suspendedLanes|Z))!==0?0:J}function m2($){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 T$($,Z,J){if(_4)for($=$.pendingUpdatersLaneMap;0<J;){var Y=31-E5(J),U=1<<Y;$[Y].add(Z),J&=~U}}function S8($,Z){if(_4)for(var{pendingUpdatersLaneMap:J,memoizedUpdaters:Y}=$;0<Z;){var U=31-E5(Z);$=1<<U,U=J[U],0<U.size&&(U.forEach(function(K){var w=K.alternate;w!==null&&Y.has(w)||Y.add(K)}),U.clear()),Z&=~$}}function _($){return $&=-$,B6!==0&&B6<$?s6!==0&&s6<$?($&134217727)!==0?V4:UG:s6:B6}function y(){var $=G1.p;if($!==0)return $;return $=window.event,$===void 0?V4:TF($.type)}function r($,Z){var J=G1.p;try{return G1.p=$,Z()}finally{G1.p=J}}function $0($){delete $[H5],delete $[A5],delete $[gY],delete $[k_],delete $[f_]}function Y0($){var Z=$[H5];if(Z)return Z;for(var J=$.parentNode;J;){if(Z=J[r8]||J[H5]){if(J=Z.alternate,Z.child!==null||J!==null&&J.child!==null)for($=GF($);$!==null;){if(J=$[H5])return J;$=GF($)}return Z}$=J,J=$.parentNode}return null}function E0($){if($=$[H5]||$[r8]){var Z=$.tag;if(Z===5||Z===6||Z===13||Z===31||Z===26||Z===27||Z===3)return $}return null}function A0($){var Z=$.tag;if(Z===5||Z===26||Z===27||Z===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function i0($){var Z=$[kF];return Z||(Z=$[kF]={hoistableStyles:new Map,hoistableScripts:new Map}),Z}function R0($){$[GZ]=!0}function z5($,Z){e5($,Z),e5($+"Capture",Z)}function e5($,Z){J9[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),J9[$]=Z;var J=$.toLowerCase();hY[J]=$,$==="onDoubleClick"&&(hY.ondblclick=$);for($=0;$<Z.length;$++)fF.add(Z[$])}function D8($,Z){y_[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 z$($){if(r6.call(gF,$))return!0;if(r6.call(yF,$))return!1;if(g_.test($))return gF[$]=!0;return yF[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function AB($,Z,J){if(z$(Z)){if(!$.hasAttribute(Z)){switch(typeof J){case"symbol":case"object":return J;case"function":return J;case"boolean":if(J===!1)return J}return J===void 0?void 0:null}if($=$.getAttribute(Z),$===""&&J===!0)return!0;return B1(J,Z),$===""+J?J:$}}function oQ($,Z,J){if(z$(Z))if(J===null)$.removeAttribute(Z);else{switch(typeof J){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}}B1(J,Z),$.setAttribute(Z,""+J)}}function aQ($,Z,J){if(J===null)$.removeAttribute(Z);else{switch(typeof J){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(Z);return}B1(J,Z),$.setAttribute(Z,""+J)}}function x4($,Z,J,Y){if(Y===null)$.removeAttribute(J);else{switch(typeof Y){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(J);return}B1(Y,J),$.setAttributeNS(Z,J,""+Y)}}function P6($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return b0($),$;default:return""}}function SB($){var Z=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(Z==="checkbox"||Z==="radio")}function bC($,Z,J){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:K}=Y;return Object.defineProperty($,Z,{configurable:!0,get:function(){return U.call(this)},set:function(w){b0(w),J=""+w,K.call(this,w)}}),Object.defineProperty($,Z,{enumerable:Y.enumerable}),{getValue:function(){return J},setValue:function(w){b0(w),J=""+w},stopTracking:function(){$._valueTracker=null,delete $[Z]}}}}function Tq($){if(!$._valueTracker){var Z=SB($)?"checked":"value";$._valueTracker=bC($,Z,""+$[Z])}}function DB($){if(!$)return!1;var Z=$._valueTracker;if(!Z)return!0;var J=Z.getValue(),Y="";return $&&(Y=SB($)?$.checked?"true":"false":$.value),$=Y,$!==J?(Z.setValue($),!0):!1}function iQ($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(Z){return $.body}}function C6($){return $.replace(h_,function(Z){return"\\"+Z.charCodeAt(0).toString(16)+" "})}function jB($,Z){Z.checked===void 0||Z.defaultChecked===void 0||uF||(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",d6()||"A component",Z.type),uF=!0),Z.value===void 0||Z.defaultValue===void 0||hF||(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",d6()||"A component",Z.type),hF=!0)}function zq($,Z,J,Y,U,K,w,R){if($.name="",w!=null&&typeof w!=="function"&&typeof w!=="symbol"&&typeof w!=="boolean"?(B1(w,"type"),$.type=w):$.removeAttribute("type"),Z!=null)if(w==="number"){if(Z===0&&$.value===""||$.value!=Z)$.value=""+P6(Z)}else $.value!==""+P6(Z)&&($.value=""+P6(Z));else w!=="submit"&&w!=="reset"||$.removeAttribute("value");Z!=null?Pq($,w,P6(Z)):J!=null?Pq($,w,P6(J)):Y!=null&&$.removeAttribute("value"),U==null&&K!=null&&($.defaultChecked=!!K),U!=null&&($.checked=U&&typeof U!=="function"&&typeof U!=="symbol"),R!=null&&typeof R!=="function"&&typeof R!=="symbol"&&typeof R!=="boolean"?(B1(R,"name"),$.name=""+P6(R)):$.removeAttribute("name")}function vB($,Z,J,Y,U,K,w,R){if(K!=null&&typeof K!=="function"&&typeof K!=="symbol"&&typeof K!=="boolean"&&(B1(K,"type"),$.type=K),Z!=null||J!=null){if(!(K!=="submit"&&K!=="reset"||Z!==void 0&&Z!==null)){Tq($);return}J=J!=null?""+P6(J):"",Z=Z!=null?""+P6(Z):J,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"&&(B1(w,"name"),$.name=w),Tq($)}function Pq($,Z,J){Z==="number"&&iQ($.ownerDocument)===$||$.defaultValue===""+J||($.defaultValue=""+J)}function bB($,Z){Z.value==null&&(typeof Z.children==="object"&&Z.children!==null?Y$.Children.forEach(Z.children,function(J){J==null||typeof J==="string"||typeof J==="number"||typeof J==="bigint"||mF||(mF=!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||dF||(dF=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Z.selected==null||xF||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),xF=!0)}function kB(){var $=d6();return $?`
34
+
35
+ Check the render method of \``+$+"`.":""}function o9($,Z,J,Y){if($=$.options,Z){Z={};for(var U=0;U<J.length;U++)Z["$"+J[U]]=!0;for(J=0;J<$.length;J++)U=Z.hasOwnProperty("$"+$[J].value),$[J].selected!==U&&($[J].selected=U),U&&Y&&($[J].defaultSelected=!0)}else{J=""+P6(J),Z=null;for(U=0;U<$.length;U++){if($[U].value===J){$[U].selected=!0,Y&&($[U].defaultSelected=!0);return}Z!==null||$[U].disabled||(Z=$[U])}Z!==null&&(Z.selected=!0)}}function fB($,Z){for($=0;$<cF.length;$++){var J=cF[$];if(Z[J]!=null){var Y=i1(Z[J]);Z.multiple&&!Y?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",J,kB()):!Z.multiple&&Y&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",J,kB())}}Z.value===void 0||Z.defaultValue===void 0||pF||(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"),pF=!0)}function yB($,Z){Z.value===void 0||Z.defaultValue===void 0||lF||(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",d6()||"A component"),lF=!0),Z.children!=null&&Z.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function gB($,Z,J){if(Z!=null&&(Z=""+P6(Z),Z!==$.value&&($.value=Z),J==null)){$.defaultValue!==Z&&($.defaultValue=Z);return}$.defaultValue=J!=null?""+P6(J):""}function hB($,Z,J,Y){if(Z==null){if(Y!=null){if(J!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(i1(Y)){if(1<Y.length)throw Error("<textarea> can only have at most one child.");Y=Y[0]}J=Y}J==null&&(J=""),Z=J}J=P6(Z),$.defaultValue=J,Y=$.textContent,Y===J&&Y!==""&&Y!==null&&($.value=Y),Tq($)}function uB($,Z){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-Z?uB($.children[0],Z):$}function $6($){return" "+" ".repeat($)}function a9($){return"+ "+" ".repeat($)}function d2($){return"- "+" ".repeat($)}function xB($){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 P$($,Z){return rF.test($)?($=JSON.stringify($),$.length>Z-2?8>Z?'{"..."}':"{"+$.slice(0,Z-7)+'..."}':"{"+$+"}"):$.length>Z?5>Z?'{"..."}':$.slice(0,Z-3)+"...":$}function tQ($,Z,J){var Y=120-2*J;if(Z===null)return a9(J)+P$($,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)),a9(J)+P$($,Y)+`
37
+ `+d2(J)+P$(Z,Y)+`
38
+ `}return $6(J)+P$($,Y)+`
39
+ `}function Cq($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(Z,J){return J})}function C$($,Z){switch(typeof $){case"string":return $=JSON.stringify($),$.length>Z?5>Z?'"..."':$.slice(0,Z-4)+'..."':$;case"object":if($===null)return"null";if(i1($))return"[...]";if($.$$typeof===z4)return(Z=a($.type))?"<"+Z+">":"<...>";var J=Cq($);if(J==="Object"){J="",Z-=2;for(var Y in $)if($.hasOwnProperty(Y)){var U=JSON.stringify(Y);if(U!=='"'+Y+'"'&&(Y=U),Z-=Y.length-2,U=C$($[Y],15>Z?Z:15),Z-=U.length,0>Z){J+=J===""?"...":", ...";break}J+=(J===""?"":",")+Y+":"+U}return"{"+J+"}"}return J;case"function":return(Z=$.displayName||$.name)?"function "+Z:"function";default:return String($)}}function i9($,Z){return typeof $!=="string"||rF.test($)?"{"+C$($,Z-2)+"}":$.length>Z-2?5>Z?'"..."':'"'+$.slice(0,Z-5)+'..."':'"'+$+'"'}function Lq($,Z,J){var Y=120-J.length-$.length,U=[],K;for(K in Z)if(Z.hasOwnProperty(K)&&K!=="children"){var w=i9(Z[K],120-J.length-K.length-1);Y-=K.length+w.length+2,U.push(K+"="+w)}return U.length===0?J+"<"+$+`>
40
+ `:0<Y?J+"<"+$+" "+U.join(" ")+`>
41
+ `:J+"<"+$+`
42
+ `+J+" "+U.join(`
43
+ `+J+" ")+`
44
+ `+J+`>
45
+ `}function kC($,Z,J){var Y="",U=m0({},Z),K;for(K in $)if($.hasOwnProperty(K)){delete U[K];var w=120-2*J-K.length-2,R=C$($[K],w);Z.hasOwnProperty(K)?(w=C$(Z[K],w),Y+=a9(J)+K+": "+R+`
46
+ `,Y+=d2(J)+K+": "+w+`
47
+ `):Y+=a9(J)+K+": "+R+`
48
+ `}for(var P in U)U.hasOwnProperty(P)&&($=C$(U[P],120-2*J-P.length-2),Y+=d2(J)+P+": "+$+`
49
+ `);return Y}function fC($,Z,J,Y){var U="",K=new Map;for(L in J)J.hasOwnProperty(L)&&K.set(L.toLowerCase(),L);if(K.size===1&&K.has("children"))U+=Lq($,Z,$6(Y));else{for(var w in Z)if(Z.hasOwnProperty(w)&&w!=="children"){var R=120-2*(Y+1)-w.length-1,P=K.get(w.toLowerCase());if(P!==void 0){K.delete(w.toLowerCase());var L=Z[w];P=J[P];var k=i9(L,R);R=i9(P,R),typeof L==="object"&&L!==null&&typeof P==="object"&&P!==null&&Cq(L)==="Object"&&Cq(P)==="Object"&&(2<Object.keys(L).length||2<Object.keys(P).length||-1<k.indexOf("...")||-1<R.indexOf("..."))?U+=$6(Y+1)+w+`={{
50
+ `+kC(L,P,Y+2)+$6(Y+1)+`}}
51
+ `:(U+=a9(Y+1)+w+"="+k+`
52
+ `,U+=d2(Y+1)+w+"="+R+`
53
+ `)}else U+=$6(Y+1)+w+"="+i9(Z[w],R)+`
54
+ `}K.forEach(function(f){if(f!=="children"){var S=120-2*(Y+1)-f.length-1;U+=d2(Y+1)+f+"="+i9(J[f],S)+`
55
+ `}}),U=U===""?$6(Y)+"<"+$+`>
56
+ `:$6(Y)+"<"+$+`
57
+ `+U+$6(Y)+`>
58
+ `}if($=J.children,Z=Z.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(K="",typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")K=""+Z;U+=tQ(K,""+$,Y+1)}else if(typeof Z==="string"||typeof Z==="number"||typeof Z==="bigint")U=$==null?U+tQ(""+Z,null,Y+1):U+tQ(""+Z,void 0,Y+1);return U}function mB($,Z){var J=xB($);if(J===null){J="";for($=$.child;$;)J+=mB($,Z),$=$.sibling;return J}return $6(Z)+"<"+J+`>
59
+ `}function _q($,Z){var J=uB($,Z);if(J!==$&&($.children.length!==1||$.children[0]!==J))return $6(Z)+`...
60
+ `+_q(J,Z+1);J="";var Y=$.fiber._debugInfo;if(Y)for(var U=0;U<Y.length;U++){var K=Y[U].name;typeof K==="string"&&(J+=$6(Z)+"<"+K+`>
61
+ `,Z++)}if(Y="",U=$.fiber.pendingProps,$.fiber.tag===6)Y=tQ(U,$.serverProps,Z),Z++;else if(K=xB($.fiber),K!==null)if($.serverProps===void 0){Y=Z;var w=120-2*Y-K.length-2,R="";for(L in U)if(U.hasOwnProperty(L)&&L!=="children"){var P=i9(U[L],15);if(w-=L.length+P.length+2,0>w){R+=" ...";break}R+=" "+L+"="+P}Y=$6(Y)+"<"+K+R+`>
62
+ `,Z++}else $.serverProps===null?(Y=Lq(K,U,a9(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=fC(K,U,$.serverProps,Z),Z++);var L="";U=$.fiber.child;for(K=0;U&&K<$.children.length;)w=$.children[K],w.fiber===U?(L+=_q(w,Z),K++):L+=mB(U,Z),U=U.sibling;U&&0<$.children.length&&(L+=$6(Z)+`...
63
+ `),U=$.serverTail,$.serverProps===null&&Z--;for($=0;$<U.length;$++)K=U[$],L=typeof K==="string"?L+(d2(Z)+P$(K,120-2*Z)+`
64
+ `):L+Lq(K.type,K.props,d2(Z));return J+Y+L}function Vq($){try{return`
65
+
66
+ `+_q($,0)}catch(Z){return""}}function dB($,Z,J){for(var Y=Z,U=null,K=0;Y;)Y===$&&(K=0),U={fiber:Y,children:U!==null?[U]:[],serverProps:Y===Z?J:Y===$?null:void 0,serverTail:[],distanceFromLeaf:K},K++,Y=Y.return;return U!==null?Vq(U).replaceAll(/^[+-]/gm,">"):""}function pB($,Z){var J=m0({},$||nF),Y={tag:Z};if(sF.indexOf(Z)!==-1&&(J.aTagInScope=null,J.buttonTagInScope=null,J.nobrTagInScope=null),x_.indexOf(Z)!==-1&&(J.pTagInButtonScope=null),u_.indexOf(Z)!==-1&&Z!=="address"&&Z!=="div"&&Z!=="p"&&(J.listItemTagAutoclosing=null,J.dlItemTagAutoclosing=null),J.current=Y,Z==="form"&&(J.formTag=Y),Z==="a"&&(J.aTagInScope=Y),Z==="button"&&(J.buttonTagInScope=Y),Z==="nobr"&&(J.nobrTagInScope=Y),Z==="p"&&(J.pTagInButtonScope=Y),Z==="li"&&(J.listItemTagAutoclosing=Y),Z==="dd"||Z==="dt")J.dlItemTagAutoclosing=Y;return Z==="#document"||Z==="html"?J.containerTagInScope=null:J.containerTagInScope||(J.containerTagInScope=Y),$!==null||Z!=="#document"&&Z!=="html"&&Z!=="body"?J.implicitRootScope===!0&&(J.implicitRootScope=!1):J.implicitRootScope=!0,J}function cB($,Z,J){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(J)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!J)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 m_.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 J||Z===null;case"html":return J&&Z==="#document"||Z===null;case"body":return J&&(Z==="#document"||Z==="html")||Z===null}return!0}function yC($,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 lB($,Z){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===Z)return $}$=$.return}return null}function Iq($,Z){Z=Z||nF;var J=Z.current;if(Z=(J=cB($,J&&J.tag,Z.implicitRootScope)?null:J)?null:yC($,Z),Z=J||Z,!Z)return!0;var Y=Z.tag;if(Z=String(!!J)+"|"+$+"|"+Y,BG[Z])return!1;BG[Z]=!0;var U=(Z=U6)?lB(Z.return,Y):null,K=Z!==null&&U!==null?dB(U,Z,null):"",w="<"+$+">";return J?(J="",Y==="table"&&$==="tr"&&(J+=" 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,J,K)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,w,Y,K),Z&&($=Z.return,U===null||$===null||U===$&&$._debugOwner===Z._debugOwner||G0(U,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,Y,w)})),!1}function eQ($,Z,J){if(J||cB("#text",Z,!1))return!0;if(J="#text|"+Z,BG[J])return!1;BG[J]=!0;var Y=(J=U6)?lB(J,Z):null;return J=J!==null&&Y!==null?dB(Y,J,J.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,J):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,J),!1}function L$($,Z){if(Z){var J=$.firstChild;if(J&&J===$.lastChild&&J.nodeType===3){J.nodeValue=Z;return}}$.textContent=Z}function gC($){return $.replace(c_,function(Z,J){return J.toUpperCase()})}function rB($,Z,J){var Y=Z.indexOf("--")===0;Y||(-1<Z.indexOf("-")?R7.hasOwnProperty(Z)&&R7[Z]||(R7[Z]=!0,console.error("Unsupported style property %s. Did you mean %s?",Z,gC(Z.replace(p_,"ms-")))):d_.test(Z)?R7.hasOwnProperty(Z)&&R7[Z]||(R7[Z]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",Z,Z.charAt(0).toUpperCase()+Z.slice(1))):!iF.test(J)||xY.hasOwnProperty(J)&&xY[J]||(xY[J]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,Z,J.replace(iF,""))),typeof J==="number"&&(isNaN(J)?tF||(tF=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",Z)):isFinite(J)||eF||(eF=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",Z)))),J==null||typeof J==="boolean"||J===""?Y?$.setProperty(Z,""):Z==="float"?$.cssFloat="":$[Z]="":Y?$.setProperty(Z,J):typeof J!=="number"||J===0||$w.has(Z)?Z==="float"?$.cssFloat=J:(R$(J,Z),$[Z]=(""+J).trim()):$[Z]=J+"px"}function sB($,Z,J){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,J!=null){if(Z){var Y={};if(J){for(var U in J)if(J.hasOwnProperty(U)&&!Z.hasOwnProperty(U))for(var K=uY[U]||[U],w=0;w<K.length;w++)Y[K[w]]=U}for(var R in Z)if(Z.hasOwnProperty(R)&&(!J||J[R]!==Z[R]))for(U=uY[R]||[R],K=0;K<U.length;K++)Y[U[K]]=R;R={};for(var P in Z)for(U=uY[P]||[P],K=0;K<U.length;K++)R[U[K]]=P;P={};for(var L in Y)if(U=Y[L],(K=R[L])&&U!==K&&(w=U+","+K,!P[w])){P[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,K)}}for(var f in J)!J.hasOwnProperty(f)||Z!=null&&Z.hasOwnProperty(f)||(f.indexOf("--")===0?$.setProperty(f,""):f==="float"?$.cssFloat="":$[f]="");for(var S in Z)L=Z[S],Z.hasOwnProperty(S)&&J[S]!==L&&rB($,S,L)}else for(Y in Z)Z.hasOwnProperty(Y)&&rB($,Y,Z[Y])}function _$($){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 nB($){return l_.get($)||$}function hC($,Z){if(r6.call(z7,Z)&&z7[Z])return!0;if(s_.test(Z)){if($="aria-"+Z.slice(4).toLowerCase(),$=Zw.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",Z),z7[Z]=!0;if(Z!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",Z,$),z7[Z]=!0}if(r_.test(Z)){if($=Z.toLowerCase(),$=Zw.hasOwnProperty($)?$:null,$==null)return z7[Z]=!0,!1;Z!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",Z,$),z7[Z]=!0)}return!0}function uC($,Z){var J=[],Y;for(Y in Z)hC($,Y)||J.push(Y);Z=J.map(function(U){return"`"+U+"`"}).join(", "),J.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$):1<J.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",Z,$)}function xC($,Z,J,Y){if(r6.call(S5,Z)&&S5[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."),S5[Z]=!0;if(typeof J==="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),S5[Z]=!0;if(Jw.test(Z))return console.error("Unknown event handler property `%s`. It will be ignored.",Z),S5[Z]=!0}else if(Jw.test(Z))return n_.test(Z)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",Z),S5[Z]=!0;if(o_.test(Z)||a_.test(Z))return!0;if(U==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),S5[Z]=!0;if(U==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),S5[Z]=!0;if(U==="is"&&J!==null&&J!==void 0&&typeof J!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof J),S5[Z]=!0;if(typeof J==="number"&&isNaN(J))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",Z),S5[Z]=!0;if(HG.hasOwnProperty(U)){if(U=HG[U],U!==Z)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",Z,U),S5[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),S5[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 J){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 J?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()}.',J,Z,Z,J,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.',J,Z,Z,J,Z,Z,Z),S5[Z]=!0}case"function":case"symbol":return S5[Z]=!0,!1;case"string":if(J==="false"||J==="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}?",J,Z,J==="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,J),S5[Z]=!0}}return!0}function mC($,Z,J){var Y=[],U;for(U in Z)xC($,U,Z[U],J)||Y.push(U);Z=Y.map(function(K){return"`"+K+"`"}).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 V$($){return i_.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function m4(){}function Oq($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function oB($){var Z=E0($);if(Z&&($=Z.stateNode)){var J=$[A5]||null;$:switch($=Z.stateNode,Z.type){case"input":if(zq($,J.value,J.defaultValue,J.defaultValue,J.checked,J.defaultChecked,J.type,J.name),Z=J.name,J.type==="radio"&&Z!=null){for(J=$;J.parentNode;)J=J.parentNode;B1(Z,"name"),J=J.querySelectorAll('input[name="'+C6(""+Z)+'"][type="radio"]');for(Z=0;Z<J.length;Z++){var Y=J[Z];if(Y!==$&&Y.form===$.form){var U=Y[A5]||null;if(!U)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");zq(Y,U.value,U.defaultValue,U.defaultValue,U.checked,U.defaultChecked,U.type,U.name)}}for(Z=0;Z<J.length;Z++)Y=J[Z],Y.form===$.form&&DB(Y)}break $;case"textarea":gB($,J.value,J.defaultValue);break $;case"select":Z=J.value,Z!=null&&o9($,!!J.multiple,Z,!1)}}}function aB($,Z,J){if(mY)return $(Z,J);mY=!0;try{var Y=$(Z);return Y}finally{if(mY=!1,P7!==null||C7!==null){if(Y7(),P7&&(Z=P7,$=C7,C7=P7=null,oB(Z),$))for(Z=0;Z<$.length;Z++)oB($[Z])}}}function I$($,Z){var J=$.stateNode;if(J===null)return null;var Y=J[A5]||null;if(Y===null)return null;J=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(J&&typeof J!=="function")throw Error("Expected `"+Z+"` listener to be a function, instead got a value of `"+typeof J+"` type.");return J}function iB(){if(MG)return MG;var $,Z=pY,J=Z.length,Y,U="value"in s8?s8.value:s8.textContent,K=U.length;for($=0;$<J&&Z[$]===U[$];$++);var w=J-$;for(Y=1;Y<=w&&Z[J-Y]===U[K-Y];Y++);return MG=U.slice($,1<Y?1-Y:void 0)}function $J($){var Z=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&Z===13&&($=13)):$=Z,$===10&&($=13),32<=$||$===13?$:0}function ZJ(){return!0}function tB(){return!1}function y5($){function Z(J,Y,U,K,w){this._reactName=J,this._targetInst=U,this.type=Y,this.nativeEvent=K,this.target=w,this.currentTarget=null;for(var R in $)$.hasOwnProperty(R)&&(J=$[R],this[R]=J?J(K):K[R]);return this.isDefaultPrevented=(K.defaultPrevented!=null?K.defaultPrevented:K.returnValue===!1)?ZJ:tB,this.isPropagationStopped=tB,this}return m0(Z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var J=this.nativeEvent;J&&(J.preventDefault?J.preventDefault():typeof J.returnValue!=="unknown"&&(J.returnValue=!1),this.isDefaultPrevented=ZJ)},stopPropagation:function(){var J=this.nativeEvent;J&&(J.stopPropagation?J.stopPropagation():typeof J.cancelBubble!=="unknown"&&(J.cancelBubble=!0),this.isPropagationStopped=ZJ)},persist:function(){},isPersistent:ZJ}),Z}function dC($){var Z=this.nativeEvent;return Z.getModifierState?Z.getModifierState($):($=BV[$])?!!Z[$]:!1}function Eq(){return dC}function eB($,Z){switch($){case"keyup":return LV.indexOf(Z.keyCode)!==-1;case"keydown":return Z.keyCode!==Yw;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $K($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function pC($,Z){switch($){case"compositionend":return $K(Z);case"keypress":if(Z.which!==Uw)return null;return Kw=!0,Bw;case"textInput":return $=Z.data,$===Bw&&Kw?null:$;default:return null}}function cC($,Z){if(L7)return $==="compositionend"||!sY&&eB($,Z)?($=iB(),MG=pY=s8=null,L7=!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 Nw&&Z.locale!=="ko"?null:Z.data;default:return null}}function ZK($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z==="input"?!!VV[$.type]:Z==="textarea"?!0:!1}function lC($){if(!I4)return!1;$="on"+$;var Z=$ in document;return Z||(Z=document.createElement("div"),Z.setAttribute($,"return;"),Z=typeof Z[$]==="function"),Z}function QK($,Z,J,Y){P7?C7?C7.push(Y):C7=[Y]:P7=Y,Z=sJ(Z,"onChange"),0<Z.length&&(J=new FG("onChange","change",null,J,Y),$.push({event:J,listeners:Z}))}function rC($){hM($,0)}function QJ($){var Z=A0($);if(DB(Z))return $}function JK($,Z){if($==="change")return Z}function GK(){BZ&&(BZ.detachEvent("onpropertychange",qK),KZ=BZ=null)}function qK($){if($.propertyName==="value"&&QJ(KZ)){var Z=[];QK(Z,KZ,$,Oq($)),aB(rC,Z)}}function sC($,Z,J){$==="focusin"?(GK(),BZ=Z,KZ=J,BZ.attachEvent("onpropertychange",qK)):$==="focusout"&&GK()}function nC($){if($==="selectionchange"||$==="keyup"||$==="keydown")return QJ(KZ)}function oC($,Z){if($==="click")return QJ(Z)}function aC($,Z){if($==="input"||$==="change")return QJ(Z)}function iC($,Z){return $===Z&&($!==0||1/$===1/Z)||$!==$&&Z!==Z}function O$($,Z){if(D5($,Z))return!0;if(typeof $!=="object"||$===null||typeof Z!=="object"||Z===null)return!1;var J=Object.keys($),Y=Object.keys(Z);if(J.length!==Y.length)return!1;for(Y=0;Y<J.length;Y++){var U=J[Y];if(!r6.call(Z,U)||!D5($[U],Z[U]))return!1}return!0}function XK($){for(;$&&$.firstChild;)$=$.firstChild;return $}function YK($,Z){var J=XK($);$=0;for(var Y;J;){if(J.nodeType===3){if(Y=$+J.textContent.length,$<=Z&&Y>=Z)return{node:J,offset:Z-$};$=Y}$:{for(;J;){if(J.nextSibling){J=J.nextSibling;break $}J=J.parentNode}J=void 0}J=XK(J)}}function NK($,Z){return $&&Z?$===Z?!0:$&&$.nodeType===3?!1:Z&&Z.nodeType===3?NK($,Z.parentNode):("contains"in $)?$.contains(Z):$.compareDocumentPosition?!!($.compareDocumentPosition(Z)&16):!1:!1}function UK($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var Z=iQ($.document);Z instanceof $.HTMLIFrameElement;){try{var J=typeof Z.contentWindow.location.href==="string"}catch(Y){J=!1}if(J)$=Z.contentWindow;else break;Z=iQ($.document)}return Z}function Aq($){var Z=$&&$.nodeName&&$.nodeName.toLowerCase();return Z&&(Z==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||Z==="textarea"||$.contentEditable==="true")}function BK($,Z,J){var Y=J.window===J?J.document:J.nodeType===9?J:J.ownerDocument;oY||_7==null||_7!==iQ(Y)||(Y=_7,("selectionStart"in Y)&&Aq(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}),HZ&&O$(HZ,Y)||(HZ=Y,Y=sJ(nY,"onSelect"),0<Y.length&&(Z=new FG("onSelect","select",null,Z,J),$.push({event:Z,listeners:Y}),Z.target=_7)))}function p2($,Z){var J={};return J[$.toLowerCase()]=Z.toLowerCase(),J["Webkit"+$]="webkit"+Z,J["Moz"+$]="moz"+Z,J}function c2($){if(aY[$])return aY[$];if(!V7[$])return $;var Z=V7[$],J;for(J in Z)if(Z.hasOwnProperty(J)&&J in Mw)return aY[$]=Z[J];return $}function p6($,Z){Tw.set($,Z),z5(Z,[$])}function tC($){for(var Z=WG,J=0;J<$.length;J++){var Y=$[J];if(typeof Y==="object"&&Y!==null)if(i1(Y)&&Y.length===2&&typeof Y[0]==="string"){if(Z!==WG&&Z!==ZN)return eY;Z=ZN}else return eY;else{if(typeof Y==="function"||typeof Y==="string"&&50<Y.length||Z!==WG&&Z!==$N)return eY;Z=$N}}return Z}function Sq($,Z,J,Y){for(var U in $)r6.call($,U)&&U[0]!=="_"&&J4(U,$[U],Z,J,Y)}function J4($,Z,J,Y,U){switch(typeof Z){case"object":if(Z===null){Z="null";break}else{if(Z.$$typeof===z4){var K=a(Z.type)||"…",w=Z.key;Z=Z.props;var R=Object.keys(Z),P=R.length;if(w==null&&P===0){Z="<"+K+" />";break}if(3>Y||P===1&&R[0]==="children"&&w==null){Z="<"+K+" … />";break}J.push([U+"  ".repeat(Y)+$,"<"+K]),w!==null&&J4("key",w,J,Y+1,U),$=!1;for(var L in Z)L==="children"?Z.children!=null&&(!i1(Z.children)||0<Z.children.length)&&($=!0):r6.call(Z,L)&&L[0]!=="_"&&J4(L,Z[L],J,Y+1,U);J.push(["",$?">…</"+K+">":"/>"]);return}if(K=Object.prototype.toString.call(Z),K=K.slice(8,K.length-1),K==="Array"){if(L=tC(Z),L===$N||L===WG){Z=JSON.stringify(Z);break}else if(L===ZN){J.push([U+"  ".repeat(Y)+$,""]);for($=0;$<Z.length;$++)K=Z[$],J4(K[0],K[1],J,Y+1,U);return}}if(K==="Promise"){if(Z.status==="fulfilled"){if(K=J.length,J4($,Z.value,J,Y,U),J.length>K){J=J[K],J[1]="Promise<"+(J[1]||"Object")+">";return}}else if(Z.status==="rejected"&&(K=J.length,J4($,Z.reason,J,Y,U),J.length>K)){J=J[K],J[1]="Rejected Promise<"+J[1]+">";return}J.push(["  ".repeat(Y)+$,"Promise"]);return}K==="Object"&&(L=Object.getPrototypeOf(Z))&&typeof L.constructor==="function"&&(K=L.constructor.name),J.push([U+"  ".repeat(Y)+$,K==="Object"?3>Y?"":"…":K]),3>Y&&Sq(Z,J,Y+1,U);return}case"function":Z=Z.name===""?"() => {}":Z.name+"() {}";break;case"string":Z=Z===jV?"…":JSON.stringify(Z);break;case"undefined":Z="undefined";break;case"boolean":Z=Z?"true":"false";break;default:Z=String(Z)}J.push([U+"  ".repeat(Y)+$,Z])}function KK($,Z,J,Y){var U=!0;for(w in $)w in Z||(J.push([RG+"  ".repeat(Y)+w,"…"]),U=!1);for(var K in Z)if(K in $){var w=$[K],R=Z[K];if(w!==R){if(Y===0&&K==="children")U="  ".repeat(Y)+K,J.push([RG+U,"…"],[TG+U,"…"]);else{if(!(3<=Y)){if(typeof w==="object"&&typeof R==="object"&&w!==null&&R!==null&&w.$$typeof===R.$$typeof)if(R.$$typeof===z4){if(w.type===R.type&&w.key===R.key){w=a(R.type)||"…",U="  ".repeat(Y)+K,w="<"+w+" … />",J.push([RG+U,w],[TG+U,w]),U=!1;continue}}else{var P=Object.prototype.toString.call(w),L=Object.prototype.toString.call(R);if(P===L&&(L==="[object Object]"||L==="[object Array]")){P=[Cw+"  ".repeat(Y)+K,L==="[object Array]"?"Array":""],J.push(P),L=J.length,KK(w,R,J,Y+1)?L===J.length&&(P[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&&(P=Function.prototype.toString.call(w),L=Function.prototype.toString.call(R),P===L)){w=R.name===""?"() => {}":R.name+"() {}",J.push([Cw+"  ".repeat(Y)+K,w+" Referentially unequal function closure. Consider memoization."]);continue}}J4(K,w,J,Y,RG),J4(K,R,J,Y,TG)}U=!1}}else J.push([TG+"  ".repeat(Y)+K,"…"]),U=!1;return U}function Z6($){c0=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function G4($,Z,J,Y){z1&&(o8.start=Z,o8.end=J,a4.color="warning",a4.tooltipText=Y,a4.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Y,o8)):performance.measure(Y,o8))}function JJ($,Z,J){G4($,Z,J,"Reconnect")}function GJ($,Z,J,Y,U){var K=d($);if(K!==null&&z1){var{alternate:w,actualDuration:R}=$;if(w===null||w.child!==$.child)for(var P=$.child;P!==null;P=P.sibling)R-=P.actualDuration;Y=0.5>R?Y?"tertiary-light":"primary-light":10>R?Y?"tertiary":"primary":100>R?Y?"tertiary-dark":"primary-dark":"error";var L=$.memoizedProps;R=$._debugTask,L!==null&&w!==null&&w.memoizedProps!==L?(P=[vV],L=KK(w.memoizedProps,L,P,0),1<P.length&&(L&&!n8&&(w.lanes&U)===0&&100<$.actualDuration?(n8=!0,P[0]=bV,a4.color="warning",a4.tooltipText=Lw):(a4.color=Y,a4.tooltipText=K),a4.properties=P,o8.start=Z,o8.end=J,R!=null?R.run(performance.measure.bind(performance,"​"+K,o8)):performance.measure("​"+K,o8))):R!=null?R.run(console.timeStamp.bind(console,K,Z,J,_6,void 0,Y)):console.timeStamp(K,Z,J,_6,void 0,Y)}}function Dq($,Z,J,Y){if(z1){var U=d($);if(U!==null){for(var K=null,w=[],R=0;R<Y.length;R++){var P=Y[R];K==null&&P.source!==null&&(K=P.source._debugTask),P=P.value,w.push(["Error",typeof P==="object"&&P!==null&&typeof P.message==="string"?String(P.message):String(P)])}$.key!==null&&J4("key",$.key,w,0,""),$.memoizedProps!==null&&Sq($.memoizedProps,w,0,""),K==null&&(K=$._debugTask),$={start:Z,end:J,detail:{devtools:{color:"error",track:_6,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:w}}},K?K.run(performance.measure.bind(performance,"​"+U,$)):performance.measure("​"+U,$)}}}function q4($,Z,J,Y,U){if(U!==null){if(z1){var K=d($);if(K!==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&&J4("key",$.key,Y,0,""),$.memoizedProps!==null&&Sq($.memoizedProps,Y,0,""),Z={start:Z,end:J,detail:{devtools:{color:"error",track:_6,tooltipText:"A lifecycle or effect errored",properties:Y}}},($=$._debugTask)?$.run(performance.measure.bind(performance,"​"+K,Z)):performance.measure("​"+K,Z)}}}else K=d($),K!==null&&z1&&(U=1>Y?"secondary-light":100>Y?"secondary":500>Y?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,K,Z,J,_6,void 0,U)):console.timeStamp(K,Z,J,_6,void 0,U))}function eC($,Z,J,Y){if(z1&&!(Z<=$)){var U=(J&738197653)===J?"tertiary-dark":"primary-dark";J=(J&536870912)===J?"Prepared":(J&201326741)===J?"Hydrated":"Render",Y?Y.run(console.timeStamp.bind(console,J,$,Z,c0,d0,U)):console.timeStamp(J,$,Z,c0,d0,U)}}function HK($,Z,J,Y){!z1||Z<=$||(J=(J&738197653)===J?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Prewarm",$,Z,c0,d0,J)):console.timeStamp("Prewarm",$,Z,c0,d0,J))}function MK($,Z,J,Y){!z1||Z<=$||(J=(J&738197653)===J?"tertiary-dark":"primary-dark",Y?Y.run(console.timeStamp.bind(console,"Suspended",$,Z,c0,d0,J)):console.timeStamp("Suspended",$,Z,c0,d0,J))}function $L($,Z,J,Y,U,K){if(z1&&!(Z<=$)){J=[];for(var w=0;w<Y.length;w++){var R=Y[w].value;J.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:c0,trackGroup:d0,tooltipText:U?"Hydration Failed":"Recovered after Error",properties:J}}},K?K.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function jq($,Z,J,Y){!z1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,"Errored",$,Z,c0,d0,"error")):console.timeStamp("Errored",$,Z,c0,d0,"error"))}function ZL($,Z,J,Y){!z1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,J,$,Z,c0,d0,"secondary-light")):console.timeStamp(J,$,Z,c0,d0,"secondary-light"))}function FK($,Z,J,Y,U){if(z1&&!(Z<=$)){for(var K=[],w=0;w<J.length;w++){var R=J[w].value;K.push(["Error",typeof R==="object"&&R!==null&&typeof R.message==="string"?String(R.message):String(R)])}$={start:$,end:Z,detail:{devtools:{color:"error",track:c0,trackGroup:d0,tooltipText:Y?"Remaining Effects Errored":"Commit Errored",properties:K}}},U?U.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function E$($,Z,J){!z1||Z<=$||(J?J.run(console.timeStamp.bind(console,"Animating",$,Z,c0,d0,"secondary-dark")):console.timeStamp("Animating",$,Z,c0,d0,"secondary-dark"))}function qJ(){for(var $=I7,Z=QN=I7=0;Z<$;){var J=V6[Z];V6[Z++]=null;var Y=V6[Z];V6[Z++]=null;var U=V6[Z];V6[Z++]=null;var K=V6[Z];if(V6[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}K!==0&&wK(J,U,K)}}function XJ($,Z,J,Y){V6[I7++]=$,V6[I7++]=Z,V6[I7++]=J,V6[I7++]=Y,QN|=Y,$.lanes|=Y,$=$.alternate,$!==null&&($.lanes|=Y)}function vq($,Z,J,Y){return XJ($,Z,J,Y),YJ($)}function P5($,Z){return XJ($,null,null,Z),YJ($)}function wK($,Z,J){$.lanes|=J;var Y=$.alternate;Y!==null&&(Y.lanes|=J);for(var U=!1,K=$.return;K!==null;)K.childLanes|=J,Y=K.alternate,Y!==null&&(Y.childLanes|=J),K.tag===22&&($=K.stateNode,$===null||$._visibility&MZ||(U=!0)),$=K,K=K.return;return $.tag===3?(K=$.stateNode,U&&Z!==null&&(U=31-E5(J),$=K.hiddenUpdates,Y=$[U],Y===null?$[U]=[Z]:Y.push(Z),Z.lane=J|536870912),K):null}function YJ($){if(xZ>nV)throw z9=xZ=0,mZ=fN=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.");z9>oV&&(z9=0,mZ=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&&jM($);for(var Z=$,J=Z.return;J!==null;)Z.alternate===null&&(Z.flags&4098)!==0&&jM($),Z=J,J=Z.return;return Z.tag===3?Z.stateNode:null}function l2($){if(I6===null)return $;var Z=I6($);return Z===void 0?$:Z.current}function bq($){if(I6===null)return $;var Z=I6($);return Z===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(Z=l2($.render),$.render!==Z)?(Z={$$typeof:ZZ,render:Z},$.displayName!==void 0&&(Z.displayName=$.displayName),Z):$:Z.current}function WK($,Z){if(I6===null)return!1;var J=$.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===N6&&(Y=!0);break;case 11:U===ZZ?Y=!0:U===N6&&(Y=!0);break;case 14:case 15:U===GG?Y=!0:U===N6&&(Y=!0);break;default:return!1}return Y&&($=I6(J),$!==void 0&&$===I6(Z))?!0:!1}function RK($){I6!==null&&typeof WeakSet==="function"&&(O7===null&&(O7=new WeakSet),O7.add($))}function TK($,Z,J){do{var Y=$,U=Y.alternate,K=Y.child,w=Y.sibling,R=Y.tag;Y=Y.type;var P=null;switch(R){case 0:case 15:case 1:P=Y;break;case 11:P=Y.render}if(I6===null)throw Error("Expected resolveFamily to be set during hot reload.");var L=!1;if(Y=!1,P!==null&&(P=I6(P),P!==void 0&&(J.has(P)?Y=!0:Z.has(P)&&(R===1?Y=!0:L=!0))),O7!==null&&(O7.has($)||U!==null&&O7.has(U))&&(Y=!0),Y&&($._debugNeedsRemount=!0),Y||L)U=P5($,2),U!==null&&D1(U,$,2);if(K===null||Y||TK(K,Z,J),w===null)break;$=w}while(1)}function QL($,Z,J,Y){this.tag=$,this.key=J,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,_w||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function kq($){return $=$.prototype,!(!$||!$.isReactComponent)}function d4($,Z){var J=$.alternate;switch(J===null?(J=C($.tag,Z,$.key,$.mode),J.elementType=$.elementType,J.type=$.type,J.stateNode=$.stateNode,J._debugOwner=$._debugOwner,J._debugStack=$._debugStack,J._debugTask=$._debugTask,J._debugHookTypes=$._debugHookTypes,J.alternate=$,$.alternate=J):(J.pendingProps=Z,J.type=$.type,J.flags=0,J.subtreeFlags=0,J.deletions=null,J.actualDuration=-0,J.actualStartTime=-1.1),J.flags=$.flags&65011712,J.childLanes=$.childLanes,J.lanes=$.lanes,J.child=$.child,J.memoizedProps=$.memoizedProps,J.memoizedState=$.memoizedState,J.updateQueue=$.updateQueue,Z=$.dependencies,J.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},J.sibling=$.sibling,J.index=$.index,J.ref=$.ref,J.refCleanup=$.refCleanup,J.selfBaseDuration=$.selfBaseDuration,J.treeBaseDuration=$.treeBaseDuration,J._debugInfo=$._debugInfo,J._debugNeedsRemount=$._debugNeedsRemount,J.tag){case 0:case 15:J.type=l2($.type);break;case 1:J.type=l2($.type);break;case 11:J.type=bq($.type)}return J}function zK($,Z){$.flags&=65011714;var J=$.alternate;return J===null?($.childLanes=0,$.lanes=Z,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=J.childLanes,$.lanes=J.lanes,$.child=J.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=J.memoizedProps,$.memoizedState=J.memoizedState,$.updateQueue=J.updateQueue,$.type=J.type,Z=J.dependencies,$.dependencies=Z===null?null:{lanes:Z.lanes,firstContext:Z.firstContext,_debugThenableState:Z._debugThenableState},$.selfBaseDuration=J.selfBaseDuration,$.treeBaseDuration=J.treeBaseDuration),$}function fq($,Z,J,Y,U,K){var w=0,R=$;if(typeof $==="function")kq($)&&(w=1),R=l2(R);else if(typeof $==="string")w=B0(),w=K_($,J,w)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case EY:return Z=C(31,J,Z,U),Z.elementType=EY,Z.lanes=K,Z;case F7:return r2(J.children,U,K,Z);case JG:w=8,U|=L5,U|=n6;break;case _Y:return $=J,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=C(12,$,Z,Y|k0),Z.elementType=_Y,Z.lanes=K,Z.stateNode={effectDuration:0,passiveEffectDuration:0},Z;case IY:return Z=C(13,J,Z,U),Z.elementType=IY,Z.lanes=K,Z;case OY:return Z=C(19,J,Z,U),Z.elementType=OY,Z.lanes=K,Z;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case P4:w=10;break $;case VY:w=9;break $;case ZZ:w=11,R=bq(R);break $;case GG:w=14;break $;case N6: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?J="null":i1($)?J="array":$!==void 0&&$.$$typeof===z4?(J="<"+(a($.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):J=typeof $,(w=Y?X0(Y):null)&&(R+=`
72
+
73
+ Check the render method of \``+w+"`."),w=29,J=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(J+"."+R)),R=null}return Z=C(w,J,Z,U),Z.elementType=$,Z.type=R,Z.lanes=K,Z._debugOwner=Y,Z}function NJ($,Z,J){return Z=fq($.type,$.key,$.props,$._owner,Z,J),Z._debugOwner=$._owner,Z._debugStack=$._debugStack,Z._debugTask=$._debugTask,Z}function r2($,Z,J,Y){return $=C(7,$,Y,Z),$.lanes=J,$}function yq($,Z,J){return $=C(6,$,null,Z),$.lanes=J,$}function PK($){var Z=C(18,null,null,_0);return Z.stateNode=$,Z}function gq($,Z,J){return Z=C(4,$.children!==null?$.children:[],$.key,Z),Z.lanes=J,Z.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},Z}function Q6($,Z){if(typeof $==="object"&&$!==null){var J=JN.get($);if(J!==void 0)return J;return Z={value:$,source:Z,stack:m1(Z)},JN.set($,Z),Z}return{value:$,source:Z,stack:m1(Z)}}function p4($,Z){j8(),E7[A7++]=FZ,E7[A7++]=zG,zG=$,FZ=Z}function CK($,Z,J){j8(),O6[E6++]=t4,O6[E6++]=e4,O6[E6++]=q9,q9=$;var Y=t4;$=e4;var U=32-E5(Y)-1;Y&=~(1<<U),J+=1;var K=32-E5(Z)+U;if(30<K){var w=U-U%5;K=(Y&(1<<w)-1).toString(32),Y>>=w,U-=w,t4=1<<32-E5(Z)+U|J<<U|Y,e4=K+$}else t4=1<<K|J<<U|Y,e4=$}function hq($){j8(),$.return!==null&&(p4($,1),CK($,1,0))}function uq($){for(;$===zG;)zG=E7[--A7],E7[A7]=null,FZ=E7[--A7],E7[A7]=null;for(;$===q9;)q9=O6[--E6],O6[E6]=null,e4=O6[--E6],O6[E6]=null,t4=O6[--E6],O6[E6]=null}function LK(){return j8(),q9!==null?{id:t4,overflow:e4}:null}function _K($,Z){j8(),O6[E6++]=t4,O6[E6++]=e4,O6[E6++]=q9,t4=Z.id,e4=Z.overflow,q9=$}function j8(){r0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function s2($,Z){if($.return===null){if(K6===null)K6={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z};else{if(K6.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");K6.distanceFromLeaf>Z&&(K6.distanceFromLeaf=Z)}return K6}var J=s2($.return,Z+1).children;if(0<J.length&&J[J.length-1].fiber===$)return J=J[J.length-1],J.distanceFromLeaf>Z&&(J.distanceFromLeaf=Z),J;return Z={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:Z},J.push(Z),Z}function VK(){r0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function UJ($,Z){O4||($=s2($,0),$.serverProps=null,Z!==null&&(Z=QF(Z),$.serverTail.push(Z)))}function v8($){var Z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,J="",Y=K6;throw Y!==null&&(K6=null,J=Vq(Y)),A$(Q6(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
74
 
75
75
  - A server/client branch \`if (typeof window !== 'undefined')\`.
76
76
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -80,7 +80,7 @@ Check the render method of \``+W+"`."),W=29,G=Error("Element type is invalid: ex
80
80
 
81
81
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
82
 
83
- https://react.dev/link/hydration-mismatch`+G),$)),dY}function oK($){var{stateNode:Z,type:G,memoizedProps:X}=$;switch(Z[G5]=$,Z[R5]=X,pX(G,X),G){case"dialog":c0("cancel",Z),c0("close",Z);break;case"iframe":case"object":case"embed":c0("load",Z);break;case"video":case"audio":for(G=0;G<OZ.length;G++)c0(OZ[G],Z);break;case"source":c0("error",Z);break;case"img":case"image":case"link":c0("error",Z),c0("load",Z);break;case"details":c0("toggle",Z);break;case"input":F6("input",X),c0("invalid",Z),ZK(Z,X),QK(Z,X.value,X.defaultValue,X.checked,X.defaultChecked,X.type,X.name,!0);break;case"option":GK(Z,X);break;case"select":F6("select",X),c0("invalid",Z),qK(Z,X);break;case"textarea":F6("textarea",X),c0("invalid",Z),XK(Z,X),UK(Z,X.value,X.defaultValue,X.children)}G=X.children,typeof G!=="string"&&typeof G!=="number"&&typeof G!=="bigint"||Z.textContent===""+G||X.suppressHydrationWarning===!0||HM(Z.textContent,G)?(X.popover!=null&&(c0("beforetoggle",Z),c0("toggle",Z)),X.onScroll!=null&&c0("scroll",Z),X.onScrollEnd!=null&&c0("scrollend",Z),X.onClick!=null&&(Z.onclick=I8),Z=!0):Z=!1,Z||w6($,!0)}function aK($){for(J5=$.return;J5;)switch(J5.tag){case 5:case 31:case 13:F4=!1;return;case 27:case 3:F4=!0;return;default:J5=J5.return}}function b$($){if($!==J5)return!1;if(!p0)return aK($),p0=!0,!1;var Z=$.tag,G;if(G=Z!==3&&Z!==27){if(G=Z===5)G=$.type,G=!(G!=="form"&&G!=="button")||nX($.type,$.memoizedProps);G=!G}if(G&&R1){for(G=R1;G;){var X=S2($,0),N=IM(G);X.serverTail.push(N),G=N.type==="Suspense"?tX(G):a5(G.nextSibling)}w6($)}if(aK($),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.");R1=tX($)}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.");R1=tX($)}else Z===27?(Z=R1,I6($.type)?($=SU,SU=null,R1=$):R1=Z):R1=J5?a5($.stateNode.nextSibling):null;return!0}function v2(){R1=J5=null,B8=p0=!1}function P3(){var $=f6;return $!==null&&(E5===null?E5=$:E5.push.apply(E5,$),f6=null),$}function M7($){f6===null?f6=[$]:f6.push($)}function C3(){var $=$4;if($!==null){$4=null;for(var Z=U3($);0<$.children.length;)$=$.children[0];G0($.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:
83
+ https://react.dev/link/hydration-mismatch`+J),$)),GN}function IK($){var{stateNode:Z,type:J,memoizedProps:Y}=$;switch(Z[H5]=$,Z[A5]=Y,qY(J,Y),J){case"dialog":s0("cancel",Z),s0("close",Z);break;case"iframe":case"object":case"embed":s0("load",Z);break;case"video":case"audio":for(J=0;J<dZ.length;J++)s0(dZ[J],Z);break;case"source":s0("error",Z);break;case"img":case"image":case"link":s0("error",Z),s0("load",Z);break;case"details":s0("toggle",Z);break;case"input":D8("input",Y),s0("invalid",Z),jB(Z,Y),vB(Z,Y.value,Y.defaultValue,Y.checked,Y.defaultChecked,Y.type,Y.name,!0);break;case"option":bB(Z,Y);break;case"select":D8("select",Y),s0("invalid",Z),fB(Z,Y);break;case"textarea":D8("textarea",Y),s0("invalid",Z),yB(Z,Y),hB(Z,Y.value,Y.defaultValue,Y.children)}J=Y.children,typeof J!=="string"&&typeof J!=="number"&&typeof J!=="bigint"||Z.textContent===""+J||Y.suppressHydrationWarning===!0||dM(Z.textContent,J)?(Y.popover!=null&&(s0("beforetoggle",Z),s0("toggle",Z)),Y.onScroll!=null&&s0("scroll",Z),Y.onScrollEnd!=null&&s0("scrollend",Z),Y.onClick!=null&&(Z.onclick=m4),Z=!0):Z=!1,Z||v8($,!0)}function OK($){for(M5=$.return;M5;)switch(M5.tag){case 5:case 31:case 13:A6=!1;return;case 27:case 3:A6=!0;return;default:M5=M5.return}}function t9($){if($!==M5)return!1;if(!r0)return OK($),r0=!0,!1;var Z=$.tag,J;if(J=Z!==3&&Z!==27){if(J=Z===5)J=$.type,J=!(J!=="form"&&J!=="button")||BY($.type,$.memoizedProps);J=!J}if(J&&P1){for(J=P1;J;){var Y=s2($,0),U=QF(J);Y.serverTail.push(U),J=U.type==="Suspense"?FY(J):Y6(J.nextSibling)}v8($)}if(OK($),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.");P1=FY($)}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.");P1=FY($)}else Z===27?(Z=P1,d8($.type)?($=sN,sN=null,P1=$):P1=Z):P1=M5?Y6($.stateNode.nextSibling):null;return!0}function n2(){P1=M5=null,O4=r0=!1}function xq(){var $=i8;return $!==null&&(k5===null?k5=$:k5.push.apply(k5,$),i8=null),$}function A$($){i8===null?i8=[$]:i8.push($)}function mq(){var $=K6;if($!==null){K6=null;for(var Z=Vq($);0<$.children.length;)$=$.children[0];G0($.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
84
 
85
85
  - A server/client branch \`if (typeof window !== 'undefined')\`.
86
86
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -90,58 +90,58 @@ https://react.dev/link/hydration-mismatch`+G),$)),dY}function oK($){var{stateNod
90
90
 
91
91
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
92
 
93
- %s%s`,"https://react.dev/link/hydration-mismatch",Z)})}}function uQ(){B9=aG=null,H9=!1}function R6($,Z,G){z0(pY,Z._currentValue,$),Z._currentValue=G,z0(cY,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==oF&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=oF}function j8($,Z){$._currentValue=pY.current;var G=cY.current;w0(cY,Z),$._currentRenderer=G,w0(pY,Z)}function I3($,Z,G){for(;$!==null;){var X=$.alternate;if(($.childLanes&Z)!==Z?($.childLanes|=Z,X!==null&&(X.childLanes|=Z)):X!==null&&(X.childLanes&Z)!==Z&&(X.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 O3($,Z,G,X){var N=$.child;N!==null&&(N.return=$);for(;N!==null;){var B=N.dependencies;if(B!==null){var W=N.child;B=B.firstContext;$:for(;B!==null;){var w=B;B=N;for(var _=0;_<Z.length;_++)if(w.context===Z[_]){B.lanes|=G,w=B.alternate,w!==null&&(w.lanes|=G),I3(B.return,G,$),X||(W=null);break $}B=w.next}}else if(N.tag===18){if(W=N.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),I3(W,G,$),W=null}else W=N.child;if(W!==null)W.return=N;else for(W=N;W!==null;){if(W===$){W=null;break}if(N=W.sibling,N!==null){N.return=W.return,W=N;break}W=W.return}N=W}}function f$($,Z,G,X){$=null;for(var N=Z,B=!1;N!==null;){if(!B){if((N.flags&524288)!==0)B=!0;else if((N.flags&262144)!==0)break}if(N.tag===10){var W=N.alternate;if(W===null)throw Error("Should have a current fiber. This is a bug in React.");if(W=W.memoizedProps,W!==null){var w=N.type;z5(N.pendingProps.value,W.value)||($!==null?$.push(w):$=[w])}}else if(N===fG.current){if(W=N.alternate,W===null)throw Error("Should have a current fiber. This is a bug in React.");W.memoizedState.memoizedState!==N.memoizedState.memoizedState&&($!==null?$.push(vZ):$=[vZ])}N=N.return}$!==null&&O3(Z,$,G,X),Z.flags|=262144}function mQ($){for($=$.firstContext;$!==null;){if(!z5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function k2($){aG=$,B9=null,$=$.dependencies,$!==null&&($.firstContext=null)}function _1($){return H9&&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()."),iK(aG,$)}function dQ($,Z){return aG===null&&k2($),iK($,Z)}function iK($,Z){var G=Z._currentValue;if(Z={context:Z,memoizedValue:G,next:null},B9===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().");B9=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else B9=B9.next=Z;return G}function D3(){return{controller:new yE,data:new Map,refCount:0}}function b2($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function F7($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&gE(hE,function(){$.controller.abort()})}function l4($,Z,G){if(($&127)!==0)0>H8&&(H8=g1(),ZZ=iG(Z),lY=Z,G!=null&&(rY=d(G)),(o0&(r1|G4))!==t1&&(I1=!0,h6=$Z),$=f7(),Z=b7(),$!==M9||Z!==QZ?M9=-1.1:Z!==null&&(h6=$Z),l2=$,QZ=Z);else if(($&4194048)!==0&&0>W4&&(W4=g1(),GZ=iG(Z),aF=Z,G!=null&&(iF=d(G)),0>m8)){if($=f7(),Z=b7(),$!==u6||Z!==r2)u6=-1.1;x6=$,r2=Z}}function GL($){if(0>H8){H8=g1(),ZZ=$._debugTask!=null?$._debugTask:null,(o0&(r1|G4))!==t1&&(h6=$Z);var Z=f7(),G=b7();Z!==M9||G!==QZ?M9=-1.1:G!==null&&(h6=$Z),l2=Z,QZ=G}if(0>W4&&(W4=g1(),GZ=$._debugTask!=null?$._debugTask:null,0>m8)){if($=f7(),Z=b7(),$!==u6||Z!==r2)u6=-1.1;x6=$,r2=Z}}function A8(){var $=c2;return c2=0,$}function pQ($){var Z=c2;return c2=$,Z}function W7($){var Z=c2;return c2+=$,Z}function cQ(){T0=W0=-1.1}function r5(){var $=W0;return W0=-1.1,$}function s5($){0<=$&&(W0=$)}function r4(){var $=V1;return V1=-0,$}function s4($){0<=$&&(V1=$)}function n4(){var $=L1;return L1=null,$}function o4(){var $=I1;return I1=!1,$}function j3($){_5=g1(),0>$.actualStartTime&&($.actualStartTime=_5)}function A3($){if(0<=_5){var Z=g1()-_5;$.actualDuration+=Z,$.selfBaseDuration=Z,_5=-1}}function tK($){if(0<=_5){var Z=g1()-_5;$.actualDuration+=Z,_5=-1}}function a4(){if(0<=_5){var $=g1(),Z=$-_5;_5=-1,c2+=Z,V1+=Z,T0=$}}function eK($){L1===null&&(L1=[]),L1.push($),u8===null&&(u8=[]),u8.push($)}function i4(){_5=g1(),0>W0&&(W0=_5)}function w7($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function JL($,Z){if(qZ===null){var G=qZ=[];nY=0,s2=xX(),F9={status:"pending",value:void 0,then:function(X){G.push(X)}}}return nY++,Z.then($B,$B),Z}function $B(){if(--nY===0&&(-1<W4||(m8=-1.1),qZ!==null)){F9!==null&&(F9.status="fulfilled");var $=qZ;qZ=null,s2=0,F9=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function qL($,Z){var G=[],X={status:"pending",value:null,reason:null,then:function(N){G.push(N)}};return $.then(function(){X.status="fulfilled",X.value=Z;for(var N=0;N<G.length;N++)(0,G[N])(Z)},function(N){X.status="rejected",X.reason=N;for(N=0;N<G.length;N++)(0,G[N])(void 0)}),X}function S3(){var $=n2.current;return $!==null?$:K1.pooledCache}function lQ($,Z){Z===null?z0(n2,n2.current,$):z0(n2,Z.pool,$)}function ZB(){var $=S3();return $===null?null:{parent:y1._currentValue,pool:$}}function QB(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function GB($){return $=$.status,$==="fulfilled"||$==="rejected"}function JB($,Z,G){x.actQueue!==null&&(x.didUsePromise=!0);var X=$.thenables;if(G=X[G],G===void 0?X.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(I8,I8),Z=G),Z._debugInfo===void 0){$=performance.now(),X=Z.displayName;var N={name:typeof X==="string"?X:"Promise",start:$,end:$,value:Z};Z._debugInfo=[{awaited:N}],Z.status!=="fulfilled"&&Z.status!=="rejected"&&($=function(){N.end=performance.now()},Z.then($,$))}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,XB($),$;default:if(typeof Z.status==="string")Z.then(I8,I8);else{if($=K1,$!==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,XB($),$}throw a2=Z,HZ=!0,W9}}function T6($){try{return dE($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw a2=Z,HZ=!0,W9;throw Z}}function qB(){if(a2===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=a2;return a2=null,HZ=!1,$}function XB($){if($===W9||$===qJ)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 $5($){var Z=A0;return $!=null&&(A0=Z===null?$:Z.concat($)),Z}function v3(){var $=A0;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 rQ($,Z,G){for(var X=Object.keys($.props),N=0;N<X.length;N++){var B=X[N];if(B!=="children"&&B!=="key"){Z===null&&(Z=hQ($,G.mode,0),Z._debugInfo=A0,Z.return=G),G0(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 sQ($){var Z=MZ;return MZ+=1,w9===null&&(w9=QB()),JB(w9,$,Z)}function R7($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function YB($,Z){if(Z.$$typeof===LV)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",Z)})}}function BJ(){S7=PG=null,D7=!1}function b8($,Z,J){L0(qN,Z._currentValue,$),Z._currentValue=J,L0(XN,Z._currentRenderer,$),Z._currentRenderer!==void 0&&Z._currentRenderer!==null&&Z._currentRenderer!==Iw&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),Z._currentRenderer=Iw}function c4($,Z){$._currentValue=qN.current;var J=XN.current;P0(XN,Z),$._currentRenderer=J,P0(qN,Z)}function dq($,Z,J){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),$===J)break;$=$.return}$!==J&&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 pq($,Z,J,Y){var U=$.child;U!==null&&(U.return=$);for(;U!==null;){var K=U.dependencies;if(K!==null){var w=U.child;K=K.firstContext;$:for(;K!==null;){var R=K;K=U;for(var P=0;P<Z.length;P++)if(R.context===Z[P]){K.lanes|=J,R=K.alternate,R!==null&&(R.lanes|=J),dq(K.return,J,$),Y||(w=null);break $}K=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|=J,K=w.alternate,K!==null&&(K.lanes|=J),dq(w,J,$),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 e9($,Z,J,Y){$=null;for(var U=Z,K=!1;U!==null;){if(!K){if((U.flags&524288)!==0)K=!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;D5(U.pendingProps.value,w.value)||($!==null?$.push(R):$=[R])}}else if(U===qG.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(sZ):$=[sZ])}U=U.return}$!==null&&pq(Z,$,J,Y),Z.flags|=262144}function KJ($){for($=$.firstContext;$!==null;){if(!D5($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function o2($){PG=$,S7=null,$=$.dependencies,$!==null&&($.firstContext=null)}function V1($){return D7&&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()."),EK(PG,$)}function HJ($,Z){return PG===null&&o2($),EK($,Z)}function EK($,Z){var J=Z._currentValue;if(Z={context:Z,memoizedValue:J,next:null},S7===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().");S7=Z,$.dependencies={lanes:0,firstContext:Z,_debugThenableState:null},$.flags|=524288}else S7=S7.next=Z;return J}function cq(){return{controller:new yV,data:new Map,refCount:0}}function a2($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function S$($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&gV(hV,function(){$.controller.abort()})}function X4($,Z,J){if(($&127)!==0)0>E4&&(E4=p1(),WZ=CG(Z),YN=Z,J!=null&&(NN=d(J)),(a0&(e1|F6))!==Y5&&(j1=!0,$2=wZ),$=a$(),Z=o$(),$!==j7||Z!==RZ?j7=-1.1:Z!==null&&($2=wZ),Y9=$,RZ=Z);else if(($&4194048)!==0&&0>S6&&(S6=p1(),TZ=CG(Z),Ow=Z,J!=null&&(Ew=d(J)),0>Q8)){if($=a$(),Z=o$(),$!==Q2||Z!==N9)Q2=-1.1;Z2=$,N9=Z}}function JL($){if(0>E4){E4=p1(),WZ=$._debugTask!=null?$._debugTask:null,(a0&(e1|F6))!==Y5&&($2=wZ);var Z=a$(),J=o$();Z!==j7||J!==RZ?j7=-1.1:J!==null&&($2=wZ),Y9=Z,RZ=J}if(0>S6&&(S6=p1(),TZ=$._debugTask!=null?$._debugTask:null,0>Q8)){if($=a$(),Z=o$(),$!==Q2||Z!==N9)Q2=-1.1;Z2=$,N9=Z}}function l4(){var $=X9;return X9=0,$}function MJ($){var Z=X9;return X9=$,Z}function D$($){var Z=X9;return X9+=$,Z}function FJ(){C0=T0=-1.1}function J6(){var $=T0;return T0=-1.1,$}function G6($){0<=$&&(T0=$)}function Y4(){var $=O1;return O1=-0,$}function N4($){0<=$&&(O1=$)}function U4(){var $=I1;return I1=null,$}function B4(){var $=j1;return j1=!1,$}function lq($){j5=p1(),0>$.actualStartTime&&($.actualStartTime=j5)}function rq($){if(0<=j5){var Z=p1()-j5;$.actualDuration+=Z,$.selfBaseDuration=Z,j5=-1}}function AK($){if(0<=j5){var Z=p1()-j5;$.actualDuration+=Z,j5=-1}}function K4(){if(0<=j5){var $=p1(),Z=$-j5;j5=-1,X9+=Z,O1+=Z,C0=$}}function SK($){I1===null&&(I1=[]),I1.push($),Z8===null&&(Z8=[]),Z8.push($)}function H4(){j5=p1(),0>T0&&(T0=j5)}function j$($){for(var Z=$.child;Z;)$.actualDuration+=Z.actualDuration,Z=Z.sibling}function GL($,Z){if(PZ===null){var J=PZ=[];BN=0,U9=ZY(),v7={status:"pending",value:void 0,then:function(Y){J.push(Y)}}}return BN++,Z.then(DK,DK),Z}function DK(){if(--BN===0&&(-1<S6||(Q8=-1.1),PZ!==null)){v7!==null&&(v7.status="fulfilled");var $=PZ;PZ=null,U9=0,v7=null;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}}function qL($,Z){var J=[],Y={status:"pending",value:null,reason:null,then:function(U){J.push(U)}};return $.then(function(){Y.status="fulfilled",Y.value=Z;for(var U=0;U<J.length;U++)(0,J[U])(Z)},function(U){Y.status="rejected",Y.reason=U;for(U=0;U<J.length;U++)(0,J[U])(void 0)}),Y}function sq(){var $=B9.current;return $!==null?$:F1.pooledCache}function wJ($,Z){Z===null?L0(B9,B9.current,$):L0(B9,Z.pool,$)}function jK(){var $=sq();return $===null?null:{parent:d1._currentValue,pool:$}}function vK(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function bK($){return $=$.status,$==="fulfilled"||$==="rejected"}function kK($,Z,J){x.actQueue!==null&&(x.didUsePromise=!0);var Y=$.thenables;if(J=Y[J],J===void 0?Y.push(Z):J!==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(m4,m4),Z=J),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,yK($),$;default:if(typeof Z.status==="string")Z.then(m4,m4);else{if($=F1,$!==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(K){if(Z.status==="pending"){var w=Z;w.status="fulfilled",w.value=K}},function(K){if(Z.status==="pending"){var w=Z;w.status="rejected",w.reason=K}})}switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw $=Z.reason,yK($),$}throw H9=Z,EZ=!0,b7}}function k8($){try{return dV($)}catch(Z){if(Z!==null&&typeof Z==="object"&&typeof Z.then==="function")throw H9=Z,EZ=!0,b7;throw Z}}function fK(){if(H9===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=H9;return H9=null,EZ=!1,$}function yK($){if($===b7||$===SG)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 U5($){var Z=f0;return $!=null&&(f0=Z===null?$:Z.concat($)),Z}function nq(){var $=f0;if($!=null){for(var Z=$.length-1;0<=Z;Z--)if($[Z].name!=null){var J=$[Z].debugTask;if(J!=null)return J}}return null}function WJ($,Z,J){for(var Y=Object.keys($.props),U=0;U<Y.length;U++){var K=Y[U];if(K!=="children"&&K!=="key"){Z===null&&(Z=NJ($,J.mode,0),Z._debugInfo=f0,Z.return=J),G0(Z,function(w){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",w)},K);break}}}function RJ($){var Z=AZ;return AZ+=1,k7===null&&(k7=vK()),kK(k7,$,Z)}function v$($,Z){Z=Z.props.ref,$.ref=Z!==void 0?Z:null}function gK($,Z){if(Z.$$typeof===C_)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
94
  - Multiple copies of the "react" package is used.
95
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 nQ($,Z){var G=v3();G!==null?G.run(YB.bind(null,$,Z)):YB($,Z)}function UB($,Z){var G=d($)||"Component";RW[G]||(RW[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.
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 TJ($,Z){var J=nq();J!==null?J.run(gK.bind(null,$,Z)):gK($,Z)}function hK($,Z){var J=d($)||"Component";sw[J]||(sw[J]=!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
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 oQ($,Z){var G=v3();G!==null?G.run(UB.bind(null,$,Z)):UB($,Z)}function NB($,Z){var G=d($)||"Component";TW[G]||(TW[G]=!0,Z=String(Z),$.tag===3?console.error(`Symbols are not valid as a React child.
98
+ <%s>{%s}</%s>`,Z,Z,J,Z,J))}function zJ($,Z){var J=nq();J!==null?J.run(hK.bind(null,$,Z)):hK($,Z)}function uK($,Z){var J=d($)||"Component";nw[J]||(nw[J]=!0,Z=String(Z),$.tag===3?console.error(`Symbols are not valid as a React child.
99
99
  root.render(%s)`,Z):console.error(`Symbols are not valid as a React child.
100
- <%s>%s</%s>`,G,Z,G))}function aQ($,Z){var G=v3();G!==null?G.run(NB.bind(null,$,Z)):NB($,Z)}function KB($){function Z(O,j){if($){var v=O.deletions;v===null?(O.deletions=[j],O.flags|=16):v.push(j)}}function G(O,j){if(!$)return null;for(;j!==null;)Z(O,j),j=j.sibling;return null}function X(O){for(var j=new Map;O!==null;)O.key!==null?j.set(O.key,O):j.set(O.index,O),O=O.sibling;return j}function N(O,j){return O=O8(O,j),O.index=0,O.sibling=null,O}function B(O,j,v){if(O.index=v,!$)return O.flags|=1048576,j;if(v=O.alternate,v!==null)return v=v.index,v<j?(O.flags|=67108866,j):v;return O.flags|=67108866,j}function W(O){return $&&O.alternate===null&&(O.flags|=67108866),O}function w(O,j,v,u){if(j===null||j.tag!==6)return j=_3(v,O.mode,u),j.return=O,j._debugOwner=O,j._debugTask=O._debugTask,j._debugInfo=A0,j;return j=N(j,v),j.return=O,j._debugInfo=A0,j}function _(O,j,v,u){var $0=v.type;if($0===a$)return j=k(O,j,v.props.children,u,v.key),rQ(v,j,O),j;if(j!==null&&(j.elementType===$0||uK(j,v)||typeof $0==="object"&&$0!==null&&$0.$$typeof===i5&&T6($0)===j.type))return j=N(j,v.props),R7(j,v),j.return=O,j._debugOwner=v._owner,j._debugInfo=A0,j;return j=hQ(v,O.mode,u),R7(j,v),j.return=O,j._debugInfo=A0,j}function V(O,j,v,u){if(j===null||j.tag!==4||j.stateNode.containerInfo!==v.containerInfo||j.stateNode.implementation!==v.implementation)return j=L3(v,O.mode,u),j.return=O,j._debugInfo=A0,j;return j=N(j,v.children||[]),j.return=O,j._debugInfo=A0,j}function k(O,j,v,u,$0){if(j===null||j.tag!==7)return j=A2(v,O.mode,u,$0),j.return=O,j._debugOwner=O,j._debugTask=O._debugTask,j._debugInfo=A0,j;return j=N(j,v),j.return=O,j._debugInfo=A0,j}function b(O,j,v){if(typeof j==="string"&&j!==""||typeof j==="number"||typeof j==="bigint")return j=_3(""+j,O.mode,v),j.return=O,j._debugOwner=O,j._debugTask=O._debugTask,j._debugInfo=A0,j;if(typeof j==="object"&&j!==null){switch(j.$$typeof){case J8:return v=hQ(j,O.mode,v),R7(v,j),v.return=O,O=$5(j._debugInfo),v._debugInfo=A0,A0=O,v;case o$:return j=L3(j,O.mode,v),j.return=O,j._debugInfo=A0,j;case i5:var u=$5(j._debugInfo);return j=T6(j),O=b(O,j,v),A0=u,O}if(c1(j)||p(j))return v=A2(j,O.mode,v,null),v.return=O,v._debugOwner=O,v._debugTask=O._debugTask,O=$5(j._debugInfo),v._debugInfo=A0,A0=O,v;if(typeof j.then==="function")return u=$5(j._debugInfo),O=b(O,sQ(j),v),A0=u,O;if(j.$$typeof===q8)return b(O,dQ(O,j),v);nQ(O,j)}return typeof j==="function"&&oQ(O,j),typeof j==="symbol"&&aQ(O,j),null}function D(O,j,v,u){var $0=j!==null?j.key:null;if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return $0!==null?null:w(O,j,""+v,u);if(typeof v==="object"&&v!==null){switch(v.$$typeof){case J8:return v.key===$0?($0=$5(v._debugInfo),O=_(O,j,v,u),A0=$0,O):null;case o$:return v.key===$0?V(O,j,v,u):null;case i5:return $0=$5(v._debugInfo),v=T6(v),O=D(O,j,v,u),A0=$0,O}if(c1(v)||p(v)){if($0!==null)return null;return $0=$5(v._debugInfo),O=k(O,j,v,u,null),A0=$0,O}if(typeof v.then==="function")return $0=$5(v._debugInfo),O=D(O,j,sQ(v),u),A0=$0,O;if(v.$$typeof===q8)return D(O,j,dQ(O,v),u);nQ(O,v)}return typeof v==="function"&&oQ(O,v),typeof v==="symbol"&&aQ(O,v),null}function y(O,j,v,u,$0){if(typeof u==="string"&&u!==""||typeof u==="number"||typeof u==="bigint")return O=O.get(v)||null,w(j,O,""+u,$0);if(typeof u==="object"&&u!==null){switch(u.$$typeof){case J8:return v=O.get(u.key===null?v:u.key)||null,O=$5(u._debugInfo),j=_(j,v,u,$0),A0=O,j;case o$:return O=O.get(u.key===null?v:u.key)||null,V(j,O,u,$0);case i5:var V0=$5(u._debugInfo);return u=T6(u),j=y(O,j,v,u,$0),A0=V0,j}if(c1(u)||p(u))return v=O.get(v)||null,O=$5(u._debugInfo),j=k(j,v,u,$0,null),A0=O,j;if(typeof u.then==="function")return V0=$5(u._debugInfo),j=y(O,j,v,sQ(u),$0),A0=V0,j;if(u.$$typeof===q8)return y(O,j,v,dQ(j,u),$0);nQ(j,u)}return typeof u==="function"&&oQ(j,u),typeof u==="symbol"&&aQ(j,u),null}function t(O,j,v,u){if(typeof v!=="object"||v===null)return u;switch(v.$$typeof){case J8:case o$:T(O,j,v);var $0=v.key;if(typeof $0!=="string")break;if(u===null){u=new Set,u.add($0);break}if(!u.has($0)){u.add($0);break}G0(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.",$0)});break;case i5:v=T6(v),t(O,j,v,u)}return u}function Z0(O,j,v,u){for(var $0=null,V0=null,M0=null,U0=j,O0=j=0,T1=null;U0!==null&&O0<v.length;O0++){U0.index>O0?(T1=U0,U0=null):T1=U0.sibling;var k1=D(O,U0,v[O0],u);if(k1===null){U0===null&&(U0=T1);break}$0=t(O,k1,v[O0],$0),$&&U0&&k1.alternate===null&&Z(O,U0),j=B(k1,j,O0),M0===null?V0=k1:M0.sibling=k1,M0=k1,U0=T1}if(O0===v.length)return G(O,U0),p0&&D8(O,O0),V0;if(U0===null){for(;O0<v.length;O0++)U0=b(O,v[O0],u),U0!==null&&($0=t(O,U0,v[O0],$0),j=B(U0,j,O0),M0===null?V0=U0:M0.sibling=U0,M0=U0);return p0&&D8(O,O0),V0}for(U0=X(U0);O0<v.length;O0++)T1=y(U0,O,O0,v[O0],u),T1!==null&&($0=t(O,T1,v[O0],$0),$&&T1.alternate!==null&&U0.delete(T1.key===null?O0:T1.key),j=B(T1,j,O0),M0===null?V0=T1:M0.sibling=T1,M0=T1);return $&&U0.forEach(function(a8){return Z(O,a8)}),p0&&D8(O,O0),V0}function F1(O,j,v,u){if(v==null)throw Error("An iterable object provided no iterator.");for(var $0=null,V0=null,M0=j,U0=j=0,O0=null,T1=null,k1=v.next();M0!==null&&!k1.done;U0++,k1=v.next()){M0.index>U0?(O0=M0,M0=null):O0=M0.sibling;var a8=D(O,M0,k1.value,u);if(a8===null){M0===null&&(M0=O0);break}T1=t(O,a8,k1.value,T1),$&&M0&&a8.alternate===null&&Z(O,M0),j=B(a8,j,U0),V0===null?$0=a8:V0.sibling=a8,V0=a8,M0=O0}if(k1.done)return G(O,M0),p0&&D8(O,U0),$0;if(M0===null){for(;!k1.done;U0++,k1=v.next())M0=b(O,k1.value,u),M0!==null&&(T1=t(O,M0,k1.value,T1),j=B(M0,j,U0),V0===null?$0=M0:V0.sibling=M0,V0=M0);return p0&&D8(O,U0),$0}for(M0=X(M0);!k1.done;U0++,k1=v.next())O0=y(M0,O,U0,k1.value,u),O0!==null&&(T1=t(O,O0,k1.value,T1),$&&O0.alternate!==null&&M0.delete(O0.key===null?U0:O0.key),j=B(O0,j,U0),V0===null?$0=O0:V0.sibling=O0,V0=O0);return $&&M0.forEach(function(HP){return Z(O,HP)}),p0&&D8(O,U0),$0}function l0(O,j,v,u){if(typeof v==="object"&&v!==null&&v.type===a$&&v.key===null&&(rQ(v,null,O),v=v.props.children),typeof v==="object"&&v!==null){switch(v.$$typeof){case J8:var $0=$5(v._debugInfo);$:{for(var V0=v.key;j!==null;){if(j.key===V0){if(V0=v.type,V0===a$){if(j.tag===7){G(O,j.sibling),u=N(j,v.props.children),u.return=O,u._debugOwner=v._owner,u._debugInfo=A0,rQ(v,u,O),O=u;break $}}else if(j.elementType===V0||uK(j,v)||typeof V0==="object"&&V0!==null&&V0.$$typeof===i5&&T6(V0)===j.type){G(O,j.sibling),u=N(j,v.props),R7(u,v),u.return=O,u._debugOwner=v._owner,u._debugInfo=A0,O=u;break $}G(O,j);break}else Z(O,j);j=j.sibling}v.type===a$?(u=A2(v.props.children,O.mode,u,v.key),u.return=O,u._debugOwner=O,u._debugTask=O._debugTask,u._debugInfo=A0,rQ(v,u,O),O=u):(u=hQ(v,O.mode,u),R7(u,v),u.return=O,u._debugInfo=A0,O=u)}return O=W(O),A0=$0,O;case o$:$:{$0=v;for(v=$0.key;j!==null;){if(j.key===v)if(j.tag===4&&j.stateNode.containerInfo===$0.containerInfo&&j.stateNode.implementation===$0.implementation){G(O,j.sibling),u=N(j,$0.children||[]),u.return=O,O=u;break $}else{G(O,j);break}else Z(O,j);j=j.sibling}u=L3($0,O.mode,u),u.return=O,O=u}return W(O);case i5:return $0=$5(v._debugInfo),v=T6(v),O=l0(O,j,v,u),A0=$0,O}if(c1(v))return $0=$5(v._debugInfo),O=Z0(O,j,v,u),A0=$0,O;if(p(v)){if($0=$5(v._debugInfo),V0=p(v),typeof V0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var M0=V0.call(v);if(M0===v){if(O.tag!==0||Object.prototype.toString.call(O.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(M0)!=="[object Generator]")WW||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."),WW=!0}else v.entries!==V0||tY||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),tY=!0);return O=F1(O,j,M0,u),A0=$0,O}if(typeof v.then==="function")return $0=$5(v._debugInfo),O=l0(O,j,sQ(v),u),A0=$0,O;if(v.$$typeof===q8)return l0(O,j,dQ(O,v),u);nQ(O,v)}if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return $0=""+v,j!==null&&j.tag===6?(G(O,j.sibling),u=N(j,$0),u.return=O,O=u):(G(O,j),u=_3($0,O.mode,u),u.return=O,u._debugOwner=O,u._debugTask=O._debugTask,u._debugInfo=A0,O=u),W(O);return typeof v==="function"&&oQ(O,v),typeof v==="symbol"&&aQ(O,v),G(O,j)}return function(O,j,v,u){var $0=A0;A0=null;try{MZ=0;var V0=l0(O,j,v,u);return w9=null,V0}catch(T1){if(T1===W9||T1===qJ)throw T1;var M0=L(29,T1,null,O.mode);M0.lanes=u,M0.return=O;var U0=M0._debugInfo=A0;if(M0._debugOwner=O._debugOwner,M0._debugTask=O._debugTask,U0!=null){for(var O0=U0.length-1;0<=O0;O0--)if(typeof U0[O0].stack==="string"){M0._debugOwner=U0[O0],M0._debugTask=U0[O0].debugTask;break}}return M0}finally{A0=$0}}}function BB($,Z){var G=c1($);return $=!G&&typeof p($)==="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 k3($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function b3($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function z6($){return{lane:$,tag:_W,payload:null,callback:null,next:null}}function _6($,Z,G){var X=$.updateQueue;if(X===null)return null;if(X=X.shared,$U===X&&!EW){var N=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.
100
+ <%s>%s</%s>`,J,Z,J))}function PJ($,Z){var J=nq();J!==null?J.run(uK.bind(null,$,Z)):uK($,Z)}function xK($){function Z(E,D){if($){var b=E.deletions;b===null?(E.deletions=[D],E.flags|=16):b.push(D)}}function J(E,D){if(!$)return null;for(;D!==null;)Z(E,D),D=D.sibling;return null}function Y(E){for(var D=new Map;E!==null;)E.key!==null?D.set(E.key,E):D.set(E.index,E),E=E.sibling;return D}function U(E,D){return E=d4(E,D),E.index=0,E.sibling=null,E}function K(E,D,b){if(E.index=b,!$)return E.flags|=1048576,D;if(b=E.alternate,b!==null)return b=b.index,b<D?(E.flags|=67108866,D):b;return E.flags|=67108866,D}function w(E){return $&&E.alternate===null&&(E.flags|=67108866),E}function R(E,D,b,m){if(D===null||D.tag!==6)return D=yq(b,E.mode,m),D.return=E,D._debugOwner=E,D._debugTask=E._debugTask,D._debugInfo=f0,D;return D=U(D,b),D.return=E,D._debugInfo=f0,D}function P(E,D,b,m){var Z0=b.type;if(Z0===F7)return D=k(E,D,b.props.children,m,b.key),WJ(b,D,E),D;if(D!==null&&(D.elementType===Z0||WK(D,b)||typeof Z0==="object"&&Z0!==null&&Z0.$$typeof===N6&&k8(Z0)===D.type))return D=U(D,b.props),v$(D,b),D.return=E,D._debugOwner=b._owner,D._debugInfo=f0,D;return D=NJ(b,E.mode,m),v$(D,b),D.return=E,D._debugInfo=f0,D}function L(E,D,b,m){if(D===null||D.tag!==4||D.stateNode.containerInfo!==b.containerInfo||D.stateNode.implementation!==b.implementation)return D=gq(b,E.mode,m),D.return=E,D._debugInfo=f0,D;return D=U(D,b.children||[]),D.return=E,D._debugInfo=f0,D}function k(E,D,b,m,Z0){if(D===null||D.tag!==7)return D=r2(b,E.mode,m,Z0),D.return=E,D._debugOwner=E,D._debugTask=E._debugTask,D._debugInfo=f0,D;return D=U(D,b),D.return=E,D._debugInfo=f0,D}function f(E,D,b){if(typeof D==="string"&&D!==""||typeof D==="number"||typeof D==="bigint")return D=yq(""+D,E.mode,b),D.return=E,D._debugOwner=E,D._debugTask=E._debugTask,D._debugInfo=f0,D;if(typeof D==="object"&&D!==null){switch(D.$$typeof){case z4:return b=NJ(D,E.mode,b),v$(b,D),b.return=E,E=U5(D._debugInfo),b._debugInfo=f0,f0=E,b;case M7:return D=gq(D,E.mode,b),D.return=E,D._debugInfo=f0,D;case N6:var m=U5(D._debugInfo);return D=k8(D),E=f(E,D,b),f0=m,E}if(i1(D)||i(D))return b=r2(D,E.mode,b,null),b.return=E,b._debugOwner=E,b._debugTask=E._debugTask,E=U5(D._debugInfo),b._debugInfo=f0,f0=E,b;if(typeof D.then==="function")return m=U5(D._debugInfo),E=f(E,RJ(D),b),f0=m,E;if(D.$$typeof===P4)return f(E,HJ(E,D),b);TJ(E,D)}return typeof D==="function"&&zJ(E,D),typeof D==="symbol"&&PJ(E,D),null}function S(E,D,b,m){var Z0=D!==null?D.key:null;if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Z0!==null?null:R(E,D,""+b,m);if(typeof b==="object"&&b!==null){switch(b.$$typeof){case z4:return b.key===Z0?(Z0=U5(b._debugInfo),E=P(E,D,b,m),f0=Z0,E):null;case M7:return b.key===Z0?L(E,D,b,m):null;case N6:return Z0=U5(b._debugInfo),b=k8(b),E=S(E,D,b,m),f0=Z0,E}if(i1(b)||i(b)){if(Z0!==null)return null;return Z0=U5(b._debugInfo),E=k(E,D,b,m,null),f0=Z0,E}if(typeof b.then==="function")return Z0=U5(b._debugInfo),E=S(E,D,RJ(b),m),f0=Z0,E;if(b.$$typeof===P4)return S(E,D,HJ(E,b),m);TJ(E,b)}return typeof b==="function"&&zJ(E,b),typeof b==="symbol"&&PJ(E,b),null}function g(E,D,b,m,Z0){if(typeof m==="string"&&m!==""||typeof m==="number"||typeof m==="bigint")return E=E.get(b)||null,R(D,E,""+m,Z0);if(typeof m==="object"&&m!==null){switch(m.$$typeof){case z4:return b=E.get(m.key===null?b:m.key)||null,E=U5(m._debugInfo),D=P(D,b,m,Z0),f0=E,D;case M7:return E=E.get(m.key===null?b:m.key)||null,L(D,E,m,Z0);case N6:var I0=U5(m._debugInfo);return m=k8(m),D=g(E,D,b,m,Z0),f0=I0,D}if(i1(m)||i(m))return b=E.get(b)||null,E=U5(m._debugInfo),D=k(D,b,m,Z0,null),f0=E,D;if(typeof m.then==="function")return I0=U5(m._debugInfo),D=g(E,D,b,RJ(m),Z0),f0=I0,D;if(m.$$typeof===P4)return g(E,D,b,HJ(D,m),Z0);TJ(D,m)}return typeof m==="function"&&zJ(D,m),typeof m==="symbol"&&PJ(D,m),null}function t(E,D,b,m){if(typeof b!=="object"||b===null)return m;switch(b.$$typeof){case z4:case M7:T(E,D,b);var Z0=b.key;if(typeof Z0!=="string")break;if(m===null){m=new Set,m.add(Z0);break}if(!m.has(Z0)){m.add(Z0);break}G0(D,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.",Z0)});break;case N6:b=k8(b),t(E,D,b,m)}return m}function J0(E,D,b,m){for(var Z0=null,I0=null,W0=null,N0=D,v0=D=0,C1=null;N0!==null&&v0<b.length;v0++){N0.index>v0?(C1=N0,N0=null):C1=N0.sibling;var h1=S(E,N0,b[v0],m);if(h1===null){N0===null&&(N0=C1);break}Z0=t(E,h1,b[v0],Z0),$&&N0&&h1.alternate===null&&Z(E,N0),D=K(h1,D,v0),W0===null?I0=h1:W0.sibling=h1,W0=h1,N0=C1}if(v0===b.length)return J(E,N0),r0&&p4(E,v0),I0;if(N0===null){for(;v0<b.length;v0++)N0=f(E,b[v0],m),N0!==null&&(Z0=t(E,N0,b[v0],Z0),D=K(N0,D,v0),W0===null?I0=N0:W0.sibling=N0,W0=N0);return r0&&p4(E,v0),I0}for(N0=Y(N0);v0<b.length;v0++)C1=g(N0,E,v0,b[v0],m),C1!==null&&(Z0=t(E,C1,b[v0],Z0),$&&C1.alternate!==null&&N0.delete(C1.key===null?v0:C1.key),D=K(C1,D,v0),W0===null?I0=C1:W0.sibling=C1,W0=C1);return $&&N0.forEach(function(K8){return Z(E,K8)}),r0&&p4(E,v0),I0}function R1(E,D,b,m){if(b==null)throw Error("An iterable object provided no iterator.");for(var Z0=null,I0=null,W0=D,N0=D=0,v0=null,C1=null,h1=b.next();W0!==null&&!h1.done;N0++,h1=b.next()){W0.index>N0?(v0=W0,W0=null):v0=W0.sibling;var K8=S(E,W0,h1.value,m);if(K8===null){W0===null&&(W0=v0);break}C1=t(E,K8,h1.value,C1),$&&W0&&K8.alternate===null&&Z(E,W0),D=K(K8,D,N0),I0===null?Z0=K8:I0.sibling=K8,I0=K8,W0=v0}if(h1.done)return J(E,W0),r0&&p4(E,N0),Z0;if(W0===null){for(;!h1.done;N0++,h1=b.next())W0=f(E,h1.value,m),W0!==null&&(C1=t(E,W0,h1.value,C1),D=K(W0,D,N0),I0===null?Z0=W0:I0.sibling=W0,I0=W0);return r0&&p4(E,N0),Z0}for(W0=Y(W0);!h1.done;N0++,h1=b.next())v0=g(W0,E,N0,h1.value,m),v0!==null&&(C1=t(E,v0,h1.value,C1),$&&v0.alternate!==null&&W0.delete(v0.key===null?N0:v0.key),D=K(v0,D,N0),I0===null?Z0=v0:I0.sibling=v0,I0=v0);return $&&W0.forEach(function(HI){return Z(E,HI)}),r0&&p4(E,N0),Z0}function n0(E,D,b,m){if(typeof b==="object"&&b!==null&&b.type===F7&&b.key===null&&(WJ(b,null,E),b=b.props.children),typeof b==="object"&&b!==null){switch(b.$$typeof){case z4:var Z0=U5(b._debugInfo);$:{for(var I0=b.key;D!==null;){if(D.key===I0){if(I0=b.type,I0===F7){if(D.tag===7){J(E,D.sibling),m=U(D,b.props.children),m.return=E,m._debugOwner=b._owner,m._debugInfo=f0,WJ(b,m,E),E=m;break $}}else if(D.elementType===I0||WK(D,b)||typeof I0==="object"&&I0!==null&&I0.$$typeof===N6&&k8(I0)===D.type){J(E,D.sibling),m=U(D,b.props),v$(m,b),m.return=E,m._debugOwner=b._owner,m._debugInfo=f0,E=m;break $}J(E,D);break}else Z(E,D);D=D.sibling}b.type===F7?(m=r2(b.props.children,E.mode,m,b.key),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=f0,WJ(b,m,E),E=m):(m=NJ(b,E.mode,m),v$(m,b),m.return=E,m._debugInfo=f0,E=m)}return E=w(E),f0=Z0,E;case M7:$:{Z0=b;for(b=Z0.key;D!==null;){if(D.key===b)if(D.tag===4&&D.stateNode.containerInfo===Z0.containerInfo&&D.stateNode.implementation===Z0.implementation){J(E,D.sibling),m=U(D,Z0.children||[]),m.return=E,E=m;break $}else{J(E,D);break}else Z(E,D);D=D.sibling}m=gq(Z0,E.mode,m),m.return=E,E=m}return w(E);case N6:return Z0=U5(b._debugInfo),b=k8(b),E=n0(E,D,b,m),f0=Z0,E}if(i1(b))return Z0=U5(b._debugInfo),E=J0(E,D,b,m),f0=Z0,E;if(i(b)){if(Z0=U5(b._debugInfo),I0=i(b),typeof I0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var W0=I0.call(b);if(W0===b){if(E.tag!==0||Object.prototype.toString.call(E.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(W0)!=="[object Generator]")lw||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."),lw=!0}else b.entries!==I0||FN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),FN=!0);return E=R1(E,D,W0,m),f0=Z0,E}if(typeof b.then==="function")return Z0=U5(b._debugInfo),E=n0(E,D,RJ(b),m),f0=Z0,E;if(b.$$typeof===P4)return n0(E,D,HJ(E,b),m);TJ(E,b)}if(typeof b==="string"&&b!==""||typeof b==="number"||typeof b==="bigint")return Z0=""+b,D!==null&&D.tag===6?(J(E,D.sibling),m=U(D,Z0),m.return=E,E=m):(J(E,D),m=yq(Z0,E.mode,m),m.return=E,m._debugOwner=E,m._debugTask=E._debugTask,m._debugInfo=f0,E=m),w(E);return typeof b==="function"&&zJ(E,b),typeof b==="symbol"&&PJ(E,b),J(E,D)}return function(E,D,b,m){var Z0=f0;f0=null;try{AZ=0;var I0=n0(E,D,b,m);return k7=null,I0}catch(C1){if(C1===b7||C1===SG)throw C1;var W0=C(29,C1,null,E.mode);W0.lanes=m,W0.return=E;var N0=W0._debugInfo=f0;if(W0._debugOwner=E._debugOwner,W0._debugTask=E._debugTask,N0!=null){for(var v0=N0.length-1;0<=v0;v0--)if(typeof N0[v0].stack==="string"){W0._debugOwner=N0[v0],W0._debugTask=N0[v0].debugTask;break}}return W0}finally{f0=Z0}}}function mK($,Z){var J=i1($);return $=!J&&typeof i($)==="function",J||$?(J=J?"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>",J,Z,J),!1):!0}function oq($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function aq($,Z){$=$.updateQueue,Z.updateQueue===$&&(Z.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function f8($){return{lane:$,tag:aw,payload:null,callback:null,next:null}}function y8($,Z,J){var Y=$.updateQueue;if(Y===null)return null;if(Y=Y.shared,WN===Y&&!ew){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
101
 
102
- Please update the following component: %s`,N),EW=!0}if((o0&r1)!==t1)return N=X.pending,N===null?Z.next=Z:(Z.next=N.next,N.next=Z),X.pending=Z,Z=gQ($),xK($,null,G),Z;return yQ($,X,Z,G),gQ($)}function T7($,Z,G){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(G&4194048)!==0)){var X=Z.lanes;X&=$.pendingLanes,G|=X,Z.lanes=G,E2($,G)}}function iQ($,Z){var{updateQueue:G,alternate:X}=$;if(X!==null&&(X=X.updateQueue,G===X)){var N=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?N=B=W:B=B.next=W,G=G.next}while(G!==null);B===null?N=B=Z:B=B.next=Z}else N=B=Z;G={baseState:X.baseState,firstBaseUpdate:N,lastBaseUpdate:B,shared:X.shared,callbacks:X.callbacks},$.updateQueue=G;return}$=G.lastBaseUpdate,$===null?G.firstBaseUpdate=Z:$.next=Z,G.lastBaseUpdate=Z}function z7(){if(ZU){var $=F9;if($!==null)throw $}}function _7($,Z,G,X){ZU=!1;var N=$.updateQueue;m6=!1,$U=N.shared;var{firstBaseUpdate:B,lastBaseUpdate:W}=N,w=N.shared.pending;if(w!==null){N.shared.pending=null;var _=w,V=_.next;_.next=null,W===null?B=V:W.next=V,W=_;var k=$.alternate;k!==null&&(k=k.updateQueue,w=k.lastBaseUpdate,w!==W&&(w===null?k.firstBaseUpdate=V:w.next=V,k.lastBaseUpdate=_))}if(B!==null){var b=N.baseState;W=0,k=V=_=null,w=B;do{var D=w.lane&-536870913,y=D!==w.lane;if(y?(S0&D)===D:(X&D)===D){D!==0&&D===s2&&(ZU=!0),k!==null&&(k=k.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});$:{D=$;var t=w,Z0=Z,F1=G;switch(t.tag){case LW:if(t=t.payload,typeof t==="function"){H9=!0;var l0=t.call(F1,b,Z0);if(D.mode&M5){H1(!0);try{t.call(F1,b,Z0)}finally{H1(!1)}}H9=!1,b=l0;break $}b=t;break $;case eY:D.flags=D.flags&-65537|128;case _W:if(l0=t.payload,typeof l0==="function"){if(H9=!0,t=l0.call(F1,b,Z0),D.mode&M5){H1(!0);try{l0.call(F1,b,Z0)}finally{H1(!1)}}H9=!1}else t=l0;if(t===null||t===void 0)break $;b=y0({},b,t);break $;case VW:m6=!0}}D=w.callback,D!==null&&($.flags|=64,y&&($.flags|=8192),y=N.callbacks,y===null?N.callbacks=[D]:y.push(D))}else y={lane:D,tag:w.tag,payload:w.payload,callback:w.callback,next:null},k===null?(V=k=y,_=b):k=k.next=y,W|=D;if(w=w.next,w===null)if(w=N.shared.pending,w===null)break;else y=w,w=y.next,y.next=null,N.lastBaseUpdate=y,N.shared.pending=null}while(1);k===null&&(_=b),N.baseState=_,N.firstBaseUpdate=V,N.lastBaseUpdate=k,B===null&&(N.shared.lanes=0),c6|=W,$.lanes=W,$.memoizedState=b}$U=null}function HB($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function XL($,Z){var G=$.shared.hiddenCallbacks;if(G!==null)for($.shared.hiddenCallbacks=null,$=0;$<G.length;$++)HB(G[$],Z)}function MB($,Z){var G=$.callbacks;if(G!==null)for($.callbacks=null,$=0;$<G.length;$++)HB(G[$],Z)}function FB($,Z){var G=W8;z0(YJ,G,$),z0(R9,Z,$),W8=G|Z.baseLanes}function f3($){z0(YJ,W8,$),z0(R9,R9.current,$)}function y3($){W8=YJ.current,w0(R9,$),w0(YJ,$)}function L6($){var Z=$.alternate;z0(v1,v1.current&T9,$),z0(Z4,$,$),w4===null&&(Z===null||R9.current!==null?w4=$:Z.memoizedState!==null&&(w4=$))}function g3($){z0(v1,v1.current,$),z0(Z4,$,$),w4===null&&(w4=$)}function WB($){$.tag===22?(z0(v1,v1.current,$),z0(Z4,$,$),w4===null&&(w4=$)):V6($)}function V6($){z0(v1,v1.current,$),z0(Z4,Z4.current,$)}function n5($){w0(Z4,$),w4===$&&(w4=null),w0(v1,$)}function tQ($){for(var Z=$;Z!==null;){if(Z.tag===13){var G=Z.memoizedState;if(G!==null&&(G=G.dehydrated,G===null||aX(G)||iX(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 f0(){var $=h;T4===null?T4=[$]:T4.push($)}function c(){var $=h;if(T4!==null&&(l8++,T4[l8]!==$)){var Z=d(L0);if(!PW.has(Z)&&(PW.add(Z),T4!==null)){for(var G="",X=0;X<=l8;X++){var N=T4[X],B=X===l8?$:N;for(N=X+1+". "+N;30>N.length;)N+=" ";N+=B+`
103
- `,G+=N}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
102
+ Please update the following component: %s`,U),ew=!0}if((a0&e1)!==Y5)return U=Y.pending,U===null?Z.next=Z:(Z.next=U.next,U.next=Z),Y.pending=Z,Z=YJ($),wK($,null,J),Z;return XJ($,Y,Z,J),YJ($)}function b$($,Z,J){if(Z=Z.updateQueue,Z!==null&&(Z=Z.shared,(J&4194048)!==0)){var Y=Z.lanes;Y&=$.pendingLanes,J|=Y,Z.lanes=J,u2($,J)}}function CJ($,Z){var{updateQueue:J,alternate:Y}=$;if(Y!==null&&(Y=Y.updateQueue,J===Y)){var U=null,K=null;if(J=J.firstBaseUpdate,J!==null){do{var w={lane:J.lane,tag:J.tag,payload:J.payload,callback:null,next:null};K===null?U=K=w:K=K.next=w,J=J.next}while(J!==null);K===null?U=K=Z:K=K.next=Z}else U=K=Z;J={baseState:Y.baseState,firstBaseUpdate:U,lastBaseUpdate:K,shared:Y.shared,callbacks:Y.callbacks},$.updateQueue=J;return}$=J.lastBaseUpdate,$===null?J.firstBaseUpdate=Z:$.next=Z,J.lastBaseUpdate=Z}function k$(){if(RN){var $=v7;if($!==null)throw $}}function f$($,Z,J,Y){RN=!1;var U=$.updateQueue;J2=!1,WN=U.shared;var{firstBaseUpdate:K,lastBaseUpdate:w}=U,R=U.shared.pending;if(R!==null){U.shared.pending=null;var P=R,L=P.next;P.next=null,w===null?K=L:w.next=L,w=P;var k=$.alternate;k!==null&&(k=k.updateQueue,R=k.lastBaseUpdate,R!==w&&(R===null?k.firstBaseUpdate=L:R.next=L,k.lastBaseUpdate=P))}if(K!==null){var f=U.baseState;w=0,k=L=P=null,R=K;do{var S=R.lane&-536870913,g=S!==R.lane;if(g?(y0&S)===S:(Y&S)===S){S!==0&&S===U9&&(RN=!0),k!==null&&(k=k.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});$:{S=$;var t=R,J0=Z,R1=J;switch(t.tag){case iw:if(t=t.payload,typeof t==="function"){D7=!0;var n0=t.call(R1,f,J0);if(S.mode&L5){w1(!0);try{t.call(R1,f,J0)}finally{w1(!1)}}D7=!1,f=n0;break $}f=t;break $;case wN:S.flags=S.flags&-65537|128;case aw:if(n0=t.payload,typeof n0==="function"){if(D7=!0,t=n0.call(R1,f,J0),S.mode&L5){w1(!0);try{n0.call(R1,f,J0)}finally{w1(!1)}}D7=!1}else t=n0;if(t===null||t===void 0)break $;f=m0({},f,t);break $;case tw:J2=!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?(L=k=g,P=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&&(P=f),U.baseState=P,U.firstBaseUpdate=L,U.lastBaseUpdate=k,K===null&&(U.shared.lanes=0),X2|=w,$.lanes=w,$.memoizedState=f}WN=null}function dK($,Z){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(Z)}function XL($,Z){var J=$.shared.hiddenCallbacks;if(J!==null)for($.shared.hiddenCallbacks=null,$=0;$<J.length;$++)dK(J[$],Z)}function pK($,Z){var J=$.callbacks;if(J!==null)for($.callbacks=null,$=0;$<J.length;$++)dK(J[$],Z)}function cK($,Z){var J=D4;L0(jG,J,$),L0(f7,Z,$),D4=J|Z.baseLanes}function iq($){L0(jG,D4,$),L0(f7,f7.current,$)}function tq($){D4=jG.current,P0(f7,$),P0(jG,$)}function g8($){var Z=$.alternate;L0(g1,g1.current&y7,$),L0(H6,$,$),D6===null&&(Z===null||f7.current!==null?D6=$:Z.memoizedState!==null&&(D6=$))}function eq($){L0(g1,g1.current,$),L0(H6,$,$),D6===null&&(D6=$)}function lK($){$.tag===22?(L0(g1,g1.current,$),L0(H6,$,$),D6===null&&(D6=$)):h8($)}function h8($){L0(g1,g1.current,$),L0(H6,H6.current,$)}function q6($){P0(H6,$),D6===$&&(D6=null),P0(g1,$)}function LJ($){for(var Z=$;Z!==null;){if(Z.tag===13){var J=Z.memoizedState;if(J!==null&&(J=J.dehydrated,J===null||HY(J)||MY(J)))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 x0(){var $=u;v6===null?v6=[$]:v6.push($)}function c(){var $=u;if(v6!==null&&(X8++,v6[X8]!==$)){var Z=d(V0);if(!$W.has(Z)&&($W.add(Z),v6!==null)){for(var J="",Y=0;Y<=X8;Y++){var U=v6[Y],K=Y===X8?$:U;for(U=Y+1+". "+U;30>U.length;)U+=" ";U+=K+`
103
+ `,J+=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
104
 
105
105
  Previous render Next render
106
106
  ------------------------------------------------------
107
107
  %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
- `,Z,G)}}}function y$($){$===void 0||$===null||c1($)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",h,typeof $)}function eQ(){var $=d(L0);IW.has($)||(IW.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function A1(){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:
108
+ `,Z,J)}}}function $7($){$===void 0||$===null||i1($)||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 _J(){var $=d(V0);QW.has($)||(QW.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function f1(){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
109
  1. You might have mismatching versions of React and the renderer (such as React DOM)
110
110
  2. You might be breaking the Rules of Hooks
111
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 h3($,Z){if(wZ)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.",h),!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.
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function $X($,Z){if(jZ)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
113
 
114
114
  Previous: %s
115
- Incoming: %s`,h,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var G=0;G<Z.length&&G<$.length;G++)if(!z5($[G],Z[G]))return!1;return!0}function x3($,Z,G,X,N,B){if(p8=B,L0=Z,T4=$!==null?$._debugHookTypes:null,l8=-1,wZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(G)==="[object AsyncFunction]"||Object.prototype.toString.call(G)==="[object AsyncGeneratorFunction]")B=d(L0),QU.has(B)||(QU.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?JU:T4!==null?OW:GU,t2=B=(Z.mode&M5)!==_0;var W=oY(G,X,N);if(t2=!1,_9&&(W=u3(Z,G,X,N)),B){H1(!0);try{W=u3(Z,G,X,N)}finally{H1(!1)}}return wB($,Z),W}function wB($,Z){Z._debugHookTypes=T4,Z.dependencies===null?c8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:c8}):Z.dependencies._debugThenableState=c8,x.H=RZ;var G=N1!==null&&N1.next!==null;if(p8=0,T4=h=h1=N1=L0=null,l8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),NJ=!1,WZ=0,c8=null,G)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||x1||($=$.dependencies,$!==null&&mQ($)&&(x1=!0)),HZ?(HZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",CW.has(Z)||QU.has(Z)||(CW.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 u3($,Z,G,X){L0=$;var N=0;do{if(_9&&(c8=null),WZ=0,_9=!1,N>=cE)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(N+=1,wZ=!1,h1=N1=null,$.updateQueue!=null){var B=$.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}l8=-1,x.H=DW,B=oY(Z,G,X)}while(_9);return B}function YL(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?L7(Z):Z,$=$.useState()[0],(N1!==null?N1.memoizedState:null)!==$&&(L0.flags|=1024),Z}function m3(){var $=KJ!==0;return KJ=0,$}function d3($,Z,G){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&A4)!==_0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~G}function p3($){if(NJ){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}NJ=!1}p8=0,T4=h1=N1=L0=null,l8=-1,h=null,_9=!1,WZ=KJ=0,c8=null}function W5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return h1===null?L0.memoizedState=h1=$:h1=h1.next=$,h1}function J1(){if(N1===null){var $=L0.alternate;$=$!==null?$.memoizedState:null}else $=N1.next;var Z=h1===null?L0.memoizedState:h1.next;if(Z!==null)h1=Z,N1=$;else{if($===null){if(L0.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.")}N1=$,$={memoizedState:N1.memoizedState,baseState:N1.baseState,baseQueue:N1.baseQueue,queue:N1.queue,next:null},h1===null?L0.memoizedState=h1=$:h1=h1.next=$}return h1}function $G(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function L7($){var Z=WZ;return WZ+=1,c8===null&&(c8=QB()),$=JB(c8,$,Z),Z=L0,(h1===null?Z.memoizedState:h1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?JU:GU),$}function E6($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return L7($);if($.$$typeof===q8)return _1($)}throw Error("An unsupported type was passed to use(): "+String($))}function f2($){var Z=null,G=L0.updateQueue;if(G!==null&&(Z=G.memoCache),Z==null){var X=L0.alternate;X!==null&&(X=X.updateQueue,X!==null&&(X=X.memoCache,X!=null&&(Z={data:X.data.map(function(N){return N.slice()}),index:0})))}if(Z==null&&(Z={data:[],index:0}),G===null&&(G=$G(),L0.updateQueue=G),G.memoCache=Z,G=Z.data[Z.index],G===void 0||wZ)for(G=Z.data[Z.index]=Array($),X=0;X<$;X++)G[X]=VV;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 I4($,Z){return typeof Z==="function"?Z($):Z}function c3($,Z,G){var X=W5();if(G!==void 0){var N=G(Z);if(t2){H1(!0);try{G(Z)}finally{H1(!1)}}}else N=Z;return X.memoizedState=X.baseState=N,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:N},X.queue=$,$=$.dispatch=HL.bind(null,L0,$),[X.memoizedState,$]}function g$($){var Z=J1();return l3(Z,N1,$)}function l3($,Z,G){var X=$.queue;if(X===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");X.lastRenderedReducer=G;var N=$.baseQueue,B=X.pending;if(B!==null){if(N!==null){var W=N.next;N.next=B.next,B.next=W}Z.baseQueue!==N&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),Z.baseQueue=N=B,X.pending=null}if(B=$.baseState,N===null)$.memoizedState=B;else{Z=N.next;var w=W=null,_=null,V=Z,k=!1;do{var b=V.lane&-536870913;if(b!==V.lane?(S0&b)===b:(p8&b)===b){var D=V.revertLane;if(D===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),b===s2&&(k=!0);else if((p8&D)===D){V=V.next,D===s2&&(k=!0);continue}else b={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},_===null?(w=_=b,W=B):_=_.next=b,L0.lanes|=D,c6|=D;b=V.action,t2&&G(B,b),B=V.hasEagerState?V.eagerState:G(B,b)}else D={lane:b,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},_===null?(w=_=D,W=B):_=_.next=D,L0.lanes|=b,c6|=b;V=V.next}while(V!==null&&V!==Z);if(_===null?W=B:_.next=w,!z5(B,$.memoizedState)&&(x1=!0,k&&(G=F9,G!==null)))throw G;$.memoizedState=B,$.baseState=W,$.baseQueue=_,X.lastRenderedState=B}return N===null&&(X.lanes=0),[$.memoizedState,X.dispatch]}function V7($){var Z=J1(),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:X,pending:N}=G,B=Z.memoizedState;if(N!==null){G.pending=null;var W=N=N.next;do B=$(B,W.action),W=W.next;while(W!==N);z5(B,Z.memoizedState)||(x1=!0),Z.memoizedState=B,Z.baseQueue===null&&(Z.baseState=B),G.lastRenderedState=B}return[B,X]}function r3($,Z,G){var X=L0,N=W5();if(p0){if(G===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var B=G();z9||B===G()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),z9=!0)}else{if(B=Z(),z9||(G=Z(),z5(B,G)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),z9=!0)),K1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(S0&127)!==0||RB(X,Z,B)}return N.memoizedState=B,G={value:B,getSnapshot:Z},N.queue=G,JG(zB.bind(null,X,G,$),[$]),X.flags|=2048,x$(R4|V5,{destroy:void 0},TB.bind(null,X,G,B,Z),null),B}function ZG($,Z,G){var X=L0,N=J1(),B=p0;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(),!z9){var W=Z();z5(G,W)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),z9=!0)}if(W=!z5((N1||N).memoizedState,G))N.memoizedState=G,x1=!0;N=N.queue;var w=zB.bind(null,X,N,$);if(O5(2048,V5,w,[$]),N.getSnapshot!==Z||W||h1!==null&&h1.memoizedState.tag&R4){if(X.flags|=2048,x$(R4|V5,{destroy:void 0},TB.bind(null,X,N,G,Z),null),K1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");B||(p8&127)!==0||RB(X,Z,G)}return G}function RB($,Z,G){$.flags|=16384,$={getSnapshot:Z,value:G},Z=L0.updateQueue,Z===null?(Z=$G(),L0.updateQueue=Z,Z.stores=[$]):(G=Z.stores,G===null?Z.stores=[$]:G.push($))}function TB($,Z,G,X){Z.value=G,Z.getSnapshot=X,_B(Z)&&LB($)}function zB($,Z,G){return G(function(){_B(Z)&&(l4(2,"updateSyncExternalStore()",$),LB($))})}function _B($){var Z=$.getSnapshot;$=$.value;try{var G=Z();return!z5($,G)}catch(X){return!0}}function LB($){var Z=B5($,2);Z!==null&&C1(Z,$,2)}function s3($){var Z=W5();if(typeof $==="function"){var G=$;if($=G(),t2){H1(!0);try{G()}finally{H1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:$},Z}function n3($){$=s3($);var Z=$.queue,G=uB.bind(null,L0,Z);return Z.dispatch=G,[$.memoizedState,G]}function o3($){var Z=W5();Z.memoizedState=Z.baseState=$;var G={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=G,Z=NX.bind(null,L0,!0,G),G.dispatch=Z,[$,Z]}function VB($,Z){var G=J1();return EB(G,N1,$,Z)}function EB($,Z,G,X){return $.baseState=G,l3($,N1,typeof X==="function"?X:I4)}function PB($,Z){var G=J1();if(N1!==null)return EB(G,N1,$,Z);return G.baseState=$,[$,G.queue.dispatch]}function UL($,Z,G,X,N){if(KG($))throw Error("Cannot update form state while rendering.");if($=Z.action,$!==null){var B={payload:N,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,X(B),G=Z.pending,G===null?(B.next=Z.pending=B,CB(Z,B)):(B.next=G.next,Z.pending=G.next=B)}}function CB($,Z){var{action:G,payload:X}=Z,N=$.state;if(Z.isTransition){var B=x.T,W={};W._updatedFibers=new Set,x.T=W;try{var w=G(N,X),_=x.S;_!==null&&_(W,w),IB($,Z,w)}catch(V){a3($,Z,V)}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(N,X),IB($,Z,W)}catch(V){a3($,Z,V)}}function IB($,Z,G){G!==null&&typeof G==="object"&&typeof G.then==="function"?(x.asyncTransitions++,G.then(NG,NG),G.then(function(X){OB($,Z,X)},function(X){return a3($,Z,X)}),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.")):OB($,Z,G)}function OB($,Z,G){Z.status="fulfilled",Z.value=G,DB(Z),$.state=G,Z=$.pending,Z!==null&&(G=Z.next,G===Z?$.pending=null:(G=G.next,Z.next=G,CB($,G)))}function a3($,Z,G){var X=$.pending;if($.pending=null,X!==null){X=X.next;do Z.status="rejected",Z.reason=G,DB(Z),Z=Z.next;while(Z!==X)}$.action=null}function DB($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function jB($,Z){return Z}function h$($,Z){if(p0){var G=K1.formState;if(G!==null){$:{var X=L0;if(p0){if(R1){Z:{var N=R1;for(var B=F4;N.nodeType!==8;){if(!B){N=null;break Z}if(N=a5(N.nextSibling),N===null){N=null;break Z}}B=N.data,N=B===OU||B===Mw?N:null}if(N){R1=a5(N.nextSibling),X=N.data===OU;break $}}w6(X)}X=!1}X&&(Z=G[0])}}return G=W5(),G.memoizedState=G.baseState=Z,X={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jB,lastRenderedState:Z},G.queue=X,G=uB.bind(null,L0,X),X.dispatch=G,X=s3(!1),B=NX.bind(null,L0,!1,X.queue),X=W5(),N={state:Z,dispatch:null,action:$,pending:null},X.queue=N,G=UL.bind(null,L0,N,B,G),N.dispatch=G,X.memoizedState=$,[Z,G,!1]}function QG($){var Z=J1();return AB(Z,N1,$)}function AB($,Z,G){if(Z=l3($,Z,jB)[0],$=g$(I4)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var X=L7(Z)}catch(W){if(W===W9)throw qJ;throw W}else X=Z;Z=J1();var N=Z.queue,B=N.dispatch;return G!==Z.memoizedState&&(L0.flags|=2048,x$(R4|V5,{destroy:void 0},NL.bind(null,N,G),null)),[X,B,$]}function NL($,Z){$.action=Z}function GG($){var Z=J1(),G=N1;if(G!==null)return AB(Z,G,$);J1(),Z=Z.memoizedState,G=J1();var X=G.queue.dispatch;return G.memoizedState=$,[Z,X,!1]}function x$($,Z,G,X){return $={tag:$,create:G,deps:X,inst:Z,next:null},Z=L0.updateQueue,Z===null&&(Z=$G(),L0.updateQueue=Z),G=Z.lastEffect,G===null?Z.lastEffect=$.next=$:(X=G.next,G.next=$,$.next=X,Z.lastEffect=$),$}function i3($){var Z=W5();return $={current:$},Z.memoizedState=$}function y2($,Z,G,X){var N=W5();L0.flags|=$,N.memoizedState=x$(R4|Z,{destroy:void 0},G,X===void 0?null:X)}function O5($,Z,G,X){var N=J1();X=X===void 0?null:X;var B=N.memoizedState.inst;N1!==null&&X!==null&&h3(X,N1.memoizedState.deps)?N.memoizedState=x$(Z,B,G,X):(L0.flags|=$,N.memoizedState=x$(R4|Z,B,G,X))}function JG($,Z){(L0.mode&A4)!==_0?y2(276826112,V5,$,Z):y2(8390656,V5,$,Z)}function KL($){L0.flags|=4;var Z=L0.updateQueue;if(Z===null)Z=$G(),L0.updateQueue=Z,Z.events=[$];else{var G=Z.events;G===null?Z.events=[$]:G.push($)}}function t3($){var Z=W5(),G={impl:$};return Z.memoizedState=G,function(){if((o0&r1)!==t1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return G.impl.apply(void 0,arguments)}}function qG($){var Z=J1().memoizedState;return KL({ref:Z,nextImpl:$}),function(){if((o0&r1)!==t1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function e3($,Z){var G=4194308;return(L0.mode&A4)!==_0&&(G|=134217728),y2(G,Q4,$,Z)}function SB($,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 $X($,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 X=4194308;(L0.mode&A4)!==_0&&(X|=134217728),y2(X,Q4,SB.bind(null,Z,$),G)}function XG($,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,O5(4,Q4,SB.bind(null,Z,$),G)}function ZX($,Z){return W5().memoizedState=[$,Z===void 0?null:Z],$}function YG($,Z){var G=J1();Z=Z===void 0?null:Z;var X=G.memoizedState;if(Z!==null&&h3(Z,X[1]))return X[0];return G.memoizedState=[$,Z],$}function QX($,Z){var G=W5();Z=Z===void 0?null:Z;var X=$();if(t2){H1(!0);try{$()}finally{H1(!1)}}return G.memoizedState=[X,Z],X}function UG($,Z){var G=J1();Z=Z===void 0?null:Z;var X=G.memoizedState;if(Z!==null&&h3(Z,X[1]))return X[0];if(X=$(),t2){H1(!0);try{$()}finally{H1(!1)}}return G.memoizedState=[X,Z],X}function GX($,Z){var G=W5();return JX(G,$,Z)}function vB($,Z){var G=J1();return bB(G,N1.memoizedState,$,Z)}function kB($,Z){var G=J1();return N1===null?JX(G,$,Z):bB(G,N1.memoizedState,$,Z)}function JX($,Z,G){if(G===void 0||(p8&1073741824)!==0&&(S0&261930)===0)return $.memoizedState=Z;return $.memoizedState=G,$=fH(),L0.lanes|=$,c6|=$,G}function bB($,Z,G,X){if(z5(G,Z))return G;if(R9.current!==null)return $=JX($,G,X),z5($,Z)||(x1=!0),$;if((p8&42)===0||(p8&1073741824)!==0&&(S0&261930)===0)return x1=!0,$.memoizedState=G;return $=fH(),L0.lanes|=$,c6|=$,Z}function NG(){x.asyncTransitions--}function fB($,Z,G,X,N){var B=Z1.p;Z1.p=B!==0&&B<j4?B:j4;var W=x.T,w={};w._updatedFibers=new Set,x.T=w,NX($,!1,Z,G);try{var _=N(),V=x.S;if(V!==null&&V(w,_),_!==null&&typeof _==="object"&&typeof _.then==="function"){x.asyncTransitions++,_.then(NG,NG);var k=qL(_,X);E7($,Z,k,o5($))}else E7($,Z,X,o5($))}catch(b){E7($,Z,{then:function(){},status:"rejected",reason:b},o5($))}finally{Z1.p=B,W!==null&&w.types!==null&&(W.types!==null&&W.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."),W.types=w.types),x.T=W,W===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."))}}function qX($,Z,G,X){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var N=yB($).queue;GL($),fB($,N,Z,N$,G===null?R:function(){return gB($),G(X)})}function yB($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:N$,baseState:N$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:N$},next:null};var G={};return Z.next={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:I4,lastRenderedState:G},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function gB($){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=yB($);Z.next===null&&(Z=$.alternate.memoizedState),E7($,Z.next.queue,{},o5($))}function XX(){var $=s3(!1);return $=fB.bind(null,L0,$.queue,!0,!1),W5().memoizedState=$,[!1,$]}function hB(){var $=g$(I4)[0],Z=J1().memoizedState;return[typeof $==="boolean"?$:L7($),Z]}function xB(){var $=V7(I4)[0],Z=J1().memoizedState;return[typeof $==="boolean"?$:L7($),Z]}function g2(){return _1(vZ)}function YX(){var $=W5(),Z=K1.identifierPrefix;if(p0){var G=h8,X=g8;G=(X&~(1<<32-w5(X)-1)).toString(32)+G,Z="_"+Z+"R_"+G,G=KJ++,0<G&&(Z+="H"+G.toString(32)),Z+="_"}else G=pE++,Z="_"+Z+"r_"+G.toString(32)+"_";return $.memoizedState=Z}function UX(){return W5().memoizedState=BL.bind(null,L0)}function BL($,Z){for(var G=$.return;G!==null;){switch(G.tag){case 24:case 3:var X=o5(G),N=z6(X),B=_6(G,N,X);B!==null&&(l4(X,"refresh()",$),C1(B,G,X),T7(B,G,X)),$=D3(),Z!==null&&Z!==void 0&&B!==null&&console.error("The seed argument is not enabled outside experimental channels."),N.payload={cache:$};return}G=G.return}}function HL($,Z,G){var X=arguments;typeof X[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()."),X=o5($);var N={lane:X,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};KG($)?mB(Z,N):(N=w3($,Z,N,X),N!==null&&(l4(X,"dispatch()",$),C1(N,$,X),dB(N,Z,X)))}function uB($,Z,G){var X=arguments;typeof X[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()."),X=o5($),E7($,Z,G,X)&&l4(X,"setState()",$)}function E7($,Z,G,X){var N={lane:X,revertLane:0,gesture:null,action:G,hasEagerState:!1,eagerState:null,next:null};if(KG($))mB(Z,N);else{var B=$.alternate;if($.lanes===0&&(B===null||B.lanes===0)&&(B=Z.lastRenderedReducer,B!==null)){var W=x.H;x.H=v4;try{var w=Z.lastRenderedState,_=B(w,G);if(N.hasEagerState=!0,N.eagerState=_,z5(_,w))return yQ($,Z,N,0),K1===null&&fQ(),!1}catch(V){}finally{x.H=W}}if(G=w3($,Z,N,X),G!==null)return C1(G,$,X),dB(G,Z,X),!0}return!1}function NX($,Z,G,X){if(x.T===null&&s2===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."),X={lane:2,revertLane:xX(),gesture:null,action:X,hasEagerState:!1,eagerState:null,next:null},KG($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=w3($,G,X,2),Z!==null&&(l4(2,"setOptimistic()",$),C1(Z,$,2))}function KG($){var Z=$.alternate;return $===L0||Z!==null&&Z===L0}function mB($,Z){_9=NJ=!0;var G=$.pending;G===null?Z.next=Z:(Z.next=G.next,G.next=Z),$.pending=Z}function dB($,Z,G){if((G&4194048)!==0){var X=Z.lanes;X&=$.pendingLanes,G|=X,Z.lanes=G,E2($,G)}}function KX($){if($!==null&&typeof $!=="function"){var Z=String($);xW.has(Z)||(xW.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function BX($,Z,G,X){var N=$.memoizedState,B=G(X,N);if($.mode&M5){H1(!0);try{B=G(X,N)}finally{H1(!1)}}B===void 0&&(Z=i(Z)||"Component",fW.has(Z)||(fW.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),N=B===null||B===void 0?N:y0({},N,B),$.memoizedState=N,$.lanes===0&&($.updateQueue.baseState=N)}function pB($,Z,G,X,N,B,W){var w=$.stateNode;if(typeof w.shouldComponentUpdate==="function"){if(G=w.shouldComponentUpdate(X,B,W),$.mode&M5){H1(!0);try{G=w.shouldComponentUpdate(X,B,W)}finally{H1(!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?!B7(G,X)||!B7(N,B):!0}function cB($,Z,G,X){var N=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(G,X),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(G,X),Z.state!==N&&($=d($)||"Component",AW.has($)||(AW.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),qU.enqueueReplaceState(Z,Z.state,null))}function h2($,Z){var G=Z;if("ref"in Z){G={};for(var X in Z)X!=="ref"&&(G[X]=Z[X])}if($=$.defaultProps){G===Z&&(G=y0({},G));for(var N in $)G[N]===void 0&&(G[N]=$[N])}return G}function lB($){yY($),console.warn(`%s
115
+ Incoming: %s`,u,"["+Z.join(", ")+"]","["+$.join(", ")+"]");for(var J=0;J<Z.length&&J<$.length;J++)if(!D5($[J],Z[J]))return!1;return!0}function ZX($,Z,J,Y,U,K){if(G8=K,V0=Z,v6=$!==null?$._debugHookTypes:null,X8=-1,jZ=$!==null&&$.type!==Z.type,Object.prototype.toString.call(J)==="[object AsyncFunction]"||Object.prototype.toString.call(J)==="[object AsyncGeneratorFunction]")K=d(V0),TN.has(K)||(TN.add(K),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.",K===null?"An unknown Component":"<"+K+">"));Z.memoizedState=null,Z.updateQueue=null,Z.lanes=0,x.H=$!==null&&$.memoizedState!==null?PN:v6!==null?JW:zN,F9=K=(Z.mode&L5)!==_0;var w=KN(J,Y,U);if(F9=!1,h7&&(w=QX(Z,J,Y,U)),K){w1(!0);try{w=QX(Z,J,Y,U)}finally{w1(!1)}}return rK($,Z),w}function rK($,Z){Z._debugHookTypes=v6,Z.dependencies===null?q8!==null&&(Z.dependencies={lanes:0,firstContext:null,_debugThenableState:q8}):Z.dependencies._debugThenableState=q8,x.H=vZ;var J=M1!==null&&M1.next!==null;if(G8=0,v6=u=c1=M1=V0=null,X8=-1,$!==null&&($.flags&65011712)!==(Z.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),bG=!1,DZ=0,q8=null,J)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||l1||($=$.dependencies,$!==null&&KJ($)&&(l1=!0)),EZ?(EZ=!1,$=!0):$=!1,$&&(Z=d(Z)||"Unknown",ZW.has(Z)||TN.has(Z)||(ZW.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 QX($,Z,J,Y){V0=$;var U=0;do{if(h7&&(q8=null),DZ=0,h7=!1,U>=cV)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(U+=1,jZ=!1,c1=M1=null,$.updateQueue!=null){var K=$.updateQueue;K.lastEffect=null,K.events=null,K.stores=null,K.memoCache!=null&&(K.memoCache.index=0)}X8=-1,x.H=GW,K=KN(Z,J,Y)}while(h7);return K}function YL(){var $=x.H,Z=$.useState()[0];return Z=typeof Z.then==="function"?y$(Z):Z,$=$.useState()[0],(M1!==null?M1.memoizedState:null)!==$&&(V0.flags|=1024),Z}function JX(){var $=kG!==0;return kG=0,$}function GX($,Z,J){Z.updateQueue=$.updateQueue,Z.flags=(Z.mode&n6)!==_0?Z.flags&-402655237:Z.flags&-2053,$.lanes&=~J}function qX($){if(bG){for($=$.memoizedState;$!==null;){var Z=$.queue;Z!==null&&(Z.pending=null),$=$.next}bG=!1}G8=0,v6=c1=M1=V0=null,X8=-1,u=null,h7=!1,DZ=kG=0,q8=null}function O5(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return c1===null?V0.memoizedState=c1=$:c1=c1.next=$,c1}function X1(){if(M1===null){var $=V0.alternate;$=$!==null?$.memoizedState:null}else $=M1.next;var Z=c1===null?V0.memoizedState:c1.next;if(Z!==null)c1=Z,M1=$;else{if($===null){if(V0.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.")}M1=$,$={memoizedState:M1.memoizedState,baseState:M1.baseState,baseQueue:M1.baseQueue,queue:M1.queue,next:null},c1===null?V0.memoizedState=c1=$:c1=c1.next=$}return c1}function VJ(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function y$($){var Z=DZ;return DZ+=1,q8===null&&(q8=vK()),$=kK(q8,$,Z),Z=V0,(c1===null?Z.memoizedState:c1.next)===null&&(Z=Z.alternate,x.H=Z!==null&&Z.memoizedState!==null?PN:zN),$}function u8($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return y$($);if($.$$typeof===P4)return V1($)}throw Error("An unsupported type was passed to use(): "+String($))}function i2($){var Z=null,J=V0.updateQueue;if(J!==null&&(Z=J.memoCache),Z==null){var Y=V0.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}),J===null&&(J=VJ(),V0.updateQueue=J),J.memoCache=Z,J=Z.data[Z.index],J===void 0||jZ)for(J=Z.data[Z.index]=Array($),Y=0;Y<$;Y++)J[Y]=L_;else J.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.",J.length,$);return Z.index++,J}function c6($,Z){return typeof Z==="function"?Z($):Z}function XX($,Z,J){var Y=O5();if(J!==void 0){var U=J(Z);if(F9){w1(!0);try{J(Z)}finally{w1(!1)}}}else U=Z;return Y.memoizedState=Y.baseState=U,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:U},Y.queue=$,$=$.dispatch=HL.bind(null,V0,$),[Y.memoizedState,$]}function Z7($){var Z=X1();return YX(Z,M1,$)}function YX($,Z,J){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=J;var U=$.baseQueue,K=Y.pending;if(K!==null){if(U!==null){var w=U.next;U.next=K.next,K.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=K,Y.pending=null}if(K=$.baseState,U===null)$.memoizedState=K;else{Z=U.next;var R=w=null,P=null,L=Z,k=!1;do{var f=L.lane&-536870913;if(f!==L.lane?(y0&f)===f:(G8&f)===f){var S=L.revertLane;if(S===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),f===U9&&(k=!0);else if((G8&S)===S){L=L.next,S===U9&&(k=!0);continue}else f={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},P===null?(R=P=f,w=K):P=P.next=f,V0.lanes|=S,X2|=S;f=L.action,F9&&J(K,f),K=L.hasEagerState?L.eagerState:J(K,f)}else S={lane:f,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},P===null?(R=P=S,w=K):P=P.next=S,V0.lanes|=f,X2|=f;L=L.next}while(L!==null&&L!==Z);if(P===null?w=K:P.next=R,!D5(K,$.memoizedState)&&(l1=!0,k&&(J=v7,J!==null)))throw J;$.memoizedState=K,$.baseState=w,$.baseQueue=P,Y.lastRenderedState=K}return U===null&&(Y.lanes=0),[$.memoizedState,Y.dispatch]}function g$($){var Z=X1(),J=Z.queue;if(J===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");J.lastRenderedReducer=$;var{dispatch:Y,pending:U}=J,K=Z.memoizedState;if(U!==null){J.pending=null;var w=U=U.next;do K=$(K,w.action),w=w.next;while(w!==U);D5(K,Z.memoizedState)||(l1=!0),Z.memoizedState=K,Z.baseQueue===null&&(Z.baseState=K),J.lastRenderedState=K}return[K,Y]}function NX($,Z,J){var Y=V0,U=O5();if(r0){if(J===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var K=J();g7||K===J()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),g7=!0)}else{if(K=Z(),g7||(J=Z(),D5(K,J)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g7=!0)),F1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(y0&127)!==0||sK(Y,Z,K)}return U.memoizedState=K,J={value:K,getSnapshot:Z},U.queue=J,AJ(oK.bind(null,Y,J,$),[$]),Y.flags|=2048,J7(j6|b5,{destroy:void 0},nK.bind(null,Y,J,K,Z),null),K}function IJ($,Z,J){var Y=V0,U=X1(),K=r0;if(K){if(J===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");J=J()}else if(J=Z(),!g7){var w=Z();D5(J,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g7=!0)}if(w=!D5((M1||U).memoizedState,J))U.memoizedState=J,l1=!0;U=U.queue;var R=oK.bind(null,Y,U,$);if(g5(2048,b5,R,[$]),U.getSnapshot!==Z||w||c1!==null&&c1.memoizedState.tag&j6){if(Y.flags|=2048,J7(j6|b5,{destroy:void 0},nK.bind(null,Y,U,J,Z),null),F1===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");K||(G8&127)!==0||sK(Y,Z,J)}return J}function sK($,Z,J){$.flags|=16384,$={getSnapshot:Z,value:J},Z=V0.updateQueue,Z===null?(Z=VJ(),V0.updateQueue=Z,Z.stores=[$]):(J=Z.stores,J===null?Z.stores=[$]:J.push($))}function nK($,Z,J,Y){Z.value=J,Z.getSnapshot=Y,aK(Z)&&iK($)}function oK($,Z,J){return J(function(){aK(Z)&&(X4(2,"updateSyncExternalStore()",$),iK($))})}function aK($){var Z=$.getSnapshot;$=$.value;try{var J=Z();return!D5($,J)}catch(Y){return!0}}function iK($){var Z=P5($,2);Z!==null&&D1(Z,$,2)}function UX($){var Z=O5();if(typeof $==="function"){var J=$;if($=J(),F9){w1(!0);try{J()}finally{w1(!1)}}}return Z.memoizedState=Z.baseState=$,Z.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:c6,lastRenderedState:$},Z}function BX($){$=UX($);var Z=$.queue,J=WH.bind(null,V0,Z);return Z.dispatch=J,[$.memoizedState,J]}function KX($){var Z=O5();Z.memoizedState=Z.baseState=$;var J={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return Z.queue=J,Z=IX.bind(null,V0,!0,J),J.dispatch=Z,[$,Z]}function tK($,Z){var J=X1();return eK(J,M1,$,Z)}function eK($,Z,J,Y){return $.baseState=J,YX($,M1,typeof Y==="function"?Y:c6)}function $H($,Z){var J=X1();if(M1!==null)return eK(J,M1,$,Z);return J.baseState=$,[$,J.queue.dispatch]}function NL($,Z,J,Y,U){if(kJ($))throw Error("Cannot update form state while rendering.");if($=Z.action,$!==null){var K={payload:U,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){K.listeners.push(w)}};x.T!==null?J(!0):K.isTransition=!1,Y(K),J=Z.pending,J===null?(K.next=Z.pending=K,ZH(Z,K)):(K.next=J.next,Z.pending=J.next=K)}}function ZH($,Z){var{action:J,payload:Y}=Z,U=$.state;if(Z.isTransition){var K=x.T,w={};w._updatedFibers=new Set,x.T=w;try{var R=J(U,Y),P=x.S;P!==null&&P(w,R),QH($,Z,R)}catch(L){HX($,Z,L)}finally{K!==null&&w.types!==null&&(K.types!==null&&K.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."),K.types=w.types),x.T=K,K===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=J(U,Y),QH($,Z,w)}catch(L){HX($,Z,L)}}function QH($,Z,J){J!==null&&typeof J==="object"&&typeof J.then==="function"?(x.asyncTransitions++,J.then(bJ,bJ),J.then(function(Y){JH($,Z,Y)},function(Y){return HX($,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.")):JH($,Z,J)}function JH($,Z,J){Z.status="fulfilled",Z.value=J,GH(Z),$.state=J,Z=$.pending,Z!==null&&(J=Z.next,J===Z?$.pending=null:(J=J.next,Z.next=J,ZH($,J)))}function HX($,Z,J){var Y=$.pending;if($.pending=null,Y!==null){Y=Y.next;do Z.status="rejected",Z.reason=J,GH(Z),Z=Z.next;while(Z!==Y)}$.action=null}function GH($){$=$.listeners;for(var Z=0;Z<$.length;Z++)(0,$[Z])()}function qH($,Z){return Z}function Q7($,Z){if(r0){var J=F1.formState;if(J!==null){$:{var Y=V0;if(r0){if(P1){Z:{var U=P1;for(var K=A6;U.nodeType!==8;){if(!K){U=null;break Z}if(U=Y6(U.nextSibling),U===null){U=null;break Z}}K=U.data,U=K===pN||K===pW?U:null}if(U){P1=Y6(U.nextSibling),Y=U.data===pN;break $}}v8(Y)}Y=!1}Y&&(Z=J[0])}}return J=O5(),J.memoizedState=J.baseState=Z,Y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qH,lastRenderedState:Z},J.queue=Y,J=WH.bind(null,V0,Y),Y.dispatch=J,Y=UX(!1),K=IX.bind(null,V0,!1,Y.queue),Y=O5(),U={state:Z,dispatch:null,action:$,pending:null},Y.queue=U,J=NL.bind(null,V0,U,K,J),U.dispatch=J,Y.memoizedState=$,[Z,J,!1]}function OJ($){var Z=X1();return XH(Z,M1,$)}function XH($,Z,J){if(Z=YX($,Z,qH)[0],$=Z7(c6)[0],typeof Z==="object"&&Z!==null&&typeof Z.then==="function")try{var Y=y$(Z)}catch(w){if(w===b7)throw SG;throw w}else Y=Z;Z=X1();var U=Z.queue,K=U.dispatch;return J!==Z.memoizedState&&(V0.flags|=2048,J7(j6|b5,{destroy:void 0},UL.bind(null,U,J),null)),[Y,K,$]}function UL($,Z){$.action=Z}function EJ($){var Z=X1(),J=M1;if(J!==null)return XH(Z,J,$);X1(),Z=Z.memoizedState,J=X1();var Y=J.queue.dispatch;return J.memoizedState=$,[Z,Y,!1]}function J7($,Z,J,Y){return $={tag:$,create:J,deps:Y,inst:Z,next:null},Z=V0.updateQueue,Z===null&&(Z=VJ(),V0.updateQueue=Z),J=Z.lastEffect,J===null?Z.lastEffect=$.next=$:(Y=J.next,J.next=$,$.next=Y,Z.lastEffect=$),$}function MX($){var Z=O5();return $={current:$},Z.memoizedState=$}function t2($,Z,J,Y){var U=O5();V0.flags|=$,U.memoizedState=J7(j6|Z,{destroy:void 0},J,Y===void 0?null:Y)}function g5($,Z,J,Y){var U=X1();Y=Y===void 0?null:Y;var K=U.memoizedState.inst;M1!==null&&Y!==null&&$X(Y,M1.memoizedState.deps)?U.memoizedState=J7(Z,K,J,Y):(V0.flags|=$,U.memoizedState=J7(j6|Z,K,J,Y))}function AJ($,Z){(V0.mode&n6)!==_0?t2(276826112,b5,$,Z):t2(8390656,b5,$,Z)}function BL($){V0.flags|=4;var Z=V0.updateQueue;if(Z===null)Z=VJ(),V0.updateQueue=Z,Z.events=[$];else{var J=Z.events;J===null?Z.events=[$]:J.push($)}}function FX($){var Z=O5(),J={impl:$};return Z.memoizedState=J,function(){if((a0&e1)!==Y5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return J.impl.apply(void 0,arguments)}}function SJ($){var Z=X1().memoizedState;return BL({ref:Z,nextImpl:$}),function(){if((a0&e1)!==Y5)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return Z.impl.apply(void 0,arguments)}}function wX($,Z){var J=4194308;return(V0.mode&n6)!==_0&&(J|=134217728),t2(J,M6,$,Z)}function YH($,Z){if(typeof Z==="function"){$=$();var J=Z($);return function(){typeof J==="function"?J():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 WX($,Z,J){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"),J=J!==null&&J!==void 0?J.concat([$]):null;var Y=4194308;(V0.mode&n6)!==_0&&(Y|=134217728),t2(Y,M6,YH.bind(null,Z,$),J)}function DJ($,Z,J){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"),J=J!==null&&J!==void 0?J.concat([$]):null,g5(4,M6,YH.bind(null,Z,$),J)}function RX($,Z){return O5().memoizedState=[$,Z===void 0?null:Z],$}function jJ($,Z){var J=X1();Z=Z===void 0?null:Z;var Y=J.memoizedState;if(Z!==null&&$X(Z,Y[1]))return Y[0];return J.memoizedState=[$,Z],$}function TX($,Z){var J=O5();Z=Z===void 0?null:Z;var Y=$();if(F9){w1(!0);try{$()}finally{w1(!1)}}return J.memoizedState=[Y,Z],Y}function vJ($,Z){var J=X1();Z=Z===void 0?null:Z;var Y=J.memoizedState;if(Z!==null&&$X(Z,Y[1]))return Y[0];if(Y=$(),F9){w1(!0);try{$()}finally{w1(!1)}}return J.memoizedState=[Y,Z],Y}function zX($,Z){var J=O5();return PX(J,$,Z)}function NH($,Z){var J=X1();return BH(J,M1.memoizedState,$,Z)}function UH($,Z){var J=X1();return M1===null?PX(J,$,Z):BH(J,M1.memoizedState,$,Z)}function PX($,Z,J){if(J===void 0||(G8&1073741824)!==0&&(y0&261930)===0)return $.memoizedState=Z;return $.memoizedState=J,$=KM(),V0.lanes|=$,X2|=$,J}function BH($,Z,J,Y){if(D5(J,Z))return J;if(f7.current!==null)return $=PX($,J,Y),D5($,Z)||(l1=!0),$;if((G8&42)===0||(G8&1073741824)!==0&&(y0&261930)===0)return l1=!0,$.memoizedState=J;return $=KM(),V0.lanes|=$,X2|=$,Z}function bJ(){x.asyncTransitions--}function KH($,Z,J,Y,U){var K=G1.p;G1.p=K!==0&&K<s6?K:s6;var w=x.T,R={};R._updatedFibers=new Set,x.T=R,IX($,!1,Z,J);try{var P=U(),L=x.S;if(L!==null&&L(R,P),P!==null&&typeof P==="object"&&typeof P.then==="function"){x.asyncTransitions++,P.then(bJ,bJ);var k=qL(P,Y);h$($,Z,k,X6($))}else h$($,Z,Y,X6($))}catch(f){h$($,Z,{then:function(){},status:"rejected",reason:f},X6($))}finally{G1.p=K,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 CX($,Z,J,Y){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var U=HH($).queue;JL($),KH($,U,Z,I9,J===null?W:function(){return MH($),J(Y)})}function HH($){var Z=$.memoizedState;if(Z!==null)return Z;Z={memoizedState:I9,baseState:I9,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:c6,lastRenderedState:I9},next:null};var J={};return Z.next={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:c6,lastRenderedState:J},next:null},$.memoizedState=Z,$=$.alternate,$!==null&&($.memoizedState=Z),Z}function MH($){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=HH($);Z.next===null&&(Z=$.alternate.memoizedState),h$($,Z.next.queue,{},X6($))}function LX(){var $=UX(!1);return $=KH.bind(null,V0,$.queue,!0,!1),O5().memoizedState=$,[!1,$]}function FH(){var $=Z7(c6)[0],Z=X1().memoizedState;return[typeof $==="boolean"?$:y$($),Z]}function wH(){var $=g$(c6)[0],Z=X1().memoizedState;return[typeof $==="boolean"?$:y$($),Z]}function e2(){return V1(sZ)}function _X(){var $=O5(),Z=F1.identifierPrefix;if(r0){var J=e4,Y=t4;J=(Y&~(1<<32-E5(Y)-1)).toString(32)+J,Z="_"+Z+"R_"+J,J=kG++,0<J&&(Z+="H"+J.toString(32)),Z+="_"}else J=pV++,Z="_"+Z+"r_"+J.toString(32)+"_";return $.memoizedState=Z}function VX(){return O5().memoizedState=KL.bind(null,V0)}function KL($,Z){for(var J=$.return;J!==null;){switch(J.tag){case 24:case 3:var Y=X6(J),U=f8(Y),K=y8(J,U,Y);K!==null&&(X4(Y,"refresh()",$),D1(K,J,Y),b$(K,J,Y)),$=cq(),Z!==null&&Z!==void 0&&K!==null&&console.error("The seed argument is not enabled outside experimental channels."),U.payload={cache:$};return}J=J.return}}function HL($,Z,J){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=X6($);var U={lane:Y,revertLane:0,gesture:null,action:J,hasEagerState:!1,eagerState:null,next:null};kJ($)?RH(Z,U):(U=vq($,Z,U,Y),U!==null&&(X4(Y,"dispatch()",$),D1(U,$,Y),TH(U,Z,Y)))}function WH($,Z,J){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=X6($),h$($,Z,J,Y)&&X4(Y,"setState()",$)}function h$($,Z,J,Y){var U={lane:Y,revertLane:0,gesture:null,action:J,hasEagerState:!1,eagerState:null,next:null};if(kJ($))RH(Z,U);else{var K=$.alternate;if($.lanes===0&&(K===null||K.lanes===0)&&(K=Z.lastRenderedReducer,K!==null)){var w=x.H;x.H=a6;try{var R=Z.lastRenderedState,P=K(R,J);if(U.hasEagerState=!0,U.eagerState=P,D5(P,R))return XJ($,Z,U,0),F1===null&&qJ(),!1}catch(L){}finally{x.H=w}}if(J=vq($,Z,U,Y),J!==null)return D1(J,$,Y),TH(J,Z,Y),!0}return!1}function IX($,Z,J,Y){if(x.T===null&&U9===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:ZY(),gesture:null,action:Y,hasEagerState:!1,eagerState:null,next:null},kJ($)){if(Z)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else Z=vq($,J,Y,2),Z!==null&&(X4(2,"setOptimistic()",$),D1(Z,$,2))}function kJ($){var Z=$.alternate;return $===V0||Z!==null&&Z===V0}function RH($,Z){h7=bG=!0;var J=$.pending;J===null?Z.next=Z:(Z.next=J.next,J.next=Z),$.pending=Z}function TH($,Z,J){if((J&4194048)!==0){var Y=Z.lanes;Y&=$.pendingLanes,J|=Y,Z.lanes=J,u2($,J)}}function OX($){if($!==null&&typeof $!=="function"){var Z=String($);wW.has(Z)||(wW.add(Z),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function EX($,Z,J,Y){var U=$.memoizedState,K=J(Y,U);if($.mode&L5){w1(!0);try{K=J(Y,U)}finally{w1(!1)}}K===void 0&&(Z=a(Z)||"Component",KW.has(Z)||(KW.add(Z),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",Z))),U=K===null||K===void 0?U:m0({},U,K),$.memoizedState=U,$.lanes===0&&($.updateQueue.baseState=U)}function zH($,Z,J,Y,U,K,w){var R=$.stateNode;if(typeof R.shouldComponentUpdate==="function"){if(J=R.shouldComponentUpdate(Y,K,w),$.mode&L5){w1(!0);try{J=R.shouldComponentUpdate(Y,K,w)}finally{w1(!1)}}return J===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",a(Z)||"Component"),J}return Z.prototype&&Z.prototype.isPureReactComponent?!O$(J,Y)||!O$(U,K):!0}function PH($,Z,J,Y){var U=Z.state;typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps(J,Y),typeof Z.UNSAFE_componentWillReceiveProps==="function"&&Z.UNSAFE_componentWillReceiveProps(J,Y),Z.state!==U&&($=d($)||"Component",XW.has($)||(XW.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),CN.enqueueReplaceState(Z,Z.state,null))}function $9($,Z){var J=Z;if("ref"in Z){J={};for(var Y in Z)Y!=="ref"&&(J[Y]=Z[Y])}if($=$.defaultProps){J===Z&&(J=m0({},J));for(var U in $)J[U]===void 0&&(J[U]=$[U])}return J}function CH($){tY($),console.warn(`%s
116
116
 
117
117
  %s
118
- `,L9?"An error occurred in the <"+L9+"> 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 rB($){var Z=L9?"The above error occurred in the <"+L9+"> 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, "+((XU||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var X=$.environmentName;$=[`%o
118
+ `,u7?"An error occurred in the <"+u7+"> 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 LH($){var Z=u7?"The above error occurred in the <"+u7+"> component.":"The above error occurred in one of your React components.",J="React will try to recreate this component tree from scratch using the error boundary you provided, "+((LN||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var Y=$.environmentName;$=[`%o
120
120
 
121
121
  %s
122
122
 
123
123
  %s
124
- `,$,Z,G].slice(0),typeof $[0]==="string"?$.splice(0,1,Lw+" "+$[0],Vw,fJ+X+fJ,Ew):$.splice(0,0,Lw,Vw,fJ+X+fJ,Ew),$.unshift(console),X=KP.apply(console.error,$),X()}else console.error(`%o
124
+ `,$,Z,J].slice(0),typeof $[0]==="string"?$.splice(0,1,iW+" "+$[0],tW,q3+Y+q3,eW):$.splice(0,0,iW,tW,q3+Y+q3,eW),$.unshift(console),Y=BI.apply(console.error,$),Y()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,$,Z,G)}function sB($){yY($)}function BG($,Z){try{L9=Z.source?d(Z.source):null,XU=null;var G=Z.value;if(x.actQueue!==null)x.thrownErrors.push(G);else{var X=$.onUncaughtError;X(G,{componentStack:Z.stack})}}catch(N){setTimeout(function(){throw N})}}function nB($,Z,G){try{L9=G.source?d(G.source):null,XU=d(Z);var X=$.onCaughtError;X(G.value,{componentStack:G.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(N){setTimeout(function(){throw N})}}function HX($,Z,G){return G=z6(G),G.tag=eY,G.payload={element:null},G.callback=function(){G0(Z.source,BG,$,Z)},G}function MX($){return $=z6($),$.tag=eY,$}function FX($,Z,G,X){var N=G.type.getDerivedStateFromError;if(typeof N==="function"){var B=X.value;$.payload=function(){return N(B)},$.callback=function(){mK(G),G0(X.source,nB,Z,G,X)}}var W=G.stateNode;W!==null&&typeof W.componentDidCatch==="function"&&($.callback=function(){mK(G),G0(X.source,nB,Z,G,X),typeof N!=="function"&&(r6===null?r6=new Set([this]):r6.add(this)),xE(this,X),typeof N==="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 ML($,Z,G,X,N){if(G.flags|=32768,U8&&S7($,N),X!==null&&typeof X==="object"&&typeof X.then==="function"){if(Z=G.alternate,Z!==null&&f$(Z,G,N,!0),p0&&(B8=!0),G=Z4.current,G!==null){switch(G.tag){case 31:case 13:return w4===null?_G():G.alternate===null&&E1===s8&&(E1=MJ),G.flags&=-257,G.flags|=65536,G.lanes=N,X===XJ?G.flags|=16384:(Z=G.updateQueue,Z===null?G.updateQueue=new Set([X]):Z.add(X),fX($,X,N)),!1;case 22:return G.flags|=65536,X===XJ?G.flags|=16384:(Z=G.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([X])},G.updateQueue=Z):(G=Z.retryQueue,G===null?Z.retryQueue=new Set([X]):G.add(X)),fX($,X,N)),!1}throw Error("Unexpected Suspense handler tag ("+G.tag+"). This is a bug in React.")}return fX($,X,N),_G(),!1}if(p0)return B8=!0,Z=Z4.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=N,X!==dY&&M7(l5(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:X}),G))):(X!==dY&&M7(l5(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:X}),G)),$=$.current.alternate,$.flags|=65536,N&=-N,$.lanes|=N,X=l5(X,G),N=HX($.stateNode,X,N),iQ($,N),E1!==d6&&(E1=e2)),!1;var B=l5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:X}),G);if(EZ===null?EZ=[B]:EZ.push(B),E1!==d6&&(E1=e2),Z===null)return!0;X=l5(X,G),G=Z;do{switch(G.tag){case 3:return G.flags|=65536,$=N&-N,G.lanes|=$,$=HX(G.stateNode,X,$),iQ(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"&&(r6===null||!r6.has(B))))return G.flags|=65536,N&=-N,G.lanes|=N,N=MX(N),FX(N,$,G,X),iQ(G,N),!1}G=G.return}while(G!==null);return!1}function Z5($,Z,G,X){Z.child=$===null?zW(Z,null,G,X):i2(Z,$.child,G,X)}function oB($,Z,G,X,N){G=G.render;var B=Z.ref;if("ref"in X){var W={};for(var w in X)w!=="ref"&&(W[w]=X[w])}else W=X;if(k2(Z),X=x3($,Z,G,W,B,N),w=m3(),$!==null&&!x1)return d3($,Z,N),S8($,Z,N);return p0&&w&&V3(Z),Z.flags|=1,Z5($,Z,X,N),Z.child}function aB($,Z,G,X,N){if($===null){var B=G.type;if(typeof B==="function"&&!T3(B)&&B.defaultProps===void 0&&G.compare===null)return G=j2(B),Z.tag=15,Z.type=G,wX(Z,B),iB($,Z,G,X,N);return $=z3(G.type,null,X,Z,Z.mode,N),$.ref=Z.ref,$.return=Z,Z.child=$}if(B=$.child,!VX($,N)){var W=B.memoizedProps;if(G=G.compare,G=G!==null?G:B7,G(W,X)&&$.ref===Z.ref)return S8($,Z,N)}return Z.flags|=1,$=O8(B,X),$.ref=Z.ref,$.return=Z,Z.child=$}function iB($,Z,G,X,N){if($!==null){var B=$.memoizedProps;if(B7(B,X)&&$.ref===Z.ref&&Z.type===$.type)if(x1=!1,Z.pendingProps=X=B,VX($,N))($.flags&131072)!==0&&(x1=!0);else return Z.lanes=$.lanes,S8($,Z,N)}return WX($,Z,G,X,N)}function tB($,Z,G,X){var N=X.children,B=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:t7,_pendingMarkers:null,_retryCache:null,_transitions:null}),X.mode==="hidden"){if((Z.flags&128)!==0){if(B=B!==null?B.baseLanes|G:G,$!==null){X=Z.child=$.child;for(N=0;X!==null;)N=N|X.lanes|X.childLanes,X=X.sibling;X=N&~B}else X=0,Z.child=null;return eB($,Z,B,G,X)}if((G&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&lQ(Z,B!==null?B.cachePool:null),B!==null?FB(Z,B):f3(Z),WB(Z);else return X=Z.lanes=536870912,eB($,Z,B!==null?B.baseLanes|G:G,G,X)}else B!==null?(lQ(Z,B.cachePool),FB(Z,B),V6(Z),Z.memoizedState=null):($!==null&&lQ(Z,null),f3(Z),V6(Z));return Z5($,Z,N,G),Z.child}function P7($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:t7,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function eB($,Z,G,X,N){var B=S3();return B=B===null?null:{parent:y1._currentValue,pool:B},Z.memoizedState={baseLanes:G,cachePool:B},$!==null&&lQ(Z,null),f3(Z),WB(Z),$!==null&&f$($,Z,X,!0),Z.childLanes=N,null}function HG($,Z){var G=Z.hidden;return G!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,$,Z,J)}function _H($){tY($)}function fJ($,Z){try{u7=Z.source?d(Z.source):null,LN=null;var J=Z.value;if(x.actQueue!==null)x.thrownErrors.push(J);else{var Y=$.onUncaughtError;Y(J,{componentStack:Z.stack})}}catch(U){setTimeout(function(){throw U})}}function VH($,Z,J){try{u7=J.source?d(J.source):null,LN=d(Z);var Y=$.onCaughtError;Y(J.value,{componentStack:J.stack,errorBoundary:Z.tag===1?Z.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function AX($,Z,J){return J=f8(J),J.tag=wN,J.payload={element:null},J.callback=function(){G0(Z.source,fJ,$,Z)},J}function SX($){return $=f8($),$.tag=wN,$}function DX($,Z,J,Y){var U=J.type.getDerivedStateFromError;if(typeof U==="function"){var K=Y.value;$.payload=function(){return U(K)},$.callback=function(){RK(J),G0(Y.source,VH,Z,J,Y)}}var w=J.stateNode;w!==null&&typeof w.componentDidCatch==="function"&&($.callback=function(){RK(J),G0(Y.source,VH,Z,J,Y),typeof U!=="function"&&(N2===null?N2=new Set([this]):N2.add(this)),uV(this,Y),typeof U==="function"||(J.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(J)||"Unknown")})}function ML($,Z,J,Y,U){if(J.flags|=32768,_4&&r$($,U),Y!==null&&typeof Y==="object"&&typeof Y.then==="function"){if(Z=J.alternate,Z!==null&&e9(Z,J,U,!0),r0&&(O4=!0),J=H6.current,J!==null){switch(J.tag){case 31:case 13:return D6===null?cJ():J.alternate===null&&E1===N8&&(E1=gG),J.flags&=-257,J.flags|=65536,J.lanes=U,Y===DG?J.flags|=16384:(Z=J.updateQueue,Z===null?J.updateQueue=new Set([Y]):Z.add(Y),iX($,Y,U)),!1;case 22:return J.flags|=65536,Y===DG?J.flags|=16384:(Z=J.updateQueue,Z===null?(Z={transitions:null,markerInstances:null,retryQueue:new Set([Y])},J.updateQueue=Z):(J=Z.retryQueue,J===null?Z.retryQueue=new Set([Y]):J.add(Y)),iX($,Y,U)),!1}throw Error("Unexpected Suspense handler tag ("+J.tag+"). This is a bug in React.")}return iX($,Y,U),cJ(),!1}if(r0)return O4=!0,Z=H6.current,Z!==null?((Z.flags&65536)===0&&(Z.flags|=256),Z.flags|=65536,Z.lanes=U,Y!==GN&&A$(Q6(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Y}),J))):(Y!==GN&&A$(Q6(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Y}),J)),$=$.current.alternate,$.flags|=65536,U&=-U,$.lanes|=U,Y=Q6(Y,J),U=AX($.stateNode,Y,U),CJ($,U),E1!==G2&&(E1=w9)),!1;var K=Q6(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Y}),J);if(hZ===null?hZ=[K]:hZ.push(K),E1!==G2&&(E1=w9),Z===null)return!0;Y=Q6(Y,J),J=Z;do{switch(J.tag){case 3:return J.flags|=65536,$=U&-U,J.lanes|=$,$=AX(J.stateNode,Y,$),CJ(J,$),!1;case 1:if(Z=J.type,K=J.stateNode,(J.flags&128)===0&&(typeof Z.getDerivedStateFromError==="function"||K!==null&&typeof K.componentDidCatch==="function"&&(N2===null||!N2.has(K))))return J.flags|=65536,U&=-U,J.lanes|=U,U=SX(U),DX(U,$,J,Y),CJ(J,U),!1}J=J.return}while(J!==null);return!1}function B5($,Z,J,Y){Z.child=$===null?ow(Z,null,J,Y):M9(Z,$.child,J,Y)}function IH($,Z,J,Y,U){J=J.render;var K=Z.ref;if("ref"in Y){var w={};for(var R in Y)R!=="ref"&&(w[R]=Y[R])}else w=Y;if(o2(Z),Y=ZX($,Z,J,w,K,U),R=JX(),$!==null&&!l1)return GX($,Z,U),r4($,Z,U);return r0&&R&&hq(Z),Z.flags|=1,B5($,Z,Y,U),Z.child}function OH($,Z,J,Y,U){if($===null){var K=J.type;if(typeof K==="function"&&!kq(K)&&K.defaultProps===void 0&&J.compare===null)return J=l2(K),Z.tag=15,Z.type=J,vX(Z,K),EH($,Z,J,Y,U);return $=fq(J.type,null,Y,Z,Z.mode,U),$.ref=Z.ref,$.return=Z,Z.child=$}if(K=$.child,!hX($,U)){var w=K.memoizedProps;if(J=J.compare,J=J!==null?J:O$,J(w,Y)&&$.ref===Z.ref)return r4($,Z,U)}return Z.flags|=1,$=d4(K,Y),$.ref=Z.ref,$.return=Z,Z.child=$}function EH($,Z,J,Y,U){if($!==null){var K=$.memoizedProps;if(O$(K,Y)&&$.ref===Z.ref&&Z.type===$.type)if(l1=!1,Z.pendingProps=Y=K,hX($,U))($.flags&131072)!==0&&(l1=!0);else return Z.lanes=$.lanes,r4($,Z,U)}return jX($,Z,J,Y,U)}function AH($,Z,J,Y){var U=Y.children,K=$!==null?$.memoizedState:null;if($===null&&Z.stateNode===null&&(Z.stateNode={_visibility:MZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Y.mode==="hidden"){if((Z.flags&128)!==0){if(K=K!==null?K.baseLanes|J:J,$!==null){Y=Z.child=$.child;for(U=0;Y!==null;)U=U|Y.lanes|Y.childLanes,Y=Y.sibling;Y=U&~K}else Y=0,Z.child=null;return SH($,Z,K,J,Y)}if((J&536870912)!==0)Z.memoizedState={baseLanes:0,cachePool:null},$!==null&&wJ(Z,K!==null?K.cachePool:null),K!==null?cK(Z,K):iq(Z),lK(Z);else return Y=Z.lanes=536870912,SH($,Z,K!==null?K.baseLanes|J:J,J,Y)}else K!==null?(wJ(Z,K.cachePool),cK(Z,K),h8(Z),Z.memoizedState=null):($!==null&&wJ(Z,null),iq(Z),h8(Z));return B5($,Z,U,J),Z.child}function u$($,Z){return $!==null&&$.tag===22||Z.stateNode!==null||(Z.stateNode={_visibility:MZ,_pendingMarkers:null,_retryCache:null,_transitions:null}),Z.sibling}function SH($,Z,J,Y,U){var K=sq();return K=K===null?null:{parent:d1._currentValue,pool:K},Z.memoizedState={baseLanes:J,cachePool:K},$!==null&&wJ(Z,null),iq(Z),lK(Z),$!==null&&e9($,Z,Y,!0),Z.childLanes=U,null}function yJ($,Z){var J=Z.hidden;return J!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
130
  - <Activity %s>
131
- + <Activity %s>`,G===!0?"hidden":G===!1?"hidden={false}":"hidden={...}",G?'mode="hidden"':'mode="visible"'),Z=FG({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function $H($,Z,G){return i2(Z,$.child,null,G),$=HG(Z,Z.pendingProps),$.flags|=2,n5(Z),Z.memoizedState=null,$}function FL($,Z,G){var X=Z.pendingProps,N=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(p0){if(X.mode==="hidden")return $=HG(Z,X),Z.lanes=536870912,P7(null,$);if(g3(Z),($=R1)?(G=CM($,F4),G=G!==null&&G.data===q$?G:null,G!==null&&(X={dehydrated:G,treeContext:rK(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=X,X=cK(G),X.return=Z,Z.child=X,J5=Z,R1=null)):G=null,G===null)throw xQ(Z,$),w6(Z);return Z.lanes=536870912,null}return HG(Z,X)}var B=$.memoizedState;if(B!==null){var W=B.dehydrated;if(g3(Z),N)if(Z.flags&256)Z.flags&=-257,Z=$H($,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(nK(),(G&536870912)!==0&&zG(Z),x1||f$($,Z,G,!1),N=(G&$.childLanes)!==0,x1||N){if(X=K1,X!==null&&(W=P2(X,G),W!==0&&W!==B.retryLane))throw B.retryLane=W,B5($,W),C1(X,$,W),YU;_G(),Z=$H($,Z,G)}else $=B.treeContext,R1=a5(W.nextSibling),J5=Z,p0=!0,f6=null,B8=!1,$4=null,F4=!1,$!==null&&sK(Z,$),Z=HG(Z,X),Z.flags|=4096;return Z}return B=$.child,X={mode:X.mode,children:X.children},(G&536870912)!==0&&(G&$.lanes)!==0&&zG(Z),$=O8(B,X),$.ref=Z.ref,Z.child=$,$.return=Z,$}function MG($,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 WX($,Z,G,X,N){if(G.prototype&&typeof G.prototype.render==="function"){var B=i(G)||"Unknown";uW[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),uW[B]=!0)}if(Z.mode&M5&&S4.recordLegacyContextWarning(Z,null),$===null&&(wX(Z,Z.type),G.contextTypes&&(B=i(G)||"Unknown",dW[B]||(dW[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)))),k2(Z),G=x3($,Z,G,X,void 0,N),X=m3(),$!==null&&!x1)return d3($,Z,N),S8($,Z,N);return p0&&X&&V3(Z),Z.flags|=1,Z5($,Z,G,N),Z.child}function ZH($,Z,G,X,N,B){if(k2(Z),l8=-1,wZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,G=u3(Z,X,G,N),wB($,Z),X=m3(),$!==null&&!x1)return d3($,Z,B),S8($,Z,B);return p0&&X&&V3(Z),Z.flags|=1,Z5($,Z,G,B),Z.child}function QH($,Z,G,X,N){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 w=N&-N;if(Z.lanes|=w,W=K1,W===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");w=MX(w),FX(w,W,Z,l5(B,Z)),iQ(Z,w)}if(k2(Z),Z.stateNode===null){if(W=b6,B=G.contextType,"contextType"in G&&B!==null&&(B===void 0||B.$$typeof!==q8)&&!hW.has(G)&&(hW.add(G),w=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===UY?" 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",w)),typeof B==="object"&&B!==null&&(W=_1(B)),B=new G(X,W),Z.mode&M5){H1(!0);try{B=new G(X,W)}finally{H1(!1)}}if(W=Z.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=qU,Z.stateNode=B,B._reactInternals=Z,B._reactInternalInstance=jW,typeof G.getDerivedStateFromProps==="function"&&W===null&&(W=i(G)||"Component",SW.has(W)||(SW.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 _=w=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?w="componentWillReceiveProps":typeof B.UNSAFE_componentWillReceiveProps==="function"&&(w="UNSAFE_componentWillReceiveProps"),typeof B.componentWillUpdate==="function"&&B.componentWillUpdate.__suppressDeprecationWarning!==!0?_="componentWillUpdate":typeof B.UNSAFE_componentWillUpdate==="function"&&(_="UNSAFE_componentWillUpdate"),W!==null||w!==null||_!==null){B=i(G)||"Component";var V=typeof G.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";kW.has(B)||(kW.add(B),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,J===!0?"hidden":J===!1?"hidden={false}":"hidden={...}",J?'mode="hidden"':'mode="visible"'),Z=hJ({mode:Z.mode,children:Z.children},$.mode),Z.ref=$.ref,$.child=Z,Z.return=$,Z}function DH($,Z,J){return M9(Z,$.child,null,J),$=yJ(Z,Z.pendingProps),$.flags|=2,q6(Z),Z.memoizedState=null,$}function FL($,Z,J){var Y=Z.pendingProps,U=(Z.flags&128)!==0;if(Z.flags&=-129,$===null){if(r0){if(Y.mode==="hidden")return $=yJ(Z,Y),Z.lanes=536870912,u$(null,$);if(eq(Z),($=P1)?(J=ZF($,A6),J=J!==null&&J.data===C9?J:null,J!==null&&(Y={dehydrated:J,treeContext:LK(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=PK(J),Y.return=Z,Z.child=Y,M5=Z,P1=null)):J=null,J===null)throw UJ(Z,$),v8(Z);return Z.lanes=536870912,null}return yJ(Z,Y)}var K=$.memoizedState;if(K!==null){var w=K.dehydrated;if(eq(Z),U)if(Z.flags&256)Z.flags&=-257,Z=DH($,Z,J);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(VK(),(J&536870912)!==0&&pJ(Z),l1||e9($,Z,J,!1),U=(J&$.childLanes)!==0,l1||U){if(Y=F1,Y!==null&&(w=x2(Y,J),w!==0&&w!==K.retryLane))throw K.retryLane=w,P5($,w),D1(Y,$,w),_N;cJ(),Z=DH($,Z,J)}else $=K.treeContext,P1=Y6(w.nextSibling),M5=Z,r0=!0,i8=null,O4=!1,K6=null,A6=!1,$!==null&&_K(Z,$),Z=yJ(Z,Y),Z.flags|=4096;return Z}return K=$.child,Y={mode:Y.mode,children:Y.children},(J&536870912)!==0&&(J&$.lanes)!==0&&pJ(Z),$=d4(K,Y),$.ref=Z.ref,Z.child=$,$.return=Z,$}function gJ($,Z){var J=Z.ref;if(J===null)$!==null&&$.ref!==null&&(Z.flags|=4194816);else{if(typeof J!=="function"&&typeof J!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==J)Z.flags|=4194816}}function jX($,Z,J,Y,U){if(J.prototype&&typeof J.prototype.render==="function"){var K=a(J)||"Unknown";WW[K]||(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.",K,K),WW[K]=!0)}if(Z.mode&L5&&o6.recordLegacyContextWarning(Z,null),$===null&&(vX(Z,Z.type),J.contextTypes&&(K=a(J)||"Unknown",TW[K]||(TW[K]=!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)",K)))),o2(Z),J=ZX($,Z,J,Y,void 0,U),Y=JX(),$!==null&&!l1)return GX($,Z,U),r4($,Z,U);return r0&&Y&&hq(Z),Z.flags|=1,B5($,Z,J,U),Z.child}function jH($,Z,J,Y,U,K){if(o2(Z),X8=-1,jZ=$!==null&&$.type!==Z.type,Z.updateQueue=null,J=QX(Z,Y,J,U),rK($,Z),Y=JX(),$!==null&&!l1)return GX($,Z,K),r4($,Z,K);return r0&&Y&&hq(Z),Z.flags|=1,B5($,Z,J,K),Z.child}function vH($,Z,J,Y,U){switch(H(Z)){case!1:var K=Z.stateNode,w=new Z.type(Z.memoizedProps,K.context).state;K.updater.enqueueSetState(K,w,null);break;case!0:Z.flags|=128,Z.flags|=65536,K=Error("Simulated error coming from DevTools");var R=U&-U;if(Z.lanes|=R,w=F1,w===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");R=SX(R),DX(R,w,Z,Q6(K,Z)),CJ(Z,R)}if(o2(Z),Z.stateNode===null){if(w=a8,K=J.contextType,"contextType"in J&&K!==null&&(K===void 0||K.$$typeof!==P4)&&!FW.has(J)&&(FW.add(J),R=K===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 K!=="object"?" However, it is set to a "+typeof K+".":K.$$typeof===VY?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(K).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",a(J)||"Component",R)),typeof K==="object"&&K!==null&&(w=V1(K)),K=new J(Y,w),Z.mode&L5){w1(!0);try{K=new J(Y,w)}finally{w1(!1)}}if(w=Z.memoizedState=K.state!==null&&K.state!==void 0?K.state:null,K.updater=CN,Z.stateNode=K,K._reactInternals=Z,K._reactInternalInstance=qW,typeof J.getDerivedStateFromProps==="function"&&w===null&&(w=a(J)||"Component",YW.has(w)||(YW.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,K.state===null?"null":"undefined",w))),typeof J.getDerivedStateFromProps==="function"||typeof K.getSnapshotBeforeUpdate==="function"){var P=R=w=null;if(typeof K.componentWillMount==="function"&&K.componentWillMount.__suppressDeprecationWarning!==!0?w="componentWillMount":typeof K.UNSAFE_componentWillMount==="function"&&(w="UNSAFE_componentWillMount"),typeof K.componentWillReceiveProps==="function"&&K.componentWillReceiveProps.__suppressDeprecationWarning!==!0?R="componentWillReceiveProps":typeof K.UNSAFE_componentWillReceiveProps==="function"&&(R="UNSAFE_componentWillReceiveProps"),typeof K.componentWillUpdate==="function"&&K.componentWillUpdate.__suppressDeprecationWarning!==!0?P="componentWillUpdate":typeof K.UNSAFE_componentWillUpdate==="function"&&(P="UNSAFE_componentWillUpdate"),w!==null||R!==null||P!==null){K=a(J)||"Component";var L=typeof J.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";UW.has(K)||(UW.add(K),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
132
 
133
133
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
134
 
135
135
  The above lifecycles should be removed. Learn more about this warning here:
136
- https://react.dev/link/unsafe-component-lifecycles`,B,V,W!==null?`
137
- `+W:"",w!==null?`
138
- `+w:"",_!==null?`
139
- `+_:""))}}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&&!gW.has(G)&&(gW.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&&!yW.has(G)&&(yW.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),w=B.props!==X,B.props!==void 0&&w&&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"||vW.has(G)||(vW.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),(w=B.state)&&(typeof w!=="object"||c1(w))&&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=X,B.state=Z.memoizedState,B.refs={},k3(Z),W=G.contextType,B.context=typeof W==="object"&&W!==null?_1(W):b6,B.state===X&&(W=i(G)||"Component",bW.has(W)||(bW.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&M5&&S4.recordLegacyContextWarning(Z,B),S4.recordUnsafeLifecycleWarnings(Z,B),B.state=Z.memoizedState,W=G.getDerivedStateFromProps,typeof W==="function"&&(BX(Z,G,W,X),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"),qU.enqueueReplaceState(B,B.state,null)),_7(Z,X,B,N),z7(),B.state=Z.memoizedState),typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&A4)!==_0&&(Z.flags|=134217728),B=!0}else if($===null){B=Z.stateNode;var k=Z.memoizedProps;w=h2(G,k),B.props=w;var b=B.context;_=G.contextType,W=b6,typeof _==="object"&&_!==null&&(W=_1(_)),V=G.getDerivedStateFromProps,_=typeof V==="function"||typeof B.getSnapshotBeforeUpdate==="function",k=Z.pendingProps!==k,_||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(k||b!==W)&&cB(Z,B,X,W),m6=!1;var D=Z.memoizedState;B.state=D,_7(Z,X,B,N),z7(),b=Z.memoizedState,k||D!==b||m6?(typeof V==="function"&&(BX(Z,G,V,X),b=Z.memoizedState),(w=m6||pB(Z,G,w,X,D,b,W))?(_||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&A4)!==_0&&(Z.flags|=134217728)):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&A4)!==_0&&(Z.flags|=134217728),Z.memoizedProps=X,Z.memoizedState=b),B.props=X,B.state=b,B.context=W,B=w):(typeof B.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&A4)!==_0&&(Z.flags|=134217728),B=!1)}else{B=Z.stateNode,b3($,Z),W=Z.memoizedProps,_=h2(G,W),B.props=_,V=Z.pendingProps,D=B.context,b=G.contextType,w=b6,typeof b==="object"&&b!==null&&(w=_1(b)),k=G.getDerivedStateFromProps,(b=typeof k==="function"||typeof B.getSnapshotBeforeUpdate==="function")||typeof B.UNSAFE_componentWillReceiveProps!=="function"&&typeof B.componentWillReceiveProps!=="function"||(W!==V||D!==w)&&cB(Z,B,X,w),m6=!1,D=Z.memoizedState,B.state=D,_7(Z,X,B,N),z7();var y=Z.memoizedState;W!==V||D!==y||m6||$!==null&&$.dependencies!==null&&mQ($.dependencies)?(typeof k==="function"&&(BX(Z,G,k,X),y=Z.memoizedState),(_=m6||pB(Z,G,_,X,D,y,w)||$!==null&&$.dependencies!==null&&mQ($.dependencies))?(b||typeof B.UNSAFE_componentWillUpdate!=="function"&&typeof B.componentWillUpdate!=="function"||(typeof B.componentWillUpdate==="function"&&B.componentWillUpdate(X,y,w),typeof B.UNSAFE_componentWillUpdate==="function"&&B.UNSAFE_componentWillUpdate(X,y,w)),typeof B.componentDidUpdate==="function"&&(Z.flags|=4),typeof B.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&D===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&D===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=X,Z.memoizedState=y),B.props=X,B.state=y,B.context=w,B=_):(typeof B.componentDidUpdate!=="function"||W===$.memoizedProps&&D===$.memoizedState||(Z.flags|=4),typeof B.getSnapshotBeforeUpdate!=="function"||W===$.memoizedProps&&D===$.memoizedState||(Z.flags|=1024),B=!1)}if(w=B,MG($,Z),W=(Z.flags&128)!==0,w||W){if(w=Z.stateNode,O$(Z),W&&typeof G.getDerivedStateFromError!=="function")G=null,_5=-1;else if(G=qW(w),Z.mode&M5){H1(!0);try{qW(w)}finally{H1(!1)}}Z.flags|=1,$!==null&&W?(Z.child=i2(Z,$.child,null,N),Z.child=i2(Z,null,G,N)):Z5($,Z,G,N),Z.memoizedState=w.state,$=Z.child}else $=S8($,Z,N);return N=Z.stateNode,B&&N.props!==X&&(V9||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"),V9=!0),$}function GH($,Z,G,X){return v2(),Z.flags|=256,Z5($,Z,G,X),Z.child}function wX($,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",pW[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),pW[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=i(Z)||"Unknown",mW[Z]||(console.error("%s: Function components do not support contextType.",Z),mW[Z]=!0))}function RX($){return{baseLanes:$,cachePool:ZB()}}function TX($,Z,G){return $=$!==null?$.childLanes&~G:0,Z&&($|=v5),$}function JH($,Z,G){var X,N=Z.pendingProps;K(Z)&&(Z.flags|=128);var B=!1,W=(Z.flags&128)!==0;if((X=W)||(X=$!==null&&$.memoizedState===null?!1:(v1.current&FZ)!==0),X&&(B=!0,Z.flags&=-129),X=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(p0){if(B?L6(Z):V6(Z),($=R1)?(G=CM($,F4),G=G!==null&&G.data!==q$?G:null,G!==null&&(X={dehydrated:G,treeContext:rK(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=X,X=cK(G),X.return=Z,Z.child=X,J5=Z,R1=null)):G=null,G===null)throw xQ(Z,$),w6(Z);return iX(G)?Z.lanes=32:Z.lanes=536870912,null}var w=N.children;if(N=N.fallback,B){V6(Z);var _=Z.mode;return w=FG({mode:"hidden",children:w},_),N=A2(N,_,G,null),w.return=Z,N.return=Z,w.sibling=N,Z.child=w,N=Z.child,N.memoizedState=RX(G),N.childLanes=TX($,X,G),Z.memoizedState=UU,P7(null,N)}return L6(Z),zX(Z,w)}var V=$.memoizedState;if(V!==null){var k=V.dehydrated;if(k!==null){if(W)Z.flags&256?(L6(Z),Z.flags&=-257,Z=_X($,Z,G)):Z.memoizedState!==null?(V6(Z),Z.child=$.child,Z.flags|=128,Z=null):(V6(Z),w=N.fallback,_=Z.mode,N=FG({mode:"visible",children:N.children},_),w=A2(w,_,G,null),w.flags|=2,N.return=Z,w.return=Z,N.sibling=w,Z.child=N,i2(Z,$.child,null,G),N=Z.child,N.memoizedState=RX(G),N.childLanes=TX($,X,G),Z.memoizedState=UU,Z=P7(null,N));else if(L6(Z),nK(),(G&536870912)!==0&&zG(Z),iX(k)){if(X=k.nextSibling&&k.nextSibling.dataset,X){w=X.dgst;var b=X.msg;_=X.stck;var D=X.cstck}B=b,X=w,N=_,k=D,w=B,_=k,w=w?Error(w):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),w.stack=N||"",w.digest=X,X=_===void 0?null:_,N={value:w,source:null,stack:X},typeof X==="string"&&mY.set(w,N),M7(N),Z=_X($,Z,G)}else if(x1||f$($,Z,G,!1),X=(G&$.childLanes)!==0,x1||X){if(X=K1,X!==null&&(N=P2(X,G),N!==0&&N!==V.retryLane))throw V.retryLane=N,B5($,N),C1(X,$,N),YU;aX(k)||_G(),Z=_X($,Z,G)}else aX(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=V.treeContext,R1=a5(k.nextSibling),J5=Z,p0=!0,f6=null,B8=!1,$4=null,F4=!1,$!==null&&sK(Z,$),Z=zX(Z,N.children),Z.flags|=4096);return Z}}if(B)return V6(Z),w=N.fallback,_=Z.mode,D=$.child,k=D.sibling,N=O8(D,{mode:"hidden",children:N.children}),N.subtreeFlags=D.subtreeFlags&65011712,k!==null?w=O8(k,w):(w=A2(w,_,G,null),w.flags|=2),w.return=Z,N.return=Z,N.sibling=w,Z.child=N,P7(null,N),N=Z.child,w=$.child.memoizedState,w===null?w=RX(G):(_=w.cachePool,_!==null?(D=y1._currentValue,_=_.parent!==D?{parent:D,pool:D}:_):_=ZB(),w={baseLanes:w.baseLanes|G,cachePool:_}),N.memoizedState=w,N.childLanes=TX($,X,G),Z.memoizedState=UU,P7($.child,N);return V!==null&&(G&62914560)===G&&(G&$.lanes)!==0&&zG(Z),L6(Z),G=$.child,$=G.sibling,G=O8(G,{mode:"visible",children:N.children}),G.return=Z,G.sibling=null,$!==null&&(X=Z.deletions,X===null?(Z.deletions=[$],Z.flags|=16):X.push($)),Z.child=G,Z.memoizedState=null,G}function zX($,Z){return Z=FG({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function FG($,Z){return $=L(22,$,null,Z),$.lanes=0,$}function _X($,Z,G){return i2(Z,$.child,null,G),$=zX(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function qH($,Z,G){$.lanes|=Z;var X=$.alternate;X!==null&&(X.lanes|=Z),I3($.return,Z,G)}function LX($,Z,G,X,N,B){var W=$.memoizedState;W===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:X,tail:G,tailMode:N,treeForkCount:B}:(W.isBackwards=Z,W.rendering=null,W.renderingStartTime=0,W.last=X,W.tail=G,W.tailMode=N,W.treeForkCount=B)}function XH($,Z,G){var X=Z.pendingProps,N=X.revealOrder,B=X.tail,W=X.children,w=v1.current;if((X=(w&FZ)!==0)?(w=w&T9|FZ,Z.flags|=128):w&=T9,z0(v1,w,Z),w=N==null?"null":N,N!=="forwards"&&N!=="unstable_legacy-backwards"&&N!=="together"&&N!=="independent"&&!cW[w])if(cW[w]=!0,N==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(N==="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 N==="string")switch(N.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.',N,N.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.',N,N.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',N)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',N);if(w=B==null?"null":B,!HJ[w])if(B==null){if(N==="forwards"||N==="backwards"||N==="unstable_legacy-backwards")HJ[w]=!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"?(HJ[w]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',B)):N!=="forwards"&&N!=="backwards"&&N!=="unstable_legacy-backwards"&&(HJ[w]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',B));$:if((N==="forwards"||N==="backwards"||N==="unstable_legacy-backwards")&&W!==void 0&&W!==null&&W!==!1)if(c1(W)){for(w=0;w<W.length;w++)if(!BB(W[w],w))break $}else if(w=p(W),typeof w==="function"){if(w=w.call(W))for(var _=w.next(),V=0;!_.done;_=w.next()){if(!BB(_.value,V))break $;V++}}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?',N);if(Z5($,Z,W,G),p0?(W6(),W=e7):W=0,!X&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&qH($,G,Z);else if($.tag===19)qH($,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(N){case"forwards":G=Z.child;for(N=null;G!==null;)$=G.alternate,$!==null&&tQ($)===null&&(N=G),G=G.sibling;G=N,G===null?(N=Z.child,Z.child=null):(N=G.sibling,G.sibling=null),LX(Z,!1,N,G,B,W);break;case"backwards":case"unstable_legacy-backwards":G=null,N=Z.child;for(Z.child=null;N!==null;){if($=N.alternate,$!==null&&tQ($)===null){Z.child=N;break}$=N.sibling,N.sibling=G,G=N,N=$}LX(Z,!0,G,null,B,W);break;case"together":LX(Z,!1,null,null,void 0,W);break;default:Z.memoizedState=null}return Z.child}function S8($,Z,G){if($!==null&&(Z.dependencies=$.dependencies),_5=-1,c6|=Z.lanes,(G&Z.childLanes)===0)if($!==null){if(f$($,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=O8($,$.pendingProps),Z.child=G;for(G.return=Z;$.sibling!==null;)$=$.sibling,G=G.sibling=O8($,$.pendingProps),G.return=Z;G.sibling=null}return Z.child}function VX($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&mQ($)?!0:!1}function WL($,Z,G){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),R6(Z,y1,$.memoizedState.cache),v2();break;case 27:case 5:d0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:R6(Z,Z.type,Z.memoizedProps.value);break;case 12:(G&Z.childLanes)!==0&&(Z.flags|=4),Z.flags|=2048;var X=Z.stateNode;X.effectDuration=-0,X.passiveEffectDuration=-0;break;case 31:if(Z.memoizedState!==null)return Z.flags|=128,g3(Z),null;break;case 13:if(X=Z.memoizedState,X!==null){if(X.dehydrated!==null)return L6(Z),Z.flags|=128,null;if((G&Z.child.childLanes)!==0)return JH($,Z,G);return L6(Z),$=S8($,Z,G),$!==null?$.sibling:null}L6(Z);break;case 19:var N=($.flags&128)!==0;if(X=(G&Z.childLanes)!==0,X||(f$($,Z,G,!1),X=(G&Z.childLanes)!==0),N){if(X)return XH($,Z,G);Z.flags|=128}if(N=Z.memoizedState,N!==null&&(N.rendering=null,N.tail=null,N.lastEffect=null),z0(v1,v1.current,Z),X)break;else return null;case 22:return Z.lanes=0,tB($,Z,G,Z.pendingProps);case 24:R6(Z,y1,$.memoizedState.cache)}return S8($,Z,G)}function EX($,Z,G){if(Z._debugNeedsRemount&&$!==null){G=z3(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),G._debugStack=Z._debugStack,G._debugTask=Z._debugTask;var X=Z.return;if(X===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===X.child)X.child=G;else{var N=X.child;if(N===null)throw Error("Expected parent to have a child.");for(;N.sibling!==Z;)if(N=N.sibling,N===null)throw Error("Expected to find the previous sibling.");N.sibling=G}return Z=X.deletions,Z===null?(X.deletions=[$],X.flags|=16):Z.push($),G.flags|=2,G}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)x1=!0;else{if(!VX($,G)&&(Z.flags&128)===0)return x1=!1,WL($,Z,G);x1=($.flags&131072)!==0?!0:!1}else{if(x1=!1,X=p0)W6(),X=(Z.flags&1048576)!==0;X&&(X=Z.index,W6(),lK(Z,e7,X))}switch(Z.lanes=0,Z.tag){case 16:$:if(X=Z.pendingProps,$=T6(Z.elementType),Z.type=$,typeof $==="function")T3($)?(X=h2($,X),Z.tag=1,Z.type=$=j2($),Z=QH(null,Z,$,X,G)):(Z.tag=0,wX(Z,$),Z.type=$=j2($),Z=WX(null,Z,$,X,G));else{if($!==void 0&&$!==null){if(N=$.$$typeof,N===u7){Z.tag=11,Z.type=$=R3($),Z=oB(null,Z,$,X,G);break $}else if(N===bG){Z.tag=14,Z=aB(null,Z,$,X,G);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===i5&&(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 WX($,Z,Z.type,Z.pendingProps,G);case 1:return X=Z.type,N=h2(X,Z.pendingProps),QH($,Z,X,N,G);case 3:$:{if(l(Z,Z.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");X=Z.pendingProps;var B=Z.memoizedState;N=B.element,b3($,Z),_7(Z,X,null,G);var W=Z.memoizedState;if(X=W.cache,R6(Z,y1,X),X!==B.cache&&O3(Z,[y1],G,!0),z7(),X=W.element,B.isDehydrated)if(B={element:X,isDehydrated:!1,cache:W.cache},Z.updateQueue.baseState=B,Z.memoizedState=B,Z.flags&256){Z=GH($,Z,X,G);break $}else if(X!==N){N=l5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),M7(N),Z=GH($,Z,X,G);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}R1=a5($.firstChild),J5=Z,p0=!0,f6=null,B8=!1,$4=null,F4=!0,G=zW(Z,null,X,G);for(Z.child=G;G;)G.flags=G.flags&-3|4096,G=G.sibling}else{if(v2(),X===N){Z=S8($,Z,G);break $}Z5($,Z,X,G)}Z=Z.child}return Z;case 26:return MG($,Z),$===null?(G=SM(Z.type,null,Z.pendingProps,null))?Z.memoizedState=G:p0||(G=Z.type,$=Z.pendingProps,X=C0(D6.current),X=PG(X).createElement(G),X[G5]=Z,X[R5]=$,Q5(X,G,$),F0(X),Z.stateNode=X):Z.memoizedState=SM(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return d0(Z),$===null&&p0&&(X=C0(D6.current),N=K0(),X=Z.stateNode=jM(Z.type,Z.pendingProps,X,N,!1),B8||(N=RM(X,Z.type,Z.pendingProps,N),N!==null&&(S2(Z,0).serverProps=N)),J5=Z,F4=!0,N=R1,I6(Z.type)?(SU=N,R1=a5(X.firstChild)):R1=N),Z5($,Z,Z.pendingProps.children,G),MG($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&p0&&(B=K0(),X=N3(Z.type,B.ancestorInfo),N=R1,(W=!N)||(W=GV(N,Z.type,Z.pendingProps,F4),W!==null?(Z.stateNode=W,B8||(B=RM(W,Z.type,Z.pendingProps,B),B!==null&&(S2(Z,0).serverProps=B)),J5=Z,R1=a5(W.firstChild),F4=!1,B=!0):B=!1,W=!B),W&&(X&&xQ(Z,N),w6(Z))),d0(Z),N=Z.type,B=Z.pendingProps,W=$!==null?$.memoizedProps:null,X=B.children,nX(N,B)?X=null:W!==null&&nX(N,W)&&(Z.flags|=32),Z.memoizedState!==null&&(N=x3($,Z,YL,null,null,G),vZ._currentValue=N),MG($,Z),Z5($,Z,X,G),Z.child;case 6:return $===null&&p0&&(G=Z.pendingProps,$=K0(),X=$.ancestorInfo.current,G=X!=null?jQ(G,X.tag,$.ancestorInfo.implicitRootScope):!0,$=R1,(X=!$)||(X=JV($,Z.pendingProps,F4),X!==null?(Z.stateNode=X,J5=Z,R1=null,X=!0):X=!1,X=!X),X&&(G&&xQ(Z,$),w6(Z))),null;case 13:return JH($,Z,G);case 4:return l(Z,Z.stateNode.containerInfo),X=Z.pendingProps,$===null?Z.child=i2(Z,null,X,G):Z5($,Z,X,G),Z.child;case 11:return oB($,Z,Z.type,Z.pendingProps,G);case 7:return Z5($,Z,Z.pendingProps,G),Z.child;case 8:return Z5($,Z,Z.pendingProps.children,G),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,X=Z.stateNode,X.effectDuration=-0,X.passiveEffectDuration=-0,Z5($,Z,Z.pendingProps.children,G),Z.child;case 10:return X=Z.type,N=Z.pendingProps,B=N.value,"value"in N||lW||(lW=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),R6(Z,X,B),Z5($,Z,N.children,G),Z.child;case 9:return N=Z.type._context,X=Z.pendingProps.children,typeof X!=="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."),k2(Z),N=_1(N),X=oY(X,N,void 0),Z.flags|=1,Z5($,Z,X,G),Z.child;case 14:return aB($,Z,Z.type,Z.pendingProps,G);case 15:return iB($,Z,Z.type,Z.pendingProps,G);case 19:return XH($,Z,G);case 31:return FL($,Z,G);case 22:return tB($,Z,G,Z.pendingProps);case 24:return k2(Z),X=_1(y1),$===null?(N=S3(),N===null&&(N=K1,B=D3(),N.pooledCache=B,b2(B),B!==null&&(N.pooledCacheLanes|=G),N=B),Z.memoizedState={parent:X,cache:N},k3(Z),R6(Z,y1,N)):(($.lanes&G)!==0&&(b3($,Z),_7(Z,null,null,G),z7()),N=$.memoizedState,B=Z.memoizedState,N.parent!==X?(N={parent:X,cache:X},Z.memoizedState=N,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=N),R6(Z,y1,X)):(X=B.cache,R6(Z,y1,X),X!==N.cache&&O3(Z,[y1],G,!0))),Z5($,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 v8($){$.flags|=4}function PX($,Z,G,X,N){if(Z=($.mode&fE)!==_0)Z=!1;if(Z){if($.flags|=16777216,(N&335544128)===N)if($.stateNode.complete)$.flags|=8192;else if(xH())$.flags|=8192;else throw a2=XJ,iY}else $.flags&=-16777217}function YH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&z4)!==U$)$.flags&=-16777217;else if($.flags|=16777216,!yM(Z))if(xH())$.flags|=8192;else throw a2=XJ,iY}function WG($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?j$():536870912,$.lanes|=Z,Q$|=Z)}function C7($,Z){if(!p0)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 X=null;G!==null;)G.alternate!==null&&(X=G),G=G.sibling;X===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:X.sibling=null}}function M1($){var Z=$.alternate!==null&&$.alternate.child===$.child,G=0,X=0;if(Z)if(($.mode&j0)!==_0){for(var{selfBaseDuration:N,child:B}=$;B!==null;)G|=B.lanes|B.childLanes,X|=B.subtreeFlags&65011712,X|=B.flags&65011712,N+=B.treeBaseDuration,B=B.sibling;$.treeBaseDuration=N}else for(N=$.child;N!==null;)G|=N.lanes|N.childLanes,X|=N.subtreeFlags&65011712,X|=N.flags&65011712,N.return=$,N=N.sibling;else if(($.mode&j0)!==_0){N=$.actualDuration,B=$.selfBaseDuration;for(var W=$.child;W!==null;)G|=W.lanes|W.childLanes,X|=W.subtreeFlags,X|=W.flags,N+=W.actualDuration,B+=W.treeBaseDuration,W=W.sibling;$.actualDuration=N,$.treeBaseDuration=B}else for(N=$.child;N!==null;)G|=N.lanes|N.childLanes,X|=N.subtreeFlags,X|=N.flags,N.return=$,N=N.sibling;return $.subtreeFlags|=X,$.childLanes=G,Z}function wL($,Z,G){var X=Z.pendingProps;switch(E3(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return M1(Z),null;case 1:return M1(Z),null;case 3:if(G=Z.stateNode,X=null,$!==null&&(X=$.memoizedState.cache),Z.memoizedState.cache!==X&&(Z.flags|=2048),j8(y1,Z),J0(Z),G.pendingContext&&(G.context=G.pendingContext,G.pendingContext=null),$===null||$.child===null)b$(Z)?(C3(),v8(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,P3());return M1(Z),null;case 26:var{type:N,memoizedState:B}=Z;return $===null?(v8(Z),B!==null?(M1(Z),YH(Z,B)):(M1(Z),PX(Z,N,null,X,G))):B?B!==$.memoizedState?(v8(Z),M1(Z),YH(Z,B)):(M1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==X&&v8(Z),M1(Z),PX(Z,N,$,X,G)),null;case 27:if(k0(Z),G=C0(D6.current),N=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==X&&v8(Z);else{if(!X){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 M1(Z),null}$=K0(),b$(Z)?oK(Z,$):($=jM(N,X,G,$,!0),Z.stateNode=$,v8(Z))}return M1(Z),null;case 5:if(k0(Z),N=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==X&&v8(Z);else{if(!X){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 M1(Z),null}var W=K0();if(b$(Z))oK(Z,W);else{switch(B=C0(D6.current),N3(N,W.ancestorInfo),W=W.context,B=PG(B),W){case A9:B=B.createElementNS($9,N);break;case vJ:B=B.createElementNS(mG,N);break;default:switch(N){case"svg":B=B.createElementNS($9,N);break;case"math":B=B.createElementNS(mG,N);break;case"script":B=B.createElement("div"),B.innerHTML="<script></script>",B=B.removeChild(B.firstChild);break;case"select":B=typeof X.is==="string"?B.createElement("select",{is:X.is}):B.createElement("select"),X.multiple?B.multiple=!0:X.size&&(B.size=X.size);break;default:B=typeof X.is==="string"?B.createElement(N,{is:X.is}):B.createElement(N),N.indexOf("-")===-1&&(N!==N.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",N),Object.prototype.toString.call(B)!=="[object HTMLUnknownElement]"||D4.call(Ww,N)||(Ww[N]=!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.",N)))}}B[G5]=Z,B[R5]=X;$: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(Q5(B,N,X),N){case"button":case"input":case"select":case"textarea":X=!!X.autoFocus;break $;case"img":X=!0;break $;default:X=!1}X&&v8(Z)}}return M1(Z),PX(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,G),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==X&&v8(Z);else{if(typeof X!=="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($=C0(D6.current),G=K0(),b$(Z)){if($=Z.stateNode,G=Z.memoizedProps,N=!B8,X=null,B=J5,B!==null)switch(B.tag){case 3:N&&(N=OM($,G,X),N!==null&&(S2(Z,0).serverProps=N));break;case 27:case 5:X=B.memoizedProps,N&&(N=OM($,G,X),N!==null&&(S2(Z,0).serverProps=N))}$[G5]=Z,$=$.nodeValue===G||X!==null&&X.suppressHydrationWarning===!0||HM($.nodeValue,G)?!0:!1,$||w6(Z,!0)}else N=G.ancestorInfo.current,N!=null&&jQ(X,N.tag,G.ancestorInfo.implicitRootScope),$=PG($).createTextNode(X),$[G5]=Z,Z.stateNode=$}return M1(Z),null;case 31:if(G=Z.memoizedState,$===null||$.memoizedState!==null){if(X=b$(Z),G!==null){if($===null){if(!X)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.");$[G5]=Z,M1(Z),(Z.mode&j0)!==_0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else C3(),v2(),(Z.flags&128)===0&&(G=Z.memoizedState=null),Z.flags|=4,M1(Z),(Z.mode&j0)!==_0&&G!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else G=P3(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=G),$=!0;if(!$){if(Z.flags&256)return n5(Z),Z;return n5(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return M1(Z),null;case 13:if(X=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(N=X,B=b$(Z),N!==null&&N.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[G5]=Z,M1(Z),(Z.mode&j0)!==_0&&N!==null&&(N=Z.child,N!==null&&(Z.treeBaseDuration-=N.treeBaseDuration))}else C3(),v2(),(Z.flags&128)===0&&(N=Z.memoizedState=null),Z.flags|=4,M1(Z),(Z.mode&j0)!==_0&&N!==null&&(N=Z.child,N!==null&&(Z.treeBaseDuration-=N.treeBaseDuration));N=!1}else N=P3(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=N),N=!0;if(!N){if(Z.flags&256)return n5(Z),Z;return n5(Z),null}}if(n5(Z),(Z.flags&128)!==0)return Z.lanes=G,(Z.mode&j0)!==_0&&w7(Z),Z;return G=X!==null,$=$!==null&&$.memoizedState!==null,G&&(X=Z.child,N=null,X.alternate!==null&&X.alternate.memoizedState!==null&&X.alternate.memoizedState.cachePool!==null&&(N=X.alternate.memoizedState.cachePool.pool),B=null,X.memoizedState!==null&&X.memoizedState.cachePool!==null&&(B=X.memoizedState.cachePool.pool),B!==N&&(X.flags|=2048)),G!==$&&G&&(Z.child.flags|=8192),WG(Z,Z.updateQueue),M1(Z),(Z.mode&j0)!==_0&&G&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return J0(Z),$===null&&mX(Z.stateNode.containerInfo),M1(Z),null;case 10:return j8(Z.type,Z),M1(Z),null;case 19:if(w0(v1,Z),X=Z.memoizedState,X===null)return M1(Z),null;if(N=(Z.flags&128)!==0,B=X.rendering,B===null)if(N)C7(X,!1);else{if(E1!==s8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(B=tQ($),B!==null){Z.flags|=128,C7(X,!1),$=B.updateQueue,Z.updateQueue=$,WG(Z,$),Z.subtreeFlags=0,$=G;for(G=Z.child;G!==null;)pK(G,$),G=G.sibling;return z0(v1,v1.current&T9|FZ,Z),p0&&D8(Z,X.treeForkCount),Z.child}$=$.sibling}X.tail!==null&&o1()>zJ&&(Z.flags|=128,N=!0,C7(X,!1),Z.lanes=4194304)}else{if(!N)if($=tQ(B),$!==null){if(Z.flags|=128,N=!0,$=$.updateQueue,Z.updateQueue=$,WG(Z,$),C7(X,!0),X.tail===null&&X.tailMode==="hidden"&&!B.alternate&&!p0)return M1(Z),null}else 2*o1()-X.renderingStartTime>zJ&&G!==536870912&&(Z.flags|=128,N=!0,C7(X,!1),Z.lanes=4194304);X.isBackwards?(B.sibling=Z.child,Z.child=B):($=X.last,$!==null?$.sibling=B:Z.child=B,X.last=B)}if(X.tail!==null)return $=X.tail,X.rendering=$,X.tail=$.sibling,X.renderingStartTime=o1(),$.sibling=null,G=v1.current,G=N?G&T9|FZ:G&T9,z0(v1,G,Z),p0&&D8(Z,X.treeForkCount),$;return M1(Z),null;case 22:case 23:return n5(Z),y3(Z),X=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==X&&(Z.flags|=8192):X&&(Z.flags|=8192),X?(G&536870912)!==0&&(Z.flags&128)===0&&(M1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):M1(Z),G=Z.updateQueue,G!==null&&WG(Z,G.retryQueue),G=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(G=$.memoizedState.cachePool.pool),X=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(X=Z.memoizedState.cachePool.pool),X!==G&&(Z.flags|=2048),$!==null&&w0(n2,Z),null;case 24:return G=null,$!==null&&(G=$.memoizedState.cache),Z.memoizedState.cache!==G&&(Z.flags|=2048),j8(y1,Z),M1(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 RL($,Z){switch(E3(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==_0&&w7(Z),Z):null;case 3:return j8(y1,Z),J0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return k0(Z),null;case 31:if(Z.memoizedState!==null){if(n5(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");v2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==_0&&w7(Z),Z):null;case 13:if(n5(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.");v2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==_0&&w7(Z),Z):null;case 19:return w0(v1,Z),null;case 4:return J0(Z),null;case 10:return j8(Z.type,Z),null;case 22:case 23:return n5(Z),y3(Z),$!==null&&w0(n2,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&j0)!==_0&&w7(Z),Z):null;case 24:return j8(y1,Z),null;case 25:return null;default:return null}}function UH($,Z){switch(E3(Z),Z.tag){case 3:j8(y1,Z),J0(Z);break;case 26:case 27:case 5:k0(Z);break;case 4:J0(Z);break;case 31:Z.memoizedState!==null&&n5(Z);break;case 13:n5(Z);break;case 19:w0(v1,Z);break;case 10:j8(Z.type,Z);break;case 22:case 23:n5(Z),y3(Z),$!==null&&w0(n2,Z);break;case 24:j8(y1,Z)}}function t4($){return($.mode&j0)!==_0}function NH($,Z){t4($)?(i4(),I7(Z,$),a4()):I7(Z,$)}function CX($,Z,G){t4($)?(i4(),u$(G,$,Z),a4()):u$(G,$,Z)}function I7($,Z){try{var G=Z.updateQueue,X=G!==null?G.lastEffect:null;if(X!==null){var N=X.next;G=N;do{if((G.tag&$)===$&&(X=void 0,($&L5)!==UJ&&(O9=!0),X=G0(Z,uE,G),($&L5)!==UJ&&(O9=!1),X!==void 0&&typeof X!=="function")){var B=void 0;B=(G.tag&Q4)!==0?"useLayoutEffect":(G.tag&L5)!==0?"useInsertionEffect":"useEffect";var W=void 0;W=X===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof X.then==="function"?`
136
+ https://react.dev/link/unsafe-component-lifecycles`,K,L,w!==null?`
137
+ `+w:"",R!==null?`
138
+ `+R:"",P!==null?`
139
+ `+P:""))}}K=Z.stateNode,w=a(J)||"Component",K.render||(J.prototype&&typeof J.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)),!K.getInitialState||K.getInitialState.isReactClassApproved||K.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),K.getDefaultProps&&!K.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),K.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",w),J.childContextTypes&&!MW.has(J)&&(MW.add(J),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)),J.contextTypes&&!HW.has(J)&&(HW.add(J),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 K.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),J.prototype&&J.prototype.isPureReactComponent&&typeof K.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.",a(J)||"A pure component"),typeof K.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",w),typeof K.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 K.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",w),typeof K.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",w),R=K.props!==Y,K.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),K.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 K.getSnapshotBeforeUpdate!=="function"||typeof K.componentDidUpdate==="function"||NW.has(J)||(NW.add(J),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",a(J))),typeof K.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 K.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 J.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=K.state)&&(typeof R!=="object"||i1(R))&&console.error("%s.state: must be set to an object or null",w),typeof K.getChildContext==="function"&&typeof J.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",w),K=Z.stateNode,K.props=Y,K.state=Z.memoizedState,K.refs={},oq(Z),w=J.contextType,K.context=typeof w==="object"&&w!==null?V1(w):a8,K.state===Y&&(w=a(J)||"Component",BW.has(w)||(BW.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&L5&&o6.recordLegacyContextWarning(Z,K),o6.recordUnsafeLifecycleWarnings(Z,K),K.state=Z.memoizedState,w=J.getDerivedStateFromProps,typeof w==="function"&&(EX(Z,J,w,Y),K.state=Z.memoizedState),typeof J.getDerivedStateFromProps==="function"||typeof K.getSnapshotBeforeUpdate==="function"||typeof K.UNSAFE_componentWillMount!=="function"&&typeof K.componentWillMount!=="function"||(w=K.state,typeof K.componentWillMount==="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount==="function"&&K.UNSAFE_componentWillMount(),w!==K.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",d(Z)||"Component"),CN.enqueueReplaceState(K,K.state,null)),f$(Z,Y,K,U),k$(),K.state=Z.memoizedState),typeof K.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&n6)!==_0&&(Z.flags|=134217728),K=!0}else if($===null){K=Z.stateNode;var k=Z.memoizedProps;R=$9(J,k),K.props=R;var f=K.context;P=J.contextType,w=a8,typeof P==="object"&&P!==null&&(w=V1(P)),L=J.getDerivedStateFromProps,P=typeof L==="function"||typeof K.getSnapshotBeforeUpdate==="function",k=Z.pendingProps!==k,P||typeof K.UNSAFE_componentWillReceiveProps!=="function"&&typeof K.componentWillReceiveProps!=="function"||(k||f!==w)&&PH(Z,K,Y,w),J2=!1;var S=Z.memoizedState;K.state=S,f$(Z,Y,K,U),k$(),f=Z.memoizedState,k||S!==f||J2?(typeof L==="function"&&(EX(Z,J,L,Y),f=Z.memoizedState),(R=J2||zH(Z,J,R,Y,S,f,w))?(P||typeof K.UNSAFE_componentWillMount!=="function"&&typeof K.componentWillMount!=="function"||(typeof K.componentWillMount==="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount==="function"&&K.UNSAFE_componentWillMount()),typeof K.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&n6)!==_0&&(Z.flags|=134217728)):(typeof K.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&n6)!==_0&&(Z.flags|=134217728),Z.memoizedProps=Y,Z.memoizedState=f),K.props=Y,K.state=f,K.context=w,K=R):(typeof K.componentDidMount==="function"&&(Z.flags|=4194308),(Z.mode&n6)!==_0&&(Z.flags|=134217728),K=!1)}else{K=Z.stateNode,aq($,Z),w=Z.memoizedProps,P=$9(J,w),K.props=P,L=Z.pendingProps,S=K.context,f=J.contextType,R=a8,typeof f==="object"&&f!==null&&(R=V1(f)),k=J.getDerivedStateFromProps,(f=typeof k==="function"||typeof K.getSnapshotBeforeUpdate==="function")||typeof K.UNSAFE_componentWillReceiveProps!=="function"&&typeof K.componentWillReceiveProps!=="function"||(w!==L||S!==R)&&PH(Z,K,Y,R),J2=!1,S=Z.memoizedState,K.state=S,f$(Z,Y,K,U),k$();var g=Z.memoizedState;w!==L||S!==g||J2||$!==null&&$.dependencies!==null&&KJ($.dependencies)?(typeof k==="function"&&(EX(Z,J,k,Y),g=Z.memoizedState),(P=J2||zH(Z,J,P,Y,S,g,R)||$!==null&&$.dependencies!==null&&KJ($.dependencies))?(f||typeof K.UNSAFE_componentWillUpdate!=="function"&&typeof K.componentWillUpdate!=="function"||(typeof K.componentWillUpdate==="function"&&K.componentWillUpdate(Y,g,R),typeof K.UNSAFE_componentWillUpdate==="function"&&K.UNSAFE_componentWillUpdate(Y,g,R)),typeof K.componentDidUpdate==="function"&&(Z.flags|=4),typeof K.getSnapshotBeforeUpdate==="function"&&(Z.flags|=1024)):(typeof K.componentDidUpdate!=="function"||w===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof K.getSnapshotBeforeUpdate!=="function"||w===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),Z.memoizedProps=Y,Z.memoizedState=g),K.props=Y,K.state=g,K.context=R,K=P):(typeof K.componentDidUpdate!=="function"||w===$.memoizedProps&&S===$.memoizedState||(Z.flags|=4),typeof K.getSnapshotBeforeUpdate!=="function"||w===$.memoizedProps&&S===$.memoizedState||(Z.flags|=1024),K=!1)}if(R=K,gJ($,Z),w=(Z.flags&128)!==0,R||w){if(R=Z.stateNode,l9(Z),w&&typeof J.getDerivedStateFromError!=="function")J=null,j5=-1;else if(J=fw(R),Z.mode&L5){w1(!0);try{fw(R)}finally{w1(!1)}}Z.flags|=1,$!==null&&w?(Z.child=M9(Z,$.child,null,U),Z.child=M9(Z,null,J,U)):B5($,Z,J,U),Z.memoizedState=R.state,$=Z.child}else $=r4($,Z,U);return U=Z.stateNode,K&&U.props!==Y&&(x7||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"),x7=!0),$}function bH($,Z,J,Y){return n2(),Z.flags|=256,B5($,Z,J,Y),Z.child}function vX($,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"&&($=a(Z)||"Unknown",zW[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),zW[$]=!0)),typeof Z.contextType==="object"&&Z.contextType!==null&&(Z=a(Z)||"Unknown",RW[Z]||(console.error("%s: Function components do not support contextType.",Z),RW[Z]=!0))}function bX($){return{baseLanes:$,cachePool:jK()}}function kX($,Z,J){return $=$!==null?$.childLanes&~J:0,Z&&($|=d5),$}function kH($,Z,J){var Y,U=Z.pendingProps;B(Z)&&(Z.flags|=128);var K=!1,w=(Z.flags&128)!==0;if((Y=w)||(Y=$!==null&&$.memoizedState===null?!1:(g1.current&SZ)!==0),Y&&(K=!0,Z.flags&=-129),Y=(Z.flags&32)!==0,Z.flags&=-33,$===null){if(r0){if(K?g8(Z):h8(Z),($=P1)?(J=ZF($,A6),J=J!==null&&J.data!==C9?J:null,J!==null&&(Y={dehydrated:J,treeContext:LK(),retryLane:536870912,hydrationErrors:null},Z.memoizedState=Y,Y=PK(J),Y.return=Z,Z.child=Y,M5=Z,P1=null)):J=null,J===null)throw UJ(Z,$),v8(Z);return MY(J)?Z.lanes=32:Z.lanes=536870912,null}var R=U.children;if(U=U.fallback,K){h8(Z);var P=Z.mode;return R=hJ({mode:"hidden",children:R},P),U=r2(U,P,J,null),R.return=Z,U.return=Z,R.sibling=U,Z.child=R,U=Z.child,U.memoizedState=bX(J),U.childLanes=kX($,Y,J),Z.memoizedState=VN,u$(null,U)}return g8(Z),fX(Z,R)}var L=$.memoizedState;if(L!==null){var k=L.dehydrated;if(k!==null){if(w)Z.flags&256?(g8(Z),Z.flags&=-257,Z=yX($,Z,J)):Z.memoizedState!==null?(h8(Z),Z.child=$.child,Z.flags|=128,Z=null):(h8(Z),R=U.fallback,P=Z.mode,U=hJ({mode:"visible",children:U.children},P),R=r2(R,P,J,null),R.flags|=2,U.return=Z,R.return=Z,U.sibling=R,Z.child=U,M9(Z,$.child,null,J),U=Z.child,U.memoizedState=bX(J),U.childLanes=kX($,Y,J),Z.memoizedState=VN,Z=u$(null,U));else if(g8(Z),VK(),(J&536870912)!==0&&pJ(Z),MY(k)){if(Y=k.nextSibling&&k.nextSibling.dataset,Y){R=Y.dgst;var f=Y.msg;P=Y.stck;var S=Y.cstck}K=f,Y=R,U=P,k=S,R=K,P=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=P===void 0?null:P,U={value:R,source:null,stack:Y},typeof Y==="string"&&JN.set(R,U),A$(U),Z=yX($,Z,J)}else if(l1||e9($,Z,J,!1),Y=(J&$.childLanes)!==0,l1||Y){if(Y=F1,Y!==null&&(U=x2(Y,J),U!==0&&U!==L.retryLane))throw L.retryLane=U,P5($,U),D1(Y,$,U),_N;HY(k)||cJ(),Z=yX($,Z,J)}else HY(k)?(Z.flags|=192,Z.child=$.child,Z=null):($=L.treeContext,P1=Y6(k.nextSibling),M5=Z,r0=!0,i8=null,O4=!1,K6=null,A6=!1,$!==null&&_K(Z,$),Z=fX(Z,U.children),Z.flags|=4096);return Z}}if(K)return h8(Z),R=U.fallback,P=Z.mode,S=$.child,k=S.sibling,U=d4(S,{mode:"hidden",children:U.children}),U.subtreeFlags=S.subtreeFlags&65011712,k!==null?R=d4(k,R):(R=r2(R,P,J,null),R.flags|=2),R.return=Z,U.return=Z,U.sibling=R,Z.child=U,u$(null,U),U=Z.child,R=$.child.memoizedState,R===null?R=bX(J):(P=R.cachePool,P!==null?(S=d1._currentValue,P=P.parent!==S?{parent:S,pool:S}:P):P=jK(),R={baseLanes:R.baseLanes|J,cachePool:P}),U.memoizedState=R,U.childLanes=kX($,Y,J),Z.memoizedState=VN,u$($.child,U);return L!==null&&(J&62914560)===J&&(J&$.lanes)!==0&&pJ(Z),g8(Z),J=$.child,$=J.sibling,J=d4(J,{mode:"visible",children:U.children}),J.return=Z,J.sibling=null,$!==null&&(Y=Z.deletions,Y===null?(Z.deletions=[$],Z.flags|=16):Y.push($)),Z.child=J,Z.memoizedState=null,J}function fX($,Z){return Z=hJ({mode:"visible",children:Z},$.mode),Z.return=$,$.child=Z}function hJ($,Z){return $=C(22,$,null,Z),$.lanes=0,$}function yX($,Z,J){return M9(Z,$.child,null,J),$=fX(Z,Z.pendingProps.children),$.flags|=2,Z.memoizedState=null,$}function fH($,Z,J){$.lanes|=Z;var Y=$.alternate;Y!==null&&(Y.lanes|=Z),dq($.return,Z,J)}function gX($,Z,J,Y,U,K){var w=$.memoizedState;w===null?$.memoizedState={isBackwards:Z,rendering:null,renderingStartTime:0,last:Y,tail:J,tailMode:U,treeForkCount:K}:(w.isBackwards=Z,w.rendering=null,w.renderingStartTime=0,w.last=Y,w.tail=J,w.tailMode=U,w.treeForkCount=K)}function yH($,Z,J){var Y=Z.pendingProps,U=Y.revealOrder,K=Y.tail,w=Y.children,R=g1.current;if((Y=(R&SZ)!==0)?(R=R&y7|SZ,Z.flags|=128):R&=y7,L0(g1,R,Z),R=U==null?"null":U,U!=="forwards"&&U!=="unstable_legacy-backwards"&&U!=="together"&&U!=="independent"&&!PW[R])if(PW[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=K==null?"null":K,!yG[R])if(K==null){if(U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")yG[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 K!=="visible"&&K!=="collapsed"&&K!=="hidden"?(yG[R]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',K)):U!=="forwards"&&U!=="backwards"&&U!=="unstable_legacy-backwards"&&(yG[R]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',K));$:if((U==="forwards"||U==="backwards"||U==="unstable_legacy-backwards")&&w!==void 0&&w!==null&&w!==!1)if(i1(w)){for(R=0;R<w.length;R++)if(!mK(w[R],R))break $}else if(R=i(w),typeof R==="function"){if(R=R.call(w))for(var P=R.next(),L=0;!P.done;P=R.next()){if(!mK(P.value,L))break $;L++}}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(B5($,Z,w,J),r0?(j8(),w=FZ):w=0,!Y&&$!==null&&($.flags&128)!==0)$:for($=Z.child;$!==null;){if($.tag===13)$.memoizedState!==null&&fH($,J,Z);else if($.tag===19)fH($,J,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":J=Z.child;for(U=null;J!==null;)$=J.alternate,$!==null&&LJ($)===null&&(U=J),J=J.sibling;J=U,J===null?(U=Z.child,Z.child=null):(U=J.sibling,J.sibling=null),gX(Z,!1,U,J,K,w);break;case"backwards":case"unstable_legacy-backwards":J=null,U=Z.child;for(Z.child=null;U!==null;){if($=U.alternate,$!==null&&LJ($)===null){Z.child=U;break}$=U.sibling,U.sibling=J,J=U,U=$}gX(Z,!0,J,null,K,w);break;case"together":gX(Z,!1,null,null,void 0,w);break;default:Z.memoizedState=null}return Z.child}function r4($,Z,J){if($!==null&&(Z.dependencies=$.dependencies),j5=-1,X2|=Z.lanes,(J&Z.childLanes)===0)if($!==null){if(e9($,Z,J,!1),(J&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,J=d4($,$.pendingProps),Z.child=J;for(J.return=Z;$.sibling!==null;)$=$.sibling,J=J.sibling=d4($,$.pendingProps),J.return=Z;J.sibling=null}return Z.child}function hX($,Z){if(($.lanes&Z)!==0)return!0;return $=$.dependencies,$!==null&&KJ($)?!0:!1}function wL($,Z,J){switch(Z.tag){case 3:l(Z,Z.stateNode.containerInfo),b8(Z,d1,$.memoizedState.cache),n2();break;case 27:case 5:l0(Z);break;case 4:l(Z,Z.stateNode.containerInfo);break;case 10:b8(Z,Z.type,Z.memoizedProps.value);break;case 12:(J&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,eq(Z),null;break;case 13:if(Y=Z.memoizedState,Y!==null){if(Y.dehydrated!==null)return g8(Z),Z.flags|=128,null;if((J&Z.child.childLanes)!==0)return kH($,Z,J);return g8(Z),$=r4($,Z,J),$!==null?$.sibling:null}g8(Z);break;case 19:var U=($.flags&128)!==0;if(Y=(J&Z.childLanes)!==0,Y||(e9($,Z,J,!1),Y=(J&Z.childLanes)!==0),U){if(Y)return yH($,Z,J);Z.flags|=128}if(U=Z.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),L0(g1,g1.current,Z),Y)break;else return null;case 22:return Z.lanes=0,AH($,Z,J,Z.pendingProps);case 24:b8(Z,d1,$.memoizedState.cache)}return r4($,Z,J)}function uX($,Z,J){if(Z._debugNeedsRemount&&$!==null){J=fq(Z.type,Z.key,Z.pendingProps,Z._debugOwner||null,Z.mode,Z.lanes),J._debugStack=Z._debugStack,J._debugTask=Z._debugTask;var Y=Z.return;if(Y===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,Z.alternate=null,J.index=Z.index,J.sibling=Z.sibling,J.return=Z.return,J.ref=Z.ref,J._debugInfo=Z._debugInfo,Z===Y.child)Y.child=J;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=J}return Z=Y.deletions,Z===null?(Y.deletions=[$],Y.flags|=16):Z.push($),J.flags|=2,J}if($!==null)if($.memoizedProps!==Z.pendingProps||Z.type!==$.type)l1=!0;else{if(!hX($,J)&&(Z.flags&128)===0)return l1=!1,wL($,Z,J);l1=($.flags&131072)!==0?!0:!1}else{if(l1=!1,Y=r0)j8(),Y=(Z.flags&1048576)!==0;Y&&(Y=Z.index,j8(),CK(Z,FZ,Y))}switch(Z.lanes=0,Z.tag){case 16:$:if(Y=Z.pendingProps,$=k8(Z.elementType),Z.type=$,typeof $==="function")kq($)?(Y=$9($,Y),Z.tag=1,Z.type=$=l2($),Z=vH(null,Z,$,Y,J)):(Z.tag=0,vX(Z,$),Z.type=$=l2($),Z=jX(null,Z,$,Y,J));else{if($!==void 0&&$!==null){if(U=$.$$typeof,U===ZZ){Z.tag=11,Z.type=$=bq($),Z=IH(null,Z,$,Y,J);break $}else if(U===GG){Z.tag=14,Z=OH(null,Z,$,Y,J);break $}}throw Z="",$!==null&&typeof $==="object"&&$.$$typeof===N6&&(Z=" Did you wrap a component in React.lazy() more than once?"),J=a($)||$,Error("Element type is invalid. Received a promise that resolves to: "+J+". Lazy element type must resolve to a class or function."+Z)}return Z;case 0:return jX($,Z,Z.type,Z.pendingProps,J);case 1:return Y=Z.type,U=$9(Y,Z.pendingProps),vH($,Z,Y,U,J);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 K=Z.memoizedState;U=K.element,aq($,Z),f$(Z,Y,null,J);var w=Z.memoizedState;if(Y=w.cache,b8(Z,d1,Y),Y!==K.cache&&pq(Z,[d1],J,!0),k$(),Y=w.element,K.isDehydrated)if(K={element:Y,isDehydrated:!1,cache:w.cache},Z.updateQueue.baseState=K,Z.memoizedState=K,Z.flags&256){Z=bH($,Z,Y,J);break $}else if(Y!==U){U=Q6(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),Z),A$(U),Z=bH($,Z,Y,J);break $}else{switch($=Z.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}P1=Y6($.firstChild),M5=Z,r0=!0,i8=null,O4=!1,K6=null,A6=!0,J=ow(Z,null,Y,J);for(Z.child=J;J;)J.flags=J.flags&-3|4096,J=J.sibling}else{if(n2(),Y===U){Z=r4($,Z,J);break $}B5($,Z,Y,J)}Z=Z.child}return Z;case 26:return gJ($,Z),$===null?(J=YF(Z.type,null,Z.pendingProps,null))?Z.memoizedState=J:r0||(J=Z.type,$=Z.pendingProps,Y=D0(c8.current),Y=nJ(Y).createElement(J),Y[H5]=Z,Y[A5]=$,K5(Y,J,$),R0(Y),Z.stateNode=Y):Z.memoizedState=YF(Z.type,$.memoizedProps,Z.pendingProps,$.memoizedState),null;case 27:return l0(Z),$===null&&r0&&(Y=D0(c8.current),U=B0(),Y=Z.stateNode=qF(Z.type,Z.pendingProps,Y,U,!1),O4||(U=sM(Y,Z.type,Z.pendingProps,U),U!==null&&(s2(Z,0).serverProps=U)),M5=Z,A6=!0,U=P1,d8(Z.type)?(sN=U,P1=Y6(Y.firstChild)):P1=U),B5($,Z,Z.pendingProps.children,J),gJ($,Z),$===null&&(Z.flags|=4194304),Z.child;case 5:return $===null&&r0&&(K=B0(),Y=Iq(Z.type,K.ancestorInfo),U=P1,(w=!U)||(w=J_(U,Z.type,Z.pendingProps,A6),w!==null?(Z.stateNode=w,O4||(K=sM(w,Z.type,Z.pendingProps,K),K!==null&&(s2(Z,0).serverProps=K)),M5=Z,P1=Y6(w.firstChild),A6=!1,K=!0):K=!1,w=!K),w&&(Y&&UJ(Z,U),v8(Z))),l0(Z),U=Z.type,K=Z.pendingProps,w=$!==null?$.memoizedProps:null,Y=K.children,BY(U,K)?Y=null:w!==null&&BY(U,w)&&(Z.flags|=32),Z.memoizedState!==null&&(U=ZX($,Z,YL,null,null,J),sZ._currentValue=U),gJ($,Z),B5($,Z,Y,J),Z.child;case 6:return $===null&&r0&&(J=Z.pendingProps,$=B0(),Y=$.ancestorInfo.current,J=Y!=null?eQ(J,Y.tag,$.ancestorInfo.implicitRootScope):!0,$=P1,(Y=!$)||(Y=G_($,Z.pendingProps,A6),Y!==null?(Z.stateNode=Y,M5=Z,P1=null,Y=!0):Y=!1,Y=!Y),Y&&(J&&UJ(Z,$),v8(Z))),null;case 13:return kH($,Z,J);case 4:return l(Z,Z.stateNode.containerInfo),Y=Z.pendingProps,$===null?Z.child=M9(Z,null,Y,J):B5($,Z,Y,J),Z.child;case 11:return IH($,Z,Z.type,Z.pendingProps,J);case 7:return B5($,Z,Z.pendingProps,J),Z.child;case 8:return B5($,Z,Z.pendingProps.children,J),Z.child;case 12:return Z.flags|=4,Z.flags|=2048,Y=Z.stateNode,Y.effectDuration=-0,Y.passiveEffectDuration=-0,B5($,Z,Z.pendingProps.children,J),Z.child;case 10:return Y=Z.type,U=Z.pendingProps,K=U.value,"value"in U||CW||(CW=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),b8(Z,Y,K),B5($,Z,U.children,J),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."),o2(Z),U=V1(U),Y=KN(Y,U,void 0),Z.flags|=1,B5($,Z,Y,J),Z.child;case 14:return OH($,Z,Z.type,Z.pendingProps,J);case 15:return EH($,Z,Z.type,Z.pendingProps,J);case 19:return yH($,Z,J);case 31:return FL($,Z,J);case 22:return AH($,Z,J,Z.pendingProps);case 24:return o2(Z),Y=V1(d1),$===null?(U=sq(),U===null&&(U=F1,K=cq(),U.pooledCache=K,a2(K),K!==null&&(U.pooledCacheLanes|=J),U=K),Z.memoizedState={parent:Y,cache:U},oq(Z),b8(Z,d1,U)):(($.lanes&J)!==0&&(aq($,Z),f$(Z,null,null,J),k$()),U=$.memoizedState,K=Z.memoizedState,U.parent!==Y?(U={parent:Y,cache:Y},Z.memoizedState=U,Z.lanes===0&&(Z.memoizedState=Z.updateQueue.baseState=U),b8(Z,d1,Y)):(Y=K.cache,b8(Z,d1,Y),Y!==U.cache&&pq(Z,[d1],J,!0))),B5($,Z,Z.pendingProps.children,J),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 s4($){$.flags|=4}function xX($,Z,J,Y,U){if(Z=($.mode&fV)!==_0)Z=!1;if(Z){if($.flags|=16777216,(U&335544128)===U)if($.stateNode.complete)$.flags|=8192;else if(wM())$.flags|=8192;else throw H9=DG,MN}else $.flags&=-16777217}function gH($,Z){if(Z.type!=="stylesheet"||(Z.state.loading&b6)!==V9)$.flags&=-16777217;else if($.flags|=16777216,!HF(Z))if(wM())$.flags|=8192;else throw H9=DG,MN}function uJ($,Z){Z!==null&&($.flags|=4),$.flags&16384&&(Z=$.tag!==22?s9():536870912,$.lanes|=Z,T9|=Z)}function x$($,Z){if(!r0)switch($.tailMode){case"hidden":Z=$.tail;for(var J=null;Z!==null;)Z.alternate!==null&&(J=Z),Z=Z.sibling;J===null?$.tail=null:J.sibling=null;break;case"collapsed":J=$.tail;for(var Y=null;J!==null;)J.alternate!==null&&(Y=J),J=J.sibling;Y===null?Z||$.tail===null?$.tail=null:$.tail.sibling=null:Y.sibling=null}}function W1($){var Z=$.alternate!==null&&$.alternate.child===$.child,J=0,Y=0;if(Z)if(($.mode&k0)!==_0){for(var{selfBaseDuration:U,child:K}=$;K!==null;)J|=K.lanes|K.childLanes,Y|=K.subtreeFlags&65011712,Y|=K.flags&65011712,U+=K.treeBaseDuration,K=K.sibling;$.treeBaseDuration=U}else for(U=$.child;U!==null;)J|=U.lanes|U.childLanes,Y|=U.subtreeFlags&65011712,Y|=U.flags&65011712,U.return=$,U=U.sibling;else if(($.mode&k0)!==_0){U=$.actualDuration,K=$.selfBaseDuration;for(var w=$.child;w!==null;)J|=w.lanes|w.childLanes,Y|=w.subtreeFlags,Y|=w.flags,U+=w.actualDuration,K+=w.treeBaseDuration,w=w.sibling;$.actualDuration=U,$.treeBaseDuration=K}else for(U=$.child;U!==null;)J|=U.lanes|U.childLanes,Y|=U.subtreeFlags,Y|=U.flags,U.return=$,U=U.sibling;return $.subtreeFlags|=Y,$.childLanes=J,Z}function WL($,Z,J){var Y=Z.pendingProps;switch(uq(Z),Z.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return W1(Z),null;case 1:return W1(Z),null;case 3:if(J=Z.stateNode,Y=null,$!==null&&(Y=$.memoizedState.cache),Z.memoizedState.cache!==Y&&(Z.flags|=2048),c4(d1,Z),q0(Z),J.pendingContext&&(J.context=J.pendingContext,J.pendingContext=null),$===null||$.child===null)t9(Z)?(mq(),s4(Z)):$===null||$.memoizedState.isDehydrated&&(Z.flags&256)===0||(Z.flags|=1024,xq());return W1(Z),null;case 26:var{type:U,memoizedState:K}=Z;return $===null?(s4(Z),K!==null?(W1(Z),gH(Z,K)):(W1(Z),xX(Z,U,null,Y,J))):K?K!==$.memoizedState?(s4(Z),W1(Z),gH(Z,K)):(W1(Z),Z.flags&=-16777217):($=$.memoizedProps,$!==Y&&s4(Z),W1(Z),xX(Z,U,$,Y,J)),null;case 27:if(h0(Z),J=D0(c8.current),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&s4(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 W1(Z),null}$=B0(),t9(Z)?IK(Z,$):($=qF(U,Y,J,$,!0),Z.stateNode=$,s4(Z))}return W1(Z),null;case 5:if(h0(Z),U=Z.type,$!==null&&Z.stateNode!=null)$.memoizedProps!==Y&&s4(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 W1(Z),null}var w=B0();if(t9(Z))IK(Z,w);else{switch(K=D0(c8.current),Iq(U,w.ancestorInfo),w=w.context,K=nJ(K),w){case n7:K=K.createElementNS(T7,U);break;case Q3:K=K.createElementNS(KG,U);break;default:switch(U){case"svg":K=K.createElementNS(T7,U);break;case"math":K=K.createElementNS(KG,U);break;case"script":K=K.createElement("div"),K.innerHTML="<script></script>",K=K.removeChild(K.firstChild);break;case"select":K=typeof Y.is==="string"?K.createElement("select",{is:Y.is}):K.createElement("select"),Y.multiple?K.multiple=!0:Y.size&&(K.size=Y.size);break;default:K=typeof Y.is==="string"?K.createElement(U,{is:Y.is}):K.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(K)!=="[object HTMLUnknownElement]"||r6.call(lW,U)||(lW[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)))}}K[H5]=Z,K[A5]=Y;$:for(w=Z.child;w!==null;){if(w.tag===5||w.tag===6)K.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=K;$:switch(K5(K,U,Y),U){case"button":case"input":case"select":case"textarea":Y=!!Y.autoFocus;break $;case"img":Y=!0;break $;default:Y=!1}Y&&s4(Z)}}return W1(Z),xX(Z,Z.type,$===null?null:$.memoizedProps,Z.pendingProps,J),null;case 6:if($&&Z.stateNode!=null)$.memoizedProps!==Y&&s4(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($=D0(c8.current),J=B0(),t9(Z)){if($=Z.stateNode,J=Z.memoizedProps,U=!O4,Y=null,K=M5,K!==null)switch(K.tag){case 3:U&&(U=JF($,J,Y),U!==null&&(s2(Z,0).serverProps=U));break;case 27:case 5:Y=K.memoizedProps,U&&(U=JF($,J,Y),U!==null&&(s2(Z,0).serverProps=U))}$[H5]=Z,$=$.nodeValue===J||Y!==null&&Y.suppressHydrationWarning===!0||dM($.nodeValue,J)?!0:!1,$||v8(Z,!0)}else U=J.ancestorInfo.current,U!=null&&eQ(Y,U.tag,J.ancestorInfo.implicitRootScope),$=nJ($).createTextNode(Y),$[H5]=Z,Z.stateNode=$}return W1(Z),null;case 31:if(J=Z.memoizedState,$===null||$.memoizedState!==null){if(Y=t9(Z),J!==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.");$[H5]=Z,W1(Z),(Z.mode&k0)!==_0&&J!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration))}else mq(),n2(),(Z.flags&128)===0&&(J=Z.memoizedState=null),Z.flags|=4,W1(Z),(Z.mode&k0)!==_0&&J!==null&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration));$=!1}else J=xq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=J),$=!0;if(!$){if(Z.flags&256)return q6(Z),Z;return q6(Z),null}if((Z.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return W1(Z),null;case 13:if(Y=Z.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(U=Y,K=t9(Z),U!==null&&U.dehydrated!==null){if($===null){if(!K)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(K=Z.memoizedState,K=K!==null?K.dehydrated:null,!K)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");K[H5]=Z,W1(Z),(Z.mode&k0)!==_0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration))}else mq(),n2(),(Z.flags&128)===0&&(U=Z.memoizedState=null),Z.flags|=4,W1(Z),(Z.mode&k0)!==_0&&U!==null&&(U=Z.child,U!==null&&(Z.treeBaseDuration-=U.treeBaseDuration));U=!1}else U=xq(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=U),U=!0;if(!U){if(Z.flags&256)return q6(Z),Z;return q6(Z),null}}if(q6(Z),(Z.flags&128)!==0)return Z.lanes=J,(Z.mode&k0)!==_0&&j$(Z),Z;return J=Y!==null,$=$!==null&&$.memoizedState!==null,J&&(Y=Z.child,U=null,Y.alternate!==null&&Y.alternate.memoizedState!==null&&Y.alternate.memoizedState.cachePool!==null&&(U=Y.alternate.memoizedState.cachePool.pool),K=null,Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(K=Y.memoizedState.cachePool.pool),K!==U&&(Y.flags|=2048)),J!==$&&J&&(Z.child.flags|=8192),uJ(Z,Z.updateQueue),W1(Z),(Z.mode&k0)!==_0&&J&&($=Z.child,$!==null&&(Z.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return q0(Z),$===null&&JY(Z.stateNode.containerInfo),W1(Z),null;case 10:return c4(Z.type,Z),W1(Z),null;case 19:if(P0(g1,Z),Y=Z.memoizedState,Y===null)return W1(Z),null;if(U=(Z.flags&128)!==0,K=Y.rendering,K===null)if(U)x$(Y,!1);else{if(E1!==N8||$!==null&&($.flags&128)!==0)for($=Z.child;$!==null;){if(K=LJ($),K!==null){Z.flags|=128,x$(Y,!1),$=K.updateQueue,Z.updateQueue=$,uJ(Z,$),Z.subtreeFlags=0,$=J;for(J=Z.child;J!==null;)zK(J,$),J=J.sibling;return L0(g1,g1.current&y7|SZ,Z),r0&&p4(Z,Y.treeForkCount),Z.child}$=$.sibling}Y.tail!==null&&G5()>pG&&(Z.flags|=128,U=!0,x$(Y,!1),Z.lanes=4194304)}else{if(!U)if($=LJ(K),$!==null){if(Z.flags|=128,U=!0,$=$.updateQueue,Z.updateQueue=$,uJ(Z,$),x$(Y,!0),Y.tail===null&&Y.tailMode==="hidden"&&!K.alternate&&!r0)return W1(Z),null}else 2*G5()-Y.renderingStartTime>pG&&J!==536870912&&(Z.flags|=128,U=!0,x$(Y,!1),Z.lanes=4194304);Y.isBackwards?(K.sibling=Z.child,Z.child=K):($=Y.last,$!==null?$.sibling=K:Z.child=K,Y.last=K)}if(Y.tail!==null)return $=Y.tail,Y.rendering=$,Y.tail=$.sibling,Y.renderingStartTime=G5(),$.sibling=null,J=g1.current,J=U?J&y7|SZ:J&y7,L0(g1,J,Z),r0&&p4(Z,Y.treeForkCount),$;return W1(Z),null;case 22:case 23:return q6(Z),tq(Z),Y=Z.memoizedState!==null,$!==null?$.memoizedState!==null!==Y&&(Z.flags|=8192):Y&&(Z.flags|=8192),Y?(J&536870912)!==0&&(Z.flags&128)===0&&(W1(Z),Z.subtreeFlags&6&&(Z.flags|=8192)):W1(Z),J=Z.updateQueue,J!==null&&uJ(Z,J.retryQueue),J=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(J=$.memoizedState.cachePool.pool),Y=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&(Y=Z.memoizedState.cachePool.pool),Y!==J&&(Z.flags|=2048),$!==null&&P0(B9,Z),null;case 24:return J=null,$!==null&&(J=$.memoizedState.cache),Z.memoizedState.cache!==J&&(Z.flags|=2048),c4(d1,Z),W1(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 RL($,Z){switch(uq(Z),Z.tag){case 1:return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&k0)!==_0&&j$(Z),Z):null;case 3:return c4(d1,Z),q0(Z),$=Z.flags,($&65536)!==0&&($&128)===0?(Z.flags=$&-65537|128,Z):null;case 26:case 27:case 5:return h0(Z),null;case 31:if(Z.memoizedState!==null){if(q6(Z),Z.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");n2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&k0)!==_0&&j$(Z),Z):null;case 13:if(q6(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.");n2()}return $=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&k0)!==_0&&j$(Z),Z):null;case 19:return P0(g1,Z),null;case 4:return q0(Z),null;case 10:return c4(Z.type,Z),null;case 22:case 23:return q6(Z),tq(Z),$!==null&&P0(B9,Z),$=Z.flags,$&65536?(Z.flags=$&-65537|128,(Z.mode&k0)!==_0&&j$(Z),Z):null;case 24:return c4(d1,Z),null;case 25:return null;default:return null}}function hH($,Z){switch(uq(Z),Z.tag){case 3:c4(d1,Z),q0(Z);break;case 26:case 27:case 5:h0(Z);break;case 4:q0(Z);break;case 31:Z.memoizedState!==null&&q6(Z);break;case 13:q6(Z);break;case 19:P0(g1,Z);break;case 10:c4(Z.type,Z);break;case 22:case 23:q6(Z),tq(Z),$!==null&&P0(B9,Z);break;case 24:c4(d1,Z)}}function M4($){return($.mode&k0)!==_0}function uH($,Z){M4($)?(H4(),m$(Z,$),K4()):m$(Z,$)}function mX($,Z,J){M4($)?(H4(),G7(J,$,Z),K4()):G7(J,$,Z)}function m$($,Z){try{var J=Z.updateQueue,Y=J!==null?J.lastEffect:null;if(Y!==null){var U=Y.next;J=U;do{if((J.tag&$)===$&&(Y=void 0,($&v5)!==vG&&(l7=!0),Y=G0(Z,xV,J),($&v5)!==vG&&(l7=!1),Y!==void 0&&typeof Y!=="function")){var K=void 0;K=(J.tag&M6)!==0?"useLayoutEffect":(J.tag&v5)!==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
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:
142
+ It looks like you wrote `+K+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
144
- `+B+`(() => {
144
+ `+K+`(() => {
145
145
  async function fetchData() {
146
146
  // You can await here
147
147
  const response = await MyAPI.getData(someId);
@@ -150,11 +150,11 @@ It looks like you wrote `+B+`(async () => ...) or returned a Promise. Instead, w
150
150
  fetchData();
151
151
  }, [someId]); // Or [] if effect doesn't need props or state
152
152
 
153
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+X,G0(Z,function(w,_){console.error("%s must not return anything besides a function, which is used for clean-up.%s",w,_)},B,W)}G=G.next}while(G!==N)}}catch(w){$1(Z,Z.return,w)}}function u$($,Z,G){try{var X=Z.updateQueue,N=X!==null?X.lastEffect:null;if(N!==null){var B=N.next;X=B;do{if((X.tag&$)===$){var W=X.inst,w=W.destroy;w!==void 0&&(W.destroy=void 0,($&L5)!==UJ&&(O9=!0),N=Z,G0(N,mE,N,G,w),($&L5)!==UJ&&(O9=!1))}X=X.next}while(X!==B)}}catch(_){$1(Z,Z.return,_)}}function KH($,Z){t4($)?(i4(),I7(Z,$),a4()):I7(Z,$)}function IX($,Z,G){t4($)?(i4(),u$(G,$,Z),a4()):u$(G,$,Z)}function BH($){var Z=$.updateQueue;if(Z!==null){var G=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||V9||(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{G0($,MB,Z,G)}catch(X){$1($,$.return,X)}}}function TL($,Z,G){return $.getSnapshotBeforeUpdate(Z,G)}function zL($,Z){var{memoizedProps:G,memoizedState:X}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||V9||(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 N=h2($.type,G),B=G0($,TL,Z,N,X);G=rW,B!==void 0||G.has($.type)||(G.add($.type),G0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=B}catch(W){$1($,$.return,W)}}function HH($,Z,G){G.props=h2($.type,$.memoizedProps),G.state=$.memoizedState,t4($)?(i4(),G0($,BW,$,Z,G),a4()):G0($,BW,$,Z,G)}function _L($){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(t4($))try{i4(),$.refCleanup=Z(G)}finally{a4()}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 O7($,Z){try{G0($,_L,$)}catch(G){$1($,Z,G)}}function e4($,Z){var{ref:G,refCleanup:X}=$;if(G!==null)if(typeof X==="function")try{if(t4($))try{i4(),G0($,X)}finally{a4($)}else G0($,X)}catch(N){$1($,Z,N)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof G==="function")try{if(t4($))try{i4(),G0($,G,null)}finally{a4($)}else G0($,G,null)}catch(N){$1($,Z,N)}else G.current=null}function MH($,Z,G,X){var N=$.memoizedProps,B=N.id,W=N.onCommit;N=N.onRender,Z=Z===null?"mount":"update",QJ&&(Z="nested-update"),typeof N==="function"&&N(B,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,G),typeof W==="function"&&W(B,Z,X,G)}function LL($,Z,G,X){var N=$.memoizedProps;$=N.id,N=N.onPostCommit,Z=Z===null?"mount":"update",QJ&&(Z="nested-update"),typeof N==="function"&&N($,Z,X,G)}function FH($){var{type:Z,memoizedProps:G,stateNode:X}=$;try{G0($,lL,X,Z,G,$)}catch(N){$1($,$.return,N)}}function OX($,Z,G){try{G0($,sL,$.stateNode,$.type,G,Z,$)}catch(X){$1($,$.return,X)}}function WH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&I6($.type)||$.tag===4}function DX($){$:for(;;){for(;$.sibling===null;){if($.return===null||WH($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&I6($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function jX($,Z,G){var X=$.tag;if(X===5||X===6)$=$.stateNode,Z?(VM(G),(G.nodeType===9?G.body:G.nodeName==="HTML"?G.ownerDocument.body:G).insertBefore($,Z)):(VM(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=I8));else if(X!==4&&(X===27&&I6($.type)&&(G=$.stateNode,Z=null),$=$.child,$!==null))for(jX($,Z,G),$=$.sibling;$!==null;)jX($,Z,G),$=$.sibling}function wG($,Z,G){var X=$.tag;if(X===5||X===6)$=$.stateNode,Z?G.insertBefore($,Z):G.appendChild($);else if(X!==4&&(X===27&&I6($.type)&&(G=$.stateNode),$=$.child,$!==null))for(wG($,Z,G),$=$.sibling;$!==null;)wG($,Z,G),$=$.sibling}function VL($){for(var Z,G=$.return;G!==null;){if(WH(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=DX($),wG($,G,Z);break;case 5:G=Z.stateNode,Z.flags&32&&(LM(G),Z.flags&=-33),Z=DX($),wG($,Z,G);break;case 3:case 4:Z=Z.stateNode.containerInfo,G=DX($),jX($,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 wH($){var{stateNode:Z,memoizedProps:G}=$;try{G0($,NV,$.type,G,Z,$)}catch(X){$1($,$.return,X)}}function RH($,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 EL($,Z){if($=$.containerInfo,DU=yJ,$=kK($),H3($)){if("selectionStart"in $)var G={start:$.selectionStart,end:$.selectionEnd};else $:{G=(G=$.ownerDocument)&&G.defaultView||window;var X=G.getSelection&&G.getSelection();if(X&&X.rangeCount!==0){G=X.anchorNode;var{anchorOffset:N,focusNode:B}=X;X=X.focusOffset;try{G.nodeType,B.nodeType}catch(t){G=null;break $}var W=0,w=-1,_=-1,V=0,k=0,b=$,D=null;Z:for(;;){for(var y;;){if(b!==G||N!==0&&b.nodeType!==3||(w=W+N),b!==B||X!==0&&b.nodeType!==3||(_=W+X),b.nodeType===3&&(W+=b.nodeValue.length),(y=b.firstChild)===null)break;D=b,b=y}for(;;){if(b===$)break Z;if(D===G&&++V===N&&(w=W),D===B&&++k===X&&(_=W),(y=b.nextSibling)!==null)break;b=D,D=b.parentNode}b=y}G=w===-1||_===-1?null:{start:w,end:_}}else G=null}G=G||{start:0,end:0}}else G=null;jU={focusedElem:$,selectionRange:G},yJ=!1;for(i1=Z;i1!==null;)if(Z=i1,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,i1=$;else for(;i1!==null;){switch($=Z=i1,G=$.alternate,N=$.flags,$.tag){case 0:if((N&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(G=0;G<$.length;G++)N=$[G],N.ref.impl=N.nextImpl;break;case 11:case 15:break;case 1:(N&1024)!==0&&G!==null&&zL($,G);break;case 3:if((N&1024)!==0){if($=$.stateNode.containerInfo,G=$.nodeType,G===9)oX($);else if(G===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":oX($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((N&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,i1=$;break}i1=Z.return}}function TH($,Z,G){var X=r5(),N=r4(),B=n4(),W=o4(),w=G.flags;switch(G.tag){case 0:case 11:case 15:$8($,G),w&4&&NH(G,Q4|R4);break;case 1:if($8($,G),w&4)if($=G.stateNode,Z===null)G.type.defaultProps||"ref"in G.memoizedProps||V9||($.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")),t4(G)?(i4(),G0(G,aY,G,$),a4()):G0(G,aY,G,$);else{var _=h2(G.type,Z.memoizedProps);Z=Z.memoizedState,G.type.defaultProps||"ref"in G.memoizedProps||V9||($.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")),t4(G)?(i4(),G0(G,UW,G,$,_,Z,$.__reactInternalSnapshotBeforeUpdate),a4()):G0(G,UW,G,$,_,Z,$.__reactInternalSnapshotBeforeUpdate)}w&64&&BH(G),w&512&&O7(G,G.return);break;case 3:if(Z=A8(),$8($,G),w&64&&(w=G.updateQueue,w!==null)){if(_=null,G.child!==null)switch(G.child.tag){case 27:case 5:_=G.child.stateNode;break;case 1:_=G.child.stateNode}try{G0(G,MB,w,_)}catch(k){$1(G,G.return,k)}}$.effectDuration+=pQ(Z);break;case 27:Z===null&&w&4&&wH(G);case 26:case 5:if($8($,G),Z===null){if(w&4)FH(G);else if(w&64){$=G.type,Z=G.memoizedProps,_=G.stateNode;try{G0(G,rL,_,$,Z,G)}catch(k){$1(G,G.return,k)}}}w&512&&O7(G,G.return);break;case 12:if(w&4){w=A8(),$8($,G),$=G.stateNode,$.effectDuration+=W7(w);try{G0(G,MH,G,Z,y6,$.effectDuration)}catch(k){$1(G,G.return,k)}}else $8($,G);break;case 31:$8($,G),w&4&&LH($,G);break;case 13:$8($,G),w&4&&VH($,G),w&64&&($=G.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(w=vL.bind(null,G),qV($,w))));break;case 22:if(w=G.memoizedState!==null||r8,!w){Z=Z!==null&&Z.memoizedState!==null||u1,_=r8;var V=u1;r8=w,(u1=Z)&&!V?(Z8($,G,(G.subtreeFlags&8772)!==0),(G.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&kQ(G,W0,T0)):$8($,G),r8=_,u1=V}break;case 30:break;default:$8($,G)}(G.mode&j0)!==_0&&0<=W0&&0<=T0&&((I1||0.05<V1)&&c4(G,W0,T0,V1,L1),G.alternate===null&&G.return!==null&&G.return.alternate!==null&&0.05<T0-W0&&(RH(G.return.alternate,G.return)||p4(G,W0,T0,"Mount"))),s5(X),s4(N),L1=B,I1=W}function zH($){var Z=$.alternate;Z!==null&&($.alternate=null,zH(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&e(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function k8($,Z,G){for(G=G.child;G!==null;)_H($,Z,G),G=G.sibling}function _H($,Z,G){if(H5&&typeof H5.onCommitFiberUnmount==="function")try{H5.onCommitFiberUnmount(t$,G)}catch(V){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",V))}var X=r5(),N=r4(),B=n4(),W=o4();switch(G.tag){case 26:u1||e4(G,Z),k8($,Z,G),G.memoizedState?G.memoizedState.count--:G.stateNode&&($=G.stateNode,$.parentNode.removeChild($));break;case 27:u1||e4(G,Z);var w=m1,_=A5;I6(G.type)&&(m1=G.stateNode,A5=!1),k8($,Z,G),G0(G,y7,G.stateNode),m1=w,A5=_;break;case 5:u1||e4(G,Z);case 6:if(w=m1,_=A5,m1=null,k8($,Z,G),m1=w,A5=_,m1!==null)if(A5)try{G0(G,aL,m1,G.stateNode)}catch(V){$1(G,Z,V)}else try{G0(G,oL,m1,G.stateNode)}catch(V){$1(G,Z,V)}break;case 18:m1!==null&&(A5?($=m1,EM($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,G.stateNode),n$($)):EM(m1,G.stateNode));break;case 4:w=m1,_=A5,m1=G.stateNode.containerInfo,A5=!0,k8($,Z,G),m1=w,A5=_;break;case 0:case 11:case 14:case 15:u$(L5,G,Z),u1||CX(G,Z,Q4),k8($,Z,G);break;case 1:u1||(e4(G,Z),w=G.stateNode,typeof w.componentWillUnmount==="function"&&HH(G,Z,w)),k8($,Z,G);break;case 21:k8($,Z,G);break;case 22:u1=(w=u1)||G.memoizedState!==null,k8($,Z,G),u1=w;break;default:k8($,Z,G)}(G.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(G,W0,T0,V1,L1),s5(X),s4(N),L1=B,I1=W}function LH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{G0(Z,YV,$)}catch(G){$1(Z,Z.return,G)}}}function VH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{G0(Z,UV,$)}catch(G){$1(Z,Z.return,G)}}function PL($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new sW),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new sW),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function RG($,Z){var G=PL($);Z.forEach(function(X){if(!G.has(X)){if(G.add(X),U8)if(E9!==null&&P9!==null)S7(P9,E9);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var N=kL.bind(null,$,X);X.then(N,N)}})}function D5($,Z){var G=Z.deletions;if(G!==null)for(var X=0;X<G.length;X++){var N=$,B=Z,W=G[X],w=r5(),_=B;$:for(;_!==null;){switch(_.tag){case 27:if(I6(_.type)){m1=_.stateNode,A5=!1;break $}break;case 5:m1=_.stateNode,A5=!1;break $;case 3:case 4:m1=_.stateNode.containerInfo,A5=!0;break $}_=_.return}if(m1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");_H(N,B,W),m1=null,A5=!1,(W.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4(W,W0,T0,"Unmount"),s5(w),N=W,B=N.alternate,B!==null&&(B.return=null),N.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)EH(Z,$),Z=Z.sibling}function EH($,Z){var G=r5(),X=r4(),N=n4(),B=o4(),W=$.alternate,w=$.flags;switch($.tag){case 0:case 11:case 14:case 15:D5(Z,$),j5($),w&4&&(u$(L5|R4,$,$.return),I7(L5|R4,$),CX($,$.return,Q4|R4));break;case 1:if(D5(Z,$),j5($),w&512&&(u1||W===null||e4(W,W.return)),w&64&&r8&&(w=$.updateQueue,w!==null&&(W=w.callbacks,W!==null))){var _=w.shared.hiddenCallbacks;w.shared.hiddenCallbacks=_===null?W:_.concat(W)}break;case 26:if(_=k4,D5(Z,$),j5($),w&512&&(u1||W===null||e4(W,W.return)),w&4){var V=W!==null?W.memoizedState:null;if(w=$.memoizedState,W===null)if(w===null)if($.stateNode===null){$:{w=$.type,W=$.memoizedProps,_=_.ownerDocument||_;Z:switch(w){case"title":if(V=_.getElementsByTagName("title")[0],!V||V[p7]||V[G5]||V.namespaceURI===$9||V.hasAttribute("itemprop"))V=_.createElement(w),_.head.insertBefore(V,_.querySelector("head > title"));Q5(V,w,W),V[G5]=$,F0(V),w=V;break $;case"link":var k=bM("link","href",_).get(w+(W.href||""));if(k){for(var b=0;b<k.length;b++)if(V=k[b],V.getAttribute("href")===(W.href==null||W.href===""?null:W.href)&&V.getAttribute("rel")===(W.rel==null?null:W.rel)&&V.getAttribute("title")===(W.title==null?null:W.title)&&V.getAttribute("crossorigin")===(W.crossOrigin==null?null:W.crossOrigin)){k.splice(b,1);break Z}}V=_.createElement(w),Q5(V,w,W),_.head.appendChild(V);break;case"meta":if(k=bM("meta","content",_).get(w+(W.content||""))){for(b=0;b<k.length;b++)if(V=k[b],Y1(W.content,"content"),V.getAttribute("content")===(W.content==null?null:""+W.content)&&V.getAttribute("name")===(W.name==null?null:W.name)&&V.getAttribute("property")===(W.property==null?null:W.property)&&V.getAttribute("http-equiv")===(W.httpEquiv==null?null:W.httpEquiv)&&V.getAttribute("charset")===(W.charSet==null?null:W.charSet)){k.splice(b,1);break Z}}V=_.createElement(w),Q5(V,w,W),_.head.appendChild(V);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+w+'". This is a bug in React.')}V[G5]=$,F0(V),w=V}$.stateNode=w}else fM(_,$.type,$.stateNode);else $.stateNode=kM(_,w,$.memoizedProps);else V!==w?(V===null?W.stateNode!==null&&(W=W.stateNode,W.parentNode.removeChild(W)):V.count--,w===null?fM(_,$.type,$.stateNode):kM(_,w,$.memoizedProps)):w===null&&$.stateNode!==null&&OX($,$.memoizedProps,W.memoizedProps)}break;case 27:D5(Z,$),j5($),w&512&&(u1||W===null||e4(W,W.return)),W!==null&&w&4&&OX($,$.memoizedProps,W.memoizedProps);break;case 5:if(D5(Z,$),j5($),w&512&&(u1||W===null||e4(W,W.return)),$.flags&32){_=$.stateNode;try{G0($,LM,_)}catch(Z0){$1($,$.return,Z0)}}w&4&&$.stateNode!=null&&(_=$.memoizedProps,OX($,_,W!==null?W.memoizedProps:_)),w&1024&&(NU=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(D5(Z,$),j5($),w&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.");w=$.memoizedProps,W=W!==null?W.memoizedProps:w,_=$.stateNode;try{G0($,nL,_,W,w)}catch(Z0){$1($,$.return,Z0)}}break;case 3:if(_=A8(),kJ=null,V=k4,k4=CG(Z.containerInfo),D5(Z,$),k4=V,j5($),w&4&&W!==null&&W.memoizedState.isDehydrated)try{G0($,XV,Z.containerInfo)}catch(Z0){$1($,$.return,Z0)}NU&&(NU=!1,PH($)),Z.effectDuration+=pQ(_);break;case 4:w=k4,k4=CG($.stateNode.containerInfo),D5(Z,$),j5($),k4=w;break;case 12:w=A8(),D5(Z,$),j5($),$.stateNode.effectDuration+=W7(w);break;case 31:D5(Z,$),j5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,RG($,w)));break;case 13:D5(Z,$),j5($),$.child.flags&8192&&$.memoizedState!==null!==(W!==null&&W.memoizedState!==null)&&(TJ=o1()),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,RG($,w)));break;case 22:_=$.memoizedState!==null;var D=W!==null&&W.memoizedState!==null,y=r8,t=u1;if(r8=y||_,u1=t||D,D5(Z,$),u1=t,r8=y,D&&!_&&!y&&!t&&($.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&kQ($,W0,T0),j5($),w&8192)$:for(Z=$.stateNode,Z._visibility=_?Z._visibility&~t7:Z._visibility|t7,!_||W===null||D||r8||u1||(x2($),($.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4($,W0,T0,"Disconnect")),W=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(W===null){D=W=Z;try{V=D.stateNode,_?G0(D,tL,V):G0(D,ZV,D.stateNode,D.memoizedProps)}catch(Z0){$1(D,D.return,Z0)}}}else if(Z.tag===6){if(W===null){D=Z;try{k=D.stateNode,_?G0(D,eL,k):G0(D,QV,k,D.memoizedProps)}catch(Z0){$1(D,D.return,Z0)}}}else if(Z.tag===18){if(W===null){D=Z;try{b=D.stateNode,_?G0(D,iL,b):G0(D,$V,D.stateNode)}catch(Z0){$1(D,D.return,Z0)}}}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}w&4&&(w=$.updateQueue,w!==null&&(W=w.retryQueue,W!==null&&(w.retryQueue=null,RG($,W))));break;case 19:D5(Z,$),j5($),w&4&&(w=$.updateQueue,w!==null&&($.updateQueue=null,RG($,w)));break;case 30:break;case 21:break;default:D5(Z,$),j5($)}($.mode&j0)!==_0&&0<=W0&&0<=T0&&((I1||0.05<V1)&&c4($,W0,T0,V1,L1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<T0-W0&&(RH($.return.alternate,$.return)||p4($,W0,T0,"Mount"))),s5(G),s4(X),L1=N,I1=B}function j5($){var Z=$.flags;if(Z&2){try{G0($,VL,$)}catch(G){$1($,$.return,G)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function PH($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;PH(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function $8($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)TH($,Z.alternate,Z),Z=Z.sibling}function CH($){var Z=r5(),G=r4(),X=n4(),N=o4();switch($.tag){case 0:case 11:case 14:case 15:CX($,$.return,Q4),x2($);break;case 1:e4($,$.return);var B=$.stateNode;typeof B.componentWillUnmount==="function"&&HH($,$.return,B),x2($);break;case 27:G0($,y7,$.stateNode);case 26:case 5:e4($,$.return),x2($);break;case 22:$.memoizedState===null&&x2($);break;case 30:x2($);break;default:x2($)}($.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4($,W0,T0,V1,L1),s5(Z),s4(G),L1=X,I1=N}function x2($){for($=$.child;$!==null;)CH($),$=$.sibling}function IH($,Z,G,X){var N=r5(),B=r4(),W=n4(),w=o4(),_=G.flags;switch(G.tag){case 0:case 11:case 15:Z8($,G,X),NH(G,Q4);break;case 1:if(Z8($,G,X),Z=G.stateNode,typeof Z.componentDidMount==="function"&&G0(G,aY,G,Z),Z=G.updateQueue,Z!==null){$=G.stateNode;try{G0(G,XL,Z,$)}catch(V){$1(G,G.return,V)}}X&&_&64&&BH(G),O7(G,G.return);break;case 27:wH(G);case 26:case 5:Z8($,G,X),X&&Z===null&&_&4&&FH(G),O7(G,G.return);break;case 12:if(X&&_&4){_=A8(),Z8($,G,X),X=G.stateNode,X.effectDuration+=W7(_);try{G0(G,MH,G,Z,y6,X.effectDuration)}catch(V){$1(G,G.return,V)}}else Z8($,G,X);break;case 31:Z8($,G,X),X&&_&4&&LH($,G);break;case 13:Z8($,G,X),X&&_&4&&VH($,G);break;case 22:G.memoizedState===null&&Z8($,G,X),O7(G,G.return);break;case 30:break;default:Z8($,G,X)}(G.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(G,W0,T0,V1,L1),s5(N),s4(B),L1=W,I1=w}function Z8($,Z,G){G=G&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)IH($,Z.alternate,Z,G),Z=Z.sibling}function AX($,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&&b2($),G!=null&&F7(G))}function SX($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(b2(Z),$!=null&&F7($))}function O4($,Z,G,X,N){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;OH($,Z,G,X,B!==null?B.actualStartTime:N),Z=B}}function OH($,Z,G,X,N){var B=r5(),W=r4(),w=n4(),_=o4(),V=v6,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&j0)!==_0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&bQ(Z,Z.actualStartTime,N,l1,G),O4($,Z,G,X,N),k&2048&&KH(Z,V5|R4);break;case 1:(Z.mode&j0)!==_0&&0<Z.actualStartTime&&((Z.flags&128)!==0?F3(Z,Z.actualStartTime,N,[]):(Z.flags&1)!==0&&bQ(Z,Z.actualStartTime,N,l1,G)),O4($,Z,G,X,N);break;case 3:var b=A8(),D=l1;l1=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,O4($,Z,G,X,N),l1=D,k&2048&&(G=null,Z.alternate!==null&&(G=Z.alternate.memoizedState.cache),X=Z.memoizedState.cache,X!==G&&(b2(X),G!=null&&F7(G))),$.passiveEffectDuration+=pQ(b);break;case 12:if(k&2048){k=A8(),O4($,Z,G,X,N),$=Z.stateNode,$.passiveEffectDuration+=W7(k);try{G0(Z,LL,Z,Z.alternate,y6,$.passiveEffectDuration)}catch(y){$1(Z,Z.return,y)}}else O4($,Z,G,X,N);break;case 31:k=l1,b=Z.alternate!==null?Z.alternate.memoizedState:null,D=Z.memoizedState,b!==null&&D===null?(D=Z.deletions,D!==null&&0<D.length&&D[0].tag===18?(l1=!1,b=b.hydrationErrors,b!==null&&F3(Z,Z.actualStartTime,N,b)):l1=!0):l1=!1,O4($,Z,G,X,N),l1=k;break;case 13:k=l1,b=Z.alternate!==null?Z.alternate.memoizedState:null,D=Z.memoizedState,b===null||b.dehydrated===null||D!==null&&D.dehydrated!==null?l1=!1:(D=Z.deletions,D!==null&&0<D.length&&D[0].tag===18?(l1=!1,b=b.hydrationErrors,b!==null&&F3(Z,Z.actualStartTime,N,b)):l1=!0),O4($,Z,G,X,N),l1=k;break;case 23:break;case 22:D=Z.stateNode,b=Z.alternate,Z.memoizedState!==null?D._visibility&y8?O4($,Z,G,X,N):D7($,Z,G,X,N):D._visibility&y8?O4($,Z,G,X,N):(D._visibility|=y8,m$($,Z,G,X,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),N),(Z.mode&j0)===_0||l1||($=Z.actualStartTime,0<=$&&0.05<N-$&&kQ(Z,$,N),0<=W0&&0<=T0&&0.05<T0-W0&&kQ(Z,W0,T0))),k&2048&&AX(b,Z);break;case 24:O4($,Z,G,X,N),k&2048&&SX(Z.alternate,Z);break;default:O4($,Z,G,X,N)}if((Z.mode&j0)!==_0){if($=!l1&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)G=Z.actualStartTime,0<=G&&0.05<N-G&&p4(Z,G,N,"Mount");0<=W0&&0<=T0&&((I1||0.05<V1)&&c4(Z,W0,T0,V1,L1),$&&0.05<T0-W0&&p4(Z,W0,T0,"Mount"))}s5(B),s4(W),L1=w,I1=_,v6=V}function m$($,Z,G,X,N,B){N=N&&((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;DH($,Z,G,X,N,W!==null?W.actualStartTime:B),Z=W}}function DH($,Z,G,X,N,B){var W=r5(),w=r4(),_=n4(),V=o4(),k=v6;N&&(Z.mode&j0)!==_0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&bQ(Z,Z.actualStartTime,B,l1,G);var b=Z.flags;switch(Z.tag){case 0:case 11:case 15:m$($,Z,G,X,N,B),KH(Z,V5);break;case 23:break;case 22:var D=Z.stateNode;Z.memoizedState!==null?D._visibility&y8?m$($,Z,G,X,N,B):D7($,Z,G,X,B):(D._visibility|=y8,m$($,Z,G,X,N,B)),N&&b&2048&&AX(Z.alternate,Z);break;case 24:m$($,Z,G,X,N,B),N&&b&2048&&SX(Z.alternate,Z);break;default:m$($,Z,G,X,N,B)}(Z.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(Z,W0,T0,V1,L1),s5(W),s4(w),L1=_,I1=V,v6=k}function D7($,Z,G,X,N){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=$,w=G,_=X,V=Z!==null?Z.actualStartTime:N,k=v6;(B.mode&j0)!==_0&&0<B.actualStartTime&&(B.flags&1)!==0&&bQ(B,B.actualStartTime,V,l1,w);var b=B.flags;switch(B.tag){case 22:D7(W,B,w,_,V),b&2048&&AX(B.alternate,B);break;case 24:D7(W,B,w,_,V),b&2048&&SX(B.alternate,B);break;default:D7(W,B,w,_,V)}v6=k,B=Z}}function d$($,Z,G){if($.subtreeFlags&TZ)for($=$.child;$!==null;)jH($,Z,G),$=$.sibling}function jH($,Z,G){switch($.tag){case 26:d$($,Z,G),$.flags&TZ&&$.memoizedState!==null&&HV(G,k4,$.memoizedState,$.memoizedProps);break;case 5:d$($,Z,G);break;case 3:case 4:var X=k4;k4=CG($.stateNode.containerInfo),d$($,Z,G),k4=X;break;case 22:$.memoizedState===null&&(X=$.alternate,X!==null&&X.memoizedState!==null?(X=TZ,TZ=16777216,d$($,Z,G),TZ=X):d$($,Z,G));break;default:d$($,Z,G)}}function AH($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function j7($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var X=Z[G],N=r5();i1=X,kH(X,$),(X.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4(X,W0,T0,"Unmount"),s5(N)}AH($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)SH($),$=$.sibling}function SH($){var Z=r5(),G=r4(),X=n4(),N=o4();switch($.tag){case 0:case 11:case 15:j7($),$.flags&2048&&IX($,$.return,V5|R4);break;case 3:var B=A8();j7($),$.stateNode.passiveEffectDuration+=pQ(B);break;case 12:B=A8(),j7($),$.stateNode.passiveEffectDuration+=W7(B);break;case 22:B=$.stateNode,$.memoizedState!==null&&B._visibility&y8&&($.return===null||$.return.tag!==13)?(B._visibility&=~y8,TG($),($.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4($,W0,T0,"Disconnect")):j7($);break;default:j7($)}($.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4($,W0,T0,V1,L1),s5(Z),s4(G),I1=N,L1=X}function TG($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var G=0;G<Z.length;G++){var X=Z[G],N=r5();i1=X,kH(X,$),(X.mode&j0)!==_0&&0<=W0&&0<=T0&&0.05<T0-W0&&p4(X,W0,T0,"Unmount"),s5(N)}AH($)}for($=$.child;$!==null;)vH($),$=$.sibling}function vH($){var Z=r5(),G=r4(),X=n4(),N=o4();switch($.tag){case 0:case 11:case 15:IX($,$.return,V5),TG($);break;case 22:var B=$.stateNode;B._visibility&y8&&(B._visibility&=~y8,TG($));break;default:TG($)}($.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4($,W0,T0,V1,L1),s5(Z),s4(G),I1=N,L1=X}function kH($,Z){for(;i1!==null;){var G=i1,X=G,N=Z,B=r5(),W=r4(),w=n4(),_=o4();switch(X.tag){case 0:case 11:case 15:IX(X,N,V5);break;case 23:case 22:X.memoizedState!==null&&X.memoizedState.cachePool!==null&&(N=X.memoizedState.cachePool.pool,N!=null&&b2(N));break;case 24:F7(X.memoizedState.cache)}if((X.mode&j0)!==_0&&0<=W0&&0<=T0&&(I1||0.05<V1)&&c4(X,W0,T0,V1,L1),s5(B),s4(W),I1=_,L1=w,X=G.child,X!==null)X.return=G,i1=X;else $:for(G=$;i1!==null;){if(X=i1,B=X.sibling,W=X.return,zH(X),X===G){i1=null;break $}if(B!==null){B.return=W,i1=B;break $}i1=W}}}function CL(){rE.forEach(function($){return $()})}function bH(){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 o5($){if((o0&r1)!==t1&&S0!==0)return S0&-S0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),xX()):f()}function fH(){if(v5===0)if((S0&536870912)===0||p0){var $=gG;gG<<=1,(gG&3932160)===0&&(gG=262144),v5=$}else v5=536870912;return $=Z4.current,$!==null&&($.flags|=32),v5}function C1($,Z,G){if(O9&&console.error("useInsertionEffect must not schedule updates."),_U&&(VJ=!0),$===K1&&(q1===$$||q1===Z$)||$.cancelPendingCommit!==null)c$($,0),P6($,S0,v5,!1);if(H6($,G),(o0&r1)!==t1&&$===K1){if(X8)switch(Z.tag){case 0:case 11:case 15:$=v0&&d(v0)||"Unknown",Uw.has($)||(Uw.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:Yw||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Yw=!0)}}else U8&&G7($,Z,G),fL(Z),$===K1&&((o0&r1)===t1&&(l6|=G),E1===d6&&P6($,S0,v5,!1)),Q8($)}function yH($,Z,G){if((o0&(r1|G4))!==t1)throw Error("Should not already be working.");if(S0!==0&&v0!==null){var X=v0,N=o1();switch($W){case LZ:case $$:var B=JZ;w1&&((X=X._debugTask)?X.run(console.timeStamp.bind(console,"Suspended",B,N,N4,void 0,"primary-light")):console.timeStamp("Suspended",B,N,N4,void 0,"primary-light"));break;case Z$:B=JZ,w1&&((X=X._debugTask)?X.run(console.timeStamp.bind(console,"Action",B,N,N4,void 0,"primary-light")):console.timeStamp("Action",B,N,N4,void 0,"primary-light"));break;default:w1&&(X=N-JZ,3>X||console.timeStamp("Blocked",JZ,N,N4,void 0,5>X?"primary-light":10>X?"primary":100>X?"primary-dark":"error"))}}B=(G=!G&&(Z&127)===0&&(Z&$.expiredLanes)===0||L2($,Z))?OL($,Z):kX($,Z,!0);var W=G;do{if(B===s8){C9&&!G&&P6($,Z,0,!1),Z=q1,JZ=g1(),$W=Z;break}else{if(X=o1(),N=$.current.alternate,W&&!IL(N)){c5(Z),N=a1,B=X,!w1||B<=N||(S1?S1.run(console.timeStamp.bind(console,"Teared Render",N,B,u0,g0,"error")):console.timeStamp("Teared Render",N,B,u0,g0,"error")),u2(Z,X),B=kX($,Z,!1),W=!1;continue}if(B===e2){if(W=Z,$.errorRecoveryDisabledLanes&W)var w=0;else w=$.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){c5(Z),W3(a1,X,Z,S1),u2(Z,X),Z=w;$:{X=$,B=W,W=EZ;var _=X.current.memoizedState.isDehydrated;if(_&&(c$(X,w).flags|=256),w=kX(X,w,!1),w!==e2){if(HU&&!_){X.errorRecoveryDisabledLanes|=B,l6|=B,B=d6;break $}X=E5,E5=W,X!==null&&(E5===null?E5=X:E5.push.apply(E5,X))}B=w}if(W=!1,B!==e2)continue;else X=o1()}}if(B===_Z){c5(Z),W3(a1,X,Z,S1),u2(Z,X),c$($,0),P6($,Z,0,!0);break}$:{switch(G=$,B){case s8:case _Z:throw Error("Root did not complete. This is a bug in React.");case d6:if((Z&4194048)!==Z)break;case FJ:c5(Z),yK(a1,X,Z,S1),u2(Z,X),N=Z,(N&127)!==0?eG=X:(N&4194048)!==0&&($J=X),P6(G,Z,v5,!p6);break $;case e2:E5=null;break;case MJ:case nW:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)bX(G,N,Z,E5,PZ,RJ,v5,l6,Q$,B,null,null,a1,X);else{if((Z&62914560)===Z&&(W=TJ+iW-o1(),10<W)){if(P6(G,Z,v5,!p6),_2(G,0,!0)!==0)break $;b4=Z,G.timeoutHandle=ww(gH.bind(null,G,N,E5,PZ,RJ,Z,v5,l6,Q$,p6,B,"Throttled",a1,X),W);break $}gH(G,N,E5,PZ,RJ,Z,v5,l6,Q$,p6,B,null,a1,X)}}}break}while(1);Q8($)}function gH($,Z,G,X,N,B,W,w,_,V,k,b,D,y){$.timeoutHandle=Y$;var t=Z.subtreeFlags,Z0=null;if(t&8192||(t&16785408)===16785408){if(Z0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:I8},jH(Z,B,Z0),t=(B&62914560)===B?TJ-o1():(B&4194048)===B?aW-o1():0,t=MV(Z0,t),t!==null){b4=B,$.cancelPendingCommit=t(bX.bind(null,$,Z,B,G,X,N,W,w,_,k,Z0,Z0.waitingForViewTransition?"Waiting for the previous Animation":0<Z0.count?0<Z0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Z0.imgCount===1?"Suspended on an Image":0<Z0.imgCount?"Suspended on Images":null,D,y)),P6($,B,W,!V);return}}bX($,Z,B,G,X,N,W,w,_,k,Z0,b,D,y)}function IL($){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 X=0;X<G.length;X++){var N=G[X],B=N.getSnapshot;N=N.value;try{if(!z5(B(),N))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 P6($,Z,G,X){Z&=~MU,Z&=~l6,$.suspendedLanes|=Z,$.pingedLanes&=~Z,X&&($.warmLanes|=Z),X=$.expirationTimes;for(var N=Z;0<N;){var B=31-w5(N),W=1<<B;X[B]=-1,N&=~W}G!==0&&V2($,G,Z)}function p$(){return(o0&(r1|G4))===t1?(v7(0,!1),!1):!0}function vX(){if(v0!==null){if(q1===S5)var $=v0.return;else $=v0,uQ(),p3($),w9=null,MZ=0,$=v0;for(;$!==null;)UH($.alternate,$),$=$.return;v0=null}}function u2($,Z){($&127)!==0&&(g6=Z),($&4194048)!==0&&(M8=Z),($&62914560)!==0&&(tF=Z),($&2080374784)!==0&&(eF=Z)}function c$($,Z){w1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",g0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",g0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",g0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",g0,"primary-light"));var G=a1;if(a1=g1(),S0!==0&&0<G){if(c5(S0),E1===MJ||E1===d6)yK(G,a1,Z,S1);else{var X=a1,N=S1;if(w1&&!(X<=G)){var B=(Z&738197653)===Z?"tertiary-dark":"primary-dark",W=(Z&536870912)===Z?"Prewarm":(Z&201326741)===Z?"Interrupted Hydration":"Interrupted Render";N?N.run(console.timeStamp.bind(console,W,G,X,u0,g0,B)):console.timeStamp(W,G,X,u0,g0,B)}}u2(S0,a1)}if(G=S1,S1=null,(Z&127)!==0){S1=ZZ,N=0<=H8&&H8<g6?g6:H8,X=0<=l2&&l2<g6?g6:l2,B=0<=X?X:0<=N?N:a1,0<=eG?(c5(2),gK(eG,B,Z,G)):(ZJ&127)!==0&&(c5(2),H7(g6,B,d8)),G=N;var w=X,_=QZ,V=0<M9,k=h6===$Z,b=h6===tG;if(N=a1,X=ZZ,B=lY,W=rY,w1){if(u0="Blocking",0<G?G>N&&(G=N):G=N,0<w?w>G&&(w=G):w=G,_!==null&&G>w){var D=V?"secondary-light":"warning";X?X.run(console.timeStamp.bind(console,V?"Consecutive":"Event: "+_,w,G,u0,g0,D)):console.timeStamp(V?"Consecutive":"Event: "+_,w,G,u0,g0,D)}N>G&&(w=k?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",k=b?"Promise Resolved":k?"Cascading Update":5<N-G?"Update Blocked":"Update",b=[],W!=null&&b.push(["Component name",W]),B!=null&&b.push(["Method name",B]),G={start:G,end:N,detail:{devtools:{properties:b,track:u0,trackGroup:g0,color:w}}},X?X.run(performance.measure.bind(performance,k,G)):performance.measure(k,G))}H8=-1.1,h6=0,rY=lY=null,eG=-1.1,M9=l2,l2=-1.1,g6=g1()}if((Z&4194048)!==0&&(S1=GZ,N=0<=m8&&m8<M8?M8:m8,G=0<=W4&&W4<M8?M8:W4,X=0<=x6&&x6<M8?M8:x6,B=0<=X?X:0<=G?G:a1,0<=$J?(c5(256),gK($J,B,Z,S1)):(ZJ&4194048)!==0&&(c5(256),H7(M8,B,d8)),b=X,w=r2,_=0<u6,V=sY===tG,B=a1,X=GZ,W=aF,k=iF,w1&&(u0="Transition",0<G?G>B&&(G=B):G=B,0<N?N>G&&(N=G):N=G,0<b?b>N&&(b=N):b=N,N>b&&w!==null&&(D=_?"secondary-light":"warning",X?X.run(console.timeStamp.bind(console,_?"Consecutive":"Event: "+w,b,N,u0,g0,D)):console.timeStamp(_?"Consecutive":"Event: "+w,b,N,u0,g0,D)),G>N&&(X?X.run(console.timeStamp.bind(console,"Action",N,G,u0,g0,"primary-dark")):console.timeStamp("Action",N,G,u0,g0,"primary-dark")),B>G&&(N=V?"Promise Resolved":5<B-G?"Update Blocked":"Update",b=[],k!=null&&b.push(["Component name",k]),W!=null&&b.push(["Method name",W]),G={start:G,end:B,detail:{devtools:{properties:b,track:u0,trackGroup:g0,color:"primary-light"}}},X?X.run(performance.measure.bind(performance,N,G)):performance.measure(N,G))),W4=m8=-1.1,sY=0,$J=-1.1,u6=x6,x6=-1.1,M8=g1()),(Z&62914560)!==0&&(ZJ&62914560)!==0&&(c5(4194304),H7(tF,a1,d8)),(Z&2080374784)!==0&&(ZJ&2080374784)!==0&&(c5(268435456),H7(eF,a1,d8)),G=$.timeoutHandle,G!==Y$&&($.timeoutHandle=Y$,qP(G)),G=$.cancelPendingCommit,G!==null&&($.cancelPendingCommit=null,G()),b4=0,vX(),K1=$,v0=G=O8($.current,null),S0=Z,q1=S5,J4=null,p6=!1,C9=L2($,Z),HU=!1,E1=s8,Q$=v5=MU=l6=c6=0,E5=EZ=null,RJ=!1,(Z&8)!==0&&(Z|=Z&32),X=$.entangledLanes,X!==0)for($=$.entanglements,X&=Z;0<X;)N=31-w5(X),B=1<<N,Z|=$[N],X&=~B;return W8=Z,fQ(),$=cF(),1000<$-pF&&(x.recentlyCreatedOwnerStacks=0,pF=$),S4.discardPendingWarnings(),G}function hH($,Z){L0=null,x.H=RZ,x.getCurrentStack=null,X8=!1,t5=null,Z===W9||Z===qJ?(Z=qB(),q1=LZ):Z===iY?(Z=qB(),q1=oW):q1=Z===YU?BU:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?VZ:WJ,J4=Z;var G=v0;G===null?(E1=_Z,BG($,l5(Z,$.current))):G.mode&j0&&A3(G)}function xH(){var $=Z4.current;return $===null?!0:(S0&4194048)===S0?w4===null?!0:!1:(S0&62914560)===S0||(S0&536870912)!==0?$===w4:!1}function uH(){var $=x.H;return x.H=RZ,$===null?RZ:$}function mH(){var $=x.A;return x.A=lE,$}function zG($){S1===null&&(S1=$._debugTask==null?null:$._debugTask)}function _G(){E1=d6,p6||(S0&4194048)!==S0&&Z4.current!==null||(C9=!0),(c6&134217727)===0&&(l6&134217727)===0||K1===null||P6(K1,S0,v5,!1)}function kX($,Z,G){var X=o0;o0|=r1;var N=uH(),B=mH();if(K1!==$||S0!==Z){if(U8){var W=$.memoizedUpdaters;0<W.size&&(S7($,S0),W.clear()),M6($,Z)}PZ=null,c$($,Z)}Z=!1,W=E1;$:do try{if(q1!==S5&&v0!==null){var w=v0,_=J4;switch(q1){case BU:vX(),W=FJ;break $;case LZ:case $$:case Z$:case VZ:Z4.current===null&&(Z=!0);var V=q1;if(q1=S5,J4=null,l$($,w,_,V),G&&C9){W=s8;break $}break;default:V=q1,q1=S5,J4=null,l$($,w,_,V)}}dH(),W=E1;break}catch(k){hH($,k)}while(1);return Z&&$.shellSuspendCounter++,uQ(),o0=X,x.H=N,x.A=B,v0===null&&(K1=null,S0=0,fQ()),W}function dH(){for(;v0!==null;)pH(v0)}function OL($,Z){var G=o0;o0|=r1;var X=uH(),N=mH();if(K1!==$||S0!==Z){if(U8){var B=$.memoizedUpdaters;0<B.size&&(S7($,S0),B.clear()),M6($,Z)}PZ=null,zJ=o1()+tW,c$($,Z)}else C9=L2($,Z);$:do try{if(q1!==S5&&v0!==null)Z:switch(Z=v0,B=J4,q1){case WJ:q1=S5,J4=null,l$($,Z,B,WJ);break;case $$:case Z$:if(GB(B)){q1=S5,J4=null,cH(Z);break}Z=function(){q1!==$$&&q1!==Z$||K1!==$||(q1=wJ),Q8($)},B.then(Z,Z);break $;case LZ:q1=wJ;break $;case oW:q1=KU;break $;case wJ:GB(B)?(q1=S5,J4=null,cH(Z)):(q1=S5,J4=null,l$($,Z,B,wJ));break;case KU:var W=null;switch(v0.tag){case 26:W=v0.memoizedState;case 5:case 27:var w=v0;if(W?yM(W):w.stateNode.complete){q1=S5,J4=null;var _=w.sibling;if(_!==null)v0=_;else{var V=w.return;V!==null?(v0=V,LG(V)):v0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}q1=S5,J4=null,l$($,Z,B,KU);break;case VZ:q1=S5,J4=null,l$($,Z,B,VZ);break;case BU:vX(),E1=FJ;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?dH():DL();break}catch(k){hH($,k)}while(1);if(uQ(),x.H=X,x.A=N,o0=G,v0!==null)return s8;return K1=null,S0=0,fQ(),E1}function DL(){for(;v0!==null&&!IV();)pH(v0)}function pH($){var Z=$.alternate;($.mode&j0)!==_0?(j3($),Z=G0($,EX,Z,$,W8),A3($)):Z=G0($,EX,Z,$,W8),$.memoizedProps=$.pendingProps,Z===null?LG($):v0=Z}function cH($){var Z=G0($,jL,$);$.memoizedProps=$.pendingProps,Z===null?LG($):v0=Z}function jL($){var Z=$.alternate,G=($.mode&j0)!==_0;switch(G&&j3($),$.tag){case 15:case 0:Z=ZH(Z,$,$.pendingProps,$.type,void 0,S0);break;case 11:Z=ZH(Z,$,$.pendingProps,$.type.render,$.ref,S0);break;case 5:p3($);default:UH(Z,$),$=v0=pK($,W8),Z=EX(Z,$,W8)}return G&&A3($),Z}function l$($,Z,G,X){uQ(),p3(Z),w9=null,MZ=0;var N=Z.return;try{if(ML($,N,Z,G,S0)){E1=_Z,BG($,l5(G,$.current)),v0=null;return}}catch(B){if(N!==null)throw v0=N,B;E1=_Z,BG($,l5(G,$.current)),v0=null;return}if(Z.flags&32768){if(p0||X===WJ)$=!0;else if(C9||(S0&536870912)!==0)$=!1;else if(p6=$=!0,X===$$||X===Z$||X===LZ||X===VZ)X=Z4.current,X!==null&&X.tag===13&&(X.flags|=16384);lH(Z,$)}else LG(Z)}function LG($){var Z=$;do{if((Z.flags&32768)!==0){lH(Z,p6);return}var G=Z.alternate;if($=Z.return,j3(Z),G=G0(Z,wL,G,Z,W8),(Z.mode&j0)!==_0&&tK(Z),G!==null){v0=G;return}if(Z=Z.sibling,Z!==null){v0=Z;return}v0=Z=$}while(Z!==null);E1===s8&&(E1=nW)}function lH($,Z){do{var G=RL($.alternate,$);if(G!==null){G.flags&=32767,v0=G;return}if(($.mode&j0)!==_0){tK($),G=$.actualDuration;for(var X=$.child;X!==null;)G+=X.actualDuration,X=X.sibling;$.actualDuration=G}if(G=$.return,G!==null&&(G.flags|=32768,G.subtreeFlags=0,G.deletions=null),!Z&&($=$.sibling,$!==null)){v0=$;return}v0=$=G}while($!==null);E1=FJ,v0=null}function bX($,Z,G,X,N,B,W,w,_,V,k,b,D,y){$.cancelPendingCommit=null;do A7();while(d1!==s6);if(S4.flushLegacyContextWarning(),S4.flushPendingUnsafeLifecycleWarnings(),(o0&(r1|G4))!==t1)throw Error("Should not already be working.");if(c5(G),V===e2?W3(D,y,G,S1):X!==null?$L(D,y,G,X,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,S1):e_(D,y,G,S1),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|=uY,PQ($,G,B,W,w,_),$===K1&&(v0=K1=null,S0=0),I9=Z,n6=$,b4=G,wU=B,TU=N,Jw=X,RU=y,qw=b,f4=_J,Xw=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,bL(i$,function(){return AZ=window.event,f4===_J&&(f4=WU),aH(),null})):($.callbackNode=null,$.callbackPriority=0),u8=null,y6=g1(),b!==null&&ZL(y,y6,b,S1),X=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||X){X=x.T,x.T=null,N=Z1.p,Z1.p=e5,W=o0,o0|=G4;try{EL($,Z,G)}finally{o0=W,Z1.p=N,x.T=X}}d1=$w,rH(),sH(),nH()}}function rH(){if(d1===$w){d1=s6;var $=n6,Z=I9,G=b4,X=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||X){X=x.T,x.T=null;var N=Z1.p;Z1.p=e5;var B=o0;o0|=G4;try{E9=G,P9=$,cQ(),EH(Z,$),P9=E9=null,G=jU;var W=kK($.containerInfo),w=G.focusedElem,_=G.selectionRange;if(W!==w&&w&&w.ownerDocument&&vK(w.ownerDocument.documentElement,w)){if(_!==null&&H3(w)){var{start:V,end:k}=_;if(k===void 0&&(k=V),"selectionStart"in w)w.selectionStart=V,w.selectionEnd=Math.min(k,w.value.length);else{var b=w.ownerDocument||document,D=b&&b.defaultView||window;if(D.getSelection){var y=D.getSelection(),t=w.textContent.length,Z0=Math.min(_.start,t),F1=_.end===void 0?Z0:Math.min(_.end,t);!y.extend&&Z0>F1&&(W=F1,F1=Z0,Z0=W);var l0=SK(w,Z0),O=SK(w,F1);if(l0&&O&&(y.rangeCount!==1||y.anchorNode!==l0.node||y.anchorOffset!==l0.offset||y.focusNode!==O.node||y.focusOffset!==O.offset)){var j=b.createRange();j.setStart(l0.node,l0.offset),y.removeAllRanges(),Z0>F1?(y.addRange(j),y.extend(O.node,O.offset)):(j.setEnd(O.node,O.offset),y.addRange(j))}}}}b=[];for(y=w;y=y.parentNode;)y.nodeType===1&&b.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof w.focus==="function"&&w.focus();for(w=0;w<b.length;w++){var v=b[w];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}yJ=!!DU,jU=DU=null}finally{o0=B,Z1.p=N,x.T=X}}$.current=Z,d1=Zw}}function sH(){if(d1===Zw){d1=s6;var $=Xw;if($!==null){y6=g1();var Z=x8,G=y6;!w1||G<=Z||(d8?d8.run(console.timeStamp.bind(console,$,Z,G,u0,g0,"secondary-light")):console.timeStamp($,Z,G,u0,g0,"secondary-light"))}$=n6,Z=I9,G=b4;var X=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||X){X=x.T,x.T=null;var N=Z1.p;Z1.p=e5;var B=o0;o0|=G4;try{E9=G,P9=$,cQ(),TH($,Z.alternate,Z),P9=E9=null}finally{o0=B,Z1.p=N,x.T=X}}$=RU,Z=qw,x8=g1(),$=Z===null?$:y6,Z=x8,G=f4===FU,X=S1,u8!==null?hK($,Z,u8,!1,X):!w1||Z<=$||(X?X.run(console.timeStamp.bind(console,G?"Commit Interrupted View Transition":"Commit",$,Z,u0,g0,G?"error":"secondary-dark")):console.timeStamp(G?"Commit Interrupted View Transition":"Commit",$,Z,u0,g0,G?"error":"secondary-dark")),d1=Qw}}function nH(){if(d1===Gw||d1===Qw){if(d1===Gw){var $=x8;x8=g1();var Z=x8,G=f4===FU;!w1||Z<=$||(d8?d8.run(console.timeStamp.bind(console,G?"Interrupted View Transition":"Starting Animation",$,Z,u0,g0,G?"error":"secondary-light")):console.timeStamp(G?"Interrupted View Transition":"Starting Animation",$,Z,u0,g0,G?" error":"secondary-light")),f4!==FU&&(f4=eW)}d1=s6,OV(),$=n6;var X=I9;Z=b4,G=Jw;var N=X.actualDuration!==0||(X.subtreeFlags&10256)!==0||(X.flags&10256)!==0;N?d1=LJ:(d1=s6,I9=n6=null,oH($,$.pendingLanes),G$=0,IZ=null);var B=$.pendingLanes;if(B===0&&(r6=null),N||$M($),B=E(Z),X=X.stateNode,H5&&typeof H5.onCommitFiberRoot==="function")try{var W=(X.current.flags&128)===128;switch(B){case e5:var w=TY;break;case j4:w=zY;break;case N8:w=i$;break;case xG:w=_Y;break;default:w=i$}H5.onCommitFiberRoot(t$,X,w,W)}catch(b){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",b))}if(U8&&$.memoizedUpdaters.clear(),CL(),G!==null){W=x.T,w=Z1.p,Z1.p=e5,x.T=null;try{var _=$.onRecoverableError;for(X=0;X<G.length;X++){var V=G[X],k=AL(V.stack);G0(V.source,_,V.value,k)}}finally{x.T=W,Z1.p=w}}(b4&3)!==0&&A7(),Q8($),B=$.pendingLanes,(Z&261930)!==0&&(B&42)!==0?(GJ=!0,$===zU?CZ++:(CZ=0,zU=$)):CZ=0,N||u2(Z,x8),v7(0,!1)}}function AL($){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 oH($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,F7(Z)))}function A7(){return rH(),sH(),nH(),aH()}function aH(){if(d1!==LJ)return!1;var $=n6,Z=wU;wU=0;var G=E(b4),X=N8===0||N8>G?N8:G;G=x.T;var N=Z1.p;try{Z1.p=X,x.T=null;var B=TU;TU=null,X=n6;var W=b4;if(d1=s6,I9=n6=null,b4=0,(o0&(r1|G4))!==t1)throw Error("Cannot flush passive effects while already rendering.");c5(W),_U=!0,VJ=!1;var w=0;if(u8=null,w=o1(),f4===eW)H7(x8,w,d8);else{var _=x8,V=w,k=f4===WU;!w1||V<=_||(S1?S1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",_,V,u0,g0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",_,V,u0,g0,"secondary-light"))}_=o0,o0|=G4;var b=X.current;cQ(),SH(b);var D=X.current;b=RU,cQ(),OH(X,D,W,B,b),$M(X),o0=_;var y=o1();if(D=w,b=S1,u8!==null?hK(D,y,u8,!0,b):!w1||y<=D||(b?b.run(console.timeStamp.bind(console,"Remaining Effects",D,y,u0,g0,"secondary-dark")):console.timeStamp("Remaining Effects",D,y,u0,g0,"secondary-dark")),u2(W,y),v7(0,!1),VJ?X===IZ?G$++:(G$=0,IZ=X):G$=0,VJ=_U=!1,H5&&typeof H5.onPostCommitFiberRoot==="function")try{H5.onPostCommitFiberRoot(t$,X)}catch(Z0){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",Z0))}var t=X.current.stateNode;return t.effectDuration=0,t.passiveEffectDuration=0,!0}finally{Z1.p=N,x.T=G,oH($,Z)}}function iH($,Z,G){Z=l5(G,Z),eK(Z),Z=HX($.stateNode,Z,2),$=_6($,Z,2),$!==null&&(H6($,2),Q8($))}function $1($,Z,G){if(O9=!1,$.tag===3)iH($,$,G);else{for(;Z!==null;){if(Z.tag===3){iH(Z,$,G);return}if(Z.tag===1){var X=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof X.componentDidCatch==="function"&&(r6===null||!r6.has(X))){$=l5(G,$),eK($),G=MX(2),X=_6(Z,G,2),X!==null&&(FX(G,X,Z,$),H6(X,2),Q8(X));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.
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+Y,G0(Z,function(R,P){console.error("%s must not return anything besides a function, which is used for clean-up.%s",R,P)},K,w)}J=J.next}while(J!==U)}}catch(R){J1(Z,Z.return,R)}}function G7($,Z,J){try{var Y=Z.updateQueue,U=Y!==null?Y.lastEffect:null;if(U!==null){var K=U.next;Y=K;do{if((Y.tag&$)===$){var w=Y.inst,R=w.destroy;R!==void 0&&(w.destroy=void 0,($&v5)!==vG&&(l7=!0),U=Z,G0(U,mV,U,J,R),($&v5)!==vG&&(l7=!1))}Y=Y.next}while(Y!==K)}}catch(P){J1(Z,Z.return,P)}}function xH($,Z){M4($)?(H4(),m$(Z,$),K4()):m$(Z,$)}function dX($,Z,J){M4($)?(H4(),G7(J,$,Z),K4()):G7(J,$,Z)}function mH($){var Z=$.updateQueue;if(Z!==null){var J=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||x7||(J.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"),J.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{G0($,pK,Z,J)}catch(Y){J1($,$.return,Y)}}}function TL($,Z,J){return $.getSnapshotBeforeUpdate(Z,J)}function zL($,Z){var{memoizedProps:J,memoizedState:Y}=Z;Z=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||x7||(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=$9($.type,J),K=G0($,TL,Z,U,Y);J=LW,K!==void 0||J.has($.type)||(J.add($.type),G0($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",d($))})),Z.__reactInternalSnapshotBeforeUpdate=K}catch(w){J1($,$.return,w)}}function dH($,Z,J){J.props=$9($.type,$.memoizedProps),J.state=$.memoizedState,M4($)?(H4(),G0($,mw,$,Z,J),K4()):G0($,mw,$,Z,J)}function PL($){var Z=$.ref;if(Z!==null){switch($.tag){case 26:case 27:case 5:var J=$.stateNode;break;case 30:J=$.stateNode;break;default:J=$.stateNode}if(typeof Z==="function")if(M4($))try{H4(),$.refCleanup=Z(J)}finally{K4()}else $.refCleanup=Z(J);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=J}}function d$($,Z){try{G0($,PL,$)}catch(J){J1($,Z,J)}}function F4($,Z){var{ref:J,refCleanup:Y}=$;if(J!==null)if(typeof Y==="function")try{if(M4($))try{H4(),G0($,Y)}finally{K4($)}else G0($,Y)}catch(U){J1($,Z,U)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof J==="function")try{if(M4($))try{H4(),G0($,J,null)}finally{K4($)}else G0($,J,null)}catch(U){J1($,Z,U)}else J.current=null}function pH($,Z,J,Y){var U=$.memoizedProps,K=U.id,w=U.onCommit;U=U.onRender,Z=Z===null?"mount":"update",OG&&(Z="nested-update"),typeof U==="function"&&U(K,Z,$.actualDuration,$.treeBaseDuration,$.actualStartTime,J),typeof w==="function"&&w(K,Z,Y,J)}function CL($,Z,J,Y){var U=$.memoizedProps;$=U.id,U=U.onPostCommit,Z=Z===null?"mount":"update",OG&&(Z="nested-update"),typeof U==="function"&&U($,Z,Y,J)}function cH($){var{type:Z,memoizedProps:J,stateNode:Y}=$;try{G0($,lL,Y,Z,J,$)}catch(U){J1($,$.return,U)}}function pX($,Z,J){try{G0($,sL,$.stateNode,$.type,J,Z,$)}catch(Y){J1($,$.return,Y)}}function lH($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&d8($.type)||$.tag===4}function cX($){$:for(;;){for(;$.sibling===null;){if($.return===null||lH($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&d8($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function lX($,Z,J){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?(tM(J),(J.nodeType===9?J.body:J.nodeName==="HTML"?J.ownerDocument.body:J).insertBefore($,Z)):(tM(J),Z=J.nodeType===9?J.body:J.nodeName==="HTML"?J.ownerDocument.body:J,Z.appendChild($),J=J._reactRootContainer,J!==null&&J!==void 0||Z.onclick!==null||(Z.onclick=m4));else if(Y!==4&&(Y===27&&d8($.type)&&(J=$.stateNode,Z=null),$=$.child,$!==null))for(lX($,Z,J),$=$.sibling;$!==null;)lX($,Z,J),$=$.sibling}function xJ($,Z,J){var Y=$.tag;if(Y===5||Y===6)$=$.stateNode,Z?J.insertBefore($,Z):J.appendChild($);else if(Y!==4&&(Y===27&&d8($.type)&&(J=$.stateNode),$=$.child,$!==null))for(xJ($,Z,J),$=$.sibling;$!==null;)xJ($,Z,J),$=$.sibling}function LL($){for(var Z,J=$.return;J!==null;){if(lH(J)){Z=J;break}J=J.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,J=cX($),xJ($,J,Z);break;case 5:J=Z.stateNode,Z.flags&32&&(iM(J),Z.flags&=-33),Z=cX($),xJ($,Z,J);break;case 3:case 4:Z=Z.stateNode.containerInfo,J=cX($),lX($,J,Z);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function rH($){var{stateNode:Z,memoizedProps:J}=$;try{G0($,U_,$.type,J,Z,$)}catch(Y){J1($,$.return,Y)}}function sH($,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 _L($,Z){if($=$.containerInfo,cN=X3,$=UK($),Aq($)){if("selectionStart"in $)var J={start:$.selectionStart,end:$.selectionEnd};else $:{J=(J=$.ownerDocument)&&J.defaultView||window;var Y=J.getSelection&&J.getSelection();if(Y&&Y.rangeCount!==0){J=Y.anchorNode;var{anchorOffset:U,focusNode:K}=Y;Y=Y.focusOffset;try{J.nodeType,K.nodeType}catch(t){J=null;break $}var w=0,R=-1,P=-1,L=0,k=0,f=$,S=null;Z:for(;;){for(var g;;){if(f!==J||U!==0&&f.nodeType!==3||(R=w+U),f!==K||Y!==0&&f.nodeType!==3||(P=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===J&&++L===U&&(R=w),S===K&&++k===Y&&(P=w),(g=f.nextSibling)!==null)break;f=S,S=f.parentNode}f=g}J=R===-1||P===-1?null:{start:R,end:P}}else J=null}J=J||{start:0,end:0}}else J=null;lN={focusedElem:$,selectionRange:J},X3=!1;for(X5=Z;X5!==null;)if(Z=X5,$=Z.child,(Z.subtreeFlags&1028)!==0&&$!==null)$.return=Z,X5=$;else for(;X5!==null;){switch($=Z=X5,J=$.alternate,U=$.flags,$.tag){case 0:if((U&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(J=0;J<$.length;J++)U=$[J],U.ref.impl=U.nextImpl;break;case 11:case 15:break;case 1:(U&1024)!==0&&J!==null&&zL($,J);break;case 3:if((U&1024)!==0){if($=$.stateNode.containerInfo,J=$.nodeType,J===9)KY($);else if(J===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":KY($);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,X5=$;break}X5=Z.return}}function nH($,Z,J){var Y=J6(),U=Y4(),K=U4(),w=B4(),R=J.flags;switch(J.tag){case 0:case 11:case 15:w4($,J),R&4&&uH(J,M6|j6);break;case 1:if(w4($,J),R&4)if($=J.stateNode,Z===null)J.type.defaultProps||"ref"in J.memoizedProps||x7||($.props!==J.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(J)||"instance"),$.state!==J.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(J)||"instance")),M4(J)?(H4(),G0(J,HN,J,$),K4()):G0(J,HN,J,$);else{var P=$9(J.type,Z.memoizedProps);Z=Z.memoizedState,J.type.defaultProps||"ref"in J.memoizedProps||x7||($.props!==J.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(J)||"instance"),$.state!==J.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(J)||"instance")),M4(J)?(H4(),G0(J,hw,J,$,P,Z,$.__reactInternalSnapshotBeforeUpdate),K4()):G0(J,hw,J,$,P,Z,$.__reactInternalSnapshotBeforeUpdate)}R&64&&mH(J),R&512&&d$(J,J.return);break;case 3:if(Z=l4(),w4($,J),R&64&&(R=J.updateQueue,R!==null)){if(P=null,J.child!==null)switch(J.child.tag){case 27:case 5:P=J.child.stateNode;break;case 1:P=J.child.stateNode}try{G0(J,pK,R,P)}catch(k){J1(J,J.return,k)}}$.effectDuration+=MJ(Z);break;case 27:Z===null&&R&4&&rH(J);case 26:case 5:if(w4($,J),Z===null){if(R&4)cH(J);else if(R&64){$=J.type,Z=J.memoizedProps,P=J.stateNode;try{G0(J,rL,P,$,Z,J)}catch(k){J1(J,J.return,k)}}}R&512&&d$(J,J.return);break;case 12:if(R&4){R=l4(),w4($,J),$=J.stateNode,$.effectDuration+=D$(R);try{G0(J,pH,J,Z,t8,$.effectDuration)}catch(k){J1(J,J.return,k)}}else w4($,J);break;case 31:w4($,J),R&4&&iH($,J);break;case 13:w4($,J),R&4&&tH($,J),R&64&&($=J.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(R=vL.bind(null,J),q_($,R))));break;case 22:if(R=J.memoizedState!==null||Y8,!R){Z=Z!==null&&Z.memoizedState!==null||r1,P=Y8;var L=r1;Y8=R,(r1=Z)&&!L?(W4($,J,(J.subtreeFlags&8772)!==0),(J.mode&k0)!==_0&&0<=T0&&0<=C0&&0.05<C0-T0&&JJ(J,T0,C0)):w4($,J),Y8=P,r1=L}break;case 30:break;default:w4($,J)}(J.mode&k0)!==_0&&0<=T0&&0<=C0&&((j1||0.05<O1)&&q4(J,T0,C0,O1,I1),J.alternate===null&&J.return!==null&&J.return.alternate!==null&&0.05<C0-T0&&(sH(J.return.alternate,J.return)||G4(J,T0,C0,"Mount"))),G6(Y),N4(U),I1=K,j1=w}function oH($){var Z=$.alternate;Z!==null&&($.alternate=null,oH(Z)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(Z=$.stateNode,Z!==null&&$0(Z)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function n4($,Z,J){for(J=J.child;J!==null;)aH($,Z,J),J=J.sibling}function aH($,Z,J){if(C5&&typeof C5.onCommitFiberUnmount==="function")try{C5.onCommitFiberUnmount(W7,J)}catch(L){L4||(L4=!0,console.error("React instrumentation encountered an error: %o",L))}var Y=J6(),U=Y4(),K=U4(),w=B4();switch(J.tag){case 26:r1||F4(J,Z),n4($,Z,J),J.memoizedState?J.memoizedState.count--:J.stateNode&&($=J.stateNode,$.parentNode.removeChild($));break;case 27:r1||F4(J,Z);var R=s1,P=x5;d8(J.type)&&(s1=J.stateNode,x5=!1),n4($,Z,J),G0(J,i$,J.stateNode),s1=R,x5=P;break;case 5:r1||F4(J,Z);case 6:if(R=s1,P=x5,s1=null,n4($,Z,J),s1=R,x5=P,s1!==null)if(x5)try{G0(J,aL,s1,J.stateNode)}catch(L){J1(J,Z,L)}else try{G0(J,oL,s1,J.stateNode)}catch(L){J1(J,Z,L)}break;case 18:s1!==null&&(x5?($=s1,eM($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,J.stateNode),H7($)):eM(s1,J.stateNode));break;case 4:R=s1,P=x5,s1=J.stateNode.containerInfo,x5=!0,n4($,Z,J),s1=R,x5=P;break;case 0:case 11:case 14:case 15:G7(v5,J,Z),r1||mX(J,Z,M6),n4($,Z,J);break;case 1:r1||(F4(J,Z),R=J.stateNode,typeof R.componentWillUnmount==="function"&&dH(J,Z,R)),n4($,Z,J);break;case 21:n4($,Z,J);break;case 22:r1=(R=r1)||J.memoizedState!==null,n4($,Z,J),r1=R;break;default:n4($,Z,J)}(J.mode&k0)!==_0&&0<=T0&&0<=C0&&(j1||0.05<O1)&&q4(J,T0,C0,O1,I1),G6(Y),N4(U),I1=K,j1=w}function iH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{G0(Z,Y_,$)}catch(J){J1(Z,Z.return,J)}}}function tH($,Z){if(Z.memoizedState===null&&($=Z.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{G0(Z,N_,$)}catch(J){J1(Z,Z.return,J)}}function VL($){switch($.tag){case 31:case 13:case 19:var Z=$.stateNode;return Z===null&&(Z=$.stateNode=new _W),Z;case 22:return $=$.stateNode,Z=$._retryCache,Z===null&&(Z=$._retryCache=new _W),Z;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function mJ($,Z){var J=VL($);Z.forEach(function(Y){if(!J.has(Y)){if(J.add(Y),_4)if(m7!==null&&d7!==null)r$(d7,m7);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var U=bL.bind(null,$,Y);Y.then(U,U)}})}function h5($,Z){var J=Z.deletions;if(J!==null)for(var Y=0;Y<J.length;Y++){var U=$,K=Z,w=J[Y],R=J6(),P=K;$:for(;P!==null;){switch(P.tag){case 27:if(d8(P.type)){s1=P.stateNode,x5=!1;break $}break;case 5:s1=P.stateNode,x5=!1;break $;case 3:case 4:s1=P.stateNode.containerInfo,x5=!0;break $}P=P.return}if(s1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");aH(U,K,w),s1=null,x5=!1,(w.mode&k0)!==_0&&0<=T0&&0<=C0&&0.05<C0-T0&&G4(w,T0,C0,"Unmount"),G6(R),U=w,K=U.alternate,K!==null&&(K.return=null),U.return=null}if(Z.subtreeFlags&13886)for(Z=Z.child;Z!==null;)eH(Z,$),Z=Z.sibling}function eH($,Z){var J=J6(),Y=Y4(),U=U4(),K=B4(),w=$.alternate,R=$.flags;switch($.tag){case 0:case 11:case 14:case 15:h5(Z,$),u5($),R&4&&(G7(v5|j6,$,$.return),m$(v5|j6,$),mX($,$.return,M6|j6));break;case 1:if(h5(Z,$),u5($),R&512&&(r1||w===null||F4(w,w.return)),R&64&&Y8&&(R=$.updateQueue,R!==null&&(w=R.callbacks,w!==null))){var P=R.shared.hiddenCallbacks;R.shared.hiddenCallbacks=P===null?w:P.concat(w)}break;case 26:if(P=i6,h5(Z,$),u5($),R&512&&(r1||w===null||F4(w,w.return)),R&4){var L=w!==null?w.memoizedState:null;if(R=$.memoizedState,w===null)if(R===null)if($.stateNode===null){$:{R=$.type,w=$.memoizedProps,P=P.ownerDocument||P;Z:switch(R){case"title":if(L=P.getElementsByTagName("title")[0],!L||L[GZ]||L[H5]||L.namespaceURI===T7||L.hasAttribute("itemprop"))L=P.createElement(R),P.head.insertBefore(L,P.querySelector("head > title"));K5(L,R,w),L[H5]=$,R0(L),R=L;break $;case"link":var k=BF("link","href",P).get(R+(w.href||""));if(k){for(var f=0;f<k.length;f++)if(L=k[f],L.getAttribute("href")===(w.href==null||w.href===""?null:w.href)&&L.getAttribute("rel")===(w.rel==null?null:w.rel)&&L.getAttribute("title")===(w.title==null?null:w.title)&&L.getAttribute("crossorigin")===(w.crossOrigin==null?null:w.crossOrigin)){k.splice(f,1);break Z}}L=P.createElement(R),K5(L,R,w),P.head.appendChild(L);break;case"meta":if(k=BF("meta","content",P).get(R+(w.content||""))){for(f=0;f<k.length;f++)if(L=k[f],B1(w.content,"content"),L.getAttribute("content")===(w.content==null?null:""+w.content)&&L.getAttribute("name")===(w.name==null?null:w.name)&&L.getAttribute("property")===(w.property==null?null:w.property)&&L.getAttribute("http-equiv")===(w.httpEquiv==null?null:w.httpEquiv)&&L.getAttribute("charset")===(w.charSet==null?null:w.charSet)){k.splice(f,1);break Z}}L=P.createElement(R),K5(L,R,w),P.head.appendChild(L);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+R+'". This is a bug in React.')}L[H5]=$,R0(L),R=L}$.stateNode=R}else KF(P,$.type,$.stateNode);else $.stateNode=UF(P,R,$.memoizedProps);else L!==R?(L===null?w.stateNode!==null&&(w=w.stateNode,w.parentNode.removeChild(w)):L.count--,R===null?KF(P,$.type,$.stateNode):UF(P,R,$.memoizedProps)):R===null&&$.stateNode!==null&&pX($,$.memoizedProps,w.memoizedProps)}break;case 27:h5(Z,$),u5($),R&512&&(r1||w===null||F4(w,w.return)),w!==null&&R&4&&pX($,$.memoizedProps,w.memoizedProps);break;case 5:if(h5(Z,$),u5($),R&512&&(r1||w===null||F4(w,w.return)),$.flags&32){P=$.stateNode;try{G0($,iM,P)}catch(J0){J1($,$.return,J0)}}R&4&&$.stateNode!=null&&(P=$.memoizedProps,pX($,P,w!==null?w.memoizedProps:P)),R&1024&&(IN=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(h5(Z,$),u5($),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,P=$.stateNode;try{G0($,nL,P,w,R)}catch(J0){J1($,$.return,J0)}}break;case 3:if(P=l4(),J3=null,L=i6,i6=oJ(Z.containerInfo),h5(Z,$),i6=L,u5($),R&4&&w!==null&&w.memoizedState.isDehydrated)try{G0($,X_,Z.containerInfo)}catch(J0){J1($,$.return,J0)}IN&&(IN=!1,$M($)),Z.effectDuration+=MJ(P);break;case 4:R=i6,i6=oJ($.stateNode.containerInfo),h5(Z,$),u5($),i6=R;break;case 12:R=l4(),h5(Z,$),u5($),$.stateNode.effectDuration+=D$(R);break;case 31:h5(Z,$),u5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,mJ($,R)));break;case 13:h5(Z,$),u5($),$.child.flags&8192&&$.memoizedState!==null!==(w!==null&&w.memoizedState!==null)&&(dG=G5()),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,mJ($,R)));break;case 22:P=$.memoizedState!==null;var S=w!==null&&w.memoizedState!==null,g=Y8,t=r1;if(Y8=g||P,r1=t||S,h5(Z,$),r1=t,Y8=g,S&&!P&&!g&&!t&&($.mode&k0)!==_0&&0<=T0&&0<=C0&&0.05<C0-T0&&JJ($,T0,C0),u5($),R&8192)$:for(Z=$.stateNode,Z._visibility=P?Z._visibility&~MZ:Z._visibility|MZ,!P||w===null||S||Y8||r1||(Z9($),($.mode&k0)!==_0&&0<=T0&&0<=C0&&0.05<C0-T0&&G4($,T0,C0,"Disconnect")),w=null,Z=$;;){if(Z.tag===5||Z.tag===26){if(w===null){S=w=Z;try{L=S.stateNode,P?G0(S,tL,L):G0(S,Z_,S.stateNode,S.memoizedProps)}catch(J0){J1(S,S.return,J0)}}}else if(Z.tag===6){if(w===null){S=Z;try{k=S.stateNode,P?G0(S,eL,k):G0(S,Q_,k,S.memoizedProps)}catch(J0){J1(S,S.return,J0)}}}else if(Z.tag===18){if(w===null){S=Z;try{f=S.stateNode,P?G0(S,iL,f):G0(S,$_,S.stateNode)}catch(J0){J1(S,S.return,J0)}}}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,mJ($,w))));break;case 19:h5(Z,$),u5($),R&4&&(R=$.updateQueue,R!==null&&($.updateQueue=null,mJ($,R)));break;case 30:break;case 21:break;default:h5(Z,$),u5($)}($.mode&k0)!==_0&&0<=T0&&0<=C0&&((j1||0.05<O1)&&q4($,T0,C0,O1,I1),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<C0-T0&&(sH($.return.alternate,$.return)||G4($,T0,C0,"Mount"))),G6(J),N4(Y),I1=U,j1=K}function u5($){var Z=$.flags;if(Z&2){try{G0($,LL,$)}catch(J){J1($,$.return,J)}$.flags&=-3}Z&4096&&($.flags&=-4097)}function $M($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var Z=$;$M(Z),Z.tag===5&&Z.flags&1024&&Z.stateNode.reset(),$=$.sibling}}function w4($,Z){if(Z.subtreeFlags&8772)for(Z=Z.child;Z!==null;)nH($,Z.alternate,Z),Z=Z.sibling}function ZM($){var Z=J6(),J=Y4(),Y=U4(),U=B4();switch($.tag){case 0:case 11:case 14:case 15:mX($,$.return,M6),Z9($);break;case 1:F4($,$.return);var K=$.stateNode;typeof K.componentWillUnmount==="function"&&dH($,$.return,K),Z9($);break;case 27:G0($,i$,$.stateNode);case 26:case 5:F4($,$.return),Z9($);break;case 22:$.memoizedState===null&&Z9($);break;case 30:Z9($);break;default:Z9($)}($.mode&k0)!==_0&&0<=T0&&0<=C0&&(j1||0.05<O1)&&q4($,T0,C0,O1,I1),G6(Z),N4(J),I1=Y,j1=U}function Z9($){for($=$.child;$!==null;)ZM($),$=$.sibling}function QM($,Z,J,Y){var U=J6(),K=Y4(),w=U4(),R=B4(),P=J.flags;switch(J.tag){case 0:case 11:case 15:W4($,J,Y),uH(J,M6);break;case 1:if(W4($,J,Y),Z=J.stateNode,typeof Z.componentDidMount==="function"&&G0(J,HN,J,Z),Z=J.updateQueue,Z!==null){$=J.stateNode;try{G0(J,XL,Z,$)}catch(L){J1(J,J.return,L)}}Y&&P&64&&mH(J),d$(J,J.return);break;case 27:rH(J);case 26:case 5:W4($,J,Y),Y&&Z===null&&P&4&&cH(J),d$(J,J.return);break;case 12:if(Y&&P&4){P=l4(),W4($,J,Y),Y=J.stateNode,Y.effectDuration+=D$(P);try{G0(J,pH,J,Z,t8,Y.effectDuration)}catch(L){J1(J,J.return,L)}}else W4($,J,Y);break;case 31:W4($,J,Y),Y&&P&4&&iH($,J);break;case 13:W4($,J,Y),Y&&P&4&&tH($,J);break;case 22:J.memoizedState===null&&W4($,J,Y),d$(J,J.return);break;case 30:break;default:W4($,J,Y)}(J.mode&k0)!==_0&&0<=T0&&0<=C0&&(j1||0.05<O1)&&q4(J,T0,C0,O1,I1),G6(U),N4(K),I1=w,j1=R}function W4($,Z,J){J=J&&(Z.subtreeFlags&8772)!==0;for(Z=Z.child;Z!==null;)QM($,Z.alternate,Z,J),Z=Z.sibling}function rX($,Z){var J=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(J=$.memoizedState.cachePool.pool),$=null,Z.memoizedState!==null&&Z.memoizedState.cachePool!==null&&($=Z.memoizedState.cachePool.pool),$!==J&&($!=null&&a2($),J!=null&&S$(J))}function sX($,Z){$=null,Z.alternate!==null&&($=Z.alternate.memoizedState.cache),Z=Z.memoizedState.cache,Z!==$&&(a2(Z),$!=null&&S$($))}function l6($,Z,J,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(Z=Z.child;Z!==null;){var K=Z.sibling;JM($,Z,J,Y,K!==null?K.actualStartTime:U),Z=K}}function JM($,Z,J,Y,U){var K=J6(),w=Y4(),R=U4(),P=B4(),L=n8,k=Z.flags;switch(Z.tag){case 0:case 11:case 15:(Z.mode&k0)!==_0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&GJ(Z,Z.actualStartTime,U,t1,J),l6($,Z,J,Y,U),k&2048&&xH(Z,b5|j6);break;case 1:(Z.mode&k0)!==_0&&0<Z.actualStartTime&&((Z.flags&128)!==0?Dq(Z,Z.actualStartTime,U,[]):(Z.flags&1)!==0&&GJ(Z,Z.actualStartTime,U,t1,J)),l6($,Z,J,Y,U);break;case 3:var f=l4(),S=t1;t1=Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)===0,l6($,Z,J,Y,U),t1=S,k&2048&&(J=null,Z.alternate!==null&&(J=Z.alternate.memoizedState.cache),Y=Z.memoizedState.cache,Y!==J&&(a2(Y),J!=null&&S$(J))),$.passiveEffectDuration+=MJ(f);break;case 12:if(k&2048){k=l4(),l6($,Z,J,Y,U),$=Z.stateNode,$.passiveEffectDuration+=D$(k);try{G0(Z,CL,Z,Z.alternate,t8,$.passiveEffectDuration)}catch(g){J1(Z,Z.return,g)}}else l6($,Z,J,Y,U);break;case 31:k=t1,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?(t1=!1,f=f.hydrationErrors,f!==null&&Dq(Z,Z.actualStartTime,U,f)):t1=!0):t1=!1,l6($,Z,J,Y,U),t1=k;break;case 13:k=t1,f=Z.alternate!==null?Z.alternate.memoizedState:null,S=Z.memoizedState,f===null||f.dehydrated===null||S!==null&&S.dehydrated!==null?t1=!1:(S=Z.deletions,S!==null&&0<S.length&&S[0].tag===18?(t1=!1,f=f.hydrationErrors,f!==null&&Dq(Z,Z.actualStartTime,U,f)):t1=!0),l6($,Z,J,Y,U),t1=k;break;case 23:break;case 22:S=Z.stateNode,f=Z.alternate,Z.memoizedState!==null?S._visibility&i4?l6($,Z,J,Y,U):p$($,Z,J,Y,U):S._visibility&i4?l6($,Z,J,Y,U):(S._visibility|=i4,q7($,Z,J,Y,(Z.subtreeFlags&10256)!==0||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child),U),(Z.mode&k0)===_0||t1||($=Z.actualStartTime,0<=$&&0.05<U-$&&JJ(Z,$,U),0<=T0&&0<=C0&&0.05<C0-T0&&JJ(Z,T0,C0))),k&2048&&rX(f,Z);break;case 24:l6($,Z,J,Y,U),k&2048&&sX(Z.alternate,Z);break;default:l6($,Z,J,Y,U)}if((Z.mode&k0)!==_0){if($=!t1&&Z.alternate===null&&Z.return!==null&&Z.return.alternate!==null)J=Z.actualStartTime,0<=J&&0.05<U-J&&G4(Z,J,U,"Mount");0<=T0&&0<=C0&&((j1||0.05<O1)&&q4(Z,T0,C0,O1,I1),$&&0.05<C0-T0&&G4(Z,T0,C0,"Mount"))}G6(K),N4(w),I1=R,j1=P,n8=L}function q7($,Z,J,Y,U,K){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;GM($,Z,J,Y,U,w!==null?w.actualStartTime:K),Z=w}}function GM($,Z,J,Y,U,K){var w=J6(),R=Y4(),P=U4(),L=B4(),k=n8;U&&(Z.mode&k0)!==_0&&0<Z.actualStartTime&&(Z.flags&1)!==0&&GJ(Z,Z.actualStartTime,K,t1,J);var f=Z.flags;switch(Z.tag){case 0:case 11:case 15:q7($,Z,J,Y,U,K),xH(Z,b5);break;case 23:break;case 22:var S=Z.stateNode;Z.memoizedState!==null?S._visibility&i4?q7($,Z,J,Y,U,K):p$($,Z,J,Y,K):(S._visibility|=i4,q7($,Z,J,Y,U,K)),U&&f&2048&&rX(Z.alternate,Z);break;case 24:q7($,Z,J,Y,U,K),U&&f&2048&&sX(Z.alternate,Z);break;default:q7($,Z,J,Y,U,K)}(Z.mode&k0)!==_0&&0<=T0&&0<=C0&&(j1||0.05<O1)&&q4(Z,T0,C0,O1,I1),G6(w),N4(R),I1=P,j1=L,n8=k}function p$($,Z,J,Y,U){if(Z.subtreeFlags&10256||Z.actualDuration!==0&&(Z.alternate===null||Z.alternate.child!==Z.child))for(var K=Z.child;K!==null;){Z=K.sibling;var w=$,R=J,P=Y,L=Z!==null?Z.actualStartTime:U,k=n8;(K.mode&k0)!==_0&&0<K.actualStartTime&&(K.flags&1)!==0&&GJ(K,K.actualStartTime,L,t1,R);var f=K.flags;switch(K.tag){case 22:p$(w,K,R,P,L),f&2048&&rX(K.alternate,K);break;case 24:p$(w,K,R,P,L),f&2048&&sX(K.alternate,K);break;default:p$(w,K,R,P,L)}n8=k,K=Z}}function X7($,Z,J){if($.subtreeFlags&bZ)for($=$.child;$!==null;)qM($,Z,J),$=$.sibling}function qM($,Z,J){switch($.tag){case 26:X7($,Z,J),$.flags&bZ&&$.memoizedState!==null&&H_(J,i6,$.memoizedState,$.memoizedProps);break;case 5:X7($,Z,J);break;case 3:case 4:var Y=i6;i6=oJ($.stateNode.containerInfo),X7($,Z,J),i6=Y;break;case 22:$.memoizedState===null&&(Y=$.alternate,Y!==null&&Y.memoizedState!==null?(Y=bZ,bZ=16777216,X7($,Z,J),bZ=Y):X7($,Z,J));break;default:X7($,Z,J)}}function XM($){var Z=$.alternate;if(Z!==null&&($=Z.child,$!==null)){Z.child=null;do Z=$.sibling,$.sibling=null,$=Z;while($!==null)}}function c$($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var J=0;J<Z.length;J++){var Y=Z[J],U=J6();X5=Y,UM(Y,$),(Y.mode&k0)!==_0&&0<=T0&&0<=C0&&0.05<C0-T0&&G4(Y,T0,C0,"Unmount"),G6(U)}XM($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)YM($),$=$.sibling}function YM($){var Z=J6(),J=Y4(),Y=U4(),U=B4();switch($.tag){case 0:case 11:case 15:c$($),$.flags&2048&&dX($,$.return,b5|j6);break;case 3:var K=l4();c$($),$.stateNode.passiveEffectDuration+=MJ(K);break;case 12:K=l4(),c$($),$.stateNode.passiveEffectDuration+=D$(K);break;case 22:K=$.stateNode,$.memoizedState!==null&&K._visibility&i4&&($.return===null||$.return.tag!==13)?(K._visibility&=~i4,dJ($),($.mode&k0)!==_0&&0<=T0&&0<=C0&&0.05<C0-T0&&G4($,T0,C0,"Disconnect")):c$($);break;default:c$($)}($.mode&k0)!==_0&&0<=T0&&0<=C0&&(j1||0.05<O1)&&q4($,T0,C0,O1,I1),G6(Z),N4(J),j1=U,I1=Y}function dJ($){var Z=$.deletions;if(($.flags&16)!==0){if(Z!==null)for(var J=0;J<Z.length;J++){var Y=Z[J],U=J6();X5=Y,UM(Y,$),(Y.mode&k0)!==_0&&0<=T0&&0<=C0&&0.05<C0-T0&&G4(Y,T0,C0,"Unmount"),G6(U)}XM($)}for($=$.child;$!==null;)NM($),$=$.sibling}function NM($){var Z=J6(),J=Y4(),Y=U4(),U=B4();switch($.tag){case 0:case 11:case 15:dX($,$.return,b5),dJ($);break;case 22:var K=$.stateNode;K._visibility&i4&&(K._visibility&=~i4,dJ($));break;default:dJ($)}($.mode&k0)!==_0&&0<=T0&&0<=C0&&(j1||0.05<O1)&&q4($,T0,C0,O1,I1),G6(Z),N4(J),j1=U,I1=Y}function UM($,Z){for(;X5!==null;){var J=X5,Y=J,U=Z,K=J6(),w=Y4(),R=U4(),P=B4();switch(Y.tag){case 0:case 11:case 15:dX(Y,U,b5);break;case 23:case 22:Y.memoizedState!==null&&Y.memoizedState.cachePool!==null&&(U=Y.memoizedState.cachePool.pool,U!=null&&a2(U));break;case 24:S$(Y.memoizedState.cache)}if((Y.mode&k0)!==_0&&0<=T0&&0<=C0&&(j1||0.05<O1)&&q4(Y,T0,C0,O1,I1),G6(K),N4(w),j1=P,I1=R,Y=J.child,Y!==null)Y.return=J,X5=Y;else $:for(J=$;X5!==null;){if(Y=X5,K=Y.sibling,w=Y.return,oH(Y),Y===J){X5=null;break $}if(K!==null){K.return=w,X5=K;break $}X5=w}}}function IL(){rV.forEach(function($){return $()})}function BM(){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 X6($){if((a0&e1)!==Y5&&y0!==0)return y0&-y0;var Z=x.T;return Z!==null?(Z._updatedFibers||(Z._updatedFibers=new Set),Z._updatedFibers.add($),ZY()):y()}function KM(){if(d5===0)if((y0&536870912)===0||r0){var $=YG;YG<<=1,(YG&3932160)===0&&(YG=262144),d5=$}else d5=536870912;return $=H6.current,$!==null&&($.flags|=32),d5}function D1($,Z,J){if(l7&&console.error("useInsertionEffect must not schedule updates."),yN&&(rG=!0),$===F1&&(Y1===W9||Y1===R9)||$.cancelPendingCommit!==null)N7($,0),x8($,y0,d5,!1);if(A8($,J),(a0&e1)!==Y5&&$===F1){if(C4)switch(Z.tag){case 0:case 11:case 15:$=g0&&d(g0)||"Unknown",hW.has($)||(hW.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:gW||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),gW=!0)}}else _4&&T$($,Z,J),fL(Z),$===F1&&((a0&e1)===Y5&&(Y2|=J),E1===G2&&x8($,y0,d5,!1)),R4($)}function HM($,Z,J){if((a0&(e1|F6))!==Y5)throw Error("Should not already be working.");if(y0!==0&&g0!==null){var Y=g0,U=G5();switch(Dw){case yZ:case W9:var K=zZ;z1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Suspended",K,U,_6,void 0,"primary-light")):console.timeStamp("Suspended",K,U,_6,void 0,"primary-light"));break;case R9:K=zZ,z1&&((Y=Y._debugTask)?Y.run(console.timeStamp.bind(console,"Action",K,U,_6,void 0,"primary-light")):console.timeStamp("Action",K,U,_6,void 0,"primary-light"));break;default:z1&&(Y=U-zZ,3>Y||console.timeStamp("Blocked",zZ,U,_6,void 0,5>Y?"primary-light":10>Y?"primary":100>Y?"primary-dark":"error"))}}K=(J=!J&&(Z&127)===0&&(Z&$.expiredLanes)===0||g2($,Z))?EL($,Z):oX($,Z,!0);var w=J;do{if(K===N8){p7&&!J&&x8($,Z,0,!1),Z=Y1,zZ=p1(),Dw=Z;break}else{if(Y=G5(),U=$.current.alternate,w&&!OL(U)){Z6(Z),U=q5,K=Y,!z1||K<=U||(y1?y1.run(console.timeStamp.bind(console,"Teared Render",U,K,c0,d0,"error")):console.timeStamp("Teared Render",U,K,c0,d0,"error")),Q9(Z,Y),K=oX($,Z,!1),w=!1;continue}if(K===w9){if(w=Z,$.errorRecoveryDisabledLanes&w)var R=0;else R=$.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){Z6(Z),jq(q5,Y,Z,y1),Q9(Z,Y),Z=R;$:{Y=$,K=w,w=hZ;var P=Y.current.memoizedState.isDehydrated;if(P&&(N7(Y,R).flags|=256),R=oX(Y,R,!1),R!==w9){if(AN&&!P){Y.errorRecoveryDisabledLanes|=K,Y2|=K,K=G2;break $}Y=k5,k5=w,Y!==null&&(k5===null?k5=Y:k5.push.apply(k5,Y))}K=R}if(w=!1,K!==w9)continue;else Y=G5()}}if(K===fZ){Z6(Z),jq(q5,Y,Z,y1),Q9(Z,Y),N7($,0),x8($,Z,0,!0);break}$:{switch(J=$,K){case N8:case fZ:throw Error("Root did not complete. This is a bug in React.");case G2:if((Z&4194048)!==Z)break;case hG:Z6(Z),HK(q5,Y,Z,y1),Q9(Z,Y),U=Z,(U&127)!==0?_G=Y:(U&4194048)!==0&&(VG=Y),x8(J,Z,d5,!q2);break $;case w9:k5=null;break;case gG:case VW:break;default:throw Error("Unknown root exit status.")}if(x.actQueue!==null)aX(J,U,Z,k5,uZ,mG,d5,Y2,T9,K,null,null,q5,Y);else{if((Z&62914560)===Z&&(w=dG+EW-G5(),10<w)){if(x8(J,Z,d5,!q2),y2(J,0,!0)!==0)break $;t6=Z,J.timeoutHandle=rW(MM.bind(null,J,U,k5,uZ,mG,Z,d5,Y2,T9,q2,K,"Throttled",q5,Y),w);break $}MM(J,U,k5,uZ,mG,Z,d5,Y2,T9,q2,K,null,q5,Y)}}}break}while(1);R4($)}function MM($,Z,J,Y,U,K,w,R,P,L,k,f,S,g){$.timeoutHandle=_9;var t=Z.subtreeFlags,J0=null;if(t&8192||(t&16785408)===16785408){if(J0={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:m4},qM(Z,K,J0),t=(K&62914560)===K?dG-G5():(K&4194048)===K?OW-G5():0,t=M_(J0,t),t!==null){t6=K,$.cancelPendingCommit=t(aX.bind(null,$,Z,K,J,Y,U,w,R,P,k,J0,J0.waitingForViewTransition?"Waiting for the previous Animation":0<J0.count?0<J0.imgCount?"Suspended on CSS and Images":"Suspended on CSS":J0.imgCount===1?"Suspended on an Image":0<J0.imgCount?"Suspended on Images":null,S,g)),x8($,K,w,!L);return}}aX($,Z,K,J,Y,U,w,R,P,k,J0,f,S,g)}function OL($){for(var Z=$;;){var J=Z.tag;if((J===0||J===11||J===15)&&Z.flags&16384&&(J=Z.updateQueue,J!==null&&(J=J.stores,J!==null)))for(var Y=0;Y<J.length;Y++){var U=J[Y],K=U.getSnapshot;U=U.value;try{if(!D5(K(),U))return!1}catch(w){return!1}}if(J=Z.child,Z.subtreeFlags&16384&&J!==null)J.return=Z,Z=J;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 x8($,Z,J,Y){Z&=~SN,Z&=~Y2,$.suspendedLanes|=Z,$.pingedLanes&=~Z,Y&&($.warmLanes|=Z),Y=$.expirationTimes;for(var U=Z;0<U;){var K=31-E5(U),w=1<<K;Y[K]=-1,U&=~w}J!==0&&h2($,J,Z)}function Y7(){return(a0&(e1|F6))===Y5?(s$(0,!1),!1):!0}function nX(){if(g0!==null){if(Y1===m5)var $=g0.return;else $=g0,BJ(),qX($),k7=null,AZ=0,$=g0;for(;$!==null;)hH($.alternate,$),$=$.return;g0=null}}function Q9($,Z){($&127)!==0&&(e8=Z),($&4194048)!==0&&(A4=Z),($&62914560)!==0&&(Aw=Z),($&2080374784)!==0&&(Sw=Z)}function N7($,Z){z1&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",d0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",d0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",d0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",d0,"primary-light"));var J=q5;if(q5=p1(),y0!==0&&0<J){if(Z6(y0),E1===gG||E1===G2)HK(J,q5,Z,y1);else{var Y=q5,U=y1;if(z1&&!(Y<=J)){var K=(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,J,Y,c0,d0,K)):console.timeStamp(w,J,Y,c0,d0,K)}}Q9(y0,q5)}if(J=y1,y1=null,(Z&127)!==0){y1=WZ,U=0<=E4&&E4<e8?e8:E4,Y=0<=Y9&&Y9<e8?e8:Y9,K=0<=Y?Y:0<=U?U:q5,0<=_G?(Z6(2),MK(_G,K,Z,J)):(IG&127)!==0&&(Z6(2),E$(e8,K,J8)),J=U;var R=Y,P=RZ,L=0<j7,k=$2===wZ,f=$2===LG;if(U=q5,Y=WZ,K=YN,w=NN,z1){if(c0="Blocking",0<J?J>U&&(J=U):J=U,0<R?R>J&&(R=J):R=J,P!==null&&J>R){var S=L?"secondary-light":"warning";Y?Y.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+P,R,J,c0,d0,S)):console.timeStamp(L?"Consecutive":"Event: "+P,R,J,c0,d0,S)}U>J&&(R=k?"error":(Z&738197653)===Z?"tertiary-light":"primary-light",k=f?"Promise Resolved":k?"Cascading Update":5<U-J?"Update Blocked":"Update",f=[],w!=null&&f.push(["Component name",w]),K!=null&&f.push(["Method name",K]),J={start:J,end:U,detail:{devtools:{properties:f,track:c0,trackGroup:d0,color:R}}},Y?Y.run(performance.measure.bind(performance,k,J)):performance.measure(k,J))}E4=-1.1,$2=0,NN=YN=null,_G=-1.1,j7=Y9,Y9=-1.1,e8=p1()}if((Z&4194048)!==0&&(y1=TZ,U=0<=Q8&&Q8<A4?A4:Q8,J=0<=S6&&S6<A4?A4:S6,Y=0<=Z2&&Z2<A4?A4:Z2,K=0<=Y?Y:0<=J?J:q5,0<=VG?(Z6(256),MK(VG,K,Z,y1)):(IG&4194048)!==0&&(Z6(256),E$(A4,K,J8)),f=Y,R=N9,P=0<Q2,L=UN===LG,K=q5,Y=TZ,w=Ow,k=Ew,z1&&(c0="Transition",0<J?J>K&&(J=K):J=K,0<U?U>J&&(U=J):U=J,0<f?f>U&&(f=U):f=U,U>f&&R!==null&&(S=P?"secondary-light":"warning",Y?Y.run(console.timeStamp.bind(console,P?"Consecutive":"Event: "+R,f,U,c0,d0,S)):console.timeStamp(P?"Consecutive":"Event: "+R,f,U,c0,d0,S)),J>U&&(Y?Y.run(console.timeStamp.bind(console,"Action",U,J,c0,d0,"primary-dark")):console.timeStamp("Action",U,J,c0,d0,"primary-dark")),K>J&&(U=L?"Promise Resolved":5<K-J?"Update Blocked":"Update",f=[],k!=null&&f.push(["Component name",k]),w!=null&&f.push(["Method name",w]),J={start:J,end:K,detail:{devtools:{properties:f,track:c0,trackGroup:d0,color:"primary-light"}}},Y?Y.run(performance.measure.bind(performance,U,J)):performance.measure(U,J))),S6=Q8=-1.1,UN=0,VG=-1.1,Q2=Z2,Z2=-1.1,A4=p1()),(Z&62914560)!==0&&(IG&62914560)!==0&&(Z6(4194304),E$(Aw,q5,J8)),(Z&2080374784)!==0&&(IG&2080374784)!==0&&(Z6(268435456),E$(Sw,q5,J8)),J=$.timeoutHandle,J!==_9&&($.timeoutHandle=_9,qI(J)),J=$.cancelPendingCommit,J!==null&&($.cancelPendingCommit=null,J()),t6=0,nX(),F1=$,g0=J=d4($.current,null),y0=Z,Y1=m5,w6=null,q2=!1,p7=g2($,Z),AN=!1,E1=N8,T9=d5=SN=Y2=X2=0,k5=hZ=null,mG=!1,(Z&8)!==0&&(Z|=Z&32),Y=$.entangledLanes,Y!==0)for($=$.entanglements,Y&=Z;0<Y;)U=31-E5(Y),K=1<<U,Z|=$[U],Y&=~K;return D4=Z,qJ(),$=Pw(),1000<$-zw&&(x.recentlyCreatedOwnerStacks=0,zw=$),o6.discardPendingWarnings(),J}function FM($,Z){V0=null,x.H=vZ,x.getCurrentStack=null,C4=!1,U6=null,Z===b7||Z===SG?(Z=fK(),Y1=yZ):Z===MN?(Z=fK(),Y1=IW):Y1=Z===_N?EN:Z!==null&&typeof Z==="object"&&typeof Z.then==="function"?gZ:uG,w6=Z;var J=g0;J===null?(E1=fZ,fJ($,Q6(Z,$.current))):J.mode&k0&&rq(J)}function wM(){var $=H6.current;return $===null?!0:(y0&4194048)===y0?D6===null?!0:!1:(y0&62914560)===y0||(y0&536870912)!==0?$===D6:!1}function WM(){var $=x.H;return x.H=vZ,$===null?vZ:$}function RM(){var $=x.A;return x.A=lV,$}function pJ($){y1===null&&(y1=$._debugTask==null?null:$._debugTask)}function cJ(){E1=G2,q2||(y0&4194048)!==y0&&H6.current!==null||(p7=!0),(X2&134217727)===0&&(Y2&134217727)===0||F1===null||x8(F1,y0,d5,!1)}function oX($,Z,J){var Y=a0;a0|=e1;var U=WM(),K=RM();if(F1!==$||y0!==Z){if(_4){var w=$.memoizedUpdaters;0<w.size&&(r$($,y0),w.clear()),S8($,Z)}uZ=null,N7($,Z)}Z=!1,w=E1;$:do try{if(Y1!==m5&&g0!==null){var R=g0,P=w6;switch(Y1){case EN:nX(),w=hG;break $;case yZ:case W9:case R9:case gZ:H6.current===null&&(Z=!0);var L=Y1;if(Y1=m5,w6=null,U7($,R,P,L),J&&p7){w=N8;break $}break;default:L=Y1,Y1=m5,w6=null,U7($,R,P,L)}}TM(),w=E1;break}catch(k){FM($,k)}while(1);return Z&&$.shellSuspendCounter++,BJ(),a0=Y,x.H=U,x.A=K,g0===null&&(F1=null,y0=0,qJ()),w}function TM(){for(;g0!==null;)zM(g0)}function EL($,Z){var J=a0;a0|=e1;var Y=WM(),U=RM();if(F1!==$||y0!==Z){if(_4){var K=$.memoizedUpdaters;0<K.size&&(r$($,y0),K.clear()),S8($,Z)}uZ=null,pG=G5()+AW,N7($,Z)}else p7=g2($,Z);$:do try{if(Y1!==m5&&g0!==null)Z:switch(Z=g0,K=w6,Y1){case uG:Y1=m5,w6=null,U7($,Z,K,uG);break;case W9:case R9:if(bK(K)){Y1=m5,w6=null,PM(Z);break}Z=function(){Y1!==W9&&Y1!==R9||F1!==$||(Y1=xG),R4($)},K.then(Z,Z);break $;case yZ:Y1=xG;break $;case IW:Y1=ON;break $;case xG:bK(K)?(Y1=m5,w6=null,PM(Z)):(Y1=m5,w6=null,U7($,Z,K,xG));break;case ON:var w=null;switch(g0.tag){case 26:w=g0.memoizedState;case 5:case 27:var R=g0;if(w?HF(w):R.stateNode.complete){Y1=m5,w6=null;var P=R.sibling;if(P!==null)g0=P;else{var L=R.return;L!==null?(g0=L,lJ(L)):g0=null}break Z}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Y1=m5,w6=null,U7($,Z,K,ON);break;case gZ:Y1=m5,w6=null,U7($,Z,K,gZ);break;case EN:nX(),E1=hG;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}x.actQueue!==null?TM():AL();break}catch(k){FM($,k)}while(1);if(BJ(),x.H=Y,x.A=U,a0=J,g0!==null)return N8;return F1=null,y0=0,qJ(),E1}function AL(){for(;g0!==null&&!O_();)zM(g0)}function zM($){var Z=$.alternate;($.mode&k0)!==_0?(lq($),Z=G0($,uX,Z,$,D4),rq($)):Z=G0($,uX,Z,$,D4),$.memoizedProps=$.pendingProps,Z===null?lJ($):g0=Z}function PM($){var Z=G0($,SL,$);$.memoizedProps=$.pendingProps,Z===null?lJ($):g0=Z}function SL($){var Z=$.alternate,J=($.mode&k0)!==_0;switch(J&&lq($),$.tag){case 15:case 0:Z=jH(Z,$,$.pendingProps,$.type,void 0,y0);break;case 11:Z=jH(Z,$,$.pendingProps,$.type.render,$.ref,y0);break;case 5:qX($);default:hH(Z,$),$=g0=zK($,D4),Z=uX(Z,$,D4)}return J&&rq($),Z}function U7($,Z,J,Y){BJ(),qX(Z),k7=null,AZ=0;var U=Z.return;try{if(ML($,U,Z,J,y0)){E1=fZ,fJ($,Q6(J,$.current)),g0=null;return}}catch(K){if(U!==null)throw g0=U,K;E1=fZ,fJ($,Q6(J,$.current)),g0=null;return}if(Z.flags&32768){if(r0||Y===uG)$=!0;else if(p7||(y0&536870912)!==0)$=!1;else if(q2=$=!0,Y===W9||Y===R9||Y===yZ||Y===gZ)Y=H6.current,Y!==null&&Y.tag===13&&(Y.flags|=16384);CM(Z,$)}else lJ(Z)}function lJ($){var Z=$;do{if((Z.flags&32768)!==0){CM(Z,q2);return}var J=Z.alternate;if($=Z.return,lq(Z),J=G0(Z,WL,J,Z,D4),(Z.mode&k0)!==_0&&AK(Z),J!==null){g0=J;return}if(Z=Z.sibling,Z!==null){g0=Z;return}g0=Z=$}while(Z!==null);E1===N8&&(E1=VW)}function CM($,Z){do{var J=RL($.alternate,$);if(J!==null){J.flags&=32767,g0=J;return}if(($.mode&k0)!==_0){AK($),J=$.actualDuration;for(var Y=$.child;Y!==null;)J+=Y.actualDuration,Y=Y.sibling;$.actualDuration=J}if(J=$.return,J!==null&&(J.flags|=32768,J.subtreeFlags=0,J.deletions=null),!Z&&($=$.sibling,$!==null)){g0=$;return}g0=$=J}while($!==null);E1=hG,g0=null}function aX($,Z,J,Y,U,K,w,R,P,L,k,f,S,g){$.cancelPendingCommit=null;do l$();while(n1!==U2);if(o6.flushLegacyContextWarning(),o6.flushPendingUnsafeLifecycleWarnings(),(a0&(e1|F6))!==Y5)throw Error("Should not already be working.");if(Z6(J),L===w9?jq(S,g,J,y1):Y!==null?$L(S,g,J,Y,Z!==null&&Z.alternate!==null&&Z.alternate.memoizedState.isDehydrated&&(Z.flags&256)!==0,y1):eC(S,g,J,y1),Z!==null){if(J===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(K=Z.lanes|Z.childLanes,K|=QN,nQ($,J,K,w,R,P),$===F1&&(g0=F1=null,y0=0),c7=Z,B2=$,t6=J,vN=K,kN=U,kW=Y,bN=g,fW=f,e6=cG,yW=null,Z.actualDuration!==0||(Z.subtreeFlags&10256)!==0||(Z.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,kL(w7,function(){return lZ=window.event,e6===cG&&(e6=jN),OM(),null})):($.callbackNode=null,$.callbackPriority=0),Z8=null,t8=p1(),f!==null&&ZL(g,t8,f,y1),Y=(Z.flags&13878)!==0,(Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null,U=G1.p,G1.p=B6,w=a0,a0|=F6;try{_L($,Z,J)}finally{a0=w,G1.p=U,x.T=Y}}n1=DW,LM(),_M(),VM()}}function LM(){if(n1===DW){n1=U2;var $=B2,Z=c7,J=t6,Y=(Z.flags&13878)!==0;if((Z.subtreeFlags&13878)!==0||Y){Y=x.T,x.T=null;var U=G1.p;G1.p=B6;var K=a0;a0|=F6;try{m7=J,d7=$,FJ(),eH(Z,$),d7=m7=null,J=lN;var w=UK($.containerInfo),R=J.focusedElem,P=J.selectionRange;if(w!==R&&R&&R.ownerDocument&&NK(R.ownerDocument.documentElement,R)){if(P!==null&&Aq(R)){var{start:L,end:k}=P;if(k===void 0&&(k=L),"selectionStart"in R)R.selectionStart=L,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(),t=R.textContent.length,J0=Math.min(P.start,t),R1=P.end===void 0?J0:Math.min(P.end,t);!g.extend&&J0>R1&&(w=R1,R1=J0,J0=w);var n0=YK(R,J0),E=YK(R,R1);if(n0&&E&&(g.rangeCount!==1||g.anchorNode!==n0.node||g.anchorOffset!==n0.offset||g.focusNode!==E.node||g.focusOffset!==E.offset)){var D=f.createRange();D.setStart(n0.node,n0.offset),g.removeAllRanges(),J0>R1?(g.addRange(D),g.extend(E.node,E.offset)):(D.setEnd(E.node,E.offset),g.addRange(D))}}}}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}}X3=!!cN,lN=cN=null}finally{a0=K,G1.p=U,x.T=Y}}$.current=Z,n1=jW}}function _M(){if(n1===jW){n1=U2;var $=yW;if($!==null){t8=p1();var Z=$8,J=t8;!z1||J<=Z||(J8?J8.run(console.timeStamp.bind(console,$,Z,J,c0,d0,"secondary-light")):console.timeStamp($,Z,J,c0,d0,"secondary-light"))}$=B2,Z=c7,J=t6;var Y=(Z.flags&8772)!==0;if((Z.subtreeFlags&8772)!==0||Y){Y=x.T,x.T=null;var U=G1.p;G1.p=B6;var K=a0;a0|=F6;try{m7=J,d7=$,FJ(),nH($,Z.alternate,Z),d7=m7=null}finally{a0=K,G1.p=U,x.T=Y}}$=bN,Z=fW,$8=p1(),$=Z===null?$:t8,Z=$8,J=e6===DN,Y=y1,Z8!==null?FK($,Z,Z8,!1,Y):!z1||Z<=$||(Y?Y.run(console.timeStamp.bind(console,J?"Commit Interrupted View Transition":"Commit",$,Z,c0,d0,J?"error":"secondary-dark")):console.timeStamp(J?"Commit Interrupted View Transition":"Commit",$,Z,c0,d0,J?"error":"secondary-dark")),n1=vW}}function VM(){if(n1===bW||n1===vW){if(n1===bW){var $=$8;$8=p1();var Z=$8,J=e6===DN;!z1||Z<=$||(J8?J8.run(console.timeStamp.bind(console,J?"Interrupted View Transition":"Starting Animation",$,Z,c0,d0,J?"error":"secondary-light")):console.timeStamp(J?"Interrupted View Transition":"Starting Animation",$,Z,c0,d0,J?" error":"secondary-light")),e6!==DN&&(e6=SW)}n1=U2,E_(),$=B2;var Y=c7;Z=t6,J=kW;var U=Y.actualDuration!==0||(Y.subtreeFlags&10256)!==0||(Y.flags&10256)!==0;U?n1=lG:(n1=U2,c7=B2=null,IM($,$.pendingLanes),z9=0,mZ=null);var K=$.pendingLanes;if(K===0&&(N2=null),U||DM($),K=_(Z),Y=Y.stateNode,C5&&typeof C5.onCommitFiberRoot==="function")try{var w=(Y.current.flags&128)===128;switch(K){case B6:var R=kY;break;case s6:R=fY;break;case V4:R=w7;break;case UG:R=yY;break;default:R=w7}C5.onCommitFiberRoot(W7,Y,R,w)}catch(f){L4||(L4=!0,console.error("React instrumentation encountered an error: %o",f))}if(_4&&$.memoizedUpdaters.clear(),IL(),J!==null){w=x.T,R=G1.p,G1.p=B6,x.T=null;try{var P=$.onRecoverableError;for(Y=0;Y<J.length;Y++){var L=J[Y],k=DL(L.stack);G0(L.source,P,L.value,k)}}finally{x.T=w,G1.p=R}}(t6&3)!==0&&l$(),R4($),K=$.pendingLanes,(Z&261930)!==0&&(K&42)!==0?(EG=!0,$===fN?xZ++:(xZ=0,fN=$)):xZ=0,U||Q9(Z,$8),s$(0,!1)}}function DL($){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 IM($,Z){($.pooledCacheLanes&=Z)===0&&(Z=$.pooledCache,Z!=null&&($.pooledCache=null,S$(Z)))}function l$(){return LM(),_M(),VM(),OM()}function OM(){if(n1!==lG)return!1;var $=B2,Z=vN;vN=0;var J=_(t6),Y=V4===0||V4>J?V4:J;J=x.T;var U=G1.p;try{G1.p=Y,x.T=null;var K=kN;kN=null,Y=B2;var w=t6;if(n1=U2,c7=B2=null,t6=0,(a0&(e1|F6))!==Y5)throw Error("Cannot flush passive effects while already rendering.");Z6(w),yN=!0,rG=!1;var R=0;if(Z8=null,R=G5(),e6===SW)E$($8,R,J8);else{var P=$8,L=R,k=e6===jN;!z1||L<=P||(y1?y1.run(console.timeStamp.bind(console,k?"Waiting for Paint":"Waiting",P,L,c0,d0,"secondary-light")):console.timeStamp(k?"Waiting for Paint":"Waiting",P,L,c0,d0,"secondary-light"))}P=a0,a0|=F6;var f=Y.current;FJ(),YM(f);var S=Y.current;f=bN,FJ(),JM(Y,S,w,K,f),DM(Y),a0=P;var g=G5();if(S=R,f=y1,Z8!==null?FK(S,g,Z8,!0,f):!z1||g<=S||(f?f.run(console.timeStamp.bind(console,"Remaining Effects",S,g,c0,d0,"secondary-dark")):console.timeStamp("Remaining Effects",S,g,c0,d0,"secondary-dark")),Q9(w,g),s$(0,!1),rG?Y===mZ?z9++:(z9=0,mZ=Y):z9=0,rG=yN=!1,C5&&typeof C5.onPostCommitFiberRoot==="function")try{C5.onPostCommitFiberRoot(W7,Y)}catch(J0){L4||(L4=!0,console.error("React instrumentation encountered an error: %o",J0))}var t=Y.current.stateNode;return t.effectDuration=0,t.passiveEffectDuration=0,!0}finally{G1.p=U,x.T=J,IM($,Z)}}function EM($,Z,J){Z=Q6(J,Z),SK(Z),Z=AX($.stateNode,Z,2),$=y8($,Z,2),$!==null&&(A8($,2),R4($))}function J1($,Z,J){if(l7=!1,$.tag===3)EM($,$,J);else{for(;Z!==null;){if(Z.tag===3){EM(Z,$,J);return}if(Z.tag===1){var Y=Z.stateNode;if(typeof Z.type.getDerivedStateFromError==="function"||typeof Y.componentDidCatch==="function"&&(N2===null||!N2.has(Y))){$=Q6(J,$),SK($),J=SX(2),Y=y8(Z,J,2),Y!==null&&(DX(J,Y,Z,$),A8(Y,2),R4(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
154
 
155
155
  Error message:
156
156
 
157
- %s`,G)}}function fX($,Z,G){var X=$.pingCache;if(X===null){X=$.pingCache=new sE;var N=new Set;X.set(Z,N)}else N=X.get(Z),N===void 0&&(N=new Set,X.set(Z,N));N.has(G)||(HU=!0,N.add(G),X=SL.bind(null,$,Z,G),U8&&S7($,G),Z.then(X,X))}function SL($,Z,G){var X=$.pingCache;X!==null&&X.delete(Z),$.pingedLanes|=$.suspendedLanes&G,$.warmLanes&=~G,(G&127)!==0?0>H8&&(g6=H8=g1(),ZZ=iG("Promise Resolved"),h6=tG):(G&4194048)!==0&&0>W4&&(M8=W4=g1(),GZ=iG("Promise Resolved"),sY=tG),bH()&&x.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,J)}}function iX($,Z,J){var Y=$.pingCache;if(Y===null){Y=$.pingCache=new sV;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(J)||(AN=!0,U.add(J),Y=jL.bind(null,$,Z,J),_4&&r$($,J),Z.then(Y,Y))}function jL($,Z,J){var Y=$.pingCache;Y!==null&&Y.delete(Z),$.pingedLanes|=$.suspendedLanes&J,$.warmLanes&=~J,(J&127)!==0?0>E4&&(e8=E4=p1(),WZ=CG("Promise Resolved"),$2=LG):(J&4194048)!==0&&0>S6&&(A4=S6=p1(),TZ=CG("Promise Resolved"),UN=LG),BM()&&x.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
158
 
159
159
  When testing, code that resolves suspended data should be wrapped into act(...):
160
160
 
@@ -163,7 +163,7 @@ act(() => {
163
163
  });
164
164
  /* assert on the output */
165
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`),K1===$&&(S0&G)===G&&(E1===d6||E1===MJ&&(S0&62914560)===S0&&o1()-TJ<iW?(o0&r1)===t1&&c$($,0):MU|=G,Q$===S0&&(Q$=0)),Q8($)}function tH($,Z){Z===0&&(Z=j$()),$=B5($,Z),$!==null&&(H6($,Z),Q8($))}function vL($){var Z=$.memoizedState,G=0;Z!==null&&(G=Z.retryLane),tH($,G)}function kL($,Z){var G=0;switch($.tag){case 31:case 13:var{stateNode:X,memoizedState:N}=$;N!==null&&(G=N.retryLane);break;case 19:X=$.stateNode;break;case 22:X=$.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}X!==null&&X.delete(Z),tH($,G)}function yX($,Z,G){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var X=$,N=Z,B=N.type===kG;B=G||B,N.tag!==22?N.flags&67108864?B&&G0(N,eH,X,N):yX(X,N,B):N.memoizedState===null&&(B&&N.flags&8192?G0(N,eH,X,N):N.subtreeFlags&67108864&&G0(N,yX,X,N,B)),Z=Z.sibling}}function eH($,Z){H1(!0);try{CH(Z),vH(Z),IH($,Z.alternate,Z,!1),DH($,Z,0,null,!1,0)}finally{H1(!1)}}function $M($){var Z=!0;$.current.mode&(M5|A4)||(Z=!1),yX($,$.current,Z)}function ZM($){if((o0&r1)===t1){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",EJ!==null){if(EJ.has(Z))return;EJ.add(Z)}else EJ=new Set([Z]);G0($,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 S7($,Z){U8&&$.memoizedUpdaters.forEach(function(G){G7($,G,Z)})}function bL($,Z){var G=x.actQueue;return G!==null?(G.push(Z),aE):RY($,Z)}function fL($){bH()&&x.actQueue===null&&G0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
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`),F1===$&&(y0&J)===J&&(E1===G2||E1===gG&&(y0&62914560)===y0&&G5()-dG<EW?(a0&e1)===Y5&&N7($,0):SN|=J,T9===y0&&(T9=0)),R4($)}function AM($,Z){Z===0&&(Z=s9()),$=P5($,Z),$!==null&&(A8($,Z),R4($))}function vL($){var Z=$.memoizedState,J=0;Z!==null&&(J=Z.retryLane),AM($,J)}function bL($,Z){var J=0;switch($.tag){case 31:case 13:var{stateNode:Y,memoizedState:U}=$;U!==null&&(J=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),AM($,J)}function tX($,Z,J){if((Z.subtreeFlags&67117056)!==0)for(Z=Z.child;Z!==null;){var Y=$,U=Z,K=U.type===JG;K=J||K,U.tag!==22?U.flags&67108864?K&&G0(U,SM,Y,U):tX(Y,U,K):U.memoizedState===null&&(K&&U.flags&8192?G0(U,SM,Y,U):U.subtreeFlags&67108864&&G0(U,tX,Y,U,K)),Z=Z.sibling}}function SM($,Z){w1(!0);try{ZM(Z),NM(Z),QM($,Z.alternate,Z,!1),GM($,Z,0,null,!1,0)}finally{w1(!1)}}function DM($){var Z=!0;$.current.mode&(L5|n6)||(Z=!1),tX($,$.current,Z)}function jM($){if((a0&e1)===Y5){var Z=$.tag;if(Z===3||Z===1||Z===0||Z===11||Z===14||Z===15){if(Z=d($)||"ReactComponent",sG!==null){if(sG.has(Z))return;sG.add(Z)}else sG=new Set([Z]);G0($,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 r$($,Z){_4&&$.memoizedUpdaters.forEach(function(J){T$($,J,Z)})}function kL($,Z){var J=x.actQueue;return J!==null?(J.push(Z),aV):bY($,Z)}function fL($){BM()&&x.actQueue===null&&G0($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
167
 
168
168
  When testing, code that causes React state updates should be wrapped into act(...):
169
169
 
@@ -172,86 +172,86 @@ act(() => {
172
172
  });
173
173
  /* assert on the output */
174
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 Q8($){$!==D9&&$.next===null&&(D9===null?PJ=D9=$:D9=D9.next=$),CJ=!0,x.actQueue!==null?VU||(VU=!0,qM()):LU||(LU=!0,qM())}function v7($,Z){if(!EU&&CJ){EU=!0;do{var G=!1;for(var X=PJ;X!==null;){if(!Z)if($!==0){var N=X.pendingLanes;if(N===0)var B=0;else{var{suspendedLanes:W,pingedLanes:w}=X;B=(1<<31-w5(42|$)+1)-1,B&=N&~(W&~w),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(G=!0,JM(X,B))}else B=S0,B=_2(X,X===K1?B:0,X.cancelPendingCommit!==null||X.timeoutHandle!==Y$),(B&3)===0||L2(X,B)||(G=!0,JM(X,B));X=X.next}}while(G);EU=!1}}function yL(){AZ=window.event,gX()}function gX(){CJ=VU=LU=!1;var $=0;o6!==0&&pL()&&($=o6);for(var Z=o1(),G=null,X=PJ;X!==null;){var N=X.next,B=QM(X,Z);if(B===0)X.next=null,G===null?PJ=N:G.next=N,N===null&&(D9=G);else if(G=X,$!==0||(B&3)!==0)CJ=!0;X=N}d1!==s6&&d1!==LJ||v7($,!1),o6!==0&&(o6=0)}function QM($,Z){for(var{suspendedLanes:G,pingedLanes:X,expirationTimes:N}=$,B=$.pendingLanes&-62914561;0<B;){var W=31-w5(B),w=1<<W,_=N[W];if(_===-1){if((w&G)===0||(w&X)!==0)N[W]=Z3(w,Z)}else _<=Z&&($.expiredLanes|=w);B&=~w}if(Z=K1,G=S0,G=_2($,$===Z?G:0,$.cancelPendingCommit!==null||$.timeoutHandle!==Y$),X=$.callbackNode,G===0||$===Z&&(q1===$$||q1===Z$)||$.cancelPendingCommit!==null)return X!==null&&hX(X),$.callbackNode=null,$.callbackPriority=0;if((G&3)===0||L2($,G)){if(Z=G&-G,Z!==$.callbackPriority||x.actQueue!==null&&X!==PU)hX(X);else return Z;switch(E(G)){case e5:case j4:G=zY;break;case N8:G=i$;break;case xG:G=_Y;break;default:G=i$}return X=GM.bind(null,$),x.actQueue!==null?(x.actQueue.push(X),G=PU):G=RY(G,X),$.callbackPriority=Z,$.callbackNode=G,Z}return X!==null&&hX(X),$.callbackPriority=2,$.callbackNode=null,2}function GM($,Z){if(GJ=QJ=!1,AZ=window.event,d1!==s6&&d1!==LJ)return $.callbackNode=null,$.callbackPriority=0,null;var G=$.callbackNode;if(f4===_J&&(f4=WU),A7()&&$.callbackNode!==G)return null;var X=S0;if(X=_2($,$===K1?X:0,$.cancelPendingCommit!==null||$.timeoutHandle!==Y$),X===0)return null;return yH($,X,Z),QM($,o1()),$.callbackNode!=null&&$.callbackNode===G?GM.bind(null,$):null}function JM($,Z){if(A7())return null;QJ=GJ,GJ=!1,yH($,Z,!0)}function hX($){$!==PU&&$!==null&&CV($)}function qM(){x.actQueue!==null&&x.actQueue.push(function(){return gX(),null}),XP(function(){(o0&(r1|G4))!==t1?RY(TY,yL):gX()})}function xX(){if(o6===0){var $=s2;$===0&&($=yG,yG<<=1,(yG&261888)===0&&(yG=256)),o6=$}return o6}function XM($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return Y1($,"action"),N7(""+$)}function YM($,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 gL($,Z,G,X,N){if(Z==="submit"&&G&&G.stateNode===N){var B=XM((N[R5]||null).action),W=X.submitter;W&&(Z=(Z=W[R5]||null)?XM(Z.formAction):W.getAttribute("formAction"),Z!==null&&(B=Z,W=null));var w=new cG("action","action",null,X,N);$.push({event:w,listeners:[{instance:null,listener:function(){if(X.defaultPrevented){if(o6!==0){var _=W?YM(N,W):new FormData(N),V={pending:!0,data:_,method:N.method,action:B};Object.freeze(V),qX(G,V,null,_)}}else typeof B==="function"&&(w.preventDefault(),_=W?YM(N,W):new FormData(N),V={pending:!0,data:_,method:N.method,action:B},Object.freeze(V),qX(G,V,B,_))},currentTarget:N}]})}}function VG($,Z,G){$.currentTarget=G;try{Z($)}catch(X){yY(X)}$.currentTarget=null}function UM($,Z){Z=(Z&4)!==0;for(var G=0;G<$.length;G++){var X=$[G];$:{var N=void 0,B=X.event;if(X=X.listeners,Z)for(var W=X.length-1;0<=W;W--){var w=X[W],_=w.instance,V=w.currentTarget;if(w=w.listener,_!==N&&B.isPropagationStopped())break $;_!==null?G0(_,VG,B,w,V):VG(B,w,V),N=_}else for(W=0;W<X.length;W++){if(w=X[W],_=w.instance,V=w.currentTarget,w=w.listener,_!==N&&B.isPropagationStopped())break $;_!==null?G0(_,VG,B,w,V):VG(B,w,V),N=_}}}}function c0($,Z){CU.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var G=Z[LY];G===void 0&&(G=Z[LY]=new Set);var X=$+"__bubble";G.has(X)||(NM(Z,$,2,!1),G.add(X))}function uX($,Z,G){CU.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 X=0;Z&&(X|=4),NM(G,$,X,Z)}function mX($){if(!$[IJ]){$[IJ]=!0,qF.forEach(function(G){G!=="selectionchange"&&(CU.has(G)||uX(G,!1,$),uX(G,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[IJ]||(Z[IJ]=!0,uX("selectionchange",!1,Z))}}function NM($,Z,G,X){switch(dM(Z)){case e5:var N=RV;break;case j4:N=TV;break;default:N=GY}G=N.bind(null,Z,G,$),N=void 0,!IY||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(N=!0),X?N!==void 0?$.addEventListener(Z,G,{capture:!0,passive:N}):$.addEventListener(Z,G,!0):N!==void 0?$.addEventListener(Z,G,{passive:N}):$.addEventListener(Z,G,!1)}function dX($,Z,G,X,N){var B=X;if((Z&1)===0&&(Z&2)===0&&X!==null)$:for(;;){if(X===null)return;var W=X.tag;if(W===3||W===4){var w=X.stateNode.containerInfo;if(w===N)break;if(W===4)for(W=X.return;W!==null;){var _=W.tag;if((_===3||_===4)&&W.stateNode.containerInfo===N)return;W=W.return}for(;w!==null;){if(W=q0(w),W===null)return;if(_=W.tag,_===5||_===6||_===26||_===27){X=B=W;continue $}w=w.parentNode}}X=X.return}_K(function(){var V=B,k=K3(G),b=[];$:{var D=dF.get($);if(D!==void 0){var y=cG,t=$;switch($){case"keypress":if(AQ(G)===0)break $;case"keydown":case"keyup":y=HE;break;case"focusin":t="focus",y=AY;break;case"focusout":t="blur",y=AY;break;case"beforeblur":case"afterblur":y=AY;break;case"click":if(G.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=DF;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=$E;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=WE;break;case hF:case xF:case uF:y=GE;break;case mF:y=RE;break;case"scroll":case"scrollend":y=tV;break;case"wheel":y=zE;break;case"copy":case"cut":case"paste":y=qE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=AF;break;case"toggle":case"beforetoggle":y=LE}var Z0=(Z&4)!==0,F1=!Z0&&($==="scroll"||$==="scrollend"),l0=Z0?D!==null?D+"Capture":null:D;Z0=[];for(var O=V,j;O!==null;){var v=O;if(j=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||j===null||l0===null||(v=K7(O,l0),v!=null&&Z0.push(k7(O,v,j))),F1)break;O=O.return}0<Z0.length&&(D=new y(D,t,null,G,k),b.push({event:D,listeners:Z0}))}}if((Z&7)===0){$:{if(D=$==="mouseover"||$==="pointerover",y=$==="mouseout"||$==="pointerout",D&&G!==c7&&(t=G.relatedTarget||G.fromElement)&&(q0(t)||t[A6]))break $;if(y||D){if(D=k.window===k?k:(D=k.ownerDocument)?D.defaultView||D.parentWindow:window,y){if(t=G.relatedTarget||G.toElement,y=V,t=t?q0(t):null,t!==null&&(F1=g(t),Z0=t.tag,t!==F1||Z0!==5&&Z0!==27&&Z0!==6))t=null}else y=null,t=V;if(y!==t){if(Z0=DF,v="onMouseLeave",l0="onMouseEnter",O="mouse",$==="pointerout"||$==="pointerover")Z0=AF,v="onPointerLeave",l0="onPointerEnter",O="pointer";if(F1=y==null?D:P0(y),j=t==null?D:P0(t),D=new Z0(v,O+"leave",y,G,k),D.target=F1,D.relatedTarget=j,v=null,q0(k)===V&&(Z0=new Z0(l0,O+"enter",t,G,k),Z0.target=j,Z0.relatedTarget=F1,v=Z0),F1=v,y&&t)Z:{Z0=hL,l0=y,O=t,j=0;for(v=l0;v;v=Z0(v))j++;v=0;for(var u=O;u;u=Z0(u))v++;for(;0<j-v;)l0=Z0(l0),j--;for(;0<v-j;)O=Z0(O),v--;for(;j--;){if(l0===O||O!==null&&l0===O.alternate){Z0=l0;break Z}l0=Z0(l0),O=Z0(O)}Z0=null}else Z0=null;y!==null&&KM(b,D,y,Z0,!1),t!==null&&F1!==null&&KM(b,F1,t,Z0,!0)}}}$:{if(D=V?P0(V):window,y=D.nodeName&&D.nodeName.toLowerCase(),y==="select"||y==="input"&&D.type==="file")var $0=OK;else if(CK(D))if(yF)$0=a_;else{$0=n_;var V0=s_}else y=D.nodeName,!y||y.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?V&&U7(V.elementType)&&($0=OK):$0=o_;if($0&&($0=$0($,V))){IK(b,$0,G,k);break $}V0&&V0($,D,V),$==="focusout"&&V&&D.type==="number"&&V.memoizedProps.value!=null&&J3(D,"number",D.value)}switch(V0=V?P0(V):window,$){case"focusin":if(CK(V0)||V0.contentEditable==="true")q9=V0,vY=V,i7=null;break;case"focusout":i7=vY=q9=null;break;case"mousedown":kY=!0;break;case"contextmenu":case"mouseup":case"dragend":kY=!1,bK(b,G,k);break;case"selectionchange":if(CE)break;case"keydown":case"keyup":bK(b,G,k)}var M0;if(SY)$:{switch($){case"compositionstart":var U0="onCompositionStart";break $;case"compositionend":U0="onCompositionEnd";break $;case"compositionupdate":U0="onCompositionUpdate";break $}U0=void 0}else J9?EK($,G)&&(U0="onCompositionEnd"):$==="keydown"&&G.keyCode===SF&&(U0="onCompositionStart");if(U0&&(vF&&G.locale!=="ko"&&(J9||U0!=="onCompositionStart"?U0==="onCompositionEnd"&&J9&&(M0=LK()):(S6=k,OY=("value"in S6)?S6.value:S6.textContent,J9=!0)),V0=EG(V,U0),0<V0.length&&(U0=new jF(U0,$,null,G,k),b.push({event:U0,listeners:V0}),M0?U0.data=M0:(M0=PK(G),M0!==null&&(U0.data=M0)))),M0=EE?p_($,G):c_($,G))U0=EG(V,"onBeforeInput"),0<U0.length&&(V0=new YE("onBeforeInput","beforeinput",null,G,k),b.push({event:V0,listeners:U0}),V0.data=M0);gL(b,$,V,G,k)}UM(b,Z)})}function k7($,Z,G){return{instance:$,listener:Z,currentTarget:G}}function EG($,Z){for(var G=Z+"Capture",X=[];$!==null;){var N=$,B=N.stateNode;if(N=N.tag,N!==5&&N!==26&&N!==27||B===null||(N=K7($,G),N!=null&&X.unshift(k7($,N,B)),N=K7($,Z),N!=null&&X.push(k7($,N,B))),$.tag===3)return X;$=$.return}return[]}function hL($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function KM($,Z,G,X,N){for(var B=Z._reactName,W=[];G!==null&&G!==X;){var w=G,_=w.alternate,V=w.stateNode;if(w=w.tag,_!==null&&_===X)break;w!==5&&w!==26&&w!==27||V===null||(_=V,N?(V=K7(G,B),V!=null&&W.unshift(k7(G,V,_))):N||(V=K7(G,B),V!=null&&W.push(k7(G,V,_)))),G=G.return}W.length!==0&&$.push({event:Z,listeners:W})}function pX($,Z){x_($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||IF||(IF=!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:m2,possibleRegistrationNames:VY};U7($)||typeof Z.is==="string"||m_($,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 n1($,Z,G,X){Z!==G&&(G=C6(G),C6(Z)!==G&&(X[$]=Z))}function xL($,Z,G){Z.forEach(function(X){G[MM(X)]=X==="style"?lX($):$.getAttribute(X)})}function G8($,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 BM($,Z){return $=$.namespaceURI===mG||$.namespaceURI===$9?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function C6($){return B6($)&&(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.",z2($)),s1($)),(typeof $==="string"?$:""+$).replace(iE,`
176
- `).replace(tE,"")}function HM($,Z){return Z=C6(Z),C6($)===Z?!0:!1}function U1($,Z,G,X,N,B){switch(G){case"children":if(typeof X==="string")jQ(X,Z,!1),Z==="body"||Z==="textarea"&&X===""||Y7($,X);else if(typeof X==="number"||typeof X==="bigint")jQ(""+X,Z,!1),Z!=="body"&&Y7($,""+X);break;case"className":IQ($,"class",X);break;case"tabIndex":IQ($,"tabindex",X);break;case"dir":case"role":case"viewBox":case"width":case"height":IQ($,G,X);break;case"style":RK($,X,B);break;case"data":if(Z!=="object"){IQ($,"data",X);break}case"src":case"href":if(X===""&&(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(X==null||typeof X==="function"||typeof X==="symbol"||typeof X==="boolean"){$.removeAttribute(G);break}Y1(X,G),X=N7(""+X),$.setAttribute(G,X);break;case"action":case"formAction":if(X!=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 X==="function"&&(N.encType==null&&N.method==null||jJ||(jJ=!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.")),N.target==null||DJ||(DJ=!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"||N.type==="submit"||N.type==="image"||OJ?Z!=="button"||N.type==null||N.type==="submit"||OJ?typeof X==="function"&&(N.name==null||Bw||(Bw=!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.')),N.formEncType==null&&N.formMethod==null||jJ||(jJ=!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.")),N.formTarget==null||DJ||(DJ=!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."))):(OJ=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(OJ=!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 X==="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"&&U1($,Z,"name",N.name,N,null),U1($,Z,"formEncType",N.formEncType,N,null),U1($,Z,"formMethod",N.formMethod,N,null),U1($,Z,"formTarget",N.formTarget,N,null)):(U1($,Z,"encType",N.encType,N,null),U1($,Z,"method",N.method,N,null),U1($,Z,"target",N.target,N,null)));if(X==null||typeof X==="symbol"||typeof X==="boolean"){$.removeAttribute(G);break}Y1(X,G),X=N7(""+X),$.setAttribute(G,X);break;case"onClick":X!=null&&(typeof X!=="function"&&G8(G,X),$.onclick=I8);break;case"onScroll":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scroll",$));break;case"onScrollEnd":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scrollend",$));break;case"dangerouslySetInnerHTML":if(X!=null){if(typeof X!=="object"||!("__html"in X))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=X.__html,G!=null){if(N.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"multiple":$.multiple=X&&typeof X!=="function"&&typeof X!=="symbol";break;case"muted":$.muted=X&&typeof X!=="function"&&typeof X!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(X==null||typeof X==="function"||typeof X==="boolean"||typeof X==="symbol"){$.removeAttribute("xlink:href");break}Y1(X,G),G=N7(""+X),$.setAttributeNS(J$,"xlink:href",G);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":X!=null&&typeof X!=="function"&&typeof X!=="symbol"?(Y1(X,G),$.setAttribute(G,""+X)):$.removeAttribute(G);break;case"inert":X!==""||AJ[G]||(AJ[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":X&&typeof X!=="function"&&typeof X!=="symbol"?$.setAttribute(G,""):$.removeAttribute(G);break;case"capture":case"download":X===!0?$.setAttribute(G,""):X!==!1&&X!=null&&typeof X!=="function"&&typeof X!=="symbol"?(Y1(X,G),$.setAttribute(G,X)):$.removeAttribute(G);break;case"cols":case"rows":case"size":case"span":X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&!isNaN(X)&&1<=X?(Y1(X,G),$.setAttribute(G,X)):$.removeAttribute(G);break;case"rowSpan":case"start":X==null||typeof X==="function"||typeof X==="symbol"||isNaN(X)?$.removeAttribute(G):(Y1(X,G),$.setAttribute(G,X));break;case"popover":c0("beforetoggle",$),c0("toggle",$),CQ($,"popover",X);break;case"xlinkActuate":C8($,J$,"xlink:actuate",X);break;case"xlinkArcrole":C8($,J$,"xlink:arcrole",X);break;case"xlinkRole":C8($,J$,"xlink:role",X);break;case"xlinkShow":C8($,J$,"xlink:show",X);break;case"xlinkTitle":C8($,J$,"xlink:title",X);break;case"xlinkType":C8($,J$,"xlink:type",X);break;case"xmlBase":C8($,IU,"xml:base",X);break;case"xmlLang":C8($,IU,"xml:lang",X);break;case"xmlSpace":C8($,IU,"xml:space",X);break;case"is":B!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),CQ($,"is",X);break;case"innerText":case"textContent":break;case"popoverTarget":Hw||X==null||typeof X!=="object"||(Hw=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",X));default:!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"?(G=TK(G),CQ($,G,X)):m2.hasOwnProperty(G)&&X!=null&&typeof X!=="function"&&G8(G,X)}}function cX($,Z,G,X,N,B){switch(G){case"style":RK($,X,B);break;case"dangerouslySetInnerHTML":if(X!=null){if(typeof X!=="object"||!("__html"in X))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=X.__html,G!=null){if(N.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=G}}break;case"children":typeof X==="string"?Y7($,X):(typeof X==="number"||typeof X==="bigint")&&Y7($,""+X);break;case"onScroll":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scroll",$));break;case"onScrollEnd":X!=null&&(typeof X!=="function"&&G8(G,X),c0("scrollend",$));break;case"onClick":X!=null&&(typeof X!=="function"&&G8(G,X),$.onclick=I8);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(m2.hasOwnProperty(G))X!=null&&typeof X!=="function"&&G8(G,X);else $:{if(G[0]==="o"&&G[1]==="n"&&(N=G.endsWith("Capture"),Z=G.slice(2,N?G.length-7:void 0),B=$[R5]||null,B=B!=null?B[G]:null,typeof B==="function"&&$.removeEventListener(Z,B,N),typeof X==="function")){typeof B!=="function"&&B!==null&&(G in $?$[G]=null:$.hasAttribute(G)&&$.removeAttribute(G)),$.addEventListener(Z,X,N);break $}G in $?$[G]=X:X===!0?$.setAttribute(G,""):CQ($,G,X)}}}function Q5($,Z,G){switch(pX(Z,G),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":c0("error",$),c0("load",$);var X=!1,N=!1,B;for(B in G)if(G.hasOwnProperty(B)){var W=G[B];if(W!=null)switch(B){case"src":X=!0;break;case"srcSet":N=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:U1($,Z,B,W,G,null)}}N&&U1($,Z,"srcSet",G.srcSet,G,null),X&&U1($,Z,"src",G.src,G,null);return;case"input":F6("input",G),c0("invalid",$);var w=B=W=N=null,_=null,V=null;for(X in G)if(G.hasOwnProperty(X)){var k=G[X];if(k!=null)switch(X){case"name":N=k;break;case"type":W=k;break;case"checked":_=k;break;case"defaultChecked":V=k;break;case"value":B=k;break;case"defaultValue":w=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:U1($,Z,X,k,G,null)}}ZK($,G),QK($,B,w,_,V,W,N,!1);return;case"select":F6("select",G),c0("invalid",$),X=W=B=null;for(N in G)if(G.hasOwnProperty(N)&&(w=G[N],w!=null))switch(N){case"value":B=w;break;case"defaultValue":W=w;break;case"multiple":X=w;default:U1($,Z,N,w,G,null)}qK($,G),Z=B,G=W,$.multiple=!!X,Z!=null?S$($,!!X,Z,!1):G!=null&&S$($,!!X,G,!0);return;case"textarea":F6("textarea",G),c0("invalid",$),B=N=X=null;for(W in G)if(G.hasOwnProperty(W)&&(w=G[W],w!=null))switch(W){case"value":X=w;break;case"defaultValue":N=w;break;case"children":B=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:U1($,Z,W,w,G,null)}XK($,G),UK($,X,N,B);return;case"option":GK($,G);for(_ in G)if(G.hasOwnProperty(_)&&(X=G[_],X!=null))switch(_){case"selected":$.selected=X&&typeof X!=="function"&&typeof X!=="symbol";break;default:U1($,Z,_,X,G,null)}return;case"dialog":c0("beforetoggle",$),c0("toggle",$),c0("cancel",$),c0("close",$);break;case"iframe":case"object":c0("load",$);break;case"video":case"audio":for(X=0;X<OZ.length;X++)c0(OZ[X],$);break;case"image":c0("error",$),c0("load",$);break;case"details":c0("toggle",$);break;case"embed":case"source":case"link":c0("error",$),c0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in G)if(G.hasOwnProperty(V)&&(X=G[V],X!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:U1($,Z,V,X,G,null)}return;default:if(U7(Z)){for(k in G)G.hasOwnProperty(k)&&(X=G[k],X!==void 0&&cX($,Z,k,X,G,void 0));return}}for(w in G)G.hasOwnProperty(w)&&(X=G[w],X!=null&&U1($,Z,w,X,G,null))}function uL($,Z,G,X){switch(pX(Z,X),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var N=null,B=null,W=null,w=null,_=null,V=null,k=null;for(y in G){var b=G[y];if(G.hasOwnProperty(y)&&b!=null)switch(y){case"checked":break;case"value":break;case"defaultValue":_=b;default:X.hasOwnProperty(y)||U1($,Z,y,null,X,b)}}for(var D in X){var y=X[D];if(b=G[D],X.hasOwnProperty(D)&&(y!=null||b!=null))switch(D){case"type":B=y;break;case"name":N=y;break;case"checked":V=y;break;case"defaultChecked":k=y;break;case"value":W=y;break;case"defaultValue":w=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y!==b&&U1($,Z,D,y,X,b)}}Z=G.type==="checkbox"||G.type==="radio"?G.checked!=null:G.value!=null,X=X.type==="checkbox"||X.type==="radio"?X.checked!=null:X.value!=null,Z||!X||Kw||(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"),Kw=!0),!Z||X||Nw||(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"),Nw=!0),G3($,W,w,_,V,k,B,N);return;case"select":y=W=w=D=null;for(B in G)if(_=G[B],G.hasOwnProperty(B)&&_!=null)switch(B){case"value":break;case"multiple":y=_;default:X.hasOwnProperty(B)||U1($,Z,B,null,X,_)}for(N in X)if(B=X[N],_=G[N],X.hasOwnProperty(N)&&(B!=null||_!=null))switch(N){case"value":D=B;break;case"defaultValue":w=B;break;case"multiple":W=B;default:B!==_&&U1($,Z,N,B,X,_)}X=w,Z=W,G=y,D!=null?S$($,!!Z,D,!1):!!G!==!!Z&&(X!=null?S$($,!!Z,X,!0):S$($,!!Z,Z?[]:"",!1));return;case"textarea":y=D=null;for(w in G)if(N=G[w],G.hasOwnProperty(w)&&N!=null&&!X.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:U1($,Z,w,null,X,N)}for(W in X)if(N=X[W],B=G[W],X.hasOwnProperty(W)&&(N!=null||B!=null))switch(W){case"value":D=N;break;case"defaultValue":y=N;break;case"children":break;case"dangerouslySetInnerHTML":if(N!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:N!==B&&U1($,Z,W,N,X,B)}YK($,D,y);return;case"option":for(var t in G)if(D=G[t],G.hasOwnProperty(t)&&D!=null&&!X.hasOwnProperty(t))switch(t){case"selected":$.selected=!1;break;default:U1($,Z,t,null,X,D)}for(_ in X)if(D=X[_],y=G[_],X.hasOwnProperty(_)&&D!==y&&(D!=null||y!=null))switch(_){case"selected":$.selected=D&&typeof D!=="function"&&typeof D!=="symbol";break;default:U1($,Z,_,D,X,y)}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 Z0 in G)D=G[Z0],G.hasOwnProperty(Z0)&&D!=null&&!X.hasOwnProperty(Z0)&&U1($,Z,Z0,null,X,D);for(V in X)if(D=X[V],y=G[V],X.hasOwnProperty(V)&&D!==y&&(D!=null||y!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U1($,Z,V,D,X,y)}return;default:if(U7(Z)){for(var F1 in G)D=G[F1],G.hasOwnProperty(F1)&&D!==void 0&&!X.hasOwnProperty(F1)&&cX($,Z,F1,void 0,X,D);for(k in X)D=X[k],y=G[k],!X.hasOwnProperty(k)||D===y||D===void 0&&y===void 0||cX($,Z,k,D,X,y);return}}for(var l0 in G)D=G[l0],G.hasOwnProperty(l0)&&D!=null&&!X.hasOwnProperty(l0)&&U1($,Z,l0,null,X,D);for(b in X)D=X[b],y=G[b],!X.hasOwnProperty(b)||D===y||D==null&&y==null||U1($,Z,b,D,X,y)}function MM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function lX($){var Z={};$=$.style;for(var G=0;G<$.length;G++){var X=$[G];Z[X]=$.getPropertyValue(X)}return Z}function FM($,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 X,N=X="",B;for(B in Z)if(Z.hasOwnProperty(B)){var W=Z[B];W!=null&&typeof W!=="boolean"&&W!==""&&(B.indexOf("--")===0?(Q7(W,B),X+=N+B+":"+(""+W).trim()):typeof W!=="number"||W===0||PF.has(B)?(Q7(W,B),X+=N+B.replace(zF,"-$1").toLowerCase().replace(_F,"-ms-")+":"+(""+W).trim()):X+=N+B.replace(zF,"-$1").toLowerCase().replace(_F,"-ms-")+":"+W+"px",N=";")}X=X||null,Z=$.getAttribute("style"),Z!==X&&(X=C6(X),C6(Z)!==X&&(G.style=lX($)))}}function U4($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":return}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(Y1(X,Z),$===""+X)return}n1(Z,$,X,B)}function WM($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null){switch(typeof X){case"function":case"symbol":return}if(!X)return}else switch(typeof X){case"function":case"symbol":break;default:if(X)return}n1(Z,$,X,B)}function rX($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":return}else if(X!=null)switch(typeof X){case"function":case"symbol":break;default:if(Y1(X,G),$===""+X)return}n1(Z,$,X,B)}function wM($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(X))return}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(!isNaN(X)&&(Y1(X,Z),$===""+X))return}n1(Z,$,X,B)}function sX($,Z,G,X,N,B){if(N.delete(G),$=$.getAttribute(G),$===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":return}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(Y1(X,Z),G=N7(""+X),$===G)return}n1(Z,$,X,B)}function RM($,Z,G,X){for(var N={},B=new Set,W=$.attributes,w=0;w<W.length;w++)switch(W[w].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:B.add(W[w].name)}if(U7(Z)){for(var _ in G)if(G.hasOwnProperty(_)){var V=G[_];if(V!=null){if(m2.hasOwnProperty(_))typeof V!=="function"&&G8(_,V);else if(G.suppressHydrationWarning!==!0)switch(_){case"children":typeof V!=="string"&&typeof V!=="number"||n1("children",$.textContent,V,N);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,V=V?V.__html:void 0,V!=null&&(V=BM($,V),n1(_,W,V,N));continue;case"style":B.delete(_),FM($,V,N);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":B.delete(_.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",_);continue;case"className":B.delete("class"),W=tN($,"class",V),n1("className",W,V,N);continue;default:X.context===n8&&Z!=="svg"&&Z!=="math"?B.delete(_.toLowerCase()):B.delete(_),W=tN($,_,V),n1(_,W,V,N)}}}}else for(V in G)if(G.hasOwnProperty(V)&&(_=G[V],_!=null)){if(m2.hasOwnProperty(V))typeof _!=="function"&&G8(V,_);else if(G.suppressHydrationWarning!==!0)switch(V){case"children":typeof _!=="string"&&typeof _!=="number"||n1("children",$.textContent,_,N);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":W=$.innerHTML,_=_?_.__html:void 0,_!=null&&(_=BM($,_),W!==_&&(N[V]={__html:W}));continue;case"className":U4($,V,"class",_,B,N);continue;case"tabIndex":U4($,V,"tabindex",_,B,N);continue;case"style":B.delete(V),FM($,_,N);continue;case"multiple":B.delete(V),n1(V,$.multiple,_,N);continue;case"muted":B.delete(V),n1(V,$.muted,_,N);continue;case"autoFocus":B.delete("autofocus"),n1(V,$.autofocus,_,N);continue;case"data":if(Z!=="object"){B.delete(V),W=$.getAttribute("data"),n1(V,W,_,N);continue}case"src":case"href":if(!(_!==""||Z==="a"&&V==="href"||Z==="object"&&V==="data")){V==="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.',V,V):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.',V,V);continue}sX($,V,V,_,B,N);continue;case"action":case"formAction":if(W=$.getAttribute(V),typeof _==="function"){B.delete(V.toLowerCase()),V==="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===eE){B.delete(V.toLowerCase()),n1(V,"function",_,N);continue}sX($,V,V.toLowerCase(),_,B,N);continue;case"xlinkHref":sX($,V,"xlink:href",_,B,N);continue;case"contentEditable":rX($,V,"contenteditable",_,B,N);continue;case"spellCheck":rX($,V,"spellcheck",_,B,N);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":rX($,V,V,_,B,N);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":WM($,V,V.toLowerCase(),_,B,N);continue;case"capture":case"download":$:{w=$;var k=W=V,b=N;if(B.delete(k),w=w.getAttribute(k),w===null)switch(typeof _){case"undefined":case"function":case"symbol":break $;default:if(_===!1)break $}else if(_!=null)switch(typeof _){case"function":case"symbol":break;case"boolean":if(_===!0&&w==="")break $;break;default:if(Y1(_,W),w===""+_)break $}n1(W,w,_,b)}continue;case"cols":case"rows":case"size":case"span":$:{if(w=$,k=W=V,b=N,B.delete(k),w=w.getAttribute(k),w===null)switch(typeof _){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(_)||1>_)break $}else if(_!=null)switch(typeof _){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(_)||1>_)&&(Y1(_,W),w===""+_))break $}n1(W,w,_,b)}continue;case"rowSpan":wM($,V,"rowspan",_,B,N);continue;case"start":wM($,V,V,_,B,N);continue;case"xHeight":U4($,V,"x-height",_,B,N);continue;case"xlinkActuate":U4($,V,"xlink:actuate",_,B,N);continue;case"xlinkArcrole":U4($,V,"xlink:arcrole",_,B,N);continue;case"xlinkRole":U4($,V,"xlink:role",_,B,N);continue;case"xlinkShow":U4($,V,"xlink:show",_,B,N);continue;case"xlinkTitle":U4($,V,"xlink:title",_,B,N);continue;case"xlinkType":U4($,V,"xlink:type",_,B,N);continue;case"xmlBase":U4($,V,"xml:base",_,B,N);continue;case"xmlLang":U4($,V,"xml:lang",_,B,N);continue;case"xmlSpace":U4($,V,"xml:space",_,B,N);continue;case"inert":_!==""||AJ[V]||(AJ[V]=!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.",V)),WM($,V,V,_,B,N);continue;default:if(!(2<V.length)||V[0]!=="o"&&V[0]!=="O"||V[1]!=="n"&&V[1]!=="N"){w=TK(V),W=!1,X.context===n8&&Z!=="svg"&&Z!=="math"?B.delete(w.toLowerCase()):(k=V.toLowerCase(),k=dG.hasOwnProperty(k)?dG[k]||null:null,k!==null&&k!==V&&(W=!0,B.delete(k)),B.delete(w));$:if(k=$,b=w,w=_,J7(b))if(k.hasAttribute(b))k=k.getAttribute(b),Y1(w,b),w=k===""+w?w:k;else{switch(typeof w){case"function":case"symbol":break $;case"boolean":if(k=b.toLowerCase().slice(0,5),k!=="data-"&&k!=="aria-")break $}w=w===void 0?void 0:null}else w=void 0;W||n1(V,w,_,N)}}}return 0<B.size&&G.suppressHydrationWarning!==!0&&xL($,B,N),Object.keys(N).length===0?null:N}function mL($,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 TM($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dL(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,G=performance.getEntriesByType("resource"),X=0;X<G.length;X++){var N=G[X],B=N.transferSize,W=N.initiatorType,w=N.duration;if(B&&w&&TM(W)){W=0,w=N.responseEnd;for(X+=1;X<G.length;X++){var _=G[X],V=_.startTime;if(V>w)break;var{transferSize:k,initiatorType:b}=_;k&&TM(b)&&(_=_.responseEnd,W+=k*(_<w?1:(w-V)/(_-V)))}if(--X,Z+=8*(B+W)/(N.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function PG($){return $.nodeType===9?$:$.ownerDocument}function zM($){switch($){case $9:return A9;case mG:return vJ;default:return n8}}function _M($,Z){if($===n8)switch(Z){case"svg":return A9;case"math":return vJ;default:return n8}return $===A9&&Z==="foreignObject"?n8:$}function nX($,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 pL(){var $=window.event;if($&&$.type==="popstate"){if($===AU)return!1;return AU=$,!0}return AU=null,!1}function b7(){var $=window.event;return $&&$!==AZ?$.type:null}function f7(){var $=window.event;return $&&$!==AZ?$.timeStamp:-1.1}function cL($){setTimeout(function(){throw $})}function lL($,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 rL(){}function sL($,Z,G,X){uL($,Z,G,X),$[R5]=X}function LM($){Y7($,"")}function nL($,Z,G){$.nodeValue=G}function VM($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[R5]||null;if(Z!==null){var G=E0($);G!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,G0(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,G0(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 I6($){return $==="head"}function oL($,Z){$.removeChild(Z)}function aL($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function EM($,Z){var G=Z,X=0;do{var N=G.nextSibling;if($.removeChild(G),N&&N.nodeType===8)if(G=N.data,G===jZ||G===SJ){if(X===0){$.removeChild(N),n$(Z);return}X--}else if(G===DZ||G===a6||G===X$||G===j9||G===q$)X++;else if(G===ZP)y7($.ownerDocument.documentElement);else if(G===GP){G=$.ownerDocument.head,y7(G);for(var B=G.firstChild;B;){var{nextSibling:W,nodeName:w}=B;B[p7]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&B.rel.toLowerCase()==="stylesheet"||G.removeChild(B),B=W}}else G===QP&&y7($.ownerDocument.body);G=N}while(G);n$(Z)}function PM($,Z){var G=$;$=0;do{var X=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||""),X&&X.nodeType===8)if(G=X.data,G===jZ)if($===0)break;else $--;else G!==DZ&&G!==a6&&G!==X$&&G!==j9||$++;G=X}while(G)}function iL($){PM($,!0)}function tL($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function eL($){$.nodeValue=""}function $V($){PM($,!1)}function ZV($,Z){Z=Z[JP],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function QV($,Z){$.nodeValue=Z}function oX($){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":oX(G),e(G);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(G.rel.toLowerCase()==="stylesheet")continue}$.removeChild(G)}}function GV($,Z,G,X){for(;$.nodeType===1;){var N=G;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!X&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!X)if(Z==="input"&&$.type==="hidden"){Y1(N.name,"name");var B=N.name==null?null:""+N.name;if(N.type==="hidden"&&$.getAttribute("name")===B)return $}else return $;else if(!$[p7])switch(Z){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(B=$.getAttribute("rel"),B==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(B!==N.rel||$.getAttribute("href")!==(N.href==null||N.href===""?null:N.href)||$.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin)||$.getAttribute("title")!==(N.title==null?null:N.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(B=$.getAttribute("src"),(B!==(N.src==null?null:N.src)||$.getAttribute("type")!==(N.type==null?null:N.type)||$.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin))&&B&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=a5($.nextSibling),$===null)break}return null}function JV($,Z,G){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!G)return null;if($=a5($.nextSibling),$===null)return null}return $}function CM($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=a5($.nextSibling),$===null)return null}return $}function aX($){return $.data===a6||$.data===X$}function iX($){return $.data===j9||$.data===a6&&$.ownerDocument.readyState!==Fw}function qV($,Z){var G=$.ownerDocument;if($.data===X$)$._reactRetry=Z;else if($.data!==a6||G.readyState!==Fw)Z();else{var X=function(){Z(),G.removeEventListener("DOMContentLoaded",X)};G.addEventListener("DOMContentLoaded",X),$._reactRetry=X}}function a5($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===DZ||Z===j9||Z===a6||Z===X$||Z===q$||Z===OU||Z===Mw)break;if(Z===jZ||Z===SJ)return null}}return $}function IM($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),G={},X=$.attributes,N=0;N<X.length;N++){var B=X[N];G[MM(B.name)]=B.name.toLowerCase()==="style"?lX($):B.value}return{type:Z,props:G}}return $.nodeType===8?$.data===q$?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function OM($,Z,G){return G===null||G[$P]!==!0?($.nodeValue===Z?$=null:(Z=C6(Z),$=C6($.nodeValue)===Z?null:$.nodeValue),$):null}function tX($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===jZ||G===SJ){if(Z===0)return a5($.nextSibling);Z--}else G!==DZ&&G!==j9&&G!==a6&&G!==X$&&G!==q$||Z++}$=$.nextSibling}return null}function DM($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var G=$.data;if(G===DZ||G===j9||G===a6||G===X$||G===q$){if(Z===0)return $;Z--}else G!==jZ&&G!==SJ||Z++}$=$.previousSibling}return null}function XV($){n$($)}function YV($){n$($)}function UV($){n$($)}function jM($,Z,G,X,N){switch(N&&N3($,X.ancestorInfo),Z=PG(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 NV($,Z,G,X){if(!G[A6]&&E0(G)){var N=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.",N,N,N)}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(N=G.attributes;N.length;)G.removeAttributeNode(N[0]);Q5(G,$,Z),G[G5]=X,G[R5]=Z}function y7($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);e($)}function CG($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function AM($,Z,G){var X=S9;if(X&&typeof Z==="string"&&Z){var N=Y4(Z);N='link[rel="'+$+'"][href="'+N+'"]',typeof G==="string"&&(N+='[crossorigin="'+G+'"]'),_w.has(N)||(_w.add(N),$={rel:$,crossOrigin:G,href:Z},X.querySelector(N)===null&&(Z=X.createElement("link"),Q5(Z,"link",$),F0(Z),X.head.appendChild(Z)))}}function SM($,Z,G,X){var N=(N=D6.current)?CG(N):null;if(!N)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=r$(G.href),Z=a0(N).hoistableStyles,X=Z.get(G),X||(X={type:"style",instance:null,count:0,state:null},Z.set(G,X)),X):{type:"void",instance:null,count:0,state:null};case"link":if(G.rel==="stylesheet"&&typeof G.href==="string"&&typeof G.precedence==="string"){$=r$(G.href);var B=a0(N).hoistableStyles,W=B.get($);if(!W&&(N=N.ownerDocument||N,W={type:"stylesheet",instance:null,count:0,state:{loading:U$,preload:null}},B.set($,W),(B=N.querySelector(g7($)))&&!B._p&&(W.instance=B,W.state.loading=SZ|z4),!_4.has($))){var w={rel:"preload",as:"style",href:G.href,crossOrigin:G.crossOrigin,integrity:G.integrity,media:G.media,hrefLang:G.hrefLang,referrerPolicy:G.referrerPolicy};_4.set($,w),B||KV(N,$,w,W.state)}if(Z&&X===null)throw G=`
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 R4($){$!==r7&&$.next===null&&(r7===null?nG=r7=$:r7=r7.next=$),oG=!0,x.actQueue!==null?hN||(hN=!0,fM()):gN||(gN=!0,fM())}function s$($,Z){if(!uN&&oG){uN=!0;do{var J=!1;for(var Y=nG;Y!==null;){if(!Z)if($!==0){var U=Y.pendingLanes;if(U===0)var K=0;else{var{suspendedLanes:w,pingedLanes:R}=Y;K=(1<<31-E5(42|$)+1)-1,K&=U&~(w&~R),K=K&201326741?K&201326741|1:K?K|2:0}K!==0&&(J=!0,kM(Y,K))}else K=y0,K=y2(Y,Y===F1?K:0,Y.cancelPendingCommit!==null||Y.timeoutHandle!==_9),(K&3)===0||g2(Y,K)||(J=!0,kM(Y,K));Y=Y.next}}while(J);uN=!1}}function yL(){lZ=window.event,eX()}function eX(){oG=hN=gN=!1;var $=0;K2!==0&&pL()&&($=K2);for(var Z=G5(),J=null,Y=nG;Y!==null;){var U=Y.next,K=vM(Y,Z);if(K===0)Y.next=null,J===null?nG=U:J.next=U,U===null&&(r7=J);else if(J=Y,$!==0||(K&3)!==0)oG=!0;Y=U}n1!==U2&&n1!==lG||s$($,!1),K2!==0&&(K2=0)}function vM($,Z){for(var{suspendedLanes:J,pingedLanes:Y,expirationTimes:U}=$,K=$.pendingLanes&-62914561;0<K;){var w=31-E5(K),R=1<<w,P=U[w];if(P===-1){if((R&J)===0||(R&Y)!==0)U[w]=Rq(R,Z)}else P<=Z&&($.expiredLanes|=R);K&=~R}if(Z=F1,J=y0,J=y2($,$===Z?J:0,$.cancelPendingCommit!==null||$.timeoutHandle!==_9),Y=$.callbackNode,J===0||$===Z&&(Y1===W9||Y1===R9)||$.cancelPendingCommit!==null)return Y!==null&&$Y(Y),$.callbackNode=null,$.callbackPriority=0;if((J&3)===0||g2($,J)){if(Z=J&-J,Z!==$.callbackPriority||x.actQueue!==null&&Y!==xN)$Y(Y);else return Z;switch(_(J)){case B6:case s6:J=fY;break;case V4:J=w7;break;case UG:J=yY;break;default:J=w7}return Y=bM.bind(null,$),x.actQueue!==null?(x.actQueue.push(Y),J=xN):J=bY(J,Y),$.callbackPriority=Z,$.callbackNode=J,Z}return Y!==null&&$Y(Y),$.callbackPriority=2,$.callbackNode=null,2}function bM($,Z){if(EG=OG=!1,lZ=window.event,n1!==U2&&n1!==lG)return $.callbackNode=null,$.callbackPriority=0,null;var J=$.callbackNode;if(e6===cG&&(e6=jN),l$()&&$.callbackNode!==J)return null;var Y=y0;if(Y=y2($,$===F1?Y:0,$.cancelPendingCommit!==null||$.timeoutHandle!==_9),Y===0)return null;return HM($,Y,Z),vM($,G5()),$.callbackNode!=null&&$.callbackNode===J?bM.bind(null,$):null}function kM($,Z){if(l$())return null;OG=EG,EG=!1,HM($,Z,!0)}function $Y($){$!==xN&&$!==null&&I_($)}function fM(){x.actQueue!==null&&x.actQueue.push(function(){return eX(),null}),XI(function(){(a0&(e1|F6))!==Y5?bY(kY,yL):eX()})}function ZY(){if(K2===0){var $=U9;$===0&&($=XG,XG<<=1,(XG&261888)===0&&(XG=256)),K2=$}return K2}function yM($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return B1($,"action"),V$(""+$)}function gM($,Z){var J=Z.ownerDocument.createElement("input");return J.name=Z.name,J.value=Z.value,$.id&&J.setAttribute("form",$.id),Z.parentNode.insertBefore(J,Z),$=new FormData($),J.parentNode.removeChild(J),$}function gL($,Z,J,Y,U){if(Z==="submit"&&J&&J.stateNode===U){var K=yM((U[A5]||null).action),w=Y.submitter;w&&(Z=(Z=w[A5]||null)?yM(Z.formAction):w.getAttribute("formAction"),Z!==null&&(K=Z,w=null));var R=new FG("action","action",null,Y,U);$.push({event:R,listeners:[{instance:null,listener:function(){if(Y.defaultPrevented){if(K2!==0){var P=w?gM(U,w):new FormData(U),L={pending:!0,data:P,method:U.method,action:K};Object.freeze(L),CX(J,L,null,P)}}else typeof K==="function"&&(R.preventDefault(),P=w?gM(U,w):new FormData(U),L={pending:!0,data:P,method:U.method,action:K},Object.freeze(L),CX(J,L,K,P))},currentTarget:U}]})}}function rJ($,Z,J){$.currentTarget=J;try{Z($)}catch(Y){tY(Y)}$.currentTarget=null}function hM($,Z){Z=(Z&4)!==0;for(var J=0;J<$.length;J++){var Y=$[J];$:{var U=void 0,K=Y.event;if(Y=Y.listeners,Z)for(var w=Y.length-1;0<=w;w--){var R=Y[w],P=R.instance,L=R.currentTarget;if(R=R.listener,P!==U&&K.isPropagationStopped())break $;P!==null?G0(P,rJ,K,R,L):rJ(K,R,L),U=P}else for(w=0;w<Y.length;w++){if(R=Y[w],P=R.instance,L=R.currentTarget,R=R.listener,P!==U&&K.isPropagationStopped())break $;P!==null?G0(P,rJ,K,R,L):rJ(K,R,L),U=P}}}}function s0($,Z){mN.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var J=Z[gY];J===void 0&&(J=Z[gY]=new Set);var Y=$+"__bubble";J.has(Y)||(uM(Z,$,2,!1),J.add(Y))}function QY($,Z,J){mN.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),uM(J,$,Y,Z)}function JY($){if(!$[aG]){$[aG]=!0,fF.forEach(function(J){J!=="selectionchange"&&(mN.has(J)||QY(J,!1,$),QY(J,!0,$))});var Z=$.nodeType===9?$:$.ownerDocument;Z===null||Z[aG]||(Z[aG]=!0,QY("selectionchange",!1,Z))}}function uM($,Z,J,Y){switch(TF(Z)){case B6:var U=R_;break;case s6:U=T_;break;default:U=zY}J=U.bind(null,Z,J,$),U=void 0,!dY||Z!=="touchstart"&&Z!=="touchmove"&&Z!=="wheel"||(U=!0),Y?U!==void 0?$.addEventListener(Z,J,{capture:!0,passive:U}):$.addEventListener(Z,J,!0):U!==void 0?$.addEventListener(Z,J,{passive:U}):$.addEventListener(Z,J,!1)}function GY($,Z,J,Y,U){var K=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 P=w.tag;if((P===3||P===4)&&w.stateNode.containerInfo===U)return;w=w.return}for(;R!==null;){if(w=Y0(R),w===null)return;if(P=w.tag,P===5||P===6||P===26||P===27){Y=K=w;continue $}R=R.parentNode}}Y=Y.return}aB(function(){var L=K,k=Oq(J),f=[];$:{var S=Tw.get($);if(S!==void 0){var g=FG,t=$;switch($){case"keypress":if($J(J)===0)break $;case"keydown":case"keyup":g=HV;break;case"focusin":t="focus",g=rY;break;case"focusout":t="blur",g=rY;break;case"beforeblur":case"afterblur":g=rY;break;case"click":if(J.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Gw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=$V;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=wV;break;case Fw:case ww:case Ww:g=JV;break;case Rw:g=RV;break;case"scroll":case"scrollend":g=t_;break;case"wheel":g=zV;break;case"copy":case"cut":case"paste":g=qV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Xw;break;case"toggle":case"beforetoggle":g=CV}var J0=(Z&4)!==0,R1=!J0&&($==="scroll"||$==="scrollend"),n0=J0?S!==null?S+"Capture":null:S;J0=[];for(var E=L,D;E!==null;){var b=E;if(D=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||D===null||n0===null||(b=I$(E,n0),b!=null&&J0.push(n$(E,b,D))),R1)break;E=E.return}0<J0.length&&(S=new g(S,t,null,J,k),f.push({event:S,listeners:J0}))}}if((Z&7)===0){$:{if(S=$==="mouseover"||$==="pointerover",g=$==="mouseout"||$==="pointerout",S&&J!==qZ&&(t=J.relatedTarget||J.fromElement)&&(Y0(t)||t[r8]))break $;if(g||S){if(S=k.window===k?k:(S=k.ownerDocument)?S.defaultView||S.parentWindow:window,g){if(t=J.relatedTarget||J.toElement,g=L,t=t?Y0(t):null,t!==null&&(R1=j(t),J0=t.tag,t!==R1||J0!==5&&J0!==27&&J0!==6))t=null}else g=null,t=L;if(g!==t){if(J0=Gw,b="onMouseLeave",n0="onMouseEnter",E="mouse",$==="pointerout"||$==="pointerover")J0=Xw,b="onPointerLeave",n0="onPointerEnter",E="pointer";if(R1=g==null?S:A0(g),D=t==null?S:A0(t),S=new J0(b,E+"leave",g,J,k),S.target=R1,S.relatedTarget=D,b=null,Y0(k)===L&&(J0=new J0(n0,E+"enter",t,J,k),J0.target=D,J0.relatedTarget=R1,b=J0),R1=b,g&&t)Z:{J0=hL,n0=g,E=t,D=0;for(b=n0;b;b=J0(b))D++;b=0;for(var m=E;m;m=J0(m))b++;for(;0<D-b;)n0=J0(n0),D--;for(;0<b-D;)E=J0(E),b--;for(;D--;){if(n0===E||E!==null&&n0===E.alternate){J0=n0;break Z}n0=J0(n0),E=J0(E)}J0=null}else J0=null;g!==null&&xM(f,S,g,J0,!1),t!==null&&R1!==null&&xM(f,R1,t,J0,!0)}}}$:{if(S=L?A0(L):window,g=S.nodeName&&S.nodeName.toLowerCase(),g==="select"||g==="input"&&S.type==="file")var Z0=JK;else if(ZK(S))if(Hw)Z0=aC;else{Z0=nC;var I0=sC}else g=S.nodeName,!g||g.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?L&&_$(L.elementType)&&(Z0=JK):Z0=oC;if(Z0&&(Z0=Z0($,L))){QK(f,Z0,J,k);break $}I0&&I0($,S,L),$==="focusout"&&L&&S.type==="number"&&L.memoizedProps.value!=null&&Pq(S,"number",S.value)}switch(I0=L?A0(L):window,$){case"focusin":if(ZK(I0)||I0.contentEditable==="true")_7=I0,nY=L,HZ=null;break;case"focusout":HZ=nY=_7=null;break;case"mousedown":oY=!0;break;case"contextmenu":case"mouseup":case"dragend":oY=!1,BK(f,J,k);break;case"selectionchange":if(IV)break;case"keydown":case"keyup":BK(f,J,k)}var W0;if(sY)$:{switch($){case"compositionstart":var N0="onCompositionStart";break $;case"compositionend":N0="onCompositionEnd";break $;case"compositionupdate":N0="onCompositionUpdate";break $}N0=void 0}else L7?eB($,J)&&(N0="onCompositionEnd"):$==="keydown"&&J.keyCode===Yw&&(N0="onCompositionStart");if(N0&&(Nw&&J.locale!=="ko"&&(L7||N0!=="onCompositionStart"?N0==="onCompositionEnd"&&L7&&(W0=iB()):(s8=k,pY=("value"in s8)?s8.value:s8.textContent,L7=!0)),I0=sJ(L,N0),0<I0.length&&(N0=new qw(N0,$,null,J,k),f.push({event:N0,listeners:I0}),W0?N0.data=W0:(W0=$K(J),W0!==null&&(N0.data=W0)))),W0=_V?pC($,J):cC($,J))N0=sJ(L,"onBeforeInput"),0<N0.length&&(I0=new YV("onBeforeInput","beforeinput",null,J,k),f.push({event:I0,listeners:N0}),I0.data=W0);gL(f,$,L,J,k)}hM(f,Z)})}function n$($,Z,J){return{instance:$,listener:Z,currentTarget:J}}function sJ($,Z){for(var J=Z+"Capture",Y=[];$!==null;){var U=$,K=U.stateNode;if(U=U.tag,U!==5&&U!==26&&U!==27||K===null||(U=I$($,J),U!=null&&Y.unshift(n$($,U,K)),U=I$($,Z),U!=null&&Y.push(n$($,U,K))),$.tag===3)return Y;$=$.return}return[]}function hL($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function xM($,Z,J,Y,U){for(var K=Z._reactName,w=[];J!==null&&J!==Y;){var R=J,P=R.alternate,L=R.stateNode;if(R=R.tag,P!==null&&P===Y)break;R!==5&&R!==26&&R!==27||L===null||(P=L,U?(L=I$(J,K),L!=null&&w.unshift(n$(J,L,P))):U||(L=I$(J,K),L!=null&&w.push(n$(J,L,P)))),J=J.return}w.length!==0&&$.push({event:Z,listeners:w})}function qY($,Z){uC($,Z),$!=="input"&&$!=="textarea"&&$!=="select"||Z==null||Z.value!==null||Qw||(Qw=!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 J={registrationNameDependencies:J9,possibleRegistrationNames:hY};_$($)||typeof Z.is==="string"||mC($,Z,J),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 J5($,Z,J,Y){Z!==J&&(J=m8(J),m8(Z)!==J&&(Y[$]=Z))}function uL($,Z,J){Z.forEach(function(Y){J[pM(Y)]=Y==="style"?YY($):$.getAttribute(Y)})}function T4($,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 mM($,Z){return $=$.namespaceURI===KG||$.namespaceURI===T7?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=Z,$.innerHTML}function m8($){return E8($)&&(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.",f2($)),Q5($)),(typeof $==="string"?$:""+$).replace(iV,`
176
+ `).replace(tV,"")}function dM($,Z){return Z=m8(Z),m8($)===Z?!0:!1}function H1($,Z,J,Y,U,K){switch(J){case"children":if(typeof Y==="string")eQ(Y,Z,!1),Z==="body"||Z==="textarea"&&Y===""||L$($,Y);else if(typeof Y==="number"||typeof Y==="bigint")eQ(""+Y,Z,!1),Z!=="body"&&L$($,""+Y);break;case"className":aQ($,"class",Y);break;case"tabIndex":aQ($,"tabindex",Y);break;case"dir":case"role":case"viewBox":case"width":case"height":aQ($,J,Y);break;case"style":sB($,Y,K);break;case"data":if(Z!=="object"){aQ($,"data",Y);break}case"src":case"href":if(Y===""&&(Z!=="a"||J!=="href")){J==="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.',J,J):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.',J,J),$.removeAttribute(J);break}if(Y==null||typeof Y==="function"||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(J);break}B1(Y,J),Y=V$(""+Y),$.setAttribute(J,Y);break;case"action":case"formAction":if(Y!=null&&(Z==="form"?J==="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||eG||(eG=!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||tG||(tG=!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"?J==="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"||iG?Z!=="button"||U.type==null||U.type==="submit"||iG?typeof Y==="function"&&(U.name==null||mW||(mW=!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||eG||(eG=!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||tG||(tG=!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."))):(iG=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(iG=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):J==="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(J,"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 K==="function"&&(J==="formAction"?(Z!=="input"&&H1($,Z,"name",U.name,U,null),H1($,Z,"formEncType",U.formEncType,U,null),H1($,Z,"formMethod",U.formMethod,U,null),H1($,Z,"formTarget",U.formTarget,U,null)):(H1($,Z,"encType",U.encType,U,null),H1($,Z,"method",U.method,U,null),H1($,Z,"target",U.target,U,null)));if(Y==null||typeof Y==="symbol"||typeof Y==="boolean"){$.removeAttribute(J);break}B1(Y,J),Y=V$(""+Y),$.setAttribute(J,Y);break;case"onClick":Y!=null&&(typeof Y!=="function"&&T4(J,Y),$.onclick=m4);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&T4(J,Y),s0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&T4(J,Y),s0("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(J=Y.__html,J!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=J}}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}B1(Y,J),J=V$(""+Y),$.setAttributeNS(P9,"xlink:href",J);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"?(B1(Y,J),$.setAttribute(J,""+Y)):$.removeAttribute(J);break;case"inert":Y!==""||$3[J]||($3[J]=!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.",J));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(J,""):$.removeAttribute(J);break;case"capture":case"download":Y===!0?$.setAttribute(J,""):Y!==!1&&Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"?(B1(Y,J),$.setAttribute(J,Y)):$.removeAttribute(J);break;case"cols":case"rows":case"size":case"span":Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&!isNaN(Y)&&1<=Y?(B1(Y,J),$.setAttribute(J,Y)):$.removeAttribute(J);break;case"rowSpan":case"start":Y==null||typeof Y==="function"||typeof Y==="symbol"||isNaN(Y)?$.removeAttribute(J):(B1(Y,J),$.setAttribute(J,Y));break;case"popover":s0("beforetoggle",$),s0("toggle",$),oQ($,"popover",Y);break;case"xlinkActuate":x4($,P9,"xlink:actuate",Y);break;case"xlinkArcrole":x4($,P9,"xlink:arcrole",Y);break;case"xlinkRole":x4($,P9,"xlink:role",Y);break;case"xlinkShow":x4($,P9,"xlink:show",Y);break;case"xlinkTitle":x4($,P9,"xlink:title",Y);break;case"xlinkType":x4($,P9,"xlink:type",Y);break;case"xmlBase":x4($,dN,"xml:base",Y);break;case"xmlLang":x4($,dN,"xml:lang",Y);break;case"xmlSpace":x4($,dN,"xml:space",Y);break;case"is":K!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),oQ($,"is",Y);break;case"innerText":case"textContent":break;case"popoverTarget":dW||Y==null||typeof Y!=="object"||(dW=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Y));default:!(2<J.length)||J[0]!=="o"&&J[0]!=="O"||J[1]!=="n"&&J[1]!=="N"?(J=nB(J),oQ($,J,Y)):J9.hasOwnProperty(J)&&Y!=null&&typeof Y!=="function"&&T4(J,Y)}}function XY($,Z,J,Y,U,K){switch(J){case"style":sB($,Y,K);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(J=Y.__html,J!=null){if(U.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=J}}break;case"children":typeof Y==="string"?L$($,Y):(typeof Y==="number"||typeof Y==="bigint")&&L$($,""+Y);break;case"onScroll":Y!=null&&(typeof Y!=="function"&&T4(J,Y),s0("scroll",$));break;case"onScrollEnd":Y!=null&&(typeof Y!=="function"&&T4(J,Y),s0("scrollend",$));break;case"onClick":Y!=null&&(typeof Y!=="function"&&T4(J,Y),$.onclick=m4);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(J9.hasOwnProperty(J))Y!=null&&typeof Y!=="function"&&T4(J,Y);else $:{if(J[0]==="o"&&J[1]==="n"&&(U=J.endsWith("Capture"),Z=J.slice(2,U?J.length-7:void 0),K=$[A5]||null,K=K!=null?K[J]:null,typeof K==="function"&&$.removeEventListener(Z,K,U),typeof Y==="function")){typeof K!=="function"&&K!==null&&(J in $?$[J]=null:$.hasAttribute(J)&&$.removeAttribute(J)),$.addEventListener(Z,Y,U);break $}J in $?$[J]=Y:Y===!0?$.setAttribute(J,""):oQ($,J,Y)}}}function K5($,Z,J){switch(qY(Z,J),Z){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":s0("error",$),s0("load",$);var Y=!1,U=!1,K;for(K in J)if(J.hasOwnProperty(K)){var w=J[K];if(w!=null)switch(K){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:H1($,Z,K,w,J,null)}}U&&H1($,Z,"srcSet",J.srcSet,J,null),Y&&H1($,Z,"src",J.src,J,null);return;case"input":D8("input",J),s0("invalid",$);var R=K=w=U=null,P=null,L=null;for(Y in J)if(J.hasOwnProperty(Y)){var k=J[Y];if(k!=null)switch(Y){case"name":U=k;break;case"type":w=k;break;case"checked":P=k;break;case"defaultChecked":L=k;break;case"value":K=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:H1($,Z,Y,k,J,null)}}jB($,J),vB($,K,R,P,L,w,U,!1);return;case"select":D8("select",J),s0("invalid",$),Y=w=K=null;for(U in J)if(J.hasOwnProperty(U)&&(R=J[U],R!=null))switch(U){case"value":K=R;break;case"defaultValue":w=R;break;case"multiple":Y=R;default:H1($,Z,U,R,J,null)}fB($,J),Z=K,J=w,$.multiple=!!Y,Z!=null?o9($,!!Y,Z,!1):J!=null&&o9($,!!Y,J,!0);return;case"textarea":D8("textarea",J),s0("invalid",$),K=U=Y=null;for(w in J)if(J.hasOwnProperty(w)&&(R=J[w],R!=null))switch(w){case"value":Y=R;break;case"defaultValue":U=R;break;case"children":K=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:H1($,Z,w,R,J,null)}yB($,J),hB($,Y,U,K);return;case"option":bB($,J);for(P in J)if(J.hasOwnProperty(P)&&(Y=J[P],Y!=null))switch(P){case"selected":$.selected=Y&&typeof Y!=="function"&&typeof Y!=="symbol";break;default:H1($,Z,P,Y,J,null)}return;case"dialog":s0("beforetoggle",$),s0("toggle",$),s0("cancel",$),s0("close",$);break;case"iframe":case"object":s0("load",$);break;case"video":case"audio":for(Y=0;Y<dZ.length;Y++)s0(dZ[Y],$);break;case"image":s0("error",$),s0("load",$);break;case"details":s0("toggle",$);break;case"embed":case"source":case"link":s0("error",$),s0("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in J)if(J.hasOwnProperty(L)&&(Y=J[L],Y!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(Z+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:H1($,Z,L,Y,J,null)}return;default:if(_$(Z)){for(k in J)J.hasOwnProperty(k)&&(Y=J[k],Y!==void 0&&XY($,Z,k,Y,J,void 0));return}}for(R in J)J.hasOwnProperty(R)&&(Y=J[R],Y!=null&&H1($,Z,R,Y,J,null))}function xL($,Z,J,Y){switch(qY(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,K=null,w=null,R=null,P=null,L=null,k=null;for(g in J){var f=J[g];if(J.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":P=f;default:Y.hasOwnProperty(g)||H1($,Z,g,null,Y,f)}}for(var S in Y){var g=Y[S];if(f=J[S],Y.hasOwnProperty(S)&&(g!=null||f!=null))switch(S){case"type":K=g;break;case"name":U=g;break;case"checked":L=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&&H1($,Z,S,g,Y,f)}}Z=J.type==="checkbox"||J.type==="radio"?J.checked!=null:J.value!=null,Y=Y.type==="checkbox"||Y.type==="radio"?Y.checked!=null:Y.value!=null,Z||!Y||xW||(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"),xW=!0),!Z||Y||uW||(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"),uW=!0),zq($,w,R,P,L,k,K,U);return;case"select":g=w=R=S=null;for(K in J)if(P=J[K],J.hasOwnProperty(K)&&P!=null)switch(K){case"value":break;case"multiple":g=P;default:Y.hasOwnProperty(K)||H1($,Z,K,null,Y,P)}for(U in Y)if(K=Y[U],P=J[U],Y.hasOwnProperty(U)&&(K!=null||P!=null))switch(U){case"value":S=K;break;case"defaultValue":R=K;break;case"multiple":w=K;default:K!==P&&H1($,Z,U,K,Y,P)}Y=R,Z=w,J=g,S!=null?o9($,!!Z,S,!1):!!J!==!!Z&&(Y!=null?o9($,!!Z,Y,!0):o9($,!!Z,Z?[]:"",!1));return;case"textarea":g=S=null;for(R in J)if(U=J[R],J.hasOwnProperty(R)&&U!=null&&!Y.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:H1($,Z,R,null,Y,U)}for(w in Y)if(U=Y[w],K=J[w],Y.hasOwnProperty(w)&&(U!=null||K!=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!==K&&H1($,Z,w,U,Y,K)}gB($,S,g);return;case"option":for(var t in J)if(S=J[t],J.hasOwnProperty(t)&&S!=null&&!Y.hasOwnProperty(t))switch(t){case"selected":$.selected=!1;break;default:H1($,Z,t,null,Y,S)}for(P in Y)if(S=Y[P],g=J[P],Y.hasOwnProperty(P)&&S!==g&&(S!=null||g!=null))switch(P){case"selected":$.selected=S&&typeof S!=="function"&&typeof S!=="symbol";break;default:H1($,Z,P,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 J0 in J)S=J[J0],J.hasOwnProperty(J0)&&S!=null&&!Y.hasOwnProperty(J0)&&H1($,Z,J0,null,Y,S);for(L in Y)if(S=Y[L],g=J[L],Y.hasOwnProperty(L)&&S!==g&&(S!=null||g!=null))switch(L){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:H1($,Z,L,S,Y,g)}return;default:if(_$(Z)){for(var R1 in J)S=J[R1],J.hasOwnProperty(R1)&&S!==void 0&&!Y.hasOwnProperty(R1)&&XY($,Z,R1,void 0,Y,S);for(k in Y)S=Y[k],g=J[k],!Y.hasOwnProperty(k)||S===g||S===void 0&&g===void 0||XY($,Z,k,S,Y,g);return}}for(var n0 in J)S=J[n0],J.hasOwnProperty(n0)&&S!=null&&!Y.hasOwnProperty(n0)&&H1($,Z,n0,null,Y,S);for(f in Y)S=Y[f],g=J[f],!Y.hasOwnProperty(f)||S===g||S==null&&g==null||H1($,Z,f,S,Y,g)}function pM($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function YY($){var Z={};$=$.style;for(var J=0;J<$.length;J++){var Y=$[J];Z[Y]=$.getPropertyValue(Y)}return Z}function cM($,Z,J){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="",K;for(K in Z)if(Z.hasOwnProperty(K)){var w=Z[K];w!=null&&typeof w!=="boolean"&&w!==""&&(K.indexOf("--")===0?(R$(w,K),Y+=U+K+":"+(""+w).trim()):typeof w!=="number"||w===0||$w.has(K)?(R$(w,K),Y+=U+K.replace(oF,"-$1").toLowerCase().replace(aF,"-ms-")+":"+(""+w).trim()):Y+=U+K.replace(oF,"-$1").toLowerCase().replace(aF,"-ms-")+":"+w+"px",U=";")}Y=Y||null,Z=$.getAttribute("style"),Z!==Y&&(Y=m8(Y),m8(Z)!==Y&&(J.style=YY($)))}}function L6($,Z,J,Y,U,K){if(U.delete(J),$=$.getAttribute(J),$===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(B1(Y,Z),$===""+Y)return}J5(Z,$,Y,K)}function lM($,Z,J,Y,U,K){if(U.delete(J),$=$.getAttribute(J),$===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}J5(Z,$,Y,K)}function NY($,Z,J,Y,U,K){if(U.delete(J),$=$.getAttribute(J),$===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(B1(Y,J),$===""+Y)return}J5(Z,$,Y,K)}function rM($,Z,J,Y,U,K){if(U.delete(J),$=$.getAttribute(J),$===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)&&(B1(Y,Z),$===""+Y))return}J5(Z,$,Y,K)}function UY($,Z,J,Y,U,K){if(U.delete(J),$=$.getAttribute(J),$===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(B1(Y,Z),J=V$(""+Y),$===J)return}J5(Z,$,Y,K)}function sM($,Z,J,Y){for(var U={},K=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:K.add(w[R].name)}if(_$(Z)){for(var P in J)if(J.hasOwnProperty(P)){var L=J[P];if(L!=null){if(J9.hasOwnProperty(P))typeof L!=="function"&&T4(P,L);else if(J.suppressHydrationWarning!==!0)switch(P){case"children":typeof L!=="string"&&typeof L!=="number"||J5("children",$.textContent,L,U);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":w=$.innerHTML,L=L?L.__html:void 0,L!=null&&(L=mM($,L),J5(P,w,L,U));continue;case"style":K.delete(P),cM($,L,U);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":K.delete(P.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",P);continue;case"className":K.delete("class"),w=AB($,"class",L),J5("className",w,L,U);continue;default:Y.context===U8&&Z!=="svg"&&Z!=="math"?K.delete(P.toLowerCase()):K.delete(P),w=AB($,P,L),J5(P,w,L,U)}}}}else for(L in J)if(J.hasOwnProperty(L)&&(P=J[L],P!=null)){if(J9.hasOwnProperty(L))typeof P!=="function"&&T4(L,P);else if(J.suppressHydrationWarning!==!0)switch(L){case"children":typeof P!=="string"&&typeof P!=="number"||J5("children",$.textContent,P,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,P=P?P.__html:void 0,P!=null&&(P=mM($,P),w!==P&&(U[L]={__html:w}));continue;case"className":L6($,L,"class",P,K,U);continue;case"tabIndex":L6($,L,"tabindex",P,K,U);continue;case"style":K.delete(L),cM($,P,U);continue;case"multiple":K.delete(L),J5(L,$.multiple,P,U);continue;case"muted":K.delete(L),J5(L,$.muted,P,U);continue;case"autoFocus":K.delete("autofocus"),J5(L,$.autofocus,P,U);continue;case"data":if(Z!=="object"){K.delete(L),w=$.getAttribute("data"),J5(L,w,P,U);continue}case"src":case"href":if(!(P!==""||Z==="a"&&L==="href"||Z==="object"&&L==="data")){L==="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.',L,L):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.',L,L);continue}UY($,L,L,P,K,U);continue;case"action":case"formAction":if(w=$.getAttribute(L),typeof P==="function"){K.delete(L.toLowerCase()),L==="formAction"?(K.delete("name"),K.delete("formenctype"),K.delete("formmethod"),K.delete("formtarget")):(K.delete("enctype"),K.delete("method"),K.delete("target"));continue}else if(w===eV){K.delete(L.toLowerCase()),J5(L,"function",P,U);continue}UY($,L,L.toLowerCase(),P,K,U);continue;case"xlinkHref":UY($,L,"xlink:href",P,K,U);continue;case"contentEditable":NY($,L,"contenteditable",P,K,U);continue;case"spellCheck":NY($,L,"spellcheck",P,K,U);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":NY($,L,L,P,K,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":lM($,L,L.toLowerCase(),P,K,U);continue;case"capture":case"download":$:{R=$;var k=w=L,f=U;if(K.delete(k),R=R.getAttribute(k),R===null)switch(typeof P){case"undefined":case"function":case"symbol":break $;default:if(P===!1)break $}else if(P!=null)switch(typeof P){case"function":case"symbol":break;case"boolean":if(P===!0&&R==="")break $;break;default:if(B1(P,w),R===""+P)break $}J5(w,R,P,f)}continue;case"cols":case"rows":case"size":case"span":$:{if(R=$,k=w=L,f=U,K.delete(k),R=R.getAttribute(k),R===null)switch(typeof P){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(P)||1>P)break $}else if(P!=null)switch(typeof P){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(P)||1>P)&&(B1(P,w),R===""+P))break $}J5(w,R,P,f)}continue;case"rowSpan":rM($,L,"rowspan",P,K,U);continue;case"start":rM($,L,L,P,K,U);continue;case"xHeight":L6($,L,"x-height",P,K,U);continue;case"xlinkActuate":L6($,L,"xlink:actuate",P,K,U);continue;case"xlinkArcrole":L6($,L,"xlink:arcrole",P,K,U);continue;case"xlinkRole":L6($,L,"xlink:role",P,K,U);continue;case"xlinkShow":L6($,L,"xlink:show",P,K,U);continue;case"xlinkTitle":L6($,L,"xlink:title",P,K,U);continue;case"xlinkType":L6($,L,"xlink:type",P,K,U);continue;case"xmlBase":L6($,L,"xml:base",P,K,U);continue;case"xmlLang":L6($,L,"xml:lang",P,K,U);continue;case"xmlSpace":L6($,L,"xml:space",P,K,U);continue;case"inert":P!==""||$3[L]||($3[L]=!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.",L)),lM($,L,L,P,K,U);continue;default:if(!(2<L.length)||L[0]!=="o"&&L[0]!=="O"||L[1]!=="n"&&L[1]!=="N"){R=nB(L),w=!1,Y.context===U8&&Z!=="svg"&&Z!=="math"?K.delete(R.toLowerCase()):(k=L.toLowerCase(),k=HG.hasOwnProperty(k)?HG[k]||null:null,k!==null&&k!==L&&(w=!0,K.delete(k)),K.delete(R));$:if(k=$,f=R,R=P,z$(f))if(k.hasAttribute(f))k=k.getAttribute(f),B1(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||J5(L,R,P,U)}}}return 0<K.size&&J.suppressHydrationWarning!==!0&&uL($,K,U),Object.keys(U).length===0?null:U}function mL($,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 nM($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function dL(){if(typeof performance.getEntriesByType==="function"){for(var $=0,Z=0,J=performance.getEntriesByType("resource"),Y=0;Y<J.length;Y++){var U=J[Y],K=U.transferSize,w=U.initiatorType,R=U.duration;if(K&&R&&nM(w)){w=0,R=U.responseEnd;for(Y+=1;Y<J.length;Y++){var P=J[Y],L=P.startTime;if(L>R)break;var{transferSize:k,initiatorType:f}=P;k&&nM(f)&&(P=P.responseEnd,w+=k*(P<R?1:(R-L)/(P-L)))}if(--Y,Z+=8*(K+w)/(U.duration/1000),$++,10<$)break}}if(0<$)return Z/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function nJ($){return $.nodeType===9?$:$.ownerDocument}function oM($){switch($){case T7:return n7;case KG:return Q3;default:return U8}}function aM($,Z){if($===U8)switch(Z){case"svg":return n7;case"math":return Q3;default:return U8}return $===n7&&Z==="foreignObject"?U8:$}function BY($,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 pL(){var $=window.event;if($&&$.type==="popstate"){if($===rN)return!1;return rN=$,!0}return rN=null,!1}function o$(){var $=window.event;return $&&$!==lZ?$.type:null}function a$(){var $=window.event;return $&&$!==lZ?$.timeStamp:-1.1}function cL($){setTimeout(function(){throw $})}function lL($,Z,J){switch(Z){case"button":case"input":case"select":case"textarea":J.autoFocus&&$.focus();break;case"img":J.src?$.src=J.src:J.srcSet&&($.srcset=J.srcSet)}}function rL(){}function sL($,Z,J,Y){xL($,Z,J,Y),$[A5]=Y}function iM($){L$($,"")}function nL($,Z,J){$.nodeValue=J}function tM($){if(!$.__reactWarnedAboutChildrenConflict){var Z=$[A5]||null;if(Z!==null){var J=E0($);J!==null&&(typeof Z.children==="string"||typeof Z.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,G0(J,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,G0(J,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 d8($){return $==="head"}function oL($,Z){$.removeChild(Z)}function aL($,Z){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(Z)}function eM($,Z){var J=Z,Y=0;do{var U=J.nextSibling;if($.removeChild(J),U&&U.nodeType===8)if(J=U.data,J===cZ||J===Z3){if(Y===0){$.removeChild(U),H7(Z);return}Y--}else if(J===pZ||J===H2||J===L9||J===s7||J===C9)Y++;else if(J===ZI)i$($.ownerDocument.documentElement);else if(J===JI){J=$.ownerDocument.head,i$(J);for(var K=J.firstChild;K;){var{nextSibling:w,nodeName:R}=K;K[GZ]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&K.rel.toLowerCase()==="stylesheet"||J.removeChild(K),K=w}}else J===QI&&i$($.ownerDocument.body);J=U}while(J);H7(Z)}function $F($,Z){var J=$;$=0;do{var Y=J.nextSibling;if(J.nodeType===1?Z?(J._stashedDisplay=J.style.display,J.style.display="none"):(J.style.display=J._stashedDisplay||"",J.getAttribute("style")===""&&J.removeAttribute("style")):J.nodeType===3&&(Z?(J._stashedText=J.nodeValue,J.nodeValue=""):J.nodeValue=J._stashedText||""),Y&&Y.nodeType===8)if(J=Y.data,J===cZ)if($===0)break;else $--;else J!==pZ&&J!==H2&&J!==L9&&J!==s7||$++;J=Y}while(J)}function iL($){$F($,!0)}function tL($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function eL($){$.nodeValue=""}function $_($){$F($,!1)}function Z_($,Z){Z=Z[GI],Z=Z!==void 0&&Z!==null&&Z.hasOwnProperty("display")?Z.display:null,$.style.display=Z==null||typeof Z==="boolean"?"":(""+Z).trim()}function Q_($,Z){$.nodeValue=Z}function KY($){var Z=$.firstChild;Z&&Z.nodeType===10&&(Z=Z.nextSibling);for(;Z;){var J=Z;switch(Z=Z.nextSibling,J.nodeName){case"HTML":case"HEAD":case"BODY":KY(J),$0(J);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(J.rel.toLowerCase()==="stylesheet")continue}$.removeChild(J)}}function J_($,Z,J,Y){for(;$.nodeType===1;){var U=J;if($.nodeName.toLowerCase()!==Z.toLowerCase()){if(!Y&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Y)if(Z==="input"&&$.type==="hidden"){B1(U.name,"name");var K=U.name==null?null:""+U.name;if(U.type==="hidden"&&$.getAttribute("name")===K)return $}else return $;else if(!$[GZ])switch(Z){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(K=$.getAttribute("rel"),K==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(K!==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(K=$.getAttribute("src"),(K!==(U.src==null?null:U.src)||$.getAttribute("type")!==(U.type==null?null:U.type)||$.getAttribute("crossorigin")!==(U.crossOrigin==null?null:U.crossOrigin))&&K&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=Y6($.nextSibling),$===null)break}return null}function G_($,Z,J){if(Z==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!J)return null;if($=Y6($.nextSibling),$===null)return null}return $}function ZF($,Z){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!Z)return null;if($=Y6($.nextSibling),$===null)return null}return $}function HY($){return $.data===H2||$.data===L9}function MY($){return $.data===s7||$.data===H2&&$.ownerDocument.readyState!==cW}function q_($,Z){var J=$.ownerDocument;if($.data===L9)$._reactRetry=Z;else if($.data!==H2||J.readyState!==cW)Z();else{var Y=function(){Z(),J.removeEventListener("DOMContentLoaded",Y)};J.addEventListener("DOMContentLoaded",Y),$._reactRetry=Y}}function Y6($){for(;$!=null;$=$.nextSibling){var Z=$.nodeType;if(Z===1||Z===3)break;if(Z===8){if(Z=$.data,Z===pZ||Z===s7||Z===H2||Z===L9||Z===C9||Z===pN||Z===pW)break;if(Z===cZ||Z===Z3)return null}}return $}function QF($){if($.nodeType===1){for(var Z=$.nodeName.toLowerCase(),J={},Y=$.attributes,U=0;U<Y.length;U++){var K=Y[U];J[pM(K.name)]=K.name.toLowerCase()==="style"?YY($):K.value}return{type:Z,props:J}}return $.nodeType===8?$.data===C9?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function JF($,Z,J){return J===null||J[$I]!==!0?($.nodeValue===Z?$=null:(Z=m8(Z),$=m8($.nodeValue)===Z?null:$.nodeValue),$):null}function FY($){$=$.nextSibling;for(var Z=0;$;){if($.nodeType===8){var J=$.data;if(J===cZ||J===Z3){if(Z===0)return Y6($.nextSibling);Z--}else J!==pZ&&J!==s7&&J!==H2&&J!==L9&&J!==C9||Z++}$=$.nextSibling}return null}function GF($){$=$.previousSibling;for(var Z=0;$;){if($.nodeType===8){var J=$.data;if(J===pZ||J===s7||J===H2||J===L9||J===C9){if(Z===0)return $;Z--}else J!==cZ&&J!==Z3||Z++}$=$.previousSibling}return null}function X_($){H7($)}function Y_($){H7($)}function N_($){H7($)}function qF($,Z,J,Y,U){switch(U&&Iq($,Y.ancestorInfo),Z=nJ(J),$){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 U_($,Z,J,Y){if(!J[r8]&&E0(J)){var U=J.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=J.attributes;U.length;)J.removeAttributeNode(U[0]);K5(J,$,Z),J[H5]=Y,J[A5]=Z}function i$($){for(var Z=$.attributes;Z.length;)$.removeAttributeNode(Z[0]);$0($)}function oJ($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function XF($,Z,J){var Y=o7;if(Y&&typeof Z==="string"&&Z){var U=C6(Z);U='link[rel="'+$+'"][href="'+U+'"]',typeof J==="string"&&(U+='[crossorigin="'+J+'"]'),aW.has(U)||(aW.add(U),$={rel:$,crossOrigin:J,href:Z},Y.querySelector(U)===null&&(Z=Y.createElement("link"),K5(Z,"link",$),R0(Z),Y.head.appendChild(Z)))}}function YF($,Z,J,Y){var U=(U=c8.current)?oJ(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 J.precedence==="string"&&typeof J.href==="string"?(J=B7(J.href),Z=i0(U).hoistableStyles,Y=Z.get(J),Y||(Y={type:"style",instance:null,count:0,state:null},Z.set(J,Y)),Y):{type:"void",instance:null,count:0,state:null};case"link":if(J.rel==="stylesheet"&&typeof J.href==="string"&&typeof J.precedence==="string"){$=B7(J.href);var K=i0(U).hoistableStyles,w=K.get($);if(!w&&(U=U.ownerDocument||U,w={type:"stylesheet",instance:null,count:0,state:{loading:V9,preload:null}},K.set($,w),(K=U.querySelector(t$($)))&&!K._p&&(w.instance=K,w.state.loading=rZ|b6),!k6.has($))){var R={rel:"preload",as:"style",href:J.href,crossOrigin:J.crossOrigin,integrity:J.integrity,media:J.media,hrefLang:J.hrefLang,referrerPolicy:J.referrerPolicy};k6.set($,R),K||B_(U,$,R,w.state)}if(Z&&Y===null)throw J=`
177
177
 
178
- - `+IG(Z)+`
179
- + `+IG(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&&X!==null)throw G=`
178
+ - `+aJ(Z)+`
179
+ + `+aJ(J),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."+J);return w}if(Z&&Y!==null)throw J=`
180
180
 
181
- - `+IG(Z)+`
182
- + `+IG(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=s$(G),Z=a0(N).hoistableScripts,X=Z.get(G),X||(X={type:"script",instance:null,count:0,state:null},Z.set(G,X)),X):{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 IG($){var Z=0,G="<link";return typeof $.rel==="string"?(Z++,G+=' rel="'+$.rel+'"'):D4.call($,"rel")&&(Z++,G+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,G+=' href="'+$.href+'"'):D4.call($,"href")&&(Z++,G+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,G+=' precedence="'+$.precedence+'"'):D4.call($,"precedence")&&(Z++,G+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(G+=" ..."),G+" />"}function r$($){return'href="'+Y4($)+'"'}function g7($){return'link[rel="stylesheet"]['+$+"]"}function vM($){return y0({},$,{"data-precedence":$.precedence,precedence:null})}function KV($,Z,G,X){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?X.loading=SZ:(Z=$.createElement("link"),X.preload=Z,Z.addEventListener("load",function(){return X.loading|=SZ}),Z.addEventListener("error",function(){return X.loading|=Tw}),Q5(Z,"link",G),F0(Z),$.head.appendChild(Z))}function s$($){return'[src="'+Y4($)+'"]'}function h7($){return"script[async]"+$}function kM($,Z,G){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var X=$.querySelector('style[data-href~="'+Y4(G.href)+'"]');if(X)return Z.instance=X,F0(X),X;var N=y0({},G,{"data-href":G.href,"data-precedence":G.precedence,href:null,precedence:null});return X=($.ownerDocument||$).createElement("style"),F0(X),Q5(X,"style",N),OG(X,G.precedence,$),Z.instance=X;case"stylesheet":N=r$(G.href);var B=$.querySelector(g7(N));if(B)return Z.state.loading|=z4,Z.instance=B,F0(B),B;X=vM(G),(N=_4.get(N))&&eX(X,N),B=($.ownerDocument||$).createElement("link"),F0(B);var W=B;return W._p=new Promise(function(w,_){W.onload=w,W.onerror=_}),Q5(B,"link",X),Z.state.loading|=z4,OG(B,G.precedence,$),Z.instance=B;case"script":if(B=s$(G.src),N=$.querySelector(h7(B)))return Z.instance=N,F0(N),N;if(X=G,N=_4.get(B))X=y0({},G),$Y(X,N);return $=$.ownerDocument||$,N=$.createElement("script"),F0(N),Q5(N,"link",X),$.head.appendChild(N),Z.instance=N;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&z4)===U$&&(X=Z.instance,Z.state.loading|=z4,OG(X,G.precedence,$));return Z.instance}function OG($,Z,G){for(var X=G.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),N=X.length?X[X.length-1]:null,B=N,W=0;W<X.length;W++){var w=X[W];if(w.dataset.precedence===Z)B=w;else if(B!==N)break}B?B.parentNode.insertBefore($,B.nextSibling):(Z=G.nodeType===9?G.head:G,Z.insertBefore($,Z.firstChild))}function eX($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function $Y($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function bM($,Z,G){if(kJ===null){var X=new Map,N=kJ=new Map;N.set(G,X)}else N=kJ,X=N.get(G),X||(X=new Map,N.set(G,X));if(X.has($))return X;X.set($,null),G=G.getElementsByTagName($);for(N=0;N<G.length;N++){var B=G[N];if(!(B[p7]||B[G5]||$==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!==$9){var W=B.getAttribute(Z)||"";W=$+W;var w=X.get(W);w?w.push(B):X.set(W,[B])}}return X}function fM($,Z,G){$=$.ownerDocument||$,$.head.insertBefore(G,Z==="title"?$.querySelector("head > title"):null)}function BV($,Z,G){var X=!G.ancestorInfo.containerTagInScope;if(G.context===A9||Z.itemProp!=null)return!X||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===""){X&&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:N,disabled:B}=Z;G=[],Z.onLoad&&G.push("`onLoad`"),N&&G.push("`onError`"),B!=null&&G.push("`disabled`"),N=mL(G,"and"),N+=G.length===1?" prop":" props",B=G.length===1?"an "+N:"the "+N,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,N)}X&&(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"&&X&&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"){X&&($?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":X&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function yM($){return $.type==="stylesheet"&&($.state.loading&zw)===U$?!1:!0}function HV($,Z,G,X){if(G.type==="stylesheet"&&(typeof X.media!=="string"||matchMedia(X.media).matches!==!1)&&(G.state.loading&z4)===U$){if(G.instance===null){var N=r$(X.href),B=Z.querySelector(g7(N));if(B){Z=B._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=DG.bind($),Z.then($,$)),G.state.loading|=z4,G.instance=B,F0(B);return}B=Z.ownerDocument||Z,X=vM(X),(N=_4.get(N))&&eX(X,N),B=B.createElement("link"),F0(B);var W=B;W._p=new Promise(function(w,_){W.onload=w,W.onerror=_}),Q5(B,"link",X),G.instance=B}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(G,Z),(Z=G.state.preload)&&(G.state.loading&zw)===U$&&($.count++,G=DG.bind($),Z.addEventListener("load",G),Z.addEventListener("error",G))}}function MV($,Z){return $.stylesheets&&$.count===0&&jG($,$.stylesheets),0<$.count||0<$.imgCount?function(G){var X=setTimeout(function(){if($.stylesheets&&jG($,$.stylesheets),$.unsuspend){var B=$.unsuspend;$.unsuspend=null,B()}},YP+Z);0<$.imgBytes&&vU===0&&(vU=125*dL()*NP);var N=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&jG($,$.stylesheets),$.unsuspend)){var B=$.unsuspend;$.unsuspend=null,B()}},($.imgBytes>vU?50:UP)+Z);return $.unsuspend=G,function(){$.unsuspend=null,clearTimeout(X),clearTimeout(N)}}:null}function DG(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jG(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function jG($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,bJ=new Map,Z.forEach(FV,$),bJ=null,DG.call($))}function FV($,Z){if(!(Z.state.loading&z4)){var G=bJ.get($);if(G)var X=G.get(kU);else{G=new Map,bJ.set($,G);for(var N=$.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<N.length;B++){var W=N[B];if(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")G.set(W.dataset.precedence,W),X=W}X&&G.set(kU,X)}N=Z.instance,W=N.getAttribute("data-precedence"),B=G.get(W)||X,B===X&&G.set(kU,N),G.set(W,N),this.count++,X=DG.bind(this),N.addEventListener("load",X),N.addEventListener("error",X),B?B.parentNode.insertBefore(N,B.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(N,$.firstChild)),Z.state.loading|=z4}}function WV($,Z,G,X,N,B,W,w,_){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Y$,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=A$(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=A$(0),this.hiddenUpdates=A$(null),this.identifierPrefix=X,this.onUncaughtError=N,this.onCaughtError=B,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,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 gM($,Z,G,X,N,B,W,w,_,V,k,b){return $=new WV($,Z,G,W,_,V,k,b,w),Z=bE,B===!0&&(Z|=M5|A4),Z|=j0,B=L(3,null,null,Z),$.current=B,B.stateNode=$,Z=D3(),b2(Z),$.pooledCache=Z,b2(Z),B.memoizedState={element:X,isDehydrated:G,cache:Z},k3(B),$}function hM($){if(!$)return b6;return $=b6,$}function ZY($,Z,G,X,N,B){if(H5&&typeof H5.onScheduleFiberRoot==="function")try{H5.onScheduleFiberRoot(t$,X,G)}catch(W){Y8||(Y8=!0,console.error("React instrumentation encountered an error: %o",W))}N=hM(N),X.context===null?X.context=N:X.pendingContext=N,X8&&t5!==null&&!Pw&&(Pw=!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.
181
+ - `+aJ(Z)+`
182
+ + `+aJ(J),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."+J);return null;case"script":return Z=J.async,J=J.src,typeof J==="string"&&Z&&typeof Z!=="function"&&typeof Z!=="symbol"?(J=K7(J),Z=i0(U).hoistableScripts,Y=Z.get(J),Y||(Y={type:"script",instance:null,count:0,state:null},Z.set(J,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 aJ($){var Z=0,J="<link";return typeof $.rel==="string"?(Z++,J+=' rel="'+$.rel+'"'):r6.call($,"rel")&&(Z++,J+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(Z++,J+=' href="'+$.href+'"'):r6.call($,"href")&&(Z++,J+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(Z++,J+=' precedence="'+$.precedence+'"'):r6.call($,"precedence")&&(Z++,J+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>Z&&(J+=" ..."),J+" />"}function B7($){return'href="'+C6($)+'"'}function t$($){return'link[rel="stylesheet"]['+$+"]"}function NF($){return m0({},$,{"data-precedence":$.precedence,precedence:null})}function B_($,Z,J,Y){$.querySelector('link[rel="preload"][as="style"]['+Z+"]")?Y.loading=rZ:(Z=$.createElement("link"),Y.preload=Z,Z.addEventListener("load",function(){return Y.loading|=rZ}),Z.addEventListener("error",function(){return Y.loading|=nW}),K5(Z,"link",J),R0(Z),$.head.appendChild(Z))}function K7($){return'[src="'+C6($)+'"]'}function e$($){return"script[async]"+$}function UF($,Z,J){if(Z.count++,Z.instance===null)switch(Z.type){case"style":var Y=$.querySelector('style[data-href~="'+C6(J.href)+'"]');if(Y)return Z.instance=Y,R0(Y),Y;var U=m0({},J,{"data-href":J.href,"data-precedence":J.precedence,href:null,precedence:null});return Y=($.ownerDocument||$).createElement("style"),R0(Y),K5(Y,"style",U),iJ(Y,J.precedence,$),Z.instance=Y;case"stylesheet":U=B7(J.href);var K=$.querySelector(t$(U));if(K)return Z.state.loading|=b6,Z.instance=K,R0(K),K;Y=NF(J),(U=k6.get(U))&&wY(Y,U),K=($.ownerDocument||$).createElement("link"),R0(K);var w=K;return w._p=new Promise(function(R,P){w.onload=R,w.onerror=P}),K5(K,"link",Y),Z.state.loading|=b6,iJ(K,J.precedence,$),Z.instance=K;case"script":if(K=K7(J.src),U=$.querySelector(e$(K)))return Z.instance=U,R0(U),U;if(Y=J,U=k6.get(K))Y=m0({},J),WY(Y,U);return $=$.ownerDocument||$,U=$.createElement("script"),R0(U),K5(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&b6)===V9&&(Y=Z.instance,Z.state.loading|=b6,iJ(Y,J.precedence,$));return Z.instance}function iJ($,Z,J){for(var Y=J.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),U=Y.length?Y[Y.length-1]:null,K=U,w=0;w<Y.length;w++){var R=Y[w];if(R.dataset.precedence===Z)K=R;else if(K!==U)break}K?K.parentNode.insertBefore($,K.nextSibling):(Z=J.nodeType===9?J.head:J,Z.insertBefore($,Z.firstChild))}function wY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.title==null&&($.title=Z.title)}function WY($,Z){$.crossOrigin==null&&($.crossOrigin=Z.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=Z.referrerPolicy),$.integrity==null&&($.integrity=Z.integrity)}function BF($,Z,J){if(J3===null){var Y=new Map,U=J3=new Map;U.set(J,Y)}else U=J3,Y=U.get(J),Y||(Y=new Map,U.set(J,Y));if(Y.has($))return Y;Y.set($,null),J=J.getElementsByTagName($);for(U=0;U<J.length;U++){var K=J[U];if(!(K[GZ]||K[H5]||$==="link"&&K.getAttribute("rel")==="stylesheet")&&K.namespaceURI!==T7){var w=K.getAttribute(Z)||"";w=$+w;var R=Y.get(w);R?R.push(K):Y.set(w,[K])}}return Y}function KF($,Z,J){$=$.ownerDocument||$,$.head.insertBefore(J,Z==="title"?$.querySelector("head > title"):null)}function K_($,Z,J){var Y=!J.ancestorInfo.containerTagInScope;if(J.context===n7||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:K}=Z;J=[],Z.onLoad&&J.push("`onLoad`"),U&&J.push("`onError`"),K!=null&&J.push("`disabled`"),U=mL(J,"and"),U+=J.length===1?" prop":" props",K=J.length===1?"an "+U:"the "+U,J.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.',$,K,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 HF($){return $.type==="stylesheet"&&($.state.loading&oW)===V9?!1:!0}function H_($,Z,J,Y){if(J.type==="stylesheet"&&(typeof Y.media!=="string"||matchMedia(Y.media).matches!==!1)&&(J.state.loading&b6)===V9){if(J.instance===null){var U=B7(Y.href),K=Z.querySelector(t$(U));if(K){Z=K._p,Z!==null&&typeof Z==="object"&&typeof Z.then==="function"&&($.count++,$=tJ.bind($),Z.then($,$)),J.state.loading|=b6,J.instance=K,R0(K);return}K=Z.ownerDocument||Z,Y=NF(Y),(U=k6.get(U))&&wY(Y,U),K=K.createElement("link"),R0(K);var w=K;w._p=new Promise(function(R,P){w.onload=R,w.onerror=P}),K5(K,"link",Y),J.instance=K}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(J,Z),(Z=J.state.preload)&&(J.state.loading&oW)===V9&&($.count++,J=tJ.bind($),Z.addEventListener("load",J),Z.addEventListener("error",J))}}function M_($,Z){return $.stylesheets&&$.count===0&&eJ($,$.stylesheets),0<$.count||0<$.imgCount?function(J){var Y=setTimeout(function(){if($.stylesheets&&eJ($,$.stylesheets),$.unsuspend){var K=$.unsuspend;$.unsuspend=null,K()}},YI+Z);0<$.imgBytes&&nN===0&&(nN=125*dL()*UI);var U=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&eJ($,$.stylesheets),$.unsuspend)){var K=$.unsuspend;$.unsuspend=null,K()}},($.imgBytes>nN?50:NI)+Z);return $.unsuspend=J,function(){$.unsuspend=null,clearTimeout(Y),clearTimeout(U)}}:null}function tJ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)eJ(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function eJ($,Z){$.stylesheets=null,$.unsuspend!==null&&($.count++,G3=new Map,Z.forEach(F_,$),G3=null,tJ.call($))}function F_($,Z){if(!(Z.state.loading&b6)){var J=G3.get($);if(J)var Y=J.get(oN);else{J=new Map,G3.set($,J);for(var U=$.querySelectorAll("link[data-precedence],style[data-precedence]"),K=0;K<U.length;K++){var w=U[K];if(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")J.set(w.dataset.precedence,w),Y=w}Y&&J.set(oN,Y)}U=Z.instance,w=U.getAttribute("data-precedence"),K=J.get(w)||Y,K===Y&&J.set(oN,U),J.set(w,U),this.count++,Y=tJ.bind(this),U.addEventListener("load",Y),U.addEventListener("error",Y),K?K.parentNode.insertBefore(U,K.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(U,$.firstChild)),Z.state.loading|=b6}}function w_($,Z,J,Y,U,K,w,R,P){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=_9,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=n9(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=n9(0),this.hiddenUpdates=n9(null),this.identifierPrefix=Y,this.onUncaughtError=U,this.onCaughtError=K,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,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=J?"hydrateRoot()":"createRoot()"}function MF($,Z,J,Y,U,K,w,R,P,L,k,f){return $=new w_($,Z,J,w,P,L,k,f,R),Z=kV,K===!0&&(Z|=L5|n6),Z|=k0,K=C(3,null,null,Z),$.current=K,K.stateNode=$,Z=cq(),a2(Z),$.pooledCache=Z,a2(Z),K.memoizedState={element:Y,isDehydrated:J,cache:Z},oq(K),$}function FF($){if(!$)return a8;return $=a8,$}function RY($,Z,J,Y,U,K){if(C5&&typeof C5.onScheduleFiberRoot==="function")try{C5.onScheduleFiberRoot(W7,Y,J)}catch(w){L4||(L4=!0,console.error("React instrumentation encountered an error: %o",w))}U=FF(U),Y.context===null?Y.context=U:Y.pendingContext=U,C4&&U6!==null&&!$R&&($R=!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
183
 
184
- Check the render method of %s.`,d(t5)||"Unknown")),X=z6(Z),X.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),X.callback=B),G=_6($,X,Z),G!==null&&(l4(Z,"root.render()",null),C1(G,$,Z),T7(G,$,Z))}function xM($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var G=$.retryLane;$.retryLane=G!==0&&G<Z?G:Z}}function QY($,Z){xM($,Z),($=$.alternate)&&xM($,Z)}function uM($){if($.tag===13||$.tag===31){var Z=B5($,67108864);Z!==null&&C1(Z,$,67108864),QY($,67108864)}}function mM($){if($.tag===13||$.tag===31){var Z=o5($);Z=C2(Z);var G=B5($,Z);G!==null&&C1(G,$,Z),QY($,Z)}}function wV(){return t5}function RV($,Z,G,X){var N=x.T;x.T=null;var B=Z1.p;try{Z1.p=e5,GY($,Z,G,X)}finally{Z1.p=B,x.T=N}}function TV($,Z,G,X){var N=x.T;x.T=null;var B=Z1.p;try{Z1.p=j4,GY($,Z,G,X)}finally{Z1.p=B,x.T=N}}function GY($,Z,G,X){if(yJ){var N=JY(X);if(N===null)dX($,Z,X,gJ,G),pM($,X);else if(zV(N,$,Z,G,X))X.stopPropagation();else if(pM($,X),Z&4&&-1<BP.indexOf($)){for(;N!==null;){var B=E0(N);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var W=m4(B.pendingLanes);if(W!==0){var w=B;w.pendingLanes|=2;for(w.entangledLanes|=2;W;){var _=1<<31-w5(W);w.entanglements[1]|=_,W&=~_}Q8(B),(o0&(r1|G4))===t1&&(zJ=o1()+tW,v7(0,!1))}}break;case 31:case 13:w=B5(B,2),w!==null&&C1(w,B,2),p$(),QY(B,2)}if(B=JY(X),B===null&&dX($,Z,X,gJ,G),B===N)break;N=B}N!==null&&X.stopPropagation()}else dX($,Z,X,null,G)}}function JY($){return $=K3($),qY($)}function qY($){if(gJ=null,$=q0($),$!==null){var Z=g($);if(Z===null)$=null;else{var G=Z.tag;if(G===13){if($=m(Z),$!==null)return $;$=null}else if(G===31){if($=o(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 gJ=$,null}function dM($){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 e5;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 j4;case"message":switch(DV()){case TY:return e5;case zY:return j4;case i$:case jV:return N8;case _Y:return xG;default:return N8}default:return N8}}function pM($,Z){switch($){case"focusin":case"focusout":i6=null;break;case"dragenter":case"dragleave":t6=null;break;case"mouseover":case"mouseout":e6=null;break;case"pointerover":case"pointerout":kZ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":bZ.delete(Z.pointerId)}}function x7($,Z,G,X,N,B){if($===null||$.nativeEvent!==B)return $={blockedOn:Z,domEventName:G,eventSystemFlags:X,nativeEvent:B,targetContainers:[N]},Z!==null&&(Z=E0(Z),Z!==null&&uM(Z)),$;return $.eventSystemFlags|=X,Z=$.targetContainers,N!==null&&Z.indexOf(N)===-1&&Z.push(N),$}function zV($,Z,G,X,N){switch(Z){case"focusin":return i6=x7(i6,$,Z,G,X,N),!0;case"dragenter":return t6=x7(t6,$,Z,G,X,N),!0;case"mouseover":return e6=x7(e6,$,Z,G,X,N),!0;case"pointerover":var B=N.pointerId;return kZ.set(B,x7(kZ.get(B)||null,$,Z,G,X,N)),!0;case"gotpointercapture":return B=N.pointerId,bZ.set(B,x7(bZ.get(B)||null,$,Z,G,X,N)),!0}return!1}function cM($){var Z=q0($.target);if(Z!==null){var G=g(Z);if(G!==null){if(Z=G.tag,Z===13){if(Z=m(G),Z!==null){$.blockedOn=Z,r($.priority,function(){mM(G)});return}}else if(Z===31){if(Z=o(G),Z!==null){$.blockedOn=Z,r($.priority,function(){mM(G)});return}}else if(Z===3&&G.stateNode.current.memoizedState.isDehydrated){$.blockedOn=G.tag===3?G.stateNode.containerInfo:null;return}}}$.blockedOn=null}function AG($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var G=JY($.nativeEvent);if(G===null){G=$.nativeEvent;var X=new G.constructor(G.type,G),N=X;c7!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),c7=N,G.target.dispatchEvent(X),c7===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."),c7=null}else return Z=E0(G),Z!==null&&uM(Z),$.blockedOn=G,!1;Z.shift()}return!0}function lM($,Z,G){AG($)&&G.delete(Z)}function _V(){bU=!1,i6!==null&&AG(i6)&&(i6=null),t6!==null&&AG(t6)&&(t6=null),e6!==null&&AG(e6)&&(e6=null),kZ.forEach(lM),bZ.forEach(lM)}function SG($,Z){$.blockedOn===Z&&($.blockedOn=null,bU||(bU=!0,i0.unstable_scheduleCallback(i0.unstable_NormalPriority,_V)))}function rM($){hJ!==$&&(hJ=$,i0.unstable_scheduleCallback(i0.unstable_NormalPriority,function(){hJ===$&&(hJ=null);for(var Z=0;Z<$.length;Z+=3){var G=$[Z],X=$[Z+1],N=$[Z+2];if(typeof X!=="function")if(qY(X||G)===null)continue;else break;var B=E0(G);B!==null&&($.splice(Z,3),Z-=3,G={pending:!0,data:N,method:G.method,action:X},Object.freeze(G),qX(B,G,X,N))}}))}function n$($){function Z(_){return SG(_,$)}i6!==null&&SG(i6,$),t6!==null&&SG(t6,$),e6!==null&&SG(e6,$),kZ.forEach(Z),bZ.forEach(Z);for(var G=0;G<$2.length;G++){var X=$2[G];X.blockedOn===$&&(X.blockedOn=null)}for(;0<$2.length&&(G=$2[0],G.blockedOn===null);)cM(G),G.blockedOn===null&&$2.shift();if(G=($.ownerDocument||$).$$reactFormReplay,G!=null)for(X=0;X<G.length;X+=3){var N=G[X],B=G[X+1],W=N[R5]||null;if(typeof B==="function")W||rM(G);else if(W){var w=null;if(B&&B.hasAttribute("formAction")){if(N=B,W=B[R5]||null)w=W.formAction;else if(qY(N)!==null)continue}else w=W.action;typeof w==="function"?G[X+1]=w:(G.splice(X,3),X-=3),rM(G)}}}function sM(){function $(B){B.canIntercept&&B.info==="react-transition"&&B.intercept({handler:function(){return new Promise(function(W){return N=W})},focusReset:"manual",scroll:"manual"})}function Z(){N!==null&&(N(),N=null),X||setTimeout(G,20)}function G(){if(!X&&!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 X=!1,N=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",Z),navigation.addEventListener("navigateerror",Z),setTimeout(G,100),function(){X=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),N!==null&&(N(),N=null)}}}function XY($){this._internalRoot=$}function vG($){this._internalRoot=$}function nM($){$[A6]&&($._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 y0=Object.assign,LV=Symbol.for("react.element"),J8=Symbol.for("react.transitional.element"),o$=Symbol.for("react.portal"),a$=Symbol.for("react.fragment"),kG=Symbol.for("react.strict_mode"),YY=Symbol.for("react.profiler"),UY=Symbol.for("react.consumer"),q8=Symbol.for("react.context"),u7=Symbol.for("react.forward_ref"),NY=Symbol.for("react.suspense"),KY=Symbol.for("react.suspense_list"),bG=Symbol.for("react.memo"),i5=Symbol.for("react.lazy"),BY=Symbol.for("react.activity"),VV=Symbol.for("react.memo_cache_sentinel"),oM=Symbol.iterator,EV=Symbol.for("react.client.reference"),c1=Array.isArray,x=v9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z1=yU.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,PV=Object.freeze({pending:!1,data:null,method:null,action:null}),HY=[],MY=[],b8=-1,O6=N0(null),m7=N0(null),D6=N0(null),fG=N0(null),d7=0,aM,iM,tM,eM,$F,ZF,QF;S.__reactDisabledLog=!0;var FY,GF,WY=!1,wY=new(typeof WeakMap==="function"?WeakMap:Map),t5=null,X8=!1,D4=Object.prototype.hasOwnProperty,RY=i0.unstable_scheduleCallback,CV=i0.unstable_cancelCallback,IV=i0.unstable_shouldYield,OV=i0.unstable_requestPaint,o1=i0.unstable_now,DV=i0.unstable_getCurrentPriorityLevel,TY=i0.unstable_ImmediatePriority,zY=i0.unstable_UserBlockingPriority,i$=i0.unstable_NormalPriority,jV=i0.unstable_LowPriority,_Y=i0.unstable_IdlePriority,AV=i0.log,SV=i0.unstable_setDisableYieldValue,t$=null,H5=null,Y8=!1,U8=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",w5=Math.clz32?Math.clz32:EQ,vV=Math.log,kV=Math.LN2,yG=256,gG=262144,hG=4194304,e5=2,j4=8,N8=32,xG=268435456,j6=Math.random().toString(36).slice(2),G5="__reactFiber$"+j6,R5="__reactProps$"+j6,A6="__reactContainer$"+j6,LY="__reactEvents$"+j6,bV="__reactListeners$"+j6,fV="__reactHandles$"+j6,JF="__reactResources$"+j6,p7="__reactMarker$"+j6,qF=new Set,m2={},VY={},yV={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gV=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]*$"),XF={},YF={},hV=/[\n"\\]/g,UF=!1,NF=!1,KF=!1,BF=!1,HF=!1,MF=!1,FF=["value","defaultValue"],WF=!1,wF=/["'&<>\n\t]|^\s|\s$/,xV="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(" "),RF="applet caption html table td th marquee object template foreignObject desc title".split(" "),uV=RF.concat(["button"]),mV="dd dt li option optgroup p rp rt".split(" "),TF={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},uG={},EY={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"]},zF=/([A-Z])/g,_F=/^ms-/,dV=/^(?:webkit|moz|o)[A-Z]/,pV=/^-ms-/,cV=/-(.)/g,LF=/;\s*$/,e$={},PY={},VF=!1,EF=!1,PF=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(" ")),mG="http://www.w3.org/1998/Math/MathML",$9="http://www.w3.org/2000/svg",lV=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"]]),dG={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"},CF={"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},Z9={},rV=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]*$"),sV=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]*$"),IF=!1,T5={},OF=/^on./,nV=/^on[^A-Z]/,oV=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]*$"),aV=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]*$"),iV=/^[\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,c7=null,Q9=null,G9=null,CY=!1,K8=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),IY=!1;if(K8)try{var l7={};Object.defineProperty(l7,"passive",{get:function(){IY=!0}}),window.addEventListener("test",l7,l7),window.removeEventListener("test",l7,l7)}catch($){IY=!1}var S6=null,OY=null,pG=null,d2={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cG=I5(d2),r7=y0({},d2,{view:0,detail:0}),tV=I5(r7),DY,jY,s7,lG=y0({},r7,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:B3,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==s7&&(s7&&$.type==="mousemove"?(DY=$.screenX-s7.screenX,jY=$.screenY-s7.screenY):jY=DY=0,s7=$),DY},movementY:function($){return"movementY"in $?$.movementY:jY}}),DF=I5(lG),eV=y0({},lG,{dataTransfer:0}),$E=I5(eV),ZE=y0({},r7,{relatedTarget:0}),AY=I5(ZE),QE=y0({},d2,{animationName:0,elapsedTime:0,pseudoElement:0}),GE=I5(QE),JE=y0({},d2,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),qE=I5(JE),XE=y0({},d2,{data:0}),jF=I5(XE),YE=jF,UE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NE={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"},KE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},BE=y0({},r7,{key:function($){if($.key){var Z=UE[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=AQ($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?NE[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:B3,charCode:function($){return $.type==="keypress"?AQ($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?AQ($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),HE=I5(BE),ME=y0({},lG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),AF=I5(ME),FE=y0({},r7,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:B3}),WE=I5(FE),wE=y0({},d2,{propertyName:0,elapsedTime:0,pseudoElement:0}),RE=I5(wE),TE=y0({},lG,{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}),zE=I5(TE),_E=y0({},d2,{newState:0,oldState:0}),LE=I5(_E),VE=[9,13,27,32],SF=229,SY=K8&&"CompositionEvent"in window,n7=null;K8&&"documentMode"in document&&(n7=document.documentMode);var EE=K8&&"TextEvent"in window&&!n7,vF=K8&&(!SY||n7&&8<n7&&11>=n7),kF=32,bF=String.fromCharCode(kF),fF=!1,J9=!1,PE={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},o7=null,a7=null,yF=!1;K8&&(yF=l_("input")&&(!document.documentMode||9<document.documentMode));var z5=typeof Object.is==="function"?Object.is:i_,CE=K8&&"documentMode"in document&&11>=document.documentMode,q9=null,vY=null,i7=null,kY=!1,X9={animationend:O2("Animation","AnimationEnd"),animationiteration:O2("Animation","AnimationIteration"),animationstart:O2("Animation","AnimationStart"),transitionrun:O2("Transition","TransitionRun"),transitionstart:O2("Transition","TransitionStart"),transitioncancel:O2("Transition","TransitionCancel"),transitionend:O2("Transition","TransitionEnd")},bY={},gF={};K8&&(gF=document.createElement("div").style,("AnimationEvent"in window)||(delete X9.animationend.animation,delete X9.animationiteration.animation,delete X9.animationstart.animation),("TransitionEvent"in window)||delete X9.transitionend.transition);var hF=D2("animationend"),xF=D2("animationiteration"),uF=D2("animationstart"),IE=D2("transitionrun"),OE=D2("transitionstart"),DE=D2("transitioncancel"),mF=D2("transitionend"),dF=new Map,fY="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(" ");fY.push("scrollEnd");var pF=0;if(typeof performance==="object"&&typeof performance.now==="function")var jE=performance,cF=function(){return jE.now()};else{var AE=Date;cF=function(){return AE.now()}}var yY=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($)},SE="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.",rG=0,gY=1,hY=2,xY=3,sG="– ",nG="+ ",lF="  ",w1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",N4="Components ⚛",g0="Scheduler ⚛",u0="Blocking",v6=!1,f8={color:"primary",properties:null,tooltipText:"",track:N4},k6={start:-0,end:-0,detail:{devtools:f8}},vE=["Changed Props",""],rF="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",kE=["Changed Props",rF],t7=1,y8=2,K4=[],Y9=0,uY=0,b6={};Object.freeze(b6);var B4=null,U9=null,_0=0,bE=1,j0=2,M5=8,A4=16,fE=32,sF=!1;try{var nF=Object.preventExtensions({})}catch($){sF=!0}var mY=new WeakMap,N9=[],K9=0,oG=null,e7=0,H4=[],M4=0,p2=null,g8=1,h8="",J5=null,R1=null,p0=!1,B8=!1,$4=null,f6=null,F4=!1,dY=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."),pY=N0(null),cY=N0(null),oF={},aG=null,B9=null,H9=!1,yE=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(G,X){$.push(X)}};this.abort=function(){Z.aborted=!0,$.forEach(function(G){return G()})}},gE=i0.unstable_scheduleCallback,hE=i0.unstable_NormalPriority,y1={$$typeof:q8,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},g1=i0.unstable_now,iG=console.createTask?console.createTask:function(){return null},$Z=1,tG=2,a1=-0,y6=-0,x8=-0,u8=null,_5=-1.1,c2=-0,V1=-0,W0=-1.1,T0=-1.1,L1=null,I1=!1,g6=-0,H8=-1.1,ZZ=null,h6=0,lY=null,rY=null,l2=-1.1,QZ=null,M9=-1.1,eG=-1.1,M8=-0,m8=-1.1,W4=-1.1,sY=0,GZ=null,aF=null,iF=null,x6=-1.1,r2=null,u6=-1.1,$J=-1.1,tF=-0,eF=-0,ZJ=0,d8=null,$W=0,JZ=-1.1,QJ=!1,GJ=!1,qZ=null,nY=0,s2=0,F9=null,ZW=x.S;x.S=function($,Z){if(aW=o1(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>m8&&0>W4){m8=g1();var G=f7(),X=b7();if(G!==u6||X!==r2)u6=-1.1;x6=G,r2=X}JL($,Z)}ZW!==null&&ZW($,Z)};var n2=N0(null),S4={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},XZ=[],YZ=[],UZ=[],NZ=[],KZ=[],BZ=[],o2=new Set;S4.recordUnsafeLifecycleWarnings=function($,Z){o2.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&XZ.push($),$.mode&M5&&typeof Z.UNSAFE_componentWillMount==="function"&&YZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&UZ.push($),$.mode&M5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&NZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&KZ.push($),$.mode&M5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&BZ.push($))},S4.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<XZ.length&&(XZ.forEach(function(w){$.add(d(w)||"Component"),o2.add(w.type)}),XZ=[]);var Z=new Set;0<YZ.length&&(YZ.forEach(function(w){Z.add(d(w)||"Component"),o2.add(w.type)}),YZ=[]);var G=new Set;0<UZ.length&&(UZ.forEach(function(w){G.add(d(w)||"Component"),o2.add(w.type)}),UZ=[]);var X=new Set;0<NZ.length&&(NZ.forEach(function(w){X.add(d(w)||"Component"),o2.add(w.type)}),NZ=[]);var N=new Set;0<KZ.length&&(KZ.forEach(function(w){N.add(d(w)||"Component"),o2.add(w.type)}),KZ=[]);var B=new Set;if(0<BZ.length&&(BZ.forEach(function(w){B.add(d(w)||"Component"),o2.add(w.type)}),BZ=[]),0<Z.size){var W=z(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.
184
+ Check the render method of %s.`,d(U6)||"Unknown")),Y=f8(Z),Y.payload={element:J},K=K===void 0?null:K,K!==null&&(typeof K!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",K),Y.callback=K),J=y8($,Y,Z),J!==null&&(X4(Z,"root.render()",null),D1(J,$,Z),b$(J,$,Z))}function wF($,Z){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var J=$.retryLane;$.retryLane=J!==0&&J<Z?J:Z}}function TY($,Z){wF($,Z),($=$.alternate)&&wF($,Z)}function WF($){if($.tag===13||$.tag===31){var Z=P5($,67108864);Z!==null&&D1(Z,$,67108864),TY($,67108864)}}function RF($){if($.tag===13||$.tag===31){var Z=X6($);Z=m2(Z);var J=P5($,Z);J!==null&&D1(J,$,Z),TY($,Z)}}function W_(){return U6}function R_($,Z,J,Y){var U=x.T;x.T=null;var K=G1.p;try{G1.p=B6,zY($,Z,J,Y)}finally{G1.p=K,x.T=U}}function T_($,Z,J,Y){var U=x.T;x.T=null;var K=G1.p;try{G1.p=s6,zY($,Z,J,Y)}finally{G1.p=K,x.T=U}}function zY($,Z,J,Y){if(X3){var U=PY(Y);if(U===null)GY($,Z,Y,Y3,J),zF($,Y);else if(z_(U,$,Z,J,Y))Y.stopPropagation();else if(zF($,Y),Z&4&&-1<KI.indexOf($)){for(;U!==null;){var K=E0(U);if(K!==null)switch(K.tag){case 3:if(K=K.stateNode,K.current.memoizedState.isDehydrated){var w=Q4(K.pendingLanes);if(w!==0){var R=K;R.pendingLanes|=2;for(R.entangledLanes|=2;w;){var P=1<<31-E5(w);R.entanglements[1]|=P,w&=~P}R4(K),(a0&(e1|F6))===Y5&&(pG=G5()+AW,s$(0,!1))}}break;case 31:case 13:R=P5(K,2),R!==null&&D1(R,K,2),Y7(),TY(K,2)}if(K=PY(Y),K===null&&GY($,Z,Y,Y3,J),K===U)break;U=K}U!==null&&Y.stopPropagation()}else GY($,Z,Y,null,J)}}function PY($){return $=Oq($),CY($)}function CY($){if(Y3=null,$=Y0($),$!==null){var Z=j($);if(Z===null)$=null;else{var J=Z.tag;if(J===13){if($=h(Z),$!==null)return $;$=null}else if(J===31){if($=p(Z),$!==null)return $;$=null}else if(J===3){if(Z.stateNode.current.memoizedState.isDehydrated)return Z.tag===3?Z.stateNode.containerInfo:null;$=null}else Z!==$&&($=null)}}return Y3=$,null}function TF($){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 B6;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 s6;case"message":switch(A_()){case kY:return B6;case fY:return s6;case w7:case S_:return V4;case yY:return UG;default:return V4}default:return V4}}function zF($,Z){switch($){case"focusin":case"focusout":M2=null;break;case"dragenter":case"dragleave":F2=null;break;case"mouseover":case"mouseout":w2=null;break;case"pointerover":case"pointerout":nZ.delete(Z.pointerId);break;case"gotpointercapture":case"lostpointercapture":oZ.delete(Z.pointerId)}}function $Z($,Z,J,Y,U,K){if($===null||$.nativeEvent!==K)return $={blockedOn:Z,domEventName:J,eventSystemFlags:Y,nativeEvent:K,targetContainers:[U]},Z!==null&&(Z=E0(Z),Z!==null&&WF(Z)),$;return $.eventSystemFlags|=Y,Z=$.targetContainers,U!==null&&Z.indexOf(U)===-1&&Z.push(U),$}function z_($,Z,J,Y,U){switch(Z){case"focusin":return M2=$Z(M2,$,Z,J,Y,U),!0;case"dragenter":return F2=$Z(F2,$,Z,J,Y,U),!0;case"mouseover":return w2=$Z(w2,$,Z,J,Y,U),!0;case"pointerover":var K=U.pointerId;return nZ.set(K,$Z(nZ.get(K)||null,$,Z,J,Y,U)),!0;case"gotpointercapture":return K=U.pointerId,oZ.set(K,$Z(oZ.get(K)||null,$,Z,J,Y,U)),!0}return!1}function PF($){var Z=Y0($.target);if(Z!==null){var J=j(Z);if(J!==null){if(Z=J.tag,Z===13){if(Z=h(J),Z!==null){$.blockedOn=Z,r($.priority,function(){RF(J)});return}}else if(Z===31){if(Z=p(J),Z!==null){$.blockedOn=Z,r($.priority,function(){RF(J)});return}}else if(Z===3&&J.stateNode.current.memoizedState.isDehydrated){$.blockedOn=J.tag===3?J.stateNode.containerInfo:null;return}}}$.blockedOn=null}function $G($){if($.blockedOn!==null)return!1;for(var Z=$.targetContainers;0<Z.length;){var J=PY($.nativeEvent);if(J===null){J=$.nativeEvent;var Y=new J.constructor(J.type,J),U=Y;qZ!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),qZ=U,J.target.dispatchEvent(Y),qZ===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."),qZ=null}else return Z=E0(J),Z!==null&&WF(Z),$.blockedOn=J,!1;Z.shift()}return!0}function CF($,Z,J){$G($)&&J.delete(Z)}function P_(){aN=!1,M2!==null&&$G(M2)&&(M2=null),F2!==null&&$G(F2)&&(F2=null),w2!==null&&$G(w2)&&(w2=null),nZ.forEach(CF),oZ.forEach(CF)}function ZG($,Z){$.blockedOn===Z&&($.blockedOn=null,aN||(aN=!0,e0.unstable_scheduleCallback(e0.unstable_NormalPriority,P_)))}function LF($){N3!==$&&(N3=$,e0.unstable_scheduleCallback(e0.unstable_NormalPriority,function(){N3===$&&(N3=null);for(var Z=0;Z<$.length;Z+=3){var J=$[Z],Y=$[Z+1],U=$[Z+2];if(typeof Y!=="function")if(CY(Y||J)===null)continue;else break;var K=E0(J);K!==null&&($.splice(Z,3),Z-=3,J={pending:!0,data:U,method:J.method,action:Y},Object.freeze(J),CX(K,J,Y,U))}}))}function H7($){function Z(P){return ZG(P,$)}M2!==null&&ZG(M2,$),F2!==null&&ZG(F2,$),w2!==null&&ZG(w2,$),nZ.forEach(Z),oZ.forEach(Z);for(var J=0;J<W2.length;J++){var Y=W2[J];Y.blockedOn===$&&(Y.blockedOn=null)}for(;0<W2.length&&(J=W2[0],J.blockedOn===null);)PF(J),J.blockedOn===null&&W2.shift();if(J=($.ownerDocument||$).$$reactFormReplay,J!=null)for(Y=0;Y<J.length;Y+=3){var U=J[Y],K=J[Y+1],w=U[A5]||null;if(typeof K==="function")w||LF(J);else if(w){var R=null;if(K&&K.hasAttribute("formAction")){if(U=K,w=K[A5]||null)R=w.formAction;else if(CY(U)!==null)continue}else R=w.action;typeof R==="function"?J[Y+1]=R:(J.splice(Y,3),Y-=3),LF(J)}}}function _F(){function $(K){K.canIntercept&&K.info==="react-transition"&&K.intercept({handler:function(){return new Promise(function(w){return U=w})},focusReset:"manual",scroll:"manual"})}function Z(){U!==null&&(U(),U=null),Y||setTimeout(J,20)}function J(){if(!Y&&!navigation.transition){var K=navigation.currentEntry;K&&K.url!=null&&navigation.navigate(K.url,{state:K.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(J,100),function(){Y=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",Z),navigation.removeEventListener("navigateerror",Z),U!==null&&(U(),U=null)}}}function LY($){this._internalRoot=$}function QG($){this._internalRoot=$}function VF($){$[r8]&&($._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 m0=Object.assign,C_=Symbol.for("react.element"),z4=Symbol.for("react.transitional.element"),M7=Symbol.for("react.portal"),F7=Symbol.for("react.fragment"),JG=Symbol.for("react.strict_mode"),_Y=Symbol.for("react.profiler"),VY=Symbol.for("react.consumer"),P4=Symbol.for("react.context"),ZZ=Symbol.for("react.forward_ref"),IY=Symbol.for("react.suspense"),OY=Symbol.for("react.suspense_list"),GG=Symbol.for("react.memo"),N6=Symbol.for("react.lazy"),EY=Symbol.for("react.activity"),L_=Symbol.for("react.memo_cache_sentinel"),IF=Symbol.iterator,__=Symbol.for("react.client.reference"),i1=Array.isArray,x=Y$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G1=XB.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V_=Object.freeze({pending:!1,data:null,method:null,action:null}),AY=[],SY=[],o4=-1,p8=U0(null),QZ=U0(null),c8=U0(null),qG=U0(null),JZ=0,OF,EF,AF,SF,DF,jF,vF;v.__reactDisabledLog=!0;var DY,bF,jY=!1,vY=new(typeof WeakMap==="function"?WeakMap:Map),U6=null,C4=!1,r6=Object.prototype.hasOwnProperty,bY=e0.unstable_scheduleCallback,I_=e0.unstable_cancelCallback,O_=e0.unstable_shouldYield,E_=e0.unstable_requestPaint,G5=e0.unstable_now,A_=e0.unstable_getCurrentPriorityLevel,kY=e0.unstable_ImmediatePriority,fY=e0.unstable_UserBlockingPriority,w7=e0.unstable_NormalPriority,S_=e0.unstable_LowPriority,yY=e0.unstable_IdlePriority,D_=e0.log,j_=e0.unstable_setDisableYieldValue,W7=null,C5=null,L4=!1,_4=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",E5=Math.clz32?Math.clz32:sQ,v_=Math.log,b_=Math.LN2,XG=256,YG=262144,NG=4194304,B6=2,s6=8,V4=32,UG=268435456,l8=Math.random().toString(36).slice(2),H5="__reactFiber$"+l8,A5="__reactProps$"+l8,r8="__reactContainer$"+l8,gY="__reactEvents$"+l8,k_="__reactListeners$"+l8,f_="__reactHandles$"+l8,kF="__reactResources$"+l8,GZ="__reactMarker$"+l8,fF=new Set,J9={},hY={},y_={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},g_=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]*$"),yF={},gF={},h_=/[\n"\\]/g,hF=!1,uF=!1,xF=!1,mF=!1,dF=!1,pF=!1,cF=["value","defaultValue"],lF=!1,rF=/["'&<>\n\t]|^\s|\s$/,u_="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(" "),sF="applet caption html table td th marquee object template foreignObject desc title".split(" "),x_=sF.concat(["button"]),m_="dd dt li option optgroup p rp rt".split(" "),nF={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},BG={},uY={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"]},oF=/([A-Z])/g,aF=/^ms-/,d_=/^(?:webkit|moz|o)[A-Z]/,p_=/^-ms-/,c_=/-(.)/g,iF=/;\s*$/,R7={},xY={},tF=!1,eF=!1,$w=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(" ")),KG="http://www.w3.org/1998/Math/MathML",T7="http://www.w3.org/2000/svg",l_=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"]]),HG={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"},Zw={"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},z7={},r_=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]*$"),s_=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]*$"),Qw=!1,S5={},Jw=/^on./,n_=/^on[^A-Z]/,o_=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]*$"),a_=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]*$"),i_=/^[\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,qZ=null,P7=null,C7=null,mY=!1,I4=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dY=!1;if(I4)try{var XZ={};Object.defineProperty(XZ,"passive",{get:function(){dY=!0}}),window.addEventListener("test",XZ,XZ),window.removeEventListener("test",XZ,XZ)}catch($){dY=!1}var s8=null,pY=null,MG=null,G9={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},FG=y5(G9),YZ=m0({},G9,{view:0,detail:0}),t_=y5(YZ),cY,lY,NZ,wG=m0({},YZ,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eq,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==NZ&&(NZ&&$.type==="mousemove"?(cY=$.screenX-NZ.screenX,lY=$.screenY-NZ.screenY):lY=cY=0,NZ=$),cY},movementY:function($){return"movementY"in $?$.movementY:lY}}),Gw=y5(wG),e_=m0({},wG,{dataTransfer:0}),$V=y5(e_),ZV=m0({},YZ,{relatedTarget:0}),rY=y5(ZV),QV=m0({},G9,{animationName:0,elapsedTime:0,pseudoElement:0}),JV=y5(QV),GV=m0({},G9,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),qV=y5(GV),XV=m0({},G9,{data:0}),qw=y5(XV),YV=qw,NV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UV={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"},BV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},KV=m0({},YZ,{key:function($){if($.key){var Z=NV[$.key]||$.key;if(Z!=="Unidentified")return Z}return $.type==="keypress"?($=$J($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?UV[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eq,charCode:function($){return $.type==="keypress"?$J($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?$J($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),HV=y5(KV),MV=m0({},wG,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xw=y5(MV),FV=m0({},YZ,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eq}),wV=y5(FV),WV=m0({},G9,{propertyName:0,elapsedTime:0,pseudoElement:0}),RV=y5(WV),TV=m0({},wG,{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}),zV=y5(TV),PV=m0({},G9,{newState:0,oldState:0}),CV=y5(PV),LV=[9,13,27,32],Yw=229,sY=I4&&"CompositionEvent"in window,UZ=null;I4&&"documentMode"in document&&(UZ=document.documentMode);var _V=I4&&"TextEvent"in window&&!UZ,Nw=I4&&(!sY||UZ&&8<UZ&&11>=UZ),Uw=32,Bw=String.fromCharCode(Uw),Kw=!1,L7=!1,VV={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},BZ=null,KZ=null,Hw=!1;I4&&(Hw=lC("input")&&(!document.documentMode||9<document.documentMode));var D5=typeof Object.is==="function"?Object.is:iC,IV=I4&&"documentMode"in document&&11>=document.documentMode,_7=null,nY=null,HZ=null,oY=!1,V7={animationend:p2("Animation","AnimationEnd"),animationiteration:p2("Animation","AnimationIteration"),animationstart:p2("Animation","AnimationStart"),transitionrun:p2("Transition","TransitionRun"),transitionstart:p2("Transition","TransitionStart"),transitioncancel:p2("Transition","TransitionCancel"),transitionend:p2("Transition","TransitionEnd")},aY={},Mw={};I4&&(Mw=document.createElement("div").style,("AnimationEvent"in window)||(delete V7.animationend.animation,delete V7.animationiteration.animation,delete V7.animationstart.animation),("TransitionEvent"in window)||delete V7.transitionend.transition);var Fw=c2("animationend"),ww=c2("animationiteration"),Ww=c2("animationstart"),OV=c2("transitionrun"),EV=c2("transitionstart"),AV=c2("transitioncancel"),Rw=c2("transitionend"),Tw=new Map,iY="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(" ");iY.push("scrollEnd");var zw=0;if(typeof performance==="object"&&typeof performance.now==="function")var SV=performance,Pw=function(){return SV.now()};else{var DV=Date;Pw=function(){return DV.now()}}var tY=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($)},jV="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.",WG=0,eY=1,$N=2,ZN=3,RG="– ",TG="+ ",Cw="  ",z1=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",_6="Components ⚛",d0="Scheduler ⚛",c0="Blocking",n8=!1,a4={color:"primary",properties:null,tooltipText:"",track:_6},o8={start:-0,end:-0,detail:{devtools:a4}},vV=["Changed Props",""],Lw="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",bV=["Changed Props",Lw],MZ=1,i4=2,V6=[],I7=0,QN=0,a8={};Object.freeze(a8);var I6=null,O7=null,_0=0,kV=1,k0=2,L5=8,n6=16,fV=32,_w=!1;try{var Vw=Object.preventExtensions({})}catch($){_w=!0}var JN=new WeakMap,E7=[],A7=0,zG=null,FZ=0,O6=[],E6=0,q9=null,t4=1,e4="",M5=null,P1=null,r0=!1,O4=!1,K6=null,i8=null,A6=!1,GN=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."),qN=U0(null),XN=U0(null),Iw={},PG=null,S7=null,D7=!1,yV=typeof AbortController<"u"?AbortController:function(){var $=[],Z=this.signal={aborted:!1,addEventListener:function(J,Y){$.push(Y)}};this.abort=function(){Z.aborted=!0,$.forEach(function(J){return J()})}},gV=e0.unstable_scheduleCallback,hV=e0.unstable_NormalPriority,d1={$$typeof:P4,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},p1=e0.unstable_now,CG=console.createTask?console.createTask:function(){return null},wZ=1,LG=2,q5=-0,t8=-0,$8=-0,Z8=null,j5=-1.1,X9=-0,O1=-0,T0=-1.1,C0=-1.1,I1=null,j1=!1,e8=-0,E4=-1.1,WZ=null,$2=0,YN=null,NN=null,Y9=-1.1,RZ=null,j7=-1.1,_G=-1.1,A4=-0,Q8=-1.1,S6=-1.1,UN=0,TZ=null,Ow=null,Ew=null,Z2=-1.1,N9=null,Q2=-1.1,VG=-1.1,Aw=-0,Sw=-0,IG=0,J8=null,Dw=0,zZ=-1.1,OG=!1,EG=!1,PZ=null,BN=0,U9=0,v7=null,jw=x.S;x.S=function($,Z){if(OW=G5(),typeof Z==="object"&&Z!==null&&typeof Z.then==="function"){if(0>Q8&&0>S6){Q8=p1();var J=a$(),Y=o$();if(J!==Q2||Y!==N9)Q2=-1.1;Z2=J,N9=Y}GL($,Z)}jw!==null&&jw($,Z)};var B9=U0(null),o6={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},CZ=[],LZ=[],_Z=[],VZ=[],IZ=[],OZ=[],K9=new Set;o6.recordUnsafeLifecycleWarnings=function($,Z){K9.has($.type)||(typeof Z.componentWillMount==="function"&&Z.componentWillMount.__suppressDeprecationWarning!==!0&&CZ.push($),$.mode&L5&&typeof Z.UNSAFE_componentWillMount==="function"&&LZ.push($),typeof Z.componentWillReceiveProps==="function"&&Z.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&_Z.push($),$.mode&L5&&typeof Z.UNSAFE_componentWillReceiveProps==="function"&&VZ.push($),typeof Z.componentWillUpdate==="function"&&Z.componentWillUpdate.__suppressDeprecationWarning!==!0&&IZ.push($),$.mode&L5&&typeof Z.UNSAFE_componentWillUpdate==="function"&&OZ.push($))},o6.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<CZ.length&&(CZ.forEach(function(R){$.add(d(R)||"Component"),K9.add(R.type)}),CZ=[]);var Z=new Set;0<LZ.length&&(LZ.forEach(function(R){Z.add(d(R)||"Component"),K9.add(R.type)}),LZ=[]);var J=new Set;0<_Z.length&&(_Z.forEach(function(R){J.add(d(R)||"Component"),K9.add(R.type)}),_Z=[]);var Y=new Set;0<VZ.length&&(VZ.forEach(function(R){Y.add(d(R)||"Component"),K9.add(R.type)}),VZ=[]);var U=new Set;0<IZ.length&&(IZ.forEach(function(R){U.add(d(R)||"Component"),K9.add(R.type)}),IZ=[]);var K=new Set;if(0<OZ.length&&(OZ.forEach(function(R){K.add(d(R)||"Component"),K9.add(R.type)}),OZ=[]),0<Z.size){var w=z(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
185
 
186
186
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
187
 
188
- Please update the following components: %s`,W)}0<X.size&&(W=z(X),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.
188
+ Please update the following components: %s`,w)}0<Y.size&&(w=z(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
189
 
190
190
  * Move data fetching code or side effects to componentDidUpdate.
191
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
192
 
193
- Please update the following components: %s`,W)),0<B.size&&(W=z(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.
193
+ Please update the following components: %s`,w)),0<K.size&&(w=z(K),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
194
 
195
195
  * Move data fetching code or side effects to componentDidUpdate.
196
196
 
197
- Please update the following components: %s`,W)),0<$.size&&(W=z($),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
197
+ Please update the following components: %s`,w)),0<$.size&&(w=z($),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
198
198
 
199
199
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
200
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
201
 
202
- Please update the following components: %s`,W)),0<G.size&&(W=z(G),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
202
+ Please update the following components: %s`,w)),0<J.size&&(w=z(J),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
203
 
204
204
  * Move data fetching code or side effects to componentDidUpdate.
205
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
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
207
 
208
- Please update the following components: %s`,W)),0<N.size&&(W=z(N),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+ Please update the following components: %s`,w)),0<U.size&&(w=z(U),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
209
209
 
210
210
  * Move data fetching code or side effects to componentDidUpdate.
211
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
212
 
213
- Please update the following components: %s`,W))};var JJ=new Map,QW=new Set;S4.recordLegacyContextWarning=function($,Z){var G=null;for(var X=$;X!==null;)X.mode&M5&&(G=X),X=X.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."):!QW.has($.type)&&(X=JJ.get(G),$.type.contextTypes!=null||$.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(X===void 0&&(X=[],JJ.set(G,X)),X.push($))},S4.flushLegacyContextWarning=function(){JJ.forEach(function($){if($.length!==0){var Z=$[0],G=new Set;$.forEach(function(N){G.add(d(N)||"Component"),QW.add(N.type)});var X=z(G);G0(Z,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,w))};var AG=new Map,vw=new Set;o6.recordLegacyContextWarning=function($,Z){var J=null;for(var Y=$;Y!==null;)Y.mode&L5&&(J=Y),Y=Y.return;J===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."):!vw.has($.type)&&(Y=AG.get(J),$.type.contextTypes!=null||$.type.childContextTypes!=null||Z!==null&&typeof Z.getChildContext==="function")&&(Y===void 0&&(Y=[],AG.set(J,Y)),Y.push($))},o6.flushLegacyContextWarning=function(){AG.forEach(function($){if($.length!==0){var Z=$[0],J=new Set;$.forEach(function(U){J.add(d(U)||"Component"),vw.add(U.type)});var Y=z(J);G0(Z,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
214
 
215
215
  The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
216
 
217
217
  Please update the following components: %s
218
218
 
219
- Learn more about this warning here: https://react.dev/link/legacy-context`,X)})}})},S4.discardPendingWarnings=function(){XZ=[],YZ=[],UZ=[],NZ=[],KZ=[],BZ=[],JJ=new Map};var GW={react_stack_bottom_frame:function($,Z,G){var X=X8;X8=!0;try{return $(Z,G)}finally{X8=X}}},oY=GW.react_stack_bottom_frame.bind(GW),JW={react_stack_bottom_frame:function($){var Z=X8;X8=!0;try{return $.render()}finally{X8=Z}}},qW=JW.react_stack_bottom_frame.bind(JW),XW={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(G){$1($,$.return,G)}}},aY=XW.react_stack_bottom_frame.bind(XW),YW={react_stack_bottom_frame:function($,Z,G,X,N){try{Z.componentDidUpdate(G,X,N)}catch(B){$1($,$.return,B)}}},UW=YW.react_stack_bottom_frame.bind(YW),NW={react_stack_bottom_frame:function($,Z){var G=Z.stack;$.componentDidCatch(Z.value,{componentStack:G!==null?G:""})}},xE=NW.react_stack_bottom_frame.bind(NW),KW={react_stack_bottom_frame:function($,Z,G){try{G.componentWillUnmount()}catch(X){$1($,Z,X)}}},BW=KW.react_stack_bottom_frame.bind(KW),HW={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},uE=HW.react_stack_bottom_frame.bind(HW),MW={react_stack_bottom_frame:function($,Z,G){try{G()}catch(X){$1($,Z,X)}}},mE=MW.react_stack_bottom_frame.bind(MW),FW={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},dE=FW.react_stack_bottom_frame.bind(FW),W9=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`."),iY=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."),qJ=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."),XJ={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.')}},a2=null,HZ=!1,w9=null,MZ=0,A0=null,tY,WW=tY=!1,wW={},RW={},TW={};T=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 X=d($),N=X||"null";if(!wW[N]){wW[N]=!0,G=G._owner,$=$._debugOwner;var B="";$&&typeof $.tag==="number"&&(N=d($))&&(B=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,Y)})}})},o6.discardPendingWarnings=function(){CZ=[],LZ=[],_Z=[],VZ=[],IZ=[],OZ=[],AG=new Map};var bw={react_stack_bottom_frame:function($,Z,J){var Y=C4;C4=!0;try{return $(Z,J)}finally{C4=Y}}},KN=bw.react_stack_bottom_frame.bind(bw),kw={react_stack_bottom_frame:function($){var Z=C4;C4=!0;try{return $.render()}finally{C4=Z}}},fw=kw.react_stack_bottom_frame.bind(kw),yw={react_stack_bottom_frame:function($,Z){try{Z.componentDidMount()}catch(J){J1($,$.return,J)}}},HN=yw.react_stack_bottom_frame.bind(yw),gw={react_stack_bottom_frame:function($,Z,J,Y,U){try{Z.componentDidUpdate(J,Y,U)}catch(K){J1($,$.return,K)}}},hw=gw.react_stack_bottom_frame.bind(gw),uw={react_stack_bottom_frame:function($,Z){var J=Z.stack;$.componentDidCatch(Z.value,{componentStack:J!==null?J:""})}},uV=uw.react_stack_bottom_frame.bind(uw),xw={react_stack_bottom_frame:function($,Z,J){try{J.componentWillUnmount()}catch(Y){J1($,Z,Y)}}},mw=xw.react_stack_bottom_frame.bind(xw),dw={react_stack_bottom_frame:function($){var Z=$.create;return $=$.inst,Z=Z(),$.destroy=Z}},xV=dw.react_stack_bottom_frame.bind(dw),pw={react_stack_bottom_frame:function($,Z,J){try{J()}catch(Y){J1($,Z,Y)}}},mV=pw.react_stack_bottom_frame.bind(pw),cw={react_stack_bottom_frame:function($){var Z=$._init;return Z($._payload)}},dV=cw.react_stack_bottom_frame.bind(cw),b7=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`."),MN=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."),SG=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."),DG={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.')}},H9=null,EZ=!1,k7=null,AZ=0,f0=null,FN,lw=FN=!1,rw={},sw={},nw={};T=function($,Z,J){if(J!==null&&typeof J==="object"&&J._store&&(!J._store.validated&&J.key==null||J._store.validated===2)){if(typeof J._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.");J._store.validated=1;var Y=d($),U=Y||"null";if(!rw[U]){rw[U]=!0,J=J._owner,$=$._debugOwner;var K="";$&&typeof $.tag==="number"&&(U=d($))&&(K=`
220
220
 
221
- Check the render method of \``+N+"`."),B||X&&(B=`
221
+ Check the render method of \``+U+"`."),K||Y&&(K=`
222
222
 
223
- Check the top-level render call using <`+X+">.");var W="";G!=null&&$!==G&&(X=null,typeof G.tag==="number"?X=d(G):typeof G.name==="string"&&(X=G.name),X&&(W=" It was passed a child from "+X+".")),G0(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 i2=KB(!0),zW=KB(!1),_W=0,LW=1,VW=2,eY=3,m6=!1,EW=!1,$U=null,ZU=!1,R9=N0(null),YJ=N0(0),Z4=N0(null),w4=null,T9=1,FZ=2,v1=N0(0),UJ=0,R4=1,L5=2,Q4=4,V5=8,z9,PW=new Set,CW=new Set,QU=new Set,IW=new Set,p8=0,L0=null,N1=null,h1=null,NJ=!1,_9=!1,t2=!1,KJ=0,WZ=0,c8=null,pE=0,cE=25,h=null,T4=null,l8=-1,wZ=!1,RZ={readContext:_1,use:E6,useCallback:A1,useContext:A1,useEffect:A1,useImperativeHandle:A1,useLayoutEffect:A1,useInsertionEffect:A1,useMemo:A1,useReducer:A1,useRef:A1,useState:A1,useDebugValue:A1,useDeferredValue:A1,useTransition:A1,useSyncExternalStore:A1,useId:A1,useHostTransitionStatus:A1,useFormState:A1,useActionState:A1,useOptimistic:A1,useMemoCache:A1,useCacheRefresh:A1};RZ.useEffectEvent=A1;var GU=null,OW=null,JU=null,DW=null,F8=null,v4=null,BJ=null;GU={readContext:function($){return _1($)},use:E6,useCallback:function($,Z){return h="useCallback",f0(),y$(Z),ZX($,Z)},useContext:function($){return h="useContext",f0(),_1($)},useEffect:function($,Z){return h="useEffect",f0(),y$(Z),JG($,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",f0(),y$(G),$X($,Z,G)},useInsertionEffect:function($,Z){h="useInsertionEffect",f0(),y$(Z),y2(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",f0(),y$(Z),e3($,Z)},useMemo:function($,Z){h="useMemo",f0(),y$(Z);var G=x.H;x.H=F8;try{return QX($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",f0();var X=x.H;x.H=F8;try{return c3($,Z,G)}finally{x.H=X}},useRef:function($){return h="useRef",f0(),i3($)},useState:function($){h="useState",f0();var Z=x.H;x.H=F8;try{return n3($)}finally{x.H=Z}},useDebugValue:function(){h="useDebugValue",f0()},useDeferredValue:function($,Z){return h="useDeferredValue",f0(),GX($,Z)},useTransition:function(){return h="useTransition",f0(),XX()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",f0(),r3($,Z,G)},useId:function(){return h="useId",f0(),YX()},useFormState:function($,Z){return h="useFormState",f0(),eQ(),h$($,Z)},useActionState:function($,Z){return h="useActionState",f0(),h$($,Z)},useOptimistic:function($){return h="useOptimistic",f0(),o3($)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",f0(),UX()},useEffectEvent:function($){return h="useEffectEvent",f0(),t3($)}},OW={readContext:function($){return _1($)},use:E6,useCallback:function($,Z){return h="useCallback",c(),ZX($,Z)},useContext:function($){return h="useContext",c(),_1($)},useEffect:function($,Z){return h="useEffect",c(),JG($,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",c(),$X($,Z,G)},useInsertionEffect:function($,Z){h="useInsertionEffect",c(),y2(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",c(),e3($,Z)},useMemo:function($,Z){h="useMemo",c();var G=x.H;x.H=F8;try{return QX($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",c();var X=x.H;x.H=F8;try{return c3($,Z,G)}finally{x.H=X}},useRef:function($){return h="useRef",c(),i3($)},useState:function($){h="useState",c();var Z=x.H;x.H=F8;try{return n3($)}finally{x.H=Z}},useDebugValue:function(){h="useDebugValue",c()},useDeferredValue:function($,Z){return h="useDeferredValue",c(),GX($,Z)},useTransition:function(){return h="useTransition",c(),XX()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",c(),r3($,Z,G)},useId:function(){return h="useId",c(),YX()},useActionState:function($,Z){return h="useActionState",c(),h$($,Z)},useFormState:function($,Z){return h="useFormState",c(),eQ(),h$($,Z)},useOptimistic:function($){return h="useOptimistic",c(),o3($)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",c(),UX()},useEffectEvent:function($){return h="useEffectEvent",c(),t3($)}},JU={readContext:function($){return _1($)},use:E6,useCallback:function($,Z){return h="useCallback",c(),YG($,Z)},useContext:function($){return h="useContext",c(),_1($)},useEffect:function($,Z){h="useEffect",c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",c();var G=x.H;x.H=v4;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",c();var X=x.H;x.H=v4;try{return g$($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",c(),J1().memoizedState},useState:function(){h="useState",c();var $=x.H;x.H=v4;try{return g$(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",c()},useDeferredValue:function($,Z){return h="useDeferredValue",c(),vB($,Z)},useTransition:function(){return h="useTransition",c(),hB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",c(),ZG($,Z,G)},useId:function(){return h="useId",c(),J1().memoizedState},useFormState:function($){return h="useFormState",c(),eQ(),QG($)},useActionState:function($){return h="useActionState",c(),QG($)},useOptimistic:function($,Z){return h="useOptimistic",c(),VB($,Z)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",c(),qG($)}},DW={readContext:function($){return _1($)},use:E6,useCallback:function($,Z){return h="useCallback",c(),YG($,Z)},useContext:function($){return h="useContext",c(),_1($)},useEffect:function($,Z){h="useEffect",c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",c();var G=x.H;x.H=BJ;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",c();var X=x.H;x.H=BJ;try{return V7($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",c(),J1().memoizedState},useState:function(){h="useState",c();var $=x.H;x.H=BJ;try{return V7(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",c()},useDeferredValue:function($,Z){return h="useDeferredValue",c(),kB($,Z)},useTransition:function(){return h="useTransition",c(),xB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",c(),ZG($,Z,G)},useId:function(){return h="useId",c(),J1().memoizedState},useFormState:function($){return h="useFormState",c(),eQ(),GG($)},useActionState:function($){return h="useActionState",c(),GG($)},useOptimistic:function($,Z){return h="useOptimistic",c(),PB($,Z)},useHostTransitionStatus:g2,useMemoCache:f2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",c(),qG($)}},F8={readContext:function($){return F(),_1($)},use:function($){return M(),E6($)},useCallback:function($,Z){return h="useCallback",M(),f0(),ZX($,Z)},useContext:function($){return h="useContext",M(),f0(),_1($)},useEffect:function($,Z){return h="useEffect",M(),f0(),JG($,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",M(),f0(),$X($,Z,G)},useInsertionEffect:function($,Z){h="useInsertionEffect",M(),f0(),y2(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",M(),f0(),e3($,Z)},useMemo:function($,Z){h="useMemo",M(),f0();var G=x.H;x.H=F8;try{return QX($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",M(),f0();var X=x.H;x.H=F8;try{return c3($,Z,G)}finally{x.H=X}},useRef:function($){return h="useRef",M(),f0(),i3($)},useState:function($){h="useState",M(),f0();var Z=x.H;x.H=F8;try{return n3($)}finally{x.H=Z}},useDebugValue:function(){h="useDebugValue",M(),f0()},useDeferredValue:function($,Z){return h="useDeferredValue",M(),f0(),GX($,Z)},useTransition:function(){return h="useTransition",M(),f0(),XX()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",M(),f0(),r3($,Z,G)},useId:function(){return h="useId",M(),f0(),YX()},useFormState:function($,Z){return h="useFormState",M(),f0(),h$($,Z)},useActionState:function($,Z){return h="useActionState",M(),f0(),h$($,Z)},useOptimistic:function($){return h="useOptimistic",M(),f0(),o3($)},useMemoCache:function($){return M(),f2($)},useHostTransitionStatus:g2,useCacheRefresh:function(){return h="useCacheRefresh",f0(),UX()},useEffectEvent:function($){return h="useEffectEvent",M(),f0(),t3($)}},v4={readContext:function($){return F(),_1($)},use:function($){return M(),E6($)},useCallback:function($,Z){return h="useCallback",M(),c(),YG($,Z)},useContext:function($){return h="useContext",M(),c(),_1($)},useEffect:function($,Z){h="useEffect",M(),c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",M(),c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",M(),c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",M(),c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",M(),c();var G=x.H;x.H=v4;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",M(),c();var X=x.H;x.H=v4;try{return g$($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",M(),c(),J1().memoizedState},useState:function(){h="useState",M(),c();var $=x.H;x.H=v4;try{return g$(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",M(),c()},useDeferredValue:function($,Z){return h="useDeferredValue",M(),c(),vB($,Z)},useTransition:function(){return h="useTransition",M(),c(),hB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",M(),c(),ZG($,Z,G)},useId:function(){return h="useId",M(),c(),J1().memoizedState},useFormState:function($){return h="useFormState",M(),c(),QG($)},useActionState:function($){return h="useActionState",M(),c(),QG($)},useOptimistic:function($,Z){return h="useOptimistic",M(),c(),VB($,Z)},useMemoCache:function($){return M(),f2($)},useHostTransitionStatus:g2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",M(),c(),qG($)}},BJ={readContext:function($){return F(),_1($)},use:function($){return M(),E6($)},useCallback:function($,Z){return h="useCallback",M(),c(),YG($,Z)},useContext:function($){return h="useContext",M(),c(),_1($)},useEffect:function($,Z){h="useEffect",M(),c(),O5(2048,V5,$,Z)},useImperativeHandle:function($,Z,G){return h="useImperativeHandle",M(),c(),XG($,Z,G)},useInsertionEffect:function($,Z){return h="useInsertionEffect",M(),c(),O5(4,L5,$,Z)},useLayoutEffect:function($,Z){return h="useLayoutEffect",M(),c(),O5(4,Q4,$,Z)},useMemo:function($,Z){h="useMemo",M(),c();var G=x.H;x.H=v4;try{return UG($,Z)}finally{x.H=G}},useReducer:function($,Z,G){h="useReducer",M(),c();var X=x.H;x.H=v4;try{return V7($,Z,G)}finally{x.H=X}},useRef:function(){return h="useRef",M(),c(),J1().memoizedState},useState:function(){h="useState",M(),c();var $=x.H;x.H=v4;try{return V7(I4)}finally{x.H=$}},useDebugValue:function(){h="useDebugValue",M(),c()},useDeferredValue:function($,Z){return h="useDeferredValue",M(),c(),kB($,Z)},useTransition:function(){return h="useTransition",M(),c(),xB()},useSyncExternalStore:function($,Z,G){return h="useSyncExternalStore",M(),c(),ZG($,Z,G)},useId:function(){return h="useId",M(),c(),J1().memoizedState},useFormState:function($){return h="useFormState",M(),c(),GG($)},useActionState:function($){return h="useActionState",M(),c(),GG($)},useOptimistic:function($,Z){return h="useOptimistic",M(),c(),PB($,Z)},useMemoCache:function($){return M(),f2($)},useHostTransitionStatus:g2,useCacheRefresh:function(){return h="useCacheRefresh",c(),J1().memoizedState},useEffectEvent:function($){return h="useEffectEvent",M(),c(),qG($)}};var jW={},AW=new Set,SW=new Set,vW=new Set,kW=new Set,bW=new Set,fW=new Set,yW=new Set,gW=new Set,hW=new Set,xW=new Set;Object.freeze(jW);var qU={enqueueSetState:function($,Z,G){$=$._reactInternals;var X=o5($),N=z6(X);N.payload=Z,G!==void 0&&G!==null&&(KX(G),N.callback=G),Z=_6($,N,X),Z!==null&&(l4(X,"this.setState()",$),C1(Z,$,X),T7(Z,$,X))},enqueueReplaceState:function($,Z,G){$=$._reactInternals;var X=o5($),N=z6(X);N.tag=LW,N.payload=Z,G!==void 0&&G!==null&&(KX(G),N.callback=G),Z=_6($,N,X),Z!==null&&(l4(X,"this.replaceState()",$),C1(Z,$,X),T7(Z,$,X))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var G=o5($),X=z6(G);X.tag=VW,Z!==void 0&&Z!==null&&(KX(Z),X.callback=Z),Z=_6($,X,G),Z!==null&&(l4(G,"this.forceUpdate()",$),C1(Z,$,G),T7(Z,$,G))}},L9=null,XU=null,YU=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."),x1=!1,uW={},mW={},dW={},pW={},V9=!1,cW={},HJ={},UU={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},lW=!1,rW=null;rW=new Set;var r8=!1,u1=!1,NU=!1,sW=typeof WeakSet==="function"?WeakSet:Set,i1=null,E9=null,P9=null,m1=null,A5=!1,k4=null,l1=!1,TZ=8192,lE={getCacheForType:function($){var Z=_1(y1),G=Z.data.get($);return G===void 0&&(G=$(),Z.data.set($,G)),G},cacheSignal:function(){return _1(y1).controller.signal},getOwner:function(){return t5}};if(typeof Symbol==="function"&&Symbol.for){var zZ=Symbol.for;zZ("selector.component"),zZ("selector.has_pseudo_class"),zZ("selector.role"),zZ("selector.test_id"),zZ("selector.text")}var rE=[],sE=typeof WeakMap==="function"?WeakMap:Map,t1=0,r1=2,G4=4,s8=0,_Z=1,e2=2,MJ=3,d6=4,FJ=6,nW=5,o0=t1,K1=null,v0=null,S0=0,S5=0,WJ=1,$$=2,LZ=3,oW=4,KU=5,VZ=6,wJ=7,BU=8,Z$=9,q1=S5,J4=null,p6=!1,C9=!1,HU=!1,W8=0,E1=s8,c6=0,l6=0,MU=0,v5=0,Q$=0,EZ=null,E5=null,RJ=!1,TJ=0,aW=0,iW=300,zJ=1/0,tW=500,PZ=null,S1=null,r6=null,_J=0,FU=1,WU=2,eW=3,s6=0,$w=1,Zw=2,Qw=3,Gw=4,LJ=5,d1=0,n6=null,I9=null,b4=0,wU=0,RU=-0,TU=null,Jw=null,qw=null,f4=_J,Xw=null,nE=50,CZ=0,zU=null,_U=!1,VJ=!1,oE=50,G$=0,IZ=null,O9=!1,EJ=null,Yw=!1,Uw=new Set,aE={},PJ=null,D9=null,LU=!1,VU=!1,CJ=!1,EU=!1,o6=0,PU={};(function(){for(var $=0;$<fY.length;$++){var Z=fY[$],G=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),C4(G,"on"+Z)}C4(hF,"onAnimationEnd"),C4(xF,"onAnimationIteration"),C4(uF,"onAnimationStart"),C4("dblclick","onDoubleClick"),C4("focusin","onFocus"),C4("focusout","onBlur"),C4(IE,"onTransitionRun"),C4(OE,"onTransitionStart"),C4(DE,"onTransitionCancel"),C4(mF,"onTransitionEnd")})(),d5("onMouseEnter",["mouseout","mouseover"]),d5("onMouseLeave",["mouseout","mouseover"]),d5("onPointerEnter",["pointerout","pointerover"]),d5("onPointerLeave",["pointerout","pointerover"]),K5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),K5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),K5("onBeforeInput",["compositionend","keypress","textInput","paste"]),K5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),K5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),K5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var OZ="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(" "),CU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(OZ)),IJ="_reactListening"+Math.random().toString(36).slice(2),Nw=!1,Kw=!1,OJ=!1,Bw=!1,DJ=!1,jJ=!1,Hw=!1,AJ={},iE=/\r\n?/g,tE=/\u0000|\uFFFD/g,J$="http://www.w3.org/1999/xlink",IU="http://www.w3.org/XML/1998/namespace",eE="javascript:throw new Error('React form unexpectedly submitted.')",$P="suppressHydrationWarning",q$="&",SJ="/&",DZ="$",jZ="/$",a6="$?",X$="$~",j9="$!",ZP="html",QP="body",GP="head",OU="F!",Mw="F",Fw="loading",JP="style",n8=0,A9=1,vJ=2,DU=null,jU=null,Ww={dialog:!0,webview:!0},AU=null,AZ=void 0,ww=typeof setTimeout==="function"?setTimeout:void 0,qP=typeof clearTimeout==="function"?clearTimeout:void 0,Y$=-1,Rw=typeof Promise==="function"?Promise:void 0,XP=typeof queueMicrotask==="function"?queueMicrotask:typeof Rw<"u"?function($){return Rw.resolve(null).then($).catch(cL)}:ww,SU=null,U$=0,SZ=1,Tw=2,zw=3,z4=4,_4=new Map,_w=new Set,o8=Z1.d;Z1.d={f:function(){var $=o8.f(),Z=p$();return $||Z},r:function($){var Z=E0($);Z!==null&&Z.tag===5&&Z.type==="form"?gB(Z):o8.r($)},D:function($){o8.D($),AM("dns-prefetch",$,null)},C:function($,Z){o8.C($,Z),AM("preconnect",$,Z)},L:function($,Z,G){o8.L($,Z,G);var X=S9;if(X&&$&&Z){var N='link[rel="preload"][as="'+Y4(Z)+'"]';Z==="image"?G&&G.imageSrcSet?(N+='[imagesrcset="'+Y4(G.imageSrcSet)+'"]',typeof G.imageSizes==="string"&&(N+='[imagesizes="'+Y4(G.imageSizes)+'"]')):N+='[href="'+Y4($)+'"]':N+='[href="'+Y4($)+'"]';var B=N;switch(Z){case"style":B=r$($);break;case"script":B=s$($)}_4.has(B)||($=y0({rel:"preload",href:Z==="image"&&G&&G.imageSrcSet?void 0:$,as:Z},G),_4.set(B,$),X.querySelector(N)!==null||Z==="style"&&X.querySelector(g7(B))||Z==="script"&&X.querySelector(h7(B))||(Z=X.createElement("link"),Q5(Z,"link",$),F0(Z),X.head.appendChild(Z)))}},m:function($,Z){o8.m($,Z);var G=S9;if(G&&$){var X=Z&&typeof Z.as==="string"?Z.as:"script",N='link[rel="modulepreload"][as="'+Y4(X)+'"][href="'+Y4($)+'"]',B=N;switch(X){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=s$($)}if(!_4.has(B)&&($=y0({rel:"modulepreload",href:$},Z),_4.set(B,$),G.querySelector(N)===null)){switch(X){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(G.querySelector(h7(B)))return}X=G.createElement("link"),Q5(X,"link",$),F0(X),G.head.appendChild(X)}}},X:function($,Z){o8.X($,Z);var G=S9;if(G&&$){var X=a0(G).hoistableScripts,N=s$($),B=X.get(N);B||(B=G.querySelector(h7(N)),B||($=y0({src:$,async:!0},Z),(Z=_4.get(N))&&$Y($,Z),B=G.createElement("script"),F0(B),Q5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},X.set(N,B))}},S:function($,Z,G){o8.S($,Z,G);var X=S9;if(X&&$){var N=a0(X).hoistableStyles,B=r$($);Z=Z||"default";var W=N.get(B);if(!W){var w={loading:U$,preload:null};if(W=X.querySelector(g7(B)))w.loading=SZ|z4;else{$=y0({rel:"stylesheet",href:$,"data-precedence":Z},G),(G=_4.get(B))&&eX($,G);var _=W=X.createElement("link");F0(_),Q5(_,"link",$),_._p=new Promise(function(V,k){_.onload=V,_.onerror=k}),_.addEventListener("load",function(){w.loading|=SZ}),_.addEventListener("error",function(){w.loading|=Tw}),w.loading|=z4,OG(W,Z,X)}W={type:"stylesheet",instance:W,count:1,state:w},N.set(B,W)}}},M:function($,Z){o8.M($,Z);var G=S9;if(G&&$){var X=a0(G).hoistableScripts,N=s$($),B=X.get(N);B||(B=G.querySelector(h7(N)),B||($=y0({src:$,async:!0,type:"module"},Z),(Z=_4.get(N))&&$Y($,Z),B=G.createElement("script"),F0(B),Q5(B,"link",$),G.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},X.set(N,B))}}};var S9=typeof document>"u"?null:document,kJ=null,YP=60000,UP=800,NP=500,vU=0,kU=null,bJ=null,N$=PV,vZ={$$typeof:q8,Provider:null,Consumer:null,_currentValue:N$,_currentValue2:N$,_threadCount:0},Lw="%c%s%c",Vw="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",Ew="",fJ=" ",KP=Function.prototype.bind,Pw=!1,Cw=null,Iw=null,Ow=null,Dw=null,jw=null,Aw=null,Sw=null,vw=null,kw=null,bw=null;Cw=function($,Z,G,X){Z=Q($,Z),Z!==null&&(G=J(Z.memoizedState,G,0,X),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=y0({},$.memoizedProps),G=B5($,2),G!==null&&C1(G,$,2))},Iw=function($,Z,G){Z=Q($,Z),Z!==null&&(G=U(Z.memoizedState,G,0),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=y0({},$.memoizedProps),G=B5($,2),G!==null&&C1(G,$,2))},Ow=function($,Z,G,X){Z=Q($,Z),Z!==null&&(G=q(Z.memoizedState,G,X),Z.memoizedState=G,Z.baseState=G,$.memoizedProps=y0({},$.memoizedProps),G=B5($,2),G!==null&&C1(G,$,2))},Dw=function($,Z,G){$.pendingProps=J($.memoizedProps,Z,0,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=B5($,2),Z!==null&&C1(Z,$,2)},jw=function($,Z){$.pendingProps=U($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=B5($,2),Z!==null&&C1(Z,$,2)},Aw=function($,Z,G){$.pendingProps=q($.memoizedProps,Z,G),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=B5($,2),Z!==null&&C1(Z,$,2)},Sw=function($){var Z=B5($,2);Z!==null&&C1(Z,$,2)},vw=function($){var Z=j$(),G=B5($,Z);G!==null&&C1(G,$,Z)},kw=function($){H=$},bw=function($){K=$};var yJ=!0,gJ=null,bU=!1,i6=null,t6=null,e6=null,kZ=new Map,bZ=new Map,$2=[],BP="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(" "),hJ=null;if(vG.prototype.render=XY.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()."):C(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 X=Z.current,N=o5(X);ZY(X,N,G,Z,null,null)},vG.prototype.unmount=XY.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;(o0&(r1|G4))!==t1&&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."),ZY($.current,2,null,$,null,null),p$(),Z[A6]=null}},vG.prototype.unstable_scheduleHydration=function($){if($){var Z=f();$={blockedOn:null,target:$,priority:Z};for(var G=0;G<$2.length&&Z!==0&&Z<$2[G].priority;G++);$2.splice(G,0,$),G===0&&cM($)}},function(){var $=v9.version;if($!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
223
+ Check the top-level render call using <`+Y+">.");var w="";J!=null&&$!==J&&(Y=null,typeof J.tag==="number"?Y=d(J):typeof J.name==="string"&&(Y=J.name),Y&&(w=" It was passed a child from "+Y+".")),G0(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.',K,w)})}}};var M9=xK(!0),ow=xK(!1),aw=0,iw=1,tw=2,wN=3,J2=!1,ew=!1,WN=null,RN=!1,f7=U0(null),jG=U0(0),H6=U0(null),D6=null,y7=1,SZ=2,g1=U0(0),vG=0,j6=1,v5=2,M6=4,b5=8,g7,$W=new Set,ZW=new Set,TN=new Set,QW=new Set,G8=0,V0=null,M1=null,c1=null,bG=!1,h7=!1,F9=!1,kG=0,DZ=0,q8=null,pV=0,cV=25,u=null,v6=null,X8=-1,jZ=!1,vZ={readContext:V1,use:u8,useCallback:f1,useContext:f1,useEffect:f1,useImperativeHandle:f1,useLayoutEffect:f1,useInsertionEffect:f1,useMemo:f1,useReducer:f1,useRef:f1,useState:f1,useDebugValue:f1,useDeferredValue:f1,useTransition:f1,useSyncExternalStore:f1,useId:f1,useHostTransitionStatus:f1,useFormState:f1,useActionState:f1,useOptimistic:f1,useMemoCache:f1,useCacheRefresh:f1};vZ.useEffectEvent=f1;var zN=null,JW=null,PN=null,GW=null,S4=null,a6=null,fG=null;zN={readContext:function($){return V1($)},use:u8,useCallback:function($,Z){return u="useCallback",x0(),$7(Z),RX($,Z)},useContext:function($){return u="useContext",x0(),V1($)},useEffect:function($,Z){return u="useEffect",x0(),$7(Z),AJ($,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",x0(),$7(J),WX($,Z,J)},useInsertionEffect:function($,Z){u="useInsertionEffect",x0(),$7(Z),t2(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",x0(),$7(Z),wX($,Z)},useMemo:function($,Z){u="useMemo",x0(),$7(Z);var J=x.H;x.H=S4;try{return TX($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",x0();var Y=x.H;x.H=S4;try{return XX($,Z,J)}finally{x.H=Y}},useRef:function($){return u="useRef",x0(),MX($)},useState:function($){u="useState",x0();var Z=x.H;x.H=S4;try{return BX($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",x0()},useDeferredValue:function($,Z){return u="useDeferredValue",x0(),zX($,Z)},useTransition:function(){return u="useTransition",x0(),LX()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",x0(),NX($,Z,J)},useId:function(){return u="useId",x0(),_X()},useFormState:function($,Z){return u="useFormState",x0(),_J(),Q7($,Z)},useActionState:function($,Z){return u="useActionState",x0(),Q7($,Z)},useOptimistic:function($){return u="useOptimistic",x0(),KX($)},useHostTransitionStatus:e2,useMemoCache:i2,useCacheRefresh:function(){return u="useCacheRefresh",x0(),VX()},useEffectEvent:function($){return u="useEffectEvent",x0(),FX($)}},JW={readContext:function($){return V1($)},use:u8,useCallback:function($,Z){return u="useCallback",c(),RX($,Z)},useContext:function($){return u="useContext",c(),V1($)},useEffect:function($,Z){return u="useEffect",c(),AJ($,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",c(),WX($,Z,J)},useInsertionEffect:function($,Z){u="useInsertionEffect",c(),t2(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),wX($,Z)},useMemo:function($,Z){u="useMemo",c();var J=x.H;x.H=S4;try{return TX($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",c();var Y=x.H;x.H=S4;try{return XX($,Z,J)}finally{x.H=Y}},useRef:function($){return u="useRef",c(),MX($)},useState:function($){u="useState",c();var Z=x.H;x.H=S4;try{return BX($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),zX($,Z)},useTransition:function(){return u="useTransition",c(),LX()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",c(),NX($,Z,J)},useId:function(){return u="useId",c(),_X()},useActionState:function($,Z){return u="useActionState",c(),Q7($,Z)},useFormState:function($,Z){return u="useFormState",c(),_J(),Q7($,Z)},useOptimistic:function($){return u="useOptimistic",c(),KX($)},useHostTransitionStatus:e2,useMemoCache:i2,useCacheRefresh:function(){return u="useCacheRefresh",c(),VX()},useEffectEvent:function($){return u="useEffectEvent",c(),FX($)}},PN={readContext:function($){return V1($)},use:u8,useCallback:function($,Z){return u="useCallback",c(),jJ($,Z)},useContext:function($){return u="useContext",c(),V1($)},useEffect:function($,Z){u="useEffect",c(),g5(2048,b5,$,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",c(),DJ($,Z,J)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),g5(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),g5(4,M6,$,Z)},useMemo:function($,Z){u="useMemo",c();var J=x.H;x.H=a6;try{return vJ($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",c();var Y=x.H;x.H=a6;try{return Z7($,Z,J)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),X1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=a6;try{return Z7(c6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),NH($,Z)},useTransition:function(){return u="useTransition",c(),FH()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",c(),IJ($,Z,J)},useId:function(){return u="useId",c(),X1().memoizedState},useFormState:function($){return u="useFormState",c(),_J(),OJ($)},useActionState:function($){return u="useActionState",c(),OJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),tK($,Z)},useHostTransitionStatus:e2,useMemoCache:i2,useCacheRefresh:function(){return u="useCacheRefresh",c(),X1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),SJ($)}},GW={readContext:function($){return V1($)},use:u8,useCallback:function($,Z){return u="useCallback",c(),jJ($,Z)},useContext:function($){return u="useContext",c(),V1($)},useEffect:function($,Z){u="useEffect",c(),g5(2048,b5,$,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",c(),DJ($,Z,J)},useInsertionEffect:function($,Z){return u="useInsertionEffect",c(),g5(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",c(),g5(4,M6,$,Z)},useMemo:function($,Z){u="useMemo",c();var J=x.H;x.H=fG;try{return vJ($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",c();var Y=x.H;x.H=fG;try{return g$($,Z,J)}finally{x.H=Y}},useRef:function(){return u="useRef",c(),X1().memoizedState},useState:function(){u="useState",c();var $=x.H;x.H=fG;try{return g$(c6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",c()},useDeferredValue:function($,Z){return u="useDeferredValue",c(),UH($,Z)},useTransition:function(){return u="useTransition",c(),wH()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",c(),IJ($,Z,J)},useId:function(){return u="useId",c(),X1().memoizedState},useFormState:function($){return u="useFormState",c(),_J(),EJ($)},useActionState:function($){return u="useActionState",c(),EJ($)},useOptimistic:function($,Z){return u="useOptimistic",c(),$H($,Z)},useHostTransitionStatus:e2,useMemoCache:i2,useCacheRefresh:function(){return u="useCacheRefresh",c(),X1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",c(),SJ($)}},S4={readContext:function($){return F(),V1($)},use:function($){return M(),u8($)},useCallback:function($,Z){return u="useCallback",M(),x0(),RX($,Z)},useContext:function($){return u="useContext",M(),x0(),V1($)},useEffect:function($,Z){return u="useEffect",M(),x0(),AJ($,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",M(),x0(),WX($,Z,J)},useInsertionEffect:function($,Z){u="useInsertionEffect",M(),x0(),t2(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),x0(),wX($,Z)},useMemo:function($,Z){u="useMemo",M(),x0();var J=x.H;x.H=S4;try{return TX($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",M(),x0();var Y=x.H;x.H=S4;try{return XX($,Z,J)}finally{x.H=Y}},useRef:function($){return u="useRef",M(),x0(),MX($)},useState:function($){u="useState",M(),x0();var Z=x.H;x.H=S4;try{return BX($)}finally{x.H=Z}},useDebugValue:function(){u="useDebugValue",M(),x0()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),x0(),zX($,Z)},useTransition:function(){return u="useTransition",M(),x0(),LX()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",M(),x0(),NX($,Z,J)},useId:function(){return u="useId",M(),x0(),_X()},useFormState:function($,Z){return u="useFormState",M(),x0(),Q7($,Z)},useActionState:function($,Z){return u="useActionState",M(),x0(),Q7($,Z)},useOptimistic:function($){return u="useOptimistic",M(),x0(),KX($)},useMemoCache:function($){return M(),i2($)},useHostTransitionStatus:e2,useCacheRefresh:function(){return u="useCacheRefresh",x0(),VX()},useEffectEvent:function($){return u="useEffectEvent",M(),x0(),FX($)}},a6={readContext:function($){return F(),V1($)},use:function($){return M(),u8($)},useCallback:function($,Z){return u="useCallback",M(),c(),jJ($,Z)},useContext:function($){return u="useContext",M(),c(),V1($)},useEffect:function($,Z){u="useEffect",M(),c(),g5(2048,b5,$,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",M(),c(),DJ($,Z,J)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),g5(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),g5(4,M6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var J=x.H;x.H=a6;try{return vJ($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",M(),c();var Y=x.H;x.H=a6;try{return Z7($,Z,J)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),X1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=a6;try{return Z7(c6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),NH($,Z)},useTransition:function(){return u="useTransition",M(),c(),FH()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",M(),c(),IJ($,Z,J)},useId:function(){return u="useId",M(),c(),X1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),OJ($)},useActionState:function($){return u="useActionState",M(),c(),OJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),tK($,Z)},useMemoCache:function($){return M(),i2($)},useHostTransitionStatus:e2,useCacheRefresh:function(){return u="useCacheRefresh",c(),X1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),SJ($)}},fG={readContext:function($){return F(),V1($)},use:function($){return M(),u8($)},useCallback:function($,Z){return u="useCallback",M(),c(),jJ($,Z)},useContext:function($){return u="useContext",M(),c(),V1($)},useEffect:function($,Z){u="useEffect",M(),c(),g5(2048,b5,$,Z)},useImperativeHandle:function($,Z,J){return u="useImperativeHandle",M(),c(),DJ($,Z,J)},useInsertionEffect:function($,Z){return u="useInsertionEffect",M(),c(),g5(4,v5,$,Z)},useLayoutEffect:function($,Z){return u="useLayoutEffect",M(),c(),g5(4,M6,$,Z)},useMemo:function($,Z){u="useMemo",M(),c();var J=x.H;x.H=a6;try{return vJ($,Z)}finally{x.H=J}},useReducer:function($,Z,J){u="useReducer",M(),c();var Y=x.H;x.H=a6;try{return g$($,Z,J)}finally{x.H=Y}},useRef:function(){return u="useRef",M(),c(),X1().memoizedState},useState:function(){u="useState",M(),c();var $=x.H;x.H=a6;try{return g$(c6)}finally{x.H=$}},useDebugValue:function(){u="useDebugValue",M(),c()},useDeferredValue:function($,Z){return u="useDeferredValue",M(),c(),UH($,Z)},useTransition:function(){return u="useTransition",M(),c(),wH()},useSyncExternalStore:function($,Z,J){return u="useSyncExternalStore",M(),c(),IJ($,Z,J)},useId:function(){return u="useId",M(),c(),X1().memoizedState},useFormState:function($){return u="useFormState",M(),c(),EJ($)},useActionState:function($){return u="useActionState",M(),c(),EJ($)},useOptimistic:function($,Z){return u="useOptimistic",M(),c(),$H($,Z)},useMemoCache:function($){return M(),i2($)},useHostTransitionStatus:e2,useCacheRefresh:function(){return u="useCacheRefresh",c(),X1().memoizedState},useEffectEvent:function($){return u="useEffectEvent",M(),c(),SJ($)}};var qW={},XW=new Set,YW=new Set,NW=new Set,UW=new Set,BW=new Set,KW=new Set,HW=new Set,MW=new Set,FW=new Set,wW=new Set;Object.freeze(qW);var CN={enqueueSetState:function($,Z,J){$=$._reactInternals;var Y=X6($),U=f8(Y);U.payload=Z,J!==void 0&&J!==null&&(OX(J),U.callback=J),Z=y8($,U,Y),Z!==null&&(X4(Y,"this.setState()",$),D1(Z,$,Y),b$(Z,$,Y))},enqueueReplaceState:function($,Z,J){$=$._reactInternals;var Y=X6($),U=f8(Y);U.tag=iw,U.payload=Z,J!==void 0&&J!==null&&(OX(J),U.callback=J),Z=y8($,U,Y),Z!==null&&(X4(Y,"this.replaceState()",$),D1(Z,$,Y),b$(Z,$,Y))},enqueueForceUpdate:function($,Z){$=$._reactInternals;var J=X6($),Y=f8(J);Y.tag=tw,Z!==void 0&&Z!==null&&(OX(Z),Y.callback=Z),Z=y8($,Y,J),Z!==null&&(X4(J,"this.forceUpdate()",$),D1(Z,$,J),b$(Z,$,J))}},u7=null,LN=null,_N=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."),l1=!1,WW={},RW={},TW={},zW={},x7=!1,PW={},yG={},VN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},CW=!1,LW=null;LW=new Set;var Y8=!1,r1=!1,IN=!1,_W=typeof WeakSet==="function"?WeakSet:Set,X5=null,m7=null,d7=null,s1=null,x5=!1,i6=null,t1=!1,bZ=8192,lV={getCacheForType:function($){var Z=V1(d1),J=Z.data.get($);return J===void 0&&(J=$(),Z.data.set($,J)),J},cacheSignal:function(){return V1(d1).controller.signal},getOwner:function(){return U6}};if(typeof Symbol==="function"&&Symbol.for){var kZ=Symbol.for;kZ("selector.component"),kZ("selector.has_pseudo_class"),kZ("selector.role"),kZ("selector.test_id"),kZ("selector.text")}var rV=[],sV=typeof WeakMap==="function"?WeakMap:Map,Y5=0,e1=2,F6=4,N8=0,fZ=1,w9=2,gG=3,G2=4,hG=6,VW=5,a0=Y5,F1=null,g0=null,y0=0,m5=0,uG=1,W9=2,yZ=3,IW=4,ON=5,gZ=6,xG=7,EN=8,R9=9,Y1=m5,w6=null,q2=!1,p7=!1,AN=!1,D4=0,E1=N8,X2=0,Y2=0,SN=0,d5=0,T9=0,hZ=null,k5=null,mG=!1,dG=0,OW=0,EW=300,pG=1/0,AW=500,uZ=null,y1=null,N2=null,cG=0,DN=1,jN=2,SW=3,U2=0,DW=1,jW=2,vW=3,bW=4,lG=5,n1=0,B2=null,c7=null,t6=0,vN=0,bN=-0,kN=null,kW=null,fW=null,e6=cG,yW=null,nV=50,xZ=0,fN=null,yN=!1,rG=!1,oV=50,z9=0,mZ=null,l7=!1,sG=null,gW=!1,hW=new Set,aV={},nG=null,r7=null,gN=!1,hN=!1,oG=!1,uN=!1,K2=0,xN={};(function(){for(var $=0;$<iY.length;$++){var Z=iY[$],J=Z.toLowerCase();Z=Z[0].toUpperCase()+Z.slice(1),p6(J,"on"+Z)}p6(Fw,"onAnimationEnd"),p6(ww,"onAnimationIteration"),p6(Ww,"onAnimationStart"),p6("dblclick","onDoubleClick"),p6("focusin","onFocus"),p6("focusout","onBlur"),p6(OV,"onTransitionRun"),p6(EV,"onTransitionStart"),p6(AV,"onTransitionCancel"),p6(Rw,"onTransitionEnd")})(),e5("onMouseEnter",["mouseout","mouseover"]),e5("onMouseLeave",["mouseout","mouseover"]),e5("onPointerEnter",["pointerout","pointerover"]),e5("onPointerLeave",["pointerout","pointerover"]),z5("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),z5("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),z5("onBeforeInput",["compositionend","keypress","textInput","paste"]),z5("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),z5("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),z5("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dZ="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(" "),mN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dZ)),aG="_reactListening"+Math.random().toString(36).slice(2),uW=!1,xW=!1,iG=!1,mW=!1,tG=!1,eG=!1,dW=!1,$3={},iV=/\r\n?/g,tV=/\u0000|\uFFFD/g,P9="http://www.w3.org/1999/xlink",dN="http://www.w3.org/XML/1998/namespace",eV="javascript:throw new Error('React form unexpectedly submitted.')",$I="suppressHydrationWarning",C9="&",Z3="/&",pZ="$",cZ="/$",H2="$?",L9="$~",s7="$!",ZI="html",QI="body",JI="head",pN="F!",pW="F",cW="loading",GI="style",U8=0,n7=1,Q3=2,cN=null,lN=null,lW={dialog:!0,webview:!0},rN=null,lZ=void 0,rW=typeof setTimeout==="function"?setTimeout:void 0,qI=typeof clearTimeout==="function"?clearTimeout:void 0,_9=-1,sW=typeof Promise==="function"?Promise:void 0,XI=typeof queueMicrotask==="function"?queueMicrotask:typeof sW<"u"?function($){return sW.resolve(null).then($).catch(cL)}:rW,sN=null,V9=0,rZ=1,nW=2,oW=3,b6=4,k6=new Map,aW=new Set,B8=G1.d;G1.d={f:function(){var $=B8.f(),Z=Y7();return $||Z},r:function($){var Z=E0($);Z!==null&&Z.tag===5&&Z.type==="form"?MH(Z):B8.r($)},D:function($){B8.D($),XF("dns-prefetch",$,null)},C:function($,Z){B8.C($,Z),XF("preconnect",$,Z)},L:function($,Z,J){B8.L($,Z,J);var Y=o7;if(Y&&$&&Z){var U='link[rel="preload"][as="'+C6(Z)+'"]';Z==="image"?J&&J.imageSrcSet?(U+='[imagesrcset="'+C6(J.imageSrcSet)+'"]',typeof J.imageSizes==="string"&&(U+='[imagesizes="'+C6(J.imageSizes)+'"]')):U+='[href="'+C6($)+'"]':U+='[href="'+C6($)+'"]';var K=U;switch(Z){case"style":K=B7($);break;case"script":K=K7($)}k6.has(K)||($=m0({rel:"preload",href:Z==="image"&&J&&J.imageSrcSet?void 0:$,as:Z},J),k6.set(K,$),Y.querySelector(U)!==null||Z==="style"&&Y.querySelector(t$(K))||Z==="script"&&Y.querySelector(e$(K))||(Z=Y.createElement("link"),K5(Z,"link",$),R0(Z),Y.head.appendChild(Z)))}},m:function($,Z){B8.m($,Z);var J=o7;if(J&&$){var Y=Z&&typeof Z.as==="string"?Z.as:"script",U='link[rel="modulepreload"][as="'+C6(Y)+'"][href="'+C6($)+'"]',K=U;switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":K=K7($)}if(!k6.has(K)&&($=m0({rel:"modulepreload",href:$},Z),k6.set(K,$),J.querySelector(U)===null)){switch(Y){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(J.querySelector(e$(K)))return}Y=J.createElement("link"),K5(Y,"link",$),R0(Y),J.head.appendChild(Y)}}},X:function($,Z){B8.X($,Z);var J=o7;if(J&&$){var Y=i0(J).hoistableScripts,U=K7($),K=Y.get(U);K||(K=J.querySelector(e$(U)),K||($=m0({src:$,async:!0},Z),(Z=k6.get(U))&&WY($,Z),K=J.createElement("script"),R0(K),K5(K,"link",$),J.head.appendChild(K)),K={type:"script",instance:K,count:1,state:null},Y.set(U,K))}},S:function($,Z,J){B8.S($,Z,J);var Y=o7;if(Y&&$){var U=i0(Y).hoistableStyles,K=B7($);Z=Z||"default";var w=U.get(K);if(!w){var R={loading:V9,preload:null};if(w=Y.querySelector(t$(K)))R.loading=rZ|b6;else{$=m0({rel:"stylesheet",href:$,"data-precedence":Z},J),(J=k6.get(K))&&wY($,J);var P=w=Y.createElement("link");R0(P),K5(P,"link",$),P._p=new Promise(function(L,k){P.onload=L,P.onerror=k}),P.addEventListener("load",function(){R.loading|=rZ}),P.addEventListener("error",function(){R.loading|=nW}),R.loading|=b6,iJ(w,Z,Y)}w={type:"stylesheet",instance:w,count:1,state:R},U.set(K,w)}}},M:function($,Z){B8.M($,Z);var J=o7;if(J&&$){var Y=i0(J).hoistableScripts,U=K7($),K=Y.get(U);K||(K=J.querySelector(e$(U)),K||($=m0({src:$,async:!0,type:"module"},Z),(Z=k6.get(U))&&WY($,Z),K=J.createElement("script"),R0(K),K5(K,"link",$),J.head.appendChild(K)),K={type:"script",instance:K,count:1,state:null},Y.set(U,K))}}};var o7=typeof document>"u"?null:document,J3=null,YI=60000,NI=800,UI=500,nN=0,oN=null,G3=null,I9=V_,sZ={$$typeof:P4,Provider:null,Consumer:null,_currentValue:I9,_currentValue2:I9,_threadCount:0},iW="%c%s%c",tW="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",eW="",q3=" ",BI=Function.prototype.bind,$R=!1,ZR=null,QR=null,JR=null,GR=null,qR=null,XR=null,YR=null,NR=null,UR=null,BR=null;ZR=function($,Z,J,Y){Z=Q($,Z),Z!==null&&(J=G(Z.memoizedState,J,0,Y),Z.memoizedState=J,Z.baseState=J,$.memoizedProps=m0({},$.memoizedProps),J=P5($,2),J!==null&&D1(J,$,2))},QR=function($,Z,J){Z=Q($,Z),Z!==null&&(J=N(Z.memoizedState,J,0),Z.memoizedState=J,Z.baseState=J,$.memoizedProps=m0({},$.memoizedProps),J=P5($,2),J!==null&&D1(J,$,2))},JR=function($,Z,J,Y){Z=Q($,Z),Z!==null&&(J=q(Z.memoizedState,J,Y),Z.memoizedState=J,Z.baseState=J,$.memoizedProps=m0({},$.memoizedProps),J=P5($,2),J!==null&&D1(J,$,2))},GR=function($,Z,J){$.pendingProps=G($.memoizedProps,Z,0,J),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=P5($,2),Z!==null&&D1(Z,$,2)},qR=function($,Z){$.pendingProps=N($.memoizedProps,Z,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=P5($,2),Z!==null&&D1(Z,$,2)},XR=function($,Z,J){$.pendingProps=q($.memoizedProps,Z,J),$.alternate&&($.alternate.pendingProps=$.pendingProps),Z=P5($,2),Z!==null&&D1(Z,$,2)},YR=function($){var Z=P5($,2);Z!==null&&D1(Z,$,2)},NR=function($){var Z=s9(),J=P5($,Z);J!==null&&D1(J,$,Z)},UR=function($){H=$},BR=function($){B=$};var X3=!0,Y3=null,aN=!1,M2=null,F2=null,w2=null,nZ=new Map,oZ=new Map,W2=[],KI="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(" "),N3=null;if(QG.prototype.render=LY.prototype.render=function($){var Z=this._internalRoot;if(Z===null)throw Error("Cannot update an unmounted root.");var J=arguments;typeof J[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()."):I(J[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 J[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),J=$;var Y=Z.current,U=X6(Y);RY(Y,U,J,Z,null,null)},QG.prototype.unmount=LY.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;(a0&(e1|F6))!==Y5&&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."),RY($.current,2,null,$,null,null),Y7(),Z[r8]=null}},QG.prototype.unstable_scheduleHydration=function($){if($){var Z=y();$={blockedOn:null,target:$,priority:Z};for(var J=0;J<W2.length&&Z!==0&&Z<W2[J].priority;J++);W2.splice(J,0,$),J===0&&PF($)}},function(){var $=Y$.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
224
  - react: `+($+`
225
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"),Z1.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 $=s(Z),$=$!==null?Q0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.7"};return $.overrideHookState=Cw,$.overrideHookStateDeletePath=Iw,$.overrideHookStateRenamePath=Ow,$.overrideProps=Dw,$.overridePropsDeletePath=jw,$.overridePropsRenamePath=Aw,$.scheduleUpdate=Sw,$.scheduleRetry=vw,$.setErrorHandler=kw,$.setSuspenseHandler=bw,$.scheduleRefresh=I,$.scheduleRoot=P,$.setRefreshHandler=A,$.getCurrentFiber=wV,D$($)}()&&K8&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var fw=window.location.protocol;/^(https?|file):$/.test(fw)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(fw==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}PP.createRoot=function($,Z){if(!C($))throw Error("Target container is not a DOM element.");nM($);var G=!1,X="",N=lB,B=rB,W=sB;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===J8&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
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"),G1.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 $=o(Z),$=$!==null?Q0($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.7"};return $.overrideHookState=ZR,$.overrideHookStateDeletePath=QR,$.overrideHookStateRenamePath=JR,$.overrideProps=GR,$.overridePropsDeletePath=qR,$.overridePropsRenamePath=XR,$.scheduleUpdate=YR,$.scheduleRetry=NR,$.setErrorHandler=UR,$.setSuspenseHandler=BR,$.scheduleRefresh=A,$.scheduleRoot=V,$.setRefreshHandler=O,$.getCurrentFiber=W_,r9($)}()&&I4&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var KR=window.location.protocol;/^(https?|file):$/.test(KR)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(KR==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}vS.createRoot=function($,Z){if(!I($))throw Error("Target container is not a DOM element.");VF($);var J=!1,Y="",U=CH,K=LH,w=_H;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===z4&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
228
 
229
229
  let root = createRoot(domContainer);
230
- root.render(<App />);`),Z.unstable_strictMode===!0&&(G=!0),Z.identifierPrefix!==void 0&&(X=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(N=Z.onUncaughtError),Z.onCaughtError!==void 0&&(B=Z.onCaughtError),Z.onRecoverableError!==void 0&&(W=Z.onRecoverableError)),Z=gM($,1,!1,null,null,G,X,null,N,B,W,sM),$[A6]=Z.current,mX($),new XY(Z)},PP.hydrateRoot=function($,Z,G){if(!C($))throw Error("Target container is not a DOM element.");nM($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var X=!1,N="",B=lB,W=rB,w=sB,_=null;return G!==null&&G!==void 0&&(G.unstable_strictMode===!0&&(X=!0),G.identifierPrefix!==void 0&&(N=G.identifierPrefix),G.onUncaughtError!==void 0&&(B=G.onUncaughtError),G.onCaughtError!==void 0&&(W=G.onCaughtError),G.onRecoverableError!==void 0&&(w=G.onRecoverableError),G.formState!==void 0&&(_=G.formState)),Z=gM($,1,!0,Z,G!=null?G:null,X,N,_,B,W,w,sM),Z.context=hM(null),G=Z.current,X=o5(G),X=C2(X),N=z6(X),N.callback=null,_6(G,N,X),l4(X,"hydrateRoot()",null),G=X,Z.current.lanes=G,H6(Z,G),Q8(Z),$[A6]=Z.current,mX($),new vG(Z)},PP.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var pw=Z2((lS,dw)=>{var CP=R0(mw());dw.exports=CP});var Fz=Z2((bD)=>{var z$=R0(e1());(function(){function Q(S){if(S==null)return null;if(typeof S==="function")return S.$$typeof===d?null:S.displayName||S.name||null;if(typeof S==="string")return S;switch(S){case A:return"Fragment";case g:return"Profiler";case C:return"StrictMode";case s:return"Suspense";case Q0:return"SuspenseList";case Y0:return"Activity"}if(typeof S==="object")switch(typeof S.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case I:return"Portal";case o:return S.displayName||"Context";case m:return(S._context.displayName||"Context")+".Consumer";case a:var n=S.render;return S=S.displayName,S||(S=n.displayName||n.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case p:return n=S.displayName||null,n!==null?n:Q(S.type)||"Memo";case i:n=S._payload,S=S._init;try{return Q(S(n))}catch(B0){}}return null}function J(S){return""+S}function q(S){try{J(S);var n=!1}catch(b0){n=!0}if(n){n=console;var B0=n.error,H0=typeof Symbol==="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return B0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H0),J(S)}}function Y(S){if(S===A)return"<>";if(typeof S==="object"&&S!==null&&S.$$typeof===i)return"<...>";try{var n=Q(S);return n?"<"+n+">":"<...>"}catch(B0){return"<...>"}}function U(){var S=N0.A;return S===null?null:S.getOwner()}function K(){return Error("react-stack-top-frame")}function H(S){if(w0.call(S,"key")){var n=Object.getOwnPropertyDescriptor(S,"key").get;if(n&&n.isReactWarning)return!1}return S.key!==void 0}function M(S,n){function B0(){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))}B0.isReactWarning=!0,Object.defineProperty(S,"key",{get:B0,configurable:!0})}function F(){var S=Q(this.type);return J0[S]||(J0[S]=!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.")),S=this.props.ref,S!==void 0?S:null}function R(S,n,B0,H0,b0,j1){var I0=B0.ref;return S={$$typeof:P,type:S,key:n,props:B0,_owner:H0},(I0!==void 0?I0:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:F}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:b0}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j1}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function T(S,n,B0,H0,b0,j1){var I0=n.children;if(I0!==void 0)if(H0)if(z0(I0)){for(H0=0;H0<I0.length;H0++)z(I0[H0]);Object.freeze&&Object.freeze(I0)}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 z(I0);if(w0.call(n,"key")){I0=Q(S);var f1=Object.keys(n).filter(function(P4){return P4!=="key"});H0=0<f1.length?"{key: someKey, "+f1.join(": ..., ")+": ...}":"{key: someKey}",k0[I0+H0]||(f1=0<f1.length?"{"+f1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
230
+ root.render(<App />);`),Z.unstable_strictMode===!0&&(J=!0),Z.identifierPrefix!==void 0&&(Y=Z.identifierPrefix),Z.onUncaughtError!==void 0&&(U=Z.onUncaughtError),Z.onCaughtError!==void 0&&(K=Z.onCaughtError),Z.onRecoverableError!==void 0&&(w=Z.onRecoverableError)),Z=MF($,1,!1,null,null,J,Y,null,U,K,w,_F),$[r8]=Z.current,JY($),new LY(Z)},vS.hydrateRoot=function($,Z,J){if(!I($))throw Error("Target container is not a DOM element.");VF($),Z===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Y=!1,U="",K=CH,w=LH,R=_H,P=null;return J!==null&&J!==void 0&&(J.unstable_strictMode===!0&&(Y=!0),J.identifierPrefix!==void 0&&(U=J.identifierPrefix),J.onUncaughtError!==void 0&&(K=J.onUncaughtError),J.onCaughtError!==void 0&&(w=J.onCaughtError),J.onRecoverableError!==void 0&&(R=J.onRecoverableError),J.formState!==void 0&&(P=J.formState)),Z=MF($,1,!0,Z,J!=null?J:null,Y,U,P,K,w,R,_F),Z.context=FF(null),J=Z.current,Y=X6(J),Y=m2(Y),U=f8(Y),U.callback=null,y8(J,U,Y),X4(Y,"hydrateRoot()",null),J=Y,Z.current.lanes=J,A8(Z,J),R4(Z),$[r8]=Z.current,JY($),new QG(Z)},vS.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var uz=R2((qb,hz)=>{var bS=e(gz());hz.exports=bS});var z0=R2((GD)=>{var h9=e(A1());(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 O:return"Fragment";case j:return"Profiler";case I:return"StrictMode";case o:return"Suspense";case Q0:return"SuspenseList";case X0: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 A: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 i:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case a:n=v._payload,v=v._init;try{return Q(v(n))}catch(H0){}}return null}function G(v){return""+v}function q(v){try{G(v);var n=!1}catch(u0){n=!0}if(n){n=console;var H0=n.error,M0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return H0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",M0),G(v)}}function X(v){if(v===O)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===a)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(H0){return"<...>"}}function N(){var v=U0.A;return v===null?null:v.getOwner()}function B(){return Error("react-stack-top-frame")}function H(v){if(P0.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 H0(){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))}H0.isReactWarning=!0,Object.defineProperty(v,"key",{get:H0,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,H0,M0,u0,k1){var j0=H0.ref;return v={$$typeof:V,type:v,key:n,props:H0,_owner:M0},(j0!==void 0?j0: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:u0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:k1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function T(v,n,H0,M0,u0,k1){var j0=n.children;if(j0!==void 0)if(M0)if(L0(j0)){for(M0=0;M0<j0.length;M0++)z(j0[M0]);Object.freeze&&Object.freeze(j0)}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 z(j0);if(P0.call(n,"key")){j0=Q(v);var m1=Object.keys(n).filter(function(d6){return d6!=="key"});M0=0<m1.length?"{key: someKey, "+m1.join(": ..., ")+": ...}":"{key: someKey}",h0[j0+M0]||(m1=0<m1.length?"{"+m1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
231
231
  let props = %s;
232
232
  <%s {...props} />
233
233
  React keys must be passed directly to JSX without using spread:
234
234
  let props = %s;
235
- <%s key={someKey} {...props} />`,H0,I0,f1,I0),k0[I0+H0]=!0)}if(I0=null,B0!==void 0&&(q(B0),I0=""+B0),H(n)&&(q(n.key),I0=""+n.key),"key"in n){B0={};for(var N5 in n)N5!=="key"&&(B0[N5]=n[N5])}else B0=n;return I0&&M(B0,typeof S==="function"?S.displayName||S.name||"Unknown":S),R(S,I0,B0,U(),b0,j1)}function z(S){L(S)?S._store&&(S._store.validated=1):typeof S==="object"&&S!==null&&S.$$typeof===i&&(S._payload.status==="fulfilled"?L(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function L(S){return typeof S==="object"&&S!==null&&S.$$typeof===P}var P=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),N0=z$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w0=Object.prototype.hasOwnProperty,z0=Array.isArray,C0=console.createTask?console.createTask:function(){return null};z$={react_stack_bottom_frame:function(S){return S()}};var l,J0={},K0=z$.react_stack_bottom_frame.bind(z$,K)(),d0=C0(Y(K)),k0={};bD.Fragment=A,bD.jsx=function(S,n,B0){var H0=1e4>N0.recentlyCreatedOwnerStacks++;return T(S,n,B0,!1,H0?Error("react-stack-top-frame"):K0,H0?C0(Y(S)):d0)},bD.jsxs=function(S,n,B0){var H0=1e4>N0.recentlyCreatedOwnerStacks++;return T(S,n,B0,!0,H0?Error("react-stack-top-frame"):K0,H0?C0(Y(S)):d0)}})()});var G1=Z2((Cj)=>{var V$=R0(e1());(function(){function Q(S){if(S==null)return null;if(typeof S==="function")return S.$$typeof===d?null:S.displayName||S.name||null;if(typeof S==="string")return S;switch(S){case A:return"Fragment";case g:return"Profiler";case C:return"StrictMode";case s:return"Suspense";case Q0:return"SuspenseList";case Y0:return"Activity"}if(typeof S==="object")switch(typeof S.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case I:return"Portal";case o:return S.displayName||"Context";case m:return(S._context.displayName||"Context")+".Consumer";case a:var n=S.render;return S=S.displayName,S||(S=n.displayName||n.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case p:return n=S.displayName||null,n!==null?n:Q(S.type)||"Memo";case i:n=S._payload,S=S._init;try{return Q(S(n))}catch(B0){}}return null}function J(S){return""+S}function q(S){try{J(S);var n=!1}catch(b0){n=!0}if(n){n=console;var B0=n.error,H0=typeof Symbol==="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return B0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H0),J(S)}}function Y(S){if(S===A)return"<>";if(typeof S==="object"&&S!==null&&S.$$typeof===i)return"<...>";try{var n=Q(S);return n?"<"+n+">":"<...>"}catch(B0){return"<...>"}}function U(){var S=N0.A;return S===null?null:S.getOwner()}function K(){return Error("react-stack-top-frame")}function H(S){if(w0.call(S,"key")){var n=Object.getOwnPropertyDescriptor(S,"key").get;if(n&&n.isReactWarning)return!1}return S.key!==void 0}function M(S,n){function B0(){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))}B0.isReactWarning=!0,Object.defineProperty(S,"key",{get:B0,configurable:!0})}function F(){var S=Q(this.type);return J0[S]||(J0[S]=!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.")),S=this.props.ref,S!==void 0?S:null}function R(S,n,B0,H0,b0,j1){var I0=B0.ref;return S={$$typeof:P,type:S,key:n,props:B0,_owner:H0},(I0!==void 0?I0:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:F}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(S,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:b0}),Object.defineProperty(S,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j1}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function T(S,n,B0,H0,b0,j1){var I0=n.children;if(I0!==void 0)if(H0)if(z0(I0)){for(H0=0;H0<I0.length;H0++)z(I0[H0]);Object.freeze&&Object.freeze(I0)}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 z(I0);if(w0.call(n,"key")){I0=Q(S);var f1=Object.keys(n).filter(function(P4){return P4!=="key"});H0=0<f1.length?"{key: someKey, "+f1.join(": ..., ")+": ...}":"{key: someKey}",k0[I0+H0]||(f1=0<f1.length?"{"+f1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
235
+ <%s key={someKey} {...props} />`,M0,j0,m1,j0),h0[j0+M0]=!0)}if(j0=null,H0!==void 0&&(q(H0),j0=""+H0),H(n)&&(q(n.key),j0=""+n.key),"key"in n){H0={};for(var T5 in n)T5!=="key"&&(H0[T5]=n[T5])}else H0=n;return j0&&M(H0,typeof v==="function"?v.displayName||v.name||"Unknown":v),W(v,j0,H0,N(),u0,k1)}function z(v){C(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===a&&(v._payload.status==="fulfilled"?C(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function C(v){return typeof v==="object"&&v!==null&&v.$$typeof===V}var V=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),i=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),U0=h9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,L0=Array.isArray,D0=console.createTask?console.createTask:function(){return null};h9={react_stack_bottom_frame:function(v){return v()}};var l,q0={},B0=h9.react_stack_bottom_frame.bind(h9,B)(),l0=D0(X(B)),h0={};GD.Fragment=O,GD.jsxDEV=function(v,n,H0,M0){var u0=1e4>U0.recentlyCreatedOwnerStacks++;return T(v,n,H0,M0,u0?Error("react-stack-top-frame"):B0,u0?D0(X(v)):l0)}})()});var oP=R2((aD)=>{var d9=e(A1());(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 O:return"Fragment";case j:return"Profiler";case I:return"StrictMode";case o:return"Suspense";case Q0:return"SuspenseList";case X0: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 A: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 i:return n=v.displayName||null,n!==null?n:Q(v.type)||"Memo";case a:n=v._payload,v=v._init;try{return Q(v(n))}catch(H0){}}return null}function G(v){return""+v}function q(v){try{G(v);var n=!1}catch(u0){n=!0}if(n){n=console;var H0=n.error,M0=typeof Symbol==="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return H0.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",M0),G(v)}}function X(v){if(v===O)return"<>";if(typeof v==="object"&&v!==null&&v.$$typeof===a)return"<...>";try{var n=Q(v);return n?"<"+n+">":"<...>"}catch(H0){return"<...>"}}function N(){var v=U0.A;return v===null?null:v.getOwner()}function B(){return Error("react-stack-top-frame")}function H(v){if(P0.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 H0(){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))}H0.isReactWarning=!0,Object.defineProperty(v,"key",{get:H0,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,H0,M0,u0,k1){var j0=H0.ref;return v={$$typeof:V,type:v,key:n,props:H0,_owner:M0},(j0!==void 0?j0: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:u0}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:k1}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function T(v,n,H0,M0,u0,k1){var j0=n.children;if(j0!==void 0)if(M0)if(L0(j0)){for(M0=0;M0<j0.length;M0++)z(j0[M0]);Object.freeze&&Object.freeze(j0)}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 z(j0);if(P0.call(n,"key")){j0=Q(v);var m1=Object.keys(n).filter(function(d6){return d6!=="key"});M0=0<m1.length?"{key: someKey, "+m1.join(": ..., ")+": ...}":"{key: someKey}",h0[j0+M0]||(m1=0<m1.length?"{"+m1.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
236
236
  let props = %s;
237
237
  <%s {...props} />
238
238
  React keys must be passed directly to JSX without using spread:
239
239
  let props = %s;
240
- <%s key={someKey} {...props} />`,H0,I0,f1,I0),k0[I0+H0]=!0)}if(I0=null,B0!==void 0&&(q(B0),I0=""+B0),H(n)&&(q(n.key),I0=""+n.key),"key"in n){B0={};for(var N5 in n)N5!=="key"&&(B0[N5]=n[N5])}else B0=n;return I0&&M(B0,typeof S==="function"?S.displayName||S.name||"Unknown":S),R(S,I0,B0,U(),b0,j1)}function z(S){L(S)?S._store&&(S._store.validated=1):typeof S==="object"&&S!==null&&S.$$typeof===i&&(S._payload.status==="fulfilled"?L(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1))}function L(S){return typeof S==="object"&&S!==null&&S.$$typeof===P}var P=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),i=Symbol.for("react.lazy"),Y0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),N0=V$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w0=Object.prototype.hasOwnProperty,z0=Array.isArray,C0=console.createTask?console.createTask:function(){return null};V$={react_stack_bottom_frame:function(S){return S()}};var l,J0={},K0=V$.react_stack_bottom_frame.bind(V$,K)(),d0=C0(Y(K)),k0={};Cj.Fragment=A,Cj.jsxDEV=function(S,n,B0,H0){var b0=1e4>N0.recentlyCreatedOwnerStacks++;return T(S,n,B0,H0,b0?Error("react-stack-top-frame"):K0,b0?C0(Y(S)):d0)}})()});var S_=R0(pw(),1);var U5=R0(e1(),1);async function cw(Q="24h"){let J=await fetch(`/api/stats/overview?range=${encodeURIComponent(Q)}`);if(!J.ok)throw Error("Failed to fetch overview stats");return J.json()}async function lw(Q="24h"){let J=await fetch(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`);if(!J.ok)throw Error("Failed to fetch model stats");return J.json()}async function rw(Q="24h"){let J=await fetch(`/api/stats/costs?range=${encodeURIComponent(Q)}`);if(!J.ok)throw Error("Failed to fetch cost stats");return J.json()}async function sw(Q=50){let J=await fetch(`/api/stats/recent?limit=${Q}`);if(!J.ok)throw Error("Failed to fetch recent requests");return J.json()}async function nw(Q=50){let J=await fetch(`/api/stats/errors?limit=${Q}`);if(!J.ok)throw Error("Failed to fetch recent errors");return J.json()}async function ow(Q){let J=await fetch(`/api/request/${Q}`);if(!J.ok)throw Error("Failed to fetch request details");return J.json()}async function aw(){let Q=await fetch("/api/sync");if(!Q.ok)throw Error("Failed to sync");return Q.json()}async function iw(Q="24h"){let J=await fetch(`/api/stats/behavior?range=${encodeURIComponent(Q)}`);if(!J.ok)throw Error("Failed to fetch behavior stats");return J.json()}/*!
240
+ <%s key={someKey} {...props} />`,M0,j0,m1,j0),h0[j0+M0]=!0)}if(j0=null,H0!==void 0&&(q(H0),j0=""+H0),H(n)&&(q(n.key),j0=""+n.key),"key"in n){H0={};for(var T5 in n)T5!=="key"&&(H0[T5]=n[T5])}else H0=n;return j0&&M(H0,typeof v==="function"?v.displayName||v.name||"Unknown":v),W(v,j0,H0,N(),u0,k1)}function z(v){C(v)?v._store&&(v._store.validated=1):typeof v==="object"&&v!==null&&v.$$typeof===a&&(v._payload.status==="fulfilled"?C(v._payload.value)&&v._payload.value._store&&(v._payload.value._store.validated=1):v._store&&(v._store.validated=1))}function C(v){return typeof v==="object"&&v!==null&&v.$$typeof===V}var V=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),i=Symbol.for("react.memo"),a=Symbol.for("react.lazy"),X0=Symbol.for("react.activity"),d=Symbol.for("react.client.reference"),U0=d9.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P0=Object.prototype.hasOwnProperty,L0=Array.isArray,D0=console.createTask?console.createTask:function(){return null};d9={react_stack_bottom_frame:function(v){return v()}};var l,q0={},B0=d9.react_stack_bottom_frame.bind(d9,B)(),l0=D0(X(B)),h0={};aD.Fragment=O,aD.jsx=function(v,n,H0){var M0=1e4>U0.recentlyCreatedOwnerStacks++;return T(v,n,H0,!1,M0?Error("react-stack-top-frame"):B0,M0?D0(X(v)):l0)},aD.jsxs=function(v,n,H0){var M0=1e4>U0.recentlyCreatedOwnerStacks++;return T(v,n,H0,!0,M0?Error("react-stack-top-frame"):B0,M0?D0(X(v)):l0)}})()});/*!
241
241
  * @kurkle/color v0.3.4
242
242
  * https://github.com/kurkle/color#readme
243
243
  * (c) 2024 Jukka Kurkela
244
244
  * Released under the MIT License
245
- */function yZ(Q){return Q+0.5|0}var Q2=(Q,J,q)=>Math.max(Math.min(Q,q),J);function fZ(Q){return Q2(yZ(Q*2.55),0,255)}function G2(Q){return Q2(yZ(Q*255),0,255)}function i8(Q){return Q2(yZ(Q/2.55)/100,0,1)}function tw(Q){return Q2(yZ(Q*100),0,100)}var L4={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},hU=[..."0123456789ABCDEF"],IP=(Q)=>hU[Q&15],OP=(Q)=>hU[(Q&240)>>4]+hU[Q&15],uJ=(Q)=>(Q&240)>>4===(Q&15),DP=(Q)=>uJ(Q.r)&&uJ(Q.g)&&uJ(Q.b)&&uJ(Q.a);function jP(Q){var J=Q.length,q;if(Q[0]==="#"){if(J===4||J===5)q={r:255&L4[Q[1]]*17,g:255&L4[Q[2]]*17,b:255&L4[Q[3]]*17,a:J===5?L4[Q[4]]*17:255};else if(J===7||J===9)q={r:L4[Q[1]]<<4|L4[Q[2]],g:L4[Q[3]]<<4|L4[Q[4]],b:L4[Q[5]]<<4|L4[Q[6]],a:J===9?L4[Q[7]]<<4|L4[Q[8]]:255}}return q}var AP=(Q,J)=>Q<255?J(Q):"";function SP(Q){var J=DP(Q)?IP:OP;return Q?"#"+J(Q.r)+J(Q.g)+J(Q.b)+AP(Q.a,J):void 0}var vP=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function QR(Q,J,q){let Y=J*Math.min(q,1-q),U=(K,H=(K+Q/30)%12)=>q-Y*Math.max(Math.min(H-3,9-H,1),-1);return[U(0),U(8),U(4)]}function kP(Q,J,q){let Y=(U,K=(U+Q/60)%6)=>q-q*J*Math.max(Math.min(K,4-K,1),0);return[Y(5),Y(3),Y(1)]}function bP(Q,J,q){let Y=QR(Q,1,0.5),U;if(J+q>1)U=1/(J+q),J*=U,q*=U;for(U=0;U<3;U++)Y[U]*=1-J-q,Y[U]+=J;return Y}function fP(Q,J,q,Y,U){if(Q===U)return(J-q)/Y+(J<q?6:0);if(J===U)return(q-Q)/Y+2;return(Q-J)/Y+4}function xU(Q){let q=Q.r/255,Y=Q.g/255,U=Q.b/255,K=Math.max(q,Y,U),H=Math.min(q,Y,U),M=(K+H)/2,F,R,T;if(K!==H)T=K-H,R=M>0.5?T/(2-K-H):T/(K+H),F=fP(q,Y,U,T,K),F=F*60+0.5;return[F|0,R||0,M]}function uU(Q,J,q,Y){return(Array.isArray(J)?Q(J[0],J[1],J[2]):Q(J,q,Y)).map(G2)}function mU(Q,J,q){return uU(QR,Q,J,q)}function yP(Q,J,q){return uU(bP,Q,J,q)}function gP(Q,J,q){return uU(kP,Q,J,q)}function GR(Q){return(Q%360+360)%360}function hP(Q){let J=vP.exec(Q),q=255,Y;if(!J)return;if(J[5]!==Y)q=J[6]?fZ(+J[5]):G2(+J[5]);let U=GR(+J[2]),K=+J[3]/100,H=+J[4]/100;if(J[1]==="hwb")Y=yP(U,K,H);else if(J[1]==="hsv")Y=gP(U,K,H);else Y=mU(U,K,H);return{r:Y[0],g:Y[1],b:Y[2],a:q}}function xP(Q,J){var q=xU(Q);q[0]=GR(q[0]+J),q=mU(q),Q.r=q[0],Q.g=q[1],Q.b=q[2]}function uP(Q){if(!Q)return;let J=xU(Q),q=J[0],Y=tw(J[1]),U=tw(J[2]);return Q.a<255?`hsla(${q}, ${Y}%, ${U}%, ${i8(Q.a)})`:`hsl(${q}, ${Y}%, ${U}%)`}var ew={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"},$R={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 mP(){let Q={},J=Object.keys($R),q=Object.keys(ew),Y,U,K,H,M;for(Y=0;Y<J.length;Y++){H=M=J[Y];for(U=0;U<q.length;U++)K=q[U],M=M.replace(K,ew[K]);K=parseInt($R[H],16),Q[M]=[K>>16&255,K>>8&255,K&255]}return Q}var mJ;function dP(Q){if(!mJ)mJ=mP(),mJ.transparent=[0,0,0,0];let J=mJ[Q.toLowerCase()];return J&&{r:J[0],g:J[1],b:J[2],a:J.length===4?J[3]:255}}var pP=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function cP(Q){let J=pP.exec(Q),q=255,Y,U,K;if(!J)return;if(J[7]!==Y){let H=+J[7];q=J[8]?fZ(H):Q2(H*255,0,255)}return Y=+J[1],U=+J[3],K=+J[5],Y=255&(J[2]?fZ(Y):Q2(Y,0,255)),U=255&(J[4]?fZ(U):Q2(U,0,255)),K=255&(J[6]?fZ(K):Q2(K,0,255)),{r:Y,g:U,b:K,a:q}}function lP(Q){return Q&&(Q.a<255?`rgba(${Q.r}, ${Q.g}, ${Q.b}, ${i8(Q.a)})`:`rgb(${Q.r}, ${Q.g}, ${Q.b})`)}var gU=(Q)=>Q<=0.0031308?Q*12.92:Math.pow(Q,0.4166666666666667)*1.055-0.055,k9=(Q)=>Q<=0.04045?Q/12.92:Math.pow((Q+0.055)/1.055,2.4);function rP(Q,J,q){let Y=k9(i8(Q.r)),U=k9(i8(Q.g)),K=k9(i8(Q.b));return{r:G2(gU(Y+q*(k9(i8(J.r))-Y))),g:G2(gU(U+q*(k9(i8(J.g))-U))),b:G2(gU(K+q*(k9(i8(J.b))-K))),a:Q.a+q*(J.a-Q.a)}}function dJ(Q,J,q){if(Q){let Y=xU(Q);Y[J]=Math.max(0,Math.min(Y[J]+Y[J]*q,J===0?360:1)),Y=mU(Y),Q.r=Y[0],Q.g=Y[1],Q.b=Y[2]}}function JR(Q,J){return Q?Object.assign(J||{},Q):Q}function ZR(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=G2(Q[3])}}else J=JR(Q,{r:0,g:0,b:0,a:1}),J.a=G2(J.a);return J}function sP(Q){if(Q.charAt(0)==="r")return cP(Q);return hP(Q)}class b9{constructor(Q){if(Q instanceof b9)return Q;let J=typeof Q,q;if(J==="object")q=ZR(Q);else if(J==="string")q=jP(Q)||dP(Q)||sP(Q);this._rgb=q,this._valid=!!q}get valid(){return this._valid}get rgb(){var Q=JR(this._rgb);if(Q)Q.a=i8(Q.a);return Q}set rgb(Q){this._rgb=ZR(Q)}rgbString(){return this._valid?lP(this._rgb):void 0}hexString(){return this._valid?SP(this._rgb):void 0}hslString(){return this._valid?uP(this._rgb):void 0}mix(Q,J){if(Q){let q=this.rgb,Y=Q.rgb,U,K=J===U?0.5:J,H=2*K-1,M=q.a-Y.a,F=((H*M===-1?H:(H+M)/(1+H*M))+1)/2;U=1-F,q.r=255&F*q.r+U*Y.r+0.5,q.g=255&F*q.g+U*Y.g+0.5,q.b=255&F*q.b+U*Y.b+0.5,q.a=K*q.a+(1-K)*Y.a,this.rgb=q}return this}interpolate(Q,J){if(Q)this._rgb=rP(this._rgb,Q._rgb,J);return this}clone(){return new b9(this.rgb)}alpha(Q){return this._rgb.a=G2(Q),this}clearer(Q){let J=this._rgb;return J.a*=1-Q,this}greyscale(){let Q=this._rgb,J=yZ(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 dJ(this._rgb,2,Q),this}darken(Q){return dJ(this._rgb,2,-Q),this}saturate(Q){return dJ(this._rgb,1,Q),this}desaturate(Q){return dJ(this._rgb,1,-Q),this}rotate(Q){return xP(this._rgb,Q),this}}/*!
245
+ */function iZ(Q){return Q+0.5|0}var T2=(Q,G,q)=>Math.max(Math.min(Q,q),G);function aZ(Q){return T2(iZ(Q*2.55),0,255)}function z2(Q){return T2(iZ(Q*255),0,255)}function H8(Q){return T2(iZ(Q/2.55)/100,0,1)}function MR(Q){return T2(iZ(Q*100),0,100)}var f6={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},tN=[..."0123456789ABCDEF"],PI=(Q)=>tN[Q&15],CI=(Q)=>tN[(Q&240)>>4]+tN[Q&15],U3=(Q)=>(Q&240)>>4===(Q&15),LI=(Q)=>U3(Q.r)&&U3(Q.g)&&U3(Q.b)&&U3(Q.a);function _I(Q){var G=Q.length,q;if(Q[0]==="#"){if(G===4||G===5)q={r:255&f6[Q[1]]*17,g:255&f6[Q[2]]*17,b:255&f6[Q[3]]*17,a:G===5?f6[Q[4]]*17:255};else if(G===7||G===9)q={r:f6[Q[1]]<<4|f6[Q[2]],g:f6[Q[3]]<<4|f6[Q[4]],b:f6[Q[5]]<<4|f6[Q[6]],a:G===9?f6[Q[7]]<<4|f6[Q[8]]:255}}return q}var VI=(Q,G)=>Q<255?G(Q):"";function II(Q){var G=LI(Q)?PI:CI;return Q?"#"+G(Q.r)+G(Q.g)+G(Q.b)+VI(Q.a,G):void 0}var OI=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function RR(Q,G,q){let X=G*Math.min(q,1-q),N=(B,H=(B+Q/30)%12)=>q-X*Math.max(Math.min(H-3,9-H,1),-1);return[N(0),N(8),N(4)]}function EI(Q,G,q){let X=(N,B=(N+Q/60)%6)=>q-q*G*Math.max(Math.min(B,4-B,1),0);return[X(5),X(3),X(1)]}function AI(Q,G,q){let X=RR(Q,1,0.5),N;if(G+q>1)N=1/(G+q),G*=N,q*=N;for(N=0;N<3;N++)X[N]*=1-G-q,X[N]+=G;return X}function SI(Q,G,q,X,N){if(Q===N)return(G-q)/X+(G<q?6:0);if(G===N)return(q-Q)/X+2;return(Q-G)/X+4}function eN(Q){let q=Q.r/255,X=Q.g/255,N=Q.b/255,B=Math.max(q,X,N),H=Math.min(q,X,N),M=(B+H)/2,F,W,T;if(B!==H)T=B-H,W=M>0.5?T/(2-B-H):T/(B+H),F=SI(q,X,N,T,B),F=F*60+0.5;return[F|0,W||0,M]}function $U(Q,G,q,X){return(Array.isArray(G)?Q(G[0],G[1],G[2]):Q(G,q,X)).map(z2)}function ZU(Q,G,q){return $U(RR,Q,G,q)}function DI(Q,G,q){return $U(AI,Q,G,q)}function jI(Q,G,q){return $U(EI,Q,G,q)}function TR(Q){return(Q%360+360)%360}function vI(Q){let G=OI.exec(Q),q=255,X;if(!G)return;if(G[5]!==X)q=G[6]?aZ(+G[5]):z2(+G[5]);let N=TR(+G[2]),B=+G[3]/100,H=+G[4]/100;if(G[1]==="hwb")X=DI(N,B,H);else if(G[1]==="hsv")X=jI(N,B,H);else X=ZU(N,B,H);return{r:X[0],g:X[1],b:X[2],a:q}}function bI(Q,G){var q=eN(Q);q[0]=TR(q[0]+G),q=ZU(q),Q.r=q[0],Q.g=q[1],Q.b=q[2]}function kI(Q){if(!Q)return;let G=eN(Q),q=G[0],X=MR(G[1]),N=MR(G[2]);return Q.a<255?`hsla(${q}, ${X}%, ${N}%, ${H8(Q.a)})`:`hsl(${q}, ${X}%, ${N}%)`}var FR={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"},wR={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 fI(){let Q={},G=Object.keys(wR),q=Object.keys(FR),X,N,B,H,M;for(X=0;X<G.length;X++){H=M=G[X];for(N=0;N<q.length;N++)B=q[N],M=M.replace(B,FR[B]);B=parseInt(wR[H],16),Q[M]=[B>>16&255,B>>8&255,B&255]}return Q}var B3;function yI(Q){if(!B3)B3=fI(),B3.transparent=[0,0,0,0];let G=B3[Q.toLowerCase()];return G&&{r:G[0],g:G[1],b:G[2],a:G.length===4?G[3]:255}}var gI=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function hI(Q){let G=gI.exec(Q),q=255,X,N,B;if(!G)return;if(G[7]!==X){let H=+G[7];q=G[8]?aZ(H):T2(H*255,0,255)}return X=+G[1],N=+G[3],B=+G[5],X=255&(G[2]?aZ(X):T2(X,0,255)),N=255&(G[4]?aZ(N):T2(N,0,255)),B=255&(G[6]?aZ(B):T2(B,0,255)),{r:X,g:N,b:B,a:q}}function uI(Q){return Q&&(Q.a<255?`rgba(${Q.r}, ${Q.g}, ${Q.b}, ${H8(Q.a)})`:`rgb(${Q.r}, ${Q.g}, ${Q.b})`)}var iN=(Q)=>Q<=0.0031308?Q*12.92:Math.pow(Q,0.4166666666666667)*1.055-0.055,a7=(Q)=>Q<=0.04045?Q/12.92:Math.pow((Q+0.055)/1.055,2.4);function xI(Q,G,q){let X=a7(H8(Q.r)),N=a7(H8(Q.g)),B=a7(H8(Q.b));return{r:z2(iN(X+q*(a7(H8(G.r))-X))),g:z2(iN(N+q*(a7(H8(G.g))-N))),b:z2(iN(B+q*(a7(H8(G.b))-B))),a:Q.a+q*(G.a-Q.a)}}function K3(Q,G,q){if(Q){let X=eN(Q);X[G]=Math.max(0,Math.min(X[G]+X[G]*q,G===0?360:1)),X=ZU(X),Q.r=X[0],Q.g=X[1],Q.b=X[2]}}function zR(Q,G){return Q?Object.assign(G||{},Q):Q}function WR(Q){var G={r:0,g:0,b:0,a:255};if(Array.isArray(Q)){if(Q.length>=3){if(G={r:Q[0],g:Q[1],b:Q[2],a:255},Q.length>3)G.a=z2(Q[3])}}else G=zR(Q,{r:0,g:0,b:0,a:1}),G.a=z2(G.a);return G}function mI(Q){if(Q.charAt(0)==="r")return hI(Q);return vI(Q)}class i7{constructor(Q){if(Q instanceof i7)return Q;let G=typeof Q,q;if(G==="object")q=WR(Q);else if(G==="string")q=_I(Q)||yI(Q)||mI(Q);this._rgb=q,this._valid=!!q}get valid(){return this._valid}get rgb(){var Q=zR(this._rgb);if(Q)Q.a=H8(Q.a);return Q}set rgb(Q){this._rgb=WR(Q)}rgbString(){return this._valid?uI(this._rgb):void 0}hexString(){return this._valid?II(this._rgb):void 0}hslString(){return this._valid?kI(this._rgb):void 0}mix(Q,G){if(Q){let q=this.rgb,X=Q.rgb,N,B=G===N?0.5:G,H=2*B-1,M=q.a-X.a,F=((H*M===-1?H:(H+M)/(1+H*M))+1)/2;N=1-F,q.r=255&F*q.r+N*X.r+0.5,q.g=255&F*q.g+N*X.g+0.5,q.b=255&F*q.b+N*X.b+0.5,q.a=B*q.a+(1-B)*X.a,this.rgb=q}return this}interpolate(Q,G){if(Q)this._rgb=xI(this._rgb,Q._rgb,G);return this}clone(){return new i7(this.rgb)}alpha(Q){return this._rgb.a=z2(Q),this}clearer(Q){let G=this._rgb;return G.a*=1-Q,this}greyscale(){let Q=this._rgb,G=iZ(Q.r*0.3+Q.g*0.59+Q.b*0.11);return Q.r=Q.g=Q.b=G,this}opaquer(Q){let G=this._rgb;return G.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 K3(this._rgb,2,Q),this}darken(Q){return K3(this._rgb,2,-Q),this}saturate(Q){return K3(this._rgb,1,Q),this}desaturate(Q){return K3(this._rgb,1,-Q),this}rotate(Q){return bI(this._rgb,Q),this}}/*!
246
246
  * Chart.js v4.5.1
247
247
  * https://www.chartjs.org
248
248
  * (c) 2025 Chart.js Contributors
249
249
  * Released under the MIT License
250
- */function R8(){}var WR=(()=>{let Q=0;return()=>Q++})();function t0(Q){return Q===null||Q===void 0}function z1(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 n0(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function O1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function g5(Q,J){return O1(Q)?Q:J}function h0(Q,J){return typeof Q>"u"?J:Q}var wR=(Q,J)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*J:+Q;function W1(Q,J,q){if(Q&&typeof Q.call==="function")return Q.apply(q,J)}function X1(Q,J,q,Y){let U,K,H;if(z1(Q))if(K=Q.length,Y)for(U=K-1;U>=0;U--)J.call(q,Q[U],U);else for(U=0;U<K;U++)J.call(q,Q[U],U);else if(n0(Q)){H=Object.keys(Q),K=H.length;for(U=0;U<K;U++)J.call(q,Q[H[U]],H[U])}}function xZ(Q,J){let q,Y,U,K;if(!Q||!J||Q.length!==J.length)return!1;for(q=0,Y=Q.length;q<Y;++q)if(U=Q[q],K=J[q],U.datasetIndex!==K.datasetIndex||U.index!==K.index)return!1;return!0}function rJ(Q){if(z1(Q))return Q.map(rJ);if(n0(Q)){let J=Object.create(null),q=Object.keys(Q),Y=q.length,U=0;for(;U<Y;++U)J[q[U]]=rJ(Q[q[U]]);return J}return Q}function RR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function nP(Q,J,q,Y){if(!RR(Q))return;let U=J[Q],K=q[Q];if(n0(U)&&n0(K))y9(U,K,Y);else J[Q]=rJ(K)}function y9(Q,J,q){let Y=z1(J)?J:[J],U=Y.length;if(!n0(Q))return Q;q=q||{};let K=q.merger||nP,H;for(let M=0;M<U;++M){if(H=Y[M],!n0(H))continue;let F=Object.keys(H);for(let R=0,T=F.length;R<T;++R)K(F[R],Q,H,q)}return Q}function h9(Q,J){return y9(Q,J,{merger:oP})}function oP(Q,J,q){if(!RR(Q))return;let Y=J[Q],U=q[Q];if(n0(Y)&&n0(U))h9(Y,U);else if(!Object.prototype.hasOwnProperty.call(J,Q))J[Q]=rJ(U)}var qR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function aP(Q){let J=Q.split("."),q=[],Y="";for(let U of J)if(Y+=U,Y.endsWith("\\"))Y=Y.slice(0,-1)+".";else q.push(Y),Y="";return q}function iP(Q){let J=aP(Q);return(q)=>{for(let Y of J){if(Y==="")break;q=q&&q[Y]}return q}}function F$(Q,J){return(qR[J]||(qR[J]=iP(J)))(Q)}function aJ(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var x9=(Q)=>typeof Q<"u",t8=(Q)=>typeof Q==="function",cU=(Q,J)=>{if(Q.size!==J.size)return!1;for(let q of Q)if(!J.has(q))return!1;return!0};function TR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var b1=Math.PI,f5=2*b1,tP=f5+b1,sJ=Number.POSITIVE_INFINITY,eP=b1/180,b5=b1/2,B$=b1/4,XR=b1*2/3,e8=Math.log10,y4=Math.sign;function u9(Q,J,q){return Math.abs(Q-J)<q}function lU(Q){let J=Math.round(Q);Q=u9(Q,J,Q/1000)?J:Q;let q=Math.pow(10,Math.floor(e8(Q))),Y=Q/q;return(Y<=1?1:Y<=2?2:Y<=5?5:10)*q}function zR(Q){let J=[],q=Math.sqrt(Q),Y;for(Y=1;Y<q;Y++)if(Q%Y===0)J.push(Y),J.push(Q/Y);if(q===(q|0))J.push(q);return J.sort((U,K)=>U-K).pop(),J}function $C(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function m9(Q){return!$C(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function _R(Q,J){let q=Math.round(Q);return q-J<=Q&&q+J>=Q}function rU(Q,J,q){let Y,U,K;for(Y=0,U=Q.length;Y<U;Y++)if(K=Q[Y][q],!isNaN(K))J.min=Math.min(J.min,K),J.max=Math.max(J.max,K)}function $6(Q){return Q*(b1/180)}function iJ(Q){return Q*(180/b1)}function sU(Q){if(!O1(Q))return;let J=1,q=0;while(Math.round(Q*J)/J!==Q)J*=10,q++;return q}function LR(Q,J){let q=J.x-Q.x,Y=J.y-Q.y,U=Math.sqrt(q*q+Y*Y),K=Math.atan2(Y,q);if(K<-0.5*b1)K+=f5;return{angle:K,distance:U}}function nJ(Q,J){return Math.sqrt(Math.pow(J.x-Q.x,2)+Math.pow(J.y-Q.y,2))}function ZC(Q,J){return(Q-J+tP)%f5-b1}function k5(Q){return(Q%f5+f5)%f5}function nU(Q,J,q,Y){let U=k5(Q),K=k5(J),H=k5(q),M=k5(K-U),F=k5(H-U),R=k5(U-K),T=k5(U-H);return U===K||U===H||Y&&K===H||M>F&&R<T}function y5(Q,J,q){return Math.max(J,Math.min(q,Q))}function VR(Q){return y5(Q,-32768,32767)}function Z6(Q,J,q,Y=0.000001){return Q>=Math.min(J,q)-Y&&Q<=Math.max(J,q)+Y}function tJ(Q,J,q){q=q||((H)=>Q[H]<J);let Y=Q.length-1,U=0,K;while(Y-U>1)if(K=U+Y>>1,q(K))U=K;else Y=K;return{lo:U,hi:Y}}var q2=(Q,J,q,Y)=>tJ(Q,q,Y?(U)=>{let K=Q[U][J];return K<q||K===q&&Q[U+1][J]===q}:(U)=>Q[U][J]<q),ER=(Q,J,q)=>tJ(Q,q,(Y)=>Q[Y][J]>=q);function PR(Q,J,q){let Y=0,U=Q.length;while(Y<U&&Q[Y]<J)Y++;while(U>Y&&Q[U-1]>q)U--;return Y>0||U<Q.length?Q.slice(Y,U):Q}var CR=["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]}}),CR.forEach((q)=>{let Y="_onData"+aJ(q),U=Q[q];Object.defineProperty(Q,q,{configurable:!0,enumerable:!1,value(...K){let H=U.apply(this,K);return Q._chartjs.listeners.forEach((M)=>{if(typeof M[Y]==="function")M[Y](...K)}),H}})})}function oU(Q,J){let q=Q._chartjs;if(!q)return;let Y=q.listeners,U=Y.indexOf(J);if(U!==-1)Y.splice(U,1);if(Y.length>0)return;CR.forEach((K)=>{delete Q[K]}),delete Q._chartjs}function aU(Q){let J=new Set(Q);if(J.size===Q.length)return Q;return Array.from(J)}var iU=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function tU(Q,J){let q=[],Y=!1;return function(...U){if(q=U,!Y)Y=!0,iU.call(window,()=>{Y=!1,Q.apply(J,q)})}}function OR(Q,J){let q;return function(...Y){if(J)clearTimeout(q),q=setTimeout(Q,J,Y);else Q.apply(this,Y);return J}}var eJ=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",q5=(Q,J,q)=>Q==="start"?J:Q==="end"?q:(J+q)/2,DR=(Q,J,q,Y)=>{return Q===(Y?"left":"right")?q:Q==="center"?(J+q)/2:J};function jR(Q,J,q){let Y=J.length,U=0,K=Y;if(Q._sorted){let{iScale:H,vScale:M,_parsed:F}=Q,R=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,T=H.axis,{min:z,max:L,minDefined:P,maxDefined:I}=H.getUserBounds();if(P){if(U=Math.min(q2(F,T,z).lo,q?Y:q2(J,T,H.getPixelForValue(z)).lo),R){let A=F.slice(0,U+1).reverse().findIndex((C)=>!t0(C[M.axis]));U-=Math.max(0,A)}U=y5(U,0,Y-1)}if(I){let A=Math.max(q2(F,H.axis,L,!0).hi+1,q?0:q2(J,T,H.getPixelForValue(L),!0).hi+1);if(R){let C=F.slice(A-1).findIndex((g)=>!t0(g[M.axis]));A+=Math.max(0,C)}K=y5(A,U,Y)-U}else K=Y-U}return{start:U,count:K}}function AR(Q){let{xScale:J,yScale:q,_scaleRanges:Y}=Q,U={xmin:J.min,xmax:J.max,ymin:q.min,ymax:q.max};if(!Y)return Q._scaleRanges=U,!0;let K=Y.xmin!==J.min||Y.xmax!==J.max||Y.ymin!==q.min||Y.ymax!==q.max;return Object.assign(Y,U),K}var pJ=(Q)=>Q===0||Q===1,YR=(Q,J,q)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-J)*f5/q)),UR=(Q,J,q)=>Math.pow(2,-10*Q)*Math.sin((Q-J)*f5/q)+1,f9={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*b5)+1,easeOutSine:(Q)=>Math.sin(Q*b5),easeInOutSine:(Q)=>-0.5*(Math.cos(b1*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)=>pJ(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)=>pJ(Q)?Q:YR(Q,0.075,0.3),easeOutElastic:(Q)=>pJ(Q)?Q:UR(Q,0.075,0.3),easeInOutElastic(Q){return pJ(Q)?Q:Q<0.5?0.5*YR(Q*2,0.1125,0.45):0.5+0.5*UR(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-f9.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?f9.easeInBounce(Q*2)*0.5:f9.easeOutBounce(Q*2-1)*0.5+0.5};function eU(Q){if(Q&&typeof Q==="object"){let J=Q.toString();return J==="[object CanvasPattern]"||J==="[object CanvasGradient]"}return!1}function $N(Q){return eU(Q)?Q:new b9(Q)}function dU(Q){return eU(Q)?Q:new b9(Q).saturate(0.5).darken(0.1).hexString()}var QC=["x","y","borderWidth","radius","tension"],GC=["color","borderColor","backgroundColor"];function JC(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:GC},numbers:{type:"number",properties:QC}}),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 qC(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var NR=new Map;function XC(Q,J){J=J||{};let q=Q+JSON.stringify(J),Y=NR.get(q);if(!Y)Y=new Intl.NumberFormat(Q,J),NR.set(q,Y);return Y}function $q(Q,J,q){return XC(J,q).format(Q)}var SR={values(Q){return z1(Q)?Q:""+Q},numeric(Q,J,q){if(Q===0)return"0";let Y=this.chart.options.locale,U,K=Q;if(q.length>1){let R=Math.max(Math.abs(q[0].value),Math.abs(q[q.length-1].value));if(R<0.0001||R>1000000000000000)U="scientific";K=YC(Q,q)}let H=e8(Math.abs(K)),M=isNaN(H)?1:Math.max(Math.min(-1*Math.floor(H),20),0),F={notation:U,minimumFractionDigits:M,maximumFractionDigits:M};return Object.assign(F,this.options.ticks.format),$q(Q,Y,F)},logarithmic(Q,J,q){if(Q===0)return"0";let Y=q[J].significand||Q/Math.pow(10,Math.floor(e8(Q)));if([1,2,3,5,10,15].includes(Y)||J>0.8*q.length)return SR.numeric.call(this,Q,J,q);return""}};function YC(Q,J){let q=J.length>3?J[2].value-J[1].value:J[1].value-J[0].value;if(Math.abs(q)>=1&&Q!==Math.floor(Q))q=Q-Math.floor(Q);return q}var uZ={formatters:SR};function UC(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,q)=>q.lineWidth,tickColor:(J,q)=>q.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:uZ.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 Y2=Object.create(null),Zq=Object.create(null);function gZ(Q,J){if(!J)return Q;let q=J.split(".");for(let Y=0,U=q.length;Y<U;++Y){let K=q[Y];Q=Q[K]||(Q[K]=Object.create(null))}return Q}function pU(Q,J,q){if(typeof J==="string")return y9(gZ(Q,J),q);return y9(gZ(Q,""),J)}class vR{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=(q)=>q.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=(q,Y)=>dU(Y.backgroundColor),this.hoverBorderColor=(q,Y)=>dU(Y.borderColor),this.hoverColor=(q,Y)=>dU(Y.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 pU(this,Q,J)}get(Q){return gZ(this,Q)}describe(Q,J){return pU(Zq,Q,J)}override(Q,J){return pU(Y2,Q,J)}route(Q,J,q,Y){let U=gZ(this,Q),K=gZ(this,q),H="_"+J;Object.defineProperties(U,{[H]:{value:U[J],writable:!0},[J]:{enumerable:!0,get(){let M=this[H],F=K[Y];if(n0(M))return Object.assign({},F,M);return h0(M,F)},set(M){this[H]=M}}})}apply(Q){Q.forEach((J)=>J(this))}}var D1=new vR({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[JC,qC,UC]);function NC(Q){if(!Q||t0(Q.size)||t0(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function hZ(Q,J,q,Y,U){let K=J[U];if(!K)K=J[U]=Q.measureText(U).width,q.push(U);if(K>Y)Y=K;return Y}function kR(Q,J,q,Y){Y=Y||{};let U=Y.data=Y.data||{},K=Y.garbageCollect=Y.garbageCollect||[];if(Y.font!==J)U=Y.data={},K=Y.garbageCollect=[],Y.font=J;Q.save(),Q.font=J;let H=0,M=q.length,F,R,T,z,L;for(F=0;F<M;F++)if(z=q[F],z!==void 0&&z!==null&&!z1(z))H=hZ(Q,U,K,H,z);else if(z1(z)){for(R=0,T=z.length;R<T;R++)if(L=z[R],L!==void 0&&L!==null&&!z1(L))H=hZ(Q,U,K,H,L)}Q.restore();let P=K.length/2;if(P>q.length){for(F=0;F<P;F++)delete U[K[F]];K.splice(0,P)}return H}function U2(Q,J,q){let Y=Q.currentDevicePixelRatio,U=q!==0?Math.max(q/2,0.5):0;return Math.round((J-U)*Y)/Y+U}function ZN(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 Qq(Q,J,q,Y){QN(Q,J,q,Y,null)}function QN(Q,J,q,Y,U){let K,H,M,F,R,T,z,L,P=J.pointStyle,I=J.rotation,A=J.radius,C=(I||0)*eP;if(P&&typeof P==="object"){if(K=P.toString(),K==="[object HTMLImageElement]"||K==="[object HTMLCanvasElement]"){Q.save(),Q.translate(q,Y),Q.rotate(C),Q.drawImage(P,-P.width/2,-P.height/2,P.width,P.height),Q.restore();return}}if(isNaN(A)||A<=0)return;switch(Q.beginPath(),P){default:if(U)Q.ellipse(q,Y,U/2,A,0,0,f5);else Q.arc(q,Y,A,0,f5);Q.closePath();break;case"triangle":T=U?U/2:A,Q.moveTo(q+Math.sin(C)*T,Y-Math.cos(C)*A),C+=XR,Q.lineTo(q+Math.sin(C)*T,Y-Math.cos(C)*A),C+=XR,Q.lineTo(q+Math.sin(C)*T,Y-Math.cos(C)*A),Q.closePath();break;case"rectRounded":R=A*0.516,F=A-R,H=Math.cos(C+B$)*F,z=Math.cos(C+B$)*(U?U/2-R:F),M=Math.sin(C+B$)*F,L=Math.sin(C+B$)*(U?U/2-R:F),Q.arc(q-z,Y-M,R,C-b1,C-b5),Q.arc(q+L,Y-H,R,C-b5,C),Q.arc(q+z,Y+M,R,C,C+b5),Q.arc(q-L,Y+H,R,C+b5,C+b1),Q.closePath();break;case"rect":if(!I){F=Math.SQRT1_2*A,T=U?U/2:F,Q.rect(q-T,Y-F,2*T,2*F);break}C+=B$;case"rectRot":z=Math.cos(C)*(U?U/2:A),H=Math.cos(C)*A,M=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-z,Y-M),Q.lineTo(q+L,Y-H),Q.lineTo(q+z,Y+M),Q.lineTo(q-L,Y+H),Q.closePath();break;case"crossRot":C+=B$;case"cross":z=Math.cos(C)*(U?U/2:A),H=Math.cos(C)*A,M=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-z,Y-M),Q.lineTo(q+z,Y+M),Q.moveTo(q+L,Y-H),Q.lineTo(q-L,Y+H);break;case"star":z=Math.cos(C)*(U?U/2:A),H=Math.cos(C)*A,M=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-z,Y-M),Q.lineTo(q+z,Y+M),Q.moveTo(q+L,Y-H),Q.lineTo(q-L,Y+H),C+=B$,z=Math.cos(C)*(U?U/2:A),H=Math.cos(C)*A,M=Math.sin(C)*A,L=Math.sin(C)*(U?U/2:A),Q.moveTo(q-z,Y-M),Q.lineTo(q+z,Y+M),Q.moveTo(q+L,Y-H),Q.lineTo(q-L,Y+H);break;case"line":H=U?U/2:Math.cos(C)*A,M=Math.sin(C)*A,Q.moveTo(q-H,Y-M),Q.lineTo(q+H,Y+M);break;case"dash":Q.moveTo(q,Y),Q.lineTo(q+Math.cos(C)*(U?U/2:A),Y+Math.sin(C)*A);break;case!1:Q.closePath();break}if(Q.fill(),J.borderWidth>0)Q.stroke()}function w8(Q,J,q){return q=q||0.5,!J||Q&&Q.x>J.left-q&&Q.x<J.right+q&&Q.y>J.top-q&&Q.y<J.bottom+q}function mZ(Q,J){Q.save(),Q.beginPath(),Q.rect(J.left,J.top,J.right-J.left,J.bottom-J.top),Q.clip()}function dZ(Q){Q.restore()}function bR(Q,J,q,Y,U){if(!J)return Q.lineTo(q.x,q.y);if(U==="middle"){let K=(J.x+q.x)/2;Q.lineTo(K,J.y),Q.lineTo(K,q.y)}else if(U==="after"!==!!Y)Q.lineTo(J.x,q.y);else Q.lineTo(q.x,J.y);Q.lineTo(q.x,q.y)}function fR(Q,J,q,Y){if(!J)return Q.lineTo(q.x,q.y);Q.bezierCurveTo(Y?J.cp1x:J.cp2x,Y?J.cp1y:J.cp2y,Y?q.cp2x:q.cp1x,Y?q.cp2y:q.cp1y,q.x,q.y)}function KC(Q,J){if(J.translation)Q.translate(J.translation[0],J.translation[1]);if(!t0(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 BC(Q,J,q,Y,U){if(U.strikethrough||U.underline){let K=Q.measureText(Y),H=J-K.actualBoundingBoxLeft,M=J+K.actualBoundingBoxRight,F=q-K.actualBoundingBoxAscent,R=q+K.actualBoundingBoxDescent,T=U.strikethrough?(F+R)/2:R;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=U.decorationWidth||2,Q.moveTo(H,T),Q.lineTo(M,T),Q.stroke()}}function HC(Q,J){let q=Q.fillStyle;Q.fillStyle=J.color,Q.fillRect(J.left,J.top,J.width,J.height),Q.fillStyle=q}function N2(Q,J,q,Y,U,K={}){let H=z1(J)?J:[J],M=K.strokeWidth>0&&K.strokeColor!=="",F,R;Q.save(),Q.font=U.string,KC(Q,K);for(F=0;F<H.length;++F){if(R=H[F],K.backdrop)HC(Q,K.backdrop);if(M){if(K.strokeColor)Q.strokeStyle=K.strokeColor;if(!t0(K.strokeWidth))Q.lineWidth=K.strokeWidth;Q.strokeText(R,q,Y,K.maxWidth)}Q.fillText(R,q,Y,K.maxWidth),BC(Q,q,Y,R,K),Y+=Number(U.lineHeight)}Q.restore()}function d9(Q,J){let{x:q,y:Y,w:U,h:K,radius:H}=J;Q.arc(q+H.topLeft,Y+H.topLeft,H.topLeft,1.5*b1,b1,!0),Q.lineTo(q,Y+K-H.bottomLeft),Q.arc(q+H.bottomLeft,Y+K-H.bottomLeft,H.bottomLeft,b1,b5,!0),Q.lineTo(q+U-H.bottomRight,Y+K),Q.arc(q+U-H.bottomRight,Y+K-H.bottomRight,H.bottomRight,b5,0,!0),Q.lineTo(q+U,Y+H.topRight),Q.arc(q+U-H.topRight,Y+H.topRight,H.topRight,0,-b5,!0),Q.lineTo(q+H.topLeft,Y)}var MC=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,FC=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function WC(Q,J){let q=(""+Q).match(MC);if(!q||q[1]==="normal")return J*1.2;switch(Q=+q[2],q[3]){case"px":return Q;case"%":Q/=100;break}return J*Q}var wC=(Q)=>+Q||0;function GN(Q,J){let q={},Y=n0(J),U=Y?Object.keys(J):J,K=n0(Q)?Y?(H)=>h0(Q[H],Q[J[H]]):(H)=>Q[H]:()=>Q;for(let H of U)q[H]=wC(K(H));return q}function JN(Q){return GN(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function K2(Q){return GN(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function X5(Q){let J=JN(Q);return J.width=J.left+J.right,J.height=J.top+J.bottom,J}function p1(Q,J){Q=Q||{},J=J||D1.font;let q=h0(Q.size,J.size);if(typeof q==="string")q=parseInt(q,10);let Y=h0(Q.style,J.style);if(Y&&!(""+Y).match(FC))console.warn('Invalid font style specified: "'+Y+'"'),Y=void 0;let U={family:h0(Q.family,J.family),lineHeight:WC(h0(Q.lineHeight,J.lineHeight),q),size:q,style:Y,weight:h0(Q.weight,J.weight),string:""};return U.string=NC(U),U}function pZ(Q,J,q,Y){let U=!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),U=!1;if(q!==void 0&&z1(M))M=M[q%M.length],U=!1;if(M!==void 0){if(Y&&!U)Y.cacheable=!1;return M}}}function yR(Q,J,q){let{min:Y,max:U}=Q,K=wR(J,(U-Y)/2),H=(M,F)=>q&&M===0?0:M+F;return{min:H(Y,-Math.abs(K)),max:H(U,K)}}function Q6(Q,J){return Object.assign(Object.create(Q),J)}function Gq(Q,J=[""],q,Y,U=()=>Q[0]){let K=q||Q;if(typeof Y>"u")Y=xR("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:K,_fallback:Y,_getTarget:U,override:(M)=>Gq([M,...Q],J,K,Y)};return new Proxy(H,{deleteProperty(M,F){return delete M[F],delete M._keys,delete Q[0][F],!0},get(M,F){return gR(M,F,()=>PC(F,J,Q,M))},getOwnPropertyDescriptor(M,F){return Reflect.getOwnPropertyDescriptor(M._scopes[0],F)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(M,F){return BR(M).includes(F)},ownKeys(M){return BR(M)},set(M,F,R){let T=M._storage||(M._storage=U());return M[F]=T[F]=R,delete M._keys,!0}})}function M$(Q,J,q,Y){let U={_cacheable:!1,_proxy:Q,_context:J,_subProxy:q,_stack:new Set,_descriptors:qN(Q,Y),setContext:(K)=>M$(Q,K,q,Y),override:(K)=>M$(Q.override(K),J,q,Y)};return new Proxy(U,{deleteProperty(K,H){return delete K[H],delete Q[H],!0},get(K,H,M){return gR(K,H,()=>TC(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 qN(Q,J={scriptable:!0,indexable:!0}){let{_scriptable:q=J.scriptable,_indexable:Y=J.indexable,_allKeys:U=J.allKeys}=Q;return{allKeys:U,scriptable:q,indexable:Y,isScriptable:t8(q)?q:()=>q,isIndexable:t8(Y)?Y:()=>Y}}var RC=(Q,J)=>Q?Q+aJ(J):J,XN=(Q,J)=>n0(J)&&Q!=="adapters"&&(Object.getPrototypeOf(J)===null||J.constructor===Object);function gR(Q,J,q){if(Object.prototype.hasOwnProperty.call(Q,J)||J==="constructor")return Q[J];let Y=q();return Q[J]=Y,Y}function TC(Q,J,q){let{_proxy:Y,_context:U,_subProxy:K,_descriptors:H}=Q,M=Y[J];if(t8(M)&&H.isScriptable(J))M=zC(J,M,Q,q);if(z1(M)&&M.length)M=_C(J,M,Q,H.isIndexable);if(XN(J,M))M=M$(M,U,K&&K[J],H);return M}function zC(Q,J,q,Y){let{_proxy:U,_context:K,_subProxy:H,_stack:M}=q;if(M.has(Q))throw Error("Recursion detected: "+Array.from(M).join("->")+"->"+Q);M.add(Q);let F=J(K,H||Y);if(M.delete(Q),XN(Q,F))F=YN(U._scopes,U,Q,F);return F}function _C(Q,J,q,Y){let{_proxy:U,_context:K,_subProxy:H,_descriptors:M}=q;if(typeof K.index<"u"&&Y(Q))return J[K.index%J.length];else if(n0(J[0])){let F=J,R=U._scopes.filter((T)=>T!==F);J=[];for(let T of F){let z=YN(R,U,Q,T);J.push(M$(z,K,H&&H[Q],M))}}return J}function hR(Q,J,q){return t8(Q)?Q(J,q):Q}var LC=(Q,J)=>Q===!0?J:typeof Q==="string"?F$(J,Q):void 0;function VC(Q,J,q,Y,U){for(let K of J){let H=LC(q,K);if(H){Q.add(H);let M=hR(H._fallback,q,U);if(typeof M<"u"&&M!==q&&M!==Y)return M}else if(H===!1&&typeof Y<"u"&&q!==Y)return null}return!1}function YN(Q,J,q,Y){let U=J._rootScopes,K=hR(J._fallback,q,Y),H=[...Q,...U],M=new Set;M.add(Y);let F=KR(M,H,q,K||q,Y);if(F===null)return!1;if(typeof K<"u"&&K!==q){if(F=KR(M,H,K,F,Y),F===null)return!1}return Gq(Array.from(M),[""],U,K,()=>EC(J,q,Y))}function KR(Q,J,q,Y,U){while(q)q=VC(Q,J,q,Y,U);return q}function EC(Q,J,q){let Y=Q._getTarget();if(!(J in Y))Y[J]={};let U=Y[J];if(z1(U)&&n0(q))return q;return U||{}}function PC(Q,J,q,Y){let U;for(let K of J)if(U=xR(RC(K,Q),q),typeof U<"u")return XN(Q,U)?YN(q,Y,Q,U):U}function xR(Q,J){for(let q of J){if(!q)continue;let Y=q[Q];if(typeof Y<"u")return Y}}function BR(Q){let J=Q._keys;if(!J)J=Q._keys=CC(Q._scopes);return J}function CC(Q){let J=new Set;for(let q of Q)for(let Y of Object.keys(q).filter((U)=>!U.startsWith("_")))J.add(Y);return Array.from(J)}var IC=Number.EPSILON||0.00000000000001,g9=(Q,J)=>J<Q.length&&!Q[J].skip&&Q[J],uR=(Q)=>Q==="x"?"y":"x";function OC(Q,J,q,Y){let U=Q.skip?J:Q,K=J,H=q.skip?J:q,M=nJ(K,U),F=nJ(H,K),R=M/(M+F),T=F/(M+F);R=isNaN(R)?0:R,T=isNaN(T)?0:T;let z=Y*R,L=Y*T;return{previous:{x:K.x-z*(H.x-U.x),y:K.y-z*(H.y-U.y)},next:{x:K.x+L*(H.x-U.x),y:K.y+L*(H.y-U.y)}}}function DC(Q,J,q){let Y=Q.length,U,K,H,M,F,R=g9(Q,0);for(let T=0;T<Y-1;++T){if(F=R,R=g9(Q,T+1),!F||!R)continue;if(u9(J[T],0,IC)){q[T]=q[T+1]=0;continue}if(U=q[T]/J[T],K=q[T+1]/J[T],M=Math.pow(U,2)+Math.pow(K,2),M<=9)continue;H=3/Math.sqrt(M),q[T]=U*H*J[T],q[T+1]=K*H*J[T]}}function jC(Q,J,q="x"){let Y=uR(q),U=Q.length,K,H,M,F=g9(Q,0);for(let R=0;R<U;++R){if(H=M,M=F,F=g9(Q,R+1),!M)continue;let T=M[q],z=M[Y];if(H)K=(T-H[q])/3,M[`cp1${q}`]=T-K,M[`cp1${Y}`]=z-K*J[R];if(F)K=(F[q]-T)/3,M[`cp2${q}`]=T+K,M[`cp2${Y}`]=z+K*J[R]}}function AC(Q,J="x"){let q=uR(J),Y=Q.length,U=Array(Y).fill(0),K=Array(Y),H,M,F,R=g9(Q,0);for(H=0;H<Y;++H){if(M=F,F=R,R=g9(Q,H+1),!F)continue;if(R){let T=R[J]-F[J];U[H]=T!==0?(R[q]-F[q])/T:0}K[H]=!M?U[H]:!R?U[H-1]:y4(U[H-1])!==y4(U[H])?0:(U[H-1]+U[H])/2}DC(Q,U,K),jC(Q,K,J)}function cJ(Q,J,q){return Math.max(Math.min(Q,q),J)}function SC(Q,J){let q,Y,U,K,H,M=w8(Q[0],J);for(q=0,Y=Q.length;q<Y;++q){if(H=K,K=M,M=q<Y-1&&w8(Q[q+1],J),!K)continue;if(U=Q[q],H)U.cp1x=cJ(U.cp1x,J.left,J.right),U.cp1y=cJ(U.cp1y,J.top,J.bottom);if(M)U.cp2x=cJ(U.cp2x,J.left,J.right),U.cp2y=cJ(U.cp2y,J.top,J.bottom)}}function mR(Q,J,q,Y,U){let K,H,M,F;if(J.spanGaps)Q=Q.filter((R)=>!R.skip);if(J.cubicInterpolationMode==="monotone")AC(Q,U);else{let R=Y?Q[Q.length-1]:Q[0];for(K=0,H=Q.length;K<H;++K)M=Q[K],F=OC(R,M,Q[Math.min(K+1,H-(Y?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,R=M}if(J.capBezierPoints)SC(Q,q)}function Jq(){return typeof window<"u"&&typeof document<"u"}function qq(Q){let J=Q.parentNode;if(J&&J.toString()==="[object ShadowRoot]")J=J.host;return J}function oJ(Q,J,q){let Y;if(typeof Q==="string"){if(Y=parseInt(Q,10),Q.indexOf("%")!==-1)Y=Y/100*J.parentNode[q]}else Y=Q;return Y}var Xq=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function vC(Q,J){return Xq(Q).getPropertyValue(J)}var kC=["top","right","bottom","left"];function H$(Q,J,q){let Y={};q=q?"-"+q:"";for(let U=0;U<4;U++){let K=kC[U];Y[K]=parseFloat(Q[J+"-"+K+q])||0}return Y.width=Y.left+Y.right,Y.height=Y.top+Y.bottom,Y}var bC=(Q,J,q)=>(Q>0||J>0)&&(!q||!q.shadowRoot);function fC(Q,J){let q=Q.touches,Y=q&&q.length?q[0]:Q,{offsetX:U,offsetY:K}=Y,H=!1,M,F;if(bC(U,K,Q.target))M=U,F=K;else{let R=J.getBoundingClientRect();M=Y.clientX-R.left,F=Y.clientY-R.top,H=!0}return{x:M,y:F,box:H}}function B2(Q,J){if("native"in Q)return Q;let{canvas:q,currentDevicePixelRatio:Y}=J,U=Xq(q),K=U.boxSizing==="border-box",H=H$(U,"padding"),M=H$(U,"border","width"),{x:F,y:R,box:T}=fC(Q,q),z=H.left+(T&&M.left),L=H.top+(T&&M.top),{width:P,height:I}=J;if(K)P-=H.width+M.width,I-=H.height+M.height;return{x:Math.round((F-z)/P*q.width/Y),y:Math.round((R-L)/I*q.height/Y)}}function yC(Q,J,q){let Y,U;if(J===void 0||q===void 0){let K=Q&&qq(Q);if(!K)J=Q.clientWidth,q=Q.clientHeight;else{let H=K.getBoundingClientRect(),M=Xq(K),F=H$(M,"border","width"),R=H$(M,"padding");J=H.width-R.width-F.width,q=H.height-R.height-F.height,Y=oJ(M.maxWidth,K,"clientWidth"),U=oJ(M.maxHeight,K,"clientHeight")}}return{width:J,height:q,maxWidth:Y||sJ,maxHeight:U||sJ}}var X2=(Q)=>Math.round(Q*10)/10;function dR(Q,J,q,Y){let U=Xq(Q),K=H$(U,"margin"),H=oJ(U.maxWidth,Q,"clientWidth")||sJ,M=oJ(U.maxHeight,Q,"clientHeight")||sJ,F=yC(Q,J,q),{width:R,height:T}=F;if(U.boxSizing==="content-box"){let L=H$(U,"border","width"),P=H$(U,"padding");R-=P.width+L.width,T-=P.height+L.height}if(R=Math.max(0,R-K.width),T=Math.max(0,Y?R/Y:T-K.height),R=X2(Math.min(R,H,F.maxWidth)),T=X2(Math.min(T,M,F.maxHeight)),R&&!T)T=X2(R/2);if((J!==void 0||q!==void 0)&&Y&&F.height&&T>F.height)T=F.height,R=X2(Math.floor(T*Y));return{width:R,height:T}}function UN(Q,J,q){let Y=J||1,U=X2(Q.height*Y),K=X2(Q.width*Y);Q.height=X2(Q.height),Q.width=X2(Q.width);let H=Q.canvas;if(H.style&&(q||!H.style.height&&!H.style.width))H.style.height=`${Q.height}px`,H.style.width=`${Q.width}px`;if(Q.currentDevicePixelRatio!==Y||H.height!==U||H.width!==K)return Q.currentDevicePixelRatio=Y,H.height=U,H.width=K,Q.ctx.setTransform(Y,0,0,Y,0,0),!0;return!1}var pR=function(){let Q=!1;try{let J={get passive(){return Q=!0,!1}};if(Jq())window.addEventListener("test",null,J),window.removeEventListener("test",null,J)}catch(J){}return Q}();function NN(Q,J){let q=vC(Q,J),Y=q&&q.match(/^(\d+)(\.\d+)?px$/);return Y?+Y[1]:void 0}function J2(Q,J,q,Y){return{x:Q.x+q*(J.x-Q.x),y:Q.y+q*(J.y-Q.y)}}function cR(Q,J,q,Y){return{x:Q.x+q*(J.x-Q.x),y:Y==="middle"?q<0.5?Q.y:J.y:Y==="after"?q<1?Q.y:J.y:q>0?J.y:Q.y}}function lR(Q,J,q,Y){let U={x:Q.cp2x,y:Q.cp2y},K={x:J.cp1x,y:J.cp1y},H=J2(Q,U,q),M=J2(U,K,q),F=J2(K,J,q),R=J2(H,M,q),T=J2(M,F,q);return J2(R,T,q)}var gC=function(Q,J){return{x(q){return Q+Q+J-q},setWidth(q){J=q},textAlign(q){if(q==="center")return q;return q==="right"?"left":"right"},xPlus(q,Y){return q-Y},leftForLtr(q,Y){return q-Y}}},hC=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,J){return Q+J},leftForLtr(Q,J){return Q}}};function W$(Q,J,q){return Q?gC(J,q):hC()}function KN(Q,J){let q,Y;if(J==="ltr"||J==="rtl")q=Q.canvas.style,Y=[q.getPropertyValue("direction"),q.getPropertyPriority("direction")],q.setProperty("direction",J,"important"),Q.prevTextDirection=Y}function BN(Q,J){if(J!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",J[0],J[1])}function rR(Q){if(Q==="angle")return{between:nU,compare:ZC,normalize:k5};return{between:Z6,compare:(J,q)=>J-q,normalize:(J)=>J}}function HR({start:Q,end:J,count:q,loop:Y,style:U}){return{start:Q%q,end:J%q,loop:Y&&(J-Q+1)%q===0,style:U}}function xC(Q,J,q){let{property:Y,start:U,end:K}=q,{between:H,normalize:M}=rR(Y),F=J.length,{start:R,end:T,loop:z}=Q,L,P;if(z){R+=F,T+=F;for(L=0,P=F;L<P;++L){if(!H(M(J[R%F][Y]),U,K))break;R--,T--}R%=F,T%=F}if(T<R)T+=F;return{start:R,end:T,loop:z,style:Q.style}}function HN(Q,J,q){if(!q)return[Q];let{property:Y,start:U,end:K}=q,H=J.length,{compare:M,between:F,normalize:R}=rR(Y),{start:T,end:z,loop:L,style:P}=xC(Q,J,q),I=[],A=!1,C=null,g,m,o,a=()=>F(U,o,g)&&M(U,o)!==0,s=()=>M(K,g)===0||F(K,o,g),Q0=()=>A||a(),p=()=>!A||s();for(let i=T,Y0=T;i<=z;++i){if(m=J[i%H],m.skip)continue;if(g=R(m[Y]),g===o)continue;if(A=F(g,U,K),C===null&&Q0())C=M(g,U)===0?i:Y0;if(C!==null&&p())I.push(HR({start:C,end:i,loop:L,count:H,style:P})),C=null;Y0=i,o=g}if(C!==null)I.push(HR({start:C,end:z,loop:L,count:H,style:P}));return I}function MN(Q,J){let q=[],Y=Q.segments;for(let U=0;U<Y.length;U++){let K=HN(Y[U],Q.points,J);if(K.length)q.push(...K)}return q}function uC(Q,J,q,Y){let U=0,K=J-1;if(q&&!Y)while(U<J&&!Q[U].skip)U++;while(U<J&&Q[U].skip)U++;if(U%=J,q)K+=U;while(K>U&&Q[K%J].skip)K--;return K%=J,{start:U,end:K}}function mC(Q,J,q,Y){let U=Q.length,K=[],H=J,M=Q[J],F;for(F=J+1;F<=q;++F){let R=Q[F%U];if(R.skip||R.stop){if(!M.skip)Y=!1,K.push({start:J%U,end:(F-1)%U,loop:Y}),J=H=R.stop?F:null}else if(H=F,M.skip)J=F;M=R}if(H!==null)K.push({start:J%U,end:H%U,loop:Y});return K}function sR(Q,J){let q=Q.points,Y=Q.options.spanGaps,U=q.length;if(!U)return[];let K=!!Q._loop,{start:H,end:M}=uC(q,U,K,Y);if(Y===!0)return MR(Q,[{start:H,end:M,loop:K}],q,J);let F=M<H?M+U:M,R=!!Q._fullLoop&&H===0&&M===U-1;return MR(Q,mC(q,H,F,R),q,J)}function MR(Q,J,q,Y){if(!Y||!Y.setContext||!q)return J;return dC(Q,J,q,Y)}function dC(Q,J,q,Y){let U=Q._chart.getContext(),K=FR(Q.options),{_datasetIndex:H,options:{spanGaps:M}}=Q,F=q.length,R=[],T=K,z=J[0].start,L=z;function P(I,A,C,g){let m=M?-1:1;if(I===A)return;I+=F;while(q[I%F].skip)I-=m;while(q[A%F].skip)A+=m;if(I%F!==A%F)R.push({start:I%F,end:A%F,loop:C,style:g}),T=g,z=A%F}for(let I of J){z=M?z:I.start;let A=q[z%F],C;for(L=z+1;L<=I.end;L++){let g=q[L%F];if(C=FR(Y.setContext(Q6(U,{type:"segment",p0:A,p1:g,p0DataIndex:(L-1)%F,p1DataIndex:L%F,datasetIndex:H}))),pC(C,T))P(z,L-1,I.loop,T);A=g,T=C}if(z<L-1)P(z,L-1,I.loop,T)}return R}function FR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function pC(Q,J){if(!J)return!1;let q=[],Y=function(U,K){if(!eU(K))return K;if(!q.includes(K))q.push(K);return q.indexOf(K)};return JSON.stringify(Q,Y)!==JSON.stringify(J,Y)}function lJ(Q,J,q){return Q.options.clip?Q[q]:J[q]}function cC(Q,J){let{xScale:q,yScale:Y}=Q;if(q&&Y)return{left:lJ(q,J,"left"),right:lJ(q,J,"right"),top:lJ(Y,J,"top"),bottom:lJ(Y,J,"bottom")};return J}function FN(Q,J){let q=J._clip;if(q.disabled)return!1;let Y=cC(J,Q.chartArea);return{left:q.left===!1?0:Y.left-(q.left===!0?0:q.left),right:q.right===!1?Q.width:Y.right+(q.right===!0?0:q.right),top:q.top===!1?0:Y.top-(q.top===!0?0:q.top),bottom:q.bottom===!1?Q.height:Y.bottom+(q.bottom===!0?0:q.bottom)}}/*!
250
+ */function v4(){}var DR=(()=>{let Q=0;return()=>Q++})();function t0(Q){return Q===null||Q===void 0}function L1(Q){if(Array.isArray&&Array.isArray(Q))return!0;let G=Object.prototype.toString.call(Q);if(G.slice(0,7)==="[object"&&G.slice(-6)==="Array]")return!0;return!1}function o0(Q){return Q!==null&&Object.prototype.toString.call(Q)==="[object Object]"}function v1(Q){return(typeof Q==="number"||Q instanceof Number)&&isFinite(+Q)}function s5(Q,G){return v1(Q)?Q:G}function p0(Q,G){return typeof Q>"u"?G:Q}var jR=(Q,G)=>typeof Q==="string"&&Q.endsWith("%")?parseFloat(Q)/100*G:+Q;function T1(Q,G,q){if(Q&&typeof Q.call==="function")return Q.apply(q,G)}function N1(Q,G,q,X){let N,B,H;if(L1(Q))if(B=Q.length,X)for(N=B-1;N>=0;N--)G.call(q,Q[N],N);else for(N=0;N<B;N++)G.call(q,Q[N],N);else if(o0(Q)){H=Object.keys(Q),B=H.length;for(N=0;N<B;N++)G.call(q,Q[H[N]],H[N])}}function $Q(Q,G){let q,X,N,B;if(!Q||!G||Q.length!==G.length)return!1;for(q=0,X=Q.length;q<X;++q)if(N=Q[q],B=G[q],N.datasetIndex!==B.datasetIndex||N.index!==B.index)return!1;return!0}function w3(Q){if(L1(Q))return Q.map(w3);if(o0(Q)){let G=Object.create(null),q=Object.keys(Q),X=q.length,N=0;for(;N<X;++N)G[q[N]]=w3(Q[q[N]]);return G}return Q}function vR(Q){return["__proto__","prototype","constructor"].indexOf(Q)===-1}function dI(Q,G,q,X){if(!vR(Q))return;let N=G[Q],B=q[Q];if(o0(N)&&o0(B))e7(N,B,X);else G[Q]=w3(B)}function e7(Q,G,q){let X=L1(G)?G:[G],N=X.length;if(!o0(Q))return Q;q=q||{};let B=q.merger||dI,H;for(let M=0;M<N;++M){if(H=X[M],!o0(H))continue;let F=Object.keys(H);for(let W=0,T=F.length;W<T;++W)B(F[W],Q,H,q)}return Q}function Z$(Q,G){return e7(Q,G,{merger:pI})}function pI(Q,G,q){if(!vR(Q))return;let X=G[Q],N=q[Q];if(o0(X)&&o0(N))Z$(X,N);else if(!Object.prototype.hasOwnProperty.call(G,Q))G[Q]=w3(N)}var PR={"":(Q)=>Q,x:(Q)=>Q.x,y:(Q)=>Q.y};function cI(Q){let G=Q.split("."),q=[],X="";for(let N of G)if(X+=N,X.endsWith("\\"))X=X.slice(0,-1)+".";else q.push(X),X="";return q}function lI(Q){let G=cI(Q);return(q)=>{for(let X of G){if(X==="")break;q=q&&q[X]}return q}}function S9(Q,G){return(PR[G]||(PR[G]=lI(G)))(Q)}function z3(Q){return Q.charAt(0).toUpperCase()+Q.slice(1)}var Q$=(Q)=>typeof Q<"u",M8=(Q)=>typeof Q==="function",GU=(Q,G)=>{if(Q.size!==G.size)return!1;for(let q of Q)if(!G.has(q))return!1;return!0};function bR(Q){return Q.type==="mouseup"||Q.type==="click"||Q.type==="contextmenu"}var u1=Math.PI,l5=2*u1,rI=l5+u1,W3=Number.POSITIVE_INFINITY,sI=u1/180,c5=u1/2,O9=u1/4,CR=u1*2/3,F8=Math.log10,$4=Math.sign;function J$(Q,G,q){return Math.abs(Q-G)<q}function qU(Q){let G=Math.round(Q);Q=J$(Q,G,Q/1000)?G:Q;let q=Math.pow(10,Math.floor(F8(Q))),X=Q/q;return(X<=1?1:X<=2?2:X<=5?5:10)*q}function kR(Q){let G=[],q=Math.sqrt(Q),X;for(X=1;X<q;X++)if(Q%X===0)G.push(X),G.push(Q/X);if(q===(q|0))G.push(q);return G.sort((N,B)=>N-B).pop(),G}function nI(Q){return typeof Q==="symbol"||typeof Q==="object"&&Q!==null&&!((Symbol.toPrimitive in Q)||("toString"in Q)||("valueOf"in Q))}function G$(Q){return!nI(Q)&&!isNaN(parseFloat(Q))&&isFinite(Q)}function fR(Q,G){let q=Math.round(Q);return q-G<=Q&&q+G>=Q}function XU(Q,G,q){let X,N,B;for(X=0,N=Q.length;X<N;X++)if(B=Q[X][q],!isNaN(B))G.min=Math.min(G.min,B),G.max=Math.max(G.max,B)}function w8(Q){return Q*(u1/180)}function P3(Q){return Q*(180/u1)}function YU(Q){if(!v1(Q))return;let G=1,q=0;while(Math.round(Q*G)/G!==Q)G*=10,q++;return q}function yR(Q,G){let q=G.x-Q.x,X=G.y-Q.y,N=Math.sqrt(q*q+X*X),B=Math.atan2(X,q);if(B<-0.5*u1)B+=l5;return{angle:B,distance:N}}function R3(Q,G){return Math.sqrt(Math.pow(G.x-Q.x,2)+Math.pow(G.y-Q.y,2))}function oI(Q,G){return(Q-G+rI)%l5-u1}function p5(Q){return(Q%l5+l5)%l5}function NU(Q,G,q,X){let N=p5(Q),B=p5(G),H=p5(q),M=p5(B-N),F=p5(H-N),W=p5(N-B),T=p5(N-H);return N===B||N===H||X&&B===H||M>F&&W<T}function r5(Q,G,q){return Math.max(G,Math.min(q,Q))}function gR(Q){return r5(Q,-32768,32767)}function W8(Q,G,q,X=0.000001){return Q>=Math.min(G,q)-X&&Q<=Math.max(G,q)+X}function C3(Q,G,q){q=q||((H)=>Q[H]<G);let X=Q.length-1,N=0,B;while(X-N>1)if(B=N+X>>1,q(B))N=B;else X=B;return{lo:N,hi:X}}var C2=(Q,G,q,X)=>C3(Q,q,X?(N)=>{let B=Q[N][G];return B<q||B===q&&Q[N+1][G]===q}:(N)=>Q[N][G]<q),hR=(Q,G,q)=>C3(Q,q,(X)=>Q[X][G]>=q);function uR(Q,G,q){let X=0,N=Q.length;while(X<N&&Q[X]<G)X++;while(N>X&&Q[N-1]>q)N--;return X>0||N<Q.length?Q.slice(X,N):Q}var xR=["push","pop","shift","splice","unshift"];function mR(Q,G){if(Q._chartjs){Q._chartjs.listeners.push(G);return}Object.defineProperty(Q,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[G]}}),xR.forEach((q)=>{let X="_onData"+z3(q),N=Q[q];Object.defineProperty(Q,q,{configurable:!0,enumerable:!1,value(...B){let H=N.apply(this,B);return Q._chartjs.listeners.forEach((M)=>{if(typeof M[X]==="function")M[X](...B)}),H}})})}function UU(Q,G){let q=Q._chartjs;if(!q)return;let X=q.listeners,N=X.indexOf(G);if(N!==-1)X.splice(N,1);if(X.length>0)return;xR.forEach((B)=>{delete Q[B]}),delete Q._chartjs}function BU(Q){let G=new Set(Q);if(G.size===Q.length)return Q;return Array.from(G)}var KU=function(){if(typeof window>"u")return function(Q){return Q()};return window.requestAnimationFrame}();function HU(Q,G){let q=[],X=!1;return function(...N){if(q=N,!X)X=!0,KU.call(window,()=>{X=!1,Q.apply(G,q)})}}function dR(Q,G){let q;return function(...X){if(G)clearTimeout(q),q=setTimeout(Q,G,X);else Q.apply(this,X);return G}}var L3=(Q)=>Q==="start"?"left":Q==="end"?"right":"center",F5=(Q,G,q)=>Q==="start"?G:Q==="end"?q:(G+q)/2,pR=(Q,G,q,X)=>{return Q===(X?"left":"right")?q:Q==="center"?(G+q)/2:G};function cR(Q,G,q){let X=G.length,N=0,B=X;if(Q._sorted){let{iScale:H,vScale:M,_parsed:F}=Q,W=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null,T=H.axis,{min:z,max:C,minDefined:V,maxDefined:A}=H.getUserBounds();if(V){if(N=Math.min(C2(F,T,z).lo,q?X:C2(G,T,H.getPixelForValue(z)).lo),W){let O=F.slice(0,N+1).reverse().findIndex((I)=>!t0(I[M.axis]));N-=Math.max(0,O)}N=r5(N,0,X-1)}if(A){let O=Math.max(C2(F,H.axis,C,!0).hi+1,q?0:C2(G,T,H.getPixelForValue(C),!0).hi+1);if(W){let I=F.slice(O-1).findIndex((j)=>!t0(j[M.axis]));O+=Math.max(0,I)}B=r5(O,N,X)-N}else B=X-N}return{start:N,count:B}}function lR(Q){let{xScale:G,yScale:q,_scaleRanges:X}=Q,N={xmin:G.min,xmax:G.max,ymin:q.min,ymax:q.max};if(!X)return Q._scaleRanges=N,!0;let B=X.xmin!==G.min||X.xmax!==G.max||X.ymin!==q.min||X.ymax!==q.max;return Object.assign(X,N),B}var H3=(Q)=>Q===0||Q===1,LR=(Q,G,q)=>-(Math.pow(2,10*(Q-=1))*Math.sin((Q-G)*l5/q)),_R=(Q,G,q)=>Math.pow(2,-10*Q)*Math.sin((Q-G)*l5/q)+1,t7={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*c5)+1,easeOutSine:(Q)=>Math.sin(Q*c5),easeInOutSine:(Q)=>-0.5*(Math.cos(u1*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)=>H3(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)=>H3(Q)?Q:LR(Q,0.075,0.3),easeOutElastic:(Q)=>H3(Q)?Q:_R(Q,0.075,0.3),easeInOutElastic(Q){return H3(Q)?Q:Q<0.5?0.5*LR(Q*2,0.1125,0.45):0.5+0.5*_R(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 G=1.70158;if((Q/=0.5)<1)return 0.5*(Q*Q*(((G*=1.525)+1)*Q-G));return 0.5*((Q-=2)*Q*(((G*=1.525)+1)*Q+G)+2)},easeInBounce:(Q)=>1-t7.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?t7.easeInBounce(Q*2)*0.5:t7.easeOutBounce(Q*2-1)*0.5+0.5};function MU(Q){if(Q&&typeof Q==="object"){let G=Q.toString();return G==="[object CanvasPattern]"||G==="[object CanvasGradient]"}return!1}function FU(Q){return MU(Q)?Q:new i7(Q)}function QU(Q){return MU(Q)?Q:new i7(Q).saturate(0.5).darken(0.1).hexString()}var aI=["x","y","borderWidth","radius","tension"],iI=["color","borderColor","backgroundColor"];function tI(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:(G)=>G!=="onProgress"&&G!=="onComplete"&&G!=="fn"}),Q.set("animations",{colors:{type:"color",properties:iI},numbers:{type:"number",properties:aI}}),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:(G)=>G|0}}}})}function eI(Q){Q.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var VR=new Map;function $O(Q,G){G=G||{};let q=Q+JSON.stringify(G),X=VR.get(q);if(!X)X=new Intl.NumberFormat(Q,G),VR.set(q,X);return X}function _3(Q,G,q){return $O(G,q).format(Q)}var rR={values(Q){return L1(Q)?Q:""+Q},numeric(Q,G,q){if(Q===0)return"0";let X=this.chart.options.locale,N,B=Q;if(q.length>1){let W=Math.max(Math.abs(q[0].value),Math.abs(q[q.length-1].value));if(W<0.0001||W>1000000000000000)N="scientific";B=ZO(Q,q)}let H=F8(Math.abs(B)),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),_3(Q,X,F)},logarithmic(Q,G,q){if(Q===0)return"0";let X=q[G].significand||Q/Math.pow(10,Math.floor(F8(Q)));if([1,2,3,5,10,15].includes(X)||G>0.8*q.length)return rR.numeric.call(this,Q,G,q);return""}};function ZO(Q,G){let q=G.length>3?G[2].value-G[1].value:G[1].value-G[0].value;if(Math.abs(q)>=1&&Q!==Math.floor(Q))q=Q-Math.floor(Q);return q}var ZQ={formatters:rR};function QO(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:(G,q)=>q.lineWidth,tickColor:(G,q)=>q.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:ZQ.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:(G)=>!G.startsWith("before")&&!G.startsWith("after")&&G!=="callback"&&G!=="parser",_indexable:(G)=>G!=="borderDash"&&G!=="tickBorderDash"&&G!=="dash"}),Q.describe("scales",{_fallback:"scale"}),Q.describe("scale.ticks",{_scriptable:(G)=>G!=="backdropPadding"&&G!=="callback",_indexable:(G)=>G!=="backdropPadding"})}var _2=Object.create(null),V3=Object.create(null);function tZ(Q,G){if(!G)return Q;let q=G.split(".");for(let X=0,N=q.length;X<N;++X){let B=q[X];Q=Q[B]||(Q[B]=Object.create(null))}return Q}function JU(Q,G,q){if(typeof G==="string")return e7(tZ(Q,G),q);return e7(tZ(Q,""),G)}class sR{constructor(Q,G){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=(q)=>q.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=(q,X)=>QU(X.backgroundColor),this.hoverBorderColor=(q,X)=>QU(X.borderColor),this.hoverColor=(q,X)=>QU(X.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(G)}set(Q,G){return JU(this,Q,G)}get(Q){return tZ(this,Q)}describe(Q,G){return JU(V3,Q,G)}override(Q,G){return JU(_2,Q,G)}route(Q,G,q,X){let N=tZ(this,Q),B=tZ(this,q),H="_"+G;Object.defineProperties(N,{[H]:{value:N[G],writable:!0},[G]:{enumerable:!0,get(){let M=this[H],F=B[X];if(o0(M))return Object.assign({},F,M);return p0(M,F)},set(M){this[H]=M}}})}apply(Q){Q.forEach((G)=>G(this))}}var b1=new sR({_scriptable:(Q)=>!Q.startsWith("on"),_indexable:(Q)=>Q!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[tI,eI,QO]);function JO(Q){if(!Q||t0(Q.size)||t0(Q.family))return null;return(Q.style?Q.style+" ":"")+(Q.weight?Q.weight+" ":"")+Q.size+"px "+Q.family}function eZ(Q,G,q,X,N){let B=G[N];if(!B)B=G[N]=Q.measureText(N).width,q.push(N);if(B>X)X=B;return X}function nR(Q,G,q,X){X=X||{};let N=X.data=X.data||{},B=X.garbageCollect=X.garbageCollect||[];if(X.font!==G)N=X.data={},B=X.garbageCollect=[],X.font=G;Q.save(),Q.font=G;let H=0,M=q.length,F,W,T,z,C;for(F=0;F<M;F++)if(z=q[F],z!==void 0&&z!==null&&!L1(z))H=eZ(Q,N,B,H,z);else if(L1(z)){for(W=0,T=z.length;W<T;W++)if(C=z[W],C!==void 0&&C!==null&&!L1(C))H=eZ(Q,N,B,H,C)}Q.restore();let V=B.length/2;if(V>q.length){for(F=0;F<V;F++)delete N[B[F]];B.splice(0,V)}return H}function V2(Q,G,q){let X=Q.currentDevicePixelRatio,N=q!==0?Math.max(q/2,0.5):0;return Math.round((G-N)*X)/X+N}function wU(Q,G){if(!G&&!Q)return;G=G||Q.getContext("2d"),G.save(),G.resetTransform(),G.clearRect(0,0,Q.width,Q.height),G.restore()}function I3(Q,G,q,X){WU(Q,G,q,X,null)}function WU(Q,G,q,X,N){let B,H,M,F,W,T,z,C,V=G.pointStyle,A=G.rotation,O=G.radius,I=(A||0)*sI;if(V&&typeof V==="object"){if(B=V.toString(),B==="[object HTMLImageElement]"||B==="[object HTMLCanvasElement]"){Q.save(),Q.translate(q,X),Q.rotate(I),Q.drawImage(V,-V.width/2,-V.height/2,V.width,V.height),Q.restore();return}}if(isNaN(O)||O<=0)return;switch(Q.beginPath(),V){default:if(N)Q.ellipse(q,X,N/2,O,0,0,l5);else Q.arc(q,X,O,0,l5);Q.closePath();break;case"triangle":T=N?N/2:O,Q.moveTo(q+Math.sin(I)*T,X-Math.cos(I)*O),I+=CR,Q.lineTo(q+Math.sin(I)*T,X-Math.cos(I)*O),I+=CR,Q.lineTo(q+Math.sin(I)*T,X-Math.cos(I)*O),Q.closePath();break;case"rectRounded":W=O*0.516,F=O-W,H=Math.cos(I+O9)*F,z=Math.cos(I+O9)*(N?N/2-W:F),M=Math.sin(I+O9)*F,C=Math.sin(I+O9)*(N?N/2-W:F),Q.arc(q-z,X-M,W,I-u1,I-c5),Q.arc(q+C,X-H,W,I-c5,I),Q.arc(q+z,X+M,W,I,I+c5),Q.arc(q-C,X+H,W,I+c5,I+u1),Q.closePath();break;case"rect":if(!A){F=Math.SQRT1_2*O,T=N?N/2:F,Q.rect(q-T,X-F,2*T,2*F);break}I+=O9;case"rectRot":z=Math.cos(I)*(N?N/2:O),H=Math.cos(I)*O,M=Math.sin(I)*O,C=Math.sin(I)*(N?N/2:O),Q.moveTo(q-z,X-M),Q.lineTo(q+C,X-H),Q.lineTo(q+z,X+M),Q.lineTo(q-C,X+H),Q.closePath();break;case"crossRot":I+=O9;case"cross":z=Math.cos(I)*(N?N/2:O),H=Math.cos(I)*O,M=Math.sin(I)*O,C=Math.sin(I)*(N?N/2:O),Q.moveTo(q-z,X-M),Q.lineTo(q+z,X+M),Q.moveTo(q+C,X-H),Q.lineTo(q-C,X+H);break;case"star":z=Math.cos(I)*(N?N/2:O),H=Math.cos(I)*O,M=Math.sin(I)*O,C=Math.sin(I)*(N?N/2:O),Q.moveTo(q-z,X-M),Q.lineTo(q+z,X+M),Q.moveTo(q+C,X-H),Q.lineTo(q-C,X+H),I+=O9,z=Math.cos(I)*(N?N/2:O),H=Math.cos(I)*O,M=Math.sin(I)*O,C=Math.sin(I)*(N?N/2:O),Q.moveTo(q-z,X-M),Q.lineTo(q+z,X+M),Q.moveTo(q+C,X-H),Q.lineTo(q-C,X+H);break;case"line":H=N?N/2:Math.cos(I)*O,M=Math.sin(I)*O,Q.moveTo(q-H,X-M),Q.lineTo(q+H,X+M);break;case"dash":Q.moveTo(q,X),Q.lineTo(q+Math.cos(I)*(N?N/2:O),X+Math.sin(I)*O);break;case!1:Q.closePath();break}if(Q.fill(),G.borderWidth>0)Q.stroke()}function j4(Q,G,q){return q=q||0.5,!G||Q&&Q.x>G.left-q&&Q.x<G.right+q&&Q.y>G.top-q&&Q.y<G.bottom+q}function QQ(Q,G){Q.save(),Q.beginPath(),Q.rect(G.left,G.top,G.right-G.left,G.bottom-G.top),Q.clip()}function JQ(Q){Q.restore()}function oR(Q,G,q,X,N){if(!G)return Q.lineTo(q.x,q.y);if(N==="middle"){let B=(G.x+q.x)/2;Q.lineTo(B,G.y),Q.lineTo(B,q.y)}else if(N==="after"!==!!X)Q.lineTo(G.x,q.y);else Q.lineTo(q.x,G.y);Q.lineTo(q.x,q.y)}function aR(Q,G,q,X){if(!G)return Q.lineTo(q.x,q.y);Q.bezierCurveTo(X?G.cp1x:G.cp2x,X?G.cp1y:G.cp2y,X?q.cp2x:q.cp1x,X?q.cp2y:q.cp1y,q.x,q.y)}function GO(Q,G){if(G.translation)Q.translate(G.translation[0],G.translation[1]);if(!t0(G.rotation))Q.rotate(G.rotation);if(G.color)Q.fillStyle=G.color;if(G.textAlign)Q.textAlign=G.textAlign;if(G.textBaseline)Q.textBaseline=G.textBaseline}function qO(Q,G,q,X,N){if(N.strikethrough||N.underline){let B=Q.measureText(X),H=G-B.actualBoundingBoxLeft,M=G+B.actualBoundingBoxRight,F=q-B.actualBoundingBoxAscent,W=q+B.actualBoundingBoxDescent,T=N.strikethrough?(F+W)/2:W;Q.strokeStyle=Q.fillStyle,Q.beginPath(),Q.lineWidth=N.decorationWidth||2,Q.moveTo(H,T),Q.lineTo(M,T),Q.stroke()}}function XO(Q,G){let q=Q.fillStyle;Q.fillStyle=G.color,Q.fillRect(G.left,G.top,G.width,G.height),Q.fillStyle=q}function I2(Q,G,q,X,N,B={}){let H=L1(G)?G:[G],M=B.strokeWidth>0&&B.strokeColor!=="",F,W;Q.save(),Q.font=N.string,GO(Q,B);for(F=0;F<H.length;++F){if(W=H[F],B.backdrop)XO(Q,B.backdrop);if(M){if(B.strokeColor)Q.strokeStyle=B.strokeColor;if(!t0(B.strokeWidth))Q.lineWidth=B.strokeWidth;Q.strokeText(W,q,X,B.maxWidth)}Q.fillText(W,q,X,B.maxWidth),qO(Q,q,X,W,B),X+=Number(N.lineHeight)}Q.restore()}function q$(Q,G){let{x:q,y:X,w:N,h:B,radius:H}=G;Q.arc(q+H.topLeft,X+H.topLeft,H.topLeft,1.5*u1,u1,!0),Q.lineTo(q,X+B-H.bottomLeft),Q.arc(q+H.bottomLeft,X+B-H.bottomLeft,H.bottomLeft,u1,c5,!0),Q.lineTo(q+N-H.bottomRight,X+B),Q.arc(q+N-H.bottomRight,X+B-H.bottomRight,H.bottomRight,c5,0,!0),Q.lineTo(q+N,X+H.topRight),Q.arc(q+N-H.topRight,X+H.topRight,H.topRight,0,-c5,!0),Q.lineTo(q+H.topLeft,X)}var YO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,NO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function UO(Q,G){let q=(""+Q).match(YO);if(!q||q[1]==="normal")return G*1.2;switch(Q=+q[2],q[3]){case"px":return Q;case"%":Q/=100;break}return G*Q}var BO=(Q)=>+Q||0;function RU(Q,G){let q={},X=o0(G),N=X?Object.keys(G):G,B=o0(Q)?X?(H)=>p0(Q[H],Q[G[H]]):(H)=>Q[H]:()=>Q;for(let H of N)q[H]=BO(B(H));return q}function TU(Q){return RU(Q,{top:"y",right:"x",bottom:"y",left:"x"})}function O2(Q){return RU(Q,["topLeft","topRight","bottomLeft","bottomRight"])}function w5(Q){let G=TU(Q);return G.width=G.left+G.right,G.height=G.top+G.bottom,G}function o1(Q,G){Q=Q||{},G=G||b1.font;let q=p0(Q.size,G.size);if(typeof q==="string")q=parseInt(q,10);let X=p0(Q.style,G.style);if(X&&!(""+X).match(NO))console.warn('Invalid font style specified: "'+X+'"'),X=void 0;let N={family:p0(Q.family,G.family),lineHeight:UO(p0(Q.lineHeight,G.lineHeight),q),size:q,style:X,weight:p0(Q.weight,G.weight),string:""};return N.string=JO(N),N}function GQ(Q,G,q,X){let N=!0,B,H,M;for(B=0,H=Q.length;B<H;++B){if(M=Q[B],M===void 0)continue;if(G!==void 0&&typeof M==="function")M=M(G),N=!1;if(q!==void 0&&L1(M))M=M[q%M.length],N=!1;if(M!==void 0){if(X&&!N)X.cacheable=!1;return M}}}function iR(Q,G,q){let{min:X,max:N}=Q,B=jR(G,(N-X)/2),H=(M,F)=>q&&M===0?0:M+F;return{min:H(X,-Math.abs(B)),max:H(N,B)}}function R8(Q,G){return Object.assign(Object.create(Q),G)}function O3(Q,G=[""],q,X,N=()=>Q[0]){let B=q||Q;if(typeof X>"u")X=$T("_fallback",Q);let H={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:Q,_rootScopes:B,_fallback:X,_getTarget:N,override:(M)=>O3([M,...Q],G,B,X)};return new Proxy(H,{deleteProperty(M,F){return delete M[F],delete M._keys,delete Q[0][F],!0},get(M,F){return tR(M,F,()=>TO(F,G,Q,M))},getOwnPropertyDescriptor(M,F){return Reflect.getOwnPropertyDescriptor(M._scopes[0],F)},getPrototypeOf(){return Reflect.getPrototypeOf(Q[0])},has(M,F){return OR(M).includes(F)},ownKeys(M){return OR(M)},set(M,F,W){let T=M._storage||(M._storage=N());return M[F]=T[F]=W,delete M._keys,!0}})}function A9(Q,G,q,X){let N={_cacheable:!1,_proxy:Q,_context:G,_subProxy:q,_stack:new Set,_descriptors:zU(Q,X),setContext:(B)=>A9(Q,B,q,X),override:(B)=>A9(Q.override(B),G,q,X)};return new Proxy(N,{deleteProperty(B,H){return delete B[H],delete Q[H],!0},get(B,H,M){return tR(B,H,()=>HO(B,H,M))},getOwnPropertyDescriptor(B,H){return B._descriptors.allKeys?Reflect.has(Q,H)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(Q,H)},getPrototypeOf(){return Reflect.getPrototypeOf(Q)},has(B,H){return Reflect.has(Q,H)},ownKeys(){return Reflect.ownKeys(Q)},set(B,H,M){return Q[H]=M,delete B[H],!0}})}function zU(Q,G={scriptable:!0,indexable:!0}){let{_scriptable:q=G.scriptable,_indexable:X=G.indexable,_allKeys:N=G.allKeys}=Q;return{allKeys:N,scriptable:q,indexable:X,isScriptable:M8(q)?q:()=>q,isIndexable:M8(X)?X:()=>X}}var KO=(Q,G)=>Q?Q+z3(G):G,PU=(Q,G)=>o0(G)&&Q!=="adapters"&&(Object.getPrototypeOf(G)===null||G.constructor===Object);function tR(Q,G,q){if(Object.prototype.hasOwnProperty.call(Q,G)||G==="constructor")return Q[G];let X=q();return Q[G]=X,X}function HO(Q,G,q){let{_proxy:X,_context:N,_subProxy:B,_descriptors:H}=Q,M=X[G];if(M8(M)&&H.isScriptable(G))M=MO(G,M,Q,q);if(L1(M)&&M.length)M=FO(G,M,Q,H.isIndexable);if(PU(G,M))M=A9(M,N,B&&B[G],H);return M}function MO(Q,G,q,X){let{_proxy:N,_context:B,_subProxy:H,_stack:M}=q;if(M.has(Q))throw Error("Recursion detected: "+Array.from(M).join("->")+"->"+Q);M.add(Q);let F=G(B,H||X);if(M.delete(Q),PU(Q,F))F=CU(N._scopes,N,Q,F);return F}function FO(Q,G,q,X){let{_proxy:N,_context:B,_subProxy:H,_descriptors:M}=q;if(typeof B.index<"u"&&X(Q))return G[B.index%G.length];else if(o0(G[0])){let F=G,W=N._scopes.filter((T)=>T!==F);G=[];for(let T of F){let z=CU(W,N,Q,T);G.push(A9(z,B,H&&H[Q],M))}}return G}function eR(Q,G,q){return M8(Q)?Q(G,q):Q}var wO=(Q,G)=>Q===!0?G:typeof Q==="string"?S9(G,Q):void 0;function WO(Q,G,q,X,N){for(let B of G){let H=wO(q,B);if(H){Q.add(H);let M=eR(H._fallback,q,N);if(typeof M<"u"&&M!==q&&M!==X)return M}else if(H===!1&&typeof X<"u"&&q!==X)return null}return!1}function CU(Q,G,q,X){let N=G._rootScopes,B=eR(G._fallback,q,X),H=[...Q,...N],M=new Set;M.add(X);let F=IR(M,H,q,B||q,X);if(F===null)return!1;if(typeof B<"u"&&B!==q){if(F=IR(M,H,B,F,X),F===null)return!1}return O3(Array.from(M),[""],N,B,()=>RO(G,q,X))}function IR(Q,G,q,X,N){while(q)q=WO(Q,G,q,X,N);return q}function RO(Q,G,q){let X=Q._getTarget();if(!(G in X))X[G]={};let N=X[G];if(L1(N)&&o0(q))return q;return N||{}}function TO(Q,G,q,X){let N;for(let B of G)if(N=$T(KO(B,Q),q),typeof N<"u")return PU(Q,N)?CU(q,X,Q,N):N}function $T(Q,G){for(let q of G){if(!q)continue;let X=q[Q];if(typeof X<"u")return X}}function OR(Q){let G=Q._keys;if(!G)G=Q._keys=zO(Q._scopes);return G}function zO(Q){let G=new Set;for(let q of Q)for(let X of Object.keys(q).filter((N)=>!N.startsWith("_")))G.add(X);return Array.from(G)}var PO=Number.EPSILON||0.00000000000001,$$=(Q,G)=>G<Q.length&&!Q[G].skip&&Q[G],ZT=(Q)=>Q==="x"?"y":"x";function CO(Q,G,q,X){let N=Q.skip?G:Q,B=G,H=q.skip?G:q,M=R3(B,N),F=R3(H,B),W=M/(M+F),T=F/(M+F);W=isNaN(W)?0:W,T=isNaN(T)?0:T;let z=X*W,C=X*T;return{previous:{x:B.x-z*(H.x-N.x),y:B.y-z*(H.y-N.y)},next:{x:B.x+C*(H.x-N.x),y:B.y+C*(H.y-N.y)}}}function LO(Q,G,q){let X=Q.length,N,B,H,M,F,W=$$(Q,0);for(let T=0;T<X-1;++T){if(F=W,W=$$(Q,T+1),!F||!W)continue;if(J$(G[T],0,PO)){q[T]=q[T+1]=0;continue}if(N=q[T]/G[T],B=q[T+1]/G[T],M=Math.pow(N,2)+Math.pow(B,2),M<=9)continue;H=3/Math.sqrt(M),q[T]=N*H*G[T],q[T+1]=B*H*G[T]}}function _O(Q,G,q="x"){let X=ZT(q),N=Q.length,B,H,M,F=$$(Q,0);for(let W=0;W<N;++W){if(H=M,M=F,F=$$(Q,W+1),!M)continue;let T=M[q],z=M[X];if(H)B=(T-H[q])/3,M[`cp1${q}`]=T-B,M[`cp1${X}`]=z-B*G[W];if(F)B=(F[q]-T)/3,M[`cp2${q}`]=T+B,M[`cp2${X}`]=z+B*G[W]}}function VO(Q,G="x"){let q=ZT(G),X=Q.length,N=Array(X).fill(0),B=Array(X),H,M,F,W=$$(Q,0);for(H=0;H<X;++H){if(M=F,F=W,W=$$(Q,H+1),!F)continue;if(W){let T=W[G]-F[G];N[H]=T!==0?(W[q]-F[q])/T:0}B[H]=!M?N[H]:!W?N[H-1]:$4(N[H-1])!==$4(N[H])?0:(N[H-1]+N[H])/2}LO(Q,N,B),_O(Q,B,G)}function M3(Q,G,q){return Math.max(Math.min(Q,q),G)}function IO(Q,G){let q,X,N,B,H,M=j4(Q[0],G);for(q=0,X=Q.length;q<X;++q){if(H=B,B=M,M=q<X-1&&j4(Q[q+1],G),!B)continue;if(N=Q[q],H)N.cp1x=M3(N.cp1x,G.left,G.right),N.cp1y=M3(N.cp1y,G.top,G.bottom);if(M)N.cp2x=M3(N.cp2x,G.left,G.right),N.cp2y=M3(N.cp2y,G.top,G.bottom)}}function QT(Q,G,q,X,N){let B,H,M,F;if(G.spanGaps)Q=Q.filter((W)=>!W.skip);if(G.cubicInterpolationMode==="monotone")VO(Q,N);else{let W=X?Q[Q.length-1]:Q[0];for(B=0,H=Q.length;B<H;++B)M=Q[B],F=CO(W,M,Q[Math.min(B+1,H-(X?0:1))%H],G.tension),M.cp1x=F.previous.x,M.cp1y=F.previous.y,M.cp2x=F.next.x,M.cp2y=F.next.y,W=M}if(G.capBezierPoints)IO(Q,q)}function E3(){return typeof window<"u"&&typeof document<"u"}function A3(Q){let G=Q.parentNode;if(G&&G.toString()==="[object ShadowRoot]")G=G.host;return G}function T3(Q,G,q){let X;if(typeof Q==="string"){if(X=parseInt(Q,10),Q.indexOf("%")!==-1)X=X/100*G.parentNode[q]}else X=Q;return X}var S3=(Q)=>Q.ownerDocument.defaultView.getComputedStyle(Q,null);function OO(Q,G){return S3(Q).getPropertyValue(G)}var EO=["top","right","bottom","left"];function E9(Q,G,q){let X={};q=q?"-"+q:"";for(let N=0;N<4;N++){let B=EO[N];X[B]=parseFloat(Q[G+"-"+B+q])||0}return X.width=X.left+X.right,X.height=X.top+X.bottom,X}var AO=(Q,G,q)=>(Q>0||G>0)&&(!q||!q.shadowRoot);function SO(Q,G){let q=Q.touches,X=q&&q.length?q[0]:Q,{offsetX:N,offsetY:B}=X,H=!1,M,F;if(AO(N,B,Q.target))M=N,F=B;else{let W=G.getBoundingClientRect();M=X.clientX-W.left,F=X.clientY-W.top,H=!0}return{x:M,y:F,box:H}}function E2(Q,G){if("native"in Q)return Q;let{canvas:q,currentDevicePixelRatio:X}=G,N=S3(q),B=N.boxSizing==="border-box",H=E9(N,"padding"),M=E9(N,"border","width"),{x:F,y:W,box:T}=SO(Q,q),z=H.left+(T&&M.left),C=H.top+(T&&M.top),{width:V,height:A}=G;if(B)V-=H.width+M.width,A-=H.height+M.height;return{x:Math.round((F-z)/V*q.width/X),y:Math.round((W-C)/A*q.height/X)}}function DO(Q,G,q){let X,N;if(G===void 0||q===void 0){let B=Q&&A3(Q);if(!B)G=Q.clientWidth,q=Q.clientHeight;else{let H=B.getBoundingClientRect(),M=S3(B),F=E9(M,"border","width"),W=E9(M,"padding");G=H.width-W.width-F.width,q=H.height-W.height-F.height,X=T3(M.maxWidth,B,"clientWidth"),N=T3(M.maxHeight,B,"clientHeight")}}return{width:G,height:q,maxWidth:X||W3,maxHeight:N||W3}}var L2=(Q)=>Math.round(Q*10)/10;function JT(Q,G,q,X){let N=S3(Q),B=E9(N,"margin"),H=T3(N.maxWidth,Q,"clientWidth")||W3,M=T3(N.maxHeight,Q,"clientHeight")||W3,F=DO(Q,G,q),{width:W,height:T}=F;if(N.boxSizing==="content-box"){let C=E9(N,"border","width"),V=E9(N,"padding");W-=V.width+C.width,T-=V.height+C.height}if(W=Math.max(0,W-B.width),T=Math.max(0,X?W/X:T-B.height),W=L2(Math.min(W,H,F.maxWidth)),T=L2(Math.min(T,M,F.maxHeight)),W&&!T)T=L2(W/2);if((G!==void 0||q!==void 0)&&X&&F.height&&T>F.height)T=F.height,W=L2(Math.floor(T*X));return{width:W,height:T}}function LU(Q,G,q){let X=G||1,N=L2(Q.height*X),B=L2(Q.width*X);Q.height=L2(Q.height),Q.width=L2(Q.width);let H=Q.canvas;if(H.style&&(q||!H.style.height&&!H.style.width))H.style.height=`${Q.height}px`,H.style.width=`${Q.width}px`;if(Q.currentDevicePixelRatio!==X||H.height!==N||H.width!==B)return Q.currentDevicePixelRatio=X,H.height=N,H.width=B,Q.ctx.setTransform(X,0,0,X,0,0),!0;return!1}var GT=function(){let Q=!1;try{let G={get passive(){return Q=!0,!1}};if(E3())window.addEventListener("test",null,G),window.removeEventListener("test",null,G)}catch(G){}return Q}();function _U(Q,G){let q=OO(Q,G),X=q&&q.match(/^(\d+)(\.\d+)?px$/);return X?+X[1]:void 0}function P2(Q,G,q,X){return{x:Q.x+q*(G.x-Q.x),y:Q.y+q*(G.y-Q.y)}}function qT(Q,G,q,X){return{x:Q.x+q*(G.x-Q.x),y:X==="middle"?q<0.5?Q.y:G.y:X==="after"?q<1?Q.y:G.y:q>0?G.y:Q.y}}function XT(Q,G,q,X){let N={x:Q.cp2x,y:Q.cp2y},B={x:G.cp1x,y:G.cp1y},H=P2(Q,N,q),M=P2(N,B,q),F=P2(B,G,q),W=P2(H,M,q),T=P2(M,F,q);return P2(W,T,q)}var jO=function(Q,G){return{x(q){return Q+Q+G-q},setWidth(q){G=q},textAlign(q){if(q==="center")return q;return q==="right"?"left":"right"},xPlus(q,X){return q-X},leftForLtr(q,X){return q-X}}},vO=function(){return{x(Q){return Q},setWidth(Q){},textAlign(Q){return Q},xPlus(Q,G){return Q+G},leftForLtr(Q,G){return Q}}};function D9(Q,G,q){return Q?jO(G,q):vO()}function VU(Q,G){let q,X;if(G==="ltr"||G==="rtl")q=Q.canvas.style,X=[q.getPropertyValue("direction"),q.getPropertyPriority("direction")],q.setProperty("direction",G,"important"),Q.prevTextDirection=X}function IU(Q,G){if(G!==void 0)delete Q.prevTextDirection,Q.canvas.style.setProperty("direction",G[0],G[1])}function YT(Q){if(Q==="angle")return{between:NU,compare:oI,normalize:p5};return{between:W8,compare:(G,q)=>G-q,normalize:(G)=>G}}function ER({start:Q,end:G,count:q,loop:X,style:N}){return{start:Q%q,end:G%q,loop:X&&(G-Q+1)%q===0,style:N}}function bO(Q,G,q){let{property:X,start:N,end:B}=q,{between:H,normalize:M}=YT(X),F=G.length,{start:W,end:T,loop:z}=Q,C,V;if(z){W+=F,T+=F;for(C=0,V=F;C<V;++C){if(!H(M(G[W%F][X]),N,B))break;W--,T--}W%=F,T%=F}if(T<W)T+=F;return{start:W,end:T,loop:z,style:Q.style}}function OU(Q,G,q){if(!q)return[Q];let{property:X,start:N,end:B}=q,H=G.length,{compare:M,between:F,normalize:W}=YT(X),{start:T,end:z,loop:C,style:V}=bO(Q,G,q),A=[],O=!1,I=null,j,h,p,s=()=>F(N,p,j)&&M(N,p)!==0,o=()=>M(B,j)===0||F(B,p,j),Q0=()=>O||s(),i=()=>!O||o();for(let a=T,X0=T;a<=z;++a){if(h=G[a%H],h.skip)continue;if(j=W(h[X]),j===p)continue;if(O=F(j,N,B),I===null&&Q0())I=M(j,N)===0?a:X0;if(I!==null&&i())A.push(ER({start:I,end:a,loop:C,count:H,style:V})),I=null;X0=a,p=j}if(I!==null)A.push(ER({start:I,end:z,loop:C,count:H,style:V}));return A}function EU(Q,G){let q=[],X=Q.segments;for(let N=0;N<X.length;N++){let B=OU(X[N],Q.points,G);if(B.length)q.push(...B)}return q}function kO(Q,G,q,X){let N=0,B=G-1;if(q&&!X)while(N<G&&!Q[N].skip)N++;while(N<G&&Q[N].skip)N++;if(N%=G,q)B+=N;while(B>N&&Q[B%G].skip)B--;return B%=G,{start:N,end:B}}function fO(Q,G,q,X){let N=Q.length,B=[],H=G,M=Q[G],F;for(F=G+1;F<=q;++F){let W=Q[F%N];if(W.skip||W.stop){if(!M.skip)X=!1,B.push({start:G%N,end:(F-1)%N,loop:X}),G=H=W.stop?F:null}else if(H=F,M.skip)G=F;M=W}if(H!==null)B.push({start:G%N,end:H%N,loop:X});return B}function NT(Q,G){let q=Q.points,X=Q.options.spanGaps,N=q.length;if(!N)return[];let B=!!Q._loop,{start:H,end:M}=kO(q,N,B,X);if(X===!0)return AR(Q,[{start:H,end:M,loop:B}],q,G);let F=M<H?M+N:M,W=!!Q._fullLoop&&H===0&&M===N-1;return AR(Q,fO(q,H,F,W),q,G)}function AR(Q,G,q,X){if(!X||!X.setContext||!q)return G;return yO(Q,G,q,X)}function yO(Q,G,q,X){let N=Q._chart.getContext(),B=SR(Q.options),{_datasetIndex:H,options:{spanGaps:M}}=Q,F=q.length,W=[],T=B,z=G[0].start,C=z;function V(A,O,I,j){let h=M?-1:1;if(A===O)return;A+=F;while(q[A%F].skip)A-=h;while(q[O%F].skip)O+=h;if(A%F!==O%F)W.push({start:A%F,end:O%F,loop:I,style:j}),T=j,z=O%F}for(let A of G){z=M?z:A.start;let O=q[z%F],I;for(C=z+1;C<=A.end;C++){let j=q[C%F];if(I=SR(X.setContext(R8(N,{type:"segment",p0:O,p1:j,p0DataIndex:(C-1)%F,p1DataIndex:C%F,datasetIndex:H}))),gO(I,T))V(z,C-1,A.loop,T);O=j,T=I}if(z<C-1)V(z,C-1,A.loop,T)}return W}function SR(Q){return{backgroundColor:Q.backgroundColor,borderCapStyle:Q.borderCapStyle,borderDash:Q.borderDash,borderDashOffset:Q.borderDashOffset,borderJoinStyle:Q.borderJoinStyle,borderWidth:Q.borderWidth,borderColor:Q.borderColor}}function gO(Q,G){if(!G)return!1;let q=[],X=function(N,B){if(!MU(B))return B;if(!q.includes(B))q.push(B);return q.indexOf(B)};return JSON.stringify(Q,X)!==JSON.stringify(G,X)}function F3(Q,G,q){return Q.options.clip?Q[q]:G[q]}function hO(Q,G){let{xScale:q,yScale:X}=Q;if(q&&X)return{left:F3(q,G,"left"),right:F3(q,G,"right"),top:F3(X,G,"top"),bottom:F3(X,G,"bottom")};return G}function AU(Q,G){let q=G._clip;if(q.disabled)return!1;let X=hO(G,Q.chartArea);return{left:q.left===!1?0:X.left-(q.left===!0?0:q.left),right:q.right===!1?Q.width:X.right+(q.right===!0?0:q.right),top:q.top===!1?0:X.top-(q.top===!0?0:q.top),bottom:q.bottom===!1?Q.height:X.bottom+(q.bottom===!0?0:q.bottom)}}/*!
251
251
  * Chart.js v4.5.1
252
252
  * https://www.chartjs.org
253
253
  * (c) 2025 Chart.js Contributors
254
254
  * Released under the MIT License
255
- */class cT{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Q,J,q,Y){let U=J.listeners[Y],K=J.duration;U.forEach((H)=>H({chart:Q,initial:J.initial,numSteps:K,currentStep:Math.min(q-J.start,K)}))}_refresh(){if(this._request)return;this._running=!0,this._request=iU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(Q=Date.now()){let J=0;if(this._charts.forEach((q,Y)=>{if(!q.running||!q.items.length)return;let U=q.items,K=U.length-1,H=!1,M;for(;K>=0;--K)if(M=U[K],M._active){if(M._total>q.duration)q.duration=M._total;M.tick(Q),H=!0}else U[K]=U[U.length-1],U.pop();if(H)Y.draw(),this._notify(Y,q,Q,"progress");if(!U.length)q.running=!1,this._notify(Y,q,Q,"complete"),q.initial=!1;J+=U.length}),this._lastDate=Q,J===0)this._running=!1}_getAnims(Q){let J=this._charts,q=J.get(Q);if(!q)q={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},J.set(Q,q);return q}listen(Q,J,q){this._getAnims(Q).listeners[J].push(q)}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((q,Y)=>Math.max(q,Y._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 q=J.items,Y=q.length-1;for(;Y>=0;--Y)q[Y].cancel();J.items=[],this._notify(Q,J,Date.now(),"complete")}remove(Q){return this._charts.delete(Q)}}var G6=new cT,nR="transparent",lC={boolean(Q,J,q){return q>0.5?J:Q},color(Q,J,q){let Y=$N(Q||nR),U=Y.valid&&$N(J||nR);return U&&U.valid?U.mix(Y,q).hexString():J},number(Q,J,q){return Q+(J-Q)*q}};class lT{constructor(Q,J,q,Y){let U=J[q];Y=pZ([Q.to,Y,U,Q.from]);let K=pZ([Q.from,U,Y]);this._active=!0,this._fn=Q.fn||lC[Q.type||typeof K],this._easing=f9[Q.easing]||f9.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=q,this._from=K,this._to=Y,this._promises=void 0}active(){return this._active}update(Q,J,q){if(this._active){this._notify(!1);let Y=this._target[this._prop],U=q-this._start,K=this._duration-U;this._start=q,this._duration=Math.floor(Math.max(K,Q.duration)),this._total+=U,this._loop=!!Q.loop,this._to=pZ([Q.to,J,Y,Q.from]),this._from=pZ([Q.from,Y,J])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(Q){let J=Q-this._start,q=this._duration,Y=this._prop,U=this._from,K=this._loop,H=this._to,M;if(this._active=U!==H&&(K||J<q),!this._active){this._target[Y]=H,this._notify(!0);return}if(J<0){this._target[Y]=U;return}M=J/q%2,M=K&&M>1?2-M:M,M=this._easing(Math.min(1,Math.max(0,M))),this._target[Y]=this._fn(U,H,M)}wait(){let Q=this._promises||(this._promises=[]);return new Promise((J,q)=>{Q.push({res:J,rej:q})})}_notify(Q){let J=Q?"res":"rej",q=this._promises||[];for(let Y=0;Y<q.length;Y++)q[Y][J]()}}class bN{constructor(Q,J){this._chart=Q,this._properties=new Map,this.configure(J)}configure(Q){if(!n0(Q))return;let J=Object.keys(D1.animation),q=this._properties;Object.getOwnPropertyNames(Q).forEach((Y)=>{let U=Q[Y];if(!n0(U))return;let K={};for(let H of J)K[H]=U[H];(z1(U.properties)&&U.properties||[Y]).forEach((H)=>{if(H===Y||!q.has(H))q.set(H,K)})})}_animateOptions(Q,J){let q=J.options,Y=sC(Q,q);if(!Y)return[];let U=this._createAnimations(Y,q);if(q.$shared)rC(Q.options.$animations,q).then(()=>{Q.options=q},()=>{});return U}_createAnimations(Q,J){let q=this._properties,Y=[],U=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"){Y.push(...this._animateOptions(Q,J));continue}let R=J[F],T=U[F],z=q.get(F);if(T)if(z&&T.active()){T.update(z,R,H);continue}else T.cancel();if(!z||!z.duration){Q[F]=R;continue}U[F]=T=new lT(z,Q,F,R),Y.push(T)}return Y}update(Q,J){if(this._properties.size===0){Object.assign(Q,J);return}let q=this._createAnimations(Q,J);if(q.length)return G6.add(this._chart,q),!0}}function rC(Q,J){let q=[],Y=Object.keys(J);for(let U=0;U<Y.length;U++){let K=Q[Y[U]];if(K&&K.active())q.push(K.wait())}return Promise.all(q)}function sC(Q,J){if(!J)return;let q=Q.options;if(!q){Q.options=J;return}if(q.$shared)Q.options=q=Object.assign({},q,{$shared:!1,$animations:{}});return q}function oR(Q,J){let q=Q&&Q.options||{},Y=q.reverse,U=q.min===void 0?J:0,K=q.max===void 0?J:0;return{start:Y?K:U,end:Y?U:K}}function nC(Q,J,q){if(q===!1)return!1;let Y=oR(Q,q),U=oR(J,q);return{top:U.end,right:Y.end,bottom:U.start,left:Y.start}}function oC(Q){let J,q,Y,U;if(n0(Q))J=Q.top,q=Q.right,Y=Q.bottom,U=Q.left;else J=q=Y=U=Q;return{top:J,right:q,bottom:Y,left:U,disabled:Q===!1}}function rT(Q,J){let q=[],Y=Q._getSortedDatasetMetas(J),U,K;for(U=0,K=Y.length;U<K;++U)q.push(Y[U].index);return q}function aR(Q,J,q,Y={}){let U=Q.keys,K=Y.mode==="single",H,M,F,R;if(J===null)return;let T=!1;for(H=0,M=U.length;H<M;++H){if(F=+U[H],F===q){if(T=!0,Y.all)continue;break}if(R=Q.values[F],O1(R)&&(K||J===0||y4(J)===y4(R)))J+=R}if(!T&&!Y.all)return 0;return J}function aC(Q,J){let{iScale:q,vScale:Y}=J,U=q.axis==="x"?"x":"y",K=Y.axis==="x"?"x":"y",H=Object.keys(Q),M=Array(H.length),F,R,T;for(F=0,R=H.length;F<R;++F)T=H[F],M[F]={[U]:T,[K]:Q[T]};return M}function WN(Q,J){let q=Q&&Q.options.stacked;return q||q===void 0&&J.stack!==void 0}function iC(Q,J,q){return`${Q.id}.${J.id}.${q.stack||q.type}`}function tC(Q){let{min:J,max:q,minDefined:Y,maxDefined:U}=Q.getUserBounds();return{min:Y?J:Number.NEGATIVE_INFINITY,max:U?q:Number.POSITIVE_INFINITY}}function eC(Q,J,q){let Y=Q[J]||(Q[J]={});return Y[q]||(Y[q]={})}function iR(Q,J,q,Y){for(let U of J.getMatchingVisibleMetas(Y).reverse()){let K=Q[U.index];if(q&&K>0||!q&&K<0)return U.index}return null}function tR(Q,J){let{chart:q,_cachedMeta:Y}=Q,U=q._stacks||(q._stacks={}),{iScale:K,vScale:H,index:M}=Y,F=K.axis,R=H.axis,T=iC(K,H,Y),z=J.length,L;for(let P=0;P<z;++P){let I=J[P],{[F]:A,[R]:C}=I,g=I._stacks||(I._stacks={});L=g[R]=eC(U,T,A),L[M]=C,L._top=iR(L,H,!0,Y.type),L._bottom=iR(L,H,!1,Y.type);let m=L._visualValues||(L._visualValues={});m[M]=C}}function wN(Q,J){let q=Q.scales;return Object.keys(q).filter((Y)=>q[Y].axis===J).shift()}function $I(Q,J){return Q6(Q,{active:!1,dataset:void 0,datasetIndex:J,index:J,mode:"default",type:"dataset"})}function ZI(Q,J,q){return Q6(Q,{active:!1,dataIndex:J,parsed:void 0,raw:void 0,element:q,index:J,mode:"default",type:"data"})}function cZ(Q,J){let q=Q.controller.index,Y=Q.vScale&&Q.vScale.axis;if(!Y)return;J=J||Q._parsed;for(let U of J){let K=U._stacks;if(!K||K[Y]===void 0||K[Y][q]===void 0)return;if(delete K[Y][q],K[Y]._visualValues!==void 0&&K[Y]._visualValues[q]!==void 0)delete K[Y]._visualValues[q]}}var RN=(Q)=>Q==="reset"||Q==="none",eR=(Q,J)=>J?Q:Object.assign({},Q),QI=(Q,J,q)=>Q&&!J.hidden&&J._stacked&&{keys:rT(q,!0),values:null};class Wq{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=WN(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)cZ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,J=this._cachedMeta,q=this.getDataset(),Y=(T,z,L,P)=>T==="x"?z:T==="r"?P:L,U=J.xAxisID=h0(q.xAxisID,wN(Q,"x")),K=J.yAxisID=h0(q.yAxisID,wN(Q,"y")),H=J.rAxisID=h0(q.rAxisID,wN(Q,"r")),M=J.indexAxis,F=J.iAxisID=Y(M,U,K,H),R=J.vAxisID=Y(M,K,U,H);J.xScale=this.getScaleForId(U),J.yScale=this.getScaleForId(K),J.rScale=this.getScaleForId(H),J.iScale=this.getScaleForId(F),J.vScale=this.getScaleForId(R)}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)oU(this._data,this);if(Q._stacked)cZ(Q)}_dataCheck(){let Q=this.getDataset(),J=Q.data||(Q.data=[]),q=this._data;if(n0(J)){let Y=this._cachedMeta;this._data=aC(J,Y)}else if(q!==J){if(q){oU(q,this);let Y=this._cachedMeta;cZ(Y),Y._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,q=this.getDataset(),Y=!1;this._dataCheck();let U=J._stacked;if(J._stacked=WN(J.vScale,J),J.stack!==q.stack)Y=!0,cZ(J),J.stack=q.stack;if(this._resyncElements(Q),Y||U!==J._stacked)tR(this,J._parsed),J._stacked=WN(J.vScale,J)}configure(){let Q=this.chart.config,J=Q.datasetScopeKeys(this._type),q=Q.getOptionScopes(this.getDataset(),J,!0);this.options=Q.createResolver(q,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Q,J){let{_cachedMeta:q,_data:Y}=this,{iScale:U,_stacked:K}=q,H=U.axis,M=Q===0&&J===Y.length?!0:q._sorted,F=Q>0&&q._parsed[Q-1],R,T,z;if(this._parsing===!1)q._parsed=Y,q._sorted=!0,z=Y;else{if(z1(Y[Q]))z=this.parseArrayData(q,Y,Q,J);else if(n0(Y[Q]))z=this.parseObjectData(q,Y,Q,J);else z=this.parsePrimitiveData(q,Y,Q,J);let L=()=>T[H]===null||F&&T[H]<F[H];for(R=0;R<J;++R)if(q._parsed[R+Q]=T=z[R],M){if(L())M=!1;F=T}q._sorted=M}if(K)tR(this,z)}parsePrimitiveData(Q,J,q,Y){let{iScale:U,vScale:K}=Q,H=U.axis,M=K.axis,F=U.getLabels(),R=U===K,T=Array(Y),z,L,P;for(z=0,L=Y;z<L;++z)P=z+q,T[z]={[H]:R||U.parse(F[P],P),[M]:K.parse(J[P],P)};return T}parseArrayData(Q,J,q,Y){let{xScale:U,yScale:K}=Q,H=Array(Y),M,F,R,T;for(M=0,F=Y;M<F;++M)R=M+q,T=J[R],H[M]={x:U.parse(T[0],R),y:K.parse(T[1],R)};return H}parseObjectData(Q,J,q,Y){let{xScale:U,yScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=Array(Y),R,T,z,L;for(R=0,T=Y;R<T;++R)z=R+q,L=J[z],F[R]={x:U.parse(F$(L,H),z),y:K.parse(F$(L,M),z)};return F}getParsed(Q){return this._cachedMeta._parsed[Q]}getDataElement(Q){return this._cachedMeta.data[Q]}applyStack(Q,J,q){let Y=this.chart,U=this._cachedMeta,K=J[Q.axis],H={keys:rT(Y,!0),values:J._stacks[Q.axis]._visualValues};return aR(H,K,U.index,{mode:q})}updateRangeFromParsed(Q,J,q,Y){let U=q[J.axis],K=U===null?NaN:U,H=Y&&q._stacks[J.axis];if(Y&&H)Y.values=H,K=aR(Y,U,this._cachedMeta.index);Q.min=Math.min(Q.min,K),Q.max=Math.max(Q.max,K)}getMinMax(Q,J){let q=this._cachedMeta,Y=q._parsed,U=q._sorted&&Q===q.iScale,K=Y.length,H=this._getOtherScale(Q),M=QI(J,q,this.chart),F={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:R,max:T}=tC(H),z,L;function P(){L=Y[z];let I=L[H.axis];return!O1(L[Q.axis])||R>I||T<I}for(z=0;z<K;++z){if(P())continue;if(this.updateRangeFromParsed(F,Q,L,M),U)break}if(U)for(z=K-1;z>=0;--z){if(P())continue;this.updateRangeFromParsed(F,Q,L,M);break}return F}getAllParsedValues(Q){let J=this._cachedMeta._parsed,q=[],Y,U,K;for(Y=0,U=J.length;Y<U;++Y)if(K=J[Y][Q.axis],O1(K))q.push(K);return q}getMaxOverflow(){return!1}getLabelAndValue(Q){let J=this._cachedMeta,q=J.iScale,Y=J.vScale,U=this.getParsed(Q);return{label:q?""+q.getLabelForValue(U[q.axis]):"",value:Y?""+Y.getLabelForValue(U[Y.axis]):""}}_update(Q){let J=this._cachedMeta;this.update(Q||"default"),J._clip=oC(h0(this.options.clip,nC(J.xScale,J.yScale,this.getMaxOverflow())))}update(Q){}draw(){let Q=this._ctx,J=this.chart,q=this._cachedMeta,Y=q.data||[],U=J.chartArea,K=[],H=this._drawStart||0,M=this._drawCount||Y.length-H,F=this.options.drawActiveElementsOnTop,R;if(q.dataset)q.dataset.draw(Q,U,H,M);for(R=H;R<H+M;++R){let T=Y[R];if(T.hidden)continue;if(T.active&&F)K.push(T);else T.draw(Q,U)}for(R=0;R<K.length;++R)K[R].draw(Q,U)}getStyle(Q,J){let q=J?"active":"default";return Q===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(q):this.resolveDataElementOptions(Q||0,q)}getContext(Q,J,q){let Y=this.getDataset(),U;if(Q>=0&&Q<this._cachedMeta.data.length){let K=this._cachedMeta.data[Q];U=K.$context||(K.$context=ZI(this.getContext(),Q,K)),U.parsed=this.getParsed(Q),U.raw=Y.data[Q],U.index=U.dataIndex=Q}else U=this.$context||(this.$context=$I(this.chart.getContext(),this.index)),U.dataset=Y,U.index=U.datasetIndex=this.index;return U.active=!!J,U.mode=q,U}resolveDatasetElementOptions(Q){return this._resolveElementOptions(this.datasetElementType.id,Q)}resolveDataElementOptions(Q,J){return this._resolveElementOptions(this.dataElementType.id,J,Q)}_resolveElementOptions(Q,J="default",q){let Y=J==="active",U=this._cachedDataOpts,K=Q+"-"+J,H=U[K],M=this.enableOptionSharing&&x9(q);if(H)return eR(H,M);let F=this.chart.config,R=F.datasetElementScopeKeys(this._type,Q),T=Y?[`${Q}Hover`,"hover",Q,""]:[Q,""],z=F.getOptionScopes(this.getDataset(),R),L=Object.keys(D1.elements[Q]),P=()=>this.getContext(q,Y,J),I=F.resolveNamedOptions(z,L,P,T);if(I.$shared)I.$shared=M,U[K]=Object.freeze(eR(I,M));return I}_resolveAnimations(Q,J,q){let Y=this.chart,U=this._cachedDataOpts,K=`animation-${J}`,H=U[K];if(H)return H;let M;if(Y.options.animation!==!1){let R=this.chart.config,T=R.datasetAnimationScopeKeys(this._type,J),z=R.getOptionScopes(this.getDataset(),T);M=R.createResolver(z,this.getContext(Q,q,J))}let F=new bN(Y,M&&M.animations);if(M&&M._cacheable)U[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||RN(Q)||this.chart._animationsDisabled}_getSharedOptions(Q,J){let q=this.resolveDataElementOptions(Q,J),Y=this._sharedOptions,U=this.getSharedOptions(q),K=this.includeOptions(J,U)||U!==Y;return this.updateSharedOptions(U,J,q),{sharedOptions:U,includeOptions:K}}updateElement(Q,J,q,Y){if(RN(Y))Object.assign(Q,q);else this._resolveAnimations(J,Y).update(Q,q)}updateSharedOptions(Q,J,q){if(Q&&!RN(J))this._resolveAnimations(void 0,J).update(Q,q)}_setStyle(Q,J,q,Y){Q.active=Y;let U=this.getStyle(J,Y);this._resolveAnimations(J,q,Y).update(Q,{options:!Y&&this.getSharedOptions(U)||U})}removeHoverStyle(Q,J,q){this._setStyle(Q,q,"active",!1)}setHoverStyle(Q,J,q){this._setStyle(Q,q,"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,q=this._cachedMeta.data;for(let[H,M,F]of this._syncList)this[H](M,F);this._syncList=[];let Y=q.length,U=J.length,K=Math.min(U,Y);if(K)this.parse(0,K);if(U>Y)this._insertElements(Y,U-Y,Q);else if(U<Y)this._removeElements(U,Y-U)}_insertElements(Q,J,q=!0){let Y=this._cachedMeta,U=Y.data,K=Q+J,H,M=(F)=>{F.length+=J;for(H=F.length-1;H>=K;H--)F[H]=F[H-J]};M(U);for(H=Q;H<K;++H)U[H]=new this.dataElementType;if(this._parsing)M(Y._parsed);if(this.parse(Q,J),q)this.updateElements(U,Q,J,"reset")}updateElements(Q,J,q,Y){}_removeElements(Q,J){let q=this._cachedMeta;if(this._parsing){let Y=q._parsed.splice(Q,J);if(q._stacked)cZ(q,Y)}q.data.splice(Q,J)}_sync(Q){if(this._parsing)this._syncList.push(Q);else{let[J,q,Y]=Q;this[J](q,Y)}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 q=arguments.length-2;if(q)this._sync(["_insertElements",Q,q])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function GI(Q,J){if(!Q._cache.$bar){let q=Q.getMatchingVisibleMetas(J),Y=[];for(let U=0,K=q.length;U<K;U++)Y=Y.concat(q[U].controller.getAllParsedValues(Q));Q._cache.$bar=aU(Y.sort((U,K)=>U-K))}return Q._cache.$bar}function JI(Q){let J=Q.iScale,q=GI(J,Q.type),Y=J._length,U,K,H,M,F=()=>{if(H===32767||H===-32768)return;if(x9(M))Y=Math.min(Y,Math.abs(H-M)||Y);M=H};for(U=0,K=q.length;U<K;++U)H=J.getPixelForValue(q[U]),F();M=void 0;for(U=0,K=J.ticks.length;U<K;++U)H=J.getPixelForTick(U),F();return Y}function qI(Q,J,q,Y){let U=q.barThickness,K,H;if(t0(U))K=J.min*q.categoryPercentage,H=q.barPercentage;else K=U*Y,H=1;return{chunk:K/Y,ratio:H,start:J.pixels[Q]-K/2}}function XI(Q,J,q,Y){let U=J.pixels,K=U[Q],H=Q>0?U[Q-1]:null,M=Q<U.length-1?U[Q+1]:null,F=q.categoryPercentage;if(H===null)H=K-(M===null?J.end-J.start:M-K);if(M===null)M=K+K-H;let R=K-(K-Math.min(H,M))/2*F;return{chunk:Math.abs(M-H)/2*F/Y,ratio:q.barPercentage,start:R}}function YI(Q,J,q,Y){let U=q.parse(Q[0],Y),K=q.parse(Q[1],Y),H=Math.min(U,K),M=Math.max(U,K),F=H,R=M;if(Math.abs(H)>Math.abs(M))F=M,R=H;J[q.axis]=R,J._custom={barStart:F,barEnd:R,start:U,end:K,min:H,max:M}}function sT(Q,J,q,Y){if(z1(Q))YI(Q,J,q,Y);else J[q.axis]=q.parse(Q,Y);return J}function $T(Q,J,q,Y){let{iScale:U,vScale:K}=Q,H=U.getLabels(),M=U===K,F=[],R,T,z,L;for(R=q,T=q+Y;R<T;++R)L=J[R],z={},z[U.axis]=M||U.parse(H[R],R),F.push(sT(L,z,K,R));return F}function TN(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function UI(Q,J,q){if(Q!==0)return y4(Q);return(J.isHorizontal()?1:-1)*(J.min>=q?1:-1)}function NI(Q){let J,q,Y,U,K;if(Q.horizontal)J=Q.base>Q.x,q="left",Y="right";else J=Q.base<Q.y,q="bottom",Y="top";if(J)U="end",K="start";else U="start",K="end";return{start:q,end:Y,reverse:J,top:U,bottom:K}}function KI(Q,J,q,Y){let U=J.borderSkipped,K={};if(!U){Q.borderSkipped=K;return}if(U===!0){Q.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:H,end:M,reverse:F,top:R,bottom:T}=NI(Q);if(U==="middle"&&q)if(Q.enableBorderRadius=!0,(q._top||0)===Y)U=R;else if((q._bottom||0)===Y)U=T;else K[ZT(T,H,M,F)]=!0,U=R;K[ZT(U,H,M,F)]=!0,Q.borderSkipped=K}function ZT(Q,J,q,Y){if(Y)Q=BI(Q,J,q),Q=QT(Q,q,J);else Q=QT(Q,J,q);return Q}function BI(Q,J,q){return Q===J?q:Q===q?J:Q}function QT(Q,J,q){return Q==="start"?J:Q==="end"?q:Q}function HI(Q,{inflateAmount:J},q){Q.inflateAmount=J==="auto"?q===1?0.33:0:J}class fN extends Wq{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,q,Y){return $T(Q,J,q,Y)}parseArrayData(Q,J,q,Y){return $T(Q,J,q,Y)}parseObjectData(Q,J,q,Y){let{iScale:U,vScale:K}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=U.axis==="x"?H:M,R=K.axis==="x"?H:M,T=[],z,L,P,I;for(z=q,L=q+Y;z<L;++z)I=J[z],P={},P[U.axis]=U.parse(F$(I,F),z),T.push(sT(F$(I,R),P,K,z));return T}updateRangeFromParsed(Q,J,q,Y){super.updateRangeFromParsed(Q,J,q,Y);let U=q._custom;if(U&&J===this._cachedMeta.vScale)Q.min=Math.min(Q.min,U.min),Q.max=Math.max(Q.max,U.max)}getMaxOverflow(){return 0}getLabelAndValue(Q){let J=this._cachedMeta,{iScale:q,vScale:Y}=J,U=this.getParsed(Q),K=U._custom,H=TN(K)?"["+K.start+", "+K.end+"]":""+Y.getLabelForValue(U[Y.axis]);return{label:""+q.getLabelForValue(U[q.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,q,Y){let U=Y==="reset",{index:K,_cachedMeta:{vScale:H}}=this,M=H.getBasePixel(),F=H.isHorizontal(),R=this._getRuler(),{sharedOptions:T,includeOptions:z}=this._getSharedOptions(J,Y);for(let L=J;L<J+q;L++){let P=this.getParsed(L),I=U||t0(P[H.axis])?{base:M,head:M}:this._calculateBarValuePixels(L),A=this._calculateBarIndexPixels(L,R),C=(P._stacks||{})[H.axis],g={horizontal:F,base:I.base,enableBorderRadius:!C||TN(P._custom)||K===C._top||K===C._bottom,x:F?I.head:A.center,y:F?A.center:I.head,height:F?A.size:Math.abs(I.size),width:F?Math.abs(I.size):A.size};if(z)g.options=T||this.resolveDataElementOptions(L,Q[L].active?"active":Y);let m=g.options||Q[L].options;KI(g,m,C,K),HI(g,m,R.ratio),this.updateElement(Q[L],L,g,Y)}}_getStacks(Q,J){let{iScale:q}=this._cachedMeta,Y=q.getMatchingVisibleMetas(this._type).filter((R)=>R.controller.options.grouped),U=q.options.stacked,K=[],H=this._cachedMeta.controller.getParsed(J),M=H&&H[q.axis],F=(R)=>{let T=R._parsed.find((L)=>L[q.axis]===M),z=T&&T[R.vScale.axis];if(t0(z)||isNaN(z))return!0};for(let R of Y){if(J!==void 0&&F(R))continue;if(U===!1||K.indexOf(R.stack)===-1||U===void 0&&R.stack===void 0)K.push(R.stack);if(R.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((q)=>Q[q].axis===J).shift()}_getAxis(){let Q={},J=this.getFirstScaleIdForIndexAxis();for(let q of this.chart.data.datasets)Q[h0(this.chart.options.indexAxis==="x"?q.xAxisID:q.yAxisID,J)]=!0;return Object.keys(Q)}_getStackIndex(Q,J,q){let Y=this._getStacks(Q,q),U=J!==void 0?Y.indexOf(J):-1;return U===-1?Y.length-1:U}_getRuler(){let Q=this.options,J=this._cachedMeta,q=J.iScale,Y=[],U,K;for(U=0,K=J.data.length;U<K;++U)Y.push(q.getPixelForValue(this.getParsed(U)[q.axis],U));let H=Q.barThickness;return{min:H||JI(J),pixels:Y,start:q._startPixel,end:q._endPixel,stackCount:this._getStackCount(),scale:q,grouped:Q.grouped,ratio:H?1:Q.categoryPercentage*Q.barPercentage}}_calculateBarValuePixels(Q){let{_cachedMeta:{vScale:J,_stacked:q,index:Y},options:{base:U,minBarLength:K}}=this,H=U||0,M=this.getParsed(Q),F=M._custom,R=TN(F),T=M[J.axis],z=0,L=q?this.applyStack(J,M,q):T,P,I;if(L!==T)z=L-T,L=T;if(R){if(T=F.barStart,L=F.barEnd-F.barStart,T!==0&&y4(T)!==y4(F.barEnd))z=0;z+=T}let A=!t0(U)&&!R?U:z,C=J.getPixelForValue(A);if(this.chart.getDataVisibility(Q))P=J.getPixelForValue(z+L);else P=C;if(I=P-C,Math.abs(I)<K){if(I=UI(I,J,H)*K,T===H)C-=I/2;let g=J.getPixelForDecimal(0),m=J.getPixelForDecimal(1),o=Math.min(g,m),a=Math.max(g,m);if(C=Math.max(Math.min(C,a),o),P=C+I,q&&!R)M._stacks[J.axis]._visualValues[Y]=J.getValueForPixel(P)-J.getValueForPixel(C)}if(C===J.getPixelForValue(H)){let g=y4(I)*J.getLineWidthForValue(H)/2;C+=g,I-=g}return{size:I,base:C,head:P,center:P+I/2}}_calculateBarIndexPixels(Q,J){let q=J.scale,Y=this.options,U=Y.skipNull,K=h0(Y.maxBarThickness,1/0),H,M,F=this._getAxisCount();if(J.grouped){let R=U?this._getStackCount(Q):J.stackCount,T=Y.barThickness==="flex"?XI(Q,J,Y,R*F):qI(Q,J,Y,R*F),z=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,L=this._getAxis().indexOf(h0(z,this.getFirstScaleIdForIndexAxis())),P=this._getStackIndex(this.index,this._cachedMeta.stack,U?Q:void 0)+L;H=T.start+T.chunk*P+T.chunk/2,M=Math.min(K,T.chunk*T.ratio)}else H=q.getPixelForValue(this.getParsed(Q)[q.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,q=Q.data,Y=q.length,U=0;for(;U<Y;++U)if(this.getParsed(U)[J.axis]!==null&&!q[U].hidden)q[U].draw(this._ctx)}}class yN extends Wq{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:q,data:Y=[],_dataset:U}=J,K=this.chart._animationsDisabled,{start:H,count:M}=jR(J,Y,K);if(this._drawStart=H,this._drawCount=M,AR(J))H=0,M=Y.length;q._chart=this.chart,q._datasetIndex=this.index,q._decimated=!!U._decimated,q.points=Y;let F=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)F.borderWidth=0;F.segment=this.options.segment,this.updateElement(q,void 0,{animated:!K,options:F},Q),this.updateElements(Y,H,M,Q)}updateElements(Q,J,q,Y){let U=Y==="reset",{iScale:K,vScale:H,_stacked:M,_dataset:F}=this._cachedMeta,{sharedOptions:R,includeOptions:T}=this._getSharedOptions(J,Y),z=K.axis,L=H.axis,{spanGaps:P,segment:I}=this.options,A=m9(P)?P:Number.POSITIVE_INFINITY,C=this.chart._animationsDisabled||U||Y==="none",g=J+q,m=Q.length,o=J>0&&this.getParsed(J-1);for(let a=0;a<m;++a){let s=Q[a],Q0=C?s:{};if(a<J||a>=g){Q0.skip=!0;continue}let p=this.getParsed(a),i=t0(p[L]),Y0=Q0[z]=K.getPixelForValue(p[z],a),d=Q0[L]=U||i?H.getBasePixel():H.getPixelForValue(M?this.applyStack(H,p,M):p[L],a);if(Q0.skip=isNaN(Y0)||isNaN(d)||i,Q0.stop=a>0&&Math.abs(p[z]-o[z])>A,I)Q0.parsed=p,Q0.raw=F.data[a];if(T)Q0.options=R||this.resolveDataElementOptions(a,s.active?"active":Y);if(!C)this.updateElement(s,a,Q0,Y);o=p}}getMaxOverflow(){let Q=this._cachedMeta,J=Q.dataset,q=J.options&&J.options.borderWidth||0,Y=Q.data||[];if(!Y.length)return q;let U=Y[0].size(this.resolveDataElementOptions(0)),K=Y[Y.length-1].size(this.resolveDataElementOptions(Y.length-1));return Math.max(q,U,K)/2}draw(){let Q=this._cachedMeta;Q.dataset.updateControlPoints(this.chart.chartArea,Q.iScale.axis),super.draw()}}function w$(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class gN{static override(Q){Object.assign(gN.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return w$()}parse(){return w$()}format(){return w$()}add(){return w$()}diff(){return w$()}startOf(){return w$()}endOf(){return w$()}}var MI={_date:gN};function FI(Q,J,q,Y){let{controller:U,data:K,_sorted:H}=Q,M=U._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 R=M._reversePixels?ER:q2;if(!Y){let T=R(K,J,q);if(F){let{vScale:z}=U._cachedMeta,{_parsed:L}=Q,P=L.slice(0,T.lo+1).reverse().findIndex((A)=>!t0(A[z.axis]));T.lo-=Math.max(0,P);let I=L.slice(T.hi).findIndex((A)=>!t0(A[z.axis]));T.hi+=Math.max(0,I)}return T}else if(U._sharedOptions){let T=K[0],z=typeof T.getRange==="function"&&T.getRange(J);if(z){let L=R(K,J,q-z),P=R(K,J,q+z);return{lo:L.lo,hi:P.hi}}}}return{lo:0,hi:K.length-1}}function ZQ(Q,J,q,Y,U){let K=Q.getSortedVisibleDatasetMetas(),H=q[J];for(let M=0,F=K.length;M<F;++M){let{index:R,data:T}=K[M],{lo:z,hi:L}=FI(K[M],J,H,U);for(let P=z;P<=L;++P){let I=T[P];if(!I.skip)Y(I,R,P)}}}function WI(Q){let J=Q.indexOf("x")!==-1,q=Q.indexOf("y")!==-1;return function(Y,U){let K=J?Math.abs(Y.x-U.x):0,H=q?Math.abs(Y.y-U.y):0;return Math.sqrt(Math.pow(K,2)+Math.pow(H,2))}}function zN(Q,J,q,Y,U){let K=[];if(!U&&!Q.isPointInArea(J))return K;return ZQ(Q,q,J,function(M,F,R){if(!U&&!w8(M,Q.chartArea,0))return;if(M.inRange(J.x,J.y,Y))K.push({element:M,datasetIndex:F,index:R})},!0),K}function wI(Q,J,q,Y){let U=[];function K(H,M,F){let{startAngle:R,endAngle:T}=H.getProps(["startAngle","endAngle"],Y),{angle:z}=LR(H,{x:J.x,y:J.y});if(nU(z,R,T))U.push({element:H,datasetIndex:M,index:F})}return ZQ(Q,q,J,K),U}function RI(Q,J,q,Y,U,K){let H=[],M=WI(q),F=Number.POSITIVE_INFINITY;function R(T,z,L){let P=T.inRange(J.x,J.y,U);if(Y&&!P)return;let I=T.getCenterPoint(U);if(!(!!K||Q.isPointInArea(I))&&!P)return;let C=M(J,I);if(C<F)H=[{element:T,datasetIndex:z,index:L}],F=C;else if(C===F)H.push({element:T,datasetIndex:z,index:L})}return ZQ(Q,q,J,R),H}function _N(Q,J,q,Y,U,K){if(!K&&!Q.isPointInArea(J))return[];return q==="r"&&!Y?wI(Q,J,q,U):RI(Q,J,q,Y,U,K)}function GT(Q,J,q,Y,U){let K=[],H=q==="x"?"inXRange":"inYRange",M=!1;if(ZQ(Q,q,J,(F,R,T)=>{if(F[H]&&F[H](J[q],U))K.push({element:F,datasetIndex:R,index:T}),M=M||F.inRange(J.x,J.y,U)}),Y&&!M)return[];return K}var TI={evaluateInteractionItems:ZQ,modes:{index(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"x",H=q.includeInvisible||!1,M=q.intersect?zN(Q,U,K,Y,H):_N(Q,U,K,!1,Y,H),F=[];if(!M.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((R)=>{let T=M[0].index,z=R.data[T];if(z&&!z.skip)F.push({element:z,datasetIndex:R.index,index:T})}),F},dataset(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"xy",H=q.includeInvisible||!1,M=q.intersect?zN(Q,U,K,Y,H):_N(Q,U,K,!1,Y,H);if(M.length>0){let F=M[0].datasetIndex,R=Q.getDatasetMeta(F).data;M=[];for(let T=0;T<R.length;++T)M.push({element:R[T],datasetIndex:F,index:T})}return M},point(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"xy",H=q.includeInvisible||!1;return zN(Q,U,K,Y,H)},nearest(Q,J,q,Y){let U=B2(J,Q),K=q.axis||"xy",H=q.includeInvisible||!1;return _N(Q,U,K,q.intersect,Y,H)},x(Q,J,q,Y){let U=B2(J,Q);return GT(Q,U,"x",q.intersect,Y)},y(Q,J,q,Y){let U=B2(J,Q);return GT(Q,U,"y",q.intersect,Y)}}},nT=["left","top","right","bottom"];function lZ(Q,J){return Q.filter((q)=>q.pos===J)}function JT(Q,J){return Q.filter((q)=>nT.indexOf(q.pos)===-1&&q.box.axis===J)}function rZ(Q,J){return Q.sort((q,Y)=>{let U=J?Y:q,K=J?q:Y;return U.weight===K.weight?U.index-K.index:U.weight-K.weight})}function zI(Q){let J=[],q,Y,U,K,H,M;for(q=0,Y=(Q||[]).length;q<Y;++q)U=Q[q],{position:K,options:{stack:H,stackWeight:M=1}}=U,J.push({index:q,box:U,pos:K,horizontal:U.isHorizontal(),weight:U.weight,stack:H&&K+H,stackWeight:M});return J}function _I(Q){let J={};for(let q of Q){let{stack:Y,pos:U,stackWeight:K}=q;if(!Y||!nT.includes(U))continue;let H=J[Y]||(J[Y]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=K}return J}function LI(Q,J){let q=_I(Q),{vBoxMaxWidth:Y,hBoxMaxHeight:U}=J,K,H,M;for(K=0,H=Q.length;K<H;++K){M=Q[K];let{fullSize:F}=M.box,R=q[M.stack],T=R&&M.stackWeight/R.weight;if(M.horizontal)M.width=T?T*Y:F&&J.availableWidth,M.height=U;else M.width=Y,M.height=T?T*U:F&&J.availableHeight}return q}function VI(Q){let J=zI(Q),q=rZ(J.filter((R)=>R.box.fullSize),!0),Y=rZ(lZ(J,"left"),!0),U=rZ(lZ(J,"right")),K=rZ(lZ(J,"top"),!0),H=rZ(lZ(J,"bottom")),M=JT(J,"x"),F=JT(J,"y");return{fullSize:q,leftAndTop:Y.concat(K),rightAndBottom:U.concat(F).concat(H).concat(M),chartArea:lZ(J,"chartArea"),vertical:Y.concat(U).concat(F),horizontal:K.concat(H).concat(M)}}function qT(Q,J,q,Y){return Math.max(Q[q],J[q])+Math.max(Q[Y],J[Y])}function oT(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 EI(Q,J,q,Y){let{pos:U,box:K}=q,H=Q.maxPadding;if(!n0(U)){if(q.size)Q[U]-=q.size;let z=Y[q.stack]||{size:0,count:1};z.size=Math.max(z.size,q.horizontal?K.height:K.width),q.size=z.size/z.count,Q[U]+=q.size}if(K.getPadding)oT(H,K.getPadding());let M=Math.max(0,J.outerWidth-qT(H,Q,"left","right")),F=Math.max(0,J.outerHeight-qT(H,Q,"top","bottom")),R=M!==Q.w,T=F!==Q.h;return Q.w=M,Q.h=F,q.horizontal?{same:R,other:T}:{same:T,other:R}}function PI(Q){let J=Q.maxPadding;function q(Y){let U=Math.max(J[Y]-Q[Y],0);return Q[Y]+=U,U}Q.y+=q("top"),Q.x+=q("left"),q("right"),q("bottom")}function CI(Q,J){let q=J.maxPadding;function Y(U){let K={left:0,top:0,right:0,bottom:0};return U.forEach((H)=>{K[H]=Math.max(J[H],q[H])}),K}return Q?Y(["left","right"]):Y(["top","bottom"])}function oZ(Q,J,q,Y){let U=[],K,H,M,F,R,T;for(K=0,H=Q.length,R=0;K<H;++K){M=Q[K],F=M.box,F.update(M.width||J.w,M.height||J.h,CI(M.horizontal,J));let{same:z,other:L}=EI(J,q,M,Y);if(R|=z&&U.length,T=T||L,!F.fullSize)U.push(M)}return R&&oZ(U,J,q,Y)||T}function Yq(Q,J,q,Y,U){Q.top=q,Q.left=J,Q.right=J+Y,Q.bottom=q+U,Q.width=Y,Q.height=U}function XT(Q,J,q,Y){let U=q.padding,{x:K,y:H}=J;for(let M of Q){let F=M.box,R=Y[M.stack]||{count:1,placed:0,weight:1},T=M.stackWeight/R.weight||1;if(M.horizontal){let z=J.w*T,L=R.size||F.height;if(x9(R.start))H=R.start;if(F.fullSize)Yq(F,U.left,H,q.outerWidth-U.right-U.left,L);else Yq(F,J.left+R.placed,H,z,L);R.start=H,R.placed+=z,H=F.bottom}else{let z=J.h*T,L=R.size||F.width;if(x9(R.start))K=R.start;if(F.fullSize)Yq(F,K,U.top,L,q.outerHeight-U.bottom-U.top);else Yq(F,K,J.top+R.placed,L,z);R.start=K,R.placed+=z,K=F.right}}J.x=K,J.y=H}var V4={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(q){J.draw(q)}}]},Q.boxes.push(J)},removeBox(Q,J){let q=Q.boxes?Q.boxes.indexOf(J):-1;if(q!==-1)Q.boxes.splice(q,1)},configure(Q,J,q){J.fullSize=q.fullSize,J.position=q.position,J.weight=q.weight},update(Q,J,q,Y){if(!Q)return;let U=X5(Q.options.layout.padding),K=Math.max(J-U.width,0),H=Math.max(q-U.height,0),M=VI(Q.boxes),F=M.vertical,R=M.horizontal;X1(Q.boxes,(A)=>{if(typeof A.beforeLayout==="function")A.beforeLayout()});let T=F.reduce((A,C)=>C.box.options&&C.box.options.display===!1?A:A+1,0)||1,z=Object.freeze({outerWidth:J,outerHeight:q,padding:U,availableWidth:K,availableHeight:H,vBoxMaxWidth:K/2/T,hBoxMaxHeight:H/2}),L=Object.assign({},U);oT(L,X5(Y));let P=Object.assign({maxPadding:L,w:K,h:H,x:U.left,y:U.top},U),I=LI(F.concat(R),z);if(oZ(M.fullSize,P,z,I),oZ(F,P,z,I),oZ(R,P,z,I))oZ(F,P,z,I);PI(P),XT(M.leftAndTop,P,z,I),P.x+=P.w,P.y+=P.h,XT(M.rightAndBottom,P,z,I),Q.chartArea={left:P.left,top:P.top,right:P.left+P.w,bottom:P.top+P.h,height:P.h,width:P.w},X1(M.chartArea,(A)=>{let C=A.box;Object.assign(C,Q.chartArea),C.update(P.w,P.h,{left:0,top:0,right:0,bottom:0})})}};class hN{acquireContext(Q,J){}releaseContext(Q){return!1}addEventListener(Q,J,q){}removeEventListener(Q,J,q){}getDevicePixelRatio(){return 1}getMaximumSize(Q,J,q,Y){return J=Math.max(0,J||Q.width),q=q||Q.height,{width:J,height:Math.max(0,Y?Math.floor(J/Y):q)}}isAttached(Q){return!0}updateConfig(Q){}}class aT extends hN{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var Hq="$chartjs",II={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},YT=(Q)=>Q===null||Q==="";function OI(Q,J){let q=Q.style,Y=Q.getAttribute("height"),U=Q.getAttribute("width");if(Q[Hq]={initial:{height:Y,width:U,style:{display:q.display,height:q.height,width:q.width}}},q.display=q.display||"block",q.boxSizing=q.boxSizing||"border-box",YT(U)){let K=NN(Q,"width");if(K!==void 0)Q.width=K}if(YT(Y))if(Q.style.height==="")Q.height=Q.width/(J||2);else{let K=NN(Q,"height");if(K!==void 0)Q.height=K}return Q}var iT=pR?{passive:!0}:!1;function DI(Q,J,q){if(Q)Q.addEventListener(J,q,iT)}function jI(Q,J,q){if(Q&&Q.canvas)Q.canvas.removeEventListener(J,q,iT)}function AI(Q,J){let q=II[Q.type]||Q.type,{x:Y,y:U}=B2(Q,J);return{type:q,chart:J,native:Q,x:Y!==void 0?Y:null,y:U!==void 0?U:null}}function Fq(Q,J){for(let q of Q)if(q===J||q.contains(J))return!0}function SI(Q,J,q){let Y=Q.canvas,U=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||Fq(M.addedNodes,Y),H=H&&!Fq(M.removedNodes,Y);if(H)q()});return U.observe(document,{childList:!0,subtree:!0}),U}function vI(Q,J,q){let Y=Q.canvas,U=new MutationObserver((K)=>{let H=!1;for(let M of K)H=H||Fq(M.removedNodes,Y),H=H&&!Fq(M.addedNodes,Y);if(H)q()});return U.observe(document,{childList:!0,subtree:!0}),U}var tZ=new Map,UT=0;function tT(){let Q=window.devicePixelRatio;if(Q===UT)return;UT=Q,tZ.forEach((J,q)=>{if(q.currentDevicePixelRatio!==Q)J()})}function kI(Q,J){if(!tZ.size)window.addEventListener("resize",tT);tZ.set(Q,J)}function bI(Q){if(tZ.delete(Q),!tZ.size)window.removeEventListener("resize",tT)}function fI(Q,J,q){let Y=Q.canvas,U=Y&&qq(Y);if(!U)return;let K=tU((M,F)=>{let R=U.clientWidth;if(q(M,F),R<U.clientWidth)q()},window),H=new ResizeObserver((M)=>{let F=M[0],R=F.contentRect.width,T=F.contentRect.height;if(R===0&&T===0)return;K(R,T)});return H.observe(U),kI(Q,K),H}function LN(Q,J,q){if(q)q.disconnect();if(J==="resize")bI(Q)}function yI(Q,J,q){let Y=Q.canvas,U=tU((K)=>{if(Q.ctx!==null)q(AI(K,Q))},Q);return DI(Y,J,U),U}class eT extends hN{acquireContext(Q,J){let q=Q&&Q.getContext&&Q.getContext("2d");if(q&&q.canvas===Q)return OI(Q,J),q;return null}releaseContext(Q){let J=Q.canvas;if(!J[Hq])return!1;let q=J[Hq].initial;["height","width"].forEach((U)=>{let K=q[U];if(t0(K))J.removeAttribute(U);else J.setAttribute(U,K)});let Y=q.style||{};return Object.keys(Y).forEach((U)=>{J.style[U]=Y[U]}),J.width=J.width,delete J[Hq],!0}addEventListener(Q,J,q){this.removeEventListener(Q,J);let Y=Q.$proxies||(Q.$proxies={}),K={attach:SI,detach:vI,resize:fI}[J]||yI;Y[J]=K(Q,J,q)}removeEventListener(Q,J){let q=Q.$proxies||(Q.$proxies={}),Y=q[J];if(!Y)return;({attach:LN,detach:LN,resize:LN}[J]||jI)(Q,J,Y),q[J]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,J,q,Y){return dR(Q,J,q,Y)}isAttached(Q){let J=Q&&qq(Q);return!!(J&&J.isConnected)}}function gI(Q){if(!Jq()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return aT;return eT}class q6{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(Q){let{x:J,y:q}=this.getProps(["x","y"],Q);return{x:J,y:q}}hasValue(){return m9(this.x)&&m9(this.y)}getProps(Q,J){let q=this.$animations;if(!J||!q)return this;let Y={};return Q.forEach((U)=>{Y[U]=q[U]&&q[U].active()?q[U]._to:this[U]}),Y}}function hI(Q,J){let q=Q.options.ticks,Y=xI(Q),U=Math.min(q.maxTicksLimit||Y,Y),K=q.major.enabled?mI(J):[],H=K.length,M=K[0],F=K[H-1],R=[];if(H>U)return dI(J,R,K,H/U),R;let T=uI(K,J,U);if(H>0){let z,L,P=H>1?Math.round((F-M)/(H-1)):null;Uq(J,R,T,t0(P)?0:M-P,M);for(z=0,L=H-1;z<L;z++)Uq(J,R,T,K[z],K[z+1]);return Uq(J,R,T,F,t0(P)?J.length:F+P),R}return Uq(J,R,T),R}function xI(Q){let J=Q.options.offset,q=Q._tickSize(),Y=Q._length/q+(J?0:1),U=Q._maxLength/q;return Math.floor(Math.min(Y,U))}function uI(Q,J,q){let Y=pI(Q),U=J.length/q;if(!Y)return Math.max(U,1);let K=zR(Y);for(let H=0,M=K.length-1;H<M;H++){let F=K[H];if(F>U)return F}return Math.max(U,1)}function mI(Q){let J=[],q,Y;for(q=0,Y=Q.length;q<Y;q++)if(Q[q].major)J.push(q);return J}function dI(Q,J,q,Y){let U=0,K=q[0],H;Y=Math.ceil(Y);for(H=0;H<Q.length;H++)if(H===K)J.push(Q[H]),U++,K=q[U*Y]}function Uq(Q,J,q,Y,U){let K=h0(Y,0),H=Math.min(h0(U,Q.length),Q.length),M=0,F,R,T;if(q=Math.ceil(q),U)F=U-Y,q=F/Math.floor(F/q);T=K;while(T<0)M++,T=Math.round(K+M*q);for(R=Math.max(K,0);R<H;R++)if(R===T)J.push(Q[R]),M++,T=Math.round(K+M*q)}function pI(Q){let J=Q.length,q,Y;if(J<2)return!1;for(Y=Q[0],q=1;q<J;++q)if(Q[q]-Q[q-1]!==Y)return!1;return Y}var cI=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,NT=(Q,J,q)=>J==="top"||J==="left"?Q[J]+q:Q[J]-q,KT=(Q,J)=>Math.min(J||Q,Q);function BT(Q,J){let q=[],Y=Q.length/J,U=Q.length,K=0;for(;K<U;K+=Y)q.push(Q[Math.floor(K)]);return q}function lI(Q,J,q){let Y=Q.ticks.length,U=Math.min(J,Y-1),K=Q._startPixel,H=Q._endPixel,M=0.000001,F=Q.getPixelForTick(U),R;if(q){if(Y===1)R=Math.max(F-K,H-F);else if(J===0)R=(Q.getPixelForTick(1)-F)/2;else R=(F-Q.getPixelForTick(U-1))/2;if(F+=U<J?R:-R,F<K-0.000001||F>H+0.000001)return}return F}function rI(Q,J){X1(Q,(q)=>{let Y=q.gc,U=Y.length/2,K;if(U>J){for(K=0;K<U;++K)delete q.data[Y[K]];Y.splice(0,U)}})}function sZ(Q){return Q.drawTicks?Q.tickLength:0}function HT(Q,J){if(!Q.display)return 0;let q=p1(Q.font,J),Y=X5(Q.padding);return(z1(Q.text)?Q.text.length:1)*q.lineHeight+Y.height}function sI(Q,J){return Q6(Q,{scale:J,type:"scale"})}function nI(Q,J,q){return Q6(Q,{tick:q,index:J,type:"tick"})}function oI(Q,J,q){let Y=eJ(Q);if(q&&J!=="right"||!q&&J==="right")Y=cI(Y);return Y}function aI(Q,J,q,Y){let{top:U,left:K,bottom:H,right:M,chart:F}=Q,{chartArea:R,scales:T}=F,z=0,L,P,I,A=H-U,C=M-K;if(Q.isHorizontal()){if(P=q5(Y,K,M),n0(q)){let g=Object.keys(q)[0],m=q[g];I=T[g].getPixelForValue(m)+A-J}else if(q==="center")I=(R.bottom+R.top)/2+A-J;else I=NT(Q,q,J);L=M-K}else{if(n0(q)){let g=Object.keys(q)[0],m=q[g];P=T[g].getPixelForValue(m)-C+J}else if(q==="center")P=(R.left+R.right)/2-C+J;else P=NT(Q,q,J);I=q5(Y,H,U),z=q==="left"?-b5:b5}return{titleX:P,titleY:I,maxWidth:L,rotation:z}}class T$ extends q6{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:q,_suggestedMax:Y}=this;return Q=g5(Q,Number.POSITIVE_INFINITY),J=g5(J,Number.NEGATIVE_INFINITY),q=g5(q,Number.POSITIVE_INFINITY),Y=g5(Y,Number.NEGATIVE_INFINITY),{min:g5(Q,q),max:g5(J,Y),minDefined:O1(Q),maxDefined:O1(J)}}getMinMax(Q){let{min:J,max:q,minDefined:Y,maxDefined:U}=this.getUserBounds(),K;if(Y&&U)return{min:J,max:q};let H=this.getMatchingVisibleMetas();for(let M=0,F=H.length;M<F;++M){if(K=H[M].controller.getMinMax(this,Q),!Y)J=Math.min(J,K.min);if(!U)q=Math.max(q,K.max)}return J=U&&J>q?q:J,q=Y&&J>q?J:q,{min:g5(J,g5(q,J)),max:g5(q,g5(J,q))}}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(){W1(this.options.beforeUpdate,[this])}update(Q,J,q){let{beginAtZero:Y,grace:U,ticks:K}=this.options,H=K.sampleSize;if(this.beforeUpdate(),this.maxWidth=Q,this.maxHeight=J,this._margins=q=Object.assign({left:0,right:0,top:0,bottom:0},q),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+q.left+q.right:this.height+q.top+q.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=yR(this,U,Y),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let M=H<this.ticks.length;if(this._convertTicksToLabels(M?BT(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),K.display&&(K.autoSkip||K.source==="auto"))this.ticks=hI(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,q;if(this.isHorizontal())J=this.left,q=this.right;else J=this.top,q=this.bottom,Q=!Q;this._startPixel=J,this._endPixel=q,this._reversePixels=Q,this._length=q-J,this._alignToPixels=this.options.alignToPixels}afterUpdate(){W1(this.options.afterUpdate,[this])}beforeSetDimensions(){W1(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(){W1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),W1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){W1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Q){let J=this.options.ticks,q,Y,U;for(q=0,Y=Q.length;q<Y;q++)U=Q[q],U.label=W1(J.callback,[U.value,q,Q],this)}afterTickToLabelConversion(){W1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){W1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,J=Q.ticks,q=KT(this.ticks.length,Q.ticks.maxTicksLimit),Y=J.minRotation||0,U=J.maxRotation,K=Y,H,M,F;if(!this._isVisible()||!J.display||Y>=U||q<=1||!this.isHorizontal()){this.labelRotation=Y;return}let R=this._getLabelSizes(),T=R.widest.width,z=R.highest.height,L=y5(this.chart.width-T,0,this.maxWidth);if(H=Q.offset?this.maxWidth/q:L/(q-1),T+6>H)H=L/(q-(Q.offset?0.5:1)),M=this.maxHeight-sZ(Q.grid)-J.padding-HT(Q.title,this.chart.options.font),F=Math.sqrt(T*T+z*z),K=iJ(Math.min(Math.asin(y5((R.highest.height+6)/H,-1,1)),Math.asin(y5(M/F,-1,1))-Math.asin(y5(z/F,-1,1)))),K=Math.max(Y,Math.min(U,K));this.labelRotation=K}afterCalculateLabelRotation(){W1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){W1(this.options.beforeFit,[this])}fit(){let Q={width:0,height:0},{chart:J,options:{ticks:q,title:Y,grid:U}}=this,K=this._isVisible(),H=this.isHorizontal();if(K){let M=HT(Y,J.options.font);if(H)Q.width=this.maxWidth,Q.height=sZ(U)+M;else Q.height=this.maxHeight,Q.width=sZ(U)+M;if(q.display&&this.ticks.length){let{first:F,last:R,widest:T,highest:z}=this._getLabelSizes(),L=q.padding*2,P=$6(this.labelRotation),I=Math.cos(P),A=Math.sin(P);if(H){let C=q.mirror?0:A*T.width+I*z.height;Q.height=Math.min(this.maxHeight,Q.height+C+L)}else{let C=q.mirror?0:I*T.width+A*z.height;Q.width=Math.min(this.maxWidth,Q.width+C+L)}this._calculatePadding(F,R,A,I)}}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,q,Y){let{ticks:{align:U,padding:K},position:H}=this.options,M=this.labelRotation!==0,F=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let R=this.getPixelForTick(0)-this.left,T=this.right-this.getPixelForTick(this.ticks.length-1),z=0,L=0;if(M)if(F)z=Y*Q.width,L=q*J.height;else z=q*Q.height,L=Y*J.width;else if(U==="start")L=J.width;else if(U==="end")z=Q.width;else if(U!=="inner")z=Q.width/2,L=J.width/2;this.paddingLeft=Math.max((z-R+K)*this.width/(this.width-R),0),this.paddingRight=Math.max((L-T+K)*this.width/(this.width-T),0)}else{let R=J.height/2,T=Q.height/2;if(U==="start")R=0,T=Q.height;else if(U==="end")R=J.height,T=0;this.paddingTop=R+K,this.paddingBottom=T+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(){W1(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,q;for(J=0,q=Q.length;J<q;J++)if(t0(Q[J].label))Q.splice(J,1),q--,J--;this.afterTickToLabelConversion()}_getLabelSizes(){let Q=this._labelSizes;if(!Q){let J=this.options.ticks.sampleSize,q=this.ticks;if(J<q.length)q=BT(q,J);this._labelSizes=Q=this._computeLabelSizes(q,q.length,this.options.ticks.maxTicksLimit)}return Q}_computeLabelSizes(Q,J,q){let{ctx:Y,_longestTextCache:U}=this,K=[],H=[],M=Math.floor(J/KT(J,q)),F=0,R=0,T,z,L,P,I,A,C,g,m,o,a;for(T=0;T<J;T+=M){if(P=Q[T].label,I=this._resolveTickFontOptions(T),Y.font=A=I.string,C=U[A]=U[A]||{data:{},gc:[]},g=I.lineHeight,m=o=0,!t0(P)&&!z1(P))m=hZ(Y,C.data,C.gc,m,P),o=g;else if(z1(P)){for(z=0,L=P.length;z<L;++z)if(a=P[z],!t0(a)&&!z1(a))m=hZ(Y,C.data,C.gc,m,a),o+=g}K.push(m),H.push(o),F=Math.max(m,F),R=Math.max(o,R)}rI(U,J);let s=K.indexOf(F),Q0=H.indexOf(R),p=(i)=>({width:K[i]||0,height:H[i]||0});return{first:p(0),last:p(J-1),widest:p(s),highest:p(Q0),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 VR(this._alignToPixels?U2(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 q=J[Q];return q.$context||(q.$context=nI(this.getContext(),Q,q))}return this.$context||(this.$context=sI(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,J=$6(this.labelRotation),q=Math.abs(Math.cos(J)),Y=Math.abs(Math.sin(J)),U=this._getLabelSizes(),K=Q.autoSkipPadding||0,H=U?U.widest.width+K:0,M=U?U.highest.height+K:0;return this.isHorizontal()?M*q>H*Y?H/q:M/Y:M*Y<H*q?M/q:H/Y}_isVisible(){let Q=this.options.display;if(Q!=="auto")return!!Q;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Q){let J=this.axis,q=this.chart,Y=this.options,{grid:U,position:K,border:H}=Y,M=U.offset,F=this.isHorizontal(),T=this.ticks.length+(M?1:0),z=sZ(U),L=[],P=H.setContext(this.getContext()),I=P.display?P.width:0,A=I/2,C=function(l){return U2(q,l,I)},g,m,o,a,s,Q0,p,i,Y0,d,N0,w0;if(K==="top")g=C(this.bottom),Q0=this.bottom-z,i=g-A,d=C(Q.top)+A,w0=Q.bottom;else if(K==="bottom")g=C(this.top),d=Q.top,w0=C(Q.bottom)-A,Q0=g+A,i=this.top+z;else if(K==="left")g=C(this.right),s=this.right-z,p=g-A,Y0=C(Q.left)+A,N0=Q.right;else if(K==="right")g=C(this.left),Y0=Q.left,N0=C(Q.right)-A,s=g+A,p=this.left+z;else if(J==="x"){if(K==="center")g=C((Q.top+Q.bottom)/2+0.5);else if(n0(K)){let l=Object.keys(K)[0],J0=K[l];g=C(this.chart.scales[l].getPixelForValue(J0))}d=Q.top,w0=Q.bottom,Q0=g+A,i=Q0+z}else if(J==="y"){if(K==="center")g=C((Q.left+Q.right)/2);else if(n0(K)){let l=Object.keys(K)[0],J0=K[l];g=C(this.chart.scales[l].getPixelForValue(J0))}s=g-A,p=s-z,Y0=Q.left,N0=Q.right}let z0=h0(Y.ticks.maxTicksLimit,T),C0=Math.max(1,Math.ceil(T/z0));for(m=0;m<T;m+=C0){let l=this.getContext(m),J0=U.setContext(l),K0=H.setContext(l),d0=J0.lineWidth,k0=J0.color,S=K0.dash||[],n=K0.dashOffset,B0=J0.tickWidth,H0=J0.tickColor,b0=J0.tickBorderDash||[],j1=J0.tickBorderDashOffset;if(o=lI(this,m,M),o===void 0)continue;if(a=U2(q,o,d0),F)s=p=Y0=N0=a;else Q0=i=d=w0=a;L.push({tx1:s,ty1:Q0,tx2:p,ty2:i,x1:Y0,y1:d,x2:N0,y2:w0,width:d0,color:k0,borderDash:S,borderDashOffset:n,tickWidth:B0,tickColor:H0,tickBorderDash:b0,tickBorderDashOffset:j1})}return this._ticksLength=T,this._borderValue=g,L}_computeLabelItems(Q){let J=this.axis,q=this.options,{position:Y,ticks:U}=q,K=this.isHorizontal(),H=this.ticks,{align:M,crossAlign:F,padding:R,mirror:T}=U,z=sZ(q.grid),L=z+R,P=T?-R:L,I=-$6(this.labelRotation),A=[],C,g,m,o,a,s,Q0,p,i,Y0,d,N0,w0="middle";if(Y==="top")s=this.bottom-P,Q0=this._getXAxisLabelAlignment();else if(Y==="bottom")s=this.top+P,Q0=this._getXAxisLabelAlignment();else if(Y==="left"){let C0=this._getYAxisLabelAlignment(z);Q0=C0.textAlign,a=C0.x}else if(Y==="right"){let C0=this._getYAxisLabelAlignment(z);Q0=C0.textAlign,a=C0.x}else if(J==="x"){if(Y==="center")s=(Q.top+Q.bottom)/2+L;else if(n0(Y)){let C0=Object.keys(Y)[0],l=Y[C0];s=this.chart.scales[C0].getPixelForValue(l)+L}Q0=this._getXAxisLabelAlignment()}else if(J==="y"){if(Y==="center")a=(Q.left+Q.right)/2-L;else if(n0(Y)){let C0=Object.keys(Y)[0],l=Y[C0];a=this.chart.scales[C0].getPixelForValue(l)}Q0=this._getYAxisLabelAlignment(z).textAlign}if(J==="y"){if(M==="start")w0="top";else if(M==="end")w0="bottom"}let z0=this._getLabelSizes();for(C=0,g=H.length;C<g;++C){m=H[C],o=m.label;let C0=U.setContext(this.getContext(C));p=this.getPixelForTick(C)+U.labelOffset,i=this._resolveTickFontOptions(C),Y0=i.lineHeight,d=z1(o)?o.length:1;let l=d/2,J0=C0.color,K0=C0.textStrokeColor,d0=C0.textStrokeWidth,k0=Q0;if(K){if(a=p,Q0==="inner")if(C===g-1)k0=!this.options.reverse?"right":"left";else if(C===0)k0=!this.options.reverse?"left":"right";else k0="center";if(Y==="top")if(F==="near"||I!==0)N0=-d*Y0+Y0/2;else if(F==="center")N0=-z0.highest.height/2-l*Y0+Y0;else N0=-z0.highest.height+Y0/2;else if(F==="near"||I!==0)N0=Y0/2;else if(F==="center")N0=z0.highest.height/2-l*Y0;else N0=z0.highest.height-d*Y0;if(T)N0*=-1;if(I!==0&&!C0.showLabelBackdrop)a+=Y0/2*Math.sin(I)}else s=p,N0=(1-d)*Y0/2;let S;if(C0.showLabelBackdrop){let n=X5(C0.backdropPadding),B0=z0.heights[C],H0=z0.widths[C],b0=N0-n.top,j1=0-n.left;switch(w0){case"middle":b0-=B0/2;break;case"bottom":b0-=B0;break}switch(Q0){case"center":j1-=H0/2;break;case"right":j1-=H0;break;case"inner":if(C===g-1)j1-=H0;else if(C>0)j1-=H0/2;break}S={left:j1,top:b0,width:H0+n.width,height:B0+n.height,color:C0.backdropColor}}A.push({label:o,font:i,textOffset:N0,options:{rotation:I,color:J0,strokeColor:K0,strokeWidth:d0,textAlign:k0,textBaseline:w0,translation:[a,s],backdrop:S}})}return A}_getXAxisLabelAlignment(){let{position:Q,ticks:J}=this.options;if(-$6(this.labelRotation))return Q==="top"?"left":"right";let Y="center";if(J.align==="start")Y="left";else if(J.align==="end")Y="right";else if(J.align==="inner")Y="inner";return Y}_getYAxisLabelAlignment(Q){let{position:J,ticks:{crossAlign:q,mirror:Y,padding:U}}=this.options,K=this._getLabelSizes(),H=Q+U,M=K.widest.width,F,R;if(J==="left")if(Y)if(R=this.right+U,q==="near")F="left";else if(q==="center")F="center",R+=M/2;else F="right",R+=M;else if(R=this.right-H,q==="near")F="right";else if(q==="center")F="center",R-=M/2;else F="left",R=this.left;else if(J==="right")if(Y)if(R=this.left+U,q==="near")F="right";else if(q==="center")F="center",R-=M/2;else F="left",R-=M;else if(R=this.left+H,q==="near")F="left";else if(q==="center")F="center",R+=M/2;else F="right",R=this.right;else F="right";return{textAlign:F,x:R}}_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:q,top:Y,width:U,height:K}=this;if(J)Q.save(),Q.fillStyle=J,Q.fillRect(q,Y,U,K),Q.restore()}getLineWidthForValue(Q){let J=this.options.grid;if(!this._isVisible()||!J.display)return 0;let Y=this.ticks.findIndex((U)=>U.value===Q);if(Y>=0)return J.setContext(this.getContext(Y)).lineWidth;return 0}drawGrid(Q){let J=this.options.grid,q=this.ctx,Y=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Q)),U,K,H=(M,F,R)=>{if(!R.width||!R.color)return;q.save(),q.lineWidth=R.width,q.strokeStyle=R.color,q.setLineDash(R.borderDash||[]),q.lineDashOffset=R.borderDashOffset,q.beginPath(),q.moveTo(M.x,M.y),q.lineTo(F.x,F.y),q.stroke(),q.restore()};if(J.display)for(U=0,K=Y.length;U<K;++U){let M=Y[U];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:q,grid:Y}}=this,U=q.setContext(this.getContext()),K=q.display?U.width:0;if(!K)return;let H=Y.setContext(this.getContext(0)).lineWidth,M=this._borderValue,F,R,T,z;if(this.isHorizontal())F=U2(Q,this.left,K)-K/2,R=U2(Q,this.right,H)+H/2,T=z=M;else T=U2(Q,this.top,K)-K/2,z=U2(Q,this.bottom,H)+H/2,F=R=M;J.save(),J.lineWidth=U.width,J.strokeStyle=U.color,J.beginPath(),J.moveTo(F,T),J.lineTo(R,z),J.stroke(),J.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let q=this.ctx,Y=this._computeLabelArea();if(Y)mZ(q,Y);let U=this.getLabelItems(Q);for(let K of U){let{options:H,font:M,label:F,textOffset:R}=K;N2(q,F,0,R,M,H)}if(Y)dZ(q)}drawTitle(){let{ctx:Q,options:{position:J,title:q,reverse:Y}}=this;if(!q.display)return;let U=p1(q.font),K=X5(q.padding),H=q.align,M=U.lineHeight/2;if(J==="bottom"||J==="center"||n0(J)){if(M+=K.bottom,z1(q.text))M+=U.lineHeight*(q.text.length-1)}else M+=K.top;let{titleX:F,titleY:R,maxWidth:T,rotation:z}=aI(this,M,J,H);N2(Q,q.text,0,0,U,{color:q.color,maxWidth:T,rotation:z,textAlign:oI(H,J,Y),textBaseline:"middle",translation:[F,R]})}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,q=h0(Q.grid&&Q.grid.z,-1),Y=h0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==T$.prototype.draw)return[{z:J,draw:(U)=>{this.draw(U)}}];return[{z:q,draw:(U)=>{this.drawBackground(),this.drawGrid(U),this.drawTitle()}},{z:Y,draw:()=>{this.drawBorder()}},{z:J,draw:(U)=>{this.drawLabels(U)}}]}getMatchingVisibleMetas(Q){let J=this.chart.getSortedVisibleDatasetMetas(),q=this.axis+"AxisID",Y=[],U,K;for(U=0,K=J.length;U<K;++U){let H=J[U];if(H[q]===this.id&&(!Q||H.type===Q))Y.push(H)}return Y}_resolveTickFontOptions(Q){let J=this.options.ticks.setContext(this.getContext(Q));return p1(J.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class aZ{constructor(Q,J,q){this.type=Q,this.scope=J,this.override=q,this.items=Object.create(null)}isForType(Q){return Object.prototype.isPrototypeOf.call(this.type.prototype,Q.prototype)}register(Q){let J=Object.getPrototypeOf(Q),q;if(eI(J))q=this.register(J);let Y=this.items,U=Q.id,K=this.scope+"."+U;if(!U)throw Error("class does not have id: "+Q);if(U in Y)return K;if(Y[U]=Q,iI(Q,K,q),this.override)D1.override(Q.id,Q.overrides);return K}get(Q){return this.items[Q]}unregister(Q){let J=this.items,q=Q.id,Y=this.scope;if(q in J)delete J[q];if(Y&&q in D1[Y]){if(delete D1[Y][q],this.override)delete Y2[q]}}}function iI(Q,J,q){let Y=y9(Object.create(null),[q?D1.get(q):{},D1.get(J),Q.defaults]);if(D1.set(J,Y),Q.defaultRoutes)tI(J,Q.defaultRoutes);if(Q.descriptors)D1.describe(J,Q.descriptors)}function tI(Q,J){Object.keys(J).forEach((q)=>{let Y=q.split("."),U=Y.pop(),K=[Q].concat(Y).join("."),H=J[q].split("."),M=H.pop(),F=H.join(".");D1.route(K,U,F,M)})}function eI(Q){return"id"in Q&&"defaults"in Q}class $z{constructor(){this.controllers=new aZ(Wq,"datasets",!0),this.elements=new aZ(q6,"elements"),this.plugins=new aZ(Object,"plugins"),this.scales=new aZ(T$,"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,q){[...J].forEach((Y)=>{let U=q||this._getRegistryForType(Y);if(q||U.isForType(Y)||U===this.plugins&&Y.id)this._exec(Q,U,Y);else X1(Y,(K)=>{let H=q||this._getRegistryForType(K);this._exec(Q,H,K)})})}_exec(Q,J,q){let Y=aJ(Q);W1(q["before"+Y],[],q),J[Q](q),W1(q["after"+Y],[],q)}_getRegistryForType(Q){for(let J=0;J<this._typedRegistries.length;J++){let q=this._typedRegistries[J];if(q.isForType(Q))return q}return this.plugins}_get(Q,J,q){let Y=J.get(Q);if(Y===void 0)throw Error('"'+Q+'" is not a registered '+q+".");return Y}}var z8=new $z;class Zz{constructor(){this._init=void 0}notify(Q,J,q,Y){if(J==="beforeInit")this._init=this._createDescriptors(Q,!0),this._notify(this._init,Q,"install");if(this._init===void 0)return;let U=Y?this._descriptors(Q).filter(Y):this._descriptors(Q),K=this._notify(U,Q,J,q);if(J==="afterDestroy")this._notify(U,Q,"stop"),this._notify(this._init,Q,"uninstall"),this._init=void 0;return K}_notify(Q,J,q,Y){Y=Y||{};for(let U of Q){let K=U.plugin,H=K[q],M=[J,Y,U.options];if(W1(H,M,K)===!1&&Y.cancelable)return!1}return!0}invalidate(){if(!t0(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 q=Q&&Q.config,Y=h0(q.options&&q.options.plugins,{}),U=$O(q);return Y===!1&&!J?[]:QO(Q,U,Y,J)}_notifyStateChanges(Q){let J=this._oldCache||[],q=this._cache,Y=(U,K)=>U.filter((H)=>!K.some((M)=>H.plugin.id===M.plugin.id));this._notify(Y(J,q),Q,"stop"),this._notify(Y(q,J),Q,"start")}}function $O(Q){let J={},q=[],Y=Object.keys(z8.plugins.items);for(let K=0;K<Y.length;K++)q.push(z8.getPlugin(Y[K]));let U=Q.plugins||[];for(let K=0;K<U.length;K++){let H=U[K];if(q.indexOf(H)===-1)q.push(H),J[H.id]=!0}return{plugins:q,localIds:J}}function ZO(Q,J){if(!J&&Q===!1)return null;if(Q===!0)return{};return Q}function QO(Q,{plugins:J,localIds:q},Y,U){let K=[],H=Q.getContext();for(let M of J){let F=M.id,R=ZO(Y[F],U);if(R===null)continue;K.push({plugin:M,options:GO(Q.config,{plugin:M,local:q[F]},R,H)})}return K}function GO(Q,{plugin:J,local:q},Y,U){let K=Q.pluginScopeKeys(J),H=Q.getOptionScopes(Y,K);if(q&&J.defaults)H.push(J.defaults);return Q.createResolver(H,U,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function IN(Q,J){let q=D1.datasets[Q]||{};return((J.datasets||{})[Q]||{}).indexAxis||J.indexAxis||q.indexAxis||"x"}function JO(Q,J){let q=Q;if(Q==="_index_")q=J;else if(Q==="_value_")q=J==="x"?"y":"x";return q}function qO(Q,J){return Q===J?"_index_":"_value_"}function MT(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function XO(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function ON(Q,...J){if(MT(Q))return Q;for(let q of J){let Y=q.axis||XO(q.position)||Q.length>1&&MT(Q[0].toLowerCase());if(Y)return Y}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function FT(Q,J,q){if(q[J+"AxisID"]===Q)return{axis:J}}function YO(Q,J){if(J.data&&J.data.datasets){let q=J.data.datasets.filter((Y)=>Y.xAxisID===Q||Y.yAxisID===Q);if(q.length)return FT(Q,"x",q[0])||FT(Q,"y",q[0])}return{}}function UO(Q,J){let q=Y2[Q.type]||{scales:{}},Y=J.scales||{},U=IN(Q.type,J),K=Object.create(null);return Object.keys(Y).forEach((H)=>{let M=Y[H];if(!n0(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=ON(H,M,YO(H,Q),D1.scales[M.type]),R=qO(F,U),T=q.scales||{};K[H]=h9(Object.create(null),[{axis:F},M,T[F],T[R]])}),Q.data.datasets.forEach((H)=>{let M=H.type||Q.type,F=H.indexAxis||IN(M,J),T=(Y2[M]||{}).scales||{};Object.keys(T).forEach((z)=>{let L=JO(z,F),P=H[L+"AxisID"]||L;K[P]=K[P]||Object.create(null),h9(K[P],[{axis:L},Y[P],T[z]])})}),Object.keys(K).forEach((H)=>{let M=K[H];h9(M,[D1.scales[M.type],D1.scale])}),K}function Qz(Q){let J=Q.options||(Q.options={});J.plugins=h0(J.plugins,{}),J.scales=UO(Q,J)}function Gz(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function NO(Q){return Q=Q||{},Q.data=Gz(Q.data),Qz(Q),Q}var WT=new Map,Jz=new Set;function Nq(Q,J){let q=WT.get(Q);if(!q)q=J(),WT.set(Q,q),Jz.add(q);return q}var nZ=(Q,J,q)=>{let Y=F$(J,q);if(Y!==void 0)Q.add(Y)};class qz{constructor(Q){this._config=NO(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=Gz(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(),Qz(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return Nq(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,J){return Nq(`${Q}.transition.${J}`,()=>[[`datasets.${Q}.transitions.${J}`,`transitions.${J}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,J){return Nq(`${Q}-${J}`,()=>[[`datasets.${Q}.elements.${J}`,`datasets.${Q}`,`elements.${J}`,""]])}pluginScopeKeys(Q){let J=Q.id,q=this.type;return Nq(`${q}-plugin-${J}`,()=>[[`plugins.${J}`,...Q.additionalOptionScopes||[]]])}_cachedScopes(Q,J){let q=this._scopeCache,Y=q.get(Q);if(!Y||J)Y=new Map,q.set(Q,Y);return Y}getOptionScopes(Q,J,q){let{options:Y,type:U}=this,K=this._cachedScopes(Q,q),H=K.get(J);if(H)return H;let M=new Set;J.forEach((R)=>{if(Q)M.add(Q),R.forEach((T)=>nZ(M,Q,T));R.forEach((T)=>nZ(M,Y,T)),R.forEach((T)=>nZ(M,Y2[U]||{},T)),R.forEach((T)=>nZ(M,D1,T)),R.forEach((T)=>nZ(M,Zq,T))});let F=Array.from(M);if(F.length===0)F.push(Object.create(null));if(Jz.has(J))K.set(J,F);return F}chartOptionScopes(){let{options:Q,type:J}=this;return[Q,Y2[J]||{},D1.datasets[J]||{},{type:J},D1,Zq]}resolveNamedOptions(Q,J,q,Y=[""]){let U={$shared:!0},{resolver:K,subPrefixes:H}=wT(this._resolverCache,Q,Y),M=K;if(BO(K,J)){U.$shared=!1,q=t8(q)?q():q;let F=this.createResolver(Q,q,H);M=M$(K,q,F)}for(let F of J)U[F]=M[F];return U}createResolver(Q,J,q=[""],Y){let{resolver:U}=wT(this._resolverCache,Q,q);return n0(J)?M$(U,J,void 0,Y):U}}function wT(Q,J,q){let Y=Q.get(J);if(!Y)Y=new Map,Q.set(J,Y);let U=q.join(),K=Y.get(U);if(!K)K={resolver:Gq(J,q),subPrefixes:q.filter((M)=>!M.toLowerCase().includes("hover"))},Y.set(U,K);return K}var KO=(Q)=>n0(Q)&&Object.getOwnPropertyNames(Q).some((J)=>t8(Q[J]));function BO(Q,J){let{isScriptable:q,isIndexable:Y}=qN(Q);for(let U of J){let K=q(U),H=Y(U),M=(H||K)&&Q[U];if(K&&(t8(M)||KO(M))||H&&z1(M))return!0}return!1}var HO="4.5.1",MO=["top","bottom","left","right","chartArea"];function RT(Q,J){return Q==="top"||Q==="bottom"||MO.indexOf(Q)===-1&&J==="x"}function TT(Q,J){return function(q,Y){return q[Q]===Y[Q]?q[J]-Y[J]:q[Q]-Y[Q]}}function zT(Q){let J=Q.chart,q=J.options.animation;J.notifyPlugins("afterRender"),W1(q&&q.onComplete,[Q],J)}function FO(Q){let J=Q.chart,q=J.options.animation;W1(q&&q.onProgress,[Q],J)}function Xz(Q){if(Jq()&&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 Mq={},_T=(Q)=>{let J=Xz(Q);return Object.values(Mq).filter((q)=>q.canvas===J).pop()};function WO(Q,J,q){let Y=Object.keys(Q);for(let U of Y){let K=+U;if(K>=J){let H=Q[U];if(delete Q[U],q>0||K>J)Q[K+q]=H}}}function wO(Q,J,q,Y){if(!q||Q.type==="mouseout")return null;if(Y)return J;return Q}class P5{static defaults=D1;static instances=Mq;static overrides=Y2;static registry=z8;static version=HO;static getChart=_T;static register(...Q){z8.add(...Q),LT()}static unregister(...Q){z8.remove(...Q),LT()}constructor(Q,J){let q=this.config=new qz(J),Y=Xz(Q),U=_T(Y);if(U)throw Error("Canvas is already in use. Chart with ID '"+U.id+"' must be destroyed before the canvas with ID '"+U.canvas.id+"' can be reused.");let K=q.createResolver(q.chartOptionScopes(),this.getContext());this.platform=new(q.platform||gI(Y)),this.platform.updateConfig(q);let H=this.platform.acquireContext(Y,K.aspectRatio),M=H&&H.canvas,F=M&&M.height,R=M&&M.width;if(this.id=WR(),this.ctx=H,this.canvas=M,this.width=R,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 Zz,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=OR((T)=>this.update(T),K.resizeDelay||0),this._dataChanges=[],Mq[this.id]=this,!H||!M){console.error("Failed to create chart: can't acquire context from the given item");return}if(G6.listen(this,"complete",zT),G6.listen(this,"progress",FO),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:J},width:q,height:Y,_aspectRatio:U}=this;if(!t0(Q))return Q;if(J&&U)return U;return Y?q/Y: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 z8}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else UN(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ZN(this.canvas,this.ctx),this}stop(){return G6.stop(this),this}resize(Q,J){if(!G6.running(this))this._resize(Q,J);else this._resizeBeforeDraw={width:Q,height:J}}_resize(Q,J){let q=this.options,Y=this.canvas,U=q.maintainAspectRatio&&this.aspectRatio,K=this.platform.getMaximumSize(Y,Q,J,U),H=q.devicePixelRatio||this.platform.getDevicePixelRatio(),M=this.width?"resize":"attach";if(this.width=K.width,this.height=K.height,this._aspectRatio=this.aspectRatio,!UN(this,H,!0))return;if(this.notifyPlugins("resize",{size:K}),W1(q.onResize,[this,K],this),this.attached){if(this._doResize(M))this.render()}}ensureScalesHaveIDs(){let J=this.options.scales||{};X1(J,(q,Y)=>{q.id=Y})}buildOrUpdateScales(){let Q=this.options,J=Q.scales,q=this.scales,Y=Object.keys(q).reduce((K,H)=>{return K[H]=!1,K},{}),U=[];if(J)U=U.concat(Object.keys(J).map((K)=>{let H=J[K],M=ON(K,H),F=M==="r",R=M==="x";return{options:H,dposition:F?"chartArea":R?"bottom":"left",dtype:F?"radialLinear":R?"category":"linear"}}));X1(U,(K)=>{let H=K.options,M=H.id,F=ON(M,H),R=h0(H.type,K.dtype);if(H.position===void 0||RT(H.position,F)!==RT(K.dposition))H.position=K.dposition;Y[M]=!0;let T=null;if(M in q&&q[M].type===R)T=q[M];else T=new(z8.getScale(R))({id:M,type:R,ctx:this.ctx,chart:this}),q[T.id]=T;T.init(H,Q)}),X1(Y,(K,H)=>{if(!K)delete q[H]}),X1(q,(K)=>{V4.configure(this,K,K.options),V4.addBox(this,K)})}_updateMetasets(){let Q=this._metasets,J=this.data.datasets.length,q=Q.length;if(Q.sort((Y,U)=>Y.index-U.index),q>J){for(let Y=J;Y<q;++Y)this._destroyDatasetMeta(Y);Q.splice(J,q-J)}this._sortedMetasets=Q.slice(0).sort(TT("order","index"))}_removeUnreferencedMetasets(){let{_metasets:Q,data:{datasets:J}}=this;if(Q.length>J.length)delete this._stacks;Q.forEach((q,Y)=>{if(J.filter((U)=>U===q._dataset).length===0)this._destroyDatasetMeta(Y)})}buildOrUpdateControllers(){let Q=[],J=this.data.datasets,q,Y;this._removeUnreferencedMetasets();for(q=0,Y=J.length;q<Y;q++){let U=J[q],K=this.getDatasetMeta(q),H=U.type||this.config.type;if(K.type&&K.type!==H)this._destroyDatasetMeta(q),K=this.getDatasetMeta(q);if(K.type=H,K.indexAxis=U.indexAxis||IN(H,this.options),K.order=U.order||0,K.index=q,K.label=""+U.label,K.visible=this.isDatasetVisible(q),K.controller)K.controller.updateIndex(q),K.controller.linkScales();else{let M=z8.getController(H),{datasetElementType:F,dataElementType:R}=D1.datasets[H];Object.assign(M,{dataElementType:z8.getElement(R),datasetElementType:F&&z8.getElement(F)}),K.controller=new M(this,q),Q.push(K.controller)}}return this._updateMetasets(),Q}_resetElements(){X1(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 q=this._options=J.createResolver(J.chartOptionScopes(),this.getContext()),Y=this._animationsDisabled=!q.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:Q,cancelable:!0})===!1)return;let U=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let K=0;for(let F=0,R=this.data.datasets.length;F<R;F++){let{controller:T}=this.getDatasetMeta(F),z=!Y&&U.indexOf(T)===-1;T.buildOrUpdateElements(z),K=Math.max(+T.getMaxOverflow(),K)}if(K=this._minPadding=q.layout.autoPadding?K:0,this._updateLayout(K),!Y)X1(U,(F)=>{F.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(TT("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(){X1(this.scales,(Q)=>{V4.removeBox(this,Q)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let Q=this.options,J=new Set(Object.keys(this._listeners)),q=new Set(Q.events);if(!cU(J,q)||!!this._responsiveListeners!==Q.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:Q}=this,J=this._getUniformDataChanges()||[];for(let{method:q,start:Y,count:U}of J){let K=q==="_removeElements"?-U:U;WO(Q,Y,K)}}_getUniformDataChanges(){let Q=this._dataChanges;if(!Q||!Q.length)return;this._dataChanges=[];let J=this.data.datasets.length,q=(U)=>new Set(Q.filter((K)=>K[0]===U).map((K,H)=>H+","+K.splice(1).join(","))),Y=q(0);for(let U=1;U<J;U++)if(!cU(Y,q(U)))return;return Array.from(Y).map((U)=>U.split(",")).map((U)=>({method:U[1],start:+U[2],count:+U[3]}))}_updateLayout(Q){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;V4.update(this,this.width,this.height,Q);let J=this.chartArea,q=J.width<=0||J.height<=0;this._layers=[],X1(this.boxes,(Y)=>{if(q&&Y.position==="chartArea")return;if(Y.configure)Y.configure();this._layers.push(...Y._layers())},this),this._layers.forEach((Y,U)=>{Y._idx=U}),this.notifyPlugins("afterLayout")}_updateDatasets(Q){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:Q,cancelable:!0})===!1)return;for(let J=0,q=this.data.datasets.length;J<q;++J)this.getDatasetMeta(J).controller.configure();for(let J=0,q=this.data.datasets.length;J<q;++J)this._updateDataset(J,t8(Q)?Q({datasetIndex:J}):Q);this.notifyPlugins("afterDatasetsUpdate",{mode:Q})}_updateDataset(Q,J){let q=this.getDatasetMeta(Q),Y={meta:q,index:Q,mode:J,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",Y)===!1)return;q.controller._update(J),Y.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",Y)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(G6.has(this)){if(this.attached&&!G6.running(this))G6.start(this)}else this.draw(),zT({chart:this})}draw(){let Q;if(this._resizeBeforeDraw){let{width:q,height:Y}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(q,Y)}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,q=[],Y,U;for(Y=0,U=J.length;Y<U;++Y){let K=J[Y];if(!Q||K.visible)q.push(K)}return q}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,q={meta:Q,index:Q.index,cancelable:!0},Y=FN(this,Q);if(this.notifyPlugins("beforeDatasetDraw",q)===!1)return;if(Y)mZ(J,Y);if(Q.controller.draw(),Y)dZ(J);q.cancelable=!1,this.notifyPlugins("afterDatasetDraw",q)}isPointInArea(Q){return w8(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,J,q,Y){let U=TI.modes[J];if(typeof U==="function")return U(this,Q,q,Y);return[]}getDatasetMeta(Q){let J=this.data.datasets[Q],q=this._metasets,Y=q.filter((U)=>U&&U._dataset===J).pop();if(!Y)Y={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},q.push(Y);return Y}getContext(){return this.$context||(this.$context=Q6(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Q){let J=this.data.datasets[Q];if(!J)return!1;let q=this.getDatasetMeta(Q);return typeof q.hidden==="boolean"?!q.hidden:!J.hidden}setDatasetVisibility(Q,J){let q=this.getDatasetMeta(Q);q.hidden=!J}toggleDataVisibility(Q){this._hiddenIndices[Q]=!this._hiddenIndices[Q]}getDataVisibility(Q){return!this._hiddenIndices[Q]}_updateVisibility(Q,J,q){let Y=q?"show":"hide",U=this.getDatasetMeta(Q),K=U.controller._resolveAnimations(void 0,Y);if(x9(J))U.data[J].hidden=!q,this.update();else this.setDatasetVisibility(Q,q),K.update(U,{visible:q}),this.update((H)=>H.datasetIndex===Q?Y: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(),G6.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(),ZN(Q,J),this.platform.releaseContext(J),this.canvas=null,this.ctx=null;delete Mq[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,q=(U,K)=>{J.addEventListener(this,U,K),Q[U]=K},Y=(U,K,H)=>{U.offsetX=K,U.offsetY=H,this._eventHandler(U)};X1(this.options.events,(U)=>q(U,Y))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,J=this.platform,q=(M,F)=>{J.addEventListener(this,M,F),Q[M]=F},Y=(M,F)=>{if(Q[M])J.removeEventListener(this,M,F),delete Q[M]},U=(M,F)=>{if(this.canvas)this.resize(M,F)},K,H=()=>{Y("attach",H),this.attached=!0,this.resize(),q("resize",U),q("detach",K)};if(K=()=>{this.attached=!1,Y("resize",U),this._stop(),this._resize(0,0),q("attach",H)},J.isAttached(this.canvas))H();else K()}unbindEvents(){X1(this._listeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._listeners={},X1(this._responsiveListeners,(Q,J)=>{this.platform.removeEventListener(this,J,Q)}),this._responsiveListeners=void 0}updateHoverStyle(Q,J,q){let Y=q?"set":"remove",U,K,H,M;if(J==="dataset")U=this.getDatasetMeta(Q[0].datasetIndex),U.controller["_"+Y+"DatasetHoverStyle"]();for(H=0,M=Q.length;H<M;++H){K=Q[H];let F=K&&this.getDatasetMeta(K.datasetIndex).controller;if(F)F[Y+"HoverStyle"](K.element,K.datasetIndex,K.index)}}getActiveElements(){return this._active||[]}setActiveElements(Q){let J=this._active||[],q=Q.map(({datasetIndex:U,index:K})=>{let H=this.getDatasetMeta(U);if(!H)throw Error("No dataset found at index "+U);return{datasetIndex:U,element:H.data[K],index:K}});if(!xZ(q,J))this._active=q,this._lastEvent=null,this._updateHoverStyles(q,J)}notifyPlugins(Q,J,q){return this._plugins.notify(this,Q,J,q)}isPluginEnabled(Q){return this._plugins._cache.filter((J)=>J.plugin.id===Q).length===1}_updateHoverStyles(Q,J,q){let Y=this.options.hover,U=(M,F)=>M.filter((R)=>!F.some((T)=>R.datasetIndex===T.datasetIndex&&R.index===T.index)),K=U(J,Q),H=q?Q:U(Q,J);if(K.length)this.updateHoverStyle(K,Y.mode,!1);if(H.length&&Y.mode)this.updateHoverStyle(H,Y.mode,!0)}_eventHandler(Q,J){let q={event:Q,replay:J,cancelable:!0,inChartArea:this.isPointInArea(Q)},Y=(K)=>(K.options.events||this.options.events).includes(Q.native.type);if(this.notifyPlugins("beforeEvent",q,Y)===!1)return;let U=this._handleEvent(Q,J,q.inChartArea);if(q.cancelable=!1,this.notifyPlugins("afterEvent",q,Y),U||q.changed)this.render();return this}_handleEvent(Q,J,q){let{_active:Y=[],options:U}=this,K=J,H=this._getActiveElements(Q,Y,q,K),M=TR(Q),F=wO(Q,this._lastEvent,q,M);if(q){if(this._lastEvent=null,W1(U.onHover,[Q,H,this],this),M)W1(U.onClick,[Q,H,this],this)}let R=!xZ(H,Y);if(R||J)this._active=H,this._updateHoverStyles(H,Y,J);return this._lastEvent=F,R}_getActiveElements(Q,J,q,Y){if(Q.type==="mouseout")return[];if(!q)return J;let U=this.options.hover;return this.getElementsAtEventForMode(Q,U.mode,U,Y)}}function LT(){return X1(P5.instances,(Q)=>Q._plugins.invalidate())}function Yz(Q,J,q=J){Q.lineCap=h0(q.borderCapStyle,J.borderCapStyle),Q.setLineDash(h0(q.borderDash,J.borderDash)),Q.lineDashOffset=h0(q.borderDashOffset,J.borderDashOffset),Q.lineJoin=h0(q.borderJoinStyle,J.borderJoinStyle),Q.lineWidth=h0(q.borderWidth,J.borderWidth),Q.strokeStyle=h0(q.borderColor,J.borderColor)}function RO(Q,J,q){Q.lineTo(q.x,q.y)}function TO(Q){if(Q.stepped)return bR;if(Q.tension||Q.cubicInterpolationMode==="monotone")return fR;return RO}function Uz(Q,J,q={}){let Y=Q.length,{start:U=0,end:K=Y-1}=q,{start:H,end:M}=J,F=Math.max(U,H),R=Math.min(K,M),T=U<H&&K<H||U>M&&K>M;return{count:Y,start:F,loop:J.loop,ilen:R<F&&!T?Y+R-F:R-F}}function zO(Q,J,q,Y){let{points:U,options:K}=J,{count:H,start:M,loop:F,ilen:R}=Uz(U,q,Y),T=TO(K),{move:z=!0,reverse:L}=Y||{},P,I,A;for(P=0;P<=R;++P){if(I=U[(M+(L?R-P:P))%H],I.skip)continue;else if(z)Q.moveTo(I.x,I.y),z=!1;else T(Q,A,I,L,K.stepped);A=I}if(F)I=U[(M+(L?R:0))%H],T(Q,A,I,L,K.stepped);return!!F}function _O(Q,J,q,Y){let U=J.points,{count:K,start:H,ilen:M}=Uz(U,q,Y),{move:F=!0,reverse:R}=Y||{},T=0,z=0,L,P,I,A,C,g,m=(a)=>(H+(R?M-a:a))%K,o=()=>{if(A!==C)Q.lineTo(T,C),Q.lineTo(T,A),Q.lineTo(T,g)};if(F)P=U[m(0)],Q.moveTo(P.x,P.y);for(L=0;L<=M;++L){if(P=U[m(L)],P.skip)continue;let{x:a,y:s}=P,Q0=a|0;if(Q0===I){if(s<A)A=s;else if(s>C)C=s;T=(z*T+a)/++z}else o(),Q.lineTo(a,s),I=Q0,z=0,A=C=s;g=s}o()}function DN(Q){let J=Q.options,q=J.borderDash&&J.borderDash.length;return!Q._decimated&&!Q._loop&&!J.tension&&J.cubicInterpolationMode!=="monotone"&&!J.stepped&&!q?_O:zO}function LO(Q){if(Q.stepped)return cR;if(Q.tension||Q.cubicInterpolationMode==="monotone")return lR;return J2}function VO(Q,J,q,Y){let U=J._path;if(!U){if(U=J._path=new Path2D,J.path(U,q,Y))U.closePath()}Yz(Q,J.options),Q.stroke(U)}function EO(Q,J,q,Y){let{segments:U,options:K}=J,H=DN(J);for(let M of U){if(Yz(Q,K,M.style),Q.beginPath(),H(Q,J,M,{start:q,end:q+Y-1}))Q.closePath();Q.stroke()}}var PO=typeof Path2D==="function";function CO(Q,J,q,Y){if(PO&&!J.options.segment)VO(Q,J,q,Y);else EO(Q,J,q,Y)}class u5 extends q6{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 q=this.options;if((q.tension||q.cubicInterpolationMode==="monotone")&&!q.stepped&&!this._pointsUpdated){let Y=q.spanGaps?this._loop:this._fullLoop;mR(this._points,q,Q,Y,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=sR(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,q=Q.length;return q&&J[Q[q-1].end]}interpolate(Q,J){let q=this.options,Y=Q[J],U=this.points,K=MN(this,{property:J,start:Y,end:Y});if(!K.length)return;let H=[],M=LO(q),F,R;for(F=0,R=K.length;F<R;++F){let{start:T,end:z}=K[F],L=U[T],P=U[z];if(L===P){H.push(L);continue}let I=Math.abs((Y-L[J])/(P[J]-L[J])),A=M(L,P,I,q.stepped);A[J]=Q[J],H.push(A)}return H.length===1?H[0]:H}pathSegment(Q,J,q){return DN(this)(Q,this,J,q)}path(Q,J,q){let Y=this.segments,U=DN(this),K=this._loop;J=J||0,q=q||this.points.length-J;for(let H of Y)K&=U(Q,this,H,{start:J,end:J+q-1});return!!K}draw(Q,J,q,Y){let U=this.options||{};if((this.points||[]).length&&U.borderWidth)Q.save(),CO(Q,this,q,Y),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function VT(Q,J,q,Y){let U=Q.options,{[q]:K}=Q.getProps([q],Y);return Math.abs(J-K)<U.radius+U.hitRadius}class g4 extends q6{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,q){let Y=this.options,{x:U,y:K}=this.getProps(["x","y"],q);return Math.pow(Q-U,2)+Math.pow(J-K,2)<Math.pow(Y.hitRadius+Y.radius,2)}inXRange(Q,J){return VT(this,Q,"x",J)}inYRange(Q,J){return VT(this,Q,"y",J)}getCenterPoint(Q){let{x:J,y:q}=this.getProps(["x","y"],Q);return{x:J,y:q}}size(Q){Q=Q||this.options||{};let J=Q.radius||0;J=Math.max(J,J&&Q.hoverRadius||0);let q=J&&Q.borderWidth||0;return(J+q)*2}draw(Q,J){let q=this.options;if(this.skip||q.radius<0.1||!w8(this,J,this.size(q)/2))return;Q.strokeStyle=q.borderColor,Q.lineWidth=q.borderWidth,Q.fillStyle=q.backgroundColor,Qq(Q,q,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function Nz(Q,J){let{x:q,y:Y,base:U,width:K,height:H}=Q.getProps(["x","y","base","width","height"],J),M,F,R,T,z;if(Q.horizontal)z=H/2,M=Math.min(q,U),F=Math.max(q,U),R=Y-z,T=Y+z;else z=K/2,M=q-z,F=q+z,R=Math.min(Y,U),T=Math.max(Y,U);return{left:M,top:R,right:F,bottom:T}}function H2(Q,J,q,Y){return Q?0:y5(J,q,Y)}function IO(Q,J,q){let Y=Q.options.borderWidth,U=Q.borderSkipped,K=JN(Y);return{t:H2(U.top,K.top,0,q),r:H2(U.right,K.right,0,J),b:H2(U.bottom,K.bottom,0,q),l:H2(U.left,K.left,0,J)}}function OO(Q,J,q){let{enableBorderRadius:Y}=Q.getProps(["enableBorderRadius"]),U=Q.options.borderRadius,K=K2(U),H=Math.min(J,q),M=Q.borderSkipped,F=Y||n0(U);return{topLeft:H2(!F||M.top||M.left,K.topLeft,0,H),topRight:H2(!F||M.top||M.right,K.topRight,0,H),bottomLeft:H2(!F||M.bottom||M.left,K.bottomLeft,0,H),bottomRight:H2(!F||M.bottom||M.right,K.bottomRight,0,H)}}function DO(Q){let J=Nz(Q),q=J.right-J.left,Y=J.bottom-J.top,U=IO(Q,q/2,Y/2),K=OO(Q,q/2,Y/2);return{outer:{x:J.left,y:J.top,w:q,h:Y,radius:K},inner:{x:J.left+U.l,y:J.top+U.t,w:q-U.l-U.r,h:Y-U.t-U.b,radius:{topLeft:Math.max(0,K.topLeft-Math.max(U.t,U.l)),topRight:Math.max(0,K.topRight-Math.max(U.t,U.r)),bottomLeft:Math.max(0,K.bottomLeft-Math.max(U.b,U.l)),bottomRight:Math.max(0,K.bottomRight-Math.max(U.b,U.r))}}}}function VN(Q,J,q,Y){let U=J===null,K=q===null,M=Q&&!(U&&K)&&Nz(Q,Y);return M&&(U||Z6(J,M.left,M.right))&&(K||Z6(q,M.top,M.bottom))}function jO(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function AO(Q,J){Q.rect(J.x,J.y,J.w,J.h)}function EN(Q,J,q={}){let Y=Q.x!==q.x?-J:0,U=Q.y!==q.y?-J:0,K=(Q.x+Q.w!==q.x+q.w?J:0)-Y,H=(Q.y+Q.h!==q.y+q.h?J:0)-U;return{x:Q.x+Y,y:Q.y+U,w:Q.w+K,h:Q.h+H,radius:Q.radius}}class QQ extends q6{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:q,backgroundColor:Y}}=this,{inner:U,outer:K}=DO(this),H=jO(K.radius)?d9:AO;if(Q.save(),K.w!==U.w||K.h!==U.h)Q.beginPath(),H(Q,EN(K,J,U)),Q.clip(),H(Q,EN(U,-J,K)),Q.fillStyle=q,Q.fill("evenodd");Q.beginPath(),H(Q,EN(U,J)),Q.fillStyle=Y,Q.fill(),Q.restore()}inRange(Q,J,q){return VN(this,Q,J,q)}inXRange(Q,J){return VN(this,Q,null,J)}inYRange(Q,J){return VN(this,null,Q,J)}getCenterPoint(Q){let{x:J,y:q,base:Y,horizontal:U}=this.getProps(["x","y","base","horizontal"],Q);return{x:U?(J+Y)/2:J,y:U?q:(q+Y)/2}}getRange(Q){return Q==="x"?this.width/2:this.height/2}}function SO(Q,J,q){let{segments:Y,points:U}=Q,K=J.points,H=[];for(let M of Y){let{start:F,end:R}=M;R=wq(F,R,U);let T=jN(q,U[F],U[R],M.loop);if(!J.segments){H.push({source:M,target:T,start:U[F],end:U[R]});continue}let z=MN(J,T);for(let L of z){let P=jN(q,K[L.start],K[L.end],L.loop),I=HN(M,U,P);for(let A of I)H.push({source:A,target:L,start:{[q]:ET(T,P,"start",Math.max)},end:{[q]:ET(T,P,"end",Math.min)}})}}return H}function jN(Q,J,q,Y){if(Y)return;let U=J[Q],K=q[Q];if(Q==="angle")U=k5(U),K=k5(K);return{property:Q,start:U,end:K}}function vO(Q,J){let{x:q=null,y:Y=null}=Q||{},U=J.points,K=[];return J.segments.forEach(({start:H,end:M})=>{M=wq(H,M,U);let F=U[H],R=U[M];if(Y!==null)K.push({x:F.x,y:Y}),K.push({x:R.x,y:Y});else if(q!==null)K.push({x:q,y:F.y}),K.push({x:q,y:R.y})}),K}function wq(Q,J,q){for(;J>Q;J--){let Y=q[J];if(!isNaN(Y.x)&&!isNaN(Y.y))break}return J}function ET(Q,J,q,Y){if(Q&&J)return Y(Q[q],J[q]);return Q?Q[q]:J?J[q]:0}function Kz(Q,J){let q=[],Y=!1;if(z1(Q))Y=!0,q=Q;else q=vO(Q,J);return q.length?new u5({points:q,options:{tension:0},_loop:Y,_fullLoop:Y}):null}function PT(Q){return Q&&Q.fill!==!1}function kO(Q,J,q){let U=Q[J].fill,K=[J],H;if(!q)return U;while(U!==!1&&K.indexOf(U)===-1){if(!O1(U))return U;if(H=Q[U],!H)return!1;if(H.visible)return U;K.push(U),U=H.fill}return!1}function bO(Q,J,q){let Y=hO(Q);if(n0(Y))return isNaN(Y.value)?!1:Y;let U=parseFloat(Y);if(O1(U)&&Math.floor(U)===U)return fO(Y[0],J,U,q);return["origin","start","end","stack","shape"].indexOf(Y)>=0&&Y}function fO(Q,J,q,Y){if(Q==="-"||Q==="+")q=J+q;if(q===J||q<0||q>=Y)return!1;return q}function yO(Q,J){let q=null;if(Q==="start")q=J.bottom;else if(Q==="end")q=J.top;else if(n0(Q))q=J.getPixelForValue(Q.value);else if(J.getBasePixel)q=J.getBasePixel();return q}function gO(Q,J,q){let Y;if(Q==="start")Y=q;else if(Q==="end")Y=J.options.reverse?J.min:J.max;else if(n0(Q))Y=Q.value;else Y=J.getBaseValue();return Y}function hO(Q){let J=Q.options,q=J.fill,Y=h0(q&&q.target,q);if(Y===void 0)Y=!!J.backgroundColor;if(Y===!1||Y===null)return!1;if(Y===!0)return"origin";return Y}function xO(Q){let{scale:J,index:q,line:Y}=Q,U=[],K=Y.segments,H=Y.points,M=uO(J,q);M.push(Kz({x:null,y:J.bottom},Y));for(let F=0;F<K.length;F++){let R=K[F];for(let T=R.start;T<=R.end;T++)mO(U,H[T],M)}return new u5({points:U,options:{}})}function uO(Q,J){let q=[],Y=Q.getMatchingVisibleMetas("line");for(let U=0;U<Y.length;U++){let K=Y[U];if(K.index===J)break;if(!K.hidden)q.unshift(K.dataset)}return q}function mO(Q,J,q){let Y=[];for(let U=0;U<q.length;U++){let K=q[U],{first:H,last:M,point:F}=dO(K,J,"x");if(!F||H&&M)continue;if(H)Y.unshift(F);else if(Q.push(F),!M)break}Q.push(...Y)}function dO(Q,J,q){let Y=Q.interpolate(J,q);if(!Y)return{};let U=Y[q],K=Q.segments,H=Q.points,M=!1,F=!1;for(let R=0;R<K.length;R++){let T=K[R],z=H[T.start][q],L=H[T.end][q];if(Z6(U,z,L)){M=U===z,F=U===L;break}}return{first:M,last:F,point:Y}}class xN{constructor(Q){this.x=Q.x,this.y=Q.y,this.radius=Q.radius}pathSegment(Q,J,q){let{x:Y,y:U,radius:K}=this;return J=J||{start:0,end:f5},Q.arc(Y,U,K,J.end,J.start,!0),!q.bounds}interpolate(Q){let{x:J,y:q,radius:Y}=this,U=Q.angle;return{x:J+Math.cos(U)*Y,y:q+Math.sin(U)*Y,angle:U}}}function pO(Q){let{chart:J,fill:q,line:Y}=Q;if(O1(q))return cO(J,q);if(q==="stack")return xO(Q);if(q==="shape")return!0;let U=lO(Q);if(U instanceof xN)return U;return Kz(U,Y)}function cO(Q,J){let q=Q.getDatasetMeta(J);return q&&Q.isDatasetVisible(J)?q.dataset:null}function lO(Q){if((Q.scale||{}).getPointPositionForValue)return sO(Q);return rO(Q)}function rO(Q){let{scale:J={},fill:q}=Q,Y=yO(q,J);if(O1(Y)){let U=J.isHorizontal();return{x:U?Y:null,y:U?null:Y}}return null}function sO(Q){let{scale:J,fill:q}=Q,Y=J.options,U=J.getLabels().length,K=Y.reverse?J.max:J.min,H=gO(q,J,K),M=[];if(Y.grid.circular){let F=J.getPointPositionForValue(0,K);return new xN({x:F.x,y:F.y,radius:J.getDistanceFromCenterForValue(H)})}for(let F=0;F<U;++F)M.push(J.getPointPositionForValue(F,H));return M}function PN(Q,J,q){let Y=pO(J),{chart:U,index:K,line:H,scale:M,axis:F}=J,R=H.options,T=R.fill,z=R.backgroundColor,{above:L=z,below:P=z}=T||{},I=U.getDatasetMeta(K),A=FN(U,I);if(Y&&H.points.length)mZ(Q,q),nO(Q,{line:H,target:Y,above:L,below:P,area:q,scale:M,axis:F,clip:A}),dZ(Q)}function nO(Q,J){let{line:q,target:Y,above:U,below:K,area:H,scale:M,clip:F}=J,R=q._loop?"angle":J.axis;Q.save();let T=K;if(K!==U){if(R==="x")CT(Q,Y,H.top),CN(Q,{line:q,target:Y,color:U,scale:M,property:R,clip:F}),Q.restore(),Q.save(),CT(Q,Y,H.bottom);else if(R==="y")IT(Q,Y,H.left),CN(Q,{line:q,target:Y,color:K,scale:M,property:R,clip:F}),Q.restore(),Q.save(),IT(Q,Y,H.right),T=U}CN(Q,{line:q,target:Y,color:T,scale:M,property:R,clip:F}),Q.restore()}function CT(Q,J,q){let{segments:Y,points:U}=J,K=!0,H=!1;Q.beginPath();for(let M of Y){let{start:F,end:R}=M,T=U[F],z=U[wq(F,R,U)];if(K)Q.moveTo(T.x,T.y),K=!1;else Q.lineTo(T.x,q),Q.lineTo(T.x,T.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(z.x,q)}Q.lineTo(J.first().x,q),Q.closePath(),Q.clip()}function IT(Q,J,q){let{segments:Y,points:U}=J,K=!0,H=!1;Q.beginPath();for(let M of Y){let{start:F,end:R}=M,T=U[F],z=U[wq(F,R,U)];if(K)Q.moveTo(T.x,T.y),K=!1;else Q.lineTo(q,T.y),Q.lineTo(T.x,T.y);if(H=!!J.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(q,z.y)}Q.lineTo(q,J.first().y),Q.closePath(),Q.clip()}function CN(Q,J){let{line:q,target:Y,property:U,color:K,scale:H,clip:M}=J,F=SO(q,Y,U);for(let{source:R,target:T,start:z,end:L}of F){let{style:{backgroundColor:P=K}={}}=R,I=Y!==!0;Q.save(),Q.fillStyle=P,oO(Q,H,M,I&&jN(U,z,L)),Q.beginPath();let A=!!q.pathSegment(Q,R),C;if(I){if(A)Q.closePath();else OT(Q,Y,L,U);let g=!!Y.pathSegment(Q,T,{move:A,reverse:!0});if(C=A&&g,!C)OT(Q,Y,z,U)}Q.closePath(),Q.fill(C?"evenodd":"nonzero"),Q.restore()}}function oO(Q,J,q,Y){let U=J.chart.chartArea,{property:K,start:H,end:M}=Y||{};if(K==="x"||K==="y"){let F,R,T,z;if(K==="x")F=H,R=U.top,T=M,z=U.bottom;else F=U.left,R=H,T=U.right,z=M;if(Q.beginPath(),q)F=Math.max(F,q.left),T=Math.min(T,q.right),R=Math.max(R,q.top),z=Math.min(z,q.bottom);Q.rect(F,R,T-F,z-R),Q.clip()}}function OT(Q,J,q,Y){let U=J.interpolate(q,Y);if(U)Q.lineTo(U.x,U.y)}var p9={id:"filler",afterDatasetsUpdate(Q,J,q){let Y=(Q.data.datasets||[]).length,U=[],K,H,M,F;for(H=0;H<Y;++H){if(K=Q.getDatasetMeta(H),M=K.dataset,F=null,M&&M.options&&M instanceof u5)F={visible:Q.isDatasetVisible(H),index:H,fill:bO(M,H,Y),chart:Q,axis:K.controller.options.indexAxis,scale:K.vScale,line:M};K.$filler=F,U.push(F)}for(H=0;H<Y;++H){if(F=U[H],!F||F.fill===!1)continue;F.fill=kO(U,H,q.propagate)}},beforeDraw(Q,J,q){let Y=q.drawTime==="beforeDraw",U=Q.getSortedVisibleDatasetMetas(),K=Q.chartArea;for(let H=U.length-1;H>=0;--H){let M=U[H].$filler;if(!M)continue;if(M.line.updateControlPoints(K,M.axis),Y&&M.fill)PN(Q.ctx,M,K)}},beforeDatasetsDraw(Q,J,q){if(q.drawTime!=="beforeDatasetsDraw")return;let Y=Q.getSortedVisibleDatasetMetas();for(let U=Y.length-1;U>=0;--U){let K=Y[U].$filler;if(PT(K))PN(Q.ctx,K,Q.chartArea)}},beforeDatasetDraw(Q,J,q){let Y=J.meta.$filler;if(!PT(Y)||q.drawTime!=="beforeDatasetDraw")return;PN(Q.ctx,Y,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},DT=(Q,J)=>{let{boxHeight:q=J,boxWidth:Y=J}=Q;if(Q.usePointStyle)q=Math.min(q,J),Y=Q.pointStyleWidth||Math.min(Y,J);return{boxWidth:Y,boxHeight:q,itemHeight:Math.max(J,q)}},aO=(Q,J)=>Q!==null&&J!==null&&Q.datasetIndex===J.datasetIndex&&Q.index===J.index;class AN extends q6{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,q){this.maxWidth=Q,this.maxHeight=J,this._margins=q,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=W1(Q.generateLabels,[this.chart],this)||[];if(Q.filter)J=J.filter((q)=>Q.filter(q,this.chart.data));if(Q.sort)J=J.sort((q,Y)=>Q.sort(q,Y,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 q=Q.labels,Y=p1(q.font),U=Y.size,K=this._computeTitleHeight(),{boxWidth:H,itemHeight:M}=DT(q,U),F,R;if(J.font=Y.string,this.isHorizontal())F=this.maxWidth,R=this._fitRows(K,U,H,M)+10;else R=this.maxHeight,F=this._fitCols(K,Y,H,M)+10;this.width=Math.min(F,Q.maxWidth||this.maxWidth),this.height=Math.min(R,Q.maxHeight||this.maxHeight)}_fitRows(Q,J,q,Y){let{ctx:U,maxWidth:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.lineWidths=[0],R=Y+H,T=Q;U.textAlign="left",U.textBaseline="middle";let z=-1,L=-R;return this.legendItems.forEach((P,I)=>{let A=q+J/2+U.measureText(P.text).width;if(I===0||F[F.length-1]+A+2*H>K)T+=R,F[F.length-(I>0?0:1)]=0,L+=R,z++;M[I]={left:0,top:L,row:z,width:A,height:Y},F[F.length-1]+=A+H}),T}_fitCols(Q,J,q,Y){let{ctx:U,maxHeight:K,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.columnSizes=[],R=K-Q,T=H,z=0,L=0,P=0,I=0;return this.legendItems.forEach((A,C)=>{let{itemWidth:g,itemHeight:m}=iO(q,J,U,A,Y);if(C>0&&L+m+2*H>R)T+=z+H,F.push({width:z,height:L}),P+=z+H,I++,z=L=0;M[C]={left:P,top:L,col:I,width:g,height:m},z=Math.max(z,g),L+=m+H}),T+=z,F.push({width:z,height:L}),T}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:J,options:{align:q,labels:{padding:Y},rtl:U}}=this,K=W$(U,this.left,this.width);if(this.isHorizontal()){let H=0,M=q5(q,this.left+Y,this.right-this.lineWidths[H]);for(let F of J){if(H!==F.row)H=F.row,M=q5(q,this.left+Y,this.right-this.lineWidths[H]);F.top+=this.top+Q+Y,F.left=K.leftForLtr(K.x(M),F.width),M+=F.width+Y}}else{let H=0,M=q5(q,this.top+Q+Y,this.bottom-this.columnSizes[H].height);for(let F of J){if(F.col!==H)H=F.col,M=q5(q,this.top+Q+Y,this.bottom-this.columnSizes[H].height);F.top=M,F.left+=this.left+Y,F.left=K.leftForLtr(K.x(F.left),F.width),M+=F.height+Y}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;mZ(Q,this),this._draw(),dZ(Q)}}_draw(){let{options:Q,columnSizes:J,lineWidths:q,ctx:Y}=this,{align:U,labels:K}=Q,H=D1.color,M=W$(Q.rtl,this.left,this.width),F=p1(K.font),{padding:R}=K,T=F.size,z=T/2,L;this.drawTitle(),Y.textAlign=M.textAlign("left"),Y.textBaseline="middle",Y.lineWidth=0.5,Y.font=F.string;let{boxWidth:P,boxHeight:I,itemHeight:A}=DT(K,T),C=function(s,Q0,p){if(isNaN(P)||P<=0||isNaN(I)||I<0)return;Y.save();let i=h0(p.lineWidth,1);if(Y.fillStyle=h0(p.fillStyle,H),Y.lineCap=h0(p.lineCap,"butt"),Y.lineDashOffset=h0(p.lineDashOffset,0),Y.lineJoin=h0(p.lineJoin,"miter"),Y.lineWidth=i,Y.strokeStyle=h0(p.strokeStyle,H),Y.setLineDash(h0(p.lineDash,[])),K.usePointStyle){let Y0={radius:I*Math.SQRT2/2,pointStyle:p.pointStyle,rotation:p.rotation,borderWidth:i},d=M.xPlus(s,P/2),N0=Q0+z;QN(Y,Y0,d,N0,K.pointStyleWidth&&P)}else{let Y0=Q0+Math.max((T-I)/2,0),d=M.leftForLtr(s,P),N0=K2(p.borderRadius);if(Y.beginPath(),Object.values(N0).some((w0)=>w0!==0))d9(Y,{x:d,y:Y0,w:P,h:I,radius:N0});else Y.rect(d,Y0,P,I);if(Y.fill(),i!==0)Y.stroke()}Y.restore()},g=function(s,Q0,p){N2(Y,p.text,s,Q0+A/2,F,{strikethrough:p.hidden,textAlign:M.textAlign(p.textAlign)})},m=this.isHorizontal(),o=this._computeTitleHeight();if(m)L={x:q5(U,this.left+R,this.right-q[0]),y:this.top+R+o,line:0};else L={x:this.left+R,y:q5(U,this.top+o+R,this.bottom-J[0].height),line:0};KN(this.ctx,Q.textDirection);let a=A+R;this.legendItems.forEach((s,Q0)=>{Y.strokeStyle=s.fontColor,Y.fillStyle=s.fontColor;let p=Y.measureText(s.text).width,i=M.textAlign(s.textAlign||(s.textAlign=K.textAlign)),Y0=P+z+p,d=L.x,N0=L.y;if(M.setWidth(this.width),m){if(Q0>0&&d+Y0+R>this.right)N0=L.y+=a,L.line++,d=L.x=q5(U,this.left+R,this.right-q[L.line])}else if(Q0>0&&N0+a>this.bottom)d=L.x=d+J[L.line].width+R,L.line++,N0=L.y=q5(U,this.top+o+R,this.bottom-J[L.line].height);let w0=M.x(d);if(C(w0,N0,s),d=DR(i,d+P+z,m?d+Y0:this.right,Q.rtl),g(M.x(d),N0,s),m)L.x+=Y0+R;else if(typeof s.text!=="string"){let z0=F.lineHeight;L.y+=Bz(s,z0)+R}else L.y+=a}),BN(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,J=Q.title,q=p1(J.font),Y=X5(J.padding);if(!J.display)return;let U=W$(Q.rtl,this.left,this.width),K=this.ctx,H=J.position,M=q.size/2,F=Y.top+M,R,T=this.left,z=this.width;if(this.isHorizontal())z=Math.max(...this.lineWidths),R=this.top+F,T=q5(Q.align,T,this.right-z);else{let P=this.columnSizes.reduce((I,A)=>Math.max(I,A.height),0);R=F+q5(Q.align,this.top,this.bottom-P-Q.labels.padding-this._computeTitleHeight())}let L=q5(H,T,T+z);K.textAlign=U.textAlign(eJ(H)),K.textBaseline="middle",K.strokeStyle=J.color,K.fillStyle=J.color,K.font=q.string,N2(K,J.text,L,R,q)}_computeTitleHeight(){let Q=this.options.title,J=p1(Q.font),q=X5(Q.padding);return Q.display?J.lineHeight+q.height:0}_getLegendItemAt(Q,J){let q,Y,U;if(Z6(Q,this.left,this.right)&&Z6(J,this.top,this.bottom)){U=this.legendHitBoxes;for(q=0;q<U.length;++q)if(Y=U[q],Z6(Q,Y.left,Y.left+Y.width)&&Z6(J,Y.top,Y.top+Y.height))return this.legendItems[q]}return null}handleEvent(Q){let J=this.options;if(!$D(Q.type,J))return;let q=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let Y=this._hoveredItem,U=aO(Y,q);if(Y&&!U)W1(J.onLeave,[Q,Y,this],this);if(this._hoveredItem=q,q&&!U)W1(J.onHover,[Q,q,this],this)}else if(q)W1(J.onClick,[Q,q,this],this)}}function iO(Q,J,q,Y,U){let K=tO(Y,Q,J,q),H=eO(U,Y,J.lineHeight);return{itemWidth:K,itemHeight:H}}function tO(Q,J,q,Y){let U=Q.text;if(U&&typeof U!=="string")U=U.reduce((K,H)=>K.length>H.length?K:H);return J+q.size/2+Y.measureText(U).width}function eO(Q,J,q){let Y=Q;if(typeof J.text!=="string")Y=Bz(J,q);return Y}function Bz(Q,J){let q=Q.text?Q.text.length:0;return J*q}function $D(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 _8={id:"legend",_element:AN,start(Q,J,q){let Y=Q.legend=new AN({ctx:Q.ctx,options:q,chart:Q});V4.configure(Q,Y,q),V4.addBox(Q,Y)},stop(Q){V4.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,J,q){let Y=Q.legend;V4.configure(Q,Y,q),Y.options=q},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,q){let Y=J.datasetIndex,U=q.chart;if(U.isDatasetVisible(Y))U.hide(Y),J.hidden=!0;else U.show(Y),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:q,pointStyle:Y,textAlign:U,color:K,useBorderRadius:H,borderRadius:M}}=Q.legend.options;return Q._getSortedDatasetMetas().map((F)=>{let R=F.controller.getStyle(q?0:void 0),T=X5(R.borderWidth);return{text:J[F.index].label,fillStyle:R.backgroundColor,fontColor:K,hidden:!F.visible,lineCap:R.borderCapStyle,lineDash:R.borderDash,lineDashOffset:R.borderDashOffset,lineJoin:R.borderJoinStyle,lineWidth:(T.width+T.height)/4,strokeStyle:R.borderColor,pointStyle:Y||R.pointStyle,rotation:R.rotation,textAlign:U||R.textAlign,borderRadius:H&&(M||R.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 uN extends q6{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 q=this.options;if(this.left=0,this.top=0,!q.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=Q,this.height=this.bottom=J;let Y=z1(q.text)?q.text.length:1;this._padding=X5(q.padding);let U=Y*p1(q.font).lineHeight+this._padding.height;if(this.isHorizontal())this.height=U;else this.width=U}isHorizontal(){let Q=this.options.position;return Q==="top"||Q==="bottom"}_drawArgs(Q){let{top:J,left:q,bottom:Y,right:U,options:K}=this,H=K.align,M=0,F,R,T;if(this.isHorizontal())R=q5(H,q,U),T=J+Q,F=U-q;else{if(K.position==="left")R=q+Q,T=q5(H,Y,J),M=b1*-0.5;else R=U-Q,T=q5(H,J,Y),M=b1*0.5;F=Y-J}return{titleX:R,titleY:T,maxWidth:F,rotation:M}}draw(){let Q=this.ctx,J=this.options;if(!J.display)return;let q=p1(J.font),U=q.lineHeight/2+this._padding.top,{titleX:K,titleY:H,maxWidth:M,rotation:F}=this._drawArgs(U);N2(Q,J.text,0,0,q,{color:J.color,maxWidth:M,rotation:F,textAlign:eJ(J.align),textBaseline:"middle",translation:[K,H]})}}function ZD(Q,J){let q=new uN({ctx:Q.ctx,options:J,chart:Q});V4.configure(Q,q,J),V4.addBox(Q,q),Q.titleBlock=q}var L8={id:"title",_element:uN,start(Q,J,q){ZD(Q,q)},stop(Q){let J=Q.titleBlock;V4.removeBox(Q,J),delete Q.titleBlock},beforeUpdate(Q,J,q){let Y=Q.titleBlock;V4.configure(Q,Y,q),Y.options=q},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 iZ={average(Q){if(!Q.length)return!1;let J,q,Y=new Set,U=0,K=0;for(J=0,q=Q.length;J<q;++J){let M=Q[J].element;if(M&&M.hasValue()){let F=M.tooltipPosition();Y.add(F.x),U+=F.y,++K}}if(K===0||Y.size===0)return!1;return{x:[...Y].reduce((M,F)=>M+F)/Y.size,y:U/K}},nearest(Q,J){if(!Q.length)return!1;let{x:q,y:Y}=J,U=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 R=F.getCenterPoint(),T=nJ(J,R);if(T<U)U=T,M=F}}if(M){let F=M.tooltipPosition();q=F.x,Y=F.y}return{x:q,y:Y}}};function T8(Q,J){if(J)if(z1(J))Array.prototype.push.apply(Q,J);else Q.push(J);return Q}function J6(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
255
+ */class qz{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(Q,G,q,X){let N=G.listeners[X],B=G.duration;N.forEach((H)=>H({chart:Q,initial:G.initial,numSteps:B,currentStep:Math.min(q-G.start,B)}))}_refresh(){if(this._request)return;this._running=!0,this._request=KU.call(window,()=>{if(this._update(),this._request=null,this._running)this._refresh()})}_update(Q=Date.now()){let G=0;if(this._charts.forEach((q,X)=>{if(!q.running||!q.items.length)return;let N=q.items,B=N.length-1,H=!1,M;for(;B>=0;--B)if(M=N[B],M._active){if(M._total>q.duration)q.duration=M._total;M.tick(Q),H=!0}else N[B]=N[N.length-1],N.pop();if(H)X.draw(),this._notify(X,q,Q,"progress");if(!N.length)q.running=!1,this._notify(X,q,Q,"complete"),q.initial=!1;G+=N.length}),this._lastDate=Q,G===0)this._running=!1}_getAnims(Q){let G=this._charts,q=G.get(Q);if(!q)q={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},G.set(Q,q);return q}listen(Q,G,q){this._getAnims(Q).listeners[G].push(q)}add(Q,G){if(!G||!G.length)return;this._getAnims(Q).items.push(...G)}has(Q){return this._getAnims(Q).items.length>0}start(Q){let G=this._charts.get(Q);if(!G)return;G.running=!0,G.start=Date.now(),G.duration=G.items.reduce((q,X)=>Math.max(q,X._duration),0),this._refresh()}running(Q){if(!this._running)return!1;let G=this._charts.get(Q);if(!G||!G.running||!G.items.length)return!1;return!0}stop(Q){let G=this._charts.get(Q);if(!G||!G.items.length)return;let q=G.items,X=q.length-1;for(;X>=0;--X)q[X].cancel();G.items=[],this._notify(Q,G,Date.now(),"complete")}remove(Q){return this._charts.delete(Q)}}var T8=new qz,UT="transparent",uO={boolean(Q,G,q){return q>0.5?G:Q},color(Q,G,q){let X=FU(Q||UT),N=X.valid&&FU(G||UT);return N&&N.valid?N.mix(X,q).hexString():G},number(Q,G,q){return Q+(G-Q)*q}};class Xz{constructor(Q,G,q,X){let N=G[q];X=GQ([Q.to,X,N,Q.from]);let B=GQ([Q.from,N,X]);this._active=!0,this._fn=Q.fn||uO[Q.type||typeof B],this._easing=t7[Q.easing]||t7.linear,this._start=Math.floor(Date.now()+(Q.delay||0)),this._duration=this._total=Math.floor(Q.duration),this._loop=!!Q.loop,this._target=G,this._prop=q,this._from=B,this._to=X,this._promises=void 0}active(){return this._active}update(Q,G,q){if(this._active){this._notify(!1);let X=this._target[this._prop],N=q-this._start,B=this._duration-N;this._start=q,this._duration=Math.floor(Math.max(B,Q.duration)),this._total+=N,this._loop=!!Q.loop,this._to=GQ([Q.to,G,X,Q.from]),this._from=GQ([Q.from,X,G])}}cancel(){if(this._active)this.tick(Date.now()),this._active=!1,this._notify(!1)}tick(Q){let G=Q-this._start,q=this._duration,X=this._prop,N=this._from,B=this._loop,H=this._to,M;if(this._active=N!==H&&(B||G<q),!this._active){this._target[X]=H,this._notify(!0);return}if(G<0){this._target[X]=N;return}M=G/q%2,M=B&&M>1?2-M:M,M=this._easing(Math.min(1,Math.max(0,M))),this._target[X]=this._fn(N,H,M)}wait(){let Q=this._promises||(this._promises=[]);return new Promise((G,q)=>{Q.push({res:G,rej:q})})}_notify(Q){let G=Q?"res":"rej",q=this._promises||[];for(let X=0;X<q.length;X++)q[X][G]()}}class nU{constructor(Q,G){this._chart=Q,this._properties=new Map,this.configure(G)}configure(Q){if(!o0(Q))return;let G=Object.keys(b1.animation),q=this._properties;Object.getOwnPropertyNames(Q).forEach((X)=>{let N=Q[X];if(!o0(N))return;let B={};for(let H of G)B[H]=N[H];(L1(N.properties)&&N.properties||[X]).forEach((H)=>{if(H===X||!q.has(H))q.set(H,B)})})}_animateOptions(Q,G){let q=G.options,X=mO(Q,q);if(!X)return[];let N=this._createAnimations(X,q);if(q.$shared)xO(Q.options.$animations,q).then(()=>{Q.options=q},()=>{});return N}_createAnimations(Q,G){let q=this._properties,X=[],N=Q.$animations||(Q.$animations={}),B=Object.keys(G),H=Date.now(),M;for(M=B.length-1;M>=0;--M){let F=B[M];if(F.charAt(0)==="$")continue;if(F==="options"){X.push(...this._animateOptions(Q,G));continue}let W=G[F],T=N[F],z=q.get(F);if(T)if(z&&T.active()){T.update(z,W,H);continue}else T.cancel();if(!z||!z.duration){Q[F]=W;continue}N[F]=T=new Xz(z,Q,F,W),X.push(T)}return X}update(Q,G){if(this._properties.size===0){Object.assign(Q,G);return}let q=this._createAnimations(Q,G);if(q.length)return T8.add(this._chart,q),!0}}function xO(Q,G){let q=[],X=Object.keys(G);for(let N=0;N<X.length;N++){let B=Q[X[N]];if(B&&B.active())q.push(B.wait())}return Promise.all(q)}function mO(Q,G){if(!G)return;let q=Q.options;if(!q){Q.options=G;return}if(q.$shared)Q.options=q=Object.assign({},q,{$shared:!1,$animations:{}});return q}function BT(Q,G){let q=Q&&Q.options||{},X=q.reverse,N=q.min===void 0?G:0,B=q.max===void 0?G:0;return{start:X?B:N,end:X?N:B}}function dO(Q,G,q){if(q===!1)return!1;let X=BT(Q,q),N=BT(G,q);return{top:N.end,right:X.end,bottom:N.start,left:X.start}}function pO(Q){let G,q,X,N;if(o0(Q))G=Q.top,q=Q.right,X=Q.bottom,N=Q.left;else G=q=X=N=Q;return{top:G,right:q,bottom:X,left:N,disabled:Q===!1}}function Yz(Q,G){let q=[],X=Q._getSortedDatasetMetas(G),N,B;for(N=0,B=X.length;N<B;++N)q.push(X[N].index);return q}function KT(Q,G,q,X={}){let N=Q.keys,B=X.mode==="single",H,M,F,W;if(G===null)return;let T=!1;for(H=0,M=N.length;H<M;++H){if(F=+N[H],F===q){if(T=!0,X.all)continue;break}if(W=Q.values[F],v1(W)&&(B||G===0||$4(G)===$4(W)))G+=W}if(!T&&!X.all)return 0;return G}function cO(Q,G){let{iScale:q,vScale:X}=G,N=q.axis==="x"?"x":"y",B=X.axis==="x"?"x":"y",H=Object.keys(Q),M=Array(H.length),F,W,T;for(F=0,W=H.length;F<W;++F)T=H[F],M[F]={[N]:T,[B]:Q[T]};return M}function SU(Q,G){let q=Q&&Q.options.stacked;return q||q===void 0&&G.stack!==void 0}function lO(Q,G,q){return`${Q.id}.${G.id}.${q.stack||q.type}`}function rO(Q){let{min:G,max:q,minDefined:X,maxDefined:N}=Q.getUserBounds();return{min:X?G:Number.NEGATIVE_INFINITY,max:N?q:Number.POSITIVE_INFINITY}}function sO(Q,G,q){let X=Q[G]||(Q[G]={});return X[q]||(X[q]={})}function HT(Q,G,q,X){for(let N of G.getMatchingVisibleMetas(X).reverse()){let B=Q[N.index];if(q&&B>0||!q&&B<0)return N.index}return null}function MT(Q,G){let{chart:q,_cachedMeta:X}=Q,N=q._stacks||(q._stacks={}),{iScale:B,vScale:H,index:M}=X,F=B.axis,W=H.axis,T=lO(B,H,X),z=G.length,C;for(let V=0;V<z;++V){let A=G[V],{[F]:O,[W]:I}=A,j=A._stacks||(A._stacks={});C=j[W]=sO(N,T,O),C[M]=I,C._top=HT(C,H,!0,X.type),C._bottom=HT(C,H,!1,X.type);let h=C._visualValues||(C._visualValues={});h[M]=I}}function DU(Q,G){let q=Q.scales;return Object.keys(q).filter((X)=>q[X].axis===G).shift()}function nO(Q,G){return R8(Q,{active:!1,dataset:void 0,datasetIndex:G,index:G,mode:"default",type:"dataset"})}function oO(Q,G,q){return R8(Q,{active:!1,dataIndex:G,parsed:void 0,raw:void 0,element:q,index:G,mode:"default",type:"data"})}function qQ(Q,G){let q=Q.controller.index,X=Q.vScale&&Q.vScale.axis;if(!X)return;G=G||Q._parsed;for(let N of G){let B=N._stacks;if(!B||B[X]===void 0||B[X][q]===void 0)return;if(delete B[X][q],B[X]._visualValues!==void 0&&B[X]._visualValues[q]!==void 0)delete B[X]._visualValues[q]}}var jU=(Q)=>Q==="reset"||Q==="none",FT=(Q,G)=>G?Q:Object.assign({},Q),aO=(Q,G,q)=>Q&&!G.hidden&&G._stacked&&{keys:Yz(q,!0),values:null};class h3{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(Q,G){this.chart=Q,this._ctx=Q.ctx,this.index=G,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=SU(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)qQ(this._cachedMeta);this.index=Q}linkScales(){let Q=this.chart,G=this._cachedMeta,q=this.getDataset(),X=(T,z,C,V)=>T==="x"?z:T==="r"?V:C,N=G.xAxisID=p0(q.xAxisID,DU(Q,"x")),B=G.yAxisID=p0(q.yAxisID,DU(Q,"y")),H=G.rAxisID=p0(q.rAxisID,DU(Q,"r")),M=G.indexAxis,F=G.iAxisID=X(M,N,B,H),W=G.vAxisID=X(M,B,N,H);G.xScale=this.getScaleForId(N),G.yScale=this.getScaleForId(B),G.rScale=this.getScaleForId(H),G.iScale=this.getScaleForId(F),G.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 G=this._cachedMeta;return Q===G.iScale?G.vScale:G.iScale}reset(){this._update("reset")}_destroy(){let Q=this._cachedMeta;if(this._data)UU(this._data,this);if(Q._stacked)qQ(Q)}_dataCheck(){let Q=this.getDataset(),G=Q.data||(Q.data=[]),q=this._data;if(o0(G)){let X=this._cachedMeta;this._data=cO(G,X)}else if(q!==G){if(q){UU(q,this);let X=this._cachedMeta;qQ(X),X._parsed=[]}if(G&&Object.isExtensible(G))mR(G,this);this._syncList=[],this._data=G}}addElements(){let Q=this._cachedMeta;if(this._dataCheck(),this.datasetElementType)Q.dataset=new this.datasetElementType}buildOrUpdateElements(Q){let G=this._cachedMeta,q=this.getDataset(),X=!1;this._dataCheck();let N=G._stacked;if(G._stacked=SU(G.vScale,G),G.stack!==q.stack)X=!0,qQ(G),G.stack=q.stack;if(this._resyncElements(Q),X||N!==G._stacked)MT(this,G._parsed),G._stacked=SU(G.vScale,G)}configure(){let Q=this.chart.config,G=Q.datasetScopeKeys(this._type),q=Q.getOptionScopes(this.getDataset(),G,!0);this.options=Q.createResolver(q,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(Q,G){let{_cachedMeta:q,_data:X}=this,{iScale:N,_stacked:B}=q,H=N.axis,M=Q===0&&G===X.length?!0:q._sorted,F=Q>0&&q._parsed[Q-1],W,T,z;if(this._parsing===!1)q._parsed=X,q._sorted=!0,z=X;else{if(L1(X[Q]))z=this.parseArrayData(q,X,Q,G);else if(o0(X[Q]))z=this.parseObjectData(q,X,Q,G);else z=this.parsePrimitiveData(q,X,Q,G);let C=()=>T[H]===null||F&&T[H]<F[H];for(W=0;W<G;++W)if(q._parsed[W+Q]=T=z[W],M){if(C())M=!1;F=T}q._sorted=M}if(B)MT(this,z)}parsePrimitiveData(Q,G,q,X){let{iScale:N,vScale:B}=Q,H=N.axis,M=B.axis,F=N.getLabels(),W=N===B,T=Array(X),z,C,V;for(z=0,C=X;z<C;++z)V=z+q,T[z]={[H]:W||N.parse(F[V],V),[M]:B.parse(G[V],V)};return T}parseArrayData(Q,G,q,X){let{xScale:N,yScale:B}=Q,H=Array(X),M,F,W,T;for(M=0,F=X;M<F;++M)W=M+q,T=G[W],H[M]={x:N.parse(T[0],W),y:B.parse(T[1],W)};return H}parseObjectData(Q,G,q,X){let{xScale:N,yScale:B}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=Array(X),W,T,z,C;for(W=0,T=X;W<T;++W)z=W+q,C=G[z],F[W]={x:N.parse(S9(C,H),z),y:B.parse(S9(C,M),z)};return F}getParsed(Q){return this._cachedMeta._parsed[Q]}getDataElement(Q){return this._cachedMeta.data[Q]}applyStack(Q,G,q){let X=this.chart,N=this._cachedMeta,B=G[Q.axis],H={keys:Yz(X,!0),values:G._stacks[Q.axis]._visualValues};return KT(H,B,N.index,{mode:q})}updateRangeFromParsed(Q,G,q,X){let N=q[G.axis],B=N===null?NaN:N,H=X&&q._stacks[G.axis];if(X&&H)X.values=H,B=KT(X,N,this._cachedMeta.index);Q.min=Math.min(Q.min,B),Q.max=Math.max(Q.max,B)}getMinMax(Q,G){let q=this._cachedMeta,X=q._parsed,N=q._sorted&&Q===q.iScale,B=X.length,H=this._getOtherScale(Q),M=aO(G,q,this.chart),F={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:W,max:T}=rO(H),z,C;function V(){C=X[z];let A=C[H.axis];return!v1(C[Q.axis])||W>A||T<A}for(z=0;z<B;++z){if(V())continue;if(this.updateRangeFromParsed(F,Q,C,M),N)break}if(N)for(z=B-1;z>=0;--z){if(V())continue;this.updateRangeFromParsed(F,Q,C,M);break}return F}getAllParsedValues(Q){let G=this._cachedMeta._parsed,q=[],X,N,B;for(X=0,N=G.length;X<N;++X)if(B=G[X][Q.axis],v1(B))q.push(B);return q}getMaxOverflow(){return!1}getLabelAndValue(Q){let G=this._cachedMeta,q=G.iScale,X=G.vScale,N=this.getParsed(Q);return{label:q?""+q.getLabelForValue(N[q.axis]):"",value:X?""+X.getLabelForValue(N[X.axis]):""}}_update(Q){let G=this._cachedMeta;this.update(Q||"default"),G._clip=pO(p0(this.options.clip,dO(G.xScale,G.yScale,this.getMaxOverflow())))}update(Q){}draw(){let Q=this._ctx,G=this.chart,q=this._cachedMeta,X=q.data||[],N=G.chartArea,B=[],H=this._drawStart||0,M=this._drawCount||X.length-H,F=this.options.drawActiveElementsOnTop,W;if(q.dataset)q.dataset.draw(Q,N,H,M);for(W=H;W<H+M;++W){let T=X[W];if(T.hidden)continue;if(T.active&&F)B.push(T);else T.draw(Q,N)}for(W=0;W<B.length;++W)B[W].draw(Q,N)}getStyle(Q,G){let q=G?"active":"default";return Q===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(q):this.resolveDataElementOptions(Q||0,q)}getContext(Q,G,q){let X=this.getDataset(),N;if(Q>=0&&Q<this._cachedMeta.data.length){let B=this._cachedMeta.data[Q];N=B.$context||(B.$context=oO(this.getContext(),Q,B)),N.parsed=this.getParsed(Q),N.raw=X.data[Q],N.index=N.dataIndex=Q}else N=this.$context||(this.$context=nO(this.chart.getContext(),this.index)),N.dataset=X,N.index=N.datasetIndex=this.index;return N.active=!!G,N.mode=q,N}resolveDatasetElementOptions(Q){return this._resolveElementOptions(this.datasetElementType.id,Q)}resolveDataElementOptions(Q,G){return this._resolveElementOptions(this.dataElementType.id,G,Q)}_resolveElementOptions(Q,G="default",q){let X=G==="active",N=this._cachedDataOpts,B=Q+"-"+G,H=N[B],M=this.enableOptionSharing&&Q$(q);if(H)return FT(H,M);let F=this.chart.config,W=F.datasetElementScopeKeys(this._type,Q),T=X?[`${Q}Hover`,"hover",Q,""]:[Q,""],z=F.getOptionScopes(this.getDataset(),W),C=Object.keys(b1.elements[Q]),V=()=>this.getContext(q,X,G),A=F.resolveNamedOptions(z,C,V,T);if(A.$shared)A.$shared=M,N[B]=Object.freeze(FT(A,M));return A}_resolveAnimations(Q,G,q){let X=this.chart,N=this._cachedDataOpts,B=`animation-${G}`,H=N[B];if(H)return H;let M;if(X.options.animation!==!1){let W=this.chart.config,T=W.datasetAnimationScopeKeys(this._type,G),z=W.getOptionScopes(this.getDataset(),T);M=W.createResolver(z,this.getContext(Q,q,G))}let F=new nU(X,M&&M.animations);if(M&&M._cacheable)N[B]=Object.freeze(F);return F}getSharedOptions(Q){if(!Q.$shared)return;return this._sharedOptions||(this._sharedOptions=Object.assign({},Q))}includeOptions(Q,G){return!G||jU(Q)||this.chart._animationsDisabled}_getSharedOptions(Q,G){let q=this.resolveDataElementOptions(Q,G),X=this._sharedOptions,N=this.getSharedOptions(q),B=this.includeOptions(G,N)||N!==X;return this.updateSharedOptions(N,G,q),{sharedOptions:N,includeOptions:B}}updateElement(Q,G,q,X){if(jU(X))Object.assign(Q,q);else this._resolveAnimations(G,X).update(Q,q)}updateSharedOptions(Q,G,q){if(Q&&!jU(G))this._resolveAnimations(void 0,G).update(Q,q)}_setStyle(Q,G,q,X){Q.active=X;let N=this.getStyle(G,X);this._resolveAnimations(G,q,X).update(Q,{options:!X&&this.getSharedOptions(N)||N})}removeHoverStyle(Q,G,q){this._setStyle(Q,q,"active",!1)}setHoverStyle(Q,G,q){this._setStyle(Q,q,"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 G=this._data,q=this._cachedMeta.data;for(let[H,M,F]of this._syncList)this[H](M,F);this._syncList=[];let X=q.length,N=G.length,B=Math.min(N,X);if(B)this.parse(0,B);if(N>X)this._insertElements(X,N-X,Q);else if(N<X)this._removeElements(N,X-N)}_insertElements(Q,G,q=!0){let X=this._cachedMeta,N=X.data,B=Q+G,H,M=(F)=>{F.length+=G;for(H=F.length-1;H>=B;H--)F[H]=F[H-G]};M(N);for(H=Q;H<B;++H)N[H]=new this.dataElementType;if(this._parsing)M(X._parsed);if(this.parse(Q,G),q)this.updateElements(N,Q,G,"reset")}updateElements(Q,G,q,X){}_removeElements(Q,G){let q=this._cachedMeta;if(this._parsing){let X=q._parsed.splice(Q,G);if(q._stacked)qQ(q,X)}q.data.splice(Q,G)}_sync(Q){if(this._parsing)this._syncList.push(Q);else{let[G,q,X]=Q;this[G](q,X)}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,G){if(G)this._sync(["_removeElements",Q,G]);let q=arguments.length-2;if(q)this._sync(["_insertElements",Q,q])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function iO(Q,G){if(!Q._cache.$bar){let q=Q.getMatchingVisibleMetas(G),X=[];for(let N=0,B=q.length;N<B;N++)X=X.concat(q[N].controller.getAllParsedValues(Q));Q._cache.$bar=BU(X.sort((N,B)=>N-B))}return Q._cache.$bar}function tO(Q){let G=Q.iScale,q=iO(G,Q.type),X=G._length,N,B,H,M,F=()=>{if(H===32767||H===-32768)return;if(Q$(M))X=Math.min(X,Math.abs(H-M)||X);M=H};for(N=0,B=q.length;N<B;++N)H=G.getPixelForValue(q[N]),F();M=void 0;for(N=0,B=G.ticks.length;N<B;++N)H=G.getPixelForTick(N),F();return X}function eO(Q,G,q,X){let N=q.barThickness,B,H;if(t0(N))B=G.min*q.categoryPercentage,H=q.barPercentage;else B=N*X,H=1;return{chunk:B/X,ratio:H,start:G.pixels[Q]-B/2}}function $E(Q,G,q,X){let N=G.pixels,B=N[Q],H=Q>0?N[Q-1]:null,M=Q<N.length-1?N[Q+1]:null,F=q.categoryPercentage;if(H===null)H=B-(M===null?G.end-G.start:M-B);if(M===null)M=B+B-H;let W=B-(B-Math.min(H,M))/2*F;return{chunk:Math.abs(M-H)/2*F/X,ratio:q.barPercentage,start:W}}function ZE(Q,G,q,X){let N=q.parse(Q[0],X),B=q.parse(Q[1],X),H=Math.min(N,B),M=Math.max(N,B),F=H,W=M;if(Math.abs(H)>Math.abs(M))F=M,W=H;G[q.axis]=W,G._custom={barStart:F,barEnd:W,start:N,end:B,min:H,max:M}}function Nz(Q,G,q,X){if(L1(Q))ZE(Q,G,q,X);else G[q.axis]=q.parse(Q,X);return G}function wT(Q,G,q,X){let{iScale:N,vScale:B}=Q,H=N.getLabels(),M=N===B,F=[],W,T,z,C;for(W=q,T=q+X;W<T;++W)C=G[W],z={},z[N.axis]=M||N.parse(H[W],W),F.push(Nz(C,z,B,W));return F}function vU(Q){return Q&&Q.barStart!==void 0&&Q.barEnd!==void 0}function QE(Q,G,q){if(Q!==0)return $4(Q);return(G.isHorizontal()?1:-1)*(G.min>=q?1:-1)}function JE(Q){let G,q,X,N,B;if(Q.horizontal)G=Q.base>Q.x,q="left",X="right";else G=Q.base<Q.y,q="bottom",X="top";if(G)N="end",B="start";else N="start",B="end";return{start:q,end:X,reverse:G,top:N,bottom:B}}function GE(Q,G,q,X){let N=G.borderSkipped,B={};if(!N){Q.borderSkipped=B;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:T}=JE(Q);if(N==="middle"&&q)if(Q.enableBorderRadius=!0,(q._top||0)===X)N=W;else if((q._bottom||0)===X)N=T;else B[WT(T,H,M,F)]=!0,N=W;B[WT(N,H,M,F)]=!0,Q.borderSkipped=B}function WT(Q,G,q,X){if(X)Q=qE(Q,G,q),Q=RT(Q,q,G);else Q=RT(Q,G,q);return Q}function qE(Q,G,q){return Q===G?q:Q===q?G:Q}function RT(Q,G,q){return Q==="start"?G:Q==="end"?q:Q}function XE(Q,{inflateAmount:G},q){Q.inflateAmount=G==="auto"?q===1?0.33:0:G}class oU extends h3{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,G,q,X){return wT(Q,G,q,X)}parseArrayData(Q,G,q,X){return wT(Q,G,q,X)}parseObjectData(Q,G,q,X){let{iScale:N,vScale:B}=Q,{xAxisKey:H="x",yAxisKey:M="y"}=this._parsing,F=N.axis==="x"?H:M,W=B.axis==="x"?H:M,T=[],z,C,V,A;for(z=q,C=q+X;z<C;++z)A=G[z],V={},V[N.axis]=N.parse(S9(A,F),z),T.push(Nz(S9(A,W),V,B,z));return T}updateRangeFromParsed(Q,G,q,X){super.updateRangeFromParsed(Q,G,q,X);let N=q._custom;if(N&&G===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 G=this._cachedMeta,{iScale:q,vScale:X}=G,N=this.getParsed(Q),B=N._custom,H=vU(B)?"["+B.start+", "+B.end+"]":""+X.getLabelForValue(N[X.axis]);return{label:""+q.getLabelForValue(N[q.axis]),value:H}}initialize(){this.enableOptionSharing=!0,super.initialize();let Q=this._cachedMeta;Q.stack=this.getDataset().stack}update(Q){let G=this._cachedMeta;this.updateElements(G.data,0,G.data.length,Q)}updateElements(Q,G,q,X){let N=X==="reset",{index:B,_cachedMeta:{vScale:H}}=this,M=H.getBasePixel(),F=H.isHorizontal(),W=this._getRuler(),{sharedOptions:T,includeOptions:z}=this._getSharedOptions(G,X);for(let C=G;C<G+q;C++){let V=this.getParsed(C),A=N||t0(V[H.axis])?{base:M,head:M}:this._calculateBarValuePixels(C),O=this._calculateBarIndexPixels(C,W),I=(V._stacks||{})[H.axis],j={horizontal:F,base:A.base,enableBorderRadius:!I||vU(V._custom)||B===I._top||B===I._bottom,x:F?A.head:O.center,y:F?O.center:A.head,height:F?O.size:Math.abs(A.size),width:F?Math.abs(A.size):O.size};if(z)j.options=T||this.resolveDataElementOptions(C,Q[C].active?"active":X);let h=j.options||Q[C].options;GE(j,h,I,B),XE(j,h,W.ratio),this.updateElement(Q[C],C,j,X)}}_getStacks(Q,G){let{iScale:q}=this._cachedMeta,X=q.getMatchingVisibleMetas(this._type).filter((W)=>W.controller.options.grouped),N=q.options.stacked,B=[],H=this._cachedMeta.controller.getParsed(G),M=H&&H[q.axis],F=(W)=>{let T=W._parsed.find((C)=>C[q.axis]===M),z=T&&T[W.vScale.axis];if(t0(z)||isNaN(z))return!0};for(let W of X){if(G!==void 0&&F(W))continue;if(N===!1||B.indexOf(W.stack)===-1||N===void 0&&W.stack===void 0)B.push(W.stack);if(W.index===Q)break}if(!B.length)B.push(void 0);return B}_getStackCount(Q){return this._getStacks(void 0,Q).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let Q=this.chart.scales,G=this.chart.options.indexAxis;return Object.keys(Q).filter((q)=>Q[q].axis===G).shift()}_getAxis(){let Q={},G=this.getFirstScaleIdForIndexAxis();for(let q of this.chart.data.datasets)Q[p0(this.chart.options.indexAxis==="x"?q.xAxisID:q.yAxisID,G)]=!0;return Object.keys(Q)}_getStackIndex(Q,G,q){let X=this._getStacks(Q,q),N=G!==void 0?X.indexOf(G):-1;return N===-1?X.length-1:N}_getRuler(){let Q=this.options,G=this._cachedMeta,q=G.iScale,X=[],N,B;for(N=0,B=G.data.length;N<B;++N)X.push(q.getPixelForValue(this.getParsed(N)[q.axis],N));let H=Q.barThickness;return{min:H||tO(G),pixels:X,start:q._startPixel,end:q._endPixel,stackCount:this._getStackCount(),scale:q,grouped:Q.grouped,ratio:H?1:Q.categoryPercentage*Q.barPercentage}}_calculateBarValuePixels(Q){let{_cachedMeta:{vScale:G,_stacked:q,index:X},options:{base:N,minBarLength:B}}=this,H=N||0,M=this.getParsed(Q),F=M._custom,W=vU(F),T=M[G.axis],z=0,C=q?this.applyStack(G,M,q):T,V,A;if(C!==T)z=C-T,C=T;if(W){if(T=F.barStart,C=F.barEnd-F.barStart,T!==0&&$4(T)!==$4(F.barEnd))z=0;z+=T}let O=!t0(N)&&!W?N:z,I=G.getPixelForValue(O);if(this.chart.getDataVisibility(Q))V=G.getPixelForValue(z+C);else V=I;if(A=V-I,Math.abs(A)<B){if(A=QE(A,G,H)*B,T===H)I-=A/2;let j=G.getPixelForDecimal(0),h=G.getPixelForDecimal(1),p=Math.min(j,h),s=Math.max(j,h);if(I=Math.max(Math.min(I,s),p),V=I+A,q&&!W)M._stacks[G.axis]._visualValues[X]=G.getValueForPixel(V)-G.getValueForPixel(I)}if(I===G.getPixelForValue(H)){let j=$4(A)*G.getLineWidthForValue(H)/2;I+=j,A-=j}return{size:A,base:I,head:V,center:V+A/2}}_calculateBarIndexPixels(Q,G){let q=G.scale,X=this.options,N=X.skipNull,B=p0(X.maxBarThickness,1/0),H,M,F=this._getAxisCount();if(G.grouped){let W=N?this._getStackCount(Q):G.stackCount,T=X.barThickness==="flex"?$E(Q,G,X,W*F):eO(Q,G,X,W*F),z=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,C=this._getAxis().indexOf(p0(z,this.getFirstScaleIdForIndexAxis())),V=this._getStackIndex(this.index,this._cachedMeta.stack,N?Q:void 0)+C;H=T.start+T.chunk*V+T.chunk/2,M=Math.min(B,T.chunk*T.ratio)}else H=q.getPixelForValue(this.getParsed(Q)[q.axis],Q),M=Math.min(B,G.min*G.ratio);return{base:H-M/2,head:H+M/2,center:H,size:M}}draw(){let Q=this._cachedMeta,G=Q.vScale,q=Q.data,X=q.length,N=0;for(;N<X;++N)if(this.getParsed(N)[G.axis]!==null&&!q[N].hidden)q[N].draw(this._ctx)}}class aU extends h3{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 G=this._cachedMeta,{dataset:q,data:X=[],_dataset:N}=G,B=this.chart._animationsDisabled,{start:H,count:M}=cR(G,X,B);if(this._drawStart=H,this._drawCount=M,lR(G))H=0,M=X.length;q._chart=this.chart,q._datasetIndex=this.index,q._decimated=!!N._decimated,q.points=X;let F=this.resolveDatasetElementOptions(Q);if(!this.options.showLine)F.borderWidth=0;F.segment=this.options.segment,this.updateElement(q,void 0,{animated:!B,options:F},Q),this.updateElements(X,H,M,Q)}updateElements(Q,G,q,X){let N=X==="reset",{iScale:B,vScale:H,_stacked:M,_dataset:F}=this._cachedMeta,{sharedOptions:W,includeOptions:T}=this._getSharedOptions(G,X),z=B.axis,C=H.axis,{spanGaps:V,segment:A}=this.options,O=G$(V)?V:Number.POSITIVE_INFINITY,I=this.chart._animationsDisabled||N||X==="none",j=G+q,h=Q.length,p=G>0&&this.getParsed(G-1);for(let s=0;s<h;++s){let o=Q[s],Q0=I?o:{};if(s<G||s>=j){Q0.skip=!0;continue}let i=this.getParsed(s),a=t0(i[C]),X0=Q0[z]=B.getPixelForValue(i[z],s),d=Q0[C]=N||a?H.getBasePixel():H.getPixelForValue(M?this.applyStack(H,i,M):i[C],s);if(Q0.skip=isNaN(X0)||isNaN(d)||a,Q0.stop=s>0&&Math.abs(i[z]-p[z])>O,A)Q0.parsed=i,Q0.raw=F.data[s];if(T)Q0.options=W||this.resolveDataElementOptions(s,o.active?"active":X);if(!I)this.updateElement(o,s,Q0,X);p=i}}getMaxOverflow(){let Q=this._cachedMeta,G=Q.dataset,q=G.options&&G.options.borderWidth||0,X=Q.data||[];if(!X.length)return q;let N=X[0].size(this.resolveDataElementOptions(0)),B=X[X.length-1].size(this.resolveDataElementOptions(X.length-1));return Math.max(q,N,B)/2}draw(){let Q=this._cachedMeta;Q.dataset.updateControlPoints(this.chart.chartArea,Q.iScale.axis),super.draw()}}function j9(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class iU{static override(Q){Object.assign(iU.prototype,Q)}options;constructor(Q){this.options=Q||{}}init(){}formats(){return j9()}parse(){return j9()}format(){return j9()}add(){return j9()}diff(){return j9()}startOf(){return j9()}endOf(){return j9()}}var YE={_date:iU};function NE(Q,G,q,X){let{controller:N,data:B,_sorted:H}=Q,M=N._cachedMeta.iScale,F=Q.dataset?Q.dataset.options?Q.dataset.options.spanGaps:null:null;if(M&&G===M.axis&&G!=="r"&&H&&B.length){let W=M._reversePixels?hR:C2;if(!X){let T=W(B,G,q);if(F){let{vScale:z}=N._cachedMeta,{_parsed:C}=Q,V=C.slice(0,T.lo+1).reverse().findIndex((O)=>!t0(O[z.axis]));T.lo-=Math.max(0,V);let A=C.slice(T.hi).findIndex((O)=>!t0(O[z.axis]));T.hi+=Math.max(0,A)}return T}else if(N._sharedOptions){let T=B[0],z=typeof T.getRange==="function"&&T.getRange(G);if(z){let C=W(B,G,q-z),V=W(B,G,q+z);return{lo:C.lo,hi:V.hi}}}}return{lo:0,hi:B.length-1}}function WQ(Q,G,q,X,N){let B=Q.getSortedVisibleDatasetMetas(),H=q[G];for(let M=0,F=B.length;M<F;++M){let{index:W,data:T}=B[M],{lo:z,hi:C}=NE(B[M],G,H,N);for(let V=z;V<=C;++V){let A=T[V];if(!A.skip)X(A,W,V)}}}function UE(Q){let G=Q.indexOf("x")!==-1,q=Q.indexOf("y")!==-1;return function(X,N){let B=G?Math.abs(X.x-N.x):0,H=q?Math.abs(X.y-N.y):0;return Math.sqrt(Math.pow(B,2)+Math.pow(H,2))}}function bU(Q,G,q,X,N){let B=[];if(!N&&!Q.isPointInArea(G))return B;return WQ(Q,q,G,function(M,F,W){if(!N&&!j4(M,Q.chartArea,0))return;if(M.inRange(G.x,G.y,X))B.push({element:M,datasetIndex:F,index:W})},!0),B}function BE(Q,G,q,X){let N=[];function B(H,M,F){let{startAngle:W,endAngle:T}=H.getProps(["startAngle","endAngle"],X),{angle:z}=yR(H,{x:G.x,y:G.y});if(NU(z,W,T))N.push({element:H,datasetIndex:M,index:F})}return WQ(Q,q,G,B),N}function KE(Q,G,q,X,N,B){let H=[],M=UE(q),F=Number.POSITIVE_INFINITY;function W(T,z,C){let V=T.inRange(G.x,G.y,N);if(X&&!V)return;let A=T.getCenterPoint(N);if(!(!!B||Q.isPointInArea(A))&&!V)return;let I=M(G,A);if(I<F)H=[{element:T,datasetIndex:z,index:C}],F=I;else if(I===F)H.push({element:T,datasetIndex:z,index:C})}return WQ(Q,q,G,W),H}function kU(Q,G,q,X,N,B){if(!B&&!Q.isPointInArea(G))return[];return q==="r"&&!X?BE(Q,G,q,N):KE(Q,G,q,X,N,B)}function TT(Q,G,q,X,N){let B=[],H=q==="x"?"inXRange":"inYRange",M=!1;if(WQ(Q,q,G,(F,W,T)=>{if(F[H]&&F[H](G[q],N))B.push({element:F,datasetIndex:W,index:T}),M=M||F.inRange(G.x,G.y,N)}),X&&!M)return[];return B}var HE={evaluateInteractionItems:WQ,modes:{index(Q,G,q,X){let N=E2(G,Q),B=q.axis||"x",H=q.includeInvisible||!1,M=q.intersect?bU(Q,N,B,X,H):kU(Q,N,B,!1,X,H),F=[];if(!M.length)return[];return Q.getSortedVisibleDatasetMetas().forEach((W)=>{let T=M[0].index,z=W.data[T];if(z&&!z.skip)F.push({element:z,datasetIndex:W.index,index:T})}),F},dataset(Q,G,q,X){let N=E2(G,Q),B=q.axis||"xy",H=q.includeInvisible||!1,M=q.intersect?bU(Q,N,B,X,H):kU(Q,N,B,!1,X,H);if(M.length>0){let F=M[0].datasetIndex,W=Q.getDatasetMeta(F).data;M=[];for(let T=0;T<W.length;++T)M.push({element:W[T],datasetIndex:F,index:T})}return M},point(Q,G,q,X){let N=E2(G,Q),B=q.axis||"xy",H=q.includeInvisible||!1;return bU(Q,N,B,X,H)},nearest(Q,G,q,X){let N=E2(G,Q),B=q.axis||"xy",H=q.includeInvisible||!1;return kU(Q,N,B,q.intersect,X,H)},x(Q,G,q,X){let N=E2(G,Q);return TT(Q,N,"x",q.intersect,X)},y(Q,G,q,X){let N=E2(G,Q);return TT(Q,N,"y",q.intersect,X)}}},Uz=["left","top","right","bottom"];function XQ(Q,G){return Q.filter((q)=>q.pos===G)}function zT(Q,G){return Q.filter((q)=>Uz.indexOf(q.pos)===-1&&q.box.axis===G)}function YQ(Q,G){return Q.sort((q,X)=>{let N=G?X:q,B=G?q:X;return N.weight===B.weight?N.index-B.index:N.weight-B.weight})}function ME(Q){let G=[],q,X,N,B,H,M;for(q=0,X=(Q||[]).length;q<X;++q)N=Q[q],{position:B,options:{stack:H,stackWeight:M=1}}=N,G.push({index:q,box:N,pos:B,horizontal:N.isHorizontal(),weight:N.weight,stack:H&&B+H,stackWeight:M});return G}function FE(Q){let G={};for(let q of Q){let{stack:X,pos:N,stackWeight:B}=q;if(!X||!Uz.includes(N))continue;let H=G[X]||(G[X]={count:0,placed:0,weight:0,size:0});H.count++,H.weight+=B}return G}function wE(Q,G){let q=FE(Q),{vBoxMaxWidth:X,hBoxMaxHeight:N}=G,B,H,M;for(B=0,H=Q.length;B<H;++B){M=Q[B];let{fullSize:F}=M.box,W=q[M.stack],T=W&&M.stackWeight/W.weight;if(M.horizontal)M.width=T?T*X:F&&G.availableWidth,M.height=N;else M.width=X,M.height=T?T*N:F&&G.availableHeight}return q}function WE(Q){let G=ME(Q),q=YQ(G.filter((W)=>W.box.fullSize),!0),X=YQ(XQ(G,"left"),!0),N=YQ(XQ(G,"right")),B=YQ(XQ(G,"top"),!0),H=YQ(XQ(G,"bottom")),M=zT(G,"x"),F=zT(G,"y");return{fullSize:q,leftAndTop:X.concat(B),rightAndBottom:N.concat(F).concat(H).concat(M),chartArea:XQ(G,"chartArea"),vertical:X.concat(N).concat(F),horizontal:B.concat(H).concat(M)}}function PT(Q,G,q,X){return Math.max(Q[q],G[q])+Math.max(Q[X],G[X])}function Bz(Q,G){Q.top=Math.max(Q.top,G.top),Q.left=Math.max(Q.left,G.left),Q.bottom=Math.max(Q.bottom,G.bottom),Q.right=Math.max(Q.right,G.right)}function RE(Q,G,q,X){let{pos:N,box:B}=q,H=Q.maxPadding;if(!o0(N)){if(q.size)Q[N]-=q.size;let z=X[q.stack]||{size:0,count:1};z.size=Math.max(z.size,q.horizontal?B.height:B.width),q.size=z.size/z.count,Q[N]+=q.size}if(B.getPadding)Bz(H,B.getPadding());let M=Math.max(0,G.outerWidth-PT(H,Q,"left","right")),F=Math.max(0,G.outerHeight-PT(H,Q,"top","bottom")),W=M!==Q.w,T=F!==Q.h;return Q.w=M,Q.h=F,q.horizontal?{same:W,other:T}:{same:T,other:W}}function TE(Q){let G=Q.maxPadding;function q(X){let N=Math.max(G[X]-Q[X],0);return Q[X]+=N,N}Q.y+=q("top"),Q.x+=q("left"),q("right"),q("bottom")}function zE(Q,G){let q=G.maxPadding;function X(N){let B={left:0,top:0,right:0,bottom:0};return N.forEach((H)=>{B[H]=Math.max(G[H],q[H])}),B}return Q?X(["left","right"]):X(["top","bottom"])}function BQ(Q,G,q,X){let N=[],B,H,M,F,W,T;for(B=0,H=Q.length,W=0;B<H;++B){M=Q[B],F=M.box,F.update(M.width||G.w,M.height||G.h,zE(M.horizontal,G));let{same:z,other:C}=RE(G,q,M,X);if(W|=z&&N.length,T=T||C,!F.fullSize)N.push(M)}return W&&BQ(N,G,q,X)||T}function D3(Q,G,q,X,N){Q.top=q,Q.left=G,Q.right=G+X,Q.bottom=q+N,Q.width=X,Q.height=N}function CT(Q,G,q,X){let N=q.padding,{x:B,y:H}=G;for(let M of Q){let F=M.box,W=X[M.stack]||{count:1,placed:0,weight:1},T=M.stackWeight/W.weight||1;if(M.horizontal){let z=G.w*T,C=W.size||F.height;if(Q$(W.start))H=W.start;if(F.fullSize)D3(F,N.left,H,q.outerWidth-N.right-N.left,C);else D3(F,G.left+W.placed,H,z,C);W.start=H,W.placed+=z,H=F.bottom}else{let z=G.h*T,C=W.size||F.width;if(Q$(W.start))B=W.start;if(F.fullSize)D3(F,B,N.top,C,q.outerHeight-N.bottom-N.top);else D3(F,B,G.top+W.placed,C,z);W.start=B,W.placed+=z,B=F.right}}G.x=B,G.y=H}var y6={addBox(Q,G){if(!Q.boxes)Q.boxes=[];G.fullSize=G.fullSize||!1,G.position=G.position||"top",G.weight=G.weight||0,G._layers=G._layers||function(){return[{z:0,draw(q){G.draw(q)}}]},Q.boxes.push(G)},removeBox(Q,G){let q=Q.boxes?Q.boxes.indexOf(G):-1;if(q!==-1)Q.boxes.splice(q,1)},configure(Q,G,q){G.fullSize=q.fullSize,G.position=q.position,G.weight=q.weight},update(Q,G,q,X){if(!Q)return;let N=w5(Q.options.layout.padding),B=Math.max(G-N.width,0),H=Math.max(q-N.height,0),M=WE(Q.boxes),F=M.vertical,W=M.horizontal;N1(Q.boxes,(O)=>{if(typeof O.beforeLayout==="function")O.beforeLayout()});let T=F.reduce((O,I)=>I.box.options&&I.box.options.display===!1?O:O+1,0)||1,z=Object.freeze({outerWidth:G,outerHeight:q,padding:N,availableWidth:B,availableHeight:H,vBoxMaxWidth:B/2/T,hBoxMaxHeight:H/2}),C=Object.assign({},N);Bz(C,w5(X));let V=Object.assign({maxPadding:C,w:B,h:H,x:N.left,y:N.top},N),A=wE(F.concat(W),z);if(BQ(M.fullSize,V,z,A),BQ(F,V,z,A),BQ(W,V,z,A))BQ(F,V,z,A);TE(V),CT(M.leftAndTop,V,z,A),V.x+=V.w,V.y+=V.h,CT(M.rightAndBottom,V,z,A),Q.chartArea={left:V.left,top:V.top,right:V.left+V.w,bottom:V.top+V.h,height:V.h,width:V.w},N1(M.chartArea,(O)=>{let I=O.box;Object.assign(I,Q.chartArea),I.update(V.w,V.h,{left:0,top:0,right:0,bottom:0})})}};class tU{acquireContext(Q,G){}releaseContext(Q){return!1}addEventListener(Q,G,q){}removeEventListener(Q,G,q){}getDevicePixelRatio(){return 1}getMaximumSize(Q,G,q,X){return G=Math.max(0,G||Q.width),q=q||Q.height,{width:G,height:Math.max(0,X?Math.floor(G/X):q)}}isAttached(Q){return!0}updateConfig(Q){}}class Kz extends tU{acquireContext(Q){return Q&&Q.getContext&&Q.getContext("2d")||null}updateConfig(Q){Q.options.animation=!1}}var f3="$chartjs",PE={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},LT=(Q)=>Q===null||Q==="";function CE(Q,G){let q=Q.style,X=Q.getAttribute("height"),N=Q.getAttribute("width");if(Q[f3]={initial:{height:X,width:N,style:{display:q.display,height:q.height,width:q.width}}},q.display=q.display||"block",q.boxSizing=q.boxSizing||"border-box",LT(N)){let B=_U(Q,"width");if(B!==void 0)Q.width=B}if(LT(X))if(Q.style.height==="")Q.height=Q.width/(G||2);else{let B=_U(Q,"height");if(B!==void 0)Q.height=B}return Q}var Hz=GT?{passive:!0}:!1;function LE(Q,G,q){if(Q)Q.addEventListener(G,q,Hz)}function _E(Q,G,q){if(Q&&Q.canvas)Q.canvas.removeEventListener(G,q,Hz)}function VE(Q,G){let q=PE[Q.type]||Q.type,{x:X,y:N}=E2(Q,G);return{type:q,chart:G,native:Q,x:X!==void 0?X:null,y:N!==void 0?N:null}}function g3(Q,G){for(let q of Q)if(q===G||q.contains(G))return!0}function IE(Q,G,q){let X=Q.canvas,N=new MutationObserver((B)=>{let H=!1;for(let M of B)H=H||g3(M.addedNodes,X),H=H&&!g3(M.removedNodes,X);if(H)q()});return N.observe(document,{childList:!0,subtree:!0}),N}function OE(Q,G,q){let X=Q.canvas,N=new MutationObserver((B)=>{let H=!1;for(let M of B)H=H||g3(M.removedNodes,X),H=H&&!g3(M.addedNodes,X);if(H)q()});return N.observe(document,{childList:!0,subtree:!0}),N}var MQ=new Map,_T=0;function Mz(){let Q=window.devicePixelRatio;if(Q===_T)return;_T=Q,MQ.forEach((G,q)=>{if(q.currentDevicePixelRatio!==Q)G()})}function EE(Q,G){if(!MQ.size)window.addEventListener("resize",Mz);MQ.set(Q,G)}function AE(Q){if(MQ.delete(Q),!MQ.size)window.removeEventListener("resize",Mz)}function SE(Q,G,q){let X=Q.canvas,N=X&&A3(X);if(!N)return;let B=HU((M,F)=>{let W=N.clientWidth;if(q(M,F),W<N.clientWidth)q()},window),H=new ResizeObserver((M)=>{let F=M[0],W=F.contentRect.width,T=F.contentRect.height;if(W===0&&T===0)return;B(W,T)});return H.observe(N),EE(Q,B),H}function fU(Q,G,q){if(q)q.disconnect();if(G==="resize")AE(Q)}function DE(Q,G,q){let X=Q.canvas,N=HU((B)=>{if(Q.ctx!==null)q(VE(B,Q))},Q);return LE(X,G,N),N}class Fz extends tU{acquireContext(Q,G){let q=Q&&Q.getContext&&Q.getContext("2d");if(q&&q.canvas===Q)return CE(Q,G),q;return null}releaseContext(Q){let G=Q.canvas;if(!G[f3])return!1;let q=G[f3].initial;["height","width"].forEach((N)=>{let B=q[N];if(t0(B))G.removeAttribute(N);else G.setAttribute(N,B)});let X=q.style||{};return Object.keys(X).forEach((N)=>{G.style[N]=X[N]}),G.width=G.width,delete G[f3],!0}addEventListener(Q,G,q){this.removeEventListener(Q,G);let X=Q.$proxies||(Q.$proxies={}),B={attach:IE,detach:OE,resize:SE}[G]||DE;X[G]=B(Q,G,q)}removeEventListener(Q,G){let q=Q.$proxies||(Q.$proxies={}),X=q[G];if(!X)return;({attach:fU,detach:fU,resize:fU}[G]||_E)(Q,G,X),q[G]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(Q,G,q,X){return JT(Q,G,q,X)}isAttached(Q){let G=Q&&A3(Q);return!!(G&&G.isConnected)}}function jE(Q){if(!E3()||typeof OffscreenCanvas<"u"&&Q instanceof OffscreenCanvas)return Kz;return Fz}class P8{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(Q){let{x:G,y:q}=this.getProps(["x","y"],Q);return{x:G,y:q}}hasValue(){return G$(this.x)&&G$(this.y)}getProps(Q,G){let q=this.$animations;if(!G||!q)return this;let X={};return Q.forEach((N)=>{X[N]=q[N]&&q[N].active()?q[N]._to:this[N]}),X}}function vE(Q,G){let q=Q.options.ticks,X=bE(Q),N=Math.min(q.maxTicksLimit||X,X),B=q.major.enabled?fE(G):[],H=B.length,M=B[0],F=B[H-1],W=[];if(H>N)return yE(G,W,B,H/N),W;let T=kE(B,G,N);if(H>0){let z,C,V=H>1?Math.round((F-M)/(H-1)):null;j3(G,W,T,t0(V)?0:M-V,M);for(z=0,C=H-1;z<C;z++)j3(G,W,T,B[z],B[z+1]);return j3(G,W,T,F,t0(V)?G.length:F+V),W}return j3(G,W,T),W}function bE(Q){let G=Q.options.offset,q=Q._tickSize(),X=Q._length/q+(G?0:1),N=Q._maxLength/q;return Math.floor(Math.min(X,N))}function kE(Q,G,q){let X=gE(Q),N=G.length/q;if(!X)return Math.max(N,1);let B=kR(X);for(let H=0,M=B.length-1;H<M;H++){let F=B[H];if(F>N)return F}return Math.max(N,1)}function fE(Q){let G=[],q,X;for(q=0,X=Q.length;q<X;q++)if(Q[q].major)G.push(q);return G}function yE(Q,G,q,X){let N=0,B=q[0],H;X=Math.ceil(X);for(H=0;H<Q.length;H++)if(H===B)G.push(Q[H]),N++,B=q[N*X]}function j3(Q,G,q,X,N){let B=p0(X,0),H=Math.min(p0(N,Q.length),Q.length),M=0,F,W,T;if(q=Math.ceil(q),N)F=N-X,q=F/Math.floor(F/q);T=B;while(T<0)M++,T=Math.round(B+M*q);for(W=Math.max(B,0);W<H;W++)if(W===T)G.push(Q[W]),M++,T=Math.round(B+M*q)}function gE(Q){let G=Q.length,q,X;if(G<2)return!1;for(X=Q[0],q=1;q<G;++q)if(Q[q]-Q[q-1]!==X)return!1;return X}var hE=(Q)=>Q==="left"?"right":Q==="right"?"left":Q,VT=(Q,G,q)=>G==="top"||G==="left"?Q[G]+q:Q[G]-q,IT=(Q,G)=>Math.min(G||Q,Q);function OT(Q,G){let q=[],X=Q.length/G,N=Q.length,B=0;for(;B<N;B+=X)q.push(Q[Math.floor(B)]);return q}function uE(Q,G,q){let X=Q.ticks.length,N=Math.min(G,X-1),B=Q._startPixel,H=Q._endPixel,M=0.000001,F=Q.getPixelForTick(N),W;if(q){if(X===1)W=Math.max(F-B,H-F);else if(G===0)W=(Q.getPixelForTick(1)-F)/2;else W=(F-Q.getPixelForTick(N-1))/2;if(F+=N<G?W:-W,F<B-0.000001||F>H+0.000001)return}return F}function xE(Q,G){N1(Q,(q)=>{let X=q.gc,N=X.length/2,B;if(N>G){for(B=0;B<N;++B)delete q.data[X[B]];X.splice(0,N)}})}function NQ(Q){return Q.drawTicks?Q.tickLength:0}function ET(Q,G){if(!Q.display)return 0;let q=o1(Q.font,G),X=w5(Q.padding);return(L1(Q.text)?Q.text.length:1)*q.lineHeight+X.height}function mE(Q,G){return R8(Q,{scale:G,type:"scale"})}function dE(Q,G,q){return R8(Q,{tick:q,index:G,type:"tick"})}function pE(Q,G,q){let X=L3(Q);if(q&&G!=="right"||!q&&G==="right")X=hE(X);return X}function cE(Q,G,q,X){let{top:N,left:B,bottom:H,right:M,chart:F}=Q,{chartArea:W,scales:T}=F,z=0,C,V,A,O=H-N,I=M-B;if(Q.isHorizontal()){if(V=F5(X,B,M),o0(q)){let j=Object.keys(q)[0],h=q[j];A=T[j].getPixelForValue(h)+O-G}else if(q==="center")A=(W.bottom+W.top)/2+O-G;else A=VT(Q,q,G);C=M-B}else{if(o0(q)){let j=Object.keys(q)[0],h=q[j];V=T[j].getPixelForValue(h)-I+G}else if(q==="center")V=(W.left+W.right)/2-I+G;else V=VT(Q,q,G);A=F5(X,H,N),z=q==="left"?-c5:c5}return{titleX:V,titleY:A,maxWidth:C,rotation:z}}class b9 extends P8{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,G){return Q}getUserBounds(){let{_userMin:Q,_userMax:G,_suggestedMin:q,_suggestedMax:X}=this;return Q=s5(Q,Number.POSITIVE_INFINITY),G=s5(G,Number.NEGATIVE_INFINITY),q=s5(q,Number.POSITIVE_INFINITY),X=s5(X,Number.NEGATIVE_INFINITY),{min:s5(Q,q),max:s5(G,X),minDefined:v1(Q),maxDefined:v1(G)}}getMinMax(Q){let{min:G,max:q,minDefined:X,maxDefined:N}=this.getUserBounds(),B;if(X&&N)return{min:G,max:q};let H=this.getMatchingVisibleMetas();for(let M=0,F=H.length;M<F;++M){if(B=H[M].controller.getMinMax(this,Q),!X)G=Math.min(G,B.min);if(!N)q=Math.max(q,B.max)}return G=N&&G>q?q:G,q=X&&G>q?G:q,{min:s5(G,s5(q,G)),max:s5(q,s5(G,q))}}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(){T1(this.options.beforeUpdate,[this])}update(Q,G,q){let{beginAtZero:X,grace:N,ticks:B}=this.options,H=B.sampleSize;if(this.beforeUpdate(),this.maxWidth=Q,this.maxHeight=G,this._margins=q=Object.assign({left:0,right:0,top:0,bottom:0},q),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+q.left+q.right:this.height+q.top+q.bottom,!this._dataLimitsCached)this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=iR(this,N,X),this._dataLimitsCached=!0;this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let M=H<this.ticks.length;if(this._convertTicksToLabels(M?OT(this.ticks,H):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),B.display&&(B.autoSkip||B.source==="auto"))this.ticks=vE(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,G,q;if(this.isHorizontal())G=this.left,q=this.right;else G=this.top,q=this.bottom,Q=!Q;this._startPixel=G,this._endPixel=q,this._reversePixels=Q,this._length=q-G,this._alignToPixels=this.options.alignToPixels}afterUpdate(){T1(this.options.afterUpdate,[this])}beforeSetDimensions(){T1(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(){T1(this.options.afterSetDimensions,[this])}_callHooks(Q){this.chart.notifyPlugins(Q,this.getContext()),T1(this.options[Q],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){T1(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(Q){let G=this.options.ticks,q,X,N;for(q=0,X=Q.length;q<X;q++)N=Q[q],N.label=T1(G.callback,[N.value,q,Q],this)}afterTickToLabelConversion(){T1(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){T1(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let Q=this.options,G=Q.ticks,q=IT(this.ticks.length,Q.ticks.maxTicksLimit),X=G.minRotation||0,N=G.maxRotation,B=X,H,M,F;if(!this._isVisible()||!G.display||X>=N||q<=1||!this.isHorizontal()){this.labelRotation=X;return}let W=this._getLabelSizes(),T=W.widest.width,z=W.highest.height,C=r5(this.chart.width-T,0,this.maxWidth);if(H=Q.offset?this.maxWidth/q:C/(q-1),T+6>H)H=C/(q-(Q.offset?0.5:1)),M=this.maxHeight-NQ(Q.grid)-G.padding-ET(Q.title,this.chart.options.font),F=Math.sqrt(T*T+z*z),B=P3(Math.min(Math.asin(r5((W.highest.height+6)/H,-1,1)),Math.asin(r5(M/F,-1,1))-Math.asin(r5(z/F,-1,1)))),B=Math.max(X,Math.min(N,B));this.labelRotation=B}afterCalculateLabelRotation(){T1(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){T1(this.options.beforeFit,[this])}fit(){let Q={width:0,height:0},{chart:G,options:{ticks:q,title:X,grid:N}}=this,B=this._isVisible(),H=this.isHorizontal();if(B){let M=ET(X,G.options.font);if(H)Q.width=this.maxWidth,Q.height=NQ(N)+M;else Q.height=this.maxHeight,Q.width=NQ(N)+M;if(q.display&&this.ticks.length){let{first:F,last:W,widest:T,highest:z}=this._getLabelSizes(),C=q.padding*2,V=w8(this.labelRotation),A=Math.cos(V),O=Math.sin(V);if(H){let I=q.mirror?0:O*T.width+A*z.height;Q.height=Math.min(this.maxHeight,Q.height+I+C)}else{let I=q.mirror?0:A*T.width+O*z.height;Q.width=Math.min(this.maxWidth,Q.width+I+C)}this._calculatePadding(F,W,O,A)}}if(this._handleMargins(),H)this.width=this._length=G.width-this._margins.left-this._margins.right,this.height=Q.height;else this.width=Q.width,this.height=this._length=G.height-this._margins.top-this._margins.bottom}_calculatePadding(Q,G,q,X){let{ticks:{align:N,padding:B},position:H}=this.options,M=this.labelRotation!==0,F=H!=="top"&&this.axis==="x";if(this.isHorizontal()){let W=this.getPixelForTick(0)-this.left,T=this.right-this.getPixelForTick(this.ticks.length-1),z=0,C=0;if(M)if(F)z=X*Q.width,C=q*G.height;else z=q*Q.height,C=X*G.width;else if(N==="start")C=G.width;else if(N==="end")z=Q.width;else if(N!=="inner")z=Q.width/2,C=G.width/2;this.paddingLeft=Math.max((z-W+B)*this.width/(this.width-W),0),this.paddingRight=Math.max((C-T+B)*this.width/(this.width-T),0)}else{let W=G.height/2,T=Q.height/2;if(N==="start")W=0,T=Q.height;else if(N==="end")W=G.height,T=0;this.paddingTop=W+B,this.paddingBottom=T+B}}_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(){T1(this.options.afterFit,[this])}isHorizontal(){let{axis:Q,position:G}=this.options;return G==="top"||G==="bottom"||Q==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(Q){this.beforeTickToLabelConversion(),this.generateTickLabels(Q);let G,q;for(G=0,q=Q.length;G<q;G++)if(t0(Q[G].label))Q.splice(G,1),q--,G--;this.afterTickToLabelConversion()}_getLabelSizes(){let Q=this._labelSizes;if(!Q){let G=this.options.ticks.sampleSize,q=this.ticks;if(G<q.length)q=OT(q,G);this._labelSizes=Q=this._computeLabelSizes(q,q.length,this.options.ticks.maxTicksLimit)}return Q}_computeLabelSizes(Q,G,q){let{ctx:X,_longestTextCache:N}=this,B=[],H=[],M=Math.floor(G/IT(G,q)),F=0,W=0,T,z,C,V,A,O,I,j,h,p,s;for(T=0;T<G;T+=M){if(V=Q[T].label,A=this._resolveTickFontOptions(T),X.font=O=A.string,I=N[O]=N[O]||{data:{},gc:[]},j=A.lineHeight,h=p=0,!t0(V)&&!L1(V))h=eZ(X,I.data,I.gc,h,V),p=j;else if(L1(V)){for(z=0,C=V.length;z<C;++z)if(s=V[z],!t0(s)&&!L1(s))h=eZ(X,I.data,I.gc,h,s),p+=j}B.push(h),H.push(p),F=Math.max(h,F),W=Math.max(p,W)}xE(N,G);let o=B.indexOf(F),Q0=H.indexOf(W),i=(a)=>({width:B[a]||0,height:H[a]||0});return{first:i(0),last:i(G-1),widest:i(o),highest:i(Q0),widths:B,heights:H}}getLabelForValue(Q){return Q}getPixelForValue(Q,G){return NaN}getValueForPixel(Q){}getPixelForTick(Q){let G=this.ticks;if(Q<0||Q>G.length-1)return null;return this.getPixelForValue(G[Q].value)}getPixelForDecimal(Q){if(this._reversePixels)Q=1-Q;let G=this._startPixel+Q*this._length;return gR(this._alignToPixels?V2(this.chart,G,0):G)}getDecimalForPixel(Q){let G=(Q-this._startPixel)/this._length;return this._reversePixels?1-G:G}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:Q,max:G}=this;return Q<0&&G<0?G:Q>0&&G>0?Q:0}getContext(Q){let G=this.ticks||[];if(Q>=0&&Q<G.length){let q=G[Q];return q.$context||(q.$context=dE(this.getContext(),Q,q))}return this.$context||(this.$context=mE(this.chart.getContext(),this))}_tickSize(){let Q=this.options.ticks,G=w8(this.labelRotation),q=Math.abs(Math.cos(G)),X=Math.abs(Math.sin(G)),N=this._getLabelSizes(),B=Q.autoSkipPadding||0,H=N?N.widest.width+B:0,M=N?N.highest.height+B:0;return this.isHorizontal()?M*q>H*X?H/q:M/X:M*X<H*q?M/q:H/X}_isVisible(){let Q=this.options.display;if(Q!=="auto")return!!Q;return this.getMatchingVisibleMetas().length>0}_computeGridLineItems(Q){let G=this.axis,q=this.chart,X=this.options,{grid:N,position:B,border:H}=X,M=N.offset,F=this.isHorizontal(),T=this.ticks.length+(M?1:0),z=NQ(N),C=[],V=H.setContext(this.getContext()),A=V.display?V.width:0,O=A/2,I=function(l){return V2(q,l,A)},j,h,p,s,o,Q0,i,a,X0,d,U0,P0;if(B==="top")j=I(this.bottom),Q0=this.bottom-z,a=j-O,d=I(Q.top)+O,P0=Q.bottom;else if(B==="bottom")j=I(this.top),d=Q.top,P0=I(Q.bottom)-O,Q0=j+O,a=this.top+z;else if(B==="left")j=I(this.right),o=this.right-z,i=j-O,X0=I(Q.left)+O,U0=Q.right;else if(B==="right")j=I(this.left),X0=Q.left,U0=I(Q.right)-O,o=j+O,i=this.left+z;else if(G==="x"){if(B==="center")j=I((Q.top+Q.bottom)/2+0.5);else if(o0(B)){let l=Object.keys(B)[0],q0=B[l];j=I(this.chart.scales[l].getPixelForValue(q0))}d=Q.top,P0=Q.bottom,Q0=j+O,a=Q0+z}else if(G==="y"){if(B==="center")j=I((Q.left+Q.right)/2);else if(o0(B)){let l=Object.keys(B)[0],q0=B[l];j=I(this.chart.scales[l].getPixelForValue(q0))}o=j-O,i=o-z,X0=Q.left,U0=Q.right}let L0=p0(X.ticks.maxTicksLimit,T),D0=Math.max(1,Math.ceil(T/L0));for(h=0;h<T;h+=D0){let l=this.getContext(h),q0=N.setContext(l),B0=H.setContext(l),l0=q0.lineWidth,h0=q0.color,v=B0.dash||[],n=B0.dashOffset,H0=q0.tickWidth,M0=q0.tickColor,u0=q0.tickBorderDash||[],k1=q0.tickBorderDashOffset;if(p=uE(this,h,M),p===void 0)continue;if(s=V2(q,p,l0),F)o=i=X0=U0=s;else Q0=a=d=P0=s;C.push({tx1:o,ty1:Q0,tx2:i,ty2:a,x1:X0,y1:d,x2:U0,y2:P0,width:l0,color:h0,borderDash:v,borderDashOffset:n,tickWidth:H0,tickColor:M0,tickBorderDash:u0,tickBorderDashOffset:k1})}return this._ticksLength=T,this._borderValue=j,C}_computeLabelItems(Q){let G=this.axis,q=this.options,{position:X,ticks:N}=q,B=this.isHorizontal(),H=this.ticks,{align:M,crossAlign:F,padding:W,mirror:T}=N,z=NQ(q.grid),C=z+W,V=T?-W:C,A=-w8(this.labelRotation),O=[],I,j,h,p,s,o,Q0,i,a,X0,d,U0,P0="middle";if(X==="top")o=this.bottom-V,Q0=this._getXAxisLabelAlignment();else if(X==="bottom")o=this.top+V,Q0=this._getXAxisLabelAlignment();else if(X==="left"){let D0=this._getYAxisLabelAlignment(z);Q0=D0.textAlign,s=D0.x}else if(X==="right"){let D0=this._getYAxisLabelAlignment(z);Q0=D0.textAlign,s=D0.x}else if(G==="x"){if(X==="center")o=(Q.top+Q.bottom)/2+C;else if(o0(X)){let D0=Object.keys(X)[0],l=X[D0];o=this.chart.scales[D0].getPixelForValue(l)+C}Q0=this._getXAxisLabelAlignment()}else if(G==="y"){if(X==="center")s=(Q.left+Q.right)/2-C;else if(o0(X)){let D0=Object.keys(X)[0],l=X[D0];s=this.chart.scales[D0].getPixelForValue(l)}Q0=this._getYAxisLabelAlignment(z).textAlign}if(G==="y"){if(M==="start")P0="top";else if(M==="end")P0="bottom"}let L0=this._getLabelSizes();for(I=0,j=H.length;I<j;++I){h=H[I],p=h.label;let D0=N.setContext(this.getContext(I));i=this.getPixelForTick(I)+N.labelOffset,a=this._resolveTickFontOptions(I),X0=a.lineHeight,d=L1(p)?p.length:1;let l=d/2,q0=D0.color,B0=D0.textStrokeColor,l0=D0.textStrokeWidth,h0=Q0;if(B){if(s=i,Q0==="inner")if(I===j-1)h0=!this.options.reverse?"right":"left";else if(I===0)h0=!this.options.reverse?"left":"right";else h0="center";if(X==="top")if(F==="near"||A!==0)U0=-d*X0+X0/2;else if(F==="center")U0=-L0.highest.height/2-l*X0+X0;else U0=-L0.highest.height+X0/2;else if(F==="near"||A!==0)U0=X0/2;else if(F==="center")U0=L0.highest.height/2-l*X0;else U0=L0.highest.height-d*X0;if(T)U0*=-1;if(A!==0&&!D0.showLabelBackdrop)s+=X0/2*Math.sin(A)}else o=i,U0=(1-d)*X0/2;let v;if(D0.showLabelBackdrop){let n=w5(D0.backdropPadding),H0=L0.heights[I],M0=L0.widths[I],u0=U0-n.top,k1=0-n.left;switch(P0){case"middle":u0-=H0/2;break;case"bottom":u0-=H0;break}switch(Q0){case"center":k1-=M0/2;break;case"right":k1-=M0;break;case"inner":if(I===j-1)k1-=M0;else if(I>0)k1-=M0/2;break}v={left:k1,top:u0,width:M0+n.width,height:H0+n.height,color:D0.backdropColor}}O.push({label:p,font:a,textOffset:U0,options:{rotation:A,color:q0,strokeColor:B0,strokeWidth:l0,textAlign:h0,textBaseline:P0,translation:[s,o],backdrop:v}})}return O}_getXAxisLabelAlignment(){let{position:Q,ticks:G}=this.options;if(-w8(this.labelRotation))return Q==="top"?"left":"right";let X="center";if(G.align==="start")X="left";else if(G.align==="end")X="right";else if(G.align==="inner")X="inner";return X}_getYAxisLabelAlignment(Q){let{position:G,ticks:{crossAlign:q,mirror:X,padding:N}}=this.options,B=this._getLabelSizes(),H=Q+N,M=B.widest.width,F,W;if(G==="left")if(X)if(W=this.right+N,q==="near")F="left";else if(q==="center")F="center",W+=M/2;else F="right",W+=M;else if(W=this.right-H,q==="near")F="right";else if(q==="center")F="center",W-=M/2;else F="left",W=this.left;else if(G==="right")if(X)if(W=this.left+N,q==="near")F="right";else if(q==="center")F="center",W-=M/2;else F="left",W-=M;else if(W=this.left+H,q==="near")F="left";else if(q==="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,G=this.options.position;if(G==="left"||G==="right")return{top:0,left:this.left,bottom:Q.height,right:this.right};if(G==="top"||G==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:Q.width}}drawBackground(){let{ctx:Q,options:{backgroundColor:G},left:q,top:X,width:N,height:B}=this;if(G)Q.save(),Q.fillStyle=G,Q.fillRect(q,X,N,B),Q.restore()}getLineWidthForValue(Q){let G=this.options.grid;if(!this._isVisible()||!G.display)return 0;let X=this.ticks.findIndex((N)=>N.value===Q);if(X>=0)return G.setContext(this.getContext(X)).lineWidth;return 0}drawGrid(Q){let G=this.options.grid,q=this.ctx,X=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(Q)),N,B,H=(M,F,W)=>{if(!W.width||!W.color)return;q.save(),q.lineWidth=W.width,q.strokeStyle=W.color,q.setLineDash(W.borderDash||[]),q.lineDashOffset=W.borderDashOffset,q.beginPath(),q.moveTo(M.x,M.y),q.lineTo(F.x,F.y),q.stroke(),q.restore()};if(G.display)for(N=0,B=X.length;N<B;++N){let M=X[N];if(G.drawOnChartArea)H({x:M.x1,y:M.y1},{x:M.x2,y:M.y2},M);if(G.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:G,options:{border:q,grid:X}}=this,N=q.setContext(this.getContext()),B=q.display?N.width:0;if(!B)return;let H=X.setContext(this.getContext(0)).lineWidth,M=this._borderValue,F,W,T,z;if(this.isHorizontal())F=V2(Q,this.left,B)-B/2,W=V2(Q,this.right,H)+H/2,T=z=M;else T=V2(Q,this.top,B)-B/2,z=V2(Q,this.bottom,H)+H/2,F=W=M;G.save(),G.lineWidth=N.width,G.strokeStyle=N.color,G.beginPath(),G.moveTo(F,T),G.lineTo(W,z),G.stroke(),G.restore()}drawLabels(Q){if(!this.options.ticks.display)return;let q=this.ctx,X=this._computeLabelArea();if(X)QQ(q,X);let N=this.getLabelItems(Q);for(let B of N){let{options:H,font:M,label:F,textOffset:W}=B;I2(q,F,0,W,M,H)}if(X)JQ(q)}drawTitle(){let{ctx:Q,options:{position:G,title:q,reverse:X}}=this;if(!q.display)return;let N=o1(q.font),B=w5(q.padding),H=q.align,M=N.lineHeight/2;if(G==="bottom"||G==="center"||o0(G)){if(M+=B.bottom,L1(q.text))M+=N.lineHeight*(q.text.length-1)}else M+=B.top;let{titleX:F,titleY:W,maxWidth:T,rotation:z}=cE(this,M,G,H);I2(Q,q.text,0,0,N,{color:q.color,maxWidth:T,rotation:z,textAlign:pE(H,G,X),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,G=Q.ticks&&Q.ticks.z||0,q=p0(Q.grid&&Q.grid.z,-1),X=p0(Q.border&&Q.border.z,0);if(!this._isVisible()||this.draw!==b9.prototype.draw)return[{z:G,draw:(N)=>{this.draw(N)}}];return[{z:q,draw:(N)=>{this.drawBackground(),this.drawGrid(N),this.drawTitle()}},{z:X,draw:()=>{this.drawBorder()}},{z:G,draw:(N)=>{this.drawLabels(N)}}]}getMatchingVisibleMetas(Q){let G=this.chart.getSortedVisibleDatasetMetas(),q=this.axis+"AxisID",X=[],N,B;for(N=0,B=G.length;N<B;++N){let H=G[N];if(H[q]===this.id&&(!Q||H.type===Q))X.push(H)}return X}_resolveTickFontOptions(Q){let G=this.options.ticks.setContext(this.getContext(Q));return o1(G.font)}_maxDigits(){let Q=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/Q}}class KQ{constructor(Q,G,q){this.type=Q,this.scope=G,this.override=q,this.items=Object.create(null)}isForType(Q){return Object.prototype.isPrototypeOf.call(this.type.prototype,Q.prototype)}register(Q){let G=Object.getPrototypeOf(Q),q;if(sE(G))q=this.register(G);let X=this.items,N=Q.id,B=this.scope+"."+N;if(!N)throw Error("class does not have id: "+Q);if(N in X)return B;if(X[N]=Q,lE(Q,B,q),this.override)b1.override(Q.id,Q.overrides);return B}get(Q){return this.items[Q]}unregister(Q){let G=this.items,q=Q.id,X=this.scope;if(q in G)delete G[q];if(X&&q in b1[X]){if(delete b1[X][q],this.override)delete _2[q]}}}function lE(Q,G,q){let X=e7(Object.create(null),[q?b1.get(q):{},b1.get(G),Q.defaults]);if(b1.set(G,X),Q.defaultRoutes)rE(G,Q.defaultRoutes);if(Q.descriptors)b1.describe(G,Q.descriptors)}function rE(Q,G){Object.keys(G).forEach((q)=>{let X=q.split("."),N=X.pop(),B=[Q].concat(X).join("."),H=G[q].split("."),M=H.pop(),F=H.join(".");b1.route(B,N,F,M)})}function sE(Q){return"id"in Q&&"defaults"in Q}class wz{constructor(){this.controllers=new KQ(h3,"datasets",!0),this.elements=new KQ(P8,"elements"),this.plugins=new KQ(Object,"plugins"),this.scales=new KQ(b9,"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,G,q){[...G].forEach((X)=>{let N=q||this._getRegistryForType(X);if(q||N.isForType(X)||N===this.plugins&&X.id)this._exec(Q,N,X);else N1(X,(B)=>{let H=q||this._getRegistryForType(B);this._exec(Q,H,B)})})}_exec(Q,G,q){let X=z3(Q);T1(q["before"+X],[],q),G[Q](q),T1(q["after"+X],[],q)}_getRegistryForType(Q){for(let G=0;G<this._typedRegistries.length;G++){let q=this._typedRegistries[G];if(q.isForType(Q))return q}return this.plugins}_get(Q,G,q){let X=G.get(Q);if(X===void 0)throw Error('"'+Q+'" is not a registered '+q+".");return X}}var k4=new wz;class Wz{constructor(){this._init=void 0}notify(Q,G,q,X){if(G==="beforeInit")this._init=this._createDescriptors(Q,!0),this._notify(this._init,Q,"install");if(this._init===void 0)return;let N=X?this._descriptors(Q).filter(X):this._descriptors(Q),B=this._notify(N,Q,G,q);if(G==="afterDestroy")this._notify(N,Q,"stop"),this._notify(this._init,Q,"uninstall"),this._init=void 0;return B}_notify(Q,G,q,X){X=X||{};for(let N of Q){let B=N.plugin,H=B[q],M=[G,X,N.options];if(T1(H,M,B)===!1&&X.cancelable)return!1}return!0}invalidate(){if(!t0(this._cache))this._oldCache=this._cache,this._cache=void 0}_descriptors(Q){if(this._cache)return this._cache;let G=this._cache=this._createDescriptors(Q);return this._notifyStateChanges(Q),G}_createDescriptors(Q,G){let q=Q&&Q.config,X=p0(q.options&&q.options.plugins,{}),N=nE(q);return X===!1&&!G?[]:aE(Q,N,X,G)}_notifyStateChanges(Q){let G=this._oldCache||[],q=this._cache,X=(N,B)=>N.filter((H)=>!B.some((M)=>H.plugin.id===M.plugin.id));this._notify(X(G,q),Q,"stop"),this._notify(X(q,G),Q,"start")}}function nE(Q){let G={},q=[],X=Object.keys(k4.plugins.items);for(let B=0;B<X.length;B++)q.push(k4.getPlugin(X[B]));let N=Q.plugins||[];for(let B=0;B<N.length;B++){let H=N[B];if(q.indexOf(H)===-1)q.push(H),G[H.id]=!0}return{plugins:q,localIds:G}}function oE(Q,G){if(!G&&Q===!1)return null;if(Q===!0)return{};return Q}function aE(Q,{plugins:G,localIds:q},X,N){let B=[],H=Q.getContext();for(let M of G){let F=M.id,W=oE(X[F],N);if(W===null)continue;B.push({plugin:M,options:iE(Q.config,{plugin:M,local:q[F]},W,H)})}return B}function iE(Q,{plugin:G,local:q},X,N){let B=Q.pluginScopeKeys(G),H=Q.getOptionScopes(X,B);if(q&&G.defaults)H.push(G.defaults);return Q.createResolver(H,N,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function xU(Q,G){let q=b1.datasets[Q]||{};return((G.datasets||{})[Q]||{}).indexAxis||G.indexAxis||q.indexAxis||"x"}function tE(Q,G){let q=Q;if(Q==="_index_")q=G;else if(Q==="_value_")q=G==="x"?"y":"x";return q}function eE(Q,G){return Q===G?"_index_":"_value_"}function AT(Q){if(Q==="x"||Q==="y"||Q==="r")return Q}function $A(Q){if(Q==="top"||Q==="bottom")return"x";if(Q==="left"||Q==="right")return"y"}function mU(Q,...G){if(AT(Q))return Q;for(let q of G){let X=q.axis||$A(q.position)||Q.length>1&&AT(Q[0].toLowerCase());if(X)return X}throw Error(`Cannot determine type of '${Q}' axis. Please provide 'axis' or 'position' option.`)}function ST(Q,G,q){if(q[G+"AxisID"]===Q)return{axis:G}}function ZA(Q,G){if(G.data&&G.data.datasets){let q=G.data.datasets.filter((X)=>X.xAxisID===Q||X.yAxisID===Q);if(q.length)return ST(Q,"x",q[0])||ST(Q,"y",q[0])}return{}}function QA(Q,G){let q=_2[Q.type]||{scales:{}},X=G.scales||{},N=xU(Q.type,G),B=Object.create(null);return Object.keys(X).forEach((H)=>{let M=X[H];if(!o0(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=mU(H,M,ZA(H,Q),b1.scales[M.type]),W=eE(F,N),T=q.scales||{};B[H]=Z$(Object.create(null),[{axis:F},M,T[F],T[W]])}),Q.data.datasets.forEach((H)=>{let M=H.type||Q.type,F=H.indexAxis||xU(M,G),T=(_2[M]||{}).scales||{};Object.keys(T).forEach((z)=>{let C=tE(z,F),V=H[C+"AxisID"]||C;B[V]=B[V]||Object.create(null),Z$(B[V],[{axis:C},X[V],T[z]])})}),Object.keys(B).forEach((H)=>{let M=B[H];Z$(M,[b1.scales[M.type],b1.scale])}),B}function Rz(Q){let G=Q.options||(Q.options={});G.plugins=p0(G.plugins,{}),G.scales=QA(Q,G)}function Tz(Q){return Q=Q||{},Q.datasets=Q.datasets||[],Q.labels=Q.labels||[],Q}function JA(Q){return Q=Q||{},Q.data=Tz(Q.data),Rz(Q),Q}var DT=new Map,zz=new Set;function v3(Q,G){let q=DT.get(Q);if(!q)q=G(),DT.set(Q,q),zz.add(q);return q}var UQ=(Q,G,q)=>{let X=S9(G,q);if(X!==void 0)Q.add(X)};class Pz{constructor(Q){this._config=JA(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=Tz(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(),Rz(Q)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(Q){return v3(Q,()=>[[`datasets.${Q}`,""]])}datasetAnimationScopeKeys(Q,G){return v3(`${Q}.transition.${G}`,()=>[[`datasets.${Q}.transitions.${G}`,`transitions.${G}`],[`datasets.${Q}`,""]])}datasetElementScopeKeys(Q,G){return v3(`${Q}-${G}`,()=>[[`datasets.${Q}.elements.${G}`,`datasets.${Q}`,`elements.${G}`,""]])}pluginScopeKeys(Q){let G=Q.id,q=this.type;return v3(`${q}-plugin-${G}`,()=>[[`plugins.${G}`,...Q.additionalOptionScopes||[]]])}_cachedScopes(Q,G){let q=this._scopeCache,X=q.get(Q);if(!X||G)X=new Map,q.set(Q,X);return X}getOptionScopes(Q,G,q){let{options:X,type:N}=this,B=this._cachedScopes(Q,q),H=B.get(G);if(H)return H;let M=new Set;G.forEach((W)=>{if(Q)M.add(Q),W.forEach((T)=>UQ(M,Q,T));W.forEach((T)=>UQ(M,X,T)),W.forEach((T)=>UQ(M,_2[N]||{},T)),W.forEach((T)=>UQ(M,b1,T)),W.forEach((T)=>UQ(M,V3,T))});let F=Array.from(M);if(F.length===0)F.push(Object.create(null));if(zz.has(G))B.set(G,F);return F}chartOptionScopes(){let{options:Q,type:G}=this;return[Q,_2[G]||{},b1.datasets[G]||{},{type:G},b1,V3]}resolveNamedOptions(Q,G,q,X=[""]){let N={$shared:!0},{resolver:B,subPrefixes:H}=jT(this._resolverCache,Q,X),M=B;if(qA(B,G)){N.$shared=!1,q=M8(q)?q():q;let F=this.createResolver(Q,q,H);M=A9(B,q,F)}for(let F of G)N[F]=M[F];return N}createResolver(Q,G,q=[""],X){let{resolver:N}=jT(this._resolverCache,Q,q);return o0(G)?A9(N,G,void 0,X):N}}function jT(Q,G,q){let X=Q.get(G);if(!X)X=new Map,Q.set(G,X);let N=q.join(),B=X.get(N);if(!B)B={resolver:O3(G,q),subPrefixes:q.filter((M)=>!M.toLowerCase().includes("hover"))},X.set(N,B);return B}var GA=(Q)=>o0(Q)&&Object.getOwnPropertyNames(Q).some((G)=>M8(Q[G]));function qA(Q,G){let{isScriptable:q,isIndexable:X}=zU(Q);for(let N of G){let B=q(N),H=X(N),M=(H||B)&&Q[N];if(B&&(M8(M)||GA(M))||H&&L1(M))return!0}return!1}var XA="4.5.1",YA=["top","bottom","left","right","chartArea"];function vT(Q,G){return Q==="top"||Q==="bottom"||YA.indexOf(Q)===-1&&G==="x"}function bT(Q,G){return function(q,X){return q[Q]===X[Q]?q[G]-X[G]:q[Q]-X[Q]}}function kT(Q){let G=Q.chart,q=G.options.animation;G.notifyPlugins("afterRender"),T1(q&&q.onComplete,[Q],G)}function NA(Q){let G=Q.chart,q=G.options.animation;T1(q&&q.onProgress,[Q],G)}function Cz(Q){if(E3()&&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 y3={},fT=(Q)=>{let G=Cz(Q);return Object.values(y3).filter((q)=>q.canvas===G).pop()};function UA(Q,G,q){let X=Object.keys(Q);for(let N of X){let B=+N;if(B>=G){let H=Q[N];if(delete Q[N],q>0||B>G)Q[B+q]=H}}}function BA(Q,G,q,X){if(!q||Q.type==="mouseout")return null;if(X)return G;return Q}class k9{static defaults=b1;static instances=y3;static overrides=_2;static registry=k4;static version=XA;static getChart=fT;static register(...Q){k4.add(...Q),yT()}static unregister(...Q){k4.remove(...Q),yT()}constructor(Q,G){let q=this.config=new Pz(G),X=Cz(Q),N=fT(X);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 B=q.createResolver(q.chartOptionScopes(),this.getContext());this.platform=new(q.platform||jE(X)),this.platform.updateConfig(q);let H=this.platform.acquireContext(X,B.aspectRatio),M=H&&H.canvas,F=M&&M.height,W=M&&M.width;if(this.id=DR(),this.ctx=H,this.canvas=M,this.width=W,this.height=F,this._options=B,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 Wz,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=dR((T)=>this.update(T),B.resizeDelay||0),this._dataChanges=[],y3[this.id]=this,!H||!M){console.error("Failed to create chart: can't acquire context from the given item");return}if(T8.listen(this,"complete",kT),T8.listen(this,"progress",NA),this._initialize(),this.attached)this.update()}get aspectRatio(){let{options:{aspectRatio:Q,maintainAspectRatio:G},width:q,height:X,_aspectRatio:N}=this;if(!t0(Q))return Q;if(G&&N)return N;return X?q/X: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 k4}_initialize(){if(this.notifyPlugins("beforeInit"),this.options.responsive)this.resize();else LU(this,this.options.devicePixelRatio);return this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return wU(this.canvas,this.ctx),this}stop(){return T8.stop(this),this}resize(Q,G){if(!T8.running(this))this._resize(Q,G);else this._resizeBeforeDraw={width:Q,height:G}}_resize(Q,G){let q=this.options,X=this.canvas,N=q.maintainAspectRatio&&this.aspectRatio,B=this.platform.getMaximumSize(X,Q,G,N),H=q.devicePixelRatio||this.platform.getDevicePixelRatio(),M=this.width?"resize":"attach";if(this.width=B.width,this.height=B.height,this._aspectRatio=this.aspectRatio,!LU(this,H,!0))return;if(this.notifyPlugins("resize",{size:B}),T1(q.onResize,[this,B],this),this.attached){if(this._doResize(M))this.render()}}ensureScalesHaveIDs(){let G=this.options.scales||{};N1(G,(q,X)=>{q.id=X})}buildOrUpdateScales(){let Q=this.options,G=Q.scales,q=this.scales,X=Object.keys(q).reduce((B,H)=>{return B[H]=!1,B},{}),N=[];if(G)N=N.concat(Object.keys(G).map((B)=>{let H=G[B],M=mU(B,H),F=M==="r",W=M==="x";return{options:H,dposition:F?"chartArea":W?"bottom":"left",dtype:F?"radialLinear":W?"category":"linear"}}));N1(N,(B)=>{let H=B.options,M=H.id,F=mU(M,H),W=p0(H.type,B.dtype);if(H.position===void 0||vT(H.position,F)!==vT(B.dposition))H.position=B.dposition;X[M]=!0;let T=null;if(M in q&&q[M].type===W)T=q[M];else T=new(k4.getScale(W))({id:M,type:W,ctx:this.ctx,chart:this}),q[T.id]=T;T.init(H,Q)}),N1(X,(B,H)=>{if(!B)delete q[H]}),N1(q,(B)=>{y6.configure(this,B,B.options),y6.addBox(this,B)})}_updateMetasets(){let Q=this._metasets,G=this.data.datasets.length,q=Q.length;if(Q.sort((X,N)=>X.index-N.index),q>G){for(let X=G;X<q;++X)this._destroyDatasetMeta(X);Q.splice(G,q-G)}this._sortedMetasets=Q.slice(0).sort(bT("order","index"))}_removeUnreferencedMetasets(){let{_metasets:Q,data:{datasets:G}}=this;if(Q.length>G.length)delete this._stacks;Q.forEach((q,X)=>{if(G.filter((N)=>N===q._dataset).length===0)this._destroyDatasetMeta(X)})}buildOrUpdateControllers(){let Q=[],G=this.data.datasets,q,X;this._removeUnreferencedMetasets();for(q=0,X=G.length;q<X;q++){let N=G[q],B=this.getDatasetMeta(q),H=N.type||this.config.type;if(B.type&&B.type!==H)this._destroyDatasetMeta(q),B=this.getDatasetMeta(q);if(B.type=H,B.indexAxis=N.indexAxis||xU(H,this.options),B.order=N.order||0,B.index=q,B.label=""+N.label,B.visible=this.isDatasetVisible(q),B.controller)B.controller.updateIndex(q),B.controller.linkScales();else{let M=k4.getController(H),{datasetElementType:F,dataElementType:W}=b1.datasets[H];Object.assign(M,{dataElementType:k4.getElement(W),datasetElementType:F&&k4.getElement(F)}),B.controller=new M(this,q),Q.push(B.controller)}}return this._updateMetasets(),Q}_resetElements(){N1(this.data.datasets,(Q,G)=>{this.getDatasetMeta(G).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(Q){let G=this.config;G.update();let q=this._options=G.createResolver(G.chartOptionScopes(),this.getContext()),X=this._animationsDisabled=!q.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 B=0;for(let F=0,W=this.data.datasets.length;F<W;F++){let{controller:T}=this.getDatasetMeta(F),z=!X&&N.indexOf(T)===-1;T.buildOrUpdateElements(z),B=Math.max(+T.getMaxOverflow(),B)}if(B=this._minPadding=q.layout.autoPadding?B:0,this._updateLayout(B),!X)N1(N,(F)=>{F.reset()});this._updateDatasets(Q),this.notifyPlugins("afterUpdate",{mode:Q}),this._layers.sort(bT("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(){N1(this.scales,(Q)=>{y6.removeBox(this,Q)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let Q=this.options,G=new Set(Object.keys(this._listeners)),q=new Set(Q.events);if(!GU(G,q)||!!this._responsiveListeners!==Q.responsive)this.unbindEvents(),this.bindEvents()}_updateHiddenIndices(){let{_hiddenIndices:Q}=this,G=this._getUniformDataChanges()||[];for(let{method:q,start:X,count:N}of G){let B=q==="_removeElements"?-N:N;UA(Q,X,B)}}_getUniformDataChanges(){let Q=this._dataChanges;if(!Q||!Q.length)return;this._dataChanges=[];let G=this.data.datasets.length,q=(N)=>new Set(Q.filter((B)=>B[0]===N).map((B,H)=>H+","+B.splice(1).join(","))),X=q(0);for(let N=1;N<G;N++)if(!GU(X,q(N)))return;return Array.from(X).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;y6.update(this,this.width,this.height,Q);let G=this.chartArea,q=G.width<=0||G.height<=0;this._layers=[],N1(this.boxes,(X)=>{if(q&&X.position==="chartArea")return;if(X.configure)X.configure();this._layers.push(...X._layers())},this),this._layers.forEach((X,N)=>{X._idx=N}),this.notifyPlugins("afterLayout")}_updateDatasets(Q){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:Q,cancelable:!0})===!1)return;for(let G=0,q=this.data.datasets.length;G<q;++G)this.getDatasetMeta(G).controller.configure();for(let G=0,q=this.data.datasets.length;G<q;++G)this._updateDataset(G,M8(Q)?Q({datasetIndex:G}):Q);this.notifyPlugins("afterDatasetsUpdate",{mode:Q})}_updateDataset(Q,G){let q=this.getDatasetMeta(Q),X={meta:q,index:Q,mode:G,cancelable:!0};if(this.notifyPlugins("beforeDatasetUpdate",X)===!1)return;q.controller._update(G),X.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",X)}render(){if(this.notifyPlugins("beforeRender",{cancelable:!0})===!1)return;if(T8.has(this)){if(this.attached&&!T8.running(this))T8.start(this)}else this.draw(),kT({chart:this})}draw(){let Q;if(this._resizeBeforeDraw){let{width:q,height:X}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(q,X)}if(this.clear(),this.width<=0||this.height<=0)return;if(this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let G=this._layers;for(Q=0;Q<G.length&&G[Q].z<=0;++Q)G[Q].draw(this.chartArea);this._drawDatasets();for(;Q<G.length;++Q)G[Q].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(Q){let G=this._sortedMetasets,q=[],X,N;for(X=0,N=G.length;X<N;++X){let B=G[X];if(!Q||B.visible)q.push(B)}return q}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let Q=this.getSortedVisibleDatasetMetas();for(let G=Q.length-1;G>=0;--G)this._drawDataset(Q[G]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(Q){let G=this.ctx,q={meta:Q,index:Q.index,cancelable:!0},X=AU(this,Q);if(this.notifyPlugins("beforeDatasetDraw",q)===!1)return;if(X)QQ(G,X);if(Q.controller.draw(),X)JQ(G);q.cancelable=!1,this.notifyPlugins("afterDatasetDraw",q)}isPointInArea(Q){return j4(Q,this.chartArea,this._minPadding)}getElementsAtEventForMode(Q,G,q,X){let N=HE.modes[G];if(typeof N==="function")return N(this,Q,q,X);return[]}getDatasetMeta(Q){let G=this.data.datasets[Q],q=this._metasets,X=q.filter((N)=>N&&N._dataset===G).pop();if(!X)X={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:G&&G.order||0,index:Q,_dataset:G,_parsed:[],_sorted:!1},q.push(X);return X}getContext(){return this.$context||(this.$context=R8(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(Q){let G=this.data.datasets[Q];if(!G)return!1;let q=this.getDatasetMeta(Q);return typeof q.hidden==="boolean"?!q.hidden:!G.hidden}setDatasetVisibility(Q,G){let q=this.getDatasetMeta(Q);q.hidden=!G}toggleDataVisibility(Q){this._hiddenIndices[Q]=!this._hiddenIndices[Q]}getDataVisibility(Q){return!this._hiddenIndices[Q]}_updateVisibility(Q,G,q){let X=q?"show":"hide",N=this.getDatasetMeta(Q),B=N.controller._resolveAnimations(void 0,X);if(Q$(G))N.data[G].hidden=!q,this.update();else this.setDatasetVisibility(Q,q),B.update(N,{visible:q}),this.update((H)=>H.datasetIndex===Q?X:void 0)}hide(Q,G){this._updateVisibility(Q,G,!1)}show(Q,G){this._updateVisibility(Q,G,!0)}_destroyDatasetMeta(Q){let G=this._metasets[Q];if(G&&G.controller)G.controller._destroy();delete this._metasets[Q]}_stop(){let Q,G;this.stop(),T8.remove(this);for(Q=0,G=this.data.datasets.length;Q<G;++Q)this._destroyDatasetMeta(Q)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:Q,ctx:G}=this;if(this._stop(),this.config.clearCache(),Q)this.unbindEvents(),wU(Q,G),this.platform.releaseContext(G),this.canvas=null,this.ctx=null;delete y3[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,G=this.platform,q=(N,B)=>{G.addEventListener(this,N,B),Q[N]=B},X=(N,B,H)=>{N.offsetX=B,N.offsetY=H,this._eventHandler(N)};N1(this.options.events,(N)=>q(N,X))}bindResponsiveEvents(){if(!this._responsiveListeners)this._responsiveListeners={};let Q=this._responsiveListeners,G=this.platform,q=(M,F)=>{G.addEventListener(this,M,F),Q[M]=F},X=(M,F)=>{if(Q[M])G.removeEventListener(this,M,F),delete Q[M]},N=(M,F)=>{if(this.canvas)this.resize(M,F)},B,H=()=>{X("attach",H),this.attached=!0,this.resize(),q("resize",N),q("detach",B)};if(B=()=>{this.attached=!1,X("resize",N),this._stop(),this._resize(0,0),q("attach",H)},G.isAttached(this.canvas))H();else B()}unbindEvents(){N1(this._listeners,(Q,G)=>{this.platform.removeEventListener(this,G,Q)}),this._listeners={},N1(this._responsiveListeners,(Q,G)=>{this.platform.removeEventListener(this,G,Q)}),this._responsiveListeners=void 0}updateHoverStyle(Q,G,q){let X=q?"set":"remove",N,B,H,M;if(G==="dataset")N=this.getDatasetMeta(Q[0].datasetIndex),N.controller["_"+X+"DatasetHoverStyle"]();for(H=0,M=Q.length;H<M;++H){B=Q[H];let F=B&&this.getDatasetMeta(B.datasetIndex).controller;if(F)F[X+"HoverStyle"](B.element,B.datasetIndex,B.index)}}getActiveElements(){return this._active||[]}setActiveElements(Q){let G=this._active||[],q=Q.map(({datasetIndex:N,index:B})=>{let H=this.getDatasetMeta(N);if(!H)throw Error("No dataset found at index "+N);return{datasetIndex:N,element:H.data[B],index:B}});if(!$Q(q,G))this._active=q,this._lastEvent=null,this._updateHoverStyles(q,G)}notifyPlugins(Q,G,q){return this._plugins.notify(this,Q,G,q)}isPluginEnabled(Q){return this._plugins._cache.filter((G)=>G.plugin.id===Q).length===1}_updateHoverStyles(Q,G,q){let X=this.options.hover,N=(M,F)=>M.filter((W)=>!F.some((T)=>W.datasetIndex===T.datasetIndex&&W.index===T.index)),B=N(G,Q),H=q?Q:N(Q,G);if(B.length)this.updateHoverStyle(B,X.mode,!1);if(H.length&&X.mode)this.updateHoverStyle(H,X.mode,!0)}_eventHandler(Q,G){let q={event:Q,replay:G,cancelable:!0,inChartArea:this.isPointInArea(Q)},X=(B)=>(B.options.events||this.options.events).includes(Q.native.type);if(this.notifyPlugins("beforeEvent",q,X)===!1)return;let N=this._handleEvent(Q,G,q.inChartArea);if(q.cancelable=!1,this.notifyPlugins("afterEvent",q,X),N||q.changed)this.render();return this}_handleEvent(Q,G,q){let{_active:X=[],options:N}=this,B=G,H=this._getActiveElements(Q,X,q,B),M=bR(Q),F=BA(Q,this._lastEvent,q,M);if(q){if(this._lastEvent=null,T1(N.onHover,[Q,H,this],this),M)T1(N.onClick,[Q,H,this],this)}let W=!$Q(H,X);if(W||G)this._active=H,this._updateHoverStyles(H,X,G);return this._lastEvent=F,W}_getActiveElements(Q,G,q,X){if(Q.type==="mouseout")return[];if(!q)return G;let N=this.options.hover;return this.getElementsAtEventForMode(Q,N.mode,N,X)}}function yT(){return N1(k9.instances,(Q)=>Q._plugins.invalidate())}function Lz(Q,G,q=G){Q.lineCap=p0(q.borderCapStyle,G.borderCapStyle),Q.setLineDash(p0(q.borderDash,G.borderDash)),Q.lineDashOffset=p0(q.borderDashOffset,G.borderDashOffset),Q.lineJoin=p0(q.borderJoinStyle,G.borderJoinStyle),Q.lineWidth=p0(q.borderWidth,G.borderWidth),Q.strokeStyle=p0(q.borderColor,G.borderColor)}function KA(Q,G,q){Q.lineTo(q.x,q.y)}function HA(Q){if(Q.stepped)return oR;if(Q.tension||Q.cubicInterpolationMode==="monotone")return aR;return KA}function _z(Q,G,q={}){let X=Q.length,{start:N=0,end:B=X-1}=q,{start:H,end:M}=G,F=Math.max(N,H),W=Math.min(B,M),T=N<H&&B<H||N>M&&B>M;return{count:X,start:F,loop:G.loop,ilen:W<F&&!T?X+W-F:W-F}}function MA(Q,G,q,X){let{points:N,options:B}=G,{count:H,start:M,loop:F,ilen:W}=_z(N,q,X),T=HA(B),{move:z=!0,reverse:C}=X||{},V,A,O;for(V=0;V<=W;++V){if(A=N[(M+(C?W-V:V))%H],A.skip)continue;else if(z)Q.moveTo(A.x,A.y),z=!1;else T(Q,O,A,C,B.stepped);O=A}if(F)A=N[(M+(C?W:0))%H],T(Q,O,A,C,B.stepped);return!!F}function FA(Q,G,q,X){let N=G.points,{count:B,start:H,ilen:M}=_z(N,q,X),{move:F=!0,reverse:W}=X||{},T=0,z=0,C,V,A,O,I,j,h=(s)=>(H+(W?M-s:s))%B,p=()=>{if(O!==I)Q.lineTo(T,I),Q.lineTo(T,O),Q.lineTo(T,j)};if(F)V=N[h(0)],Q.moveTo(V.x,V.y);for(C=0;C<=M;++C){if(V=N[h(C)],V.skip)continue;let{x:s,y:o}=V,Q0=s|0;if(Q0===A){if(o<O)O=o;else if(o>I)I=o;T=(z*T+s)/++z}else p(),Q.lineTo(s,o),A=Q0,z=0,O=I=o;j=o}p()}function dU(Q){let G=Q.options,q=G.borderDash&&G.borderDash.length;return!Q._decimated&&!Q._loop&&!G.tension&&G.cubicInterpolationMode!=="monotone"&&!G.stepped&&!q?FA:MA}function wA(Q){if(Q.stepped)return qT;if(Q.tension||Q.cubicInterpolationMode==="monotone")return XT;return P2}function WA(Q,G,q,X){let N=G._path;if(!N){if(N=G._path=new Path2D,G.path(N,q,X))N.closePath()}Lz(Q,G.options),Q.stroke(N)}function RA(Q,G,q,X){let{segments:N,options:B}=G,H=dU(G);for(let M of N){if(Lz(Q,B,M.style),Q.beginPath(),H(Q,G,M,{start:q,end:q+X-1}))Q.closePath();Q.stroke()}}var TA=typeof Path2D==="function";function zA(Q,G,q,X){if(TA&&!G.options.segment)WA(Q,G,q,X);else RA(Q,G,q,X)}class X$ extends P8{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,G){let q=this.options;if((q.tension||q.cubicInterpolationMode==="monotone")&&!q.stepped&&!this._pointsUpdated){let X=q.spanGaps?this._loop:this._fullLoop;QT(this._points,q,Q,X,G),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=NT(this,this.options.segment))}first(){let Q=this.segments,G=this.points;return Q.length&&G[Q[0].start]}last(){let Q=this.segments,G=this.points,q=Q.length;return q&&G[Q[q-1].end]}interpolate(Q,G){let q=this.options,X=Q[G],N=this.points,B=EU(this,{property:G,start:X,end:X});if(!B.length)return;let H=[],M=wA(q),F,W;for(F=0,W=B.length;F<W;++F){let{start:T,end:z}=B[F],C=N[T],V=N[z];if(C===V){H.push(C);continue}let A=Math.abs((X-C[G])/(V[G]-C[G])),O=M(C,V,A,q.stepped);O[G]=Q[G],H.push(O)}return H.length===1?H[0]:H}pathSegment(Q,G,q){return dU(this)(Q,this,G,q)}path(Q,G,q){let X=this.segments,N=dU(this),B=this._loop;G=G||0,q=q||this.points.length-G;for(let H of X)B&=N(Q,this,H,{start:G,end:G+q-1});return!!B}draw(Q,G,q,X){let N=this.options||{};if((this.points||[]).length&&N.borderWidth)Q.save(),zA(Q,this,q,X),Q.restore();if(this.animated)this._pointsUpdated=!1,this._path=void 0}}function gT(Q,G,q,X){let N=Q.options,{[q]:B}=Q.getProps([q],X);return Math.abs(G-B)<N.radius+N.hitRadius}class eU extends P8{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,G,q){let X=this.options,{x:N,y:B}=this.getProps(["x","y"],q);return Math.pow(Q-N,2)+Math.pow(G-B,2)<Math.pow(X.hitRadius+X.radius,2)}inXRange(Q,G){return gT(this,Q,"x",G)}inYRange(Q,G){return gT(this,Q,"y",G)}getCenterPoint(Q){let{x:G,y:q}=this.getProps(["x","y"],Q);return{x:G,y:q}}size(Q){Q=Q||this.options||{};let G=Q.radius||0;G=Math.max(G,G&&Q.hoverRadius||0);let q=G&&Q.borderWidth||0;return(G+q)*2}draw(Q,G){let q=this.options;if(this.skip||q.radius<0.1||!j4(this,G,this.size(q)/2))return;Q.strokeStyle=q.borderColor,Q.lineWidth=q.borderWidth,Q.fillStyle=q.backgroundColor,I3(Q,q,this.x,this.y)}getRange(){let Q=this.options||{};return Q.radius+Q.hitRadius}}function Vz(Q,G){let{x:q,y:X,base:N,width:B,height:H}=Q.getProps(["x","y","base","width","height"],G),M,F,W,T,z;if(Q.horizontal)z=H/2,M=Math.min(q,N),F=Math.max(q,N),W=X-z,T=X+z;else z=B/2,M=q-z,F=q+z,W=Math.min(X,N),T=Math.max(X,N);return{left:M,top:W,right:F,bottom:T}}function A2(Q,G,q,X){return Q?0:r5(G,q,X)}function PA(Q,G,q){let X=Q.options.borderWidth,N=Q.borderSkipped,B=TU(X);return{t:A2(N.top,B.top,0,q),r:A2(N.right,B.right,0,G),b:A2(N.bottom,B.bottom,0,q),l:A2(N.left,B.left,0,G)}}function CA(Q,G,q){let{enableBorderRadius:X}=Q.getProps(["enableBorderRadius"]),N=Q.options.borderRadius,B=O2(N),H=Math.min(G,q),M=Q.borderSkipped,F=X||o0(N);return{topLeft:A2(!F||M.top||M.left,B.topLeft,0,H),topRight:A2(!F||M.top||M.right,B.topRight,0,H),bottomLeft:A2(!F||M.bottom||M.left,B.bottomLeft,0,H),bottomRight:A2(!F||M.bottom||M.right,B.bottomRight,0,H)}}function LA(Q){let G=Vz(Q),q=G.right-G.left,X=G.bottom-G.top,N=PA(Q,q/2,X/2),B=CA(Q,q/2,X/2);return{outer:{x:G.left,y:G.top,w:q,h:X,radius:B},inner:{x:G.left+N.l,y:G.top+N.t,w:q-N.l-N.r,h:X-N.t-N.b,radius:{topLeft:Math.max(0,B.topLeft-Math.max(N.t,N.l)),topRight:Math.max(0,B.topRight-Math.max(N.t,N.r)),bottomLeft:Math.max(0,B.bottomLeft-Math.max(N.b,N.l)),bottomRight:Math.max(0,B.bottomRight-Math.max(N.b,N.r))}}}}function yU(Q,G,q,X){let N=G===null,B=q===null,M=Q&&!(N&&B)&&Vz(Q,X);return M&&(N||W8(G,M.left,M.right))&&(B||W8(q,M.top,M.bottom))}function _A(Q){return Q.topLeft||Q.topRight||Q.bottomLeft||Q.bottomRight}function VA(Q,G){Q.rect(G.x,G.y,G.w,G.h)}function gU(Q,G,q={}){let X=Q.x!==q.x?-G:0,N=Q.y!==q.y?-G:0,B=(Q.x+Q.w!==q.x+q.w?G:0)-X,H=(Q.y+Q.h!==q.y+q.h?G:0)-N;return{x:Q.x+X,y:Q.y+N,w:Q.w+B,h:Q.h+H,radius:Q.radius}}class $B extends P8{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:G,options:{borderColor:q,backgroundColor:X}}=this,{inner:N,outer:B}=LA(this),H=_A(B.radius)?q$:VA;if(Q.save(),B.w!==N.w||B.h!==N.h)Q.beginPath(),H(Q,gU(B,G,N)),Q.clip(),H(Q,gU(N,-G,B)),Q.fillStyle=q,Q.fill("evenodd");Q.beginPath(),H(Q,gU(N,G)),Q.fillStyle=X,Q.fill(),Q.restore()}inRange(Q,G,q){return yU(this,Q,G,q)}inXRange(Q,G){return yU(this,Q,null,G)}inYRange(Q,G){return yU(this,null,Q,G)}getCenterPoint(Q){let{x:G,y:q,base:X,horizontal:N}=this.getProps(["x","y","base","horizontal"],Q);return{x:N?(G+X)/2:G,y:N?q:(q+X)/2}}getRange(Q){return Q==="x"?this.width/2:this.height/2}}function IA(Q,G,q){let{segments:X,points:N}=Q,B=G.points,H=[];for(let M of X){let{start:F,end:W}=M;W=u3(F,W,N);let T=pU(q,N[F],N[W],M.loop);if(!G.segments){H.push({source:M,target:T,start:N[F],end:N[W]});continue}let z=EU(G,T);for(let C of z){let V=pU(q,B[C.start],B[C.end],C.loop),A=OU(M,N,V);for(let O of A)H.push({source:O,target:C,start:{[q]:hT(T,V,"start",Math.max)},end:{[q]:hT(T,V,"end",Math.min)}})}}return H}function pU(Q,G,q,X){if(X)return;let N=G[Q],B=q[Q];if(Q==="angle")N=p5(N),B=p5(B);return{property:Q,start:N,end:B}}function OA(Q,G){let{x:q=null,y:X=null}=Q||{},N=G.points,B=[];return G.segments.forEach(({start:H,end:M})=>{M=u3(H,M,N);let F=N[H],W=N[M];if(X!==null)B.push({x:F.x,y:X}),B.push({x:W.x,y:X});else if(q!==null)B.push({x:q,y:F.y}),B.push({x:q,y:W.y})}),B}function u3(Q,G,q){for(;G>Q;G--){let X=q[G];if(!isNaN(X.x)&&!isNaN(X.y))break}return G}function hT(Q,G,q,X){if(Q&&G)return X(Q[q],G[q]);return Q?Q[q]:G?G[q]:0}function Iz(Q,G){let q=[],X=!1;if(L1(Q))X=!0,q=Q;else q=OA(Q,G);return q.length?new X$({points:q,options:{tension:0},_loop:X,_fullLoop:X}):null}function uT(Q){return Q&&Q.fill!==!1}function EA(Q,G,q){let N=Q[G].fill,B=[G],H;if(!q)return N;while(N!==!1&&B.indexOf(N)===-1){if(!v1(N))return N;if(H=Q[N],!H)return!1;if(H.visible)return N;B.push(N),N=H.fill}return!1}function AA(Q,G,q){let X=vA(Q);if(o0(X))return isNaN(X.value)?!1:X;let N=parseFloat(X);if(v1(N)&&Math.floor(N)===N)return SA(X[0],G,N,q);return["origin","start","end","stack","shape"].indexOf(X)>=0&&X}function SA(Q,G,q,X){if(Q==="-"||Q==="+")q=G+q;if(q===G||q<0||q>=X)return!1;return q}function DA(Q,G){let q=null;if(Q==="start")q=G.bottom;else if(Q==="end")q=G.top;else if(o0(Q))q=G.getPixelForValue(Q.value);else if(G.getBasePixel)q=G.getBasePixel();return q}function jA(Q,G,q){let X;if(Q==="start")X=q;else if(Q==="end")X=G.options.reverse?G.min:G.max;else if(o0(Q))X=Q.value;else X=G.getBaseValue();return X}function vA(Q){let G=Q.options,q=G.fill,X=p0(q&&q.target,q);if(X===void 0)X=!!G.backgroundColor;if(X===!1||X===null)return!1;if(X===!0)return"origin";return X}function bA(Q){let{scale:G,index:q,line:X}=Q,N=[],B=X.segments,H=X.points,M=kA(G,q);M.push(Iz({x:null,y:G.bottom},X));for(let F=0;F<B.length;F++){let W=B[F];for(let T=W.start;T<=W.end;T++)fA(N,H[T],M)}return new X$({points:N,options:{}})}function kA(Q,G){let q=[],X=Q.getMatchingVisibleMetas("line");for(let N=0;N<X.length;N++){let B=X[N];if(B.index===G)break;if(!B.hidden)q.unshift(B.dataset)}return q}function fA(Q,G,q){let X=[];for(let N=0;N<q.length;N++){let B=q[N],{first:H,last:M,point:F}=yA(B,G,"x");if(!F||H&&M)continue;if(H)X.unshift(F);else if(Q.push(F),!M)break}Q.push(...X)}function yA(Q,G,q){let X=Q.interpolate(G,q);if(!X)return{};let N=X[q],B=Q.segments,H=Q.points,M=!1,F=!1;for(let W=0;W<B.length;W++){let T=B[W],z=H[T.start][q],C=H[T.end][q];if(W8(N,z,C)){M=N===z,F=N===C;break}}return{first:M,last:F,point:X}}class ZB{constructor(Q){this.x=Q.x,this.y=Q.y,this.radius=Q.radius}pathSegment(Q,G,q){let{x:X,y:N,radius:B}=this;return G=G||{start:0,end:l5},Q.arc(X,N,B,G.end,G.start,!0),!q.bounds}interpolate(Q){let{x:G,y:q,radius:X}=this,N=Q.angle;return{x:G+Math.cos(N)*X,y:q+Math.sin(N)*X,angle:N}}}function gA(Q){let{chart:G,fill:q,line:X}=Q;if(v1(q))return hA(G,q);if(q==="stack")return bA(Q);if(q==="shape")return!0;let N=uA(Q);if(N instanceof ZB)return N;return Iz(N,X)}function hA(Q,G){let q=Q.getDatasetMeta(G);return q&&Q.isDatasetVisible(G)?q.dataset:null}function uA(Q){if((Q.scale||{}).getPointPositionForValue)return mA(Q);return xA(Q)}function xA(Q){let{scale:G={},fill:q}=Q,X=DA(q,G);if(v1(X)){let N=G.isHorizontal();return{x:N?X:null,y:N?null:X}}return null}function mA(Q){let{scale:G,fill:q}=Q,X=G.options,N=G.getLabels().length,B=X.reverse?G.max:G.min,H=jA(q,G,B),M=[];if(X.grid.circular){let F=G.getPointPositionForValue(0,B);return new ZB({x:F.x,y:F.y,radius:G.getDistanceFromCenterForValue(H)})}for(let F=0;F<N;++F)M.push(G.getPointPositionForValue(F,H));return M}function hU(Q,G,q){let X=gA(G),{chart:N,index:B,line:H,scale:M,axis:F}=G,W=H.options,T=W.fill,z=W.backgroundColor,{above:C=z,below:V=z}=T||{},A=N.getDatasetMeta(B),O=AU(N,A);if(X&&H.points.length)QQ(Q,q),dA(Q,{line:H,target:X,above:C,below:V,area:q,scale:M,axis:F,clip:O}),JQ(Q)}function dA(Q,G){let{line:q,target:X,above:N,below:B,area:H,scale:M,clip:F}=G,W=q._loop?"angle":G.axis;Q.save();let T=B;if(B!==N){if(W==="x")xT(Q,X,H.top),uU(Q,{line:q,target:X,color:N,scale:M,property:W,clip:F}),Q.restore(),Q.save(),xT(Q,X,H.bottom);else if(W==="y")mT(Q,X,H.left),uU(Q,{line:q,target:X,color:B,scale:M,property:W,clip:F}),Q.restore(),Q.save(),mT(Q,X,H.right),T=N}uU(Q,{line:q,target:X,color:T,scale:M,property:W,clip:F}),Q.restore()}function xT(Q,G,q){let{segments:X,points:N}=G,B=!0,H=!1;Q.beginPath();for(let M of X){let{start:F,end:W}=M,T=N[F],z=N[u3(F,W,N)];if(B)Q.moveTo(T.x,T.y),B=!1;else Q.lineTo(T.x,q),Q.lineTo(T.x,T.y);if(H=!!G.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(z.x,q)}Q.lineTo(G.first().x,q),Q.closePath(),Q.clip()}function mT(Q,G,q){let{segments:X,points:N}=G,B=!0,H=!1;Q.beginPath();for(let M of X){let{start:F,end:W}=M,T=N[F],z=N[u3(F,W,N)];if(B)Q.moveTo(T.x,T.y),B=!1;else Q.lineTo(q,T.y),Q.lineTo(T.x,T.y);if(H=!!G.pathSegment(Q,M,{move:H}),H)Q.closePath();else Q.lineTo(q,z.y)}Q.lineTo(q,G.first().y),Q.closePath(),Q.clip()}function uU(Q,G){let{line:q,target:X,property:N,color:B,scale:H,clip:M}=G,F=IA(q,X,N);for(let{source:W,target:T,start:z,end:C}of F){let{style:{backgroundColor:V=B}={}}=W,A=X!==!0;Q.save(),Q.fillStyle=V,pA(Q,H,M,A&&pU(N,z,C)),Q.beginPath();let O=!!q.pathSegment(Q,W),I;if(A){if(O)Q.closePath();else dT(Q,X,C,N);let j=!!X.pathSegment(Q,T,{move:O,reverse:!0});if(I=O&&j,!I)dT(Q,X,z,N)}Q.closePath(),Q.fill(I?"evenodd":"nonzero"),Q.restore()}}function pA(Q,G,q,X){let N=G.chart.chartArea,{property:B,start:H,end:M}=X||{};if(B==="x"||B==="y"){let F,W,T,z;if(B==="x")F=H,W=N.top,T=M,z=N.bottom;else F=N.left,W=H,T=N.right,z=M;if(Q.beginPath(),q)F=Math.max(F,q.left),T=Math.min(T,q.right),W=Math.max(W,q.top),z=Math.min(z,q.bottom);Q.rect(F,W,T-F,z-W),Q.clip()}}function dT(Q,G,q,X){let N=G.interpolate(q,X);if(N)Q.lineTo(N.x,N.y)}var Oz={id:"filler",afterDatasetsUpdate(Q,G,q){let X=(Q.data.datasets||[]).length,N=[],B,H,M,F;for(H=0;H<X;++H){if(B=Q.getDatasetMeta(H),M=B.dataset,F=null,M&&M.options&&M instanceof X$)F={visible:Q.isDatasetVisible(H),index:H,fill:AA(M,H,X),chart:Q,axis:B.controller.options.indexAxis,scale:B.vScale,line:M};B.$filler=F,N.push(F)}for(H=0;H<X;++H){if(F=N[H],!F||F.fill===!1)continue;F.fill=EA(N,H,q.propagate)}},beforeDraw(Q,G,q){let X=q.drawTime==="beforeDraw",N=Q.getSortedVisibleDatasetMetas(),B=Q.chartArea;for(let H=N.length-1;H>=0;--H){let M=N[H].$filler;if(!M)continue;if(M.line.updateControlPoints(B,M.axis),X&&M.fill)hU(Q.ctx,M,B)}},beforeDatasetsDraw(Q,G,q){if(q.drawTime!=="beforeDatasetsDraw")return;let X=Q.getSortedVisibleDatasetMetas();for(let N=X.length-1;N>=0;--N){let B=X[N].$filler;if(uT(B))hU(Q.ctx,B,Q.chartArea)}},beforeDatasetDraw(Q,G,q){let X=G.meta.$filler;if(!uT(X)||q.drawTime!=="beforeDatasetDraw")return;hU(Q.ctx,X,Q.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},pT=(Q,G)=>{let{boxHeight:q=G,boxWidth:X=G}=Q;if(Q.usePointStyle)q=Math.min(q,G),X=Q.pointStyleWidth||Math.min(X,G);return{boxWidth:X,boxHeight:q,itemHeight:Math.max(G,q)}},cA=(Q,G)=>Q!==null&&G!==null&&Q.datasetIndex===G.datasetIndex&&Q.index===G.index;class cU extends P8{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,G,q){this.maxWidth=Q,this.maxHeight=G,this._margins=q,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||{},G=T1(Q.generateLabels,[this.chart],this)||[];if(Q.filter)G=G.filter((q)=>Q.filter(q,this.chart.data));if(Q.sort)G=G.sort((q,X)=>Q.sort(q,X,this.chart.data));if(this.options.reverse)G.reverse();this.legendItems=G}fit(){let{options:Q,ctx:G}=this;if(!Q.display){this.width=this.height=0;return}let q=Q.labels,X=o1(q.font),N=X.size,B=this._computeTitleHeight(),{boxWidth:H,itemHeight:M}=pT(q,N),F,W;if(G.font=X.string,this.isHorizontal())F=this.maxWidth,W=this._fitRows(B,N,H,M)+10;else W=this.maxHeight,F=this._fitCols(B,X,H,M)+10;this.width=Math.min(F,Q.maxWidth||this.maxWidth),this.height=Math.min(W,Q.maxHeight||this.maxHeight)}_fitRows(Q,G,q,X){let{ctx:N,maxWidth:B,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.lineWidths=[0],W=X+H,T=Q;N.textAlign="left",N.textBaseline="middle";let z=-1,C=-W;return this.legendItems.forEach((V,A)=>{let O=q+G/2+N.measureText(V.text).width;if(A===0||F[F.length-1]+O+2*H>B)T+=W,F[F.length-(A>0?0:1)]=0,C+=W,z++;M[A]={left:0,top:C,row:z,width:O,height:X},F[F.length-1]+=O+H}),T}_fitCols(Q,G,q,X){let{ctx:N,maxHeight:B,options:{labels:{padding:H}}}=this,M=this.legendHitBoxes=[],F=this.columnSizes=[],W=B-Q,T=H,z=0,C=0,V=0,A=0;return this.legendItems.forEach((O,I)=>{let{itemWidth:j,itemHeight:h}=lA(q,G,N,O,X);if(I>0&&C+h+2*H>W)T+=z+H,F.push({width:z,height:C}),V+=z+H,A++,z=C=0;M[I]={left:V,top:C,col:A,width:j,height:h},z=Math.max(z,j),C+=h+H}),T+=z,F.push({width:z,height:C}),T}adjustHitBoxes(){if(!this.options.display)return;let Q=this._computeTitleHeight(),{legendHitBoxes:G,options:{align:q,labels:{padding:X},rtl:N}}=this,B=D9(N,this.left,this.width);if(this.isHorizontal()){let H=0,M=F5(q,this.left+X,this.right-this.lineWidths[H]);for(let F of G){if(H!==F.row)H=F.row,M=F5(q,this.left+X,this.right-this.lineWidths[H]);F.top+=this.top+Q+X,F.left=B.leftForLtr(B.x(M),F.width),M+=F.width+X}}else{let H=0,M=F5(q,this.top+Q+X,this.bottom-this.columnSizes[H].height);for(let F of G){if(F.col!==H)H=F.col,M=F5(q,this.top+Q+X,this.bottom-this.columnSizes[H].height);F.top=M,F.left+=this.left+X,F.left=B.leftForLtr(B.x(F.left),F.width),M+=F.height+X}}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let Q=this.ctx;QQ(Q,this),this._draw(),JQ(Q)}}_draw(){let{options:Q,columnSizes:G,lineWidths:q,ctx:X}=this,{align:N,labels:B}=Q,H=b1.color,M=D9(Q.rtl,this.left,this.width),F=o1(B.font),{padding:W}=B,T=F.size,z=T/2,C;this.drawTitle(),X.textAlign=M.textAlign("left"),X.textBaseline="middle",X.lineWidth=0.5,X.font=F.string;let{boxWidth:V,boxHeight:A,itemHeight:O}=pT(B,T),I=function(o,Q0,i){if(isNaN(V)||V<=0||isNaN(A)||A<0)return;X.save();let a=p0(i.lineWidth,1);if(X.fillStyle=p0(i.fillStyle,H),X.lineCap=p0(i.lineCap,"butt"),X.lineDashOffset=p0(i.lineDashOffset,0),X.lineJoin=p0(i.lineJoin,"miter"),X.lineWidth=a,X.strokeStyle=p0(i.strokeStyle,H),X.setLineDash(p0(i.lineDash,[])),B.usePointStyle){let X0={radius:A*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:a},d=M.xPlus(o,V/2),U0=Q0+z;WU(X,X0,d,U0,B.pointStyleWidth&&V)}else{let X0=Q0+Math.max((T-A)/2,0),d=M.leftForLtr(o,V),U0=O2(i.borderRadius);if(X.beginPath(),Object.values(U0).some((P0)=>P0!==0))q$(X,{x:d,y:X0,w:V,h:A,radius:U0});else X.rect(d,X0,V,A);if(X.fill(),a!==0)X.stroke()}X.restore()},j=function(o,Q0,i){I2(X,i.text,o,Q0+O/2,F,{strikethrough:i.hidden,textAlign:M.textAlign(i.textAlign)})},h=this.isHorizontal(),p=this._computeTitleHeight();if(h)C={x:F5(N,this.left+W,this.right-q[0]),y:this.top+W+p,line:0};else C={x:this.left+W,y:F5(N,this.top+p+W,this.bottom-G[0].height),line:0};VU(this.ctx,Q.textDirection);let s=O+W;this.legendItems.forEach((o,Q0)=>{X.strokeStyle=o.fontColor,X.fillStyle=o.fontColor;let i=X.measureText(o.text).width,a=M.textAlign(o.textAlign||(o.textAlign=B.textAlign)),X0=V+z+i,d=C.x,U0=C.y;if(M.setWidth(this.width),h){if(Q0>0&&d+X0+W>this.right)U0=C.y+=s,C.line++,d=C.x=F5(N,this.left+W,this.right-q[C.line])}else if(Q0>0&&U0+s>this.bottom)d=C.x=d+G[C.line].width+W,C.line++,U0=C.y=F5(N,this.top+p+W,this.bottom-G[C.line].height);let P0=M.x(d);if(I(P0,U0,o),d=pR(a,d+V+z,h?d+X0:this.right,Q.rtl),j(M.x(d),U0,o),h)C.x+=X0+W;else if(typeof o.text!=="string"){let L0=F.lineHeight;C.y+=Ez(o,L0)+W}else C.y+=s}),IU(this.ctx,Q.textDirection)}drawTitle(){let Q=this.options,G=Q.title,q=o1(G.font),X=w5(G.padding);if(!G.display)return;let N=D9(Q.rtl,this.left,this.width),B=this.ctx,H=G.position,M=q.size/2,F=X.top+M,W,T=this.left,z=this.width;if(this.isHorizontal())z=Math.max(...this.lineWidths),W=this.top+F,T=F5(Q.align,T,this.right-z);else{let V=this.columnSizes.reduce((A,O)=>Math.max(A,O.height),0);W=F+F5(Q.align,this.top,this.bottom-V-Q.labels.padding-this._computeTitleHeight())}let C=F5(H,T,T+z);B.textAlign=N.textAlign(L3(H)),B.textBaseline="middle",B.strokeStyle=G.color,B.fillStyle=G.color,B.font=q.string,I2(B,G.text,C,W,q)}_computeTitleHeight(){let Q=this.options.title,G=o1(Q.font),q=w5(Q.padding);return Q.display?G.lineHeight+q.height:0}_getLegendItemAt(Q,G){let q,X,N;if(W8(Q,this.left,this.right)&&W8(G,this.top,this.bottom)){N=this.legendHitBoxes;for(q=0;q<N.length;++q)if(X=N[q],W8(Q,X.left,X.left+X.width)&&W8(G,X.top,X.top+X.height))return this.legendItems[q]}return null}handleEvent(Q){let G=this.options;if(!nA(Q.type,G))return;let q=this._getLegendItemAt(Q.x,Q.y);if(Q.type==="mousemove"||Q.type==="mouseout"){let X=this._hoveredItem,N=cA(X,q);if(X&&!N)T1(G.onLeave,[Q,X,this],this);if(this._hoveredItem=q,q&&!N)T1(G.onHover,[Q,q,this],this)}else if(q)T1(G.onClick,[Q,q,this],this)}}function lA(Q,G,q,X,N){let B=rA(X,Q,G,q),H=sA(N,X,G.lineHeight);return{itemWidth:B,itemHeight:H}}function rA(Q,G,q,X){let N=Q.text;if(N&&typeof N!=="string")N=N.reduce((B,H)=>B.length>H.length?B:H);return G+q.size/2+X.measureText(N).width}function sA(Q,G,q){let X=Q;if(typeof G.text!=="string")X=Ez(G,q);return X}function Ez(Q,G){let q=Q.text?Q.text.length:0;return G*q}function nA(Q,G){if((Q==="mousemove"||Q==="mouseout")&&(G.onHover||G.onLeave))return!0;if(G.onClick&&(Q==="click"||Q==="mouseup"))return!0;return!1}var Az={id:"legend",_element:cU,start(Q,G,q){let X=Q.legend=new cU({ctx:Q.ctx,options:q,chart:Q});y6.configure(Q,X,q),y6.addBox(Q,X)},stop(Q){y6.removeBox(Q,Q.legend),delete Q.legend},beforeUpdate(Q,G,q){let X=Q.legend;y6.configure(Q,X,q),X.options=q},afterUpdate(Q){let G=Q.legend;G.buildLabels(),G.adjustHitBoxes()},afterEvent(Q,G){if(!G.replay)Q.legend.handleEvent(G.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1000,onClick(Q,G,q){let X=G.datasetIndex,N=q.chart;if(N.isDatasetVisible(X))N.hide(X),G.hidden=!0;else N.show(X),G.hidden=!1},onHover:null,onLeave:null,labels:{color:(Q)=>Q.chart.options.color,boxWidth:40,padding:10,generateLabels(Q){let G=Q.data.datasets,{labels:{usePointStyle:q,pointStyle:X,textAlign:N,color:B,useBorderRadius:H,borderRadius:M}}=Q.legend.options;return Q._getSortedDatasetMetas().map((F)=>{let W=F.controller.getStyle(q?0:void 0),T=w5(W.borderWidth);return{text:G[F.index].label,fillStyle:W.backgroundColor,fontColor:B,hidden:!F.visible,lineCap:W.borderCapStyle,lineDash:W.borderDash,lineDashOffset:W.borderDashOffset,lineJoin:W.borderJoinStyle,lineWidth:(T.width+T.height)/4,strokeStyle:W.borderColor,pointStyle:X||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 QB extends P8{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,G){let q=this.options;if(this.left=0,this.top=0,!q.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=Q,this.height=this.bottom=G;let X=L1(q.text)?q.text.length:1;this._padding=w5(q.padding);let N=X*o1(q.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:G,left:q,bottom:X,right:N,options:B}=this,H=B.align,M=0,F,W,T;if(this.isHorizontal())W=F5(H,q,N),T=G+Q,F=N-q;else{if(B.position==="left")W=q+Q,T=F5(H,X,G),M=u1*-0.5;else W=N-Q,T=F5(H,G,X),M=u1*0.5;F=X-G}return{titleX:W,titleY:T,maxWidth:F,rotation:M}}draw(){let Q=this.ctx,G=this.options;if(!G.display)return;let q=o1(G.font),N=q.lineHeight/2+this._padding.top,{titleX:B,titleY:H,maxWidth:M,rotation:F}=this._drawArgs(N);I2(Q,G.text,0,0,q,{color:G.color,maxWidth:M,rotation:F,textAlign:L3(G.align),textBaseline:"middle",translation:[B,H]})}}function oA(Q,G){let q=new QB({ctx:Q.ctx,options:G,chart:Q});y6.configure(Q,q,G),y6.addBox(Q,q),Q.titleBlock=q}var Sz={id:"title",_element:QB,start(Q,G,q){oA(Q,q)},stop(Q){let G=Q.titleBlock;y6.removeBox(Q,G),delete Q.titleBlock},beforeUpdate(Q,G,q){let X=Q.titleBlock;y6.configure(Q,X,q),X.options=q},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 HQ={average(Q){if(!Q.length)return!1;let G,q,X=new Set,N=0,B=0;for(G=0,q=Q.length;G<q;++G){let M=Q[G].element;if(M&&M.hasValue()){let F=M.tooltipPosition();X.add(F.x),N+=F.y,++B}}if(B===0||X.size===0)return!1;return{x:[...X].reduce((M,F)=>M+F)/X.size,y:N/B}},nearest(Q,G){if(!Q.length)return!1;let{x:q,y:X}=G,N=Number.POSITIVE_INFINITY,B,H,M;for(B=0,H=Q.length;B<H;++B){let F=Q[B].element;if(F&&F.hasValue()){let W=F.getCenterPoint(),T=R3(G,W);if(T<N)N=T,M=F}}if(M){let F=M.tooltipPosition();q=F.x,X=F.y}return{x:q,y:X}}};function b4(Q,G){if(G)if(L1(G))Array.prototype.push.apply(Q,G);else Q.push(G);return Q}function z8(Q){if((typeof Q==="string"||Q instanceof String)&&Q.indexOf(`
256
256
  `)>-1)return Q.split(`
257
- `);return Q}function QD(Q,J){let{element:q,datasetIndex:Y,index:U}=J,K=Q.getDatasetMeta(Y).controller,{label:H,value:M}=K.getLabelAndValue(U);return{chart:Q,label:H,parsed:K.getParsed(U),raw:Q.data.datasets[Y].data[U],formattedValue:M,dataset:K.getDataset(),dataIndex:U,datasetIndex:Y,element:q}}function jT(Q,J){let q=Q.chart.ctx,{body:Y,footer:U,title:K}=Q,{boxWidth:H,boxHeight:M}=J,F=p1(J.bodyFont),R=p1(J.titleFont),T=p1(J.footerFont),z=K.length,L=U.length,P=Y.length,I=X5(J.padding),A=I.height,C=0,g=Y.reduce((a,s)=>a+s.before.length+s.lines.length+s.after.length,0);if(g+=Q.beforeBody.length+Q.afterBody.length,z)A+=z*R.lineHeight+(z-1)*J.titleSpacing+J.titleMarginBottom;if(g){let a=J.displayColors?Math.max(M,F.lineHeight):F.lineHeight;A+=P*a+(g-P)*F.lineHeight+(g-1)*J.bodySpacing}if(L)A+=J.footerMarginTop+L*T.lineHeight+(L-1)*J.footerSpacing;let m=0,o=function(a){C=Math.max(C,q.measureText(a).width+m)};return q.save(),q.font=R.string,X1(Q.title,o),q.font=F.string,X1(Q.beforeBody.concat(Q.afterBody),o),m=J.displayColors?H+2+J.boxPadding:0,X1(Y,(a)=>{X1(a.before,o),X1(a.lines,o),X1(a.after,o)}),m=0,q.font=T.string,X1(Q.footer,o),q.restore(),C+=I.width,{width:C,height:A}}function GD(Q,J){let{y:q,height:Y}=J;if(q<Y/2)return"top";else if(q>Q.height-Y/2)return"bottom";return"center"}function JD(Q,J,q,Y){let{x:U,width:K}=Y,H=q.caretSize+q.caretPadding;if(Q==="left"&&U+K+H>J.width)return!0;if(Q==="right"&&U-K-H<0)return!0}function qD(Q,J,q,Y){let{x:U,width:K}=q,{width:H,chartArea:{left:M,right:F}}=Q,R="center";if(Y==="center")R=U<=(M+F)/2?"left":"right";else if(U<=K/2)R="left";else if(U>=H-K/2)R="right";if(JD(R,Q,J,q))R="center";return R}function AT(Q,J,q){let Y=q.yAlign||J.yAlign||GD(Q,q);return{xAlign:q.xAlign||J.xAlign||qD(Q,J,q,Y),yAlign:Y}}function XD(Q,J){let{x:q,width:Y}=Q;if(J==="right")q-=Y;else if(J==="center")q-=Y/2;return q}function YD(Q,J,q){let{y:Y,height:U}=Q;if(J==="top")Y+=q;else if(J==="bottom")Y-=U+q;else Y-=U/2;return Y}function ST(Q,J,q,Y){let{caretSize:U,caretPadding:K,cornerRadius:H}=Q,{xAlign:M,yAlign:F}=q,R=U+K,{topLeft:T,topRight:z,bottomLeft:L,bottomRight:P}=K2(H),I=XD(J,M),A=YD(J,F,R);if(F==="center"){if(M==="left")I+=R;else if(M==="right")I-=R}else if(M==="left")I-=Math.max(T,L)+U;else if(M==="right")I+=Math.max(z,P)+U;return{x:y5(I,0,Y.width-J.width),y:y5(A,0,Y.height-J.height)}}function Kq(Q,J,q){let Y=X5(q.padding);return J==="center"?Q.x+Q.width/2:J==="right"?Q.x+Q.width-Y.right:Q.x+Y.left}function vT(Q){return T8([],J6(Q))}function UD(Q,J,q){return Q6(Q,{tooltip:J,tooltipItems:q,type:"tooltip"})}function kT(Q,J){let q=J&&J.dataset&&J.dataset.tooltip&&J.dataset.tooltip.callbacks;return q?Q.override(q):Q}var Hz={beforeTitle:R8,title(Q){if(Q.length>0){let J=Q[0],q=J.chart.data.labels,Y=q?q.length:0;if(this&&this.options&&this.options.mode==="dataset")return J.dataset.label||"";else if(J.label)return J.label;else if(Y>0&&J.dataIndex<Y)return q[J.dataIndex]}return""},afterTitle:R8,beforeBody:R8,beforeLabel:R8,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 q=Q.formattedValue;if(!t0(q))J+=q;return J},labelColor(Q){let q=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{borderColor:q.borderColor,backgroundColor:q.backgroundColor,borderWidth:q.borderWidth,borderDash:q.borderDash,borderDashOffset:q.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(Q){let q=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{pointStyle:q.pointStyle,rotation:q.rotation}},afterLabel:R8,afterBody:R8,beforeFooter:R8,footer:R8,afterFooter:R8};function h5(Q,J,q,Y){let U=Q[J].call(q,Y);if(typeof U>"u")return Hz[J].call(q,Y);return U}class SN extends q6{static positioners=iZ;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,q=this.options.setContext(this.getContext()),Y=q.enabled&&J.options.animation&&q.animations,U=new bN(this.chart,Y);if(Y._cacheable)this._cachedAnimations=Object.freeze(U);return U}getContext(){return this.$context||(this.$context=UD(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,J){let{callbacks:q}=J,Y=h5(q,"beforeTitle",this,Q),U=h5(q,"title",this,Q),K=h5(q,"afterTitle",this,Q),H=[];return H=T8(H,J6(Y)),H=T8(H,J6(U)),H=T8(H,J6(K)),H}getBeforeBody(Q,J){return vT(h5(J.callbacks,"beforeBody",this,Q))}getBody(Q,J){let{callbacks:q}=J,Y=[];return X1(Q,(U)=>{let K={before:[],lines:[],after:[]},H=kT(q,U);T8(K.before,J6(h5(H,"beforeLabel",this,U))),T8(K.lines,h5(H,"label",this,U)),T8(K.after,J6(h5(H,"afterLabel",this,U))),Y.push(K)}),Y}getAfterBody(Q,J){return vT(h5(J.callbacks,"afterBody",this,Q))}getFooter(Q,J){let{callbacks:q}=J,Y=h5(q,"beforeFooter",this,Q),U=h5(q,"footer",this,Q),K=h5(q,"afterFooter",this,Q),H=[];return H=T8(H,J6(Y)),H=T8(H,J6(U)),H=T8(H,J6(K)),H}_createItems(Q){let J=this._active,q=this.chart.data,Y=[],U=[],K=[],H=[],M,F;for(M=0,F=J.length;M<F;++M)H.push(QD(this.chart,J[M]));if(Q.filter)H=H.filter((R,T,z)=>Q.filter(R,T,z,q));if(Q.itemSort)H=H.sort((R,T)=>Q.itemSort(R,T,q));return X1(H,(R)=>{let T=kT(Q.callbacks,R);Y.push(h5(T,"labelColor",this,R)),U.push(h5(T,"labelPointStyle",this,R)),K.push(h5(T,"labelTextColor",this,R))}),this.labelColors=Y,this.labelPointStyles=U,this.labelTextColors=K,this.dataPoints=H,H}update(Q,J){let q=this.options.setContext(this.getContext()),Y=this._active,U,K=[];if(!Y.length){if(this.opacity!==0)U={opacity:0}}else{let H=iZ[q.position].call(this,Y,this._eventPosition);K=this._createItems(q),this.title=this.getTitle(K,q),this.beforeBody=this.getBeforeBody(K,q),this.body=this.getBody(K,q),this.afterBody=this.getAfterBody(K,q),this.footer=this.getFooter(K,q);let M=this._size=jT(this,q),F=Object.assign({},H,M),R=AT(this.chart,q,F),T=ST(q,F,R,this.chart);this.xAlign=R.xAlign,this.yAlign=R.yAlign,U={opacity:1,x:T.x,y:T.y,width:M.width,height:M.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=K,this.$context=void 0,U)this._resolveAnimations().update(this,U);if(Q&&q.external)q.external.call(this,{chart:this.chart,tooltip:this,replay:J})}drawCaret(Q,J,q,Y){let U=this.getCaretPosition(Q,q,Y);J.lineTo(U.x1,U.y1),J.lineTo(U.x2,U.y2),J.lineTo(U.x3,U.y3)}getCaretPosition(Q,J,q){let{xAlign:Y,yAlign:U}=this,{caretSize:K,cornerRadius:H}=q,{topLeft:M,topRight:F,bottomLeft:R,bottomRight:T}=K2(H),{x:z,y:L}=Q,{width:P,height:I}=J,A,C,g,m,o,a;if(U==="center"){if(o=L+I/2,Y==="left")A=z,C=A-K,m=o+K,a=o-K;else A=z+P,C=A+K,m=o-K,a=o+K;g=A}else{if(Y==="left")C=z+Math.max(M,R)+K;else if(Y==="right")C=z+P-Math.max(F,T)-K;else C=this.caretX;if(U==="top")m=L,o=m-K,A=C-K,g=C+K;else m=L+I,o=m+K,A=C+K,g=C-K;a=m}return{x1:A,x2:C,x3:g,y1:m,y2:o,y3:a}}drawTitle(Q,J,q){let Y=this.title,U=Y.length,K,H,M;if(U){let F=W$(q.rtl,this.x,this.width);Q.x=Kq(this,q.titleAlign,q),J.textAlign=F.textAlign(q.titleAlign),J.textBaseline="middle",K=p1(q.titleFont),H=q.titleSpacing,J.fillStyle=q.titleColor,J.font=K.string;for(M=0;M<U;++M)if(J.fillText(Y[M],F.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+H,M+1===U)Q.y+=q.titleMarginBottom-H}}_drawColorBox(Q,J,q,Y,U){let K=this.labelColors[q],H=this.labelPointStyles[q],{boxHeight:M,boxWidth:F}=U,R=p1(U.bodyFont),T=Kq(this,"left",U),z=Y.x(T),L=M<R.lineHeight?(R.lineHeight-M)/2:0,P=J.y+L;if(U.usePointStyle){let I={radius:Math.min(F,M)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},A=Y.leftForLtr(z,F)+F/2,C=P+M/2;Q.strokeStyle=U.multiKeyBackground,Q.fillStyle=U.multiKeyBackground,Qq(Q,I,A,C),Q.strokeStyle=K.borderColor,Q.fillStyle=K.backgroundColor,Qq(Q,I,A,C)}else{Q.lineWidth=n0(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 I=Y.leftForLtr(z,F),A=Y.leftForLtr(Y.xPlus(z,1),F-2),C=K2(K.borderRadius);if(Object.values(C).some((g)=>g!==0))Q.beginPath(),Q.fillStyle=U.multiKeyBackground,d9(Q,{x:I,y:P,w:F,h:M,radius:C}),Q.fill(),Q.stroke(),Q.fillStyle=K.backgroundColor,Q.beginPath(),d9(Q,{x:A,y:P+1,w:F-2,h:M-2,radius:C}),Q.fill();else Q.fillStyle=U.multiKeyBackground,Q.fillRect(I,P,F,M),Q.strokeRect(I,P,F,M),Q.fillStyle=K.backgroundColor,Q.fillRect(A,P+1,F-2,M-2)}Q.fillStyle=this.labelTextColors[q]}drawBody(Q,J,q){let{body:Y}=this,{bodySpacing:U,bodyAlign:K,displayColors:H,boxHeight:M,boxWidth:F,boxPadding:R}=q,T=p1(q.bodyFont),z=T.lineHeight,L=0,P=W$(q.rtl,this.x,this.width),I=function(p){J.fillText(p,P.x(Q.x+L),Q.y+z/2),Q.y+=z+U},A=P.textAlign(K),C,g,m,o,a,s,Q0;J.textAlign=K,J.textBaseline="middle",J.font=T.string,Q.x=Kq(this,A,q),J.fillStyle=q.bodyColor,X1(this.beforeBody,I),L=H&&A!=="right"?K==="center"?F/2+R:F+2+R:0;for(o=0,s=Y.length;o<s;++o){if(C=Y[o],g=this.labelTextColors[o],J.fillStyle=g,X1(C.before,I),m=C.lines,H&&m.length)this._drawColorBox(J,Q,o,P,q),z=Math.max(T.lineHeight,M);for(a=0,Q0=m.length;a<Q0;++a)I(m[a]),z=T.lineHeight;X1(C.after,I)}L=0,z=T.lineHeight,X1(this.afterBody,I),Q.y-=U}drawFooter(Q,J,q){let Y=this.footer,U=Y.length,K,H;if(U){let M=W$(q.rtl,this.x,this.width);Q.x=Kq(this,q.footerAlign,q),Q.y+=q.footerMarginTop,J.textAlign=M.textAlign(q.footerAlign),J.textBaseline="middle",K=p1(q.footerFont),J.fillStyle=q.footerColor,J.font=K.string;for(H=0;H<U;++H)J.fillText(Y[H],M.x(Q.x),Q.y+K.lineHeight/2),Q.y+=K.lineHeight+q.footerSpacing}}drawBackground(Q,J,q,Y){let{xAlign:U,yAlign:K}=this,{x:H,y:M}=Q,{width:F,height:R}=q,{topLeft:T,topRight:z,bottomLeft:L,bottomRight:P}=K2(Y.cornerRadius);if(J.fillStyle=Y.backgroundColor,J.strokeStyle=Y.borderColor,J.lineWidth=Y.borderWidth,J.beginPath(),J.moveTo(H+T,M),K==="top")this.drawCaret(Q,J,q,Y);if(J.lineTo(H+F-z,M),J.quadraticCurveTo(H+F,M,H+F,M+z),K==="center"&&U==="right")this.drawCaret(Q,J,q,Y);if(J.lineTo(H+F,M+R-P),J.quadraticCurveTo(H+F,M+R,H+F-P,M+R),K==="bottom")this.drawCaret(Q,J,q,Y);if(J.lineTo(H+L,M+R),J.quadraticCurveTo(H,M+R,H,M+R-L),K==="center"&&U==="left")this.drawCaret(Q,J,q,Y);if(J.lineTo(H,M+T),J.quadraticCurveTo(H,M,H+T,M),J.closePath(),J.fill(),Y.borderWidth>0)J.stroke()}_updateAnimationTarget(Q){let J=this.chart,q=this.$animations,Y=q&&q.x,U=q&&q.y;if(Y||U){let K=iZ[Q.position].call(this,this._active,this._eventPosition);if(!K)return;let H=this._size=jT(this,Q),M=Object.assign({},K,this._size),F=AT(J,Q,M),R=ST(Q,M,F,J);if(Y._to!==R.x||U._to!==R.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,R)}}_willRender(){return!!this.opacity}draw(Q){let J=this.options.setContext(this.getContext()),q=this.opacity;if(!q)return;this._updateAnimationTarget(J);let Y={width:this.width,height:this.height},U={x:this.x,y:this.y};q=Math.abs(q)<0.001?0:q;let K=X5(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=q,this.drawBackground(U,Q,Y,J),KN(Q,J.textDirection),U.y+=K.top,this.drawTitle(U,Q,J),this.drawBody(U,Q,J),this.drawFooter(U,Q,J),BN(Q,J.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,J){let q=this._active,Y=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}}),U=!xZ(q,Y),K=this._positionChanged(Y,J);if(U||K)this._active=Y,this._eventPosition=J,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(Q,J,q=!0){if(J&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let Y=this.options,U=this._active||[],K=this._getActiveElements(Q,U,J,q),H=this._positionChanged(K,Q),M=J||!xZ(K,U)||H;if(M){if(this._active=K,Y.enabled||Y.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,J)}return M}_getActiveElements(Q,J,q,Y){let U=this.options;if(Q.type==="mouseout")return[];if(!Y)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,U.mode,U,q);if(U.reverse)K.reverse();return K}_positionChanged(Q,J){let{caretX:q,caretY:Y,options:U}=this,K=iZ[U.position].call(this,Q,J);return K!==!1&&(q!==K.x||Y!==K.y)}}var V8={id:"tooltip",_element:SN,positioners:iZ,afterInit(Q,J,q){if(q)Q.tooltip=new SN({chart:Q,options:q})},beforeUpdate(Q,J,q){if(Q.tooltip)Q.tooltip.initialize(q)},reset(Q,J,q){if(Q.tooltip)Q.tooltip.initialize(q)},afterDraw(Q){let J=Q.tooltip;if(J&&J._willRender()){let q={tooltip:J};if(Q.notifyPlugins("beforeTooltipDraw",{...q,cancelable:!0})===!1)return;J.draw(Q.ctx),Q.notifyPlugins("afterTooltipDraw",q)}},afterEvent(Q,J){if(Q.tooltip){let q=J.replay;if(Q.tooltip.handleEvent(J.event,q,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:Hz},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 ND=(Q,J,q,Y)=>{if(typeof J==="string")q=Q.push(J)-1,Y.unshift({index:q,label:J});else if(isNaN(J))q=null;return q};function KD(Q,J,q,Y){let U=Q.indexOf(J);if(U===-1)return ND(Q,J,q,Y);let K=Q.lastIndexOf(J);return U!==K?q:U}var BD=(Q,J)=>Q===null?null:y5(Math.round(Q),0,J);function bT(Q){let J=this.getLabels();if(Q>=0&&Q<J.length)return J[Q];return Q}class h4 extends T${static id="category";static defaults={ticks:{callback:bT}};constructor(Q){super(Q);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Q){let J=this._addedLabels;if(J.length){let q=this.getLabels();for(let{index:Y,label:U}of J)if(q[Y]===U)q.splice(Y,1);this._addedLabels=[]}super.init(Q)}parse(Q,J){if(t0(Q))return null;let q=this.getLabels();return J=isFinite(J)&&q[J]===Q?J:KD(q,Q,h0(J,Q),this._addedLabels),BD(J,q.length-1)}determineDataLimits(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),{min:q,max:Y}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!Q)q=0;if(!J)Y=this.getLabels().length-1}this.min=q,this.max=Y}buildTicks(){let Q=this.min,J=this.max,q=this.options.offset,Y=[],U=this.getLabels();U=Q===0&&J===U.length-1?U:U.slice(Q,J+1),this._valueRange=Math.max(U.length-(q?0:1),1),this._startValue=this.min-(q?0.5:0);for(let K=Q;K<=J;K++)Y.push({value:K});return Y}getLabelForValue(Q){return bT.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 HD(Q,J){let q=[],Y=0.00000000000001,{bounds:U,step:K,min:H,max:M,precision:F,count:R,maxTicks:T,maxDigits:z,includeBounds:L}=Q,P=K||1,I=T-1,{min:A,max:C}=J,g=!t0(H),m=!t0(M),o=!t0(R),a=(C-A)/(z+1),s=lU((C-A)/I/P)*P,Q0,p,i,Y0;if(s<0.00000000000001&&!g&&!m)return[{value:A},{value:C}];if(Y0=Math.ceil(C/s)-Math.floor(A/s),Y0>I)s=lU(Y0*s/I/P)*P;if(!t0(F))Q0=Math.pow(10,F),s=Math.ceil(s*Q0)/Q0;if(U==="ticks")p=Math.floor(A/s)*s,i=Math.ceil(C/s)*s;else p=A,i=C;if(g&&m&&K&&_R((M-H)/K,s/1000))Y0=Math.round(Math.min((M-H)/s,T)),s=(M-H)/Y0,p=H,i=M;else if(o)p=g?H:p,i=m?M:i,Y0=R-1,s=(i-p)/Y0;else if(Y0=(i-p)/s,u9(Y0,Math.round(Y0),s/1000))Y0=Math.round(Y0);else Y0=Math.ceil(Y0);let d=Math.max(sU(s),sU(p));Q0=Math.pow(10,t0(F)?d:F),p=Math.round(p*Q0)/Q0,i=Math.round(i*Q0)/Q0;let N0=0;if(g){if(L&&p!==H){if(q.push({value:H}),p<H)N0++;if(u9(Math.round((p+N0*s)*Q0)/Q0,H,fT(H,a,Q)))N0++}else if(p<H)N0++}for(;N0<Y0;++N0){let w0=Math.round((p+N0*s)*Q0)/Q0;if(m&&w0>M)break;q.push({value:w0})}if(m&&L&&i!==M)if(q.length&&u9(q[q.length-1].value,M,fT(M,a,Q)))q[q.length-1].value=M;else q.push({value:M});else if(!m||i===M)q.push({value:i});return q}function fT(Q,J,{horizontal:q,minRotation:Y}){let U=$6(Y),K=(q?Math.sin(U):Math.cos(U))||0.001,H=0.75*J*(""+Q).length;return Math.min(J/K,H)}class eZ extends T${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(t0(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:q}=this.getUserBounds(),{min:Y,max:U}=this,K=(M)=>Y=J?Y:M,H=(M)=>U=q?U:M;if(Q){let M=y4(Y),F=y4(U);if(M<0&&F<0)H(0);else if(M>0&&F>0)K(0)}if(Y===U){let M=U===0?1:Math.abs(U*0.05);if(H(U+M),!Q)K(Y-M)}this.min=Y,this.max=U}getTickLimit(){let Q=this.options.ticks,{maxTicksLimit:J,stepSize:q}=Q,Y;if(q){if(Y=Math.ceil(this.max/q)-Math.floor(this.min/q)+1,Y>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${q} would result generating up to ${Y} ticks. Limiting to 1000.`),Y=1000}else Y=this.computeTickLimit(),J=J||11;if(J)Y=Math.min(J,Y);return Y}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let Q=this.options,J=Q.ticks,q=this.getTickLimit();q=Math.max(2,q);let Y={maxTicks:q,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},U=this._range||this,K=HD(Y,U);if(Q.bounds==="ticks")rU(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,q=this.max;if(super.configure(),this.options.offset&&Q.length){let Y=(q-J)/Math.max(Q.length-1,1)/2;J-=Y,q+=Y}this._startValue=J,this._endValue=q,this._valueRange=q-J}getLabelForValue(Q){return $q(Q,this.chart.options.locale,this.options.ticks.format)}}class x4 extends eZ{static id="linear";static defaults={ticks:{callback:uZ.formatters.numeric}};determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);this.min=O1(Q)?Q:0,this.max=O1(J)?J:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),J=Q?this.width:this.height,q=$6(this.options.ticks.minRotation),Y=(Q?Math.sin(q):Math.cos(q))||0.001,U=this._resolveTickFontOptions(0);return Math.ceil(J/Math.min(40,U.lineHeight/Y))}getPixelForValue(Q){return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getValueForPixel(Q){return this._startValue+this.getDecimalForPixel(Q)*this._valueRange}}var $Q=(Q)=>Math.floor(e8(Q)),R$=(Q,J)=>Math.pow(10,$Q(Q)+J);function yT(Q){return Q/Math.pow(10,$Q(Q))===1}function gT(Q,J,q){let Y=Math.pow(10,q),U=Math.floor(Q/Y);return Math.ceil(J/Y)-U}function MD(Q,J){let q=J-Q,Y=$Q(q);while(gT(Q,J,Y)>10)Y++;while(gT(Q,J,Y)<10)Y--;return Math.min(Y,$Q(Q))}function FD(Q,{min:J,max:q}){J=g5(Q.min,J);let Y=[],U=$Q(J),K=MD(J,q),H=K<0?Math.pow(10,Math.abs(K)):1,M=Math.pow(10,K),F=U>K?Math.pow(10,U):0,R=Math.round((J-F)*H)/H,T=Math.floor((J-F)/M/10)*M*10,z=Math.floor((R-T)/Math.pow(10,K)),L=g5(Q.min,Math.round((F+T+z*Math.pow(10,K))*H)/H);while(L<q){if(Y.push({value:L,major:yT(L),significand:z}),z>=10)z=z<15?15:20;else z++;if(z>=20)K++,z=2,H=K>=0?1:H;L=Math.round((F+T+z*Math.pow(10,K))*H)/H}let P=g5(Q.max,L);return Y.push({value:P,major:yT(P),significand:z}),Y}class WD extends T${static id="logarithmic";static defaults={ticks:{callback:uZ.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 q=eZ.prototype.parse.apply(this,[Q,J]);if(q===0){this._zero=!0;return}return O1(q)&&q>0?q:null}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!0);if(this.min=O1(Q)?Math.max(0,Q):null,this.max=O1(J)?Math.max(0,J):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!O1(this._userMin))this.min=Q===R$(this.min,0)?R$(this.min,-1):R$(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:Q,maxDefined:J}=this.getUserBounds(),q=this.min,Y=this.max,U=(H)=>q=Q?q:H,K=(H)=>Y=J?Y:H;if(q===Y)if(q<=0)U(1),K(10);else U(R$(q,-1)),K(R$(Y,1));if(q<=0)U(R$(Y,-1));if(Y<=0)K(R$(q,1));this.min=q,this.max=Y}buildTicks(){let Q=this.options,J={min:this._userMin,max:this._userMax},q=FD(J,this);if(Q.bounds==="ticks")rU(q,this,"value");if(Q.reverse)q.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return q}getLabelForValue(Q){return Q===void 0?"0":$q(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=e8(Q),this._valueRange=e8(this.max)-e8(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:(e8(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let J=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+J*this._valueRange)}}function vN(Q){let J=Q.ticks;if(J.display&&Q.display){let q=X5(J.backdropPadding);return h0(J.font&&J.font.size,D1.font.size)+q.height}return 0}function wD(Q,J,q){return q=z1(q)?q:[q],{w:kR(Q,J.string,q),h:q.length*J.lineHeight}}function hT(Q,J,q,Y,U){if(Q===Y||Q===U)return{start:J-q/2,end:J+q/2};else if(Q<Y||Q>U)return{start:J-q,end:J};return{start:J,end:J+q}}function RD(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},q=Object.assign({},J),Y=[],U=[],K=Q._pointLabels.length,H=Q.options.pointLabels,M=H.centerPointLabels?b1/K:0;for(let F=0;F<K;F++){let R=H.setContext(Q.getPointLabelContext(F));U[F]=R.padding;let T=Q.getPointPosition(F,Q.drawingArea+U[F],M),z=p1(R.font),L=wD(Q.ctx,z,Q._pointLabels[F]);Y[F]=L;let P=k5(Q.getIndexAngle(F)+M),I=Math.round(iJ(P)),A=hT(I,T.x,L.w,0,180),C=hT(I,T.y,L.h,90,270);TD(q,J,P,A,C)}Q.setCenterPoint(J.l-q.l,q.r-J.r,J.t-q.t,q.b-J.b),Q._pointLabelItems=LD(Q,Y,U)}function TD(Q,J,q,Y,U){let K=Math.abs(Math.sin(q)),H=Math.abs(Math.cos(q)),M=0,F=0;if(Y.start<J.l)M=(J.l-Y.start)/K,Q.l=Math.min(Q.l,J.l-M);else if(Y.end>J.r)M=(Y.end-J.r)/K,Q.r=Math.max(Q.r,J.r+M);if(U.start<J.t)F=(J.t-U.start)/H,Q.t=Math.min(Q.t,J.t-F);else if(U.end>J.b)F=(U.end-J.b)/H,Q.b=Math.max(Q.b,J.b+F)}function zD(Q,J,q){let Y=Q.drawingArea,{extra:U,additionalAngle:K,padding:H,size:M}=q,F=Q.getPointPosition(J,Y+U+H,K),R=Math.round(iJ(k5(F.angle+b5))),T=PD(F.y,M.h,R),z=VD(R),L=ED(F.x,M.w,z);return{visible:!0,x:F.x,y:T,textAlign:z,left:L,top:T,right:L+M.w,bottom:T+M.h}}function _D(Q,J){if(!J)return!0;let{left:q,top:Y,right:U,bottom:K}=Q;return!(w8({x:q,y:Y},J)||w8({x:q,y:K},J)||w8({x:U,y:Y},J)||w8({x:U,y:K},J))}function LD(Q,J,q){let Y=[],U=Q._pointLabels.length,K=Q.options,{centerPointLabels:H,display:M}=K.pointLabels,F={extra:vN(K)/2,additionalAngle:H?b1/U:0},R;for(let T=0;T<U;T++){F.padding=q[T],F.size=J[T];let z=zD(Q,T,F);if(Y.push(z),M==="auto"){if(z.visible=_D(z,R),z.visible)R=z}}return Y}function VD(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function ED(Q,J,q){if(q==="right")Q-=J;else if(q==="center")Q-=J/2;return Q}function PD(Q,J,q){if(q===90||q===270)Q-=J/2;else if(q>270||q<90)Q-=J;return Q}function CD(Q,J,q){let{left:Y,top:U,right:K,bottom:H}=q,{backdropColor:M}=J;if(!t0(M)){let F=K2(J.borderRadius),R=X5(J.backdropPadding);Q.fillStyle=M;let T=Y-R.left,z=U-R.top,L=K-Y+R.width,P=H-U+R.height;if(Object.values(F).some((I)=>I!==0))Q.beginPath(),d9(Q,{x:T,y:z,w:L,h:P,radius:F}),Q.fill();else Q.fillRect(T,z,L,P)}}function ID(Q,J){let{ctx:q,options:{pointLabels:Y}}=Q;for(let U=J-1;U>=0;U--){let K=Q._pointLabelItems[U];if(!K.visible)continue;let H=Y.setContext(Q.getPointLabelContext(U));CD(q,H,K);let M=p1(H.font),{x:F,y:R,textAlign:T}=K;N2(q,Q._pointLabels[U],F,R+M.lineHeight/2,M,{color:H.color,textAlign:T,textBaseline:"middle"})}}function Mz(Q,J,q,Y){let{ctx:U}=Q;if(q)U.arc(Q.xCenter,Q.yCenter,J,0,f5);else{let K=Q.getPointPosition(0,J);U.moveTo(K.x,K.y);for(let H=1;H<Y;H++)K=Q.getPointPosition(H,J),U.lineTo(K.x,K.y)}}function OD(Q,J,q,Y,U){let K=Q.ctx,H=J.circular,{color:M,lineWidth:F}=J;if(!H&&!Y||!M||!F||q<0)return;K.save(),K.strokeStyle=M,K.lineWidth=F,K.setLineDash(U.dash||[]),K.lineDashOffset=U.dashOffset,K.beginPath(),Mz(Q,q,H,Y),K.closePath(),K.stroke(),K.restore()}function DD(Q,J,q){return Q6(Q,{label:q,index:J,type:"pointLabel"})}class jD extends eZ{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:uZ.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=X5(vN(this.options)/2),J=this.width=this.maxWidth-Q.width,q=this.height=this.maxHeight-Q.height;this.xCenter=Math.floor(this.left+J/2+Q.left),this.yCenter=Math.floor(this.top+q/2+Q.top),this.drawingArea=Math.floor(Math.min(J,q)/2)}determineDataLimits(){let{min:Q,max:J}=this.getMinMax(!1);this.min=O1(Q)&&!isNaN(Q)?Q:0,this.max=O1(J)&&!isNaN(J)?J:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/vN(this.options))}generateTickLabels(Q){eZ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((J,q)=>{let Y=W1(this.options.pointLabels.callback,[J,q],this);return Y||Y===0?Y:""}).filter((J,q)=>this.chart.getDataVisibility(q))}fit(){let Q=this.options;if(Q.display&&Q.pointLabels.display)RD(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(Q,J,q,Y){this.xCenter+=Math.floor((Q-J)/2),this.yCenter+=Math.floor((q-Y)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Q,J,q,Y))}getIndexAngle(Q){let J=f5/(this._pointLabels.length||1),q=this.options.startAngle||0;return k5(Q*J+$6(q))}getDistanceFromCenterForValue(Q){if(t0(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(t0(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 q=J[Q];return DD(this.getContext(),Q,q)}}getPointPosition(Q,J,q=0){let Y=this.getIndexAngle(Q)-b5+q;return{x:Math.cos(Y)*J+this.xCenter,y:Math.sin(Y)*J+this.yCenter,angle:Y}}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:q,right:Y,bottom:U}=this._pointLabelItems[Q];return{left:J,top:q,right:Y,bottom:U}}drawBackground(){let{backgroundColor:Q,grid:{circular:J}}=this.options;if(Q){let q=this.ctx;q.save(),q.beginPath(),Mz(this,this.getDistanceFromCenterForValue(this._endValue),J,this._pointLabels.length),q.closePath(),q.fillStyle=Q,q.fill(),q.restore()}}drawGrid(){let Q=this.ctx,J=this.options,{angleLines:q,grid:Y,border:U}=J,K=this._pointLabels.length,H,M,F;if(J.pointLabels.display)ID(this,K);if(Y.display)this.ticks.forEach((R,T)=>{if(T!==0||T===0&&this.min<0){M=this.getDistanceFromCenterForValue(R.value);let z=this.getContext(T),L=Y.setContext(z),P=U.setContext(z);OD(this,L,M,K,P)}});if(q.display){Q.save();for(H=K-1;H>=0;H--){let R=q.setContext(this.getPointLabelContext(H)),{color:T,lineWidth:z}=R;if(!z||!T)continue;Q.lineWidth=z,Q.strokeStyle=T,Q.setLineDash(R.borderDash),Q.lineDashOffset=R.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,q=J.ticks;if(!q.display)return;let Y=this.getIndexAngle(0),U,K;Q.save(),Q.translate(this.xCenter,this.yCenter),Q.rotate(Y),Q.textAlign="center",Q.textBaseline="middle",this.ticks.forEach((H,M)=>{if(M===0&&this.min>=0&&!J.reverse)return;let F=q.setContext(this.getContext(M)),R=p1(F.font);if(U=this.getDistanceFromCenterForValue(this.ticks[M].value),F.showLabelBackdrop){Q.font=R.string,K=Q.measureText(H.label).width,Q.fillStyle=F.backdropColor;let T=X5(F.backdropPadding);Q.fillRect(-K/2-T.left,-U-R.size/2-T.top,K+T.width,R.size+T.height)}N2(Q,H.label,0,-U,R,{color:F.color,strokeColor:F.textStrokeColor,strokeWidth:F.textStrokeWidth})}),Q.restore()}drawTitle(){}}var Rq={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}},x5=Object.keys(Rq);function xT(Q,J){return Q-J}function uT(Q,J){if(t0(J))return null;let q=Q._adapter,{parser:Y,round:U,isoWeekday:K}=Q._parseOpts,H=J;if(typeof Y==="function")H=Y(H);if(!O1(H))H=typeof Y==="string"?q.parse(H,Y):q.parse(H);if(H===null)return null;if(U)H=U==="week"&&(m9(K)||K===!0)?q.startOf(H,"isoWeek",K):q.startOf(H,U);return+H}function mT(Q,J,q,Y){let U=x5.length;for(let K=x5.indexOf(Q);K<U-1;++K){let H=Rq[x5[K]],M=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((q-J)/(M*H.size))<=Y)return x5[K]}return x5[U-1]}function AD(Q,J,q,Y,U){for(let K=x5.length-1;K>=x5.indexOf(q);K--){let H=x5[K];if(Rq[H].common&&Q._adapter.diff(U,Y,H)>=J-1)return H}return x5[q?x5.indexOf(q):0]}function SD(Q){for(let J=x5.indexOf(Q)+1,q=x5.length;J<q;++J)if(Rq[x5[J]].common)return x5[J]}function dT(Q,J,q){if(!q)Q[J]=!0;else if(q.length){let{lo:Y,hi:U}=tJ(q,J),K=q[Y]>=J?q[Y]:q[U];Q[K]=!0}}function vD(Q,J,q,Y){let U=Q._adapter,K=+U.startOf(J[0].value,Y),H=J[J.length-1].value,M,F;for(M=K;M<=H;M=+U.add(M,1,Y))if(F=q[M],F>=0)J[F].major=!0;return J}function pT(Q,J,q){let Y=[],U={},K=J.length,H,M;for(H=0;H<K;++H)M=J[H],U[M]=H,Y.push({value:M,major:!1});return K===0||!q?Y:vD(Q,Y,U,q)}class kN extends T${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 q=Q.time||(Q.time={}),Y=this._adapter=new MI._date(Q.adapters.date);Y.init(J),h9(q.displayFormats,Y.formats()),this._parseOpts={parser:q.parser,round:q.round,isoWeekday:q.isoWeekday},super.init(Q),this._normalized=J.normalized}parse(Q,J){if(Q===void 0)return null;return uT(this,Q)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let Q=this.options,J=this._adapter,q=Q.time.unit||"day",{min:Y,max:U,minDefined:K,maxDefined:H}=this.getUserBounds();function M(F){if(!K&&!isNaN(F.min))Y=Math.min(Y,F.min);if(!H&&!isNaN(F.max))U=Math.max(U,F.max)}if(!K||!H){if(M(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")M(this.getMinMax(!1))}Y=O1(Y)&&!isNaN(Y)?Y:+J.startOf(Date.now(),q),U=O1(U)&&!isNaN(U)?U:+J.endOf(Date.now(),q)+1,this.min=Math.min(Y,U-1),this.max=Math.max(Y+1,U)}_getLabelBounds(){let Q=this.getLabelTimestamps(),J=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY;if(Q.length)J=Q[0],q=Q[Q.length-1];return{min:J,max:q}}buildTicks(){let Q=this.options,J=Q.time,q=Q.ticks,Y=q.source==="labels"?this.getLabelTimestamps():this._generate();if(Q.bounds==="ticks"&&Y.length)this.min=this._userMin||Y[0],this.max=this._userMax||Y[Y.length-1];let U=this.min,K=this.max,H=PR(Y,U,K);if(this._unit=J.unit||(q.autoSkip?mT(J.minUnit,this.min,this.max,this._getLabelCapacity(U)):AD(this,H.length,J.minUnit,this.min,this.max)),this._majorUnit=!q.major.enabled||this._unit==="year"?void 0:SD(this._unit),this.initOffsets(Y),Q.reverse)H.reverse();return pT(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((Q)=>+Q.value))}initOffsets(Q=[]){let J=0,q=0,Y,U;if(this.options.offset&&Q.length){if(Y=this.getDecimalForValue(Q[0]),Q.length===1)J=1-Y;else J=(this.getDecimalForValue(Q[1])-Y)/2;if(U=this.getDecimalForValue(Q[Q.length-1]),Q.length===1)q=U;else q=(U-this.getDecimalForValue(Q[Q.length-2]))/2}let K=Q.length<3?0.5:0.25;J=y5(J,0,K),q=y5(q,0,K),this._offsets={start:J,end:q,factor:1/(J+1+q)}}_generate(){let Q=this._adapter,J=this.min,q=this.max,Y=this.options,U=Y.time,K=U.unit||mT(U.minUnit,J,q,this._getLabelCapacity(J)),H=h0(Y.ticks.stepSize,1),M=K==="week"?U.isoWeekday:!1,F=m9(M)||M===!0,R={},T=J,z,L;if(F)T=+Q.startOf(T,"isoWeek",M);if(T=+Q.startOf(T,F?"day":K),Q.diff(q,J,K)>1e5*H)throw Error(J+" and "+q+" are too far apart with stepSize of "+H+" "+K);let P=Y.ticks.source==="data"&&this.getDataTimestamps();for(z=T,L=0;z<q;z=+Q.add(z,H,K),L++)dT(R,z,P);if(z===q||Y.bounds==="ticks"||L===1)dT(R,z,P);return Object.keys(R).sort(xT).map((I)=>+I)}getLabelForValue(Q){let J=this._adapter,q=this.options.time;if(q.tooltipFormat)return J.format(Q,q.tooltipFormat);return J.format(Q,q.displayFormats.datetime)}format(Q,J){let Y=this.options.time.displayFormats,U=this._unit,K=J||Y[U];return this._adapter.format(Q,K)}_tickFormatFunction(Q,J,q,Y){let U=this.options,K=U.ticks.callback;if(K)return W1(K,[Q,J,q],this);let H=U.time.displayFormats,M=this._unit,F=this._majorUnit,R=M&&H[M],T=F&&H[F],z=q[J],L=F&&T&&z&&z.major;return this._adapter.format(Q,Y||(L?T:R))}generateTickLabels(Q){let J,q,Y;for(J=0,q=Q.length;J<q;++J)Y=Q[J],Y.label=this._tickFormatFunction(Y.value,J,Q)}getDecimalForValue(Q){return Q===null?NaN:(Q-this.min)/(this.max-this.min)}getPixelForValue(Q){let J=this._offsets,q=this.getDecimalForValue(Q);return this.getPixelForDecimal((J.start+q)*J.factor)}getValueForPixel(Q){let J=this._offsets,q=this.getDecimalForPixel(Q)/J.factor-J.end;return this.min+q*(this.max-this.min)}_getLabelSize(Q){let J=this.options.ticks,q=this.ctx.measureText(Q).width,Y=$6(this.isHorizontal()?J.maxRotation:J.minRotation),U=Math.cos(Y),K=Math.sin(Y),H=this._resolveTickFontOptions(0).size;return{w:q*U+H*K,h:q*K+H*U}}_getLabelCapacity(Q){let J=this.options.time,q=J.displayFormats,Y=q[J.unit]||q.millisecond,U=this._tickFormatFunction(Q,0,pT(this,[Q],this._majorUnit),Y),K=this._getLabelSize(U),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,q;if(Q.length)return Q;let Y=this.getMatchingVisibleMetas();if(this._normalized&&Y.length)return this._cache.data=Y[0].controller.getAllParsedValues(this);for(J=0,q=Y.length;J<q;++J)Q=Q.concat(Y[J].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Q)}getLabelTimestamps(){let Q=this._cache.labels||[],J,q;if(Q.length)return Q;let Y=this.getLabels();for(J=0,q=Y.length;J<q;++J)Q.push(uT(this,Y[J]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return aU(Q.sort(xT))}}function Bq(Q,J,q){let Y=0,U=Q.length-1,K,H,M,F;if(q){if(J>=Q[Y].pos&&J<=Q[U].pos)({lo:Y,hi:U}=q2(Q,"pos",J));({pos:K,time:M}=Q[Y]),{pos:H,time:F}=Q[U]}else{if(J>=Q[Y].time&&J<=Q[U].time)({lo:Y,hi:U}=q2(Q,"time",J));({time:K,pos:M}=Q[Y]),{time:H,pos:F}=Q[U]}let R=H-K;return R?M+(F-M)*(J-K)/R:M}class kD extends kN{static id="timeseries";static defaults=kN.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=Bq(J,this.min),this._tableRange=Bq(J,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:J,max:q}=this,Y=[],U=[],K,H,M,F,R;for(K=0,H=Q.length;K<H;++K)if(F=Q[K],F>=J&&F<=q)Y.push(F);if(Y.length<2)return[{time:J,pos:0},{time:q,pos:1}];for(K=0,H=Y.length;K<H;++K)if(R=Y[K+1],M=Y[K-1],F=Y[K],Math.round((R+M)/2)!==F)U.push({time:F,pos:K/(H-1)});return U}_generate(){let Q=this.min,J=this.max,q=super.getDataTimestamps();if(!q.includes(Q)||!q.length)q.splice(0,0,Q);if(!q.includes(J)||q.length===1)q.push(J);return q.sort((Y,U)=>Y-U)}_getTimestampsForTable(){let Q=this._cache.all||[];if(Q.length)return Q;let J=this.getDataTimestamps(),q=this.getLabelTimestamps();if(J.length&&q.length)Q=this.normalize(J.concat(q));else Q=J.length?J:q;return Q=this._cache.all=Q,Q}getDecimalForValue(Q){return(Bq(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let J=this._offsets,q=this.getDecimalForPixel(Q)/J.factor-J.end;return Bq(this._table,q*this._tableRange+this._minPos,!0)}}var qQ=R0(e1(),1);var mN=R0(Fz(),1),q4=R0(e1(),1);var wz="label";function Wz(Q,J){if(typeof Q==="function")Q(J);else if(Q)Q.current=J}function fD(Q,J){let q=Q.options;if(q&&J)Object.assign(q,J)}function Rz(Q,J){Q.labels=J}function Tz(Q,J,q=wz){let Y=[];Q.datasets=J.map((U)=>{let K=Q.datasets.find((H)=>H[q]===U[q]);if(!K||!U.data||Y.includes(K))return{...U};return Y.push(K),Object.assign(K,U),K})}function yD(Q,J=wz){let q={labels:[],datasets:[]};return Rz(q,Q.labels),Tz(q,Q.datasets,J),q}function gD(Q,J){let{height:q=150,width:Y=300,redraw:U=!1,datasetIdKey:K,type:H,data:M,options:F,plugins:R=[],fallbackContent:T,updateMode:z,...L}=Q,P=q4.useRef(null),I=q4.useRef(null),A=()=>{if(!P.current)return;I.current=new P5(P.current,{type:H,data:yD(M,K),options:F&&{...F},plugins:R}),Wz(J,I.current)},C=()=>{if(Wz(J,null),I.current)I.current.destroy(),I.current=null};return q4.useEffect(()=>{if(!U&&I.current&&F)fD(I.current,F)},[U,F]),q4.useEffect(()=>{if(!U&&I.current)Rz(I.current.config.data,M.labels)},[U,M.labels]),q4.useEffect(()=>{if(!U&&I.current&&M.datasets)Tz(I.current.config.data,M.datasets,K)},[U,M.datasets]),q4.useEffect(()=>{if(!I.current)return;if(U)C(),setTimeout(A);else I.current.update(z)},[U,F,M.labels,M.datasets,z]),q4.useEffect(()=>{if(!I.current)return;C(),setTimeout(A)},[H]),q4.useEffect(()=>{return A(),()=>C()},[]),mN.jsx("canvas",{ref:P,role:"img",height:q,width:Y,...L,children:T})}var hD=q4.forwardRef(gD);function zz(Q,J){return P5.register(J),q4.forwardRef((q,Y)=>mN.jsx(hD,{...q,ref:Y,type:Q}))}var E4=zz("line",yN),Tq=zz("bar",fN);var zq=R0(e1(),1),_z="(prefers-color-scheme: dark)";function xD(){if(typeof window>"u")return"light";return window.matchMedia(_z).matches?"dark":"light"}function E8(){let[Q,J]=zq.useState(()=>xD());return zq.useEffect(()=>{let q=window.matchMedia(_z),Y=()=>{J(q.matches?"dark":"light")};return Y(),q.addEventListener("change",Y),()=>q.removeEventListener("change",Y)},[]),Q}var uD=Math.pow(10,8)*24*60*60*1000,Fv=-uD,_q=604800000,Lz=86400000;var GQ=43200,dN=1440;var pN=Symbol.for("constructDateFrom");function F5(Q,J){if(typeof Q==="function")return Q(J);if(Q&&typeof Q==="object"&&pN in Q)return Q[pN](J);if(Q instanceof Date)return new Q.constructor(J);return new Date(J)}function e0(Q,J){return F5(J||Q,Q)}var mD={};function P8(){return mD}function X6(Q,J){let q=P8(),Y=J?.weekStartsOn??J?.locale?.options?.weekStartsOn??q.weekStartsOn??q.locale?.options?.weekStartsOn??0,U=e0(Q,J?.in),K=U.getDay(),H=(K<Y?7:0)+K-Y;return U.setDate(U.getDate()-H),U.setHours(0,0,0,0),U}function _$(Q,J){return X6(Q,{...J,weekStartsOn:1})}function Lq(Q,J){let q=e0(Q,J?.in),Y=q.getFullYear(),U=F5(q,0);U.setFullYear(Y+1,0,4),U.setHours(0,0,0,0);let K=_$(U),H=F5(q,0);H.setFullYear(Y,0,4),H.setHours(0,0,0,0);let M=_$(H);if(q.getTime()>=K.getTime())return Y+1;else if(q.getTime()>=M.getTime())return Y;else return Y-1}function c9(Q){let J=e0(Q),q=new Date(Date.UTC(J.getFullYear(),J.getMonth(),J.getDate(),J.getHours(),J.getMinutes(),J.getSeconds(),J.getMilliseconds()));return q.setUTCFullYear(J.getFullYear()),+Q-+q}function M2(Q,...J){let q=F5.bind(null,Q||J.find((Y)=>typeof Y==="object"));return J.map(q)}function cN(Q,J){let q=e0(Q,J?.in);return q.setHours(0,0,0,0),q}function Vz(Q,J,q){let[Y,U]=M2(q?.in,Q,J),K=cN(Y),H=cN(U),M=+K-c9(K),F=+H-c9(H);return Math.round((M-F)/Lz)}function Ez(Q,J){let q=Lq(Q,J),Y=F5(J?.in||Q,0);return Y.setFullYear(q,0,4),Y.setHours(0,0,0,0),_$(Y)}function l9(Q,J){let q=+e0(Q)-+e0(J);if(q<0)return-1;else if(q>0)return 1;return q}function Pz(Q){return F5(Q,Date.now())}function Cz(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function Iz(Q){return!(!Cz(Q)&&typeof Q!=="number"||isNaN(+e0(Q)))}function Oz(Q,J,q){let[Y,U]=M2(q?.in,Q,J),K=Y.getFullYear()-U.getFullYear(),H=Y.getMonth()-U.getMonth();return K*12+H}function Dz(Q){return(J)=>{let Y=(Q?Math[Q]:Math.trunc)(J);return Y===0?0:Y}}function jz(Q,J){return+e0(Q)-+e0(J)}function Az(Q,J){let q=e0(Q,J?.in);return q.setHours(23,59,59,999),q}function Sz(Q,J){let q=e0(Q,J?.in),Y=q.getMonth();return q.setFullYear(q.getFullYear(),Y+1,0),q.setHours(23,59,59,999),q}function vz(Q,J){let q=e0(Q,J?.in);return+Az(q,J)===+Sz(q,J)}function kz(Q,J,q){let[Y,U,K]=M2(q?.in,Q,Q,J),H=l9(U,K),M=Math.abs(Oz(U,K));if(M<1)return 0;if(U.getMonth()===1&&U.getDate()>27)U.setDate(30);U.setMonth(U.getMonth()-H*M);let F=l9(U,K)===-H;if(vz(Y)&&M===1&&l9(Y,K)===1)F=!1;let R=H*(M-+F);return R===0?0:R}function bz(Q,J,q){let Y=jz(Q,J)/1000;return Dz(q?.roundingMethod)(Y)}function fz(Q,J){let q=e0(Q,J?.in);return q.setFullYear(q.getFullYear(),0,1),q.setHours(0,0,0,0),q}var dD={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"}},yz=(Q,J,q)=>{let Y,U=dD[Q];if(typeof U==="string")Y=U;else if(J===1)Y=U.one;else Y=U.other.replace("{{count}}",J.toString());if(q?.addSuffix)if(q.comparison&&q.comparison>0)return"in "+Y;else return Y+" ago";return Y};function Vq(Q){return(J={})=>{let q=J.width?String(J.width):Q.defaultWidth;return Q.formats[q]||Q.formats[Q.defaultWidth]}}var pD={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cD={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},lD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gz={date:Vq({formats:pD,defaultWidth:"full"}),time:Vq({formats:cD,defaultWidth:"full"}),dateTime:Vq({formats:lD,defaultWidth:"full"})};var rD={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hz=(Q,J,q,Y)=>rD[Q];function r9(Q){return(J,q)=>{let Y=q?.context?String(q.context):"standalone",U;if(Y==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,M=q?.width?String(q.width):H;U=Q.formattingValues[M]||Q.formattingValues[H]}else{let H=Q.defaultWidth,M=q?.width?String(q.width):Q.defaultWidth;U=Q.values[M]||Q.values[H]}let K=Q.argumentCallback?Q.argumentCallback(J):J;return U[K]}}var sD={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nD={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oD={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"]},aD={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"]},iD={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"}},tD={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"}},eD=(Q,J)=>{let q=Number(Q),Y=q%100;if(Y>20||Y<10)switch(Y%10){case 1:return q+"st";case 2:return q+"nd";case 3:return q+"rd"}return q+"th"},xz={ordinalNumber:eD,era:r9({values:sD,defaultWidth:"wide"}),quarter:r9({values:nD,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:r9({values:oD,defaultWidth:"wide"}),day:r9({values:aD,defaultWidth:"wide"}),dayPeriod:r9({values:iD,defaultWidth:"wide",formattingValues:tD,defaultFormattingWidth:"wide"})};function s9(Q){return(J,q={})=>{let Y=q.width,U=Y&&Q.matchPatterns[Y]||Q.matchPatterns[Q.defaultMatchWidth],K=J.match(U);if(!K)return null;let H=K[0],M=Y&&Q.parsePatterns[Y]||Q.parsePatterns[Q.defaultParseWidth],F=Array.isArray(M)?Zj(M,(z)=>z.test(H)):$j(M,(z)=>z.test(H)),R;R=Q.valueCallback?Q.valueCallback(F):F,R=q.valueCallback?q.valueCallback(R):R;let T=J.slice(H.length);return{value:R,rest:T}}}function $j(Q,J){for(let q in Q)if(Object.prototype.hasOwnProperty.call(Q,q)&&J(Q[q]))return q;return}function Zj(Q,J){for(let q=0;q<Q.length;q++)if(J(Q[q]))return q;return}function uz(Q){return(J,q={})=>{let Y=J.match(Q.matchPattern);if(!Y)return null;let U=Y[0],K=J.match(Q.parsePattern);if(!K)return null;let H=Q.valueCallback?Q.valueCallback(K[0]):K[0];H=q.valueCallback?q.valueCallback(H):H;let M=J.slice(U.length);return{value:H,rest:M}}}var Qj=/^(\d+)(th|st|nd|rd)?/i,Gj=/\d+/i,Jj={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},qj={any:[/^b/i,/^(a|c)/i]},Xj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Yj={any:[/1/i,/2/i,/3/i,/4/i]},Uj={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},Nj={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]},Kj={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},Bj={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]},Hj={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},Mj={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}},mz={ordinalNumber:uz({matchPattern:Qj,parsePattern:Gj,valueCallback:(Q)=>parseInt(Q,10)}),era:s9({matchPatterns:Jj,defaultMatchWidth:"wide",parsePatterns:qj,defaultParseWidth:"any"}),quarter:s9({matchPatterns:Xj,defaultMatchWidth:"wide",parsePatterns:Yj,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:s9({matchPatterns:Uj,defaultMatchWidth:"wide",parsePatterns:Nj,defaultParseWidth:"any"}),day:s9({matchPatterns:Kj,defaultMatchWidth:"wide",parsePatterns:Bj,defaultParseWidth:"any"}),dayPeriod:s9({matchPatterns:Hj,defaultMatchWidth:"any",parsePatterns:Mj,defaultParseWidth:"any"})};var JQ={code:"en-US",formatDistance:yz,formatLong:gz,formatRelative:hz,localize:xz,match:mz,options:{weekStartsOn:0,firstWeekContainsDate:1}};function dz(Q,J){let q=e0(Q,J?.in);return Vz(q,fz(q))+1}function pz(Q,J){let q=e0(Q,J?.in),Y=+_$(q)-+Ez(q);return Math.round(Y/_q)+1}function Eq(Q,J){let q=e0(Q,J?.in),Y=q.getFullYear(),U=P8(),K=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??U.firstWeekContainsDate??U.locale?.options?.firstWeekContainsDate??1,H=F5(J?.in||Q,0);H.setFullYear(Y+1,0,K),H.setHours(0,0,0,0);let M=X6(H,J),F=F5(J?.in||Q,0);F.setFullYear(Y,0,K),F.setHours(0,0,0,0);let R=X6(F,J);if(+q>=+M)return Y+1;else if(+q>=+R)return Y;else return Y-1}function cz(Q,J){let q=P8(),Y=J?.firstWeekContainsDate??J?.locale?.options?.firstWeekContainsDate??q.firstWeekContainsDate??q.locale?.options?.firstWeekContainsDate??1,U=Eq(Q,J),K=F5(J?.in||Q,0);return K.setFullYear(U,0,Y),K.setHours(0,0,0,0),X6(K,J)}function lz(Q,J){let q=e0(Q,J?.in),Y=+X6(q,J)-+cz(q,J);return Math.round(Y/_q)+1}function Q1(Q,J){let q=Q<0?"-":"",Y=Math.abs(Q).toString().padStart(J,"0");return q+Y}var Y6={y(Q,J){let q=Q.getFullYear(),Y=q>0?q:1-q;return Q1(J==="yy"?Y%100:Y,J.length)},M(Q,J){let q=Q.getMonth();return J==="M"?String(q+1):Q1(q+1,2)},d(Q,J){return Q1(Q.getDate(),J.length)},a(Q,J){let q=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return q.toUpperCase();case"aaa":return q;case"aaaaa":return q[0];case"aaaa":default:return q==="am"?"a.m.":"p.m."}},h(Q,J){return Q1(Q.getHours()%12||12,J.length)},H(Q,J){return Q1(Q.getHours(),J.length)},m(Q,J){return Q1(Q.getMinutes(),J.length)},s(Q,J){return Q1(Q.getSeconds(),J.length)},S(Q,J){let q=J.length,Y=Q.getMilliseconds(),U=Math.trunc(Y*Math.pow(10,q-3));return Q1(U,J.length)}};var n9={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lN={G:function(Q,J,q){let Y=Q.getFullYear()>0?1:0;switch(J){case"G":case"GG":case"GGG":return q.era(Y,{width:"abbreviated"});case"GGGGG":return q.era(Y,{width:"narrow"});case"GGGG":default:return q.era(Y,{width:"wide"})}},y:function(Q,J,q){if(J==="yo"){let Y=Q.getFullYear(),U=Y>0?Y:1-Y;return q.ordinalNumber(U,{unit:"year"})}return Y6.y(Q,J)},Y:function(Q,J,q,Y){let U=Eq(Q,Y),K=U>0?U:1-U;if(J==="YY"){let H=K%100;return Q1(H,2)}if(J==="Yo")return q.ordinalNumber(K,{unit:"year"});return Q1(K,J.length)},R:function(Q,J){let q=Lq(Q);return Q1(q,J.length)},u:function(Q,J){let q=Q.getFullYear();return Q1(q,J.length)},Q:function(Q,J,q){let Y=Math.ceil((Q.getMonth()+1)/3);switch(J){case"Q":return String(Y);case"QQ":return Q1(Y,2);case"Qo":return q.ordinalNumber(Y,{unit:"quarter"});case"QQQ":return q.quarter(Y,{width:"abbreviated",context:"formatting"});case"QQQQQ":return q.quarter(Y,{width:"narrow",context:"formatting"});case"QQQQ":default:return q.quarter(Y,{width:"wide",context:"formatting"})}},q:function(Q,J,q){let Y=Math.ceil((Q.getMonth()+1)/3);switch(J){case"q":return String(Y);case"qq":return Q1(Y,2);case"qo":return q.ordinalNumber(Y,{unit:"quarter"});case"qqq":return q.quarter(Y,{width:"abbreviated",context:"standalone"});case"qqqqq":return q.quarter(Y,{width:"narrow",context:"standalone"});case"qqqq":default:return q.quarter(Y,{width:"wide",context:"standalone"})}},M:function(Q,J,q){let Y=Q.getMonth();switch(J){case"M":case"MM":return Y6.M(Q,J);case"Mo":return q.ordinalNumber(Y+1,{unit:"month"});case"MMM":return q.month(Y,{width:"abbreviated",context:"formatting"});case"MMMMM":return q.month(Y,{width:"narrow",context:"formatting"});case"MMMM":default:return q.month(Y,{width:"wide",context:"formatting"})}},L:function(Q,J,q){let Y=Q.getMonth();switch(J){case"L":return String(Y+1);case"LL":return Q1(Y+1,2);case"Lo":return q.ordinalNumber(Y+1,{unit:"month"});case"LLL":return q.month(Y,{width:"abbreviated",context:"standalone"});case"LLLLL":return q.month(Y,{width:"narrow",context:"standalone"});case"LLLL":default:return q.month(Y,{width:"wide",context:"standalone"})}},w:function(Q,J,q,Y){let U=lz(Q,Y);if(J==="wo")return q.ordinalNumber(U,{unit:"week"});return Q1(U,J.length)},I:function(Q,J,q){let Y=pz(Q);if(J==="Io")return q.ordinalNumber(Y,{unit:"week"});return Q1(Y,J.length)},d:function(Q,J,q){if(J==="do")return q.ordinalNumber(Q.getDate(),{unit:"date"});return Y6.d(Q,J)},D:function(Q,J,q){let Y=dz(Q);if(J==="Do")return q.ordinalNumber(Y,{unit:"dayOfYear"});return Q1(Y,J.length)},E:function(Q,J,q){let Y=Q.getDay();switch(J){case"E":case"EE":case"EEE":return q.day(Y,{width:"abbreviated",context:"formatting"});case"EEEEE":return q.day(Y,{width:"narrow",context:"formatting"});case"EEEEEE":return q.day(Y,{width:"short",context:"formatting"});case"EEEE":default:return q.day(Y,{width:"wide",context:"formatting"})}},e:function(Q,J,q,Y){let U=Q.getDay(),K=(U-Y.weekStartsOn+8)%7||7;switch(J){case"e":return String(K);case"ee":return Q1(K,2);case"eo":return q.ordinalNumber(K,{unit:"day"});case"eee":return q.day(U,{width:"abbreviated",context:"formatting"});case"eeeee":return q.day(U,{width:"narrow",context:"formatting"});case"eeeeee":return q.day(U,{width:"short",context:"formatting"});case"eeee":default:return q.day(U,{width:"wide",context:"formatting"})}},c:function(Q,J,q,Y){let U=Q.getDay(),K=(U-Y.weekStartsOn+8)%7||7;switch(J){case"c":return String(K);case"cc":return Q1(K,J.length);case"co":return q.ordinalNumber(K,{unit:"day"});case"ccc":return q.day(U,{width:"abbreviated",context:"standalone"});case"ccccc":return q.day(U,{width:"narrow",context:"standalone"});case"cccccc":return q.day(U,{width:"short",context:"standalone"});case"cccc":default:return q.day(U,{width:"wide",context:"standalone"})}},i:function(Q,J,q){let Y=Q.getDay(),U=Y===0?7:Y;switch(J){case"i":return String(U);case"ii":return Q1(U,J.length);case"io":return q.ordinalNumber(U,{unit:"day"});case"iii":return q.day(Y,{width:"abbreviated",context:"formatting"});case"iiiii":return q.day(Y,{width:"narrow",context:"formatting"});case"iiiiii":return q.day(Y,{width:"short",context:"formatting"});case"iiii":default:return q.day(Y,{width:"wide",context:"formatting"})}},a:function(Q,J,q){let U=Q.getHours()/12>=1?"pm":"am";switch(J){case"a":case"aa":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"});case"aaa":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return q.dayPeriod(U,{width:"narrow",context:"formatting"});case"aaaa":default:return q.dayPeriod(U,{width:"wide",context:"formatting"})}},b:function(Q,J,q){let Y=Q.getHours(),U;if(Y===12)U=n9.noon;else if(Y===0)U=n9.midnight;else U=Y/12>=1?"pm":"am";switch(J){case"b":case"bb":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"});case"bbb":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return q.dayPeriod(U,{width:"narrow",context:"formatting"});case"bbbb":default:return q.dayPeriod(U,{width:"wide",context:"formatting"})}},B:function(Q,J,q){let Y=Q.getHours(),U;if(Y>=17)U=n9.evening;else if(Y>=12)U=n9.afternoon;else if(Y>=4)U=n9.morning;else U=n9.night;switch(J){case"B":case"BB":case"BBB":return q.dayPeriod(U,{width:"abbreviated",context:"formatting"});case"BBBBB":return q.dayPeriod(U,{width:"narrow",context:"formatting"});case"BBBB":default:return q.dayPeriod(U,{width:"wide",context:"formatting"})}},h:function(Q,J,q){if(J==="ho"){let Y=Q.getHours()%12;if(Y===0)Y=12;return q.ordinalNumber(Y,{unit:"hour"})}return Y6.h(Q,J)},H:function(Q,J,q){if(J==="Ho")return q.ordinalNumber(Q.getHours(),{unit:"hour"});return Y6.H(Q,J)},K:function(Q,J,q){let Y=Q.getHours()%12;if(J==="Ko")return q.ordinalNumber(Y,{unit:"hour"});return Q1(Y,J.length)},k:function(Q,J,q){let Y=Q.getHours();if(Y===0)Y=24;if(J==="ko")return q.ordinalNumber(Y,{unit:"hour"});return Q1(Y,J.length)},m:function(Q,J,q){if(J==="mo")return q.ordinalNumber(Q.getMinutes(),{unit:"minute"});return Y6.m(Q,J)},s:function(Q,J,q){if(J==="so")return q.ordinalNumber(Q.getSeconds(),{unit:"second"});return Y6.s(Q,J)},S:function(Q,J){return Y6.S(Q,J)},X:function(Q,J,q){let Y=Q.getTimezoneOffset();if(Y===0)return"Z";switch(J){case"X":return sz(Y);case"XXXX":case"XX":return L$(Y);case"XXXXX":case"XXX":default:return L$(Y,":")}},x:function(Q,J,q){let Y=Q.getTimezoneOffset();switch(J){case"x":return sz(Y);case"xxxx":case"xx":return L$(Y);case"xxxxx":case"xxx":default:return L$(Y,":")}},O:function(Q,J,q){let Y=Q.getTimezoneOffset();switch(J){case"O":case"OO":case"OOO":return"GMT"+rz(Y,":");case"OOOO":default:return"GMT"+L$(Y,":")}},z:function(Q,J,q){let Y=Q.getTimezoneOffset();switch(J){case"z":case"zz":case"zzz":return"GMT"+rz(Y,":");case"zzzz":default:return"GMT"+L$(Y,":")}},t:function(Q,J,q){let Y=Math.trunc(+Q/1000);return Q1(Y,J.length)},T:function(Q,J,q){return Q1(+Q,J.length)}};function rz(Q,J=""){let q=Q>0?"-":"+",Y=Math.abs(Q),U=Math.trunc(Y/60),K=Y%60;if(K===0)return q+String(U);return q+String(U)+J+Q1(K,2)}function sz(Q,J){if(Q%60===0)return(Q>0?"-":"+")+Q1(Math.abs(Q)/60,2);return L$(Q,J)}function L$(Q,J=""){let q=Q>0?"-":"+",Y=Math.abs(Q),U=Q1(Math.trunc(Y/60),2),K=Q1(Y%60,2);return q+U+J+K}var nz=(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"})}},oz=(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"})}},Fj=(Q,J)=>{let q=Q.match(/(P+)(p+)?/)||[],Y=q[1],U=q[2];if(!U)return nz(Q,J);let K;switch(Y){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}}",nz(Y,J)).replace("{{time}}",oz(U,J))},az={p:oz,P:Fj};var Wj=/^D+$/,wj=/^Y+$/,Rj=["D","DD","YY","YYYY"];function iz(Q){return Wj.test(Q)}function tz(Q){return wj.test(Q)}function ez(Q,J,q){let Y=Tj(Q,J,q);if(console.warn(Y),Rj.includes(Q))throw RangeError(Y)}function Tj(Q,J,q){let Y=Q[0]==="Y"?"years":"days of the month";return`Use \`${Q.toLowerCase()}\` instead of \`${Q}\` (in \`${J}\`) for formatting ${Y} to the input \`${q}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var zj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_j=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Lj=/^'([^]*?)'?$/,Vj=/''/g,Ej=/[a-zA-Z]/;function u4(Q,J,q){let Y=P8(),U=q?.locale??Y.locale??JQ,K=q?.firstWeekContainsDate??q?.locale?.options?.firstWeekContainsDate??Y.firstWeekContainsDate??Y.locale?.options?.firstWeekContainsDate??1,H=q?.weekStartsOn??q?.locale?.options?.weekStartsOn??Y.weekStartsOn??Y.locale?.options?.weekStartsOn??0,M=e0(Q,q?.in);if(!Iz(M))throw RangeError("Invalid time value");let F=J.match(_j).map((T)=>{let z=T[0];if(z==="p"||z==="P"){let L=az[z];return L(T,U.formatLong)}return T}).join("").match(zj).map((T)=>{if(T==="''")return{isToken:!1,value:"'"};let z=T[0];if(z==="'")return{isToken:!1,value:Pj(T)};if(lN[z])return{isToken:!0,value:T};if(z.match(Ej))throw RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return{isToken:!1,value:T}});if(U.localize.preprocessor)F=U.localize.preprocessor(M,F);let R={firstWeekContainsDate:K,weekStartsOn:H,locale:U};return F.map((T)=>{if(!T.isToken)return T.value;let z=T.value;if(!q?.useAdditionalWeekYearTokens&&tz(z)||!q?.useAdditionalDayOfYearTokens&&iz(z))ez(z,J,String(Q));let L=lN[z[0]];return L(M,z,U.localize,R)}).join("")}function Pj(Q){let J=Q.match(Lj);if(!J)return Q;return J[1].replace(Vj,"'")}function $_(Q,J,q){let Y=P8(),U=q?.locale??Y.locale??JQ,K=2520,H=l9(Q,J);if(isNaN(H))throw RangeError("Invalid time value");let M=Object.assign({},q,{addSuffix:q?.addSuffix,comparison:H}),[F,R]=M2(q?.in,...H>0?[J,Q]:[Q,J]),T=bz(R,F),z=(c9(R)-c9(F))/1000,L=Math.round((T-z)/60),P;if(L<2)if(q?.includeSeconds)if(T<5)return U.formatDistance("lessThanXSeconds",5,M);else if(T<10)return U.formatDistance("lessThanXSeconds",10,M);else if(T<20)return U.formatDistance("lessThanXSeconds",20,M);else if(T<40)return U.formatDistance("halfAMinute",0,M);else if(T<60)return U.formatDistance("lessThanXMinutes",1,M);else return U.formatDistance("xMinutes",1,M);else if(L===0)return U.formatDistance("lessThanXMinutes",1,M);else return U.formatDistance("xMinutes",L,M);else if(L<45)return U.formatDistance("xMinutes",L,M);else if(L<90)return U.formatDistance("aboutXHours",1,M);else if(L<dN){let I=Math.round(L/60);return U.formatDistance("aboutXHours",I,M)}else if(L<2520)return U.formatDistance("xDays",1,M);else if(L<GQ){let I=Math.round(L/dN);return U.formatDistance("xDays",I,M)}else if(L<GQ*2)return P=Math.round(L/GQ),U.formatDistance("aboutXMonths",P,M);if(P=kz(R,F),P<12){let I=Math.round(L/GQ);return U.formatDistance("xMonths",I,M)}else{let I=P%12,A=Math.trunc(P/12);if(I<3)return U.formatDistance("aboutXYears",A,M);else if(I<9)return U.formatDistance("overXYears",A,M);else return U.formatDistance("almostXYears",A+1,M)}}function Z_(Q,J){return $_(Q,Pz(Q),J)}var m5=R0(G1(),1),Y5=["#a78bfa","#22d3ee","#ec4899","#4ade80","#fbbf24","#f87171","#60a5fa"],Pq={dark:{legendLabel:"#94a3b8",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#64748b"},light:{legendLabel:"#475569",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#64748b"}};function Cq(Q){let{chartTheme:J,showLegend:q,defaultLabel:Y,formatValue:U,footer:K}=Q;return{legend:{display:q,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??Y,F=H.parsed.y??0;return`${M}: ${U(F)}`},...K?{footer:K}:{}}}}}function Iq(Q){let{chartTheme:J,formatY:q}=Q,Y={grid:{color:J.grid,drawBorder:!1},ticks:{color:J.tick,font:{size:11}}},U={...Y,ticks:{...Y.ticks,callback:(K)=>q(Number(K))},min:0};return{sharedScaleBase:Y,yScale:U}}function Oq(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function Dq(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:3}}function o9(Q,J){return Q.datasets.map((q,Y)=>({label:q.label,data:q.data,...J(Y)}))}function jq(Q,J,q){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:Y,accumulate:U,bucketToValue:K}=q,H=new Map;for(let F of Q){let R=H.get(F.timestamp)??Y();U(R,F),H.set(F.timestamp,R)}let M=[...H.entries()].sort((F,R)=>F[0]-R[0]);return{labels:M.map(([F])=>u4(new Date(F),"MMM d")),datasets:[{label:J,data:M.map(([,F])=>K(F))}]}}function Aq(Q,J){if(Q.length===0)return{labels:[],datasets:[]};let{topN:q=5,rankWeight:Y,initBucket:U,accumulate:K,bucketToValue:H}=J,M=new Map;for(let g of Q){let m=`${g.model}::${g.provider}`,o=M.get(m);if(o)o.weight+=Y(g);else M.set(m,{model:g.model,provider:g.provider,weight:Y(g)})}let R=[...M.entries()].sort((g,m)=>m[1].weight-g[1].weight).slice(0,q),T=new Set(R.map(([g])=>g)),z=new Map;for(let[,{model:g}]of R)z.set(g,(z.get(g)??0)+1);let L=new Map;for(let[g,{model:m,provider:o}]of R)L.set(g,(z.get(m)??0)>1?`${m} (${o})`:m);let P=[...new Set(Q.map((g)=>g.timestamp))].sort((g,m)=>g-m),I=R.map(([g])=>L.get(g)??g);if(Q.some((g)=>!T.has(`${g.model}::${g.provider}`)))I.push("Other");let C=new Map;for(let g of P)C.set(g,{});for(let g of Q){let m=`${g.model}::${g.provider}`,o=T.has(m)?L.get(m)??g.model:"Other",a=C.get(g.timestamp);if(!a)continue;let s=a[o]??U();K(s,g),a[o]=s}return{labels:P.map((g)=>u4(new Date(g),"MMM d")),datasets:I.map((g)=>({label:g,data:P.map((m)=>{let o=C.get(m)?.[g];return o?H(o):0})}))}}function Ij({byModel:Q,onChange:J}){return m5.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-sm)] p-0.5 border border-[var(--border-subtle)]",children:[m5.jsxDEV("button",{type:"button",onClick:()=>J(!1),className:`tab-btn text-xs ${!Q?"active":""}`,children:"All Models"},void 0,!1,void 0,this),m5.jsxDEV("button",{type:"button",onClick:()=>J(!0),className:`tab-btn text-xs ${Q?"active":""}`,children:"By Model"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Sq({title:Q,subtitle:J,empty:q,emptyMessage:Y,controls:U,byModel:K,onByModelChange:H,children:M}){return m5.jsxDEV("div",{className:"surface overflow-hidden",children:[m5.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)] flex items-center justify-between gap-4 flex-wrap",children:[m5.jsxDEV("div",{children:[m5.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),m5.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m5.jsxDEV("div",{className:"flex items-center gap-2 flex-wrap",children:[U,m5.jsxDEV(Ij,{byModel:K,onChange:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m5.jsxDEV("div",{className:"p-5 min-h-[320px]",children:q?m5.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Y},void 0,!1,void 0,this):m5.jsxDEV("div",{className:"h-[280px]",children:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var a9=R0(G1(),1);P5.register(h4,x4,QQ,u5,g4,L8,V8,_8,p9);var rN=[{value:"yelling",label:"Yelling"},{value:"profanity",label:"Profanity"},{value:"anguish",label:"Anguish (!!!, nooo, dude, ..)"},{value:"negation",label:"Negation (no/nope/wrong)"},{value:"repetition",label:"Repetition (i meant, still doesnt)"},{value:"blame",label:"Blame (you didnt, stop X-ing)"},{value:"frustration",label:"Frustration (neg + rep + blame)"},{value:"total",label:"All signals combined"}];function Q_(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 G_(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 J_(Q,J){if(J<=0)return 0;return Q/J*100}function Oj(Q,J){let q=rN.find((Y)=>Y.value===J)?.label??"Hits";return jq(Q,q,{initBucket:()=>({hits:0,messages:0}),accumulate:(Y,U)=>{Y.hits+=G_(U,J),Y.messages+=U.messages},bucketToValue:(Y)=>J_(Y.hits,Y.messages)})}function Dj(Q,J){return Aq(Q,{rankWeight:(q)=>q.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(q,Y)=>{q.hits+=G_(Y,J),q.messages+=Y.messages},bucketToValue:(q)=>J_(q.hits,q.messages)})}function q_({behaviorSeries:Q}){let[J,q]=qQ.useState(!1),[Y,U]=qQ.useState("total"),K=E8(),H=Pq[K],M=qQ.useMemo(()=>J?Dj(Q,Y):Oj(Q,Y),[Q,J,Y]),F=Cq({chartTheme:H,showLegend:J,defaultLabel:"Hits",formatValue:Q_}),{sharedScaleBase:R,yScale:T}=Iq({chartTheme:H,formatY:Q_}),z=rN.find((I)=>I.value===Y)?.label??"",L=a9.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-sm)] p-0.5 border border-[var(--border-subtle)]",children:rN.map((I)=>a9.jsxDEV("button",{type:"button",onClick:()=>U(I.value),className:`tab-btn text-xs ${Y===I.value?"active":""}`,children:I.label},I.value,!1,void 0,this))},void 0,!1,void 0,this),P;if(J){let I={labels:M.labels,datasets:o9(M,(C)=>Oq(Y5[C%Y5.length]))};P=a9.jsxDEV(E4,{data:I,options:{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:R,y:T}}},void 0,!1,void 0,this)}else{let I={labels:M.labels,datasets:o9(M,(C)=>Dq(Y5[C%Y5.length]))},A={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:{...R,stacked:!0},y:{...T,stacked:!0}},layout:{padding:{top:8}}};P=a9.jsxDEV(Tq,{data:I,options:A},void 0,!1,void 0,this)}return a9.jsxDEV(Sq,{title:"User Tantrums",subtitle:`${z} as % of user messages per day`,empty:M.labels.length===0,emptyMessage:"No behavioral data yet. Sync to scan your sessions.",controls:L,byModel:J,onByModelChange:q,children:P},void 0,!1,void 0,this)}var rq=R0(e1(),1);var bq=R0(e1(),1);var vq=(...Q)=>Q.filter((J,q,Y)=>{return Boolean(J)&&J.trim()!==""&&Y.indexOf(J)===q}).join(" ").trim();var X_=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var Y_=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(J,q,Y)=>Y?Y.toUpperCase():q.toLowerCase());var sN=(Q)=>{let J=Y_(Q);return J.charAt(0).toUpperCase()+J.slice(1)};var XQ=R0(e1(),1);var kq={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 U_=(Q)=>{for(let J in Q)if(J.startsWith("aria-")||J==="role"||J==="title")return!0;return!1};var i9=R0(e1(),1),jj=i9.createContext({});var N_=()=>i9.useContext(jj);var K_=XQ.forwardRef(({color:Q,size:J,strokeWidth:q,absoluteStrokeWidth:Y,className:U="",children:K,iconNode:H,...M},F)=>{let{size:R=24,strokeWidth:T=2,absoluteStrokeWidth:z=!1,color:L="currentColor",className:P=""}=N_()??{},I=Y??z?Number(q??T)*24/Number(J??R):q??T;return XQ.createElement("svg",{ref:F,...kq,width:J??R??kq.width,height:J??R??kq.height,stroke:Q??L,strokeWidth:I,className:vq("lucide",P,U),...!K&&!U_(M)&&{"aria-hidden":"true"},...M},[...H.map(([A,C])=>XQ.createElement(A,C)),...Array.isArray(K)?K:[K]])});var x0=(Q,J)=>{let q=bq.forwardRef(({className:Y,...U},K)=>bq.createElement(K_,{ref:K,iconNode:J,className:vq(`lucide-${X_(sN(Q))}`,`lucide-${Q}`,Y),...U}));return q.displayName=sN(Q),q};var Aj=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],F2=x0("chart-column",Aj);var Sj=[["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"}]],W2=x0("circle-alert",Sj);var vj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],w2=x0("circle-check",vj);var kj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],R2=x0("circle-x",kj);var bj=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],T2=x0("file-braces",bj);var fj=[["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"}]],E$=x0("activity",fj);var yj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],YQ=x0("chevron-down",yj);var gj=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],UQ=x0("chevron-up",gj);var hj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],NQ=x0("clock",hj);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"}]],KQ=x0("coins",xj);var uj=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],BQ=x0("database",uj);var mj=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],HQ=x0("download",mj);var dj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],MQ=x0("gauge",dj);var pj=[["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"}]],FQ=x0("hash",pj);var cj=[["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"}]],WQ=x0("refresh-cw",cj);var lj=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],wQ=x0("server",lj);var rj=[["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"}]],P$=x0("star",rj);var sj=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],RQ=x0("upload",sj);var nj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],TQ=x0("x",nj);var oj=[["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"}]],C$=x0("zap",oj);var P1=R0(G1(),1),fq={dark:{legendLabel:"#cbd5e1",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#94a3b8"},light:{legendLabel:"#334155",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#475569"}};function U6(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function yq({timestamps:Q,values:J,color:q}){let Y={labels:Q.map((K)=>u4(new Date(K),"MMM d")),datasets:[{data:J,...U6(q)}]};return P1.jsxDEV(E4,{data:Y,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 gq(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 B_(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 H_(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 hq({title:Q,subtitle:J,children:q}){return P1.jsxDEV("div",{className:"surface overflow-hidden",children:[P1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[P1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),J?P1.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),P1.jsxDEV("div",{className:"overflow-x-auto",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aj(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function xq({columns:Q,gridTemplate:J}){return P1.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((q)=>P1.jsxDEV("div",{className:aj(q.align),children:q.label},q.label,!1,void 0,this)),P1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uq({children:Q}){return P1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function mq({model:Q,provider:J}){return P1.jsxDEV("div",{children:[P1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),P1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function dq({gridTemplate:Q,cells:J,trendCell:q,isExpanded:Y,onToggle:U,expandedContent:K}){return P1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[P1.jsxDEV("button",{type:"button",onClick:U,className:"w-full bg-transparent border-none text-left px-5 py-3 cursor-pointer hover:bg-[var(--bg-hover)] transition-colors",children:P1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[J,P1.jsxDEV("div",{className:"h-10",children:q},void 0,!1,void 0,this),P1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:Y?P1.jsxDEV(UQ,{size:16},void 0,!1,void 0,this):P1.jsxDEV(YQ,{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),Y?P1.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 pq(){return P1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function cq({message:Q="No data available"}){return P1.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:Q},void 0,!1,void 0,this)}var r0=R0(G1(),1);P5.register(h4,x4,g4,u5,L8,V8,_8);var lq={yelling:"#fbbf24",profanity:"#f87171",anguish:"#a78bfa",frustration:"#22d3ee"},M_="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function W_(Q){return Q.toLocaleString()}function F_(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function t9(Q,J){if(J===0)return"-";let q=Q/J*100;if(q===0)return"0%";if(q<1)return`${q.toFixed(1)}%`;return`${q.toFixed(0)}%`}function w_({models:Q,behaviorSeries:J}){let[q,Y]=rq.useState(null),U=E8(),K=fq[U],H=rq.useMemo(()=>tj(J),[J]),M=[...Q].sort((F,R)=>{if(R.totalMessages!==F.totalMessages)return R.totalMessages-F.totalMessages;return F_(R)-F_(F)});return r0.jsxDEV(hq,{title:"Behavior by Model",subtitle:"How often each model elicited a tantrum — rates are per user message",children:[r0.jsxDEV(xq,{gridTemplate:M_,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(uq,{children:[M.map((F,R)=>{let T=`${F.model}::${F.provider}`,z=H.get(T)?.data??[],L=Y5[R%Y5.length],P=q===T,I=F.totalNegation+F.totalRepetition+F.totalBlame,A=F.totalYelling+F.totalProfanity+F.totalAnguish+I;return r0.jsxDEV(dq,{gridTemplate:M_,isExpanded:P,onToggle:()=>Y(P?null:T),cells:[r0.jsxDEV(mq,{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:W_(F.totalMessages)},"messages",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(F.totalYelling,F.totalMessages)},"caps",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(F.totalProfanity,F.totalMessages)},"profanity",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(F.totalAnguish,F.totalMessages)},"anguish",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(I,F.totalMessages)},"frustration",!1,void 0,this),r0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:t9(A,F.totalMessages)},"hits",!1,void 0,this)],trendCell:z.length===0?r0.jsxDEV(pq,{},void 0,!1,void 0,this):r0.jsxDEV(yq,{timestamps:z.map((C)=>C.timestamp),values:z.map((C)=>C.total),color:L},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(I$,{label:"Yelling (CAPS)",total:F.totalYelling,messages:F.totalMessages,valueClass:"text-[var(--accent-amber,#fbbf24)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Profanity",total:F.totalProfanity,messages:F.totalMessages,valueClass:"text-[var(--accent-red,#f87171)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Anguish (!!!, nooo, dude, ..)",total:F.totalAnguish,messages:F.totalMessages,valueClass:"text-[var(--accent-violet,#a78bfa)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Negation (no/nope/wrong)",total:F.totalNegation,messages:F.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Repetition (i meant, still doesnt)",total:F.totalRepetition,messages:F.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Blame (you didnt, stop X-ing)",total:F.totalBlame,messages:F.totalMessages,valueClass:"text-[var(--accent-cyan,#22d3ee)]"},void 0,!1,void 0,this),r0.jsxDEV(I$,{label:"Avg chars / msg",total:F.totalChars,messages:F.totalMessages,valueClass:"text-[var(--text-secondary)]",mode:"average"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{className:"h-[200px]",children:z.length===0?r0.jsxDEV(cq,{},void 0,!1,void 0,this):r0.jsxDEV(ij,{data:z,chartTheme:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},T,!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 I$({label:Q,total:J,messages:q,valueClass:Y,mode:U="rate"}){let K=U==="rate"?"% of msgs":"Per msg",H=q>0?U==="rate"?t9(J,q):(J/q).toFixed(0):"-";return r0.jsxDEV("div",{children:[r0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:Q},void 0,!1,void 0,this),r0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[r0.jsxDEV("div",{className:"flex items-center justify-between",children:[r0.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),r0.jsxDEV("span",{className:`font-mono ${Y}`,children:W_(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",{children:K},void 0,!1,void 0,this),r0.jsxDEV("span",{className:"font-mono",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)}function ij({data:Q,chartTheme:J}){let q={labels:Q.map((U)=>u4(new Date(U.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((U)=>U.yelling),...U6(lq.yelling)},{label:"Profanity",data:Q.map((U)=>U.profanity),...U6(lq.profanity)},{label:"Anguish",data:Q.map((U)=>U.anguish),...U6(lq.anguish)},{label:"Frustration",data:Q.map((U)=>U.frustration),...U6(lq.frustration)}]},Y={responsive:!0,maintainAspectRatio:!1,plugins:gq(J),scales:B_(J)};return r0.jsxDEV(E4,{data:q,options:Y},void 0,!1,void 0,this)}function tj(Q){if(Q.length===0)return new Map;let J=[...new Set(Q.map((U)=>U.timestamp))].sort((U,K)=>U-K),q=new Map;for(let U of Q){let K=`${U.model}::${U.provider}`,H=q.get(K);if(!H)H=new Map,q.set(K,H);let M=H.get(U.timestamp)??{timestamp:U.timestamp,yelling:0,profanity:0,anguish:0,frustration:0,total:0};M.yelling+=U.yelling,M.profanity+=U.profanity,M.anguish+=U.anguish,M.frustration+=U.negation+U.repetition+U.blame,M.total=M.yelling+M.profanity+M.anguish+M.frustration,H.set(U.timestamp,M)}let Y=new Map;for(let[U,K]of q){let H=J.map((M)=>K.get(M)??{timestamp:M,yelling:0,profanity:0,anguish:0,frustration:0,total:0});Y.set(U,{data:H})}return Y}var R_=R0(e1(),1),$7=R0(G1(),1);function e9(Q){return Q.toLocaleString()}function sq(Q,J){if(J<=0)return;return`${(Q/J).toFixed(2)} / msg`}function T_({overall:Q,behaviorSeries:J}){let q=R_.useMemo(()=>{let H=new Map;for(let F of J){let R=`${F.model}::${F.provider}`,T=H.get(R),z=F.yelling+F.profanity+F.anguish+F.negation+F.repetition+F.blame;if(T)T.score+=z;else H.set(R,{model:F.model,provider:F.provider,score:z})}let M=null;for(let F of H.values())if(!M||F.score>M.score)M=F;return M},[J]),Y=Q.totalNegation+Q.totalRepetition+Q.totalBlame,U=Q.totalMessages,K=[{label:"Messages",value:e9(Q.totalMessages),sub:U>0?"in selected range":void 0},{label:"Yelling",value:e9(Q.totalYelling),sub:sq(Q.totalYelling,U)},{label:"Profanity hits",value:e9(Q.totalProfanity),sub:sq(Q.totalProfanity,U)},{label:"Anguish",value:e9(Q.totalAnguish),sub:sq(Q.totalAnguish,U)},{label:"Frustration",value:e9(Y),sub:sq(Y,U)},{label:"Most yelled-at",value:q?.model??"—",sub:q?`${e9(q.score)} hits`:void 0}];return $7.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-6 gap-4",children:K.map((H)=>$7.jsxDEV("div",{className:"surface px-4 py-3",children:[$7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mb-1",children:H.label},void 0,!1,void 0,this),$7.jsxDEV("p",{className:"text-lg font-semibold text-[var(--text-primary)] truncate",title:H.value,children:H.value},void 0,!1,void 0,this),H.sub&&$7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-0.5",children:H.sub},void 0,!1,void 0,this)]},H.label,!0,void 0,this))},void 0,!1,void 0,this)}var L_=R0(e1(),1);var nN=3600000,nq=24*nN,z_={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:nN,bucketCount:1,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:nN,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:nq,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:nq,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:nq,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:nq,bucketCount:0,tickFormat:"MMM d"}};function oq(Q){return z_[Q]}function __(Q,J){return u4(new Date(Q),z_[J].tickFormat)}var N6=R0(G1(),1);P5.register(h4,x4,g4,u5,L8,V8,_8,p9);var aq=["#a78bfa","#22d3ee","#ec4899","#4ade80","#fbbf24","#f87171","#60a5fa"],ej={dark:{legendLabel:"#94a3b8",tooltipBackground:"#16161e",tooltipTitle:"#f8fafc",tooltipBody:"#94a3b8",tooltipBorder:"rgba(255, 255, 255, 0.1)",grid:"rgba(255, 255, 255, 0.06)",tick:"#64748b"},light:{legendLabel:"#475569",tooltipBackground:"#ffffff",tooltipTitle:"#0f172a",tooltipBody:"#334155",tooltipBorder:"rgba(15, 23, 42, 0.18)",grid:"rgba(15, 23, 42, 0.08)",tick:"#64748b"}};function V_({modelSeries:Q,timeRange:J}){let q=L_.useMemo(()=>$A(Q),[Q]),Y=E8(),U=ej[Y],K=oq(J),H={labels:q.data.map((F)=>__(F.timestamp,J)),datasets:q.series.map((F,R)=>({label:F,data:q.data.map((T)=>T[F]??0),borderColor:aq[R%aq.length],backgroundColor:`${aq[R%aq.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))},M={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:U.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:U.tooltipBackground,titleColor:U.tooltipTitle,bodyColor:U.tooltipBody,borderColor:U.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(F)=>{let R=F.dataset.label??"",T=F.parsed.y;return`${R}: ${(T??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:U.grid,drawBorder:!1},ticks:{color:U.tick,font:{size:11}}},y:{grid:{color:U.grid,drawBorder:!1},ticks:{color:U.tick,font:{size:11},callback:(F)=>`${F}%`},min:0,max:100}}};return N6.jsxDEV("div",{className:"surface overflow-hidden",children:[N6.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[N6.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:"Model Preference"},void 0,!1,void 0,this),N6.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:["Share of requests over ",K.windowLabel]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N6.jsxDEV("div",{className:"p-5 min-h-[320px]",children:q.data.length===0?N6.jsxDEV("div",{className:"h-full flex items-center justify-center text-[var(--text-muted)] text-sm",children:"No data available"},void 0,!1,void 0,this):N6.jsxDEV("div",{className:"h-[280px]",children:N6.jsxDEV(E4,{data:H,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function $A(Q,J=5){if(Q.length===0)return{data:[],series:[]};let q=new Map;for(let z of Q){let L=`${z.model}::${z.provider}`,P=q.get(L);if(P)P.total+=z.requests;else q.set(L,{model:z.model,provider:z.provider,total:z.requests})}let U=[...q.entries()].map(([z,L])=>({key:z,...L})).sort((z,L)=>L.total-z.total).slice(0,J),K=new Set(U.map((z)=>z.key)),H=new Map;for(let z of U)H.set(z.model,(H.get(z.model)??0)+1);let M=new Map;for(let z of U){let L=(H.get(z.model)??0)>1;M.set(z.key,L?`${z.model} (${z.provider})`:z.model)}let F=new Map;for(let z of Q){let L=`${z.model}::${z.provider}`,P=F.get(z.timestamp)??{timestamp:z.timestamp,total:0};P.total+=z.requests;let I=K.has(L)?M.get(L)??z.model:"Other";P[I]=(P[I]??0)+z.requests,F.set(z.timestamp,P)}let R=U.map((z)=>M.get(z.key)??z.model);if([...F.values()].some((z)=>(z.Other??0)>0))R.push("Other");return{data:[...F.values()].sort((z,L)=>(z.timestamp??0)-(L.timestamp??0)).map((z)=>{let L=z.total??0;for(let P of R)z[P]=L>0?(z[P]??0)/L*100:0;return z}),series:R}}var tq=R0(e1(),1);var iq=R0(G1(),1);P5.register(h4,x4,QQ,u5,g4,L8,V8,_8,p9);var ZA={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function QA(Q){return{id:"costBarLabels",afterDatasetsDraw(J){let{ctx:q}=J;if(!J.data.datasets[0])return;let U=J.getDatasetMeta(0);q.save(),q.font="11px system-ui, sans-serif",q.fillStyle=Q,q.textAlign="center",q.textBaseline="bottom";for(let K of U.data){let H=K.$context.parsed.y;if(!H)continue;let M=`$${Math.round(H)}`,{x:F,y:R}=K.getProps(["x","y"],!0);q.fillText(M,F,R-3)}q.restore()}}}function GA(Q){return jq(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(J,q)=>{J.total+=q.cost},bucketToValue:(J)=>J.total})}function JA(Q){return Aq(Q,{rankWeight:(J)=>J.cost,initBucket:()=>({total:0}),accumulate:(J,q)=>{J.total+=q.cost},bucketToValue:(J)=>J.total})}function E_({costSeries:Q}){let[J,q]=tq.useState(!1),Y=E8(),U=Pq[Y],K=tq.useMemo(()=>J?JA(Q):GA(Q),[Q,J]),H=Cq({chartTheme:U,showLegend:J,defaultLabel:"Cost",formatValue:(T)=>`$${Math.round(T)}`,footer:(T)=>{if(!J||T.length<2)return;let z=T.reduce((L,P)=>L+(P.parsed.y??0),0);return`Total: $${Math.round(z)}`}}),{sharedScaleBase:M,yScale:F}=Iq({chartTheme:U,formatY:(T)=>`$${Math.round(T)}`}),R;if(J){let T={labels:K.labels,datasets:o9(K,(L)=>Oq(Y5[L%Y5.length]))};R=iq.jsxDEV(E4,{data:T,options:{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:M,y:F}}},void 0,!1,void 0,this)}else{let T={labels:K.labels,datasets:o9(K,(P)=>Dq(Y5[P%Y5.length]))},z=QA(ZA[Y]),L={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}}};R=iq.jsxDEV(Tq,{data:T,options:L,plugins:[z]},void 0,!1,void 0,this)}return iq.jsxDEV(Sq,{title:"Daily Cost",subtitle:"API spending over time",empty:K.labels.length===0,emptyMessage:"No cost data available",byModel:J,onByModelChange:q,children:R},void 0,!1,void 0,this)}var Z7=R0(G1(),1);function oN(Q){return`$${Math.round(Q)}`}function P_({costSeries:Q}){let J=Q.reduce((F,R)=>F+R.cost,0),q=new Set(Q.map((F)=>F.timestamp)).size,Y=q>0?J/q:0,U=new Map;for(let F of Q)U.set(F.model,(U.get(F.model)??0)+F.cost);let K="",H=0;for(let[F,R]of U)if(R>H)K=F,H=R;let M=[{label:"Total",value:oN(J)},{label:"Avg / day",value:oN(Y)},{label:"Top model",value:K||"—",sub:K?oN(H):void 0}];return Z7.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:M.map((F)=>Z7.jsxDEV("div",{className:"surface px-4 py-3",children:[Z7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mb-1",children:F.label},void 0,!1,void 0,this),Z7.jsxDEV("p",{className:"text-lg font-semibold text-[var(--text-primary)] truncate",title:F.value,children:F.value},void 0,!1,void 0,this),F.sub&&Z7.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-0.5",children:F.sub},void 0,!1,void 0,this)]},F.label,!0,void 0,this))},void 0,!1,void 0,this)}var C5=R0(G1(),1),qA=["overview","requests","errors","models","costs","behavior"],XA=[{label:"1h",value:"1h"},{label:"24h",value:"24h"},{label:"7d",value:"7d"},{label:"30d",value:"30d"},{label:"90d",value:"90d"},{label:"All",value:"all"}];function C_({activeTab:Q,onTabChange:J,onSync:q,syncing:Y,timeRange:U,onTimeRangeChange:K}){return C5.jsxDEV("header",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-6 mb-8 border-b border-[var(--border-subtle)]",children:[C5.jsxDEV("div",{className:"flex items-center gap-3",children:[C5.jsxDEV("div",{className:"w-10 h-10 rounded-[var(--radius-md)] bg-gradient-to-br from-[var(--accent-pink)] to-[var(--accent-cyan)] flex items-center justify-center shadow-lg",children:C5.jsxDEV(E$,{className:"w-5 h-5 text-white"},void 0,!1,void 0,this)},void 0,!1,void 0,this),C5.jsxDEV("div",{children:[C5.jsxDEV("h1",{className:"text-xl font-semibold text-[var(--text-primary)]",children:"AI Usage"},void 0,!1,void 0,this),C5.jsxDEV("p",{className:"text-sm text-[var(--text-muted)]",children:"Statistics & Analytics"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),C5.jsxDEV("div",{className:"flex items-center gap-3",children:[C5.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-md)] p-1 border border-[var(--border-subtle)]",children:qA.map((H)=>C5.jsxDEV("button",{type:"button",onClick:()=>J(H),className:`tab-btn capitalize ${Q===H?"active":""}`,children:H},H,!1,void 0,this))},void 0,!1,void 0,this),C5.jsxDEV("div",{className:"flex bg-[var(--bg-surface)] rounded-[var(--radius-md)] p-1 border border-[var(--border-subtle)]",children:XA.map((H)=>C5.jsxDEV("button",{type:"button",onClick:()=>K(H.value),className:`tab-btn ${U===H.value?"active":""}`,title:H.value==="all"?"All time":`Last ${H.label}`,children:H.label},H.value,!1,void 0,this))},void 0,!1,void 0,this),C5.jsxDEV("button",{type:"button",onClick:q,disabled:Y,className:"btn btn-primary",children:[C5.jsxDEV(WQ,{size:16,className:Y?"spin":""},void 0,!1,void 0,this),Y?"Syncing...":"Sync"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var eq=R0(e1(),1);var s0=R0(G1(),1);P5.register(h4,x4,g4,u5,L8,V8,_8);var I_="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function O_({models:Q,performanceSeries:J,timeRange:q}){let[Y,U]=eq.useState(null),K=oq(q),H=eq.useMemo(()=>UA(J,K.bucketCount,K.bucketMs),[J,K.bucketCount,K.bucketMs]),M=E8(),F=fq[M],R=[...Q].sort((T,z)=>z.totalInputTokens+z.totalOutputTokens-(T.totalInputTokens+T.totalOutputTokens));return s0.jsxDEV(hq,{title:"Model Statistics",children:[s0.jsxDEV(xq,{gridTemplate:I_,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(uq,{children:R.map((T,z)=>{let L=`${T.model}::${T.provider}`,I=H.get(L)?.data??[],A=Y5[z%Y5.length],C=Y===L,g=T.errorRate*100;return s0.jsxDEV(dq,{gridTemplate:I_,isExpanded:C,onToggle:()=>U(C?null:L),cells:[s0.jsxDEV(mq,{model:T.model,provider:T.provider},"name",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:T.totalRequests.toLocaleString()},"requests",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",T.totalCost.toFixed(2)]},"cost",!0,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(T.totalInputTokens+T.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:T.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),s0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:T.avgTtft?`${(T.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:I.length===0?s0.jsxDEV(pq,{},void 0,!1,void 0,this):s0.jsxDEV(yq,{timestamps:I.map((m)=>m.timestamp),values:I.map((m)=>m.avgTokensPerSecond??0),color:A},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:g>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[g.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:[(T.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:T.avgDuration?`${(T.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:T.avgTtft?`${(T.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:I.length===0?s0.jsxDEV(cq,{},void 0,!1,void 0,this):s0.jsxDEV(YA,{data:I,color:A,chartTheme:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},L,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function YA({data:Q,color:J,chartTheme:q}){let Y={labels:Q.map((K)=>u4(new Date(K.timestamp),"MMM d")),datasets:[{label:"TTFT",data:Q.map((K)=>K.avgTtftSeconds??null),...U6("#fbbf24"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((K)=>K.avgTokensPerSecond??null),...U6(J),yAxisID:"y1"}]},U={responsive:!0,maintainAspectRatio:!1,plugins:gq(q),scales:H_(q)};return s0.jsxDEV(E4,{data:Y,options:U},void 0,!1,void 0,this)}function UA(Q,J,q){let Y=Q.reduce((z,L)=>Math.max(z,L.timestamp),0),U=Y>0?Y:Math.floor(Date.now()/q)*q,K=new Set(Q.map((z)=>z.timestamp)),H=J>0?J:Math.max(1,K.size),M=U-(H-1)*q,F=Array.from({length:H},(z,L)=>M+L*q),R=new Map(F.map((z,L)=>[z,L])),T=new Map;for(let z of Q){let L=`${z.model}::${z.provider}`,P=T.get(L);if(!P)P={label:`${z.model} (${z.provider})`,data:F.map((A)=>({timestamp:A,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},T.set(L,P);let I=R.get(z.timestamp);if(I===void 0)continue;P.data[I]={timestamp:z.timestamp,avgTtftSeconds:z.avgTtft!==null?z.avgTtft/1000:null,avgTokensPerSecond:z.avgTokensPerSecond,requests:z.requests}}return T}var zQ=R0(e1(),1);var X0=R0(G1(),1);function D_({id:Q,onClose:J}){let[q,Y]=zQ.useState(null),[U,K]=zQ.useState(!0);if(zQ.useEffect(()=>{ow(Q).then(Y).catch(console.error).finally(()=>K(!1))},[Q]),!q&&U)return X0.jsxDEV("div",{className:"fixed inset-0 bg-[var(--bg-overlay)] flex justify-center items-center z-[100]",children:X0.jsxDEV("div",{className:"surface px-8 py-6",children:X0.jsxDEV("div",{className:"flex items-center gap-3 text-[var(--text-secondary)]",children:[X0.jsxDEV("div",{className:"w-5 h-5 border-2 border-[var(--border-default)] border-t-[var(--accent-cyan)] rounded-full spin"},void 0,!1,void 0,this),X0.jsxDEV("span",{children:"Loading..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!q)return null;return X0.jsxDEV("div",{role:"presentation",className:"fixed inset-0 bg-[var(--bg-overlay)] backdrop-blur-sm flex justify-end z-[100] animate-fade-in",onClick:J,children:X0.jsxDEV("div",{role:"dialog","aria-modal":"true",className:"w-[600px] max-w-full bg-[var(--bg-page)] h-full overflow-y-auto border-l border-[var(--border-subtle)] animate-slide-up",onClick:(H)=>H.stopPropagation(),children:[X0.jsxDEV("div",{className:"sticky top-0 bg-[var(--bg-page)]/95 backdrop-blur border-b border-[var(--border-subtle)] px-6 py-4 flex justify-between items-center z-10",children:[X0.jsxDEV("div",{className:"flex items-center gap-3",children:[X0.jsxDEV("div",{className:"w-8 h-8 rounded-[var(--radius-sm)] bg-gradient-to-br from-[var(--accent-pink)]/20 to-[var(--accent-cyan)]/20 flex items-center justify-center",children:X0.jsxDEV(T2,{size:16,className:"text-[var(--accent-cyan)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),X0.jsxDEV("h2",{className:"text-lg font-semibold text-[var(--text-primary)]",children:"Request Details"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("button",{type:"button",onClick:J,className:"p-2 rounded-[var(--radius-sm)] text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-hover)] transition-colors",children:X0.jsxDEV(TQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"p-6 space-y-6",children:[X0.jsxDEV("div",{className:"surface p-5",children:X0.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[X0.jsxDEV("div",{children:[X0.jsxDEV("div",{className:"text-2xl font-bold text-[var(--text-primary)]",children:q.model},void 0,!1,void 0,this),X0.jsxDEV("div",{className:"text-sm text-[var(--text-muted)]",children:q.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.errorMessage?X0.jsxDEV("span",{className:"badge badge-error",children:"Error"},void 0,!1,void 0,this):X0.jsxDEV("span",{className:"badge badge-success",children:"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),X0.jsxDEV("div",{className:"grid grid-cols-2 gap-4",children:[X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(KQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Cost"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:["$",q.usage.cost.total.toFixed(4)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(P$,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Premium Reqs"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:(q.usage.premiumRequests??0).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(FQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:q.usage.totalTokens.toLocaleString()},void 0,!1,void 0,this),X0.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] mt-1",children:[q.usage.input.toLocaleString()," in · ",q.usage.output.toLocaleString()," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(NQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Duration"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:q.duration?`${(q.duration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)] mb-2",children:[X0.jsxDEV(C$,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"TTFT"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xl font-semibold text-[var(--text-primary)]",children:q.ttft?`${(q.ttft/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q.duration&&q.usage.output>0&&X0.jsxDEV("div",{className:"surface p-4",children:[X0.jsxDEV("div",{className:"flex items-center justify-between",children:[X0.jsxDEV("div",{className:"flex items-center gap-2 text-[var(--text-muted)]",children:[X0.jsxDEV(MQ,{size:14},void 0,!1,void 0,this),X0.jsxDEV("span",{className:"text-xs uppercase tracking-wide",children:"Throughput"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("span",{className:"text-2xl font-bold gradient-text",children:(q.usage.output*1000/q.duration).toFixed(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] mt-1 text-right",children:"tokens/second"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{children:[X0.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)] mb-3",children:"Output"},void 0,!1,void 0,this),X0.jsxDEV("pre",{className:"surface bg-[var(--bg-elevated)] p-4 rounded-[var(--radius-md)] text-sm font-mono text-[var(--text-secondary)] overflow-x-auto",children:JSON.stringify(q.output,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X0.jsxDEV("div",{children:[X0.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)] mb-3",children:"Raw Metadata"},void 0,!1,void 0,this),X0.jsxDEV("pre",{className:"surface bg-[var(--bg-elevated)] p-4 rounded-[var(--radius-md)] text-xs font-mono text-[var(--text-muted)] overflow-x-auto",children:JSON.stringify(q,null,2)},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,!1,void 0,this)}var B1=R0(G1(),1);function _Q({requests:Q,onSelect:J,title:q}){return B1.jsxDEV("div",{className:"surface overflow-hidden flex flex-col h-full",children:[B1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:B1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:q},void 0,!1,void 0,this)},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"overflow-auto flex-1",children:B1.jsxDEV("table",{className:"w-full",children:[B1.jsxDEV("thead",{className:"bg-[var(--bg-elevated)] sticky top-0 z-10",children:B1.jsxDEV("tr",{children:[B1.jsxDEV("th",{className:"text-left py-3 px-4 table-header",children:"Model"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-left py-3 px-4 table-header",children:"Time"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Tokens"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Cost"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-right py-3 px-4 table-header",children:"Duration"},void 0,!1,void 0,this),B1.jsxDEV("th",{className:"text-center py-3 px-4 table-header",children:"Status"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),B1.jsxDEV("tbody",{children:[Q.map((Y)=>B1.jsxDEV("tr",{onClick:()=>J(Y),className:"table-row cursor-pointer border-b border-[var(--border-subtle)] last:border-b-0",children:[B1.jsxDEV("td",{className:"py-3 px-4",children:[B1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)] text-sm",children:Y.model},void 0,!1,void 0,this),B1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:Y.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-sm text-[var(--text-secondary)]",children:Z_(Y.timestamp,{addSuffix:!0})},void 0,!1,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:Y.usage.totalTokens.toLocaleString()},void 0,!1,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:["$",Y.usage.cost.total.toFixed(4)]},void 0,!0,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-right text-sm text-[var(--text-secondary)] font-mono",children:Y.duration?`${(Y.duration/1000).toFixed(1)}s`:"-"},void 0,!1,void 0,this),B1.jsxDEV("td",{className:"py-3 px-4 text-center",children:Y.errorMessage?B1.jsxDEV(R2,{size:16,className:"text-[var(--accent-red)] mx-auto"},void 0,!1,void 0,this):B1.jsxDEV(w2,{size:16,className:"text-[var(--accent-green)] mx-auto"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${Y.sessionFile}-${Y.entryId}`,!0,void 0,this)),Q.length===0&&B1.jsxDEV("tr",{children:B1.jsxDEV("td",{colSpan:6,className:"py-12 text-center text-[var(--text-muted)] text-sm",children:"No requests found"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var K6=R0(G1(),1),NA=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1});function j_(Q){return NA.format(Q)}function aN(Q){return Q.toLocaleString()}var LQ=(Q)=>Q.totalInputTokens+Q.totalOutputTokens,KA=[{key:"requests",title:"Total Requests",icon:wQ,color:"var(--accent-violet)",getValue:(Q)=>Q.totalRequests.toLocaleString(),getDetail:(Q)=>`${Q.successfulRequests.toLocaleString()} success · ${Q.failedRequests.toLocaleString()} errors`},{key:"cost",title:"Total Cost",icon:E$,color:"var(--accent-pink)",getValue:(Q)=>`$${Q.totalCost.toFixed(2)}`,getDetail:(Q)=>Q.totalRequests>0?`$${(Q.totalCost/Q.totalRequests).toFixed(4)} avg/req`:"-"},{key:"premiumRequests",title:"Premium Reqs",icon:P$,color:"var(--accent-amber)",getValue:(Q)=>aN(Q.totalPremiumRequests),getDetail:(Q)=>Q.totalRequests>0?`${(Q.totalPremiumRequests/Q.totalRequests*100).toFixed(1)}% of requests`:"-"},{key:"cache",title:"Cache Rate",icon:BQ,color:"var(--accent-cyan)",getValue:(Q)=>`${(Q.cacheRate*100).toFixed(1)}%`,getDetail:(Q)=>`${j_(Q.totalCacheReadTokens)} cached tokens`},{key:"inputTokens",title:"Input Tokens",icon:HQ,color:"var(--accent-violet)",getValue:(Q)=>aN(Q.totalInputTokens),getDetail:(Q)=>LQ(Q)>0?`${(Q.totalInputTokens/LQ(Q)*100).toFixed(1)}% of prompt+completion`:"-"},{key:"outputTokens",title:"Output Tokens",icon:RQ,color:"var(--accent-pink)",getValue:(Q)=>aN(Q.totalOutputTokens),getDetail:(Q)=>LQ(Q)>0?`${(Q.totalOutputTokens/LQ(Q)*100).toFixed(1)}% of prompt+completion`:"-"},{key:"errors",title:"Error Rate",icon:W2,color:"var(--accent-red)",getValue:(Q)=>`${(Q.errorRate*100).toFixed(1)}%`,getDetail:(Q)=>`${Q.failedRequests.toLocaleString()} failed requests`},{key:"tokens",title:"Tokens/Sec",icon:F2,color:"var(--accent-green)",getValue:(Q)=>Q.avgTokensPerSecond?.toFixed(1)??"-",getDetail:(Q)=>`${j_(LQ(Q))} total prompt+completion`},{key:"ttft",title:"TTFT",icon:C$,color:"var(--accent-amber)",getValue:(Q)=>Q.avgTtft?`${(Q.avgTtft/1000).toFixed(2)}s`:"-",getDetail:()=>"Time to first token"}];function A_({stats:Q}){return K6.jsxDEV("div",{className:"grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-9 gap-4 mb-8",children:KA.map((J)=>{let q=J.icon;return K6.jsxDEV("div",{className:"stat-card group",children:[K6.jsxDEV("div",{className:"flex items-center justify-between mb-3",children:[K6.jsxDEV("span",{className:"text-sm font-medium text-[var(--text-secondary)]",children:J.title},void 0,!1,void 0,this),K6.jsxDEV("div",{className:"p-2 rounded-[var(--radius-sm)] transition-colors",style:{backgroundColor:`${J.color}15`},children:K6.jsxDEV(q,{size:18,style:{color:J.color},className:"transition-transform group-hover:scale-110"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K6.jsxDEV("div",{className:"text-2xl font-bold text-[var(--text-primary)] mb-1",children:J.getValue(Q)},void 0,!1,void 0,this),K6.jsxDEV("div",{className:"text-xs text-[var(--text-muted)] truncate",children:J.getDetail(Q)},void 0,!1,void 0,this)]},J.key,!0,void 0,this)})},void 0,!1,void 0,this)}var m0=R0(G1(),1);function iN(){let[Q,J]=U5.useState(null),[q,Y]=U5.useState(null),[U,K]=U5.useState(null),[H,M]=U5.useState(null),[F,R]=U5.useState([]),[T,z]=U5.useState([]),[L,P]=U5.useState(null),[I,A]=U5.useState(!1),[C,g]=U5.useState("overview"),[m,o]=U5.useState("24h"),a=U5.useCallback(async()=>{try{let[p,i]=await Promise.all([sw(50),nw(50)]);R(p),z(i)}catch(p){console.error(p)}},[]),s=U5.useCallback(async()=>{try{if(C==="models"){Y(await lw(m));return}if(C==="costs"){K(await rw(m));return}if(C==="behavior"){M(await iw(m));return}if(C==="overview")J(await cw(m))}catch(p){console.error(p)}},[C,m]),Q0=async()=>{A(!0);try{await aw(),await Promise.all([s(),a()])}finally{A(!1)}};return U5.useEffect(()=>{a();let p=setInterval(a,30000);return()=>clearInterval(p)},[a]),U5.useEffect(()=>{s();let p=setInterval(s,30000);return()=>clearInterval(p)},[s]),m0.jsxDEV("div",{className:"min-h-screen",children:m0.jsxDEV("div",{className:"max-w-[1600px] mx-auto px-6 py-6",children:[m0.jsxDEV(C_,{activeTab:C,onTabChange:g,onSync:Q0,syncing:I,timeRange:m,onTimeRangeChange:o},void 0,!1,void 0,this),C==="overview"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:[Q?m0.jsxDEV(A_,{stats:Q.overall},void 0,!1,void 0,this):m0.jsxDEV($3,{label:"Loading overview..."},void 0,!1,void 0,this),m0.jsxDEV("div",{className:"grid lg:grid-cols-2 gap-6",children:[m0.jsxDEV(_Q,{title:"Recent Requests",requests:F.slice(0,10),onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this),m0.jsxDEV(_Q,{title:"Recent Errors",requests:T.slice(0,10),onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),C==="requests"&&m0.jsxDEV("div",{className:"h-[calc(100vh-140px)] animate-fade-in",children:m0.jsxDEV(_Q,{title:"All Recent Requests",requests:F,onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="errors"&&m0.jsxDEV("div",{className:"h-[calc(100vh-140px)] animate-fade-in",children:m0.jsxDEV(_Q,{title:"Failed Requests",requests:T,onSelect:(p)=>p.id&&P(p.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="models"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:q?m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(V_,{modelSeries:q.modelSeries,timeRange:m},void 0,!1,void 0,this),m0.jsxDEV(O_,{models:q.byModel,performanceSeries:q.modelPerformanceSeries,timeRange:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this):m0.jsxDEV($3,{label:"Loading models..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="costs"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:U?m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(P_,{costSeries:U.costSeries},void 0,!1,void 0,this),m0.jsxDEV(E_,{costSeries:U.costSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this):m0.jsxDEV($3,{label:"Loading costs..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),C==="behavior"&&m0.jsxDEV("div",{className:"space-y-6 animate-fade-in",children:H?m0.jsxDEV(m0.Fragment,{children:[m0.jsxDEV(T_,{overall:H.overall,behaviorSeries:H.behaviorSeries},void 0,!1,void 0,this),m0.jsxDEV(q_,{behaviorSeries:H.behaviorSeries},void 0,!1,void 0,this),m0.jsxDEV(w_,{models:H.byModel,behaviorSeries:H.behaviorSeries},void 0,!1,void 0,this)]},void 0,!0,void 0,this):m0.jsxDEV($3,{label:"Loading behavior..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),L!==null&&m0.jsxDEV(D_,{id:L,onClose:()=>P(null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function $3({label:Q}){return m0.jsxDEV("div",{className:"min-h-[180px] flex items-center justify-center",children:m0.jsxDEV("div",{className:"flex items-center gap-3 text-[var(--text-muted)]",children:[m0.jsxDEV("div",{className:"w-5 h-5 border-2 border-[var(--border-default)] border-t-[var(--accent-cyan)] rounded-full spin"},void 0,!1,void 0,this),m0.jsxDEV("span",{className:"text-sm",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var v_=R0(G1(),1),BA=S_.createRoot(document.getElementById("root"));BA.render(v_.jsxDEV(iN,{},void 0,!1,void 0,this));
257
+ `);return Q}function aA(Q,G){let{element:q,datasetIndex:X,index:N}=G,B=Q.getDatasetMeta(X).controller,{label:H,value:M}=B.getLabelAndValue(N);return{chart:Q,label:H,parsed:B.getParsed(N),raw:Q.data.datasets[X].data[N],formattedValue:M,dataset:B.getDataset(),dataIndex:N,datasetIndex:X,element:q}}function cT(Q,G){let q=Q.chart.ctx,{body:X,footer:N,title:B}=Q,{boxWidth:H,boxHeight:M}=G,F=o1(G.bodyFont),W=o1(G.titleFont),T=o1(G.footerFont),z=B.length,C=N.length,V=X.length,A=w5(G.padding),O=A.height,I=0,j=X.reduce((s,o)=>s+o.before.length+o.lines.length+o.after.length,0);if(j+=Q.beforeBody.length+Q.afterBody.length,z)O+=z*W.lineHeight+(z-1)*G.titleSpacing+G.titleMarginBottom;if(j){let s=G.displayColors?Math.max(M,F.lineHeight):F.lineHeight;O+=V*s+(j-V)*F.lineHeight+(j-1)*G.bodySpacing}if(C)O+=G.footerMarginTop+C*T.lineHeight+(C-1)*G.footerSpacing;let h=0,p=function(s){I=Math.max(I,q.measureText(s).width+h)};return q.save(),q.font=W.string,N1(Q.title,p),q.font=F.string,N1(Q.beforeBody.concat(Q.afterBody),p),h=G.displayColors?H+2+G.boxPadding:0,N1(X,(s)=>{N1(s.before,p),N1(s.lines,p),N1(s.after,p)}),h=0,q.font=T.string,N1(Q.footer,p),q.restore(),I+=A.width,{width:I,height:O}}function iA(Q,G){let{y:q,height:X}=G;if(q<X/2)return"top";else if(q>Q.height-X/2)return"bottom";return"center"}function tA(Q,G,q,X){let{x:N,width:B}=X,H=q.caretSize+q.caretPadding;if(Q==="left"&&N+B+H>G.width)return!0;if(Q==="right"&&N-B-H<0)return!0}function eA(Q,G,q,X){let{x:N,width:B}=q,{width:H,chartArea:{left:M,right:F}}=Q,W="center";if(X==="center")W=N<=(M+F)/2?"left":"right";else if(N<=B/2)W="left";else if(N>=H-B/2)W="right";if(tA(W,Q,G,q))W="center";return W}function lT(Q,G,q){let X=q.yAlign||G.yAlign||iA(Q,q);return{xAlign:q.xAlign||G.xAlign||eA(Q,G,q,X),yAlign:X}}function $S(Q,G){let{x:q,width:X}=Q;if(G==="right")q-=X;else if(G==="center")q-=X/2;return q}function ZS(Q,G,q){let{y:X,height:N}=Q;if(G==="top")X+=q;else if(G==="bottom")X-=N+q;else X-=N/2;return X}function rT(Q,G,q,X){let{caretSize:N,caretPadding:B,cornerRadius:H}=Q,{xAlign:M,yAlign:F}=q,W=N+B,{topLeft:T,topRight:z,bottomLeft:C,bottomRight:V}=O2(H),A=$S(G,M),O=ZS(G,F,W);if(F==="center"){if(M==="left")A+=W;else if(M==="right")A-=W}else if(M==="left")A-=Math.max(T,C)+N;else if(M==="right")A+=Math.max(z,V)+N;return{x:r5(A,0,X.width-G.width),y:r5(O,0,X.height-G.height)}}function b3(Q,G,q){let X=w5(q.padding);return G==="center"?Q.x+Q.width/2:G==="right"?Q.x+Q.width-X.right:Q.x+X.left}function sT(Q){return b4([],z8(Q))}function QS(Q,G,q){return R8(Q,{tooltip:G,tooltipItems:q,type:"tooltip"})}function nT(Q,G){let q=G&&G.dataset&&G.dataset.tooltip&&G.dataset.tooltip.callbacks;return q?Q.override(q):Q}var Dz={beforeTitle:v4,title(Q){if(Q.length>0){let G=Q[0],q=G.chart.data.labels,X=q?q.length:0;if(this&&this.options&&this.options.mode==="dataset")return G.dataset.label||"";else if(G.label)return G.label;else if(X>0&&G.dataIndex<X)return q[G.dataIndex]}return""},afterTitle:v4,beforeBody:v4,beforeLabel:v4,label(Q){if(this&&this.options&&this.options.mode==="dataset")return Q.label+": "+Q.formattedValue||Q.formattedValue;let G=Q.dataset.label||"";if(G)G+=": ";let q=Q.formattedValue;if(!t0(q))G+=q;return G},labelColor(Q){let q=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{borderColor:q.borderColor,backgroundColor:q.backgroundColor,borderWidth:q.borderWidth,borderDash:q.borderDash,borderDashOffset:q.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(Q){let q=Q.chart.getDatasetMeta(Q.datasetIndex).controller.getStyle(Q.dataIndex);return{pointStyle:q.pointStyle,rotation:q.rotation}},afterLabel:v4,afterBody:v4,beforeFooter:v4,footer:v4,afterFooter:v4};function n5(Q,G,q,X){let N=Q[G].call(q,X);if(typeof N>"u")return Dz[G].call(q,X);return N}class lU extends P8{static positioners=HQ;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 G=this.chart,q=this.options.setContext(this.getContext()),X=q.enabled&&G.options.animation&&q.animations,N=new nU(this.chart,X);if(X._cacheable)this._cachedAnimations=Object.freeze(N);return N}getContext(){return this.$context||(this.$context=QS(this.chart.getContext(),this,this._tooltipItems))}getTitle(Q,G){let{callbacks:q}=G,X=n5(q,"beforeTitle",this,Q),N=n5(q,"title",this,Q),B=n5(q,"afterTitle",this,Q),H=[];return H=b4(H,z8(X)),H=b4(H,z8(N)),H=b4(H,z8(B)),H}getBeforeBody(Q,G){return sT(n5(G.callbacks,"beforeBody",this,Q))}getBody(Q,G){let{callbacks:q}=G,X=[];return N1(Q,(N)=>{let B={before:[],lines:[],after:[]},H=nT(q,N);b4(B.before,z8(n5(H,"beforeLabel",this,N))),b4(B.lines,n5(H,"label",this,N)),b4(B.after,z8(n5(H,"afterLabel",this,N))),X.push(B)}),X}getAfterBody(Q,G){return sT(n5(G.callbacks,"afterBody",this,Q))}getFooter(Q,G){let{callbacks:q}=G,X=n5(q,"beforeFooter",this,Q),N=n5(q,"footer",this,Q),B=n5(q,"afterFooter",this,Q),H=[];return H=b4(H,z8(X)),H=b4(H,z8(N)),H=b4(H,z8(B)),H}_createItems(Q){let G=this._active,q=this.chart.data,X=[],N=[],B=[],H=[],M,F;for(M=0,F=G.length;M<F;++M)H.push(aA(this.chart,G[M]));if(Q.filter)H=H.filter((W,T,z)=>Q.filter(W,T,z,q));if(Q.itemSort)H=H.sort((W,T)=>Q.itemSort(W,T,q));return N1(H,(W)=>{let T=nT(Q.callbacks,W);X.push(n5(T,"labelColor",this,W)),N.push(n5(T,"labelPointStyle",this,W)),B.push(n5(T,"labelTextColor",this,W))}),this.labelColors=X,this.labelPointStyles=N,this.labelTextColors=B,this.dataPoints=H,H}update(Q,G){let q=this.options.setContext(this.getContext()),X=this._active,N,B=[];if(!X.length){if(this.opacity!==0)N={opacity:0}}else{let H=HQ[q.position].call(this,X,this._eventPosition);B=this._createItems(q),this.title=this.getTitle(B,q),this.beforeBody=this.getBeforeBody(B,q),this.body=this.getBody(B,q),this.afterBody=this.getAfterBody(B,q),this.footer=this.getFooter(B,q);let M=this._size=cT(this,q),F=Object.assign({},H,M),W=lT(this.chart,q,F),T=rT(q,F,W,this.chart);this.xAlign=W.xAlign,this.yAlign=W.yAlign,N={opacity:1,x:T.x,y:T.y,width:M.width,height:M.height,caretX:H.x,caretY:H.y}}if(this._tooltipItems=B,this.$context=void 0,N)this._resolveAnimations().update(this,N);if(Q&&q.external)q.external.call(this,{chart:this.chart,tooltip:this,replay:G})}drawCaret(Q,G,q,X){let N=this.getCaretPosition(Q,q,X);G.lineTo(N.x1,N.y1),G.lineTo(N.x2,N.y2),G.lineTo(N.x3,N.y3)}getCaretPosition(Q,G,q){let{xAlign:X,yAlign:N}=this,{caretSize:B,cornerRadius:H}=q,{topLeft:M,topRight:F,bottomLeft:W,bottomRight:T}=O2(H),{x:z,y:C}=Q,{width:V,height:A}=G,O,I,j,h,p,s;if(N==="center"){if(p=C+A/2,X==="left")O=z,I=O-B,h=p+B,s=p-B;else O=z+V,I=O+B,h=p-B,s=p+B;j=O}else{if(X==="left")I=z+Math.max(M,W)+B;else if(X==="right")I=z+V-Math.max(F,T)-B;else I=this.caretX;if(N==="top")h=C,p=h-B,O=I-B,j=I+B;else h=C+A,p=h+B,O=I+B,j=I-B;s=h}return{x1:O,x2:I,x3:j,y1:h,y2:p,y3:s}}drawTitle(Q,G,q){let X=this.title,N=X.length,B,H,M;if(N){let F=D9(q.rtl,this.x,this.width);Q.x=b3(this,q.titleAlign,q),G.textAlign=F.textAlign(q.titleAlign),G.textBaseline="middle",B=o1(q.titleFont),H=q.titleSpacing,G.fillStyle=q.titleColor,G.font=B.string;for(M=0;M<N;++M)if(G.fillText(X[M],F.x(Q.x),Q.y+B.lineHeight/2),Q.y+=B.lineHeight+H,M+1===N)Q.y+=q.titleMarginBottom-H}}_drawColorBox(Q,G,q,X,N){let B=this.labelColors[q],H=this.labelPointStyles[q],{boxHeight:M,boxWidth:F}=N,W=o1(N.bodyFont),T=b3(this,"left",N),z=X.x(T),C=M<W.lineHeight?(W.lineHeight-M)/2:0,V=G.y+C;if(N.usePointStyle){let A={radius:Math.min(F,M)/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:1},O=X.leftForLtr(z,F)+F/2,I=V+M/2;Q.strokeStyle=N.multiKeyBackground,Q.fillStyle=N.multiKeyBackground,I3(Q,A,O,I),Q.strokeStyle=B.borderColor,Q.fillStyle=B.backgroundColor,I3(Q,A,O,I)}else{Q.lineWidth=o0(B.borderWidth)?Math.max(...Object.values(B.borderWidth)):B.borderWidth||1,Q.strokeStyle=B.borderColor,Q.setLineDash(B.borderDash||[]),Q.lineDashOffset=B.borderDashOffset||0;let A=X.leftForLtr(z,F),O=X.leftForLtr(X.xPlus(z,1),F-2),I=O2(B.borderRadius);if(Object.values(I).some((j)=>j!==0))Q.beginPath(),Q.fillStyle=N.multiKeyBackground,q$(Q,{x:A,y:V,w:F,h:M,radius:I}),Q.fill(),Q.stroke(),Q.fillStyle=B.backgroundColor,Q.beginPath(),q$(Q,{x:O,y:V+1,w:F-2,h:M-2,radius:I}),Q.fill();else Q.fillStyle=N.multiKeyBackground,Q.fillRect(A,V,F,M),Q.strokeRect(A,V,F,M),Q.fillStyle=B.backgroundColor,Q.fillRect(O,V+1,F-2,M-2)}Q.fillStyle=this.labelTextColors[q]}drawBody(Q,G,q){let{body:X}=this,{bodySpacing:N,bodyAlign:B,displayColors:H,boxHeight:M,boxWidth:F,boxPadding:W}=q,T=o1(q.bodyFont),z=T.lineHeight,C=0,V=D9(q.rtl,this.x,this.width),A=function(i){G.fillText(i,V.x(Q.x+C),Q.y+z/2),Q.y+=z+N},O=V.textAlign(B),I,j,h,p,s,o,Q0;G.textAlign=B,G.textBaseline="middle",G.font=T.string,Q.x=b3(this,O,q),G.fillStyle=q.bodyColor,N1(this.beforeBody,A),C=H&&O!=="right"?B==="center"?F/2+W:F+2+W:0;for(p=0,o=X.length;p<o;++p){if(I=X[p],j=this.labelTextColors[p],G.fillStyle=j,N1(I.before,A),h=I.lines,H&&h.length)this._drawColorBox(G,Q,p,V,q),z=Math.max(T.lineHeight,M);for(s=0,Q0=h.length;s<Q0;++s)A(h[s]),z=T.lineHeight;N1(I.after,A)}C=0,z=T.lineHeight,N1(this.afterBody,A),Q.y-=N}drawFooter(Q,G,q){let X=this.footer,N=X.length,B,H;if(N){let M=D9(q.rtl,this.x,this.width);Q.x=b3(this,q.footerAlign,q),Q.y+=q.footerMarginTop,G.textAlign=M.textAlign(q.footerAlign),G.textBaseline="middle",B=o1(q.footerFont),G.fillStyle=q.footerColor,G.font=B.string;for(H=0;H<N;++H)G.fillText(X[H],M.x(Q.x),Q.y+B.lineHeight/2),Q.y+=B.lineHeight+q.footerSpacing}}drawBackground(Q,G,q,X){let{xAlign:N,yAlign:B}=this,{x:H,y:M}=Q,{width:F,height:W}=q,{topLeft:T,topRight:z,bottomLeft:C,bottomRight:V}=O2(X.cornerRadius);if(G.fillStyle=X.backgroundColor,G.strokeStyle=X.borderColor,G.lineWidth=X.borderWidth,G.beginPath(),G.moveTo(H+T,M),B==="top")this.drawCaret(Q,G,q,X);if(G.lineTo(H+F-z,M),G.quadraticCurveTo(H+F,M,H+F,M+z),B==="center"&&N==="right")this.drawCaret(Q,G,q,X);if(G.lineTo(H+F,M+W-V),G.quadraticCurveTo(H+F,M+W,H+F-V,M+W),B==="bottom")this.drawCaret(Q,G,q,X);if(G.lineTo(H+C,M+W),G.quadraticCurveTo(H,M+W,H,M+W-C),B==="center"&&N==="left")this.drawCaret(Q,G,q,X);if(G.lineTo(H,M+T),G.quadraticCurveTo(H,M,H+T,M),G.closePath(),G.fill(),X.borderWidth>0)G.stroke()}_updateAnimationTarget(Q){let G=this.chart,q=this.$animations,X=q&&q.x,N=q&&q.y;if(X||N){let B=HQ[Q.position].call(this,this._active,this._eventPosition);if(!B)return;let H=this._size=cT(this,Q),M=Object.assign({},B,this._size),F=lT(G,Q,M),W=rT(Q,M,F,G);if(X._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=B.x,this.caretY=B.y,this._resolveAnimations().update(this,W)}}_willRender(){return!!this.opacity}draw(Q){let G=this.options.setContext(this.getContext()),q=this.opacity;if(!q)return;this._updateAnimationTarget(G);let X={width:this.width,height:this.height},N={x:this.x,y:this.y};q=Math.abs(q)<0.001?0:q;let B=w5(G.padding),H=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;if(G.enabled&&H)Q.save(),Q.globalAlpha=q,this.drawBackground(N,Q,X,G),VU(Q,G.textDirection),N.y+=B.top,this.drawTitle(N,Q,G),this.drawBody(N,Q,G),this.drawFooter(N,Q,G),IU(Q,G.textDirection),Q.restore()}getActiveElements(){return this._active||[]}setActiveElements(Q,G){let q=this._active,X=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=!$Q(q,X),B=this._positionChanged(X,G);if(N||B)this._active=X,this._eventPosition=G,this._ignoreReplayEvents=!0,this.update(!0)}handleEvent(Q,G,q=!0){if(G&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let X=this.options,N=this._active||[],B=this._getActiveElements(Q,N,G,q),H=this._positionChanged(B,Q),M=G||!$Q(B,N)||H;if(M){if(this._active=B,X.enabled||X.external)this._eventPosition={x:Q.x,y:Q.y},this.update(!0,G)}return M}_getActiveElements(Q,G,q,X){let N=this.options;if(Q.type==="mouseout")return[];if(!X)return G.filter((H)=>this.chart.data.datasets[H.datasetIndex]&&this.chart.getDatasetMeta(H.datasetIndex).controller.getParsed(H.index)!==void 0);let B=this.chart.getElementsAtEventForMode(Q,N.mode,N,q);if(N.reverse)B.reverse();return B}_positionChanged(Q,G){let{caretX:q,caretY:X,options:N}=this,B=HQ[N.position].call(this,Q,G);return B!==!1&&(q!==B.x||X!==B.y)}}var jz={id:"tooltip",_element:lU,positioners:HQ,afterInit(Q,G,q){if(q)Q.tooltip=new lU({chart:Q,options:q})},beforeUpdate(Q,G,q){if(Q.tooltip)Q.tooltip.initialize(q)},reset(Q,G,q){if(Q.tooltip)Q.tooltip.initialize(q)},afterDraw(Q){let G=Q.tooltip;if(G&&G._willRender()){let q={tooltip:G};if(Q.notifyPlugins("beforeTooltipDraw",{...q,cancelable:!0})===!1)return;G.draw(Q.ctx),Q.notifyPlugins("afterTooltipDraw",q)}},afterEvent(Q,G){if(Q.tooltip){let q=G.replay;if(Q.tooltip.handleEvent(G.event,q,G.inChartArea))G.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,G)=>G.bodyFont.size,boxWidth:(Q,G)=>G.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:Dz},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 JS=(Q,G,q,X)=>{if(typeof G==="string")q=Q.push(G)-1,X.unshift({index:q,label:G});else if(isNaN(G))q=null;return q};function GS(Q,G,q,X){let N=Q.indexOf(G);if(N===-1)return JS(Q,G,q,X);let B=Q.lastIndexOf(G);return N!==B?q:N}var qS=(Q,G)=>Q===null?null:r5(Math.round(Q),0,G);function oT(Q){let G=this.getLabels();if(Q>=0&&Q<G.length)return G[Q];return Q}class JB extends b9{static id="category";static defaults={ticks:{callback:oT}};constructor(Q){super(Q);this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(Q){let G=this._addedLabels;if(G.length){let q=this.getLabels();for(let{index:X,label:N}of G)if(q[X]===N)q.splice(X,1);this._addedLabels=[]}super.init(Q)}parse(Q,G){if(t0(Q))return null;let q=this.getLabels();return G=isFinite(G)&&q[G]===Q?G:GS(q,Q,p0(G,Q),this._addedLabels),qS(G,q.length-1)}determineDataLimits(){let{minDefined:Q,maxDefined:G}=this.getUserBounds(),{min:q,max:X}=this.getMinMax(!0);if(this.options.bounds==="ticks"){if(!Q)q=0;if(!G)X=this.getLabels().length-1}this.min=q,this.max=X}buildTicks(){let Q=this.min,G=this.max,q=this.options.offset,X=[],N=this.getLabels();N=Q===0&&G===N.length-1?N:N.slice(Q,G+1),this._valueRange=Math.max(N.length-(q?0:1),1),this._startValue=this.min-(q?0.5:0);for(let B=Q;B<=G;B++)X.push({value:B});return X}getLabelForValue(Q){return oT.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 G=this.ticks;if(Q<0||Q>G.length-1)return null;return this.getPixelForValue(G[Q].value)}getValueForPixel(Q){return Math.round(this._startValue+this.getDecimalForPixel(Q)*this._valueRange)}getBasePixel(){return this.bottom}}function XS(Q,G){let q=[],X=0.00000000000001,{bounds:N,step:B,min:H,max:M,precision:F,count:W,maxTicks:T,maxDigits:z,includeBounds:C}=Q,V=B||1,A=T-1,{min:O,max:I}=G,j=!t0(H),h=!t0(M),p=!t0(W),s=(I-O)/(z+1),o=qU((I-O)/A/V)*V,Q0,i,a,X0;if(o<0.00000000000001&&!j&&!h)return[{value:O},{value:I}];if(X0=Math.ceil(I/o)-Math.floor(O/o),X0>A)o=qU(X0*o/A/V)*V;if(!t0(F))Q0=Math.pow(10,F),o=Math.ceil(o*Q0)/Q0;if(N==="ticks")i=Math.floor(O/o)*o,a=Math.ceil(I/o)*o;else i=O,a=I;if(j&&h&&B&&fR((M-H)/B,o/1000))X0=Math.round(Math.min((M-H)/o,T)),o=(M-H)/X0,i=H,a=M;else if(p)i=j?H:i,a=h?M:a,X0=W-1,o=(a-i)/X0;else if(X0=(a-i)/o,J$(X0,Math.round(X0),o/1000))X0=Math.round(X0);else X0=Math.ceil(X0);let d=Math.max(YU(o),YU(i));Q0=Math.pow(10,t0(F)?d:F),i=Math.round(i*Q0)/Q0,a=Math.round(a*Q0)/Q0;let U0=0;if(j){if(C&&i!==H){if(q.push({value:H}),i<H)U0++;if(J$(Math.round((i+U0*o)*Q0)/Q0,H,aT(H,s,Q)))U0++}else if(i<H)U0++}for(;U0<X0;++U0){let P0=Math.round((i+U0*o)*Q0)/Q0;if(h&&P0>M)break;q.push({value:P0})}if(h&&C&&a!==M)if(q.length&&J$(q[q.length-1].value,M,aT(M,s,Q)))q[q.length-1].value=M;else q.push({value:M});else if(!h||a===M)q.push({value:a});return q}function aT(Q,G,{horizontal:q,minRotation:X}){let N=w8(X),B=(q?Math.sin(N):Math.cos(N))||0.001,H=0.75*G*(""+Q).length;return Math.min(G/B,H)}class FQ extends b9{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,G){if(t0(Q))return null;if((typeof Q==="number"||Q instanceof Number)&&!isFinite(+Q))return null;return+Q}handleTickRangeOptions(){let{beginAtZero:Q}=this.options,{minDefined:G,maxDefined:q}=this.getUserBounds(),{min:X,max:N}=this,B=(M)=>X=G?X:M,H=(M)=>N=q?N:M;if(Q){let M=$4(X),F=$4(N);if(M<0&&F<0)H(0);else if(M>0&&F>0)B(0)}if(X===N){let M=N===0?1:Math.abs(N*0.05);if(H(N+M),!Q)B(X-M)}this.min=X,this.max=N}getTickLimit(){let Q=this.options.ticks,{maxTicksLimit:G,stepSize:q}=Q,X;if(q){if(X=Math.ceil(this.max/q)-Math.floor(this.min/q)+1,X>1000)console.warn(`scales.${this.id}.ticks.stepSize: ${q} would result generating up to ${X} ticks. Limiting to 1000.`),X=1000}else X=this.computeTickLimit(),G=G||11;if(G)X=Math.min(G,X);return X}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let Q=this.options,G=Q.ticks,q=this.getTickLimit();q=Math.max(2,q);let X={maxTicks:q,bounds:Q.bounds,min:Q.min,max:Q.max,precision:G.precision,step:G.stepSize,count:G.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:G.minRotation||0,includeBounds:G.includeBounds!==!1},N=this._range||this,B=XS(X,N);if(Q.bounds==="ticks")XU(B,this,"value");if(Q.reverse)B.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return B}configure(){let Q=this.ticks,G=this.min,q=this.max;if(super.configure(),this.options.offset&&Q.length){let X=(q-G)/Math.max(Q.length-1,1)/2;G-=X,q+=X}this._startValue=G,this._endValue=q,this._valueRange=q-G}getLabelForValue(Q){return _3(Q,this.chart.options.locale,this.options.ticks.format)}}class GB extends FQ{static id="linear";static defaults={ticks:{callback:ZQ.formatters.numeric}};determineDataLimits(){let{min:Q,max:G}=this.getMinMax(!0);this.min=v1(Q)?Q:0,this.max=v1(G)?G:1,this.handleTickRangeOptions()}computeTickLimit(){let Q=this.isHorizontal(),G=Q?this.width:this.height,q=w8(this.options.ticks.minRotation),X=(Q?Math.sin(q):Math.cos(q))||0.001,N=this._resolveTickFontOptions(0);return Math.ceil(G/Math.min(40,N.lineHeight/X))}getPixelForValue(Q){return Q===null?NaN:this.getPixelForDecimal((Q-this._startValue)/this._valueRange)}getValueForPixel(Q){return this._startValue+this.getDecimalForPixel(Q)*this._valueRange}}var wQ=(Q)=>Math.floor(F8(Q)),v9=(Q,G)=>Math.pow(10,wQ(Q)+G);function iT(Q){return Q/Math.pow(10,wQ(Q))===1}function tT(Q,G,q){let X=Math.pow(10,q),N=Math.floor(Q/X);return Math.ceil(G/X)-N}function YS(Q,G){let q=G-Q,X=wQ(q);while(tT(Q,G,X)>10)X++;while(tT(Q,G,X)<10)X--;return Math.min(X,wQ(Q))}function NS(Q,{min:G,max:q}){G=s5(Q.min,G);let X=[],N=wQ(G),B=YS(G,q),H=B<0?Math.pow(10,Math.abs(B)):1,M=Math.pow(10,B),F=N>B?Math.pow(10,N):0,W=Math.round((G-F)*H)/H,T=Math.floor((G-F)/M/10)*M*10,z=Math.floor((W-T)/Math.pow(10,B)),C=s5(Q.min,Math.round((F+T+z*Math.pow(10,B))*H)/H);while(C<q){if(X.push({value:C,major:iT(C),significand:z}),z>=10)z=z<15?15:20;else z++;if(z>=20)B++,z=2,H=B>=0?1:H;C=Math.round((F+T+z*Math.pow(10,B))*H)/H}let V=s5(Q.max,C);return X.push({value:V,major:iT(V),significand:z}),X}class US extends b9{static id="logarithmic";static defaults={ticks:{callback:ZQ.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,G){let q=FQ.prototype.parse.apply(this,[Q,G]);if(q===0){this._zero=!0;return}return v1(q)&&q>0?q:null}determineDataLimits(){let{min:Q,max:G}=this.getMinMax(!0);if(this.min=v1(Q)?Math.max(0,Q):null,this.max=v1(G)?Math.max(0,G):null,this.options.beginAtZero)this._zero=!0;if(this._zero&&this.min!==this._suggestedMin&&!v1(this._userMin))this.min=Q===v9(this.min,0)?v9(this.min,-1):v9(this.min,0);this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:Q,maxDefined:G}=this.getUserBounds(),q=this.min,X=this.max,N=(H)=>q=Q?q:H,B=(H)=>X=G?X:H;if(q===X)if(q<=0)N(1),B(10);else N(v9(q,-1)),B(v9(X,1));if(q<=0)N(v9(X,-1));if(X<=0)B(v9(q,1));this.min=q,this.max=X}buildTicks(){let Q=this.options,G={min:this._userMin,max:this._userMax},q=NS(G,this);if(Q.bounds==="ticks")XU(q,this,"value");if(Q.reverse)q.reverse(),this.start=this.max,this.end=this.min;else this.start=this.min,this.end=this.max;return q}getLabelForValue(Q){return Q===void 0?"0":_3(Q,this.chart.options.locale,this.options.ticks.format)}configure(){let Q=this.min;super.configure(),this._startValue=F8(Q),this._valueRange=F8(this.max)-F8(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:(F8(Q)-this._startValue)/this._valueRange)}getValueForPixel(Q){let G=this.getDecimalForPixel(Q);return Math.pow(10,this._startValue+G*this._valueRange)}}function rU(Q){let G=Q.ticks;if(G.display&&Q.display){let q=w5(G.backdropPadding);return p0(G.font&&G.font.size,b1.font.size)+q.height}return 0}function BS(Q,G,q){return q=L1(q)?q:[q],{w:nR(Q,G.string,q),h:q.length*G.lineHeight}}function eT(Q,G,q,X,N){if(Q===X||Q===N)return{start:G-q/2,end:G+q/2};else if(Q<X||Q>N)return{start:G-q,end:G};return{start:G,end:G+q}}function KS(Q){let G={l:Q.left+Q._padding.left,r:Q.right-Q._padding.right,t:Q.top+Q._padding.top,b:Q.bottom-Q._padding.bottom},q=Object.assign({},G),X=[],N=[],B=Q._pointLabels.length,H=Q.options.pointLabels,M=H.centerPointLabels?u1/B:0;for(let F=0;F<B;F++){let W=H.setContext(Q.getPointLabelContext(F));N[F]=W.padding;let T=Q.getPointPosition(F,Q.drawingArea+N[F],M),z=o1(W.font),C=BS(Q.ctx,z,Q._pointLabels[F]);X[F]=C;let V=p5(Q.getIndexAngle(F)+M),A=Math.round(P3(V)),O=eT(A,T.x,C.w,0,180),I=eT(A,T.y,C.h,90,270);HS(q,G,V,O,I)}Q.setCenterPoint(G.l-q.l,q.r-G.r,G.t-q.t,q.b-G.b),Q._pointLabelItems=wS(Q,X,N)}function HS(Q,G,q,X,N){let B=Math.abs(Math.sin(q)),H=Math.abs(Math.cos(q)),M=0,F=0;if(X.start<G.l)M=(G.l-X.start)/B,Q.l=Math.min(Q.l,G.l-M);else if(X.end>G.r)M=(X.end-G.r)/B,Q.r=Math.max(Q.r,G.r+M);if(N.start<G.t)F=(G.t-N.start)/H,Q.t=Math.min(Q.t,G.t-F);else if(N.end>G.b)F=(N.end-G.b)/H,Q.b=Math.max(Q.b,G.b+F)}function MS(Q,G,q){let X=Q.drawingArea,{extra:N,additionalAngle:B,padding:H,size:M}=q,F=Q.getPointPosition(G,X+N+H,B),W=Math.round(P3(p5(F.angle+c5))),T=TS(F.y,M.h,W),z=WS(W),C=RS(F.x,M.w,z);return{visible:!0,x:F.x,y:T,textAlign:z,left:C,top:T,right:C+M.w,bottom:T+M.h}}function FS(Q,G){if(!G)return!0;let{left:q,top:X,right:N,bottom:B}=Q;return!(j4({x:q,y:X},G)||j4({x:q,y:B},G)||j4({x:N,y:X},G)||j4({x:N,y:B},G))}function wS(Q,G,q){let X=[],N=Q._pointLabels.length,B=Q.options,{centerPointLabels:H,display:M}=B.pointLabels,F={extra:rU(B)/2,additionalAngle:H?u1/N:0},W;for(let T=0;T<N;T++){F.padding=q[T],F.size=G[T];let z=MS(Q,T,F);if(X.push(z),M==="auto"){if(z.visible=FS(z,W),z.visible)W=z}}return X}function WS(Q){if(Q===0||Q===180)return"center";else if(Q<180)return"left";return"right"}function RS(Q,G,q){if(q==="right")Q-=G;else if(q==="center")Q-=G/2;return Q}function TS(Q,G,q){if(q===90||q===270)Q-=G/2;else if(q>270||q<90)Q-=G;return Q}function zS(Q,G,q){let{left:X,top:N,right:B,bottom:H}=q,{backdropColor:M}=G;if(!t0(M)){let F=O2(G.borderRadius),W=w5(G.backdropPadding);Q.fillStyle=M;let T=X-W.left,z=N-W.top,C=B-X+W.width,V=H-N+W.height;if(Object.values(F).some((A)=>A!==0))Q.beginPath(),q$(Q,{x:T,y:z,w:C,h:V,radius:F}),Q.fill();else Q.fillRect(T,z,C,V)}}function PS(Q,G){let{ctx:q,options:{pointLabels:X}}=Q;for(let N=G-1;N>=0;N--){let B=Q._pointLabelItems[N];if(!B.visible)continue;let H=X.setContext(Q.getPointLabelContext(N));zS(q,H,B);let M=o1(H.font),{x:F,y:W,textAlign:T}=B;I2(q,Q._pointLabels[N],F,W+M.lineHeight/2,M,{color:H.color,textAlign:T,textBaseline:"middle"})}}function vz(Q,G,q,X){let{ctx:N}=Q;if(q)N.arc(Q.xCenter,Q.yCenter,G,0,l5);else{let B=Q.getPointPosition(0,G);N.moveTo(B.x,B.y);for(let H=1;H<X;H++)B=Q.getPointPosition(H,G),N.lineTo(B.x,B.y)}}function CS(Q,G,q,X,N){let B=Q.ctx,H=G.circular,{color:M,lineWidth:F}=G;if(!H&&!X||!M||!F||q<0)return;B.save(),B.strokeStyle=M,B.lineWidth=F,B.setLineDash(N.dash||[]),B.lineDashOffset=N.dashOffset,B.beginPath(),vz(Q,q,H,X),B.closePath(),B.stroke(),B.restore()}function LS(Q,G,q){return R8(Q,{label:q,index:G,type:"pointLabel"})}class _S extends FQ{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:ZQ.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=w5(rU(this.options)/2),G=this.width=this.maxWidth-Q.width,q=this.height=this.maxHeight-Q.height;this.xCenter=Math.floor(this.left+G/2+Q.left),this.yCenter=Math.floor(this.top+q/2+Q.top),this.drawingArea=Math.floor(Math.min(G,q)/2)}determineDataLimits(){let{min:Q,max:G}=this.getMinMax(!1);this.min=v1(Q)&&!isNaN(Q)?Q:0,this.max=v1(G)&&!isNaN(G)?G:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/rU(this.options))}generateTickLabels(Q){FQ.prototype.generateTickLabels.call(this,Q),this._pointLabels=this.getLabels().map((G,q)=>{let X=T1(this.options.pointLabels.callback,[G,q],this);return X||X===0?X:""}).filter((G,q)=>this.chart.getDataVisibility(q))}fit(){let Q=this.options;if(Q.display&&Q.pointLabels.display)KS(this);else this.setCenterPoint(0,0,0,0)}setCenterPoint(Q,G,q,X){this.xCenter+=Math.floor((Q-G)/2),this.yCenter+=Math.floor((q-X)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(Q,G,q,X))}getIndexAngle(Q){let G=l5/(this._pointLabels.length||1),q=this.options.startAngle||0;return p5(Q*G+w8(q))}getDistanceFromCenterForValue(Q){if(t0(Q))return NaN;let G=this.drawingArea/(this.max-this.min);if(this.options.reverse)return(this.max-Q)*G;return(Q-this.min)*G}getValueForDistanceFromCenter(Q){if(t0(Q))return NaN;let G=Q/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-G:this.min+G}getPointLabelContext(Q){let G=this._pointLabels||[];if(Q>=0&&Q<G.length){let q=G[Q];return LS(this.getContext(),Q,q)}}getPointPosition(Q,G,q=0){let X=this.getIndexAngle(Q)-c5+q;return{x:Math.cos(X)*G+this.xCenter,y:Math.sin(X)*G+this.yCenter,angle:X}}getPointPositionForValue(Q,G){return this.getPointPosition(Q,this.getDistanceFromCenterForValue(G))}getBasePosition(Q){return this.getPointPositionForValue(Q||0,this.getBaseValue())}getPointLabelPosition(Q){let{left:G,top:q,right:X,bottom:N}=this._pointLabelItems[Q];return{left:G,top:q,right:X,bottom:N}}drawBackground(){let{backgroundColor:Q,grid:{circular:G}}=this.options;if(Q){let q=this.ctx;q.save(),q.beginPath(),vz(this,this.getDistanceFromCenterForValue(this._endValue),G,this._pointLabels.length),q.closePath(),q.fillStyle=Q,q.fill(),q.restore()}}drawGrid(){let Q=this.ctx,G=this.options,{angleLines:q,grid:X,border:N}=G,B=this._pointLabels.length,H,M,F;if(G.pointLabels.display)PS(this,B);if(X.display)this.ticks.forEach((W,T)=>{if(T!==0||T===0&&this.min<0){M=this.getDistanceFromCenterForValue(W.value);let z=this.getContext(T),C=X.setContext(z),V=N.setContext(z);CS(this,C,M,B,V)}});if(q.display){Q.save();for(H=B-1;H>=0;H--){let W=q.setContext(this.getPointLabelContext(H)),{color:T,lineWidth:z}=W;if(!z||!T)continue;Q.lineWidth=z,Q.strokeStyle=T,Q.setLineDash(W.borderDash),Q.lineDashOffset=W.borderDashOffset,M=this.getDistanceFromCenterForValue(G.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,G=this.options,q=G.ticks;if(!q.display)return;let X=this.getIndexAngle(0),N,B;Q.save(),Q.translate(this.xCenter,this.yCenter),Q.rotate(X),Q.textAlign="center",Q.textBaseline="middle",this.ticks.forEach((H,M)=>{if(M===0&&this.min>=0&&!G.reverse)return;let F=q.setContext(this.getContext(M)),W=o1(F.font);if(N=this.getDistanceFromCenterForValue(this.ticks[M].value),F.showLabelBackdrop){Q.font=W.string,B=Q.measureText(H.label).width,Q.fillStyle=F.backdropColor;let T=w5(F.backdropPadding);Q.fillRect(-B/2-T.left,-N-W.size/2-T.top,B+T.width,W.size+T.height)}I2(Q,H.label,0,-N,W,{color:F.color,strokeColor:F.textStrokeColor,strokeWidth:F.textStrokeWidth})}),Q.restore()}drawTitle(){}}var x3={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}},o5=Object.keys(x3);function $z(Q,G){return Q-G}function Zz(Q,G){if(t0(G))return null;let q=Q._adapter,{parser:X,round:N,isoWeekday:B}=Q._parseOpts,H=G;if(typeof X==="function")H=X(H);if(!v1(H))H=typeof X==="string"?q.parse(H,X):q.parse(H);if(H===null)return null;if(N)H=N==="week"&&(G$(B)||B===!0)?q.startOf(H,"isoWeek",B):q.startOf(H,N);return+H}function Qz(Q,G,q,X){let N=o5.length;for(let B=o5.indexOf(Q);B<N-1;++B){let H=x3[o5[B]],M=H.steps?H.steps:Number.MAX_SAFE_INTEGER;if(H.common&&Math.ceil((q-G)/(M*H.size))<=X)return o5[B]}return o5[N-1]}function VS(Q,G,q,X,N){for(let B=o5.length-1;B>=o5.indexOf(q);B--){let H=o5[B];if(x3[H].common&&Q._adapter.diff(N,X,H)>=G-1)return H}return o5[q?o5.indexOf(q):0]}function IS(Q){for(let G=o5.indexOf(Q)+1,q=o5.length;G<q;++G)if(x3[o5[G]].common)return o5[G]}function Jz(Q,G,q){if(!q)Q[G]=!0;else if(q.length){let{lo:X,hi:N}=C3(q,G),B=q[X]>=G?q[X]:q[N];Q[B]=!0}}function OS(Q,G,q,X){let N=Q._adapter,B=+N.startOf(G[0].value,X),H=G[G.length-1].value,M,F;for(M=B;M<=H;M=+N.add(M,1,X))if(F=q[M],F>=0)G[F].major=!0;return G}function Gz(Q,G,q){let X=[],N={},B=G.length,H,M;for(H=0;H<B;++H)M=G[H],N[M]=H,X.push({value:M,major:!1});return B===0||!q?X:OS(Q,X,N,q)}class sU extends b9{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,G={}){let q=Q.time||(Q.time={}),X=this._adapter=new YE._date(Q.adapters.date);X.init(G),Z$(q.displayFormats,X.formats()),this._parseOpts={parser:q.parser,round:q.round,isoWeekday:q.isoWeekday},super.init(Q),this._normalized=G.normalized}parse(Q,G){if(Q===void 0)return null;return Zz(this,Q)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let Q=this.options,G=this._adapter,q=Q.time.unit||"day",{min:X,max:N,minDefined:B,maxDefined:H}=this.getUserBounds();function M(F){if(!B&&!isNaN(F.min))X=Math.min(X,F.min);if(!H&&!isNaN(F.max))N=Math.max(N,F.max)}if(!B||!H){if(M(this._getLabelBounds()),Q.bounds!=="ticks"||Q.ticks.source!=="labels")M(this.getMinMax(!1))}X=v1(X)&&!isNaN(X)?X:+G.startOf(Date.now(),q),N=v1(N)&&!isNaN(N)?N:+G.endOf(Date.now(),q)+1,this.min=Math.min(X,N-1),this.max=Math.max(X+1,N)}_getLabelBounds(){let Q=this.getLabelTimestamps(),G=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY;if(Q.length)G=Q[0],q=Q[Q.length-1];return{min:G,max:q}}buildTicks(){let Q=this.options,G=Q.time,q=Q.ticks,X=q.source==="labels"?this.getLabelTimestamps():this._generate();if(Q.bounds==="ticks"&&X.length)this.min=this._userMin||X[0],this.max=this._userMax||X[X.length-1];let N=this.min,B=this.max,H=uR(X,N,B);if(this._unit=G.unit||(q.autoSkip?Qz(G.minUnit,this.min,this.max,this._getLabelCapacity(N)):VS(this,H.length,G.minUnit,this.min,this.max)),this._majorUnit=!q.major.enabled||this._unit==="year"?void 0:IS(this._unit),this.initOffsets(X),Q.reverse)H.reverse();return Gz(this,H,this._majorUnit)}afterAutoSkip(){if(this.options.offsetAfterAutoskip)this.initOffsets(this.ticks.map((Q)=>+Q.value))}initOffsets(Q=[]){let G=0,q=0,X,N;if(this.options.offset&&Q.length){if(X=this.getDecimalForValue(Q[0]),Q.length===1)G=1-X;else G=(this.getDecimalForValue(Q[1])-X)/2;if(N=this.getDecimalForValue(Q[Q.length-1]),Q.length===1)q=N;else q=(N-this.getDecimalForValue(Q[Q.length-2]))/2}let B=Q.length<3?0.5:0.25;G=r5(G,0,B),q=r5(q,0,B),this._offsets={start:G,end:q,factor:1/(G+1+q)}}_generate(){let Q=this._adapter,G=this.min,q=this.max,X=this.options,N=X.time,B=N.unit||Qz(N.minUnit,G,q,this._getLabelCapacity(G)),H=p0(X.ticks.stepSize,1),M=B==="week"?N.isoWeekday:!1,F=G$(M)||M===!0,W={},T=G,z,C;if(F)T=+Q.startOf(T,"isoWeek",M);if(T=+Q.startOf(T,F?"day":B),Q.diff(q,G,B)>1e5*H)throw Error(G+" and "+q+" are too far apart with stepSize of "+H+" "+B);let V=X.ticks.source==="data"&&this.getDataTimestamps();for(z=T,C=0;z<q;z=+Q.add(z,H,B),C++)Jz(W,z,V);if(z===q||X.bounds==="ticks"||C===1)Jz(W,z,V);return Object.keys(W).sort($z).map((A)=>+A)}getLabelForValue(Q){let G=this._adapter,q=this.options.time;if(q.tooltipFormat)return G.format(Q,q.tooltipFormat);return G.format(Q,q.displayFormats.datetime)}format(Q,G){let X=this.options.time.displayFormats,N=this._unit,B=G||X[N];return this._adapter.format(Q,B)}_tickFormatFunction(Q,G,q,X){let N=this.options,B=N.ticks.callback;if(B)return T1(B,[Q,G,q],this);let H=N.time.displayFormats,M=this._unit,F=this._majorUnit,W=M&&H[M],T=F&&H[F],z=q[G],C=F&&T&&z&&z.major;return this._adapter.format(Q,X||(C?T:W))}generateTickLabels(Q){let G,q,X;for(G=0,q=Q.length;G<q;++G)X=Q[G],X.label=this._tickFormatFunction(X.value,G,Q)}getDecimalForValue(Q){return Q===null?NaN:(Q-this.min)/(this.max-this.min)}getPixelForValue(Q){let G=this._offsets,q=this.getDecimalForValue(Q);return this.getPixelForDecimal((G.start+q)*G.factor)}getValueForPixel(Q){let G=this._offsets,q=this.getDecimalForPixel(Q)/G.factor-G.end;return this.min+q*(this.max-this.min)}_getLabelSize(Q){let G=this.options.ticks,q=this.ctx.measureText(Q).width,X=w8(this.isHorizontal()?G.maxRotation:G.minRotation),N=Math.cos(X),B=Math.sin(X),H=this._resolveTickFontOptions(0).size;return{w:q*N+H*B,h:q*B+H*N}}_getLabelCapacity(Q){let G=this.options.time,q=G.displayFormats,X=q[G.unit]||q.millisecond,N=this._tickFormatFunction(Q,0,Gz(this,[Q],this._majorUnit),X),B=this._getLabelSize(N),H=Math.floor(this.isHorizontal()?this.width/B.w:this.height/B.h)-1;return H>0?H:1}getDataTimestamps(){let Q=this._cache.data||[],G,q;if(Q.length)return Q;let X=this.getMatchingVisibleMetas();if(this._normalized&&X.length)return this._cache.data=X[0].controller.getAllParsedValues(this);for(G=0,q=X.length;G<q;++G)Q=Q.concat(X[G].controller.getAllParsedValues(this));return this._cache.data=this.normalize(Q)}getLabelTimestamps(){let Q=this._cache.labels||[],G,q;if(Q.length)return Q;let X=this.getLabels();for(G=0,q=X.length;G<q;++G)Q.push(Zz(this,X[G]));return this._cache.labels=this._normalized?Q:this.normalize(Q)}normalize(Q){return BU(Q.sort($z))}}function k3(Q,G,q){let X=0,N=Q.length-1,B,H,M,F;if(q){if(G>=Q[X].pos&&G<=Q[N].pos)({lo:X,hi:N}=C2(Q,"pos",G));({pos:B,time:M}=Q[X]),{pos:H,time:F}=Q[N]}else{if(G>=Q[X].time&&G<=Q[N].time)({lo:X,hi:N}=C2(Q,"time",G));({time:B,pos:M}=Q[X]),{time:H,pos:F}=Q[N]}let W=H-B;return W?M+(F-M)*(G-B)/W:M}class ES extends sU{static id="timeseries";static defaults=sU.defaults;constructor(Q){super(Q);this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let Q=this._getTimestampsForTable(),G=this._table=this.buildLookupTable(Q);this._minPos=k3(G,this.min),this._tableRange=k3(G,this.max)-this._minPos,super.initOffsets(Q)}buildLookupTable(Q){let{min:G,max:q}=this,X=[],N=[],B,H,M,F,W;for(B=0,H=Q.length;B<H;++B)if(F=Q[B],F>=G&&F<=q)X.push(F);if(X.length<2)return[{time:G,pos:0},{time:q,pos:1}];for(B=0,H=X.length;B<H;++B)if(W=X[B+1],M=X[B-1],F=X[B],Math.round((W+M)/2)!==F)N.push({time:F,pos:B/(H-1)});return N}_generate(){let Q=this.min,G=this.max,q=super.getDataTimestamps();if(!q.includes(Q)||!q.length)q.splice(0,0,Q);if(!q.includes(G)||q.length===1)q.push(G);return q.sort((X,N)=>X-N)}_getTimestampsForTable(){let Q=this._cache.all||[];if(Q.length)return Q;let G=this.getDataTimestamps(),q=this.getLabelTimestamps();if(G.length&&q.length)Q=this.normalize(G.concat(q));else Q=G.length?G:q;return Q=this._cache.all=Q,Q}getDecimalForValue(Q){return(k3(this._table,Q)-this._minPos)/this._tableRange}getValueForPixel(Q){let G=this._offsets,q=this.getDecimalForPixel(Q)/G.factor-G.end;return k3(this._table,q*this._tableRange+this._minPos,!0)}}k9.register(JB,GB,$B,X$,eU,Sz,jz,Az,Oz);var jC=e(uz(),1);var O8=e(A1(),1);var c3=e(A1(),1);var d3=(...Q)=>Q.filter((G,q,X)=>{return Boolean(G)&&G.trim()!==""&&X.indexOf(G)===q}).join(" ").trim();var xz=(Q)=>Q.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var mz=(Q)=>Q.replace(/^([A-Z])|[\s-_]+(\w)/g,(G,q,X)=>X?X.toUpperCase():q.toLowerCase());var YB=(Q)=>{let G=mz(Q);return G.charAt(0).toUpperCase()+G.slice(1)};var RQ=e(A1(),1);var p3={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 dz=(Q)=>{for(let G in Q)if(G.startsWith("aria-")||G==="role"||G==="title")return!0;return!1};var N$=e(A1(),1),kS=N$.createContext({});var pz=()=>N$.useContext(kS);var cz=RQ.forwardRef(({color:Q,size:G,strokeWidth:q,absoluteStrokeWidth:X,className:N="",children:B,iconNode:H,...M},F)=>{let{size:W=24,strokeWidth:T=2,absoluteStrokeWidth:z=!1,color:C="currentColor",className:V=""}=pz()??{},A=X??z?Number(q??T)*24/Number(G??W):q??T;return RQ.createElement("svg",{ref:F,...p3,width:G??W??p3.width,height:G??W??p3.height,stroke:Q??C,strokeWidth:A,className:d3("lucide",V,N),...!B&&!dz(M)&&{"aria-hidden":"true"},...M},[...H.map(([O,I])=>RQ.createElement(O,I)),...Array.isArray(B)?B:[B]])});var S0=(Q,G)=>{let q=c3.forwardRef(({className:X,...N},B)=>c3.createElement(cz,{ref:B,iconNode:G,className:d3(`lucide-${xz(YB(Q))}`,`lucide-${Q}`,X),...N}));return q.displayName=YB(Q),q};var fS=[["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"}]],S2=S0("circle-alert",fS);var yS=[["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"}]],TQ=S0("activity",yS);var gS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zQ=S0("check",gS);var hS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],PQ=S0("chevron-down",hS);var uS=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],CQ=S0("chevron-up",uS);var xS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],LQ=S0("clock",xS);var mS=[["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"}]],y9=S0("coins",mS);var dS=[["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"}]],_Q=S0("copy",dS);var pS=[["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"}]],VQ=S0("cpu",pS);var cS=[["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"}]],IQ=S0("folder",cS);var lS=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],OQ=S0("gauge",lS);var rS=[["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"}]],EQ=S0("hash",rS);var sS=[["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"}]],AQ=S0("inbox",sS);var nS=[["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"}]],SQ=S0("layout-dashboard",nS);var oS=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],DQ=S0("menu",oS);var aS=[["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"}]],jQ=S0("monitor",aS);var iS=[["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"}]],vQ=S0("moon",iS);var tS=[["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"}]],bQ=S0("refresh-cw",tS);var eS=[["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"}]],kQ=S0("smile",eS);var $D=[["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"}]],fQ=S0("star",$D);var ZD=[["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"}]],yQ=S0("sun",ZD);var QD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],g9=S0("x",QD);var JD=[["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"}]],gQ=S0("zap",JD);var BP=e(A1(),1);var hQ=[{id:"overview",label:"Overview",icon:SQ},{id:"requests",label:"Requests",icon:TQ},{id:"errors",label:"Errors",icon:S2},{id:"models",label:"Models",icon:VQ},{id:"costs",label:"Costs",icon:y9},{id:"behavior",label:"Behavior",shortLabel:"Behavior",icon:kQ},{id:"projects",label:"Projects",icon:IQ}];var g6=e(z0(),1);function NB({activeSection:Q,onSectionChange:G,className:q=""}){return g6.jsxDEV("aside",{className:`stats-nav-rail ${q}`,children:[g6.jsxDEV("div",{className:"stats-nav-rail-header",children:g6.jsxDEV("div",{className:"stats-logo-container",children:[g6.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),g6.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),g6.jsxDEV("nav",{className:"stats-nav-rail-menu",children:hQ.map((X)=>{let N=X.id===Q,B=X.icon;return g6.jsxDEV("button",{type:"button",onClick:()=>G(X.id),className:"stats-nav-rail-item","data-active":N?"true":"false","aria-current":N?"page":void 0,children:[g6.jsxDEV(B,{size:16,className:"stats-nav-rail-item-icon"},void 0,!1,void 0,this),g6.jsxDEV("span",{className:"stats-nav-rail-item-label",children:X.label},void 0,!1,void 0,this)]},X.id,!0,void 0,this)})},void 0,!1,void 0,this),g6.jsxDEV("div",{className:"stats-nav-rail-footer",children:g6.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 UB=e(z0(),1),qD=[{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 lz({value:Q,onChange:G,className:q=""}){return UB.jsxDEV("div",{className:`stats-range-control ${q}`,role:"radiogroup","aria-label":"Select time range",children:qD.map((X)=>{let N=X.value===Q;return UB.jsxDEV("button",{type:"button",role:"radio","aria-checked":N,"data-active":N?"true":"false",className:"stats-range-control-btn",onClick:()=>G(X.value),children:X.label},X.value,!1,void 0,this)})},void 0,!1,void 0,this)}var BB=e(A1(),1);class rz extends Error{status;endpoint;constructor(Q,G,q){super(q);this.name="ApiError",this.status=Q,this.endpoint=G}}async function C8(Q,G){let q=await fetch(Q,G);if(!q.ok)throw new rz(q.status,Q,`HTTP error ${q.status} on ${Q}`);return q.json()}async function sz(Q="24h",G){return C8(`/api/stats/overview?range=${encodeURIComponent(Q)}`,{signal:G})}async function nz(Q="24h",G){return C8(`/api/stats/model-dashboard?range=${encodeURIComponent(Q)}`,{signal:G})}async function oz(Q="24h",G){return C8(`/api/stats/costs?range=${encodeURIComponent(Q)}`,{signal:G})}async function l3(Q=50,G){return C8(`/api/stats/recent?limit=${Q}`,{signal:G})}async function az(Q=50,G){return C8(`/api/stats/errors?limit=${Q}`,{signal:G})}async function iz(Q,G){return C8(`/api/request/${Q}`,{signal:G})}async function tz(Q){return C8("/api/sync",{signal:Q})}async function ez(Q="24h",G){return C8(`/api/stats/behavior?range=${encodeURIComponent(Q)}`,{signal:G})}async function $P(Q="24h",G){return C8(`/api/stats/folders?range=${encodeURIComponent(Q)}`,{signal:G})}var uQ=e(z0(),1);function ZP({onSyncStart:Q,onSyncComplete:G,className:q=""}){let[X,N]=BB.useState(!1),[B,H]=BB.useState(null),M=async()=>{if(X)return;if(N(!0),H(null),Q)Q();try{let F=await tz(),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.`}),G)G({success:!0,data:W})}catch(F){let W=F instanceof Error?F.message:String(F);if(H({type:"error",message:`Sync failed: ${W}`}),G)G({success:!1,error:W})}finally{N(!1)}};return uQ.jsxDEV("div",{className:`stats-sync-container ${q}`,children:[B&&uQ.jsxDEV("span",{className:"stats-sync-status-msg","data-type":B.type,children:B.message},void 0,!1,void 0,this),uQ.jsxDEV("button",{type:"button",onClick:M,disabled:X,className:"stats-button stats-button-primary stats-sync-btn","aria-busy":X,children:[uQ.jsxDEV(bQ,{size:14,className:`stats-sync-icon ${X?"stats-spin":""}`},void 0,!1,void 0,this),X?"Syncing...":"Sync DB"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var r3=e(A1(),1),QP="omp-stats-theme",JP="(prefers-color-scheme: dark)";function XD(){if(typeof localStorage>"u")return"system";let Q=localStorage.getItem(QP);return Q==="light"||Q==="dark"||Q==="system"?Q:"system"}function GP(){if(typeof window>"u")return"dark";return window.matchMedia(JP).matches?"dark":"light"}var u9=XD(),xQ=u9==="system"?GP():u9,KB=new Set;function qP(){for(let Q of KB)Q()}function HB(){if(xQ=u9==="system"?GP():u9,typeof document<"u")document.documentElement.dataset.theme=xQ,document.documentElement.style.colorScheme=xQ}if(typeof window<"u")HB(),window.matchMedia(JP).addEventListener("change",()=>{if(u9==="system")HB(),qP()});function YD(Q){if(u9=Q,typeof localStorage<"u")localStorage.setItem(QP,Q);HB(),qP()}function MB(Q){return KB.add(Q),()=>KB.delete(Q)}function f4(){return r3.useSyncExternalStore(MB,()=>xQ,()=>"dark")}function XP(){let Q=r3.useSyncExternalStore(MB,()=>u9,()=>"system"),G=r3.useSyncExternalStore(MB,()=>xQ,()=>"dark");return{preference:Q,resolved:G,setPreference:YD}}var FB=e(z0(),1),ND={system:"light",light:"dark",dark:"system"},UD={system:jQ,light:yQ,dark:vQ},YP={system:"System theme",light:"Light theme",dark:"Dark theme"};function NP(){let{preference:Q,setPreference:G}=XP(),q=UD[Q];return FB.jsxDEV("button",{type:"button",className:"stats-theme-toggle",onClick:()=>G(ND[Q]),"aria-label":`${YP[Q]} (click to switch)`,title:`${YP[Q]} — click to switch`,children:FB.jsxDEV(q,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var h6=e(z0(),1);function UP({activeSection:Q,range:G,onRangeChange:q,updatedAt:X,onSyncStart:N,onSyncComplete:B,onMenuToggle:H,className:M=""}){let W=hQ.find((z)=>z.id===Q)?.label||"Observability",T=(z)=>{if(!z)return"Not updated";return`Updated ${new Date(z).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}`};return h6.jsxDEV("header",{className:`stats-top-bar ${M}`,children:[h6.jsxDEV("div",{className:"stats-top-bar-left",children:[H&&h6.jsxDEV("button",{type:"button",onClick:H,className:"stats-mobile-menu-btn","aria-label":"Open navigation menu",children:h6.jsxDEV(DQ,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),h6.jsxDEV("h1",{className:"stats-page-title",children:W},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h6.jsxDEV("div",{className:"stats-top-bar-right",children:[h6.jsxDEV("div",{className:"stats-top-bar-meta",children:h6.jsxDEV("span",{className:"stats-last-updated",title:X?new Date(X).toLocaleString():void 0,children:T(X)},void 0,!1,void 0,this)},void 0,!1,void 0,this),h6.jsxDEV(lz,{value:G,onChange:q},void 0,!1,void 0,this),h6.jsxDEV(NP,{},void 0,!1,void 0,this),h6.jsxDEV(ZP,{onSyncStart:N,onSyncComplete:B},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var _5=e(z0(),1);function KP({activeSection:Q,onSectionChange:G,range:q,onRangeChange:X,updatedAt:N,onSyncStart:B,onSyncComplete:H,children:M}){let[F,W]=BP.useState(!1),T=(z)=>{G(z),W(!1)};return _5.jsxDEV("div",{className:"stats-app-container",children:[_5.jsxDEV(NB,{activeSection:Q,onSectionChange:T,className:"stats-desktop-nav"},void 0,!1,void 0,this),F&&_5.jsxDEV("div",{className:"stats-mobile-drawer-overlay",onClick:()=>W(!1),role:"presentation",children:_5.jsxDEV("div",{className:"stats-mobile-drawer",onClick:(z)=>z.stopPropagation(),role:"dialog","aria-modal":"true","aria-label":"Navigation menu",children:[_5.jsxDEV("div",{className:"stats-mobile-drawer-header",children:[_5.jsxDEV("div",{className:"stats-logo-container",children:[_5.jsxDEV("span",{className:"stats-logo-text",children:"OH MY PI"},void 0,!1,void 0,this),_5.jsxDEV("span",{className:"stats-logo-subtext",children:"Observability"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_5.jsxDEV("button",{type:"button",onClick:()=>W(!1),className:"stats-drawer-close-btn","aria-label":"Close navigation menu",children:_5.jsxDEV(g9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_5.jsxDEV(NB,{activeSection:Q,onSectionChange:T,className:"stats-mobile-nav"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),_5.jsxDEV("div",{className:"stats-main-pane",children:[_5.jsxDEV(UP,{activeSection:Q,range:q,onRangeChange:X,updatedAt:N,onSyncStart:B,onSyncComplete:H,onMenuToggle:()=>W(!0)},void 0,!1,void 0,this),_5.jsxDEV("main",{className:"stats-content-area",children:_5.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 L8=e(A1(),1),BD=["overview","requests","errors","models","costs","behavior","projects"],HP=["1h","24h","7d","30d","90d","all"];function wB(Q){let G=Q.replace(/^#\/?/,""),[q,X]=G.split("?"),N=BD.includes(q)?q:"overview",B="24h";if(X){let M=new URLSearchParams(X).get("range");if(HP.includes(M))B=M}return{section:N,range:B}}function MP(){let[Q,G]=L8.useState(()=>wB(window.location.hash));L8.useEffect(()=>{let B=()=>{G(wB(window.location.hash))};return window.addEventListener("hashchange",B),()=>{window.removeEventListener("hashchange",B)}},[]);let q=L8.useCallback((B,H)=>{window.location.hash=`/${B}?range=${H}`},[]),X=L8.useCallback((B)=>{q(B,Q.range)},[Q.range,q]),N=L8.useCallback((B)=>{let H=HP.includes(B)?B:"24h";q(Q.section,H)},[Q.section,q]);return L8.useEffect(()=>{let B=window.location.hash,H=wB(B),M=`#/${H.section}?range=${H.range}`;if(B!==M)window.location.hash=`/${H.section}?range=${H.range}`},[]),{section:Q.section,setSection:X,range:Q.range,setRange:N}}var KD=Math.pow(10,8)*24*60*60*1000,zr1=-KD,s3=604800000,FP=86400000;var mQ=43200,WB=1440;var RB=Symbol.for("constructDateFrom");function V5(Q,G){if(typeof Q==="function")return Q(G);if(Q&&typeof Q==="object"&&RB in Q)return Q[RB](G);if(Q instanceof Date)return new Q.constructor(G);return new Date(G)}function $1(Q,G){return V5(G||Q,Q)}var HD={};function y4(){return HD}function _8(Q,G){let q=y4(),X=G?.weekStartsOn??G?.locale?.options?.weekStartsOn??q.weekStartsOn??q.locale?.options?.weekStartsOn??0,N=$1(Q,G?.in),B=N.getDay(),H=(B<X?7:0)+B-X;return N.setDate(N.getDate()-H),N.setHours(0,0,0,0),N}function x9(Q,G){return _8(Q,{...G,weekStartsOn:1})}function n3(Q,G){let q=$1(Q,G?.in),X=q.getFullYear(),N=V5(q,0);N.setFullYear(X+1,0,4),N.setHours(0,0,0,0);let B=x9(N),H=V5(q,0);H.setFullYear(X,0,4),H.setHours(0,0,0,0);let M=x9(H);if(q.getTime()>=B.getTime())return X+1;else if(q.getTime()>=M.getTime())return X;else return X-1}function U$(Q){let G=$1(Q),q=new Date(Date.UTC(G.getFullYear(),G.getMonth(),G.getDate(),G.getHours(),G.getMinutes(),G.getSeconds(),G.getMilliseconds()));return q.setUTCFullYear(G.getFullYear()),+Q-+q}function D2(Q,...G){let q=V5.bind(null,Q||G.find((X)=>typeof X==="object"));return G.map(q)}function TB(Q,G){let q=$1(Q,G?.in);return q.setHours(0,0,0,0),q}function wP(Q,G,q){let[X,N]=D2(q?.in,Q,G),B=TB(X),H=TB(N),M=+B-U$(B),F=+H-U$(H);return Math.round((M-F)/FP)}function WP(Q,G){let q=n3(Q,G),X=V5(G?.in||Q,0);return X.setFullYear(q,0,4),X.setHours(0,0,0,0),x9(X)}function B$(Q,G){let q=+$1(Q)-+$1(G);if(q<0)return-1;else if(q>0)return 1;return q}function RP(Q){return V5(Q,Date.now())}function TP(Q){return Q instanceof Date||typeof Q==="object"&&Object.prototype.toString.call(Q)==="[object Date]"}function zP(Q){return!(!TP(Q)&&typeof Q!=="number"||isNaN(+$1(Q)))}function PP(Q,G,q){let[X,N]=D2(q?.in,Q,G),B=X.getFullYear()-N.getFullYear(),H=X.getMonth()-N.getMonth();return B*12+H}function CP(Q){return(G)=>{let X=(Q?Math[Q]:Math.trunc)(G);return X===0?0:X}}function LP(Q,G){return+$1(Q)-+$1(G)}function _P(Q,G){let q=$1(Q,G?.in);return q.setHours(23,59,59,999),q}function VP(Q,G){let q=$1(Q,G?.in),X=q.getMonth();return q.setFullYear(q.getFullYear(),X+1,0),q.setHours(23,59,59,999),q}function IP(Q,G){let q=$1(Q,G?.in);return+_P(q,G)===+VP(q,G)}function OP(Q,G,q){let[X,N,B]=D2(q?.in,Q,Q,G),H=B$(N,B),M=Math.abs(PP(N,B));if(M<1)return 0;if(N.getMonth()===1&&N.getDate()>27)N.setDate(30);N.setMonth(N.getMonth()-H*M);let F=B$(N,B)===-H;if(IP(X)&&M===1&&B$(X,B)===1)F=!1;let W=H*(M-+F);return W===0?0:W}function EP(Q,G,q){let X=LP(Q,G)/1000;return CP(q?.roundingMethod)(X)}function AP(Q,G){let q=$1(Q,G?.in);return q.setFullYear(q.getFullYear(),0,1),q.setHours(0,0,0,0),q}var MD={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"}},SP=(Q,G,q)=>{let X,N=MD[Q];if(typeof N==="string")X=N;else if(G===1)X=N.one;else X=N.other.replace("{{count}}",G.toString());if(q?.addSuffix)if(q.comparison&&q.comparison>0)return"in "+X;else return X+" ago";return X};function o3(Q){return(G={})=>{let q=G.width?String(G.width):Q.defaultWidth;return Q.formats[q]||Q.formats[Q.defaultWidth]}}var FD={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wD={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},WD={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},DP={date:o3({formats:FD,defaultWidth:"full"}),time:o3({formats:wD,defaultWidth:"full"}),dateTime:o3({formats:WD,defaultWidth:"full"})};var RD={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jP=(Q,G,q,X)=>RD[Q];function K$(Q){return(G,q)=>{let X=q?.context?String(q.context):"standalone",N;if(X==="formatting"&&Q.formattingValues){let H=Q.defaultFormattingWidth||Q.defaultWidth,M=q?.width?String(q.width):H;N=Q.formattingValues[M]||Q.formattingValues[H]}else{let H=Q.defaultWidth,M=q?.width?String(q.width):Q.defaultWidth;N=Q.values[M]||Q.values[H]}let B=Q.argumentCallback?Q.argumentCallback(G):G;return N[B]}}var TD={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zD={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},PD={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"]},CD={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"]},LD={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"}},_D={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"}},VD=(Q,G)=>{let q=Number(Q),X=q%100;if(X>20||X<10)switch(X%10){case 1:return q+"st";case 2:return q+"nd";case 3:return q+"rd"}return q+"th"},vP={ordinalNumber:VD,era:K$({values:TD,defaultWidth:"wide"}),quarter:K$({values:zD,defaultWidth:"wide",argumentCallback:(Q)=>Q-1}),month:K$({values:PD,defaultWidth:"wide"}),day:K$({values:CD,defaultWidth:"wide"}),dayPeriod:K$({values:LD,defaultWidth:"wide",formattingValues:_D,defaultFormattingWidth:"wide"})};function H$(Q){return(G,q={})=>{let X=q.width,N=X&&Q.matchPatterns[X]||Q.matchPatterns[Q.defaultMatchWidth],B=G.match(N);if(!B)return null;let H=B[0],M=X&&Q.parsePatterns[X]||Q.parsePatterns[Q.defaultParseWidth],F=Array.isArray(M)?OD(M,(z)=>z.test(H)):ID(M,(z)=>z.test(H)),W;W=Q.valueCallback?Q.valueCallback(F):F,W=q.valueCallback?q.valueCallback(W):W;let T=G.slice(H.length);return{value:W,rest:T}}}function ID(Q,G){for(let q in Q)if(Object.prototype.hasOwnProperty.call(Q,q)&&G(Q[q]))return q;return}function OD(Q,G){for(let q=0;q<Q.length;q++)if(G(Q[q]))return q;return}function bP(Q){return(G,q={})=>{let X=G.match(Q.matchPattern);if(!X)return null;let N=X[0],B=G.match(Q.parsePattern);if(!B)return null;let H=Q.valueCallback?Q.valueCallback(B[0]):B[0];H=q.valueCallback?q.valueCallback(H):H;let M=G.slice(N.length);return{value:H,rest:M}}}var ED=/^(\d+)(th|st|nd|rd)?/i,AD=/\d+/i,SD={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},DD={any:[/^b/i,/^(a|c)/i]},jD={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vD={any:[/1/i,/2/i,/3/i,/4/i]},bD={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},kD={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]},fD={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},yD={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]},gD={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},hD={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}},kP={ordinalNumber:bP({matchPattern:ED,parsePattern:AD,valueCallback:(Q)=>parseInt(Q,10)}),era:H$({matchPatterns:SD,defaultMatchWidth:"wide",parsePatterns:DD,defaultParseWidth:"any"}),quarter:H$({matchPatterns:jD,defaultMatchWidth:"wide",parsePatterns:vD,defaultParseWidth:"any",valueCallback:(Q)=>Q+1}),month:H$({matchPatterns:bD,defaultMatchWidth:"wide",parsePatterns:kD,defaultParseWidth:"any"}),day:H$({matchPatterns:fD,defaultMatchWidth:"wide",parsePatterns:yD,defaultParseWidth:"any"}),dayPeriod:H$({matchPatterns:gD,defaultMatchWidth:"any",parsePatterns:hD,defaultParseWidth:"any"})};var dQ={code:"en-US",formatDistance:SP,formatLong:DP,formatRelative:jP,localize:vP,match:kP,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fP(Q,G){let q=$1(Q,G?.in);return wP(q,AP(q))+1}function yP(Q,G){let q=$1(Q,G?.in),X=+x9(q)-+WP(q);return Math.round(X/s3)+1}function a3(Q,G){let q=$1(Q,G?.in),X=q.getFullYear(),N=y4(),B=G?.firstWeekContainsDate??G?.locale?.options?.firstWeekContainsDate??N.firstWeekContainsDate??N.locale?.options?.firstWeekContainsDate??1,H=V5(G?.in||Q,0);H.setFullYear(X+1,0,B),H.setHours(0,0,0,0);let M=_8(H,G),F=V5(G?.in||Q,0);F.setFullYear(X,0,B),F.setHours(0,0,0,0);let W=_8(F,G);if(+q>=+M)return X+1;else if(+q>=+W)return X;else return X-1}function gP(Q,G){let q=y4(),X=G?.firstWeekContainsDate??G?.locale?.options?.firstWeekContainsDate??q.firstWeekContainsDate??q.locale?.options?.firstWeekContainsDate??1,N=a3(Q,G),B=V5(G?.in||Q,0);return B.setFullYear(N,0,X),B.setHours(0,0,0,0),_8(B,G)}function hP(Q,G){let q=$1(Q,G?.in),X=+_8(q,G)-+gP(q,G);return Math.round(X/s3)+1}function q1(Q,G){let q=Q<0?"-":"",X=Math.abs(Q).toString().padStart(G,"0");return q+X}var V8={y(Q,G){let q=Q.getFullYear(),X=q>0?q:1-q;return q1(G==="yy"?X%100:X,G.length)},M(Q,G){let q=Q.getMonth();return G==="M"?String(q+1):q1(q+1,2)},d(Q,G){return q1(Q.getDate(),G.length)},a(Q,G){let q=Q.getHours()/12>=1?"pm":"am";switch(G){case"a":case"aa":return q.toUpperCase();case"aaa":return q;case"aaaaa":return q[0];case"aaaa":default:return q==="am"?"a.m.":"p.m."}},h(Q,G){return q1(Q.getHours()%12||12,G.length)},H(Q,G){return q1(Q.getHours(),G.length)},m(Q,G){return q1(Q.getMinutes(),G.length)},s(Q,G){return q1(Q.getSeconds(),G.length)},S(Q,G){let q=G.length,X=Q.getMilliseconds(),N=Math.trunc(X*Math.pow(10,q-3));return q1(N,G.length)}};var M$={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zB={G:function(Q,G,q){let X=Q.getFullYear()>0?1:0;switch(G){case"G":case"GG":case"GGG":return q.era(X,{width:"abbreviated"});case"GGGGG":return q.era(X,{width:"narrow"});case"GGGG":default:return q.era(X,{width:"wide"})}},y:function(Q,G,q){if(G==="yo"){let X=Q.getFullYear(),N=X>0?X:1-X;return q.ordinalNumber(N,{unit:"year"})}return V8.y(Q,G)},Y:function(Q,G,q,X){let N=a3(Q,X),B=N>0?N:1-N;if(G==="YY"){let H=B%100;return q1(H,2)}if(G==="Yo")return q.ordinalNumber(B,{unit:"year"});return q1(B,G.length)},R:function(Q,G){let q=n3(Q);return q1(q,G.length)},u:function(Q,G){let q=Q.getFullYear();return q1(q,G.length)},Q:function(Q,G,q){let X=Math.ceil((Q.getMonth()+1)/3);switch(G){case"Q":return String(X);case"QQ":return q1(X,2);case"Qo":return q.ordinalNumber(X,{unit:"quarter"});case"QQQ":return q.quarter(X,{width:"abbreviated",context:"formatting"});case"QQQQQ":return q.quarter(X,{width:"narrow",context:"formatting"});case"QQQQ":default:return q.quarter(X,{width:"wide",context:"formatting"})}},q:function(Q,G,q){let X=Math.ceil((Q.getMonth()+1)/3);switch(G){case"q":return String(X);case"qq":return q1(X,2);case"qo":return q.ordinalNumber(X,{unit:"quarter"});case"qqq":return q.quarter(X,{width:"abbreviated",context:"standalone"});case"qqqqq":return q.quarter(X,{width:"narrow",context:"standalone"});case"qqqq":default:return q.quarter(X,{width:"wide",context:"standalone"})}},M:function(Q,G,q){let X=Q.getMonth();switch(G){case"M":case"MM":return V8.M(Q,G);case"Mo":return q.ordinalNumber(X+1,{unit:"month"});case"MMM":return q.month(X,{width:"abbreviated",context:"formatting"});case"MMMMM":return q.month(X,{width:"narrow",context:"formatting"});case"MMMM":default:return q.month(X,{width:"wide",context:"formatting"})}},L:function(Q,G,q){let X=Q.getMonth();switch(G){case"L":return String(X+1);case"LL":return q1(X+1,2);case"Lo":return q.ordinalNumber(X+1,{unit:"month"});case"LLL":return q.month(X,{width:"abbreviated",context:"standalone"});case"LLLLL":return q.month(X,{width:"narrow",context:"standalone"});case"LLLL":default:return q.month(X,{width:"wide",context:"standalone"})}},w:function(Q,G,q,X){let N=hP(Q,X);if(G==="wo")return q.ordinalNumber(N,{unit:"week"});return q1(N,G.length)},I:function(Q,G,q){let X=yP(Q);if(G==="Io")return q.ordinalNumber(X,{unit:"week"});return q1(X,G.length)},d:function(Q,G,q){if(G==="do")return q.ordinalNumber(Q.getDate(),{unit:"date"});return V8.d(Q,G)},D:function(Q,G,q){let X=fP(Q);if(G==="Do")return q.ordinalNumber(X,{unit:"dayOfYear"});return q1(X,G.length)},E:function(Q,G,q){let X=Q.getDay();switch(G){case"E":case"EE":case"EEE":return q.day(X,{width:"abbreviated",context:"formatting"});case"EEEEE":return q.day(X,{width:"narrow",context:"formatting"});case"EEEEEE":return q.day(X,{width:"short",context:"formatting"});case"EEEE":default:return q.day(X,{width:"wide",context:"formatting"})}},e:function(Q,G,q,X){let N=Q.getDay(),B=(N-X.weekStartsOn+8)%7||7;switch(G){case"e":return String(B);case"ee":return q1(B,2);case"eo":return q.ordinalNumber(B,{unit:"day"});case"eee":return q.day(N,{width:"abbreviated",context:"formatting"});case"eeeee":return q.day(N,{width:"narrow",context:"formatting"});case"eeeeee":return q.day(N,{width:"short",context:"formatting"});case"eeee":default:return q.day(N,{width:"wide",context:"formatting"})}},c:function(Q,G,q,X){let N=Q.getDay(),B=(N-X.weekStartsOn+8)%7||7;switch(G){case"c":return String(B);case"cc":return q1(B,G.length);case"co":return q.ordinalNumber(B,{unit:"day"});case"ccc":return q.day(N,{width:"abbreviated",context:"standalone"});case"ccccc":return q.day(N,{width:"narrow",context:"standalone"});case"cccccc":return q.day(N,{width:"short",context:"standalone"});case"cccc":default:return q.day(N,{width:"wide",context:"standalone"})}},i:function(Q,G,q){let X=Q.getDay(),N=X===0?7:X;switch(G){case"i":return String(N);case"ii":return q1(N,G.length);case"io":return q.ordinalNumber(N,{unit:"day"});case"iii":return q.day(X,{width:"abbreviated",context:"formatting"});case"iiiii":return q.day(X,{width:"narrow",context:"formatting"});case"iiiiii":return q.day(X,{width:"short",context:"formatting"});case"iiii":default:return q.day(X,{width:"wide",context:"formatting"})}},a:function(Q,G,q){let N=Q.getHours()/12>=1?"pm":"am";switch(G){case"a":case"aa":return q.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"aaa":return q.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return q.dayPeriod(N,{width:"narrow",context:"formatting"});case"aaaa":default:return q.dayPeriod(N,{width:"wide",context:"formatting"})}},b:function(Q,G,q){let X=Q.getHours(),N;if(X===12)N=M$.noon;else if(X===0)N=M$.midnight;else N=X/12>=1?"pm":"am";switch(G){case"b":case"bb":return q.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"bbb":return q.dayPeriod(N,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return q.dayPeriod(N,{width:"narrow",context:"formatting"});case"bbbb":default:return q.dayPeriod(N,{width:"wide",context:"formatting"})}},B:function(Q,G,q){let X=Q.getHours(),N;if(X>=17)N=M$.evening;else if(X>=12)N=M$.afternoon;else if(X>=4)N=M$.morning;else N=M$.night;switch(G){case"B":case"BB":case"BBB":return q.dayPeriod(N,{width:"abbreviated",context:"formatting"});case"BBBBB":return q.dayPeriod(N,{width:"narrow",context:"formatting"});case"BBBB":default:return q.dayPeriod(N,{width:"wide",context:"formatting"})}},h:function(Q,G,q){if(G==="ho"){let X=Q.getHours()%12;if(X===0)X=12;return q.ordinalNumber(X,{unit:"hour"})}return V8.h(Q,G)},H:function(Q,G,q){if(G==="Ho")return q.ordinalNumber(Q.getHours(),{unit:"hour"});return V8.H(Q,G)},K:function(Q,G,q){let X=Q.getHours()%12;if(G==="Ko")return q.ordinalNumber(X,{unit:"hour"});return q1(X,G.length)},k:function(Q,G,q){let X=Q.getHours();if(X===0)X=24;if(G==="ko")return q.ordinalNumber(X,{unit:"hour"});return q1(X,G.length)},m:function(Q,G,q){if(G==="mo")return q.ordinalNumber(Q.getMinutes(),{unit:"minute"});return V8.m(Q,G)},s:function(Q,G,q){if(G==="so")return q.ordinalNumber(Q.getSeconds(),{unit:"second"});return V8.s(Q,G)},S:function(Q,G){return V8.S(Q,G)},X:function(Q,G,q){let X=Q.getTimezoneOffset();if(X===0)return"Z";switch(G){case"X":return xP(X);case"XXXX":case"XX":return m9(X);case"XXXXX":case"XXX":default:return m9(X,":")}},x:function(Q,G,q){let X=Q.getTimezoneOffset();switch(G){case"x":return xP(X);case"xxxx":case"xx":return m9(X);case"xxxxx":case"xxx":default:return m9(X,":")}},O:function(Q,G,q){let X=Q.getTimezoneOffset();switch(G){case"O":case"OO":case"OOO":return"GMT"+uP(X,":");case"OOOO":default:return"GMT"+m9(X,":")}},z:function(Q,G,q){let X=Q.getTimezoneOffset();switch(G){case"z":case"zz":case"zzz":return"GMT"+uP(X,":");case"zzzz":default:return"GMT"+m9(X,":")}},t:function(Q,G,q){let X=Math.trunc(+Q/1000);return q1(X,G.length)},T:function(Q,G,q){return q1(+Q,G.length)}};function uP(Q,G=""){let q=Q>0?"-":"+",X=Math.abs(Q),N=Math.trunc(X/60),B=X%60;if(B===0)return q+String(N);return q+String(N)+G+q1(B,2)}function xP(Q,G){if(Q%60===0)return(Q>0?"-":"+")+q1(Math.abs(Q)/60,2);return m9(Q,G)}function m9(Q,G=""){let q=Q>0?"-":"+",X=Math.abs(Q),N=q1(Math.trunc(X/60),2),B=q1(X%60,2);return q+N+G+B}var mP=(Q,G)=>{switch(Q){case"P":return G.date({width:"short"});case"PP":return G.date({width:"medium"});case"PPP":return G.date({width:"long"});case"PPPP":default:return G.date({width:"full"})}},dP=(Q,G)=>{switch(Q){case"p":return G.time({width:"short"});case"pp":return G.time({width:"medium"});case"ppp":return G.time({width:"long"});case"pppp":default:return G.time({width:"full"})}},uD=(Q,G)=>{let q=Q.match(/(P+)(p+)?/)||[],X=q[1],N=q[2];if(!N)return mP(Q,G);let B;switch(X){case"P":B=G.dateTime({width:"short"});break;case"PP":B=G.dateTime({width:"medium"});break;case"PPP":B=G.dateTime({width:"long"});break;case"PPPP":default:B=G.dateTime({width:"full"});break}return B.replace("{{date}}",mP(X,G)).replace("{{time}}",dP(N,G))},pP={p:dP,P:uD};var xD=/^D+$/,mD=/^Y+$/,dD=["D","DD","YY","YYYY"];function cP(Q){return xD.test(Q)}function lP(Q){return mD.test(Q)}function rP(Q,G,q){let X=pD(Q,G,q);if(console.warn(X),dD.includes(Q))throw RangeError(X)}function pD(Q,G,q){let X=Q[0]==="Y"?"years":"days of the month";return`Use \`${Q.toLowerCase()}\` instead of \`${Q}\` (in \`${G}\`) for formatting ${X} to the input \`${q}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var cD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rD=/^'([^]*?)'?$/,sD=/''/g,nD=/[a-zA-Z]/;function Z4(Q,G,q){let X=y4(),N=q?.locale??X.locale??dQ,B=q?.firstWeekContainsDate??q?.locale?.options?.firstWeekContainsDate??X.firstWeekContainsDate??X.locale?.options?.firstWeekContainsDate??1,H=q?.weekStartsOn??q?.locale?.options?.weekStartsOn??X.weekStartsOn??X.locale?.options?.weekStartsOn??0,M=$1(Q,q?.in);if(!zP(M))throw RangeError("Invalid time value");let F=G.match(lD).map((T)=>{let z=T[0];if(z==="p"||z==="P"){let C=pP[z];return C(T,N.formatLong)}return T}).join("").match(cD).map((T)=>{if(T==="''")return{isToken:!1,value:"'"};let z=T[0];if(z==="'")return{isToken:!1,value:oD(T)};if(zB[z])return{isToken:!0,value:T};if(z.match(nD))throw RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return{isToken:!1,value:T}});if(N.localize.preprocessor)F=N.localize.preprocessor(M,F);let W={firstWeekContainsDate:B,weekStartsOn:H,locale:N};return F.map((T)=>{if(!T.isToken)return T.value;let z=T.value;if(!q?.useAdditionalWeekYearTokens&&lP(z)||!q?.useAdditionalDayOfYearTokens&&cP(z))rP(z,G,String(Q));let C=zB[z[0]];return C(M,z,N.localize,W)}).join("")}function oD(Q){let G=Q.match(rD);if(!G)return Q;return G[1].replace(sD,"'")}function sP(Q,G,q){let X=y4(),N=q?.locale??X.locale??dQ,B=2520,H=B$(Q,G);if(isNaN(H))throw RangeError("Invalid time value");let M=Object.assign({},q,{addSuffix:q?.addSuffix,comparison:H}),[F,W]=D2(q?.in,...H>0?[G,Q]:[Q,G]),T=EP(W,F),z=(U$(W)-U$(F))/1000,C=Math.round((T-z)/60),V;if(C<2)if(q?.includeSeconds)if(T<5)return N.formatDistance("lessThanXSeconds",5,M);else if(T<10)return N.formatDistance("lessThanXSeconds",10,M);else if(T<20)return N.formatDistance("lessThanXSeconds",20,M);else if(T<40)return N.formatDistance("halfAMinute",0,M);else if(T<60)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",1,M);else if(C===0)return N.formatDistance("lessThanXMinutes",1,M);else return N.formatDistance("xMinutes",C,M);else if(C<45)return N.formatDistance("xMinutes",C,M);else if(C<90)return N.formatDistance("aboutXHours",1,M);else if(C<WB){let A=Math.round(C/60);return N.formatDistance("aboutXHours",A,M)}else if(C<2520)return N.formatDistance("xDays",1,M);else if(C<mQ){let A=Math.round(C/WB);return N.formatDistance("xDays",A,M)}else if(C<mQ*2)return V=Math.round(C/mQ),N.formatDistance("aboutXMonths",V,M);if(V=OP(W,F),V<12){let A=Math.round(C/mQ);return N.formatDistance("xMonths",A,M)}else{let A=V%12,O=Math.trunc(V/12);if(A<3)return N.formatDistance("aboutXYears",O,M);else if(A<9)return N.formatDistance("overXYears",O,M);else return N.formatDistance("almostXYears",O+1,M)}}function nP(Q,G){return sP(Q,RP(Q),G)}var $5=e(A1(),1);var PB=e(oP(),1),W6=e(A1(),1);var iP="label";function aP(Q,G){if(typeof Q==="function")Q(G);else if(Q)Q.current=G}function iD(Q,G){let q=Q.options;if(q&&G)Object.assign(q,G)}function tP(Q,G){Q.labels=G}function eP(Q,G,q=iP){let X=[];Q.datasets=G.map((N)=>{let B=Q.datasets.find((H)=>H[q]===N[q]);if(!B||!N.data||X.includes(B))return{...N};return X.push(B),Object.assign(B,N),B})}function tD(Q,G=iP){let q={labels:[],datasets:[]};return tP(q,Q.labels),eP(q,Q.datasets,G),q}function eD(Q,G){let{height:q=150,width:X=300,redraw:N=!1,datasetIdKey:B,type:H,data:M,options:F,plugins:W=[],fallbackContent:T,updateMode:z,...C}=Q,V=W6.useRef(null),A=W6.useRef(null),O=()=>{if(!V.current)return;A.current=new k9(V.current,{type:H,data:tD(M,B),options:F&&{...F},plugins:W}),aP(G,A.current)},I=()=>{if(aP(G,null),A.current)A.current.destroy(),A.current=null};return W6.useEffect(()=>{if(!N&&A.current&&F)iD(A.current,F)},[N,F]),W6.useEffect(()=>{if(!N&&A.current)tP(A.current.config.data,M.labels)},[N,M.labels]),W6.useEffect(()=>{if(!N&&A.current&&M.datasets)eP(A.current.config.data,M.datasets,B)},[N,M.datasets]),W6.useEffect(()=>{if(!A.current)return;if(N)I(),setTimeout(O);else A.current.update(z)},[N,F,M.labels,M.datasets,z]),W6.useEffect(()=>{if(!A.current)return;I(),setTimeout(O)},[H]),W6.useEffect(()=>{return O(),()=>I()},[]),PB.jsx("canvas",{ref:V,role:"img",height:q,width:X,...C,children:T})}var $j=W6.forwardRef(eD);function $C(Q,G){return k9.register(G),W6.forwardRef((q,X)=>PB.jsx($j,{...q,ref:X,type:Q}))}var u6=$C("line",aU),i3=$C("bar",oU);var a1=["#ed4abf","#9b4dff","#5ad8e6","#62d394","#c77dff","#ff8fd1","#f5c14b","#ff6b7d"],R6={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 t3(Q){let{chartTheme:G,showLegend:q,defaultLabel:X,formatValue:N,footer:B}=Q;return{legend:{display:q,position:"top",align:"start",labels:{color:G.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:G.tooltipBackground,titleColor:G.tooltipTitle,bodyColor:G.tooltipBody,borderColor:G.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(H)=>{let M=H.dataset.label??X,F=H.parsed.y??0;return`${M}: ${N(F)}`},...B?{footer:B}:{}}}}}function e3(Q){let{chartTheme:G,formatY:q}=Q,X={grid:{color:G.grid,drawBorder:!1},ticks:{color:G.tick,font:{size:11}}},N={...X,ticks:{...X.ticks,callback:(B)=>q(Number(B))},min:0};return{sharedScaleBase:X,yScale:N}}function $q(Q){return{borderColor:Q,backgroundColor:`${Q}20`,fill:!0,tension:0,pointRadius:3,pointHoverRadius:4,borderWidth:2}}function Zq(Q){return{backgroundColor:Q,borderColor:Q,borderWidth:0,borderRadius:4,maxBarThickness:56}}function F$(Q,G){return Q.datasets.map((q,X)=>({label:q.label,data:q.data,...G(X)}))}function Qq(Q,G,q){if(Q.length===0)return{labels:[],datasets:[]};let{initBucket:X,accumulate:N,bucketToValue:B}=q,H=new Map;for(let F of Q){let W=H.get(F.timestamp)??X();N(W,F),H.set(F.timestamp,W)}let M=[...H.entries()].sort((F,W)=>F[0]-W[0]);return{labels:M.map(([F])=>Z4(new Date(F),"MMM d")),datasets:[{label:G,data:M.map(([,F])=>B(F))}]}}function Jq(Q,G){if(Q.length===0)return{labels:[],datasets:[]};let{topN:q=5,rankWeight:X,initBucket:N,accumulate:B,bucketToValue:H}=G,M=new Map;for(let j of Q){let h=`${j.model}::${j.provider}`,p=M.get(h);if(p)p.weight+=X(j);else M.set(h,{model:j.model,provider:j.provider,weight:X(j)})}let W=[...M.entries()].sort((j,h)=>h[1].weight-j[1].weight).slice(0,q),T=new Set(W.map(([j])=>j)),z=new Map;for(let[,{model:j}]of W)z.set(j,(z.get(j)??0)+1);let C=new Map;for(let[j,{model:h,provider:p}]of W)C.set(j,(z.get(h)??0)>1?`${h} (${p})`:h);let V=[...new Set(Q.map((j)=>j.timestamp))].sort((j,h)=>j-h),A=W.map(([j])=>C.get(j)??j);if(Q.some((j)=>!T.has(`${j.model}::${j.provider}`)))A.push("Other");let I=new Map;for(let j of V)I.set(j,{});for(let j of Q){let h=`${j.model}::${j.provider}`,p=T.has(h)?C.get(h)??j.model:"Other",s=I.get(j.timestamp);if(!s)continue;let o=s[p]??N();B(o,j),s[p]=o}return{labels:V.map((j)=>Z4(new Date(j),"MMM d")),datasets:A.map((j)=>({label:j,data:V.map((h)=>{let p=I.get(h)?.[j];return p?H(p):0})}))}}var S1=e(z0(),1);function I8(Q){return{borderColor:Q,backgroundColor:"transparent",tension:0.4,pointRadius:0,borderWidth:2}}function Gq({timestamps:Q,values:G,color:q}){let X={labels:Q.map((B)=>Z4(new Date(B),"MMM d")),datasets:[{data:G,...I8(q)}]};return S1.jsxDEV(u6,{data:X,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 qq(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 ZC(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 QC(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 Xq({title:Q,subtitle:G,children:q}){return S1.jsxDEV("div",{className:"stats-panel overflow-hidden",children:[S1.jsxDEV("div",{className:"px-5 py-4 border-b border-[var(--border-subtle)]",children:[S1.jsxDEV("h3",{className:"text-sm font-semibold text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),G?S1.jsxDEV("p",{className:"text-xs text-[var(--text-muted)] mt-1",children:G},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),S1.jsxDEV("div",{className:"overflow-x-auto",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Zj(Q){if(Q==="right")return"text-right";if(Q==="center")return"text-center";return""}function Yq({columns:Q,gridTemplate:G}){return S1.jsxDEV("div",{className:"grid gap-3 px-5 py-3 text-[var(--text-muted)] text-xs uppercase tracking-wider font-semibold",style:{gridTemplateColumns:G},children:[Q.map((q)=>S1.jsxDEV("div",{className:Zj(q.align),children:q.label},q.label,!1,void 0,this)),S1.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Nq({children:Q}){return S1.jsxDEV("div",{className:"max-h-[calc(100vh-300px)] overflow-y-auto",children:Q},void 0,!1,void 0,this)}function Uq({model:Q,provider:G}){return S1.jsxDEV("div",{children:[S1.jsxDEV("div",{className:"font-medium text-[var(--text-primary)]",children:Q},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"text-xs text-[var(--text-muted)]",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Bq({gridTemplate:Q,cells:G,trendCell:q,isExpanded:X,onToggle:N,expandedContent:B}){return S1.jsxDEV("div",{className:"border-t border-[var(--border-subtle)]",children:[S1.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:S1.jsxDEV("div",{className:"grid gap-3 items-center",style:{gridTemplateColumns:Q},children:[G,S1.jsxDEV("div",{className:"h-10",children:q},void 0,!1,void 0,this),S1.jsxDEV("div",{className:"flex justify-center text-[var(--text-muted)]",children:X?S1.jsxDEV(CQ,{size:16},void 0,!1,void 0,this):S1.jsxDEV(PQ,{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),X?S1.jsxDEV("div",{className:"px-5 py-4 bg-[var(--bg-elevated)] border-t border-[var(--border-subtle)]",children:B},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function Kq(){return S1.jsxDEV("div",{className:"text-[var(--text-muted)] text-center text-sm",children:"-"},void 0,!1,void 0,this)}function Hq({message:Q="No data available"}){return S1.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 U1(Q){return Q.toLocaleString()}function CB(Q){return Q.toLocaleString(void 0,{notation:"compact"})}function x1(Q,G){if(Q===0)return"$0";let q=G!==void 0?G:Q>0&&Q<0.01?4:2;return`$${Q.toLocaleString(void 0,{minimumFractionDigits:q,maximumFractionDigits:q})}`}function j2(Q,G=1){return`${(Q*100).toFixed(G)}%`}function I5(Q,G){if(Q===null)return"-";let q=Q/1000,X=G!==void 0?G:q<1?2:1;return`${q.toFixed(X)}s`}function JC(Q){if(Q===null)return"-";return Q.toFixed(1)}function g4(Q){return nP(new Date(Q),{addSuffix:!0})}var W5=e(A1(),1),v2=new Map,Qj=64;function f5(Q,G,q){let X=JSON.stringify(Q),[N,B]=W5.useState(()=>v2.get(X)?.data??null),[H,M]=W5.useState(null),[F,W]=W5.useState(()=>!v2.has(X)),[T,z]=W5.useState(!1),[C,V]=W5.useState(()=>v2.get(X)?.updatedAt??null),A=W5.useRef(G);A.current=G;let O=W5.useRef(X);O.current=X;let I=q?.enabled??!0,j=q?.pollMs,h=W5.useRef(null),p=W5.useRef(!1);p.current=N!==null;let s=W5.useCallback(async(Q0)=>{if(h.current)h.current.abort();let i=new AbortController;if(h.current=i,Q0)z(!0);else W(!0),B(null);M(null);try{let a=await A.current(i.signal);if(i.signal.aborted)return;if(v2.set(O.current,{data:a,updatedAt:Date.now()}),v2.size>Qj){let X0=v2.keys().next().value;if(X0!==void 0)v2.delete(X0)}B(a),V(Date.now()),M(null)}catch(a){if(i.signal.aborted)return;M(a instanceof Error?a:Error(String(a)))}finally{if(!i.signal.aborted){if(W(!1),z(!1),h.current===i)h.current=null}}},[]);W5.useEffect(()=>{if(!I){W(!1),z(!1);return}let Q0=v2.get(X);if(Q0)B(Q0.data),V(Q0.updatedAt),W(!1),s(!0);else s(p.current);return()=>{if(h.current)h.current.abort(),h.current=null}},[X,I,s]),W5.useEffect(()=>{if(!I||!j)return;let Q0=setInterval(()=>{if(document.hidden)return;s(!0)},j);return()=>{clearInterval(Q0)}},[I,j,s]);let o=W5.useCallback(async()=>{await s(!0)},[s]);return{data:N,error:H,loading:F,refreshing:T,refetch:o,updatedAt:C}}var GC=3600000,Mq=24*GC,Jj=300000,qC={"1h":{windowLabel:"the last hour",trendLabel:"1h Trend",bucketMs:Jj,bucketCount:12,tickFormat:"HH:mm"},"24h":{windowLabel:"the last 24 hours",trendLabel:"24h Trend",bucketMs:GC,bucketCount:24,tickFormat:"HH:mm"},"7d":{windowLabel:"the last 7 days",trendLabel:"7d Trend",bucketMs:Mq,bucketCount:7,tickFormat:"MMM d"},"30d":{windowLabel:"the last 30 days",trendLabel:"30d Trend",bucketMs:Mq,bucketCount:30,tickFormat:"MMM d"},"90d":{windowLabel:"the last 90 days",trendLabel:"90d Trend",bucketMs:Mq,bucketCount:90,tickFormat:"MMM d"},all:{windowLabel:"all time",trendLabel:"Trend",bucketMs:Mq,bucketCount:0,tickFormat:"MMM d"}};function pQ(Q){return qC[Q]}function LB(Q,G){return Z4(new Date(Q),qC[G].tickFormat)}function XC(Q){let G=Q.reduce((M,F)=>M+F.cost,0),q=new Set(Q.map((M)=>M.timestamp)).size,X=q>0?G/q:0,N=new Map;for(let M of Q)N.set(M.model,(N.get(M.model)??0)+M.cost);let B="",H=0;for(let[M,F]of N)if(F>H)B=M,H=F;return{totalCost:G,avgDailyCost:X,topModelName:B,topModelCost:H}}function YC(Q,G){if(Q.length===0)return new Map;let q=pQ(G),X=q.bucketMs,N=q.bucketCount,B=N>0?(()=>{let F=Q.reduce((z,C)=>Math.max(z,C.timestamp),0),T=(F>0?F:Math.floor(Date.now()/X)*X)-(N-1)*X;return Array.from({length:N},(z,C)=>T+C*X)})():Array.from(new Set(Q.map((F)=>F.timestamp))).sort((F,W)=>F-W),H=new Map(B.map((F,W)=>[F,W])),M=new Map;for(let F of Q){let W=`${F.model}::${F.provider}`,T=M.get(W);if(!T)T={label:`${F.model} (${F.provider})`,data:B.map((C)=>({timestamp:C,avgTtftSeconds:null,avgTokensPerSecond:null,requests:0}))},M.set(W,T);let z=H.get(F.timestamp);if(z===void 0)continue;T.data[z]={timestamp:F.timestamp,avgTtftSeconds:F.avgTtft!==null?F.avgTtft/1000:null,avgTokensPerSecond:F.avgTokensPerSecond,requests:F.requests}}return M}function NC(Q,G){let q=Q.totalNegation+Q.totalRepetition+Q.totalBlame,X=new Map;for(let B of G){let H=`${B.model}::${B.provider}`,M=X.get(H),F=B.yelling+B.profanity+B.anguish+B.negation+B.repetition+B.blame;if(M)M.score+=F;else X.set(H,{model:B.model,provider:B.provider,score:F})}let N=null;for(let B of X.values())if(!N||B.score>N.score)N=B;return{totalMessages:Q.totalMessages,totalYelling:Q.totalYelling,totalProfanity:Q.totalProfanity,totalAnguish:Q.totalAnguish,totalFrustration:q,highestFrictionModel:N}}function UC(Q){let G=[...Q].sort((N,B)=>{if(B.totalCost!==N.totalCost)return B.totalCost-N.totalCost;return B.totalRequests-N.totalRequests}),q=G.reduce((N,B)=>Math.max(N,B.totalCost),0),X=G.reduce((N,B)=>Math.max(N,B.totalRequests),0);return G.map((N)=>({...N,costPercentage:q>0?N.totalCost/q*100:0,requestsPercentage:X>0?N.totalRequests/X*100:0}))}var Fq=e(z0(),1);function BC({message:Q="No data available",icon:G=AQ,className:q=""}){return Fq.jsxDEV("div",{className:`stats-empty-state ${q}`,children:[Fq.jsxDEV(G,{size:24,className:"stats-empty-state-icon","aria-hidden":"true"},void 0,!1,void 0,this),Fq.jsxDEV("p",{className:"stats-empty-state-message",children:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var w$=e(z0(),1);function KC({error:Q,onRetry:G,className:q=""}){return w$.jsxDEV("div",{className:`stats-error-state ${q}`,children:w$.jsxDEV("div",{className:"stats-error-state-content",children:[w$.jsxDEV("h4",{className:"stats-error-state-title",children:"Failed to load data"},void 0,!1,void 0,this),Q&&w$.jsxDEV("p",{className:"stats-error-state-message",children:Q.message},void 0,!1,void 0,this),G&&w$.jsxDEV("button",{type:"button",onClick:G,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 HC=e(z0(),1);function a5({variant:Q="text",width:G,height:q,className:X=""}){let N={width:G!==void 0?typeof G==="number"?`${G}px`:G:void 0,height:q!==void 0?typeof q==="number"?`${q}px`:q:void 0};return HC.jsxDEV("div",{className:`stats-skeleton ${X}`,"data-variant":Q,style:N},void 0,!1,void 0,this)}var T6=e(z0(),1);function R5({loading:Q,error:G,data:q,empty:X=!1,emptyText:N="No data available",fallback:B,onRetry:H,children:M}){if(G&&q===null)return T6.jsxDEV(KC,{error:G,onRetry:H},void 0,!1,void 0,this);if(Q&&q===null){if(B)return T6.jsxDEV(T6.Fragment,{children:B},void 0,!1,void 0,this);return T6.jsxDEV("div",{className:"stats-boundary-skeleton",children:[T6.jsxDEV(a5,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),T6.jsxDEV(a5,{variant:"rect",width:"100%",height:160,className:"mb-4"},void 0,!1,void 0,this),T6.jsxDEV(a5,{variant:"text",width:"80%",height:20,className:"mb-2"},void 0,!1,void 0,this),T6.jsxDEV(a5,{variant:"text",width:"40%",height:20},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(!Q&&(X||q===null))return T6.jsxDEV(BC,{message:N},void 0,!1,void 0,this);return T6.jsxDEV(T6.Fragment,{children:M},void 0,!1,void 0,this)}var i5=e(z0(),1);function b2({columns:Q,data:G,keyExtractor:q,onRowClick:X,renderMobileCard:N,emptyText:B="No data available"}){let H=(M,F)=>{if(X&&(M.key==="Enter"||M.key===" "))M.preventDefault(),X(F)};if(G.length===0)return i5.jsxDEV("div",{className:"stats-table-empty",children:B},void 0,!1,void 0,this);return i5.jsxDEV("div",{className:"stats-table-wrapper",children:[N&&i5.jsxDEV("div",{className:"stats-table-mobile-only",children:i5.jsxDEV("div",{className:"stats-table-mobile-list",children:G.map((M)=>{let F=String(q(M));return i5.jsxDEV("div",{className:"stats-table-mobile-card-wrapper",children:N(M,X?()=>X(M):void 0)},F,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),i5.jsxDEV("div",{className:N?"stats-table-desktop-only":"stats-table-container",children:i5.jsxDEV("table",{className:"stats-table",children:[i5.jsxDEV("thead",{children:i5.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 i5.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),i5.jsxDEV("tbody",{children:G.map((M)=>{let F=String(q(M)),W=typeof X==="function",T=["stats-table-tr",W?"stats-table-tr-clickable":""].filter(Boolean).join(" ");return i5.jsxDEV("tr",{className:T,onClick:W?()=>X(M):void 0,onKeyDown:W?(z)=>H(z,M):void 0,tabIndex:W?0:void 0,role:W?"button":void 0,children:Q.map((z)=>{let C=["stats-table-td",z.numeric?"stats-text-right":"stats-text-left",z.className||""].filter(Boolean).join(" ");return i5.jsxDEV("td",{className:C,children:z.render?z.render(M):M[z.key]},z.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 p9=e(A1(),1),x6=e(z0(),1);function _B({data:Q,title:G,initialCollapsed:q=!1}){let[X,N]=p9.useState(q),[B,H]=p9.useState(!1),M=p9.useRef(0),F=JSON.stringify(Q,null,2);return p9.useEffect(()=>()=>window.clearTimeout(M.current),[]),x6.jsxDEV("div",{className:"stats-json-block",children:[x6.jsxDEV("div",{className:"stats-json-block-header",onClick:()=>N(!X),onKeyDown:(z)=>{if(z.key==="Enter"||z.key===" ")z.preventDefault(),N(!X)},tabIndex:0,role:"button","aria-expanded":!X,children:[x6.jsxDEV("span",{className:"stats-json-block-title",children:G||"JSON"},void 0,!1,void 0,this),x6.jsxDEV("div",{className:"stats-json-actions",children:[x6.jsxDEV("button",{type:"button",className:"stats-json-copy-btn",onClick:async(z)=>{z.stopPropagation();try{await navigator.clipboard.writeText(F),H(!0),window.clearTimeout(M.current),M.current=window.setTimeout(()=>H(!1),1500)}catch{}},"aria-label":B?"Copied to clipboard":"Copy JSON to clipboard",children:[B?x6.jsxDEV(zQ,{size:13},void 0,!1,void 0,this):x6.jsxDEV(_Q,{size:13},void 0,!1,void 0,this),B?"Copied":"Copy"]},void 0,!0,void 0,this),x6.jsxDEV("span",{className:"stats-json-block-toggle-indicator","data-collapsed":X,children:X?"▶ Show":"▼ Hide"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!X&&x6.jsxDEV("div",{className:"stats-json-block-content-wrapper",children:x6.jsxDEV("pre",{className:"stats-json-block-content",children:x6.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 Z1=e(z0(),1);function MC({stats:Q}){return Z1.jsxDEV("div",{className:"stats-metric-cluster",children:[Z1.jsxDEV("div",{className:"stats-metric-primary-grid",children:[Z1.jsxDEV("div",{className:"stats-metric-card primary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Total Cost"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:x1(Q.totalCost,Q.totalCost>0&&Q.totalCost<0.01?4:2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card primary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Requests"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:U1(Q.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card primary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Cache Rate"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:j2(Q.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card primary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Error Rate"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:j2(Q.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-secondary-grid",children:[Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Input Tokens"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:CB(Q.totalInputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Output Tokens"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:CB(Q.totalOutputTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Premium Requests"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:U1(Q.totalPremiumRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Tokens/s"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:JC(Q.avgTokensPerSecond)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Avg Latency"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:I5(Q.avgDuration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-card secondary",children:[Z1.jsxDEV("div",{className:"stats-metric-label",children:"Avg TTFT"},void 0,!1,void 0,this),Z1.jsxDEV("div",{className:"stats-metric-value",children:I5(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 k2=e(z0(),1);function N5({title:Q,subtitle:G,actions:q,children:X,className:N="",...B}){return k2.jsxDEV("div",{className:`stats-panel ${N}`,...B,children:[(Q||G||q)&&k2.jsxDEV("div",{className:"stats-panel-header",children:[k2.jsxDEV("div",{className:"stats-panel-header-titles",children:[Q&&k2.jsxDEV("h3",{className:"stats-panel-title",children:Q},void 0,!1,void 0,this),G&&k2.jsxDEV("p",{className:"stats-panel-subtitle",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&k2.jsxDEV("div",{className:"stats-panel-actions",children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k2.jsxDEV("div",{className:"stats-panel-body",children:X},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var h4=e(A1(),1);var FC=e(z0(),1);function z6({variant:Q,children:G,className:q=""}){return FC.jsxDEV("span",{className:`stats-status-pill ${q}`,"data-variant":Q,children:G},void 0,!1,void 0,this)}var F0=e(z0(),1);function wC({id:Q,onClose:G}){let[q,X]=h4.useState(null),[N,B]=h4.useState(!1),[H,M]=h4.useState(null),F=h4.useRef(null),W=h4.useRef(null);if(h4.useEffect(()=>{if(Q===null){X(null);return}F.current=document.activeElement,B(!0),M(null),X(null);let z=new AbortController;return iz(Q,z.signal).then((C)=>{if(z.signal.aborted)return;X(C),setTimeout(()=>W.current?.focus(),50)}).catch((C)=>{if(z.signal.aborted)return;M(C instanceof Error?C:Error(String(C)))}).finally(()=>{if(!z.signal.aborted)B(!1)}),()=>z.abort()},[Q]),h4.useEffect(()=>{if(Q===null)return;let z=(C)=>{if(C.key==="Escape")G()};return window.addEventListener("keydown",z),()=>{if(window.removeEventListener("keydown",z),F.current)F.current.focus()}},[Q,G]),Q===null)return null;return F0.jsxDEV("div",{className:"stats-drawer-overlay",onClick:(z)=>{if(z.target===z.currentTarget)G()},role:"presentation",children:F0.jsxDEV("div",{className:"stats-drawer",role:"dialog","aria-modal":"true","aria-label":"Request details",children:[F0.jsxDEV("div",{className:"stats-drawer-header",children:[F0.jsxDEV("div",{className:"stats-drawer-header-left",children:[F0.jsxDEV("h2",{className:"stats-drawer-title",children:"Request Details"},void 0,!1,void 0,this),q&&F0.jsxDEV("span",{className:"stats-drawer-id",children:["ID: ",Q]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("button",{ref:W,type:"button",onClick:G,className:"stats-drawer-close-btn","aria-label":"Close request details",children:F0.jsxDEV(g9,{size:18},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-body",children:[N&&F0.jsxDEV("div",{className:"stats-drawer-loading",children:[F0.jsxDEV(a5,{variant:"text",width:"60%",height:24,className:"mb-4"},void 0,!1,void 0,this),F0.jsxDEV(a5,{variant:"rect",width:"100%",height:80,className:"mb-4"},void 0,!1,void 0,this),F0.jsxDEV(a5,{variant:"rect",width:"100%",height:120,className:"mb-4"},void 0,!1,void 0,this),F0.jsxDEV(a5,{variant:"rect",width:"100%",height:200},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&F0.jsxDEV("div",{className:"stats-drawer-error",children:[F0.jsxDEV("p",{className:"stats-drawer-error-title",children:"Failed to load request details"},void 0,!1,void 0,this),F0.jsxDEV("p",{className:"stats-drawer-error-message",children:H.message},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q&&F0.jsxDEV("div",{className:"stats-drawer-content",children:[F0.jsxDEV("div",{className:"stats-drawer-status-card",children:[F0.jsxDEV("div",{className:"stats-drawer-status-row",children:[F0.jsxDEV("div",{children:[F0.jsxDEV("div",{className:"stats-drawer-model",children:q.model},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-provider",children:q.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV(z6,{variant:q.errorMessage?"danger":"success",children:q.errorMessage?"Error":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.errorMessage&&F0.jsxDEV("div",{className:"stats-drawer-error-block",children:[F0.jsxDEV("div",{className:"stats-drawer-error-label",children:"Error Message"},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-error-text",children:q.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metrics-grid",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(y9,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Cost"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:x1(q.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(fQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Premium"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:U1(q.usage.premiumRequests??0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(EQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Total Tokens"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:U1(q.usage.totalTokens)},void 0,!1,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-sub",children:[U1(q.usage.input)," in · ",U1(q.usage.output)," out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(LQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Duration"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:I5(q.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(gQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"TTFT"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:I5(q.ttft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.duration&&q.usage.output>0&&F0.jsxDEV("div",{className:"stats-drawer-metric-card",children:[F0.jsxDEV("div",{className:"stats-drawer-metric-label",children:[F0.jsxDEV(OQ,{size:14,className:"stats-drawer-metric-icon"},void 0,!1,void 0,this),"Throughput"]},void 0,!0,void 0,this),F0.jsxDEV("div",{className:"stats-drawer-metric-value",children:(q.usage.output*1000/q.duration).toFixed(1)},void 0,!1,void 0,this),F0.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),F0.jsxDEV("div",{className:"stats-drawer-json-blocks",children:[F0.jsxDEV(_B,{data:q.output,title:"Output Payload",initialCollapsed:!1},void 0,!1,void 0,this),F0.jsxDEV(_B,{data:q,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 VB=e(z0(),1);function cQ({options:Q,value:G,onChange:q,className:X=""}){return VB.jsxDEV("div",{className:`stats-segmented-control ${X}`,role:"radiogroup",children:Q.map((N)=>{let B=N.value===G;return VB.jsxDEV("button",{type:"button",role:"radio","aria-checked":B,"data-active":B?"true":"false",className:"stats-segmented-control-btn",title:N.title,onClick:()=>q(N.value),children:N.label},String(N.value),!1,void 0,this)})},void 0,!1,void 0,this)}var w0=e(z0(),1);function CC({active:Q,range:G,refreshTrigger:q}){let{data:X,error:N,loading:B}=f5(["behavior",G,q],(H)=>ez(G,H),{pollMs:30000,enabled:Q});return w0.jsxDEV("div",{className:"stats-route-container space-y-6",children:w0.jsxDEV(R5,{loading:B,error:N,data:X,children:X&&w0.jsxDEV(w0.Fragment,{children:[w0.jsxDEV(Gj,{overall:X.overall,behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(qj,{behaviorSeries:X.behaviorSeries},void 0,!1,void 0,this),w0.jsxDEV(Xj,{models:X.byModel,behaviorSeries:X.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 wq(Q,G){if(G<=0)return;return`${(Q/G).toFixed(2)} / msg`}function Gj({overall:Q,behaviorSeries:G}){let q=$5.useMemo(()=>NC(Q,G),[Q,G]),X=Q.totalMessages,N=[{label:"User Messages",value:U1(Q.totalMessages),sub:X>0?"in range":void 0},{label:"Yelling (CAPS)",value:U1(Q.totalYelling),sub:wq(Q.totalYelling,X)},{label:"Profanity Hits",value:U1(Q.totalProfanity),sub:wq(Q.totalProfanity,X)},{label:"Anguish Signals",value:U1(Q.totalAnguish),sub:wq(Q.totalAnguish,X)},{label:"Friction Signals",value:U1(q.totalFrustration),sub:wq(q.totalFrustration,X)},{label:"Highest Friction Model",value:q.highestFrictionModel?.model??"—",sub:q.highestFrictionModel?`${U1(q.highestFrictionModel.score)} hits`:void 0}];return w0.jsxDEV("div",{className:"grid grid-cols-2 md:grid-cols-6 gap-4",children:N.map((B)=>w0.jsxDEV(N5,{className:"stats-behavior-summary-card py-3 px-4",children:[w0.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium truncate",children:B.label},void 0,!1,void 0,this),w0.jsxDEV("p",{className:"text-lg font-bold stats-text-primary truncate",title:B.value,children:B.value},void 0,!1,void 0,this),B.sub&&w0.jsxDEV("p",{className:"text-xs stats-text-muted mt-0.5",children:B.sub},void 0,!1,void 0,this)]},B.label,!0,void 0,this))},void 0,!1,void 0,this)}var IB=[{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 WC(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 RC(Q,G){if(G==="frustration")return Q.negation+Q.repetition+Q.blame;if(G==="total")return Q.yelling+Q.profanity+Q.anguish+Q.negation+Q.repetition+Q.blame;return Q[G]}function TC(Q,G){if(G<=0)return 0;return Q/G*100}function qj({behaviorSeries:Q}){let[G,q]=$5.useState(!1),[X,N]=$5.useState("total"),B=f4(),H=R6[B],M=$5.useMemo(()=>{if(G)return Jq(Q,{rankWeight:(h)=>h.messages,initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=RC(p,X),h.messages+=p.messages},bucketToValue:(h)=>TC(h.hits,h.messages)});let j=IB.find((h)=>h.value===X)?.title??"Hits";return Qq(Q,j,{initBucket:()=>({hits:0,messages:0}),accumulate:(h,p)=>{h.hits+=RC(p,X),h.messages+=p.messages},bucketToValue:(h)=>TC(h.hits,h.messages)})},[Q,G,X]),F=$5.useMemo(()=>{return t3({chartTheme:H,showLegend:G,defaultLabel:"Hits",formatValue:WC})},[H,G]),{sharedScaleBase:W,yScale:T}=$5.useMemo(()=>{return e3({chartTheme:H,formatY:WC})},[H]),z=$5.useMemo(()=>{return IB.find((j)=>j.value===X)?.title??""},[X]),C=$5.useMemo(()=>{if(!G)return null;return{labels:M.labels,datasets:F$(M,(j)=>$q(a1[j%a1.length]))}},[M,G]),V=$5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:W,y:T}}},[F,W,T]),A=$5.useMemo(()=>{if(G)return null;return{labels:M.labels,datasets:F$(M,(j)=>Zq(a1[j%a1.length]))}},[M,G]),O=$5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:F,scales:{x:{...W,stacked:!0},y:{...T,stacked:!0}},layout:{padding:{top:8}}}},[F,W,T]),I=[{value:!1,label:"All Models"},{value:!0,label:"By Model"}];return w0.jsxDEV(N5,{title:"User Friction Signals",subtitle:`${z} as % of user messages per day`,actions:w0.jsxDEV("div",{className:"flex items-center gap-3 flex-wrap",children:[w0.jsxDEV(cQ,{options:IB.map((j)=>({value:j.value,label:j.label,title:j.title})),value:X,onChange:N},void 0,!1,void 0,this),w0.jsxDEV(cQ,{options:I,value:G,onChange:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:w0.jsxDEV("div",{className:"h-[300px]",children:M.labels.length===0?w0.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):G&&C?w0.jsxDEV(u6,{data:C,options:V},void 0,!1,void 0,this):A?w0.jsxDEV(i3,{data:A,options:O},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var zC="2fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.8fr 140px 40px";function PC(Q){if(Q.totalMessages===0)return 0;return(Q.totalYelling+Q.totalProfanity+Q.totalAnguish+Q.totalNegation+Q.totalRepetition+Q.totalBlame)/Q.totalMessages}function W$(Q,G){if(G===0)return"-";let q=Q/G*100;if(q===0)return"0%";if(q<1)return`${q.toFixed(1)}%`;return`${q.toFixed(0)}%`}function Xj({models:Q,behaviorSeries:G}){let[q,X]=$5.useState(null),N=f4(),B=R6[N],H=$5.useMemo(()=>Nj(G),[G]),M=$5.useMemo(()=>{return[...Q].sort((F,W)=>{if(W.totalMessages!==F.totalMessages)return W.totalMessages-F.totalMessages;return PC(W)-PC(F)})},[Q]);return w0.jsxDEV(Xq,{title:"Behavior Signals by Model",subtitle:"Rates are per user message",children:[w0.jsxDEV(Yq,{gridTemplate:zC,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),w0.jsxDEV(Nq,{children:[M.map((F,W)=>{let T=`${F.model}::${F.provider}`,z=H.get(T)?.data??[],C=a1[W%a1.length],V=q===T,A=F.totalNegation+F.totalRepetition+F.totalBlame,O=F.totalYelling+F.totalProfanity+F.totalAnguish+A;return w0.jsxDEV(Bq,{gridTemplate:zC,isExpanded:V,onToggle:()=>X(V?null:T),cells:[w0.jsxDEV(Uq,{model:F.model,provider:F.provider},"name",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:U1(F.totalMessages)},"messages",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:W$(F.totalYelling,F.totalMessages)},"caps",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:W$(F.totalProfanity,F.totalMessages)},"profanity",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:W$(F.totalAnguish,F.totalMessages)},"anguish",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:W$(A,F.totalMessages)},"frustration",!1,void 0,this),w0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:W$(O,F.totalMessages)},"hits",!1,void 0,this)],trendCell:z.length===0?w0.jsxDEV(Kq,{},void 0,!1,void 0,this):w0.jsxDEV(Gq,{timestamps:z.map((I)=>I.timestamp),values:z.map((I)=>I.total),color:C},void 0,!1,void 0,this),expandedContent:w0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"220px 1fr"},children:[w0.jsxDEV("div",{className:"space-y-4 text-sm",children:[w0.jsxDEV(c9,{label:"Yelling (CAPS)",total:F.totalYelling,messages:F.totalMessages,valueClass:"text-[#ed4abf]"},void 0,!1,void 0,this),w0.jsxDEV(c9,{label:"Profanity",total:F.totalProfanity,messages:F.totalMessages,valueClass:"text-[#ff6b7d]"},void 0,!1,void 0,this),w0.jsxDEV(c9,{label:"Anguish (!!!, nooo, dude, ..)",total:F.totalAnguish,messages:F.totalMessages,valueClass:"text-[#9b4dff]"},void 0,!1,void 0,this),w0.jsxDEV(c9,{label:"Negation (no/nope/wrong)",total:F.totalNegation,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(c9,{label:"Repetition (i meant, still doesnt)",total:F.totalRepetition,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(c9,{label:"Blame (you didnt, stop X-ing)",total:F.totalBlame,messages:F.totalMessages,valueClass:"text-[#5ad8e6]"},void 0,!1,void 0,this),w0.jsxDEV(c9,{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),w0.jsxDEV("div",{className:"h-[200px]",children:z.length===0?w0.jsxDEV(Hq,{},void 0,!1,void 0,this):w0.jsxDEV(Yj,{data:z,chartTheme:B},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},T,!1,void 0,this)}),M.length===0?w0.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 c9({label:Q,total:G,messages:q,valueClass:X,mode:N="rate"}){let B=N==="rate"?"% of msgs":"Per msg",H=$5.useMemo(()=>{if(q===0)return"-";return N==="rate"?W$(G,q):(G/q).toFixed(0)},[G,q,N]);return w0.jsxDEV("div",{children:[w0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-1",children:Q},void 0,!1,void 0,this),w0.jsxDEV("div",{className:"space-y-0.5 text-[var(--text-secondary)]",children:[w0.jsxDEV("div",{className:"flex items-center justify-between",children:[w0.jsxDEV("span",{className:"stats-text-muted text-xs",children:"Total"},void 0,!1,void 0,this),w0.jsxDEV("span",{className:`font-mono text-xs ${X}`,children:U1(G)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w0.jsxDEV("div",{className:"flex items-center justify-between",children:[w0.jsxDEV("span",{className:"stats-text-muted text-xs",children:B},void 0,!1,void 0,this),w0.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 Wq={yelling:"#ed4abf",profanity:"#ff6b7d",anguish:"#9b4dff",frustration:"#5ad8e6"};function Yj({data:Q,chartTheme:G}){let q=$5.useMemo(()=>{return{labels:Q.map((N)=>Z4(new Date(N.timestamp),"MMM d")),datasets:[{label:"CAPS",data:Q.map((N)=>N.yelling),...I8(Wq.yelling)},{label:"Profanity",data:Q.map((N)=>N.profanity),...I8(Wq.profanity)},{label:"Anguish",data:Q.map((N)=>N.anguish),...I8(Wq.anguish)},{label:"Frustration",data:Q.map((N)=>N.frustration),...I8(Wq.frustration)}]}},[Q]),X=$5.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:qq(G),scales:ZC(G)}},[G]);return w0.jsxDEV(u6,{data:q,options:X},void 0,!1,void 0,this)}function Nj(Q){if(Q.length===0)return new Map;let G=[...new Set(Q.map((N)=>N.timestamp))].sort((N,B)=>N-B),q=new Map;for(let N of Q){let B=`${N.model}::${N.provider}`,H=q.get(B);if(!H)H=new Map,q.set(B,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 X=new Map;for(let[N,B]of q){let H=G.map((M)=>B.get(M)??{timestamp:M,yelling:0,profanity:0,anguish:0,frustration:0,total:0});X.set(N,{data:H})}return X}var m6=e(A1(),1);var Z5=e(z0(),1);function LC({active:Q,range:G,refreshTrigger:q}){let{data:X,error:N,loading:B}=f5(["costs",G,q],(H)=>oz(G,H),{pollMs:30000,enabled:Q});return Z5.jsxDEV("div",{className:"stats-route-container space-y-6",children:Z5.jsxDEV(R5,{loading:B,error:N,data:X,children:X&&Z5.jsxDEV(Z5.Fragment,{children:[Z5.jsxDEV(Uj,{costSeries:X.costSeries},void 0,!1,void 0,this),Z5.jsxDEV(Hj,{costSeries:X.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 Uj({costSeries:Q}){let G=m6.useMemo(()=>XC(Q),[Q]),q=[{label:"Total Cost",value:x1(G.totalCost)},{label:"Average / Day",value:x1(G.avgDailyCost)},{label:"Top Model",value:G.topModelName||"—",sub:G.topModelName?x1(G.topModelCost):void 0}];return Z5.jsxDEV("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:q.map((X)=>Z5.jsxDEV(N5,{className:"stats-cost-overview-card py-4 px-5",children:[Z5.jsxDEV("p",{className:"text-xs stats-text-muted mb-1 font-medium uppercase tracking-wider",children:X.label},void 0,!1,void 0,this),Z5.jsxDEV("p",{className:"text-2xl font-bold stats-text-primary truncate",title:X.value,children:X.value},void 0,!1,void 0,this),X.sub&&Z5.jsxDEV("p",{className:"text-xs stats-text-muted mt-1 font-medium",children:["Total spent: ",X.sub]},void 0,!0,void 0,this)]},X.label,!0,void 0,this))},void 0,!1,void 0,this)}var Bj={dark:"rgba(248, 250, 252, 0.7)",light:"rgba(15, 23, 42, 0.6)"};function Kj(Q){return{id:"costBarLabels",afterDatasetsDraw(G){let{ctx:q}=G;if(!G.data.datasets[0])return;let N=G.getDatasetMeta(0);q.save(),q.font="11px system-ui, sans-serif",q.fillStyle=Q,q.textAlign="center",q.textBaseline="bottom";for(let B of N.data){let H=B.$context.parsed.y;if(!H)continue;let M=`$${Math.round(H)}`,{x:F,y:W}=B.getProps(["x","y"],!0);q.fillText(M,F,W-3)}q.restore()}}}function Hj({costSeries:Q}){let[G,q]=m6.useState(!1),X=f4(),N=R6[X],B=m6.useMemo(()=>{if(G)return Jq(Q,{rankWeight:(O)=>O.cost,initBucket:()=>({total:0}),accumulate:(O,I)=>{O.total+=I.cost},bucketToValue:(O)=>O.total});return Qq(Q,"Cost",{initBucket:()=>({total:0}),accumulate:(O,I)=>{O.total+=I.cost},bucketToValue:(O)=>O.total})},[Q,G]),H=m6.useMemo(()=>{return t3({chartTheme:N,showLegend:G,defaultLabel:"Cost",formatValue:(O)=>`$${O.toFixed(2)}`,footer:(O)=>{if(!G||O.length<2)return;return`Total: $${O.reduce((j,h)=>j+(h.parsed.y??0),0).toFixed(2)}`}})},[N,G]),{sharedScaleBase:M,yScale:F}=m6.useMemo(()=>{return e3({chartTheme:N,formatY:(O)=>`$${Math.round(O)}`})},[N]),W=m6.useMemo(()=>{return Kj(Bj[X])},[X]),T=m6.useMemo(()=>{if(!G)return null;return{labels:B.labels,datasets:F$(B,(O)=>$q(a1[O%a1.length]))}},[B,G]),z=m6.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:H,scales:{x:M,y:F}}},[H,M,F]),C=m6.useMemo(()=>{if(G)return null;return{labels:B.labels,datasets:F$(B,(O)=>Zq(a1[O%a1.length]))}},[B,G]),V=m6.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 Z5.jsxDEV(N5,{title:"Daily Cost",subtitle:"API spending over time",actions:Z5.jsxDEV(cQ,{options:[{value:!1,label:"All Models"},{value:!0,label:"By Model"}],value:G,onChange:q},void 0,!1,void 0,this),children:Z5.jsxDEV("div",{className:"h-[300px]",children:B.labels.length===0?Z5.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):G&&T?Z5.jsxDEV(u6,{data:T,options:z},void 0,!1,void 0,this):C?Z5.jsxDEV(i3,{data:C,options:V,plugins:[W]},void 0,!1,void 0,this):null},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var _C=e(A1(),1);var _1=e(z0(),1);function VC({active:Q,refreshTrigger:G,onRequestClick:q}){let{data:X,error:N,loading:B}=f5(["recent-errors-dense",G],(F)=>az(50,F),{pollMs:30000,enabled:Q}),H=_C.useMemo(()=>[{key:"model",header:"Model",render:(F)=>_1.jsxDEV("div",{children:[_1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),_1.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)=>g4(F.timestamp)},{key:"errorMessage",header:"Error Message",render:(F)=>_1.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)=>U1(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>x1(F.usage.cost.total,4)}],[]);return _1.jsxDEV("div",{className:"stats-route-container",children:_1.jsxDEV(N5,{title:"Recent Errors",subtitle:"Up to 50 most recent failed requests in the stats database",children:_1.jsxDEV(R5,{loading:B,error:N,data:X,emptyText:"No recent failures in the local stats database",children:_1.jsxDEV(b2,{columns:H,data:X||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&q(F.id),renderMobileCard:(F,W)=>_1.jsxDEV("div",{className:"stats-mobile-card stats-border-danger",onClick:W,children:[_1.jsxDEV("div",{className:"stats-mobile-card-header",children:[_1.jsxDEV("div",{children:[_1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),_1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_1.jsxDEV(z6,{variant:"danger",children:"Failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[_1.jsxDEV("div",{children:[_1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),_1.jsxDEV("div",{className:"stats-mobile-card-value",children:g4(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_1.jsxDEV("div",{children:[_1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),_1.jsxDEV("div",{className:"stats-mobile-card-value",children:x1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_1.jsxDEV("div",{children:[_1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),_1.jsxDEV("div",{className:"stats-mobile-card-value",children:U1(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&_1.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 u4=e(A1(),1);var O0=e(z0(),1);function OC({active:Q,range:G,refreshTrigger:q}){let{data:X,error:N,loading:B}=f5(["models",G,q],(H)=>nz(G,H),{pollMs:30000,enabled:Q});return O0.jsxDEV("div",{className:"stats-route-container space-y-6",children:O0.jsxDEV(R5,{loading:B,error:N,data:X,children:X&&O0.jsxDEV(O0.Fragment,{children:[O0.jsxDEV(Mj,{modelSeries:X.modelSeries,timeRange:G},void 0,!1,void 0,this),O0.jsxDEV(wj,{models:X.byModel,performanceSeries:X.modelPerformanceSeries,timeRange:G},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 Mj({modelSeries:Q,timeRange:G}){let q=f4(),X=R6[q],N=pQ(G),B=u4.useMemo(()=>Fj(Q),[Q]),H=u4.useMemo(()=>{return{labels:B.data.map((F)=>LB(F.timestamp,G)),datasets:B.series.map((F,W)=>({label:F,data:B.data.map((T)=>T[F]??0),borderColor:a1[W%a1.length],backgroundColor:`${a1[W%a1.length]}20`,fill:!0,tension:0.4,pointRadius:0,pointHoverRadius:4,borderWidth:2}))}},[B,G]),M=u4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",align:"start",labels:{color:X.legendLabel,usePointStyle:!0,padding:16,font:{size:12},boxWidth:8}},tooltip:{backgroundColor:X.tooltipBackground,titleColor:X.tooltipTitle,bodyColor:X.tooltipBody,borderColor:X.tooltipBorder,borderWidth:1,padding:12,cornerRadius:8,callbacks:{label:(F)=>{let W=F.dataset.label??"",T=F.parsed.y;return`${W}: ${(T??0).toFixed(1)}%`}}}},scales:{x:{grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11}}},y:{grid:{color:X.grid,drawBorder:!1},ticks:{color:X.tick,font:{size:11},callback:(F)=>`${F}%`},min:0,max:100}}}},[X]);return O0.jsxDEV(N5,{title:"Model Preference",subtitle:`Share of requests over ${N.windowLabel}`,children:O0.jsxDEV("div",{className:"h-[280px]",children:B.data.length===0?O0.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):O0.jsxDEV(u6,{data:H,options:M},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Fj(Q,G=5){if(Q.length===0)return{data:[],series:[]};let q=new Map;for(let z of Q){let C=`${z.model}::${z.provider}`,V=q.get(C);if(V)V.total+=z.requests;else q.set(C,{model:z.model,provider:z.provider,total:z.requests})}let N=[...q.entries()].map(([z,C])=>({key:z,...C})).sort((z,C)=>C.total-z.total).slice(0,G),B=new Set(N.map((z)=>z.key)),H=new Map;for(let z of N)H.set(z.model,(H.get(z.model)??0)+1);let M=new Map;for(let z of N){let C=(H.get(z.model)??0)>1;M.set(z.key,C?`${z.model} (${z.provider})`:z.model)}let F=new Map;for(let z of Q){let C=`${z.model}::${z.provider}`,V=F.get(z.timestamp)??{timestamp:z.timestamp,total:0};V.total+=z.requests;let A=B.has(C)?M.get(C)??z.model:"Other";V[A]=(V[A]??0)+z.requests,F.set(z.timestamp,V)}let W=N.map((z)=>M.get(z.key)??z.model);if([...F.values()].some((z)=>(z.Other??0)>0))W.push("Other");return{data:[...F.values()].sort((z,C)=>(z.timestamp??0)-(C.timestamp??0)).map((z)=>{let C=z.total??0;for(let V of W)z[V]=C>0?(z[V]??0)/C*100:0;return z}),series:W}}var IC="2fr 0.9fr 0.9fr 1fr 0.8fr 0.8fr 140px 40px";function wj({models:Q,performanceSeries:G,timeRange:q}){let[X,N]=u4.useState(null),B=pQ(q),H=u4.useMemo(()=>YC(G,q),[G,q]),M=f4(),F=R6[M],W=u4.useMemo(()=>{return[...Q].sort((T,z)=>z.totalInputTokens+z.totalOutputTokens-(T.totalInputTokens+T.totalOutputTokens))},[Q]);return O0.jsxDEV(Xq,{title:"Model Statistics",children:[O0.jsxDEV(Yq,{gridTemplate:IC,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:B.trendLabel,align:"center"}]},void 0,!1,void 0,this),O0.jsxDEV(Nq,{children:W.map((T,z)=>{let C=`${T.model}::${T.provider}`,A=H.get(C)?.data??[],O=a1[z%a1.length],I=X===C,j=T.errorRate*100;return O0.jsxDEV(Bq,{gridTemplate:IC,isExpanded:I,onToggle:()=>N(I?null:C),cells:[O0.jsxDEV(Uq,{model:T.model,provider:T.provider},"name",!1,void 0,this),O0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:T.totalRequests.toLocaleString()},"requests",!1,void 0,this),O0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:["$",T.totalCost.toFixed(2)]},"cost",!0,void 0,this),O0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:(T.totalInputTokens+T.totalOutputTokens).toLocaleString()},"tokens",!1,void 0,this),O0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:T.avgTokensPerSecond?.toFixed(1)??"-"},"tps",!1,void 0,this),O0.jsxDEV("div",{className:"text-right text-[var(--text-secondary)] font-mono text-sm",children:T.avgTtft?`${(T.avgTtft/1000).toFixed(2)}s`:"-"},"ttft",!1,void 0,this)],trendCell:A.length===0?O0.jsxDEV(Kq,{},void 0,!1,void 0,this):O0.jsxDEV(Gq,{timestamps:A.map((h)=>h.timestamp),values:A.map((h)=>h.avgTokensPerSecond??0),color:O},void 0,!1,void 0,this),expandedContent:O0.jsxDEV("div",{className:"grid gap-4",style:{gridTemplateColumns:"200px 1fr"},children:[O0.jsxDEV("div",{className:"space-y-4 text-sm",children:[O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Quality"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[O0.jsxDEV("div",{className:"flex items-center justify-between",children:[O0.jsxDEV("span",{children:"Error rate"},void 0,!1,void 0,this),O0.jsxDEV("span",{className:j>5?"text-[var(--accent-red)]":"text-[var(--accent-green)]",children:[j.toFixed(1),"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"flex items-center justify-between",children:[O0.jsxDEV("span",{children:"Cache rate"},void 0,!1,void 0,this),O0.jsxDEV("span",{className:"text-[var(--accent-cyan)]",children:[(T.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),O0.jsxDEV("div",{children:[O0.jsxDEV("div",{className:"text-[var(--text-primary)] font-medium mb-2",children:"Latency"},void 0,!1,void 0,this),O0.jsxDEV("div",{className:"space-y-1 text-[var(--text-secondary)]",children:[O0.jsxDEV("div",{className:"flex items-center justify-between",children:[O0.jsxDEV("span",{children:"Avg duration"},void 0,!1,void 0,this),O0.jsxDEV("span",{className:"font-mono",children:T.avgDuration?`${(T.avgDuration/1000).toFixed(2)}s`:"-"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O0.jsxDEV("div",{className:"flex items-center justify-between",children:[O0.jsxDEV("span",{children:"Avg TTFT"},void 0,!1,void 0,this),O0.jsxDEV("span",{className:"font-mono",children:T.avgTtft?`${(T.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),O0.jsxDEV("div",{className:"h-[200px]",children:A.length===0?O0.jsxDEV(Hq,{},void 0,!1,void 0,this):O0.jsxDEV(Wj,{data:A,color:O,chartTheme:F,timeRange:q},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},C,!1,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Wj({data:Q,color:G,chartTheme:q,timeRange:X}){let N=u4.useMemo(()=>{return{labels:Q.map((H)=>LB(H.timestamp,X)),datasets:[{label:"TTFT",data:Q.map((H)=>H.avgTtftSeconds??null),...I8("#5ad8e6"),yAxisID:"y"},{label:"Tokens/s",data:Q.map((H)=>H.avgTokensPerSecond??null),...I8(G),yAxisID:"y1"}]}},[Q,G,X]),B=u4.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,plugins:qq(q),scales:QC(q)}},[q]);return O0.jsxDEV(u6,{data:N,options:B},void 0,!1,void 0,this)}var lQ=e(A1(),1);var K0=e(z0(),1);function EC({active:Q,range:G,refreshTrigger:q,onRequestClick:X}){let{data:N,error:B,loading:H}=f5(["overview",G,q],(j)=>sz(G,j),{pollMs:30000,enabled:Q}),{data:M,error:F,loading:W}=f5(["recent-requests",q],(j)=>l3(50,j),{pollMs:30000,enabled:Q}),T=f4(),z=R6[T],C=lQ.useMemo(()=>{if(!N?.timeSeries)return{labels:[],datasets:[]};let j=N.timeSeries.map((p)=>Z4(new Date(p.timestamp),G==="1h"||G==="24h"?"HH:mm":"MMM d")),h=N.timeSeries.length<=2?3:0;return{labels:j,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,G]),V=lQ.useMemo(()=>{return{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",align:"end",labels:{color:z.legendLabel,boxWidth:8,usePointStyle:!0,font:{size:11}}},tooltip:{backgroundColor:z.tooltipBackground,titleColor:z.tooltipTitle,bodyColor:z.tooltipBody,borderColor:z.tooltipBorder,borderWidth:1,cornerRadius:8,padding:10}},scales:{x:{grid:{color:z.grid,drawBorder:!1},ticks:{color:z.tick,font:{size:10}}},y:{grid:{color:z.grid,drawBorder:!1},ticks:{color:z.tick,font:{size:10}},min:0}}}},[z]),A=lQ.useMemo(()=>[{key:"model",header:"Model",render:(j)=>K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:j.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"timestamp",header:"Time",render:(j)=>g4(j.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(j)=>U1(j.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(j)=>x1(j.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(j)=>I5(j.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(j)=>K0.jsxDEV(z6,{variant:j.errorMessage?"danger":"success",children:j.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]),O=(j,h)=>K0.jsxDEV("div",{className:"stats-mobile-card",onClick:h,children:[K0.jsxDEV("div",{className:"stats-mobile-card-header",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:j.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV(z6,{variant:j.errorMessage?"danger":"success",children:j.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-grid",children:[K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:g4(j.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:x1(j.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:U1(j.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{children:[K0.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-mobile-card-value",children:I5(j.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.errorMessage&&K0.jsxDEV("div",{className:"stats-mobile-card-error truncate mt-2",children:j.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I=lQ.useMemo(()=>{if(!M)return[];return M.slice(0,10)},[M]);return K0.jsxDEV("div",{className:"stats-route-container space-y-6",children:[K0.jsxDEV(R5,{loading:H,error:B,data:N,children:N&&K0.jsxDEV(MC,{stats:N.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[K0.jsxDEV("div",{className:"lg:col-span-2",children:K0.jsxDEV(N5,{title:"System Throughput",subtitle:"Request volume and errors over time",children:K0.jsxDEV(R5,{loading:H,error:B,data:N,children:K0.jsxDEV("div",{className:"h-[280px]",children:N?.timeSeries&&N.timeSeries.length>0?K0.jsxDEV(u6,{data:C,options:V},void 0,!1,void 0,this):K0.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),K0.jsxDEV("div",{children:K0.jsxDEV(N5,{title:"Operational Feed",subtitle:"Real-time request log",children:K0.jsxDEV(R5,{loading:W,error:F,data:M,fallback:K0.jsxDEV("div",{className:"space-y-4",children:Array.from({length:5}).map((j,h)=>K0.jsxDEV("div",{className:"flex items-center gap-3",children:[K0.jsxDEV(a5,{variant:"circle",width:10,height:10},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"flex-1",children:[K0.jsxDEV(a5,{variant:"text",width:"60%",height:16},void 0,!1,void 0,this),K0.jsxDEV(a5,{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:K0.jsxDEV("div",{className:"stats-feed-ledger overflow-y-auto max-h-[280px] pr-2",children:[I.map((j)=>{let h=!!j.errorMessage;return K0.jsxDEV("div",{className:"stats-feed-item flex items-start gap-3 p-2 rounded hover:bg-stats-surface-2 cursor-pointer transition-colors",onClick:()=>j.id&&X(j.id),children:[K0.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),K0.jsxDEV("div",{className:"flex-1 min-w-0",children:[K0.jsxDEV("div",{className:"flex justify-between items-baseline gap-2",children:[K0.jsxDEV("div",{className:"stats-font-medium stats-text-primary text-sm truncate",children:j.model},void 0,!1,void 0,this),K0.jsxDEV("div",{className:"stats-text-xs stats-text-muted whitespace-nowrap",children:g4(j.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K0.jsxDEV("div",{className:"flex justify-between items-center text-xs stats-text-muted mt-0.5",children:[K0.jsxDEV("div",{children:j.provider},void 0,!1,void 0,this),K0.jsxDEV("div",{children:[j.duration?I5(j.duration):""," ",j.usage?.cost?.total?`· ${x1(j.usage.cost.total,4)}`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&K0.jsxDEV("div",{className:"text-xs text-stats-danger truncate mt-1",children:j.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},j.id||`${j.sessionFile}-${j.entryId}`,!0,void 0,this)}),I.length===0&&K0.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),K0.jsxDEV(N5,{title:"Recent Requests Preview",subtitle:"Latest transactions processed by the proxy",actions:K0.jsxDEV("a",{href:`#/requests?range=${G}`,className:"stats-button stats-button-secondary text-xs",children:"View All Requests"},void 0,!1,void 0,this),children:K0.jsxDEV(R5,{loading:W,error:F,data:M,children:K0.jsxDEV(b2,{columns:A,data:I,keyExtractor:(j)=>j.id||`${j.sessionFile}-${j.entryId}`,onRowClick:(j)=>j.id&&X(j.id),renderMobileCard:O,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 OB=e(A1(),1);var Q1=e(z0(),1);function AC({active:Q,range:G,refreshTrigger:q}){let{data:X,error:N,loading:B}=f5(["projects",G,q],(W)=>$P(G,W),{pollMs:30000,enabled:Q}),H=OB.useMemo(()=>{if(!X)return[];return UC(X)},[X]),M=OB.useMemo(()=>[{key:"folder",header:"Project/Folder",render:(W)=>Q1.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)=>Q1.jsxDEV("div",{className:"stats-text-right",children:[Q1.jsxDEV("div",{className:"font-mono",children:U1(W.totalRequests)},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Q1.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)=>Q1.jsxDEV("div",{className:"stats-text-right",children:[Q1.jsxDEV("div",{className:"font-mono",children:x1(W.totalCost)},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-progress-bar-track mt-1 ml-auto w-24 h-1",children:Q1.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)=>Q1.jsxDEV("div",{className:"font-mono",children:U1(W.totalInputTokens+W.totalOutputTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache Rate",numeric:!0,render:(W)=>Q1.jsxDEV("span",{className:"stats-text-success font-medium",children:j2(W.cacheRate)},void 0,!1,void 0,this)},{key:"errorRate",header:"Error Rate",numeric:!0,render:(W)=>Q1.jsxDEV(z6,{variant:W.errorRate>0.1?"danger":W.errorRate>0?"warning":"success",children:j2(W.errorRate)},void 0,!1,void 0,this)},{key:"avgDuration",header:"Avg Duration",numeric:!0,render:(W)=>I5(W.avgDuration)}],[]);return Q1.jsxDEV("div",{className:"stats-route-container",children:Q1.jsxDEV(N5,{title:"Projects & Folders",subtitle:"Aggregate proxy metrics grouped by folder path",children:Q1.jsxDEV(R5,{loading:B,error:N,data:X,emptyText:"No project folders recorded for this range.",children:Q1.jsxDEV(b2,{columns:M,data:H,keyExtractor:(W)=>W.folder,renderMobileCard:(W)=>Q1.jsxDEV("div",{className:"stats-mobile-card",children:[Q1.jsxDEV("div",{className:"stats-mobile-card-header mb-2",children:[Q1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:W.folder||"(root)"},void 0,!1,void 0,this),Q1.jsxDEV(z6,{variant:W.errorRate>0.1?"danger":W.errorRate>0?"warning":"success",children:[j2(W.errorRate)," Err"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[Q1.jsxDEV("div",{children:[Q1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Requests"},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:U1(W.totalRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{children:[Q1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-mobile-card-value font-mono",children:x1(W.totalCost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{children:[Q1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cache"},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-mobile-card-value",children:j2(W.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q1.jsxDEV("div",{children:[Q1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),Q1.jsxDEV("div",{className:"stats-mobile-card-value",children:I5(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 SC=e(A1(),1);var K1=e(z0(),1);function DC({active:Q,refreshTrigger:G,onRequestClick:q}){let{data:X,error:N,loading:B}=f5(["recent-requests-dense",G],(F)=>l3(50,F),{pollMs:30000,enabled:Q}),H=SC.useMemo(()=>[{key:"model",header:"Model",render:(F)=>K1.jsxDEV("div",{children:[K1.jsxDEV("div",{className:"stats-font-medium stats-text-primary",children:F.model},void 0,!1,void 0,this),K1.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)=>g4(F.timestamp)},{key:"tokens",header:"Tokens",numeric:!0,render:(F)=>U1(F.usage.totalTokens)},{key:"cost",header:"Cost",numeric:!0,render:(F)=>x1(F.usage.cost.total,4)},{key:"duration",header:"Duration",numeric:!0,render:(F)=>I5(F.duration)},{key:"status",header:"Status",className:"stats-text-center",render:(F)=>K1.jsxDEV(z6,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)}],[]);return K1.jsxDEV("div",{className:"stats-route-container",children:K1.jsxDEV(N5,{title:"All Recent Requests",subtitle:"Up to 50 most recent requests processed by OMP",children:K1.jsxDEV(R5,{loading:B,error:N,data:X,children:K1.jsxDEV(b2,{columns:H,data:X||[],keyExtractor:(F)=>F.id||`${F.sessionFile}-${F.entryId}`,onRowClick:(F)=>F.id&&q(F.id),renderMobileCard:(F,W)=>K1.jsxDEV("div",{className:"stats-mobile-card",onClick:W,children:[K1.jsxDEV("div",{className:"stats-mobile-card-header",children:[K1.jsxDEV("div",{children:[K1.jsxDEV("div",{className:"stats-font-semibold stats-text-primary",children:F.model},void 0,!1,void 0,this),K1.jsxDEV("div",{className:"stats-text-xs stats-text-muted",children:F.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K1.jsxDEV(z6,{variant:F.errorMessage?"danger":"success",children:F.errorMessage?"Failed":"Success"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K1.jsxDEV("div",{className:"stats-mobile-card-grid",children:[K1.jsxDEV("div",{children:[K1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Time"},void 0,!1,void 0,this),K1.jsxDEV("div",{className:"stats-mobile-card-value",children:g4(F.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K1.jsxDEV("div",{children:[K1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Cost"},void 0,!1,void 0,this),K1.jsxDEV("div",{className:"stats-mobile-card-value",children:x1(F.usage.cost.total,4)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K1.jsxDEV("div",{children:[K1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Tokens"},void 0,!1,void 0,this),K1.jsxDEV("div",{className:"stats-mobile-card-value",children:U1(F.usage.totalTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K1.jsxDEV("div",{children:[K1.jsxDEV("div",{className:"stats-mobile-card-label",children:"Duration"},void 0,!1,void 0,this),K1.jsxDEV("div",{className:"stats-mobile-card-value",children:I5(F.duration)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.errorMessage&&K1.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 t5=e(z0(),1);function EB(){let{section:Q,setSection:G,range:q,setRange:X}=MP(),[N,B]=O8.useState(0),[H,M]=O8.useState(null),[F,W]=O8.useState(()=>Date.now()),T=O8.useCallback((O)=>{if(O.success)B((I)=>I+1),W(Date.now())},[]),z=O8.useCallback(()=>M(null),[]),C=Q,V=O8.useRef(new Set);V.current.add(C);let A=(O)=>{let I=O===C;switch(O){case"overview":return t5.jsxDEV(EC,{active:I,range:q,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"requests":return t5.jsxDEV(DC,{active:I,range:q,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"errors":return t5.jsxDEV(VC,{active:I,range:q,refreshTrigger:N,onRequestClick:M},void 0,!1,void 0,this);case"models":return t5.jsxDEV(OC,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"costs":return t5.jsxDEV(LC,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"behavior":return t5.jsxDEV(CC,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this);case"projects":return t5.jsxDEV(AC,{active:I,range:q,refreshTrigger:N},void 0,!1,void 0,this)}};return t5.jsxDEV(t5.Fragment,{children:[t5.jsxDEV(KP,{activeSection:C,onSectionChange:G,range:q,onRangeChange:X,updatedAt:F,onSyncComplete:T,children:[...V.current].map((O)=>t5.jsxDEV("div",{hidden:O!==C,children:A(O)},O,!1,void 0,this))},void 0,!1,void 0,this),t5.jsxDEV(wC,{id:H,onClose:z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var vC=e(z0(),1),Rj=jC.createRoot(document.getElementById("root"));Rj.render(vC.jsxDEV(EB,{},void 0,!1,void 0,this));