forge-openclaw-plugin 0.2.26 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -3
- package/dist/assets/{board-ta0rUHOf.js → board-C6jCchjI.js} +2 -2
- package/dist/assets/{board-ta0rUHOf.js.map → board-C6jCchjI.js.map} +1 -1
- package/dist/assets/index-DVvS8iiU.css +1 -0
- package/dist/assets/index-zYB-9Dfo.js +85 -0
- package/dist/assets/index-zYB-9Dfo.js.map +1 -0
- package/dist/assets/knowledge-graph-layout.worker-DRvzPxhP.js +2 -0
- package/dist/assets/knowledge-graph-layout.worker-DRvzPxhP.js.map +1 -0
- package/dist/assets/{motion-fBKPB6yw.js → motion-DFHrH2rd.js} +2 -2
- package/dist/assets/{motion-fBKPB6yw.js.map → motion-DFHrH2rd.js.map} +1 -1
- package/dist/assets/{table-C-IGTQni.js → table-ZL7Di_u3.js} +2 -2
- package/dist/assets/{table-C-IGTQni.js.map → table-ZL7Di_u3.js.map} +1 -1
- package/dist/assets/{ui-DInOpaYF.js → ui-CKNPpz7q.js} +2 -2
- package/dist/assets/{ui-DInOpaYF.js.map → ui-CKNPpz7q.js.map} +1 -1
- package/dist/assets/vendor-DoNZuFhn.js +1247 -0
- package/dist/assets/vendor-DoNZuFhn.js.map +1 -0
- package/dist/index.html +7 -7
- package/dist/openclaw/local-runtime.js +16 -0
- package/dist/openclaw/routes.d.ts +27 -0
- package/dist/openclaw/routes.js +16 -12
- package/dist/server/server/migrations/037_workbench_public_inputs_and_run_inputs.sql +5 -0
- package/dist/server/server/migrations/038_data_management_settings.sql +11 -0
- package/dist/server/server/migrations/039_life_force_and_action_points.sql +114 -0
- package/dist/server/server/migrations/040_screen_time_domain.sql +89 -0
- package/dist/server/server/migrations/041_companion_source_states.sql +21 -0
- package/dist/server/server/migrations/042_movement_boxes.sql +47 -0
- package/dist/server/server/migrations/043_movement_box_overlap_overrides.sql +26 -0
- package/dist/server/server/src/app.js +1684 -117
- package/dist/server/server/src/connectors/box-registry.js +44 -9
- package/dist/server/server/src/data-management-types.js +107 -0
- package/dist/server/server/src/db.js +68 -4
- package/dist/server/server/src/demo-data.js +2 -2
- package/dist/server/server/src/health.js +702 -18
- package/dist/server/server/src/managers/platform/llm-manager.js +7 -4
- package/dist/server/server/src/managers/platform/mock-workbench-provider.js +149 -0
- package/dist/server/server/src/managers/platform/secrets-manager.js +18 -1
- package/dist/server/server/src/managers/runtime.js +9 -0
- package/dist/server/server/src/movement.js +1971 -112
- package/dist/server/server/src/openapi.js +489 -1
- package/dist/server/server/src/psyche-types.js +9 -1
- package/dist/server/server/src/repositories/activity-events.js +8 -0
- package/dist/server/server/src/repositories/ai-connectors.js +522 -74
- package/dist/server/server/src/repositories/habits.js +37 -1
- package/dist/server/server/src/repositories/model-settings.js +13 -3
- package/dist/server/server/src/repositories/notes.js +3 -0
- package/dist/server/server/src/repositories/settings.js +380 -18
- package/dist/server/server/src/repositories/tasks.js +170 -10
- package/dist/server/server/src/runtime-data-root.js +82 -0
- package/dist/server/server/src/screen-time.js +802 -0
- package/dist/server/server/src/services/data-management.js +788 -0
- package/dist/server/server/src/services/entity-crud.js +205 -2
- package/dist/server/server/src/services/knowledge-graph.js +1455 -0
- package/dist/server/server/src/services/life-force-model.js +197 -0
- package/dist/server/server/src/services/life-force.js +1270 -0
- package/dist/server/server/src/services/psyche-observation-calendar.js +383 -16
- package/dist/server/server/src/types.js +286 -13
- package/dist/server/server/src/web.js +228 -13
- package/dist/server/src/components/customization/utility-widgets.js +136 -27
- package/dist/server/src/components/ui/info-tooltip.js +25 -0
- package/dist/server/src/components/workbench-boxes/calendar/calendar-boxes.js +78 -0
- package/dist/server/src/components/workbench-boxes/goals/goals-boxes.js +62 -0
- package/dist/server/src/components/workbench-boxes/habits/habits-boxes.js +62 -0
- package/dist/server/src/components/workbench-boxes/health/health-boxes.js +63 -8
- package/dist/server/src/components/workbench-boxes/insights/insights-boxes.js +50 -0
- package/dist/server/src/components/workbench-boxes/kanban/kanban-boxes.js +62 -54
- package/dist/server/src/components/workbench-boxes/movement/movement-boxes.js +18 -8
- package/dist/server/src/components/workbench-boxes/notes/notes-boxes.js +56 -38
- package/dist/server/src/components/workbench-boxes/overview/overview-boxes.js +65 -0
- package/dist/server/src/components/workbench-boxes/preferences/preferences-boxes.js +78 -0
- package/dist/server/src/components/workbench-boxes/projects/projects-boxes.js +35 -30
- package/dist/server/src/components/workbench-boxes/psyche/psyche-boxes.js +88 -0
- package/dist/server/src/components/workbench-boxes/questionnaires/questionnaires-boxes.js +61 -0
- package/dist/server/src/components/workbench-boxes/review/review-boxes.js +53 -0
- package/dist/server/src/components/workbench-boxes/shared/define-workbench-box.js +3 -1
- package/dist/server/src/components/workbench-boxes/shared/generic-node-view.js +39 -3
- package/dist/server/src/components/workbench-boxes/strategies/strategies-boxes.js +62 -0
- package/dist/server/src/components/workbench-boxes/tasks/tasks-boxes.js +76 -0
- package/dist/server/src/components/workbench-boxes/today/today-boxes.js +47 -32
- package/dist/server/src/components/workbench-boxes/wiki/wiki-boxes.js +60 -0
- package/dist/server/src/lib/api.js +280 -21
- package/dist/server/src/lib/data-management-types.js +1 -0
- package/dist/server/src/lib/entity-visuals.js +279 -0
- package/dist/server/src/lib/knowledge-graph-types.js +276 -0
- package/dist/server/src/lib/knowledge-graph.js +470 -0
- package/dist/server/src/lib/schemas.js +4 -0
- package/dist/server/src/lib/snapshot-normalizer.js +43 -1
- package/dist/server/src/lib/workbench/contracts.js +229 -0
- package/dist/server/src/lib/workbench/nodes.js +200 -0
- package/dist/server/src/lib/workbench/registry.js +52 -5
- package/dist/server/src/lib/workbench/runtime.js +254 -38
- package/dist/server/src/lib/workbench/tool-catalog.js +68 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/server/migrations/037_workbench_public_inputs_and_run_inputs.sql +5 -0
- package/server/migrations/038_data_management_settings.sql +11 -0
- package/server/migrations/039_life_force_and_action_points.sql +114 -0
- package/server/migrations/040_screen_time_domain.sql +89 -0
- package/server/migrations/041_companion_source_states.sql +21 -0
- package/server/migrations/042_movement_boxes.sql +47 -0
- package/server/migrations/043_movement_box_overlap_overrides.sql +26 -0
- package/skills/forge-openclaw/SKILL.md +24 -11
- package/skills/forge-openclaw/entity_conversation_playbooks.md +210 -34
- package/skills/forge-openclaw/psyche_entity_playbooks.md +113 -17
- package/dist/assets/index-Ro0ZF_az.css +0 -1
- package/dist/assets/index-ytlpSj23.js +0 -79
- package/dist/assets/index-ytlpSj23.js.map +0 -1
- package/dist/assets/vendor-lE3tZJcC.js +0 -876
- package/dist/assets/vendor-lE3tZJcC.js.map +0 -1
|
@@ -1,876 +0,0 @@
|
|
|
1
|
-
var S$=Object.defineProperty;var HC=e=>{throw TypeError(e)};var _$=(e,t,n)=>t in e?S$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ju=(e,t,n)=>_$(e,typeof t!="symbol"?t+"":t,n),cb=(e,t,n)=>t.has(e)||HC("Cannot "+n);var Z=(e,t,n)=>(cb(e,t,"read from private field"),n?n.call(e):t.get(e)),Ue=(e,t,n)=>t.has(e)?HC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Me=(e,t,n,r)=>(cb(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),We=(e,t,n)=>(cb(e,t,"access private method"),n);var Om=(e,t,n,r)=>({set _(i){Me(e,t,i,n)},get _(){return Z(e,t,r)}});function E$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fb={exports:{}},Jf={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var VC;function A$(){if(VC)return Jf;VC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var l=null;if(a!==void 0&&(l=""+a),i.key!==void 0&&(l=""+i.key),"key"in i){a={};for(var u in i)u!=="key"&&(a[u]=i[u])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:a}}return Jf.Fragment=t,Jf.jsx=n,Jf.jsxs=n,Jf}var FC;function O$(){return FC||(FC=1,fb.exports=A$()),fb.exports}var ye=O$(),db={exports:{}},Ye={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var KC;function M$(){if(KC)return Ye;KC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function v($){return $===null||typeof $!="object"?null:($=y&&$[y]||$["@@iterator"],typeof $=="function"?$:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function S($,K,J){this.props=$,this.context=K,this.refs=w,this.updater=J||g}S.prototype.isReactComponent={},S.prototype.setState=function($,K){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,$,K,"setState")},S.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function M(){}M.prototype=S.prototype;function A($,K,J){this.props=$,this.context=K,this.refs=w,this.updater=J||g}var O=A.prototype=new M;O.constructor=A,b(O,S.prototype),O.isPureReactComponent=!0;var k=Array.isArray;function C(){}var T={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function D($,K,J){var te=J.ref;return{$$typeof:e,type:$,key:K,ref:te!==void 0?te:null,props:J}}function z($,K){return D($.type,K,$.props)}function R($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function N($){var K={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(J){return K[J]})}var B=/\/+/g;function I($,K){return typeof $=="object"&&$!==null&&$.key!=null?N(""+$.key):K.toString(36)}function q($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(C,C):($.status="pending",$.then(function(K){$.status==="pending"&&($.status="fulfilled",$.value=K)},function(K){$.status==="pending"&&($.status="rejected",$.reason=K)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function L($,K,J,te,ce){var he=typeof $;(he==="undefined"||he==="boolean")&&($=null);var de=!1;if($===null)de=!0;else switch(he){case"bigint":case"string":case"number":de=!0;break;case"object":switch($.$$typeof){case e:case t:de=!0;break;case h:return de=$._init,L(de($._payload),K,J,te,ce)}}if(de)return ce=ce($),de=te===""?"."+I($,0):te,k(ce)?(J="",de!=null&&(J=de.replace(B,"$&/")+"/"),L(ce,K,J,"",function(pe){return pe})):ce!=null&&(R(ce)&&(ce=z(ce,J+(ce.key==null||$&&$.key===ce.key?"":(""+ce.key).replace(B,"$&/")+"/")+de)),K.push(ce)),1;de=0;var ie=te===""?".":te+":";if(k($))for(var W=0;W<$.length;W++)te=$[W],he=ie+I(te,W),de+=L(te,K,J,he,ce);else if(W=v($),typeof W=="function")for($=W.call($),W=0;!(te=$.next()).done;)te=te.value,he=ie+I(te,W++),de+=L(te,K,J,he,ce);else if(he==="object"){if(typeof $.then=="function")return L(q($),K,J,te,ce);throw K=String($),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return de}function V($,K,J){if($==null)return $;var te=[],ce=0;return L($,te,"","",function(he){return K.call(J,he,ce++)}),te}function F($){if($._status===-1){var K=$._result;K=K(),K.then(function(J){($._status===0||$._status===-1)&&($._status=1,$._result=J)},function(J){($._status===0||$._status===-1)&&($._status=2,$._result=J)}),$._status===-1&&($._status=0,$._result=K)}if($._status===1)return $._result.default;throw $._result}var H=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},Y={map:V,forEach:function($,K,J){V($,function(){K.apply(this,arguments)},J)},count:function($){var K=0;return V($,function(){K++}),K},toArray:function($){return V($,function(K){return K})||[]},only:function($){if(!R($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return Ye.Activity=p,Ye.Children=Y,Ye.Component=S,Ye.Fragment=n,Ye.Profiler=i,Ye.PureComponent=A,Ye.StrictMode=r,Ye.Suspense=f,Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Ye.__COMPILER_RUNTIME={__proto__:null,c:function($){return T.H.useMemoCache($)}},Ye.cache=function($){return function(){return $.apply(null,arguments)}},Ye.cacheSignal=function(){return null},Ye.cloneElement=function($,K,J){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var te=b({},$.props),ce=$.key;if(K!=null)for(he in K.key!==void 0&&(ce=""+K.key),K)!P.call(K,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&K.ref===void 0||(te[he]=K[he]);var he=arguments.length-2;if(he===1)te.children=J;else if(1<he){for(var de=Array(he),ie=0;ie<he;ie++)de[ie]=arguments[ie+2];te.children=de}return D($.type,ce,te)},Ye.createContext=function($){return $={$$typeof:l,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:a,_context:$},$},Ye.createElement=function($,K,J){var te,ce={},he=null;if(K!=null)for(te in K.key!==void 0&&(he=""+K.key),K)P.call(K,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ce[te]=K[te]);var de=arguments.length-2;if(de===1)ce.children=J;else if(1<de){for(var ie=Array(de),W=0;W<de;W++)ie[W]=arguments[W+2];ce.children=ie}if($&&$.defaultProps)for(te in de=$.defaultProps,de)ce[te]===void 0&&(ce[te]=de[te]);return D($,he,ce)},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function($){return{$$typeof:u,render:$}},Ye.isValidElement=R,Ye.lazy=function($){return{$$typeof:h,_payload:{_status:-1,_result:$},_init:F}},Ye.memo=function($,K){return{$$typeof:d,type:$,compare:K===void 0?null:K}},Ye.startTransition=function($){var K=T.T,J={};T.T=J;try{var te=$(),ce=T.S;ce!==null&&ce(J,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(C,H)}catch(he){H(he)}finally{K!==null&&J.types!==null&&(K.types=J.types),T.T=K}},Ye.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Ye.use=function($){return T.H.use($)},Ye.useActionState=function($,K,J){return T.H.useActionState($,K,J)},Ye.useCallback=function($,K){return T.H.useCallback($,K)},Ye.useContext=function($){return T.H.useContext($)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function($,K){return T.H.useDeferredValue($,K)},Ye.useEffect=function($,K){return T.H.useEffect($,K)},Ye.useEffectEvent=function($){return T.H.useEffectEvent($)},Ye.useId=function(){return T.H.useId()},Ye.useImperativeHandle=function($,K,J){return T.H.useImperativeHandle($,K,J)},Ye.useInsertionEffect=function($,K){return T.H.useInsertionEffect($,K)},Ye.useLayoutEffect=function($,K){return T.H.useLayoutEffect($,K)},Ye.useMemo=function($,K){return T.H.useMemo($,K)},Ye.useOptimistic=function($,K){return T.H.useOptimistic($,K)},Ye.useReducer=function($,K,J){return T.H.useReducer($,K,J)},Ye.useRef=function($){return T.H.useRef($)},Ye.useState=function($){return T.H.useState($)},Ye.useSyncExternalStore=function($,K,J){return T.H.useSyncExternalStore($,K,J)},Ye.useTransition=function(){return T.H.useTransition()},Ye.version="19.2.4",Ye}var YC;function qc(){return YC||(YC=1,db.exports=M$()),db.exports}var E=qc();const rn=ui(E),C$=E$({__proto__:null,default:rn},[E]);var hb={exports:{}},ed={},pb={exports:{}},mb={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var GC;function k$(){return GC||(GC=1,(function(e){function t(L,V){var F=L.length;L.push(V);e:for(;0<F;){var H=F-1>>>1,Y=L[H];if(0<i(Y,V))L[H]=V,L[F]=Y,F=H;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var V=L[0],F=L.pop();if(F!==V){L[0]=F;e:for(var H=0,Y=L.length,$=Y>>>1;H<$;){var K=2*(H+1)-1,J=L[K],te=K+1,ce=L[te];if(0>i(J,F))te<Y&&0>i(ce,J)?(L[H]=ce,L[te]=F,H=te):(L[H]=J,L[K]=F,H=K);else if(te<Y&&0>i(ce,F))L[H]=ce,L[te]=F,H=te;else break e}}return V}function i(L,V){var F=L.sortIndex-V.sortIndex;return F!==0?F:L.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var f=[],d=[],h=1,p=null,y=3,v=!1,g=!1,b=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function O(L){for(var V=n(d);V!==null;){if(V.callback===null)r(d);else if(V.startTime<=L)r(d),V.sortIndex=V.expirationTime,t(f,V);else break;V=n(d)}}function k(L){if(b=!1,O(L),!g)if(n(f)!==null)g=!0,C||(C=!0,N());else{var V=n(d);V!==null&&q(k,V.startTime-L)}}var C=!1,T=-1,P=5,D=-1;function z(){return w?!0:!(e.unstable_now()-D<P)}function R(){if(w=!1,C){var L=e.unstable_now();D=L;var V=!0;try{e:{g=!1,b&&(b=!1,M(T),T=-1),v=!0;var F=y;try{t:{for(O(L),p=n(f);p!==null&&!(p.expirationTime>L&&z());){var H=p.callback;if(typeof H=="function"){p.callback=null,y=p.priorityLevel;var Y=H(p.expirationTime<=L);if(L=e.unstable_now(),typeof Y=="function"){p.callback=Y,O(L),V=!0;break t}p===n(f)&&r(f),O(L)}else r(f);p=n(f)}if(p!==null)V=!0;else{var $=n(d);$!==null&&q(k,$.startTime-L),V=!1}}break e}finally{p=null,y=F,v=!1}V=void 0}}finally{V?N():C=!1}}}var N;if(typeof A=="function")N=function(){A(R)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,I=B.port2;B.port1.onmessage=R,N=function(){I.postMessage(null)}}else N=function(){S(R,0)};function q(L,V){T=S(function(){L(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.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"):P=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(L){switch(y){case 1:case 2:case 3:var V=3;break;default:V=y}var F=y;y=V;try{return L()}finally{y=F}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var F=y;y=L;try{return V()}finally{y=F}},e.unstable_scheduleCallback=function(L,V,F){var H=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?H+F:H):F=H,L){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=F+Y,L={id:h++,callback:V,priorityLevel:L,startTime:F,expirationTime:Y,sortIndex:-1},F>H?(L.sortIndex=F,t(d,L),n(f)===null&&L===n(d)&&(b?(M(T),T=-1):b=!0,q(k,F-H))):(L.sortIndex=Y,t(f,L),g||v||(g=!0,C||(C=!0,N()))),L},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(L){var V=y;return function(){var F=y;y=V;try{return L.apply(this,arguments)}finally{y=F}}}})(mb)),mb}var QC;function T$(){return QC||(QC=1,pb.exports=k$()),pb.exports}var yb={exports:{}},Xn={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var ZC;function P$(){if(ZC)return Xn;ZC=1;var e=qc();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)d+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(f,d,h){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:f,containerInfo:d,implementation:h}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Xn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Xn.createPortal=function(f,d){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return a(f,d,null,h)},Xn.flushSync=function(f){var d=l.T,h=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=h,r.d.f()}},Xn.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},Xn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Xn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var h=d.as,p=u(h,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;h==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:v}):h==="script"&&r.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Xn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var h=u(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},Xn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var h=d.as,p=u(h,d.crossOrigin);r.d.L(f,h,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Xn.preloadModule=function(f,d){if(typeof f=="string")if(d){var h=u(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:h,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},Xn.requestFormReset=function(f){r.d.r(f)},Xn.unstable_batchedUpdates=function(f,d){return f(d)},Xn.useFormState=function(f,d,h){return l.H.useFormState(f,d,h)},Xn.useFormStatus=function(){return l.H.useHostTransitionStatus()},Xn.version="19.2.4",Xn}var XC;function F4(){if(XC)return yb.exports;XC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yb.exports=P$(),yb.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var WC;function N$(){if(WC)return ed;WC=1;var e=T$(),t=qc(),n=F4();function r(o){var s="https://react.dev/errors/"+o;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var s=o,c=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(c=s.return),o=s.return;while(o)}return s.tag===3?c:null}function l(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function u(o){if(o.tag===31){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function f(o){if(a(o)!==o)throw Error(r(188))}function d(o){var s=o.alternate;if(!s){if(s=a(o),s===null)throw Error(r(188));return s!==o?null:o}for(var c=o,m=s;;){var x=c.return;if(x===null)break;var _=x.alternate;if(_===null){if(m=x.return,m!==null){c=m;continue}break}if(x.child===_.child){for(_=x.child;_;){if(_===c)return f(x),o;if(_===m)return f(x),s;_=_.sibling}throw Error(r(188))}if(c.return!==m.return)c=x,m=_;else{for(var j=!1,U=x.child;U;){if(U===c){j=!0,c=x,m=_;break}if(U===m){j=!0,m=x,c=_;break}U=U.sibling}if(!j){for(U=_.child;U;){if(U===c){j=!0,c=_,m=x;break}if(U===m){j=!0,m=_,c=x;break}U=U.sibling}if(!j)throw Error(r(189))}}if(c.alternate!==m)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?o:s}function h(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o;for(o=o.child;o!==null;){if(s=h(o),s!==null)return s;o=o.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),A=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function N(o){return o===null||typeof o!="object"?null:(o=R&&o[R]||o["@@iterator"],typeof o=="function"?o:null)}var B=Symbol.for("react.client.reference");function I(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===B?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case S:return"Profiler";case w:return"StrictMode";case k:return"Suspense";case C:return"SuspenseList";case D:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case g:return"Portal";case A:return o.displayName||"Context";case M:return(o._context.displayName||"Context")+".Consumer";case O:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case T:return s=o.displayName||null,s!==null?s:I(o.type)||"Memo";case P:s=o._payload,o=o._init;try{return I(o(s))}catch{}}return null}var q=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},H=[],Y=-1;function $(o){return{current:o}}function K(o){0>Y||(o.current=H[Y],H[Y]=null,Y--)}function J(o,s){Y++,H[Y]=o.current,o.current=s}var te=$(null),ce=$(null),he=$(null),de=$(null);function ie(o,s){switch(J(he,s),J(ce,o),J(te,null),s.nodeType){case 9:case 11:o=(o=s.documentElement)&&(o=o.namespaceURI)?dC(o):0;break;default:if(o=s.tagName,s=s.namespaceURI)s=dC(s),o=hC(s,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(te),J(te,o)}function W(){K(te),K(ce),K(he)}function pe(o){o.memoizedState!==null&&J(de,o);var s=te.current,c=hC(s,o.type);s!==c&&(J(ce,o),J(te,c))}function ge(o){ce.current===o&&(K(te),K(ce)),de.current===o&&(K(de),Qf._currentValue=F)}var ee,Ae;function Se(o){if(ee===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);ee=s&&s[1]||"",Ae=-1<c.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+ee+o+Ae}var Ve=!1;function Ne(o,s){if(!o||Ve)return"";Ve=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(s){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(me){var ue=me}Reflect.construct(o,[],xe)}else{try{xe.call()}catch(me){ue=me}o.call(xe.prototype)}}else{try{throw Error()}catch(me){ue=me}(xe=o())&&typeof xe.catch=="function"&&xe.catch(function(){})}}catch(me){if(me&&ue&&typeof me.stack=="string")return[me.stack,ue.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var x=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");x&&x.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=m.DetermineComponentFrameRoot(),j=_[0],U=_[1];if(j&&U){var G=j.split(`
|
|
44
|
-
`),se=U.split(`
|
|
45
|
-
`);for(x=m=0;m<G.length&&!G[m].includes("DetermineComponentFrameRoot");)m++;for(;x<se.length&&!se[x].includes("DetermineComponentFrameRoot");)x++;if(m===G.length||x===se.length)for(m=G.length-1,x=se.length-1;1<=m&&0<=x&&G[m]!==se[x];)x--;for(;1<=m&&0<=x;m--,x--)if(G[m]!==se[x]){if(m!==1||x!==1)do if(m--,x--,0>x||G[m]!==se[x]){var ve=`
|
|
46
|
-
`+G[m].replace(" at new "," at ");return o.displayName&&ve.includes("<anonymous>")&&(ve=ve.replace("<anonymous>",o.displayName)),ve}while(1<=m&&0<=x);break}}}finally{Ve=!1,Error.prepareStackTrace=c}return(c=o?o.displayName||o.name:"")?Se(c):""}function it(o,s){switch(o.tag){case 26:case 27:case 5:return Se(o.type);case 16:return Se("Lazy");case 13:return o.child!==s&&s!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return Ne(o.type,!1);case 11:return Ne(o.type.render,!1);case 1:return Ne(o.type,!0);case 31:return Se("Activity");default:return""}}function Nt(o){try{var s="",c=null;do s+=it(o,c),c=o,o=o.return;while(o);return s}catch(m){return`
|
|
47
|
-
Error generating stack: `+m.message+`
|
|
48
|
-
`+m.stack}}var Ft=Object.prototype.hasOwnProperty,Gn=e.unstable_scheduleCallback,Qn=e.unstable_cancelCallback,Q=e.unstable_shouldYield,re=e.unstable_requestPaint,ae=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,we=e.unstable_ImmediatePriority,_e=e.unstable_UserBlockingPriority,Te=e.unstable_NormalPriority,Ke=e.unstable_LowPriority,at=e.unstable_IdlePriority,In=e.log,fr=e.unstable_setDisableYieldValue,Kt=null,zn=null;function dr(o){if(typeof In=="function"&&fr(o),zn&&typeof zn.setStrictMode=="function")try{zn.setStrictMode(Kt,o)}catch{}}var yn=Math.clz32?Math.clz32:af,rf=Math.log,Zl=Math.LN2;function af(o){return o>>>=0,o===0?32:31-(rf(o)/Zl|0)|0}var ua=256,Xl=262144,Wl=4194304;function ca(o){var s=o&42;if(s!==0)return s;switch(o&-o){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 o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Jl(o,s,c){var m=o.pendingLanes;if(m===0)return 0;var x=0,_=o.suspendedLanes,j=o.pingedLanes;o=o.warmLanes;var U=m&134217727;return U!==0?(m=U&~_,m!==0?x=ca(m):(j&=U,j!==0?x=ca(j):c||(c=U&~o,c!==0&&(x=ca(c))))):(U=m&~_,U!==0?x=ca(U):j!==0?x=ca(j):c||(c=m&~o,c!==0&&(x=ca(c)))),x===0?0:s!==0&&s!==x&&(s&_)===0&&(_=x&-x,c=s&-s,_>=c||_===32&&(c&4194048)!==0)?s:x}function Cs(o,s){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&s)===0}function Jg(o,s){switch(o){case 1:case 2:case 4:case 8:case 64:return s+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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rp(){var o=Wl;return Wl<<=1,(Wl&62914560)===0&&(Wl=4194304),o}function of(o){for(var s=[],c=0;31>c;c++)s.push(o);return s}function ks(o,s){o.pendingLanes|=s,s!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function e0(o,s,c,m,x,_){var j=o.pendingLanes;o.pendingLanes=c,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=c,o.entangledLanes&=c,o.errorRecoveryDisabledLanes&=c,o.shellSuspendCounter=0;var U=o.entanglements,G=o.expirationTimes,se=o.hiddenUpdates;for(c=j&~c;0<c;){var ve=31-yn(c),xe=1<<ve;U[ve]=0,G[ve]=-1;var ue=se[ve];if(ue!==null)for(se[ve]=null,ve=0;ve<ue.length;ve++){var me=ue[ve];me!==null&&(me.lane&=-536870913)}c&=~xe}m!==0&&ip(o,m,0),_!==0&&x===0&&o.tag!==0&&(o.suspendedLanes|=_&~(j&~s))}function ip(o,s,c){o.pendingLanes|=s,o.suspendedLanes&=~s;var m=31-yn(s);o.entangledLanes|=s,o.entanglements[m]=o.entanglements[m]|1073741824|c&261930}function ap(o,s){var c=o.entangledLanes|=s;for(o=o.entanglements;c;){var m=31-yn(c),x=1<<m;x&s|o[m]&s&&(o[m]|=s),c&=~x}}function op(o,s){var c=s&-s;return c=(c&42)!==0?1:sf(c),(c&(o.suspendedLanes|s))!==0?0:c}function sf(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=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:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function lf(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function sp(){var o=V.p;return o!==0?o:(o=window.event,o===void 0?32:IC(o.type))}function lp(o,s){var c=V.p;try{return V.p=o,s()}finally{V.p=c}}var Ri=Math.random().toString(36).slice(2),vn="__reactFiber$"+Ri,Zn="__reactProps$"+Ri,fa="__reactContainer$"+Ri,eu="__reactEvents$"+Ri,up="__reactListeners$"+Ri,t0="__reactHandles$"+Ri,cp="__reactResources$"+Ri,Ts="__reactMarker$"+Ri;function uf(o){delete o[vn],delete o[Zn],delete o[eu],delete o[up],delete o[t0]}function mo(o){var s=o[vn];if(s)return s;for(var c=o.parentNode;c;){if(s=c[fa]||c[vn]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(o=xC(o);o!==null;){if(c=o[vn])return c;o=xC(o)}return s}o=c,c=o.parentNode}return null}function yo(o){if(o=o[vn]||o[fa]){var s=o.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return o}return null}function vo(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o.stateNode;throw Error(r(33))}function go(o){var s=o[cp];return s||(s=o[cp]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function sn(o){o[Ts]=!0}var fp=new Set,dp={};function da(o,s){bo(o,s),bo(o+"Capture",s)}function bo(o,s){for(dp[o]=s,o=0;o<s.length;o++)fp.add(s[o])}var n0=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]*$"),cf={},hp={};function r0(o){return Ft.call(hp,o)?!0:Ft.call(cf,o)?!1:n0.test(o)?hp[o]=!0:(cf[o]=!0,!1)}function tu(o,s,c){if(r0(s))if(c===null)o.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":o.removeAttribute(s);return;case"boolean":var m=s.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){o.removeAttribute(s);return}}o.setAttribute(s,""+c)}}function nu(o,s,c){if(c===null)o.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttribute(s,""+c)}}function hi(o,s,c,m){if(m===null)o.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(c);return}o.setAttributeNS(s,c,""+m)}}function hr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function pp(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function i0(o,s,c){var m=Object.getOwnPropertyDescriptor(o.constructor.prototype,s);if(!o.hasOwnProperty(s)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var x=m.get,_=m.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return x.call(this)},set:function(j){c=""+j,_.call(this,j)}}),Object.defineProperty(o,s,{enumerable:m.enumerable}),{getValue:function(){return c},setValue:function(j){c=""+j},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function xo(o){if(!o._valueTracker){var s=pp(o)?"checked":"value";o._valueTracker=i0(o,s,""+o[s])}}function mp(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var c=s.getValue(),m="";return o&&(m=pp(o)?o.checked?"true":"false":o.value),o=m,o!==c?(s.setValue(o),!0):!1}function Ps(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var a0=/[\n"\\]/g;function pr(o){return o.replace(a0,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Ns(o,s,c,m,x,_,j,U){o.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?o.type=j:o.removeAttribute("type"),s!=null?j==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+hr(s)):o.value!==""+hr(s)&&(o.value=""+hr(s)):j!=="submit"&&j!=="reset"||o.removeAttribute("value"),s!=null?ff(o,j,hr(s)):c!=null?ff(o,j,hr(c)):m!=null&&o.removeAttribute("value"),x==null&&_!=null&&(o.defaultChecked=!!_),x!=null&&(o.checked=x&&typeof x!="function"&&typeof x!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?o.name=""+hr(U):o.removeAttribute("name")}function yp(o,s,c,m,x,_,j,U){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(o.type=_),s!=null||c!=null){if(!(_!=="submit"&&_!=="reset"||s!=null)){xo(o);return}c=c!=null?""+hr(c):"",s=s!=null?""+hr(s):c,U||s===o.value||(o.value=s),o.defaultValue=s}m=m??x,m=typeof m!="function"&&typeof m!="symbol"&&!!m,o.checked=U?o.checked:!!m,o.defaultChecked=!!m,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(o.name=j),xo(o)}function ff(o,s,c){s==="number"&&Ps(o.ownerDocument)===o||o.defaultValue===""+c||(o.defaultValue=""+c)}function ha(o,s,c,m){if(o=o.options,s){s={};for(var x=0;x<c.length;x++)s["$"+c[x]]=!0;for(c=0;c<o.length;c++)x=s.hasOwnProperty("$"+o[c].value),o[c].selected!==x&&(o[c].selected=x),x&&m&&(o[c].defaultSelected=!0)}else{for(c=""+hr(c),s=null,x=0;x<o.length;x++){if(o[x].value===c){o[x].selected=!0,m&&(o[x].defaultSelected=!0);return}s!==null||o[x].disabled||(s=o[x])}s!==null&&(s.selected=!0)}}function sA(o,s,c){if(s!=null&&(s=""+hr(s),s!==o.value&&(o.value=s),c==null)){o.defaultValue!==s&&(o.defaultValue=s);return}o.defaultValue=c!=null?""+hr(c):""}function lA(o,s,c,m){if(s==null){if(m!=null){if(c!=null)throw Error(r(92));if(q(m)){if(1<m.length)throw Error(r(93));m=m[0]}c=m}c==null&&(c=""),s=c}c=hr(s),o.defaultValue=c,m=o.textContent,m===c&&m!==""&&m!==null&&(o.value=m),xo(o)}function ru(o,s){if(s){var c=o.firstChild;if(c&&c===o.lastChild&&c.nodeType===3){c.nodeValue=s;return}}o.textContent=s}var vB=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(" "));function uA(o,s,c){var m=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?m?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="":m?o.setProperty(s,c):typeof c!="number"||c===0||vB.has(s)?s==="float"?o.cssFloat=c:o[s]=(""+c).trim():o[s]=c+"px"}function cA(o,s,c){if(s!=null&&typeof s!="object")throw Error(r(62));if(o=o.style,c!=null){for(var m in c)!c.hasOwnProperty(m)||s!=null&&s.hasOwnProperty(m)||(m.indexOf("--")===0?o.setProperty(m,""):m==="float"?o.cssFloat="":o[m]="");for(var x in s)m=s[x],s.hasOwnProperty(x)&&c[x]!==m&&uA(o,x,m)}else for(var _ in s)s.hasOwnProperty(_)&&uA(o,_,s[_])}function o0(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gB=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"]]),bB=/^[\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;function vp(o){return bB.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function pa(){}var s0=null;function l0(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var iu=null,au=null;function fA(o){var s=yo(o);if(s&&(o=s.stateNode)){var c=o[Zn]||null;e:switch(o=s.stateNode,s.type){case"input":if(Ns(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=o;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+pr(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var m=c[s];if(m!==o&&m.form===o.form){var x=m[Zn]||null;if(!x)throw Error(r(90));Ns(m,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(s=0;s<c.length;s++)m=c[s],m.form===o.form&&mp(m)}break e;case"textarea":sA(o,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&ha(o,!!c.multiple,s,!1)}}}var u0=!1;function dA(o,s,c){if(u0)return o(s,c);u0=!0;try{var m=o(s);return m}finally{if(u0=!1,(iu!==null||au!==null)&&(im(),iu&&(s=iu,o=au,au=iu=null,fA(s),o)))for(s=0;s<o.length;s++)fA(o[s])}}function df(o,s){var c=o.stateNode;if(c===null)return null;var m=c[Zn]||null;if(m===null)return null;c=m[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(o=o.type,m=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!m;break e;default:o=!1}if(o)return null;if(c&&typeof c!="function")throw Error(r(231,s,typeof c));return c}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c0=!1;if(ma)try{var hf={};Object.defineProperty(hf,"passive",{get:function(){c0=!0}}),window.addEventListener("test",hf,hf),window.removeEventListener("test",hf,hf)}catch{c0=!1}var wo=null,f0=null,gp=null;function hA(){if(gp)return gp;var o,s=f0,c=s.length,m,x="value"in wo?wo.value:wo.textContent,_=x.length;for(o=0;o<c&&s[o]===x[o];o++);var j=c-o;for(m=1;m<=j&&s[c-m]===x[_-m];m++);return gp=x.slice(o,1<m?1-m:void 0)}function bp(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function xp(){return!0}function pA(){return!1}function mr(o){function s(c,m,x,_,j){this._reactName=c,this._targetInst=x,this.type=m,this.nativeEvent=_,this.target=j,this.currentTarget=null;for(var U in o)o.hasOwnProperty(U)&&(c=o[U],this[U]=c?c(_):_[U]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?xp:pA,this.isPropagationStopped=pA,this}return p(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=xp)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=xp)},persist:function(){},isPersistent:xp}),s}var Rs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wp=mr(Rs),pf=p({},Rs,{view:0,detail:0}),xB=mr(pf),d0,h0,mf,Sp=p({},pf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:m0,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==mf&&(mf&&o.type==="mousemove"?(d0=o.screenX-mf.screenX,h0=o.screenY-mf.screenY):h0=d0=0,mf=o),d0)},movementY:function(o){return"movementY"in o?o.movementY:h0}}),mA=mr(Sp),wB=p({},Sp,{dataTransfer:0}),SB=mr(wB),_B=p({},pf,{relatedTarget:0}),p0=mr(_B),EB=p({},Rs,{animationName:0,elapsedTime:0,pseudoElement:0}),AB=mr(EB),OB=p({},Rs,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),MB=mr(OB),CB=p({},Rs,{data:0}),yA=mr(CB),kB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TB={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"},PB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function NB(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=PB[o])?!!s[o]:!1}function m0(){return NB}var RB=p({},pf,{key:function(o){if(o.key){var s=kB[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=bp(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?TB[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:m0,charCode:function(o){return o.type==="keypress"?bp(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?bp(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),DB=mr(RB),jB=p({},Sp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vA=mr(jB),IB=p({},pf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:m0}),zB=mr(IB),LB=p({},Rs,{propertyName:0,elapsedTime:0,pseudoElement:0}),BB=mr(LB),$B=p({},Sp,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),UB=mr($B),qB=p({},Rs,{newState:0,oldState:0}),HB=mr(qB),VB=[9,13,27,32],y0=ma&&"CompositionEvent"in window,yf=null;ma&&"documentMode"in document&&(yf=document.documentMode);var FB=ma&&"TextEvent"in window&&!yf,gA=ma&&(!y0||yf&&8<yf&&11>=yf),bA=" ",xA=!1;function wA(o,s){switch(o){case"keyup":return VB.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function SA(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var ou=!1;function KB(o,s){switch(o){case"compositionend":return SA(s);case"keypress":return s.which!==32?null:(xA=!0,bA);case"textInput":return o=s.data,o===bA&&xA?null:o;default:return null}}function YB(o,s){if(ou)return o==="compositionend"||!y0&&wA(o,s)?(o=hA(),gp=f0=wo=null,ou=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return gA&&s.locale!=="ko"?null:s.data;default:return null}}var GB={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _A(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!GB[o.type]:s==="textarea"}function EA(o,s,c,m){iu?au?au.push(m):au=[m]:iu=m,s=fm(s,"onChange"),0<s.length&&(c=new wp("onChange","change",null,c,m),o.push({event:c,listeners:s}))}var vf=null,gf=null;function QB(o){oC(o,0)}function _p(o){var s=vo(o);if(mp(s))return o}function AA(o,s){if(o==="change")return s}var OA=!1;if(ma){var v0;if(ma){var g0="oninput"in document;if(!g0){var MA=document.createElement("div");MA.setAttribute("oninput","return;"),g0=typeof MA.oninput=="function"}v0=g0}else v0=!1;OA=v0&&(!document.documentMode||9<document.documentMode)}function CA(){vf&&(vf.detachEvent("onpropertychange",kA),gf=vf=null)}function kA(o){if(o.propertyName==="value"&&_p(gf)){var s=[];EA(s,gf,o,l0(o)),dA(QB,s)}}function ZB(o,s,c){o==="focusin"?(CA(),vf=s,gf=c,vf.attachEvent("onpropertychange",kA)):o==="focusout"&&CA()}function XB(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return _p(gf)}function WB(o,s){if(o==="click")return _p(s)}function JB(o,s){if(o==="input"||o==="change")return _p(s)}function e7(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var Mr=typeof Object.is=="function"?Object.is:e7;function bf(o,s){if(Mr(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var c=Object.keys(o),m=Object.keys(s);if(c.length!==m.length)return!1;for(m=0;m<c.length;m++){var x=c[m];if(!Ft.call(s,x)||!Mr(o[x],s[x]))return!1}return!0}function TA(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function PA(o,s){var c=TA(o);o=0;for(var m;c;){if(c.nodeType===3){if(m=o+c.textContent.length,o<=s&&m>=s)return{node:c,offset:s-o};o=m}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=TA(c)}}function NA(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?NA(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function RA(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var s=Ps(o.document);s instanceof o.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)o=s.contentWindow;else break;s=Ps(o.document)}return s}function b0(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}var t7=ma&&"documentMode"in document&&11>=document.documentMode,su=null,x0=null,xf=null,w0=!1;function DA(o,s,c){var m=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;w0||su==null||su!==Ps(m)||(m=su,"selectionStart"in m&&b0(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),xf&&bf(xf,m)||(xf=m,m=fm(x0,"onSelect"),0<m.length&&(s=new wp("onSelect","select",null,s,c),o.push({event:s,listeners:m}),s.target=su)))}function Ds(o,s){var c={};return c[o.toLowerCase()]=s.toLowerCase(),c["Webkit"+o]="webkit"+s,c["Moz"+o]="moz"+s,c}var lu={animationend:Ds("Animation","AnimationEnd"),animationiteration:Ds("Animation","AnimationIteration"),animationstart:Ds("Animation","AnimationStart"),transitionrun:Ds("Transition","TransitionRun"),transitionstart:Ds("Transition","TransitionStart"),transitioncancel:Ds("Transition","TransitionCancel"),transitionend:Ds("Transition","TransitionEnd")},S0={},jA={};ma&&(jA=document.createElement("div").style,"AnimationEvent"in window||(delete lu.animationend.animation,delete lu.animationiteration.animation,delete lu.animationstart.animation),"TransitionEvent"in window||delete lu.transitionend.transition);function js(o){if(S0[o])return S0[o];if(!lu[o])return o;var s=lu[o],c;for(c in s)if(s.hasOwnProperty(c)&&c in jA)return S0[o]=s[c];return o}var IA=js("animationend"),zA=js("animationiteration"),LA=js("animationstart"),n7=js("transitionrun"),r7=js("transitionstart"),i7=js("transitioncancel"),BA=js("transitionend"),$A=new Map,_0="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(" ");_0.push("scrollEnd");function pi(o,s){$A.set(o,s),da(s,[o])}var Ep=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Yr=[],uu=0,E0=0;function Ap(){for(var o=uu,s=E0=uu=0;s<o;){var c=Yr[s];Yr[s++]=null;var m=Yr[s];Yr[s++]=null;var x=Yr[s];Yr[s++]=null;var _=Yr[s];if(Yr[s++]=null,m!==null&&x!==null){var j=m.pending;j===null?x.next=x:(x.next=j.next,j.next=x),m.pending=x}_!==0&&UA(c,x,_)}}function Op(o,s,c,m){Yr[uu++]=o,Yr[uu++]=s,Yr[uu++]=c,Yr[uu++]=m,E0|=m,o.lanes|=m,o=o.alternate,o!==null&&(o.lanes|=m)}function A0(o,s,c,m){return Op(o,s,c,m),Mp(o)}function Is(o,s){return Op(o,null,null,s),Mp(o)}function UA(o,s,c){o.lanes|=c;var m=o.alternate;m!==null&&(m.lanes|=c);for(var x=!1,_=o.return;_!==null;)_.childLanes|=c,m=_.alternate,m!==null&&(m.childLanes|=c),_.tag===22&&(o=_.stateNode,o===null||o._visibility&1||(x=!0)),o=_,_=_.return;return o.tag===3?(_=o.stateNode,x&&s!==null&&(x=31-yn(c),o=_.hiddenUpdates,m=o[x],m===null?o[x]=[s]:m.push(s),s.lane=c|536870912),_):null}function Mp(o){if(50<qf)throw qf=0,D1=null,Error(r(185));for(var s=o.return;s!==null;)o=s,s=o.return;return o.tag===3?o.stateNode:null}var cu={};function a7(o,s,c,m){this.tag=o,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cr(o,s,c,m){return new a7(o,s,c,m)}function O0(o){return o=o.prototype,!(!o||!o.isReactComponent)}function ya(o,s){var c=o.alternate;return c===null?(c=Cr(o.tag,s,o.key,o.mode),c.elementType=o.elementType,c.type=o.type,c.stateNode=o.stateNode,c.alternate=o,o.alternate=c):(c.pendingProps=s,c.type=o.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=o.flags&65011712,c.childLanes=o.childLanes,c.lanes=o.lanes,c.child=o.child,c.memoizedProps=o.memoizedProps,c.memoizedState=o.memoizedState,c.updateQueue=o.updateQueue,s=o.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=o.sibling,c.index=o.index,c.ref=o.ref,c.refCleanup=o.refCleanup,c}function qA(o,s){o.flags&=65011714;var c=o.alternate;return c===null?(o.childLanes=0,o.lanes=s,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=c.childLanes,o.lanes=c.lanes,o.child=c.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=c.memoizedProps,o.memoizedState=c.memoizedState,o.updateQueue=c.updateQueue,o.type=c.type,s=c.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),o}function Cp(o,s,c,m,x,_){var j=0;if(m=o,typeof o=="function")O0(o)&&(j=1);else if(typeof o=="string")j=c$(o,c,te.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case D:return o=Cr(31,c,s,x),o.elementType=D,o.lanes=_,o;case b:return zs(c.children,x,_,s);case w:j=8,x|=24;break;case S:return o=Cr(12,c,s,x|2),o.elementType=S,o.lanes=_,o;case k:return o=Cr(13,c,s,x),o.elementType=k,o.lanes=_,o;case C:return o=Cr(19,c,s,x),o.elementType=C,o.lanes=_,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case A:j=10;break e;case M:j=9;break e;case O:j=11;break e;case T:j=14;break e;case P:j=16,m=null;break e}j=29,c=Error(r(130,o===null?"null":typeof o,"")),m=null}return s=Cr(j,c,s,x),s.elementType=o,s.type=m,s.lanes=_,s}function zs(o,s,c,m){return o=Cr(7,o,m,s),o.lanes=c,o}function M0(o,s,c){return o=Cr(6,o,null,s),o.lanes=c,o}function HA(o){var s=Cr(18,null,null,0);return s.stateNode=o,s}function C0(o,s,c){return s=Cr(4,o.children!==null?o.children:[],o.key,s),s.lanes=c,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}var VA=new WeakMap;function Gr(o,s){if(typeof o=="object"&&o!==null){var c=VA.get(o);return c!==void 0?c:(s={value:o,source:s,stack:Nt(s)},VA.set(o,s),s)}return{value:o,source:s,stack:Nt(s)}}var fu=[],du=0,kp=null,wf=0,Qr=[],Zr=0,So=null,Di=1,ji="";function va(o,s){fu[du++]=wf,fu[du++]=kp,kp=o,wf=s}function FA(o,s,c){Qr[Zr++]=Di,Qr[Zr++]=ji,Qr[Zr++]=So,So=o;var m=Di;o=ji;var x=32-yn(m)-1;m&=~(1<<x),c+=1;var _=32-yn(s)+x;if(30<_){var j=x-x%5;_=(m&(1<<j)-1).toString(32),m>>=j,x-=j,Di=1<<32-yn(s)+x|c<<x|m,ji=_+o}else Di=1<<_|c<<x|m,ji=o}function k0(o){o.return!==null&&(va(o,1),FA(o,1,0))}function T0(o){for(;o===kp;)kp=fu[--du],fu[du]=null,wf=fu[--du],fu[du]=null;for(;o===So;)So=Qr[--Zr],Qr[Zr]=null,ji=Qr[--Zr],Qr[Zr]=null,Di=Qr[--Zr],Qr[Zr]=null}function KA(o,s){Qr[Zr++]=Di,Qr[Zr++]=ji,Qr[Zr++]=So,Di=s.id,ji=s.overflow,So=o}var Ln=null,Rt=null,lt=!1,_o=null,Xr=!1,P0=Error(r(519));function Eo(o){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Sf(Gr(s,o)),P0}function YA(o){var s=o.stateNode,c=o.type,m=o.memoizedProps;switch(s[vn]=o,s[Zn]=m,c){case"dialog":rt("cancel",s),rt("close",s);break;case"iframe":case"object":case"embed":rt("load",s);break;case"video":case"audio":for(c=0;c<Vf.length;c++)rt(Vf[c],s);break;case"source":rt("error",s);break;case"img":case"image":case"link":rt("error",s),rt("load",s);break;case"details":rt("toggle",s);break;case"input":rt("invalid",s),yp(s,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":rt("invalid",s);break;case"textarea":rt("invalid",s),lA(s,m.value,m.defaultValue,m.children)}c=m.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||m.suppressHydrationWarning===!0||cC(s.textContent,c)?(m.popover!=null&&(rt("beforetoggle",s),rt("toggle",s)),m.onScroll!=null&&rt("scroll",s),m.onScrollEnd!=null&&rt("scrollend",s),m.onClick!=null&&(s.onclick=pa),s=!0):s=!1,s||Eo(o,!0)}function GA(o){for(Ln=o.return;Ln;)switch(Ln.tag){case 5:case 31:case 13:Xr=!1;return;case 27:case 3:Xr=!0;return;default:Ln=Ln.return}}function hu(o){if(o!==Ln)return!1;if(!lt)return GA(o),lt=!0,!1;var s=o.tag,c;if((c=s!==3&&s!==27)&&((c=s===5)&&(c=o.type,c=!(c!=="form"&&c!=="button")||Q1(o.type,o.memoizedProps)),c=!c),c&&Rt&&Eo(o),GA(o),s===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Rt=bC(o)}else if(s===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Rt=bC(o)}else s===27?(s=Rt,Lo(o.type)?(o=eb,eb=null,Rt=o):Rt=s):Rt=Ln?Jr(o.stateNode.nextSibling):null;return!0}function Ls(){Rt=Ln=null,lt=!1}function N0(){var o=_o;return o!==null&&(br===null?br=o:br.push.apply(br,o),_o=null),o}function Sf(o){_o===null?_o=[o]:_o.push(o)}var R0=$(null),Bs=null,ga=null;function Ao(o,s,c){J(R0,s._currentValue),s._currentValue=c}function ba(o){o._currentValue=R0.current,K(R0)}function D0(o,s,c){for(;o!==null;){var m=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,m!==null&&(m.childLanes|=s)):m!==null&&(m.childLanes&s)!==s&&(m.childLanes|=s),o===c)break;o=o.return}}function j0(o,s,c,m){var x=o.child;for(x!==null&&(x.return=o);x!==null;){var _=x.dependencies;if(_!==null){var j=x.child;_=_.firstContext;e:for(;_!==null;){var U=_;_=x;for(var G=0;G<s.length;G++)if(U.context===s[G]){_.lanes|=c,U=_.alternate,U!==null&&(U.lanes|=c),D0(_.return,c,o),m||(j=null);break e}_=U.next}}else if(x.tag===18){if(j=x.return,j===null)throw Error(r(341));j.lanes|=c,_=j.alternate,_!==null&&(_.lanes|=c),D0(j,c,o),j=null}else j=x.child;if(j!==null)j.return=x;else for(j=x;j!==null;){if(j===o){j=null;break}if(x=j.sibling,x!==null){x.return=j.return,j=x;break}j=j.return}x=j}}function pu(o,s,c,m){o=null;for(var x=s,_=!1;x!==null;){if(!_){if((x.flags&524288)!==0)_=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var j=x.alternate;if(j===null)throw Error(r(387));if(j=j.memoizedProps,j!==null){var U=x.type;Mr(x.pendingProps.value,j.value)||(o!==null?o.push(U):o=[U])}}else if(x===de.current){if(j=x.alternate,j===null)throw Error(r(387));j.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(o!==null?o.push(Qf):o=[Qf])}x=x.return}o!==null&&j0(s,o,c,m),s.flags|=262144}function Tp(o){for(o=o.firstContext;o!==null;){if(!Mr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function $s(o){Bs=o,ga=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Bn(o){return QA(Bs,o)}function Pp(o,s){return Bs===null&&$s(o),QA(o,s)}function QA(o,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},ga===null){if(o===null)throw Error(r(308));ga=s,o.dependencies={lanes:0,firstContext:s},o.flags|=524288}else ga=ga.next=s;return c}var o7=typeof AbortController<"u"?AbortController:function(){var o=[],s=this.signal={aborted:!1,addEventListener:function(c,m){o.push(m)}};this.abort=function(){s.aborted=!0,o.forEach(function(c){return c()})}},s7=e.unstable_scheduleCallback,l7=e.unstable_NormalPriority,ln={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function I0(){return{controller:new o7,data:new Map,refCount:0}}function _f(o){o.refCount--,o.refCount===0&&s7(l7,function(){o.controller.abort()})}var Ef=null,z0=0,mu=0,yu=null;function u7(o,s){if(Ef===null){var c=Ef=[];z0=0,mu=$1(),yu={status:"pending",value:void 0,then:function(m){c.push(m)}}}return z0++,s.then(ZA,ZA),s}function ZA(){if(--z0===0&&Ef!==null){yu!==null&&(yu.status="fulfilled");var o=Ef;Ef=null,mu=0,yu=null;for(var s=0;s<o.length;s++)(0,o[s])()}}function c7(o,s){var c=[],m={status:"pending",value:null,reason:null,then:function(x){c.push(x)}};return o.then(function(){m.status="fulfilled",m.value=s;for(var x=0;x<c.length;x++)(0,c[x])(s)},function(x){for(m.status="rejected",m.reason=x,x=0;x<c.length;x++)(0,c[x])(void 0)}),m}var XA=L.S;L.S=function(o,s){DM=ae(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&u7(o,s),XA!==null&&XA(o,s)};var Us=$(null);function L0(){var o=Us.current;return o!==null?o:kt.pooledCache}function Np(o,s){s===null?J(Us,Us.current):J(Us,s.pool)}function WA(){var o=L0();return o===null?null:{parent:ln._currentValue,pool:o}}var vu=Error(r(460)),B0=Error(r(474)),Rp=Error(r(542)),Dp={then:function(){}};function JA(o){return o=o.status,o==="fulfilled"||o==="rejected"}function eO(o,s,c){switch(c=o[c],c===void 0?o.push(s):c!==s&&(s.then(pa,pa),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,nO(o),o;default:if(typeof s.status=="string")s.then(pa,pa);else{if(o=kt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=s,o.status="pending",o.then(function(m){if(s.status==="pending"){var x=s;x.status="fulfilled",x.value=m}},function(m){if(s.status==="pending"){var x=s;x.status="rejected",x.reason=m}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,nO(o),o}throw Hs=s,vu}}function qs(o){try{var s=o._init;return s(o._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(Hs=c,vu):c}}var Hs=null;function tO(){if(Hs===null)throw Error(r(459));var o=Hs;return Hs=null,o}function nO(o){if(o===vu||o===Rp)throw Error(r(483))}var gu=null,Af=0;function jp(o){var s=Af;return Af+=1,gu===null&&(gu=[]),eO(gu,o,s)}function Of(o,s){s=s.props.ref,o.ref=s!==void 0?s:null}function Ip(o,s){throw s.$$typeof===y?Error(r(525)):(o=Object.prototype.toString.call(s),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)))}function rO(o){function s(ne,X){if(o){var oe=ne.deletions;oe===null?(ne.deletions=[X],ne.flags|=16):oe.push(X)}}function c(ne,X){if(!o)return null;for(;X!==null;)s(ne,X),X=X.sibling;return null}function m(ne){for(var X=new Map;ne!==null;)ne.key!==null?X.set(ne.key,ne):X.set(ne.index,ne),ne=ne.sibling;return X}function x(ne,X){return ne=ya(ne,X),ne.index=0,ne.sibling=null,ne}function _(ne,X,oe){return ne.index=oe,o?(oe=ne.alternate,oe!==null?(oe=oe.index,oe<X?(ne.flags|=67108866,X):oe):(ne.flags|=67108866,X)):(ne.flags|=1048576,X)}function j(ne){return o&&ne.alternate===null&&(ne.flags|=67108866),ne}function U(ne,X,oe,be){return X===null||X.tag!==6?(X=M0(oe,ne.mode,be),X.return=ne,X):(X=x(X,oe),X.return=ne,X)}function G(ne,X,oe,be){var qe=oe.type;return qe===b?ve(ne,X,oe.props.children,be,oe.key):X!==null&&(X.elementType===qe||typeof qe=="object"&&qe!==null&&qe.$$typeof===P&&qs(qe)===X.type)?(X=x(X,oe.props),Of(X,oe),X.return=ne,X):(X=Cp(oe.type,oe.key,oe.props,null,ne.mode,be),Of(X,oe),X.return=ne,X)}function se(ne,X,oe,be){return X===null||X.tag!==4||X.stateNode.containerInfo!==oe.containerInfo||X.stateNode.implementation!==oe.implementation?(X=C0(oe,ne.mode,be),X.return=ne,X):(X=x(X,oe.children||[]),X.return=ne,X)}function ve(ne,X,oe,be,qe){return X===null||X.tag!==7?(X=zs(oe,ne.mode,be,qe),X.return=ne,X):(X=x(X,oe),X.return=ne,X)}function xe(ne,X,oe){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return X=M0(""+X,ne.mode,oe),X.return=ne,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case v:return oe=Cp(X.type,X.key,X.props,null,ne.mode,oe),Of(oe,X),oe.return=ne,oe;case g:return X=C0(X,ne.mode,oe),X.return=ne,X;case P:return X=qs(X),xe(ne,X,oe)}if(q(X)||N(X))return X=zs(X,ne.mode,oe,null),X.return=ne,X;if(typeof X.then=="function")return xe(ne,jp(X),oe);if(X.$$typeof===A)return xe(ne,Pp(ne,X),oe);Ip(ne,X)}return null}function ue(ne,X,oe,be){var qe=X!==null?X.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return qe!==null?null:U(ne,X,""+oe,be);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case v:return oe.key===qe?G(ne,X,oe,be):null;case g:return oe.key===qe?se(ne,X,oe,be):null;case P:return oe=qs(oe),ue(ne,X,oe,be)}if(q(oe)||N(oe))return qe!==null?null:ve(ne,X,oe,be,null);if(typeof oe.then=="function")return ue(ne,X,jp(oe),be);if(oe.$$typeof===A)return ue(ne,X,Pp(ne,oe),be);Ip(ne,oe)}return null}function me(ne,X,oe,be,qe){if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return ne=ne.get(oe)||null,U(X,ne,""+be,qe);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case v:return ne=ne.get(be.key===null?oe:be.key)||null,G(X,ne,be,qe);case g:return ne=ne.get(be.key===null?oe:be.key)||null,se(X,ne,be,qe);case P:return be=qs(be),me(ne,X,oe,be,qe)}if(q(be)||N(be))return ne=ne.get(oe)||null,ve(X,ne,be,qe,null);if(typeof be.then=="function")return me(ne,X,oe,jp(be),qe);if(be.$$typeof===A)return me(ne,X,oe,Pp(X,be),qe);Ip(X,be)}return null}function Re(ne,X,oe,be){for(var qe=null,ht=null,Le=X,Xe=X=0,st=null;Le!==null&&Xe<oe.length;Xe++){Le.index>Xe?(st=Le,Le=null):st=Le.sibling;var pt=ue(ne,Le,oe[Xe],be);if(pt===null){Le===null&&(Le=st);break}o&&Le&&pt.alternate===null&&s(ne,Le),X=_(pt,X,Xe),ht===null?qe=pt:ht.sibling=pt,ht=pt,Le=st}if(Xe===oe.length)return c(ne,Le),lt&&va(ne,Xe),qe;if(Le===null){for(;Xe<oe.length;Xe++)Le=xe(ne,oe[Xe],be),Le!==null&&(X=_(Le,X,Xe),ht===null?qe=Le:ht.sibling=Le,ht=Le);return lt&&va(ne,Xe),qe}for(Le=m(Le);Xe<oe.length;Xe++)st=me(Le,ne,Xe,oe[Xe],be),st!==null&&(o&&st.alternate!==null&&Le.delete(st.key===null?Xe:st.key),X=_(st,X,Xe),ht===null?qe=st:ht.sibling=st,ht=st);return o&&Le.forEach(function(Ho){return s(ne,Ho)}),lt&&va(ne,Xe),qe}function Fe(ne,X,oe,be){if(oe==null)throw Error(r(151));for(var qe=null,ht=null,Le=X,Xe=X=0,st=null,pt=oe.next();Le!==null&&!pt.done;Xe++,pt=oe.next()){Le.index>Xe?(st=Le,Le=null):st=Le.sibling;var Ho=ue(ne,Le,pt.value,be);if(Ho===null){Le===null&&(Le=st);break}o&&Le&&Ho.alternate===null&&s(ne,Le),X=_(Ho,X,Xe),ht===null?qe=Ho:ht.sibling=Ho,ht=Ho,Le=st}if(pt.done)return c(ne,Le),lt&&va(ne,Xe),qe;if(Le===null){for(;!pt.done;Xe++,pt=oe.next())pt=xe(ne,pt.value,be),pt!==null&&(X=_(pt,X,Xe),ht===null?qe=pt:ht.sibling=pt,ht=pt);return lt&&va(ne,Xe),qe}for(Le=m(Le);!pt.done;Xe++,pt=oe.next())pt=me(Le,ne,Xe,pt.value,be),pt!==null&&(o&&pt.alternate!==null&&Le.delete(pt.key===null?Xe:pt.key),X=_(pt,X,Xe),ht===null?qe=pt:ht.sibling=pt,ht=pt);return o&&Le.forEach(function(w$){return s(ne,w$)}),lt&&va(ne,Xe),qe}function Ot(ne,X,oe,be){if(typeof oe=="object"&&oe!==null&&oe.type===b&&oe.key===null&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case v:e:{for(var qe=oe.key;X!==null;){if(X.key===qe){if(qe=oe.type,qe===b){if(X.tag===7){c(ne,X.sibling),be=x(X,oe.props.children),be.return=ne,ne=be;break e}}else if(X.elementType===qe||typeof qe=="object"&&qe!==null&&qe.$$typeof===P&&qs(qe)===X.type){c(ne,X.sibling),be=x(X,oe.props),Of(be,oe),be.return=ne,ne=be;break e}c(ne,X);break}else s(ne,X);X=X.sibling}oe.type===b?(be=zs(oe.props.children,ne.mode,be,oe.key),be.return=ne,ne=be):(be=Cp(oe.type,oe.key,oe.props,null,ne.mode,be),Of(be,oe),be.return=ne,ne=be)}return j(ne);case g:e:{for(qe=oe.key;X!==null;){if(X.key===qe)if(X.tag===4&&X.stateNode.containerInfo===oe.containerInfo&&X.stateNode.implementation===oe.implementation){c(ne,X.sibling),be=x(X,oe.children||[]),be.return=ne,ne=be;break e}else{c(ne,X);break}else s(ne,X);X=X.sibling}be=C0(oe,ne.mode,be),be.return=ne,ne=be}return j(ne);case P:return oe=qs(oe),Ot(ne,X,oe,be)}if(q(oe))return Re(ne,X,oe,be);if(N(oe)){if(qe=N(oe),typeof qe!="function")throw Error(r(150));return oe=qe.call(oe),Fe(ne,X,oe,be)}if(typeof oe.then=="function")return Ot(ne,X,jp(oe),be);if(oe.$$typeof===A)return Ot(ne,X,Pp(ne,oe),be);Ip(ne,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint"?(oe=""+oe,X!==null&&X.tag===6?(c(ne,X.sibling),be=x(X,oe),be.return=ne,ne=be):(c(ne,X),be=M0(oe,ne.mode,be),be.return=ne,ne=be),j(ne)):c(ne,X)}return function(ne,X,oe,be){try{Af=0;var qe=Ot(ne,X,oe,be);return gu=null,qe}catch(Le){if(Le===vu||Le===Rp)throw Le;var ht=Cr(29,Le,null,ne.mode);return ht.lanes=be,ht.return=ne,ht}finally{}}}var Vs=rO(!0),iO=rO(!1),Oo=!1;function $0(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function U0(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Mo(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Co(o,s,c){var m=o.updateQueue;if(m===null)return null;if(m=m.shared,(gt&2)!==0){var x=m.pending;return x===null?s.next=s:(s.next=x.next,x.next=s),m.pending=s,s=Mp(o),UA(o,null,c),s}return Op(o,m,s,c),Mp(o)}function Mf(o,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194048)!==0)){var m=s.lanes;m&=o.pendingLanes,c|=m,s.lanes=c,ap(o,c)}}function q0(o,s){var c=o.updateQueue,m=o.alternate;if(m!==null&&(m=m.updateQueue,c===m)){var x=null,_=null;if(c=c.firstBaseUpdate,c!==null){do{var j={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};_===null?x=_=j:_=_.next=j,c=c.next}while(c!==null);_===null?x=_=s:_=_.next=s}else x=_=s;c={baseState:m.baseState,firstBaseUpdate:x,lastBaseUpdate:_,shared:m.shared,callbacks:m.callbacks},o.updateQueue=c;return}o=c.lastBaseUpdate,o===null?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=s}var H0=!1;function Cf(){if(H0){var o=yu;if(o!==null)throw o}}function kf(o,s,c,m){H0=!1;var x=o.updateQueue;Oo=!1;var _=x.firstBaseUpdate,j=x.lastBaseUpdate,U=x.shared.pending;if(U!==null){x.shared.pending=null;var G=U,se=G.next;G.next=null,j===null?_=se:j.next=se,j=G;var ve=o.alternate;ve!==null&&(ve=ve.updateQueue,U=ve.lastBaseUpdate,U!==j&&(U===null?ve.firstBaseUpdate=se:U.next=se,ve.lastBaseUpdate=G))}if(_!==null){var xe=x.baseState;j=0,ve=se=G=null,U=_;do{var ue=U.lane&-536870913,me=ue!==U.lane;if(me?(ot&ue)===ue:(m&ue)===ue){ue!==0&&ue===mu&&(H0=!0),ve!==null&&(ve=ve.next={lane:0,tag:U.tag,payload:U.payload,callback:null,next:null});e:{var Re=o,Fe=U;ue=s;var Ot=c;switch(Fe.tag){case 1:if(Re=Fe.payload,typeof Re=="function"){xe=Re.call(Ot,xe,ue);break e}xe=Re;break e;case 3:Re.flags=Re.flags&-65537|128;case 0:if(Re=Fe.payload,ue=typeof Re=="function"?Re.call(Ot,xe,ue):Re,ue==null)break e;xe=p({},xe,ue);break e;case 2:Oo=!0}}ue=U.callback,ue!==null&&(o.flags|=64,me&&(o.flags|=8192),me=x.callbacks,me===null?x.callbacks=[ue]:me.push(ue))}else me={lane:ue,tag:U.tag,payload:U.payload,callback:U.callback,next:null},ve===null?(se=ve=me,G=xe):ve=ve.next=me,j|=ue;if(U=U.next,U===null){if(U=x.shared.pending,U===null)break;me=U,U=me.next,me.next=null,x.lastBaseUpdate=me,x.shared.pending=null}}while(!0);ve===null&&(G=xe),x.baseState=G,x.firstBaseUpdate=se,x.lastBaseUpdate=ve,_===null&&(x.shared.lanes=0),Ro|=j,o.lanes=j,o.memoizedState=xe}}function aO(o,s){if(typeof o!="function")throw Error(r(191,o));o.call(s)}function oO(o,s){var c=o.callbacks;if(c!==null)for(o.callbacks=null,o=0;o<c.length;o++)aO(c[o],s)}var bu=$(null),zp=$(0);function sO(o,s){o=Ca,J(zp,o),J(bu,s),Ca=o|s.baseLanes}function V0(){J(zp,Ca),J(bu,bu.current)}function F0(){Ca=zp.current,K(bu),K(zp)}var kr=$(null),Wr=null;function ko(o){var s=o.alternate;J(tn,tn.current&1),J(kr,o),Wr===null&&(s===null||bu.current!==null||s.memoizedState!==null)&&(Wr=o)}function K0(o){J(tn,tn.current),J(kr,o),Wr===null&&(Wr=o)}function lO(o){o.tag===22?(J(tn,tn.current),J(kr,o),Wr===null&&(Wr=o)):To()}function To(){J(tn,tn.current),J(kr,kr.current)}function Tr(o){K(kr),Wr===o&&(Wr=null),K(tn)}var tn=$(0);function Lp(o){for(var s=o;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||W1(c)||J1(c)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var xa=0,Ze=null,Et=null,un=null,Bp=!1,xu=!1,Fs=!1,$p=0,Tf=0,wu=null,f7=0;function Yt(){throw Error(r(321))}function Y0(o,s){if(s===null)return!1;for(var c=0;c<s.length&&c<o.length;c++)if(!Mr(o[c],s[c]))return!1;return!0}function G0(o,s,c,m,x,_){return xa=_,Ze=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,L.H=o===null||o.memoizedState===null?FO:u1,Fs=!1,_=c(m,x),Fs=!1,xu&&(_=cO(s,c,m,x)),uO(o),_}function uO(o){L.H=Rf;var s=Et!==null&&Et.next!==null;if(xa=0,un=Et=Ze=null,Bp=!1,Tf=0,wu=null,s)throw Error(r(300));o===null||cn||(o=o.dependencies,o!==null&&Tp(o)&&(cn=!0))}function cO(o,s,c,m){Ze=o;var x=0;do{if(xu&&(wu=null),Tf=0,xu=!1,25<=x)throw Error(r(301));if(x+=1,un=Et=null,o.updateQueue!=null){var _=o.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}L.H=KO,_=s(c,m)}while(xu);return _}function d7(){var o=L.H,s=o.useState()[0];return s=typeof s.then=="function"?Pf(s):s,o=o.useState()[0],(Et!==null?Et.memoizedState:null)!==o&&(Ze.flags|=1024),s}function Q0(){var o=$p!==0;return $p=0,o}function Z0(o,s,c){s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~c}function X0(o){if(Bp){for(o=o.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}Bp=!1}xa=0,un=Et=Ze=null,xu=!1,Tf=$p=0,wu=null}function rr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return un===null?Ze.memoizedState=un=o:un=un.next=o,un}function nn(){if(Et===null){var o=Ze.alternate;o=o!==null?o.memoizedState:null}else o=Et.next;var s=un===null?Ze.memoizedState:un.next;if(s!==null)un=s,Et=o;else{if(o===null)throw Ze.alternate===null?Error(r(467)):Error(r(310));Et=o,o={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},un===null?Ze.memoizedState=un=o:un=un.next=o}return un}function Up(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pf(o){var s=Tf;return Tf+=1,wu===null&&(wu=[]),o=eO(wu,o,s),s=Ze,(un===null?s.memoizedState:un.next)===null&&(s=s.alternate,L.H=s===null||s.memoizedState===null?FO:u1),o}function qp(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Pf(o);if(o.$$typeof===A)return Bn(o)}throw Error(r(438,String(o)))}function W0(o){var s=null,c=Ze.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var m=Ze.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(s={data:m.data.map(function(x){return x.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=Up(),Ze.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(o),m=0;m<o;m++)c[m]=z;return s.index++,c}function wa(o,s){return typeof s=="function"?s(o):s}function Hp(o){var s=nn();return J0(s,Et,o)}function J0(o,s,c){var m=o.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=c;var x=o.baseQueue,_=m.pending;if(_!==null){if(x!==null){var j=x.next;x.next=_.next,_.next=j}s.baseQueue=x=_,m.pending=null}if(_=o.baseState,x===null)o.memoizedState=_;else{s=x.next;var U=j=null,G=null,se=s,ve=!1;do{var xe=se.lane&-536870913;if(xe!==se.lane?(ot&xe)===xe:(xa&xe)===xe){var ue=se.revertLane;if(ue===0)G!==null&&(G=G.next={lane:0,revertLane:0,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null}),xe===mu&&(ve=!0);else if((xa&ue)===ue){se=se.next,ue===mu&&(ve=!0);continue}else xe={lane:0,revertLane:se.revertLane,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},G===null?(U=G=xe,j=_):G=G.next=xe,Ze.lanes|=ue,Ro|=ue;xe=se.action,Fs&&c(_,xe),_=se.hasEagerState?se.eagerState:c(_,xe)}else ue={lane:xe,revertLane:se.revertLane,gesture:se.gesture,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},G===null?(U=G=ue,j=_):G=G.next=ue,Ze.lanes|=xe,Ro|=xe;se=se.next}while(se!==null&&se!==s);if(G===null?j=_:G.next=U,!Mr(_,o.memoizedState)&&(cn=!0,ve&&(c=yu,c!==null)))throw c;o.memoizedState=_,o.baseState=j,o.baseQueue=G,m.lastRenderedState=_}return x===null&&(m.lanes=0),[o.memoizedState,m.dispatch]}function e1(o){var s=nn(),c=s.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=o;var m=c.dispatch,x=c.pending,_=s.memoizedState;if(x!==null){c.pending=null;var j=x=x.next;do _=o(_,j.action),j=j.next;while(j!==x);Mr(_,s.memoizedState)||(cn=!0),s.memoizedState=_,s.baseQueue===null&&(s.baseState=_),c.lastRenderedState=_}return[_,m]}function fO(o,s,c){var m=Ze,x=nn(),_=lt;if(_){if(c===void 0)throw Error(r(407));c=c()}else c=s();var j=!Mr((Et||x).memoizedState,c);if(j&&(x.memoizedState=c,cn=!0),x=x.queue,r1(pO.bind(null,m,x,o),[o]),x.getSnapshot!==s||j||un!==null&&un.memoizedState.tag&1){if(m.flags|=2048,Su(9,{destroy:void 0},hO.bind(null,m,x,c,s),null),kt===null)throw Error(r(349));_||(xa&127)!==0||dO(m,s,c)}return c}function dO(o,s,c){o.flags|=16384,o={getSnapshot:s,value:c},s=Ze.updateQueue,s===null?(s=Up(),Ze.updateQueue=s,s.stores=[o]):(c=s.stores,c===null?s.stores=[o]:c.push(o))}function hO(o,s,c,m){s.value=c,s.getSnapshot=m,mO(s)&&yO(o)}function pO(o,s,c){return c(function(){mO(s)&&yO(o)})}function mO(o){var s=o.getSnapshot;o=o.value;try{var c=s();return!Mr(o,c)}catch{return!0}}function yO(o){var s=Is(o,2);s!==null&&xr(s,o,2)}function t1(o){var s=rr();if(typeof o=="function"){var c=o;if(o=c(),Fs){dr(!0);try{c()}finally{dr(!1)}}}return s.memoizedState=s.baseState=o,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:o},s}function vO(o,s,c,m){return o.baseState=c,J0(o,Et,typeof m=="function"?m:wa)}function h7(o,s,c,m,x){if(Kp(o))throw Error(r(485));if(o=s.action,o!==null){var _={payload:x,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){_.listeners.push(j)}};L.T!==null?c(!0):_.isTransition=!1,m(_),c=s.pending,c===null?(_.next=s.pending=_,gO(s,_)):(_.next=c.next,s.pending=c.next=_)}}function gO(o,s){var c=s.action,m=s.payload,x=o.state;if(s.isTransition){var _=L.T,j={};L.T=j;try{var U=c(x,m),G=L.S;G!==null&&G(j,U),bO(o,s,U)}catch(se){n1(o,s,se)}finally{_!==null&&j.types!==null&&(_.types=j.types),L.T=_}}else try{_=c(x,m),bO(o,s,_)}catch(se){n1(o,s,se)}}function bO(o,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(m){xO(o,s,m)},function(m){return n1(o,s,m)}):xO(o,s,c)}function xO(o,s,c){s.status="fulfilled",s.value=c,wO(s),o.state=c,s=o.pending,s!==null&&(c=s.next,c===s?o.pending=null:(c=c.next,s.next=c,gO(o,c)))}function n1(o,s,c){var m=o.pending;if(o.pending=null,m!==null){m=m.next;do s.status="rejected",s.reason=c,wO(s),s=s.next;while(s!==m)}o.action=null}function wO(o){o=o.listeners;for(var s=0;s<o.length;s++)(0,o[s])()}function SO(o,s){return s}function _O(o,s){if(lt){var c=kt.formState;if(c!==null){e:{var m=Ze;if(lt){if(Rt){t:{for(var x=Rt,_=Xr;x.nodeType!==8;){if(!_){x=null;break t}if(x=Jr(x.nextSibling),x===null){x=null;break t}}_=x.data,x=_==="F!"||_==="F"?x:null}if(x){Rt=Jr(x.nextSibling),m=x.data==="F!";break e}}Eo(m)}m=!1}m&&(s=c[0])}}return c=rr(),c.memoizedState=c.baseState=s,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:SO,lastRenderedState:s},c.queue=m,c=qO.bind(null,Ze,m),m.dispatch=c,m=t1(!1),_=l1.bind(null,Ze,!1,m.queue),m=rr(),x={state:s,dispatch:null,action:o,pending:null},m.queue=x,c=h7.bind(null,Ze,x,_,c),x.dispatch=c,m.memoizedState=o,[s,c,!1]}function EO(o){var s=nn();return AO(s,Et,o)}function AO(o,s,c){if(s=J0(o,s,SO)[0],o=Hp(wa)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var m=Pf(s)}catch(j){throw j===vu?Rp:j}else m=s;s=nn();var x=s.queue,_=x.dispatch;return c!==s.memoizedState&&(Ze.flags|=2048,Su(9,{destroy:void 0},p7.bind(null,x,c),null)),[m,_,o]}function p7(o,s){o.action=s}function OO(o){var s=nn(),c=Et;if(c!==null)return AO(s,c,o);nn(),s=s.memoizedState,c=nn();var m=c.queue.dispatch;return c.memoizedState=o,[s,m,!1]}function Su(o,s,c,m){return o={tag:o,create:c,deps:m,inst:s,next:null},s=Ze.updateQueue,s===null&&(s=Up(),Ze.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=o.next=o:(m=c.next,c.next=o,o.next=m,s.lastEffect=o),o}function MO(){return nn().memoizedState}function Vp(o,s,c,m){var x=rr();Ze.flags|=o,x.memoizedState=Su(1|s,{destroy:void 0},c,m===void 0?null:m)}function Fp(o,s,c,m){var x=nn();m=m===void 0?null:m;var _=x.memoizedState.inst;Et!==null&&m!==null&&Y0(m,Et.memoizedState.deps)?x.memoizedState=Su(s,_,c,m):(Ze.flags|=o,x.memoizedState=Su(1|s,_,c,m))}function CO(o,s){Vp(8390656,8,o,s)}function r1(o,s){Fp(2048,8,o,s)}function m7(o){Ze.flags|=4;var s=Ze.updateQueue;if(s===null)s=Up(),Ze.updateQueue=s,s.events=[o];else{var c=s.events;c===null?s.events=[o]:c.push(o)}}function kO(o){var s=nn().memoizedState;return m7({ref:s,nextImpl:o}),function(){if((gt&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function TO(o,s){return Fp(4,2,o,s)}function PO(o,s){return Fp(4,4,o,s)}function NO(o,s){if(typeof s=="function"){o=o();var c=s(o);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function RO(o,s,c){c=c!=null?c.concat([o]):null,Fp(4,4,NO.bind(null,s,o),c)}function i1(){}function DO(o,s){var c=nn();s=s===void 0?null:s;var m=c.memoizedState;return s!==null&&Y0(s,m[1])?m[0]:(c.memoizedState=[o,s],o)}function jO(o,s){var c=nn();s=s===void 0?null:s;var m=c.memoizedState;if(s!==null&&Y0(s,m[1]))return m[0];if(m=o(),Fs){dr(!0);try{o()}finally{dr(!1)}}return c.memoizedState=[m,s],m}function a1(o,s,c){return c===void 0||(xa&1073741824)!==0&&(ot&261930)===0?o.memoizedState=s:(o.memoizedState=c,o=IM(),Ze.lanes|=o,Ro|=o,c)}function IO(o,s,c,m){return Mr(c,s)?c:bu.current!==null?(o=a1(o,c,m),Mr(o,s)||(cn=!0),o):(xa&42)===0||(xa&1073741824)!==0&&(ot&261930)===0?(cn=!0,o.memoizedState=c):(o=IM(),Ze.lanes|=o,Ro|=o,s)}function zO(o,s,c,m,x){var _=V.p;V.p=_!==0&&8>_?_:8;var j=L.T,U={};L.T=U,l1(o,!1,s,c);try{var G=x(),se=L.S;if(se!==null&&se(U,G),G!==null&&typeof G=="object"&&typeof G.then=="function"){var ve=c7(G,m);Nf(o,s,ve,Rr(o))}else Nf(o,s,m,Rr(o))}catch(xe){Nf(o,s,{then:function(){},status:"rejected",reason:xe},Rr())}finally{V.p=_,j!==null&&U.types!==null&&(j.types=U.types),L.T=j}}function y7(){}function o1(o,s,c,m){if(o.tag!==5)throw Error(r(476));var x=LO(o).queue;zO(o,x,s,F,c===null?y7:function(){return BO(o),c(m)})}function LO(o){var s=o.memoizedState;if(s!==null)return s;s={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:F},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:c},next:null},o.memoizedState=s,o=o.alternate,o!==null&&(o.memoizedState=s),s}function BO(o){var s=LO(o);s.next===null&&(s=o.alternate.memoizedState),Nf(o,s.next.queue,{},Rr())}function s1(){return Bn(Qf)}function $O(){return nn().memoizedState}function UO(){return nn().memoizedState}function v7(o){for(var s=o.return;s!==null;){switch(s.tag){case 24:case 3:var c=Rr();o=Mo(c);var m=Co(s,o,c);m!==null&&(xr(m,s,c),Mf(m,s,c)),s={cache:I0()},o.payload=s;return}s=s.return}}function g7(o,s,c){var m=Rr();c={lane:m,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Kp(o)?HO(s,c):(c=A0(o,s,c,m),c!==null&&(xr(c,o,m),VO(c,s,m)))}function qO(o,s,c){var m=Rr();Nf(o,s,c,m)}function Nf(o,s,c,m){var x={lane:m,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(Kp(o))HO(s,x);else{var _=o.alternate;if(o.lanes===0&&(_===null||_.lanes===0)&&(_=s.lastRenderedReducer,_!==null))try{var j=s.lastRenderedState,U=_(j,c);if(x.hasEagerState=!0,x.eagerState=U,Mr(U,j))return Op(o,s,x,0),kt===null&&Ap(),!1}catch{}finally{}if(c=A0(o,s,x,m),c!==null)return xr(c,o,m),VO(c,s,m),!0}return!1}function l1(o,s,c,m){if(m={lane:2,revertLane:$1(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Kp(o)){if(s)throw Error(r(479))}else s=A0(o,c,m,2),s!==null&&xr(s,o,2)}function Kp(o){var s=o.alternate;return o===Ze||s!==null&&s===Ze}function HO(o,s){xu=Bp=!0;var c=o.pending;c===null?s.next=s:(s.next=c.next,c.next=s),o.pending=s}function VO(o,s,c){if((c&4194048)!==0){var m=s.lanes;m&=o.pendingLanes,c|=m,s.lanes=c,ap(o,c)}}var Rf={readContext:Bn,use:qp,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};Rf.useEffectEvent=Yt;var FO={readContext:Bn,use:qp,useCallback:function(o,s){return rr().memoizedState=[o,s===void 0?null:s],o},useContext:Bn,useEffect:CO,useImperativeHandle:function(o,s,c){c=c!=null?c.concat([o]):null,Vp(4194308,4,NO.bind(null,s,o),c)},useLayoutEffect:function(o,s){return Vp(4194308,4,o,s)},useInsertionEffect:function(o,s){Vp(4,2,o,s)},useMemo:function(o,s){var c=rr();s=s===void 0?null:s;var m=o();if(Fs){dr(!0);try{o()}finally{dr(!1)}}return c.memoizedState=[m,s],m},useReducer:function(o,s,c){var m=rr();if(c!==void 0){var x=c(s);if(Fs){dr(!0);try{c(s)}finally{dr(!1)}}}else x=s;return m.memoizedState=m.baseState=x,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:x},m.queue=o,o=o.dispatch=g7.bind(null,Ze,o),[m.memoizedState,o]},useRef:function(o){var s=rr();return o={current:o},s.memoizedState=o},useState:function(o){o=t1(o);var s=o.queue,c=qO.bind(null,Ze,s);return s.dispatch=c,[o.memoizedState,c]},useDebugValue:i1,useDeferredValue:function(o,s){var c=rr();return a1(c,o,s)},useTransition:function(){var o=t1(!1);return o=zO.bind(null,Ze,o.queue,!0,!1),rr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,s,c){var m=Ze,x=rr();if(lt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),kt===null)throw Error(r(349));(ot&127)!==0||dO(m,s,c)}x.memoizedState=c;var _={value:c,getSnapshot:s};return x.queue=_,CO(pO.bind(null,m,_,o),[o]),m.flags|=2048,Su(9,{destroy:void 0},hO.bind(null,m,_,c,s),null),c},useId:function(){var o=rr(),s=kt.identifierPrefix;if(lt){var c=ji,m=Di;c=(m&~(1<<32-yn(m)-1)).toString(32)+c,s="_"+s+"R_"+c,c=$p++,0<c&&(s+="H"+c.toString(32)),s+="_"}else c=f7++,s="_"+s+"r_"+c.toString(32)+"_";return o.memoizedState=s},useHostTransitionStatus:s1,useFormState:_O,useActionState:_O,useOptimistic:function(o){var s=rr();s.memoizedState=s.baseState=o;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=l1.bind(null,Ze,!0,c),c.dispatch=s,[o,s]},useMemoCache:W0,useCacheRefresh:function(){return rr().memoizedState=v7.bind(null,Ze)},useEffectEvent:function(o){var s=rr(),c={impl:o};return s.memoizedState=c,function(){if((gt&2)!==0)throw Error(r(440));return c.impl.apply(void 0,arguments)}}},u1={readContext:Bn,use:qp,useCallback:DO,useContext:Bn,useEffect:r1,useImperativeHandle:RO,useInsertionEffect:TO,useLayoutEffect:PO,useMemo:jO,useReducer:Hp,useRef:MO,useState:function(){return Hp(wa)},useDebugValue:i1,useDeferredValue:function(o,s){var c=nn();return IO(c,Et.memoizedState,o,s)},useTransition:function(){var o=Hp(wa)[0],s=nn().memoizedState;return[typeof o=="boolean"?o:Pf(o),s]},useSyncExternalStore:fO,useId:$O,useHostTransitionStatus:s1,useFormState:EO,useActionState:EO,useOptimistic:function(o,s){var c=nn();return vO(c,Et,o,s)},useMemoCache:W0,useCacheRefresh:UO};u1.useEffectEvent=kO;var KO={readContext:Bn,use:qp,useCallback:DO,useContext:Bn,useEffect:r1,useImperativeHandle:RO,useInsertionEffect:TO,useLayoutEffect:PO,useMemo:jO,useReducer:e1,useRef:MO,useState:function(){return e1(wa)},useDebugValue:i1,useDeferredValue:function(o,s){var c=nn();return Et===null?a1(c,o,s):IO(c,Et.memoizedState,o,s)},useTransition:function(){var o=e1(wa)[0],s=nn().memoizedState;return[typeof o=="boolean"?o:Pf(o),s]},useSyncExternalStore:fO,useId:$O,useHostTransitionStatus:s1,useFormState:OO,useActionState:OO,useOptimistic:function(o,s){var c=nn();return Et!==null?vO(c,Et,o,s):(c.baseState=o,[o,c.queue.dispatch])},useMemoCache:W0,useCacheRefresh:UO};KO.useEffectEvent=kO;function c1(o,s,c,m){s=o.memoizedState,c=c(m,s),c=c==null?s:p({},s,c),o.memoizedState=c,o.lanes===0&&(o.updateQueue.baseState=c)}var f1={enqueueSetState:function(o,s,c){o=o._reactInternals;var m=Rr(),x=Mo(m);x.payload=s,c!=null&&(x.callback=c),s=Co(o,x,m),s!==null&&(xr(s,o,m),Mf(s,o,m))},enqueueReplaceState:function(o,s,c){o=o._reactInternals;var m=Rr(),x=Mo(m);x.tag=1,x.payload=s,c!=null&&(x.callback=c),s=Co(o,x,m),s!==null&&(xr(s,o,m),Mf(s,o,m))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var c=Rr(),m=Mo(c);m.tag=2,s!=null&&(m.callback=s),s=Co(o,m,c),s!==null&&(xr(s,o,c),Mf(s,o,c))}};function YO(o,s,c,m,x,_,j){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(m,_,j):s.prototype&&s.prototype.isPureReactComponent?!bf(c,m)||!bf(x,_):!0}function GO(o,s,c,m){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,m),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,m),s.state!==o&&f1.enqueueReplaceState(s,s.state,null)}function Ks(o,s){var c=s;if("ref"in s){c={};for(var m in s)m!=="ref"&&(c[m]=s[m])}if(o=o.defaultProps){c===s&&(c=p({},c));for(var x in o)c[x]===void 0&&(c[x]=o[x])}return c}function QO(o){Ep(o)}function ZO(o){console.error(o)}function XO(o){Ep(o)}function Yp(o,s){try{var c=o.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(m){setTimeout(function(){throw m})}}function WO(o,s,c){try{var m=o.onCaughtError;m(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function d1(o,s,c){return c=Mo(c),c.tag=3,c.payload={element:null},c.callback=function(){Yp(o,s)},c}function JO(o){return o=Mo(o),o.tag=3,o}function eM(o,s,c,m){var x=c.type.getDerivedStateFromError;if(typeof x=="function"){var _=m.value;o.payload=function(){return x(_)},o.callback=function(){WO(s,c,m)}}var j=c.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(o.callback=function(){WO(s,c,m),typeof x!="function"&&(Do===null?Do=new Set([this]):Do.add(this));var U=m.stack;this.componentDidCatch(m.value,{componentStack:U!==null?U:""})})}function b7(o,s,c,m,x){if(c.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(s=c.alternate,s!==null&&pu(s,c,x,!0),c=kr.current,c!==null){switch(c.tag){case 31:case 13:return Wr===null?am():c.alternate===null&&Gt===0&&(Gt=3),c.flags&=-257,c.flags|=65536,c.lanes=x,m===Dp?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([m]):s.add(m),z1(o,m,x)),!1;case 22:return c.flags|=65536,m===Dp?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([m])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([m]):c.add(m)),z1(o,m,x)),!1}throw Error(r(435,c.tag))}return z1(o,m,x),am(),!1}if(lt)return s=kr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=x,m!==P0&&(o=Error(r(422),{cause:m}),Sf(Gr(o,c)))):(m!==P0&&(s=Error(r(423),{cause:m}),Sf(Gr(s,c))),o=o.current.alternate,o.flags|=65536,x&=-x,o.lanes|=x,m=Gr(m,c),x=d1(o.stateNode,m,x),q0(o,x),Gt!==4&&(Gt=2)),!1;var _=Error(r(520),{cause:m});if(_=Gr(_,c),Uf===null?Uf=[_]:Uf.push(_),Gt!==4&&(Gt=2),s===null)return!0;m=Gr(m,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,o=x&-x,c.lanes|=o,o=d1(c.stateNode,m,o),q0(c,o),!1;case 1:if(s=c.type,_=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Do===null||!Do.has(_))))return c.flags|=65536,x&=-x,c.lanes|=x,x=JO(x),eM(x,o,c,m),q0(c,x),!1}c=c.return}while(c!==null);return!1}var h1=Error(r(461)),cn=!1;function $n(o,s,c,m){s.child=o===null?iO(s,null,c,m):Vs(s,o.child,c,m)}function tM(o,s,c,m,x){c=c.render;var _=s.ref;if("ref"in m){var j={};for(var U in m)U!=="ref"&&(j[U]=m[U])}else j=m;return $s(s),m=G0(o,s,c,j,_,x),U=Q0(),o!==null&&!cn?(Z0(o,s,x),Sa(o,s,x)):(lt&&U&&k0(s),s.flags|=1,$n(o,s,m,x),s.child)}function nM(o,s,c,m,x){if(o===null){var _=c.type;return typeof _=="function"&&!O0(_)&&_.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=_,rM(o,s,_,m,x)):(o=Cp(c.type,null,m,s,s.mode,x),o.ref=s.ref,o.return=s,s.child=o)}if(_=o.child,!w1(o,x)){var j=_.memoizedProps;if(c=c.compare,c=c!==null?c:bf,c(j,m)&&o.ref===s.ref)return Sa(o,s,x)}return s.flags|=1,o=ya(_,m),o.ref=s.ref,o.return=s,s.child=o}function rM(o,s,c,m,x){if(o!==null){var _=o.memoizedProps;if(bf(_,m)&&o.ref===s.ref)if(cn=!1,s.pendingProps=m=_,w1(o,x))(o.flags&131072)!==0&&(cn=!0);else return s.lanes=o.lanes,Sa(o,s,x)}return p1(o,s,c,m,x)}function iM(o,s,c,m){var x=m.children,_=o!==null?o.memoizedState:null;if(o===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((s.flags&128)!==0){if(_=_!==null?_.baseLanes|c:c,o!==null){for(m=s.child=o.child,x=0;m!==null;)x=x|m.lanes|m.childLanes,m=m.sibling;m=x&~_}else m=0,s.child=null;return aM(o,s,_,c,m)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},o!==null&&Np(s,_!==null?_.cachePool:null),_!==null?sO(s,_):V0(),lO(s);else return m=s.lanes=536870912,aM(o,s,_!==null?_.baseLanes|c:c,c,m)}else _!==null?(Np(s,_.cachePool),sO(s,_),To(),s.memoizedState=null):(o!==null&&Np(s,null),V0(),To());return $n(o,s,x,c),s.child}function Df(o,s){return o!==null&&o.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function aM(o,s,c,m,x){var _=L0();return _=_===null?null:{parent:ln._currentValue,pool:_},s.memoizedState={baseLanes:c,cachePool:_},o!==null&&Np(s,null),V0(),lO(s),o!==null&&pu(o,s,m,!0),s.childLanes=x,null}function Gp(o,s){return s=Zp({mode:s.mode,children:s.children},o.mode),s.ref=o.ref,o.child=s,s.return=o,s}function oM(o,s,c){return Vs(s,o.child,null,c),o=Gp(s,s.pendingProps),o.flags|=2,Tr(s),s.memoizedState=null,o}function x7(o,s,c){var m=s.pendingProps,x=(s.flags&128)!==0;if(s.flags&=-129,o===null){if(lt){if(m.mode==="hidden")return o=Gp(s,m),s.lanes=536870912,Df(null,o);if(K0(s),(o=Rt)?(o=gC(o,Xr),o=o!==null&&o.data==="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:So!==null?{id:Di,overflow:ji}:null,retryLane:536870912,hydrationErrors:null},c=HA(o),c.return=s,s.child=c,Ln=s,Rt=null)):o=null,o===null)throw Eo(s);return s.lanes=536870912,null}return Gp(s,m)}var _=o.memoizedState;if(_!==null){var j=_.dehydrated;if(K0(s),x)if(s.flags&256)s.flags&=-257,s=oM(o,s,c);else if(s.memoizedState!==null)s.child=o.child,s.flags|=128,s=null;else throw Error(r(558));else if(cn||pu(o,s,c,!1),x=(c&o.childLanes)!==0,cn||x){if(m=kt,m!==null&&(j=op(m,c),j!==0&&j!==_.retryLane))throw _.retryLane=j,Is(o,j),xr(m,o,j),h1;am(),s=oM(o,s,c)}else o=_.treeContext,Rt=Jr(j.nextSibling),Ln=s,lt=!0,_o=null,Xr=!1,o!==null&&KA(s,o),s=Gp(s,m),s.flags|=4096;return s}return o=ya(o.child,{mode:m.mode,children:m.children}),o.ref=s.ref,s.child=o,o.return=s,o}function Qp(o,s){var c=s.ref;if(c===null)o!==null&&o.ref!==null&&(s.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(o===null||o.ref!==c)&&(s.flags|=4194816)}}function p1(o,s,c,m,x){return $s(s),c=G0(o,s,c,m,void 0,x),m=Q0(),o!==null&&!cn?(Z0(o,s,x),Sa(o,s,x)):(lt&&m&&k0(s),s.flags|=1,$n(o,s,c,x),s.child)}function sM(o,s,c,m,x,_){return $s(s),s.updateQueue=null,c=cO(s,m,c,x),uO(o),m=Q0(),o!==null&&!cn?(Z0(o,s,_),Sa(o,s,_)):(lt&&m&&k0(s),s.flags|=1,$n(o,s,c,_),s.child)}function lM(o,s,c,m,x){if($s(s),s.stateNode===null){var _=cu,j=c.contextType;typeof j=="object"&&j!==null&&(_=Bn(j)),_=new c(m,_),s.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=f1,s.stateNode=_,_._reactInternals=s,_=s.stateNode,_.props=m,_.state=s.memoizedState,_.refs={},$0(s),j=c.contextType,_.context=typeof j=="object"&&j!==null?Bn(j):cu,_.state=s.memoizedState,j=c.getDerivedStateFromProps,typeof j=="function"&&(c1(s,c,j,m),_.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(j=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),j!==_.state&&f1.enqueueReplaceState(_,_.state,null),kf(s,m,_,x),Cf(),_.state=s.memoizedState),typeof _.componentDidMount=="function"&&(s.flags|=4194308),m=!0}else if(o===null){_=s.stateNode;var U=s.memoizedProps,G=Ks(c,U);_.props=G;var se=_.context,ve=c.contextType;j=cu,typeof ve=="object"&&ve!==null&&(j=Bn(ve));var xe=c.getDerivedStateFromProps;ve=typeof xe=="function"||typeof _.getSnapshotBeforeUpdate=="function",U=s.pendingProps!==U,ve||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(U||se!==j)&&GO(s,_,m,j),Oo=!1;var ue=s.memoizedState;_.state=ue,kf(s,m,_,x),Cf(),se=s.memoizedState,U||ue!==se||Oo?(typeof xe=="function"&&(c1(s,c,xe,m),se=s.memoizedState),(G=Oo||YO(s,c,G,m,ue,se,j))?(ve||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(s.flags|=4194308)):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=m,s.memoizedState=se),_.props=m,_.state=se,_.context=j,m=G):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),m=!1)}else{_=s.stateNode,U0(o,s),j=s.memoizedProps,ve=Ks(c,j),_.props=ve,xe=s.pendingProps,ue=_.context,se=c.contextType,G=cu,typeof se=="object"&&se!==null&&(G=Bn(se)),U=c.getDerivedStateFromProps,(se=typeof U=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(j!==xe||ue!==G)&&GO(s,_,m,G),Oo=!1,ue=s.memoizedState,_.state=ue,kf(s,m,_,x),Cf();var me=s.memoizedState;j!==xe||ue!==me||Oo||o!==null&&o.dependencies!==null&&Tp(o.dependencies)?(typeof U=="function"&&(c1(s,c,U,m),me=s.memoizedState),(ve=Oo||YO(s,c,ve,m,ue,me,G)||o!==null&&o.dependencies!==null&&Tp(o.dependencies))?(se||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(m,me,G),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(m,me,G)),typeof _.componentDidUpdate=="function"&&(s.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof _.componentDidUpdate!="function"||j===o.memoizedProps&&ue===o.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||j===o.memoizedProps&&ue===o.memoizedState||(s.flags|=1024),s.memoizedProps=m,s.memoizedState=me),_.props=m,_.state=me,_.context=G,m=ve):(typeof _.componentDidUpdate!="function"||j===o.memoizedProps&&ue===o.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||j===o.memoizedProps&&ue===o.memoizedState||(s.flags|=1024),m=!1)}return _=m,Qp(o,s),m=(s.flags&128)!==0,_||m?(_=s.stateNode,c=m&&typeof c.getDerivedStateFromError!="function"?null:_.render(),s.flags|=1,o!==null&&m?(s.child=Vs(s,o.child,null,x),s.child=Vs(s,null,c,x)):$n(o,s,c,x),s.memoizedState=_.state,o=s.child):o=Sa(o,s,x),o}function uM(o,s,c,m){return Ls(),s.flags|=256,$n(o,s,c,m),s.child}var m1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function y1(o){return{baseLanes:o,cachePool:WA()}}function v1(o,s,c){return o=o!==null?o.childLanes&~c:0,s&&(o|=Nr),o}function cM(o,s,c){var m=s.pendingProps,x=!1,_=(s.flags&128)!==0,j;if((j=_)||(j=o!==null&&o.memoizedState===null?!1:(tn.current&2)!==0),j&&(x=!0,s.flags&=-129),j=(s.flags&32)!==0,s.flags&=-33,o===null){if(lt){if(x?ko(s):To(),(o=Rt)?(o=gC(o,Xr),o=o!==null&&o.data!=="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:So!==null?{id:Di,overflow:ji}:null,retryLane:536870912,hydrationErrors:null},c=HA(o),c.return=s,s.child=c,Ln=s,Rt=null)):o=null,o===null)throw Eo(s);return J1(o)?s.lanes=32:s.lanes=536870912,null}var U=m.children;return m=m.fallback,x?(To(),x=s.mode,U=Zp({mode:"hidden",children:U},x),m=zs(m,x,c,null),U.return=s,m.return=s,U.sibling=m,s.child=U,m=s.child,m.memoizedState=y1(c),m.childLanes=v1(o,j,c),s.memoizedState=m1,Df(null,m)):(ko(s),g1(s,U))}var G=o.memoizedState;if(G!==null&&(U=G.dehydrated,U!==null)){if(_)s.flags&256?(ko(s),s.flags&=-257,s=b1(o,s,c)):s.memoizedState!==null?(To(),s.child=o.child,s.flags|=128,s=null):(To(),U=m.fallback,x=s.mode,m=Zp({mode:"visible",children:m.children},x),U=zs(U,x,c,null),U.flags|=2,m.return=s,U.return=s,m.sibling=U,s.child=m,Vs(s,o.child,null,c),m=s.child,m.memoizedState=y1(c),m.childLanes=v1(o,j,c),s.memoizedState=m1,s=Df(null,m));else if(ko(s),J1(U)){if(j=U.nextSibling&&U.nextSibling.dataset,j)var se=j.dgst;j=se,m=Error(r(419)),m.stack="",m.digest=j,Sf({value:m,source:null,stack:null}),s=b1(o,s,c)}else if(cn||pu(o,s,c,!1),j=(c&o.childLanes)!==0,cn||j){if(j=kt,j!==null&&(m=op(j,c),m!==0&&m!==G.retryLane))throw G.retryLane=m,Is(o,m),xr(j,o,m),h1;W1(U)||am(),s=b1(o,s,c)}else W1(U)?(s.flags|=192,s.child=o.child,s=null):(o=G.treeContext,Rt=Jr(U.nextSibling),Ln=s,lt=!0,_o=null,Xr=!1,o!==null&&KA(s,o),s=g1(s,m.children),s.flags|=4096);return s}return x?(To(),U=m.fallback,x=s.mode,G=o.child,se=G.sibling,m=ya(G,{mode:"hidden",children:m.children}),m.subtreeFlags=G.subtreeFlags&65011712,se!==null?U=ya(se,U):(U=zs(U,x,c,null),U.flags|=2),U.return=s,m.return=s,m.sibling=U,s.child=m,Df(null,m),m=s.child,U=o.child.memoizedState,U===null?U=y1(c):(x=U.cachePool,x!==null?(G=ln._currentValue,x=x.parent!==G?{parent:G,pool:G}:x):x=WA(),U={baseLanes:U.baseLanes|c,cachePool:x}),m.memoizedState=U,m.childLanes=v1(o,j,c),s.memoizedState=m1,Df(o.child,m)):(ko(s),c=o.child,o=c.sibling,c=ya(c,{mode:"visible",children:m.children}),c.return=s,c.sibling=null,o!==null&&(j=s.deletions,j===null?(s.deletions=[o],s.flags|=16):j.push(o)),s.child=c,s.memoizedState=null,c)}function g1(o,s){return s=Zp({mode:"visible",children:s},o.mode),s.return=o,o.child=s}function Zp(o,s){return o=Cr(22,o,null,s),o.lanes=0,o}function b1(o,s,c){return Vs(s,o.child,null,c),o=g1(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function fM(o,s,c){o.lanes|=s;var m=o.alternate;m!==null&&(m.lanes|=s),D0(o.return,s,c)}function x1(o,s,c,m,x,_){var j=o.memoizedState;j===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:m,tail:c,tailMode:x,treeForkCount:_}:(j.isBackwards=s,j.rendering=null,j.renderingStartTime=0,j.last=m,j.tail=c,j.tailMode=x,j.treeForkCount=_)}function dM(o,s,c){var m=s.pendingProps,x=m.revealOrder,_=m.tail;m=m.children;var j=tn.current,U=(j&2)!==0;if(U?(j=j&1|2,s.flags|=128):j&=1,J(tn,j),$n(o,s,m,c),m=lt?wf:0,!U&&o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&fM(o,c,s);else if(o.tag===19)fM(o,c,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(x){case"forwards":for(c=s.child,x=null;c!==null;)o=c.alternate,o!==null&&Lp(o)===null&&(x=c),c=c.sibling;c=x,c===null?(x=s.child,s.child=null):(x=c.sibling,c.sibling=null),x1(s,!1,x,c,_,m);break;case"backwards":case"unstable_legacy-backwards":for(c=null,x=s.child,s.child=null;x!==null;){if(o=x.alternate,o!==null&&Lp(o)===null){s.child=x;break}o=x.sibling,x.sibling=c,c=x,x=o}x1(s,!0,c,null,_,m);break;case"together":x1(s,!1,null,null,void 0,m);break;default:s.memoizedState=null}return s.child}function Sa(o,s,c){if(o!==null&&(s.dependencies=o.dependencies),Ro|=s.lanes,(c&s.childLanes)===0)if(o!==null){if(pu(o,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(o!==null&&s.child!==o.child)throw Error(r(153));if(s.child!==null){for(o=s.child,c=ya(o,o.pendingProps),s.child=c,c.return=s;o.sibling!==null;)o=o.sibling,c=c.sibling=ya(o,o.pendingProps),c.return=s;c.sibling=null}return s.child}function w1(o,s){return(o.lanes&s)!==0?!0:(o=o.dependencies,!!(o!==null&&Tp(o)))}function w7(o,s,c){switch(s.tag){case 3:ie(s,s.stateNode.containerInfo),Ao(s,ln,o.memoizedState.cache),Ls();break;case 27:case 5:pe(s);break;case 4:ie(s,s.stateNode.containerInfo);break;case 10:Ao(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,K0(s),null;break;case 13:var m=s.memoizedState;if(m!==null)return m.dehydrated!==null?(ko(s),s.flags|=128,null):(c&s.child.childLanes)!==0?cM(o,s,c):(ko(s),o=Sa(o,s,c),o!==null?o.sibling:null);ko(s);break;case 19:var x=(o.flags&128)!==0;if(m=(c&s.childLanes)!==0,m||(pu(o,s,c,!1),m=(c&s.childLanes)!==0),x){if(m)return dM(o,s,c);s.flags|=128}if(x=s.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),J(tn,tn.current),m)break;return null;case 22:return s.lanes=0,iM(o,s,c,s.pendingProps);case 24:Ao(s,ln,o.memoizedState.cache)}return Sa(o,s,c)}function hM(o,s,c){if(o!==null)if(o.memoizedProps!==s.pendingProps)cn=!0;else{if(!w1(o,c)&&(s.flags&128)===0)return cn=!1,w7(o,s,c);cn=(o.flags&131072)!==0}else cn=!1,lt&&(s.flags&1048576)!==0&&FA(s,wf,s.index);switch(s.lanes=0,s.tag){case 16:e:{var m=s.pendingProps;if(o=qs(s.elementType),s.type=o,typeof o=="function")O0(o)?(m=Ks(o,m),s.tag=1,s=lM(null,s,o,m,c)):(s.tag=0,s=p1(null,s,o,m,c));else{if(o!=null){var x=o.$$typeof;if(x===O){s.tag=11,s=tM(null,s,o,m,c);break e}else if(x===T){s.tag=14,s=nM(null,s,o,m,c);break e}}throw s=I(o)||o,Error(r(306,s,""))}}return s;case 0:return p1(o,s,s.type,s.pendingProps,c);case 1:return m=s.type,x=Ks(m,s.pendingProps),lM(o,s,m,x,c);case 3:e:{if(ie(s,s.stateNode.containerInfo),o===null)throw Error(r(387));m=s.pendingProps;var _=s.memoizedState;x=_.element,U0(o,s),kf(s,m,null,c);var j=s.memoizedState;if(m=j.cache,Ao(s,ln,m),m!==_.cache&&j0(s,[ln],c,!0),Cf(),m=j.element,_.isDehydrated)if(_={element:m,isDehydrated:!1,cache:j.cache},s.updateQueue.baseState=_,s.memoizedState=_,s.flags&256){s=uM(o,s,m,c);break e}else if(m!==x){x=Gr(Error(r(424)),s),Sf(x),s=uM(o,s,m,c);break e}else{switch(o=s.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for(Rt=Jr(o.firstChild),Ln=s,lt=!0,_o=null,Xr=!0,c=iO(s,null,m,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(Ls(),m===x){s=Sa(o,s,c);break e}$n(o,s,m,c)}s=s.child}return s;case 26:return Qp(o,s),o===null?(c=EC(s.type,null,s.pendingProps,null))?s.memoizedState=c:lt||(c=s.type,o=s.pendingProps,m=dm(he.current).createElement(c),m[vn]=s,m[Zn]=o,Un(m,c,o),sn(m),s.stateNode=m):s.memoizedState=EC(s.type,o.memoizedProps,s.pendingProps,o.memoizedState),null;case 27:return pe(s),o===null&<&&(m=s.stateNode=wC(s.type,s.pendingProps,he.current),Ln=s,Xr=!0,x=Rt,Lo(s.type)?(eb=x,Rt=Jr(m.firstChild)):Rt=x),$n(o,s,s.pendingProps.children,c),Qp(o,s),o===null&&(s.flags|=4194304),s.child;case 5:return o===null&<&&((x=m=Rt)&&(m=X7(m,s.type,s.pendingProps,Xr),m!==null?(s.stateNode=m,Ln=s,Rt=Jr(m.firstChild),Xr=!1,x=!0):x=!1),x||Eo(s)),pe(s),x=s.type,_=s.pendingProps,j=o!==null?o.memoizedProps:null,m=_.children,Q1(x,_)?m=null:j!==null&&Q1(x,j)&&(s.flags|=32),s.memoizedState!==null&&(x=G0(o,s,d7,null,null,c),Qf._currentValue=x),Qp(o,s),$n(o,s,m,c),s.child;case 6:return o===null&<&&((o=c=Rt)&&(c=W7(c,s.pendingProps,Xr),c!==null?(s.stateNode=c,Ln=s,Rt=null,o=!0):o=!1),o||Eo(s)),null;case 13:return cM(o,s,c);case 4:return ie(s,s.stateNode.containerInfo),m=s.pendingProps,o===null?s.child=Vs(s,null,m,c):$n(o,s,m,c),s.child;case 11:return tM(o,s,s.type,s.pendingProps,c);case 7:return $n(o,s,s.pendingProps,c),s.child;case 8:return $n(o,s,s.pendingProps.children,c),s.child;case 12:return $n(o,s,s.pendingProps.children,c),s.child;case 10:return m=s.pendingProps,Ao(s,s.type,m.value),$n(o,s,m.children,c),s.child;case 9:return x=s.type._context,m=s.pendingProps.children,$s(s),x=Bn(x),m=m(x),s.flags|=1,$n(o,s,m,c),s.child;case 14:return nM(o,s,s.type,s.pendingProps,c);case 15:return rM(o,s,s.type,s.pendingProps,c);case 19:return dM(o,s,c);case 31:return x7(o,s,c);case 22:return iM(o,s,c,s.pendingProps);case 24:return $s(s),m=Bn(ln),o===null?(x=L0(),x===null&&(x=kt,_=I0(),x.pooledCache=_,_.refCount++,_!==null&&(x.pooledCacheLanes|=c),x=_),s.memoizedState={parent:m,cache:x},$0(s),Ao(s,ln,x)):((o.lanes&c)!==0&&(U0(o,s),kf(s,null,null,c),Cf()),x=o.memoizedState,_=s.memoizedState,x.parent!==m?(x={parent:m,cache:m},s.memoizedState=x,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=x),Ao(s,ln,m)):(m=_.cache,Ao(s,ln,m),m!==x.cache&&j0(s,[ln],c,!0))),$n(o,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function _a(o){o.flags|=4}function S1(o,s,c,m,x){if((s=(o.mode&32)!==0)&&(s=!1),s){if(o.flags|=16777216,(x&335544128)===x)if(o.stateNode.complete)o.flags|=8192;else if($M())o.flags|=8192;else throw Hs=Dp,B0}else o.flags&=-16777217}function pM(o,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!kC(s))if($M())o.flags|=8192;else throw Hs=Dp,B0}function Xp(o,s){s!==null&&(o.flags|=4),o.flags&16384&&(s=o.tag!==22?rp():536870912,o.lanes|=s,Ou|=s)}function jf(o,s){if(!lt)switch(o.tailMode){case"hidden":s=o.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?o.tail=null:c.sibling=null;break;case"collapsed":c=o.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:m.sibling=null}}function Dt(o){var s=o.alternate!==null&&o.alternate.child===o.child,c=0,m=0;if(s)for(var x=o.child;x!==null;)c|=x.lanes|x.childLanes,m|=x.subtreeFlags&65011712,m|=x.flags&65011712,x.return=o,x=x.sibling;else for(x=o.child;x!==null;)c|=x.lanes|x.childLanes,m|=x.subtreeFlags,m|=x.flags,x.return=o,x=x.sibling;return o.subtreeFlags|=m,o.childLanes=c,s}function S7(o,s,c){var m=s.pendingProps;switch(T0(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(s),null;case 1:return Dt(s),null;case 3:return c=s.stateNode,m=null,o!==null&&(m=o.memoizedState.cache),s.memoizedState.cache!==m&&(s.flags|=2048),ba(ln),W(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(o===null||o.child===null)&&(hu(s)?_a(s):o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,N0())),Dt(s),null;case 26:var x=s.type,_=s.memoizedState;return o===null?(_a(s),_!==null?(Dt(s),pM(s,_)):(Dt(s),S1(s,x,null,m,c))):_?_!==o.memoizedState?(_a(s),Dt(s),pM(s,_)):(Dt(s),s.flags&=-16777217):(o=o.memoizedProps,o!==m&&_a(s),Dt(s),S1(s,x,o,m,c)),null;case 27:if(ge(s),c=he.current,x=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==m&&_a(s);else{if(!m){if(s.stateNode===null)throw Error(r(166));return Dt(s),null}o=te.current,hu(s)?YA(s):(o=wC(x,m,c),s.stateNode=o,_a(s))}return Dt(s),null;case 5:if(ge(s),x=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==m&&_a(s);else{if(!m){if(s.stateNode===null)throw Error(r(166));return Dt(s),null}if(_=te.current,hu(s))YA(s);else{var j=dm(he.current);switch(_){case 1:_=j.createElementNS("http://www.w3.org/2000/svg",x);break;case 2:_=j.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;default:switch(x){case"svg":_=j.createElementNS("http://www.w3.org/2000/svg",x);break;case"math":_=j.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;case"script":_=j.createElement("div"),_.innerHTML="<script><\/script>",_=_.removeChild(_.firstChild);break;case"select":_=typeof m.is=="string"?j.createElement("select",{is:m.is}):j.createElement("select"),m.multiple?_.multiple=!0:m.size&&(_.size=m.size);break;default:_=typeof m.is=="string"?j.createElement(x,{is:m.is}):j.createElement(x)}}_[vn]=s,_[Zn]=m;e:for(j=s.child;j!==null;){if(j.tag===5||j.tag===6)_.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===s)break e;for(;j.sibling===null;){if(j.return===null||j.return===s)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}s.stateNode=_;e:switch(Un(_,x,m),x){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&_a(s)}}return Dt(s),S1(s,s.type,o===null?null:o.memoizedProps,s.pendingProps,c),null;case 6:if(o&&s.stateNode!=null)o.memoizedProps!==m&&_a(s);else{if(typeof m!="string"&&s.stateNode===null)throw Error(r(166));if(o=he.current,hu(s)){if(o=s.stateNode,c=s.memoizedProps,m=null,x=Ln,x!==null)switch(x.tag){case 27:case 5:m=x.memoizedProps}o[vn]=s,o=!!(o.nodeValue===c||m!==null&&m.suppressHydrationWarning===!0||cC(o.nodeValue,c)),o||Eo(s,!0)}else o=dm(o).createTextNode(m),o[vn]=s,s.stateNode=o}return Dt(s),null;case 31:if(c=s.memoizedState,o===null||o.memoizedState!==null){if(m=hu(s),c!==null){if(o===null){if(!m)throw Error(r(318));if(o=s.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[vn]=s}else Ls(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Dt(s),o=!1}else c=N0(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=c),o=!0;if(!o)return s.flags&256?(Tr(s),s):(Tr(s),null);if((s.flags&128)!==0)throw Error(r(558))}return Dt(s),null;case 13:if(m=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(x=hu(s),m!==null&&m.dehydrated!==null){if(o===null){if(!x)throw Error(r(318));if(x=s.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[vn]=s}else Ls(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Dt(s),x=!1}else x=N0(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=x),x=!0;if(!x)return s.flags&256?(Tr(s),s):(Tr(s),null)}return Tr(s),(s.flags&128)!==0?(s.lanes=c,s):(c=m!==null,o=o!==null&&o.memoizedState!==null,c&&(m=s.child,x=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(x=m.alternate.memoizedState.cachePool.pool),_=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(_=m.memoizedState.cachePool.pool),_!==x&&(m.flags|=2048)),c!==o&&c&&(s.child.flags|=8192),Xp(s,s.updateQueue),Dt(s),null);case 4:return W(),o===null&&V1(s.stateNode.containerInfo),Dt(s),null;case 10:return ba(s.type),Dt(s),null;case 19:if(K(tn),m=s.memoizedState,m===null)return Dt(s),null;if(x=(s.flags&128)!==0,_=m.rendering,_===null)if(x)jf(m,!1);else{if(Gt!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(_=Lp(o),_!==null){for(s.flags|=128,jf(m,!1),o=_.updateQueue,s.updateQueue=o,Xp(s,o),s.subtreeFlags=0,o=c,c=s.child;c!==null;)qA(c,o),c=c.sibling;return J(tn,tn.current&1|2),lt&&va(s,m.treeForkCount),s.child}o=o.sibling}m.tail!==null&&ae()>nm&&(s.flags|=128,x=!0,jf(m,!1),s.lanes=4194304)}else{if(!x)if(o=Lp(_),o!==null){if(s.flags|=128,x=!0,o=o.updateQueue,s.updateQueue=o,Xp(s,o),jf(m,!0),m.tail===null&&m.tailMode==="hidden"&&!_.alternate&&!lt)return Dt(s),null}else 2*ae()-m.renderingStartTime>nm&&c!==536870912&&(s.flags|=128,x=!0,jf(m,!1),s.lanes=4194304);m.isBackwards?(_.sibling=s.child,s.child=_):(o=m.last,o!==null?o.sibling=_:s.child=_,m.last=_)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=ae(),o.sibling=null,c=tn.current,J(tn,x?c&1|2:c&1),lt&&va(s,m.treeForkCount),o):(Dt(s),null);case 22:case 23:return Tr(s),F0(),m=s.memoizedState!==null,o!==null?o.memoizedState!==null!==m&&(s.flags|=8192):m&&(s.flags|=8192),m?(c&536870912)!==0&&(s.flags&128)===0&&(Dt(s),s.subtreeFlags&6&&(s.flags|=8192)):Dt(s),c=s.updateQueue,c!==null&&Xp(s,c.retryQueue),c=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==c&&(s.flags|=2048),o!==null&&K(Us),null;case 24:return c=null,o!==null&&(c=o.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),ba(ln),Dt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function _7(o,s){switch(T0(s),s.tag){case 1:return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return ba(ln),W(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 26:case 27:case 5:return ge(s),null;case 31:if(s.memoizedState!==null){if(Tr(s),s.alternate===null)throw Error(r(340));Ls()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 13:if(Tr(s),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Ls()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return K(tn),null;case 4:return W(),null;case 10:return ba(s.type),null;case 22:case 23:return Tr(s),F0(),o!==null&&K(Us),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 24:return ba(ln),null;case 25:return null;default:return null}}function mM(o,s){switch(T0(s),s.tag){case 3:ba(ln),W();break;case 26:case 27:case 5:ge(s);break;case 4:W();break;case 31:s.memoizedState!==null&&Tr(s);break;case 13:Tr(s);break;case 19:K(tn);break;case 10:ba(s.type);break;case 22:case 23:Tr(s),F0(),o!==null&&K(Us);break;case 24:ba(ln)}}function If(o,s){try{var c=s.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var x=m.next;c=x;do{if((c.tag&o)===o){m=void 0;var _=c.create,j=c.inst;m=_(),j.destroy=m}c=c.next}while(c!==x)}}catch(U){_t(s,s.return,U)}}function Po(o,s,c){try{var m=s.updateQueue,x=m!==null?m.lastEffect:null;if(x!==null){var _=x.next;m=_;do{if((m.tag&o)===o){var j=m.inst,U=j.destroy;if(U!==void 0){j.destroy=void 0,x=s;var G=c,se=U;try{se()}catch(ve){_t(x,G,ve)}}}m=m.next}while(m!==_)}}catch(ve){_t(s,s.return,ve)}}function yM(o){var s=o.updateQueue;if(s!==null){var c=o.stateNode;try{oO(s,c)}catch(m){_t(o,o.return,m)}}}function vM(o,s,c){c.props=Ks(o.type,o.memoizedProps),c.state=o.memoizedState;try{c.componentWillUnmount()}catch(m){_t(o,s,m)}}function zf(o,s){try{var c=o.ref;if(c!==null){switch(o.tag){case 26:case 27:case 5:var m=o.stateNode;break;case 30:m=o.stateNode;break;default:m=o.stateNode}typeof c=="function"?o.refCleanup=c(m):c.current=m}}catch(x){_t(o,s,x)}}function Ii(o,s){var c=o.ref,m=o.refCleanup;if(c!==null)if(typeof m=="function")try{m()}catch(x){_t(o,s,x)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(x){_t(o,s,x)}else c.current=null}function gM(o){var s=o.type,c=o.memoizedProps,m=o.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&m.focus();break e;case"img":c.src?m.src=c.src:c.srcSet&&(m.srcset=c.srcSet)}}catch(x){_t(o,o.return,x)}}function _1(o,s,c){try{var m=o.stateNode;F7(m,o.type,c,s),m[Zn]=s}catch(x){_t(o,o.return,x)}}function bM(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Lo(o.type)||o.tag===4}function E1(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||bM(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Lo(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function A1(o,s,c){var m=o.tag;if(m===5||m===6)o=o.stateNode,s?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(o,s):(s=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,s.appendChild(o),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=pa));else if(m!==4&&(m===27&&Lo(o.type)&&(c=o.stateNode,s=null),o=o.child,o!==null))for(A1(o,s,c),o=o.sibling;o!==null;)A1(o,s,c),o=o.sibling}function Wp(o,s,c){var m=o.tag;if(m===5||m===6)o=o.stateNode,s?c.insertBefore(o,s):c.appendChild(o);else if(m!==4&&(m===27&&Lo(o.type)&&(c=o.stateNode),o=o.child,o!==null))for(Wp(o,s,c),o=o.sibling;o!==null;)Wp(o,s,c),o=o.sibling}function xM(o){var s=o.stateNode,c=o.memoizedProps;try{for(var m=o.type,x=s.attributes;x.length;)s.removeAttributeNode(x[0]);Un(s,m,c),s[vn]=o,s[Zn]=c}catch(_){_t(o,o.return,_)}}var Ea=!1,fn=!1,O1=!1,wM=typeof WeakSet=="function"?WeakSet:Set,Mn=null;function E7(o,s){if(o=o.containerInfo,Y1=bm,o=RA(o),b0(o)){if("selectionStart"in o)var c={start:o.selectionStart,end:o.selectionEnd};else e:{c=(c=o.ownerDocument)&&c.defaultView||window;var m=c.getSelection&&c.getSelection();if(m&&m.rangeCount!==0){c=m.anchorNode;var x=m.anchorOffset,_=m.focusNode;m=m.focusOffset;try{c.nodeType,_.nodeType}catch{c=null;break e}var j=0,U=-1,G=-1,se=0,ve=0,xe=o,ue=null;t:for(;;){for(var me;xe!==c||x!==0&&xe.nodeType!==3||(U=j+x),xe!==_||m!==0&&xe.nodeType!==3||(G=j+m),xe.nodeType===3&&(j+=xe.nodeValue.length),(me=xe.firstChild)!==null;)ue=xe,xe=me;for(;;){if(xe===o)break t;if(ue===c&&++se===x&&(U=j),ue===_&&++ve===m&&(G=j),(me=xe.nextSibling)!==null)break;xe=ue,ue=xe.parentNode}xe=me}c=U===-1||G===-1?null:{start:U,end:G}}else c=null}c=c||{start:0,end:0}}else c=null;for(G1={focusedElem:o,selectionRange:c},bm=!1,Mn=s;Mn!==null;)if(s=Mn,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,Mn=o;else for(;Mn!==null;){switch(s=Mn,_=s.alternate,o=s.flags,s.tag){case 0:if((o&4)!==0&&(o=s.updateQueue,o=o!==null?o.events:null,o!==null))for(c=0;c<o.length;c++)x=o[c],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&_!==null){o=void 0,c=s,x=_.memoizedProps,_=_.memoizedState,m=c.stateNode;try{var Re=Ks(c.type,x);o=m.getSnapshotBeforeUpdate(Re,_),m.__reactInternalSnapshotBeforeUpdate=o}catch(Fe){_t(c,c.return,Fe)}}break;case 3:if((o&1024)!==0){if(o=s.stateNode.containerInfo,c=o.nodeType,c===9)X1(o);else if(c===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":X1(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=s.sibling,o!==null){o.return=s.return,Mn=o;break}Mn=s.return}}function SM(o,s,c){var m=c.flags;switch(c.tag){case 0:case 11:case 15:Oa(o,c),m&4&&If(5,c);break;case 1:if(Oa(o,c),m&4)if(o=c.stateNode,s===null)try{o.componentDidMount()}catch(j){_t(c,c.return,j)}else{var x=Ks(c.type,s.memoizedProps);s=s.memoizedState;try{o.componentDidUpdate(x,s,o.__reactInternalSnapshotBeforeUpdate)}catch(j){_t(c,c.return,j)}}m&64&&yM(c),m&512&&zf(c,c.return);break;case 3:if(Oa(o,c),m&64&&(o=c.updateQueue,o!==null)){if(s=null,c.child!==null)switch(c.child.tag){case 27:case 5:s=c.child.stateNode;break;case 1:s=c.child.stateNode}try{oO(o,s)}catch(j){_t(c,c.return,j)}}break;case 27:s===null&&m&4&&xM(c);case 26:case 5:Oa(o,c),s===null&&m&4&&gM(c),m&512&&zf(c,c.return);break;case 12:Oa(o,c);break;case 31:Oa(o,c),m&4&&AM(o,c);break;case 13:Oa(o,c),m&4&&OM(o,c),m&64&&(o=c.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(c=R7.bind(null,c),J7(o,c))));break;case 22:if(m=c.memoizedState!==null||Ea,!m){s=s!==null&&s.memoizedState!==null||fn,x=Ea;var _=fn;Ea=m,(fn=s)&&!_?Ma(o,c,(c.subtreeFlags&8772)!==0):Oa(o,c),Ea=x,fn=_}break;case 30:break;default:Oa(o,c)}}function _M(o){var s=o.alternate;s!==null&&(o.alternate=null,_M(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&uf(s)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Lt=null,yr=!1;function Aa(o,s,c){for(c=c.child;c!==null;)EM(o,s,c),c=c.sibling}function EM(o,s,c){if(zn&&typeof zn.onCommitFiberUnmount=="function")try{zn.onCommitFiberUnmount(Kt,c)}catch{}switch(c.tag){case 26:fn||Ii(c,s),Aa(o,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:fn||Ii(c,s);var m=Lt,x=yr;Lo(c.type)&&(Lt=c.stateNode,yr=!1),Aa(o,s,c),Kf(c.stateNode),Lt=m,yr=x;break;case 5:fn||Ii(c,s);case 6:if(m=Lt,x=yr,Lt=null,Aa(o,s,c),Lt=m,yr=x,Lt!==null)if(yr)try{(Lt.nodeType===9?Lt.body:Lt.nodeName==="HTML"?Lt.ownerDocument.body:Lt).removeChild(c.stateNode)}catch(_){_t(c,s,_)}else try{Lt.removeChild(c.stateNode)}catch(_){_t(c,s,_)}break;case 18:Lt!==null&&(yr?(o=Lt,yC(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,c.stateNode),Du(o)):yC(Lt,c.stateNode));break;case 4:m=Lt,x=yr,Lt=c.stateNode.containerInfo,yr=!0,Aa(o,s,c),Lt=m,yr=x;break;case 0:case 11:case 14:case 15:Po(2,c,s),fn||Po(4,c,s),Aa(o,s,c);break;case 1:fn||(Ii(c,s),m=c.stateNode,typeof m.componentWillUnmount=="function"&&vM(c,s,m)),Aa(o,s,c);break;case 21:Aa(o,s,c);break;case 22:fn=(m=fn)||c.memoizedState!==null,Aa(o,s,c),fn=m;break;default:Aa(o,s,c)}}function AM(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Du(o)}catch(c){_t(s,s.return,c)}}}function OM(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Du(o)}catch(c){_t(s,s.return,c)}}function A7(o){switch(o.tag){case 31:case 13:case 19:var s=o.stateNode;return s===null&&(s=o.stateNode=new wM),s;case 22:return o=o.stateNode,s=o._retryCache,s===null&&(s=o._retryCache=new wM),s;default:throw Error(r(435,o.tag))}}function Jp(o,s){var c=A7(o);s.forEach(function(m){if(!c.has(m)){c.add(m);var x=D7.bind(null,o,m);m.then(x,x)}})}function vr(o,s){var c=s.deletions;if(c!==null)for(var m=0;m<c.length;m++){var x=c[m],_=o,j=s,U=j;e:for(;U!==null;){switch(U.tag){case 27:if(Lo(U.type)){Lt=U.stateNode,yr=!1;break e}break;case 5:Lt=U.stateNode,yr=!1;break e;case 3:case 4:Lt=U.stateNode.containerInfo,yr=!0;break e}U=U.return}if(Lt===null)throw Error(r(160));EM(_,j,x),Lt=null,yr=!1,_=x.alternate,_!==null&&(_.return=null),x.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)MM(s,o),s=s.sibling}var mi=null;function MM(o,s){var c=o.alternate,m=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:vr(s,o),gr(o),m&4&&(Po(3,o,o.return),If(3,o),Po(5,o,o.return));break;case 1:vr(s,o),gr(o),m&512&&(fn||c===null||Ii(c,c.return)),m&64&&Ea&&(o=o.updateQueue,o!==null&&(m=o.callbacks,m!==null&&(c=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=c===null?m:c.concat(m))));break;case 26:var x=mi;if(vr(s,o),gr(o),m&512&&(fn||c===null||Ii(c,c.return)),m&4){var _=c!==null?c.memoizedState:null;if(m=o.memoizedState,c===null)if(m===null)if(o.stateNode===null){e:{m=o.type,c=o.memoizedProps,x=x.ownerDocument||x;t:switch(m){case"title":_=x.getElementsByTagName("title")[0],(!_||_[Ts]||_[vn]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=x.createElement(m),x.head.insertBefore(_,x.querySelector("head > title"))),Un(_,m,c),_[vn]=o,sn(_),m=_;break e;case"link":var j=MC("link","href",x).get(m+(c.href||""));if(j){for(var U=0;U<j.length;U++)if(_=j[U],_.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&_.getAttribute("rel")===(c.rel==null?null:c.rel)&&_.getAttribute("title")===(c.title==null?null:c.title)&&_.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){j.splice(U,1);break t}}_=x.createElement(m),Un(_,m,c),x.head.appendChild(_);break;case"meta":if(j=MC("meta","content",x).get(m+(c.content||""))){for(U=0;U<j.length;U++)if(_=j[U],_.getAttribute("content")===(c.content==null?null:""+c.content)&&_.getAttribute("name")===(c.name==null?null:c.name)&&_.getAttribute("property")===(c.property==null?null:c.property)&&_.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&_.getAttribute("charset")===(c.charSet==null?null:c.charSet)){j.splice(U,1);break t}}_=x.createElement(m),Un(_,m,c),x.head.appendChild(_);break;default:throw Error(r(468,m))}_[vn]=o,sn(_),m=_}o.stateNode=m}else CC(x,o.type,o.stateNode);else o.stateNode=OC(x,m,o.memoizedProps);else _!==m?(_===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):_.count--,m===null?CC(x,o.type,o.stateNode):OC(x,m,o.memoizedProps)):m===null&&o.stateNode!==null&&_1(o,o.memoizedProps,c.memoizedProps)}break;case 27:vr(s,o),gr(o),m&512&&(fn||c===null||Ii(c,c.return)),c!==null&&m&4&&_1(o,o.memoizedProps,c.memoizedProps);break;case 5:if(vr(s,o),gr(o),m&512&&(fn||c===null||Ii(c,c.return)),o.flags&32){x=o.stateNode;try{ru(x,"")}catch(Re){_t(o,o.return,Re)}}m&4&&o.stateNode!=null&&(x=o.memoizedProps,_1(o,x,c!==null?c.memoizedProps:x)),m&1024&&(O1=!0);break;case 6:if(vr(s,o),gr(o),m&4){if(o.stateNode===null)throw Error(r(162));m=o.memoizedProps,c=o.stateNode;try{c.nodeValue=m}catch(Re){_t(o,o.return,Re)}}break;case 3:if(mm=null,x=mi,mi=hm(s.containerInfo),vr(s,o),mi=x,gr(o),m&4&&c!==null&&c.memoizedState.isDehydrated)try{Du(s.containerInfo)}catch(Re){_t(o,o.return,Re)}O1&&(O1=!1,CM(o));break;case 4:m=mi,mi=hm(o.stateNode.containerInfo),vr(s,o),gr(o),mi=m;break;case 12:vr(s,o),gr(o);break;case 31:vr(s,o),gr(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,Jp(o,m)));break;case 13:vr(s,o),gr(o),o.child.flags&8192&&o.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(tm=ae()),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,Jp(o,m)));break;case 22:x=o.memoizedState!==null;var G=c!==null&&c.memoizedState!==null,se=Ea,ve=fn;if(Ea=se||x,fn=ve||G,vr(s,o),fn=ve,Ea=se,gr(o),m&8192)e:for(s=o.stateNode,s._visibility=x?s._visibility&-2:s._visibility|1,x&&(c===null||G||Ea||fn||Ys(o)),c=null,s=o;;){if(s.tag===5||s.tag===26){if(c===null){G=c=s;try{if(_=G.stateNode,x)j=_.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{U=G.stateNode;var xe=G.memoizedProps.style,ue=xe!=null&&xe.hasOwnProperty("display")?xe.display:null;U.style.display=ue==null||typeof ue=="boolean"?"":(""+ue).trim()}}catch(Re){_t(G,G.return,Re)}}}else if(s.tag===6){if(c===null){G=s;try{G.stateNode.nodeValue=x?"":G.memoizedProps}catch(Re){_t(G,G.return,Re)}}}else if(s.tag===18){if(c===null){G=s;try{var me=G.stateNode;x?vC(me,!0):vC(G.stateNode,!1)}catch(Re){_t(G,G.return,Re)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===o)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}m&4&&(m=o.updateQueue,m!==null&&(c=m.retryQueue,c!==null&&(m.retryQueue=null,Jp(o,c))));break;case 19:vr(s,o),gr(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,Jp(o,m)));break;case 30:break;case 21:break;default:vr(s,o),gr(o)}}function gr(o){var s=o.flags;if(s&2){try{for(var c,m=o.return;m!==null;){if(bM(m)){c=m;break}m=m.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var x=c.stateNode,_=E1(o);Wp(o,_,x);break;case 5:var j=c.stateNode;c.flags&32&&(ru(j,""),c.flags&=-33);var U=E1(o);Wp(o,U,j);break;case 3:case 4:var G=c.stateNode.containerInfo,se=E1(o);A1(o,se,G);break;default:throw Error(r(161))}}catch(ve){_t(o,o.return,ve)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function CM(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var s=o;CM(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),o=o.sibling}}function Oa(o,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)SM(o,s.alternate,s),s=s.sibling}function Ys(o){for(o=o.child;o!==null;){var s=o;switch(s.tag){case 0:case 11:case 14:case 15:Po(4,s,s.return),Ys(s);break;case 1:Ii(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&vM(s,s.return,c),Ys(s);break;case 27:Kf(s.stateNode);case 26:case 5:Ii(s,s.return),Ys(s);break;case 22:s.memoizedState===null&&Ys(s);break;case 30:Ys(s);break;default:Ys(s)}o=o.sibling}}function Ma(o,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var m=s.alternate,x=o,_=s,j=_.flags;switch(_.tag){case 0:case 11:case 15:Ma(x,_,c),If(4,_);break;case 1:if(Ma(x,_,c),m=_,x=m.stateNode,typeof x.componentDidMount=="function")try{x.componentDidMount()}catch(se){_t(m,m.return,se)}if(m=_,x=m.updateQueue,x!==null){var U=m.stateNode;try{var G=x.shared.hiddenCallbacks;if(G!==null)for(x.shared.hiddenCallbacks=null,x=0;x<G.length;x++)aO(G[x],U)}catch(se){_t(m,m.return,se)}}c&&j&64&&yM(_),zf(_,_.return);break;case 27:xM(_);case 26:case 5:Ma(x,_,c),c&&m===null&&j&4&&gM(_),zf(_,_.return);break;case 12:Ma(x,_,c);break;case 31:Ma(x,_,c),c&&j&4&&AM(x,_);break;case 13:Ma(x,_,c),c&&j&4&&OM(x,_);break;case 22:_.memoizedState===null&&Ma(x,_,c),zf(_,_.return);break;case 30:break;default:Ma(x,_,c)}s=s.sibling}}function M1(o,s){var c=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(c=o.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==c&&(o!=null&&o.refCount++,c!=null&&_f(c))}function C1(o,s){o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&_f(o))}function yi(o,s,c,m){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)kM(o,s,c,m),s=s.sibling}function kM(o,s,c,m){var x=s.flags;switch(s.tag){case 0:case 11:case 15:yi(o,s,c,m),x&2048&&If(9,s);break;case 1:yi(o,s,c,m);break;case 3:yi(o,s,c,m),x&2048&&(o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&_f(o)));break;case 12:if(x&2048){yi(o,s,c,m),o=s.stateNode;try{var _=s.memoizedProps,j=_.id,U=_.onPostCommit;typeof U=="function"&&U(j,s.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(G){_t(s,s.return,G)}}else yi(o,s,c,m);break;case 31:yi(o,s,c,m);break;case 13:yi(o,s,c,m);break;case 23:break;case 22:_=s.stateNode,j=s.alternate,s.memoizedState!==null?_._visibility&2?yi(o,s,c,m):Lf(o,s):_._visibility&2?yi(o,s,c,m):(_._visibility|=2,_u(o,s,c,m,(s.subtreeFlags&10256)!==0||!1)),x&2048&&M1(j,s);break;case 24:yi(o,s,c,m),x&2048&&C1(s.alternate,s);break;default:yi(o,s,c,m)}}function _u(o,s,c,m,x){for(x=x&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var _=o,j=s,U=c,G=m,se=j.flags;switch(j.tag){case 0:case 11:case 15:_u(_,j,U,G,x),If(8,j);break;case 23:break;case 22:var ve=j.stateNode;j.memoizedState!==null?ve._visibility&2?_u(_,j,U,G,x):Lf(_,j):(ve._visibility|=2,_u(_,j,U,G,x)),x&&se&2048&&M1(j.alternate,j);break;case 24:_u(_,j,U,G,x),x&&se&2048&&C1(j.alternate,j);break;default:_u(_,j,U,G,x)}s=s.sibling}}function Lf(o,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=o,m=s,x=m.flags;switch(m.tag){case 22:Lf(c,m),x&2048&&M1(m.alternate,m);break;case 24:Lf(c,m),x&2048&&C1(m.alternate,m);break;default:Lf(c,m)}s=s.sibling}}var Bf=8192;function Eu(o,s,c){if(o.subtreeFlags&Bf)for(o=o.child;o!==null;)TM(o,s,c),o=o.sibling}function TM(o,s,c){switch(o.tag){case 26:Eu(o,s,c),o.flags&Bf&&o.memoizedState!==null&&f$(c,mi,o.memoizedState,o.memoizedProps);break;case 5:Eu(o,s,c);break;case 3:case 4:var m=mi;mi=hm(o.stateNode.containerInfo),Eu(o,s,c),mi=m;break;case 22:o.memoizedState===null&&(m=o.alternate,m!==null&&m.memoizedState!==null?(m=Bf,Bf=16777216,Eu(o,s,c),Bf=m):Eu(o,s,c));break;default:Eu(o,s,c)}}function PM(o){var s=o.alternate;if(s!==null&&(o=s.child,o!==null)){s.child=null;do s=o.sibling,o.sibling=null,o=s;while(o!==null)}}function $f(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var m=s[c];Mn=m,RM(m,o)}PM(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)NM(o),o=o.sibling}function NM(o){switch(o.tag){case 0:case 11:case 15:$f(o),o.flags&2048&&Po(9,o,o.return);break;case 3:$f(o);break;case 12:$f(o);break;case 22:var s=o.stateNode;o.memoizedState!==null&&s._visibility&2&&(o.return===null||o.return.tag!==13)?(s._visibility&=-3,em(o)):$f(o);break;default:$f(o)}}function em(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var m=s[c];Mn=m,RM(m,o)}PM(o)}for(o=o.child;o!==null;){switch(s=o,s.tag){case 0:case 11:case 15:Po(8,s,s.return),em(s);break;case 22:c=s.stateNode,c._visibility&2&&(c._visibility&=-3,em(s));break;default:em(s)}o=o.sibling}}function RM(o,s){for(;Mn!==null;){var c=Mn;switch(c.tag){case 0:case 11:case 15:Po(8,c,s);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var m=c.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:_f(c.memoizedState.cache)}if(m=c.child,m!==null)m.return=c,Mn=m;else e:for(c=o;Mn!==null;){m=Mn;var x=m.sibling,_=m.return;if(_M(m),m===c){Mn=null;break e}if(x!==null){x.return=_,Mn=x;break e}Mn=_}}}var O7={getCacheForType:function(o){var s=Bn(ln),c=s.data.get(o);return c===void 0&&(c=o(),s.data.set(o,c)),c},cacheSignal:function(){return Bn(ln).controller.signal}},M7=typeof WeakMap=="function"?WeakMap:Map,gt=0,kt=null,nt=null,ot=0,St=0,Pr=null,No=!1,Au=!1,k1=!1,Ca=0,Gt=0,Ro=0,Gs=0,T1=0,Nr=0,Ou=0,Uf=null,br=null,P1=!1,tm=0,DM=0,nm=1/0,rm=null,Do=null,gn=0,jo=null,Mu=null,ka=0,N1=0,R1=null,jM=null,qf=0,D1=null;function Rr(){return(gt&2)!==0&&ot!==0?ot&-ot:L.T!==null?$1():sp()}function IM(){if(Nr===0)if((ot&536870912)===0||lt){var o=Xl;Xl<<=1,(Xl&3932160)===0&&(Xl=262144),Nr=o}else Nr=536870912;return o=kr.current,o!==null&&(o.flags|=32),Nr}function xr(o,s,c){(o===kt&&(St===2||St===9)||o.cancelPendingCommit!==null)&&(Cu(o,0),Io(o,ot,Nr,!1)),ks(o,c),((gt&2)===0||o!==kt)&&(o===kt&&((gt&2)===0&&(Gs|=c),Gt===4&&Io(o,ot,Nr,!1)),zi(o))}function zM(o,s,c){if((gt&6)!==0)throw Error(r(327));var m=!c&&(s&127)===0&&(s&o.expiredLanes)===0||Cs(o,s),x=m?T7(o,s):I1(o,s,!0),_=m;do{if(x===0){Au&&!m&&Io(o,s,0,!1);break}else{if(c=o.current.alternate,_&&!C7(c)){x=I1(o,s,!1),_=!1;continue}if(x===2){if(_=s,o.errorRecoveryDisabledLanes&_)var j=0;else j=o.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){s=j;e:{var U=o;x=Uf;var G=U.current.memoizedState.isDehydrated;if(G&&(Cu(U,j).flags|=256),j=I1(U,j,!1),j!==2){if(k1&&!G){U.errorRecoveryDisabledLanes|=_,Gs|=_,x=4;break e}_=br,br=x,_!==null&&(br===null?br=_:br.push.apply(br,_))}x=j}if(_=!1,x!==2)continue}}if(x===1){Cu(o,0),Io(o,s,0,!0);break}e:{switch(m=o,_=x,_){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Io(m,s,Nr,!No);break e;case 2:br=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(x=tm+300-ae(),10<x)){if(Io(m,s,Nr,!No),Jl(m,0,!0)!==0)break e;ka=s,m.timeoutHandle=pC(LM.bind(null,m,c,br,rm,P1,s,Nr,Gs,Ou,No,_,"Throttled",-0,0),x);break e}LM(m,c,br,rm,P1,s,Nr,Gs,Ou,No,_,null,-0,0)}}break}while(!0);zi(o)}function LM(o,s,c,m,x,_,j,U,G,se,ve,xe,ue,me){if(o.timeoutHandle=-1,xe=s.subtreeFlags,xe&8192||(xe&16785408)===16785408){xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pa},TM(s,_,xe);var Re=(_&62914560)===_?tm-ae():(_&4194048)===_?DM-ae():0;if(Re=d$(xe,Re),Re!==null){ka=_,o.cancelPendingCommit=Re(KM.bind(null,o,s,_,c,m,x,j,U,G,ve,xe,null,ue,me)),Io(o,_,j,!se);return}}KM(o,s,_,c,m,x,j,U,G)}function C7(o){for(var s=o;;){var c=s.tag;if((c===0||c===11||c===15)&&s.flags&16384&&(c=s.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var m=0;m<c.length;m++){var x=c[m],_=x.getSnapshot;x=x.value;try{if(!Mr(_(),x))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Io(o,s,c,m){s&=~T1,s&=~Gs,o.suspendedLanes|=s,o.pingedLanes&=~s,m&&(o.warmLanes|=s),m=o.expirationTimes;for(var x=s;0<x;){var _=31-yn(x),j=1<<_;m[_]=-1,x&=~j}c!==0&&ip(o,c,s)}function im(){return(gt&6)===0?(Hf(0),!1):!0}function j1(){if(nt!==null){if(St===0)var o=nt.return;else o=nt,ga=Bs=null,X0(o),gu=null,Af=0,o=nt;for(;o!==null;)mM(o.alternate,o),o=o.return;nt=null}}function Cu(o,s){var c=o.timeoutHandle;c!==-1&&(o.timeoutHandle=-1,G7(c)),c=o.cancelPendingCommit,c!==null&&(o.cancelPendingCommit=null,c()),ka=0,j1(),kt=o,nt=c=ya(o.current,null),ot=s,St=0,Pr=null,No=!1,Au=Cs(o,s),k1=!1,Ou=Nr=T1=Gs=Ro=Gt=0,br=Uf=null,P1=!1,(s&8)!==0&&(s|=s&32);var m=o.entangledLanes;if(m!==0)for(o=o.entanglements,m&=s;0<m;){var x=31-yn(m),_=1<<x;s|=o[x],m&=~_}return Ca=s,Ap(),c}function BM(o,s){Ze=null,L.H=Rf,s===vu||s===Rp?(s=tO(),St=3):s===B0?(s=tO(),St=4):St=s===h1?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Pr=s,nt===null&&(Gt=1,Yp(o,Gr(s,o.current)))}function $M(){var o=kr.current;return o===null?!0:(ot&4194048)===ot?Wr===null:(ot&62914560)===ot||(ot&536870912)!==0?o===Wr:!1}function UM(){var o=L.H;return L.H=Rf,o===null?Rf:o}function qM(){var o=L.A;return L.A=O7,o}function am(){Gt=4,No||(ot&4194048)!==ot&&kr.current!==null||(Au=!0),(Ro&134217727)===0&&(Gs&134217727)===0||kt===null||Io(kt,ot,Nr,!1)}function I1(o,s,c){var m=gt;gt|=2;var x=UM(),_=qM();(kt!==o||ot!==s)&&(rm=null,Cu(o,s)),s=!1;var j=Gt;e:do try{if(St!==0&&nt!==null){var U=nt,G=Pr;switch(St){case 8:j1(),j=6;break e;case 3:case 2:case 9:case 6:kr.current===null&&(s=!0);var se=St;if(St=0,Pr=null,ku(o,U,G,se),c&&Au){j=0;break e}break;default:se=St,St=0,Pr=null,ku(o,U,G,se)}}k7(),j=Gt;break}catch(ve){BM(o,ve)}while(!0);return s&&o.shellSuspendCounter++,ga=Bs=null,gt=m,L.H=x,L.A=_,nt===null&&(kt=null,ot=0,Ap()),j}function k7(){for(;nt!==null;)HM(nt)}function T7(o,s){var c=gt;gt|=2;var m=UM(),x=qM();kt!==o||ot!==s?(rm=null,nm=ae()+500,Cu(o,s)):Au=Cs(o,s);e:do try{if(St!==0&&nt!==null){s=nt;var _=Pr;t:switch(St){case 1:St=0,Pr=null,ku(o,s,_,1);break;case 2:case 9:if(JA(_)){St=0,Pr=null,VM(s);break}s=function(){St!==2&&St!==9||kt!==o||(St=7),zi(o)},_.then(s,s);break e;case 3:St=7;break e;case 4:St=5;break e;case 7:JA(_)?(St=0,Pr=null,VM(s)):(St=0,Pr=null,ku(o,s,_,7));break;case 5:var j=null;switch(nt.tag){case 26:j=nt.memoizedState;case 5:case 27:var U=nt;if(j?kC(j):U.stateNode.complete){St=0,Pr=null;var G=U.sibling;if(G!==null)nt=G;else{var se=U.return;se!==null?(nt=se,om(se)):nt=null}break t}}St=0,Pr=null,ku(o,s,_,5);break;case 6:St=0,Pr=null,ku(o,s,_,6);break;case 8:j1(),Gt=6;break e;default:throw Error(r(462))}}P7();break}catch(ve){BM(o,ve)}while(!0);return ga=Bs=null,L.H=m,L.A=x,gt=c,nt!==null?0:(kt=null,ot=0,Ap(),Gt)}function P7(){for(;nt!==null&&!Q();)HM(nt)}function HM(o){var s=hM(o.alternate,o,Ca);o.memoizedProps=o.pendingProps,s===null?om(o):nt=s}function VM(o){var s=o,c=s.alternate;switch(s.tag){case 15:case 0:s=sM(c,s,s.pendingProps,s.type,void 0,ot);break;case 11:s=sM(c,s,s.pendingProps,s.type.render,s.ref,ot);break;case 5:X0(s);default:mM(c,s),s=nt=qA(s,Ca),s=hM(c,s,Ca)}o.memoizedProps=o.pendingProps,s===null?om(o):nt=s}function ku(o,s,c,m){ga=Bs=null,X0(s),gu=null,Af=0;var x=s.return;try{if(b7(o,x,s,c,ot)){Gt=1,Yp(o,Gr(c,o.current)),nt=null;return}}catch(_){if(x!==null)throw nt=x,_;Gt=1,Yp(o,Gr(c,o.current)),nt=null;return}s.flags&32768?(lt||m===1?o=!0:Au||(ot&536870912)!==0?o=!1:(No=o=!0,(m===2||m===9||m===3||m===6)&&(m=kr.current,m!==null&&m.tag===13&&(m.flags|=16384))),FM(s,o)):om(s)}function om(o){var s=o;do{if((s.flags&32768)!==0){FM(s,No);return}o=s.return;var c=S7(s.alternate,s,Ca);if(c!==null){nt=c;return}if(s=s.sibling,s!==null){nt=s;return}nt=s=o}while(s!==null);Gt===0&&(Gt=5)}function FM(o,s){do{var c=_7(o.alternate,o);if(c!==null){c.flags&=32767,nt=c;return}if(c=o.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!s&&(o=o.sibling,o!==null)){nt=o;return}nt=o=c}while(o!==null);Gt=6,nt=null}function KM(o,s,c,m,x,_,j,U,G){o.cancelPendingCommit=null;do sm();while(gn!==0);if((gt&6)!==0)throw Error(r(327));if(s!==null){if(s===o.current)throw Error(r(177));if(_=s.lanes|s.childLanes,_|=E0,e0(o,c,_,j,U,G),o===kt&&(nt=kt=null,ot=0),Mu=s,jo=o,ka=c,N1=_,R1=x,jM=m,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,j7(Te,function(){return XM(),null})):(o.callbackNode=null,o.callbackPriority=0),m=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||m){m=L.T,L.T=null,x=V.p,V.p=2,j=gt,gt|=4;try{E7(o,s,c)}finally{gt=j,V.p=x,L.T=m}}gn=1,YM(),GM(),QM()}}function YM(){if(gn===1){gn=0;var o=jo,s=Mu,c=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||c){c=L.T,L.T=null;var m=V.p;V.p=2;var x=gt;gt|=4;try{MM(s,o);var _=G1,j=RA(o.containerInfo),U=_.focusedElem,G=_.selectionRange;if(j!==U&&U&&U.ownerDocument&&NA(U.ownerDocument.documentElement,U)){if(G!==null&&b0(U)){var se=G.start,ve=G.end;if(ve===void 0&&(ve=se),"selectionStart"in U)U.selectionStart=se,U.selectionEnd=Math.min(ve,U.value.length);else{var xe=U.ownerDocument||document,ue=xe&&xe.defaultView||window;if(ue.getSelection){var me=ue.getSelection(),Re=U.textContent.length,Fe=Math.min(G.start,Re),Ot=G.end===void 0?Fe:Math.min(G.end,Re);!me.extend&&Fe>Ot&&(j=Ot,Ot=Fe,Fe=j);var ne=PA(U,Fe),X=PA(U,Ot);if(ne&&X&&(me.rangeCount!==1||me.anchorNode!==ne.node||me.anchorOffset!==ne.offset||me.focusNode!==X.node||me.focusOffset!==X.offset)){var oe=xe.createRange();oe.setStart(ne.node,ne.offset),me.removeAllRanges(),Fe>Ot?(me.addRange(oe),me.extend(X.node,X.offset)):(oe.setEnd(X.node,X.offset),me.addRange(oe))}}}}for(xe=[],me=U;me=me.parentNode;)me.nodeType===1&&xe.push({element:me,left:me.scrollLeft,top:me.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<xe.length;U++){var be=xe[U];be.element.scrollLeft=be.left,be.element.scrollTop=be.top}}bm=!!Y1,G1=Y1=null}finally{gt=x,V.p=m,L.T=c}}o.current=s,gn=2}}function GM(){if(gn===2){gn=0;var o=jo,s=Mu,c=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||c){c=L.T,L.T=null;var m=V.p;V.p=2;var x=gt;gt|=4;try{SM(o,s.alternate,s)}finally{gt=x,V.p=m,L.T=c}}gn=3}}function QM(){if(gn===4||gn===3){gn=0,re();var o=jo,s=Mu,c=ka,m=jM;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?gn=5:(gn=0,Mu=jo=null,ZM(o,o.pendingLanes));var x=o.pendingLanes;if(x===0&&(Do=null),lf(c),s=s.stateNode,zn&&typeof zn.onCommitFiberRoot=="function")try{zn.onCommitFiberRoot(Kt,s,void 0,(s.current.flags&128)===128)}catch{}if(m!==null){s=L.T,x=V.p,V.p=2,L.T=null;try{for(var _=o.onRecoverableError,j=0;j<m.length;j++){var U=m[j];_(U.value,{componentStack:U.stack})}}finally{L.T=s,V.p=x}}(ka&3)!==0&&sm(),zi(o),x=o.pendingLanes,(c&261930)!==0&&(x&42)!==0?o===D1?qf++:(qf=0,D1=o):qf=0,Hf(0)}}function ZM(o,s){(o.pooledCacheLanes&=s)===0&&(s=o.pooledCache,s!=null&&(o.pooledCache=null,_f(s)))}function sm(){return YM(),GM(),QM(),XM()}function XM(){if(gn!==5)return!1;var o=jo,s=N1;N1=0;var c=lf(ka),m=L.T,x=V.p;try{V.p=32>c?32:c,L.T=null,c=R1,R1=null;var _=jo,j=ka;if(gn=0,Mu=jo=null,ka=0,(gt&6)!==0)throw Error(r(331));var U=gt;if(gt|=4,NM(_.current),kM(_,_.current,j,c),gt=U,Hf(0,!1),zn&&typeof zn.onPostCommitFiberRoot=="function")try{zn.onPostCommitFiberRoot(Kt,_)}catch{}return!0}finally{V.p=x,L.T=m,ZM(o,s)}}function WM(o,s,c){s=Gr(c,s),s=d1(o.stateNode,s,2),o=Co(o,s,2),o!==null&&(ks(o,2),zi(o))}function _t(o,s,c){if(o.tag===3)WM(o,o,c);else for(;s!==null;){if(s.tag===3){WM(s,o,c);break}else if(s.tag===1){var m=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Do===null||!Do.has(m))){o=Gr(c,o),c=JO(2),m=Co(s,c,2),m!==null&&(eM(c,m,s,o),ks(m,2),zi(m));break}}s=s.return}}function z1(o,s,c){var m=o.pingCache;if(m===null){m=o.pingCache=new M7;var x=new Set;m.set(s,x)}else x=m.get(s),x===void 0&&(x=new Set,m.set(s,x));x.has(c)||(k1=!0,x.add(c),o=N7.bind(null,o,s,c),s.then(o,o))}function N7(o,s,c){var m=o.pingCache;m!==null&&m.delete(s),o.pingedLanes|=o.suspendedLanes&c,o.warmLanes&=~c,kt===o&&(ot&c)===c&&(Gt===4||Gt===3&&(ot&62914560)===ot&&300>ae()-tm?(gt&2)===0&&Cu(o,0):T1|=c,Ou===ot&&(Ou=0)),zi(o)}function JM(o,s){s===0&&(s=rp()),o=Is(o,s),o!==null&&(ks(o,s),zi(o))}function R7(o){var s=o.memoizedState,c=0;s!==null&&(c=s.retryLane),JM(o,c)}function D7(o,s){var c=0;switch(o.tag){case 31:case 13:var m=o.stateNode,x=o.memoizedState;x!==null&&(c=x.retryLane);break;case 19:m=o.stateNode;break;case 22:m=o.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(s),JM(o,c)}function j7(o,s){return Gn(o,s)}var lm=null,Tu=null,L1=!1,um=!1,B1=!1,zo=0;function zi(o){o!==Tu&&o.next===null&&(Tu===null?lm=Tu=o:Tu=Tu.next=o),um=!0,L1||(L1=!0,z7())}function Hf(o,s){if(!B1&&um){B1=!0;do for(var c=!1,m=lm;m!==null;){if(o!==0){var x=m.pendingLanes;if(x===0)var _=0;else{var j=m.suspendedLanes,U=m.pingedLanes;_=(1<<31-yn(42|o)+1)-1,_&=x&~(j&~U),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(c=!0,rC(m,_))}else _=ot,_=Jl(m,m===kt?_:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(_&3)===0||Cs(m,_)||(c=!0,rC(m,_));m=m.next}while(c);B1=!1}}function I7(){eC()}function eC(){um=L1=!1;var o=0;zo!==0&&Y7()&&(o=zo);for(var s=ae(),c=null,m=lm;m!==null;){var x=m.next,_=tC(m,s);_===0?(m.next=null,c===null?lm=x:c.next=x,x===null&&(Tu=c)):(c=m,(o!==0||(_&3)!==0)&&(um=!0)),m=x}gn!==0&&gn!==5||Hf(o),zo!==0&&(zo=0)}function tC(o,s){for(var c=o.suspendedLanes,m=o.pingedLanes,x=o.expirationTimes,_=o.pendingLanes&-62914561;0<_;){var j=31-yn(_),U=1<<j,G=x[j];G===-1?((U&c)===0||(U&m)!==0)&&(x[j]=Jg(U,s)):G<=s&&(o.expiredLanes|=U),_&=~U}if(s=kt,c=ot,c=Jl(o,o===s?c:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m=o.callbackNode,c===0||o===s&&(St===2||St===9)||o.cancelPendingCommit!==null)return m!==null&&m!==null&&Qn(m),o.callbackNode=null,o.callbackPriority=0;if((c&3)===0||Cs(o,c)){if(s=c&-c,s===o.callbackPriority)return s;switch(m!==null&&Qn(m),lf(c)){case 2:case 8:c=_e;break;case 32:c=Te;break;case 268435456:c=at;break;default:c=Te}return m=nC.bind(null,o),c=Gn(c,m),o.callbackPriority=s,o.callbackNode=c,s}return m!==null&&m!==null&&Qn(m),o.callbackPriority=2,o.callbackNode=null,2}function nC(o,s){if(gn!==0&&gn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var c=o.callbackNode;if(sm()&&o.callbackNode!==c)return null;var m=ot;return m=Jl(o,o===kt?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m===0?null:(zM(o,m,s),tC(o,ae()),o.callbackNode!=null&&o.callbackNode===c?nC.bind(null,o):null)}function rC(o,s){if(sm())return null;zM(o,s,!0)}function z7(){Q7(function(){(gt&6)!==0?Gn(we,I7):eC()})}function $1(){if(zo===0){var o=mu;o===0&&(o=ua,ua<<=1,(ua&261888)===0&&(ua=256)),zo=o}return zo}function iC(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:vp(""+o)}function aC(o,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,o.id&&c.setAttribute("form",o.id),s.parentNode.insertBefore(c,s),o=new FormData(o),c.parentNode.removeChild(c),o}function L7(o,s,c,m,x){if(s==="submit"&&c&&c.stateNode===x){var _=iC((x[Zn]||null).action),j=m.submitter;j&&(s=(s=j[Zn]||null)?iC(s.formAction):j.getAttribute("formAction"),s!==null&&(_=s,j=null));var U=new wp("action","action",null,m,x);o.push({event:U,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(zo!==0){var G=j?aC(x,j):new FormData(x);o1(c,{pending:!0,data:G,method:x.method,action:_},null,G)}}else typeof _=="function"&&(U.preventDefault(),G=j?aC(x,j):new FormData(x),o1(c,{pending:!0,data:G,method:x.method,action:_},_,G))},currentTarget:x}]})}}for(var U1=0;U1<_0.length;U1++){var q1=_0[U1],B7=q1.toLowerCase(),$7=q1[0].toUpperCase()+q1.slice(1);pi(B7,"on"+$7)}pi(IA,"onAnimationEnd"),pi(zA,"onAnimationIteration"),pi(LA,"onAnimationStart"),pi("dblclick","onDoubleClick"),pi("focusin","onFocus"),pi("focusout","onBlur"),pi(n7,"onTransitionRun"),pi(r7,"onTransitionStart"),pi(i7,"onTransitionCancel"),pi(BA,"onTransitionEnd"),bo("onMouseEnter",["mouseout","mouseover"]),bo("onMouseLeave",["mouseout","mouseover"]),bo("onPointerEnter",["pointerout","pointerover"]),bo("onPointerLeave",["pointerout","pointerover"]),da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),da("onBeforeInput",["compositionend","keypress","textInput","paste"]),da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vf="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(" "),U7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vf));function oC(o,s){s=(s&4)!==0;for(var c=0;c<o.length;c++){var m=o[c],x=m.event;m=m.listeners;e:{var _=void 0;if(s)for(var j=m.length-1;0<=j;j--){var U=m[j],G=U.instance,se=U.currentTarget;if(U=U.listener,G!==_&&x.isPropagationStopped())break e;_=U,x.currentTarget=se;try{_(x)}catch(ve){Ep(ve)}x.currentTarget=null,_=G}else for(j=0;j<m.length;j++){if(U=m[j],G=U.instance,se=U.currentTarget,U=U.listener,G!==_&&x.isPropagationStopped())break e;_=U,x.currentTarget=se;try{_(x)}catch(ve){Ep(ve)}x.currentTarget=null,_=G}}}}function rt(o,s){var c=s[eu];c===void 0&&(c=s[eu]=new Set);var m=o+"__bubble";c.has(m)||(sC(s,o,2,!1),c.add(m))}function H1(o,s,c){var m=0;s&&(m|=4),sC(c,o,m,s)}var cm="_reactListening"+Math.random().toString(36).slice(2);function V1(o){if(!o[cm]){o[cm]=!0,fp.forEach(function(c){c!=="selectionchange"&&(U7.has(c)||H1(c,!1,o),H1(c,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[cm]||(s[cm]=!0,H1("selectionchange",!1,s))}}function sC(o,s,c,m){switch(IC(s)){case 2:var x=m$;break;case 8:x=y$;break;default:x=ab}c=x.bind(null,s,c,o),x=void 0,!c0||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(x=!0),m?x!==void 0?o.addEventListener(s,c,{capture:!0,passive:x}):o.addEventListener(s,c,!0):x!==void 0?o.addEventListener(s,c,{passive:x}):o.addEventListener(s,c,!1)}function F1(o,s,c,m,x){var _=m;if((s&1)===0&&(s&2)===0&&m!==null)e:for(;;){if(m===null)return;var j=m.tag;if(j===3||j===4){var U=m.stateNode.containerInfo;if(U===x)break;if(j===4)for(j=m.return;j!==null;){var G=j.tag;if((G===3||G===4)&&j.stateNode.containerInfo===x)return;j=j.return}for(;U!==null;){if(j=mo(U),j===null)return;if(G=j.tag,G===5||G===6||G===26||G===27){m=_=j;continue e}U=U.parentNode}}m=m.return}dA(function(){var se=_,ve=l0(c),xe=[];e:{var ue=$A.get(o);if(ue!==void 0){var me=wp,Re=o;switch(o){case"keypress":if(bp(c)===0)break e;case"keydown":case"keyup":me=DB;break;case"focusin":Re="focus",me=p0;break;case"focusout":Re="blur",me=p0;break;case"beforeblur":case"afterblur":me=p0;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":me=mA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":me=SB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":me=zB;break;case IA:case zA:case LA:me=AB;break;case BA:me=BB;break;case"scroll":case"scrollend":me=xB;break;case"wheel":me=UB;break;case"copy":case"cut":case"paste":me=MB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":me=vA;break;case"toggle":case"beforetoggle":me=HB}var Fe=(s&4)!==0,Ot=!Fe&&(o==="scroll"||o==="scrollend"),ne=Fe?ue!==null?ue+"Capture":null:ue;Fe=[];for(var X=se,oe;X!==null;){var be=X;if(oe=be.stateNode,be=be.tag,be!==5&&be!==26&&be!==27||oe===null||ne===null||(be=df(X,ne),be!=null&&Fe.push(Ff(X,be,oe))),Ot)break;X=X.return}0<Fe.length&&(ue=new me(ue,Re,null,c,ve),xe.push({event:ue,listeners:Fe}))}}if((s&7)===0){e:{if(ue=o==="mouseover"||o==="pointerover",me=o==="mouseout"||o==="pointerout",ue&&c!==s0&&(Re=c.relatedTarget||c.fromElement)&&(mo(Re)||Re[fa]))break e;if((me||ue)&&(ue=ve.window===ve?ve:(ue=ve.ownerDocument)?ue.defaultView||ue.parentWindow:window,me?(Re=c.relatedTarget||c.toElement,me=se,Re=Re?mo(Re):null,Re!==null&&(Ot=a(Re),Fe=Re.tag,Re!==Ot||Fe!==5&&Fe!==27&&Fe!==6)&&(Re=null)):(me=null,Re=se),me!==Re)){if(Fe=mA,be="onMouseLeave",ne="onMouseEnter",X="mouse",(o==="pointerout"||o==="pointerover")&&(Fe=vA,be="onPointerLeave",ne="onPointerEnter",X="pointer"),Ot=me==null?ue:vo(me),oe=Re==null?ue:vo(Re),ue=new Fe(be,X+"leave",me,c,ve),ue.target=Ot,ue.relatedTarget=oe,be=null,mo(ve)===se&&(Fe=new Fe(ne,X+"enter",Re,c,ve),Fe.target=oe,Fe.relatedTarget=Ot,be=Fe),Ot=be,me&&Re)t:{for(Fe=q7,ne=me,X=Re,oe=0,be=ne;be;be=Fe(be))oe++;be=0;for(var qe=X;qe;qe=Fe(qe))be++;for(;0<oe-be;)ne=Fe(ne),oe--;for(;0<be-oe;)X=Fe(X),be--;for(;oe--;){if(ne===X||X!==null&&ne===X.alternate){Fe=ne;break t}ne=Fe(ne),X=Fe(X)}Fe=null}else Fe=null;me!==null&&lC(xe,ue,me,Fe,!1),Re!==null&&Ot!==null&&lC(xe,Ot,Re,Fe,!0)}}e:{if(ue=se?vo(se):window,me=ue.nodeName&&ue.nodeName.toLowerCase(),me==="select"||me==="input"&&ue.type==="file")var ht=AA;else if(_A(ue))if(OA)ht=JB;else{ht=XB;var Le=ZB}else me=ue.nodeName,!me||me.toLowerCase()!=="input"||ue.type!=="checkbox"&&ue.type!=="radio"?se&&o0(se.elementType)&&(ht=AA):ht=WB;if(ht&&(ht=ht(o,se))){EA(xe,ht,c,ve);break e}Le&&Le(o,ue,se),o==="focusout"&&se&&ue.type==="number"&&se.memoizedProps.value!=null&&ff(ue,"number",ue.value)}switch(Le=se?vo(se):window,o){case"focusin":(_A(Le)||Le.contentEditable==="true")&&(su=Le,x0=se,xf=null);break;case"focusout":xf=x0=su=null;break;case"mousedown":w0=!0;break;case"contextmenu":case"mouseup":case"dragend":w0=!1,DA(xe,c,ve);break;case"selectionchange":if(t7)break;case"keydown":case"keyup":DA(xe,c,ve)}var Xe;if(y0)e:{switch(o){case"compositionstart":var st="onCompositionStart";break e;case"compositionend":st="onCompositionEnd";break e;case"compositionupdate":st="onCompositionUpdate";break e}st=void 0}else ou?wA(o,c)&&(st="onCompositionEnd"):o==="keydown"&&c.keyCode===229&&(st="onCompositionStart");st&&(gA&&c.locale!=="ko"&&(ou||st!=="onCompositionStart"?st==="onCompositionEnd"&&ou&&(Xe=hA()):(wo=ve,f0="value"in wo?wo.value:wo.textContent,ou=!0)),Le=fm(se,st),0<Le.length&&(st=new yA(st,o,null,c,ve),xe.push({event:st,listeners:Le}),Xe?st.data=Xe:(Xe=SA(c),Xe!==null&&(st.data=Xe)))),(Xe=FB?KB(o,c):YB(o,c))&&(st=fm(se,"onBeforeInput"),0<st.length&&(Le=new yA("onBeforeInput","beforeinput",null,c,ve),xe.push({event:Le,listeners:st}),Le.data=Xe)),L7(xe,o,se,c,ve)}oC(xe,s)})}function Ff(o,s,c){return{instance:o,listener:s,currentTarget:c}}function fm(o,s){for(var c=s+"Capture",m=[];o!==null;){var x=o,_=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||_===null||(x=df(o,c),x!=null&&m.unshift(Ff(o,x,_)),x=df(o,s),x!=null&&m.push(Ff(o,x,_))),o.tag===3)return m;o=o.return}return[]}function q7(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function lC(o,s,c,m,x){for(var _=s._reactName,j=[];c!==null&&c!==m;){var U=c,G=U.alternate,se=U.stateNode;if(U=U.tag,G!==null&&G===m)break;U!==5&&U!==26&&U!==27||se===null||(G=se,x?(se=df(c,_),se!=null&&j.unshift(Ff(c,se,G))):x||(se=df(c,_),se!=null&&j.push(Ff(c,se,G)))),c=c.return}j.length!==0&&o.push({event:s,listeners:j})}var H7=/\r\n?/g,V7=/\u0000|\uFFFD/g;function uC(o){return(typeof o=="string"?o:""+o).replace(H7,`
|
|
49
|
-
`).replace(V7,"")}function cC(o,s){return s=uC(s),uC(o)===s}function At(o,s,c,m,x,_){switch(c){case"children":typeof m=="string"?s==="body"||s==="textarea"&&m===""||ru(o,m):(typeof m=="number"||typeof m=="bigint")&&s!=="body"&&ru(o,""+m);break;case"className":nu(o,"class",m);break;case"tabIndex":nu(o,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":nu(o,c,m);break;case"style":cA(o,m,_);break;case"data":if(s!=="object"){nu(o,"data",m);break}case"src":case"href":if(m===""&&(s!=="a"||c!=="href")){o.removeAttribute(c);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(c);break}m=vp(""+m),o.setAttribute(c,m);break;case"action":case"formAction":if(typeof m=="function"){o.setAttribute(c,"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 _=="function"&&(c==="formAction"?(s!=="input"&&At(o,s,"name",x.name,x,null),At(o,s,"formEncType",x.formEncType,x,null),At(o,s,"formMethod",x.formMethod,x,null),At(o,s,"formTarget",x.formTarget,x,null)):(At(o,s,"encType",x.encType,x,null),At(o,s,"method",x.method,x,null),At(o,s,"target",x.target,x,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(c);break}m=vp(""+m),o.setAttribute(c,m);break;case"onClick":m!=null&&(o.onclick=pa);break;case"onScroll":m!=null&&rt("scroll",o);break;case"onScrollEnd":m!=null&&rt("scrollend",o);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(c=m.__html,c!=null){if(x.children!=null)throw Error(r(60));o.innerHTML=c}}break;case"multiple":o.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":o.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){o.removeAttribute("xlink:href");break}c=vp(""+m),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(c,""+m):o.removeAttribute(c);break;case"inert":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":m&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(c,""):o.removeAttribute(c);break;case"capture":case"download":m===!0?o.setAttribute(c,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(c,m):o.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?o.setAttribute(c,m):o.removeAttribute(c);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?o.removeAttribute(c):o.setAttribute(c,m);break;case"popover":rt("beforetoggle",o),rt("toggle",o),tu(o,"popover",m);break;case"xlinkActuate":hi(o,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":hi(o,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":hi(o,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":hi(o,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":hi(o,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":hi(o,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":hi(o,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":hi(o,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":hi(o,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":tu(o,"is",m);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=gB.get(c)||c,tu(o,c,m))}}function K1(o,s,c,m,x,_){switch(c){case"style":cA(o,m,_);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(c=m.__html,c!=null){if(x.children!=null)throw Error(r(60));o.innerHTML=c}}break;case"children":typeof m=="string"?ru(o,m):(typeof m=="number"||typeof m=="bigint")&&ru(o,""+m);break;case"onScroll":m!=null&&rt("scroll",o);break;case"onScrollEnd":m!=null&&rt("scrollend",o);break;case"onClick":m!=null&&(o.onclick=pa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dp.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(x=c.endsWith("Capture"),s=c.slice(2,x?c.length-7:void 0),_=o[Zn]||null,_=_!=null?_[c]:null,typeof _=="function"&&o.removeEventListener(s,_,x),typeof m=="function")){typeof _!="function"&&_!==null&&(c in o?o[c]=null:o.hasAttribute(c)&&o.removeAttribute(c)),o.addEventListener(s,m,x);break e}c in o?o[c]=m:m===!0?o.setAttribute(c,""):tu(o,c,m)}}}function Un(o,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",o),rt("load",o);var m=!1,x=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var j=c[_];if(j!=null)switch(_){case"src":m=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:At(o,s,_,j,c,null)}}x&&At(o,s,"srcSet",c.srcSet,c,null),m&&At(o,s,"src",c.src,c,null);return;case"input":rt("invalid",o);var U=_=j=x=null,G=null,se=null;for(m in c)if(c.hasOwnProperty(m)){var ve=c[m];if(ve!=null)switch(m){case"name":x=ve;break;case"type":j=ve;break;case"checked":G=ve;break;case"defaultChecked":se=ve;break;case"value":_=ve;break;case"defaultValue":U=ve;break;case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,s));break;default:At(o,s,m,ve,c,null)}}yp(o,_,U,G,se,j,x,!1);return;case"select":rt("invalid",o),m=j=_=null;for(x in c)if(c.hasOwnProperty(x)&&(U=c[x],U!=null))switch(x){case"value":_=U;break;case"defaultValue":j=U;break;case"multiple":m=U;default:At(o,s,x,U,c,null)}s=_,c=j,o.multiple=!!m,s!=null?ha(o,!!m,s,!1):c!=null&&ha(o,!!m,c,!0);return;case"textarea":rt("invalid",o),_=x=m=null;for(j in c)if(c.hasOwnProperty(j)&&(U=c[j],U!=null))switch(j){case"value":m=U;break;case"defaultValue":x=U;break;case"children":_=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(91));break;default:At(o,s,j,U,c,null)}lA(o,m,x,_);return;case"option":for(G in c)if(c.hasOwnProperty(G)&&(m=c[G],m!=null))switch(G){case"selected":o.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:At(o,s,G,m,c,null)}return;case"dialog":rt("beforetoggle",o),rt("toggle",o),rt("cancel",o),rt("close",o);break;case"iframe":case"object":rt("load",o);break;case"video":case"audio":for(m=0;m<Vf.length;m++)rt(Vf[m],o);break;case"image":rt("error",o),rt("load",o);break;case"details":rt("toggle",o);break;case"embed":case"source":case"link":rt("error",o),rt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(se in c)if(c.hasOwnProperty(se)&&(m=c[se],m!=null))switch(se){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:At(o,s,se,m,c,null)}return;default:if(o0(s)){for(ve in c)c.hasOwnProperty(ve)&&(m=c[ve],m!==void 0&&K1(o,s,ve,m,c,void 0));return}}for(U in c)c.hasOwnProperty(U)&&(m=c[U],m!=null&&At(o,s,U,m,c,null))}function F7(o,s,c,m){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,_=null,j=null,U=null,G=null,se=null,ve=null;for(me in c){var xe=c[me];if(c.hasOwnProperty(me)&&xe!=null)switch(me){case"checked":break;case"value":break;case"defaultValue":G=xe;default:m.hasOwnProperty(me)||At(o,s,me,null,m,xe)}}for(var ue in m){var me=m[ue];if(xe=c[ue],m.hasOwnProperty(ue)&&(me!=null||xe!=null))switch(ue){case"type":_=me;break;case"name":x=me;break;case"checked":se=me;break;case"defaultChecked":ve=me;break;case"value":j=me;break;case"defaultValue":U=me;break;case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,s));break;default:me!==xe&&At(o,s,ue,me,m,xe)}}Ns(o,j,U,G,se,ve,_,x);return;case"select":me=j=U=ue=null;for(_ in c)if(G=c[_],c.hasOwnProperty(_)&&G!=null)switch(_){case"value":break;case"multiple":me=G;default:m.hasOwnProperty(_)||At(o,s,_,null,m,G)}for(x in m)if(_=m[x],G=c[x],m.hasOwnProperty(x)&&(_!=null||G!=null))switch(x){case"value":ue=_;break;case"defaultValue":U=_;break;case"multiple":j=_;default:_!==G&&At(o,s,x,_,m,G)}s=U,c=j,m=me,ue!=null?ha(o,!!c,ue,!1):!!m!=!!c&&(s!=null?ha(o,!!c,s,!0):ha(o,!!c,c?[]:"",!1));return;case"textarea":me=ue=null;for(U in c)if(x=c[U],c.hasOwnProperty(U)&&x!=null&&!m.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:At(o,s,U,null,m,x)}for(j in m)if(x=m[j],_=c[j],m.hasOwnProperty(j)&&(x!=null||_!=null))switch(j){case"value":ue=x;break;case"defaultValue":me=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:x!==_&&At(o,s,j,x,m,_)}sA(o,ue,me);return;case"option":for(var Re in c)if(ue=c[Re],c.hasOwnProperty(Re)&&ue!=null&&!m.hasOwnProperty(Re))switch(Re){case"selected":o.selected=!1;break;default:At(o,s,Re,null,m,ue)}for(G in m)if(ue=m[G],me=c[G],m.hasOwnProperty(G)&&ue!==me&&(ue!=null||me!=null))switch(G){case"selected":o.selected=ue&&typeof ue!="function"&&typeof ue!="symbol";break;default:At(o,s,G,ue,m,me)}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 Fe in c)ue=c[Fe],c.hasOwnProperty(Fe)&&ue!=null&&!m.hasOwnProperty(Fe)&&At(o,s,Fe,null,m,ue);for(se in m)if(ue=m[se],me=c[se],m.hasOwnProperty(se)&&ue!==me&&(ue!=null||me!=null))switch(se){case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(r(137,s));break;default:At(o,s,se,ue,m,me)}return;default:if(o0(s)){for(var Ot in c)ue=c[Ot],c.hasOwnProperty(Ot)&&ue!==void 0&&!m.hasOwnProperty(Ot)&&K1(o,s,Ot,void 0,m,ue);for(ve in m)ue=m[ve],me=c[ve],!m.hasOwnProperty(ve)||ue===me||ue===void 0&&me===void 0||K1(o,s,ve,ue,m,me);return}}for(var ne in c)ue=c[ne],c.hasOwnProperty(ne)&&ue!=null&&!m.hasOwnProperty(ne)&&At(o,s,ne,null,m,ue);for(xe in m)ue=m[xe],me=c[xe],!m.hasOwnProperty(xe)||ue===me||ue==null&&me==null||At(o,s,xe,ue,m,me)}function fC(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function K7(){if(typeof performance.getEntriesByType=="function"){for(var o=0,s=0,c=performance.getEntriesByType("resource"),m=0;m<c.length;m++){var x=c[m],_=x.transferSize,j=x.initiatorType,U=x.duration;if(_&&U&&fC(j)){for(j=0,U=x.responseEnd,m+=1;m<c.length;m++){var G=c[m],se=G.startTime;if(se>U)break;var ve=G.transferSize,xe=G.initiatorType;ve&&fC(xe)&&(G=G.responseEnd,j+=ve*(G<U?1:(U-se)/(G-se)))}if(--m,s+=8*(_+j)/(x.duration/1e3),o++,10<o)break}}if(0<o)return s/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Y1=null,G1=null;function dm(o){return o.nodeType===9?o:o.ownerDocument}function dC(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hC(o,s){if(o===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&s==="foreignObject"?0:o}function Q1(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Z1=null;function Y7(){var o=window.event;return o&&o.type==="popstate"?o===Z1?!1:(Z1=o,!0):(Z1=null,!1)}var pC=typeof setTimeout=="function"?setTimeout:void 0,G7=typeof clearTimeout=="function"?clearTimeout:void 0,mC=typeof Promise=="function"?Promise:void 0,Q7=typeof queueMicrotask=="function"?queueMicrotask:typeof mC<"u"?function(o){return mC.resolve(null).then(o).catch(Z7)}:pC;function Z7(o){setTimeout(function(){throw o})}function Lo(o){return o==="head"}function yC(o,s){var c=s,m=0;do{var x=c.nextSibling;if(o.removeChild(c),x&&x.nodeType===8)if(c=x.data,c==="/$"||c==="/&"){if(m===0){o.removeChild(x),Du(s);return}m--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")m++;else if(c==="html")Kf(o.ownerDocument.documentElement);else if(c==="head"){c=o.ownerDocument.head,Kf(c);for(var _=c.firstChild;_;){var j=_.nextSibling,U=_.nodeName;_[Ts]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&_.rel.toLowerCase()==="stylesheet"||c.removeChild(_),_=j}}else c==="body"&&Kf(o.ownerDocument.body);c=x}while(c);Du(s)}function vC(o,s){var c=o;o=0;do{var m=c.nextSibling;if(c.nodeType===1?s?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(s?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),m&&m.nodeType===8)if(c=m.data,c==="/$"){if(o===0)break;o--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||o++;c=m}while(c)}function X1(o){var s=o.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":X1(c),uf(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}o.removeChild(c)}}function X7(o,s,c,m){for(;o.nodeType===1;){var x=c;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!m&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(m){if(!o[Ts])switch(s){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(_=o.getAttribute("rel"),_==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(_!==x.rel||o.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||o.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||o.getAttribute("title")!==(x.title==null?null:x.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(_=o.getAttribute("src"),(_!==(x.src==null?null:x.src)||o.getAttribute("type")!==(x.type==null?null:x.type)||o.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&_&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(s==="input"&&o.type==="hidden"){var _=x.name==null?null:""+x.name;if(x.type==="hidden"&&o.getAttribute("name")===_)return o}else return o;if(o=Jr(o.nextSibling),o===null)break}return null}function W7(o,s,c){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!c||(o=Jr(o.nextSibling),o===null))return null;return o}function gC(o,s){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=Jr(o.nextSibling),o===null))return null;return o}function W1(o){return o.data==="$?"||o.data==="$~"}function J1(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function J7(o,s){var c=o.ownerDocument;if(o.data==="$~")o._reactRetry=s;else if(o.data!=="$?"||c.readyState!=="loading")s();else{var m=function(){s(),c.removeEventListener("DOMContentLoaded",m)};c.addEventListener("DOMContentLoaded",m),o._reactRetry=m}}function Jr(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return o}var eb=null;function bC(o){o=o.nextSibling;for(var s=0;o;){if(o.nodeType===8){var c=o.data;if(c==="/$"||c==="/&"){if(s===0)return Jr(o.nextSibling);s--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||s++}o=o.nextSibling}return null}function xC(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var c=o.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(s===0)return o;s--}else c!=="/$"&&c!=="/&"||s++}o=o.previousSibling}return null}function wC(o,s,c){switch(s=dm(c),o){case"html":if(o=s.documentElement,!o)throw Error(r(452));return o;case"head":if(o=s.head,!o)throw Error(r(453));return o;case"body":if(o=s.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function Kf(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);uf(o)}var ei=new Map,SC=new Set;function hm(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Ta=V.d;V.d={f:e$,r:t$,D:n$,C:r$,L:i$,m:a$,X:s$,S:o$,M:l$};function e$(){var o=Ta.f(),s=im();return o||s}function t$(o){var s=yo(o);s!==null&&s.tag===5&&s.type==="form"?BO(s):Ta.r(o)}var Pu=typeof document>"u"?null:document;function _C(o,s,c){var m=Pu;if(m&&typeof s=="string"&&s){var x=pr(s);x='link[rel="'+o+'"][href="'+x+'"]',typeof c=="string"&&(x+='[crossorigin="'+c+'"]'),SC.has(x)||(SC.add(x),o={rel:o,crossOrigin:c,href:s},m.querySelector(x)===null&&(s=m.createElement("link"),Un(s,"link",o),sn(s),m.head.appendChild(s)))}}function n$(o){Ta.D(o),_C("dns-prefetch",o,null)}function r$(o,s){Ta.C(o,s),_C("preconnect",o,s)}function i$(o,s,c){Ta.L(o,s,c);var m=Pu;if(m&&o&&s){var x='link[rel="preload"][as="'+pr(s)+'"]';s==="image"&&c&&c.imageSrcSet?(x+='[imagesrcset="'+pr(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(x+='[imagesizes="'+pr(c.imageSizes)+'"]')):x+='[href="'+pr(o)+'"]';var _=x;switch(s){case"style":_=Nu(o);break;case"script":_=Ru(o)}ei.has(_)||(o=p({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:o,as:s},c),ei.set(_,o),m.querySelector(x)!==null||s==="style"&&m.querySelector(Yf(_))||s==="script"&&m.querySelector(Gf(_))||(s=m.createElement("link"),Un(s,"link",o),sn(s),m.head.appendChild(s)))}}function a$(o,s){Ta.m(o,s);var c=Pu;if(c&&o){var m=s&&typeof s.as=="string"?s.as:"script",x='link[rel="modulepreload"][as="'+pr(m)+'"][href="'+pr(o)+'"]',_=x;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Ru(o)}if(!ei.has(_)&&(o=p({rel:"modulepreload",href:o},s),ei.set(_,o),c.querySelector(x)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Gf(_)))return}m=c.createElement("link"),Un(m,"link",o),sn(m),c.head.appendChild(m)}}}function o$(o,s,c){Ta.S(o,s,c);var m=Pu;if(m&&o){var x=go(m).hoistableStyles,_=Nu(o);s=s||"default";var j=x.get(_);if(!j){var U={loading:0,preload:null};if(j=m.querySelector(Yf(_)))U.loading=5;else{o=p({rel:"stylesheet",href:o,"data-precedence":s},c),(c=ei.get(_))&&tb(o,c);var G=j=m.createElement("link");sn(G),Un(G,"link",o),G._p=new Promise(function(se,ve){G.onload=se,G.onerror=ve}),G.addEventListener("load",function(){U.loading|=1}),G.addEventListener("error",function(){U.loading|=2}),U.loading|=4,pm(j,s,m)}j={type:"stylesheet",instance:j,count:1,state:U},x.set(_,j)}}}function s$(o,s){Ta.X(o,s);var c=Pu;if(c&&o){var m=go(c).hoistableScripts,x=Ru(o),_=m.get(x);_||(_=c.querySelector(Gf(x)),_||(o=p({src:o,async:!0},s),(s=ei.get(x))&&nb(o,s),_=c.createElement("script"),sn(_),Un(_,"link",o),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},m.set(x,_))}}function l$(o,s){Ta.M(o,s);var c=Pu;if(c&&o){var m=go(c).hoistableScripts,x=Ru(o),_=m.get(x);_||(_=c.querySelector(Gf(x)),_||(o=p({src:o,async:!0,type:"module"},s),(s=ei.get(x))&&nb(o,s),_=c.createElement("script"),sn(_),Un(_,"link",o),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},m.set(x,_))}}function EC(o,s,c,m){var x=(x=he.current)?hm(x):null;if(!x)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=Nu(c.href),c=go(x).hoistableStyles,m=c.get(s),m||(m={type:"style",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){o=Nu(c.href);var _=go(x).hoistableStyles,j=_.get(o);if(j||(x=x.ownerDocument||x,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(o,j),(_=x.querySelector(Yf(o)))&&!_._p&&(j.instance=_,j.state.loading=5),ei.has(o)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},ei.set(o,c),_||u$(x,o,c,j.state))),s&&m===null)throw Error(r(528,""));return j}if(s&&m!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Ru(c),c=go(x).hoistableScripts,m=c.get(s),m||(m={type:"script",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Nu(o){return'href="'+pr(o)+'"'}function Yf(o){return'link[rel="stylesheet"]['+o+"]"}function AC(o){return p({},o,{"data-precedence":o.precedence,precedence:null})}function u$(o,s,c,m){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?m.loading=1:(s=o.createElement("link"),m.preload=s,s.addEventListener("load",function(){return m.loading|=1}),s.addEventListener("error",function(){return m.loading|=2}),Un(s,"link",c),sn(s),o.head.appendChild(s))}function Ru(o){return'[src="'+pr(o)+'"]'}function Gf(o){return"script[async]"+o}function OC(o,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var m=o.querySelector('style[data-href~="'+pr(c.href)+'"]');if(m)return s.instance=m,sn(m),m;var x=p({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return m=(o.ownerDocument||o).createElement("style"),sn(m),Un(m,"style",x),pm(m,c.precedence,o),s.instance=m;case"stylesheet":x=Nu(c.href);var _=o.querySelector(Yf(x));if(_)return s.state.loading|=4,s.instance=_,sn(_),_;m=AC(c),(x=ei.get(x))&&tb(m,x),_=(o.ownerDocument||o).createElement("link"),sn(_);var j=_;return j._p=new Promise(function(U,G){j.onload=U,j.onerror=G}),Un(_,"link",m),s.state.loading|=4,pm(_,c.precedence,o),s.instance=_;case"script":return _=Ru(c.src),(x=o.querySelector(Gf(_)))?(s.instance=x,sn(x),x):(m=c,(x=ei.get(_))&&(m=p({},c),nb(m,x)),o=o.ownerDocument||o,x=o.createElement("script"),sn(x),Un(x,"link",m),o.head.appendChild(x),s.instance=x);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(m=s.instance,s.state.loading|=4,pm(m,c.precedence,o));return s.instance}function pm(o,s,c){for(var m=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=m.length?m[m.length-1]:null,_=x,j=0;j<m.length;j++){var U=m[j];if(U.dataset.precedence===s)_=U;else if(_!==x)break}_?_.parentNode.insertBefore(o,_.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(o,s.firstChild))}function tb(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function nb(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var mm=null;function MC(o,s,c){if(mm===null){var m=new Map,x=mm=new Map;x.set(c,m)}else x=mm,m=x.get(c),m||(m=new Map,x.set(c,m));if(m.has(o))return m;for(m.set(o,null),c=c.getElementsByTagName(o),x=0;x<c.length;x++){var _=c[x];if(!(_[Ts]||_[vn]||o==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var j=_.getAttribute(s)||"";j=o+j;var U=m.get(j);U?U.push(_):m.set(j,[_])}}return m}function CC(o,s,c){o=o.ownerDocument||o,o.head.insertBefore(c,s==="title"?o.querySelector("head > title"):null)}function c$(o,s,c){if(c===1||s.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return o=s.disabled,typeof s.precedence=="string"&&o==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function kC(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function f$(o,s,c,m){if(c.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var x=Nu(m.href),_=s.querySelector(Yf(x));if(_){s=_._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(o.count++,o=ym.bind(o),s.then(o,o)),c.state.loading|=4,c.instance=_,sn(_);return}_=s.ownerDocument||s,m=AC(m),(x=ei.get(x))&&tb(m,x),_=_.createElement("link"),sn(_);var j=_;j._p=new Promise(function(U,G){j.onload=U,j.onerror=G}),Un(_,"link",m),c.instance=_}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(o.count++,c=ym.bind(o),s.addEventListener("load",c),s.addEventListener("error",c))}}var rb=0;function d$(o,s){return o.stylesheets&&o.count===0&&gm(o,o.stylesheets),0<o.count||0<o.imgCount?function(c){var m=setTimeout(function(){if(o.stylesheets&&gm(o,o.stylesheets),o.unsuspend){var _=o.unsuspend;o.unsuspend=null,_()}},6e4+s);0<o.imgBytes&&rb===0&&(rb=62500*K7());var x=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&gm(o,o.stylesheets),o.unsuspend)){var _=o.unsuspend;o.unsuspend=null,_()}},(o.imgBytes>rb?50:800)+s);return o.unsuspend=c,function(){o.unsuspend=null,clearTimeout(m),clearTimeout(x)}}:null}function ym(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gm(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var vm=null;function gm(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,vm=new Map,s.forEach(h$,o),vm=null,ym.call(o))}function h$(o,s){if(!(s.state.loading&4)){var c=vm.get(o);if(c)var m=c.get(null);else{c=new Map,vm.set(o,c);for(var x=o.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<x.length;_++){var j=x[_];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(c.set(j.dataset.precedence,j),m=j)}m&&c.set(null,m)}x=s.instance,j=x.getAttribute("data-precedence"),_=c.get(j)||m,_===m&&c.set(null,x),c.set(j,x),this.count++,m=ym.bind(this),x.addEventListener("load",m),x.addEventListener("error",m),_?_.parentNode.insertBefore(x,_.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(x,o.firstChild)),s.state.loading|=4}}var Qf={$$typeof:A,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function p$(o,s,c,m,x,_,j,U,G){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=of(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=of(0),this.hiddenUpdates=of(null),this.identifierPrefix=m,this.onUncaughtError=x,this.onCaughtError=_,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map}function TC(o,s,c,m,x,_,j,U,G,se,ve,xe){return o=new p$(o,s,c,j,G,se,ve,xe,U),s=1,_===!0&&(s|=24),_=Cr(3,null,null,s),o.current=_,_.stateNode=o,s=I0(),s.refCount++,o.pooledCache=s,s.refCount++,_.memoizedState={element:m,isDehydrated:c,cache:s},$0(_),o}function PC(o){return o?(o=cu,o):cu}function NC(o,s,c,m,x,_){x=PC(x),m.context===null?m.context=x:m.pendingContext=x,m=Mo(s),m.payload={element:c},_=_===void 0?null:_,_!==null&&(m.callback=_),c=Co(o,m,s),c!==null&&(xr(c,o,s),Mf(c,o,s))}function RC(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var c=o.retryLane;o.retryLane=c!==0&&c<s?c:s}}function ib(o,s){RC(o,s),(o=o.alternate)&&RC(o,s)}function DC(o){if(o.tag===13||o.tag===31){var s=Is(o,67108864);s!==null&&xr(s,o,67108864),ib(o,67108864)}}function jC(o){if(o.tag===13||o.tag===31){var s=Rr();s=sf(s);var c=Is(o,s);c!==null&&xr(c,o,s),ib(o,s)}}var bm=!0;function m$(o,s,c,m){var x=L.T;L.T=null;var _=V.p;try{V.p=2,ab(o,s,c,m)}finally{V.p=_,L.T=x}}function y$(o,s,c,m){var x=L.T;L.T=null;var _=V.p;try{V.p=8,ab(o,s,c,m)}finally{V.p=_,L.T=x}}function ab(o,s,c,m){if(bm){var x=ob(m);if(x===null)F1(o,s,m,xm,c),zC(o,m);else if(g$(x,o,s,c,m))m.stopPropagation();else if(zC(o,m),s&4&&-1<v$.indexOf(o)){for(;x!==null;){var _=yo(x);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var j=ca(_.pendingLanes);if(j!==0){var U=_;for(U.pendingLanes|=2,U.entangledLanes|=2;j;){var G=1<<31-yn(j);U.entanglements[1]|=G,j&=~G}zi(_),(gt&6)===0&&(nm=ae()+500,Hf(0))}}break;case 31:case 13:U=Is(_,2),U!==null&&xr(U,_,2),im(),ib(_,2)}if(_=ob(m),_===null&&F1(o,s,m,xm,c),_===x)break;x=_}x!==null&&m.stopPropagation()}else F1(o,s,m,null,c)}}function ob(o){return o=l0(o),sb(o)}var xm=null;function sb(o){if(xm=null,o=mo(o),o!==null){var s=a(o);if(s===null)o=null;else{var c=s.tag;if(c===13){if(o=l(s),o!==null)return o;o=null}else if(c===31){if(o=u(s),o!==null)return o;o=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null)}}return xm=o,null}function IC(o){switch(o){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 2;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 8;case"message":switch(Oe()){case we:return 2;case _e:return 8;case Te:case Ke:return 32;case at:return 268435456;default:return 32}default:return 32}}var lb=!1,Bo=null,$o=null,Uo=null,Zf=new Map,Xf=new Map,qo=[],v$="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(" ");function zC(o,s){switch(o){case"focusin":case"focusout":Bo=null;break;case"dragenter":case"dragleave":$o=null;break;case"mouseover":case"mouseout":Uo=null;break;case"pointerover":case"pointerout":Zf.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xf.delete(s.pointerId)}}function Wf(o,s,c,m,x,_){return o===null||o.nativeEvent!==_?(o={blockedOn:s,domEventName:c,eventSystemFlags:m,nativeEvent:_,targetContainers:[x]},s!==null&&(s=yo(s),s!==null&&DC(s)),o):(o.eventSystemFlags|=m,s=o.targetContainers,x!==null&&s.indexOf(x)===-1&&s.push(x),o)}function g$(o,s,c,m,x){switch(s){case"focusin":return Bo=Wf(Bo,o,s,c,m,x),!0;case"dragenter":return $o=Wf($o,o,s,c,m,x),!0;case"mouseover":return Uo=Wf(Uo,o,s,c,m,x),!0;case"pointerover":var _=x.pointerId;return Zf.set(_,Wf(Zf.get(_)||null,o,s,c,m,x)),!0;case"gotpointercapture":return _=x.pointerId,Xf.set(_,Wf(Xf.get(_)||null,o,s,c,m,x)),!0}return!1}function LC(o){var s=mo(o.target);if(s!==null){var c=a(s);if(c!==null){if(s=c.tag,s===13){if(s=l(c),s!==null){o.blockedOn=s,lp(o.priority,function(){jC(c)});return}}else if(s===31){if(s=u(c),s!==null){o.blockedOn=s,lp(o.priority,function(){jC(c)});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){o.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}o.blockedOn=null}function wm(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var c=ob(o.nativeEvent);if(c===null){c=o.nativeEvent;var m=new c.constructor(c.type,c);s0=m,c.target.dispatchEvent(m),s0=null}else return s=yo(c),s!==null&&DC(s),o.blockedOn=c,!1;s.shift()}return!0}function BC(o,s,c){wm(o)&&c.delete(s)}function b$(){lb=!1,Bo!==null&&wm(Bo)&&(Bo=null),$o!==null&&wm($o)&&($o=null),Uo!==null&&wm(Uo)&&(Uo=null),Zf.forEach(BC),Xf.forEach(BC)}function Sm(o,s){o.blockedOn===s&&(o.blockedOn=null,lb||(lb=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,b$)))}var _m=null;function $C(o){_m!==o&&(_m=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){_m===o&&(_m=null);for(var s=0;s<o.length;s+=3){var c=o[s],m=o[s+1],x=o[s+2];if(typeof m!="function"){if(sb(m||c)===null)continue;break}var _=yo(c);_!==null&&(o.splice(s,3),s-=3,o1(_,{pending:!0,data:x,method:c.method,action:m},m,x))}}))}function Du(o){function s(G){return Sm(G,o)}Bo!==null&&Sm(Bo,o),$o!==null&&Sm($o,o),Uo!==null&&Sm(Uo,o),Zf.forEach(s),Xf.forEach(s);for(var c=0;c<qo.length;c++){var m=qo[c];m.blockedOn===o&&(m.blockedOn=null)}for(;0<qo.length&&(c=qo[0],c.blockedOn===null);)LC(c),c.blockedOn===null&&qo.shift();if(c=(o.ownerDocument||o).$$reactFormReplay,c!=null)for(m=0;m<c.length;m+=3){var x=c[m],_=c[m+1],j=x[Zn]||null;if(typeof _=="function")j||$C(c);else if(j){var U=null;if(_&&_.hasAttribute("formAction")){if(x=_,j=_[Zn]||null)U=j.formAction;else if(sb(x)!==null)continue}else U=j.action;typeof U=="function"?c[m+1]=U:(c.splice(m,3),m-=3),$C(c)}}}function UC(){function o(_){_.canIntercept&&_.info==="react-transition"&&_.intercept({handler:function(){return new Promise(function(j){return x=j})},focusReset:"manual",scroll:"manual"})}function s(){x!==null&&(x(),x=null),m||setTimeout(c,20)}function c(){if(!m&&!navigation.transition){var _=navigation.currentEntry;_&&_.url!=null&&navigation.navigate(_.url,{state:_.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,x=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(c,100),function(){m=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),x!==null&&(x(),x=null)}}}function ub(o){this._internalRoot=o}Em.prototype.render=ub.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));var c=s.current,m=Rr();NC(c,m,o,s,null,null)},Em.prototype.unmount=ub.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;NC(o.current,2,null,o,null,null),im(),s[fa]=null}};function Em(o){this._internalRoot=o}Em.prototype.unstable_scheduleHydration=function(o){if(o){var s=sp();o={blockedOn:null,target:o,priority:s};for(var c=0;c<qo.length&&s!==0&&s<qo[c].priority;c++);qo.splice(c,0,o),c===0&&LC(o)}};var qC=t.version;if(qC!=="19.2.4")throw Error(r(527,qC,"19.2.4"));V.findDOMNode=function(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=d(s),o=o!==null?h(o):null,o=o===null?null:o.stateNode,o};var x$={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Am=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Am.isDisabled&&Am.supportsFiber)try{Kt=Am.inject(x$),zn=Am}catch{}}return ed.createRoot=function(o,s){if(!i(o))throw Error(r(299));var c=!1,m="",x=QO,_=ZO,j=XO;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onUncaughtError!==void 0&&(x=s.onUncaughtError),s.onCaughtError!==void 0&&(_=s.onCaughtError),s.onRecoverableError!==void 0&&(j=s.onRecoverableError)),s=TC(o,1,!1,null,null,c,m,null,x,_,j,UC),o[fa]=s.current,V1(o),new ub(s)},ed.hydrateRoot=function(o,s,c){if(!i(o))throw Error(r(299));var m=!1,x="",_=QO,j=ZO,U=XO,G=null;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(x=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=c.onUncaughtError),c.onCaughtError!==void 0&&(j=c.onCaughtError),c.onRecoverableError!==void 0&&(U=c.onRecoverableError),c.formState!==void 0&&(G=c.formState)),s=TC(o,1,!0,s,c??null,m,x,G,_,j,U,UC),s.context=PC(null),c=s.current,m=Rr(),m=sf(m),x=Mo(m),x.callback=null,Co(c,x,m),c=m,s.current.lanes=c,ks(s,c),zi(s),o[fa]=s.current,V1(o),new Em(s)},ed.version="19.2.4",ed}var JC;function R$(){if(JC)return hb.exports;JC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),hb.exports=N$(),hb.exports}var D$=R$();const F1e=ui(D$);var Hc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hl,rs,uc,D4,j$=(D4=class extends Hc{constructor(){super();Ue(this,hl);Ue(this,rs);Ue(this,uc);Me(this,uc,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Z(this,rs)||this.setEventListener(Z(this,uc))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,rs))==null||t.call(this),Me(this,rs,void 0))}setEventListener(t){var n;Me(this,uc,t),(n=Z(this,rs))==null||n.call(this),Me(this,rs,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Z(this,hl)!==t&&(Me(this,hl,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Z(this,hl)=="boolean"?Z(this,hl):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},hl=new WeakMap,rs=new WeakMap,uc=new WeakMap,D4),CS=new j$,I$={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},is,MS,j4,z$=(j4=class{constructor(){Ue(this,is,I$);Ue(this,MS,!1)}setTimeoutProvider(e){Me(this,is,e)}setTimeout(e,t){return Z(this,is).setTimeout(e,t)}clearTimeout(e){Z(this,is).clearTimeout(e)}setInterval(e,t){return Z(this,is).setInterval(e,t)}clearInterval(e){Z(this,is).clearInterval(e)}},is=new WeakMap,MS=new WeakMap,j4),sl=new z$;function L$(e){setTimeout(e,0)}var B$=typeof window>"u"||"Deno"in globalThis;function or(){}function $$(e,t){return typeof e=="function"?e(t):e}function $w(e){return typeof e=="number"&&e>=0&&e!==1/0}function K4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function hs(e,t){return typeof e=="function"?e(t):e}function ai(e,t){return typeof e=="function"?e(t):e}function ek(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==kS(l,t.options))return!1}else if(!zd(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||a&&!a(t))}function tk(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ml(t.options.mutationKey)!==Ml(a))return!1}else if(!zd(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function kS(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ml)(e)}function Ml(e){return JSON.stringify(e,(t,n)=>Uw(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function zd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zd(e[n],t[n])):!1}var U$=Object.prototype.hasOwnProperty;function TS(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=nk(e)&&nk(t);if(!r&&!(Uw(e)&&Uw(t)))return t;const a=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),u=l.length,f=r?new Array(u):{};let d=0;for(let h=0;h<u;h++){const p=r?h:l[h],y=e[p],v=t[p];if(y===v){f[p]=y,(r?h<a:U$.call(e,p))&&d++;continue}if(y===null||v===null||typeof y!="object"||typeof v!="object"){f[p]=v;continue}const g=TS(y,v,n+1);f[p]=g,g===y&&d++}return a===u&&d===a?e:f}function wy(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function nk(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Uw(e){if(!rk(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!rk(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function rk(e){return Object.prototype.toString.call(e)==="[object Object]"}function q$(e){return new Promise(t=>{sl.setTimeout(t,e)})}function qw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?TS(e,t):t}function H$(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function V$(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var PS=Symbol();function Y4(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===PS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function NS(e,t){return typeof e=="function"?e(...t):!!e}function F$(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Ld=(()=>{let e=()=>B$;return{isServer(){return e()},setIsServer(t){e=t}}})();function Hw(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var K$=L$;function Y$(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=K$;const a=u=>{t?e.push(u):i(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||l()}return f},batchCalls:u=>(...f)=>{a(()=>{u(...f)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var an=Y$(),cc,as,fc,I4,G$=(I4=class extends Hc{constructor(){super();Ue(this,cc,!0);Ue(this,as);Ue(this,fc);Me(this,fc,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Z(this,as)||this.setEventListener(Z(this,fc))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,as))==null||t.call(this),Me(this,as,void 0))}setEventListener(t){var n;Me(this,fc,t),(n=Z(this,as))==null||n.call(this),Me(this,as,t(this.setOnline.bind(this)))}setOnline(t){Z(this,cc)!==t&&(Me(this,cc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Z(this,cc)}},cc=new WeakMap,as=new WeakMap,fc=new WeakMap,I4),Sy=new G$;function Q$(e){return Math.min(1e3*2**e,3e4)}function G4(e){return(e??"online")==="online"?Sy.isOnline():!0}var Vw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Q4(e){let t=!1,n=0,r;const i=Hw(),a=()=>i.status!=="pending",l=b=>{var w;if(!a()){const S=new Vw(b);y(S),(w=e.onCancel)==null||w.call(e,S)}},u=()=>{t=!0},f=()=>{t=!1},d=()=>CS.isFocused()&&(e.networkMode==="always"||Sy.isOnline())&&e.canRun(),h=()=>G4(e.networkMode)&&e.canRun(),p=b=>{a()||(r==null||r(),i.resolve(b))},y=b=>{a()||(r==null||r(),i.reject(b))},v=()=>new Promise(b=>{var w;r=S=>{(a()||d())&&b(S)},(w=e.onPause)==null||w.call(e)}).then(()=>{var b;r=void 0,a()||(b=e.onContinue)==null||b.call(e)}),g=()=>{if(a())return;let b;const w=n===0?e.initialPromise:void 0;try{b=w??e.fn()}catch(S){b=Promise.reject(S)}Promise.resolve(b).then(p).catch(S=>{var C;if(a())return;const M=e.retry??(Ld.isServer()?0:3),A=e.retryDelay??Q$,O=typeof A=="function"?A(n,S):A,k=M===!0||typeof M=="number"&&n<M||typeof M=="function"&&M(n,S);if(t||!k){y(S);return}n++,(C=e.onFail)==null||C.call(e,n,S),q$(O).then(()=>d()?void 0:v()).then(()=>{t?y(S):g()})})};return{promise:i,status:()=>i.status,cancel:l,continue:()=>(r==null||r(),i),cancelRetry:u,continueRetry:f,canStart:h,start:()=>(h()?g():v().then(g),i)}}var pl,z4,Z4=(z4=class{constructor(){Ue(this,pl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$w(this.gcTime)&&Me(this,pl,sl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ld.isServer()?1/0:300*1e3))}clearGcTimeout(){Z(this,pl)&&(sl.clearTimeout(Z(this,pl)),Me(this,pl,void 0))}},pl=new WeakMap,z4),ml,dc,ii,yl,Cn,hh,vl,Dr,X4,Da,L4,Z$=(L4=class extends Z4{constructor(t){super();Ue(this,Dr);Ue(this,ml);Ue(this,dc);Ue(this,ii);Ue(this,yl);Ue(this,Cn);Ue(this,hh);Ue(this,vl);Me(this,vl,!1),Me(this,hh,t.defaultOptions),this.setOptions(t.options),this.observers=[],Me(this,yl,t.client),Me(this,ii,Z(this,yl).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Me(this,ml,ak(this.options)),this.state=t.state??Z(this,ml),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Z(this,Cn))==null?void 0:t.promise}setOptions(t){if(this.options={...Z(this,hh),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=ak(this.options);n.data!==void 0&&(this.setState(ik(n.data,n.dataUpdatedAt)),Me(this,ml,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Z(this,ii).remove(this)}setData(t,n){const r=qw(this.state.data,t,this.options);return We(this,Dr,Da).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){We(this,Dr,Da).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Z(this,Cn))==null?void 0:r.promise;return(i=Z(this,Cn))==null||i.cancel(t),n?n.then(or).catch(or):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return Z(this,ml)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>ai(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===PS||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>hs(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!K4(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,Cn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,Cn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Z(this,ii).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Z(this,Cn)&&(Z(this,vl)||We(this,Dr,X4).call(this)?Z(this,Cn).cancel({revert:!0}):Z(this,Cn).cancelRetry()),this.scheduleGc()),Z(this,ii).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||We(this,Dr,Da).call(this,{type:"invalidate"})}async fetch(t,n){var f,d,h,p,y,v,g,b,w,S,M,A;if(this.state.fetchStatus!=="idle"&&((f=Z(this,Cn))==null?void 0:f.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Z(this,Cn))return Z(this,Cn).continueRetry(),Z(this,Cn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const O=this.observers.find(k=>k.options.queryFn);O&&this.setOptions(O.options)}const r=new AbortController,i=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(Me(this,vl,!0),r.signal)})},a=()=>{const O=Y4(this.options,n),C=(()=>{const T={client:Z(this,yl),queryKey:this.queryKey,meta:this.meta};return i(T),T})();return Me(this,vl,!1),this.options.persister?this.options.persister(O,C,this):O(C)},u=(()=>{const O={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Z(this,yl),state:this.state,fetchFn:a};return i(O),O})();(d=this.options.behavior)==null||d.onFetch(u,this),Me(this,dc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=u.fetchOptions)==null?void 0:h.meta))&&We(this,Dr,Da).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta}),Me(this,Cn,Q4({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:O=>{O instanceof Vw&&O.revert&&this.setState({...Z(this,dc),fetchStatus:"idle"}),r.abort()},onFail:(O,k)=>{We(this,Dr,Da).call(this,{type:"failed",failureCount:O,error:k})},onPause:()=>{We(this,Dr,Da).call(this,{type:"pause"})},onContinue:()=>{We(this,Dr,Da).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const O=await Z(this,Cn).start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(v=(y=Z(this,ii).config).onSuccess)==null||v.call(y,O,this),(b=(g=Z(this,ii).config).onSettled)==null||b.call(g,O,this.state.error,this),O}catch(O){if(O instanceof Vw){if(O.silent)return Z(this,Cn).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw We(this,Dr,Da).call(this,{type:"error",error:O}),(S=(w=Z(this,ii).config).onError)==null||S.call(w,O,this),(A=(M=Z(this,ii).config).onSettled)==null||A.call(M,this.state.data,O,this),O}finally{this.scheduleGc()}}},ml=new WeakMap,dc=new WeakMap,ii=new WeakMap,yl=new WeakMap,Cn=new WeakMap,hh=new WeakMap,vl=new WeakMap,Dr=new WeakSet,X4=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Da=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...W4(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...ik(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Me(this,dc,t.manual?i:void 0),i;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),an.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Z(this,ii).notify({query:this,type:"updated",action:t})})},L4);function W4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:G4(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ik(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ak(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var wr,ut,ph,ir,gl,hc,za,os,mh,pc,mc,bl,xl,ss,yc,xt,xd,Fw,Kw,Yw,Gw,Qw,Zw,Xw,e5,B4,J4=(B4=class extends Hc{constructor(t,n){super();Ue(this,xt);Ue(this,wr);Ue(this,ut);Ue(this,ph);Ue(this,ir);Ue(this,gl);Ue(this,hc);Ue(this,za);Ue(this,os);Ue(this,mh);Ue(this,pc);Ue(this,mc);Ue(this,bl);Ue(this,xl);Ue(this,ss);Ue(this,yc,new Set);this.options=n,Me(this,wr,t),Me(this,os,null),Me(this,za,Hw()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Z(this,ut).addObserver(this),ok(Z(this,ut),this.options)?We(this,xt,xd).call(this):this.updateResult(),We(this,xt,Gw).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ww(Z(this,ut),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ww(Z(this,ut),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,We(this,xt,Qw).call(this),We(this,xt,Zw).call(this),Z(this,ut).removeObserver(this)}setOptions(t){const n=this.options,r=Z(this,ut);if(this.options=Z(this,wr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ai(this.options.enabled,Z(this,ut))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");We(this,xt,Xw).call(this),Z(this,ut).setOptions(this.options),n._defaulted&&!wy(this.options,n)&&Z(this,wr).getQueryCache().notify({type:"observerOptionsUpdated",query:Z(this,ut),observer:this});const i=this.hasListeners();i&&sk(Z(this,ut),r,this.options,n)&&We(this,xt,xd).call(this),this.updateResult(),i&&(Z(this,ut)!==r||ai(this.options.enabled,Z(this,ut))!==ai(n.enabled,Z(this,ut))||hs(this.options.staleTime,Z(this,ut))!==hs(n.staleTime,Z(this,ut)))&&We(this,xt,Fw).call(this);const a=We(this,xt,Kw).call(this);i&&(Z(this,ut)!==r||ai(this.options.enabled,Z(this,ut))!==ai(n.enabled,Z(this,ut))||a!==Z(this,ss))&&We(this,xt,Yw).call(this,a)}getOptimisticResult(t){const n=Z(this,wr).getQueryCache().build(Z(this,wr),t),r=this.createResult(n,t);return W$(this,r)&&(Me(this,ir,r),Me(this,hc,this.options),Me(this,gl,Z(this,ut).state)),r}getCurrentResult(){return Z(this,ir)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&Z(this,za).status==="pending"&&Z(this,za).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){Z(this,yc).add(t)}getCurrentQuery(){return Z(this,ut)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Z(this,wr).defaultQueryOptions(t),r=Z(this,wr).getQueryCache().build(Z(this,wr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return We(this,xt,xd).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Z(this,ir)))}createResult(t,n){var D;const r=Z(this,ut),i=this.options,a=Z(this,ir),l=Z(this,gl),u=Z(this,hc),d=t!==r?t.state:Z(this,ph),{state:h}=t;let p={...h},y=!1,v;if(n._optimisticResults){const z=this.hasListeners(),R=!z&&ok(t,n),N=z&&sk(t,r,n,i);(R||N)&&(p={...p,...W4(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:g,errorUpdatedAt:b,status:w}=p;v=p.data;let S=!1;if(n.placeholderData!==void 0&&v===void 0&&w==="pending"){let z;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(z=a.data,S=!0):z=typeof n.placeholderData=="function"?n.placeholderData((D=Z(this,mc))==null?void 0:D.state.data,Z(this,mc)):n.placeholderData,z!==void 0&&(w="success",v=qw(a==null?void 0:a.data,z,n),y=!0)}if(n.select&&v!==void 0&&!S)if(a&&v===(l==null?void 0:l.data)&&n.select===Z(this,mh))v=Z(this,pc);else try{Me(this,mh,n.select),v=n.select(v),v=qw(a==null?void 0:a.data,v,n),Me(this,pc,v),Me(this,os,null)}catch(z){Me(this,os,z)}Z(this,os)&&(g=Z(this,os),v=Z(this,pc),b=Date.now(),w="error");const M=p.fetchStatus==="fetching",A=w==="pending",O=w==="error",k=A&&M,C=v!==void 0,P={status:w,fetchStatus:p.fetchStatus,isPending:A,isSuccess:w==="success",isError:O,isInitialLoading:k,isLoading:k,data:v,dataUpdatedAt:p.dataUpdatedAt,error:g,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:M,isRefetching:M&&!A,isLoadingError:O&&!C,isPaused:p.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:O&&C,isStale:RS(t,n),refetch:this.refetch,promise:Z(this,za),isEnabled:ai(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const z=P.data!==void 0,R=P.status==="error"&&!z,N=q=>{R?q.reject(P.error):z&&q.resolve(P.data)},B=()=>{const q=Me(this,za,P.promise=Hw());N(q)},I=Z(this,za);switch(I.status){case"pending":t.queryHash===r.queryHash&&N(I);break;case"fulfilled":(R||P.data!==I.value)&&B();break;case"rejected":(!R||P.error!==I.reason)&&B();break}}return P}updateResult(){const t=Z(this,ir),n=this.createResult(Z(this,ut),this.options);if(Me(this,gl,Z(this,ut).state),Me(this,hc,this.options),Z(this,gl).data!==void 0&&Me(this,mc,Z(this,ut)),wy(n,t))return;Me(this,ir,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!Z(this,yc).size)return!0;const l=new Set(a??Z(this,yc));return this.options.throwOnError&&l.add("error"),Object.keys(Z(this,ir)).some(u=>{const f=u;return Z(this,ir)[f]!==t[f]&&l.has(f)})};We(this,xt,e5).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&We(this,xt,Gw).call(this)}},wr=new WeakMap,ut=new WeakMap,ph=new WeakMap,ir=new WeakMap,gl=new WeakMap,hc=new WeakMap,za=new WeakMap,os=new WeakMap,mh=new WeakMap,pc=new WeakMap,mc=new WeakMap,bl=new WeakMap,xl=new WeakMap,ss=new WeakMap,yc=new WeakMap,xt=new WeakSet,xd=function(t){We(this,xt,Xw).call(this);let n=Z(this,ut).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(or)),n},Fw=function(){We(this,xt,Qw).call(this);const t=hs(this.options.staleTime,Z(this,ut));if(Ld.isServer()||Z(this,ir).isStale||!$w(t))return;const r=K4(Z(this,ir).dataUpdatedAt,t)+1;Me(this,bl,sl.setTimeout(()=>{Z(this,ir).isStale||this.updateResult()},r))},Kw=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Z(this,ut)):this.options.refetchInterval)??!1},Yw=function(t){We(this,xt,Zw).call(this),Me(this,ss,t),!(Ld.isServer()||ai(this.options.enabled,Z(this,ut))===!1||!$w(Z(this,ss))||Z(this,ss)===0)&&Me(this,xl,sl.setInterval(()=>{(this.options.refetchIntervalInBackground||CS.isFocused())&&We(this,xt,xd).call(this)},Z(this,ss)))},Gw=function(){We(this,xt,Fw).call(this),We(this,xt,Yw).call(this,We(this,xt,Kw).call(this))},Qw=function(){Z(this,bl)&&(sl.clearTimeout(Z(this,bl)),Me(this,bl,void 0))},Zw=function(){Z(this,xl)&&(sl.clearInterval(Z(this,xl)),Me(this,xl,void 0))},Xw=function(){const t=Z(this,wr).getQueryCache().build(Z(this,wr),this.options);if(t===Z(this,ut))return;const n=Z(this,ut);Me(this,ut,t),Me(this,ph,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},e5=function(t){an.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Z(this,ir))}),Z(this,wr).getQueryCache().notify({query:Z(this,ut),type:"observerResultsUpdated"})})},B4);function X$(e,t){return ai(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ok(e,t){return X$(e,t)||e.state.data!==void 0&&Ww(e,t,t.refetchOnMount)}function Ww(e,t,n){if(ai(t.enabled,e)!==!1&&hs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&RS(e,t)}return!1}function sk(e,t,n,r){return(e!==t||ai(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&RS(e,n)}function RS(e,t){return ai(t.enabled,e)!==!1&&e.isStaleByTime(hs(t.staleTime,e))}function W$(e,t){return!wy(e.getCurrentResult(),t)}function _y(e){return{onFetch:(t,n)=>{var h,p,y,v,g;const r=t.options,i=(y=(p=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:p.fetchMore)==null?void 0:y.direction,a=((v=t.state.data)==null?void 0:v.pages)||[],l=((g=t.state.data)==null?void 0:g.pageParams)||[];let u={pages:[],pageParams:[]},f=0;const d=async()=>{let b=!1;const w=A=>{F$(A,()=>t.signal,()=>b=!0)},S=Y4(t.options,t.fetchOptions),M=async(A,O,k)=>{if(b)return Promise.reject();if(O==null&&A.pages.length)return Promise.resolve(A);const T=(()=>{const R={client:t.client,queryKey:t.queryKey,pageParam:O,direction:k?"backward":"forward",meta:t.options.meta};return w(R),R})(),P=await S(T),{maxPages:D}=t.options,z=k?V$:H$;return{pages:z(A.pages,P,D),pageParams:z(A.pageParams,O,D)}};if(i&&a.length){const A=i==="backward",O=A?t5:Jw,k={pages:a,pageParams:l},C=O(r,k);u=await M(k,C,A)}else{const A=e??a.length;do{const O=f===0?l[0]??r.initialPageParam:Jw(r,u);if(f>0&&O==null)break;u=await M(u,O),f++}while(f<A)}return u};t.options.persister?t.fetchFn=()=>{var b,w;return(w=(b=t.options).persister)==null?void 0:w.call(b,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function Jw(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function t5(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function J$(e,t){return t?Jw(e,t)!=null:!1}function eU(e,t){return!t||!e.getPreviousPageParam?!1:t5(e,t)!=null}var tU=class extends J4{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:_y()})}getOptimisticResult(e){return e.behavior=_y(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var g,b;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:l,isRefetchError:u}=r,f=(b=(g=n.fetchMeta)==null?void 0:g.fetchMore)==null?void 0:b.direction,d=l&&f==="forward",h=i&&f==="forward",p=l&&f==="backward",y=i&&f==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:J$(t,n.data),hasPreviousPage:eU(t,n.data),isFetchNextPageError:d,isFetchingNextPage:h,isFetchPreviousPageError:p,isFetchingPreviousPage:y,isRefetchError:u&&!d&&!p,isRefetching:a&&!h&&!y}}},yh,Hi,Wn,wl,Vi,Zo,$4,nU=($4=class extends Z4{constructor(t){super();Ue(this,Vi);Ue(this,yh);Ue(this,Hi);Ue(this,Wn);Ue(this,wl);Me(this,yh,t.client),this.mutationId=t.mutationId,Me(this,Wn,t.mutationCache),Me(this,Hi,[]),this.state=t.state||n5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Z(this,Hi).includes(t)||(Z(this,Hi).push(t),this.clearGcTimeout(),Z(this,Wn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Me(this,Hi,Z(this,Hi).filter(n=>n!==t)),this.scheduleGc(),Z(this,Wn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Z(this,Hi).length||(this.state.status==="pending"?this.scheduleGc():Z(this,Wn).remove(this))}continue(){var t;return((t=Z(this,wl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,u,f,d,h,p,y,v,g,b,w,S,M,A,O,k,C,T;const n=()=>{We(this,Vi,Zo).call(this,{type:"continue"})},r={client:Z(this,yh),meta:this.options.meta,mutationKey:this.options.mutationKey};Me(this,wl,Q4({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,D)=>{We(this,Vi,Zo).call(this,{type:"failed",failureCount:P,error:D})},onPause:()=>{We(this,Vi,Zo).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Z(this,Wn).canRun(this)}));const i=this.state.status==="pending",a=!Z(this,wl).canStart();try{if(i)n();else{We(this,Vi,Zo).call(this,{type:"pending",variables:t,isPaused:a}),Z(this,Wn).config.onMutate&&await Z(this,Wn).config.onMutate(t,this,r);const D=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t,r));D!==this.state.context&&We(this,Vi,Zo).call(this,{type:"pending",context:D,variables:t,isPaused:a})}const P=await Z(this,wl).start();return await((d=(f=Z(this,Wn).config).onSuccess)==null?void 0:d.call(f,P,t,this.state.context,this,r)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,P,t,this.state.context,r)),await((v=(y=Z(this,Wn).config).onSettled)==null?void 0:v.call(y,P,null,this.state.variables,this.state.context,this,r)),await((b=(g=this.options).onSettled)==null?void 0:b.call(g,P,null,t,this.state.context,r)),We(this,Vi,Zo).call(this,{type:"success",data:P}),P}catch(P){try{await((S=(w=Z(this,Wn).config).onError)==null?void 0:S.call(w,P,t,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((A=(M=this.options).onError)==null?void 0:A.call(M,P,t,this.state.context,r))}catch(D){Promise.reject(D)}try{await((k=(O=Z(this,Wn).config).onSettled)==null?void 0:k.call(O,void 0,P,this.state.variables,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((T=(C=this.options).onSettled)==null?void 0:T.call(C,void 0,P,t,this.state.context,r))}catch(D){Promise.reject(D)}throw We(this,Vi,Zo).call(this,{type:"error",error:P}),P}finally{Z(this,Wn).runNext(this)}}},yh=new WeakMap,Hi=new WeakMap,Wn=new WeakMap,wl=new WeakMap,Vi=new WeakSet,Zo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),an.batch(()=>{Z(this,Hi).forEach(r=>{r.onMutationUpdate(t)}),Z(this,Wn).notify({mutation:this,type:"updated",action:t})})},$4);function n5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var La,bi,vh,U4,rU=(U4=class extends Hc{constructor(t={}){super();Ue(this,La);Ue(this,bi);Ue(this,vh);this.config=t,Me(this,La,new Set),Me(this,bi,new Map),Me(this,vh,0)}build(t,n,r){const i=new nU({client:t,mutationCache:this,mutationId:++Om(this,vh)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){Z(this,La).add(t);const n=Mm(t);if(typeof n=="string"){const r=Z(this,bi).get(n);r?r.push(t):Z(this,bi).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Z(this,La).delete(t)){const n=Mm(t);if(typeof n=="string"){const r=Z(this,bi).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&Z(this,bi).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Mm(t);if(typeof n=="string"){const r=Z(this,bi).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Mm(t);if(typeof n=="string"){const i=(r=Z(this,bi).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){an.batch(()=>{Z(this,La).forEach(t=>{this.notify({type:"removed",mutation:t})}),Z(this,La).clear(),Z(this,bi).clear()})}getAll(){return Array.from(Z(this,La))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tk(n,r))}findAll(t={}){return this.getAll().filter(n=>tk(t,n))}notify(t){an.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return an.batch(()=>Promise.all(t.map(n=>n.continue().catch(or))))}},La=new WeakMap,bi=new WeakMap,vh=new WeakMap,U4);function Mm(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ba,ls,Sr,$a,Qa,ly,e2,q4,iU=(q4=class extends Hc{constructor(n,r){super();Ue(this,Qa);Ue(this,Ba);Ue(this,ls);Ue(this,Sr);Ue(this,$a);Me(this,Ba,n),this.setOptions(r),this.bindMethods(),We(this,Qa,ly).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=Z(this,Ba).defaultMutationOptions(n),wy(this.options,r)||Z(this,Ba).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Z(this,Sr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ml(r.mutationKey)!==Ml(this.options.mutationKey)?this.reset():((i=Z(this,Sr))==null?void 0:i.state.status)==="pending"&&Z(this,Sr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Z(this,Sr))==null||n.removeObserver(this)}onMutationUpdate(n){We(this,Qa,ly).call(this),We(this,Qa,e2).call(this,n)}getCurrentResult(){return Z(this,ls)}reset(){var n;(n=Z(this,Sr))==null||n.removeObserver(this),Me(this,Sr,void 0),We(this,Qa,ly).call(this),We(this,Qa,e2).call(this)}mutate(n,r){var i;return Me(this,$a,r),(i=Z(this,Sr))==null||i.removeObserver(this),Me(this,Sr,Z(this,Ba).getMutationCache().build(Z(this,Ba),this.options)),Z(this,Sr).addObserver(this),Z(this,Sr).execute(n)}},Ba=new WeakMap,ls=new WeakMap,Sr=new WeakMap,$a=new WeakMap,Qa=new WeakSet,ly=function(){var r;const n=((r=Z(this,Sr))==null?void 0:r.state)??n5();Me(this,ls,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},e2=function(n){an.batch(()=>{var r,i,a,l,u,f,d,h;if(Z(this,$a)&&this.hasListeners()){const p=Z(this,ls).variables,y=Z(this,ls).context,v={client:Z(this,Ba),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=Z(this,$a)).onSuccess)==null||i.call(r,n.data,p,y,v)}catch(g){Promise.reject(g)}try{(l=(a=Z(this,$a)).onSettled)==null||l.call(a,n.data,null,p,y,v)}catch(g){Promise.reject(g)}}else if((n==null?void 0:n.type)==="error"){try{(f=(u=Z(this,$a)).onError)==null||f.call(u,n.error,p,y,v)}catch(g){Promise.reject(g)}try{(h=(d=Z(this,$a)).onSettled)==null||h.call(d,void 0,n.error,p,y,v)}catch(g){Promise.reject(g)}}}this.listeners.forEach(p=>{p(Z(this,ls))})})},q4),Fi,H4,aU=(H4=class extends Hc{constructor(t={}){super();Ue(this,Fi);this.config=t,Me(this,Fi,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??kS(i,n);let l=this.get(a);return l||(l=new Z$({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){Z(this,Fi).has(t.queryHash)||(Z(this,Fi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Z(this,Fi).get(t.queryHash);n&&(t.destroy(),n===t&&Z(this,Fi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){an.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Z(this,Fi).get(t)}getAll(){return[...Z(this,Fi).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ek(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ek(t,r)):n}notify(t){an.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){an.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){an.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Fi=new WeakMap,H4),Qt,us,cs,vc,gc,fs,bc,xc,V4,Y1e=(V4=class{constructor(e={}){Ue(this,Qt);Ue(this,us);Ue(this,cs);Ue(this,vc);Ue(this,gc);Ue(this,fs);Ue(this,bc);Ue(this,xc);Me(this,Qt,e.queryCache||new aU),Me(this,us,e.mutationCache||new rU),Me(this,cs,e.defaultOptions||{}),Me(this,vc,new Map),Me(this,gc,new Map),Me(this,fs,0)}mount(){Om(this,fs)._++,Z(this,fs)===1&&(Me(this,bc,CS.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,Qt).onFocus())})),Me(this,xc,Sy.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,Qt).onOnline())})))}unmount(){var e,t;Om(this,fs)._--,Z(this,fs)===0&&((e=Z(this,bc))==null||e.call(this),Me(this,bc,void 0),(t=Z(this,xc))==null||t.call(this),Me(this,xc,void 0))}isFetching(e){return Z(this,Qt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Z(this,us).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,Qt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Z(this,Qt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(hs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Z(this,Qt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Z(this,Qt).get(r.queryHash),a=i==null?void 0:i.state.data,l=$$(t,a);if(l!==void 0)return Z(this,Qt).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return an.batch(()=>Z(this,Qt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,Qt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Z(this,Qt);an.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Z(this,Qt);return an.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=an.batch(()=>Z(this,Qt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(or).catch(or)}invalidateQueries(e,t={}){return an.batch(()=>(Z(this,Qt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=an.batch(()=>Z(this,Qt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(or)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(or)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Z(this,Qt).build(this,t);return n.isStaleByTime(hs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(or).catch(or)}fetchInfiniteQuery(e){return e.behavior=_y(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(or).catch(or)}ensureInfiniteQueryData(e){return e.behavior=_y(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Sy.isOnline()?Z(this,us).resumePausedMutations():Promise.resolve()}getQueryCache(){return Z(this,Qt)}getMutationCache(){return Z(this,us)}getDefaultOptions(){return Z(this,cs)}setDefaultOptions(e){Me(this,cs,e)}setQueryDefaults(e,t){Z(this,vc).set(Ml(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Z(this,vc).values()],n={};return t.forEach(r=>{zd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){Z(this,gc).set(Ml(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Z(this,gc).values()],n={};return t.forEach(r=>{zd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Z(this,cs).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=kS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===PS&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Z(this,cs).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Z(this,Qt).clear(),Z(this,us).clear()}},Qt=new WeakMap,us=new WeakMap,cs=new WeakMap,vc=new WeakMap,gc=new WeakMap,fs=new WeakMap,bc=new WeakMap,xc=new WeakMap,V4),r5=E.createContext(void 0),gh=e=>{const t=E.useContext(r5);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},G1e=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ye.jsx(r5.Provider,{value:e,children:t})),i5=E.createContext(!1),oU=()=>E.useContext(i5);i5.Provider;function sU(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var lU=E.createContext(sU()),uU=()=>E.useContext(lU),cU=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?NS(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},fU=e=>{E.useEffect(()=>{e.clearReset()},[e])},dU=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||NS(n,[e.error,r])),hU=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},pU=(e,t)=>e.isLoading&&e.isFetching&&!t,mU=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,lk=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function a5(e,t,n){var y,v,g,b;const r=oU(),i=uU(),a=gh(n),l=a.defaultQueryOptions(e);(v=(y=a.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||v.call(y,l);const u=a.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",hU(l),cU(l,i,u),fU(i);const f=!a.getQueryCache().get(l.queryHash),[d]=E.useState(()=>new t(a,l)),h=d.getOptimisticResult(l),p=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(w=>{const S=p?d.subscribe(an.batchCalls(w)):or;return d.updateResult(),S},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),E.useEffect(()=>{d.setOptions(l)},[l,d]),mU(l,h))throw lk(l,d,i);if(dU({result:h,errorResetBoundary:i,throwOnError:l.throwOnError,query:u,suspense:l.suspense}))throw h.error;if((b=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||b.call(g,l,h),l.experimental_prefetchInRender&&!Ld.isServer()&&pU(h,r)){const w=f?lk(l,d,i):u==null?void 0:u.promise;w==null||w.catch(or).finally(()=>{d.updateResult()})}return l.notifyOnChangeProps?h:d.trackResult(h)}function Q1e(e,t){return a5(e,J4,t)}function Z1e(e,t){const n=gh(t),r=n.getQueryCache();return E.useSyncExternalStore(E.useCallback(i=>r.subscribe(an.batchCalls(i)),[r]),()=>n.isFetching(e),()=>n.isFetching(e))}function X1e(e,t){const n=gh(t);return yU({filters:{...e,status:"pending"}},n).length}function uk(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function yU(e={},t){const n=gh(t).getMutationCache(),r=E.useRef(e),i=E.useRef(null);return i.current===null&&(i.current=uk(n,e)),E.useEffect(()=>{r.current=e}),E.useSyncExternalStore(E.useCallback(a=>n.subscribe(()=>{const l=TS(i.current,uk(n,r.current));i.current!==l&&(i.current=l,an.schedule(a))}),[n]),()=>i.current,()=>i.current)}function W1e(e,t){const n=gh(t),[r]=E.useState(()=>new iU(n,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);const i=E.useSyncExternalStore(E.useCallback(l=>r.subscribe(an.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=E.useCallback((l,u)=>{r.mutate(l,u).catch(or)},[r]);if(i.error&&NS(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function J1e(e,t){return a5(e,tU,t)}var vb={exports:{}},gb={};/**
|
|
50
|
-
* @license React
|
|
51
|
-
* use-sync-external-store-with-selector.production.js
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var ck;function vU(){if(ck)return gb;ck=1;var e=qc();function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,l=e.useMemo,u=e.useDebugValue;return gb.useSyncExternalStoreWithSelector=function(f,d,h,p,y){var v=i(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=l(function(){function w(k){if(!S){if(S=!0,M=k,k=p(k),y!==void 0&&g.hasValue){var C=g.value;if(y(C,k))return A=C}return A=k}if(C=A,n(M,k))return C;var T=p(k);return y!==void 0&&y(C,T)?(M=k,C):(M=k,A=T)}var S=!1,M,A,O=h===void 0?null:h;return[function(){return w(d())},O===null?void 0:function(){return w(O())}]},[d,h,p,y]);var b=r(f,v[0],v[1]);return a(function(){g.hasValue=!0,g.value=b},[b]),u(b),b},gb}var fk;function gU(){return fk||(fk=1,vb.exports=vU()),vb.exports}var bU=gU();function o5(e){e()}function xU(){let e=null,t=null;return{clear(){e=null,t=null},notify(){o5(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var dk={notify(){},get:()=>[]};function wU(e,t){let n,r=dk,i=0,a=!1;function l(b){h();const w=r.subscribe(b);let S=!1;return()=>{S||(S=!0,w(),p())}}function u(){r.notify()}function f(){g.onStateChange&&g.onStateChange()}function d(){return a}function h(){i++,n||(n=e.subscribe(f),r=xU())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=dk)}function y(){a||(a=!0,h())}function v(){a&&(a=!1,p())}const g={addNestedSub:l,notifyNestedSubs:u,handleChangeWrapper:f,isSubscribed:d,trySubscribe:y,tryUnsubscribe:v,getListeners:()=>r};return g}var SU=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_U=SU(),EU=()=>typeof navigator<"u"&&navigator.product==="ReactNative",AU=EU(),OU=()=>_U||AU?E.useLayoutEffect:E.useEffect,MU=OU();function hk(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function ic(e,t){if(hk(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!hk(e[n[i]],t[n[i]]))return!1;return!0}var bb=Symbol.for("react-redux-context"),xb=typeof globalThis<"u"?globalThis:{};function CU(){if(!E.createContext)return{};const e=xb[bb]??(xb[bb]=new Map);let t=e.get(E.createContext);return t||(t=E.createContext(null),e.set(E.createContext,t)),t}var gs=CU();function kU(e){const{children:t,context:n,serverState:r,store:i}=e,a=E.useMemo(()=>{const f=wU(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),l=E.useMemo(()=>i.getState(),[i]);MU(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),l!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,l]);const u=n||gs;return E.createElement(u.Provider,{value:a},t)}var TU=kU;function DS(e=gs){return function(){return E.useContext(e)}}var s5=DS();function l5(e=gs){const t=e===gs?s5:DS(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var u5=l5();function PU(e=gs){const t=e===gs?u5:l5(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var NU=PU(),RU=(e,t)=>e===t;function DU(e=gs){const t=e===gs?s5:DS(e),n=(r,i={})=>{const{equalityFn:a=RU}=typeof i=="function"?{equalityFn:i}:i,l=t(),{store:u,subscription:f,getServerState:d}=l;E.useRef(!0);const h=E.useCallback({[r.name](y){return r(y)}}[r.name],[r]),p=bU.useSyncExternalStoreWithSelector(f.addNestedSub,u.getState,d||u.getState,h,a);return E.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var jU=DU(),IU=o5;/**
|
|
58
|
-
* react-router v7.13.1
|
|
59
|
-
*
|
|
60
|
-
* Copyright (c) Remix Software Inc.
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the MIT license found in the
|
|
63
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
64
|
-
*
|
|
65
|
-
* @license MIT
|
|
66
|
-
*/var pk="popstate";function mk(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function zU(e={}){function t(r,i){var d;let a=(d=i.state)==null?void 0:d.masked,{pathname:l,search:u,hash:f}=a||r.location;return t2("",{pathname:l,search:u,hash:f},i.state&&i.state.usr||null,i.state&&i.state.key||"default",a?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,i){return typeof i=="string"?i:Bd(i)}return BU(t,n,null,e)}function $t(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function si(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function LU(){return Math.random().toString(36).substring(2,10)}function yk(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function t2(e,t,n=null,r,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Vc(t):t,state:n,key:t&&t.key||r||LU(),unstable_mask:i}}function Bd({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Vc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function BU(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,l=i.history,u="POP",f=null,d=h();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function h(){return(l.state||{idx:null}).idx}function p(){u="POP";let w=h(),S=w==null?null:w-d;d=w,f&&f({action:u,location:b.location,delta:S})}function y(w,S){u="PUSH";let M=mk(w)?w:t2(b.location,w,S);d=h()+1;let A=yk(M,d),O=b.createHref(M.unstable_mask||M);try{l.pushState(A,"",O)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(O)}a&&f&&f({action:u,location:b.location,delta:1})}function v(w,S){u="REPLACE";let M=mk(w)?w:t2(b.location,w,S);d=h();let A=yk(M,d),O=b.createHref(M.unstable_mask||M);l.replaceState(A,"",O),a&&f&&f({action:u,location:b.location,delta:0})}function g(w){return $U(w)}let b={get action(){return u},get location(){return e(i,l)},listen(w){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(pk,p),f=w,()=>{i.removeEventListener(pk,p),f=null}},createHref(w){return t(i,w)},createURL:g,encodeLocation(w){let S=g(w);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:y,replace:v,go(w){return l.go(w)}};return b}function $U(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),$t(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Bd(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function c5(e,t,n="/"){return UU(e,t,n,!1)}function UU(e,t,n,r){let i=typeof t=="string"?Vc(t):t,a=Za(i.pathname||"/",n);if(a==null)return null;let l=f5(e);qU(l);let u=null;for(let f=0;u==null&&f<l.length;++f){let d=JU(a);u=XU(l[f],d,r)}return u}function f5(e,t=[],n=[],r="",i=!1){let a=(l,u,f=i,d)=>{let h={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&f)return;$t(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let p=Qi([r,h.relativePath]),y=n.concat(h);l.children&&l.children.length>0&&($t(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),f5(l.children,t,y,p,f)),!(l.path==null&&!l.index)&&t.push({path:p,score:QU(p,l.index),routesMeta:y})};return e.forEach((l,u)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))a(l,u);else for(let d of d5(l.path))a(l,u,!0,d)}),t}function d5(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let l=d5(r.join("/")),u=[];return u.push(...l.map(f=>f===""?a:[a,f].join("/"))),i&&u.push(...l),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function qU(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ZU(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var HU=/^:[\w-]+$/,VU=3,FU=2,KU=1,YU=10,GU=-2,vk=e=>e==="*";function QU(e,t){let n=e.split("/"),r=n.length;return n.some(vk)&&(r+=GU),t&&(r+=FU),n.filter(i=>!vk(i)).reduce((i,a)=>i+(HU.test(a)?VU:a===""?KU:YU),r)}function ZU(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function XU(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",l=[];for(let u=0;u<r.length;++u){let f=r[u],d=u===r.length-1,h=a==="/"?t:t.slice(a.length)||"/",p=Ey({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},h),y=f.route;if(!p&&d&&n&&!r[r.length-1].route.index&&(p=Ey({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},h)),!p)return null;Object.assign(i,p.params),l.push({params:i,pathname:Qi([a,p.pathname]),pathnameBase:rq(Qi([a,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(a=Qi([a,p.pathnameBase]))}return l}function Ey(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=WU(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],l=a.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((d,{paramName:h,isOptional:p},y)=>{if(h==="*"){let g=u[y]||"";l=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const v=u[y];return p&&!v?d[h]=void 0:d[h]=(v||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:l,pattern:e}}function WU(e,t=!1,n=!0){si(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,f,d,h)=>{if(r.push({paramName:u,isOptional:f!=null}),f){let p=h.charAt(d+l.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function JU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return si(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Za(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var eq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function tq(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Vc(e):e,a;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?a=gk(n.substring(1),"/"):a=gk(n,t)):a=t,{pathname:a,search:iq(r),hash:aq(i)}}function gk(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function wb(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function nq(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jS(e){let t=nq(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Vv(e,t,n,r=!1){let i;typeof e=="string"?i=Vc(e):(i={...e},$t(!i.pathname||!i.pathname.includes("?"),wb("?","pathname","search",i)),$t(!i.pathname||!i.pathname.includes("#"),wb("#","pathname","hash",i)),$t(!i.search||!i.search.includes("#"),wb("#","search","hash",i)));let a=e===""||i.pathname==="",l=a?"/":i.pathname,u;if(l==null)u=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),p-=1;i.pathname=y.join("/")}u=p>=0?t[p]:"/"}let f=tq(i,u),d=l&&l!=="/"&&l.endsWith("/"),h=(a||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||h)&&(f.pathname+="/"),f}var Qi=e=>e.join("/").replace(/\/\/+/g,"/"),rq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),iq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,oq=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function sq(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function lq(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var h5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function p5(e,t){let n=e;if(typeof n!="string"||!eq.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(h5)try{let a=new URL(window.location.href),l=n.startsWith("//")?new URL(a.protocol+n):new URL(n),u=Za(l.pathname,t);l.origin===a.origin&&u!=null?n=u+l.search+l.hash:i=!0}catch{si(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var m5=["POST","PUT","PATCH","DELETE"];new Set(m5);var uq=["GET",...m5];new Set(uq);var Fc=E.createContext(null);Fc.displayName="DataRouter";var Fv=E.createContext(null);Fv.displayName="DataRouterState";var cq=E.createContext(!1),y5=E.createContext({isTransitioning:!1});y5.displayName="ViewTransition";var fq=E.createContext(new Map);fq.displayName="Fetchers";var dq=E.createContext(null);dq.displayName="Await";var Fr=E.createContext(null);Fr.displayName="Navigation";var bh=E.createContext(null);bh.displayName="Location";var ci=E.createContext({outlet:null,matches:[],isDataRoute:!1});ci.displayName="Route";var IS=E.createContext(null);IS.displayName="RouteError";var v5="REACT_ROUTER_ERROR",hq="REDIRECT",pq="ROUTE_ERROR_RESPONSE";function mq(e){if(e.startsWith(`${v5}:${hq}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function yq(e){if(e.startsWith(`${v5}:${pq}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new oq(t.status,t.statusText,t.data)}catch{}}function vq(e,{relative:t}={}){$t(Kc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(Fr),{hash:i,pathname:a,search:l}=xh(e,{relative:t}),u=a;return n!=="/"&&(u=a==="/"?n:Qi([n,a])),r.createHref({pathname:u,search:l,hash:i})}function Kc(){return E.useContext(bh)!=null}function aa(){return $t(Kc(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(bh).location}var g5="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function b5(e){E.useContext(Fr).static||E.useLayoutEffect(e)}function zS(){let{isDataRoute:e}=E.useContext(ci);return e?Tq():gq()}function gq(){$t(Kc(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(Fc),{basename:t,navigator:n}=E.useContext(Fr),{matches:r}=E.useContext(ci),{pathname:i}=aa(),a=JSON.stringify(jS(r)),l=E.useRef(!1);return b5(()=>{l.current=!0}),E.useCallback((f,d={})=>{if(si(l.current,g5),!l.current)return;if(typeof f=="number"){n.go(f);return}let h=Vv(f,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Qi([t,h.pathname])),(d.replace?n.replace:n.push)(h,d.state,d)},[t,n,a,i,e])}var x5=E.createContext(null);function ebe(){return E.useContext(x5)}function tbe(e){let t=E.useContext(ci).outlet;return E.useMemo(()=>t&&E.createElement(x5.Provider,{value:e},t),[t,e])}function nbe(){let{matches:e}=E.useContext(ci),t=e[e.length-1];return t?t.params:{}}function xh(e,{relative:t}={}){let{matches:n}=E.useContext(ci),{pathname:r}=aa(),i=JSON.stringify(jS(n));return E.useMemo(()=>Vv(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function bq(e,t){return w5(e,t)}function w5(e,t,n){var w;$t(Kc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(Fr),{matches:i}=E.useContext(ci),a=i[i.length-1],l=a?a.params:{},u=a?a.pathname:"/",f=a?a.pathnameBase:"/",d=a&&a.route;{let S=d&&d.path||"";_5(u,!d||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${S}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
67
|
-
|
|
68
|
-
Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let h=aa(),p;if(t){let S=typeof t=="string"?Vc(t):t;$t(f==="/"||((w=S.pathname)==null?void 0:w.startsWith(f)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${S.pathname}" was given in the \`location\` prop.`),p=S}else p=h;let y=p.pathname||"/",v=y;if(f!=="/"){let S=f.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=c5(e,{pathname:v});si(d||g!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),si(g==null||g[g.length-1].route.element!==void 0||g[g.length-1].route.Component!==void 0||g[g.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=Eq(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},l,S.params),pathname:Qi([f,r.encodeLocation?r.encodeLocation(S.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?f:Qi([f,r.encodeLocation?r.encodeLocation(S.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathnameBase])})),i,n);return t&&b?E.createElement(bh.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},b):b}function xq(){let e=kq(),t=sq(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:a},"ErrorBoundary")," or"," ",E.createElement("code",{style:a},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,l)}var wq=E.createElement(xq,null),S5=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=yq(e.digest);n&&(e=n)}let t=e!==void 0?E.createElement(ci.Provider,{value:this.props.routeContext},E.createElement(IS.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?E.createElement(Sq,{error:e},t):t}};S5.contextType=cq;var Sb=new WeakMap;function Sq({children:e,error:t}){let{basename:n}=E.useContext(Fr);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=mq(t.digest);if(r){let i=Sb.get(t);if(i)throw i;let a=p5(r.location,n);if(h5&&!Sb.get(t))if(a.isExternal||r.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:r.replace}));throw Sb.set(t,l),l}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function _q({routeContext:e,match:t,children:n}){let r=E.useContext(Fc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(ci.Provider,{value:e},n)}function Eq(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r==null?void 0:r.errors;if(a!=null){let h=i.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);$t(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,h+1))}let l=!1,u=-1;if(n&&r){l=r.renderFallback;for(let h=0;h<i.length;h++){let p=i[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=h),p.route.id){let{loaderData:y,errors:v}=r,g=p.route.loader&&!y.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||g){n.isStatic&&(l=!0),u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}}let f=n==null?void 0:n.onError,d=r&&f?(h,p)=>{var y,v;f(h,{location:r.location,params:((v=(y=r.matches)==null?void 0:y[0])==null?void 0:v.params)??{},unstable_pattern:lq(r.matches),errorInfo:p})}:void 0;return i.reduceRight((h,p,y)=>{let v,g=!1,b=null,w=null;r&&(v=a&&p.route.id?a[p.route.id]:void 0,b=p.route.errorElement||wq,l&&(u<0&&y===0?(_5("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,w=null):u===y&&(g=!0,w=p.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,y+1)),M=()=>{let A;return v?A=b:g?A=w:p.route.Component?A=E.createElement(p.route.Component,null):p.route.element?A=p.route.element:A=h,E.createElement(_q,{match:p,routeContext:{outlet:h,matches:S,isDataRoute:r!=null},children:A})};return r&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?E.createElement(S5,{location:r.location,revalidation:r.revalidation,component:b,error:v,children:M(),routeContext:{outlet:null,matches:S,isDataRoute:!0},onError:d}):M()},null)}function LS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Aq(e){let t=E.useContext(Fc);return $t(t,LS(e)),t}function Oq(e){let t=E.useContext(Fv);return $t(t,LS(e)),t}function Mq(e){let t=E.useContext(ci);return $t(t,LS(e)),t}function BS(e){let t=Mq(e),n=t.matches[t.matches.length-1];return $t(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Cq(){return BS("useRouteId")}function kq(){var r;let e=E.useContext(IS),t=Oq("useRouteError"),n=BS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Tq(){let{router:e}=Aq("useNavigate"),t=BS("useNavigate"),n=E.useRef(!1);return b5(()=>{n.current=!0}),E.useCallback(async(i,a={})=>{si(n.current,g5),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var bk={};function _5(e,t,n){!t&&!bk[e]&&(bk[e]=!0,si(!1,n))}E.memo(Pq);function Pq({routes:e,future:t,state:n,isStatic:r,onError:i}){return w5(e,void 0,{state:n,isStatic:r,onError:i})}function rbe({to:e,replace:t,state:n,relative:r}){$t(Kc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=E.useContext(Fr);si(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=E.useContext(ci),{pathname:l}=aa(),u=zS(),f=Vv(e,jS(a),l,r==="path"),d=JSON.stringify(f);return E.useEffect(()=>{u(JSON.parse(d),{replace:t,state:n,relative:r})},[u,d,r,t,n]),null}function Nq(e){$t(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Rq({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1,unstable_useTransitions:l}){$t(!Kc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=E.useMemo(()=>({basename:u,navigator:i,static:a,unstable_useTransitions:l,future:{}}),[u,i,a,l]);typeof n=="string"&&(n=Vc(n));let{pathname:d="/",search:h="",hash:p="",state:y=null,key:v="default",unstable_mask:g}=n,b=E.useMemo(()=>{let w=Za(d,u);return w==null?null:{location:{pathname:w,search:h,hash:p,state:y,key:v,unstable_mask:g},navigationType:r}},[u,d,h,p,y,v,r,g]);return si(b!=null,`<Router basename="${u}"> is not able to match the URL "${d}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:E.createElement(Fr.Provider,{value:f},E.createElement(bh.Provider,{children:t,value:b}))}function ibe({children:e,location:t}){return bq(n2(e),t)}function n2(e,t=[]){let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;let a=[...t,i];if(r.type===E.Fragment){n.push.apply(n,n2(r.props.children,a));return}$t(r.type===Nq,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),$t(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=n2(r.props.children,a)),n.push(l)}),n}var uy="get",cy="application/x-www-form-urlencoded";function Kv(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Dq(e){return Kv(e)&&e.tagName.toLowerCase()==="button"}function jq(e){return Kv(e)&&e.tagName.toLowerCase()==="form"}function Iq(e){return Kv(e)&&e.tagName.toLowerCase()==="input"}function zq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Lq(e,t){return e.button===0&&(!t||t==="_self")&&!zq(e)}function r2(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Bq(e,t){let n=r2(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}var Cm=null;function $q(){if(Cm===null)try{new FormData(document.createElement("form"),0),Cm=!1}catch{Cm=!0}return Cm}var Uq=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _b(e){return e!=null&&!Uq.has(e)?(si(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${cy}"`),null):e}function qq(e,t){let n,r,i,a,l;if(jq(e)){let u=e.getAttribute("action");r=u?Za(u,t):null,n=e.getAttribute("method")||uy,i=_b(e.getAttribute("enctype"))||cy,a=new FormData(e)}else if(Dq(e)||Iq(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||u.getAttribute("action");if(r=f?Za(f,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||uy,i=_b(e.getAttribute("formenctype"))||_b(u.getAttribute("enctype"))||cy,a=new FormData(u,e),!$q()){let{name:d,type:h,value:p}=e;if(h==="image"){let y=d?`${d}.`:"";a.append(`${y}x`,"0"),a.append(`${y}y`,"0")}else d&&a.append(d,p)}}else{if(Kv(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=uy,r=null,i=cy,l=e}return a&&i==="text/plain"&&(l=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $S(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Hq(e,t,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:t&&Za(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function Vq(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Fq(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Kq(e,t,n){let r=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let l=await Vq(a,n);return l.links?l.links():[]}return[]}));return Zq(r.flat(1).filter(Fq).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function xk(e,t,n,r,i,a){let l=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,u=(f,d)=>{var h;return n[d].pathname!==f.pathname||((h=n[d].route.path)==null?void 0:h.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return a==="assets"?t.filter((f,d)=>l(f,d)||u(f,d)):a==="data"?t.filter((f,d)=>{var p;let h=r.routes[f.route.id];if(!h||!h.hasLoader)return!1;if(l(f,d)||u(f,d))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function Yq(e,t,{includeHydrateFallback:n}={}){return Gq(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function Gq(e){return[...new Set(e)]}function Qq(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Zq(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let a=JSON.stringify(Qq(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}function E5(){let e=E.useContext(Fc);return $S(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Xq(){let e=E.useContext(Fv);return $S(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var US=E.createContext(void 0);US.displayName="FrameworkContext";function A5(){let e=E.useContext(US);return $S(e,"You must render this element inside a <HydratedRouter> element"),e}function Wq(e,t){let n=E.useContext(US),[r,i]=E.useState(!1),[a,l]=E.useState(!1),{onFocus:u,onBlur:f,onMouseEnter:d,onMouseLeave:h,onTouchStart:p}=t,y=E.useRef(null);E.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let b=S=>{S.forEach(M=>{l(M.isIntersecting)})},w=new IntersectionObserver(b,{threshold:.5});return y.current&&w.observe(y.current),()=>{w.disconnect()}}},[e]),E.useEffect(()=>{if(r){let b=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(b)}}},[r]);let v=()=>{i(!0)},g=()=>{i(!1),l(!1)};return n?e!=="intent"?[a,y,{}]:[a,y,{onFocus:td(u,v),onBlur:td(f,g),onMouseEnter:td(d,v),onMouseLeave:td(h,g),onTouchStart:td(p,v)}]:[!1,y,{}]}function td(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Jq({page:e,...t}){let{router:n}=E5(),r=E.useMemo(()=>c5(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?E.createElement(tH,{page:e,matches:r,...t}):null}function eH(e){let{manifest:t,routeModules:n}=A5(),[r,i]=E.useState([]);return E.useEffect(()=>{let a=!1;return Kq(e,t,n).then(l=>{a||i(l)}),()=>{a=!0}},[e,t,n]),r}function tH({page:e,matches:t,...n}){let r=aa(),{future:i,manifest:a,routeModules:l}=A5(),{basename:u}=E5(),{loaderData:f,matches:d}=Xq(),h=E.useMemo(()=>xk(e,t,d,a,r,"data"),[e,t,d,a,r]),p=E.useMemo(()=>xk(e,t,d,a,r,"assets"),[e,t,d,a,r]),y=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,w=!1;if(t.forEach(M=>{var O;let A=a.routes[M.route.id];!A||!A.hasLoader||(!h.some(k=>k.route.id===M.route.id)&&M.route.id in f&&((O=l[M.route.id])!=null&&O.shouldRevalidate)||A.hasClientLoader?w=!0:b.add(M.route.id))}),b.size===0)return[];let S=Hq(e,u,i.unstable_trailingSlashAwareDataRequests,"data");return w&&b.size>0&&S.searchParams.set("_routes",t.filter(M=>b.has(M.route.id)).map(M=>M.route.id).join(",")),[S.pathname+S.search]},[u,i.unstable_trailingSlashAwareDataRequests,f,r,a,h,t,e,l]),v=E.useMemo(()=>Yq(p,a),[p,a]),g=eH(p);return E.createElement(E.Fragment,null,y.map(b=>E.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),v.map(b=>E.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),g.map(({key:b,link:w})=>E.createElement("link",{key:b,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function nH(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var rH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{rH&&(window.__reactRouterVersion="7.13.1")}catch{}function abe({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=E.useRef();i.current==null&&(i.current=zU({window:r,v5Compat:!0}));let a=i.current,[l,u]=E.useState({action:a.action,location:a.location}),f=E.useCallback(d=>{n===!1?u(d):E.startTransition(()=>u(d))},[n]);return E.useLayoutEffect(()=>a.listen(f),[a,f]),E.createElement(Rq,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:a,unstable_useTransitions:n})}var O5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,M5=E.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:l,unstable_mask:u,state:f,target:d,to:h,preventScrollReset:p,viewTransition:y,unstable_defaultShouldRevalidate:v,...g},b){let{basename:w,navigator:S,unstable_useTransitions:M}=E.useContext(Fr),A=typeof h=="string"&&O5.test(h),O=p5(h,w);h=O.to;let k=vq(h,{relative:i}),C=aa(),T=null;if(u){let q=Vv(u,[],C.unstable_mask?C.unstable_mask.pathname:"/",!0);w!=="/"&&(q.pathname=q.pathname==="/"?w:Qi([w,q.pathname])),T=S.createHref(q)}let[P,D,z]=Wq(r,g),R=sH(h,{replace:l,unstable_mask:u,state:f,target:d,preventScrollReset:p,relative:i,viewTransition:y,unstable_defaultShouldRevalidate:v,unstable_useTransitions:M});function N(q){t&&t(q),q.defaultPrevented||R(q)}let B=!(O.isExternal||a),I=E.createElement("a",{...g,...z,href:(B?T:void 0)||O.absoluteURL||k,onClick:B?N:t,ref:nH(b,D),target:d,"data-discover":!A&&n==="render"?"true":void 0});return P&&!A?E.createElement(E.Fragment,null,I,E.createElement(Jq,{page:k})):I});M5.displayName="Link";var iH=E.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:l,viewTransition:u,children:f,...d},h){let p=xh(l,{relative:d.relative}),y=aa(),v=E.useContext(Fv),{navigator:g,basename:b}=E.useContext(Fr),w=v!=null&&dH(p)&&u===!0,S=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,M=y.pathname,A=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(M=M.toLowerCase(),A=A?A.toLowerCase():null,S=S.toLowerCase()),A&&b&&(A=Za(A,b)||A);const O=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let k=M===S||!i&&M.startsWith(S)&&M.charAt(O)==="/",C=A!=null&&(A===S||!i&&A.startsWith(S)&&A.charAt(S.length)==="/"),T={isActive:k,isPending:C,isTransitioning:w},P=k?t:void 0,D;typeof r=="function"?D=r(T):D=[r,k?"active":null,C?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let z=typeof a=="function"?a(T):a;return E.createElement(M5,{...d,"aria-current":P,className:D,ref:h,style:z,to:l,viewTransition:u},typeof f=="function"?f(T):f)});iH.displayName="NavLink";var aH=E.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:l=uy,action:u,onSubmit:f,relative:d,preventScrollReset:h,viewTransition:p,unstable_defaultShouldRevalidate:y,...v},g)=>{let{unstable_useTransitions:b}=E.useContext(Fr),w=cH(),S=fH(u,{relative:d}),M=l.toLowerCase()==="get"?"get":"post",A=typeof u=="string"&&O5.test(u),O=k=>{if(f&&f(k),k.defaultPrevented)return;k.preventDefault();let C=k.nativeEvent.submitter,T=(C==null?void 0:C.getAttribute("formmethod"))||l,P=()=>w(C||k.currentTarget,{fetcherKey:t,method:T,navigate:n,replace:i,state:a,relative:d,preventScrollReset:h,viewTransition:p,unstable_defaultShouldRevalidate:y});b&&n!==!1?E.startTransition(()=>P()):P()};return E.createElement("form",{ref:g,method:M,action:S,onSubmit:r?f:O,...v,"data-discover":!A&&e==="render"?"true":void 0})});aH.displayName="Form";function oH(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function C5(e){let t=E.useContext(Fc);return $t(t,oH(e)),t}function sH(e,{target:t,replace:n,unstable_mask:r,state:i,preventScrollReset:a,relative:l,viewTransition:u,unstable_defaultShouldRevalidate:f,unstable_useTransitions:d}={}){let h=zS(),p=aa(),y=xh(e,{relative:l});return E.useCallback(v=>{if(Lq(v,t)){v.preventDefault();let g=n!==void 0?n:Bd(p)===Bd(y),b=()=>h(e,{replace:g,unstable_mask:r,state:i,preventScrollReset:a,relative:l,viewTransition:u,unstable_defaultShouldRevalidate:f});d?E.startTransition(()=>b()):b()}},[p,h,y,n,r,i,t,e,a,l,u,f,d])}function obe(e){si(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(r2(e)),n=E.useRef(!1),r=aa(),i=E.useMemo(()=>Bq(r.search,n.current?null:t.current),[r.search]),a=zS(),l=E.useCallback((u,f)=>{const d=r2(typeof u=="function"?u(new URLSearchParams(i)):u);n.current=!0,a("?"+d,f)},[a,i]);return[i,l]}var lH=0,uH=()=>`__${String(++lH)}__`;function cH(){let{router:e}=C5("useSubmit"),{basename:t}=E.useContext(Fr),n=Cq(),r=e.fetch,i=e.navigate;return E.useCallback(async(a,l={})=>{let{action:u,method:f,encType:d,formData:h,body:p}=qq(a,t);if(l.navigate===!1){let y=l.fetcherKey||uH();await r(y,n,l.action||u,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:h,body:p,formMethod:l.method||f,formEncType:l.encType||d,flushSync:l.flushSync})}else await i(l.action||u,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:h,body:p,formMethod:l.method||f,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,i,t,n])}function fH(e,{relative:t}={}){let{basename:n}=E.useContext(Fr),r=E.useContext(ci);$t(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...xh(e||".",{relative:t})},l=aa();if(e==null){a.search=l.search;let u=new URLSearchParams(a.search),f=u.getAll("index");if(f.some(h=>h==="")){u.delete("index"),f.filter(p=>p).forEach(p=>u.append("index",p));let h=u.toString();a.search=h?`?${h}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:Qi([n,a.pathname])),Bd(a)}function dH(e,{relative:t}={}){let n=E.useContext(y5);$t(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=C5("useViewTransitionState"),i=xh(e,{relative:t});if(!n.isTransitioning)return!1;let a=Za(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Za(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ey(i.pathname,l)!=null||Ey(i.pathname,a)!=null}var Yv=F4();const sbe=ui(Yv);var Ay=function(){return Ay=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ay.apply(this,arguments)};function hH(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function lbe(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Eb(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pH(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var mH=typeof window<"u"?E.useLayoutEffect:E.useEffect,wk=new WeakMap;function ube(e,t){var n=pH(null,function(r){return e.forEach(function(i){return Eb(i,r)})});return mH(function(){var r=wk.get(n);if(r){var i=new Set(r),a=new Set(e),l=n.current;i.forEach(function(u){a.has(u)||Eb(u,null)}),a.forEach(function(u){i.has(u)||Eb(u,l)})}wk.set(n,e)},[e]),n}function yH(e){return e}function vH(e,t){t===void 0&&(t=yH);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var l=t(a,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(a){for(r=!0;n.length;){var l=n;n=[],l.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(a),l=n}var f=function(){var h=l;l=[],h.forEach(a)},d=function(){return Promise.resolve().then(f)};d(),n={push:function(h){l.push(h),d()},filter:function(h){return l=l.filter(h),n}}}};return i}function cbe(e){e===void 0&&(e={});var t=vH(null);return t.options=Ay({async:!0,ssr:!1},e),t}var k5=function(e){var t=e.sideCar,n=hH(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return E.createElement(r,Ay({},n))};k5.isSideCarExport=!0;function fbe(e,t){return e.useMedium(t),k5}var gH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function bH(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gH();return t&&e.setAttribute("nonce",t),e}function xH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var SH=function(){var e=0,t=null;return{add:function(n){e==0&&(t=bH())&&(xH(t,n),wH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_H=function(){var e=SH();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},dbe=function(){var e=_H(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},EH=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Iu=new WeakMap,km=new WeakMap,Tm={},Ab=0,T5=function(e){return e&&(e.host||T5(e.parentNode))},AH=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=T5(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},OH=function(e,t,n,r){var i=AH(t,Array.isArray(e)?e:[e]);Tm[n]||(Tm[n]=new WeakMap);var a=Tm[n],l=[],u=new Set,f=new Set(i),d=function(p){!p||u.has(p)||(u.add(p),d(p.parentNode))};i.forEach(d);var h=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(y){if(u.has(y))h(y);else try{var v=y.getAttribute(r),g=v!==null&&v!=="false",b=(Iu.get(y)||0)+1,w=(a.get(y)||0)+1;Iu.set(y,b),a.set(y,w),l.push(y),b===1&&g&&km.set(y,!0),w===1&&y.setAttribute(n,"true"),g||y.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",y,S)}})};return h(t),u.clear(),Ab++,function(){l.forEach(function(p){var y=Iu.get(p)-1,v=a.get(p)-1;Iu.set(p,y),a.set(p,v),y||(km.has(p)||p.removeAttribute(r),km.delete(p)),v||p.removeAttribute(n)}),Ab--,Ab||(Iu=new WeakMap,Iu=new WeakMap,km=new WeakMap,Tm={})}},hbe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=EH(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),OH(r,i,n,"aria-hidden")):function(){return null}};/**
|
|
69
|
-
* @license lucide-react v0.525.0 - ISC
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the ISC license.
|
|
72
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/const MH=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),CH=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Sk=e=>{const t=CH(e);return t.charAt(0).toUpperCase()+t.slice(1)},P5=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),kH=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
74
|
-
* @license lucide-react v0.525.0 - ISC
|
|
75
|
-
*
|
|
76
|
-
* This source code is licensed under the ISC license.
|
|
77
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/var TH={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"};/**
|
|
79
|
-
* @license lucide-react v0.525.0 - ISC
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the ISC license.
|
|
82
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/const PH=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:l,...u},f)=>E.createElement("svg",{ref:f,...TH,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:P5("lucide",i),...!a&&!kH(u)&&{"aria-hidden":"true"},...u},[...l.map(([d,h])=>E.createElement(d,h)),...Array.isArray(a)?a:[a]]));/**
|
|
84
|
-
* @license lucide-react v0.525.0 - ISC
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the ISC license.
|
|
87
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/const fe=(e,t)=>{const n=E.forwardRef(({className:r,...i},a)=>E.createElement(PH,{ref:a,iconNode:t,className:P5(`lucide-${MH(Sk(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Sk(e),n};/**
|
|
89
|
-
* @license lucide-react v0.525.0 - ISC
|
|
90
|
-
*
|
|
91
|
-
* This source code is licensed under the ISC license.
|
|
92
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/const NH=[["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"}]],pbe=fe("activity",NH);/**
|
|
94
|
-
* @license lucide-react v0.525.0 - ISC
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the ISC license.
|
|
97
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/const RH=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],mbe=fe("archive-restore",RH);/**
|
|
99
|
-
* @license lucide-react v0.525.0 - ISC
|
|
100
|
-
*
|
|
101
|
-
* This source code is licensed under the ISC license.
|
|
102
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/const DH=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],ybe=fe("arrow-down",DH);/**
|
|
104
|
-
* @license lucide-react v0.525.0 - ISC
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the ISC license.
|
|
107
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/const jH=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],vbe=fe("arrow-left",jH);/**
|
|
109
|
-
* @license lucide-react v0.525.0 - ISC
|
|
110
|
-
*
|
|
111
|
-
* This source code is licensed under the ISC license.
|
|
112
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/const IH=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],gbe=fe("arrow-right",IH);/**
|
|
114
|
-
* @license lucide-react v0.525.0 - ISC
|
|
115
|
-
*
|
|
116
|
-
* This source code is licensed under the ISC license.
|
|
117
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/const zH=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],bbe=fe("arrow-up-right",zH);/**
|
|
119
|
-
* @license lucide-react v0.525.0 - ISC
|
|
120
|
-
*
|
|
121
|
-
* This source code is licensed under the ISC license.
|
|
122
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const LH=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],xbe=fe("arrow-up",LH);/**
|
|
124
|
-
* @license lucide-react v0.525.0 - ISC
|
|
125
|
-
*
|
|
126
|
-
* This source code is licensed under the ISC license.
|
|
127
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/const BH=[["path",{d:"M2 16V4a2 2 0 0 1 2-2h11",key:"spzkk5"}],["path",{d:"M22 18H11a2 2 0 1 0 0 4h10.5a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5H11a2 2 0 0 0-2 2v12",key:"1wz07i"}],["path",{d:"M5 14H4a2 2 0 1 0 0 4h1",key:"16gqf9"}]],wbe=fe("book-copy",BH);/**
|
|
129
|
-
* @license lucide-react v0.525.0 - ISC
|
|
130
|
-
*
|
|
131
|
-
* This source code is licensed under the ISC license.
|
|
132
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/const $H=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Sbe=fe("bot",$H);/**
|
|
134
|
-
* @license lucide-react v0.525.0 - ISC
|
|
135
|
-
*
|
|
136
|
-
* This source code is licensed under the ISC license.
|
|
137
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/const UH=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],_be=fe("braces",UH);/**
|
|
139
|
-
* @license lucide-react v0.525.0 - ISC
|
|
140
|
-
*
|
|
141
|
-
* This source code is licensed under the ISC license.
|
|
142
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
-
*/const qH=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],Ebe=fe("brain-circuit",qH);/**
|
|
144
|
-
* @license lucide-react v0.525.0 - ISC
|
|
145
|
-
*
|
|
146
|
-
* This source code is licensed under the ISC license.
|
|
147
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
-
*/const HH=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],Abe=fe("briefcase-business",HH);/**
|
|
149
|
-
* @license lucide-react v0.525.0 - ISC
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the ISC license.
|
|
152
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/const VH=[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]],Obe=fe("bug",VH);/**
|
|
154
|
-
* @license lucide-react v0.525.0 - ISC
|
|
155
|
-
*
|
|
156
|
-
* This source code is licensed under the ISC license.
|
|
157
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
-
*/const FH=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Mbe=fe("calendar-days",FH);/**
|
|
159
|
-
* @license lucide-react v0.525.0 - ISC
|
|
160
|
-
*
|
|
161
|
-
* This source code is licensed under the ISC license.
|
|
162
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/const KH=[["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"}]],Cbe=fe("chart-column",KH);/**
|
|
164
|
-
* @license lucide-react v0.525.0 - ISC
|
|
165
|
-
*
|
|
166
|
-
* This source code is licensed under the ISC license.
|
|
167
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
-
*/const YH=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],kbe=fe("check-check",YH);/**
|
|
169
|
-
* @license lucide-react v0.525.0 - ISC
|
|
170
|
-
*
|
|
171
|
-
* This source code is licensed under the ISC license.
|
|
172
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
-
*/const GH=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Tbe=fe("check",GH);/**
|
|
174
|
-
* @license lucide-react v0.525.0 - ISC
|
|
175
|
-
*
|
|
176
|
-
* This source code is licensed under the ISC license.
|
|
177
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
-
*/const QH=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Pbe=fe("chevron-down",QH);/**
|
|
179
|
-
* @license lucide-react v0.525.0 - ISC
|
|
180
|
-
*
|
|
181
|
-
* This source code is licensed under the ISC license.
|
|
182
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
-
*/const ZH=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Nbe=fe("chevron-right",ZH);/**
|
|
184
|
-
* @license lucide-react v0.525.0 - ISC
|
|
185
|
-
*
|
|
186
|
-
* This source code is licensed under the ISC license.
|
|
187
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
-
*/const XH=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Rbe=fe("chevron-up",XH);/**
|
|
189
|
-
* @license lucide-react v0.525.0 - ISC
|
|
190
|
-
*
|
|
191
|
-
* This source code is licensed under the ISC license.
|
|
192
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
-
*/const WH=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],Dbe=fe("chevrons-left",WH);/**
|
|
194
|
-
* @license lucide-react v0.525.0 - ISC
|
|
195
|
-
*
|
|
196
|
-
* This source code is licensed under the ISC license.
|
|
197
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
-
*/const JH=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],jbe=fe("chevrons-right",JH);/**
|
|
199
|
-
* @license lucide-react v0.525.0 - ISC
|
|
200
|
-
*
|
|
201
|
-
* This source code is licensed under the ISC license.
|
|
202
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
-
*/const eV=[["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"}]],Ibe=fe("circle-alert",eV);/**
|
|
204
|
-
* @license lucide-react v0.525.0 - ISC
|
|
205
|
-
*
|
|
206
|
-
* This source code is licensed under the ISC license.
|
|
207
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
-
*/const tV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],zbe=fe("circle-check",tV);/**
|
|
209
|
-
* @license lucide-react v0.525.0 - ISC
|
|
210
|
-
*
|
|
211
|
-
* This source code is licensed under the ISC license.
|
|
212
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
-
*/const nV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],Lbe=fe("circle-pause",nV);/**
|
|
214
|
-
* @license lucide-react v0.525.0 - ISC
|
|
215
|
-
*
|
|
216
|
-
* This source code is licensed under the ISC license.
|
|
217
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
-
*/const rV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Bbe=fe("circle-question-mark",rV);/**
|
|
219
|
-
* @license lucide-react v0.525.0 - ISC
|
|
220
|
-
*
|
|
221
|
-
* This source code is licensed under the ISC license.
|
|
222
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/const iV=[["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"}]],$be=fe("circle-x",iV);/**
|
|
224
|
-
* @license lucide-react v0.525.0 - ISC
|
|
225
|
-
*
|
|
226
|
-
* This source code is licensed under the ISC license.
|
|
227
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/const aV=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Ube=fe("clipboard-list",aV);/**
|
|
229
|
-
* @license lucide-react v0.525.0 - ISC
|
|
230
|
-
*
|
|
231
|
-
* This source code is licensed under the ISC license.
|
|
232
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
-
*/const oV=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],qbe=fe("clipboard-paste",oV);/**
|
|
234
|
-
* @license lucide-react v0.525.0 - ISC
|
|
235
|
-
*
|
|
236
|
-
* This source code is licensed under the ISC license.
|
|
237
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
-
*/const sV=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Hbe=fe("clock-3",sV);/**
|
|
239
|
-
* @license lucide-react v0.525.0 - ISC
|
|
240
|
-
*
|
|
241
|
-
* This source code is licensed under the ISC license.
|
|
242
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
-
*/const lV=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]],Vbe=fe("cloud-sun",lV);/**
|
|
244
|
-
* @license lucide-react v0.525.0 - ISC
|
|
245
|
-
*
|
|
246
|
-
* This source code is licensed under the ISC license.
|
|
247
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
-
*/const uV=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],Fbe=fe("cloud-upload",uV);/**
|
|
249
|
-
* @license lucide-react v0.525.0 - ISC
|
|
250
|
-
*
|
|
251
|
-
* This source code is licensed under the ISC license.
|
|
252
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/const cV=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],Kbe=fe("cloud",cV);/**
|
|
254
|
-
* @license lucide-react v0.525.0 - ISC
|
|
255
|
-
*
|
|
256
|
-
* This source code is licensed under the ISC license.
|
|
257
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
-
*/const fV=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ybe=fe("compass",fV);/**
|
|
259
|
-
* @license lucide-react v0.525.0 - ISC
|
|
260
|
-
*
|
|
261
|
-
* This source code is licensed under the ISC license.
|
|
262
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
-
*/const dV=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["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"}]],Gbe=fe("copy-plus",dV);/**
|
|
264
|
-
* @license lucide-react v0.525.0 - ISC
|
|
265
|
-
*
|
|
266
|
-
* This source code is licensed under the ISC license.
|
|
267
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
-
*/const hV=[["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"}]],Qbe=fe("copy",hV);/**
|
|
269
|
-
* @license lucide-react v0.525.0 - ISC
|
|
270
|
-
*
|
|
271
|
-
* This source code is licensed under the ISC license.
|
|
272
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
273
|
-
*/const pV=[["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"}]],Zbe=fe("cpu",pV);/**
|
|
274
|
-
* @license lucide-react v0.525.0 - ISC
|
|
275
|
-
*
|
|
276
|
-
* This source code is licensed under the ISC license.
|
|
277
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
278
|
-
*/const mV=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],Xbe=fe("database-zap",mV);/**
|
|
279
|
-
* @license lucide-react v0.525.0 - ISC
|
|
280
|
-
*
|
|
281
|
-
* This source code is licensed under the ISC license.
|
|
282
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
283
|
-
*/const yV=[["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"}]],Wbe=fe("database",yV);/**
|
|
284
|
-
* @license lucide-react v0.525.0 - ISC
|
|
285
|
-
*
|
|
286
|
-
* This source code is licensed under the ISC license.
|
|
287
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
288
|
-
*/const vV=[["path",{d:"M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z",key:"9m4mmf"}],["path",{d:"m2.5 21.5 1.4-1.4",key:"17g3f0"}],["path",{d:"m20.1 3.9 1.4-1.4",key:"1qn309"}],["path",{d:"M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z",key:"1t2c92"}],["path",{d:"m9.6 14.4 4.8-4.8",key:"6umqxw"}]],Jbe=fe("dumbbell",vV);/**
|
|
289
|
-
* @license lucide-react v0.525.0 - ISC
|
|
290
|
-
*
|
|
291
|
-
* This source code is licensed under the ISC license.
|
|
292
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
293
|
-
*/const gV=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],exe=fe("ellipsis",gV);/**
|
|
294
|
-
* @license lucide-react v0.525.0 - ISC
|
|
295
|
-
*
|
|
296
|
-
* This source code is licensed under the ISC license.
|
|
297
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
298
|
-
*/const bV=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],txe=fe("external-link",bV);/**
|
|
299
|
-
* @license lucide-react v0.525.0 - ISC
|
|
300
|
-
*
|
|
301
|
-
* This source code is licensed under the ISC license.
|
|
302
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
303
|
-
*/const xV=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],nxe=fe("eye-off",xV);/**
|
|
304
|
-
* @license lucide-react v0.525.0 - ISC
|
|
305
|
-
*
|
|
306
|
-
* This source code is licensed under the ISC license.
|
|
307
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
308
|
-
*/const wV=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],rxe=fe("eye",wV);/**
|
|
309
|
-
* @license lucide-react v0.525.0 - ISC
|
|
310
|
-
*
|
|
311
|
-
* This source code is licensed under the ISC license.
|
|
312
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
313
|
-
*/const SV=[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]],ixe=fe("file-archive",SV);/**
|
|
314
|
-
* @license lucide-react v0.525.0 - ISC
|
|
315
|
-
*
|
|
316
|
-
* This source code is licensed under the ISC license.
|
|
317
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
318
|
-
*/const _V=[["path",{d:"M21 7h-3a2 2 0 0 1-2-2V2",key:"9rb54x"}],["path",{d:"M21 6v6.5c0 .8-.7 1.5-1.5 1.5h-7c-.8 0-1.5-.7-1.5-1.5v-9c0-.8.7-1.5 1.5-1.5H17Z",key:"1059l0"}],["path",{d:"M7 8v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H15",key:"16874u"}],["path",{d:"M3 12v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H11",key:"k2ox98"}]],axe=fe("file-stack",_V);/**
|
|
319
|
-
* @license lucide-react v0.525.0 - ISC
|
|
320
|
-
*
|
|
321
|
-
* This source code is licensed under the ISC license.
|
|
322
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
323
|
-
*/const EV=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],oxe=fe("file-text",EV);/**
|
|
324
|
-
* @license lucide-react v0.525.0 - ISC
|
|
325
|
-
*
|
|
326
|
-
* This source code is licensed under the ISC license.
|
|
327
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
328
|
-
*/const AV=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],sxe=fe("flame",AV);/**
|
|
329
|
-
* @license lucide-react v0.525.0 - ISC
|
|
330
|
-
*
|
|
331
|
-
* This source code is licensed under the ISC license.
|
|
332
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
333
|
-
*/const OV=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],lxe=fe("folder-open",OV);/**
|
|
334
|
-
* @license lucide-react v0.525.0 - ISC
|
|
335
|
-
*
|
|
336
|
-
* This source code is licensed under the ISC license.
|
|
337
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
338
|
-
*/const MV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],uxe=fe("frown",MV);/**
|
|
339
|
-
* @license lucide-react v0.525.0 - ISC
|
|
340
|
-
*
|
|
341
|
-
* This source code is licensed under the ISC license.
|
|
342
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
343
|
-
*/const CV=[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],cxe=fe("git-branch-plus",CV);/**
|
|
344
|
-
* @license lucide-react v0.525.0 - ISC
|
|
345
|
-
*
|
|
346
|
-
* This source code is licensed under the ISC license.
|
|
347
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
348
|
-
*/const kV=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],fxe=fe("git-branch",kV);/**
|
|
349
|
-
* @license lucide-react v0.525.0 - ISC
|
|
350
|
-
*
|
|
351
|
-
* This source code is licensed under the ISC license.
|
|
352
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
353
|
-
*/const TV=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],dxe=fe("git-merge",TV);/**
|
|
354
|
-
* @license lucide-react v0.525.0 - ISC
|
|
355
|
-
*
|
|
356
|
-
* This source code is licensed under the ISC license.
|
|
357
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
358
|
-
*/const PV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],hxe=fe("globe",PV);/**
|
|
359
|
-
* @license lucide-react v0.525.0 - ISC
|
|
360
|
-
*
|
|
361
|
-
* This source code is licensed under the ISC license.
|
|
362
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
363
|
-
*/const NV=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],pxe=fe("grip-vertical",NV);/**
|
|
364
|
-
* @license lucide-react v0.525.0 - ISC
|
|
365
|
-
*
|
|
366
|
-
* This source code is licensed under the ISC license.
|
|
367
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
368
|
-
*/const RV=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]],mxe=fe("heart-handshake",RV);/**
|
|
369
|
-
* @license lucide-react v0.525.0 - ISC
|
|
370
|
-
*
|
|
371
|
-
* This source code is licensed under the ISC license.
|
|
372
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
373
|
-
*/const DV=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]],yxe=fe("heart-pulse",DV);/**
|
|
374
|
-
* @license lucide-react v0.525.0 - ISC
|
|
375
|
-
*
|
|
376
|
-
* This source code is licensed under the ISC license.
|
|
377
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
378
|
-
*/const jV=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],vxe=fe("heart",jV);/**
|
|
379
|
-
* @license lucide-react v0.525.0 - ISC
|
|
380
|
-
*
|
|
381
|
-
* This source code is licensed under the ISC license.
|
|
382
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
383
|
-
*/const IV=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],gxe=fe("history",IV);/**
|
|
384
|
-
* @license lucide-react v0.525.0 - ISC
|
|
385
|
-
*
|
|
386
|
-
* This source code is licensed under the ISC license.
|
|
387
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
388
|
-
*/const zV=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],bxe=fe("image-plus",zV);/**
|
|
389
|
-
* @license lucide-react v0.525.0 - ISC
|
|
390
|
-
*
|
|
391
|
-
* This source code is licensed under the ISC license.
|
|
392
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
393
|
-
*/const LV=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],xxe=fe("key-round",LV);/**
|
|
394
|
-
* @license lucide-react v0.525.0 - ISC
|
|
395
|
-
*
|
|
396
|
-
* This source code is licensed under the ISC license.
|
|
397
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
398
|
-
*/const BV=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],wxe=fe("layers",BV);/**
|
|
399
|
-
* @license lucide-react v0.525.0 - ISC
|
|
400
|
-
*
|
|
401
|
-
* This source code is licensed under the ISC license.
|
|
402
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
403
|
-
*/const $V=[["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"}]],Sxe=fe("layout-dashboard",$V);/**
|
|
404
|
-
* @license lucide-react v0.525.0 - ISC
|
|
405
|
-
*
|
|
406
|
-
* This source code is licensed under the ISC license.
|
|
407
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
408
|
-
*/const UV=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],_xe=fe("layout-grid",UV);/**
|
|
409
|
-
* @license lucide-react v0.525.0 - ISC
|
|
410
|
-
*
|
|
411
|
-
* This source code is licensed under the ISC license.
|
|
412
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
413
|
-
*/const qV=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],Exe=fe("layout-template",qV);/**
|
|
414
|
-
* @license lucide-react v0.525.0 - ISC
|
|
415
|
-
*
|
|
416
|
-
* This source code is licensed under the ISC license.
|
|
417
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
418
|
-
*/const HV=[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]],Axe=fe("library-big",HV);/**
|
|
419
|
-
* @license lucide-react v0.525.0 - ISC
|
|
420
|
-
*
|
|
421
|
-
* This source code is licensed under the ISC license.
|
|
422
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
423
|
-
*/const VV=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Oxe=fe("link-2",VV);/**
|
|
424
|
-
* @license lucide-react v0.525.0 - ISC
|
|
425
|
-
*
|
|
426
|
-
* This source code is licensed under the ISC license.
|
|
427
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
428
|
-
*/const FV=[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],Mxe=fe("list-checks",FV);/**
|
|
429
|
-
* @license lucide-react v0.525.0 - ISC
|
|
430
|
-
*
|
|
431
|
-
* This source code is licensed under the ISC license.
|
|
432
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
433
|
-
*/const KV=[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],Cxe=fe("list-plus",KV);/**
|
|
434
|
-
* @license lucide-react v0.525.0 - ISC
|
|
435
|
-
*
|
|
436
|
-
* This source code is licensed under the ISC license.
|
|
437
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
438
|
-
*/const YV=[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],kxe=fe("list-todo",YV);/**
|
|
439
|
-
* @license lucide-react v0.525.0 - ISC
|
|
440
|
-
*
|
|
441
|
-
* This source code is licensed under the ISC license.
|
|
442
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
443
|
-
*/const GV=[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]],Txe=fe("list-tree",GV);/**
|
|
444
|
-
* @license lucide-react v0.525.0 - ISC
|
|
445
|
-
*
|
|
446
|
-
* This source code is licensed under the ISC license.
|
|
447
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
448
|
-
*/const QV=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Pxe=fe("loader-circle",QV);/**
|
|
449
|
-
* @license lucide-react v0.525.0 - ISC
|
|
450
|
-
*
|
|
451
|
-
* This source code is licensed under the ISC license.
|
|
452
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
453
|
-
*/const ZV=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Nxe=fe("map-pin",ZV);/**
|
|
454
|
-
* @license lucide-react v0.525.0 - ISC
|
|
455
|
-
*
|
|
456
|
-
* This source code is licensed under the ISC license.
|
|
457
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
458
|
-
*/const XV=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Rxe=fe("map",XV);/**
|
|
459
|
-
* @license lucide-react v0.525.0 - ISC
|
|
460
|
-
*
|
|
461
|
-
* This source code is licensed under the ISC license.
|
|
462
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
463
|
-
*/const WV=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],Dxe=fe("maximize-2",WV);/**
|
|
464
|
-
* @license lucide-react v0.525.0 - ISC
|
|
465
|
-
*
|
|
466
|
-
* This source code is licensed under the ISC license.
|
|
467
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
468
|
-
*/const JV=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],jxe=fe("maximize",JV);/**
|
|
469
|
-
* @license lucide-react v0.525.0 - ISC
|
|
470
|
-
*
|
|
471
|
-
* This source code is licensed under the ISC license.
|
|
472
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
473
|
-
*/const eF=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],Ixe=fe("meh",eF);/**
|
|
474
|
-
* @license lucide-react v0.525.0 - ISC
|
|
475
|
-
*
|
|
476
|
-
* This source code is licensed under the ISC license.
|
|
477
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
478
|
-
*/const tF=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],zxe=fe("message-square",tF);/**
|
|
479
|
-
* @license lucide-react v0.525.0 - ISC
|
|
480
|
-
*
|
|
481
|
-
* This source code is licensed under the ISC license.
|
|
482
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
483
|
-
*/const nF=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Lxe=fe("minimize-2",nF);/**
|
|
484
|
-
* @license lucide-react v0.525.0 - ISC
|
|
485
|
-
*
|
|
486
|
-
* This source code is licensed under the ISC license.
|
|
487
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
488
|
-
*/const rF=[["path",{d:"M5 12h14",key:"1ays0h"}]],Bxe=fe("minus",rF);/**
|
|
489
|
-
* @license lucide-react v0.525.0 - ISC
|
|
490
|
-
*
|
|
491
|
-
* This source code is licensed under the ISC license.
|
|
492
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
493
|
-
*/const iF=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9",key:"4ay0iu"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}]],$xe=fe("moon-star",iF);/**
|
|
494
|
-
* @license lucide-react v0.525.0 - ISC
|
|
495
|
-
*
|
|
496
|
-
* This source code is licensed under the ISC license.
|
|
497
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
498
|
-
*/const aF=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Uxe=fe("moon",aF);/**
|
|
499
|
-
* @license lucide-react v0.525.0 - ISC
|
|
500
|
-
*
|
|
501
|
-
* This source code is licensed under the ISC license.
|
|
502
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
503
|
-
*/const oF=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],qxe=fe("move",oF);/**
|
|
504
|
-
* @license lucide-react v0.525.0 - ISC
|
|
505
|
-
*
|
|
506
|
-
* This source code is licensed under the ISC license.
|
|
507
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
508
|
-
*/const sF=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["path",{d:"m9 9 12-2",key:"1e64n2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Hxe=fe("music-4",sF);/**
|
|
509
|
-
* @license lucide-react v0.525.0 - ISC
|
|
510
|
-
*
|
|
511
|
-
* This source code is licensed under the ISC license.
|
|
512
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
513
|
-
*/const lF=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],Vxe=fe("network",lF);/**
|
|
514
|
-
* @license lucide-react v0.525.0 - ISC
|
|
515
|
-
*
|
|
516
|
-
* This source code is licensed under the ISC license.
|
|
517
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
518
|
-
*/const uF=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],Fxe=fe("notebook-pen",uF);/**
|
|
519
|
-
* @license lucide-react v0.525.0 - ISC
|
|
520
|
-
*
|
|
521
|
-
* This source code is licensed under the ISC license.
|
|
522
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
523
|
-
*/const cF=[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]],Kxe=fe("orbit",cF);/**
|
|
524
|
-
* @license lucide-react v0.525.0 - ISC
|
|
525
|
-
*
|
|
526
|
-
* This source code is licensed under the ISC license.
|
|
527
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
528
|
-
*/const fF=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],Yxe=fe("panel-right-close",fF);/**
|
|
529
|
-
* @license lucide-react v0.525.0 - ISC
|
|
530
|
-
*
|
|
531
|
-
* This source code is licensed under the ISC license.
|
|
532
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
533
|
-
*/const dF=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],Gxe=fe("panel-right-open",dF);/**
|
|
534
|
-
* @license lucide-react v0.525.0 - ISC
|
|
535
|
-
*
|
|
536
|
-
* This source code is licensed under the ISC license.
|
|
537
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
538
|
-
*/const hF=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],Qxe=fe("panel-top",hF);/**
|
|
539
|
-
* @license lucide-react v0.525.0 - ISC
|
|
540
|
-
*
|
|
541
|
-
* This source code is licensed under the ISC license.
|
|
542
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
543
|
-
*/const pF=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],Zxe=fe("party-popper",pF);/**
|
|
544
|
-
* @license lucide-react v0.525.0 - ISC
|
|
545
|
-
*
|
|
546
|
-
* This source code is licensed under the ISC license.
|
|
547
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
548
|
-
*/const mF=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]],Xxe=fe("pencil-line",mF);/**
|
|
549
|
-
* @license lucide-react v0.525.0 - ISC
|
|
550
|
-
*
|
|
551
|
-
* This source code is licensed under the ISC license.
|
|
552
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
553
|
-
*/const yF=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Wxe=fe("pencil",yF);/**
|
|
554
|
-
* @license lucide-react v0.525.0 - ISC
|
|
555
|
-
*
|
|
556
|
-
* This source code is licensed under the ISC license.
|
|
557
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
558
|
-
*/const vF=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Jxe=fe("play",vF);/**
|
|
559
|
-
* @license lucide-react v0.525.0 - ISC
|
|
560
|
-
*
|
|
561
|
-
* This source code is licensed under the ISC license.
|
|
562
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
563
|
-
*/const gF=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],ewe=fe("plug-zap",gF);/**
|
|
564
|
-
* @license lucide-react v0.525.0 - ISC
|
|
565
|
-
*
|
|
566
|
-
* This source code is licensed under the ISC license.
|
|
567
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
568
|
-
*/const bF=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],twe=fe("plus",bF);/**
|
|
569
|
-
* @license lucide-react v0.525.0 - ISC
|
|
570
|
-
*
|
|
571
|
-
* This source code is licensed under the ISC license.
|
|
572
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
573
|
-
*/const xF=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],nwe=fe("qr-code",xF);/**
|
|
574
|
-
* @license lucide-react v0.525.0 - ISC
|
|
575
|
-
*
|
|
576
|
-
* This source code is licensed under the ISC license.
|
|
577
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
578
|
-
*/const wF=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],rwe=fe("quote",wF);/**
|
|
579
|
-
* @license lucide-react v0.525.0 - ISC
|
|
580
|
-
*
|
|
581
|
-
* This source code is licensed under the ISC license.
|
|
582
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
583
|
-
*/const SF=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],iwe=fe("radar",SF);/**
|
|
584
|
-
* @license lucide-react v0.525.0 - ISC
|
|
585
|
-
*
|
|
586
|
-
* This source code is licensed under the ISC license.
|
|
587
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
588
|
-
*/const _F=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],awe=fe("refresh-ccw",_F);/**
|
|
589
|
-
* @license lucide-react v0.525.0 - ISC
|
|
590
|
-
*
|
|
591
|
-
* This source code is licensed under the ISC license.
|
|
592
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
593
|
-
*/const EF=[["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"}]],owe=fe("refresh-cw",EF);/**
|
|
594
|
-
* @license lucide-react v0.525.0 - ISC
|
|
595
|
-
*
|
|
596
|
-
* This source code is licensed under the ISC license.
|
|
597
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
598
|
-
*/const AF=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],swe=fe("repeat",AF);/**
|
|
599
|
-
* @license lucide-react v0.525.0 - ISC
|
|
600
|
-
*
|
|
601
|
-
* This source code is licensed under the ISC license.
|
|
602
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
603
|
-
*/const OF=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],lwe=fe("rocket",OF);/**
|
|
604
|
-
* @license lucide-react v0.525.0 - ISC
|
|
605
|
-
*
|
|
606
|
-
* This source code is licensed under the ISC license.
|
|
607
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
608
|
-
*/const MF=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],uwe=fe("rotate-ccw",MF);/**
|
|
609
|
-
* @license lucide-react v0.525.0 - ISC
|
|
610
|
-
*
|
|
611
|
-
* This source code is licensed under the ISC license.
|
|
612
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
613
|
-
*/const CF=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],cwe=fe("route",CF);/**
|
|
614
|
-
* @license lucide-react v0.525.0 - ISC
|
|
615
|
-
*
|
|
616
|
-
* This source code is licensed under the ISC license.
|
|
617
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
618
|
-
*/const kF=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],fwe=fe("save",kF);/**
|
|
619
|
-
* @license lucide-react v0.525.0 - ISC
|
|
620
|
-
*
|
|
621
|
-
* This source code is licensed under the ISC license.
|
|
622
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
623
|
-
*/const TF=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],dwe=fe("scissors",TF);/**
|
|
624
|
-
* @license lucide-react v0.525.0 - ISC
|
|
625
|
-
*
|
|
626
|
-
* This source code is licensed under the ISC license.
|
|
627
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
628
|
-
*/const PF=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],hwe=fe("scroll-text",PF);/**
|
|
629
|
-
* @license lucide-react v0.525.0 - ISC
|
|
630
|
-
*
|
|
631
|
-
* This source code is licensed under the ISC license.
|
|
632
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
633
|
-
*/const NF=[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],pwe=fe("search-check",NF);/**
|
|
634
|
-
* @license lucide-react v0.525.0 - ISC
|
|
635
|
-
*
|
|
636
|
-
* This source code is licensed under the ISC license.
|
|
637
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
638
|
-
*/const RF=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],mwe=fe("search",RF);/**
|
|
639
|
-
* @license lucide-react v0.525.0 - ISC
|
|
640
|
-
*
|
|
641
|
-
* This source code is licensed under the ISC license.
|
|
642
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
643
|
-
*/const DF=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ywe=fe("send",DF);/**
|
|
644
|
-
* @license lucide-react v0.525.0 - ISC
|
|
645
|
-
*
|
|
646
|
-
* This source code is licensed under the ISC license.
|
|
647
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
648
|
-
*/const jF=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],vwe=fe("settings-2",jF);/**
|
|
649
|
-
* @license lucide-react v0.525.0 - ISC
|
|
650
|
-
*
|
|
651
|
-
* This source code is licensed under the ISC license.
|
|
652
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
653
|
-
*/const IF=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],gwe=fe("settings",IF);/**
|
|
654
|
-
* @license lucide-react v0.525.0 - ISC
|
|
655
|
-
*
|
|
656
|
-
* This source code is licensed under the ISC license.
|
|
657
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
658
|
-
*/const zF=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],bwe=fe("shapes",zF);/**
|
|
659
|
-
* @license lucide-react v0.525.0 - ISC
|
|
660
|
-
*
|
|
661
|
-
* This source code is licensed under the ISC license.
|
|
662
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
663
|
-
*/const LF=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m4.243 5.21 14.39 12.472",key:"1c9a7c"}]],xwe=fe("shield-ban",LF);/**
|
|
664
|
-
* @license lucide-react v0.525.0 - ISC
|
|
665
|
-
*
|
|
666
|
-
* This source code is licensed under the ISC license.
|
|
667
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
668
|
-
*/const BF=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],wwe=fe("shield-off",BF);/**
|
|
669
|
-
* @license lucide-react v0.525.0 - ISC
|
|
670
|
-
*
|
|
671
|
-
* This source code is licensed under the ISC license.
|
|
672
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
673
|
-
*/const $F=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],Swe=fe("sliders-horizontal",$F);/**
|
|
674
|
-
* @license lucide-react v0.525.0 - ISC
|
|
675
|
-
*
|
|
676
|
-
* This source code is licensed under the ISC license.
|
|
677
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
678
|
-
*/const UF=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],_we=fe("smartphone",UF);/**
|
|
679
|
-
* @license lucide-react v0.525.0 - ISC
|
|
680
|
-
*
|
|
681
|
-
* This source code is licensed under the ISC license.
|
|
682
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
683
|
-
*/const qF=[["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"}]],Ewe=fe("smile",qF);/**
|
|
684
|
-
* @license lucide-react v0.525.0 - ISC
|
|
685
|
-
*
|
|
686
|
-
* This source code is licensed under the ISC license.
|
|
687
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
688
|
-
*/const HF=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Awe=fe("sparkles",HF);/**
|
|
689
|
-
* @license lucide-react v0.525.0 - ISC
|
|
690
|
-
*
|
|
691
|
-
* This source code is licensed under the ISC license.
|
|
692
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
693
|
-
*/const VF=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],Owe=fe("split",VF);/**
|
|
694
|
-
* @license lucide-react v0.525.0 - ISC
|
|
695
|
-
*
|
|
696
|
-
* This source code is licensed under the ISC license.
|
|
697
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
698
|
-
*/const FF=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Mwe=fe("square-pen",FF);/**
|
|
699
|
-
* @license lucide-react v0.525.0 - ISC
|
|
700
|
-
*
|
|
701
|
-
* This source code is licensed under the ISC license.
|
|
702
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
703
|
-
*/const KF=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],Cwe=fe("square-terminal",KF);/**
|
|
704
|
-
* @license lucide-react v0.525.0 - ISC
|
|
705
|
-
*
|
|
706
|
-
* This source code is licensed under the ISC license.
|
|
707
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
708
|
-
*/const YF=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],kwe=fe("square",YF);/**
|
|
709
|
-
* @license lucide-react v0.525.0 - ISC
|
|
710
|
-
*
|
|
711
|
-
* This source code is licensed under the ISC license.
|
|
712
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
713
|
-
*/const GF=[["path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z",key:"qazsjp"}],["path",{d:"M15 3v4a2 2 0 0 0 2 2h4",key:"40519r"}]],Twe=fe("sticky-note",GF);/**
|
|
714
|
-
* @license lucide-react v0.525.0 - ISC
|
|
715
|
-
*
|
|
716
|
-
* This source code is licensed under the ISC license.
|
|
717
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
718
|
-
*/const QF=[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],Pwe=fe("table-properties",QF);/**
|
|
719
|
-
* @license lucide-react v0.525.0 - ISC
|
|
720
|
-
*
|
|
721
|
-
* This source code is licensed under the ISC license.
|
|
722
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
723
|
-
*/const ZF=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Nwe=fe("target",ZF);/**
|
|
724
|
-
* @license lucide-react v0.525.0 - ISC
|
|
725
|
-
*
|
|
726
|
-
* This source code is licensed under the ISC license.
|
|
727
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
728
|
-
*/const XF=[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]],Rwe=fe("timer-reset",XF);/**
|
|
729
|
-
* @license lucide-react v0.525.0 - ISC
|
|
730
|
-
*
|
|
731
|
-
* This source code is licensed under the ISC license.
|
|
732
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
733
|
-
*/const WF=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],Dwe=fe("timer",WF);/**
|
|
734
|
-
* @license lucide-react v0.525.0 - ISC
|
|
735
|
-
*
|
|
736
|
-
* This source code is licensed under the ISC license.
|
|
737
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
738
|
-
*/const JF=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],jwe=fe("trash-2",JF);/**
|
|
739
|
-
* @license lucide-react v0.525.0 - ISC
|
|
740
|
-
*
|
|
741
|
-
* This source code is licensed under the ISC license.
|
|
742
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
743
|
-
*/const eK=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Iwe=fe("triangle-alert",eK);/**
|
|
744
|
-
* @license lucide-react v0.525.0 - ISC
|
|
745
|
-
*
|
|
746
|
-
* This source code is licensed under the ISC license.
|
|
747
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
748
|
-
*/const tK=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],zwe=fe("trophy",tK);/**
|
|
749
|
-
* @license lucide-react v0.525.0 - ISC
|
|
750
|
-
*
|
|
751
|
-
* This source code is licensed under the ISC license.
|
|
752
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
753
|
-
*/const nK=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],Lwe=fe("type",nK);/**
|
|
754
|
-
* @license lucide-react v0.525.0 - ISC
|
|
755
|
-
*
|
|
756
|
-
* This source code is licensed under the ISC license.
|
|
757
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
758
|
-
*/const rK=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],Bwe=fe("unfold-vertical",rK);/**
|
|
759
|
-
* @license lucide-react v0.525.0 - ISC
|
|
760
|
-
*
|
|
761
|
-
* This source code is licensed under the ISC license.
|
|
762
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
763
|
-
*/const iK=[["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"}]],$we=fe("upload",iK);/**
|
|
764
|
-
* @license lucide-react v0.525.0 - ISC
|
|
765
|
-
*
|
|
766
|
-
* This source code is licensed under the ISC license.
|
|
767
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
768
|
-
*/const aK=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Uwe=fe("user-round",aK);/**
|
|
769
|
-
* @license lucide-react v0.525.0 - ISC
|
|
770
|
-
*
|
|
771
|
-
* This source code is licensed under the ISC license.
|
|
772
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
773
|
-
*/const oK=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],qwe=fe("users",oK);/**
|
|
774
|
-
* @license lucide-react v0.525.0 - ISC
|
|
775
|
-
*
|
|
776
|
-
* This source code is licensed under the ISC license.
|
|
777
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
778
|
-
*/const sK=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],Hwe=fe("wand-sparkles",sK);/**
|
|
779
|
-
* @license lucide-react v0.525.0 - ISC
|
|
780
|
-
*
|
|
781
|
-
* This source code is licensed under the ISC license.
|
|
782
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
783
|
-
*/const lK=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],Vwe=fe("waves",lK);/**
|
|
784
|
-
* @license lucide-react v0.525.0 - ISC
|
|
785
|
-
*
|
|
786
|
-
* This source code is licensed under the ISC license.
|
|
787
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
788
|
-
*/const uK=[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]],Fwe=fe("waypoints",uK);/**
|
|
789
|
-
* @license lucide-react v0.525.0 - ISC
|
|
790
|
-
*
|
|
791
|
-
* This source code is licensed under the ISC license.
|
|
792
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
793
|
-
*/const cK=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],Kwe=fe("workflow",cK);/**
|
|
794
|
-
* @license lucide-react v0.525.0 - ISC
|
|
795
|
-
*
|
|
796
|
-
* This source code is licensed under the ISC license.
|
|
797
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
798
|
-
*/const fK=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ywe=fe("x",fK);/**
|
|
799
|
-
* @license lucide-react v0.525.0 - ISC
|
|
800
|
-
*
|
|
801
|
-
* This source code is licensed under the ISC license.
|
|
802
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
803
|
-
*/const dK=[["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"}]],Gwe=fe("zap",dK);function N5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=N5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=N5(e))&&(r&&(r+=" "),r+=t);return r}const hK=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},pK=(e,t)=>({classGroupId:e,validator:t}),R5=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Oy="-",_k=[],mK="arbitrary..",yK=e=>{const t=gK(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return vK(l);const u=l.split(Oy),f=u[0]===""&&u.length>1?1:0;return D5(u,f,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const f=r[l],d=n[l];return f?d?hK(d,f):f:d||_k}return n[l]||_k}}},D5=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const d=D5(e,t+1,a);if(d)return d}const l=n.validators;if(l===null)return;const u=t===0?e.join(Oy):e.slice(t).join(Oy),f=l.length;for(let d=0;d<f;d++){const h=l[d];if(h.validator(u))return h.classGroupId}},vK=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?mK+r:void 0})(),gK=e=>{const{theme:t,classGroups:n}=e;return bK(n,t)},bK=(e,t)=>{const n=R5();for(const r in e){const i=e[r];qS(i,n,r,t)}return n},qS=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const l=e[a];xK(l,t,n,r)}},xK=(e,t,n,r)=>{if(typeof e=="string"){wK(e,t,n);return}if(typeof e=="function"){SK(e,t,n,r);return}_K(e,t,n,r)},wK=(e,t,n)=>{const r=e===""?t:j5(t,e);r.classGroupId=n},SK=(e,t,n,r)=>{if(EK(e)){qS(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(pK(n,e))},_K=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let l=0;l<a;l++){const[u,f]=i[l];qS(f,j5(t,u),n,r)}},j5=(e,t)=>{let n=e;const r=t.split(Oy),i=r.length;for(let a=0;a<i;a++){const l=r[a];let u=n.nextPart.get(l);u||(u=R5(),n.nextPart.set(l,u)),n=u}return n},EK=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,AK=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,l)=>{n[a]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let l=n[a];if(l!==void 0)return l;if((l=r[a])!==void 0)return i(a,l),l},set(a,l){a in n?n[a]=l:i(a,l)}}},i2="!",Ek=":",OK=[],Ak=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),MK=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let l=0,u=0,f=0,d;const h=i.length;for(let b=0;b<h;b++){const w=i[b];if(l===0&&u===0){if(w===Ek){a.push(i.slice(f,b)),f=b+1;continue}if(w==="/"){d=b;continue}}w==="["?l++:w==="]"?l--:w==="("?u++:w===")"&&u--}const p=a.length===0?i:i.slice(f);let y=p,v=!1;p.endsWith(i2)?(y=p.slice(0,-1),v=!0):p.startsWith(i2)&&(y=p.slice(1),v=!0);const g=d&&d>f?d-f:void 0;return Ak(a,v,y,g)};if(t){const i=t+Ek,a=r;r=l=>l.startsWith(i)?a(l.slice(i.length)):Ak(OK,!1,l,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},CK=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const l=n[a],u=l[0]==="[",f=t.has(l);u||f?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},kK=e=>({cache:AK(e.cacheSize),parseClassName:MK(e),sortModifiers:CK(e),...yK(e)}),TK=/\s+/,PK=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,l=[],u=e.trim().split(TK);let f="";for(let d=u.length-1;d>=0;d-=1){const h=u[d],{isExternal:p,modifiers:y,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:b}=n(h);if(p){f=h+(f.length>0?" "+f:f);continue}let w=!!b,S=r(w?g.substring(0,b):g);if(!S){if(!w){f=h+(f.length>0?" "+f:f);continue}if(S=r(g),!S){f=h+(f.length>0?" "+f:f);continue}w=!1}const M=y.length===0?"":y.length===1?y[0]:a(y).join(":"),A=v?M+i2:M,O=A+S;if(l.indexOf(O)>-1)continue;l.push(O);const k=i(S,w);for(let C=0;C<k.length;++C){const T=k[C];l.push(A+T)}f=h+(f.length>0?" "+f:f)}return f},NK=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=I5(n))&&(i&&(i+=" "),i+=r);return i},I5=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=I5(e[r]))&&(n&&(n+=" "),n+=t);return n},RK=(e,...t)=>{let n,r,i,a;const l=f=>{const d=t.reduce((h,p)=>p(h),e());return n=kK(d),r=n.cache.get,i=n.cache.set,a=u,u(f)},u=f=>{const d=r(f);if(d)return d;const h=PK(f,n);return i(f,h),h};return a=l,(...f)=>a(NK(...f))},DK=[],bn=e=>{const t=n=>n[e]||DK;return t.isThemeGetter=!0,t},z5=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,L5=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jK=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,IK=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zK=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,LK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,BK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$K=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vo=e=>jK.test(e),Je=e=>!!e&&!Number.isNaN(Number(e)),Fo=e=>!!e&&Number.isInteger(Number(e)),Ob=e=>e.endsWith("%")&&Je(e.slice(0,-1)),Pa=e=>IK.test(e),B5=()=>!0,UK=e=>zK.test(e)&&!LK.test(e),HS=()=>!1,qK=e=>BK.test(e),HK=e=>$K.test(e),VK=e=>!De(e)&&!je(e),FK=e=>Es(e,q5,HS),De=e=>z5.test(e),Qs=e=>Es(e,H5,UK),Ok=e=>Es(e,JK,Je),KK=e=>Es(e,F5,B5),YK=e=>Es(e,V5,HS),Mk=e=>Es(e,$5,HS),GK=e=>Es(e,U5,HK),Pm=e=>Es(e,K5,qK),je=e=>L5.test(e),nd=e=>Fl(e,H5),QK=e=>Fl(e,V5),Ck=e=>Fl(e,$5),ZK=e=>Fl(e,q5),XK=e=>Fl(e,U5),Nm=e=>Fl(e,K5,!0),WK=e=>Fl(e,F5,!0),Es=(e,t,n)=>{const r=z5.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Fl=(e,t,n=!1)=>{const r=L5.exec(e);return r?r[1]?t(r[1]):n:!1},$5=e=>e==="position"||e==="percentage",U5=e=>e==="image"||e==="url",q5=e=>e==="length"||e==="size"||e==="bg-size",H5=e=>e==="length",JK=e=>e==="number",V5=e=>e==="family-name",F5=e=>e==="number"||e==="weight",K5=e=>e==="shadow",eY=()=>{const e=bn("color"),t=bn("font"),n=bn("text"),r=bn("font-weight"),i=bn("tracking"),a=bn("leading"),l=bn("breakpoint"),u=bn("container"),f=bn("spacing"),d=bn("radius"),h=bn("shadow"),p=bn("inset-shadow"),y=bn("text-shadow"),v=bn("drop-shadow"),g=bn("blur"),b=bn("perspective"),w=bn("aspect"),S=bn("ease"),M=bn("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...O(),je,De],C=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],P=()=>[je,De,f],D=()=>[Vo,"full","auto",...P()],z=()=>[Fo,"none","subgrid",je,De],R=()=>["auto",{span:["full",Fo,je,De]},Fo,je,De],N=()=>[Fo,"auto",je,De],B=()=>["auto","min","max","fr",je,De],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...P()],V=()=>[Vo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],F=()=>[Vo,"screen","full","dvw","lvw","svw","min","max","fit",...P()],H=()=>[Vo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],Y=()=>[e,je,De],$=()=>[...O(),Ck,Mk,{position:[je,De]}],K=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",ZK,FK,{size:[je,De]}],te=()=>[Ob,nd,Qs],ce=()=>["","none","full",d,je,De],he=()=>["",Je,nd,Qs],de=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[Je,Ob,Ck,Mk],pe=()=>["","none",g,je,De],ge=()=>["none",Je,je,De],ee=()=>["none",Je,je,De],Ae=()=>[Je,je,De],Se=()=>[Vo,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pa],breakpoint:[Pa],color:[B5],container:[Pa],"drop-shadow":[Pa],ease:["in","out","in-out"],font:[VK],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pa],shadow:[Pa],spacing:["px",Je],text:[Pa],"text-shadow":[Pa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vo,De,je,w]}],container:["container"],columns:[{columns:[Je,De,je,u]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Fo,"auto",je,De]}],basis:[{basis:[Vo,"full","auto",u,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Je,Vo,"auto","initial","none",De]}],grow:[{grow:["",Je,je,De]}],shrink:[{shrink:["",Je,je,De]}],order:[{order:[Fo,"first","last","none",je,De]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...H()]}],"min-block-size":[{"min-block":["auto",...H()]}],"max-block-size":[{"max-block":["none",...H()]}],w:[{w:[u,"screen",...V()]}],"min-w":[{"min-w":[u,"screen","none",...V()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,nd,Qs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,WK,KK]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ob,De]}],"font-family":[{font:[QK,YK,t]}],"font-features":[{"font-features":[De]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,je,De]}],"line-clamp":[{"line-clamp":[Je,"none",je,Ok]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",je,De]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",je,De]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[Je,"from-font","auto",je,Qs]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Je,"auto",je,De]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",je,De]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",je,De]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:K()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fo,je,De],radial:["",je,De],conic:[Fo,je,De]},XK,GK]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-bs":[{"border-bs":Y()}],"border-color-be":[{"border-be":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Je,je,De]}],"outline-w":[{outline:["",Je,nd,Qs]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",h,Nm,Pm]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",p,Nm,Pm]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Je,Qs]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",y,Nm,Pm]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Je,je,De]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Je]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[je,De]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[Je]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:K()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",je,De]}],filter:[{filter:["","none",je,De]}],blur:[{blur:pe()}],brightness:[{brightness:[Je,je,De]}],contrast:[{contrast:[Je,je,De]}],"drop-shadow":[{"drop-shadow":["","none",v,Nm,Pm]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Je,je,De]}],"hue-rotate":[{"hue-rotate":[Je,je,De]}],invert:[{invert:["",Je,je,De]}],saturate:[{saturate:[Je,je,De]}],sepia:[{sepia:["",Je,je,De]}],"backdrop-filter":[{"backdrop-filter":["","none",je,De]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[Je,je,De]}],"backdrop-contrast":[{"backdrop-contrast":[Je,je,De]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Je,je,De]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Je,je,De]}],"backdrop-invert":[{"backdrop-invert":["",Je,je,De]}],"backdrop-opacity":[{"backdrop-opacity":[Je,je,De]}],"backdrop-saturate":[{"backdrop-saturate":[Je,je,De]}],"backdrop-sepia":[{"backdrop-sepia":["",Je,je,De]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",je,De]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Je,"initial",je,De]}],ease:[{ease:["linear","initial",S,je,De]}],delay:[{delay:[Je,je,De]}],animate:[{animate:["none",M,je,De]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,je,De]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[je,De,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",je,De]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",je,De]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Je,nd,Qs,Ok]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Qwe=RK(eY),kk=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Tk=wt,Zwe=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Tk(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,l=Object.keys(i).map(d=>{const h=n==null?void 0:n[d],p=a==null?void 0:a[d];if(h===null)return null;const y=kk(h)||kk(p);return i[d][y]}),u=n&&Object.entries(n).reduce((d,h)=>{let[p,y]=h;return y===void 0||(d[p]=y),d},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,h)=>{let{class:p,className:y,...v}=h;return Object.entries(v).every(g=>{let[b,w]=g;return Array.isArray(w)?w.includes({...a,...u}[b]):{...a,...u}[b]===w})?[...d,p,y]:d},[]);return Tk(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)};var mt;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const l of i)a[l]=l;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(u=>typeof i[i[u]]!="number"),l={};for(const u of a)l[u]=i[u];return e.objectValues(l)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const l in i)Object.prototype.hasOwnProperty.call(i,l)&&a.push(l);return a},e.find=(i,a)=>{for(const l of i)if(a(l))return l},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(l=>typeof l=="string"?`'${l}'`:l).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(mt||(mt={}));var Pk;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Pk||(Pk={}));const ze=mt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Xo=e=>{switch(typeof e){case"undefined":return ze.undefined;case"string":return ze.string;case"number":return Number.isNaN(e)?ze.nan:ze.number;case"boolean":return ze.boolean;case"function":return ze.function;case"bigint":return ze.bigint;case"symbol":return ze.symbol;case"object":return Array.isArray(e)?ze.array:e===null?ze.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ze.promise:typeof Map<"u"&&e instanceof Map?ze.map:typeof Set<"u"&&e instanceof Set?ze.set:typeof Date<"u"&&e instanceof Date?ze.date:ze.object;default:return ze.unknown}},Ee=mt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Xa extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const l of a.issues)if(l.code==="invalid_union")l.unionErrors.map(i);else if(l.code==="invalid_return_type")i(l.returnTypeError);else if(l.code==="invalid_arguments")i(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let u=r,f=0;for(;f<l.path.length;){const d=l.path[f];f===l.path.length-1?(u[d]=u[d]||{_errors:[]},u[d]._errors.push(n(l))):u[d]=u[d]||{_errors:[]},u=u[d],f++}}};return i(this),r}static assert(t){if(!(t instanceof Xa))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,mt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Xa.create=e=>new Xa(e);const a2=(e,t)=>{let n;switch(e.code){case Ee.invalid_type:e.received===ze.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Ee.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,mt.jsonStringifyReplacer)}`;break;case Ee.unrecognized_keys:n=`Unrecognized key(s) in object: ${mt.joinValues(e.keys,", ")}`;break;case Ee.invalid_union:n="Invalid input";break;case Ee.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${mt.joinValues(e.options)}`;break;case Ee.invalid_enum_value:n=`Invalid enum value. Expected ${mt.joinValues(e.options)}, received '${e.received}'`;break;case Ee.invalid_arguments:n="Invalid function arguments";break;case Ee.invalid_return_type:n="Invalid function return type";break;case Ee.invalid_date:n="Invalid date";break;case Ee.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:mt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Ee.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Ee.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Ee.custom:n="Invalid input";break;case Ee.invalid_intersection_types:n="Intersection results could not be merged";break;case Ee.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ee.not_finite:n="Number must be finite";break;default:n=t.defaultError,mt.assertNever(e)}return{message:n}};let tY=a2;function nY(){return tY}const rY=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],l={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let u="";const f=r.filter(d=>!!d).slice().reverse();for(const d of f)u=d(l,{data:t,defaultError:u}).message;return{...i,path:a,message:u}};function Ce(e,t){const n=nY(),r=rY({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===a2?void 0:a2].filter(i=>!!i)});e.common.issues.push(r)}class Br{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return Ge;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const a=await i.key,l=await i.value;r.push({key:a,value:l})}return Br.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:l}=i;if(a.status==="aborted"||l.status==="aborted")return Ge;a.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof l.value<"u"||i.alwaysSet)&&(r[a.value]=l.value)}return{status:t.value,value:r}}}const Ge=Object.freeze({status:"aborted"}),wd=e=>({status:"dirty",value:e}),fi=e=>({status:"valid",value:e}),Nk=e=>e.status==="aborted",Rk=e=>e.status==="dirty",wc=e=>e.status==="valid",My=e=>typeof Promise<"u"&&e instanceof Promise;var Be;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Be||(Be={}));class bs{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Dk=(e,t)=>{if(wc(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Xa(e.common.issues);return this._error=n,this._error}}};function tt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(l,u)=>{const{message:f}=e;return l.code==="invalid_enum_value"?{message:f??u.defaultError}:typeof u.data>"u"?{message:f??r??u.defaultError}:l.code!=="invalid_type"?{message:u.defaultError}:{message:f??n??u.defaultError}},description:i}}class dt{get description(){return this._def.description}_getType(t){return Xo(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Xo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Br,ctx:{common:t.parent.common,data:t.data,parsedType:Xo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(My(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xo(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Dk(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xo(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return wc(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(i=(r=a==null?void 0:a.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>wc(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Xo(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(My(i)?i:Promise.resolve(i));return Dk(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const l=t(i),u=()=>a.addIssue({code:Ee.custom,...r(i)});return typeof Promise<"u"&&l instanceof Promise?l.then(f=>f?!0:(u(),!1)):l?!0:(u(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Ec({schema:this,typeName:Qe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ps.create(this,this._def)}nullable(){return Ac.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Zi.create(this)}promise(){return Py.create(this,this._def)}or(t){return ky.create([this,t],this._def)}and(t){return Ty.create(this,t,this._def)}transform(t){return new Ec({...tt(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new l2({...tt(this._def),innerType:this,defaultValue:n,typeName:Qe.ZodDefault})}brand(){return new OY({typeName:Qe.ZodBranded,type:this,...tt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new u2({...tt(this._def),innerType:this,catchValue:n,typeName:Qe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return VS.create(this,t)}readonly(){return c2.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const iY=/^c[^\s-]{8,}$/i,aY=/^[0-9a-z]+$/,oY=/^[0-9A-HJKMNP-TV-Z]{26}$/i,sY=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,lY=/^[a-z0-9_-]{21}$/i,uY=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,cY=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,fY=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,dY="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Mb;const hY=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,pY=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,mY=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,yY=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vY=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gY=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Y5="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",bY=new RegExp(`^${Y5}$`);function G5(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function xY(e){return new RegExp(`^${G5(e)}$`)}function wY(e){let t=`${Y5}T${G5(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function SY(e,t){return!!((t==="v4"||!t)&&hY.test(e)||(t==="v6"||!t)&&mY.test(e))}function _Y(e,t){if(!uY.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function EY(e,t){return!!((t==="v4"||!t)&&pY.test(e)||(t==="v6"||!t)&&yY.test(e))}class qa extends dt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ze.string){const a=this._getOrReturnCtx(t);return Ce(a,{code:Ee.invalid_type,expected:ze.string,received:a.parsedType}),Ge}const r=new Br;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),Ce(i,{code:Ee.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),Ce(i,{code:Ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const l=t.data.length>a.value,u=t.data.length<a.value;(l||u)&&(i=this._getOrReturnCtx(t,i),l?Ce(i,{code:Ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):u&&Ce(i,{code:Ee.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")fY.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"email",code:Ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")Mb||(Mb=new RegExp(dY,"u")),Mb.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"emoji",code:Ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")sY.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"uuid",code:Ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")lY.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"nanoid",code:Ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")iY.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"cuid",code:Ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")aY.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"cuid2",code:Ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")oY.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"ulid",code:Ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),Ce(i,{validation:"url",code:Ee.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"regex",code:Ee.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),Ce(i,{code:Ee.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),Ce(i,{code:Ee.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),Ce(i,{code:Ee.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?wY(a).test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{code:Ee.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?bY.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{code:Ee.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?xY(a).test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{code:Ee.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?cY.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"duration",code:Ee.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?SY(t.data,a.version)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"ip",code:Ee.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?_Y(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"jwt",code:Ee.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?EY(t.data,a.version)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"cidr",code:Ee.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?vY.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"base64",code:Ee.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?gY.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"base64url",code:Ee.invalid_string,message:a.message}),r.dirty()):mt.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:Ee.invalid_string,...Be.errToObj(r)})}_addCheck(t){return new qa({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Be.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Be.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Be.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Be.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Be.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Be.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Be.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Be.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Be.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Be.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Be.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Be.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Be.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Be.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Be.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Be.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Be.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Be.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Be.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Be.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Be.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Be.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Be.errToObj(n)})}nonempty(t){return this.min(1,Be.errToObj(t))}trim(){return new qa({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new qa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new qa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}qa.create=e=>new qa({checks:[],typeName:Qe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...tt(e)});function AY(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),l=Number.parseInt(t.toFixed(i).replace(".",""));return a%l/10**i}class Cl extends dt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ze.number){const a=this._getOrReturnCtx(t);return Ce(a,{code:Ee.invalid_type,expected:ze.number,received:a.parsedType}),Ge}let r;const i=new Br;for(const a of this._def.checks)a.kind==="int"?mt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:Ee.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:Ee.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:Ee.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?AY(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:Ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:Ee.not_finite,message:a.message}),i.dirty()):mt.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Be.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Be.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Be.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Be.toString(n))}setLimit(t,n,r,i){return new Cl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Be.toString(i)}]})}_addCheck(t){return new Cl({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Be.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Be.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Be.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Be.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Be.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Be.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Be.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Be.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Be.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&mt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Cl.create=e=>new Cl({checks:[],typeName:Qe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...tt(e)});class kl extends dt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ze.bigint)return this._getInvalidInput(t);let r;const i=new Br;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:Ee.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:Ee.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:Ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):mt.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:Ee.invalid_type,expected:ze.bigint,received:n.parsedType}),Ge}gte(t,n){return this.setLimit("min",t,!0,Be.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Be.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Be.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Be.toString(n))}setLimit(t,n,r,i){return new kl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Be.toString(i)}]})}_addCheck(t){return new kl({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Be.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Be.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Be.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Be.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Be.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}kl.create=e=>new kl({checks:[],typeName:Qe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...tt(e)});class Cy extends dt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ze.boolean){const r=this._getOrReturnCtx(t);return Ce(r,{code:Ee.invalid_type,expected:ze.boolean,received:r.parsedType}),Ge}return fi(t.data)}}Cy.create=e=>new Cy({typeName:Qe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...tt(e)});class Sc extends dt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ze.date){const a=this._getOrReturnCtx(t);return Ce(a,{code:Ee.invalid_type,expected:ze.date,received:a.parsedType}),Ge}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return Ce(a,{code:Ee.invalid_date}),Ge}const r=new Br;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),Ce(i,{code:Ee.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),Ce(i,{code:Ee.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):mt.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Sc({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Be.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Be.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Sc.create=e=>new Sc({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Qe.ZodDate,...tt(e)});class jk extends dt{_parse(t){if(this._getType(t)!==ze.symbol){const r=this._getOrReturnCtx(t);return Ce(r,{code:Ee.invalid_type,expected:ze.symbol,received:r.parsedType}),Ge}return fi(t.data)}}jk.create=e=>new jk({typeName:Qe.ZodSymbol,...tt(e)});class Ik extends dt{_parse(t){if(this._getType(t)!==ze.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:Ee.invalid_type,expected:ze.undefined,received:r.parsedType}),Ge}return fi(t.data)}}Ik.create=e=>new Ik({typeName:Qe.ZodUndefined,...tt(e)});class zk extends dt{_parse(t){if(this._getType(t)!==ze.null){const r=this._getOrReturnCtx(t);return Ce(r,{code:Ee.invalid_type,expected:ze.null,received:r.parsedType}),Ge}return fi(t.data)}}zk.create=e=>new zk({typeName:Qe.ZodNull,...tt(e)});class Lk extends dt{constructor(){super(...arguments),this._any=!0}_parse(t){return fi(t.data)}}Lk.create=e=>new Lk({typeName:Qe.ZodAny,...tt(e)});class Bk extends dt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return fi(t.data)}}Bk.create=e=>new Bk({typeName:Qe.ZodUnknown,...tt(e)});class xs extends dt{_parse(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:Ee.invalid_type,expected:ze.never,received:n.parsedType}),Ge}}xs.create=e=>new xs({typeName:Qe.ZodNever,...tt(e)});class $k extends dt{_parse(t){if(this._getType(t)!==ze.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:Ee.invalid_type,expected:ze.void,received:r.parsedType}),Ge}return fi(t.data)}}$k.create=e=>new $k({typeName:Qe.ZodVoid,...tt(e)});class Zi extends dt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==ze.array)return Ce(n,{code:Ee.invalid_type,expected:ze.array,received:n.parsedType}),Ge;if(i.exactLength!==null){const l=n.data.length>i.exactLength.value,u=n.data.length<i.exactLength.value;(l||u)&&(Ce(n,{code:l?Ee.too_big:Ee.too_small,minimum:u?i.exactLength.value:void 0,maximum:l?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(Ce(n,{code:Ee.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(Ce(n,{code:Ee.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,u)=>i.type._parseAsync(new bs(n,l,n.path,u)))).then(l=>Br.mergeArray(r,l));const a=[...n.data].map((l,u)=>i.type._parseSync(new bs(n,l,n.path,u)));return Br.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new Zi({...this._def,minLength:{value:t,message:Be.toString(n)}})}max(t,n){return new Zi({...this._def,maxLength:{value:t,message:Be.toString(n)}})}length(t,n){return new Zi({...this._def,exactLength:{value:t,message:Be.toString(n)}})}nonempty(t){return this.min(1,t)}}Zi.create=(e,t)=>new Zi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...tt(t)});function Xu(e){if(e instanceof hn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=ps.create(Xu(r))}return new hn({...e._def,shape:()=>t})}else return e instanceof Zi?new Zi({...e._def,type:Xu(e.element)}):e instanceof ps?ps.create(Xu(e.unwrap())):e instanceof Ac?Ac.create(Xu(e.unwrap())):e instanceof Tl?Tl.create(e.items.map(t=>Xu(t))):e}class hn extends dt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=mt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ze.object){const d=this._getOrReturnCtx(t);return Ce(d,{code:Ee.invalid_type,expected:ze.object,received:d.parsedType}),Ge}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:l}=this._getCached(),u=[];if(!(this._def.catchall instanceof xs&&this._def.unknownKeys==="strip"))for(const d in i.data)l.includes(d)||u.push(d);const f=[];for(const d of l){const h=a[d],p=i.data[d];f.push({key:{status:"valid",value:d},value:h._parse(new bs(i,p,i.path,d)),alwaysSet:d in i.data})}if(this._def.catchall instanceof xs){const d=this._def.unknownKeys;if(d==="passthrough")for(const h of u)f.push({key:{status:"valid",value:h},value:{status:"valid",value:i.data[h]}});else if(d==="strict")u.length>0&&(Ce(i,{code:Ee.unrecognized_keys,keys:u}),r.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const h of u){const p=i.data[h];f.push({key:{status:"valid",value:h},value:d._parse(new bs(i,p,i.path,h)),alwaysSet:h in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const d=[];for(const h of f){const p=await h.key,y=await h.value;d.push({key:p,value:y,alwaysSet:h.alwaysSet})}return d}).then(d=>Br.mergeObjectSync(r,d)):Br.mergeObjectSync(r,f)}get shape(){return this._def.shape()}strict(t){return Be.errToObj,new hn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,l;const i=((l=(a=this._def).errorMap)==null?void 0:l.call(a,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:Be.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new hn({...this._def,unknownKeys:"strip"})}passthrough(){return new hn({...this._def,unknownKeys:"passthrough"})}extend(t){return new hn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new hn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Qe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new hn({...this._def,catchall:t})}pick(t){const n={};for(const r of mt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new hn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of mt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new hn({...this._def,shape:()=>n})}deepPartial(){return Xu(this)}partial(t){const n={};for(const r of mt.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new hn({...this._def,shape:()=>n})}required(t){const n={};for(const r of mt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof ps;)a=a._def.innerType;n[r]=a}return new hn({...this._def,shape:()=>n})}keyof(){return Q5(mt.objectKeys(this.shape))}}hn.create=(e,t)=>new hn({shape:()=>e,unknownKeys:"strip",catchall:xs.create(),typeName:Qe.ZodObject,...tt(t)});hn.strictCreate=(e,t)=>new hn({shape:()=>e,unknownKeys:"strict",catchall:xs.create(),typeName:Qe.ZodObject,...tt(t)});hn.lazycreate=(e,t)=>new hn({shape:e,unknownKeys:"strip",catchall:xs.create(),typeName:Qe.ZodObject,...tt(t)});class ky extends dt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const u of a)if(u.result.status==="valid")return u.result;for(const u of a)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const l=a.map(u=>new Xa(u.ctx.common.issues));return Ce(n,{code:Ee.invalid_union,unionErrors:l}),Ge}if(n.common.async)return Promise.all(r.map(async a=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(i);{let a;const l=[];for(const f of r){const d={...n,common:{...n.common,issues:[]},parent:null},h=f._parseSync({data:n.data,path:n.path,parent:d});if(h.status==="valid")return h;h.status==="dirty"&&!a&&(a={result:h,ctx:d}),d.common.issues.length&&l.push(d.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const u=l.map(f=>new Xa(f));return Ce(n,{code:Ee.invalid_union,unionErrors:u}),Ge}}get options(){return this._def.options}}ky.create=(e,t)=>new ky({options:e,typeName:Qe.ZodUnion,...tt(t)});function o2(e,t){const n=Xo(e),r=Xo(t);if(e===t)return{valid:!0,data:e};if(n===ze.object&&r===ze.object){const i=mt.objectKeys(t),a=mt.objectKeys(e).filter(u=>i.indexOf(u)!==-1),l={...e,...t};for(const u of a){const f=o2(e[u],t[u]);if(!f.valid)return{valid:!1};l[u]=f.data}return{valid:!0,data:l}}else if(n===ze.array&&r===ze.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const l=e[a],u=t[a],f=o2(l,u);if(!f.valid)return{valid:!1};i.push(f.data)}return{valid:!0,data:i}}else return n===ze.date&&r===ze.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ty extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,l)=>{if(Nk(a)||Nk(l))return Ge;const u=o2(a.value,l.value);return u.valid?((Rk(a)||Rk(l))&&n.dirty(),{status:n.value,value:u.data}):(Ce(r,{code:Ee.invalid_intersection_types}),Ge)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,l])=>i(a,l)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ty.create=(e,t,n)=>new Ty({left:e,right:t,typeName:Qe.ZodIntersection,...tt(n)});class Tl extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ze.array)return Ce(r,{code:Ee.invalid_type,expected:ze.array,received:r.parsedType}),Ge;if(r.data.length<this._def.items.length)return Ce(r,{code:Ee.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ge;!this._def.rest&&r.data.length>this._def.items.length&&(Ce(r,{code:Ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((l,u)=>{const f=this._def.items[u]||this._def.rest;return f?f._parse(new bs(r,l,r.path,u)):null}).filter(l=>!!l);return r.common.async?Promise.all(a).then(l=>Br.mergeArray(n,l)):Br.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Tl({...this._def,rest:t})}}Tl.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Tl({items:e,typeName:Qe.ZodTuple,rest:null,...tt(t)})};class Uk extends dt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ze.map)return Ce(r,{code:Ee.invalid_type,expected:ze.map,received:r.parsedType}),Ge;const i=this._def.keyType,a=this._def.valueType,l=[...r.data.entries()].map(([u,f],d)=>({key:i._parse(new bs(r,u,r.path,[d,"key"])),value:a._parse(new bs(r,f,r.path,[d,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const f of l){const d=await f.key,h=await f.value;if(d.status==="aborted"||h.status==="aborted")return Ge;(d.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(d.value,h.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const f of l){const d=f.key,h=f.value;if(d.status==="aborted"||h.status==="aborted")return Ge;(d.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(d.value,h.value)}return{status:n.value,value:u}}}}Uk.create=(e,t,n)=>new Uk({valueType:t,keyType:e,typeName:Qe.ZodMap,...tt(n)});class $d extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ze.set)return Ce(r,{code:Ee.invalid_type,expected:ze.set,received:r.parsedType}),Ge;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(Ce(r,{code:Ee.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(Ce(r,{code:Ee.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function l(f){const d=new Set;for(const h of f){if(h.status==="aborted")return Ge;h.status==="dirty"&&n.dirty(),d.add(h.value)}return{status:n.value,value:d}}const u=[...r.data.values()].map((f,d)=>a._parse(new bs(r,f,r.path,d)));return r.common.async?Promise.all(u).then(f=>l(f)):l(u)}min(t,n){return new $d({...this._def,minSize:{value:t,message:Be.toString(n)}})}max(t,n){return new $d({...this._def,maxSize:{value:t,message:Be.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}$d.create=(e,t)=>new $d({valueType:e,minSize:null,maxSize:null,typeName:Qe.ZodSet,...tt(t)});class qk extends dt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}qk.create=(e,t)=>new qk({getter:e,typeName:Qe.ZodLazy,...tt(t)});class s2 extends dt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Ce(n,{received:n.data,code:Ee.invalid_literal,expected:this._def.value}),Ge}return{status:"valid",value:t.data}}get value(){return this._def.value}}s2.create=(e,t)=>new s2({value:e,typeName:Qe.ZodLiteral,...tt(t)});function Q5(e,t){return new _c({values:e,typeName:Qe.ZodEnum,...tt(t)})}class _c extends dt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{expected:mt.joinValues(r),received:n.parsedType,code:Ee.invalid_type}),Ge}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{received:n.data,code:Ee.invalid_enum_value,options:r}),Ge}return fi(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return _c.create(t,{...this._def,...n})}exclude(t,n=this._def){return _c.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}_c.create=Q5;class Hk extends dt{_parse(t){const n=mt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ze.string&&r.parsedType!==ze.number){const i=mt.objectValues(n);return Ce(r,{expected:mt.joinValues(i),received:r.parsedType,code:Ee.invalid_type}),Ge}if(this._cache||(this._cache=new Set(mt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=mt.objectValues(n);return Ce(r,{received:r.data,code:Ee.invalid_enum_value,options:i}),Ge}return fi(t.data)}get enum(){return this._def.values}}Hk.create=(e,t)=>new Hk({values:e,typeName:Qe.ZodNativeEnum,...tt(t)});class Py extends dt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ze.promise&&n.common.async===!1)return Ce(n,{code:Ee.invalid_type,expected:ze.promise,received:n.parsedType}),Ge;const r=n.parsedType===ze.promise?n.data:Promise.resolve(n.data);return fi(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Py.create=(e,t)=>new Py({type:e,typeName:Qe.ZodPromise,...tt(t)});class Ec extends dt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:l=>{Ce(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const l=i.transform(r.data,a);if(r.common.async)return Promise.resolve(l).then(async u=>{if(n.value==="aborted")return Ge;const f=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return f.status==="aborted"?Ge:f.status==="dirty"||n.value==="dirty"?wd(f.value):f});{if(n.value==="aborted")return Ge;const u=this._def.schema._parseSync({data:l,path:r.path,parent:r});return u.status==="aborted"?Ge:u.status==="dirty"||n.value==="dirty"?wd(u.value):u}}if(i.type==="refinement"){const l=u=>{const f=i.refinement(u,a);if(r.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Ge:(u.status==="dirty"&&n.dirty(),l(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?Ge:(u.status==="dirty"&&n.dirty(),l(u.value).then(()=>({status:n.value,value:u.value}))))}if(i.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!wc(l))return Ge;const u=i.transform(l.value,a);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>wc(l)?Promise.resolve(i.transform(l.value,a)).then(u=>({status:n.value,value:u})):Ge);mt.assertNever(i)}}Ec.create=(e,t,n)=>new Ec({schema:e,typeName:Qe.ZodEffects,effect:t,...tt(n)});Ec.createWithPreprocess=(e,t,n)=>new Ec({schema:t,effect:{type:"preprocess",transform:e},typeName:Qe.ZodEffects,...tt(n)});class ps extends dt{_parse(t){return this._getType(t)===ze.undefined?fi(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ps.create=(e,t)=>new ps({innerType:e,typeName:Qe.ZodOptional,...tt(t)});class Ac extends dt{_parse(t){return this._getType(t)===ze.null?fi(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ac.create=(e,t)=>new Ac({innerType:e,typeName:Qe.ZodNullable,...tt(t)});class l2 extends dt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ze.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}l2.create=(e,t)=>new l2({innerType:e,typeName:Qe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...tt(t)});class u2 extends dt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return My(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Xa(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Xa(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}u2.create=(e,t)=>new u2({innerType:e,typeName:Qe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...tt(t)});class Vk extends dt{_parse(t){if(this._getType(t)!==ze.nan){const r=this._getOrReturnCtx(t);return Ce(r,{code:Ee.invalid_type,expected:ze.nan,received:r.parsedType}),Ge}return{status:"valid",value:t.data}}}Vk.create=e=>new Vk({typeName:Qe.ZodNaN,...tt(e)});class OY extends dt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class VS extends dt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Ge:a.status==="dirty"?(n.dirty(),wd(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Ge:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new VS({in:t,out:n,typeName:Qe.ZodPipeline})}}class c2 extends dt{_parse(t){const n=this._def.innerType._parse(t),r=i=>(wc(i)&&(i.value=Object.freeze(i.value)),i);return My(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}c2.create=(e,t)=>new c2({innerType:e,typeName:Qe.ZodReadonly,...tt(t)});var Qe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Qe||(Qe={}));const Xwe=qa.create,Wwe=Cl.create;kl.create;const Jwe=Cy.create;Sc.create;xs.create;const e2e=Zi.create,t2e=hn.create;ky.create;Ty.create;Tl.create;const n2e=s2.create,r2e=_c.create;Py.create;ps.create;Ac.create;const i2e={string:(e=>qa.create({...e,coerce:!0})),number:(e=>Cl.create({...e,coerce:!0})),boolean:(e=>Cy.create({...e,coerce:!0})),bigint:(e=>kl.create({...e,coerce:!0})),date:(e=>Sc.create({...e,coerce:!0}))};function qn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var MY=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fk=MY,Cb=()=>Math.random().toString(36).substring(7).split("").join("."),CY={INIT:`@@redux/INIT${Cb()}`,REPLACE:`@@redux/REPLACE${Cb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cb()}`},Ny=CY;function Oc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Z5(e,t,n){if(typeof e!="function")throw new Error(qn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(qn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(qn(1));return n(Z5)(e,t)}let r=e,i=t,a=new Map,l=a,u=0,f=!1;function d(){l===a&&(l=new Map,a.forEach((w,S)=>{l.set(S,w)}))}function h(){if(f)throw new Error(qn(3));return i}function p(w){if(typeof w!="function")throw new Error(qn(4));if(f)throw new Error(qn(5));let S=!0;d();const M=u++;return l.set(M,w),function(){if(S){if(f)throw new Error(qn(6));S=!1,d(),l.delete(M),a=null}}}function y(w){if(!Oc(w))throw new Error(qn(7));if(typeof w.type>"u")throw new Error(qn(8));if(typeof w.type!="string")throw new Error(qn(17));if(f)throw new Error(qn(9));try{f=!0,i=r(i,w)}finally{f=!1}return(a=l).forEach(M=>{M()}),w}function v(w){if(typeof w!="function")throw new Error(qn(10));r=w,y({type:Ny.REPLACE})}function g(){const w=p;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(qn(11));function M(){const O=S;O.next&&O.next(h())}return M(),{unsubscribe:w(M)}},[Fk](){return this}}}return y({type:Ny.INIT}),{dispatch:y,subscribe:p,getState:h,replaceReducer:v,[Fk]:g}}function kY(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ny.INIT})>"u")throw new Error(qn(12));if(typeof n(void 0,{type:Ny.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qn(13))})}function FS(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const l=t[a];typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let i;try{kY(n)}catch(a){i=a}return function(l={},u){if(i)throw i;let f=!1;const d={};for(let h=0;h<r.length;h++){const p=r[h],y=n[p],v=l[p],g=y(v,u);if(typeof g>"u")throw u&&u.type,new Error(qn(14));d[p]=g,f=f||g!==v}return f=f||r.length!==Object.keys(l).length,f?d:l}}function Ry(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function TY(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(qn(15))};const l={getState:i.getState,dispatch:(f,...d)=>a(f,...d)},u=e.map(f=>f(l));return a=Ry(...u)(i.dispatch),{...i,dispatch:a}}}function KS(e){return Oc(e)&&"type"in e&&typeof e.type=="string"}var YS=Symbol.for("immer-nothing"),kd=Symbol.for("immer-draftable"),Tn=Symbol.for("immer-state");function Vn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var zr=Object,Pl=zr.getPrototypeOf,Ud="constructor",wh="prototype",f2="configurable",Dy="enumerable",fy="writable",qd="value",$r=e=>!!e&&!!e[Tn];function Ur(e){var t;return e?X5(e)||_h(e)||!!e[kd]||!!((t=e[Ud])!=null&&t[kd])||Eh(e)||Ah(e):!1}var PY=zr[wh][Ud].toString(),Kk=new WeakMap;function X5(e){if(!e||!Mc(e))return!1;const t=Pl(e);if(t===null||t===zr[wh])return!0;const n=zr.hasOwnProperty.call(t,Ud)&&t[Ud];if(n===Object)return!0;if(!ol(n))return!1;let r=Kk.get(n);return r===void 0&&(r=Function.toString.call(n),Kk.set(n,r)),r===PY}function NY(e){return $r(e)||Vn(15,e),e[Tn].base_}function Sh(e,t,n=!0){Nl(e)===0?(n?Reflect.ownKeys(e):zr.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Nl(e){const t=e[Tn];return t?t.type_:_h(e)?1:Eh(e)?2:Ah(e)?3:0}var Td=(e,t,n=Nl(e))=>n===2?e.has(t):zr[wh].hasOwnProperty.call(e,t),ja=(e,t,n=Nl(e))=>n===2?e.get(t):e[t],jy=(e,t,n,r=Nl(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function RY(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var _h=Array.isArray,Eh=e=>e instanceof Map,Ah=e=>e instanceof Set,Mc=e=>typeof e=="object",ol=e=>typeof e=="function",kb=e=>typeof e=="boolean";function DY(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var jY=e=>Mc(e)?e==null?void 0:e[Tn]:null,Ia=e=>e.copy_||e.base_,GS=e=>e.modified_?e.copy_:e.base_;function d2(e,t){if(Eh(e))return new Map(e);if(Ah(e))return new Set(e);if(_h(e))return Array[wh].slice.call(e);const n=X5(e);if(t===!0||t==="class_only"&&!n){const r=zr.getOwnPropertyDescriptors(e);delete r[Tn];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const l=i[a],u=r[l];u[fy]===!1&&(u[fy]=!0,u[f2]=!0),(u.get||u.set)&&(r[l]={[f2]:!0,[fy]:!0,[Dy]:u[Dy],[qd]:e[l]})}return zr.create(Pl(e),r)}else{const r=Pl(e);if(r!==null&&n)return{...e};const i=zr.create(r);return zr.assign(i,e)}}function QS(e,t=!1){return Gv(e)||$r(e)||!Ur(e)||(Nl(e)>1&&zr.defineProperties(e,{set:Rm,add:Rm,clear:Rm,delete:Rm}),zr.freeze(e),t&&Sh(e,(n,r)=>{QS(r,!0)},!1)),e}function IY(){Vn(2)}var Rm={[qd]:IY};function Gv(e){return e===null||!Mc(e)?!0:zr.isFrozen(e)}var Iy="MapSet",zy="Patches",Yk="ArrayMethods",Ly={};function Rl(e){const t=Ly[e];return t||Vn(0,e),t}var Gk=e=>!!Ly[e];function zY(e,t){Ly[e]||(Ly[e]=t)}var Hd,W5=()=>Hd,LY=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Gk(Iy)?Rl(Iy):void 0,arrayMethodsPlugin_:Gk(Yk)?Rl(Yk):void 0});function Qk(e,t){t&&(e.patchPlugin_=Rl(zy),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function h2(e){p2(e),e.drafts_.forEach(BY),e.drafts_=null}function p2(e){e===Hd&&(Hd=e.parent_)}var Zk=e=>Hd=LY(Hd,e);function BY(e){const t=e[Tn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xk(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Tn].modified_&&(h2(t),Vn(4)),Ur(e)&&(e=Wk(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Tn].base_,e,t)}else e=Wk(t,n);return $Y(t,e,!0),h2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==YS?e:void 0}function Wk(e,t){if(Gv(t))return t;const n=t[Tn];if(!n)return By(t,e.handledSet_,e);if(!Qv(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);tj(n,e)}return n.copy_}function $Y(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&QS(t,n)}function J5(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Qv=(e,t)=>e.scope_===t,UY=[];function ej(e,t,n,r){const i=Ia(e),a=e.type_;if(r!==void 0&&ja(i,r,a)===t){jy(i,r,n,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;Sh(i,(f,d)=>{if($r(d)){const h=u.get(d)||[];h.push(f),u.set(d,h)}})}const l=e.draftLocations_.get(t)??UY;for(const u of l)jy(i,u,n,a)}function qY(e,t,n){e.callbacks_.push(function(i){var u;const a=t;if(!a||!Qv(a,i))return;(u=i.mapSetPlugin_)==null||u.fixSetContents(a);const l=GS(a);ej(e,a.draft_??a,l,n),tj(a,i)})}function tj(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const a=i.getPath(e);a&&i.generatePatches_(e,a,t)}J5(e)}}function HY(e,t,n){const{scope_:r}=e;if($r(n)){const i=n[Tn];Qv(i,r)&&i.callbacks_.push(function(){dy(e);const l=GS(i);ej(e,n,l,t)})}else Ur(n)&&e.callbacks_.push(function(){const a=Ia(e);e.type_===3?a.has(n)&&By(n,r.handledSet_,r):ja(a,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&By(ja(e.copy_,t,e.type_),r.handledSet_,r)})}function By(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||$r(e)||t.has(e)||!Ur(e)||Gv(e)||(t.add(e),Sh(e,(r,i)=>{if($r(i)){const a=i[Tn];if(Qv(a,n)){const l=GS(a);jy(e,r,l,e.type_),J5(a)}}else Ur(i)&&By(i,t,n)})),e}function VY(e,t){const n=_h(e),r={type_:n?1:0,scope_:t?t.scope_:W5(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,a=$y;n&&(i=[r],a=Vd);const{revoke:l,proxy:u}=Proxy.revocable(i,a);return r.draft_=u,r.revoke_=l,[u,r]}var $y={get(e,t){if(t===Tn)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=Ia(e);if(!Td(i,t,e.type_))return FY(e,i,t);const a=i[t];if(e.finalized_||!Ur(a)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&DY(t))return a;if(a===Tb(e.base_,t)){dy(e);const l=e.type_===1?+t:t,u=y2(e.scope_,a,e,l);return e.copy_[l]=u}return a},has(e,t){return t in Ia(e)},ownKeys(e){return Reflect.ownKeys(Ia(e))},set(e,t,n){const r=nj(Ia(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Tb(Ia(e),t),a=i==null?void 0:i[Tn];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(RY(n,i)&&(n!==void 0||Td(e.base_,t,e.type_)))return!0;dy(e),m2(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),HY(e,t,n)),!0},deleteProperty(e,t){return dy(e),Tb(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),m2(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ia(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[fy]:!0,[f2]:e.type_!==1||t!=="length",[Dy]:r[Dy],[qd]:n[t]}},defineProperty(){Vn(11)},getPrototypeOf(e){return Pl(e.base_)},setPrototypeOf(){Vn(12)}},Vd={};for(let e in $y){let t=$y[e];Vd[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Vd.deleteProperty=function(e,t){return Vd.set.call(this,e,t,void 0)};Vd.set=function(e,t,n){return $y.set.call(this,e[0],t,n,e[0])};function Tb(e,t){const n=e[Tn];return(n?Ia(n):e)[t]}function FY(e,t,n){var i;const r=nj(t,n);return r?qd in r?r[qd]:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function nj(e,t){if(!(t in e))return;let n=Pl(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Pl(n)}}function m2(e){e.modified_||(e.modified_=!0,e.parent_&&m2(e.parent_))}function dy(e){e.copy_||(e.assigned_=new Map,e.copy_=d2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var KY=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,i)=>{if(ol(n)&&!ol(r)){const l=r;r=n;const u=this;return function(d=l,...h){return u.produce(d,p=>r.call(this,p,...h))}}ol(r)||Vn(6),i!==void 0&&!ol(i)&&Vn(7);let a;if(Ur(n)){const l=Zk(this),u=y2(l,n,void 0);let f=!0;try{a=r(u),f=!1}finally{f?h2(l):p2(l)}return Qk(l,i),Xk(a,l)}else if(!n||!Mc(n)){if(a=r(n),a===void 0&&(a=n),a===YS&&(a=void 0),this.autoFreeze_&&QS(a,!0),i){const l=[],u=[];Rl(zy).generateReplacementPatches_(n,a,{patches_:l,inversePatches_:u}),i(l,u)}return a}else Vn(1,n)},this.produceWithPatches=(n,r)=>{if(ol(n))return(u,...f)=>this.produceWithPatches(u,d=>n(d,...f));let i,a;return[this.produce(n,r,(u,f)=>{i=u,a=f}),i,a]},kb(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),kb(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),kb(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ur(t)||Vn(8),$r(t)&&(t=Lr(t));const n=Zk(this),r=y2(n,t,void 0);return r[Tn].isManual_=!0,p2(n),r}finishDraft(t,n){const r=t&&t[Tn];(!r||!r.isManual_)&&Vn(9);const{scope_:i}=r;return Qk(i,n),Xk(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const a=n[r];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}r>-1&&(n=n.slice(r+1));const i=Rl(zy).applyPatches_;return $r(t)?i(t,n):this.produce(t,a=>i(a,n))}};function y2(e,t,n,r){const[i,a]=Eh(t)?Rl(Iy).proxyMap_(t,n):Ah(t)?Rl(Iy).proxySet_(t,n):VY(t,n);return((n==null?void 0:n.scope_)??W5()).drafts_.push(i),a.callbacks_=(n==null?void 0:n.callbacks_)??[],a.key_=r,n&&r!==void 0?qY(n,a,r):a.callbacks_.push(function(f){var h;(h=f.mapSetPlugin_)==null||h.fixSetContents(a);const{patchPlugin_:d}=f;a.modified_&&d&&d.generatePatches_(a,[],f)}),i}function Lr(e){return $r(e)||Vn(10,e),rj(e)}function rj(e){if(!Ur(e)||Gv(e))return e;const t=e[Tn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=d2(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=d2(e,!0);return Sh(n,(i,a)=>{jy(n,i,rj(a))},r),t&&(t.finalized_=!1),n}function YY(){function t(g,b=[]){if(g.key_!==void 0){const w=g.parent_.copy_??g.parent_.base_,S=jY(ja(w,g.key_)),M=ja(w,g.key_);if(M===void 0||M!==g.draft_&&M!==g.base_&&M!==g.copy_||S!=null&&S.base_!==g.base_)return null;const A=g.parent_.type_===3;let O;if(A){const k=g.parent_;O=Array.from(k.drafts_.keys()).indexOf(g.key_)}else O=g.key_;if(!(A&&w.size>O||Td(w,O)))return null;b.push(O)}if(g.parent_)return t(g.parent_,b);b.reverse();try{n(g.copy_,b)}catch{return null}return b}function n(g,b){let w=g;for(let S=0;S<b.length-1;S++){const M=b[S];if(w=ja(w,M),!Mc(w)||w===null)throw new Error(`Cannot resolve path at '${b.join("/")}'`)}return w}const r="replace",i="add",a="remove";function l(g,b,w){if(g.scope_.processedForPatches_.has(g))return;g.scope_.processedForPatches_.add(g);const{patches_:S,inversePatches_:M}=w;switch(g.type_){case 0:case 2:return f(g,b,S,M);case 1:return u(g,b,S,M);case 3:return d(g,b,S,M)}}function u(g,b,w,S){let{base_:M,assigned_:A}=g,O=g.copy_;O.length<M.length&&([M,O]=[O,M],[w,S]=[S,w]);const k=g.allIndicesReassigned_===!0;for(let C=0;C<M.length;C++){const T=O[C],P=M[C];if((k||(A==null?void 0:A.get(C.toString())))&&T!==P){const z=T==null?void 0:T[Tn];if(z&&z.modified_)continue;const R=b.concat([C]);w.push({op:r,path:R,value:v(T)}),S.push({op:r,path:R,value:v(P)})}}for(let C=M.length;C<O.length;C++){const T=b.concat([C]);w.push({op:i,path:T,value:v(O[C])})}for(let C=O.length-1;M.length<=C;--C){const T=b.concat([C]);S.push({op:a,path:T})}}function f(g,b,w,S){const{base_:M,copy_:A,type_:O}=g;Sh(g.assigned_,(k,C)=>{const T=ja(M,k,O),P=ja(A,k,O),D=C?Td(M,k)?r:i:a;if(T===P&&D===r)return;const z=b.concat(k);w.push(D===a?{op:D,path:z}:{op:D,path:z,value:v(P)}),S.push(D===i?{op:a,path:z}:D===a?{op:i,path:z,value:v(T)}:{op:r,path:z,value:v(T)})})}function d(g,b,w,S){let{base_:M,copy_:A}=g,O=0;M.forEach(k=>{if(!A.has(k)){const C=b.concat([O]);w.push({op:a,path:C,value:k}),S.unshift({op:i,path:C,value:k})}O++}),O=0,A.forEach(k=>{if(!M.has(k)){const C=b.concat([O]);w.push({op:i,path:C,value:k}),S.unshift({op:a,path:C,value:k})}O++})}function h(g,b,w){const{patches_:S,inversePatches_:M}=w;S.push({op:r,path:[],value:b===YS?void 0:b}),M.push({op:r,path:[],value:g})}function p(g,b){return b.forEach(w=>{const{path:S,op:M}=w;let A=g;for(let T=0;T<S.length-1;T++){const P=Nl(A);let D=S[T];typeof D!="string"&&typeof D!="number"&&(D=""+D),(P===0||P===1)&&(D==="__proto__"||D===Ud)&&Vn(19),ol(A)&&D===wh&&Vn(19),A=ja(A,D),Mc(A)||Vn(18,S.join("/"))}const O=Nl(A),k=y(w.value),C=S[S.length-1];switch(M){case r:switch(O){case 2:return A.set(C,k);case 3:Vn(16);default:return A[C]=k}case i:switch(O){case 1:return C==="-"?A.push(k):A.splice(C,0,k);case 2:return A.set(C,k);case 3:return A.add(k);default:return A[C]=k}case a:switch(O){case 1:return A.splice(C,1);case 2:return A.delete(C);case 3:return A.delete(w.value);default:return delete A[C]}default:Vn(17,M)}}),g}function y(g){if(!Ur(g))return g;if(_h(g))return g.map(y);if(Eh(g))return new Map(Array.from(g.entries()).map(([w,S])=>[w,y(S)]));if(Ah(g))return new Set(Array.from(g).map(y));const b=Object.create(Pl(g));for(const w in g)b[w]=y(g[w]);return Td(g,kd)&&(b[kd]=g[kd]),b}function v(g){return $r(g)?y(g):g}zY(zy,{applyPatches_:p,generatePatches_:l,generateReplacementPatches_:h,getPath:t})}var Fd=new KY,Oh=Fd.produce,ij=Fd.produceWithPatches.bind(Fd),Jk=Fd.applyPatches.bind(Fd);function GY(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function QY(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function ZY(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var eT=e=>Array.isArray(e)?e:[e];function XY(e){const t=Array.isArray(e[0])?e[0]:e;return ZY(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function WY(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var JY=class{constructor(e){this.value=e}deref(){return this.value}},eG=typeof WeakRef<"u"?WeakRef:JY,tG=0,tT=1;function Dm(){return{s:tG,v:void 0,o:null,p:null}}function Uy(e,t={}){let n=Dm();const{resultEqualityCheck:r}=t;let i,a=0;function l(){var p;let u=n;const{length:f}=arguments;for(let y=0,v=f;y<v;y++){const g=arguments[y];if(typeof g=="function"||typeof g=="object"&&g!==null){let b=u.o;b===null&&(u.o=b=new WeakMap);const w=b.get(g);w===void 0?(u=Dm(),b.set(g,u)):u=w}else{let b=u.p;b===null&&(u.p=b=new Map);const w=b.get(g);w===void 0?(u=Dm(),b.set(g,u)):u=w}}const d=u;let h;if(u.s===tT)h=u.v;else if(h=e.apply(null,arguments),a++,r){const y=((p=i==null?void 0:i.deref)==null?void 0:p.call(i))??i;y!=null&&r(y,h)&&(h=y,a!==0&&a--),i=typeof h=="object"&&h!==null||typeof h=="function"?new eG(h):h}return d.s=tT,d.v=h,h}return l.clearCache=()=>{n=Dm(),l.resetResultsCount()},l.resultsCount=()=>a,l.resetResultsCount=()=>{a=0},l}function nG(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let a=0,l=0,u,f={},d=i.pop();typeof d=="object"&&(f=d,d=i.pop()),GY(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const h={...n,...f},{memoize:p,memoizeOptions:y=[],argsMemoize:v=Uy,argsMemoizeOptions:g=[]}=h,b=eT(y),w=eT(g),S=XY(i),M=p(function(){return a++,d.apply(null,arguments)},...b),A=v(function(){l++;const k=WY(S,arguments);return u=M.apply(null,k),u},...w);return Object.assign(A,{resultFunc:d,memoizedResultFunc:M,dependencies:S,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:p,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var le=nG(Uy),rG=Object.assign((e,t=le)=>{QY(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((l,u,f)=>(l[n[f]]=u,l),{}))},{withTypes:()=>rG});function aj(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var iG=aj(),aG=aj,oG=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ry:Ry.apply(null,arguments)},sG=e=>e&&typeof e.match=="function";function Jt(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Kn(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>KS(r)&&r.type===e,n}var oj=class Sd extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Sd.prototype)}static get[Symbol.species](){return Sd}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Sd(...t[0].concat(this)):new Sd(...t.concat(this))}};function nT(e){return Ur(e)?Oh(e,()=>{}):e}function jm(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function lG(e){return typeof e=="boolean"}var uG=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let l=new oj;return n&&(lG(n)?l.push(iG):l.push(aG(n.extraArgument))),l},Zv="RTK_autoBatch",bt=()=>e=>({payload:e,meta:{[Zv]:!0}}),rT=e=>t=>{setTimeout(t,e)},sj=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,l=!1;const u=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:rT(10):e.type==="callback"?e.queueNotification:rT(e.timeout),d=()=>{l=!1,a&&(a=!1,u.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const p=()=>i&&h(),y=r.subscribe(p);return u.add(h),()=>{y(),u.delete(h)}},dispatch(h){var p;try{return i=!((p=h==null?void 0:h.meta)!=null&&p[Zv]),a=!i,a&&(l||(l=!0,f(d))),r.dispatch(h)}finally{i=!0}}})},cG=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new oj(e);return r&&i.push(sj(typeof r=="object"?r:void 0)),i};function fG(e){const t=uG(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:l=void 0,enhancers:u=void 0}=e||{};let f;if(typeof n=="function")f=n;else if(Oc(n))f=FS(n);else throw new Error(Kn(1));let d;typeof r=="function"?d=r(t):d=t();let h=Ry;i&&(h=oG({trace:!1,...typeof i=="object"&&i}));const p=TY(...d),y=cG(p);let v=typeof u=="function"?u(y):y();const g=h(...v);return Z5(f,l,g)}function lj(e){const t={},n=[];let r;const i={addCase(a,l){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Kn(28));if(u in t)throw new Error(Kn(29));return t[u]=l,i},addAsyncThunk(a,l){return l.pending&&(t[a.pending.type]=l.pending),l.rejected&&(t[a.rejected.type]=l.rejected),l.fulfilled&&(t[a.fulfilled.type]=l.fulfilled),l.settled&&n.push({matcher:a.settled,reducer:l.settled}),i},addMatcher(a,l){return n.push({matcher:a,reducer:l}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function dG(e){return typeof e=="function"}function hG(e,t){let[n,r,i]=lj(t),a;if(dG(e))a=()=>nT(e());else{const u=nT(e);a=()=>u}function l(u=a(),f){let d=[n[f.type],...r.filter(({matcher:h})=>h(f)).map(({reducer:h})=>h)];return d.filter(h=>!!h).length===0&&(d=[i]),d.reduce((h,p)=>{if(p)if($r(h)){const v=p(h,f);return v===void 0?h:v}else{if(Ur(h))return Oh(h,y=>p(y,f));{const y=p(h,f);if(y===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return h},u)}return l.getInitialState=a,l}var uj=(e,t)=>sG(e)?e.match(t):e(t);function Wa(...e){return t=>e.some(n=>uj(n,t))}function Pd(...e){return t=>e.every(n=>uj(n,t))}function Xv(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function Mh(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ZS(...e){return e.length===0?t=>Xv(t,["pending"]):Mh(e)?Wa(...e.map(t=>t.pending)):ZS()(e[0])}function Cc(...e){return e.length===0?t=>Xv(t,["rejected"]):Mh(e)?Wa(...e.map(t=>t.rejected)):Cc()(e[0])}function Wv(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?Pd(Cc(...e),t):Mh(e)?Pd(Cc(...e),t):Wv()(e[0])}function ws(...e){return e.length===0?t=>Xv(t,["fulfilled"]):Mh(e)?Wa(...e.map(t=>t.fulfilled)):ws()(e[0])}function v2(...e){return e.length===0?t=>Xv(t,["pending","fulfilled","rejected"]):Mh(e)?Wa(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):v2()(e[0])}var pG="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jv=(e=21)=>{let t="",n=e;for(;n--;)t+=pG[Math.random()*64|0];return t},mG=["name","message","stack","code"],Pb=class{constructor(e,t){ju(this,"_type");this.payload=e,this.meta=t}},iT=class{constructor(e,t){ju(this,"_type");this.payload=e,this.meta=t}},yG=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of mG)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},aT="External signal was aborted",oT=(()=>{function e(t,n,r){const i=Jt(t+"/fulfilled",(f,d,h,p)=>({payload:f,meta:{...p||{},arg:h,requestId:d,requestStatus:"fulfilled"}})),a=Jt(t+"/pending",(f,d,h)=>({payload:void 0,meta:{...h||{},arg:d,requestId:f,requestStatus:"pending"}})),l=Jt(t+"/rejected",(f,d,h,p,y)=>({payload:p,error:(r&&r.serializeError||yG)(f||"Rejected"),meta:{...y||{},arg:h,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(f==null?void 0:f.name)==="AbortError",condition:(f==null?void 0:f.name)==="ConditionError"}}));function u(f,{signal:d}={}){return(h,p,y)=>{const v=r!=null&&r.idGenerator?r.idGenerator(f):Jv(),g=new AbortController;let b,w;function S(A){w=A,g.abort()}d&&(d.aborted?S(aT):d.addEventListener("abort",()=>S(aT),{once:!0}));const M=(async function(){var k,C;let A;try{let T=(k=r==null?void 0:r.condition)==null?void 0:k.call(r,f,{getState:p,extra:y});if(gG(T)&&(T=await T),T===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((D,z)=>{b=()=>{z({name:"AbortError",message:w||"Aborted"})},g.signal.addEventListener("abort",b,{once:!0})});h(a(v,f,(C=r==null?void 0:r.getPendingMeta)==null?void 0:C.call(r,{requestId:v,arg:f},{getState:p,extra:y}))),A=await Promise.race([P,Promise.resolve(n(f,{dispatch:h,getState:p,extra:y,requestId:v,signal:g.signal,abort:S,rejectWithValue:(D,z)=>new Pb(D,z),fulfillWithValue:(D,z)=>new iT(D,z)})).then(D=>{if(D instanceof Pb)throw D;return D instanceof iT?i(D.payload,v,f,D.meta):i(D,v,f)})])}catch(T){A=T instanceof Pb?l(null,v,f,T.payload,T.meta):l(T,v,f)}finally{b&&g.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&l.match(A)&&A.meta.condition||h(A),A})();return Object.assign(M,{abort:S,requestId:v,arg:f,unwrap(){return M.then(vG)}})}}return Object.assign(u,{pending:a,rejected:l,fulfilled:i,settled:Wa(l,i),typePrefix:t})}return e.withTypes=()=>e,e})();function vG(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function gG(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var bG=Symbol.for("rtk-slice-createasyncthunk");function xG(e,t){return`${e}/${t}`}function wG({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[bG];return function(i){const{name:a,reducerPath:l=a}=i;if(!a)throw new Error(Kn(11));const u=(typeof i.reducers=="function"?i.reducers(_G()):i.reducers)||{},f=Object.keys(u),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(O,k){const C=typeof O=="string"?O:O.type;if(!C)throw new Error(Kn(12));if(C in d.sliceCaseReducersByType)throw new Error(Kn(13));return d.sliceCaseReducersByType[C]=k,h},addMatcher(O,k){return d.sliceMatchers.push({matcher:O,reducer:k}),h},exposeAction(O,k){return d.actionCreators[O]=k,h},exposeCaseReducer(O,k){return d.sliceCaseReducersByName[O]=k,h}};f.forEach(O=>{const k=u[O],C={reducerName:O,type:xG(a,O),createNotation:typeof i.reducers=="function"};AG(k)?MG(C,k,h,t):EG(C,k,h)});function p(){const[O={},k=[],C=void 0]=typeof i.extraReducers=="function"?lj(i.extraReducers):[i.extraReducers],T={...O,...d.sliceCaseReducersByType};return hG(i.initialState,P=>{for(let D in T)P.addCase(D,T[D]);for(let D of d.sliceMatchers)P.addMatcher(D.matcher,D.reducer);for(let D of k)P.addMatcher(D.matcher,D.reducer);C&&P.addDefaultCase(C)})}const y=O=>O,v=new Map,g=new WeakMap;let b;function w(O,k){return b||(b=p()),b(O,k)}function S(){return b||(b=p()),b.getInitialState()}function M(O,k=!1){function C(P){let D=P[O];return typeof D>"u"&&k&&(D=jm(g,C,S)),D}function T(P=y){const D=jm(v,k,()=>new WeakMap);return jm(D,P,()=>{const z={};for(const[R,N]of Object.entries(i.selectors??{}))z[R]=SG(N,P,()=>jm(g,P,S),k);return z})}return{reducerPath:O,getSelectors:T,get selectors(){return T(C)},selectSlice:C}}const A={name:a,reducer:w,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:S,...M(l),injectInto(O,{reducerPath:k,...C}={}){const T=k??l;return O.inject({reducerPath:T,reducer:w},C),{...A,...M(T,!0)}}};return A}}function SG(e,t,n,r){function i(a,...l){let u=t(a);return typeof u>"u"&&r&&(u=n()),e(u,...l)}return i.unwrapped=e,i}var Wt=wG();function _G(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function EG({type:e,reducerName:t,createNotation:n},r,i){let a,l;if("reducer"in r){if(n&&!OG(r))throw new Error(Kn(17));a=r.reducer,l=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,l?Jt(e,l):Jt(e))}function AG(e){return e._reducerDefinitionType==="asyncThunk"}function OG(e){return e._reducerDefinitionType==="reducerWithPrepare"}function MG({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Kn(18));const{payloadCreator:a,fulfilled:l,pending:u,rejected:f,settled:d,options:h}=n,p=i(e,a,h);r.exposeAction(t,p),l&&r.addCase(p.fulfilled,l),u&&r.addCase(p.pending,u),f&&r.addCase(p.rejected,f),d&&r.addMatcher(p.settled,d),r.exposeCaseReducer(t,{fulfilled:l||Im,pending:u||Im,rejected:f||Im,settled:d||Im})}function Im(){}var CG="task",cj="listener",fj="completed",XS="cancelled",kG=`task-${XS}`,TG=`task-${fj}`,g2=`${cj}-${XS}`,PG=`${cj}-${fj}`,eg=class{constructor(e){ju(this,"name","TaskAbortError");ju(this,"message");this.code=e,this.message=`${CG} ${XS} (reason: ${e})`}},WS=(e,t)=>{if(typeof e!="function")throw new TypeError(Kn(32))},qy=()=>{},dj=(e,t=qy)=>(e.catch(t),e),hj=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Sl=e=>{if(e.aborted)throw new eg(e.reason)};function pj(e,t){let n=qy;return new Promise((r,i)=>{const a=()=>i(new eg(e.reason));if(e.aborted){a();return}n=hj(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=qy})}var NG=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof eg?"cancelled":"rejected",error:n}}finally{t==null||t()}},Hy=e=>t=>dj(pj(e,t).then(n=>(Sl(e),n))),mj=e=>{const t=Hy(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:ac}=Object,sT={},tg="listenerMiddleware",RG=(e,t)=>{const n=r=>hj(e,()=>r.abort(e.reason));return(r,i)=>{WS(r);const a=new AbortController;n(a);const l=NG(async()=>{Sl(e),Sl(a.signal);const u=await r({pause:Hy(a.signal),delay:mj(a.signal),signal:a.signal});return Sl(a.signal),u},()=>a.abort(TG));return i!=null&&i.autoJoin&&t.push(l.catch(qy)),{result:Hy(e)(l),cancel(){a.abort(kG)}}}},DG=(e,t)=>{const n=async(r,i)=>{Sl(t);let a=()=>{};const u=[new Promise((f,d)=>{let h=e({predicate:r,effect:(p,y)=>{y.unsubscribe(),f([p,y.getState(),y.getOriginalState()])}});a=()=>{h(),d()}})];i!=null&&u.push(new Promise(f=>setTimeout(f,i,null)));try{const f=await pj(t,Promise.race(u));return Sl(t),f}finally{a()}};return(r,i)=>dj(n(r,i))},yj=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Jt(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Kn(21));return WS(a),{predicate:i,type:t,effect:a}},vj=ac(e=>{const{type:t,predicate:n,effect:r}=yj(e);return{id:Jv(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Kn(22))}}},{withTypes:()=>vj}),lT=(e,t)=>{const{type:n,effect:r,predicate:i}=yj(t);return Array.from(e.values()).find(a=>(typeof n=="string"?a.type===n:a.predicate===i)&&a.effect===r)},b2=e=>{e.pending.forEach(t=>{t.abort(g2)})},jG=(e,t)=>()=>{for(const n of t.keys())b2(n);e.clear()},uT=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},gj=ac(Jt(`${tg}/add`),{withTypes:()=>gj}),IG=Jt(`${tg}/removeAll`),bj=ac(Jt(`${tg}/remove`),{withTypes:()=>bj}),zG=(...e)=>{console.error(`${tg}/error`,...e)},Ch=(e={})=>{const t=new Map,n=new Map,r=v=>{const g=n.get(v)??0;n.set(v,g+1)},i=v=>{const g=n.get(v)??1;g===1?n.delete(v):n.set(v,g-1)},{extra:a,onError:l=zG}=e;WS(l);const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),g=>{v.unsubscribe(),g!=null&&g.cancelActive&&b2(v)}),f=v=>{const g=lT(t,v)??vj(v);return u(g)};ac(f,{withTypes:()=>f});const d=v=>{const g=lT(t,v);return g&&(g.unsubscribe(),v.cancelActive&&b2(g)),!!g};ac(d,{withTypes:()=>d});const h=async(v,g,b,w)=>{const S=new AbortController,M=DG(f,S.signal),A=[];try{v.pending.add(S),r(v),await Promise.resolve(v.effect(g,ac({},b,{getOriginalState:w,condition:(O,k)=>M(O,k).then(Boolean),take:M,delay:mj(S.signal),pause:Hy(S.signal),extra:a,signal:S.signal,fork:RG(S.signal,A),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((O,k,C)=>{O!==S&&(O.abort(g2),C.delete(O))})},cancel:()=>{S.abort(g2),v.pending.delete(S)},throwIfCancelled:()=>{Sl(S.signal)}})))}catch(O){O instanceof eg||uT(l,O,{raisedBy:"effect"})}finally{await Promise.all(A),S.abort(PG),i(v),v.pending.delete(S)}},p=jG(t,n);return{middleware:v=>g=>b=>{if(!KS(b))return g(b);if(gj.match(b))return f(b.payload);if(IG.match(b)){p();return}if(bj.match(b))return d(b.payload);let w=v.getState();const S=()=>{if(w===sT)throw new Error(Kn(23));return w};let M;try{if(M=g(b),t.size>0){const A=v.getState(),O=Array.from(t.values());for(const k of O){let C=!1;try{C=k.predicate(b,A,w)}catch(T){C=!1,uT(l,T,{raisedBy:"predicate"})}C&&h(k,b,v,S)}}}finally{w=sT}return M},startListening:f,stopListening:d,clearListeners:p}};function Kn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var LG=class extends Error{constructor(t){super(t[0].message);ju(this,"issues");this.name="SchemaError",this.issues=t}},xj=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(xj||{}),Ja="uninitialized",x2="pending",_d="fulfilled",Ed="rejected";function cT(e){return{status:e,isUninitialized:e===Ja,isLoading:e===x2,isSuccess:e===_d,isError:e===Ed}}var fT=Oc;function JS(e,t){if(e===t||!(fT(e)&&fT(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const a=Array.isArray(t)?[]:{};for(const l of n)a[l]=JS(e[l],t[l]),i&&(i=e[l]===a[l]);return i?e:a}function w2(e,t,n){return e.reduce((r,i,a)=>(t(i,a)&&r.push(n(i,a)),r),[]).flat()}function BG(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function e_(e){return e!=null}function dT(e){return[...(e==null?void 0:e.values())??[]].filter(e_)}function $G(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function Vy(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var S2=()=>new Map,hT=class{constructor(e,t=void 0){this.value=e,this.meta=t}},ng="__rtkq/",wj="online",Sj="offline",UG="focus",_j="focused",qG="visibilitychange",rg=Jt(`${ng}${_j}`),t_=Jt(`${ng}un${_j}`),ig=Jt(`${ng}${wj}`),n_=Jt(`${ng}${Sj}`),zm=!1;function o2e(e,t){function n(){const[r,i,a,l]=[rg,t_,ig,n_].map(d=>()=>e(d())),u=()=>{window.document.visibilityState==="visible"?r():i()};let f=()=>{zm=!1};if(!zm&&typeof window<"u"&&window.addEventListener){let d=function(p){Object.entries(h).forEach(([y,v])=>{p?window.addEventListener(y,v,!1):window.removeEventListener(y,v)})};const h={[UG]:r,[qG]:u,[wj]:a,[Sj]:l};d(!0),zm=!0,f=()=>{d(!1),zm=!1}}return f}return n()}var kh="query",Ej="mutation",Aj="infinitequery";function ag(e){return e.type===kh}function HG(e){return e.type===Ej}function og(e){return e.type===Aj}function Fy(e){return ag(e)||og(e)}function r_(e,t,n,r,i,a){const l=VG(e)?e(t,n,r,i):e;return l?w2(l,e_,u=>a(Oj(u))):[]}function VG(e){return typeof e=="function"}function Oj(e){return typeof e=="string"?{type:e}:e}function FG(e,t){return e.catch(t)}var kc=(e,t)=>e.endpointDefinitions[t],Kd=Symbol("forceQueryFn"),_2=e=>typeof e[Kd]=="function";function KG({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:i,context:a,getInternalState:l}){const u=O=>{var k;return(k=l(O))==null?void 0:k.runningQueries},f=O=>{var k;return(k=l(O))==null?void 0:k.runningMutations},{unsubscribeQueryResult:d,removeMutationResult:h,updateSubscriptionOptions:p}=i.internalActions;return{buildInitiateQuery:S,buildInitiateInfiniteQuery:M,buildInitiateMutation:A,getRunningQueryThunk:y,getRunningMutationThunk:v,getRunningQueriesThunk:g,getRunningMutationsThunk:b};function y(O,k){return C=>{var D;const T=kc(a,O),P=e({queryArgs:k,endpointDefinition:T,endpointName:O});return(D=u(C))==null?void 0:D.get(P)}}function v(O,k){return C=>{var T;return(T=f(C))==null?void 0:T.get(k)}}function g(){return O=>dT(u(O))}function b(){return O=>dT(f(O))}function w(O,k){const C=(T,{subscribe:P=!0,forceRefetch:D,subscriptionOptions:z,[Kd]:R,...N}={})=>(B,I)=>{var de;const q=e({queryArgs:T,endpointDefinition:k,endpointName:O});let L;const V={...N,type:kh,subscribe:P,forceRefetch:D,subscriptionOptions:z,endpointName:O,originalArgs:T,queryCacheKey:q,[Kd]:R};if(ag(k))L=t(V);else{const{direction:ie,initialPageParam:W,refetchCachedPages:pe}=N;L=n({...V,direction:ie,initialPageParam:W,refetchCachedPages:pe})}const F=i.endpoints[O].select(T),H=B(L),Y=F(I()),{requestId:$,abort:K}=H,J=Y.requestId!==$,te=(de=u(B))==null?void 0:de.get(q),ce=()=>F(I()),he=Object.assign(R?H.then(ce):J&&!te?Promise.resolve(Y):Promise.all([te,H]).then(ce),{arg:T,requestId:$,subscriptionOptions:z,queryCacheKey:q,abort:K,async unwrap(){const ie=await he;if(ie.isError)throw ie.error;return ie.data},refetch:ie=>B(C(T,{subscribe:!1,forceRefetch:!0,...ie})),unsubscribe(){P&&B(d({queryCacheKey:q,requestId:$}))},updateSubscriptionOptions(ie){he.subscriptionOptions=ie,B(p({endpointName:O,requestId:$,queryCacheKey:q,options:ie}))}});if(!te&&!J&&!R){const ie=u(B);ie.set(q,he),he.then(()=>{ie.delete(q)})}return he};return C}function S(O,k){return w(O,k)}function M(O,k){return w(O,k)}function A(O){return(k,{track:C=!0,fixedCacheKey:T}={})=>(P,D)=>{const z=r({type:"mutation",endpointName:O,originalArgs:k,track:C,fixedCacheKey:T}),R=P(z),{requestId:N,abort:B,unwrap:I}=R,q=FG(R.unwrap().then(H=>({data:H})),H=>({error:H})),L=()=>{P(h({requestId:N,fixedCacheKey:T}))},V=Object.assign(q,{arg:R.arg,requestId:N,abort:B,unwrap:I,reset:L}),F=f(P);return F.set(N,V),V.then(()=>{F.delete(N)}),T&&(F.set(T,V),V.then(()=>{F.get(T)===V&&F.delete(T)})),V}}}var Mj=class extends LG{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}},Zs=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function Xs(e,t,n,r){const i=await e["~standard"].validate(t);if(i.issues)throw new Mj(i.issues,t,n,r);return i.value}function pT(e){return e}var rd=(e={})=>({...e,[Zv]:!0});function YG({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:i,assertTagType:a,selectors:l,onSchemaFailure:u,catchSchemaFailure:f,skipSchemaValidation:d}){const h=(R,N,B,I)=>(q,L)=>{const V=n[R],F=r({queryArgs:N,endpointDefinition:V,endpointName:R});if(q(i.internalActions.queryResultPatched({queryCacheKey:F,patches:B})),!I)return;const H=i.endpoints[R].select(N)(L()),Y=r_(V.providesTags,H.data,void 0,N,{},a);q(i.internalActions.updateProvidedBy([{queryCacheKey:F,providedTags:Y}]))};function p(R,N,B=0){const I=[N,...R];return B&&I.length>B?I.slice(0,-1):I}function y(R,N,B=0){const I=[...R,N];return B&&I.length>B?I.slice(1):I}const v=(R,N,B,I=!0)=>(q,L)=>{const F=i.endpoints[R].select(N)(L()),H={patches:[],inversePatches:[],undo:()=>q(i.util.patchQueryData(R,N,H.inversePatches,I))};if(F.status===Ja)return H;let Y;if("data"in F)if(Ur(F.data)){const[$,K,J]=ij(F.data,B);H.patches.push(...K),H.inversePatches.push(...J),Y=$}else Y=B(F.data),H.patches.push({op:"replace",path:[],value:Y}),H.inversePatches.push({op:"replace",path:[],value:F.data});return H.patches.length===0||q(i.util.patchQueryData(R,N,H.patches,I)),H},g=(R,N,B)=>I=>I(i.endpoints[R].initiate(N,{subscribe:!1,forceRefetch:!0,[Kd]:()=>({data:B})})),b=(R,N)=>R.query&&R[N]?R[N]:pT,w=async(R,{signal:N,abort:B,rejectWithValue:I,fulfillWithValue:q,dispatch:L,getState:V,extra:F})=>{var J,te;const H=n[R.endpointName],{metaSchema:Y,skipSchemaValidation:$=d}=H,K=R.type===kh;try{let ce=pT;const he={signal:N,abort:B,dispatch:L,getState:V,extra:F,endpoint:R.endpointName,type:R.type,forced:K?S(R,V()):void 0,queryCacheKey:K?R.queryCacheKey:void 0},de=K?R[Kd]:void 0;let ie;const W=async(ge,ee,Ae,Se)=>{if(ee==null&&ge.pages.length)return Promise.resolve({data:ge});const Ve={queryArg:R.originalArgs,pageParam:ee},Ne=await pe(Ve),it=Se?p:y;return{data:{pages:it(ge.pages,Ne.data,Ae),pageParams:it(ge.pageParams,ee,Ae)},meta:Ne.meta}};async function pe(ge){let ee;const{extraOptions:Ae,argSchema:Se,rawResponseSchema:Ve,responseSchema:Ne}=H;if(Se&&!Zs($,"arg")&&(ge=await Xs(Se,ge,"argSchema",{})),de?ee=de():H.query?(ce=b(H,"transformResponse"),ee=await t(H.query(ge),he,Ae)):ee=await H.queryFn(ge,he,Ae,Ft=>t(Ft,he,Ae)),typeof process<"u",ee.error)throw new hT(ee.error,ee.meta);let{data:it}=ee;Ve&&!Zs($,"rawResponse")&&(it=await Xs(Ve,ee.data,"rawResponseSchema",ee.meta));let Nt=await ce(it,ee.meta,ge);return Ne&&!Zs($,"response")&&(Nt=await Xs(Ne,Nt,"responseSchema",ee.meta)),{...ee,data:Nt}}if(K&&"infiniteQueryOptions"in H){const{infiniteQueryOptions:ge}=H,{maxPages:ee=1/0}=ge,Ae=R.refetchCachedPages??ge.refetchCachedPages??!0;let Se;const Ve={pages:[],pageParams:[]},Ne=(J=l.selectQueryEntry(V(),R.queryCacheKey))==null?void 0:J.data,Nt=S(R,V())&&!R.direction||!Ne?Ve:Ne;if("direction"in R&&R.direction&&Nt.pages.length){const Ft=R.direction==="backward",Qn=(Ft?Cj:E2)(ge,Nt,R.originalArgs);Se=await W(Nt,Qn,ee,Ft)}else{const{initialPageParam:Ft=ge.initialPageParam}=R,Gn=(Ne==null?void 0:Ne.pageParams)??[],Qn=Gn[0]??Ft,Q=Gn.length;if(Se=await W(Nt,Qn,ee),de&&(Se={data:Se.data.pages[0]}),Ae)for(let re=1;re<Q;re++){const ae=E2(ge,Se.data,R.originalArgs);Se=await W(Se.data,ae,ee)}}ie=Se}else ie=await pe(R.originalArgs);return Y&&!Zs($,"meta")&&ie.meta&&(ie.meta=await Xs(Y,ie.meta,"metaSchema",ie.meta)),q(ie.data,rd({fulfilledTimeStamp:Date.now(),baseQueryMeta:ie.meta}))}catch(ce){let he=ce;if(he instanceof hT){let de=b(H,"transformErrorResponse");const{rawErrorResponseSchema:ie,errorResponseSchema:W}=H;let{value:pe,meta:ge}=he;try{ie&&!Zs($,"rawErrorResponse")&&(pe=await Xs(ie,pe,"rawErrorResponseSchema",ge)),Y&&!Zs($,"meta")&&(ge=await Xs(Y,ge,"metaSchema",ge));let ee=await de(pe,ge,R.originalArgs);return W&&!Zs($,"errorResponse")&&(ee=await Xs(W,ee,"errorResponseSchema",ge)),I(ee,rd({baseQueryMeta:ge}))}catch(ee){he=ee}}try{if(he instanceof Mj){const de={endpoint:R.endpointName,arg:R.originalArgs,type:R.type,queryCacheKey:K?R.queryCacheKey:void 0};(te=H.onSchemaFailure)==null||te.call(H,he,de),u==null||u(he,de);const{catchSchemaFailure:ie=f}=H;if(ie)return I(ie(he,de),rd({baseQueryMeta:he._bqMeta}))}}catch(de){he=de}throw console.error(he),he}};function S(R,N){const B=l.selectQueryEntry(N,R.queryCacheKey),I=l.selectConfig(N).refetchOnMountOrArgChange,q=B==null?void 0:B.fulfilledTimeStamp,L=R.forceRefetch??(R.subscribe&&I);return L?L===!0||(Number(new Date)-Number(q))/1e3>=L:!1}const M=()=>oT(`${e}/executeQuery`,w,{getPendingMeta({arg:N}){const B=n[N.endpointName];return rd({startedTimeStamp:Date.now(),...og(B)?{direction:N.direction}:{}})},condition(N,{getState:B}){var $;const I=B(),q=l.selectQueryEntry(I,N.queryCacheKey),L=q==null?void 0:q.fulfilledTimeStamp,V=N.originalArgs,F=q==null?void 0:q.originalArgs,H=n[N.endpointName],Y=N.direction;return _2(N)?!0:(q==null?void 0:q.status)==="pending"?!1:S(N,I)||ag(H)&&(($=H==null?void 0:H.forceRefetch)!=null&&$.call(H,{currentArg:V,previousArg:F,endpointState:q,state:I}))?!0:!(L&&!Y)},dispatchConditionRejection:!0}),A=M(),O=M(),k=oT(`${e}/executeMutation`,w,{getPendingMeta(){return rd({startedTimeStamp:Date.now()})}}),C=R=>"force"in R,T=R=>"ifOlderThan"in R,P=(R,N,B={})=>(I,q)=>{const L=C(B)&&B.force,V=T(B)&&B.ifOlderThan,F=(Y=!0)=>{const $={forceRefetch:Y,subscribe:!1};return i.endpoints[R].initiate(N,$)},H=i.endpoints[R].select(N)(q());if(L)I(F());else if(V){const Y=H==null?void 0:H.fulfilledTimeStamp;if(!Y){I(F());return}(Number(new Date)-Number(new Date(Y)))/1e3>=V&&I(F())}else I(F(!1))};function D(R){return N=>{var B,I;return((I=(B=N==null?void 0:N.meta)==null?void 0:B.arg)==null?void 0:I.endpointName)===R}}function z(R,N){return{matchPending:Pd(ZS(R),D(N)),matchFulfilled:Pd(ws(R),D(N)),matchRejected:Pd(Cc(R),D(N))}}return{queryThunk:A,mutationThunk:k,infiniteQueryThunk:O,prefetch:P,updateQueryData:v,upsertQueryData:g,patchQueryData:h,buildMatchThunkActions:z}}function E2(e,{pages:t,pageParams:n},r){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n,r)}function Cj(e,{pages:t,pageParams:n},r){var i;return(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n,r)}function kj(e,t,n,r){return r_(n[e.meta.arg.endpointName][t],ws(e)?e.payload:void 0,Wv(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function mT(e){return $r(e)?Lr(e):e}function Lm(e,t,n){const r=e[t];r&&n(r)}function Yd(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function yT(e,t,n){const r=e[Yd(t)];r&&n(r)}var Bm={};function GG({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:i,apiUid:a,extractRehydrationInfo:l,hasRehydrationInfo:u},assertTagType:f,config:d}){const h=Jt(`${e}/resetApiState`);function p(D,z,R,N){var B;D[B=z.queryCacheKey]??(D[B]={status:Ja,endpointName:z.endpointName}),Lm(D,z.queryCacheKey,I=>{I.status=x2,I.requestId=R&&I.requestId?I.requestId:N.requestId,z.originalArgs!==void 0&&(I.originalArgs=z.originalArgs),I.startedTimeStamp=N.startedTimeStamp;const q=i[N.arg.endpointName];og(q)&&"direction"in z&&(I.direction=z.direction)})}function y(D,z,R,N){Lm(D,z.arg.queryCacheKey,B=>{if(B.requestId!==z.requestId&&!N)return;const{merge:I}=i[z.arg.endpointName];if(B.status=_d,I)if(B.data!==void 0){const{fulfilledTimeStamp:q,arg:L,baseQueryMeta:V,requestId:F}=z;let H=Oh(B.data,Y=>I(Y,R,{arg:L.originalArgs,baseQueryMeta:V,fulfilledTimeStamp:q,requestId:F}));B.data=H}else B.data=R;else B.data=i[z.arg.endpointName].structuralSharing??!0?JS($r(B.data)?NY(B.data):B.data,R):R;delete B.error,B.fulfilledTimeStamp=z.fulfilledTimeStamp})}const v=Wt({name:`${e}/queries`,initialState:Bm,reducers:{removeQueryResult:{reducer(D,{payload:{queryCacheKey:z}}){delete D[z]},prepare:bt()},cacheEntriesUpserted:{reducer(D,z){for(const R of z.payload){const{queryDescription:N,value:B}=R;p(D,N,!0,{arg:N,requestId:z.meta.requestId,startedTimeStamp:z.meta.timestamp}),y(D,{arg:N,requestId:z.meta.requestId,fulfilledTimeStamp:z.meta.timestamp,baseQueryMeta:{}},B,!0)}},prepare:D=>({payload:D.map(N=>{const{endpointName:B,arg:I,value:q}=N,L=i[B];return{queryDescription:{type:kh,endpointName:B,originalArgs:N.arg,queryCacheKey:r({queryArgs:I,endpointDefinition:L,endpointName:B})},value:q}}),meta:{[Zv]:!0,requestId:Jv(),timestamp:Date.now()}})},queryResultPatched:{reducer(D,{payload:{queryCacheKey:z,patches:R}}){Lm(D,z,N=>{N.data=Jk(N.data,R.concat())})},prepare:bt()}},extraReducers(D){D.addCase(t.pending,(z,{meta:R,meta:{arg:N}})=>{const B=_2(N);p(z,N,B,R)}).addCase(t.fulfilled,(z,{meta:R,payload:N})=>{const B=_2(R.arg);y(z,R,N,B)}).addCase(t.rejected,(z,{meta:{condition:R,arg:N,requestId:B},error:I,payload:q})=>{Lm(z,N.queryCacheKey,L=>{if(!R){if(L.requestId!==B)return;L.status=Ed,L.error=q??I}})}).addMatcher(u,(z,R)=>{const{queries:N}=l(R);for(const[B,I]of Object.entries(N))((I==null?void 0:I.status)===_d||(I==null?void 0:I.status)===Ed)&&(z[B]=I)})}}),g=Wt({name:`${e}/mutations`,initialState:Bm,reducers:{removeMutationResult:{reducer(D,{payload:z}){const R=Yd(z);R in D&&delete D[R]},prepare:bt()}},extraReducers(D){D.addCase(n.pending,(z,{meta:R,meta:{requestId:N,arg:B,startedTimeStamp:I}})=>{B.track&&(z[Yd(R)]={requestId:N,status:x2,endpointName:B.endpointName,startedTimeStamp:I})}).addCase(n.fulfilled,(z,{payload:R,meta:N})=>{N.arg.track&&yT(z,N,B=>{B.requestId===N.requestId&&(B.status=_d,B.data=R,B.fulfilledTimeStamp=N.fulfilledTimeStamp)})}).addCase(n.rejected,(z,{payload:R,error:N,meta:B})=>{B.arg.track&&yT(z,B,I=>{I.requestId===B.requestId&&(I.status=Ed,I.error=R??N)})}).addMatcher(u,(z,R)=>{const{mutations:N}=l(R);for(const[B,I]of Object.entries(N))((I==null?void 0:I.status)===_d||(I==null?void 0:I.status)===Ed)&&B!==(I==null?void 0:I.requestId)&&(z[B]=I)})}}),b={tags:{},keys:{}},w=Wt({name:`${e}/invalidation`,initialState:b,reducers:{updateProvidedBy:{reducer(D,z){var R,N,B;for(const{queryCacheKey:I,providedTags:q}of z.payload){S(D,I);for(const{type:L,id:V}of q){const F=(N=(R=D.tags)[L]??(R[L]={}))[B=V||"__internal_without_id"]??(N[B]=[]);F.includes(I)||F.push(I)}D.keys[I]=q}},prepare:bt()}},extraReducers(D){D.addCase(v.actions.removeQueryResult,(z,{payload:{queryCacheKey:R}})=>{S(z,R)}).addMatcher(u,(z,R)=>{var B,I,q;const{provided:N}=l(R);for(const[L,V]of Object.entries(N.tags??{}))for(const[F,H]of Object.entries(V)){const Y=(I=(B=z.tags)[L]??(B[L]={}))[q=F||"__internal_without_id"]??(I[q]=[]);for(const $ of H)Y.includes($)||Y.push($),z.keys[$]=N.keys[$]}}).addMatcher(Wa(ws(t),Wv(t)),(z,R)=>{M(z,[R])}).addMatcher(v.actions.cacheEntriesUpserted.match,(z,R)=>{const N=R.payload.map(({queryDescription:B,value:I})=>({type:"UNKNOWN",payload:I,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:B}}));M(z,N)})}});function S(D,z){var N;const R=mT(D.keys[z]??[]);for(const B of R){const I=B.type,q=B.id??"__internal_without_id",L=(N=D.tags[I])==null?void 0:N[q];L&&(D.tags[I][q]=mT(L).filter(V=>V!==z))}delete D.keys[z]}function M(D,z){const R=z.map(N=>{const B=kj(N,"providesTags",i,f),{queryCacheKey:I}=N.meta.arg;return{queryCacheKey:I,providedTags:B}});w.caseReducers.updateProvidedBy(D,w.actions.updateProvidedBy(R))}const A=Wt({name:`${e}/subscriptions`,initialState:Bm,reducers:{updateSubscriptionOptions(D,z){},unsubscribeQueryResult(D,z){},internal_getRTKQSubscriptions(){}}}),O=Wt({name:`${e}/internalSubscriptions`,initialState:Bm,reducers:{subscriptionsUpdated:{reducer(D,z){return Jk(D,z.payload)},prepare:bt()}}}),k=Wt({name:`${e}/config`,initialState:{online:$G(),focused:BG(),middlewareRegistered:!1,...d},reducers:{middlewareRegistered(D,{payload:z}){D.middlewareRegistered=D.middlewareRegistered==="conflict"||a!==z?"conflict":!0}},extraReducers:D=>{D.addCase(ig,z=>{z.online=!0}).addCase(n_,z=>{z.online=!1}).addCase(rg,z=>{z.focused=!0}).addCase(t_,z=>{z.focused=!1}).addMatcher(u,z=>({...z}))}}),C=FS({queries:v.reducer,mutations:g.reducer,provided:w.reducer,subscriptions:O.reducer,config:k.reducer}),T=(D,z)=>C(h.match(z)?void 0:D,z),P={...k.actions,...v.actions,...A.actions,...O.actions,...g.actions,...w.actions,resetApiState:h};return{reducer:T,actions:P}}var gi=Symbol.for("RTKQ/skipToken"),Tj={status:Ja},vT=Oh(Tj,()=>{}),gT=Oh(Tj,()=>{});function QG({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=A=>vT,i=A=>gT;return{buildQuerySelector:y,buildInfiniteQuerySelector:v,buildMutationSelector:g,selectInvalidatedBy:b,selectCachedArgsForQuery:w,selectApiState:l,selectQueries:u,selectMutations:d,selectQueryEntry:f,selectConfig:h};function a(A){return{...A,...cT(A.status)}}function l(A){return A[t]}function u(A){var O;return(O=l(A))==null?void 0:O.queries}function f(A,O){var k;return(k=u(A))==null?void 0:k[O]}function d(A){var O;return(O=l(A))==null?void 0:O.mutations}function h(A){var O;return(O=l(A))==null?void 0:O.config}function p(A,O,k){return C=>{if(C===gi)return n(r,k);const T=e({queryArgs:C,endpointDefinition:O,endpointName:A});return n(D=>f(D,T)??vT,k)}}function y(A,O){return p(A,O,a)}function v(A,O){const{infiniteQueryOptions:k}=O;function C(T){const P={...T,...cT(T.status)},{isLoading:D,isError:z,direction:R}=P,N=R==="forward",B=R==="backward";return{...P,hasNextPage:S(k,P.data,P.originalArgs),hasPreviousPage:M(k,P.data,P.originalArgs),isFetchingNextPage:D&&N,isFetchingPreviousPage:D&&B,isFetchNextPageError:z&&N,isFetchPreviousPageError:z&&B}}return p(A,O,C)}function g(){return A=>{let O;return typeof A=="object"?O=Yd(A)??gi:O=A,n(O===gi?i:T=>{var P,D;return((D=(P=l(T))==null?void 0:P.mutations)==null?void 0:D[O])??gT},a)}}function b(A,O){const k=A[t],C=new Set,T=w2(O,e_,Oj);for(const P of T){const D=k.provided.tags[P.type];if(!D)continue;let z=(P.id!==void 0?D[P.id]:Object.values(D).flat())??[];for(const R of z)C.add(R)}return Array.from(C.values()).flatMap(P=>{const D=k.queries[P];return D?{queryCacheKey:P,endpointName:D.endpointName,originalArgs:D.originalArgs}:[]})}function w(A,O){return w2(Object.values(u(A)),k=>(k==null?void 0:k.endpointName)===O&&k.status!==Ja,k=>k.originalArgs)}function S(A,O,k){return O?E2(A,O,k)!=null:!1}function M(A,O,k){return!O||!A.getPreviousPageParam?!1:Cj(A,O,k)!=null}}var zu=WeakMap?new WeakMap:void 0,bT=({endpointName:e,queryArgs:t})=>{let n="";const r=zu==null?void 0:zu.get(t);if(typeof r=="string")n=r;else{const i=JSON.stringify(t,(a,l)=>(l=typeof l=="bigint"?{$bigint:l.toString()}:l,l=Oc(l)?Object.keys(l).sort().reduce((u,f)=>(u[f]=l[f],u),{}):l,l));Oc(t)&&(zu==null||zu.set(t,i)),n=i}return`${e}(${n})`};function Pj(...e){return function(n){const r=Uy(d=>{var h;return(h=n.extractRehydrationInfo)==null?void 0:h.call(n,d,{reducerPath:n.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(d){let h=bT;if("serializeQueryArgs"in d.endpointDefinition){const p=d.endpointDefinition.serializeQueryArgs;h=y=>{const v=p(y);return typeof v=="string"?v:bT({...y,queryArgs:v})}}else n.serializeQueryArgs&&(h=n.serializeQueryArgs);return h(d)},tagTypes:[...n.tagTypes||[]]},a={endpointDefinitions:{},batch(d){d()},apiUid:Jv(),extractRehydrationInfo:r,hasRehydrationInfo:Uy(d=>r(d)!=null)},l={injectEndpoints:f,enhanceEndpoints({addTagTypes:d,endpoints:h}){if(d)for(const p of d)i.tagTypes.includes(p)||i.tagTypes.push(p);if(h)for(const[p,y]of Object.entries(h))typeof y=="function"?y(kc(a,p)):Object.assign(kc(a,p)||{},y);return l}},u=e.map(d=>d.init(l,i,a));function f(d){const h=d.endpoints({query:p=>({...p,type:kh}),mutation:p=>({...p,type:Ej}),infiniteQuery:p=>({...p,type:Aj})});for(const[p,y]of Object.entries(h)){if(d.overrideExisting!==!0&&p in a.endpointDefinitions){if(d.overrideExisting==="throw")throw new Error(Kn(39));continue}a.endpointDefinitions[p]=y;for(const v of u)v.injectEndpoint(p,y)}return l}return l.injectEndpoints({endpoints:n.endpoints})}}function s2e(){return function(){throw new Error(Kn(33))}}function Na(e,...t){return Object.assign(e,...t)}var ZG=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{const i=`${e.reducerPath}/subscriptions`;let a=null,l=null;const{updateSubscriptionOptions:u,unsubscribeQueryResult:f}=e.internalActions,d=(b,w)=>{if(u.match(w)){const{queryCacheKey:M,requestId:A,options:O}=w.payload,k=b.get(M);return k!=null&&k.has(A)&&k.set(A,O),!0}if(f.match(w)){const{queryCacheKey:M,requestId:A}=w.payload,O=b.get(M);return O&&O.delete(A),!0}if(e.internalActions.removeQueryResult.match(w))return b.delete(w.payload.queryCacheKey),!0;if(t.pending.match(w)){const{meta:{arg:M,requestId:A}}=w,O=Vy(b,M.queryCacheKey,S2);return M.subscribe&&O.set(A,M.subscriptionOptions??O.get(A)??{}),!0}let S=!1;if(t.rejected.match(w)){const{meta:{condition:M,arg:A,requestId:O}}=w;if(M&&A.subscribe){const k=Vy(b,A.queryCacheKey,S2);k.set(O,A.subscriptionOptions??k.get(O)??{}),S=!0}}return S},h=()=>n.currentSubscriptions,v={getSubscriptions:h,getSubscriptionCount:b=>{const S=h().get(b);return(S==null?void 0:S.size)??0},isRequestSubscribed:(b,w)=>{var M;const S=h();return!!((M=S==null?void 0:S.get(b))!=null&&M.get(w))}};function g(b){return JSON.parse(JSON.stringify(Object.fromEntries([...b].map(([w,S])=>[w,Object.fromEntries(S)]))))}return(b,w)=>{if(a||(a=g(n.currentSubscriptions)),e.util.resetApiState.match(b))return a={},n.currentSubscriptions.clear(),l=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(b))return[!1,v];const S=d(n.currentSubscriptions,b);let M=!0;if(S){l||(l=setTimeout(()=>{const k=g(n.currentSubscriptions),[,C]=ij(a,()=>k);w.next(e.internalActions.subscriptionsUpdated(C)),a=k,l=null},500));const A=typeof b.type=="string"&&!!b.type.startsWith(i),O=t.rejected.match(b)&&b.meta.condition&&!!b.meta.arg.subscribe;M=!A&&!O}return[M,!1]}},XG=2147483647/1e3-1,WG=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i,selectors:{selectQueryEntry:a,selectConfig:l},getRunningQueryThunk:u,mwApi:f})=>{const{removeQueryResult:d,unsubscribeQueryResult:h,cacheEntriesUpserted:p}=t.internalActions,y=Wa(h.match,n.fulfilled,n.rejected,p.match);function v(A){const O=i.currentSubscriptions.get(A);return O?O.size>0:!1}const g={};function b(A){var O;for(const k of A.values())(O=k==null?void 0:k.abort)==null||O.call(k)}const w=(A,O)=>{const k=O.getState(),C=l(k);if(y(A)){let T;if(p.match(A))T=A.payload.map(P=>P.queryDescription.queryCacheKey);else{const{queryCacheKey:P}=h.match(A)?A.payload:A.meta.arg;T=[P]}S(T,O,C)}if(t.util.resetApiState.match(A)){for(const[T,P]of Object.entries(g))P&&clearTimeout(P),delete g[T];b(i.runningQueries),b(i.runningMutations)}if(r.hasRehydrationInfo(A)){const{queries:T}=r.extractRehydrationInfo(A);S(Object.keys(T),O,C)}};function S(A,O,k){const C=O.getState();for(const T of A){const P=a(C,T);P!=null&&P.endpointName&&M(T,P.endpointName,O,k)}}function M(A,O,k,C){const T=kc(r,O),P=(T==null?void 0:T.keepUnusedDataFor)??C.keepUnusedDataFor;if(P===1/0)return;const D=Math.max(0,Math.min(P,XG));if(!v(A)){const z=g[A];z&&clearTimeout(z),g[A]=setTimeout(()=>{if(!v(A)){const R=a(k.getState(),A);if(R!=null&&R.endpointName){const N=k.dispatch(u(R.endpointName,R.originalArgs));N==null||N.abort()}k.dispatch(d({queryCacheKey:A}))}delete g[A]},D*1e3)}}return w},xT=new Error("Promise never resolved before cacheEntryRemoved."),JG=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:a,selectors:{selectQueryEntry:l,selectApiState:u}})=>{const f=v2(r),d=v2(i),h=ws(r,i),p={},{removeQueryResult:y,removeMutationResult:v,cacheEntriesUpserted:g}=e.internalActions;function b(k,C,T){const P=p[k];P!=null&&P.valueResolved&&(P.valueResolved({data:C,meta:T}),delete P.valueResolved)}function w(k){const C=p[k];C&&(delete p[k],C.cacheEntryRemoved())}function S(k){const{arg:C,requestId:T}=k.meta,{endpointName:P,originalArgs:D}=C;return[P,D,T]}const M=(k,C,T)=>{const P=A(k);function D(z,R,N,B){const I=l(T,R),q=l(C.getState(),R);!I&&q&&O(z,B,R,C,N)}if(r.pending.match(k)){const[z,R,N]=S(k);D(z,P,N,R)}else if(g.match(k))for(const{queryDescription:z,value:R}of k.payload){const{endpointName:N,originalArgs:B,queryCacheKey:I}=z;D(N,I,k.meta.requestId,B),b(I,R,{})}else if(i.pending.match(k)){if(C.getState()[t].mutations[P]){const[R,N,B]=S(k);O(R,N,P,C,B)}}else if(h(k))b(P,k.payload,k.meta.baseQueryMeta);else if(y.match(k)||v.match(k))w(P);else if(e.util.resetApiState.match(k))for(const z of Object.keys(p))w(z)};function A(k){return f(k)?k.meta.arg.queryCacheKey:d(k)?k.meta.arg.fixedCacheKey??k.meta.requestId:y.match(k)?k.payload.queryCacheKey:v.match(k)?Yd(k.payload):""}function O(k,C,T,P,D){const z=kc(n,k),R=z==null?void 0:z.onCacheEntryAdded;if(!R)return;const N={},B=new Promise(H=>{N.cacheEntryRemoved=H}),I=Promise.race([new Promise(H=>{N.valueResolved=H}),B.then(()=>{throw xT})]);I.catch(()=>{}),p[T]=N;const q=e.endpoints[k].select(Fy(z)?C:T),L=P.dispatch((H,Y,$)=>$),V={...P,getCacheEntry:()=>q(P.getState()),requestId:D,extra:L,updateCachedData:Fy(z)?H=>P.dispatch(e.util.updateQueryData(k,C,H)):void 0,cacheDataLoaded:I,cacheEntryRemoved:B},F=R(C,V);Promise.resolve(F).catch(H=>{if(H!==xT)throw H})}return M},eQ=({api:e,context:{apiUid:t},reducerPath:n})=>(r,i)=>{e.util.resetApiState.match(r)&&i.dispatch(e.internalActions.middlewareRegistered(t))},tQ=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:a,assertTagType:l,refetchQuery:u,internalState:f})=>{const{removeQueryResult:d}=a.internalActions,h=Wa(ws(r),Wv(r)),p=Wa(ws(i,r),Cc(i,r));let y=[],v=0;const g=(S,M)=>{(i.pending.match(S)||r.pending.match(S))&&v++,p(S)&&(v=Math.max(0,v-1)),h(S)?w(kj(S,"invalidatesTags",n,l),M):p(S)?w([],M):a.util.invalidateTags.match(S)&&w(r_(S.payload,void 0,void 0,void 0,void 0,l),M)};function b(){return v>0}function w(S,M){const A=M.getState(),O=A[e];if(y.push(...S),O.config.invalidationBehavior==="delayed"&&b())return;const k=y;if(y=[],k.length===0)return;const C=a.util.selectInvalidatedBy(A,k);t.batch(()=>{const T=Array.from(C.values());for(const{queryCacheKey:P}of T){const D=O.queries[P],z=Vy(f.currentSubscriptions,P,S2);D&&(z.size===0?M.dispatch(d({queryCacheKey:P})):D.status!==Ja&&M.dispatch(u(D)))}})}return g},nQ=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const{currentPolls:a,currentSubscriptions:l}=i,u=new Set;let f=null;const d=(w,S)=>{(n.internalActions.updateSubscriptionOptions.match(w)||n.internalActions.unsubscribeQueryResult.match(w))&&h(w.payload.queryCacheKey,S),(t.pending.match(w)||t.rejected.match(w)&&w.meta.condition)&&h(w.meta.arg.queryCacheKey,S),(t.fulfilled.match(w)||t.rejected.match(w)&&!w.meta.condition)&&p(w.meta.arg,S),n.util.resetApiState.match(w)&&(g(),f&&(clearTimeout(f),f=null),u.clear())};function h(w,S){u.add(w),f||(f=setTimeout(()=>{for(const M of u)y({queryCacheKey:M},S);u.clear(),f=null},0))}function p({queryCacheKey:w},S){const M=S.getState()[e],A=M.queries[w],O=l.get(w);if(!A||A.status===Ja)return;const{lowestPollingInterval:k,skipPollingIfUnfocused:C}=b(O);if(!Number.isFinite(k))return;const T=a.get(w);T!=null&&T.timeout&&(clearTimeout(T.timeout),T.timeout=void 0);const P=Date.now()+k;a.set(w,{nextPollTimestamp:P,pollingInterval:k,timeout:setTimeout(()=>{(M.config.focused||!C)&&S.dispatch(r(A)),p({queryCacheKey:w},S)},k)})}function y({queryCacheKey:w},S){const A=S.getState()[e].queries[w],O=l.get(w);if(!A||A.status===Ja)return;const{lowestPollingInterval:k}=b(O);if(!Number.isFinite(k)){v(w);return}const C=a.get(w),T=Date.now()+k;(!C||T<C.nextPollTimestamp)&&p({queryCacheKey:w},S)}function v(w){const S=a.get(w);S!=null&&S.timeout&&clearTimeout(S.timeout),a.delete(w)}function g(){for(const w of a.keys())v(w)}function b(w=new Map){let S=!1,M=Number.POSITIVE_INFINITY;for(const A of w.values())A.pollingInterval&&(M=Math.min(A.pollingInterval,M),S=A.skipPollingIfUnfocused||S);return{lowestPollingInterval:M,skipPollingIfUnfocused:S}}return d},rQ=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=ZS(n,r),a=Cc(n,r),l=ws(n,r),u={};return(d,h)=>{var p,y;if(i(d)){const{requestId:v,arg:{endpointName:g,originalArgs:b}}=d.meta,w=kc(t,g),S=w==null?void 0:w.onQueryStarted;if(S){const M={},A=new Promise((T,P)=>{M.resolve=T,M.reject=P});A.catch(()=>{}),u[v]=M;const O=e.endpoints[g].select(Fy(w)?b:v),k=h.dispatch((T,P,D)=>D),C={...h,getCacheEntry:()=>O(h.getState()),requestId:v,extra:k,updateCachedData:Fy(w)?T=>h.dispatch(e.util.updateQueryData(g,b,T)):void 0,queryFulfilled:A};S(b,C)}}else if(l(d)){const{requestId:v,baseQueryMeta:g}=d.meta;(p=u[v])==null||p.resolve({data:d.payload,meta:g}),delete u[v]}else if(a(d)){const{requestId:v,rejectedWithValue:g,baseQueryMeta:b}=d.meta;(y=u[v])==null||y.reject({error:d.payload??d.error,isUnhandledError:!g,meta:b}),delete u[v]}}},iQ=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:a}=n.internalActions,l=(f,d)=>{rg.match(f)&&u(d,"refetchOnFocus"),ig.match(f)&&u(d,"refetchOnReconnect")};function u(f,d){const h=f.getState()[e],p=h.queries,y=i.currentSubscriptions;t.batch(()=>{for(const v of y.keys()){const g=p[v],b=y.get(v);if(!b||!g)continue;const w=[...b.values()];(w.some(M=>M[d]===!0)||w.every(M=>M[d]===void 0)&&h.config[d])&&(b.size===0?f.dispatch(a({queryCacheKey:v})):g.status!==Ja&&f.dispatch(r(g)))}})}return l};function aQ(e){const{reducerPath:t,queryThunk:n,api:r,context:i,getInternalState:a}=e,{apiUid:l}=i,u={invalidateTags:Jt(`${t}/invalidateTags`)},f=y=>y.type.startsWith(`${t}/`),d=[eQ,WG,tQ,nQ,JG,rQ];return{middleware:y=>{let v=!1;const g=a(y.dispatch),b={...e,internalState:g,refetchQuery:p,isThisApiSliceAction:f,mwApi:y},w=d.map(A=>A(b)),S=ZG(b),M=iQ(b);return A=>O=>{if(!KS(O))return A(O);v||(v=!0,y.dispatch(r.internalActions.middlewareRegistered(l)));const k={...y,next:A},C=y.getState(),[T,P]=S(O,k,C);let D;if(T?D=A(O):D=P,y.getState()[t]&&(M(O,k,C),f(O)||i.hasRehydrationInfo(O)))for(const z of w)z(O,k,C);return D}},actions:u};function p(y){return e.api.endpoints[y.endpointName].initiate(y.originalArgs,{subscribe:!1,forceRefetch:!0})}}var wT=Symbol(),Nj=({createSelector:e=le}={})=>({name:wT,init(t,{baseQuery:n,tagTypes:r,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:l,refetchOnMountOrArgChange:u,refetchOnFocus:f,refetchOnReconnect:d,invalidationBehavior:h,onSchemaFailure:p,catchSchemaFailure:y,skipSchemaValidation:v},g){YY();const b=de=>de;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:ig,onOffline:n_,onFocus:rg,onFocusLost:t_},util:{}});const w=QG({serializeQueryArgs:a,reducerPath:i,createSelector:e}),{selectInvalidatedBy:S,selectCachedArgsForQuery:M,buildQuerySelector:A,buildInfiniteQuerySelector:O,buildMutationSelector:k}=w;Na(t.util,{selectInvalidatedBy:S,selectCachedArgsForQuery:M});const{queryThunk:C,infiniteQueryThunk:T,mutationThunk:P,patchQueryData:D,updateQueryData:z,upsertQueryData:R,prefetch:N,buildMatchThunkActions:B}=YG({baseQuery:n,reducerPath:i,context:g,api:t,serializeQueryArgs:a,assertTagType:b,selectors:w,onSchemaFailure:p,catchSchemaFailure:y,skipSchemaValidation:v}),{reducer:I,actions:q}=GG({context:g,queryThunk:C,mutationThunk:P,serializeQueryArgs:a,reducerPath:i,assertTagType:b,config:{refetchOnFocus:f,refetchOnReconnect:d,refetchOnMountOrArgChange:u,keepUnusedDataFor:l,reducerPath:i,invalidationBehavior:h}});Na(t.util,{patchQueryData:D,updateQueryData:z,upsertQueryData:R,prefetch:N,resetApiState:q.resetApiState,upsertQueryEntries:q.cacheEntriesUpserted}),Na(t.internalActions,q);const L=new WeakMap,V=de=>Vy(L,de,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:F,buildInitiateInfiniteQuery:H,buildInitiateMutation:Y,getRunningMutationThunk:$,getRunningMutationsThunk:K,getRunningQueriesThunk:J,getRunningQueryThunk:te}=KG({queryThunk:C,mutationThunk:P,infiniteQueryThunk:T,api:t,serializeQueryArgs:a,context:g,getInternalState:V});Na(t.util,{getRunningMutationThunk:$,getRunningMutationsThunk:K,getRunningQueryThunk:te,getRunningQueriesThunk:J});const{middleware:ce,actions:he}=aQ({reducerPath:i,context:g,queryThunk:C,mutationThunk:P,infiniteQueryThunk:T,api:t,assertTagType:b,selectors:w,getRunningQueryThunk:te,getInternalState:V});return Na(t.util,he),Na(t,{reducer:I,middleware:ce}),{name:wT,injectEndpoint(de,ie){var ge;const pe=(ge=t.endpoints)[de]??(ge[de]={});ag(ie)&&Na(pe,{name:de,select:A(de,ie),initiate:F(de,ie)},B(C,de)),HG(ie)&&Na(pe,{name:de,select:k(),initiate:Y(de)},B(P,de)),og(ie)&&Na(pe,{name:de,select:O(de,ie),initiate:H(de,ie)},B(C,de))}}}});Nj();function $m(e){return e.replace(e[0],e[0].toUpperCase())}var oQ="query",sQ="mutation",lQ="infinitequery";function uQ(e){return e.type===oQ}function cQ(e){return e.type===sQ}function Rj(e){return e.type===lQ}function id(e,...t){return Object.assign(e,...t)}var Nb=Symbol();function Rb(e){const t=E.useRef(e),n=E.useMemo(()=>JS(t.current,e),[e]);return E.useEffect(()=>{t.current!==n&&(t.current=n)},[n]),n}function Lu(e){const t=E.useRef(e);return E.useEffect(()=>{ic(t.current,e)||(t.current=e)},[e]),ic(t.current,e)?t.current:e}var fQ=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dQ=fQ(),hQ=()=>typeof navigator<"u"&&navigator.product==="ReactNative",pQ=hQ(),mQ=()=>dQ||pQ?E.useLayoutEffect:E.useEffect,yQ=mQ(),ST=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:xj.pending}:e;function Db(e,...t){const n={};return t.forEach(r=>{n[r]=e[r]}),n}var jb=["data","status","isLoading","isSuccess","isError","error"];function vQ({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:i},unstable__sideEffectsInRender:a,createSelector:l},serializeQueryArgs:u,context:f}){const d=a?C=>C():E.useEffect,h=C=>{var T,P;return(P=(T=C.current)==null?void 0:T.unsubscribe)==null?void 0:P.call(T)},p=f.endpointDefinitions;return{buildQueryHooks:A,buildInfiniteQueryHooks:O,buildMutationHook:k,usePrefetch:g};function y(C,T,P){if(T!=null&&T.endpointName&&C.isUninitialized){const{endpointName:I}=T,q=p[I];P!==gi&&u({queryArgs:T.originalArgs,endpointDefinition:q,endpointName:I})===u({queryArgs:P,endpointDefinition:q,endpointName:I})&&(T=void 0)}let D=C.isSuccess?C.data:T==null?void 0:T.data;D===void 0&&(D=C.data);const z=D!==void 0,R=C.isLoading,N=(!T||T.isLoading||T.isUninitialized)&&!z&&R,B=C.isSuccess||z&&(R&&!(T!=null&&T.isError)||C.isUninitialized);return{...C,data:D,currentData:C.data,isFetching:R,isLoading:N,isSuccess:B}}function v(C,T,P){if(T!=null&&T.endpointName&&C.isUninitialized){const{endpointName:I}=T,q=p[I];P!==gi&&u({queryArgs:T.originalArgs,endpointDefinition:q,endpointName:I})===u({queryArgs:P,endpointDefinition:q,endpointName:I})&&(T=void 0)}let D=C.isSuccess?C.data:T==null?void 0:T.data;D===void 0&&(D=C.data);const z=D!==void 0,R=C.isLoading,N=(!T||T.isLoading||T.isUninitialized)&&!z&&R,B=C.isSuccess||R&&z;return{...C,data:D,currentData:C.data,isFetching:R,isLoading:N,isSuccess:B}}function g(C,T){const P=n(),D=Lu(T);return E.useCallback((z,R)=>P(e.util.prefetch(C,z,{...D,...R})),[C,P,D])}function b(C,T,{refetchOnReconnect:P,refetchOnFocus:D,refetchOnMountOrArgChange:z,skip:R=!1,pollingInterval:N=0,skipPollingIfUnfocused:B=!1,...I}={}){const{initiate:q}=e.endpoints[C],L=n(),V=E.useRef(void 0);if(!V.current){const W=L(e.internalActions.internal_getRTKQSubscriptions());V.current=W}const F=Rb(R?gi:T),H=Lu({refetchOnReconnect:P,refetchOnFocus:D,pollingInterval:N,skipPollingIfUnfocused:B}),Y=I.initialPageParam,$=Lu(Y),K=I.refetchCachedPages,J=Lu(K),te=E.useRef(void 0);let{queryCacheKey:ce,requestId:he}=te.current||{},de=!1;ce&&he&&(de=V.current.isRequestSubscribed(ce,he));const ie=!de&&te.current!==void 0;return d(()=>{ie&&(te.current=void 0)},[ie]),d(()=>{var ge;const W=te.current;if(F===gi){W==null||W.unsubscribe(),te.current=void 0;return}const pe=(ge=te.current)==null?void 0:ge.subscriptionOptions;if(!W||W.arg!==F){W==null||W.unsubscribe();const ee=L(q(F,{subscriptionOptions:H,forceRefetch:z,...Rj(p[C])?{initialPageParam:$,refetchCachedPages:J}:{}}));te.current=ee}else H!==pe&&W.updateSubscriptionOptions(H)},[L,q,z,F,H,ie,$,J,C]),[te,L,q,H]}function w(C,T){return(D,{skip:z=!1,selectFromResult:R}={})=>{const{select:N}=e.endpoints[C],B=Rb(z?gi:D),I=E.useRef(void 0),q=E.useMemo(()=>l([N(B),(Y,$)=>$,Y=>B],T,{memoizeOptions:{resultEqualityCheck:ic}}),[N,B]),L=E.useMemo(()=>R?l([q],R,{devModeChecks:{identityFunctionCheck:"never"}}):q,[q,R]),V=r(Y=>L(Y,I.current),ic),F=i(),H=q(F.getState(),I.current);return yQ(()=>{I.current=H},[H]),V}}function S(C){E.useEffect(()=>()=>{h(C),C.current=void 0},[C])}function M(C){if(!C.current)throw new Error(Kn(38));return C.current.refetch()}function A(C){const T=(z,R={})=>{const[N]=b(C,z,R);return S(N),E.useMemo(()=>({refetch:()=>M(N)}),[N])},P=({refetchOnReconnect:z,refetchOnFocus:R,pollingInterval:N=0,skipPollingIfUnfocused:B=!1}={})=>{const{initiate:I}=e.endpoints[C],q=n(),[L,V]=E.useState(Nb),F=E.useRef(void 0),H=Lu({refetchOnReconnect:z,refetchOnFocus:R,pollingInterval:N,skipPollingIfUnfocused:B});d(()=>{var te,ce;const J=(te=F.current)==null?void 0:te.subscriptionOptions;H!==J&&((ce=F.current)==null||ce.updateSubscriptionOptions(H))},[H]);const Y=E.useRef(H);d(()=>{Y.current=H},[H]);const $=E.useCallback(function(J,te=!1){let ce;return t(()=>{h(F),F.current=ce=q(I(J,{subscriptionOptions:Y.current,forceRefetch:!te})),V(J)}),ce},[q,I]),K=E.useCallback(()=>{var J,te;(J=F.current)!=null&&J.queryCacheKey&&q(e.internalActions.removeQueryResult({queryCacheKey:(te=F.current)==null?void 0:te.queryCacheKey}))},[q]);return E.useEffect(()=>()=>{h(F)},[]),E.useEffect(()=>{L!==Nb&&!F.current&&$(L,!0)},[L,$]),E.useMemo(()=>[$,L,{reset:K}],[$,L,K])},D=w(C,y);return{useQueryState:D,useQuerySubscription:T,useLazyQuerySubscription:P,useLazyQuery(z){const[R,N,{reset:B}]=P(z),I=D(N,{...z,skip:N===Nb}),q=E.useMemo(()=>({lastArg:N}),[N]);return E.useMemo(()=>[R,{...I,reset:B},q],[R,I,B,q])},useQuery(z,R){const N=T(z,R),B=D(z,{selectFromResult:z===gi||R!=null&&R.skip?void 0:ST,...R}),I=Db(B,...jb);return E.useDebugValue(I),E.useMemo(()=>({...B,...N}),[B,N])}}}function O(C){const T=(D,z={})=>{const[R,N,B,I]=b(C,D,z),q=E.useRef(I);d(()=>{q.current=I},[I]);const L=z.refetchCachedPages,V=Lu(L),F=E.useCallback(function($,K){let J;return t(()=>{h(R),R.current=J=N(B($,{subscriptionOptions:q.current,direction:K}))}),J},[R,N,B]);S(R);const H=Rb(z.skip?gi:D),Y=E.useCallback($=>{if(!R.current)throw new Error(Kn(38));const K={refetchCachedPages:($==null?void 0:$.refetchCachedPages)??V};return R.current.refetch(K)},[R,V]);return E.useMemo(()=>({trigger:F,refetch:Y,fetchNextPage:()=>F(H,"forward"),fetchPreviousPage:()=>F(H,"backward")}),[Y,F,H])},P=w(C,v);return{useInfiniteQueryState:P,useInfiniteQuerySubscription:T,useInfiniteQuery(D,z){const{refetch:R,fetchNextPage:N,fetchPreviousPage:B}=T(D,z),I=P(D,{selectFromResult:D===gi||z!=null&&z.skip?void 0:ST,...z}),q=Db(I,...jb,"hasNextPage","hasPreviousPage");return E.useDebugValue(q),E.useMemo(()=>({...I,fetchNextPage:N,fetchPreviousPage:B,refetch:R}),[I,N,B,R])}}}function k(C){return({selectFromResult:T,fixedCacheKey:P}={})=>{const{select:D,initiate:z}=e.endpoints[C],R=n(),[N,B]=E.useState();E.useEffect(()=>()=>{N!=null&&N.arg.fixedCacheKey||N==null||N.reset()},[N]);const I=E.useCallback(function(J){const te=R(z(J,{fixedCacheKey:P}));return B(te),te},[R,z,P]),{requestId:q}=N||{},L=E.useMemo(()=>D({fixedCacheKey:P,requestId:N==null?void 0:N.requestId}),[P,N,D]),V=E.useMemo(()=>T?l([L],T):L,[T,L]),F=r(V,ic),H=P==null?N==null?void 0:N.arg.originalArgs:void 0,Y=E.useCallback(()=>{t(()=>{N&&B(void 0),P&&R(e.internalActions.removeMutationResult({requestId:q,fixedCacheKey:P}))})},[R,P,N,q]),$=Db(F,...jb,"endpointName");E.useDebugValue($);const K=E.useMemo(()=>({...F,originalArgs:H,reset:Y}),[F,H,Y]);return E.useMemo(()=>[I,K],[I,K])}}}var gQ=Symbol(),bQ=({batch:e=IU,hooks:t={useDispatch:NU,useSelector:jU,useStore:u5},createSelector:n=le,unstable__sideEffectsInRender:r=!1,...i}={})=>({name:gQ,init(a,{serializeQueryArgs:l},u){const f=a,{buildQueryHooks:d,buildInfiniteQueryHooks:h,buildMutationHook:p,usePrefetch:y}=vQ({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:l,context:u});return id(f,{usePrefetch:y}),id(u,{batch:e}),{injectEndpoint(v,g){if(uQ(g)){const{useQuery:b,useLazyQuery:w,useLazyQuerySubscription:S,useQueryState:M,useQuerySubscription:A}=d(v);id(f.endpoints[v],{useQuery:b,useLazyQuery:w,useLazyQuerySubscription:S,useQueryState:M,useQuerySubscription:A}),a[`use${$m(v)}Query`]=b,a[`useLazy${$m(v)}Query`]=w}if(cQ(g)){const b=p(v);id(f.endpoints[v],{useMutation:b}),a[`use${$m(v)}Mutation`]=b}else if(Rj(g)){const{useInfiniteQuery:b,useInfiniteQuerySubscription:w,useInfiniteQueryState:S}=h(v);id(f.endpoints[v],{useInfiniteQuery:b,useInfiniteQuerySubscription:w,useInfiniteQueryState:S}),a[`use${$m(v)}InfiniteQuery`]=b}}}}}),l2e=Pj(Nj(),bQ());function mn(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=mn(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var xQ={value:()=>{}};function sg(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new hy(n)}function hy(e){this._=e}function wQ(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}hy.prototype=sg.prototype={constructor:hy,on:function(e,t){var n=this._,r=wQ(e+"",n),i,a=-1,l=r.length;if(arguments.length<2){for(;++a<l;)if((i=(e=r[a]).type)&&(i=SQ(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<l;)if(i=(e=r[a]).type)n[i]=_T(n[i],e.name,t);else if(t==null)for(i in n)n[i]=_T(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new hy(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function SQ(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function _T(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=xQ,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var A2="http://www.w3.org/1999/xhtml";const ET={svg:"http://www.w3.org/2000/svg",xhtml:A2,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function lg(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ET.hasOwnProperty(t)?{space:ET[t],local:e}:e}function _Q(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===A2&&t.documentElement.namespaceURI===A2?t.createElement(e):t.createElementNS(n,e)}}function EQ(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Dj(e){var t=lg(e);return(t.local?EQ:_Q)(t)}function AQ(){}function i_(e){return e==null?AQ:function(){return this.querySelector(e)}}function OQ(e){typeof e!="function"&&(e=i_(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],l=a.length,u=r[i]=new Array(l),f,d,h=0;h<l;++h)(f=a[h])&&(d=e.call(f,f.__data__,h,a))&&("__data__"in f&&(d.__data__=f.__data__),u[h]=d);return new qr(r,this._parents)}function MQ(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function CQ(){return[]}function jj(e){return e==null?CQ:function(){return this.querySelectorAll(e)}}function kQ(e){return function(){return MQ(e.apply(this,arguments))}}function TQ(e){typeof e=="function"?e=kQ(e):e=jj(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var l=t[a],u=l.length,f,d=0;d<u;++d)(f=l[d])&&(r.push(e.call(f,f.__data__,d,l)),i.push(f));return new qr(r,i)}function Ij(e){return function(){return this.matches(e)}}function zj(e){return function(t){return t.matches(e)}}var PQ=Array.prototype.find;function NQ(e){return function(){return PQ.call(this.children,e)}}function RQ(){return this.firstElementChild}function DQ(e){return this.select(e==null?RQ:NQ(typeof e=="function"?e:zj(e)))}var jQ=Array.prototype.filter;function IQ(){return Array.from(this.children)}function zQ(e){return function(){return jQ.call(this.children,e)}}function LQ(e){return this.selectAll(e==null?IQ:zQ(typeof e=="function"?e:zj(e)))}function BQ(e){typeof e!="function"&&(e=Ij(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],l=a.length,u=r[i]=[],f,d=0;d<l;++d)(f=a[d])&&e.call(f,f.__data__,d,a)&&u.push(f);return new qr(r,this._parents)}function Lj(e){return new Array(e.length)}function $Q(){return new qr(this._enter||this._groups.map(Lj),this._parents)}function Ky(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ky.prototype={constructor:Ky,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function UQ(e){return function(){return e}}function qQ(e,t,n,r,i,a){for(var l=0,u,f=t.length,d=a.length;l<d;++l)(u=t[l])?(u.__data__=a[l],r[l]=u):n[l]=new Ky(e,a[l]);for(;l<f;++l)(u=t[l])&&(i[l]=u)}function HQ(e,t,n,r,i,a,l){var u,f,d=new Map,h=t.length,p=a.length,y=new Array(h),v;for(u=0;u<h;++u)(f=t[u])&&(y[u]=v=l.call(f,f.__data__,u,t)+"",d.has(v)?i[u]=f:d.set(v,f));for(u=0;u<p;++u)v=l.call(e,a[u],u,a)+"",(f=d.get(v))?(r[u]=f,f.__data__=a[u],d.delete(v)):n[u]=new Ky(e,a[u]);for(u=0;u<h;++u)(f=t[u])&&d.get(y[u])===f&&(i[u]=f)}function VQ(e){return e.__data__}function FQ(e,t){if(!arguments.length)return Array.from(this,VQ);var n=t?HQ:qQ,r=this._parents,i=this._groups;typeof e!="function"&&(e=UQ(e));for(var a=i.length,l=new Array(a),u=new Array(a),f=new Array(a),d=0;d<a;++d){var h=r[d],p=i[d],y=p.length,v=KQ(e.call(h,h&&h.__data__,d,r)),g=v.length,b=u[d]=new Array(g),w=l[d]=new Array(g),S=f[d]=new Array(y);n(h,p,b,w,S,v,t);for(var M=0,A=0,O,k;M<g;++M)if(O=b[M]){for(M>=A&&(A=M+1);!(k=w[A])&&++A<g;);O._next=k||null}}return l=new qr(l,r),l._enter=u,l._exit=f,l}function KQ(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function YQ(){return new qr(this._exit||this._groups.map(Lj),this._parents)}function GQ(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function QQ(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,l=Math.min(i,a),u=new Array(i),f=0;f<l;++f)for(var d=n[f],h=r[f],p=d.length,y=u[f]=new Array(p),v,g=0;g<p;++g)(v=d[g]||h[g])&&(y[g]=v);for(;f<i;++f)u[f]=n[f];return new qr(u,this._parents)}function ZQ(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],l;--i>=0;)(l=r[i])&&(a&&l.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(l,a),a=l);return this}function XQ(e){e||(e=WQ);function t(p,y){return p&&y?e(p.__data__,y.__data__):!p-!y}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var l=n[a],u=l.length,f=i[a]=new Array(u),d,h=0;h<u;++h)(d=l[h])&&(f[h]=d);f.sort(t)}return new qr(i,this._parents).order()}function WQ(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function JQ(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function eZ(){return Array.from(this)}function tZ(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var l=r[i];if(l)return l}return null}function nZ(){let e=0;for(const t of this)++e;return e}function rZ(){return!this.node()}function iZ(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,l=i.length,u;a<l;++a)(u=i[a])&&e.call(u,u.__data__,a,i);return this}function aZ(e){return function(){this.removeAttribute(e)}}function oZ(e){return function(){this.removeAttributeNS(e.space,e.local)}}function sZ(e,t){return function(){this.setAttribute(e,t)}}function lZ(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function uZ(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function cZ(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function fZ(e,t){var n=lg(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?oZ:aZ:typeof t=="function"?n.local?cZ:uZ:n.local?lZ:sZ)(n,t))}function Bj(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function dZ(e){return function(){this.style.removeProperty(e)}}function hZ(e,t,n){return function(){this.style.setProperty(e,t,n)}}function pZ(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function mZ(e,t,n){return arguments.length>1?this.each((t==null?dZ:typeof t=="function"?pZ:hZ)(e,t,n??"")):Tc(this.node(),e)}function Tc(e,t){return e.style.getPropertyValue(t)||Bj(e).getComputedStyle(e,null).getPropertyValue(t)}function yZ(e){return function(){delete this[e]}}function vZ(e,t){return function(){this[e]=t}}function gZ(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function bZ(e,t){return arguments.length>1?this.each((t==null?yZ:typeof t=="function"?gZ:vZ)(e,t)):this.node()[e]}function $j(e){return e.trim().split(/^|\s+/)}function a_(e){return e.classList||new Uj(e)}function Uj(e){this._node=e,this._names=$j(e.getAttribute("class")||"")}Uj.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function qj(e,t){for(var n=a_(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Hj(e,t){for(var n=a_(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function xZ(e){return function(){qj(this,e)}}function wZ(e){return function(){Hj(this,e)}}function SZ(e,t){return function(){(t.apply(this,arguments)?qj:Hj)(this,e)}}function _Z(e,t){var n=$j(e+"");if(arguments.length<2){for(var r=a_(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?SZ:t?xZ:wZ)(n,t))}function EZ(){this.textContent=""}function AZ(e){return function(){this.textContent=e}}function OZ(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function MZ(e){return arguments.length?this.each(e==null?EZ:(typeof e=="function"?OZ:AZ)(e)):this.node().textContent}function CZ(){this.innerHTML=""}function kZ(e){return function(){this.innerHTML=e}}function TZ(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function PZ(e){return arguments.length?this.each(e==null?CZ:(typeof e=="function"?TZ:kZ)(e)):this.node().innerHTML}function NZ(){this.nextSibling&&this.parentNode.appendChild(this)}function RZ(){return this.each(NZ)}function DZ(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jZ(){return this.each(DZ)}function IZ(e){var t=typeof e=="function"?e:Dj(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function zZ(){return null}function LZ(e,t){var n=typeof e=="function"?e:Dj(e),r=t==null?zZ:typeof t=="function"?t:i_(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function BZ(){var e=this.parentNode;e&&e.removeChild(this)}function $Z(){return this.each(BZ)}function UZ(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function qZ(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function HZ(e){return this.select(e?qZ:UZ)}function VZ(e){return arguments.length?this.property("__data__",e):this.node().__data__}function FZ(e){return function(t){e.call(this,t,this.__data__)}}function KZ(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function YZ(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function GZ(e,t,n){return function(){var r=this.__on,i,a=FZ(t);if(r){for(var l=0,u=r.length;l<u;++l)if((i=r[l]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function QZ(e,t,n){var r=KZ(e+""),i,a=r.length,l;if(arguments.length<2){var u=this.node().__on;if(u){for(var f=0,d=u.length,h;f<d;++f)for(i=0,h=u[f];i<a;++i)if((l=r[i]).type===h.type&&l.name===h.name)return h.value}return}for(u=t?GZ:YZ,i=0;i<a;++i)this.each(u(r[i],t,n));return this}function Vj(e,t,n){var r=Bj(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function ZZ(e,t){return function(){return Vj(this,e,t)}}function XZ(e,t){return function(){return Vj(this,e,t.apply(this,arguments))}}function WZ(e,t){return this.each((typeof t=="function"?XZ:ZZ)(e,t))}function*JZ(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,l;i<a;++i)(l=r[i])&&(yield l)}var Fj=[null];function qr(e,t){this._groups=e,this._parents=t}function Th(){return new qr([[document.documentElement]],Fj)}function eX(){return this}qr.prototype=Th.prototype={constructor:qr,select:OQ,selectAll:TQ,selectChild:DQ,selectChildren:LQ,filter:BQ,data:FQ,enter:$Q,exit:YQ,join:GQ,merge:QQ,selection:eX,order:ZQ,sort:XQ,call:JQ,nodes:eZ,node:tZ,size:nZ,empty:rZ,each:iZ,attr:fZ,style:mZ,property:bZ,classed:_Z,text:MZ,html:PZ,raise:RZ,lower:jZ,append:IZ,insert:LZ,remove:$Z,clone:HZ,datum:VZ,on:QZ,dispatch:WZ,[Symbol.iterator]:JZ};function jr(e){return typeof e=="string"?new qr([[document.querySelector(e)]],[document.documentElement]):new qr([[e]],Fj)}function tX(e){let t;for(;t=e.sourceEvent;)e=t;return e}function xi(e,t){if(e=tX(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const nX={passive:!1},Gd={capture:!0,passive:!1};function Ib(e){e.stopImmediatePropagation()}function oc(e){e.preventDefault(),e.stopImmediatePropagation()}function Kj(e){var t=e.document.documentElement,n=jr(e).on("dragstart.drag",oc,Gd);"onselectstart"in t?n.on("selectstart.drag",oc,Gd):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Yj(e,t){var n=e.document.documentElement,r=jr(e).on("dragstart.drag",null);t&&(r.on("click.drag",oc,Gd),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Um=e=>()=>e;function O2(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:l,y:u,dx:f,dy:d,dispatch:h}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:l,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:f,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:h}})}O2.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function rX(e){return!e.ctrlKey&&!e.button}function iX(){return this.parentNode}function aX(e,t){return t??{x:e.x,y:e.y}}function oX(){return navigator.maxTouchPoints||"ontouchstart"in this}function Gj(){var e=rX,t=iX,n=aX,r=oX,i={},a=sg("start","drag","end"),l=0,u,f,d,h,p=0;function y(O){O.on("mousedown.drag",v).filter(r).on("touchstart.drag",w).on("touchmove.drag",S,nX).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(O,k){if(!(h||!e.call(this,O,k))){var C=A(this,t.call(this,O,k),O,k,"mouse");C&&(jr(O.view).on("mousemove.drag",g,Gd).on("mouseup.drag",b,Gd),Kj(O.view),Ib(O),d=!1,u=O.clientX,f=O.clientY,C("start",O))}}function g(O){if(oc(O),!d){var k=O.clientX-u,C=O.clientY-f;d=k*k+C*C>p}i.mouse("drag",O)}function b(O){jr(O.view).on("mousemove.drag mouseup.drag",null),Yj(O.view,d),oc(O),i.mouse("end",O)}function w(O,k){if(e.call(this,O,k)){var C=O.changedTouches,T=t.call(this,O,k),P=C.length,D,z;for(D=0;D<P;++D)(z=A(this,T,O,k,C[D].identifier,C[D]))&&(Ib(O),z("start",O,C[D]))}}function S(O){var k=O.changedTouches,C=k.length,T,P;for(T=0;T<C;++T)(P=i[k[T].identifier])&&(oc(O),P("drag",O,k[T]))}function M(O){var k=O.changedTouches,C=k.length,T,P;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),T=0;T<C;++T)(P=i[k[T].identifier])&&(Ib(O),P("end",O,k[T]))}function A(O,k,C,T,P,D){var z=a.copy(),R=xi(D||C,k),N,B,I;if((I=n.call(O,new O2("beforestart",{sourceEvent:C,target:y,identifier:P,active:l,x:R[0],y:R[1],dx:0,dy:0,dispatch:z}),T))!=null)return N=I.x-R[0]||0,B=I.y-R[1]||0,function q(L,V,F){var H=R,Y;switch(L){case"start":i[P]=q,Y=l++;break;case"end":delete i[P],--l;case"drag":R=xi(F||V,k),Y=l;break}z.call(L,O,new O2(L,{sourceEvent:V,subject:I,target:y,identifier:P,active:Y,x:R[0]+N,y:R[1]+B,dx:R[0]-H[0],dy:R[1]-H[1],dispatch:z}),T)}}return y.filter=function(O){return arguments.length?(e=typeof O=="function"?O:Um(!!O),y):e},y.container=function(O){return arguments.length?(t=typeof O=="function"?O:Um(O),y):t},y.subject=function(O){return arguments.length?(n=typeof O=="function"?O:Um(O),y):n},y.touchable=function(O){return arguments.length?(r=typeof O=="function"?O:Um(!!O),y):r},y.on=function(){var O=a.on.apply(a,arguments);return O===a?y:O},y.clickDistance=function(O){return arguments.length?(p=(O=+O)*O,y):Math.sqrt(p)},y}function o_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Qj(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ph(){}var Qd=.7,Yy=1/Qd,sc="\\s*([+-]?\\d+)\\s*",Zd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sX=/^#([0-9a-f]{3,8})$/,lX=new RegExp(`^rgb\\(${sc},${sc},${sc}\\)$`),uX=new RegExp(`^rgb\\(${Xi},${Xi},${Xi}\\)$`),cX=new RegExp(`^rgba\\(${sc},${sc},${sc},${Zd}\\)$`),fX=new RegExp(`^rgba\\(${Xi},${Xi},${Xi},${Zd}\\)$`),dX=new RegExp(`^hsl\\(${Zd},${Xi},${Xi}\\)$`),hX=new RegExp(`^hsla\\(${Zd},${Xi},${Xi},${Zd}\\)$`),AT={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};o_(Ph,Dl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:OT,formatHex:OT,formatHex8:pX,formatHsl:mX,formatRgb:MT,toString:MT});function OT(){return this.rgb().formatHex()}function pX(){return this.rgb().formatHex8()}function mX(){return Zj(this).formatHsl()}function MT(){return this.rgb().formatRgb()}function Dl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sX.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?CT(t):n===3?new Er(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?qm(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?qm(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=lX.exec(e))?new Er(t[1],t[2],t[3],1):(t=uX.exec(e))?new Er(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=cX.exec(e))?qm(t[1],t[2],t[3],t[4]):(t=fX.exec(e))?qm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=dX.exec(e))?PT(t[1],t[2]/100,t[3]/100,1):(t=hX.exec(e))?PT(t[1],t[2]/100,t[3]/100,t[4]):AT.hasOwnProperty(e)?CT(AT[e]):e==="transparent"?new Er(NaN,NaN,NaN,0):null}function CT(e){return new Er(e>>16&255,e>>8&255,e&255,1)}function qm(e,t,n,r){return r<=0&&(e=t=n=NaN),new Er(e,t,n,r)}function yX(e){return e instanceof Ph||(e=Dl(e)),e?(e=e.rgb(),new Er(e.r,e.g,e.b,e.opacity)):new Er}function M2(e,t,n,r){return arguments.length===1?yX(e):new Er(e,t,n,r??1)}function Er(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}o_(Er,M2,Qj(Ph,{brighter(e){return e=e==null?Yy:Math.pow(Yy,e),new Er(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qd:Math.pow(Qd,e),new Er(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Er(_l(this.r),_l(this.g),_l(this.b),Gy(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:kT,formatHex:kT,formatHex8:vX,formatRgb:TT,toString:TT}));function kT(){return`#${ll(this.r)}${ll(this.g)}${ll(this.b)}`}function vX(){return`#${ll(this.r)}${ll(this.g)}${ll(this.b)}${ll((isNaN(this.opacity)?1:this.opacity)*255)}`}function TT(){const e=Gy(this.opacity);return`${e===1?"rgb(":"rgba("}${_l(this.r)}, ${_l(this.g)}, ${_l(this.b)}${e===1?")":`, ${e})`}`}function Gy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _l(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ll(e){return e=_l(e),(e<16?"0":"")+e.toString(16)}function PT(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Si(e,t,n,r)}function Zj(e){if(e instanceof Si)return new Si(e.h,e.s,e.l,e.opacity);if(e instanceof Ph||(e=Dl(e)),!e)return new Si;if(e instanceof Si)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),l=NaN,u=a-i,f=(a+i)/2;return u?(t===a?l=(n-r)/u+(n<r)*6:n===a?l=(r-t)/u+2:l=(t-n)/u+4,u/=f<.5?a+i:2-a-i,l*=60):u=f>0&&f<1?0:l,new Si(l,u,f,e.opacity)}function gX(e,t,n,r){return arguments.length===1?Zj(e):new Si(e,t,n,r??1)}function Si(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}o_(Si,gX,Qj(Ph,{brighter(e){return e=e==null?Yy:Math.pow(Yy,e),new Si(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qd:Math.pow(Qd,e),new Si(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Er(zb(e>=240?e-240:e+120,i,r),zb(e,i,r),zb(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Si(NT(this.h),Hm(this.s),Hm(this.l),Gy(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Gy(this.opacity);return`${e===1?"hsl(":"hsla("}${NT(this.h)}, ${Hm(this.s)*100}%, ${Hm(this.l)*100}%${e===1?")":`, ${e})`}`}}));function NT(e){return e=(e||0)%360,e<0?e+360:e}function Hm(e){return Math.max(0,Math.min(1,e||0))}function zb(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const s_=e=>()=>e;function bX(e,t){return function(n){return e+n*t}}function xX(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function wX(e){return(e=+e)==1?Xj:function(t,n){return n-t?xX(t,n,e):s_(isNaN(t)?n:t)}}function Xj(e,t){var n=t-e;return n?bX(e,n):s_(isNaN(e)?t:e)}const Qy=(function e(t){var n=wX(t);function r(i,a){var l=n((i=M2(i)).r,(a=M2(a)).r),u=n(i.g,a.g),f=n(i.b,a.b),d=Xj(i.opacity,a.opacity);return function(h){return i.r=l(h),i.g=u(h),i.b=f(h),i.opacity=d(h),i+""}}return r.gamma=e,r})(1);function SX(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function _X(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function EX(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),l;for(l=0;l<r;++l)i[l]=Ka(e[l],t[l]);for(;l<n;++l)a[l]=t[l];return function(u){for(l=0;l<r;++l)a[l]=i[l](u);return a}}function AX(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function wi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function OX(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Ka(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var C2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lb=new RegExp(C2.source,"g");function MX(e){return function(){return e}}function CX(e){return function(t){return e(t)+""}}function Wj(e,t){var n=C2.lastIndex=Lb.lastIndex=0,r,i,a,l=-1,u=[],f=[];for(e=e+"",t=t+"";(r=C2.exec(e))&&(i=Lb.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),u[l]?u[l]+=a:u[++l]=a),(r=r[0])===(i=i[0])?u[l]?u[l]+=i:u[++l]=i:(u[++l]=null,f.push({i:l,x:wi(r,i)})),n=Lb.lastIndex;return n<t.length&&(a=t.slice(n),u[l]?u[l]+=a:u[++l]=a),u.length<2?f[0]?CX(f[0].x):MX(t):(t=f.length,function(d){for(var h=0,p;h<t;++h)u[(p=f[h]).i]=p.x(d);return u.join("")})}function Ka(e,t){var n=typeof t,r;return t==null||n==="boolean"?s_(t):(n==="number"?wi:n==="string"?(r=Dl(t))?(t=r,Qy):Wj:t instanceof Dl?Qy:t instanceof Date?AX:_X(t)?SX:Array.isArray(t)?EX:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?OX:wi)(e,t)}function l_(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var RT=180/Math.PI,k2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Jj(e,t,n,r,i,a){var l,u,f;return(l=Math.sqrt(e*e+t*t))&&(e/=l,t/=l),(f=e*n+t*r)&&(n-=e*f,r-=t*f),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,f/=u),e*r<t*n&&(e=-e,t=-t,f=-f,l=-l),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*RT,skewX:Math.atan(f)*RT,scaleX:l,scaleY:u}}var Vm;function kX(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?k2:Jj(t.a,t.b,t.c,t.d,t.e,t.f)}function TX(e){return e==null||(Vm||(Vm=document.createElementNS("http://www.w3.org/2000/svg","g")),Vm.setAttribute("transform",e),!(e=Vm.transform.baseVal.consolidate()))?k2:(e=e.matrix,Jj(e.a,e.b,e.c,e.d,e.e,e.f))}function eI(e,t,n,r){function i(d){return d.length?d.pop()+" ":""}function a(d,h,p,y,v,g){if(d!==p||h!==y){var b=v.push("translate(",null,t,null,n);g.push({i:b-4,x:wi(d,p)},{i:b-2,x:wi(h,y)})}else(p||y)&&v.push("translate("+p+t+y+n)}function l(d,h,p,y){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),y.push({i:p.push(i(p)+"rotate(",null,r)-2,x:wi(d,h)})):h&&p.push(i(p)+"rotate("+h+r)}function u(d,h,p,y){d!==h?y.push({i:p.push(i(p)+"skewX(",null,r)-2,x:wi(d,h)}):h&&p.push(i(p)+"skewX("+h+r)}function f(d,h,p,y,v,g){if(d!==p||h!==y){var b=v.push(i(v)+"scale(",null,",",null,")");g.push({i:b-4,x:wi(d,p)},{i:b-2,x:wi(h,y)})}else(p!==1||y!==1)&&v.push(i(v)+"scale("+p+","+y+")")}return function(d,h){var p=[],y=[];return d=e(d),h=e(h),a(d.translateX,d.translateY,h.translateX,h.translateY,p,y),l(d.rotate,h.rotate,p,y),u(d.skewX,h.skewX,p,y),f(d.scaleX,d.scaleY,h.scaleX,h.scaleY,p,y),d=h=null,function(v){for(var g=-1,b=y.length,w;++g<b;)p[(w=y[g]).i]=w.x(v);return p.join("")}}}var PX=eI(kX,"px, ","px)","deg)"),NX=eI(TX,", ",")",")"),RX=1e-12;function DT(e){return((e=Math.exp(e))+1/e)/2}function DX(e){return((e=Math.exp(e))-1/e)/2}function jX(e){return((e=Math.exp(2*e))-1)/(e+1)}const py=(function e(t,n,r){function i(a,l){var u=a[0],f=a[1],d=a[2],h=l[0],p=l[1],y=l[2],v=h-u,g=p-f,b=v*v+g*g,w,S;if(b<RX)S=Math.log(y/d)/t,w=function(T){return[u+T*v,f+T*g,d*Math.exp(t*T*S)]};else{var M=Math.sqrt(b),A=(y*y-d*d+r*b)/(2*d*n*M),O=(y*y-d*d-r*b)/(2*y*n*M),k=Math.log(Math.sqrt(A*A+1)-A),C=Math.log(Math.sqrt(O*O+1)-O);S=(C-k)/t,w=function(T){var P=T*S,D=DT(k),z=d/(n*M)*(D*jX(t*P+k)-DX(k));return[u+z*v,f+z*g,d*D/DT(t*P+k)]}}return w.duration=S*1e3*t/Math.SQRT2,w}return i.rho=function(a){var l=Math.max(.001,+a),u=l*l,f=u*u;return e(l,u,f)},i})(Math.SQRT2,2,4);function IX(e,t){t===void 0&&(t=e,e=Ka);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(l){var u=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return a[u](l-u)}}var Pc=0,Ad=0,ad=0,tI=1e3,Zy,Od,Xy=0,jl=0,ug=0,Xd=typeof performance=="object"&&performance.now?performance:Date,nI=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function u_(){return jl||(nI(zX),jl=Xd.now()+ug)}function zX(){jl=0}function Wy(){this._call=this._time=this._next=null}Wy.prototype=rI.prototype={constructor:Wy,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?u_():+n)+(t==null?0:+t),!this._next&&Od!==this&&(Od?Od._next=this:Zy=this,Od=this),this._call=e,this._time=n,T2()},stop:function(){this._call&&(this._call=null,this._time=1/0,T2())}};function rI(e,t,n){var r=new Wy;return r.restart(e,t,n),r}function LX(){u_(),++Pc;for(var e=Zy,t;e;)(t=jl-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Pc}function jT(){jl=(Xy=Xd.now())+ug,Pc=Ad=0;try{LX()}finally{Pc=0,$X(),jl=0}}function BX(){var e=Xd.now(),t=e-Xy;t>tI&&(ug-=t,Xy=e)}function $X(){for(var e,t=Zy,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Zy=n);Od=e,T2(r)}function T2(e){if(!Pc){Ad&&(Ad=clearTimeout(Ad));var t=e-jl;t>24?(e<1/0&&(Ad=setTimeout(jT,e-Xd.now()-ug)),ad&&(ad=clearInterval(ad))):(ad||(Xy=Xd.now(),ad=setInterval(BX,tI)),Pc=1,nI(jT))}}function IT(e,t,n){var r=new Wy;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var UX=sg("start","end","cancel","interrupt"),qX=[],iI=0,zT=1,P2=2,my=3,LT=4,N2=5,yy=6;function cg(e,t,n,r,i,a){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;HX(e,n,{name:t,index:r,group:i,on:UX,tween:qX,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:iI})}function c_(e,t){var n=Ti(e,t);if(n.state>iI)throw new Error("too late; already scheduled");return n}function oa(e,t){var n=Ti(e,t);if(n.state>my)throw new Error("too late; already running");return n}function Ti(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function HX(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=rI(a,0,n.time);function a(d){n.state=zT,n.timer.restart(l,n.delay,n.time),n.delay<=d&&l(d-n.delay)}function l(d){var h,p,y,v;if(n.state!==zT)return f();for(h in r)if(v=r[h],v.name===n.name){if(v.state===my)return IT(l);v.state===LT?(v.state=yy,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete r[h]):+h<t&&(v.state=yy,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete r[h])}if(IT(function(){n.state===my&&(n.state=LT,n.timer.restart(u,n.delay,n.time),u(d))}),n.state=P2,n.on.call("start",e,e.__data__,n.index,n.group),n.state===P2){for(n.state=my,i=new Array(y=n.tween.length),h=0,p=-1;h<y;++h)(v=n.tween[h].value.call(e,e.__data__,n.index,n.group))&&(i[++p]=v);i.length=p+1}}function u(d){for(var h=d<n.duration?n.ease.call(null,d/n.duration):(n.timer.restart(f),n.state=N2,1),p=-1,y=i.length;++p<y;)i[p].call(e,h);n.state===N2&&(n.on.call("end",e,e.__data__,n.index,n.group),f())}function f(){n.state=yy,n.timer.stop(),delete r[t];for(var d in r)return;delete e.__transition}}function vy(e,t){var n=e.__transition,r,i,a=!0,l;if(n){t=t==null?null:t+"";for(l in n){if((r=n[l]).name!==t){a=!1;continue}i=r.state>P2&&r.state<N2,r.state=yy,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[l]}a&&delete e.__transition}}function VX(e){return this.each(function(){vy(this,e)})}function FX(e,t){var n,r;return function(){var i=oa(this,e),a=i.tween;if(a!==n){r=n=a;for(var l=0,u=r.length;l<u;++l)if(r[l].name===t){r=r.slice(),r.splice(l,1);break}}i.tween=r}}function KX(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=oa(this,e),l=a.tween;if(l!==r){i=(r=l).slice();for(var u={name:t,value:n},f=0,d=i.length;f<d;++f)if(i[f].name===t){i[f]=u;break}f===d&&i.push(u)}a.tween=i}}function YX(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Ti(this.node(),n).tween,i=0,a=r.length,l;i<a;++i)if((l=r[i]).name===e)return l.value;return null}return this.each((t==null?FX:KX)(n,e,t))}function f_(e,t,n){var r=e._id;return e.each(function(){var i=oa(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Ti(i,r).value[t]}}function aI(e,t){var n;return(typeof t=="number"?wi:t instanceof Dl?Qy:(n=Dl(t))?(t=n,Qy):Wj)(e,t)}function GX(e){return function(){this.removeAttribute(e)}}function QX(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ZX(e,t,n){var r,i=n+"",a;return function(){var l=this.getAttribute(e);return l===i?null:l===r?a:a=t(r=l,n)}}function XX(e,t,n){var r,i=n+"",a;return function(){var l=this.getAttributeNS(e.space,e.local);return l===i?null:l===r?a:a=t(r=l,n)}}function WX(e,t,n){var r,i,a;return function(){var l,u=n(this),f;return u==null?void this.removeAttribute(e):(l=this.getAttribute(e),f=u+"",l===f?null:l===r&&f===i?a:(i=f,a=t(r=l,u)))}}function JX(e,t,n){var r,i,a;return function(){var l,u=n(this),f;return u==null?void this.removeAttributeNS(e.space,e.local):(l=this.getAttributeNS(e.space,e.local),f=u+"",l===f?null:l===r&&f===i?a:(i=f,a=t(r=l,u)))}}function eW(e,t){var n=lg(e),r=n==="transform"?NX:aI;return this.attrTween(e,typeof t=="function"?(n.local?JX:WX)(n,r,f_(this,"attr."+e,t)):t==null?(n.local?QX:GX)(n):(n.local?XX:ZX)(n,r,t))}function tW(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function nW(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function rW(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&nW(e,a)),n}return i._value=t,i}function iW(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&tW(e,a)),n}return i._value=t,i}function aW(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=lg(e);return this.tween(n,(r.local?rW:iW)(r,t))}function oW(e,t){return function(){c_(this,e).delay=+t.apply(this,arguments)}}function sW(e,t){return t=+t,function(){c_(this,e).delay=t}}function lW(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?oW:sW)(t,e)):Ti(this.node(),t).delay}function uW(e,t){return function(){oa(this,e).duration=+t.apply(this,arguments)}}function cW(e,t){return t=+t,function(){oa(this,e).duration=t}}function fW(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?uW:cW)(t,e)):Ti(this.node(),t).duration}function dW(e,t){if(typeof t!="function")throw new Error;return function(){oa(this,e).ease=t}}function hW(e){var t=this._id;return arguments.length?this.each(dW(t,e)):Ti(this.node(),t).ease}function pW(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;oa(this,e).ease=n}}function mW(e){if(typeof e!="function")throw new Error;return this.each(pW(this._id,e))}function yW(e){typeof e!="function"&&(e=Ij(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],l=a.length,u=r[i]=[],f,d=0;d<l;++d)(f=a[d])&&e.call(f,f.__data__,d,a)&&u.push(f);return new eo(r,this._parents,this._name,this._id)}function vW(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),l=new Array(r),u=0;u<a;++u)for(var f=t[u],d=n[u],h=f.length,p=l[u]=new Array(h),y,v=0;v<h;++v)(y=f[v]||d[v])&&(p[v]=y);for(;u<r;++u)l[u]=t[u];return new eo(l,this._parents,this._name,this._id)}function gW(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function bW(e,t,n){var r,i,a=gW(t)?c_:oa;return function(){var l=a(this,e),u=l.on;u!==r&&(i=(r=u).copy()).on(t,n),l.on=i}}function xW(e,t){var n=this._id;return arguments.length<2?Ti(this.node(),n).on.on(e):this.each(bW(n,e,t))}function wW(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function SW(){return this.on("end.remove",wW(this._id))}function _W(e){var t=this._name,n=this._id;typeof e!="function"&&(e=i_(e));for(var r=this._groups,i=r.length,a=new Array(i),l=0;l<i;++l)for(var u=r[l],f=u.length,d=a[l]=new Array(f),h,p,y=0;y<f;++y)(h=u[y])&&(p=e.call(h,h.__data__,y,u))&&("__data__"in h&&(p.__data__=h.__data__),d[y]=p,cg(d[y],t,n,y,d,Ti(h,n)));return new eo(a,this._parents,t,n)}function EW(e){var t=this._name,n=this._id;typeof e!="function"&&(e=jj(e));for(var r=this._groups,i=r.length,a=[],l=[],u=0;u<i;++u)for(var f=r[u],d=f.length,h,p=0;p<d;++p)if(h=f[p]){for(var y=e.call(h,h.__data__,p,f),v,g=Ti(h,n),b=0,w=y.length;b<w;++b)(v=y[b])&&cg(v,t,n,b,y,g);a.push(y),l.push(h)}return new eo(a,l,t,n)}var AW=Th.prototype.constructor;function OW(){return new AW(this._groups,this._parents)}function MW(e,t){var n,r,i;return function(){var a=Tc(this,e),l=(this.style.removeProperty(e),Tc(this,e));return a===l?null:a===n&&l===r?i:i=t(n=a,r=l)}}function oI(e){return function(){this.style.removeProperty(e)}}function CW(e,t,n){var r,i=n+"",a;return function(){var l=Tc(this,e);return l===i?null:l===r?a:a=t(r=l,n)}}function kW(e,t,n){var r,i,a;return function(){var l=Tc(this,e),u=n(this),f=u+"";return u==null&&(f=u=(this.style.removeProperty(e),Tc(this,e))),l===f?null:l===r&&f===i?a:(i=f,a=t(r=l,u))}}function TW(e,t){var n,r,i,a="style."+t,l="end."+a,u;return function(){var f=oa(this,e),d=f.on,h=f.value[a]==null?u||(u=oI(t)):void 0;(d!==n||i!==h)&&(r=(n=d).copy()).on(l,i=h),f.on=r}}function PW(e,t,n){var r=(e+="")=="transform"?PX:aI;return t==null?this.styleTween(e,MW(e,r)).on("end.style."+e,oI(e)):typeof t=="function"?this.styleTween(e,kW(e,r,f_(this,"style."+e,t))).each(TW(this._id,e)):this.styleTween(e,CW(e,r,t),n).on("end.style."+e,null)}function NW(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function RW(e,t,n){var r,i;function a(){var l=t.apply(this,arguments);return l!==i&&(r=(i=l)&&NW(e,l,n)),r}return a._value=t,a}function DW(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,RW(e,t,n??""))}function jW(e){return function(){this.textContent=e}}function IW(e){return function(){var t=e(this);this.textContent=t??""}}function zW(e){return this.tween("text",typeof e=="function"?IW(f_(this,"text",e)):jW(e==null?"":e+""))}function LW(e){return function(t){this.textContent=e.call(this,t)}}function BW(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&LW(i)),t}return r._value=e,r}function $W(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,BW(e))}function UW(){for(var e=this._name,t=this._id,n=sI(),r=this._groups,i=r.length,a=0;a<i;++a)for(var l=r[a],u=l.length,f,d=0;d<u;++d)if(f=l[d]){var h=Ti(f,t);cg(f,e,n,d,l,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new eo(r,this._parents,e,n)}function qW(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,l){var u={value:l},f={value:function(){--i===0&&a()}};n.each(function(){var d=oa(this,r),h=d.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(u),t._.interrupt.push(u),t._.end.push(f)),d.on=t}),i===0&&a()})}var HW=0;function eo(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function sI(){return++HW}var Ra=Th.prototype;eo.prototype={constructor:eo,select:_W,selectAll:EW,selectChild:Ra.selectChild,selectChildren:Ra.selectChildren,filter:yW,merge:vW,selection:OW,transition:UW,call:Ra.call,nodes:Ra.nodes,node:Ra.node,size:Ra.size,empty:Ra.empty,each:Ra.each,on:xW,attr:eW,attrTween:aW,style:PW,styleTween:DW,text:zW,textTween:$W,remove:SW,tween:YX,delay:lW,duration:fW,ease:hW,easeVarying:mW,end:qW,[Symbol.iterator]:Ra[Symbol.iterator]};function VW(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var FW={time:null,delay:0,duration:250,ease:VW};function KW(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function YW(e){var t,n;e instanceof eo?(t=e._id,e=e._name):(t=sI(),(n=FW).time=u_(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var l=r[a],u=l.length,f,d=0;d<u;++d)(f=l[d])&&cg(f,e,t,d,l,n||KW(f,t));return new eo(r,this._parents,e,t)}Th.prototype.interrupt=VX;Th.prototype.transition=YW;const Fm=e=>()=>e;function GW(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Ha(e,t,n){this.k=e,this.x=t,this.y=n}Ha.prototype={constructor:Ha,scale:function(e){return e===1?this:new Ha(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ha(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var fg=new Ha(1,0,0);lI.prototype=Ha.prototype;function lI(e){for(;!e.__zoom;)if(!(e=e.parentNode))return fg;return e.__zoom}function Bb(e){e.stopImmediatePropagation()}function od(e){e.preventDefault(),e.stopImmediatePropagation()}function QW(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function ZW(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function BT(){return this.__zoom||fg}function XW(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function WW(){return navigator.maxTouchPoints||"ontouchstart"in this}function JW(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],l=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),l>a?(a+l)/2:Math.min(0,a)||Math.max(0,l))}function uI(){var e=QW,t=ZW,n=JW,r=XW,i=WW,a=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],u=250,f=py,d=sg("start","zoom","end"),h,p,y,v=500,g=150,b=0,w=10;function S(I){I.property("__zoom",BT).on("wheel.zoom",P,{passive:!1}).on("mousedown.zoom",D).on("dblclick.zoom",z).filter(i).on("touchstart.zoom",R).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",B).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}S.transform=function(I,q,L,V){var F=I.selection?I.selection():I;F.property("__zoom",BT),I!==F?k(I,q,L,V):F.interrupt().each(function(){C(this,arguments).event(V).start().zoom(null,typeof q=="function"?q.apply(this,arguments):q).end()})},S.scaleBy=function(I,q,L,V){S.scaleTo(I,function(){var F=this.__zoom.k,H=typeof q=="function"?q.apply(this,arguments):q;return F*H},L,V)},S.scaleTo=function(I,q,L,V){S.transform(I,function(){var F=t.apply(this,arguments),H=this.__zoom,Y=L==null?O(F):typeof L=="function"?L.apply(this,arguments):L,$=H.invert(Y),K=typeof q=="function"?q.apply(this,arguments):q;return n(A(M(H,K),Y,$),F,l)},L,V)},S.translateBy=function(I,q,L,V){S.transform(I,function(){return n(this.__zoom.translate(typeof q=="function"?q.apply(this,arguments):q,typeof L=="function"?L.apply(this,arguments):L),t.apply(this,arguments),l)},null,V)},S.translateTo=function(I,q,L,V,F){S.transform(I,function(){var H=t.apply(this,arguments),Y=this.__zoom,$=V==null?O(H):typeof V=="function"?V.apply(this,arguments):V;return n(fg.translate($[0],$[1]).scale(Y.k).translate(typeof q=="function"?-q.apply(this,arguments):-q,typeof L=="function"?-L.apply(this,arguments):-L),H,l)},V,F)};function M(I,q){return q=Math.max(a[0],Math.min(a[1],q)),q===I.k?I:new Ha(q,I.x,I.y)}function A(I,q,L){var V=q[0]-L[0]*I.k,F=q[1]-L[1]*I.k;return V===I.x&&F===I.y?I:new Ha(I.k,V,F)}function O(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function k(I,q,L,V){I.on("start.zoom",function(){C(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){C(this,arguments).event(V).end()}).tween("zoom",function(){var F=this,H=arguments,Y=C(F,H).event(V),$=t.apply(F,H),K=L==null?O($):typeof L=="function"?L.apply(F,H):L,J=Math.max($[1][0]-$[0][0],$[1][1]-$[0][1]),te=F.__zoom,ce=typeof q=="function"?q.apply(F,H):q,he=f(te.invert(K).concat(J/te.k),ce.invert(K).concat(J/ce.k));return function(de){if(de===1)de=ce;else{var ie=he(de),W=J/ie[2];de=new Ha(W,K[0]-ie[0]*W,K[1]-ie[1]*W)}Y.zoom(null,de)}})}function C(I,q,L){return!L&&I.__zooming||new T(I,q)}function T(I,q){this.that=I,this.args=q,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,q),this.taps=0}T.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,q){return this.mouse&&I!=="mouse"&&(this.mouse[1]=q.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=q.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=q.invert(this.touch1[0])),this.that.__zoom=q,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var q=jr(this.that).datum();d.call(I,this.that,new GW(I,{sourceEvent:this.sourceEvent,target:S,transform:this.that.__zoom,dispatch:d}),q)}};function P(I,...q){if(!e.apply(this,arguments))return;var L=C(this,q).event(I),V=this.__zoom,F=Math.max(a[0],Math.min(a[1],V.k*Math.pow(2,r.apply(this,arguments)))),H=xi(I);if(L.wheel)(L.mouse[0][0]!==H[0]||L.mouse[0][1]!==H[1])&&(L.mouse[1]=V.invert(L.mouse[0]=H)),clearTimeout(L.wheel);else{if(V.k===F)return;L.mouse=[H,V.invert(H)],vy(this),L.start()}od(I),L.wheel=setTimeout(Y,g),L.zoom("mouse",n(A(M(V,F),L.mouse[0],L.mouse[1]),L.extent,l));function Y(){L.wheel=null,L.end()}}function D(I,...q){if(y||!e.apply(this,arguments))return;var L=I.currentTarget,V=C(this,q,!0).event(I),F=jr(I.view).on("mousemove.zoom",K,!0).on("mouseup.zoom",J,!0),H=xi(I,L),Y=I.clientX,$=I.clientY;Kj(I.view),Bb(I),V.mouse=[H,this.__zoom.invert(H)],vy(this),V.start();function K(te){if(od(te),!V.moved){var ce=te.clientX-Y,he=te.clientY-$;V.moved=ce*ce+he*he>b}V.event(te).zoom("mouse",n(A(V.that.__zoom,V.mouse[0]=xi(te,L),V.mouse[1]),V.extent,l))}function J(te){F.on("mousemove.zoom mouseup.zoom",null),Yj(te.view,V.moved),od(te),V.event(te).end()}}function z(I,...q){if(e.apply(this,arguments)){var L=this.__zoom,V=xi(I.changedTouches?I.changedTouches[0]:I,this),F=L.invert(V),H=L.k*(I.shiftKey?.5:2),Y=n(A(M(L,H),V,F),t.apply(this,q),l);od(I),u>0?jr(this).transition().duration(u).call(k,Y,V,I):jr(this).call(S.transform,Y,V,I)}}function R(I,...q){if(e.apply(this,arguments)){var L=I.touches,V=L.length,F=C(this,q,I.changedTouches.length===V).event(I),H,Y,$,K;for(Bb(I),Y=0;Y<V;++Y)$=L[Y],K=xi($,this),K=[K,this.__zoom.invert(K),$.identifier],F.touch0?!F.touch1&&F.touch0[2]!==K[2]&&(F.touch1=K,F.taps=0):(F.touch0=K,H=!0,F.taps=1+!!h);h&&(h=clearTimeout(h)),H&&(F.taps<2&&(p=K[0],h=setTimeout(function(){h=null},v)),vy(this),F.start())}}function N(I,...q){if(this.__zooming){var L=C(this,q).event(I),V=I.changedTouches,F=V.length,H,Y,$,K;for(od(I),H=0;H<F;++H)Y=V[H],$=xi(Y,this),L.touch0&&L.touch0[2]===Y.identifier?L.touch0[0]=$:L.touch1&&L.touch1[2]===Y.identifier&&(L.touch1[0]=$);if(Y=L.that.__zoom,L.touch1){var J=L.touch0[0],te=L.touch0[1],ce=L.touch1[0],he=L.touch1[1],de=(de=ce[0]-J[0])*de+(de=ce[1]-J[1])*de,ie=(ie=he[0]-te[0])*ie+(ie=he[1]-te[1])*ie;Y=M(Y,Math.sqrt(de/ie)),$=[(J[0]+ce[0])/2,(J[1]+ce[1])/2],K=[(te[0]+he[0])/2,(te[1]+he[1])/2]}else if(L.touch0)$=L.touch0[0],K=L.touch0[1];else return;L.zoom("touch",n(A(Y,$,K),L.extent,l))}}function B(I,...q){if(this.__zooming){var L=C(this,q).event(I),V=I.changedTouches,F=V.length,H,Y;for(Bb(I),y&&clearTimeout(y),y=setTimeout(function(){y=null},v),H=0;H<F;++H)Y=V[H],L.touch0&&L.touch0[2]===Y.identifier?delete L.touch0:L.touch1&&L.touch1[2]===Y.identifier&&delete L.touch1;if(L.touch1&&!L.touch0&&(L.touch0=L.touch1,delete L.touch1),L.touch0)L.touch0[1]=this.__zoom.invert(L.touch0[0]);else if(L.end(),L.taps===2&&(Y=xi(Y,this),Math.hypot(p[0]-Y[0],p[1]-Y[1])<w)){var $=jr(this).on("dblclick.zoom");$&&$.apply(this,arguments)}}}return S.wheelDelta=function(I){return arguments.length?(r=typeof I=="function"?I:Fm(+I),S):r},S.filter=function(I){return arguments.length?(e=typeof I=="function"?I:Fm(!!I),S):e},S.touchable=function(I){return arguments.length?(i=typeof I=="function"?I:Fm(!!I),S):i},S.extent=function(I){return arguments.length?(t=typeof I=="function"?I:Fm([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),S):t},S.scaleExtent=function(I){return arguments.length?(a[0]=+I[0],a[1]=+I[1],S):[a[0],a[1]]},S.translateExtent=function(I){return arguments.length?(l[0][0]=+I[0][0],l[1][0]=+I[1][0],l[0][1]=+I[0][1],l[1][1]=+I[1][1],S):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},S.constrain=function(I){return arguments.length?(n=I,S):n},S.duration=function(I){return arguments.length?(u=+I,S):u},S.interpolate=function(I){return arguments.length?(f=I,S):f},S.on=function(){var I=d.on.apply(d,arguments);return I===d?S:I},S.clickDistance=function(I){return arguments.length?(b=(I=+I)*I,S):Math.sqrt(b)},S.tapDistance=function(I){return arguments.length?(w=+I,S):w},S}const Ji={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Wd=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],cI=["Enter"," ","Escape"],fI={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Nc;(function(e){e.Strict="strict",e.Loose="loose"})(Nc||(Nc={}));var El;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(El||(El={}));var Jd;(function(e){e.Partial="partial",e.Full="full"})(Jd||(Jd={}));const dI={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var es;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(es||(es={}));var Jy;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Jy||(Jy={}));var He;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(He||(He={}));const $T={[He.Left]:He.Right,[He.Right]:He.Left,[He.Top]:He.Bottom,[He.Bottom]:He.Top};function hI(e){return e===null?null:e?"valid":"invalid"}const pI=e=>"id"in e&&"source"in e&&"target"in e,eJ=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),d_=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Nh=(e,t=[0,0])=>{const{width:n,height:r}=ao(e),i=e.origin??t,a=n*i[0],l=r*i[1];return{x:e.position.x-a,y:e.position.y-l}},tJ=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,i)=>{const a=typeof i=="string";let l=!t.nodeLookup&&!a?i:void 0;t.nodeLookup&&(l=a?t.nodeLookup.get(i):d_(i)?i:t.nodeLookup.get(i.id));const u=l?ev(l,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return dg(r,u)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return hg(n)},Rh=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(i=>{(t.filter===void 0||t.filter(i))&&(n=dg(n,ev(i)),r=!0)}),r?hg(n):{x:0,y:0,width:0,height:0}},h_=(e,t,[n,r,i]=[0,0,1],a=!1,l=!1)=>{const u={...jh(t,[n,r,i]),width:t.width/i,height:t.height/i},f=[];for(const d of e.values()){const{measured:h,selectable:p=!0,hidden:y=!1}=d;if(l&&!p||y)continue;const v=h.width??d.width??d.initialWidth??null,g=h.height??d.height??d.initialHeight??null,b=eh(u,Dc(d)),w=(v??0)*(g??0),S=a&&b>0;(!d.internals.handleBounds||S||b>=w||d.dragging)&&f.push(d)}return f},nJ=(e,t)=>{const n=new Set;return e.forEach(r=>{n.add(r.id)}),t.filter(r=>n.has(r.source)||n.has(r.target))};function rJ(e,t){const n=new Map,r=t!=null&&t.nodes?new Set(t.nodes.map(i=>i.id)):null;return e.forEach(i=>{i.measured.width&&i.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!i.hidden)&&(!r||r.has(i.id))&&n.set(i.id,i)}),n}async function iJ({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:a},l){if(e.size===0)return Promise.resolve(!0);const u=rJ(e,l),f=Rh(u),d=p_(f,t,n,(l==null?void 0:l.minZoom)??i,(l==null?void 0:l.maxZoom)??a,(l==null?void 0:l.padding)??.1);return await r.setViewport(d,{duration:l==null?void 0:l.duration,ease:l==null?void 0:l.ease,interpolate:l==null?void 0:l.interpolate}),Promise.resolve(!0)}function mI({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:a}){const l=n.get(e),u=l.parentId?n.get(l.parentId):void 0,{x:f,y:d}=u?u.internals.positionAbsolute:{x:0,y:0},h=l.origin??r;let p=l.extent||i;if(l.extent==="parent"&&!l.expandParent)if(!u)a==null||a("005",Ji.error005());else{const v=u.measured.width,g=u.measured.height;v&&g&&(p=[[f,d],[f+v,d+g]])}else u&&jc(l.extent)&&(p=[[l.extent[0][0]+f,l.extent[0][1]+d],[l.extent[1][0]+f,l.extent[1][1]+d]]);const y=jc(p)?Il(t,p,l.measured):t;return(l.measured.width===void 0||l.measured.height===void 0)&&(a==null||a("015",Ji.error015())),{position:{x:y.x-f+(l.measured.width??0)*h[0],y:y.y-d+(l.measured.height??0)*h[1]},positionAbsolute:y}}async function aJ({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){const a=new Set(e.map(y=>y.id)),l=[];for(const y of n){if(y.deletable===!1)continue;const v=a.has(y.id),g=!v&&y.parentId&&l.find(b=>b.id===y.parentId);(v||g)&&l.push(y)}const u=new Set(t.map(y=>y.id)),f=r.filter(y=>y.deletable!==!1),h=nJ(l,f);for(const y of f)u.has(y.id)&&!h.find(g=>g.id===y.id)&&h.push(y);if(!i)return{edges:h,nodes:l};const p=await i({nodes:l,edges:h});return typeof p=="boolean"?p?{edges:h,nodes:l}:{edges:[],nodes:[]}:p}const Rc=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Il=(e={x:0,y:0},t,n)=>({x:Rc(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:Rc(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function yI(e,t,n){const{width:r,height:i}=ao(n),{x:a,y:l}=n.internals.positionAbsolute;return Il(e,[[a,l],[a+r,l+i]],t)}const UT=(e,t,n)=>e<t?Rc(Math.abs(e-t),1,t)/t:e>n?-Rc(Math.abs(e-n),1,t)/t:0,vI=(e,t,n=15,r=40)=>{const i=UT(e.x,r,t.width-r)*n,a=UT(e.y,r,t.height-r)*n;return[i,a]},dg=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),R2=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),hg=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),Dc=(e,t=[0,0])=>{var i,a;const{x:n,y:r}=d_(e)?e.internals.positionAbsolute:Nh(e,t);return{x:n,y:r,width:((i=e.measured)==null?void 0:i.width)??e.width??e.initialWidth??0,height:((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0}},ev=(e,t=[0,0])=>{var i,a;const{x:n,y:r}=d_(e)?e.internals.positionAbsolute:Nh(e,t);return{x:n,y:r,x2:n+(((i=e.measured)==null?void 0:i.width)??e.width??e.initialWidth??0),y2:r+(((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0)}},gI=(e,t)=>hg(dg(R2(e),R2(t))),eh=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},qT=e=>Oi(e.width)&&Oi(e.height)&&Oi(e.x)&&Oi(e.y),Oi=e=>!isNaN(e)&&isFinite(e),oJ=(e,t)=>{},Dh=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),jh=({x:e,y:t},[n,r,i],a=!1,l=[1,1])=>{const u={x:(e-n)/i,y:(t-r)/i};return a?Dh(u,l):u},tv=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r});function Bu(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function sJ(e,t,n){if(typeof e=="string"||typeof e=="number"){const r=Bu(e,n),i=Bu(e,t);return{top:r,right:i,bottom:r,left:i,x:i*2,y:r*2}}if(typeof e=="object"){const r=Bu(e.top??e.y??0,n),i=Bu(e.bottom??e.y??0,n),a=Bu(e.left??e.x??0,t),l=Bu(e.right??e.x??0,t);return{top:r,right:l,bottom:i,left:a,x:a+l,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function lJ(e,t,n,r,i,a){const{x:l,y:u}=tv(e,[t,n,r]),{x:f,y:d}=tv({x:e.x+e.width,y:e.y+e.height},[t,n,r]),h=i-f,p=a-d;return{left:Math.floor(l),top:Math.floor(u),right:Math.floor(h),bottom:Math.floor(p)}}const p_=(e,t,n,r,i,a)=>{const l=sJ(a,t,n),u=(t-l.x)/e.width,f=(n-l.y)/e.height,d=Math.min(u,f),h=Rc(d,r,i),p=e.x+e.width/2,y=e.y+e.height/2,v=t/2-p*h,g=n/2-y*h,b=lJ(e,v,g,h,t,n),w={left:Math.min(b.left-l.left,0),top:Math.min(b.top-l.top,0),right:Math.min(b.right-l.right,0),bottom:Math.min(b.bottom-l.bottom,0)};return{x:v-w.left+w.right,y:g-w.top+w.bottom,zoom:h}},th=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function jc(e){return e!=null&&e!=="parent"}function ao(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function bI(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function xI(e,t={width:0,height:0},n,r,i){const a={...e},l=r.get(n);if(l){const u=l.origin||i;a.x+=l.internals.positionAbsolute.x-(t.width??0)*u[0],a.y+=l.internals.positionAbsolute.y-(t.height??0)*u[1]}return a}function HT(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function uJ(){let e,t;return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}}function cJ(e){return{...fI,...e||{}}}function Nd(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){const{x:a,y:l}=Mi(e),u=jh({x:a-((i==null?void 0:i.left)??0),y:l-((i==null?void 0:i.top)??0)},r),{x:f,y:d}=n?Dh(u,t):u;return{xSnapped:f,ySnapped:d,...u}}const m_=e=>({width:e.offsetWidth,height:e.offsetHeight}),wI=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},fJ=["INPUT","SELECT","TEXTAREA"];function SI(e){var r,i;const t=((i=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:i[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:fJ.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const _I=e=>"clientX"in e,Mi=(e,t)=>{var a,l;const n=_I(e),r=n?e.clientX:(a=e.touches)==null?void 0:a[0].clientX,i=n?e.clientY:(l=e.touches)==null?void 0:l[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:i-((t==null?void 0:t.top)??0)}},VT=(e,t,n,r,i)=>{const a=t.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(l=>{const u=l.getBoundingClientRect();return{id:l.getAttribute("data-handleid"),type:e,nodeId:i,position:l.getAttribute("data-handlepos"),x:(u.left-n.left)/r,y:(u.top-n.top)/r,...m_(l)}})};function EI({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:a,targetControlX:l,targetControlY:u}){const f=e*.125+i*.375+l*.375+n*.125,d=t*.125+a*.375+u*.375+r*.125,h=Math.abs(f-e),p=Math.abs(d-t);return[f,d,h,p]}function Km(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function FT({pos:e,x1:t,y1:n,x2:r,y2:i,c:a}){switch(e){case He.Left:return[t-Km(t-r,a),n];case He.Right:return[t+Km(r-t,a),n];case He.Top:return[t,n-Km(n-i,a)];case He.Bottom:return[t,n+Km(i-n,a)]}}function AI({sourceX:e,sourceY:t,sourcePosition:n=He.Bottom,targetX:r,targetY:i,targetPosition:a=He.Top,curvature:l=.25}){const[u,f]=FT({pos:n,x1:e,y1:t,x2:r,y2:i,c:l}),[d,h]=FT({pos:a,x1:r,y1:i,x2:e,y2:t,c:l}),[p,y,v,g]=EI({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:u,sourceControlY:f,targetControlX:d,targetControlY:h});return[`M${e},${t} C${u},${f} ${d},${h} ${r},${i}`,p,y,v,g]}function OI({sourceX:e,sourceY:t,targetX:n,targetY:r}){const i=Math.abs(n-e)/2,a=n<e?n+i:n-i,l=Math.abs(r-t)/2,u=r<t?r+l:r-l;return[a,u,i,l]}function dJ({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:a="basic"}){if(a==="manual")return r;const l=i&&n?r+1e3:r,u=Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0);return l+u}function hJ({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){const a=dg(ev(e),ev(t));a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1);const l={x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]};return eh(l,hg(a))>0}const pJ=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,mJ=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),yJ=(e,t,n={})=>{if(!e.source||!e.target)return t;const r=n.getEdgeId||pJ;let i;return pI(e)?i={...e}:i={...e,id:r(e)},mJ(i,t)?t:(i.sourceHandle===null&&delete i.sourceHandle,i.targetHandle===null&&delete i.targetHandle,t.concat(i))};function MI({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[i,a,l,u]=OI({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,a,l,u]}const KT={[He.Left]:{x:-1,y:0},[He.Right]:{x:1,y:0},[He.Top]:{x:0,y:-1},[He.Bottom]:{x:0,y:1}},vJ=({source:e,sourcePosition:t=He.Bottom,target:n})=>t===He.Left||t===He.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},YT=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function gJ({source:e,sourcePosition:t=He.Bottom,target:n,targetPosition:r=He.Top,center:i,offset:a,stepPosition:l}){const u=KT[t],f=KT[r],d={x:e.x+u.x*a,y:e.y+u.y*a},h={x:n.x+f.x*a,y:n.y+f.y*a},p=vJ({source:d,sourcePosition:t,target:h}),y=p.x!==0?"x":"y",v=p[y];let g=[],b,w;const S={x:0,y:0},M={x:0,y:0},[,,A,O]=OI({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(u[y]*f[y]===-1){y==="x"?(b=i.x??d.x+(h.x-d.x)*l,w=i.y??(d.y+h.y)/2):(b=i.x??(d.x+h.x)/2,w=i.y??d.y+(h.y-d.y)*l);const P=[{x:b,y:d.y},{x:b,y:h.y}],D=[{x:d.x,y:w},{x:h.x,y:w}];u[y]===v?g=y==="x"?P:D:g=y==="x"?D:P}else{const P=[{x:d.x,y:h.y}],D=[{x:h.x,y:d.y}];if(y==="x"?g=u.x===v?D:P:g=u.y===v?P:D,t===r){const I=Math.abs(e[y]-n[y]);if(I<=a){const q=Math.min(a-1,a-I);u[y]===v?S[y]=(d[y]>e[y]?-1:1)*q:M[y]=(h[y]>n[y]?-1:1)*q}}if(t!==r){const I=y==="x"?"y":"x",q=u[y]===f[I],L=d[I]>h[I],V=d[I]<h[I];(u[y]===1&&(!q&&L||q&&V)||u[y]!==1&&(!q&&V||q&&L))&&(g=y==="x"?P:D)}const z={x:d.x+S.x,y:d.y+S.y},R={x:h.x+M.x,y:h.y+M.y},N=Math.max(Math.abs(z.x-g[0].x),Math.abs(R.x-g[0].x)),B=Math.max(Math.abs(z.y-g[0].y),Math.abs(R.y-g[0].y));N>=B?(b=(z.x+R.x)/2,w=g[0].y):(b=g[0].x,w=(z.y+R.y)/2)}const k={x:d.x+S.x,y:d.y+S.y},C={x:h.x+M.x,y:h.y+M.y};return[[e,...k.x!==g[0].x||k.y!==g[0].y?[k]:[],...g,...C.x!==g[g.length-1].x||C.y!==g[g.length-1].y?[C]:[],n],b,w,A,O]}function bJ(e,t,n,r){const i=Math.min(YT(e,t)/2,YT(t,n)/2,r),{x:a,y:l}=t;if(e.x===a&&a===n.x||e.y===l&&l===n.y)return`L${a} ${l}`;if(e.y===l){const d=e.x<n.x?-1:1,h=e.y<n.y?1:-1;return`L ${a+i*d},${l}Q ${a},${l} ${a},${l+i*h}`}const u=e.x<n.x?1:-1,f=e.y<n.y?-1:1;return`L ${a},${l+i*f}Q ${a},${l} ${a+i*u},${l}`}function D2({sourceX:e,sourceY:t,sourcePosition:n=He.Bottom,targetX:r,targetY:i,targetPosition:a=He.Top,borderRadius:l=5,centerX:u,centerY:f,offset:d=20,stepPosition:h=.5}){const[p,y,v,g,b]=gJ({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:a,center:{x:u,y:f},offset:d,stepPosition:h});let w=`M${p[0].x} ${p[0].y}`;for(let S=1;S<p.length-1;S++)w+=bJ(p[S-1],p[S],p[S+1],l);return w+=`L${p[p.length-1].x} ${p[p.length-1].y}`,[w,y,v,g,b]}function GT(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function xJ(e){var p;const{sourceNode:t,targetNode:n}=e;if(!GT(t)||!GT(n))return null;const r=t.internals.handleBounds||QT(t.handles),i=n.internals.handleBounds||QT(n.handles),a=ZT((r==null?void 0:r.source)??[],e.sourceHandle),l=ZT(e.connectionMode===Nc.Strict?(i==null?void 0:i.target)??[]:((i==null?void 0:i.target)??[]).concat((i==null?void 0:i.source)??[]),e.targetHandle);if(!a||!l)return(p=e.onError)==null||p.call(e,"008",Ji.error008(a?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const u=(a==null?void 0:a.position)||He.Bottom,f=(l==null?void 0:l.position)||He.Top,d=zl(t,a,u),h=zl(n,l,f);return{sourceX:d.x,sourceY:d.y,targetX:h.x,targetY:h.y,sourcePosition:u,targetPosition:f}}function QT(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,r.type==="source"?t.push(r):r.type==="target"&&n.push(r);return{source:t,target:n}}function zl(e,t,n=He.Left,r=!1){const i=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,a=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:l,height:u}=t??ao(e);if(r)return{x:i+l/2,y:a+u/2};switch((t==null?void 0:t.position)??n){case He.Top:return{x:i+l/2,y:a};case He.Right:return{x:i+l,y:a+u/2};case He.Bottom:return{x:i+l/2,y:a+u};case He.Left:return{x:i,y:a+u/2}}}function ZT(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function j2(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`:""}function wJ(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){const a=new Set;return e.reduce((l,u)=>([u.markerStart||r,u.markerEnd||i].forEach(f=>{if(f&&typeof f=="object"){const d=j2(f,t);a.has(d)||(l.push({id:d,color:f.color||n,...f}),a.add(d))}}),l),[]).sort((l,u)=>l.id.localeCompare(u.id))}const CI=1e3,SJ=10,y_={nodeOrigin:[0,0],nodeExtent:Wd,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},_J={...y_,checkEquality:!0};function v_(e,t){const n={...e};for(const r in t)t[r]!==void 0&&(n[r]=t[r]);return n}function EJ(e,t,n){const r=v_(y_,n);for(const i of e.values())if(i.parentId)b_(i,e,t,r);else{const a=Nh(i,r.nodeOrigin),l=jc(i.extent)?i.extent:r.nodeExtent,u=Il(a,l,ao(i));i.internals.positionAbsolute=u}}function AJ(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const n=[],r=[];for(const i of e.handles){const a={id:i.id,width:i.width??1,height:i.height??1,nodeId:e.id,x:i.x,y:i.y,position:i.position,type:i.type};i.type==="source"?n.push(a):i.type==="target"&&r.push(a)}return{source:n,target:r}}function g_(e){return e==="manual"}function I2(e,t,n,r={}){var h,p;const i=v_(_J,r),a={i:0},l=new Map(t),u=i!=null&&i.elevateNodesOnSelect&&!g_(i.zIndexMode)?CI:0;let f=e.length>0,d=!1;t.clear(),n.clear();for(const y of e){let v=l.get(y.id);if(i.checkEquality&&y===(v==null?void 0:v.internals.userNode))t.set(y.id,v);else{const g=Nh(y,i.nodeOrigin),b=jc(y.extent)?y.extent:i.nodeExtent,w=Il(g,b,ao(y));v={...i.defaults,...y,measured:{width:(h=y.measured)==null?void 0:h.width,height:(p=y.measured)==null?void 0:p.height},internals:{positionAbsolute:w,handleBounds:AJ(y,v),z:kI(y,u,i.zIndexMode),userNode:y}},t.set(y.id,v)}(v.measured===void 0||v.measured.width===void 0||v.measured.height===void 0)&&!v.hidden&&(f=!1),y.parentId&&b_(v,t,n,r,a),d||(d=y.selected??!1)}return{nodesInitialized:f,hasSelectedNodes:d}}function OJ(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function b_(e,t,n,r,i){const{elevateNodesOnSelect:a,nodeOrigin:l,nodeExtent:u,zIndexMode:f}=v_(y_,r),d=e.parentId,h=t.get(d);if(!h){console.warn(`Parent node ${d} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}OJ(e,n),i&&!h.parentId&&h.internals.rootParentIndex===void 0&&f==="auto"&&(h.internals.rootParentIndex=++i.i,h.internals.z=h.internals.z+i.i*SJ),i&&h.internals.rootParentIndex!==void 0&&(i.i=h.internals.rootParentIndex);const p=a&&!g_(f)?CI:0,{x:y,y:v,z:g}=MJ(e,h,l,u,p,f),{positionAbsolute:b}=e.internals,w=y!==b.x||v!==b.y;(w||g!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:w?{x:y,y:v}:b,z:g}})}function kI(e,t,n){const r=Oi(e.zIndex)?e.zIndex:0;return g_(n)?r:r+(e.selected?t:0)}function MJ(e,t,n,r,i,a){const{x:l,y:u}=t.internals.positionAbsolute,f=ao(e),d=Nh(e,n),h=jc(e.extent)?Il(d,e.extent,f):d;let p=Il({x:l+h.x,y:u+h.y},r,f);e.extent==="parent"&&(p=yI(p,f,t));const y=kI(e,i,a),v=t.internals.z??0;return{x:p.x,y:p.y,z:v>=y?v+1:y}}function x_(e,t,n,r=[0,0]){var l;const i=[],a=new Map;for(const u of e){const f=t.get(u.parentId);if(!f)continue;const d=((l=a.get(u.parentId))==null?void 0:l.expandedRect)??Dc(f),h=gI(d,u.rect);a.set(u.parentId,{expandedRect:h,parent:f})}return a.size>0&&a.forEach(({expandedRect:u,parent:f},d)=>{var A;const h=f.internals.positionAbsolute,p=ao(f),y=f.origin??r,v=u.x<h.x?Math.round(Math.abs(h.x-u.x)):0,g=u.y<h.y?Math.round(Math.abs(h.y-u.y)):0,b=Math.max(p.width,Math.round(u.width)),w=Math.max(p.height,Math.round(u.height)),S=(b-p.width)*y[0],M=(w-p.height)*y[1];(v>0||g>0||S||M)&&(i.push({id:d,type:"position",position:{x:f.position.x-v+S,y:f.position.y-g+M}}),(A=n.get(d))==null||A.forEach(O=>{e.some(k=>k.id===O.id)||i.push({id:O.id,type:"position",position:{x:O.position.x+v,y:O.position.y+g}})})),(p.width<u.width||p.height<u.height||v||g)&&i.push({id:d,type:"dimensions",setAttributes:!0,dimensions:{width:b+(v?y[0]*v-S:0),height:w+(g?y[1]*g-M:0)}})}),i}function CJ(e,t,n,r,i,a,l){const u=r==null?void 0:r.querySelector(".xyflow__viewport");let f=!1;if(!u)return{changes:[],updatedInternals:f};const d=[],h=window.getComputedStyle(u),{m22:p}=new window.DOMMatrixReadOnly(h.transform),y=[];for(const v of e.values()){const g=t.get(v.id);if(!g)continue;if(g.hidden){t.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),f=!0;continue}const b=m_(v.nodeElement),w=g.measured.width!==b.width||g.measured.height!==b.height;if(!!(b.width&&b.height&&(w||!g.internals.handleBounds||v.force))){const M=v.nodeElement.getBoundingClientRect(),A=jc(g.extent)?g.extent:a;let{positionAbsolute:O}=g.internals;g.parentId&&g.extent==="parent"?O=yI(O,b,t.get(g.parentId)):A&&(O=Il(O,A,b));const k={...g,measured:b,internals:{...g.internals,positionAbsolute:O,handleBounds:{source:VT("source",v.nodeElement,M,p,g.id),target:VT("target",v.nodeElement,M,p,g.id)}}};t.set(g.id,k),g.parentId&&b_(k,t,n,{nodeOrigin:i,zIndexMode:l}),f=!0,w&&(d.push({id:g.id,type:"dimensions",dimensions:b}),g.expandParent&&g.parentId&&y.push({id:g.id,parentId:g.parentId,rect:Dc(k,i)}))}}if(y.length>0){const v=x_(y,t,n,i);d.push(...v)}return{changes:d,updatedInternals:f}}async function kJ({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:a}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const l=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,a]],r),u=!!l&&(l.x!==n[0]||l.y!==n[1]||l.k!==n[2]);return Promise.resolve(u)}function XT(e,t,n,r,i,a){let l=i;const u=r.get(l)||new Map;r.set(l,u.set(n,t)),l=`${i}-${e}`;const f=r.get(l)||new Map;if(r.set(l,f.set(n,t)),a){l=`${i}-${e}-${a}`;const d=r.get(l)||new Map;r.set(l,d.set(n,t))}}function TI(e,t,n){e.clear(),t.clear();for(const r of n){const{source:i,target:a,sourceHandle:l=null,targetHandle:u=null}=r,f={edgeId:r.id,source:i,target:a,sourceHandle:l,targetHandle:u},d=`${i}-${l}--${a}-${u}`,h=`${a}-${u}--${i}-${l}`;XT("source",f,h,e,i,l),XT("target",f,d,e,a,u),t.set(r.id,r)}}function PI(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:PI(n,t):!1}function WT(e,t,n){var i;let r=e;do{if((i=r==null?void 0:r.matches)!=null&&i.call(r,t))return!0;if(r===n)return!1;r=r==null?void 0:r.parentElement}while(r);return!1}function TJ(e,t,n,r){const i=new Map;for(const[a,l]of e)if((l.selected||l.id===r)&&(!l.parentId||!PI(l,e))&&(l.draggable||t&&typeof l.draggable>"u")){const u=e.get(a);u&&i.set(a,{id:a,position:u.position||{x:0,y:0},distance:{x:n.x-u.internals.positionAbsolute.x,y:n.y-u.internals.positionAbsolute.y},extent:u.extent,parentId:u.parentId,origin:u.origin,expandParent:u.expandParent,internals:{positionAbsolute:u.internals.positionAbsolute||{x:0,y:0}},measured:{width:u.measured.width??0,height:u.measured.height??0}})}return i}function $b({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){var l,u,f;const i=[];for(const[d,h]of t){const p=(l=n.get(d))==null?void 0:l.internals.userNode;p&&i.push({...p,position:h.position,dragging:r})}if(!e)return[i[0],i];const a=(u=n.get(e))==null?void 0:u.internals.userNode;return[a?{...a,position:((f=t.get(e))==null?void 0:f.position)||a.position,dragging:r}:i[0],i]}function PJ({dragItems:e,snapGrid:t,x:n,y:r}){const i=e.values().next().value;if(!i)return null;const a={x:n-i.distance.x,y:r-i.distance.y},l=Dh(a,t);return{x:l.x-a.x,y:l.y-a.y}}function NJ({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let a={x:null,y:null},l=0,u=new Map,f=!1,d={x:0,y:0},h=null,p=!1,y=null,v=!1,g=!1,b=null;function w({noDragClassName:M,handleSelector:A,domNode:O,isSelectable:k,nodeId:C,nodeClickDistance:T=0}){y=jr(O);function P({x:N,y:B}){const{nodeLookup:I,nodeExtent:q,snapGrid:L,snapToGrid:V,nodeOrigin:F,onNodeDrag:H,onSelectionDrag:Y,onError:$,updateNodePositions:K}=t();a={x:N,y:B};let J=!1;const te=u.size>1,ce=te&&q?R2(Rh(u)):null,he=te&&V?PJ({dragItems:u,snapGrid:L,x:N,y:B}):null;for(const[de,ie]of u){if(!I.has(de))continue;let W={x:N-ie.distance.x,y:B-ie.distance.y};V&&(W=he?{x:Math.round(W.x+he.x),y:Math.round(W.y+he.y)}:Dh(W,L));let pe=null;if(te&&q&&!ie.extent&&ce){const{positionAbsolute:Ae}=ie.internals,Se=Ae.x-ce.x+q[0][0],Ve=Ae.x+ie.measured.width-ce.x2+q[1][0],Ne=Ae.y-ce.y+q[0][1],it=Ae.y+ie.measured.height-ce.y2+q[1][1];pe=[[Se,Ne],[Ve,it]]}const{position:ge,positionAbsolute:ee}=mI({nodeId:de,nextPosition:W,nodeLookup:I,nodeExtent:pe||q,nodeOrigin:F,onError:$});J=J||ie.position.x!==ge.x||ie.position.y!==ge.y,ie.position=ge,ie.internals.positionAbsolute=ee}if(g=g||J,!!J&&(K(u,!0),b&&(r||H||!C&&Y))){const[de,ie]=$b({nodeId:C,dragItems:u,nodeLookup:I});r==null||r(b,u,de,ie),H==null||H(b,de,ie),C||Y==null||Y(b,ie)}}async function D(){if(!h)return;const{transform:N,panBy:B,autoPanSpeed:I,autoPanOnNodeDrag:q}=t();if(!q){f=!1,cancelAnimationFrame(l);return}const[L,V]=vI(d,h,I);(L!==0||V!==0)&&(a.x=(a.x??0)-L/N[2],a.y=(a.y??0)-V/N[2],await B({x:L,y:V})&&P(a)),l=requestAnimationFrame(D)}function z(N){var te;const{nodeLookup:B,multiSelectionActive:I,nodesDraggable:q,transform:L,snapGrid:V,snapToGrid:F,selectNodesOnDrag:H,onNodeDragStart:Y,onSelectionDragStart:$,unselectNodesAndEdges:K}=t();p=!0,(!H||!k)&&!I&&C&&((te=B.get(C))!=null&&te.selected||K()),k&&H&&C&&(e==null||e(C));const J=Nd(N.sourceEvent,{transform:L,snapGrid:V,snapToGrid:F,containerBounds:h});if(a=J,u=TJ(B,q,J,C),u.size>0&&(n||Y||!C&&$)){const[ce,he]=$b({nodeId:C,dragItems:u,nodeLookup:B});n==null||n(N.sourceEvent,u,ce,he),Y==null||Y(N.sourceEvent,ce,he),C||$==null||$(N.sourceEvent,he)}}const R=Gj().clickDistance(T).on("start",N=>{const{domNode:B,nodeDragThreshold:I,transform:q,snapGrid:L,snapToGrid:V}=t();h=(B==null?void 0:B.getBoundingClientRect())||null,v=!1,g=!1,b=N.sourceEvent,I===0&&z(N),a=Nd(N.sourceEvent,{transform:q,snapGrid:L,snapToGrid:V,containerBounds:h}),d=Mi(N.sourceEvent,h)}).on("drag",N=>{const{autoPanOnNodeDrag:B,transform:I,snapGrid:q,snapToGrid:L,nodeDragThreshold:V,nodeLookup:F}=t(),H=Nd(N.sourceEvent,{transform:I,snapGrid:q,snapToGrid:L,containerBounds:h});if(b=N.sourceEvent,(N.sourceEvent.type==="touchmove"&&N.sourceEvent.touches.length>1||C&&!F.has(C))&&(v=!0),!v){if(!f&&B&&p&&(f=!0,D()),!p){const Y=Mi(N.sourceEvent,h),$=Y.x-d.x,K=Y.y-d.y;Math.sqrt($*$+K*K)>V&&z(N)}(a.x!==H.xSnapped||a.y!==H.ySnapped)&&u&&p&&(d=Mi(N.sourceEvent,h),P(H))}}).on("end",N=>{if(!(!p||v)&&(f=!1,p=!1,cancelAnimationFrame(l),u.size>0)){const{nodeLookup:B,updateNodePositions:I,onNodeDragStop:q,onSelectionDragStop:L}=t();if(g&&(I(u,!1),g=!1),i||q||!C&&L){const[V,F]=$b({nodeId:C,dragItems:u,nodeLookup:B,dragging:!1});i==null||i(N.sourceEvent,u,V,F),q==null||q(N.sourceEvent,V,F),C||L==null||L(N.sourceEvent,F)}}}).filter(N=>{const B=N.target;return!N.button&&(!M||!WT(B,`.${M}`,O))&&(!A||WT(B,A,O))});y.call(R)}function S(){y==null||y.on(".drag",null)}return{update:w,destroy:S}}function RJ(e,t,n){const r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const a of t.values())eh(i,Dc(a))>0&&r.push(a);return r}const DJ=250;function jJ(e,t,n,r){var u,f;let i=[],a=1/0;const l=RJ(e,n,t+DJ);for(const d of l){const h=[...((u=d.internals.handleBounds)==null?void 0:u.source)??[],...((f=d.internals.handleBounds)==null?void 0:f.target)??[]];for(const p of h){if(r.nodeId===p.nodeId&&r.type===p.type&&r.id===p.id)continue;const{x:y,y:v}=zl(d,p,p.position,!0),g=Math.sqrt(Math.pow(y-e.x,2)+Math.pow(v-e.y,2));g>t||(g<a?(i=[{...p,x:y,y:v}],a=g):g===a&&i.push({...p,x:y,y:v}))}}if(!i.length)return null;if(i.length>1){const d=r.type==="source"?"target":"source";return i.find(h=>h.type===d)??i[0]}return i[0]}function NI(e,t,n,r,i,a=!1){var d,h,p;const l=r.get(e);if(!l)return null;const u=i==="strict"?(d=l.internals.handleBounds)==null?void 0:d[t]:[...((h=l.internals.handleBounds)==null?void 0:h.source)??[],...((p=l.internals.handleBounds)==null?void 0:p.target)??[]],f=(n?u==null?void 0:u.find(y=>y.id===n):u==null?void 0:u[0])??null;return f&&a?{...f,...zl(l,f,f.position,!0)}:f}function RI(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function IJ(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const DI=()=>!0;function zJ(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:a,isTarget:l,domNode:u,nodeLookup:f,lib:d,autoPanOnConnect:h,flowId:p,panBy:y,cancelConnection:v,onConnectStart:g,onConnect:b,onConnectEnd:w,isValidConnection:S=DI,onReconnectEnd:M,updateConnection:A,getTransform:O,getFromHandle:k,autoPanSpeed:C,dragThreshold:T=1,handleDomNode:P}){const D=wI(e.target);let z=0,R;const{x:N,y:B}=Mi(e),I=RI(a,P),q=u==null?void 0:u.getBoundingClientRect();let L=!1;if(!q||!I)return;const V=NI(i,I,r,f,t);if(!V)return;let F=Mi(e,q),H=!1,Y=null,$=!1,K=null;function J(){if(!h||!q)return;const[ge,ee]=vI(F,q,C);y({x:ge,y:ee}),z=requestAnimationFrame(J)}const te={...V,nodeId:i,type:I,position:V.position},ce=f.get(i);let de={inProgress:!0,isValid:null,from:zl(ce,te,He.Left,!0),fromHandle:te,fromPosition:te.position,fromNode:ce,to:F,toHandle:null,toPosition:$T[te.position],toNode:null,pointer:F};function ie(){L=!0,A(de),g==null||g(e,{nodeId:i,handleId:r,handleType:I})}T===0&&ie();function W(ge){if(!L){const{x:it,y:Nt}=Mi(ge),Ft=it-N,Gn=Nt-B;if(!(Ft*Ft+Gn*Gn>T*T))return;ie()}if(!k()||!te){pe(ge);return}const ee=O();F=Mi(ge,q),R=jJ(jh(F,ee,!1,[1,1]),n,f,te),H||(J(),H=!0);const Ae=jI(ge,{handle:R,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:l?"target":"source",isValidConnection:S,doc:D,lib:d,flowId:p,nodeLookup:f});K=Ae.handleDomNode,Y=Ae.connection,$=IJ(!!R,Ae.isValid);const Se=f.get(i),Ve=Se?zl(Se,te,He.Left,!0):de.from,Ne={...de,from:Ve,isValid:$,to:Ae.toHandle&&$?tv({x:Ae.toHandle.x,y:Ae.toHandle.y},ee):F,toHandle:Ae.toHandle,toPosition:$&&Ae.toHandle?Ae.toHandle.position:$T[te.position],toNode:Ae.toHandle?f.get(Ae.toHandle.nodeId):null,pointer:F};A(Ne),de=Ne}function pe(ge){if(!("touches"in ge&&ge.touches.length>0)){if(L){(R||K)&&Y&&$&&(b==null||b(Y));const{inProgress:ee,...Ae}=de,Se={...Ae,toPosition:de.toHandle?de.toPosition:null};w==null||w(ge,Se),a&&(M==null||M(ge,Se))}v(),cancelAnimationFrame(z),H=!1,$=!1,Y=null,K=null,D.removeEventListener("mousemove",W),D.removeEventListener("mouseup",pe),D.removeEventListener("touchmove",W),D.removeEventListener("touchend",pe)}}D.addEventListener("mousemove",W),D.addEventListener("mouseup",pe),D.addEventListener("touchmove",W),D.addEventListener("touchend",pe)}function jI(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:l,lib:u,flowId:f,isValidConnection:d=DI,nodeLookup:h}){const p=a==="target",y=t?l.querySelector(`.${u}-flow__handle[data-id="${f}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:v,y:g}=Mi(e),b=l.elementFromPoint(v,g),w=b!=null&&b.classList.contains(`${u}-flow__handle`)?b:y,S={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const M=RI(void 0,w),A=w.getAttribute("data-nodeid"),O=w.getAttribute("data-handleid"),k=w.classList.contains("connectable"),C=w.classList.contains("connectableend");if(!A||!M)return S;const T={source:p?A:r,sourceHandle:p?O:i,target:p?r:A,targetHandle:p?i:O};S.connection=T;const D=k&&C&&(n===Nc.Strict?p&&M==="source"||!p&&M==="target":A!==r||O!==i);S.isValid=D&&d(T),S.toHandle=NI(A,M,O,h,n,!0)}return S}const z2={onPointerDown:zJ,isValid:jI};function LJ({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const i=jr(e);function a({translateExtent:u,width:f,height:d,zoomStep:h=1,pannable:p=!0,zoomable:y=!0,inversePan:v=!1}){const g=A=>{if(A.sourceEvent.type!=="wheel"||!t)return;const O=n(),k=A.sourceEvent.ctrlKey&&th()?10:1,C=-A.sourceEvent.deltaY*(A.sourceEvent.deltaMode===1?.05:A.sourceEvent.deltaMode?1:.002)*h,T=O[2]*Math.pow(2,C*k);t.scaleTo(T)};let b=[0,0];const w=A=>{(A.sourceEvent.type==="mousedown"||A.sourceEvent.type==="touchstart")&&(b=[A.sourceEvent.clientX??A.sourceEvent.touches[0].clientX,A.sourceEvent.clientY??A.sourceEvent.touches[0].clientY])},S=A=>{const O=n();if(A.sourceEvent.type!=="mousemove"&&A.sourceEvent.type!=="touchmove"||!t)return;const k=[A.sourceEvent.clientX??A.sourceEvent.touches[0].clientX,A.sourceEvent.clientY??A.sourceEvent.touches[0].clientY],C=[k[0]-b[0],k[1]-b[1]];b=k;const T=r()*Math.max(O[2],Math.log(O[2]))*(v?-1:1),P={x:O[0]-C[0]*T,y:O[1]-C[1]*T},D=[[0,0],[f,d]];t.setViewportConstrained({x:P.x,y:P.y,zoom:O[2]},D,u)},M=uI().on("start",w).on("zoom",p?S:null).on("zoom.wheel",y?g:null);i.call(M,{})}function l(){i.on("zoom",null)}return{update:a,destroy:l,pointer:xi}}const pg=e=>({x:e.x,y:e.y,zoom:e.k}),Ub=({x:e,y:t,zoom:n})=>fg.translate(e,t).scale(n),Ju=(e,t)=>e.target.closest(`.${t}`),II=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),BJ=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,qb=(e,t=0,n=BJ,r=()=>{})=>{const i=typeof t=="number"&&t>0;return i||r(),i?e.transition().duration(t).ease(n).on("end",r):e},zI=e=>{const t=e.ctrlKey&&th()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function $J({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:a,zoomOnPinch:l,onPanZoomStart:u,onPanZoom:f,onPanZoomEnd:d}){return h=>{if(Ju(h,t))return h.ctrlKey&&h.preventDefault(),!1;h.preventDefault(),h.stopImmediatePropagation();const p=n.property("__zoom").k||1;if(h.ctrlKey&&l){const w=xi(h),S=zI(h),M=p*Math.pow(2,S);r.scaleTo(n,M,w,h);return}const y=h.deltaMode===1?20:1;let v=i===El.Vertical?0:h.deltaX*y,g=i===El.Horizontal?0:h.deltaY*y;!th()&&h.shiftKey&&i!==El.Vertical&&(v=h.deltaY*y,g=0),r.translateBy(n,-(v/p)*a,-(g/p)*a,{internal:!0});const b=pg(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(f==null||f(h,b),e.panScrollTimeout=setTimeout(()=>{d==null||d(h,b),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,u==null||u(h,b))}}function UJ({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){const a=r.type==="wheel",l=!t&&a&&!r.ctrlKey,u=Ju(r,e);if(r.ctrlKey&&a&&u&&r.preventDefault(),l||u)return null;r.preventDefault(),n.call(this,r,i)}}function qJ({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{var a,l,u;if((a=r.sourceEvent)!=null&&a.internal)return;const i=pg(r.transform);e.mouseButton=((l=r.sourceEvent)==null?void 0:l.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=i,((u=r.sourceEvent)==null?void 0:u.type)==="mousedown"&&t(!0),n&&(n==null||n(r.sourceEvent,i))}}function HJ({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return a=>{var l,u;e.usedRightMouseButton=!!(n&&II(t,e.mouseButton??0)),(l=a.sourceEvent)!=null&&l.sync||r([a.transform.x,a.transform.y,a.transform.k]),i&&!((u=a.sourceEvent)!=null&&u.internal)&&(i==null||i(a.sourceEvent,pg(a.transform)))}}function VJ({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:a}){return l=>{var u;if(!((u=l.sourceEvent)!=null&&u.internal)&&(e.isZoomingOrPanning=!1,a&&II(t,e.mouseButton??0)&&!e.usedRightMouseButton&&l.sourceEvent&&a(l.sourceEvent),e.usedRightMouseButton=!1,r(!1),i)){const f=pg(l.transform);e.prevViewport=f,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i==null||i(l.sourceEvent,f)},n?150:0)}}}function FJ({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:a,userSelectionActive:l,noWheelClassName:u,noPanClassName:f,lib:d,connectionInProgress:h}){return p=>{var w;const y=e||t,v=n&&p.ctrlKey,g=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(Ju(p,`${d}-flow__node`)||Ju(p,`${d}-flow__edge`)))return!0;if(!r&&!y&&!i&&!a&&!n||l||h&&!g||Ju(p,u)&&g||Ju(p,f)&&(!g||i&&g&&!e)||!n&&p.ctrlKey&&g)return!1;if(!n&&p.type==="touchstart"&&((w=p.touches)==null?void 0:w.length)>1)return p.preventDefault(),!1;if(!y&&!i&&!v&&g||!r&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(r)&&!r.includes(p.button)&&p.type==="mousedown")return!1;const b=Array.isArray(r)&&r.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||g)&&b}}function KJ({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:a,onPanZoomStart:l,onPanZoomEnd:u,onDraggingChange:f}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),p=uI().scaleExtent([t,n]).translateExtent(r),y=jr(e).call(p);M({x:i.x,y:i.y,zoom:Rc(i.zoom,t,n)},[[0,0],[h.width,h.height]],r);const v=y.on("wheel.zoom"),g=y.on("dblclick.zoom");p.wheelDelta(zI);function b(R,N){return y?new Promise(B=>{p==null||p.interpolate((N==null?void 0:N.interpolate)==="linear"?Ka:py).transform(qb(y,N==null?void 0:N.duration,N==null?void 0:N.ease,()=>B(!0)),R)}):Promise.resolve(!1)}function w({noWheelClassName:R,noPanClassName:N,onPaneContextMenu:B,userSelectionActive:I,panOnScroll:q,panOnDrag:L,panOnScrollMode:V,panOnScrollSpeed:F,preventScrolling:H,zoomOnPinch:Y,zoomOnScroll:$,zoomOnDoubleClick:K,zoomActivationKeyPressed:J,lib:te,onTransformChange:ce,connectionInProgress:he,paneClickDistance:de,selectionOnDrag:ie}){I&&!d.isZoomingOrPanning&&S();const W=q&&!J&&!I;p.clickDistance(ie?1/0:!Oi(de)||de<0?0:de);const pe=W?$J({zoomPanValues:d,noWheelClassName:R,d3Selection:y,d3Zoom:p,panOnScrollMode:V,panOnScrollSpeed:F,zoomOnPinch:Y,onPanZoomStart:l,onPanZoom:a,onPanZoomEnd:u}):UJ({noWheelClassName:R,preventScrolling:H,d3ZoomHandler:v});if(y.on("wheel.zoom",pe,{passive:!1}),!I){const ee=qJ({zoomPanValues:d,onDraggingChange:f,onPanZoomStart:l});p.on("start",ee);const Ae=HJ({zoomPanValues:d,panOnDrag:L,onPaneContextMenu:!!B,onPanZoom:a,onTransformChange:ce});p.on("zoom",Ae);const Se=VJ({zoomPanValues:d,panOnDrag:L,panOnScroll:q,onPaneContextMenu:B,onPanZoomEnd:u,onDraggingChange:f});p.on("end",Se)}const ge=FJ({zoomActivationKeyPressed:J,panOnDrag:L,zoomOnScroll:$,panOnScroll:q,zoomOnDoubleClick:K,zoomOnPinch:Y,userSelectionActive:I,noPanClassName:N,noWheelClassName:R,lib:te,connectionInProgress:he});p.filter(ge),K?y.on("dblclick.zoom",g):y.on("dblclick.zoom",null)}function S(){p.on("zoom",null)}async function M(R,N,B){const I=Ub(R),q=p==null?void 0:p.constrain()(I,N,B);return q&&await b(q),new Promise(L=>L(q))}async function A(R,N){const B=Ub(R);return await b(B,N),new Promise(I=>I(B))}function O(R){if(y){const N=Ub(R),B=y.property("__zoom");(B.k!==R.zoom||B.x!==R.x||B.y!==R.y)&&(p==null||p.transform(y,N,null,{sync:!0}))}}function k(){const R=y?lI(y.node()):{x:0,y:0,k:1};return{x:R.x,y:R.y,zoom:R.k}}function C(R,N){return y?new Promise(B=>{p==null||p.interpolate((N==null?void 0:N.interpolate)==="linear"?Ka:py).scaleTo(qb(y,N==null?void 0:N.duration,N==null?void 0:N.ease,()=>B(!0)),R)}):Promise.resolve(!1)}function T(R,N){return y?new Promise(B=>{p==null||p.interpolate((N==null?void 0:N.interpolate)==="linear"?Ka:py).scaleBy(qb(y,N==null?void 0:N.duration,N==null?void 0:N.ease,()=>B(!0)),R)}):Promise.resolve(!1)}function P(R){p==null||p.scaleExtent(R)}function D(R){p==null||p.translateExtent(R)}function z(R){const N=!Oi(R)||R<0?0:R;p==null||p.clickDistance(N)}return{update:w,destroy:S,setViewport:A,setViewportConstrained:M,getViewport:k,scaleTo:C,scaleBy:T,setScaleExtent:P,setTranslateExtent:D,syncViewport:O,setClickDistance:z}}var Ic;(function(e){e.Line="line",e.Handle="handle"})(Ic||(Ic={}));function YJ({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:i,affectsY:a}){const l=e-t,u=n-r,f=[l>0?1:l<0?-1:0,u>0?1:u<0?-1:0];return l&&i&&(f[0]=f[0]*-1),u&&a&&(f[1]=f[1]*-1),f}function JT(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),r=e.includes("left"),i=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:r,affectsY:i}}function Ko(e,t){return Math.max(0,t-e)}function Yo(e,t){return Math.max(0,e-t)}function Ym(e,t,n){return Math.max(0,t-e,e-n)}function eP(e,t){return e?!t:t}function GJ(e,t,n,r,i,a,l,u){let{affectsX:f,affectsY:d}=t;const{isHorizontal:h,isVertical:p}=t,y=h&&p,{xSnapped:v,ySnapped:g}=n,{minWidth:b,maxWidth:w,minHeight:S,maxHeight:M}=r,{x:A,y:O,width:k,height:C,aspectRatio:T}=e;let P=Math.floor(h?v-e.pointerX:0),D=Math.floor(p?g-e.pointerY:0);const z=k+(f?-P:P),R=C+(d?-D:D),N=-a[0]*k,B=-a[1]*C;let I=Ym(z,b,w),q=Ym(R,S,M);if(l){let F=0,H=0;f&&P<0?F=Ko(A+P+N,l[0][0]):!f&&P>0&&(F=Yo(A+z+N,l[1][0])),d&&D<0?H=Ko(O+D+B,l[0][1]):!d&&D>0&&(H=Yo(O+R+B,l[1][1])),I=Math.max(I,F),q=Math.max(q,H)}if(u){let F=0,H=0;f&&P>0?F=Yo(A+P,u[0][0]):!f&&P<0&&(F=Ko(A+z,u[1][0])),d&&D>0?H=Yo(O+D,u[0][1]):!d&&D<0&&(H=Ko(O+R,u[1][1])),I=Math.max(I,F),q=Math.max(q,H)}if(i){if(h){const F=Ym(z/T,S,M)*T;if(I=Math.max(I,F),l){let H=0;!f&&!d||f&&!d&&y?H=Yo(O+B+z/T,l[1][1])*T:H=Ko(O+B+(f?P:-P)/T,l[0][1])*T,I=Math.max(I,H)}if(u){let H=0;!f&&!d||f&&!d&&y?H=Ko(O+z/T,u[1][1])*T:H=Yo(O+(f?P:-P)/T,u[0][1])*T,I=Math.max(I,H)}}if(p){const F=Ym(R*T,b,w)/T;if(q=Math.max(q,F),l){let H=0;!f&&!d||d&&!f&&y?H=Yo(A+R*T+N,l[1][0])/T:H=Ko(A+(d?D:-D)*T+N,l[0][0])/T,q=Math.max(q,H)}if(u){let H=0;!f&&!d||d&&!f&&y?H=Ko(A+R*T,u[1][0])/T:H=Yo(A+(d?D:-D)*T,u[0][0])/T,q=Math.max(q,H)}}}D=D+(D<0?q:-q),P=P+(P<0?I:-I),i&&(y?z>R*T?D=(eP(f,d)?-P:P)/T:P=(eP(f,d)?-D:D)*T:h?(D=P/T,d=f):(P=D*T,f=d));const L=f?A+P:A,V=d?O+D:O;return{width:k+(f?-P:P),height:C+(d?-D:D),x:a[0]*P*(f?-1:1)+L,y:a[1]*D*(d?-1:1)+V}}const LI={width:0,height:0,x:0,y:0},QJ={...LI,pointerX:0,pointerY:0,aspectRatio:1};function ZJ(e){return[[0,0],[e.measured.width,e.measured.height]]}function XJ(e,t,n){const r=t.position.x+e.position.x,i=t.position.y+e.position.y,a=e.measured.width??0,l=e.measured.height??0,u=n[0]*a,f=n[1]*l;return[[r-u,i-f],[r+a-u,i+l-f]]}function WJ({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:i}){const a=jr(e);let l={controlDirection:JT("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function u({controlPosition:d,boundaries:h,keepAspectRatio:p,resizeDirection:y,onResizeStart:v,onResize:g,onResizeEnd:b,shouldResize:w}){let S={...LI},M={...QJ};l={boundaries:h,resizeDirection:y,keepAspectRatio:p,controlDirection:JT(d)};let A,O=null,k=[],C,T,P,D=!1;const z=Gj().on("start",R=>{const{nodeLookup:N,transform:B,snapGrid:I,snapToGrid:q,nodeOrigin:L,paneDomNode:V}=n();if(A=N.get(t),!A)return;O=(V==null?void 0:V.getBoundingClientRect())??null;const{xSnapped:F,ySnapped:H}=Nd(R.sourceEvent,{transform:B,snapGrid:I,snapToGrid:q,containerBounds:O});S={width:A.measured.width??0,height:A.measured.height??0,x:A.position.x??0,y:A.position.y??0},M={...S,pointerX:F,pointerY:H,aspectRatio:S.width/S.height},C=void 0,A.parentId&&(A.extent==="parent"||A.expandParent)&&(C=N.get(A.parentId),T=C&&A.extent==="parent"?ZJ(C):void 0),k=[],P=void 0;for(const[Y,$]of N)if($.parentId===t&&(k.push({id:Y,position:{...$.position},extent:$.extent}),$.extent==="parent"||$.expandParent)){const K=XJ($,A,$.origin??L);P?P=[[Math.min(K[0][0],P[0][0]),Math.min(K[0][1],P[0][1])],[Math.max(K[1][0],P[1][0]),Math.max(K[1][1],P[1][1])]]:P=K}v==null||v(R,{...S})}).on("drag",R=>{const{transform:N,snapGrid:B,snapToGrid:I,nodeOrigin:q}=n(),L=Nd(R.sourceEvent,{transform:N,snapGrid:B,snapToGrid:I,containerBounds:O}),V=[];if(!A)return;const{x:F,y:H,width:Y,height:$}=S,K={},J=A.origin??q,{width:te,height:ce,x:he,y:de}=GJ(M,l.controlDirection,L,l.boundaries,l.keepAspectRatio,J,T,P),ie=te!==Y,W=ce!==$,pe=he!==F&&ie,ge=de!==H&&W;if(!pe&&!ge&&!ie&&!W)return;if((pe||ge||J[0]===1||J[1]===1)&&(K.x=pe?he:S.x,K.y=ge?de:S.y,S.x=K.x,S.y=K.y,k.length>0)){const Ve=he-F,Ne=de-H;for(const it of k)it.position={x:it.position.x-Ve+J[0]*(te-Y),y:it.position.y-Ne+J[1]*(ce-$)},V.push(it)}if((ie||W)&&(K.width=ie&&(!l.resizeDirection||l.resizeDirection==="horizontal")?te:S.width,K.height=W&&(!l.resizeDirection||l.resizeDirection==="vertical")?ce:S.height,S.width=K.width,S.height=K.height),C&&A.expandParent){const Ve=J[0]*(K.width??0);K.x&&K.x<Ve&&(S.x=Ve,M.x=M.x-(K.x-Ve));const Ne=J[1]*(K.height??0);K.y&&K.y<Ne&&(S.y=Ne,M.y=M.y-(K.y-Ne))}const ee=YJ({width:S.width,prevWidth:Y,height:S.height,prevHeight:$,affectsX:l.controlDirection.affectsX,affectsY:l.controlDirection.affectsY}),Ae={...S,direction:ee};(w==null?void 0:w(R,Ae))!==!1&&(D=!0,g==null||g(R,Ae),r(K,V))}).on("end",R=>{D&&(b==null||b(R,{...S}),i==null||i({...S}),D=!1)});a.call(z)}function f(){a.on(".drag",null)}return{update:u,destroy:f}}var Hb={exports:{}},Vb={},Fb={exports:{}},Kb={};/**
|
|
804
|
-
* @license React
|
|
805
|
-
* use-sync-external-store-shim.production.js
|
|
806
|
-
*
|
|
807
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
808
|
-
*
|
|
809
|
-
* This source code is licensed under the MIT license found in the
|
|
810
|
-
* LICENSE file in the root directory of this source tree.
|
|
811
|
-
*/var tP;function JJ(){if(tP)return Kb;tP=1;var e=qc();function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function u(p,y){var v=y(),g=r({inst:{value:v,getSnapshot:y}}),b=g[0].inst,w=g[1];return a(function(){b.value=v,b.getSnapshot=y,f(b)&&w({inst:b})},[p,v,y]),i(function(){return f(b)&&w({inst:b}),p(function(){f(b)&&w({inst:b})})},[p]),l(v),v}function f(p){var y=p.getSnapshot;p=p.value;try{var v=y();return!n(p,v)}catch{return!0}}function d(p,y){return y()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:u;return Kb.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Kb}var nP;function eee(){return nP||(nP=1,Fb.exports=JJ()),Fb.exports}/**
|
|
812
|
-
* @license React
|
|
813
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
814
|
-
*
|
|
815
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
816
|
-
*
|
|
817
|
-
* This source code is licensed under the MIT license found in the
|
|
818
|
-
* LICENSE file in the root directory of this source tree.
|
|
819
|
-
*/var rP;function tee(){if(rP)return Vb;rP=1;var e=qc(),t=eee();function n(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,l=e.useEffect,u=e.useMemo,f=e.useDebugValue;return Vb.useSyncExternalStoreWithSelector=function(d,h,p,y,v){var g=a(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=u(function(){function S(C){if(!M){if(M=!0,A=C,C=y(C),v!==void 0&&b.hasValue){var T=b.value;if(v(T,C))return O=T}return O=C}if(T=O,r(A,C))return T;var P=y(C);return v!==void 0&&v(T,P)?(A=C,T):(A=C,O=P)}var M=!1,A,O,k=p===void 0?null:p;return[function(){return S(h())},k===null?void 0:function(){return S(k())}]},[h,p,y,v]);var w=i(d,g[0],g[1]);return l(function(){b.hasValue=!0,b.value=w},[w]),f(w),w},Vb}var iP;function nee(){return iP||(iP=1,Hb.exports=tee()),Hb.exports}var BI=nee();const ree=ui(BI),iee={},aP=e=>{let t;const n=new Set,r=(h,p)=>{const y=typeof h=="function"?h(t):h;if(!Object.is(y,t)){const v=t;t=p??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(g=>g(t,v))}},i=()=>t,f={setState:r,getState:i,getInitialState:()=>d,subscribe:h=>(n.add(h),()=>n.delete(h)),destroy:()=>{(iee?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},d=t=e(r,i,f);return f},aee=e=>e?aP(e):aP,{useDebugValue:oee}=rn,{useSyncExternalStoreWithSelector:see}=ree,lee=e=>e;function $I(e,t=lee,n){const r=see(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return oee(r),r}const oP=(e,t)=>{const n=aee(e),r=(i,a=t)=>$I(n,i,a);return Object.assign(r,n),r},uee=(e,t)=>e?oP(e,t):oP;function Ut(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const mg=E.createContext(null),cee=mg.Provider,UI=Ji.error001();function ft(e,t){const n=E.useContext(mg);if(n===null)throw new Error(UI);return $I(n,e,t)}function qt(){const e=E.useContext(mg);if(e===null)throw new Error(UI);return E.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const sP={display:"none"},fee={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},qI="react-flow__node-desc",HI="react-flow__edge-desc",dee="react-flow__aria-live",hee=e=>e.ariaLiveMessage,pee=e=>e.ariaLabelConfig;function mee({rfId:e}){const t=ft(hee);return ye.jsx("div",{id:`${dee}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:fee,children:t})}function yee({rfId:e,disableKeyboardA11y:t}){const n=ft(pee);return ye.jsxs(ye.Fragment,{children:[ye.jsx("div",{id:`${qI}-${e}`,style:sP,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),ye.jsx("div",{id:`${HI}-${e}`,style:sP,children:n["edge.a11yDescription.default"]}),!t&&ye.jsx(mee,{rfId:e})]})}const yg=E.forwardRef(({position:e="top-left",children:t,className:n,style:r,...i},a)=>{const l=`${e}`.split("-");return ye.jsx("div",{className:mn(["react-flow__panel",n,...l]),style:r,ref:a,...i,children:t})});yg.displayName="Panel";function vee({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:ye.jsx(yg,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:ye.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const gee=e=>{const t=[],n=[];for(const[,r]of e.nodeLookup)r.selected&&t.push(r.internals.userNode);for(const[,r]of e.edgeLookup)r.selected&&n.push(r);return{selectedNodes:t,selectedEdges:n}},Gm=e=>e.id;function bee(e,t){return Ut(e.selectedNodes.map(Gm),t.selectedNodes.map(Gm))&&Ut(e.selectedEdges.map(Gm),t.selectedEdges.map(Gm))}function xee({onSelectionChange:e}){const t=qt(),{selectedNodes:n,selectedEdges:r}=ft(gee,bee);return E.useEffect(()=>{const i={nodes:n,edges:r};e==null||e(i),t.getState().onSelectionChangeHandlers.forEach(a=>a(i))},[n,r,e]),null}const wee=e=>!!e.onSelectionChangeHandlers;function See({onSelectionChange:e}){const t=ft(wee);return e||t?ye.jsx(xee,{onSelectionChange:e}):null}const L2=typeof window<"u"?E.useLayoutEffect:E.useEffect,VI=[0,0],_ee={x:0,y:0,zoom:1},Eee=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],lP=[...Eee,"rfId"],Aee=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),uP={translateExtent:Wd,nodeOrigin:VI,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function Oee(e){const{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:a,setNodeExtent:l,reset:u,setDefaultNodesAndEdges:f}=ft(Aee,Ut),d=qt();L2(()=>(f(e.defaultNodes,e.defaultEdges),()=>{h.current=uP,u()}),[]);const h=E.useRef(uP);return L2(()=>{for(const p of lP){const y=e[p],v=h.current[p];y!==v&&(typeof e[p]>"u"||(p==="nodes"?t(y):p==="edges"?n(y):p==="minZoom"?r(y):p==="maxZoom"?i(y):p==="translateExtent"?a(y):p==="nodeExtent"?l(y):p==="ariaLabelConfig"?d.setState({ariaLabelConfig:cJ(y)}):p==="fitView"?d.setState({fitViewQueued:y}):p==="fitViewOptions"?d.setState({fitViewOptions:y}):d.setState({[p]:y})))}h.current=e},lP.map(p=>e[p])),null}function cP(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function Mee(e){var r;const[t,n]=E.useState(e==="system"?null:e);return E.useEffect(()=>{if(e!=="system"){n(e);return}const i=cP(),a=()=>n(i!=null&&i.matches?"dark":"light");return a(),i==null||i.addEventListener("change",a),()=>{i==null||i.removeEventListener("change",a)}},[e]),t!==null?t:(r=cP())!=null&&r.matches?"dark":"light"}const fP=typeof document<"u"?document:null;function nh(e=null,t={target:fP,actInsideInputWithModifier:!0}){const[n,r]=E.useState(!1),i=E.useRef(!1),a=E.useRef(new Set([])),[l,u]=E.useMemo(()=>{if(e!==null){const d=(Array.isArray(e)?e:[e]).filter(p=>typeof p=="string").map(p=>p.replace("+",`
|
|
820
|
-
`).replace(`
|
|
821
|
-
|
|
822
|
-
`,`
|
|
823
|
-
+`).split(`
|
|
824
|
-
`)),h=d.reduce((p,y)=>p.concat(...y),[]);return[d,h]}return[[],[]]},[e]);return E.useEffect(()=>{const f=(t==null?void 0:t.target)??fP,d=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const h=v=>{var w,S;if(i.current=v.ctrlKey||v.metaKey||v.shiftKey||v.altKey,(!i.current||i.current&&!d)&&SI(v))return!1;const b=hP(v.code,u);if(a.current.add(v[b]),dP(l,a.current,!1)){const M=((S=(w=v.composedPath)==null?void 0:w.call(v))==null?void 0:S[0])||v.target,A=(M==null?void 0:M.nodeName)==="BUTTON"||(M==null?void 0:M.nodeName)==="A";t.preventDefault!==!1&&(i.current||!A)&&v.preventDefault(),r(!0)}},p=v=>{const g=hP(v.code,u);dP(l,a.current,!0)?(r(!1),a.current.clear()):a.current.delete(v[g]),v.key==="Meta"&&a.current.clear(),i.current=!1},y=()=>{a.current.clear(),r(!1)};return f==null||f.addEventListener("keydown",h),f==null||f.addEventListener("keyup",p),window.addEventListener("blur",y),window.addEventListener("contextmenu",y),()=>{f==null||f.removeEventListener("keydown",h),f==null||f.removeEventListener("keyup",p),window.removeEventListener("blur",y),window.removeEventListener("contextmenu",y)}}},[e,r]),n}function dP(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(i=>t.has(i)))}function hP(e,t){return t.includes(e)?"code":"key"}const Cee=()=>{const e=qt();return E.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,n):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,i,a],panZoom:l}=e.getState();return l?(await l.setViewport({x:t.x??r,y:t.y??i,zoom:t.zoom??a},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>e.getState().setCenter(t,n,r),fitBounds:async(t,n)=>{const{width:r,height:i,minZoom:a,maxZoom:l,panZoom:u}=e.getState(),f=p_(t,r,i,a,l,(n==null?void 0:n.padding)??.1);return u?(await u.setViewport(f,{duration:n==null?void 0:n.duration,ease:n==null?void 0:n.ease,interpolate:n==null?void 0:n.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:r,snapGrid:i,snapToGrid:a,domNode:l}=e.getState();if(!l)return t;const{x:u,y:f}=l.getBoundingClientRect(),d={x:t.x-u,y:t.y-f},h=n.snapGrid??i,p=n.snapToGrid??a;return jh(d,r,p,h)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:i,y:a}=r.getBoundingClientRect(),l=tv(t,n);return{x:l.x+i,y:l.y+a}}}),[])};function FI(e,t){const n=[],r=new Map,i=[];for(const a of e)if(a.type==="add"){i.push(a);continue}else if(a.type==="remove"||a.type==="replace")r.set(a.id,[a]);else{const l=r.get(a.id);l?l.push(a):r.set(a.id,[a])}for(const a of t){const l=r.get(a.id);if(!l){n.push(a);continue}if(l[0].type==="remove")continue;if(l[0].type==="replace"){n.push({...l[0].item});continue}const u={...a};for(const f of l)kee(f,u);n.push(u)}return i.length&&i.forEach(a=>{a.index!==void 0?n.splice(a.index,0,{...a.item}):n.push({...a.item})}),n}function kee(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function Tee(e,t){return FI(e,t)}function Pee(e,t){return FI(e,t)}function nl(e,t){return{id:e,type:"select",selected:t}}function ec(e,t=new Set,n=!1){const r=[];for(const[i,a]of e){const l=t.has(i);!(a.selected===void 0&&!l)&&a.selected!==l&&(n&&(a.selected=l),r.push(nl(a.id,l)))}return r}function pP({items:e=[],lookup:t}){var i;const n=[],r=new Map(e.map(a=>[a.id,a]));for(const[a,l]of e.entries()){const u=t.get(l.id),f=((i=u==null?void 0:u.internals)==null?void 0:i.userNode)??u;f!==void 0&&f!==l&&n.push({id:l.id,item:l,type:"replace"}),f===void 0&&n.push({item:l,type:"add",index:a})}for(const[a]of t)r.get(a)===void 0&&n.push({id:a,type:"remove"});return n}function mP(e){return{id:e.id,type:"remove"}}const yP=e=>eJ(e),Nee=e=>pI(e);function KI(e){return E.forwardRef(e)}function vP(e){const[t,n]=E.useState(BigInt(0)),[r]=E.useState(()=>Ree(()=>n(i=>i+BigInt(1))));return L2(()=>{const i=r.get();i.length&&(e(i),r.reset())},[t]),r}function Ree(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const YI=E.createContext(null);function Dee({children:e}){const t=qt(),n=E.useCallback(u=>{const{nodes:f=[],setNodes:d,hasDefaultNodes:h,onNodesChange:p,nodeLookup:y,fitViewQueued:v,onNodesChangeMiddlewareMap:g}=t.getState();let b=f;for(const S of u)b=typeof S=="function"?S(b):S;let w=pP({items:b,lookup:y});for(const S of g.values())w=S(w);h&&d(b),w.length>0?p==null||p(w):v&&window.requestAnimationFrame(()=>{const{fitViewQueued:S,nodes:M,setNodes:A}=t.getState();S&&A(M)})},[]),r=vP(n),i=E.useCallback(u=>{const{edges:f=[],setEdges:d,hasDefaultEdges:h,onEdgesChange:p,edgeLookup:y}=t.getState();let v=f;for(const g of u)v=typeof g=="function"?g(v):g;h?d(v):p&&p(pP({items:v,lookup:y}))},[]),a=vP(i),l=E.useMemo(()=>({nodeQueue:r,edgeQueue:a}),[]);return ye.jsx(YI.Provider,{value:l,children:e})}function jee(){const e=E.useContext(YI);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const Iee=e=>!!e.panZoom;function w_(){const e=Cee(),t=qt(),n=jee(),r=ft(Iee),i=E.useMemo(()=>{const a=p=>t.getState().nodeLookup.get(p),l=p=>{n.nodeQueue.push(p)},u=p=>{n.edgeQueue.push(p)},f=p=>{var S,M;const{nodeLookup:y,nodeOrigin:v}=t.getState(),g=yP(p)?p:y.get(p.id),b=g.parentId?xI(g.position,g.measured,g.parentId,y,v):g.position,w={...g,position:b,width:((S=g.measured)==null?void 0:S.width)??g.width,height:((M=g.measured)==null?void 0:M.height)??g.height};return Dc(w)},d=(p,y,v={replace:!1})=>{l(g=>g.map(b=>{if(b.id===p){const w=typeof y=="function"?y(b):y;return v.replace&&yP(w)?w:{...b,...w}}return b}))},h=(p,y,v={replace:!1})=>{u(g=>g.map(b=>{if(b.id===p){const w=typeof y=="function"?y(b):y;return v.replace&&Nee(w)?w:{...b,...w}}return b}))};return{getNodes:()=>t.getState().nodes.map(p=>({...p})),getNode:p=>{var y;return(y=a(p))==null?void 0:y.internals.userNode},getInternalNode:a,getEdges:()=>{const{edges:p=[]}=t.getState();return p.map(y=>({...y}))},getEdge:p=>t.getState().edgeLookup.get(p),setNodes:l,setEdges:u,addNodes:p=>{const y=Array.isArray(p)?p:[p];n.nodeQueue.push(v=>[...v,...y])},addEdges:p=>{const y=Array.isArray(p)?p:[p];n.edgeQueue.push(v=>[...v,...y])},toObject:()=>{const{nodes:p=[],edges:y=[],transform:v}=t.getState(),[g,b,w]=v;return{nodes:p.map(S=>({...S})),edges:y.map(S=>({...S})),viewport:{x:g,y:b,zoom:w}}},deleteElements:async({nodes:p=[],edges:y=[]})=>{const{nodes:v,edges:g,onNodesDelete:b,onEdgesDelete:w,triggerNodeChanges:S,triggerEdgeChanges:M,onDelete:A,onBeforeDelete:O}=t.getState(),{nodes:k,edges:C}=await aJ({nodesToRemove:p,edgesToRemove:y,nodes:v,edges:g,onBeforeDelete:O}),T=C.length>0,P=k.length>0;if(T){const D=C.map(mP);w==null||w(C),M(D)}if(P){const D=k.map(mP);b==null||b(k),S(D)}return(P||T)&&(A==null||A({nodes:k,edges:C})),{deletedNodes:k,deletedEdges:C}},getIntersectingNodes:(p,y=!0,v)=>{const g=qT(p),b=g?p:f(p),w=v!==void 0;return b?(v||t.getState().nodes).filter(S=>{const M=t.getState().nodeLookup.get(S.id);if(M&&!g&&(S.id===p.id||!M.internals.positionAbsolute))return!1;const A=Dc(w?S:M),O=eh(A,b);return y&&O>0||O>=A.width*A.height||O>=b.width*b.height}):[]},isNodeIntersecting:(p,y,v=!0)=>{const b=qT(p)?p:f(p);if(!b)return!1;const w=eh(b,y);return v&&w>0||w>=y.width*y.height||w>=b.width*b.height},updateNode:d,updateNodeData:(p,y,v={replace:!1})=>{d(p,g=>{const b=typeof y=="function"?y(g):y;return v.replace?{...g,data:b}:{...g,data:{...g.data,...b}}},v)},updateEdge:h,updateEdgeData:(p,y,v={replace:!1})=>{h(p,g=>{const b=typeof y=="function"?y(g):y;return v.replace?{...g,data:b}:{...g,data:{...g.data,...b}}},v)},getNodesBounds:p=>{const{nodeLookup:y,nodeOrigin:v}=t.getState();return tJ(p,{nodeLookup:y,nodeOrigin:v})},getHandleConnections:({type:p,id:y,nodeId:v})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${v}-${p}${y?`-${y}`:""}`))==null?void 0:g.values())??[])},getNodeConnections:({type:p,handleId:y,nodeId:v})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${v}${p?y?`-${p}-${y}`:`-${p}`:""}`))==null?void 0:g.values())??[])},fitView:async p=>{const y=t.getState().fitViewResolver??uJ();return t.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:y}),n.nodeQueue.push(v=>[...v]),y.promise}}},[]);return E.useMemo(()=>({...i,...e,viewportInitialized:r}),[r])}const gP=e=>e.selected,zee=typeof window<"u"?window:void 0;function Lee({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=qt(),{deleteElements:r}=w_(),i=nh(e,{actInsideInputWithModifier:!1}),a=nh(t,{target:zee});E.useEffect(()=>{if(i){const{edges:l,nodes:u}=n.getState();r({nodes:u.filter(gP),edges:l.filter(gP)}),n.setState({nodesSelectionActive:!1})}},[i]),E.useEffect(()=>{n.setState({multiSelectionActive:a})},[a])}function Bee(e){const t=qt();E.useEffect(()=>{const n=()=>{var i,a,l,u;if(!e.current||!(((a=(i=e.current).checkVisibility)==null?void 0:a.call(i))??!0))return!1;const r=m_(e.current);(r.height===0||r.width===0)&&((u=(l=t.getState()).onError)==null||u.call(l,"004",Ji.error004())),t.setState({width:r.width||500,height:r.height||500})};if(e.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(e.current),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}}},[])}const vg={position:"absolute",width:"100%",height:"100%",top:0,left:0},$ee=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function Uee({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:i=.5,panOnScrollMode:a=El.Free,zoomOnDoubleClick:l=!0,panOnDrag:u=!0,defaultViewport:f,translateExtent:d,minZoom:h,maxZoom:p,zoomActivationKeyCode:y,preventScrolling:v=!0,children:g,noWheelClassName:b,noPanClassName:w,onViewportChange:S,isControlledViewport:M,paneClickDistance:A,selectionOnDrag:O}){const k=qt(),C=E.useRef(null),{userSelectionActive:T,lib:P,connectionInProgress:D}=ft($ee,Ut),z=nh(y),R=E.useRef();Bee(C);const N=E.useCallback(B=>{S==null||S({x:B[0],y:B[1],zoom:B[2]}),M||k.setState({transform:B})},[S,M]);return E.useEffect(()=>{if(C.current){R.current=KJ({domNode:C.current,minZoom:h,maxZoom:p,translateExtent:d,viewport:f,onDraggingChange:L=>k.setState(V=>V.paneDragging===L?V:{paneDragging:L}),onPanZoomStart:(L,V)=>{const{onViewportChangeStart:F,onMoveStart:H}=k.getState();H==null||H(L,V),F==null||F(V)},onPanZoom:(L,V)=>{const{onViewportChange:F,onMove:H}=k.getState();H==null||H(L,V),F==null||F(V)},onPanZoomEnd:(L,V)=>{const{onViewportChangeEnd:F,onMoveEnd:H}=k.getState();H==null||H(L,V),F==null||F(V)}});const{x:B,y:I,zoom:q}=R.current.getViewport();return k.setState({panZoom:R.current,transform:[B,I,q],domNode:C.current.closest(".react-flow")}),()=>{var L;(L=R.current)==null||L.destroy()}}},[]),E.useEffect(()=>{var B;(B=R.current)==null||B.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:i,panOnScrollMode:a,zoomOnDoubleClick:l,panOnDrag:u,zoomActivationKeyPressed:z,preventScrolling:v,noPanClassName:w,userSelectionActive:T,noWheelClassName:b,lib:P,onTransformChange:N,connectionInProgress:D,selectionOnDrag:O,paneClickDistance:A})},[e,t,n,r,i,a,l,u,z,v,w,T,b,P,N,D,O,A]),ye.jsx("div",{className:"react-flow__renderer",ref:C,style:vg,children:g})}const qee=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Hee(){const{userSelectionActive:e,userSelectionRect:t}=ft(qee,Ut);return e&&t?ye.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const Yb=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},Vee=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function Fee({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Jd.Full,panOnDrag:r,paneClickDistance:i,selectionOnDrag:a,onSelectionStart:l,onSelectionEnd:u,onPaneClick:f,onPaneContextMenu:d,onPaneScroll:h,onPaneMouseEnter:p,onPaneMouseMove:y,onPaneMouseLeave:v,children:g}){const b=qt(),{userSelectionActive:w,elementsSelectable:S,dragging:M,connectionInProgress:A}=ft(Vee,Ut),O=S&&(e||w),k=E.useRef(null),C=E.useRef(),T=E.useRef(new Set),P=E.useRef(new Set),D=E.useRef(!1),z=F=>{if(D.current||A){D.current=!1;return}f==null||f(F),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1})},R=F=>{if(Array.isArray(r)&&(r!=null&&r.includes(2))){F.preventDefault();return}d==null||d(F)},N=h?F=>h(F):void 0,B=F=>{D.current&&(F.stopPropagation(),D.current=!1)},I=F=>{var ce,he;const{domNode:H}=b.getState();if(C.current=H==null?void 0:H.getBoundingClientRect(),!C.current)return;const Y=F.target===k.current;if(!Y&&!!F.target.closest(".nokey")||!e||!(a&&Y||t)||F.button!==0||!F.isPrimary)return;(he=(ce=F.target)==null?void 0:ce.setPointerCapture)==null||he.call(ce,F.pointerId),D.current=!1;const{x:J,y:te}=Mi(F.nativeEvent,C.current);b.setState({userSelectionRect:{width:0,height:0,startX:J,startY:te,x:J,y:te}}),Y||(F.stopPropagation(),F.preventDefault())},q=F=>{const{userSelectionRect:H,transform:Y,nodeLookup:$,edgeLookup:K,connectionLookup:J,triggerNodeChanges:te,triggerEdgeChanges:ce,defaultEdgeOptions:he,resetSelectedElements:de}=b.getState();if(!C.current||!H)return;const{x:ie,y:W}=Mi(F.nativeEvent,C.current),{startX:pe,startY:ge}=H;if(!D.current){const Ne=t?0:i;if(Math.hypot(ie-pe,W-ge)<=Ne)return;de(),l==null||l(F)}D.current=!0;const ee={startX:pe,startY:ge,x:ie<pe?ie:pe,y:W<ge?W:ge,width:Math.abs(ie-pe),height:Math.abs(W-ge)},Ae=T.current,Se=P.current;T.current=new Set(h_($,ee,Y,n===Jd.Partial,!0).map(Ne=>Ne.id)),P.current=new Set;const Ve=(he==null?void 0:he.selectable)??!0;for(const Ne of T.current){const it=J.get(Ne);if(it)for(const{edgeId:Nt}of it.values()){const Ft=K.get(Nt);Ft&&(Ft.selectable??Ve)&&P.current.add(Nt)}}if(!HT(Ae,T.current)){const Ne=ec($,T.current,!0);te(Ne)}if(!HT(Se,P.current)){const Ne=ec(K,P.current);ce(Ne)}b.setState({userSelectionRect:ee,userSelectionActive:!0,nodesSelectionActive:!1})},L=F=>{var H,Y;F.button===0&&((Y=(H=F.target)==null?void 0:H.releasePointerCapture)==null||Y.call(H,F.pointerId),!w&&F.target===k.current&&b.getState().userSelectionRect&&(z==null||z(F)),b.setState({userSelectionActive:!1,userSelectionRect:null}),D.current&&(u==null||u(F),b.setState({nodesSelectionActive:T.current.size>0})))},V=r===!0||Array.isArray(r)&&r.includes(0);return ye.jsxs("div",{className:mn(["react-flow__pane",{draggable:V,dragging:M,selection:e}]),onClick:O?void 0:Yb(z,k),onContextMenu:Yb(R,k),onWheel:Yb(N,k),onPointerEnter:O?void 0:p,onPointerMove:O?q:y,onPointerUp:O?L:void 0,onPointerDownCapture:O?I:void 0,onClickCapture:O?B:void 0,onPointerLeave:v,ref:k,style:vg,children:[g,ye.jsx(Hee,{})]})}function B2({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:i,unselectNodesAndEdges:a,multiSelectionActive:l,nodeLookup:u,onError:f}=t.getState(),d=u.get(e);if(!d){f==null||f("012",Ji.error012(e));return}t.setState({nodesSelectionActive:!1}),d.selected?(n||d.selected&&l)&&(a({nodes:[d],edges:[]}),requestAnimationFrame(()=>{var h;return(h=r==null?void 0:r.current)==null?void 0:h.blur()})):i([e])}function GI({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:a,nodeClickDistance:l}){const u=qt(),[f,d]=E.useState(!1),h=E.useRef();return E.useEffect(()=>{h.current=NJ({getStoreItems:()=>u.getState(),onNodeMouseDown:p=>{B2({id:p,store:u,nodeRef:e})},onDragStart:()=>{d(!0)},onDragStop:()=>{d(!1)}})},[]),E.useEffect(()=>{if(!(t||!e.current||!h.current))return h.current.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:a,nodeId:i,nodeClickDistance:l}),()=>{var p;(p=h.current)==null||p.destroy()}},[n,r,t,a,e,i,l]),f}const Kee=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function QI(){const e=qt();return E.useCallback(n=>{const{nodeExtent:r,snapToGrid:i,snapGrid:a,nodesDraggable:l,onError:u,updateNodePositions:f,nodeLookup:d,nodeOrigin:h}=e.getState(),p=new Map,y=Kee(l),v=i?a[0]:5,g=i?a[1]:5,b=n.direction.x*v*n.factor,w=n.direction.y*g*n.factor;for(const[,S]of d){if(!y(S))continue;let M={x:S.internals.positionAbsolute.x+b,y:S.internals.positionAbsolute.y+w};i&&(M=Dh(M,a));const{position:A,positionAbsolute:O}=mI({nodeId:S.id,nextPosition:M,nodeLookup:d,nodeExtent:r,nodeOrigin:h,onError:u});S.position=A,S.internals.positionAbsolute=O,p.set(S.id,S)}f(p)},[])}const S_=E.createContext(null),Yee=S_.Provider;S_.Consumer;const ZI=()=>E.useContext(S_),Gee=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),Qee=(e,t,n)=>r=>{const{connectionClickStartHandle:i,connectionMode:a,connection:l}=r,{fromHandle:u,toHandle:f,isValid:d}=l,h=(f==null?void 0:f.nodeId)===e&&(f==null?void 0:f.id)===t&&(f==null?void 0:f.type)===n;return{connectingFrom:(u==null?void 0:u.nodeId)===e&&(u==null?void 0:u.id)===t&&(u==null?void 0:u.type)===n,connectingTo:h,clickConnecting:(i==null?void 0:i.nodeId)===e&&(i==null?void 0:i.id)===t&&(i==null?void 0:i.type)===n,isPossibleEndHandle:a===Nc.Strict?(u==null?void 0:u.type)!==n:e!==(u==null?void 0:u.nodeId)||t!==(u==null?void 0:u.id),connectionInProcess:!!u,clickConnectionInProcess:!!i,valid:h&&d}};function Zee({type:e="source",position:t=He.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:a=!0,id:l,onConnect:u,children:f,className:d,onMouseDown:h,onTouchStart:p,...y},v){var q,L;const g=l||null,b=e==="target",w=qt(),S=ZI(),{connectOnClick:M,noPanClassName:A,rfId:O}=ft(Gee,Ut),{connectingFrom:k,connectingTo:C,clickConnecting:T,isPossibleEndHandle:P,connectionInProcess:D,clickConnectionInProcess:z,valid:R}=ft(Qee(S,g,e),Ut);S||(L=(q=w.getState()).onError)==null||L.call(q,"010",Ji.error010());const N=V=>{const{defaultEdgeOptions:F,onConnect:H,hasDefaultEdges:Y}=w.getState(),$={...F,...V};if(Y){const{edges:K,setEdges:J}=w.getState();J(yJ($,K))}H==null||H($),u==null||u($)},B=V=>{if(!S)return;const F=_I(V.nativeEvent);if(i&&(F&&V.button===0||!F)){const H=w.getState();z2.onPointerDown(V.nativeEvent,{handleDomNode:V.currentTarget,autoPanOnConnect:H.autoPanOnConnect,connectionMode:H.connectionMode,connectionRadius:H.connectionRadius,domNode:H.domNode,nodeLookup:H.nodeLookup,lib:H.lib,isTarget:b,handleId:g,nodeId:S,flowId:H.rfId,panBy:H.panBy,cancelConnection:H.cancelConnection,onConnectStart:H.onConnectStart,onConnectEnd:(...Y)=>{var $,K;return(K=($=w.getState()).onConnectEnd)==null?void 0:K.call($,...Y)},updateConnection:H.updateConnection,onConnect:N,isValidConnection:n||((...Y)=>{var $,K;return((K=($=w.getState()).isValidConnection)==null?void 0:K.call($,...Y))??!0}),getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:H.autoPanSpeed,dragThreshold:H.connectionDragThreshold})}F?h==null||h(V):p==null||p(V)},I=V=>{const{onClickConnectStart:F,onClickConnectEnd:H,connectionClickStartHandle:Y,connectionMode:$,isValidConnection:K,lib:J,rfId:te,nodeLookup:ce,connection:he}=w.getState();if(!S||!Y&&!i)return;if(!Y){F==null||F(V.nativeEvent,{nodeId:S,handleId:g,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:S,type:e,id:g}});return}const de=wI(V.target),ie=n||K,{connection:W,isValid:pe}=z2.isValid(V.nativeEvent,{handle:{nodeId:S,id:g,type:e},connectionMode:$,fromNodeId:Y.nodeId,fromHandleId:Y.id||null,fromType:Y.type,isValidConnection:ie,flowId:te,doc:de,lib:J,nodeLookup:ce});pe&&W&&N(W);const ge=structuredClone(he);delete ge.inProgress,ge.toPosition=ge.toHandle?ge.toHandle.position:null,H==null||H(V,ge),w.setState({connectionClickStartHandle:null})};return ye.jsx("div",{"data-handleid":g,"data-nodeid":S,"data-handlepos":t,"data-id":`${O}-${S}-${g}-${e}`,className:mn(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",A,d,{source:!b,target:b,connectable:r,connectablestart:i,connectableend:a,clickconnecting:T,connectingfrom:k,connectingto:C,valid:R,connectionindicator:r&&(!D||P)&&(D||z?a:i)}]),onMouseDown:B,onTouchStart:B,onClick:M?I:void 0,ref:v,...y,children:f})}const nv=E.memo(KI(Zee));function Xee({data:e,isConnectable:t,sourcePosition:n=He.Bottom}){return ye.jsxs(ye.Fragment,{children:[e==null?void 0:e.label,ye.jsx(nv,{type:"source",position:n,isConnectable:t})]})}function Wee({data:e,isConnectable:t,targetPosition:n=He.Top,sourcePosition:r=He.Bottom}){return ye.jsxs(ye.Fragment,{children:[ye.jsx(nv,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,ye.jsx(nv,{type:"source",position:r,isConnectable:t})]})}function Jee(){return null}function ete({data:e,isConnectable:t,targetPosition:n=He.Top}){return ye.jsxs(ye.Fragment,{children:[ye.jsx(nv,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const rv={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},bP={input:Xee,default:Wee,output:ete,group:Jee};function tte(e){var t,n,r,i;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((r=e.style)==null?void 0:r.width),height:e.height??((i=e.style)==null?void 0:i.height)}}const nte=e=>{const{width:t,height:n,x:r,y:i}=Rh(e.nodeLookup,{filter:a=>!!a.selected});return{width:Oi(t)?t:null,height:Oi(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${i}px)`}};function rte({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=qt(),{width:i,height:a,transformString:l,userSelectionActive:u}=ft(nte,Ut),f=QI(),d=E.useRef(null);E.useEffect(()=>{var v;n||(v=d.current)==null||v.focus({preventScroll:!0})},[n]);const h=!u&&i!==null&&a!==null;if(GI({nodeRef:d,disabled:!h}),!h)return null;const p=e?v=>{const g=r.getState().nodes.filter(b=>b.selected);e(v,g)}:void 0,y=v=>{Object.prototype.hasOwnProperty.call(rv,v.key)&&(v.preventDefault(),f({direction:rv[v.key],factor:v.shiftKey?4:1}))};return ye.jsx("div",{className:mn(["react-flow__nodesselection","react-flow__container",t]),style:{transform:l},children:ye.jsx("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:n?void 0:-1,onKeyDown:n?void 0:y,style:{width:i,height:a}})})}const xP=typeof window<"u"?window:void 0,ite=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function XI({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:l,paneClickDistance:u,deleteKeyCode:f,selectionKeyCode:d,selectionOnDrag:h,selectionMode:p,onSelectionStart:y,onSelectionEnd:v,multiSelectionKeyCode:g,panActivationKeyCode:b,zoomActivationKeyCode:w,elementsSelectable:S,zoomOnScroll:M,zoomOnPinch:A,panOnScroll:O,panOnScrollSpeed:k,panOnScrollMode:C,zoomOnDoubleClick:T,panOnDrag:P,defaultViewport:D,translateExtent:z,minZoom:R,maxZoom:N,preventScrolling:B,onSelectionContextMenu:I,noWheelClassName:q,noPanClassName:L,disableKeyboardA11y:V,onViewportChange:F,isControlledViewport:H}){const{nodesSelectionActive:Y,userSelectionActive:$}=ft(ite,Ut),K=nh(d,{target:xP}),J=nh(b,{target:xP}),te=J||P,ce=J||O,he=h&&te!==!0,de=K||$||he;return Lee({deleteKeyCode:f,multiSelectionKeyCode:g}),ye.jsx(Uee,{onPaneContextMenu:a,elementsSelectable:S,zoomOnScroll:M,zoomOnPinch:A,panOnScroll:ce,panOnScrollSpeed:k,panOnScrollMode:C,zoomOnDoubleClick:T,panOnDrag:!K&&te,defaultViewport:D,translateExtent:z,minZoom:R,maxZoom:N,zoomActivationKeyCode:w,preventScrolling:B,noWheelClassName:q,noPanClassName:L,onViewportChange:F,isControlledViewport:H,paneClickDistance:u,selectionOnDrag:he,children:ye.jsxs(Fee,{onSelectionStart:y,onSelectionEnd:v,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:l,panOnDrag:te,isSelecting:!!de,selectionMode:p,selectionKeyPressed:K,paneClickDistance:u,selectionOnDrag:he,children:[e,Y&&ye.jsx(rte,{onSelectionContextMenu:I,noPanClassName:L,disableKeyboardA11y:V})]})})}XI.displayName="FlowRenderer";const ate=E.memo(XI),ote=e=>t=>e?h_(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function ste(e){return ft(E.useCallback(ote(e),[e]),Ut)}const lte=e=>e.updateNodeInternals;function ute(){const e=ft(lte),[t]=E.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(i=>{const a=i.target.getAttribute("data-id");r.set(a,{id:a,nodeElement:i.target,force:!0})}),e(r)}));return E.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function cte({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const i=qt(),a=E.useRef(null),l=E.useRef(null),u=E.useRef(e.sourcePosition),f=E.useRef(e.targetPosition),d=E.useRef(t),h=n&&!!e.internals.handleBounds;return E.useEffect(()=>{a.current&&!e.hidden&&(!h||l.current!==a.current)&&(l.current&&(r==null||r.unobserve(l.current)),r==null||r.observe(a.current),l.current=a.current)},[h,e.hidden]),E.useEffect(()=>()=>{l.current&&(r==null||r.unobserve(l.current),l.current=null)},[]),E.useEffect(()=>{if(a.current){const p=d.current!==t,y=u.current!==e.sourcePosition,v=f.current!==e.targetPosition;(p||y||v)&&(d.current=t,u.current=e.sourcePosition,f.current=e.targetPosition,i.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:a.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),a}function fte({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onContextMenu:a,onDoubleClick:l,nodesDraggable:u,elementsSelectable:f,nodesConnectable:d,nodesFocusable:h,resizeObserver:p,noDragClassName:y,noPanClassName:v,disableKeyboardA11y:g,rfId:b,nodeTypes:w,nodeClickDistance:S,onError:M}){const{node:A,internals:O,isParent:k}=ft(ie=>{const W=ie.nodeLookup.get(e),pe=ie.parentLookup.has(e);return{node:W,internals:W.internals,isParent:pe}},Ut);let C=A.type||"default",T=(w==null?void 0:w[C])||bP[C];T===void 0&&(M==null||M("003",Ji.error003(C)),C="default",T=(w==null?void 0:w.default)||bP.default);const P=!!(A.draggable||u&&typeof A.draggable>"u"),D=!!(A.selectable||f&&typeof A.selectable>"u"),z=!!(A.connectable||d&&typeof A.connectable>"u"),R=!!(A.focusable||h&&typeof A.focusable>"u"),N=qt(),B=bI(A),I=cte({node:A,nodeType:C,hasDimensions:B,resizeObserver:p}),q=GI({nodeRef:I,disabled:A.hidden||!P,noDragClassName:y,handleSelector:A.dragHandle,nodeId:e,isSelectable:D,nodeClickDistance:S}),L=QI();if(A.hidden)return null;const V=ao(A),F=tte(A),H=D||P||t||n||r||i,Y=n?ie=>n(ie,{...O.userNode}):void 0,$=r?ie=>r(ie,{...O.userNode}):void 0,K=i?ie=>i(ie,{...O.userNode}):void 0,J=a?ie=>a(ie,{...O.userNode}):void 0,te=l?ie=>l(ie,{...O.userNode}):void 0,ce=ie=>{const{selectNodesOnDrag:W,nodeDragThreshold:pe}=N.getState();D&&(!W||!P||pe>0)&&B2({id:e,store:N,nodeRef:I}),t&&t(ie,{...O.userNode})},he=ie=>{if(!(SI(ie.nativeEvent)||g)){if(cI.includes(ie.key)&&D){const W=ie.key==="Escape";B2({id:e,store:N,unselect:W,nodeRef:I})}else if(P&&A.selected&&Object.prototype.hasOwnProperty.call(rv,ie.key)){ie.preventDefault();const{ariaLabelConfig:W}=N.getState();N.setState({ariaLiveMessage:W["node.a11yDescription.ariaLiveMessage"]({direction:ie.key.replace("Arrow","").toLowerCase(),x:~~O.positionAbsolute.x,y:~~O.positionAbsolute.y})}),L({direction:rv[ie.key],factor:ie.shiftKey?4:1})}}},de=()=>{var Se;if(g||!((Se=I.current)!=null&&Se.matches(":focus-visible")))return;const{transform:ie,width:W,height:pe,autoPanOnNodeFocus:ge,setCenter:ee}=N.getState();if(!ge)return;h_(new Map([[e,A]]),{x:0,y:0,width:W,height:pe},ie,!0).length>0||ee(A.position.x+V.width/2,A.position.y+V.height/2,{zoom:ie[2]})};return ye.jsx("div",{className:mn(["react-flow__node",`react-flow__node-${C}`,{[v]:P},A.className,{selected:A.selected,selectable:D,parent:k,draggable:P,dragging:q}]),ref:I,style:{zIndex:O.z,transform:`translate(${O.positionAbsolute.x}px,${O.positionAbsolute.y}px)`,pointerEvents:H?"all":"none",visibility:B?"visible":"hidden",...A.style,...F},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:Y,onMouseMove:$,onMouseLeave:K,onContextMenu:J,onClick:ce,onDoubleClick:te,onKeyDown:R?he:void 0,tabIndex:R?0:void 0,onFocus:R?de:void 0,role:A.ariaRole??(R?"group":void 0),"aria-roledescription":"node","aria-describedby":g?void 0:`${qI}-${b}`,"aria-label":A.ariaLabel,...A.domAttributes,children:ye.jsx(Yee,{value:e,children:ye.jsx(T,{id:e,data:A.data,type:C,positionAbsoluteX:O.positionAbsolute.x,positionAbsoluteY:O.positionAbsolute.y,selected:A.selected??!1,selectable:D,draggable:P,deletable:A.deletable??!0,isConnectable:z,sourcePosition:A.sourcePosition,targetPosition:A.targetPosition,dragging:q,dragHandle:A.dragHandle,zIndex:O.z,parentId:A.parentId,...V})})})}var dte=E.memo(fte);const hte=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function WI(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,onError:a}=ft(hte,Ut),l=ste(e.onlyRenderVisibleElements),u=ute();return ye.jsx("div",{className:"react-flow__nodes",style:vg,children:l.map(f=>ye.jsx(dte,{id:f,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:u,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,nodeClickDistance:e.nodeClickDistance,onError:a},f))})}WI.displayName="NodeRenderer";const pte=E.memo(WI);function mte(e){return ft(E.useCallback(n=>{if(!e)return n.edges.map(i=>i.id);const r=[];if(n.width&&n.height)for(const i of n.edges){const a=n.nodeLookup.get(i.source),l=n.nodeLookup.get(i.target);a&&l&&hJ({sourceNode:a,targetNode:l,width:n.width,height:n.height,transform:n.transform})&&r.push(i.id)}return r},[e]),Ut)}const yte=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e}};return ye.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},vte=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e,fill:e}};return ye.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},wP={[Jy.Arrow]:yte,[Jy.ArrowClosed]:vte};function gte(e){const t=qt();return E.useMemo(()=>{var i,a;return Object.prototype.hasOwnProperty.call(wP,e)?wP[e]:((a=(i=t.getState()).onError)==null||a.call(i,"009",Ji.error009(e)),null)},[e])}const bte=({id:e,type:t,color:n,width:r=12.5,height:i=12.5,markerUnits:a="strokeWidth",strokeWidth:l,orient:u="auto-start-reverse"})=>{const f=gte(t);return f?ye.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:u,refX:"0",refY:"0",children:ye.jsx(f,{color:n,strokeWidth:l})}):null},JI=({defaultColor:e,rfId:t})=>{const n=ft(a=>a.edges),r=ft(a=>a.defaultEdgeOptions),i=E.useMemo(()=>wJ(n,{id:t,defaultColor:e,defaultMarkerStart:r==null?void 0:r.markerStart,defaultMarkerEnd:r==null?void 0:r.markerEnd}),[n,r,t,e]);return i.length?ye.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:ye.jsx("defs",{children:i.map(a=>ye.jsx(bte,{id:a.id,type:a.type,color:a.color,width:a.width,height:a.height,markerUnits:a.markerUnits,strokeWidth:a.strokeWidth,orient:a.orient},a.id))})}):null};JI.displayName="MarkerDefinitions";var xte=E.memo(JI);function ez({x:e,y:t,label:n,labelStyle:r,labelShowBg:i=!0,labelBgStyle:a,labelBgPadding:l=[2,4],labelBgBorderRadius:u=2,children:f,className:d,...h}){const[p,y]=E.useState({x:1,y:0,width:0,height:0}),v=mn(["react-flow__edge-textwrapper",d]),g=E.useRef(null);return E.useEffect(()=>{if(g.current){const b=g.current.getBBox();y({x:b.x,y:b.y,width:b.width,height:b.height})}},[n]),n?ye.jsxs("g",{transform:`translate(${e-p.width/2} ${t-p.height/2})`,className:v,visibility:p.width?"visible":"hidden",...h,children:[i&&ye.jsx("rect",{width:p.width+2*l[0],x:-l[0],y:-l[1],height:p.height+2*l[1],className:"react-flow__edge-textbg",style:a,rx:u,ry:u}),ye.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:g,style:r,children:n}),f]}):null}ez.displayName="EdgeText";const wte=E.memo(ez);function gg({path:e,labelX:t,labelY:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:f,interactionWidth:d=20,...h}){return ye.jsxs(ye.Fragment,{children:[ye.jsx("path",{...h,d:e,fill:"none",className:mn(["react-flow__edge-path",h.className])}),d?ye.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:d,className:"react-flow__edge-interaction"}):null,r&&Oi(t)&&Oi(n)?ye.jsx(wte,{x:t,y:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:f}):null]})}function SP({pos:e,x1:t,y1:n,x2:r,y2:i}){return e===He.Left||e===He.Right?[.5*(t+r),n]:[t,.5*(n+i)]}function tz({sourceX:e,sourceY:t,sourcePosition:n=He.Bottom,targetX:r,targetY:i,targetPosition:a=He.Top}){const[l,u]=SP({pos:n,x1:e,y1:t,x2:r,y2:i}),[f,d]=SP({pos:a,x1:r,y1:i,x2:e,y2:t}),[h,p,y,v]=EI({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:l,sourceControlY:u,targetControlX:f,targetControlY:d});return[`M${e},${t} C${l},${u} ${f},${d} ${r},${i}`,h,p,y,v]}function nz(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:l,targetPosition:u,label:f,labelStyle:d,labelShowBg:h,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:v,style:g,markerEnd:b,markerStart:w,interactionWidth:S})=>{const[M,A,O]=tz({sourceX:n,sourceY:r,sourcePosition:l,targetX:i,targetY:a,targetPosition:u}),k=e.isInternal?void 0:t;return ye.jsx(gg,{id:k,path:M,labelX:A,labelY:O,label:f,labelStyle:d,labelShowBg:h,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:v,style:g,markerEnd:b,markerStart:w,interactionWidth:S})})}const Ste=nz({isInternal:!1}),rz=nz({isInternal:!0});Ste.displayName="SimpleBezierEdge";rz.displayName="SimpleBezierEdgeInternal";function iz(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,label:l,labelStyle:u,labelShowBg:f,labelBgStyle:d,labelBgPadding:h,labelBgBorderRadius:p,style:y,sourcePosition:v=He.Bottom,targetPosition:g=He.Top,markerEnd:b,markerStart:w,pathOptions:S,interactionWidth:M})=>{const[A,O,k]=D2({sourceX:n,sourceY:r,sourcePosition:v,targetX:i,targetY:a,targetPosition:g,borderRadius:S==null?void 0:S.borderRadius,offset:S==null?void 0:S.offset,stepPosition:S==null?void 0:S.stepPosition}),C=e.isInternal?void 0:t;return ye.jsx(gg,{id:C,path:A,labelX:O,labelY:k,label:l,labelStyle:u,labelShowBg:f,labelBgStyle:d,labelBgPadding:h,labelBgBorderRadius:p,style:y,markerEnd:b,markerStart:w,interactionWidth:M})})}const az=iz({isInternal:!1}),oz=iz({isInternal:!0});az.displayName="SmoothStepEdge";oz.displayName="SmoothStepEdgeInternal";function sz(e){return E.memo(({id:t,...n})=>{var i;const r=e.isInternal?void 0:t;return ye.jsx(az,{...n,id:r,pathOptions:E.useMemo(()=>{var a;return{borderRadius:0,offset:(a=n.pathOptions)==null?void 0:a.offset}},[(i=n.pathOptions)==null?void 0:i.offset])})})}const _te=sz({isInternal:!1}),lz=sz({isInternal:!0});_te.displayName="StepEdge";lz.displayName="StepEdgeInternal";function uz(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,label:l,labelStyle:u,labelShowBg:f,labelBgStyle:d,labelBgPadding:h,labelBgBorderRadius:p,style:y,markerEnd:v,markerStart:g,interactionWidth:b})=>{const[w,S,M]=MI({sourceX:n,sourceY:r,targetX:i,targetY:a}),A=e.isInternal?void 0:t;return ye.jsx(gg,{id:A,path:w,labelX:S,labelY:M,label:l,labelStyle:u,labelShowBg:f,labelBgStyle:d,labelBgPadding:h,labelBgBorderRadius:p,style:y,markerEnd:v,markerStart:g,interactionWidth:b})})}const Ete=uz({isInternal:!1}),cz=uz({isInternal:!0});Ete.displayName="StraightEdge";cz.displayName="StraightEdgeInternal";function fz(e){return E.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:l=He.Bottom,targetPosition:u=He.Top,label:f,labelStyle:d,labelShowBg:h,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:v,style:g,markerEnd:b,markerStart:w,pathOptions:S,interactionWidth:M})=>{const[A,O,k]=AI({sourceX:n,sourceY:r,sourcePosition:l,targetX:i,targetY:a,targetPosition:u,curvature:S==null?void 0:S.curvature}),C=e.isInternal?void 0:t;return ye.jsx(gg,{id:C,path:A,labelX:O,labelY:k,label:f,labelStyle:d,labelShowBg:h,labelBgStyle:p,labelBgPadding:y,labelBgBorderRadius:v,style:g,markerEnd:b,markerStart:w,interactionWidth:M})})}const Ate=fz({isInternal:!1}),dz=fz({isInternal:!0});Ate.displayName="BezierEdge";dz.displayName="BezierEdgeInternal";const _P={default:dz,straight:cz,step:lz,smoothstep:oz,simplebezier:rz},EP={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},Ote=(e,t,n)=>n===He.Left?e-t:n===He.Right?e+t:e,Mte=(e,t,n)=>n===He.Top?e-t:n===He.Bottom?e+t:e,AP="react-flow__edgeupdater";function OP({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:a,onMouseOut:l,type:u}){return ye.jsx("circle",{onMouseDown:i,onMouseEnter:a,onMouseOut:l,className:mn([AP,`${AP}-${u}`]),cx:Ote(t,r,e),cy:Mte(n,r,e),r,stroke:"transparent",fill:"transparent"})}function Cte({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:i,targetX:a,targetY:l,sourcePosition:u,targetPosition:f,onReconnect:d,onReconnectStart:h,onReconnectEnd:p,setReconnecting:y,setUpdateHover:v}){const g=qt(),b=(O,k)=>{if(O.button!==0)return;const{autoPanOnConnect:C,domNode:T,connectionMode:P,connectionRadius:D,lib:z,onConnectStart:R,cancelConnection:N,nodeLookup:B,rfId:I,panBy:q,updateConnection:L}=g.getState(),V=k.type==="target",F=($,K)=>{y(!1),p==null||p($,n,k.type,K)},H=$=>d==null?void 0:d(n,$),Y=($,K)=>{y(!0),h==null||h(O,n,k.type),R==null||R($,K)};z2.onPointerDown(O.nativeEvent,{autoPanOnConnect:C,connectionMode:P,connectionRadius:D,domNode:T,handleId:k.id,nodeId:k.nodeId,nodeLookup:B,isTarget:V,edgeUpdaterType:k.type,lib:z,flowId:I,cancelConnection:N,panBy:q,isValidConnection:(...$)=>{var K,J;return((J=(K=g.getState()).isValidConnection)==null?void 0:J.call(K,...$))??!0},onConnect:H,onConnectStart:Y,onConnectEnd:(...$)=>{var K,J;return(J=(K=g.getState()).onConnectEnd)==null?void 0:J.call(K,...$)},onReconnectEnd:F,updateConnection:L,getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle,dragThreshold:g.getState().connectionDragThreshold,handleDomNode:O.currentTarget})},w=O=>b(O,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),S=O=>b(O,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),M=()=>v(!0),A=()=>v(!1);return ye.jsxs(ye.Fragment,{children:[(e===!0||e==="source")&&ye.jsx(OP,{position:u,centerX:r,centerY:i,radius:t,onMouseDown:w,onMouseEnter:M,onMouseOut:A,type:"source"}),(e===!0||e==="target")&&ye.jsx(OP,{position:f,centerX:a,centerY:l,radius:t,onMouseDown:S,onMouseEnter:M,onMouseOut:A,type:"target"})]})}function kte({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:i,onDoubleClick:a,onContextMenu:l,onMouseEnter:u,onMouseMove:f,onMouseLeave:d,reconnectRadius:h,onReconnect:p,onReconnectStart:y,onReconnectEnd:v,rfId:g,edgeTypes:b,noPanClassName:w,onError:S,disableKeyboardA11y:M}){let A=ft(ee=>ee.edgeLookup.get(e));const O=ft(ee=>ee.defaultEdgeOptions);A=O?{...O,...A}:A;let k=A.type||"default",C=(b==null?void 0:b[k])||_P[k];C===void 0&&(S==null||S("011",Ji.error011(k)),k="default",C=(b==null?void 0:b.default)||_P.default);const T=!!(A.focusable||t&&typeof A.focusable>"u"),P=typeof p<"u"&&(A.reconnectable||n&&typeof A.reconnectable>"u"),D=!!(A.selectable||r&&typeof A.selectable>"u"),z=E.useRef(null),[R,N]=E.useState(!1),[B,I]=E.useState(!1),q=qt(),{zIndex:L,sourceX:V,sourceY:F,targetX:H,targetY:Y,sourcePosition:$,targetPosition:K}=ft(E.useCallback(ee=>{const Ae=ee.nodeLookup.get(A.source),Se=ee.nodeLookup.get(A.target);if(!Ae||!Se)return{zIndex:A.zIndex,...EP};const Ve=xJ({id:e,sourceNode:Ae,targetNode:Se,sourceHandle:A.sourceHandle||null,targetHandle:A.targetHandle||null,connectionMode:ee.connectionMode,onError:S});return{zIndex:dJ({selected:A.selected,zIndex:A.zIndex,sourceNode:Ae,targetNode:Se,elevateOnSelect:ee.elevateEdgesOnSelect,zIndexMode:ee.zIndexMode}),...Ve||EP}},[A.source,A.target,A.sourceHandle,A.targetHandle,A.selected,A.zIndex]),Ut),J=E.useMemo(()=>A.markerStart?`url('#${j2(A.markerStart,g)}')`:void 0,[A.markerStart,g]),te=E.useMemo(()=>A.markerEnd?`url('#${j2(A.markerEnd,g)}')`:void 0,[A.markerEnd,g]);if(A.hidden||V===null||F===null||H===null||Y===null)return null;const ce=ee=>{var Ne;const{addSelectedEdges:Ae,unselectNodesAndEdges:Se,multiSelectionActive:Ve}=q.getState();D&&(q.setState({nodesSelectionActive:!1}),A.selected&&Ve?(Se({nodes:[],edges:[A]}),(Ne=z.current)==null||Ne.blur()):Ae([e])),i&&i(ee,A)},he=a?ee=>{a(ee,{...A})}:void 0,de=l?ee=>{l(ee,{...A})}:void 0,ie=u?ee=>{u(ee,{...A})}:void 0,W=f?ee=>{f(ee,{...A})}:void 0,pe=d?ee=>{d(ee,{...A})}:void 0,ge=ee=>{var Ae;if(!M&&cI.includes(ee.key)&&D){const{unselectNodesAndEdges:Se,addSelectedEdges:Ve}=q.getState();ee.key==="Escape"?((Ae=z.current)==null||Ae.blur(),Se({edges:[A]})):Ve([e])}};return ye.jsx("svg",{style:{zIndex:L},children:ye.jsxs("g",{className:mn(["react-flow__edge",`react-flow__edge-${k}`,A.className,w,{selected:A.selected,animated:A.animated,inactive:!D&&!i,updating:R,selectable:D}]),onClick:ce,onDoubleClick:he,onContextMenu:de,onMouseEnter:ie,onMouseMove:W,onMouseLeave:pe,onKeyDown:T?ge:void 0,tabIndex:T?0:void 0,role:A.ariaRole??(T?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":A.ariaLabel===null?void 0:A.ariaLabel||`Edge from ${A.source} to ${A.target}`,"aria-describedby":T?`${HI}-${g}`:void 0,ref:z,...A.domAttributes,children:[!B&&ye.jsx(C,{id:e,source:A.source,target:A.target,type:A.type,selected:A.selected,animated:A.animated,selectable:D,deletable:A.deletable??!0,label:A.label,labelStyle:A.labelStyle,labelShowBg:A.labelShowBg,labelBgStyle:A.labelBgStyle,labelBgPadding:A.labelBgPadding,labelBgBorderRadius:A.labelBgBorderRadius,sourceX:V,sourceY:F,targetX:H,targetY:Y,sourcePosition:$,targetPosition:K,data:A.data,style:A.style,sourceHandleId:A.sourceHandle,targetHandleId:A.targetHandle,markerStart:J,markerEnd:te,pathOptions:"pathOptions"in A?A.pathOptions:void 0,interactionWidth:A.interactionWidth}),P&&ye.jsx(Cte,{edge:A,isReconnectable:P,reconnectRadius:h,onReconnect:p,onReconnectStart:y,onReconnectEnd:v,sourceX:V,sourceY:F,targetX:H,targetY:Y,sourcePosition:$,targetPosition:K,setUpdateHover:N,setReconnecting:I})]})})}var Tte=E.memo(kte);const Pte=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function hz({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:i,onReconnect:a,onEdgeContextMenu:l,onEdgeMouseEnter:u,onEdgeMouseMove:f,onEdgeMouseLeave:d,onEdgeClick:h,reconnectRadius:p,onEdgeDoubleClick:y,onReconnectStart:v,onReconnectEnd:g,disableKeyboardA11y:b}){const{edgesFocusable:w,edgesReconnectable:S,elementsSelectable:M,onError:A}=ft(Pte,Ut),O=mte(t);return ye.jsxs("div",{className:"react-flow__edges",children:[ye.jsx(xte,{defaultColor:e,rfId:n}),O.map(k=>ye.jsx(Tte,{id:k,edgesFocusable:w,edgesReconnectable:S,elementsSelectable:M,noPanClassName:i,onReconnect:a,onContextMenu:l,onMouseEnter:u,onMouseMove:f,onMouseLeave:d,onClick:h,reconnectRadius:p,onDoubleClick:y,onReconnectStart:v,onReconnectEnd:g,rfId:n,onError:A,edgeTypes:r,disableKeyboardA11y:b},k))]})}hz.displayName="EdgeRenderer";const Nte=E.memo(hz),Rte=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function Dte({children:e}){const t=ft(Rte);return ye.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function jte(e){const t=w_(),n=E.useRef(!1);E.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const Ite=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function zte(e){const t=ft(Ite),n=qt();return E.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function Lte(e){return e.connection.inProgress?{...e.connection,to:jh(e.connection.to,e.transform)}:{...e.connection}}function Bte(e){return Lte}function $te(e){const t=Bte();return ft(t,Ut)}const Ute=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function qte({containerStyle:e,style:t,type:n,component:r}){const{nodesConnectable:i,width:a,height:l,isValid:u,inProgress:f}=ft(Ute,Ut);return!(a&&i&&f)?null:ye.jsx("svg",{style:e,width:a,height:l,className:"react-flow__connectionline react-flow__container",children:ye.jsx("g",{className:mn(["react-flow__connection",hI(u)]),children:ye.jsx(pz,{style:t,type:n,CustomComponent:r,isValid:u})})})}const pz=({style:e,type:t=es.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:i,from:a,fromNode:l,fromHandle:u,fromPosition:f,to:d,toNode:h,toHandle:p,toPosition:y,pointer:v}=$te();if(!i)return;if(n)return ye.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:l,fromHandle:u,fromX:a.x,fromY:a.y,toX:d.x,toY:d.y,fromPosition:f,toPosition:y,connectionStatus:hI(r),toNode:h,toHandle:p,pointer:v});let g="";const b={sourceX:a.x,sourceY:a.y,sourcePosition:f,targetX:d.x,targetY:d.y,targetPosition:y};switch(t){case es.Bezier:[g]=AI(b);break;case es.SimpleBezier:[g]=tz(b);break;case es.Step:[g]=D2({...b,borderRadius:0});break;case es.SmoothStep:[g]=D2(b);break;default:[g]=MI(b)}return ye.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};pz.displayName="ConnectionLine";const Hte={};function MP(e=Hte){E.useRef(e),qt(),E.useEffect(()=>{},[e])}function Vte(){qt(),E.useRef(!1),E.useEffect(()=>{},[])}function mz({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:i,onNodeDoubleClick:a,onEdgeDoubleClick:l,onNodeMouseEnter:u,onNodeMouseMove:f,onNodeMouseLeave:d,onNodeContextMenu:h,onSelectionContextMenu:p,onSelectionStart:y,onSelectionEnd:v,connectionLineType:g,connectionLineStyle:b,connectionLineComponent:w,connectionLineContainerStyle:S,selectionKeyCode:M,selectionOnDrag:A,selectionMode:O,multiSelectionKeyCode:k,panActivationKeyCode:C,zoomActivationKeyCode:T,deleteKeyCode:P,onlyRenderVisibleElements:D,elementsSelectable:z,defaultViewport:R,translateExtent:N,minZoom:B,maxZoom:I,preventScrolling:q,defaultMarkerColor:L,zoomOnScroll:V,zoomOnPinch:F,panOnScroll:H,panOnScrollSpeed:Y,panOnScrollMode:$,zoomOnDoubleClick:K,panOnDrag:J,onPaneClick:te,onPaneMouseEnter:ce,onPaneMouseMove:he,onPaneMouseLeave:de,onPaneScroll:ie,onPaneContextMenu:W,paneClickDistance:pe,nodeClickDistance:ge,onEdgeContextMenu:ee,onEdgeMouseEnter:Ae,onEdgeMouseMove:Se,onEdgeMouseLeave:Ve,reconnectRadius:Ne,onReconnect:it,onReconnectStart:Nt,onReconnectEnd:Ft,noDragClassName:Gn,noWheelClassName:Qn,noPanClassName:Q,disableKeyboardA11y:re,nodeExtent:ae,rfId:Oe,viewport:we,onViewportChange:_e}){return MP(e),MP(t),Vte(),jte(n),zte(we),ye.jsx(ate,{onPaneClick:te,onPaneMouseEnter:ce,onPaneMouseMove:he,onPaneMouseLeave:de,onPaneContextMenu:W,onPaneScroll:ie,paneClickDistance:pe,deleteKeyCode:P,selectionKeyCode:M,selectionOnDrag:A,selectionMode:O,onSelectionStart:y,onSelectionEnd:v,multiSelectionKeyCode:k,panActivationKeyCode:C,zoomActivationKeyCode:T,elementsSelectable:z,zoomOnScroll:V,zoomOnPinch:F,zoomOnDoubleClick:K,panOnScroll:H,panOnScrollSpeed:Y,panOnScrollMode:$,panOnDrag:J,defaultViewport:R,translateExtent:N,minZoom:B,maxZoom:I,onSelectionContextMenu:p,preventScrolling:q,noDragClassName:Gn,noWheelClassName:Qn,noPanClassName:Q,disableKeyboardA11y:re,onViewportChange:_e,isControlledViewport:!!we,children:ye.jsxs(Dte,{children:[ye.jsx(Nte,{edgeTypes:t,onEdgeClick:i,onEdgeDoubleClick:l,onReconnect:it,onReconnectStart:Nt,onReconnectEnd:Ft,onlyRenderVisibleElements:D,onEdgeContextMenu:ee,onEdgeMouseEnter:Ae,onEdgeMouseMove:Se,onEdgeMouseLeave:Ve,reconnectRadius:Ne,defaultMarkerColor:L,noPanClassName:Q,disableKeyboardA11y:re,rfId:Oe}),ye.jsx(qte,{style:b,type:g,component:w,containerStyle:S}),ye.jsx("div",{className:"react-flow__edgelabel-renderer"}),ye.jsx(pte,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:a,onNodeMouseEnter:u,onNodeMouseMove:f,onNodeMouseLeave:d,onNodeContextMenu:h,nodeClickDistance:ge,onlyRenderVisibleElements:D,noPanClassName:Q,noDragClassName:Gn,disableKeyboardA11y:re,nodeExtent:ae,rfId:Oe}),ye.jsx("div",{className:"react-flow__viewport-portal"})]})})}mz.displayName="GraphView";const Fte=E.memo(mz),CP=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:l,fitViewOptions:u,minZoom:f=.5,maxZoom:d=2,nodeOrigin:h,nodeExtent:p,zIndexMode:y="basic"}={})=>{const v=new Map,g=new Map,b=new Map,w=new Map,S=r??t??[],M=n??e??[],A=h??[0,0],O=p??Wd;TI(b,w,S);const{nodesInitialized:k}=I2(M,v,g,{nodeOrigin:A,nodeExtent:O,zIndexMode:y});let C=[0,0,1];if(l&&i&&a){const T=Rh(v,{filter:R=>!!((R.width||R.initialWidth)&&(R.height||R.initialHeight))}),{x:P,y:D,zoom:z}=p_(T,i,a,f,d,(u==null?void 0:u.padding)??.1);C=[P,D,z]}return{rfId:"1",width:i??0,height:a??0,transform:C,nodes:M,nodesInitialized:k,nodeLookup:v,parentLookup:g,edges:S,edgeLookup:w,connectionLookup:b,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:f,maxZoom:d,translateExtent:Wd,nodeExtent:O,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Nc.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:A,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:l??!1,fitViewOptions:u,fitViewResolver:null,connection:{...dI},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:oJ,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:fI,zIndexMode:y,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},Kte=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:l,fitViewOptions:u,minZoom:f,maxZoom:d,nodeOrigin:h,nodeExtent:p,zIndexMode:y})=>uee((v,g)=>{async function b(){const{nodeLookup:w,panZoom:S,fitViewOptions:M,fitViewResolver:A,width:O,height:k,minZoom:C,maxZoom:T}=g();S&&(await iJ({nodes:w,width:O,height:k,panZoom:S,minZoom:C,maxZoom:T},M),A==null||A.resolve(!0),v({fitViewResolver:null}))}return{...CP({nodes:e,edges:t,width:i,height:a,fitView:l,fitViewOptions:u,minZoom:f,maxZoom:d,nodeOrigin:h,nodeExtent:p,defaultNodes:n,defaultEdges:r,zIndexMode:y}),setNodes:w=>{const{nodeLookup:S,parentLookup:M,nodeOrigin:A,elevateNodesOnSelect:O,fitViewQueued:k,zIndexMode:C,nodesSelectionActive:T}=g(),{nodesInitialized:P,hasSelectedNodes:D}=I2(w,S,M,{nodeOrigin:A,nodeExtent:p,elevateNodesOnSelect:O,checkEquality:!0,zIndexMode:C}),z=T&&D;k&&P?(b(),v({nodes:w,nodesInitialized:P,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:z})):v({nodes:w,nodesInitialized:P,nodesSelectionActive:z})},setEdges:w=>{const{connectionLookup:S,edgeLookup:M}=g();TI(S,M,w),v({edges:w})},setDefaultNodesAndEdges:(w,S)=>{if(w){const{setNodes:M}=g();M(w),v({hasDefaultNodes:!0})}if(S){const{setEdges:M}=g();M(S),v({hasDefaultEdges:!0})}},updateNodeInternals:w=>{const{triggerNodeChanges:S,nodeLookup:M,parentLookup:A,domNode:O,nodeOrigin:k,nodeExtent:C,debug:T,fitViewQueued:P,zIndexMode:D}=g(),{changes:z,updatedInternals:R}=CJ(w,M,A,O,k,C,D);R&&(EJ(M,A,{nodeOrigin:k,nodeExtent:C,zIndexMode:D}),P?(b(),v({fitViewQueued:!1,fitViewOptions:void 0})):v({}),(z==null?void 0:z.length)>0&&(T&&console.log("React Flow: trigger node changes",z),S==null||S(z)))},updateNodePositions:(w,S=!1)=>{const M=[];let A=[];const{nodeLookup:O,triggerNodeChanges:k,connection:C,updateConnection:T,onNodesChangeMiddlewareMap:P}=g();for(const[D,z]of w){const R=O.get(D),N=!!(R!=null&&R.expandParent&&(R!=null&&R.parentId)&&(z!=null&&z.position)),B={id:D,type:"position",position:N?{x:Math.max(0,z.position.x),y:Math.max(0,z.position.y)}:z.position,dragging:S};if(R&&C.inProgress&&C.fromNode.id===R.id){const I=zl(R,C.fromHandle,He.Left,!0);T({...C,from:I})}N&&R.parentId&&M.push({id:D,parentId:R.parentId,rect:{...z.internals.positionAbsolute,width:z.measured.width??0,height:z.measured.height??0}}),A.push(B)}if(M.length>0){const{parentLookup:D,nodeOrigin:z}=g(),R=x_(M,O,D,z);A.push(...R)}for(const D of P.values())A=D(A);k(A)},triggerNodeChanges:w=>{const{onNodesChange:S,setNodes:M,nodes:A,hasDefaultNodes:O,debug:k}=g();if(w!=null&&w.length){if(O){const C=Tee(w,A);M(C)}k&&console.log("React Flow: trigger node changes",w),S==null||S(w)}},triggerEdgeChanges:w=>{const{onEdgesChange:S,setEdges:M,edges:A,hasDefaultEdges:O,debug:k}=g();if(w!=null&&w.length){if(O){const C=Pee(w,A);M(C)}k&&console.log("React Flow: trigger edge changes",w),S==null||S(w)}},addSelectedNodes:w=>{const{multiSelectionActive:S,edgeLookup:M,nodeLookup:A,triggerNodeChanges:O,triggerEdgeChanges:k}=g();if(S){const C=w.map(T=>nl(T,!0));O(C);return}O(ec(A,new Set([...w]),!0)),k(ec(M))},addSelectedEdges:w=>{const{multiSelectionActive:S,edgeLookup:M,nodeLookup:A,triggerNodeChanges:O,triggerEdgeChanges:k}=g();if(S){const C=w.map(T=>nl(T,!0));k(C);return}k(ec(M,new Set([...w]))),O(ec(A,new Set,!0))},unselectNodesAndEdges:({nodes:w,edges:S}={})=>{const{edges:M,nodes:A,nodeLookup:O,triggerNodeChanges:k,triggerEdgeChanges:C}=g(),T=w||A,P=S||M,D=[];for(const R of T){if(!R.selected)continue;const N=O.get(R.id);N&&(N.selected=!1),D.push(nl(R.id,!1))}const z=[];for(const R of P)R.selected&&z.push(nl(R.id,!1));k(D),C(z)},setMinZoom:w=>{const{panZoom:S,maxZoom:M}=g();S==null||S.setScaleExtent([w,M]),v({minZoom:w})},setMaxZoom:w=>{const{panZoom:S,minZoom:M}=g();S==null||S.setScaleExtent([M,w]),v({maxZoom:w})},setTranslateExtent:w=>{var S;(S=g().panZoom)==null||S.setTranslateExtent(w),v({translateExtent:w})},resetSelectedElements:()=>{const{edges:w,nodes:S,triggerNodeChanges:M,triggerEdgeChanges:A,elementsSelectable:O}=g();if(!O)return;const k=S.reduce((T,P)=>P.selected?[...T,nl(P.id,!1)]:T,[]),C=w.reduce((T,P)=>P.selected?[...T,nl(P.id,!1)]:T,[]);M(k),A(C)},setNodeExtent:w=>{const{nodes:S,nodeLookup:M,parentLookup:A,nodeOrigin:O,elevateNodesOnSelect:k,nodeExtent:C,zIndexMode:T}=g();w[0][0]===C[0][0]&&w[0][1]===C[0][1]&&w[1][0]===C[1][0]&&w[1][1]===C[1][1]||(I2(S,M,A,{nodeOrigin:O,nodeExtent:w,elevateNodesOnSelect:k,checkEquality:!1,zIndexMode:T}),v({nodeExtent:w}))},panBy:w=>{const{transform:S,width:M,height:A,panZoom:O,translateExtent:k}=g();return kJ({delta:w,panZoom:O,transform:S,translateExtent:k,width:M,height:A})},setCenter:async(w,S,M)=>{const{width:A,height:O,maxZoom:k,panZoom:C}=g();if(!C)return Promise.resolve(!1);const T=typeof(M==null?void 0:M.zoom)<"u"?M.zoom:k;return await C.setViewport({x:A/2-w*T,y:O/2-S*T,zoom:T},{duration:M==null?void 0:M.duration,ease:M==null?void 0:M.ease,interpolate:M==null?void 0:M.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{v({connection:{...dI}})},updateConnection:w=>{v({connection:w})},reset:()=>v({...CP()})}},Object.is);function Yte({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:a,initialMinZoom:l,initialMaxZoom:u,initialFitViewOptions:f,fitView:d,nodeOrigin:h,nodeExtent:p,zIndexMode:y,children:v}){const[g]=E.useState(()=>Kte({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:d,minZoom:l,maxZoom:u,fitViewOptions:f,nodeOrigin:h,nodeExtent:p,zIndexMode:y}));return ye.jsx(cee,{value:g,children:ye.jsx(Dee,{children:v})})}function Gte({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:i,width:a,height:l,fitView:u,fitViewOptions:f,minZoom:d,maxZoom:h,nodeOrigin:p,nodeExtent:y,zIndexMode:v}){return E.useContext(mg)?ye.jsx(ye.Fragment,{children:e}):ye.jsx(Yte,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:a,initialHeight:l,fitView:u,initialFitViewOptions:f,initialMinZoom:d,initialMaxZoom:h,nodeOrigin:p,nodeExtent:y,zIndexMode:v,children:e})}const Qte={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Zte({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:a,edgeTypes:l,onNodeClick:u,onEdgeClick:f,onInit:d,onMove:h,onMoveStart:p,onMoveEnd:y,onConnect:v,onConnectStart:g,onConnectEnd:b,onClickConnectStart:w,onClickConnectEnd:S,onNodeMouseEnter:M,onNodeMouseMove:A,onNodeMouseLeave:O,onNodeContextMenu:k,onNodeDoubleClick:C,onNodeDragStart:T,onNodeDrag:P,onNodeDragStop:D,onNodesDelete:z,onEdgesDelete:R,onDelete:N,onSelectionChange:B,onSelectionDragStart:I,onSelectionDrag:q,onSelectionDragStop:L,onSelectionContextMenu:V,onSelectionStart:F,onSelectionEnd:H,onBeforeDelete:Y,connectionMode:$,connectionLineType:K=es.Bezier,connectionLineStyle:J,connectionLineComponent:te,connectionLineContainerStyle:ce,deleteKeyCode:he="Backspace",selectionKeyCode:de="Shift",selectionOnDrag:ie=!1,selectionMode:W=Jd.Full,panActivationKeyCode:pe="Space",multiSelectionKeyCode:ge=th()?"Meta":"Control",zoomActivationKeyCode:ee=th()?"Meta":"Control",snapToGrid:Ae,snapGrid:Se,onlyRenderVisibleElements:Ve=!1,selectNodesOnDrag:Ne,nodesDraggable:it,autoPanOnNodeFocus:Nt,nodesConnectable:Ft,nodesFocusable:Gn,nodeOrigin:Qn=VI,edgesFocusable:Q,edgesReconnectable:re,elementsSelectable:ae=!0,defaultViewport:Oe=_ee,minZoom:we=.5,maxZoom:_e=2,translateExtent:Te=Wd,preventScrolling:Ke=!0,nodeExtent:at,defaultMarkerColor:In="#b1b1b7",zoomOnScroll:fr=!0,zoomOnPinch:Kt=!0,panOnScroll:zn=!1,panOnScrollSpeed:dr=.5,panOnScrollMode:yn=El.Free,zoomOnDoubleClick:rf=!0,panOnDrag:Zl=!0,onPaneClick:af,onPaneMouseEnter:ua,onPaneMouseMove:Xl,onPaneMouseLeave:Wl,onPaneScroll:ca,onPaneContextMenu:Jl,paneClickDistance:Cs=1,nodeClickDistance:Jg=0,children:rp,onReconnect:of,onReconnectStart:ks,onReconnectEnd:e0,onEdgeContextMenu:ip,onEdgeDoubleClick:ap,onEdgeMouseEnter:op,onEdgeMouseMove:sf,onEdgeMouseLeave:lf,reconnectRadius:sp=10,onNodesChange:lp,onEdgesChange:Ri,noDragClassName:vn="nodrag",noWheelClassName:Zn="nowheel",noPanClassName:fa="nopan",fitView:eu,fitViewOptions:up,connectOnClick:t0,attributionPosition:cp,proOptions:Ts,defaultEdgeOptions:uf,elevateNodesOnSelect:mo=!0,elevateEdgesOnSelect:yo=!1,disableKeyboardA11y:vo=!1,autoPanOnConnect:go,autoPanOnNodeDrag:sn,autoPanSpeed:fp,connectionRadius:dp,isValidConnection:da,onError:bo,style:n0,id:cf,nodeDragThreshold:hp,connectionDragThreshold:r0,viewport:tu,onViewportChange:nu,width:hi,height:hr,colorMode:pp="light",debug:i0,onScroll:xo,ariaLabelConfig:mp,zIndexMode:Ps="basic",...a0},pr){const Ns=cf||"1",yp=Mee(pp),ff=E.useCallback(ha=>{ha.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),xo==null||xo(ha)},[xo]);return ye.jsx("div",{"data-testid":"rf__wrapper",...a0,onScroll:ff,style:{...n0,...Qte},ref:pr,className:mn(["react-flow",i,yp]),id:cf,role:"application",children:ye.jsxs(Gte,{nodes:e,edges:t,width:hi,height:hr,fitView:eu,fitViewOptions:up,minZoom:we,maxZoom:_e,nodeOrigin:Qn,nodeExtent:at,zIndexMode:Ps,children:[ye.jsx(Oee,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:v,onConnectStart:g,onConnectEnd:b,onClickConnectStart:w,onClickConnectEnd:S,nodesDraggable:it,autoPanOnNodeFocus:Nt,nodesConnectable:Ft,nodesFocusable:Gn,edgesFocusable:Q,edgesReconnectable:re,elementsSelectable:ae,elevateNodesOnSelect:mo,elevateEdgesOnSelect:yo,minZoom:we,maxZoom:_e,nodeExtent:at,onNodesChange:lp,onEdgesChange:Ri,snapToGrid:Ae,snapGrid:Se,connectionMode:$,translateExtent:Te,connectOnClick:t0,defaultEdgeOptions:uf,fitView:eu,fitViewOptions:up,onNodesDelete:z,onEdgesDelete:R,onDelete:N,onNodeDragStart:T,onNodeDrag:P,onNodeDragStop:D,onSelectionDrag:q,onSelectionDragStart:I,onSelectionDragStop:L,onMove:h,onMoveStart:p,onMoveEnd:y,noPanClassName:fa,nodeOrigin:Qn,rfId:Ns,autoPanOnConnect:go,autoPanOnNodeDrag:sn,autoPanSpeed:fp,onError:bo,connectionRadius:dp,isValidConnection:da,selectNodesOnDrag:Ne,nodeDragThreshold:hp,connectionDragThreshold:r0,onBeforeDelete:Y,debug:i0,ariaLabelConfig:mp,zIndexMode:Ps}),ye.jsx(Fte,{onInit:d,onNodeClick:u,onEdgeClick:f,onNodeMouseEnter:M,onNodeMouseMove:A,onNodeMouseLeave:O,onNodeContextMenu:k,onNodeDoubleClick:C,nodeTypes:a,edgeTypes:l,connectionLineType:K,connectionLineStyle:J,connectionLineComponent:te,connectionLineContainerStyle:ce,selectionKeyCode:de,selectionOnDrag:ie,selectionMode:W,deleteKeyCode:he,multiSelectionKeyCode:ge,panActivationKeyCode:pe,zoomActivationKeyCode:ee,onlyRenderVisibleElements:Ve,defaultViewport:Oe,translateExtent:Te,minZoom:we,maxZoom:_e,preventScrolling:Ke,zoomOnScroll:fr,zoomOnPinch:Kt,zoomOnDoubleClick:rf,panOnScroll:zn,panOnScrollSpeed:dr,panOnScrollMode:yn,panOnDrag:Zl,onPaneClick:af,onPaneMouseEnter:ua,onPaneMouseMove:Xl,onPaneMouseLeave:Wl,onPaneScroll:ca,onPaneContextMenu:Jl,paneClickDistance:Cs,nodeClickDistance:Jg,onSelectionContextMenu:V,onSelectionStart:F,onSelectionEnd:H,onReconnect:of,onReconnectStart:ks,onReconnectEnd:e0,onEdgeContextMenu:ip,onEdgeDoubleClick:ap,onEdgeMouseEnter:op,onEdgeMouseMove:sf,onEdgeMouseLeave:lf,reconnectRadius:sp,defaultMarkerColor:In,noDragClassName:vn,noWheelClassName:Zn,noPanClassName:fa,rfId:Ns,disableKeyboardA11y:vo,nodeExtent:at,viewport:tu,onViewportChange:nu}),ye.jsx(See,{onSelectionChange:B}),rp,ye.jsx(vee,{proOptions:Ts,position:cp}),ye.jsx(yee,{rfId:Ns,disableKeyboardA11y:vo})]})})}var u2e=KI(Zte);function Xte({dimensions:e,lineWidth:t,variant:n,className:r}){return ye.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:mn(["react-flow__background-pattern",n,r])})}function Wte({radius:e,className:t}){return ye.jsx("circle",{cx:e,cy:e,r:e,className:mn(["react-flow__background-pattern","dots",t])})}var ms;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ms||(ms={}));const Jte={[ms.Dots]:1,[ms.Lines]:1,[ms.Cross]:6},ene=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function yz({id:e,variant:t=ms.Dots,gap:n=20,size:r,lineWidth:i=1,offset:a=0,color:l,bgColor:u,style:f,className:d,patternClassName:h}){const p=E.useRef(null),{transform:y,patternId:v}=ft(ene,Ut),g=r||Jte[t],b=t===ms.Dots,w=t===ms.Cross,S=Array.isArray(n)?n:[n,n],M=[S[0]*y[2]||1,S[1]*y[2]||1],A=g*y[2],O=Array.isArray(a)?a:[a,a],k=w?[A,A]:M,C=[O[0]*y[2]||1+k[0]/2,O[1]*y[2]||1+k[1]/2],T=`${v}${e||""}`;return ye.jsxs("svg",{className:mn(["react-flow__background",d]),style:{...f,...vg,"--xy-background-color-props":u,"--xy-background-pattern-color-props":l},ref:p,"data-testid":"rf__background",children:[ye.jsx("pattern",{id:T,x:y[0]%M[0],y:y[1]%M[1],width:M[0],height:M[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${C[0]},-${C[1]})`,children:b?ye.jsx(Wte,{radius:A/2,className:h}):ye.jsx(Xte,{dimensions:k,lineWidth:i,variant:t,className:h})}),ye.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${T})`})]})}yz.displayName="Background";const c2e=E.memo(yz);function tne(){return ye.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:ye.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function nne(){return ye.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:ye.jsx("path",{d:"M0 0h32v4.2H0z"})})}function rne(){return ye.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:ye.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function ine(){return ye.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:ye.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function ane(){return ye.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:ye.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Qm({children:e,className:t,...n}){return ye.jsx("button",{type:"button",className:mn(["react-flow__controls-button",t]),...n,children:e})}const one=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function vz({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:i,onZoomIn:a,onZoomOut:l,onFitView:u,onInteractiveChange:f,className:d,children:h,position:p="bottom-left",orientation:y="vertical","aria-label":v}){const g=qt(),{isInteractive:b,minZoomReached:w,maxZoomReached:S,ariaLabelConfig:M}=ft(one,Ut),{zoomIn:A,zoomOut:O,fitView:k}=w_(),C=()=>{A(),a==null||a()},T=()=>{O(),l==null||l()},P=()=>{k(i),u==null||u()},D=()=>{g.setState({nodesDraggable:!b,nodesConnectable:!b,elementsSelectable:!b}),f==null||f(!b)},z=y==="horizontal"?"horizontal":"vertical";return ye.jsxs(yg,{className:mn(["react-flow__controls",z,d]),position:p,style:e,"data-testid":"rf__controls","aria-label":v??M["controls.ariaLabel"],children:[t&&ye.jsxs(ye.Fragment,{children:[ye.jsx(Qm,{onClick:C,className:"react-flow__controls-zoomin",title:M["controls.zoomIn.ariaLabel"],"aria-label":M["controls.zoomIn.ariaLabel"],disabled:S,children:ye.jsx(tne,{})}),ye.jsx(Qm,{onClick:T,className:"react-flow__controls-zoomout",title:M["controls.zoomOut.ariaLabel"],"aria-label":M["controls.zoomOut.ariaLabel"],disabled:w,children:ye.jsx(nne,{})})]}),n&&ye.jsx(Qm,{className:"react-flow__controls-fitview",onClick:P,title:M["controls.fitView.ariaLabel"],"aria-label":M["controls.fitView.ariaLabel"],children:ye.jsx(rne,{})}),r&&ye.jsx(Qm,{className:"react-flow__controls-interactive",onClick:D,title:M["controls.interactive.ariaLabel"],"aria-label":M["controls.interactive.ariaLabel"],children:b?ye.jsx(ane,{}):ye.jsx(ine,{})}),h]})}vz.displayName="Controls";const f2e=E.memo(vz);function sne({id:e,x:t,y:n,width:r,height:i,style:a,color:l,strokeColor:u,strokeWidth:f,className:d,borderRadius:h,shapeRendering:p,selected:y,onClick:v}){const{background:g,backgroundColor:b}=a||{},w=l||g||b;return ye.jsx("rect",{className:mn(["react-flow__minimap-node",{selected:y},d]),x:t,y:n,rx:h,ry:h,width:r,height:i,style:{fill:w,stroke:u,strokeWidth:f},shapeRendering:p,onClick:v?S=>v(S,e):void 0})}const lne=E.memo(sne),une=e=>e.nodes.map(t=>t.id),Gb=e=>e instanceof Function?e:()=>e;function cne({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:a=lne,onClick:l}){const u=ft(une,Ut),f=Gb(t),d=Gb(e),h=Gb(n),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return ye.jsx(ye.Fragment,{children:u.map(y=>ye.jsx(dne,{id:y,nodeColorFunc:f,nodeStrokeColorFunc:d,nodeClassNameFunc:h,nodeBorderRadius:r,nodeStrokeWidth:i,NodeComponent:a,onClick:l,shapeRendering:p},y))})}function fne({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:i,nodeStrokeWidth:a,shapeRendering:l,NodeComponent:u,onClick:f}){const{node:d,x:h,y:p,width:y,height:v}=ft(g=>{const b=g.nodeLookup.get(e);if(!b)return{node:void 0,x:0,y:0,width:0,height:0};const w=b.internals.userNode,{x:S,y:M}=b.internals.positionAbsolute,{width:A,height:O}=ao(w);return{node:w,x:S,y:M,width:A,height:O}},Ut);return!d||d.hidden||!bI(d)?null:ye.jsx(u,{x:h,y:p,width:y,height:v,style:d.style,selected:!!d.selected,className:r(d),color:t(d),borderRadius:i,strokeColor:n(d),strokeWidth:a,shapeRendering:l,onClick:f,id:d.id})}const dne=E.memo(fne);var hne=E.memo(cne);const pne=200,mne=150,yne=e=>!e.hidden,vne=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?gI(Rh(e.nodeLookup,{filter:yne}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},gne="react-flow__minimap-desc";function gz({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:l,nodeComponent:u,bgColor:f,maskColor:d,maskStrokeColor:h,maskStrokeWidth:p,position:y="bottom-right",onClick:v,onNodeClick:g,pannable:b=!1,zoomable:w=!1,ariaLabel:S,inversePan:M,zoomStep:A=1,offsetScale:O=5}){const k=qt(),C=E.useRef(null),{boundingRect:T,viewBB:P,rfId:D,panZoom:z,translateExtent:R,flowWidth:N,flowHeight:B,ariaLabelConfig:I}=ft(vne,Ut),q=(e==null?void 0:e.width)??pne,L=(e==null?void 0:e.height)??mne,V=T.width/q,F=T.height/L,H=Math.max(V,F),Y=H*q,$=H*L,K=O*H,J=T.x-(Y-T.width)/2-K,te=T.y-($-T.height)/2-K,ce=Y+K*2,he=$+K*2,de=`${gne}-${D}`,ie=E.useRef(0),W=E.useRef();ie.current=H,E.useEffect(()=>{if(C.current&&z)return W.current=LJ({domNode:C.current,panZoom:z,getTransform:()=>k.getState().transform,getViewScale:()=>ie.current}),()=>{var Ae;(Ae=W.current)==null||Ae.destroy()}},[z]),E.useEffect(()=>{var Ae;(Ae=W.current)==null||Ae.update({translateExtent:R,width:N,height:B,inversePan:M,pannable:b,zoomStep:A,zoomable:w})},[b,w,M,A,R,N,B]);const pe=v?Ae=>{var Ne;const[Se,Ve]=((Ne=W.current)==null?void 0:Ne.pointer(Ae))||[0,0];v(Ae,{x:Se,y:Ve})}:void 0,ge=g?E.useCallback((Ae,Se)=>{const Ve=k.getState().nodeLookup.get(Se).internals.userNode;g(Ae,Ve)},[]):void 0,ee=S??I["minimap.ariaLabel"];return ye.jsx(yg,{position:y,style:{...e,"--xy-minimap-background-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*H:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof l=="number"?l:void 0},className:mn(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:ye.jsxs("svg",{width:q,height:L,viewBox:`${J} ${te} ${ce} ${he}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":de,ref:C,onClick:pe,children:[ee&&ye.jsx("title",{id:de,children:ee}),ye.jsx(hne,{onClick:ge,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:a,nodeClassName:i,nodeStrokeWidth:l,nodeComponent:u}),ye.jsx("path",{className:"react-flow__minimap-mask",d:`M${J-K},${te-K}h${ce+K*2}v${he+K*2}h${-ce-K*2}z
|
|
825
|
-
M${P.x},${P.y}h${P.width}v${P.height}h${-P.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}gz.displayName="MiniMap";E.memo(gz);const bne=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,xne={[Ic.Line]:"right",[Ic.Handle]:"bottom-right"};function wne({nodeId:e,position:t,variant:n=Ic.Handle,className:r,style:i=void 0,children:a,color:l,minWidth:u=10,minHeight:f=10,maxWidth:d=Number.MAX_VALUE,maxHeight:h=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:y,autoScale:v=!0,shouldResize:g,onResizeStart:b,onResize:w,onResizeEnd:S}){const M=ZI(),A=typeof e=="string"?e:M,O=qt(),k=E.useRef(null),C=n===Ic.Handle,T=ft(E.useCallback(bne(C&&v),[C,v]),Ut),P=E.useRef(null),D=t??xne[n];E.useEffect(()=>{if(!(!k.current||!A))return P.current||(P.current=WJ({domNode:k.current,nodeId:A,getStoreItems:()=>{const{nodeLookup:R,transform:N,snapGrid:B,snapToGrid:I,nodeOrigin:q,domNode:L}=O.getState();return{nodeLookup:R,transform:N,snapGrid:B,snapToGrid:I,nodeOrigin:q,paneDomNode:L}},onChange:(R,N)=>{const{triggerNodeChanges:B,nodeLookup:I,parentLookup:q,nodeOrigin:L}=O.getState(),V=[],F={x:R.x,y:R.y},H=I.get(A);if(H&&H.expandParent&&H.parentId){const Y=H.origin??L,$=R.width??H.measured.width??0,K=R.height??H.measured.height??0,J={id:H.id,parentId:H.parentId,rect:{width:$,height:K,...xI({x:R.x??H.position.x,y:R.y??H.position.y},{width:$,height:K},H.parentId,I,Y)}},te=x_([J],I,q,L);V.push(...te),F.x=R.x?Math.max(Y[0]*$,R.x):void 0,F.y=R.y?Math.max(Y[1]*K,R.y):void 0}if(F.x!==void 0&&F.y!==void 0){const Y={id:A,type:"position",position:{...F}};V.push(Y)}if(R.width!==void 0&&R.height!==void 0){const $={id:A,type:"dimensions",resizing:!0,setAttributes:y?y==="horizontal"?"width":"height":!0,dimensions:{width:R.width,height:R.height}};V.push($)}for(const Y of N){const $={...Y,type:"position"};V.push($)}B(V)},onEnd:({width:R,height:N})=>{const B={id:A,type:"dimensions",resizing:!1,dimensions:{width:R,height:N}};O.getState().triggerNodeChanges([B])}})),P.current.update({controlPosition:D,boundaries:{minWidth:u,minHeight:f,maxWidth:d,maxHeight:h},keepAspectRatio:p,resizeDirection:y,onResizeStart:b,onResize:w,onResizeEnd:S,shouldResize:g}),()=>{var R;(R=P.current)==null||R.destroy()}},[D,u,f,d,h,p,b,w,S,g]);const z=D.split("-");return ye.jsx("div",{className:mn(["react-flow__resize-control","nodrag",...z,n,r]),ref:k,style:{...i,scale:T,...l&&{[C?"backgroundColor":"borderColor"]:l}},children:a})}E.memo(wne);const kP=e=>{let t;const n=new Set,r=(d,h)=>{const p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){const y=t;t=h??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(v=>v(t,y))}},i=()=>t,u={setState:r,getState:i,getInitialState:()=>f,subscribe:d=>(n.add(d),()=>n.delete(d))},f=t=e(r,i,u);return u},Sne=(e=>e?kP(e):kP),_ne=e=>e;function Ene(e,t=_ne){const n=rn.useSyncExternalStore(e.subscribe,rn.useCallback(()=>t(e.getState()),[e,t]),rn.useCallback(()=>t(e.getInitialState()),[e,t]));return rn.useDebugValue(n),n}const TP=e=>{const t=Sne(e),n=r=>Ene(t,r);return Object.assign(n,t),n},d2e=(e=>e?TP(e):TP);var Ane=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function __(e){if(typeof e!="string")return!1;var t=Ane;return t.includes(e)}var One=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Mne=new Set(One);function bz(e){return typeof e!="string"?!1:Mne.has(e)}function xz(e){return typeof e=="string"&&e.startsWith("data-")}function Hr(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(bz(n)||xz(n))&&(t[n]=e[n]);return t}function Ih(e){if(e==null)return null;if(E.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Hr(t)}return typeof e=="object"&&!Array.isArray(e)?Hr(e):null}function tr(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(bz(n)||xz(n)||__(n))&&(t[n]=e[n]);return t}function Cne(e){return e==null?null:E.isValidElement(e)?tr(e.props):typeof e=="object"&&!Array.isArray(e)?tr(e):null}var kne=["children","width","height","viewBox","className","style","title","desc"];function $2(){return $2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$2.apply(null,arguments)}function Tne(e,t){if(e==null)return{};var n,r,i=Pne(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Pne(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var wz=E.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:a,className:l,style:u,title:f,desc:d}=e,h=Tne(e,kne),p=a||{width:r,height:i,x:0,y:0},y=wt("recharts-surface",l);return E.createElement("svg",$2({},tr(h),{className:y,width:r,height:i,style:u,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),E.createElement("title",null,f),E.createElement("desc",null,d),n)}),Nne=["children","className"];function U2(){return U2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U2.apply(null,arguments)}function Rne(e,t){if(e==null)return{};var n,r,i=Dne(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Dne(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Yn=E.forwardRef((e,t)=>{var{children:n,className:r}=e,i=Rne(e,Nne),a=wt("recharts-layer",r);return E.createElement("g",U2({className:a},tr(i),{ref:t}),n)}),jne=E.createContext(null);function Pt(e){return function(){return e}}const Sz=Math.cos,iv=Math.sin,Pi=Math.sqrt,av=Math.PI,bg=2*av,q2=Math.PI,H2=2*q2,rl=1e-6,Ine=H2-rl;function _z(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function zne(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return _z;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Lne{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?_z:zne(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,l){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+l}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let l=this._x1,u=this._y1,f=r-t,d=i-n,h=l-t,p=u-n,y=h*h+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>rl)if(!(Math.abs(p*f-d*h)>rl)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-l,g=i-u,b=f*f+d*d,w=v*v+g*g,S=Math.sqrt(b),M=Math.sqrt(y),A=a*Math.tan((q2-Math.acos((b+y-w)/(2*S*M)))/2),O=A/M,k=A/S;Math.abs(O-1)>rl&&this._append`L${t+O*h},${n+O*p}`,this._append`A${a},${a},0,0,${+(p*v>h*g)},${this._x1=t+k*f},${this._y1=n+k*d}`}}arc(t,n,r,i,a,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),f=r*Math.sin(i),d=t+u,h=n+f,p=1^l,y=l?i-a:a-i;this._x1===null?this._append`M${d},${h}`:(Math.abs(this._x1-d)>rl||Math.abs(this._y1-h)>rl)&&this._append`L${d},${h}`,r&&(y<0&&(y=y%H2+H2),y>Ine?this._append`A${r},${r},0,1,${p},${t-u},${n-f}A${r},${r},0,1,${p},${this._x1=d},${this._y1=h}`:y>rl&&this._append`A${r},${r},0,${+(y>=q2)},${p},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function E_(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Lne(t)}function A_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ez(e){this._context=e}Ez.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function xg(e){return new Ez(e)}function Az(e){return e[0]}function Oz(e){return e[1]}function Mz(e,t){var n=Pt(!0),r=null,i=xg,a=null,l=E_(u);e=typeof e=="function"?e:e===void 0?Az:Pt(e),t=typeof t=="function"?t:t===void 0?Oz:Pt(t);function u(f){var d,h=(f=A_(f)).length,p,y=!1,v;for(r==null&&(a=i(v=l())),d=0;d<=h;++d)!(d<h&&n(p=f[d],d,f))===y&&((y=!y)?a.lineStart():a.lineEnd()),y&&a.point(+e(p,d,f),+t(p,d,f));if(v)return a=null,v+""||null}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Pt(+f),u):e},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Pt(+f),u):t},u.defined=function(f){return arguments.length?(n=typeof f=="function"?f:Pt(!!f),u):n},u.curve=function(f){return arguments.length?(i=f,r!=null&&(a=i(r)),u):i},u.context=function(f){return arguments.length?(f==null?r=a=null:a=i(r=f),u):r},u}function Zm(e,t,n){var r=null,i=Pt(!0),a=null,l=xg,u=null,f=E_(d);e=typeof e=="function"?e:e===void 0?Az:Pt(+e),t=typeof t=="function"?t:Pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Oz:Pt(+n);function d(p){var y,v,g,b=(p=A_(p)).length,w,S=!1,M,A=new Array(b),O=new Array(b);for(a==null&&(u=l(M=f())),y=0;y<=b;++y){if(!(y<b&&i(w=p[y],y,p))===S)if(S=!S)v=y,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),g=y-1;g>=v;--g)u.point(A[g],O[g]);u.lineEnd(),u.areaEnd()}S&&(A[y]=+e(w,y,p),O[y]=+t(w,y,p),u.point(r?+r(w,y,p):A[y],n?+n(w,y,p):O[y]))}if(M)return u=null,M+""||null}function h(){return Mz().defined(i).curve(l).context(a)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:Pt(+p),r=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:Pt(+p),d):e},d.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Pt(+p),d):r},d.y=function(p){return arguments.length?(t=typeof p=="function"?p:Pt(+p),n=null,d):t},d.y0=function(p){return arguments.length?(t=typeof p=="function"?p:Pt(+p),d):t},d.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:Pt(+p),d):n},d.lineX0=d.lineY0=function(){return h().x(e).y(t)},d.lineY1=function(){return h().x(e).y(n)},d.lineX1=function(){return h().x(r).y(t)},d.defined=function(p){return arguments.length?(i=typeof p=="function"?p:Pt(!!p),d):i},d.curve=function(p){return arguments.length?(l=p,a!=null&&(u=l(a)),d):l},d.context=function(p){return arguments.length?(p==null?a=u=null:u=l(a=p),d):a},d}class Cz{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Bne(e){return new Cz(e,!0)}function $ne(e){return new Cz(e,!1)}const O_={draw(e,t){const n=Pi(t/av);e.moveTo(n,0),e.arc(0,0,n,0,bg)}},Une={draw(e,t){const n=Pi(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},kz=Pi(1/3),qne=kz*2,Hne={draw(e,t){const n=Pi(t/qne),r=n*kz;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Vne={draw(e,t){const n=Pi(t),r=-n/2;e.rect(r,r,n,n)}},Fne=.8908130915292852,Tz=iv(av/10)/iv(7*av/10),Kne=iv(bg/10)*Tz,Yne=-Sz(bg/10)*Tz,Gne={draw(e,t){const n=Pi(t*Fne),r=Kne*n,i=Yne*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const l=bg*a/5,u=Sz(l),f=iv(l);e.lineTo(f*n,-u*n),e.lineTo(u*r-f*i,f*r+u*i)}e.closePath()}},Qb=Pi(3),Qne={draw(e,t){const n=-Pi(t/(Qb*3));e.moveTo(0,n*2),e.lineTo(-Qb*n,-n),e.lineTo(Qb*n,-n),e.closePath()}},ti=-.5,ni=Pi(3)/2,V2=1/Pi(12),Zne=(V2/2+1)*3,Xne={draw(e,t){const n=Pi(t/Zne),r=n/2,i=n*V2,a=r,l=n*V2+n,u=-a,f=l;e.moveTo(r,i),e.lineTo(a,l),e.lineTo(u,f),e.lineTo(ti*r-ni*i,ni*r+ti*i),e.lineTo(ti*a-ni*l,ni*a+ti*l),e.lineTo(ti*u-ni*f,ni*u+ti*f),e.lineTo(ti*r+ni*i,ti*i-ni*r),e.lineTo(ti*a+ni*l,ti*l-ni*a),e.lineTo(ti*u+ni*f,ti*f-ni*u),e.closePath()}};function Wne(e,t){let n=null,r=E_(i);e=typeof e=="function"?e:Pt(e||O_),t=typeof t=="function"?t:Pt(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Pt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Pt(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function ov(){}function sv(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Pz(e){this._context=e}Pz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:sv(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:sv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Jne(e){return new Pz(e)}function Nz(e){this._context=e}Nz.prototype={areaStart:ov,areaEnd:ov,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:sv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ere(e){return new Nz(e)}function Rz(e){this._context=e}Rz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:sv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tre(e){return new Rz(e)}function Dz(e){this._context=e}Dz.prototype={areaStart:ov,areaEnd:ov,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function nre(e){return new Dz(e)}function PP(e){return e<0?-1:1}function NP(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),l=(n-e._y1)/(i||r<0&&-0),u=(a*i+l*r)/(r+i);return(PP(a)+PP(l))*Math.min(Math.abs(a),Math.abs(l),.5*Math.abs(u))||0}function RP(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Zb(e,t,n){var r=e._x0,i=e._y0,a=e._x1,l=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,i+u*t,a-u,l-u*n,a,l)}function lv(e){this._context=e}lv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Zb(this,this._t0,RP(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Zb(this,RP(this,n=NP(this,e,t)),n);break;default:Zb(this,this._t0,n=NP(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function jz(e){this._context=new Iz(e)}(jz.prototype=Object.create(lv.prototype)).point=function(e,t){lv.prototype.point.call(this,t,e)};function Iz(e){this._context=e}Iz.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function rre(e){return new lv(e)}function ire(e){return new jz(e)}function zz(e){this._context=e}zz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=DP(e),i=DP(t),a=0,l=1;l<n;++a,++l)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[l],t[l]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function DP(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),l=new Array(n);for(i[0]=0,a[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,l[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,l[t]-=r*l[t-1];for(i[n-1]=l[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(l[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function are(e){return new zz(e)}function wg(e,t){this._context=e,this._t=t}wg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function ore(e){return new wg(e,.5)}function sre(e){return new wg(e,0)}function lre(e){return new wg(e,1)}function Ll(e,t){if((l=e.length)>1)for(var n=1,r,i,a=e[t[0]],l,u=a.length;n<l;++n)for(i=a,a=e[t[n]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function F2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function ure(e,t){return e[t]}function cre(e){const t=[];return t.key=e,t}function fre(){var e=Pt([]),t=F2,n=Ll,r=ure;function i(a){var l=Array.from(e.apply(this,arguments),cre),u,f=l.length,d=-1,h;for(const p of a)for(u=0,++d;u<f;++u)(l[u][d]=[0,+r(p,l[u].key,d,a)]).data=p;for(u=0,h=A_(t(l));u<f;++u)l[h[u]].index=u;return n(l,h),l}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Pt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Pt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?F2:typeof a=="function"?a:Pt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??Ll,i):n},i}function dre(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,l;i<a;++i){for(l=n=0;n<r;++n)l+=e[n][i][1]||0;if(l)for(n=0;n<r;++n)e[n][i][1]/=l}Ll(e,t)}}function hre(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var l=0,u=0;l<i;++l)u+=e[l][n][1]||0;r[n][1]+=r[n][0]=-u/2}Ll(e,t)}}function pre(e,t){if(!(!((l=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,l;r<a;++r){for(var u=0,f=0,d=0;u<l;++u){for(var h=e[t[u]],p=h[r][1]||0,y=h[r-1][1]||0,v=(p-y)/2,g=0;g<u;++g){var b=e[t[g]],w=b[r][1]||0,S=b[r-1][1]||0;v+=w-S}f+=p,d+=v*p}i[r-1][1]+=i[r-1][0]=n,f&&(n-=d/f)}i[r-1][1]+=i[r-1][0]=n,Ll(e,t)}}var Xb={},Wb={},jP;function mre(){return jP||(jP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Wb)),Wb}var Jb={},IP;function Lz(){return IP||(IP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(Jb)),Jb}var ex={},zP;function M_(){return zP||(zP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(ex)),ex}var tx={},nx={},LP;function yre(){return LP||(LP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(nx)),nx}var BP;function C_(){return BP||(BP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yre(),n=M_();function r(i){if(Array.isArray(i))return i.map(n.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],l=i.length;if(l===0)return a;let u=0,f="",d="",h=!1;for(i.charCodeAt(0)===46&&(a.push(""),u++);u<l;){const p=i[u];d?p==="\\"&&u+1<l?(u++,f+=i[u]):p===d?d="":f+=p:h?p==='"'||p==="'"?d=p:p==="]"?(h=!1,a.push(f),f=""):f+=p:p==="["?(h=!0,f&&(a.push(f),f="")):p==="."?f&&(a.push(f),f=""):f+=p,u++}return f&&a.push(f),a}e.toPath=r})(tx)),tx}var $P;function k_(){return $P||($P=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mre(),n=Lz(),r=M_(),i=C_();function a(u,f,d){if(u==null)return d;switch(typeof f){case"string":{if(t.isUnsafeProperty(f))return d;const h=u[f];return h===void 0?n.isDeepKey(f)?a(u,i.toPath(f),d):d:h}case"number":case"symbol":{typeof f=="number"&&(f=r.toKey(f));const h=u[f];return h===void 0?d:h}default:{if(Array.isArray(f))return l(u,f,d);if(Object.is(f==null?void 0:f.valueOf(),-0)?f="-0":f=String(f),t.isUnsafeProperty(f))return d;const h=u[f];return h===void 0?d:h}}}function l(u,f,d){if(f.length===0)return d;let h=u;for(let p=0;p<f.length;p++){if(h==null||t.isUnsafeProperty(f[p]))return d;h=h[f[p]]}return h===void 0?d:h}e.get=a})(Xb)),Xb}var rx,UP;function vre(){return UP||(UP=1,rx=k_().get),rx}var gre=vre();const zc=ui(gre);var bre=4;function ds(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bre,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function Xt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((i,a,l)=>{var u=n[l-1];return typeof u=="string"?i+u+a:u!==void 0?i+ds(u)+a:i+a},"")}var Ar=e=>e===0?0:e>0?1:-1,Ci=e=>typeof e=="number"&&e!=+e,Bl=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,ke=e=>(typeof e=="number"||e instanceof Number)&&!Ci(e),ea=e=>ke(e)||typeof e=="string",xre=0,rh=e=>{var t=++xre;return"".concat(e||"").concat(t)},ki=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ke(t)&&typeof t!="string")return r;var a;if(Bl(t)){if(n==null)return r;var l=t.indexOf("%");a=n*parseFloat(t.slice(0,l))/100}else a=+t;return Ci(a)&&(a=r),i&&n!=null&&a>n&&(a=n),a},Bz=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function Ct(e,t,n){return ke(e)&&ke(t)?ds(e+n*(t-e)):t}function $z(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):zc(r,t))===n)}var zt=e=>e===null||typeof e>"u",zh=e=>zt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Or(e){return e!=null}function oo(){}var wre=["type","size","sizeType"];function K2(){return K2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K2.apply(null,arguments)}function qP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qP(Object(n),!0).forEach(function(r){Sre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sre(e,t,n){return(t=_re(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _re(e){var t=Ere(e,"string");return typeof t=="symbol"?t:t+""}function Ere(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Are(e,t){if(e==null)return{};var n,r,i=Ore(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ore(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Uz={symbolCircle:O_,symbolCross:Une,symbolDiamond:Hne,symbolSquare:Vne,symbolStar:Gne,symbolTriangle:Qne,symbolWye:Xne},Mre=Math.PI/180,Cre=e=>{var t="symbol".concat(zh(e));return Uz[t]||O_},kre=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*Mre;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Tre=(e,t)=>{Uz["symbol".concat(zh(e))]=t},qz=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=Are(e,wre),a=HP(HP({},i),{},{type:t,size:n,sizeType:r}),l="circle";typeof t=="string"&&(l=t);var u=()=>{var y=Cre(l),v=Wne().type(y).size(kre(n,r,l)),g=v();if(g!==null)return g},{className:f,cx:d,cy:h}=a,p=tr(a);return ke(d)&&ke(h)&&ke(n)?E.createElement("path",K2({},p,{className:wt("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:u()})):null};qz.registerSymbol=Tre;var Hz=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,T_=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(E.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{__(i)&&typeof n[i]=="function"&&(r[i]=(a=>n[i](n,a)))}),r},Pre=(e,t,n)=>r=>(e(t,n,r),null),P_=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];__(i)&&typeof a=="function"&&(r||(r={}),r[i]=Pre(a,t,n))}),r};function VP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VP(Object(n),!0).forEach(function(r){Rre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rre(e,t,n){return(t=Dre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dre(e){var t=jre(e,"string");return typeof t=="symbol"?t:t+""}function jre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nr(e,t){var n=Nre({},e),r=t,i=Object.keys(t),a=i.reduce((l,u)=>(l[u]===void 0&&r[u]!==void 0&&(l[u]=r[u]),l),n);return a}var ix={},ax={},FP;function Ire(){return FP||(FP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let a=0;a<n.length;a++){const l=n[a],u=r(l,a,n);i.has(u)||i.set(u,l)}return Array.from(i.values())}e.uniqBy=t})(ax)),ax}var ox={},KP;function zre(){return KP||(KP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return function(...i){return n.apply(this,i.slice(0,r))}}e.ary=t})(ox)),ox}var sx={},YP;function Vz(){return YP||(YP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(sx)),sx}var lx={},ux={},cx={},GP;function Lre(){return GP||(GP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(cx)),cx}var QP;function Fz(){return QP||(QP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Lre();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(ux)),ux}var fx={},ZP;function Bre(){return ZP||(ZP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(fx)),fx}var XP;function $re(){return XP||(XP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fz(),n=Bre();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(lx)),lx}var dx={},hx={},WP;function Ure(){return WP||(WP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=k_();function n(r){return function(i){return t.get(i,r)}}e.property=n})(hx)),hx}var px={},mx={},yx={},vx={},JP;function Kz(){return JP||(JP=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(vx)),vx}var gx={},eN;function Yz(){return eN||(eN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(gx)),gx}var bx={},tN;function Gz(){return tN||(tN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.isEqualsSameValueZero=t})(bx)),bx}var nN;function qre(){return nN||(nN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kz(),n=Yz(),r=Gz();function i(h,p,y){return typeof y!="function"?i(h,p,()=>{}):a(h,p,function v(g,b,w,S,M,A){const O=y(g,b,w,S,M,A);return O!==void 0?!!O:a(g,b,v,A)},new Map)}function a(h,p,y,v){if(p===h)return!0;switch(typeof p){case"object":return l(h,p,y,v);case"function":return Object.keys(p).length>0?a(h,{...p},y,v):r.isEqualsSameValueZero(h,p);default:return t.isObject(h)?typeof p=="string"?p==="":!0:r.isEqualsSameValueZero(h,p)}}function l(h,p,y,v){if(p==null)return!0;if(Array.isArray(p))return f(h,p,y,v);if(p instanceof Map)return u(h,p,y,v);if(p instanceof Set)return d(h,p,y,v);const g=Object.keys(p);if(h==null||n.isPrimitive(h))return g.length===0;if(g.length===0)return!0;if(v!=null&&v.has(p))return v.get(p)===h;v==null||v.set(p,h);try{for(let b=0;b<g.length;b++){const w=g[b];if(!n.isPrimitive(h)&&!(w in h)||p[w]===void 0&&h[w]!==void 0||p[w]===null&&h[w]!==null||!y(h[w],p[w],w,h,p,v))return!1}return!0}finally{v==null||v.delete(p)}}function u(h,p,y,v){if(p.size===0)return!0;if(!(h instanceof Map))return!1;for(const[g,b]of p.entries()){const w=h.get(g);if(y(w,b,g,h,p,v)===!1)return!1}return!0}function f(h,p,y,v){if(p.length===0)return!0;if(!Array.isArray(h))return!1;const g=new Set;for(let b=0;b<p.length;b++){const w=p[b];let S=!1;for(let M=0;M<h.length;M++){if(g.has(M))continue;const A=h[M];let O=!1;if(y(A,w,b,h,p,v)&&(O=!0),O){g.add(M),S=!0;break}}if(!S)return!1}return!0}function d(h,p,y,v){return p.size===0?!0:h instanceof Set?f([...h],[...p],y,v):!1}e.isMatchWith=i,e.isSetMatch=d})(yx)),yx}var rN;function Qz(){return rN||(rN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qre();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(mx)),mx}var xx={},wx={},Sx={},iN;function Hre(){return iN||(iN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(Sx)),Sx}var _x={},aN;function N_(){return aN||(aN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(_x)),_x}var Ex={},oN;function Zz(){return oN||(oN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",a="[object Arguments]",l="[object Symbol]",u="[object Date]",f="[object Map]",d="[object Set]",h="[object Array]",p="[object Function]",y="[object ArrayBuffer]",v="[object Object]",g="[object Error]",b="[object DataView]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",M="[object Uint16Array]",A="[object Uint32Array]",O="[object BigUint64Array]",k="[object Int8Array]",C="[object Int16Array]",T="[object Int32Array]",P="[object BigInt64Array]",D="[object Float32Array]",z="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=y,e.arrayTag=h,e.bigInt64ArrayTag=P,e.bigUint64ArrayTag=O,e.booleanTag=i,e.dataViewTag=b,e.dateTag=u,e.errorTag=g,e.float32ArrayTag=D,e.float64ArrayTag=z,e.functionTag=p,e.int16ArrayTag=C,e.int32ArrayTag=T,e.int8ArrayTag=k,e.mapTag=f,e.numberTag=r,e.objectTag=v,e.regexpTag=t,e.setTag=d,e.stringTag=n,e.symbolTag=l,e.uint16ArrayTag=M,e.uint32ArrayTag=A,e.uint8ArrayTag=w,e.uint8ClampedArrayTag=S})(Ex)),Ex}var Ax={},sN;function Vre(){return sN||(sN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(Ax)),Ax}var lN;function Xz(){return lN||(lN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hre(),n=N_(),r=Zz(),i=Yz(),a=Vre();function l(h,p){return u(h,void 0,h,new Map,p)}function u(h,p,y,v=new Map,g=void 0){const b=g==null?void 0:g(h,p,y,v);if(b!==void 0)return b;if(i.isPrimitive(h))return h;if(v.has(h))return v.get(h);if(Array.isArray(h)){const w=new Array(h.length);v.set(h,w);for(let S=0;S<h.length;S++)w[S]=u(h[S],S,y,v,g);return Object.hasOwn(h,"index")&&(w.index=h.index),Object.hasOwn(h,"input")&&(w.input=h.input),w}if(h instanceof Date)return new Date(h.getTime());if(h instanceof RegExp){const w=new RegExp(h.source,h.flags);return w.lastIndex=h.lastIndex,w}if(h instanceof Map){const w=new Map;v.set(h,w);for(const[S,M]of h)w.set(S,u(M,S,y,v,g));return w}if(h instanceof Set){const w=new Set;v.set(h,w);for(const S of h)w.add(u(S,void 0,y,v,g));return w}if(typeof Buffer<"u"&&Buffer.isBuffer(h))return h.subarray();if(a.isTypedArray(h)){const w=new(Object.getPrototypeOf(h)).constructor(h.length);v.set(h,w);for(let S=0;S<h.length;S++)w[S]=u(h[S],S,y,v,g);return w}if(h instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&h instanceof SharedArrayBuffer)return h.slice(0);if(h instanceof DataView){const w=new DataView(h.buffer.slice(0),h.byteOffset,h.byteLength);return v.set(h,w),f(w,h,y,v,g),w}if(typeof File<"u"&&h instanceof File){const w=new File([h],h.name,{type:h.type});return v.set(h,w),f(w,h,y,v,g),w}if(typeof Blob<"u"&&h instanceof Blob){const w=new Blob([h],{type:h.type});return v.set(h,w),f(w,h,y,v,g),w}if(h instanceof Error){const w=structuredClone(h);return v.set(h,w),w.message=h.message,w.name=h.name,w.stack=h.stack,w.cause=h.cause,w.constructor=h.constructor,f(w,h,y,v,g),w}if(h instanceof Boolean){const w=new Boolean(h.valueOf());return v.set(h,w),f(w,h,y,v,g),w}if(h instanceof Number){const w=new Number(h.valueOf());return v.set(h,w),f(w,h,y,v,g),w}if(h instanceof String){const w=new String(h.valueOf());return v.set(h,w),f(w,h,y,v,g),w}if(typeof h=="object"&&d(h)){const w=Object.create(Object.getPrototypeOf(h));return v.set(h,w),f(w,h,y,v,g),w}return h}function f(h,p,y=h,v,g){const b=[...Object.keys(p),...t.getSymbols(p)];for(let w=0;w<b.length;w++){const S=b[w],M=Object.getOwnPropertyDescriptor(h,S);(M==null||M.writable)&&(h[S]=u(p[S],S,y,v,g))}}function d(h){switch(n.getTag(h)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=l,e.cloneDeepWithImpl=u,e.copyProperties=f})(wx)),wx}var uN;function Fre(){return uN||(uN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xz();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(xx)),xx}var cN;function Kre(){return cN||(cN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qz(),n=Fre();function r(i){return i=n.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=r})(px)),px}var Ox={},Mx={},Cx={},fN;function Yre(){return fN||(fN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xz(),n=N_(),r=Zz();function i(a,l){return t.cloneDeepWith(a,(u,f,d,h)=>{const p=l==null?void 0:l(u,f,d,h);if(p!==void 0)return p;if(typeof a=="object"){if(n.getTag(a)===r.objectTag&&typeof a.constructor!="function"){const y={};return h.set(a,y),t.copyProperties(y,a,d,h),y}switch(Object.prototype.toString.call(a)){case r.numberTag:case r.stringTag:case r.booleanTag:{const y=new a.constructor(a==null?void 0:a.valueOf());return t.copyProperties(y,a),y}case r.argumentsTag:{const y={};return t.copyProperties(y,a),y.length=a.length,y[Symbol.iterator]=a[Symbol.iterator],y}default:return}}})}e.cloneDeepWith=i})(Cx)),Cx}var dN;function Gre(){return dN||(dN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yre();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(Mx)),Mx}var kx={},Tx={},hN;function Wz(){return hN||(hN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(Tx)),Tx}var Px={},pN;function Qre(){return pN||(pN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=N_();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(Px)),Px}var mN;function Zre(){return mN||(mN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Lz(),n=Wz(),r=Qre(),i=C_();function a(l,u){let f;if(Array.isArray(u)?f=u:typeof u=="string"&&t.isDeepKey(u)&&(l==null?void 0:l[u])==null?f=i.toPath(u):f=[u],f.length===0)return!1;let d=l;for(let h=0;h<f.length;h++){const p=f[h];if((d==null||!Object.hasOwn(d,p))&&!((Array.isArray(d)||r.isArguments(d))&&n.isIndex(p)&&p<d.length))return!1;d=d[p]}return!0}e.has=a})(kx)),kx}var yN;function Xre(){return yN||(yN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qz(),n=M_(),r=Gre(),i=k_(),a=Zre();function l(u,f){switch(typeof u){case"object":{Object.is(u==null?void 0:u.valueOf(),-0)&&(u="-0");break}case"number":{u=n.toKey(u);break}}return f=r.cloneDeep(f),function(d){const h=i.get(d,u);return h===void 0?a.has(d,u):f===void 0?h===void 0:t.isMatch(h,f)}}e.matchesProperty=l})(Ox)),Ox}var vN;function Wre(){return vN||(vN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vz(),n=Ure(),r=Kre(),i=Xre();function a(l){if(l==null)return t.identity;switch(typeof l){case"function":return l;case"object":return Array.isArray(l)&&l.length===2?i.matchesProperty(l[0],l[1]):r.matches(l);case"string":case"symbol":case"number":return n.property(l)}}e.iteratee=a})(dx)),dx}var gN;function Jre(){return gN||(gN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ire(),n=zre(),r=Vz(),i=$re(),a=Wre();function l(u,f=r.identity){return i.isArrayLikeObject(u)?t.uniqBy(Array.from(u),n.ary(a.iteratee(f),1)):[]}e.uniqBy=l})(ix)),ix}var Nx,bN;function eie(){return bN||(bN=1,Nx=Jre().uniqBy),Nx}var tie=eie();const xN=ui(tie);function nie(e,t,n){return t===!0?xN(e,n):typeof t=="function"?xN(e,t):e}var R_=E.createContext(null),rie=e=>e,Vt=()=>{var e=E.useContext(R_);return e?e.store.dispatch:rie},gy=()=>{},iie=()=>gy,aie=(e,t)=>e===t;function $e(e){var t=E.useContext(R_),n=E.useMemo(()=>t?r=>{if(r!=null)return e(r)}:gy,[t,e]);return BI.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:iie,t?t.store.getState:gy,t?t.store.getState:gy,n,aie)}var Rx={},Dx={},jx={},wN;function oie(){return wN||(wN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,a)=>{if(r!==i){const l=t(r),u=t(i);if(l===u&&l===0){if(r<i)return a==="desc"?1:-1;if(r>i)return a==="desc"?-1:1}return a==="desc"?u-l:l-u}return 0};e.compareValues=n})(jx)),jx}var Ix={},zx={},SN;function Jz(){return SN||(SN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(zx)),zx}var _N;function sie(){return _N||(_N=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jz(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,l){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(r.test(a)||!n.test(a))||l!=null&&Object.hasOwn(l,a)}e.isKey=i})(Ix)),Ix}var EN;function lie(){return EN||(EN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oie(),n=sie(),r=C_();function i(a,l,u,f){if(a==null)return[];u=f?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(l)||(l=l==null?[null]:[l]),l.length===0&&(l=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(v=>String(v));const d=(v,g)=>{let b=v;for(let w=0;w<g.length&&b!=null;++w)b=b[g[w]];return b},h=(v,g)=>g==null||v==null?g:typeof v=="object"&&"key"in v?Object.hasOwn(g,v.key)?g[v.key]:d(g,v.path):typeof v=="function"?v(g):Array.isArray(v)?d(g,v):typeof g=="object"?g[v]:g,p=l.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||n.isKey(v)?v:{key:v,path:r.toPath(v)}));return a.map(v=>({original:v,criteria:p.map(g=>h(g,v))})).slice().sort((v,g)=>{for(let b=0;b<p.length;b++){const w=t.compareValues(v.criteria[b],g.criteria[b],u[b]);if(w!==0)return w}return 0}).map(v=>v.original)}e.orderBy=i})(Dx)),Dx}var Lx={},AN;function uie(){return AN||(AN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],a=Math.floor(r),l=(u,f)=>{for(let d=0;d<u.length;d++){const h=u[d];Array.isArray(h)&&f<a?l(h,f+1):i.push(h)}};return l(n,0),i}e.flatten=t})(Lx)),Lx}var Bx={},ON;function e6(){return ON||(ON=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wz(),n=Fz(),r=Kz(),i=Gz();function a(l,u,f){return r.isObject(f)&&(typeof u=="number"&&n.isArrayLike(f)&&t.isIndex(u)&&u<f.length||typeof u=="string"&&u in f)?i.isEqualsSameValueZero(f[u],l):!1}e.isIterateeCall=a})(Bx)),Bx}var MN;function cie(){return MN||(MN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lie(),n=uie(),r=e6();function i(a,...l){const u=l.length;return u>1&&r.isIterateeCall(a,l[0],l[1])?l=[]:u>2&&r.isIterateeCall(l[0],l[1],l[2])&&(l=[l[0]]),t.orderBy(a,n.flatten(l),["asc"])}e.sortBy=i})(Rx)),Rx}var $x,CN;function fie(){return CN||(CN=1,$x=cie().sortBy),$x}var die=fie();const Sg=ui(die);var t6=e=>e.legend.settings,hie=e=>e.legend.size,pie=e=>e.legend.payload;le([pie,t6],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?Sg(r,n):r});var Xm=1;function mie(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=E.useState({height:0,left:0,top:0,width:0}),r=E.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),l={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(l.height-t.height)>Xm||Math.abs(l.left-t.left)>Xm||Math.abs(l.top-t.top)>Xm||Math.abs(l.width-t.width)>Xm)&&n({height:l.height,left:l.left,top:l.top,width:l.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}var yie={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},n6=Wt({name:"chartLayout",initialState:yie,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,i,a;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:vie,setLayout:gie,setChartSize:bie,setScale:xie}=n6.actions,wie=n6.reducer;function r6(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function et(e){return Number.isFinite(e)}function ta(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function kN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kN(Object(n),!0).forEach(function(r){Sie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sie(e,t,n){return(t=_ie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ie(e){var t=Eie(e,"string");return typeof t=="symbol"?t:t+""}function Eie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function en(e,t,n){return zt(e)||zt(t)?n:ea(t)?zc(e,t,n):typeof t=="function"?t(e):n}var Aie=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:l,layout:u}=t;if((u==="vertical"||u==="horizontal"&&l==="middle")&&a!=="center"&&ke(e[a]))return tc(tc({},e),{},{[a]:e[a]+(r||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&l!=="middle"&&ke(e[l]))return tc(tc({},e),{},{[l]:e[l]+(i||0)})}return e},Ni=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",i6=(e,t,n,r)=>{if(r)return e.map(u=>u.coordinate);var i,a,l=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===n&&(a=!0),u.coordinate));return i||l.push(t),a||l.push(n),l},a6=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:l,realScaleType:u,isCategorical:f,categoricalDomain:d,tickCount:h,ticks:p,niceTicks:y,axisType:v}=e;if(!l)return null;var g=u==="scaleBand"&&l.bandwidth?l.bandwidth()/2:2,b=i==="category"&&l.bandwidth?l.bandwidth()/g:0;if(b=v==="angleAxis"&&a&&a.length>=2?Ar(a[0]-a[1])*2*b:b,p||y){var w=(p||y||[]).map((S,M)=>{var A=r?r.indexOf(S):S,O=l.map(A);return et(O)?{coordinate:O+b,value:S,offset:b,index:M}:null}).filter(Or);return w}return f&&d?d.map((S,M)=>{var A=l.map(S);return et(A)?{coordinate:A+b,value:S,index:M,offset:b}:null}).filter(Or):l.ticks&&h!=null?l.ticks(h).map((S,M)=>{var A=l.map(S);return et(A)?{coordinate:A+b,value:S,index:M,offset:b}:null}).filter(Or):l.domain().map((S,M)=>{var A=l.map(S);return et(A)?{coordinate:A+b,value:r?r[S]:S,index:M,offset:b}:null}).filter(Or)},Oie=(e,t)=>{if(!t||t.length!==2||!ke(t[0])||!ke(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!ke(e[0])||e[0]<n)&&(i[0]=n),(!ke(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Mie=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var a=0,l=0,u=0;u<n;++u){var f=e[u],d=f==null?void 0:f[i];if(d!=null){var h=d[1],p=d[0],y=Ci(h)?p:h;y>=0?(d[0]=a,a+=y,d[1]=a):(d[0]=l,l+=y,d[1]=l)}}}},Cie=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var a=0,l=0;l<n;++l){var u=e[l],f=u==null?void 0:u[i];if(f!=null){var d=Ci(f[1])?f[0]:f[1];d>=0?(f[0]=a,a+=d,f[1]=a):(f[0]=0,f[1]=0)}}}},kie={sign:Mie,expand:dre,none:Ll,silhouette:hre,wiggle:pre,positive:Cie},Tie=(e,t,n)=>{var r,i=(r=kie[n])!==null&&r!==void 0?r:Ll,a=fre().keys(t).value((u,f)=>Number(en(u,f,0))).order(F2).offset(i),l=a(e);return l.forEach((u,f)=>{u.forEach((d,h)=>{var p=en(e[h],t[f],0);Array.isArray(p)&&p.length===2&&ke(p[0])&&ke(p[1])&&(d[0]=p[0],d[1]=p[1])})}),l};function o6(e){return e==null?void 0:String(e)}function uv(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:l}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!zt(i[t.dataKey])){var u=$z(n,"value",i[t.dataKey]);if(u)return u.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var f=en(i,zt(l)?t.dataKey:l),d=t.scale.map(f);return ke(d)?d:null}var TN=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:l}=e;if(t.type==="category")return n[l]?n[l].coordinate+r:null;var u=en(a,t.dataKey,t.scale.domain()[l]);if(zt(u))return null;var f=t.scale.map(u);return ke(f)?f-i/2+r:null},Pie=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},Nie=e=>{var t=e.flat(2).filter(ke);return[Math.min(...t),Math.max(...t)]},Rie=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Die=(e,t,n)=>{if(e!=null)return Rie(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var{stackedData:l}=a,u=l.reduce((f,d)=>{var h=r6(d,t,n),p=Nie(h);return!et(p[0])||!et(p[1])?f:[Math.min(f[0],p[0]),Math.max(f[1],p[1])]},[1/0,-1/0]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-1/0]))},PN=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,NN=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ss=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=Sg(t,h=>h.coordinate),a=1/0,l=1,u=i.length;l<u;l++){var f=i[l],d=i[l-1];a=Math.min(((f==null?void 0:f.coordinate)||0)-((d==null?void 0:d.coordinate)||0),a)}return a===1/0?0:a}return n?void 0:0};function RN(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return tc(tc({},t),{},{dataKey:n,payload:r,value:i,name:a})}function Yc(e,t){if(e)return String(e);if(typeof t=="string")return t}var jie=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},Iie=(e,t)=>t==="centric"?e.angle:e.radius,so=e=>e.layout.width,lo=e=>e.layout.height,zie=e=>e.layout.scale,s6=e=>e.layout.margin,_g=le(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Eg=le(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Lie="data-recharts-item-index",Bie="data-recharts-item-id",Lh=60;function DN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DN(Object(n),!0).forEach(function(r){$ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ie(e,t,n){return(t=Uie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uie(e){var t=qie(e,"string");return typeof t=="symbol"?t:t+""}function qie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hie=e=>e.brush.height;function Vie(e){var t=Eg(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:Lh;return n+i}return n},0)}function Fie(e){var t=Eg(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:Lh;return n+i}return n},0)}function Kie(e){var t=_g(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function Yie(e){var t=_g(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var Pn=le([so,lo,s6,Hie,Vie,Fie,Kie,Yie,t6,hie],(e,t,n,r,i,a,l,u,f,d)=>{var h={left:(n.left||0)+i,right:(n.right||0)+a},p={top:(n.top||0)+l,bottom:(n.bottom||0)+u},y=Wm(Wm({},p),h),v=y.bottom;y.bottom+=r,y=Aie(y,f,d);var g=e-y.left-y.right,b=t-y.top-y.bottom;return Wm(Wm({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(b,0)})}),Gie=le(Pn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),D_=le(so,lo,(e,t)=>({x:0,y:0,width:e,height:t})),Qie=E.createContext(null),Nn=()=>E.useContext(Qie)!=null,Ag=e=>e.brush,Og=le([Ag,Pn,s6],(e,t,n)=>({height:e.height,x:ke(e.x)?e.x:t.left,y:ke(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:ke(e.width)?e.width:t.width})),Ux={},qx={},Hx={},jN;function Zie(){return jN||(jN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:a}={}){let l,u=null;const f=a!=null&&a.includes("leading"),d=a==null||a.includes("trailing"),h=()=>{u!==null&&(n.apply(l,u),l=void 0,u=null)},p=()=>{d&&h(),b()};let y=null;const v=()=>{y!=null&&clearTimeout(y),y=setTimeout(()=>{y=null,p()},r)},g=()=>{y!==null&&(clearTimeout(y),y=null)},b=()=>{g(),l=void 0,u=null},w=()=>{h()},S=function(...M){if(i!=null&&i.aborted)return;l=this,u=M;const A=y==null;v(),f&&A&&h()};return S.schedule=v,S.cancel=b,S.flush=w,i==null||i.addEventListener("abort",b,{once:!0}),S}e.debounce=t})(Hx)),Hx}var IN;function Xie(){return IN||(IN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zie();function n(r,i=0,a={}){typeof a!="object"&&(a={});const{leading:l=!1,trailing:u=!0,maxWait:f}=a,d=Array(2);l&&(d[0]="leading"),u&&(d[1]="trailing");let h,p=null;const y=t.debounce(function(...b){h=r.apply(this,b),p=null},i,{edges:d}),v=function(...b){return f!=null&&(p===null&&(p=Date.now()),Date.now()-p>=f)?(h=r.apply(this,b),p=Date.now(),y.cancel(),y.schedule(),h):(y.apply(this,b),h)},g=()=>(y.flush(),h);return v.cancel=y.cancel,v.flush=g,v}e.debounce=n})(qx)),qx}var zN;function Wie(){return zN||(zN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xie();function n(r,i=0,a={}){const{leading:l=!0,trailing:u=!0}=a;return t.debounce(r,i,{leading:l,maxWait:i,trailing:u})}e.throttle=n})(Ux)),Ux}var Vx,LN;function Jie(){return LN||(LN=1,Vx=Wie().throttle),Vx}var eae=Jie();const tae=ui(eae);var cv=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;console.warn(n.replace(/%s/g,()=>i[l++]))}},Yi={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},l6=(e,t,n)=>{var{width:r=Yi.width,height:i=Yi.height,aspect:a,maxHeight:l}=n,u=Bl(r)?e:Number(r),f=Bl(i)?t:Number(i);return a&&a>0&&(u?f=u/a:f&&(u=f*a),l&&f!=null&&f>l&&(f=l)),{calculatedWidth:u,calculatedHeight:f}},nae={width:0,height:0,overflow:"visible"},rae={width:0,overflowX:"visible"},iae={height:0,overflowY:"visible"},aae={},oae=e=>{var{width:t,height:n}=e,r=Bl(t),i=Bl(n);return r&&i?nae:r?rae:i?iae:aae};function sae(e){var{width:t,height:n,aspect:r}=e,i=t,a=n;return i===void 0&&a===void 0?(i=Yi.width,a=Yi.height):i===void 0?i=r&&r>0?void 0:Yi.width:a===void 0&&(a=r&&r>0?void 0:Yi.height),{width:i,height:a}}function Y2(){return Y2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y2.apply(null,arguments)}function BN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $N(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BN(Object(n),!0).forEach(function(r){lae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lae(e,t,n){return(t=uae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uae(e){var t=cae(e,"string");return typeof t=="symbol"?t:t+""}function cae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var u6=E.createContext(Yi.initialDimension);function fae(e){return ta(e.width)&&ta(e.height)}function c6(e){var{children:t,width:n,height:r}=e,i=E.useMemo(()=>({width:n,height:r}),[n,r]);return fae(i)?E.createElement(u6.Provider,{value:i},t):null}var j_=()=>E.useContext(u6),dae=E.forwardRef((e,t)=>{var{aspect:n,initialDimension:r=Yi.initialDimension,width:i,height:a,minWidth:l=Yi.minWidth,minHeight:u,maxHeight:f,children:d,debounce:h=Yi.debounce,id:p,className:y,onResize:v,style:g={}}=e,b=E.useRef(null),w=E.useRef();w.current=v,E.useImperativeHandle(t,()=>b.current);var[S,M]=E.useState({containerWidth:r.width,containerHeight:r.height}),A=E.useCallback((P,D)=>{M(z=>{var R=Math.round(P),N=Math.round(D);return z.containerWidth===R&&z.containerHeight===N?z:{containerWidth:R,containerHeight:N}})},[]);E.useEffect(()=>{if(b.current==null||typeof ResizeObserver>"u")return oo;var P=N=>{var B,I=N[0];if(I!=null){var{width:q,height:L}=I.contentRect;A(q,L),(B=w.current)===null||B===void 0||B.call(w,q,L)}};h>0&&(P=tae(P,h,{trailing:!0,leading:!1}));var D=new ResizeObserver(P),{width:z,height:R}=b.current.getBoundingClientRect();return A(z,R),D.observe(b.current),()=>{D.disconnect()}},[A,h]);var{containerWidth:O,containerHeight:k}=S;cv(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:C,calculatedHeight:T}=l6(O,k,{width:i,height:a,aspect:n,maxHeight:f});return cv(C!=null&&C>0||T!=null&&T>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
826
|
-
please check the style of container, or the props width(%s) and height(%s),
|
|
827
|
-
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
828
|
-
height and width.`,C,T,i,a,l,u,n),E.createElement("div",{id:p?"".concat(p):void 0,className:wt("recharts-responsive-container",y),style:$N($N({},g),{},{width:i,height:a,minWidth:l,minHeight:u,maxHeight:f}),ref:b},E.createElement("div",{style:oae({width:i,height:a})},E.createElement(c6,{width:C,height:T},d)))}),h2e=E.forwardRef((e,t)=>{var n=j_();if(ta(n.width)&&ta(n.height))return e.children;var{width:r,height:i}=sae({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:l}=l6(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return ke(a)&&ke(l)?E.createElement(c6,{width:a,height:l},e.children):E.createElement(dae,Y2({},e,{width:r,height:i,ref:t}))});function I_(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Mg=()=>{var e,t=Nn(),n=$e(Gie),r=$e(Og),i=(e=$e(Ag))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},hae={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},f6=()=>{var e;return(e=$e(Pn))!==null&&e!==void 0?e:hae},d6=()=>$e(so),h6=()=>$e(lo),vt=e=>e.layout.layoutType,As=()=>$e(vt),z_=()=>{var e=As();if(e==="horizontal"||e==="vertical")return e},p6=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},pae=()=>{var e=As();return e!==void 0},Bh=e=>{var t=Vt(),n=Nn(),{width:r,height:i}=e,a=j_(),l=r,u=i;return a&&(l=a.width>0?a.width:r,u=a.height>0?a.height:i),E.useEffect(()=>{!n&&ta(l)&&ta(u)&&t(bie({width:l,height:u}))},[t,n,l,u]),null},m6=Symbol.for("immer-nothing"),UN=Symbol.for("immer-draftable"),Vr=Symbol.for("immer-state");function _i(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ih=Object.getPrototypeOf;function Lc(e){return!!e&&!!e[Vr]}function $l(e){var t;return e?y6(e)||Array.isArray(e)||!!e[UN]||!!((t=e.constructor)!=null&&t[UN])||$h(e)||kg(e):!1}var mae=Object.prototype.constructor.toString(),qN=new WeakMap;function y6(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=qN.get(n);return r===void 0&&(r=Function.toString.call(n),qN.set(n,r)),r===mae}function fv(e,t,n=!0){Cg(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Cg(e){const t=e[Vr];return t?t.type_:Array.isArray(e)?1:$h(e)?2:kg(e)?3:0}function G2(e,t){return Cg(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v6(e,t,n){const r=Cg(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function yae(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function $h(e){return e instanceof Map}function kg(e){return e instanceof Set}function il(e){return e.copy_||e.base_}function Q2(e,t){if($h(e))return new Map(e);if(kg(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=y6(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Vr];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const l=i[a],u=r[l];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[l]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[l]})}return Object.create(ih(e),r)}else{const r=ih(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function L_(e,t=!1){return Tg(e)||Lc(e)||!$l(e)||(Cg(e)>1&&Object.defineProperties(e,{set:Jm,add:Jm,clear:Jm,delete:Jm}),Object.freeze(e),t&&Object.values(e).forEach(n=>L_(n,!0))),e}function vae(){_i(2)}var Jm={value:vae};function Tg(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var gae={};function Ul(e){const t=gae[e];return t||_i(0,e),t}var ah;function g6(){return ah}function bae(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function HN(e,t){t&&(Ul("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Z2(e){X2(e),e.drafts_.forEach(xae),e.drafts_=null}function X2(e){e===ah&&(ah=e.parent_)}function VN(e){return ah=bae(ah,e)}function xae(e){const t=e[Vr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function FN(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Vr].modified_&&(Z2(t),_i(4)),$l(e)&&(e=dv(t,e),t.parent_||hv(t,e)),t.patches_&&Ul("Patches").generateReplacementPatches_(n[Vr].base_,e,t.patches_,t.inversePatches_)):e=dv(t,n,[]),Z2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==m6?e:void 0}function dv(e,t,n){if(Tg(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[Vr];if(!i)return fv(t,(a,l)=>KN(e,i,t,a,l,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return hv(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let l=a,u=!1;i.type_===3&&(l=new Set(a),a.clear(),u=!0),fv(l,(f,d)=>KN(e,i,a,f,d,n,u),r),hv(e,a,!1),n&&e.patches_&&Ul("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function KN(e,t,n,r,i,a,l){if(i==null||typeof i!="object"&&!l)return;const u=Tg(i);if(!(u&&!l)){if(Lc(i)){const f=a&&t&&t.type_!==3&&!G2(t.assigned_,r)?a.concat(r):void 0,d=dv(e,i,f);if(v6(n,r,d),Lc(d))e.canAutoFreeze_=!1;else return}else l&&n.add(i);if($l(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&u)return;dv(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&($h(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&hv(e,i)}}}function hv(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&L_(t,n)}function wae(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:g6(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=B_;n&&(i=[r],a=oh);const{revoke:l,proxy:u}=Proxy.revocable(i,a);return r.draft_=u,r.revoke_=l,u}var B_={get(e,t){if(t===Vr)return e;const n=il(e);if(!G2(n,t))return Sae(e,n,t);const r=n[t];return e.finalized_||!$l(r)?r:r===Fx(e.base_,t)?(Kx(e),e.copy_[t]=J2(r,e)):r},has(e,t){return t in il(e)},ownKeys(e){return Reflect.ownKeys(il(e))},set(e,t,n){const r=b6(il(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Fx(il(e),t),a=i==null?void 0:i[Vr];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(yae(n,i)&&(n!==void 0||G2(e.base_,t)))return!0;Kx(e),W2(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Fx(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Kx(e),W2(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=il(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){_i(11)},getPrototypeOf(e){return ih(e.base_)},setPrototypeOf(){_i(12)}},oh={};fv(B_,(e,t)=>{oh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});oh.deleteProperty=function(e,t){return oh.set.call(this,e,t,void 0)};oh.set=function(e,t,n){return B_.set.call(this,e[0],t,n,e[0])};function Fx(e,t){const n=e[Vr];return(n?il(n):e)[t]}function Sae(e,t,n){var i;const r=b6(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function b6(e,t){if(!(t in e))return;let n=ih(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=ih(n)}}function W2(e){e.modified_||(e.modified_=!0,e.parent_&&W2(e.parent_))}function Kx(e){e.copy_||(e.copy_=Q2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var _ae=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const l=this;return function(f=a,...d){return l.produce(f,h=>n.call(this,h,...d))}}typeof n!="function"&&_i(6),r!==void 0&&typeof r!="function"&&_i(7);let i;if($l(t)){const a=VN(this),l=J2(t,void 0);let u=!0;try{i=n(l),u=!1}finally{u?Z2(a):X2(a)}return HN(a,r),FN(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===m6&&(i=void 0),this.autoFreeze_&&L_(i,!0),r){const a=[],l=[];Ul("Patches").generateReplacementPatches_(t,i,a,l),r(a,l)}return i}else _i(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...u)=>this.produceWithPatches(l,f=>t(f,...u));let r,i;return[this.produce(t,n,(l,u)=>{r=l,i=u}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){$l(e)||_i(8),Lc(e)&&(e=Eae(e));const t=VN(this),n=J2(e,void 0);return n[Vr].isManual_=!0,X2(t),n}finishDraft(e,t){const n=e&&e[Vr];(!n||!n.isManual_)&&_i(9);const{scope_:r}=n;return HN(r,t),FN(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Ul("Patches").applyPatches_;return Lc(e)?r(e,t):this.produce(e,i=>r(i,t))}};function J2(e,t){const n=$h(e)?Ul("MapSet").proxyMap_(e,t):kg(e)?Ul("MapSet").proxySet_(e,t):wae(e,t);return(t?t.scope_:g6()).drafts_.push(n),n}function Eae(e){return Lc(e)||_i(10,e),x6(e)}function x6(e){if(!$l(e)||Tg(e))return e;const t=e[Vr];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Q2(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Q2(e,!0);return fv(n,(i,a)=>{v6(n,i,x6(a))},r),t&&(t.finalized_=!1),n}var Aae=new _ae;Aae.produce;var Oae={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},w6=Wt({name:"legend",initialState:Oae,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:bt()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Lr(e).payload.indexOf(n);i>-1&&(e.payload[i]=r)},prepare:bt()},removeLegendPayload:{reducer(e,t){var n=Lr(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:bt()}}}),{setLegendSize:p2e,setLegendSettings:m2e,addLegendPayload:Mae,replaceLegendPayload:Cae,removeLegendPayload:kae}=w6.actions,Tae=w6.reducer,Pae=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function Nae(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function Gc(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(Pae.has(r)){if(e[r]==null&&t[r]==null)continue;if(!ic(e[r],t[r]))return!1}else if(!Nae(e[r],t[r]))return!1;return!0}function eS(){return eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eS.apply(null,arguments)}function YN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YN(Object(n),!0).forEach(function(r){Rae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rae(e,t,n){return(t=Dae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dae(e){var t=jae(e,"string");return typeof t=="symbol"?t:t+""}function jae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iae(e){return Array.isArray(e)&&ea(e[0])&&ea(e[1])?e.join(" ~ "):e}var $u={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function zae(e,t){return t==null?e:Sg(e,t)}var Lae=e=>{var{separator:t=$u.separator,contentStyle:n,itemStyle:r,labelStyle:i=$u.labelStyle,payload:a,formatter:l,itemSorter:u,wrapperClassName:f,labelClassName:d,label:h,labelFormatter:p,accessibilityLayer:y=$u.accessibilityLayer}=e,v=()=>{if(a&&a.length){var k={padding:0,margin:0},C=zae(a,u),T=C.map((P,D)=>{if(P.type==="none")return null;var z=P.formatter||l||Iae,{value:R,name:N}=P,B=R,I=N;if(z){var q=z(R,N,P,D,a);if(Array.isArray(q))[B,I]=q;else if(q!=null)B=q;else return null}var L=sd(sd({},$u.itemStyle),{},{color:P.color||$u.itemStyle.color},r);return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(D),style:L},ea(I)?E.createElement("span",{className:"recharts-tooltip-item-name"},I):null,ea(I)?E.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,E.createElement("span",{className:"recharts-tooltip-item-value"},B),E.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:k},T)}return null},g=sd(sd({},$u.contentStyle),n),b=sd({margin:0},i),w=!zt(h),S=w?h:"",M=wt("recharts-default-tooltip",f),A=wt("recharts-tooltip-label",d);w&&p&&a!==void 0&&a!==null&&(S=p(h,a));var O=y?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",eS({className:M,style:g},O),E.createElement("p",{className:A,style:b},E.isValidElement(S)?S:"".concat(S)),v())},ld="recharts-tooltip-wrapper",Bae={visibility:"hidden"};function $ae(e){var{coordinate:t,translateX:n,translateY:r}=e;return wt(ld,{["".concat(ld,"-right")]:ke(n)&&t&&ke(t.x)&&n>=t.x,["".concat(ld,"-left")]:ke(n)&&t&&ke(t.x)&&n<t.x,["".concat(ld,"-bottom")]:ke(r)&&t&&ke(t.y)&&r>=t.y,["".concat(ld,"-top")]:ke(r)&&t&&ke(t.y)&&r<t.y})}function GN(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:i,position:a,reverseDirection:l,tooltipDimension:u,viewBox:f,viewBoxDimension:d}=e;if(a&&ke(a[r]))return a[r];var h=n[r]-u-(i>0?i:0),p=n[r]+i;if(t[r])return l[r]?h:p;var y=f[r];if(y==null)return 0;if(l[r]){var v=h,g=y;return v<g?Math.max(p,y):Math.max(h,y)}if(d==null)return 0;var b=p+u,w=y+d;return b>w?Math.max(h,y):Math.max(p,y)}function Uae(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function qae(e){var{allowEscapeViewBox:t,coordinate:n,offsetTop:r,offsetLeft:i,position:a,reverseDirection:l,tooltipBox:u,useTranslate3d:f,viewBox:d}=e,h,p,y;return u.height>0&&u.width>0&&n?(p=GN({allowEscapeViewBox:t,coordinate:n,key:"x",offset:i,position:a,reverseDirection:l,tooltipDimension:u.width,viewBox:d,viewBoxDimension:d.width}),y=GN({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:a,reverseDirection:l,tooltipDimension:u.height,viewBox:d,viewBoxDimension:d.height}),h=Uae({translateX:p,translateY:y,useTranslate3d:f})):h=Bae,{cssProperties:h,cssClasses:$ae({translateX:p,translateY:y,coordinate:n})}}var Hae=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Uh={isSsr:Hae()};function S6(){var[e,t]=E.useState(()=>Uh.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return E.useEffect(()=>{if(window.matchMedia){var n=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>{t(n.matches)};return n.addEventListener("change",r),()=>{n.removeEventListener("change",r)}}},[]),e}function QN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Uu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QN(Object(n),!0).forEach(function(r){Vae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vae(e,t,n){return(t=Fae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fae(e){var t=Kae(e,"string");return typeof t=="symbol"?t:t+""}function Kae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yae(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}function Gae(e){var t,n,r,i,a,l,u=S6(),[f,d]=E.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));E.useEffect(()=>{var g=b=>{if(b.key==="Escape"){var w,S,M,A;d({dismissed:!0,dismissedAtCoordinate:{x:(w=(S=e.coordinate)===null||S===void 0?void 0:S.x)!==null&&w!==void 0?w:0,y:(M=(A=e.coordinate)===null||A===void 0?void 0:A.y)!==null&&M!==void 0?M:0}})}};return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(n=e.coordinate)===null||n===void 0?void 0:n.y]),f.dismissed&&(((r=(i=e.coordinate)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)!==f.dismissedAtCoordinate.x||((a=(l=e.coordinate)===null||l===void 0?void 0:l.y)!==null&&a!==void 0?a:0)!==f.dismissedAtCoordinate.y)&&d(Uu(Uu({},f),{},{dismissed:!1}));var{cssClasses:h,cssProperties:p}=qae({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),y=e.hasPortalFromProps?{}:Uu(Uu({transition:Yae({prefersReducedMotion:u,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},p),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),v=Uu(Uu({},y),{},{visibility:!f.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return E.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:h,style:v,ref:e.innerRef},e.children)}var Qae=E.memo(Gae),_6=()=>{var e;return(e=$e(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function tS(){return tS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tS.apply(null,arguments)}function ZN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function XN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZN(Object(n),!0).forEach(function(r){Zae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zae(e,t,n){return(t=Xae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xae(e){var t=Wae(e,"string");return typeof t=="symbol"?t:t+""}function Wae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WN={curveBasisClosed:ere,curveBasisOpen:tre,curveBasis:Jne,curveBumpX:Bne,curveBumpY:$ne,curveLinearClosed:nre,curveLinear:xg,curveMonotoneX:rre,curveMonotoneY:ire,curveNatural:are,curveStep:ore,curveStepAfter:lre,curveStepBefore:sre},pv=e=>et(e.x)&&et(e.y),JN=e=>e.base!=null&&pv(e.base)&&pv(e),ud=e=>e.x,cd=e=>e.y,Jae=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(zh(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=WN["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return WN[n]||xg},e3={connectNulls:!1,type:"linear"},eoe=e=>{var{type:t=e3.type,points:n=[],baseLine:r,layout:i,connectNulls:a=e3.connectNulls}=e,l=Jae(t,i),u=a?n.filter(pv):n;if(Array.isArray(r)){var f,d=n.map((g,b)=>XN(XN({},g),{},{base:r[b]}));i==="vertical"?f=Zm().y(cd).x1(ud).x0(g=>g.base.x):f=Zm().x(ud).y1(cd).y0(g=>g.base.y);var h=f.defined(JN).curve(l),p=a?d.filter(JN):d;return h(p)}var y;i==="vertical"&&ke(r)?y=Zm().y(cd).x1(ud).x0(r):ke(r)?y=Zm().x(ud).y1(cd).y0(r):y=Mz().x(ud).y(cd);var v=y.defined(pv).curve(l);return v(u)},Rd=e=>{var{className:t,points:n,path:r,pathRef:i}=e,a=As();if((!n||!n.length)&&!r)return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},u=n&&n.length?eoe(l):r;return E.createElement("path",tS({},Hr(e),T_(e),{className:wt("recharts-curve",t),d:u===null?void 0:u,ref:i}))},toe=["x","y","top","left","width","height","className"];function nS(){return nS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nS.apply(null,arguments)}function t3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function noe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t3(Object(n),!0).forEach(function(r){roe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function roe(e,t,n){return(t=ioe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ioe(e){var t=aoe(e,"string");return typeof t=="symbol"?t:t+""}function aoe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ooe(e,t){if(e==null)return{};var n,r,i=soe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function soe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var loe=(e,t,n,r,i,a)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(a,",").concat(t,"h").concat(n),uoe=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:a=0,height:l=0,className:u}=e,f=ooe(e,toe),d=noe({x:t,y:n,top:r,left:i,width:a,height:l},f);return!ke(t)||!ke(n)||!ke(a)||!ke(l)||!ke(r)||!ke(i)?null:E.createElement("path",nS({},tr(d),{className:wt("recharts-cross",u),d:loe(t,n,a,l,r,i)}))};function coe(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function n3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function r3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n3(Object(n),!0).forEach(function(r){foe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function foe(e,t,n){return(t=doe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function doe(e){var t=hoe(e,"string");return typeof t=="symbol"?t:t+""}function hoe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var poe=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),E6=(e,t,n)=>e.map(r=>"".concat(poe(r)," ").concat(t,"ms ").concat(n)).join(","),moe=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),sh=(e,t)=>Object.keys(t).reduce((n,r)=>r3(r3({},n),{},{[r]:e(r,t[r])}),{});function i3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i3(Object(n),!0).forEach(function(r){yoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yoe(e,t,n){return(t=voe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function voe(e){var t=goe(e,"string");return typeof t=="symbol"?t:t+""}function goe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mv=(e,t,n)=>e+(t-e)*n,rS=e=>{var{from:t,to:n}=e;return t!==n},A6=(e,t,n)=>{var r=sh((i,a)=>{if(rS(a)){var[l,u]=e(a.from,a.to,a.velocity);return _n(_n({},a),{},{from:l,velocity:u})}return a},t);return n<1?sh((i,a)=>rS(a)&&r[i]!=null?_n(_n({},a),{},{velocity:mv(a.velocity,r[i].velocity,n),from:mv(a.from,r[i].from,n)}):a,t):A6(e,r,n-1)};function boe(e,t,n,r,i,a){var l,u=r.reduce((y,v)=>_n(_n({},y),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),f=()=>sh((y,v)=>v.from,u),d=()=>!Object.values(u).filter(rS).length,h=null,p=y=>{l||(l=y);var v=y-l,g=v/n.dt;u=A6(n,u,g),i(_n(_n(_n({},e),t),f())),l=y,d()||(h=a.setTimeout(p))};return()=>(h=a.setTimeout(p),()=>{var y;(y=h)===null||y===void 0||y()})}function xoe(e,t,n,r,i,a,l){var u=null,f=i.reduce((p,y)=>{var v=e[y],g=t[y];return v==null||g==null?p:_n(_n({},p),{},{[y]:[v,g]})},{}),d,h=p=>{d||(d=p);var y=(p-d)/r,v=sh((b,w)=>mv(...w,n(y)),f);if(a(_n(_n(_n({},e),t),v)),y<1)u=l.setTimeout(h);else{var g=sh((b,w)=>mv(...w,n(1)),f);a(_n(_n(_n({},e),t),g))}};return()=>(u=l.setTimeout(h),()=>{var p;(p=u)===null||p===void 0||p()})}const woe=(e,t,n,r,i,a)=>{var l=moe(e,t);return n==null?()=>(i(_n(_n({},e),t)),()=>{}):n.isStepper===!0?boe(e,t,n,l,i,a):xoe(e,t,n,r,l,i,a)};var yv=1e-4,O6=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],M6=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),a3=(e,t)=>n=>{var r=O6(e,t);return M6(r,n)},Soe=(e,t)=>n=>{var r=O6(e,t),i=[...r.map((a,l)=>a*l).slice(1),0];return M6(i,n)},_oe=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var i=r.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},Eoe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=_oe(n[0]);if(i)return i}}return n.length===4?n:[0,0,1,1]},Aoe=(e,t,n,r)=>{var i=a3(e,n),a=a3(t,r),l=Soe(e,n),u=d=>d>1?1:d<0?0:d,f=d=>{for(var h=d>1?1:d,p=h,y=0;y<8;++y){var v=i(p)-h,g=l(p);if(Math.abs(v-h)<yv||g<yv)return a(p);p=u(p-v/g)}return a(p)};return f.isStepper=!1,f},o3=function(){return Aoe(...Eoe(...arguments))},Ooe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,a=(l,u,f)=>{var d=-(l-u)*n,h=f*r,p=f+(d-h)*i/1e3,y=f*i/1e3+l;return Math.abs(y-u)<yv&&Math.abs(p)<yv?[u,0]:[y,p]};return a.isStepper=!0,a.dt=i,a},Moe=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return o3(e);case"spring":return Ooe();default:if(e.split("(")[0]==="cubic-bezier")return o3(e)}return typeof e=="function"?e:null};function Coe(e){var t,n=()=>null,r=!1,i=null,a=l=>{if(!r){if(Array.isArray(l)){if(!l.length)return;var u=l,[f,...d]=u;if(typeof f=="number"){i=e.setTimeout(a.bind(null,d),f);return}a(f),i=e.setTimeout(a.bind(null,d));return}typeof l=="string"&&(t=l,n(t)),typeof l=="object"&&(t=l,n(t)),typeof l=="function"&&l()}};return{stop:()=>{r=!0},start:l=>{r=!1,i&&(i(),i=null),a(l)},subscribe:l=>(n=l,()=>{n=()=>null}),getTimeoutController:()=>e}}class koe{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,a=l=>{l-r>=n?t(l):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function Toe(){return Coe(new koe)}var Poe=E.createContext(Toe);function Noe(e,t){var n=E.useContext(Poe);return E.useMemo(()=>t??n(e),[e,t,n])}var Roe={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},s3={t:0},Yx={t:1};function qh(e){var t=nr(e,Roe),{isActive:n,canBegin:r,duration:i,easing:a,begin:l,onAnimationEnd:u,onAnimationStart:f,children:d}=t,h=S6(),p=n==="auto"?!Uh.isSsr&&!h:n,y=Noe(t.animationId,t.animationManager),[v,g]=E.useState(p?s3:Yx),b=E.useRef(null);return E.useEffect(()=>{p||g(Yx)},[p]),E.useEffect(()=>{if(!p||!r)return oo;var w=woe(s3,Yx,Moe(a),i,g,y.getTimeoutController()),S=()=>{b.current=w()};return y.start([f,l,S,i,u]),()=>{y.stop(),b.current&&b.current(),u()}},[p,r,i,a,l,f,u,y]),d(v.t)}function Hh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=E.useRef(rh(t)),r=E.useRef(e);return r.current!==e&&(n.current=rh(t),r.current=e),n.current}var Doe=["radius"],joe=["radius"],l3,u3,c3,f3,d3,h3,p3,m3,y3,v3;function g3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function b3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g3(Object(n),!0).forEach(function(r){Ioe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ioe(e,t,n){return(t=zoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zoe(e){var t=Loe(e,"string");return typeof t=="symbol"?t:t+""}function Loe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vv(){return vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vv.apply(null,arguments)}function x3(e,t){if(e==null)return{};var n,r,i=Boe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Boe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Li(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var w3=(e,t,n,r,i)=>{var a=ds(n),l=ds(r),u=Math.min(Math.abs(a)/2,Math.abs(l)/2),f=l>=0?1:-1,d=a>=0?1:-1,h=l>=0&&a>=0||l<0&&a<0?1:0,p;if(u>0&&Array.isArray(i)){for(var y=[0,0,0,0],v=0,g=4;v<g;v++){var b,w=(b=i[v])!==null&&b!==void 0?b:0;y[v]=w>u?u:w}p=Xt(l3||(l3=Li(["M",",",""])),e,t+f*y[0]),y[0]>0&&(p+=Xt(u3||(u3=Li(["A ",",",",0,0,",",",",",""])),y[0],y[0],h,e+d*y[0],t)),p+=Xt(c3||(c3=Li(["L ",",",""])),e+n-d*y[1],t),y[1]>0&&(p+=Xt(f3||(f3=Li(["A ",",",",0,0,",`,
|
|
829
|
-
`,",",""])),y[1],y[1],h,e+n,t+f*y[1])),p+=Xt(d3||(d3=Li(["L ",",",""])),e+n,t+r-f*y[2]),y[2]>0&&(p+=Xt(h3||(h3=Li(["A ",",",",0,0,",`,
|
|
830
|
-
`,",",""])),y[2],y[2],h,e+n-d*y[2],t+r)),p+=Xt(p3||(p3=Li(["L ",",",""])),e+d*y[3],t+r),y[3]>0&&(p+=Xt(m3||(m3=Li(["A ",",",",0,0,",`,
|
|
831
|
-
`,",",""])),y[3],y[3],h,e,t+r-f*y[3])),p+="Z"}else if(u>0&&i===+i&&i>0){var S=Math.min(u,i);p=Xt(y3||(y3=Li(["M ",",",`
|
|
832
|
-
A `,",",",0,0,",",",",",`
|
|
833
|
-
L `,",",`
|
|
834
|
-
A `,",",",0,0,",",",",",`
|
|
835
|
-
L `,",",`
|
|
836
|
-
A `,",",",0,0,",",",",",`
|
|
837
|
-
L `,",",`
|
|
838
|
-
A `,",",",0,0,",",",","," Z"])),e,t+f*S,S,S,h,e+d*S,t,e+n-d*S,t,S,S,h,e+n,t+f*S,e+n,t+r-f*S,S,S,h,e+n-d*S,t+r,e+d*S,t+r,S,S,h,e,t+r-f*S)}else p=Xt(v3||(v3=Li(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return p},S3={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},C6=e=>{var t=nr(e,S3),n=E.useRef(null),[r,i]=E.useState(-1);E.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var V=n.current.getTotalLength();V&&i(V)}catch{}},[]);var{x:a,y:l,width:u,height:f,radius:d,className:h}=t,{animationEasing:p,animationDuration:y,animationBegin:v,isAnimationActive:g,isUpdateAnimationActive:b}=t,w=E.useRef(u),S=E.useRef(f),M=E.useRef(a),A=E.useRef(l),O=E.useMemo(()=>({x:a,y:l,width:u,height:f,radius:d}),[a,l,u,f,d]),k=Hh(O,"rectangle-");if(a!==+a||l!==+l||u!==+u||f!==+f||u===0||f===0)return null;var C=wt("recharts-rectangle",h);if(!b){var T=tr(t),{radius:P}=T,D=x3(T,Doe);return E.createElement("path",vv({},D,{x:ds(a),y:ds(l),width:ds(u),height:ds(f),radius:typeof d=="number"?d:void 0,className:C,d:w3(a,l,u,f,d)}))}var z=w.current,R=S.current,N=M.current,B=A.current,I="0px ".concat(r===-1?1:r,"px"),q="".concat(r,"px ").concat(r,"px"),L=E6(["strokeDasharray"],y,typeof p=="string"?p:S3.animationEasing);return E.createElement(qh,{animationId:k,key:k,canBegin:r>0,duration:y,easing:p,isActive:b,begin:v},V=>{var F=Ct(z,u,V),H=Ct(R,f,V),Y=Ct(N,a,V),$=Ct(B,l,V);n.current&&(w.current=F,S.current=H,M.current=Y,A.current=$);var K;g?V>0?K={transition:L,strokeDasharray:q}:K={strokeDasharray:I}:K={strokeDasharray:q};var J=tr(t),{radius:te}=J,ce=x3(J,joe);return E.createElement("path",vv({},ce,{radius:typeof d=="number"?d:void 0,className:C,d:w3(Y,$,F,H,d),ref:n,style:b3(b3({},K),t.style)}))})};function _3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function E3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_3(Object(n),!0).forEach(function(r){$oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $oe(e,t,n){return(t=Uoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uoe(e){var t=qoe(e,"string");return typeof t=="symbol"?t:t+""}function qoe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gv=Math.PI/180,Hoe=e=>e*180/Math.PI,Fn=(e,t,n,r)=>({x:e+Math.cos(-gv*r)*n,y:t+Math.sin(-gv*r)*n}),Voe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Foe=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return Math.sqrt((n-i)**2+(r-a)**2)},Koe=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:a}=t,l=Foe({x:n,y:r},{x:i,y:a});if(l<=0)return{radius:l,angle:0};var u=(n-i)/l,f=Math.acos(u);return r>a&&(f=2*Math.PI-f),{radius:l,angle:Hoe(f),angleInRadian:f}},Yoe=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},Goe=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),a=Math.floor(r/360),l=Math.min(i,a);return e+l*360},Qoe=(e,t)=>{var{relativeX:n,relativeY:r}=e,{radius:i,angle:a}=Koe({x:n,y:r},t),{innerRadius:l,outerRadius:u}=t;if(i<l||i>u||i===0)return null;var{startAngle:f,endAngle:d}=Yoe(t),h=a,p;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;p=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;p=h>=d&&h<=f}return p?E3(E3({},t),{},{radius:i,angle:Goe(h,t)}):null};function k6(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:a}=e,l=Fn(t,n,r,i),u=Fn(t,n,r,a);return{points:[l,u],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}var A3,O3,M3,C3,k3,T3,P3;function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iS.apply(null,arguments)}function ul(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Zoe=(e,t)=>{var n=Ar(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},ey=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:a,isExternal:l,cornerRadius:u,cornerIsExternal:f}=e,d=u*(l?1:-1)+r,h=Math.asin(u/d)/gv,p=f?i:i+a*h,y=Fn(t,n,d,p),v=Fn(t,n,r,p),g=f?i-a*h:i,b=Fn(t,n,d*Math.cos(h*gv),g);return{center:y,circleTangency:v,lineTangency:b,theta:h}},T6=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:l}=e,u=Zoe(a,l),f=a+u,d=Fn(t,n,i,a),h=Fn(t,n,i,f),p=Xt(A3||(A3=ul(["M ",",",`
|
|
839
|
-
A `,",",`,0,
|
|
840
|
-
`,",",`,
|
|
841
|
-
`,",",`
|
|
842
|
-
`])),d.x,d.y,i,i,+(Math.abs(u)>180),+(a>f),h.x,h.y);if(r>0){var y=Fn(t,n,r,a),v=Fn(t,n,r,f);p+=Xt(O3||(O3=ul(["L ",",",`
|
|
843
|
-
A `,",",`,0,
|
|
844
|
-
`,",",`,
|
|
845
|
-
`,","," Z"])),v.x,v.y,r,r,+(Math.abs(u)>180),+(a<=f),y.x,y.y)}else p+=Xt(M3||(M3=ul(["L ",","," Z"])),t,n);return p},Xoe=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:a,forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:d}=e,h=Ar(d-f),{circleTangency:p,lineTangency:y,theta:v}=ey({cx:t,cy:n,radius:i,angle:f,sign:h,cornerRadius:a,cornerIsExternal:u}),{circleTangency:g,lineTangency:b,theta:w}=ey({cx:t,cy:n,radius:i,angle:d,sign:-h,cornerRadius:a,cornerIsExternal:u}),S=u?Math.abs(f-d):Math.abs(f-d)-v-w;if(S<0)return l?Xt(C3||(C3=ul(["M ",",",`
|
|
846
|
-
a`,",",",0,0,1,",`,0
|
|
847
|
-
a`,",",",0,0,1,",`,0
|
|
848
|
-
`])),y.x,y.y,a,a,a*2,a,a,-a*2):T6({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:f,endAngle:d});var M=Xt(k3||(k3=ul(["M ",",",`
|
|
849
|
-
A`,",",",0,0,",",",",",`
|
|
850
|
-
A`,",",",0,",",",",",",",`
|
|
851
|
-
A`,",",",0,0,",",",",",`
|
|
852
|
-
`])),y.x,y.y,a,a,+(h<0),p.x,p.y,i,i,+(S>180),+(h<0),g.x,g.y,a,a,+(h<0),b.x,b.y);if(r>0){var{circleTangency:A,lineTangency:O,theta:k}=ey({cx:t,cy:n,radius:r,angle:f,sign:h,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),{circleTangency:C,lineTangency:T,theta:P}=ey({cx:t,cy:n,radius:r,angle:d,sign:-h,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),D=u?Math.abs(f-d):Math.abs(f-d)-k-P;if(D<0&&a===0)return"".concat(M,"L").concat(t,",").concat(n,"Z");M+=Xt(T3||(T3=ul(["L",",",`
|
|
853
|
-
A`,",",",0,0,",",",",",`
|
|
854
|
-
A`,",",",0,",",",",",",",`
|
|
855
|
-
A`,",",",0,0,",",",",","Z"])),T.x,T.y,a,a,+(h<0),C.x,C.y,r,r,+(D>180),+(h>0),A.x,A.y,a,a,+(h<0),O.x,O.y)}else M+=Xt(P3||(P3=ul(["L",",","Z"])),t,n);return M},Woe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},P6=e=>{var t=nr(e,Woe),{cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:l,forceCornerRadius:u,cornerIsExternal:f,startAngle:d,endAngle:h,className:p}=t;if(a<i||d===h)return null;var y=wt("recharts-sector",p),v=a-i,g=ki(l,v,0,!0),b;return g>0&&Math.abs(d-h)<360?b=Xoe({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(g,v/2),forceCornerRadius:u,cornerIsExternal:f,startAngle:d,endAngle:h}):b=T6({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:d,endAngle:h}),E.createElement("path",iS({},tr(t),{className:y,d:b}))};function Joe(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(Hz(t)){if(e==="centric"){var{cx:r,cy:i,innerRadius:a,outerRadius:l,angle:u}=t,f=Fn(r,i,a,u),d=Fn(r,i,l,u);return[{x:f.x,y:f.y},{x:d.x,y:d.y}]}return k6(t)}}var Gx={},Qx={},Zx={},N3;function ese(){return N3||(N3=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jz();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(Zx)),Zx}var R3;function tse(){return R3||(R3=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ese();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(Qx)),Qx}var D3;function nse(){return D3||(D3=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=e6(),n=tse();function r(i,a,l){l&&typeof l!="number"&&t.isIterateeCall(i,a,l)&&(a=l=void 0),i=n.toFinite(i),a===void 0?(a=i,i=0):a=n.toFinite(a),l=l===void 0?i<a?1:-1:n.toFinite(l);const u=Math.max(Math.ceil((a-i)/(l||1)),0),f=new Array(u);for(let d=0;d<u;d++)f[d]=i,i+=l;return f}e.range=r})(Gx)),Gx}var Xx,j3;function rse(){return j3||(j3=1,Xx=nse().range),Xx}var ise=rse();const N6=ui(ise);var uo=e=>e.chartData,R6=le([uo],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),$_=(e,t,n,r)=>r?R6(e):uo(e),D6=(e,t,n)=>n?R6(e):uo(e);function Wi(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(et(t)&&et(n))return!0}return!1}function I3(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function j6(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,a;if(et(n))i=n;else if(typeof n=="function")return;if(et(r))a=r;else if(typeof r=="function")return;var l=[i,a];if(Wi(l))return l}}function ase(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(Wi(r))return I3(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,l,u;if(i==="auto")t!=null&&(l=Math.min(...t));else if(ke(i))l=i;else if(typeof i=="function")try{t!=null&&(l=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&PN.test(i)){var f=PN.exec(i);if(f==null||f[1]==null||t==null)l=void 0;else{var d=+f[1];l=t[0]-d}}else l=t==null?void 0:t[0];if(a==="auto")t!=null&&(u=Math.max(...t));else if(ke(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t==null?void 0:t[1]))}catch{}else if(typeof a=="string"&&NN.test(a)){var h=NN.exec(a);if(h==null||h[1]==null||t==null)u=void 0;else{var p=+h[1];u=t[1]+p}}else u=t==null?void 0:t[1];var y=[l,u];if(Wi(y))return t==null?y:I3(y,t,n)}}}var Qc=1e9,ose={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},q_,Bt=!0,li="[DecimalError] ",Al=li+"Invalid argument: ",U_=li+"Exponent out of range: ",Zc=Math.floor,al=Math.pow,sse=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ir,kn=1e7,It=7,I6=9007199254740991,bv=Zc(I6/It),Pe={};Pe.absoluteValue=Pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Pe.comparedTo=Pe.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};Pe.decimalPlaces=Pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*It;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Pe.dividedBy=Pe.div=function(e){return Ya(this,new this.constructor(e))};Pe.dividedToIntegerBy=Pe.idiv=function(e){var t=this,n=t.constructor;return Tt(Ya(t,new n(e),0,1),n.precision)};Pe.equals=Pe.eq=function(e){return!this.cmp(e)};Pe.exponent=function(){return pn(this)};Pe.greaterThan=Pe.gt=function(e){return this.cmp(e)>0};Pe.greaterThanOrEqualTo=Pe.gte=function(e){return this.cmp(e)>=0};Pe.isInteger=Pe.isint=function(){return this.e>this.d.length-2};Pe.isNegative=Pe.isneg=function(){return this.s<0};Pe.isPositive=Pe.ispos=function(){return this.s>0};Pe.isZero=function(){return this.s===0};Pe.lessThan=Pe.lt=function(e){return this.cmp(e)<0};Pe.lessThanOrEqualTo=Pe.lte=function(e){return this.cmp(e)<1};Pe.logarithm=Pe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Ir))throw Error(li+"NaN");if(n.s<1)throw Error(li+(n.s?"NaN":"-Infinity"));return n.eq(Ir)?new r(0):(Bt=!1,t=Ya(lh(n,a),lh(e,a),a),Bt=!0,Tt(t,i))};Pe.minus=Pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?B6(t,e):z6(t,(e.s=-e.s,e))};Pe.modulo=Pe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(li+"NaN");return n.s?(Bt=!1,t=Ya(n,e,0,1).times(e),Bt=!0,n.minus(t)):Tt(new r(n),i)};Pe.naturalExponential=Pe.exp=function(){return L6(this)};Pe.naturalLogarithm=Pe.ln=function(){return lh(this)};Pe.negated=Pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Pe.plus=Pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?z6(t,e):B6(t,(e.s=-e.s,e))};Pe.precision=Pe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Al+e);if(t=pn(i)+1,r=i.d.length-1,n=r*It+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Pe.squareRoot=Pe.sqrt=function(){var e,t,n,r,i,a,l,u=this,f=u.constructor;if(u.s<1){if(!u.s)return new f(0);throw Error(li+"NaN")}for(e=pn(u),Bt=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=Gi(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Zc((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(i.toString()),n=f.precision,i=l=n+3;;)if(a=r,r=a.plus(Ya(u,a,l+2)).times(.5),Gi(a.d).slice(0,l)===(t=Gi(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),i==l&&t=="4999"){if(Tt(a,n+1,0),a.times(a).eq(u)){r=a;break}}else if(t!="9999")break;l+=4}return Bt=!0,Tt(r,n)};Pe.times=Pe.mul=function(e){var t,n,r,i,a,l,u,f,d,h=this,p=h.constructor,y=h.d,v=(e=new p(e)).d;if(!h.s||!e.s)return new p(0);for(e.s*=h.s,n=h.e+e.e,f=y.length,d=v.length,f<d&&(a=y,y=v,v=a,l=f,f=d,d=l),a=[],l=f+d,r=l;r--;)a.push(0);for(r=d;--r>=0;){for(t=0,i=f+r;i>r;)u=a[i]+v[r]*y[i-r-1]+t,a[i--]=u%kn|0,t=u/kn|0;a[i]=(a[i]+t)%kn|0}for(;!a[--l];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,Bt?Tt(e,p.precision):e};Pe.toDecimalPlaces=Pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(na(e,0,Qc),t===void 0?t=r.rounding:na(t,0,8),Tt(n,e+pn(n)+1,t))};Pe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ql(r,!0):(na(e,0,Qc),t===void 0?t=i.rounding:na(t,0,8),r=Tt(new i(r),e+1,t),n=ql(r,!0,e+1)),n};Pe.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?ql(i):(na(e,0,Qc),t===void 0?t=a.rounding:na(t,0,8),r=Tt(new a(i),e+pn(i)+1,t),n=ql(r.abs(),!1,e+pn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Pe.toInteger=Pe.toint=function(){var e=this,t=e.constructor;return Tt(new t(e),pn(e)+1,t.rounding)};Pe.toNumber=function(){return+this};Pe.toPower=Pe.pow=function(e){var t,n,r,i,a,l,u=this,f=u.constructor,d=12,h=+(e=new f(e));if(!e.s)return new f(Ir);if(u=new f(u),!u.s){if(e.s<1)throw Error(li+"Infinity");return u}if(u.eq(Ir))return u;if(r=f.precision,e.eq(Ir))return Tt(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,a=u.s,l){if((n=h<0?-h:h)<=I6){for(i=new f(Ir),t=Math.ceil(r/It+4),Bt=!1;n%2&&(i=i.times(u),L3(i.d,t)),n=Zc(n/2),n!==0;)u=u.times(u),L3(u.d,t);return Bt=!0,e.s<0?new f(Ir).div(i):Tt(i,r)}}else if(a<0)throw Error(li+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,Bt=!1,i=e.times(lh(u,r+d)),Bt=!0,i=L6(i),i.s=a,i};Pe.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=pn(i),r=ql(i,n<=a.toExpNeg||n>=a.toExpPos)):(na(e,1,Qc),t===void 0?t=a.rounding:na(t,0,8),i=Tt(new a(i),e,t),n=pn(i),r=ql(i,e<=n||n<=a.toExpNeg,e)),r};Pe.toSignificantDigits=Pe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(na(e,1,Qc),t===void 0?t=r.rounding:na(t,0,8)),Tt(new r(n),e,t)};Pe.toString=Pe.valueOf=Pe.val=Pe.toJSON=Pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=pn(e),n=e.constructor;return ql(e,t<=n.toExpNeg||t>=n.toExpPos)};function z6(e,t){var n,r,i,a,l,u,f,d,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),Bt?Tt(t,p):t;if(f=e.d,d=t.d,l=e.e,i=t.e,f=f.slice(),a=l-i,a){for(a<0?(r=f,a=-a,u=d.length):(r=d,i=l,u=f.length),l=Math.ceil(p/It),u=l>u?l+1:u+1,a>u&&(a=u,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(u=f.length,a=d.length,u-a<0&&(a=u,r=d,d=f,f=r),n=0;a;)n=(f[--a]=f[a]+d[a]+n)/kn|0,f[a]%=kn;for(n&&(f.unshift(n),++i),u=f.length;f[--u]==0;)f.pop();return t.d=f,t.e=i,Bt?Tt(t,p):t}function na(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Al+e)}function Gi(e){var t,n,r,i=e.length-1,a="",l=e[0];if(i>0){for(a+=l,t=1;t<i;t++)r=e[t]+"",n=It-r.length,n&&(a+=Wo(n)),a+=r;l=e[t],r=l+"",n=It-r.length,n&&(a+=Wo(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return a+l}var Ya=(function(){function e(r,i){var a,l=0,u=r.length;for(r=r.slice();u--;)a=r[u]*i+l,r[u]=a%kn|0,l=a/kn|0;return l&&r.unshift(l),r}function t(r,i,a,l){var u,f;if(a!=l)f=a>l?1:-1;else for(u=f=0;u<a;u++)if(r[u]!=i[u]){f=r[u]>i[u]?1:-1;break}return f}function n(r,i,a){for(var l=0;a--;)r[a]-=l,l=r[a]<i[a]?1:0,r[a]=l*kn+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,l){var u,f,d,h,p,y,v,g,b,w,S,M,A,O,k,C,T,P,D=r.constructor,z=r.s==i.s?1:-1,R=r.d,N=i.d;if(!r.s)return new D(r);if(!i.s)throw Error(li+"Division by zero");for(f=r.e-i.e,T=N.length,k=R.length,v=new D(z),g=v.d=[],d=0;N[d]==(R[d]||0);)++d;if(N[d]>(R[d]||0)&&--f,a==null?M=a=D.precision:l?M=a+(pn(r)-pn(i))+1:M=a,M<0)return new D(0);if(M=M/It+2|0,d=0,T==1)for(h=0,N=N[0],M++;(d<k||h)&&M--;d++)A=h*kn+(R[d]||0),g[d]=A/N|0,h=A%N|0;else{for(h=kn/(N[0]+1)|0,h>1&&(N=e(N,h),R=e(R,h),T=N.length,k=R.length),O=T,b=R.slice(0,T),w=b.length;w<T;)b[w++]=0;P=N.slice(),P.unshift(0),C=N[0],N[1]>=kn/2&&++C;do h=0,u=t(N,b,T,w),u<0?(S=b[0],T!=w&&(S=S*kn+(b[1]||0)),h=S/C|0,h>1?(h>=kn&&(h=kn-1),p=e(N,h),y=p.length,w=b.length,u=t(p,b,y,w),u==1&&(h--,n(p,T<y?P:N,y))):(h==0&&(u=h=1),p=N.slice()),y=p.length,y<w&&p.unshift(0),n(b,p,w),u==-1&&(w=b.length,u=t(N,b,T,w),u<1&&(h++,n(b,T<w?P:N,w))),w=b.length):u===0&&(h++,b=[0]),g[d++]=h,u&&b[0]?b[w++]=R[O]||0:(b=[R[O]],w=1);while((O++<k||b[0]!==void 0)&&M--)}return g[0]||g.shift(),v.e=f,Tt(v,l?a+pn(v)+1:a)}})();function L6(e,t){var n,r,i,a,l,u,f=0,d=0,h=e.constructor,p=h.precision;if(pn(e)>16)throw Error(U_+pn(e));if(!e.s)return new h(Ir);for(Bt=!1,u=p,l=new h(.03125);e.abs().gte(.1);)e=e.times(l),d+=5;for(r=Math.log(al(2,d))/Math.LN10*2+5|0,u+=r,n=i=a=new h(Ir),h.precision=u;;){if(i=Tt(i.times(e),u),n=n.times(++f),l=a.plus(Ya(i,n,u)),Gi(l.d).slice(0,u)===Gi(a.d).slice(0,u)){for(;d--;)a=Tt(a.times(a),u);return h.precision=p,t==null?(Bt=!0,Tt(a,p)):a}a=l}}function pn(e){for(var t=e.e*It,n=e.d[0];n>=10;n/=10)t++;return t}function Wx(e,t,n){if(t>e.LN10.sd())throw Bt=!0,n&&(e.precision=n),Error(li+"LN10 precision limit exceeded");return Tt(new e(e.LN10),t)}function Wo(e){for(var t="";e--;)t+="0";return t}function lh(e,t){var n,r,i,a,l,u,f,d,h,p=1,y=10,v=e,g=v.d,b=v.constructor,w=b.precision;if(v.s<1)throw Error(li+(v.s?"NaN":"-Infinity"));if(v.eq(Ir))return new b(0);if(t==null?(Bt=!1,d=w):d=t,v.eq(10))return t==null&&(Bt=!0),Wx(b,d);if(d+=y,b.precision=d,n=Gi(g),r=n.charAt(0),a=pn(v),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=Gi(v.d),r=n.charAt(0),p++;a=pn(v),r>1?(v=new b("0."+n),a++):v=new b(r+"."+n.slice(1))}else return f=Wx(b,d+2,w).times(a+""),v=lh(new b(r+"."+n.slice(1)),d-y).plus(f),b.precision=w,t==null?(Bt=!0,Tt(v,w)):v;for(u=l=v=Ya(v.minus(Ir),v.plus(Ir),d),h=Tt(v.times(v),d),i=3;;){if(l=Tt(l.times(h),d),f=u.plus(Ya(l,new b(i),d)),Gi(f.d).slice(0,d)===Gi(u.d).slice(0,d))return u=u.times(2),a!==0&&(u=u.plus(Wx(b,d+2,w).times(a+""))),u=Ya(u,new b(p),d),b.precision=w,t==null?(Bt=!0,Tt(u,w)):u;u=f,i+=2}}function z3(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Zc(n/It),e.d=[],r=(n+1)%It,n<0&&(r+=It),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=It;r<i;)e.d.push(+t.slice(r,r+=It));t=t.slice(r),r=It-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Bt&&(e.e>bv||e.e<-bv))throw Error(U_+n)}else e.s=0,e.e=0,e.d=[0];return e}function Tt(e,t,n){var r,i,a,l,u,f,d,h,p=e.d;for(l=1,a=p[0];a>=10;a/=10)l++;if(r=t-l,r<0)r+=It,i=t,d=p[h=0];else{if(h=Math.ceil((r+1)/It),a=p.length,h>=a)return e;for(d=a=p[h],l=1;a>=10;a/=10)l++;r%=It,i=r-It+l}if(n!==void 0&&(a=al(10,l-i-1),u=d/a%10|0,f=t<0||p[h+1]!==void 0||d%a,f=n<4?(u||f)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||f||n==6&&(r>0?i>0?d/al(10,l-i):0:p[h-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(a=pn(e),p.length=1,t=t-a-1,p[0]=al(10,(It-t%It)%It),e.e=Zc(-t/It)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=h,a=1,h--):(p.length=h+1,a=al(10,It-r),p[h]=i>0?(d/al(10,l-i)%al(10,i)|0)*a:0),f)for(;;)if(h==0){(p[0]+=a)==kn&&(p[0]=1,++e.e);break}else{if(p[h]+=a,p[h]!=kn)break;p[h--]=0,a=1}for(r=p.length;p[--r]===0;)p.pop();if(Bt&&(e.e>bv||e.e<-bv))throw Error(U_+pn(e));return e}function B6(e,t){var n,r,i,a,l,u,f,d,h,p,y=e.constructor,v=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),Bt?Tt(t,v):t;if(f=e.d,p=t.d,r=t.e,d=e.e,f=f.slice(),l=d-r,l){for(h=l<0,h?(n=f,l=-l,u=p.length):(n=p,r=d,u=f.length),i=Math.max(Math.ceil(v/It),u)+2,l>i&&(l=i,n.length=1),n.reverse(),i=l;i--;)n.push(0);n.reverse()}else{for(i=f.length,u=p.length,h=i<u,h&&(u=i),i=0;i<u;i++)if(f[i]!=p[i]){h=f[i]<p[i];break}l=0}for(h&&(n=f,f=p,p=n,t.s=-t.s),u=f.length,i=p.length-u;i>0;--i)f[u++]=0;for(i=p.length;i>l;){if(f[--i]<p[i]){for(a=i;a&&f[--a]===0;)f[a]=kn-1;--f[a],f[i]+=kn}f[i]-=p[i]}for(;f[--u]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,Bt?Tt(t,v):t):new y(0)}function ql(e,t,n){var r,i=pn(e),a=Gi(e.d),l=a.length;return t?(n&&(r=n-l)>0?a=a.charAt(0)+"."+a.slice(1)+Wo(r):l>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Wo(-i-1)+a,n&&(r=n-l)>0&&(a+=Wo(r))):i>=l?(a+=Wo(i+1-l),n&&(r=n-i-1)>0&&(a=a+"."+Wo(r))):((r=i+1)<l&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-l)>0&&(i+1===l&&(a+="."),a+=Wo(r))),e.s<0?"-"+a:a}function L3(e,t){if(e.length>t)return e.length=t,!0}function $6(e){var t,n,r;function i(a){var l=this;if(!(l instanceof i))return new i(a);if(l.constructor=i,a instanceof i){l.s=a.s,l.e=a.e,l.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Al+a);if(a>0)l.s=1;else if(a<0)a=-a,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(a===~~a&&a<1e7){l.e=0,l.d=[a];return}return z3(l,a.toString())}else if(typeof a!="string")throw Error(Al+a);if(a.charCodeAt(0)===45?(a=a.slice(1),l.s=-1):l.s=1,sse.test(a))z3(l,a);else throw Error(Al+a)}if(i.prototype=Pe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=$6,i.config=i.set=lse,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function lse(e){if(!e||typeof e!="object")throw Error(li+"Object expected");var t,n,r,i=["precision",1,Qc,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Zc(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Al+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Al+n+": "+r);return this}var q_=$6(ose);Ir=new q_(1);const ct=q_;function U6(e){var t;return e===0?t=1:t=Math.floor(new ct(e).abs().log(10).toNumber())+1,t}function q6(e,t,n){for(var r=new ct(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var H6=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},H_=(e,t,n)=>{if(e.lte(0))return new ct(0);var r=U6(e.toNumber()),i=new ct(10).pow(r),a=e.div(i),l=r!==1?.05:.1,u=new ct(Math.ceil(a.div(l).toNumber())).add(n).mul(l),f=u.mul(i);return t?new ct(f.toNumber()):new ct(Math.ceil(f.toNumber()))},V6=(e,t,n)=>{var r;if(e.lte(0))return new ct(0);var i=[1,2,2.5,5],a=e.toNumber(),l=Math.floor(new ct(a).abs().log(10).toNumber()),u=new ct(10).pow(l),f=e.div(u).toNumber(),d=i.findIndex(v=>v>=f-1e-10);if(d===-1&&(u=u.mul(10),d=0),d+=n,d>=i.length){var h=Math.floor(d/i.length);d%=i.length,u=u.mul(new ct(10).pow(h))}var p=(r=i[d])!==null&&r!==void 0?r:1,y=new ct(p).mul(u);return t?y:new ct(Math.ceil(y.toNumber()))},use=(e,t,n)=>{var r=new ct(1),i=new ct(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new ct(10).pow(U6(e)-1),i=new ct(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new ct(Math.floor(e)))}else e===0?i=new ct(Math.floor((t-1)/2)):n||(i=new ct(Math.floor(e)));for(var l=Math.floor((t-1)/2),u=[],f=0;f<t;f++)u.push(i.add(new ct(f-l).mul(r)).toNumber());return u},F6=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:H_;if(!Number.isFinite((n-t)/(r-1)))return{step:new ct(0),tickMin:new ct(0),tickMax:new ct(0)};var u=l(new ct(n).sub(t).div(r-1),i,a),f;t<=0&&n>=0?f=new ct(0):(f=new ct(t).add(n).div(2),f=f.sub(new ct(f).mod(u)));var d=Math.ceil(f.sub(t).div(u).toNumber()),h=Math.ceil(new ct(n).sub(f).div(u).toNumber()),p=d+h+1;return p>r?F6(t,n,r,i,a+1,l):(p<r&&(h=n>0?h+(r-p):h,d=n>0?d:d+(r-p)),{step:u,tickMin:f.sub(new ct(d).mul(u)),tickMax:f.add(new ct(h).mul(u))})},B3=function(t){var[n,r]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",u=Math.max(i,2),[f,d]=H6([n,r]);if(f===-1/0||d===1/0){var h=d===1/0?[f,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),d];return n>r?h.reverse():h}if(f===d)return use(f,i,a);var p=l==="snap125"?V6:H_,{step:y,tickMin:v,tickMax:g}=F6(f,d,u,a,0,p),b=q6(v,g.add(new ct(.1).mul(y)),y);return n>r?b.reverse():b},$3=function(t,n){var[r,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[u,f]=H6([r,i]);if(u===-1/0||f===1/0)return[r,i];if(u===f)return[u];var d=l==="snap125"?V6:H_,h=Math.max(n,2),p=d(new ct(f).sub(u).div(h-1),a,0),y=[...q6(new ct(u),new ct(f),p),f];return a===!1&&(y=y.map(v=>Math.round(v))),r>i?y.reverse():y},K6=e=>e.rootProps.maxBarSize,cse=e=>e.rootProps.barGap,Y6=e=>e.rootProps.barCategoryGap,fse=e=>e.rootProps.barSize,Pg=e=>e.rootProps.stackOffset,G6=e=>e.rootProps.reverseStackOrder,V_=e=>e.options.chartName,F_=e=>e.rootProps.syncId,Q6=e=>e.rootProps.syncMethod,K_=e=>e.options.eventEmitter,dse=e=>e.rootProps.baseValue,En={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Ws={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Bi={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},Ng=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Rg(e,t,n){if(n!=="auto")return n;if(e!=null)return Ni(e,t)?"category":"number"}function U3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U3(Object(n),!0).forEach(function(r){hse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hse(e,t,n){return(t=pse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pse(e){var t=mse(e,"string");return typeof t=="symbol"?t:t+""}function mse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var q3={allowDataOverflow:Ws.allowDataOverflow,allowDecimals:Ws.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Ws.angleAxisId,includeHidden:!1,name:void 0,reversed:Ws.reversed,scale:Ws.scale,tick:Ws.tick,tickCount:void 0,ticks:void 0,type:Ws.type,unit:void 0,niceTicks:"auto"},H3={allowDataOverflow:Bi.allowDataOverflow,allowDecimals:Bi.allowDecimals,allowDuplicatedCategory:Bi.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Bi.radiusAxisId,includeHidden:Bi.includeHidden,name:void 0,reversed:Bi.reversed,scale:Bi.scale,tick:Bi.tick,tickCount:Bi.tickCount,ticks:void 0,type:Bi.type,unit:void 0,niceTicks:"auto"},yse=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},Y_=le([yse,p6],(e,t)=>{var n;if(e!=null)return e;var r=(n=Rg(t,"angleAxis",q3.type))!==null&&n!==void 0?n:"category";return xv(xv({},q3),{},{type:r})}),vse=(e,t)=>e.polarAxis.radiusAxis[t],G_=le([vse,p6],(e,t)=>{var n;if(e!=null)return e;var r=(n=Rg(t,"radiusAxis",H3.type))!==null&&n!==void 0?n:"category";return xv(xv({},H3),{},{type:r})}),Dg=e=>e.polarOptions,Q_=le([so,lo,Pn],Voe),Z6=le([Dg,Q_],(e,t)=>{if(e!=null)return ki(e.innerRadius,t,0)}),X6=le([Dg,Q_],(e,t)=>{if(e!=null)return ki(e.outerRadius,t,t*.8)}),gse=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},W6=le([Dg],gse);le([Y_,W6],Ng);var J6=le([Q_,Z6,X6],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});le([G_,J6],Ng);var e8=le([vt,Dg,Z6,X6,so,lo],(e,t,n,r,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:l,cy:u,startAngle:f,endAngle:d}=t;return{cx:ki(l,i,i/2),cy:ki(u,a,a/2),innerRadius:n,outerRadius:r,startAngle:f,endAngle:d,clockWise:!1}}}),Rn=(e,t)=>t,jg=(e,t,n)=>n;function Ig(e){return e==null?void 0:e.id}function t8(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=n,l=new Map;return e.forEach(u=>{var f,d=(f=u.data)!==null&&f!==void 0?f:r;if(!(d==null||d.length===0)){var h=Ig(u);d.forEach((p,y)=>{var v=a==null||i?y:String(en(p,a,null)),g=en(p,u.dataKey,0),b;l.has(v)?b=l.get(v):b={},Object.assign(b,{[h]:g}),l.set(v,b)})}}),Array.from(l.values())}function zg(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Lg=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Bg(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function bse(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var Dn=e=>{var t=vt(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Xc=e=>e.tooltip.settings.axisId;function Z_(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:(function(a){function l(){return a.apply(this,arguments)}return l.toString=function(){return a.toString()},l})(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(a){var l=i[0],u=i[1];return l<=u?a>=l&&a<=u:a>=u&&a<=l},bandwidth:n?()=>n.call(e):void 0,ticks:t?a=>t.call(e,a):void 0,map:(a,l)=>{var u=e(a);if(u!=null){if(e.bandwidth&&l!==null&&l!==void 0&&l.position){var f=e.bandwidth();switch(l.position){case"middle":u+=f/2;break;case"end":u+=f;break}}return u}}}}}var xse=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Wi(t)){for(var n,r,i=0;i<t.length;i++){var a=t[i];et(a)&&((n===void 0||a<n)&&(n=a),(r===void 0||a>r)&&(r=a))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t}default:return t}};function ys(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wse(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function X_(e){let t,n,r;e.length!==2?(t=ys,n=(u,f)=>ys(e(u),f),r=(u,f)=>e(u)-f):(t=e===ys||e===wse?e:Sse,n=e,r=e);function i(u,f,d=0,h=u.length){if(d<h){if(t(f,f)!==0)return h;do{const p=d+h>>>1;n(u[p],f)<0?d=p+1:h=p}while(d<h)}return d}function a(u,f,d=0,h=u.length){if(d<h){if(t(f,f)!==0)return h;do{const p=d+h>>>1;n(u[p],f)<=0?d=p+1:h=p}while(d<h)}return d}function l(u,f,d=0,h=u.length){const p=i(u,f,d,h-1);return p>d&&r(u[p-1],f)>-r(u[p],f)?p-1:p}return{left:i,center:l,right:a}}function Sse(){return 0}function n8(e){return e===null?NaN:+e}function*_se(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Ese=X_(ys),Vh=Ese.right;X_(n8).center;class V3 extends Map{constructor(t,n=Mse){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(F3(this,t))}has(t){return super.has(F3(this,t))}set(t,n){return super.set(Ase(this,t),n)}delete(t){return super.delete(Ose(this,t))}}function F3({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Ase({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Ose({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Mse(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Cse(e=ys){if(e===ys)return r8;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function r8(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const kse=Math.sqrt(50),Tse=Math.sqrt(10),Pse=Math.sqrt(2);function wv(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),l=a>=kse?10:a>=Tse?5:a>=Pse?2:1;let u,f,d;return i<0?(d=Math.pow(10,-i)/l,u=Math.round(e*d),f=Math.round(t*d),u/d<e&&++u,f/d>t&&--f,d=-d):(d=Math.pow(10,i)*l,u=Math.round(e/d),f=Math.round(t/d),u*d<e&&++u,f*d>t&&--f),f<u&&.5<=n&&n<2?wv(e,t,n*2):[u,f,d]}function aS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,l]=r?wv(t,e,n):wv(e,t,n);if(!(a>=i))return[];const u=a-i+1,f=new Array(u);if(r)if(l<0)for(let d=0;d<u;++d)f[d]=(a-d)/-l;else for(let d=0;d<u;++d)f[d]=(a-d)*l;else if(l<0)for(let d=0;d<u;++d)f[d]=(i+d)/-l;else for(let d=0;d<u;++d)f[d]=(i+d)*l;return f}function oS(e,t,n){return t=+t,e=+e,n=+n,wv(e,t,n)[2]}function sS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?oS(t,e,n):oS(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function K3(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function Y3(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function i8(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?r8:Cse(i);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,h=Math.log(f),p=.5*Math.exp(2*h/3),y=.5*Math.sqrt(h*p*(f-p)/f)*(d-f/2<0?-1:1),v=Math.max(n,Math.floor(t-d*p/f+y)),g=Math.min(r,Math.floor(t+(f-d)*p/f+y));i8(e,t,v,g,i)}const a=e[t];let l=n,u=r;for(fd(e,n,t),i(e[r],a)>0&&fd(e,n,r);l<u;){for(fd(e,l,u),++l,--u;i(e[l],a)<0;)++l;for(;i(e[u],a)>0;)--u}i(e[n],a)===0?fd(e,n,u):(++u,fd(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function fd(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Nse(e,t,n){if(e=Float64Array.from(_se(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Y3(e);if(t>=1)return K3(e);var r,i=(r-1)*t,a=Math.floor(i),l=K3(i8(e,a).subarray(0,a+1)),u=Y3(e.subarray(a+1));return l+(u-l)*(i-a)}}function Rse(e,t,n=n8){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),l=+n(e[a],a,e),u=+n(e[a+1],a+1,e);return l+(u-l)*(i-a)}}function Dse(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function di(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function co(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const lS=Symbol("implicit");function W_(){var e=new V3,t=[],n=[],r=lS;function i(a){let l=e.get(a);if(l===void 0){if(r!==lS)return r;e.set(a,l=t.push(a)-1)}return n[l%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new V3;for(const l of a)e.has(l)||e.set(l,t.push(l)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return W_(t,n).unknown(r)},di.apply(i,arguments),i}function J_(){var e=W_().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,l,u=!1,f=0,d=0,h=.5;delete e.unknown;function p(){var y=t().length,v=i<r,g=v?i:r,b=v?r:i;a=(b-g)/Math.max(1,y-f+d*2),u&&(a=Math.floor(a)),g+=(b-g-a*(y-f))*h,l=a*(1-f),u&&(g=Math.round(g),l=Math.round(l));var w=Dse(y).map(function(S){return g+a*S});return n(v?w.reverse():w)}return e.domain=function(y){return arguments.length?(t(y),p()):t()},e.range=function(y){return arguments.length?([r,i]=y,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(y){return[r,i]=y,r=+r,i=+i,u=!0,p()},e.bandwidth=function(){return l},e.step=function(){return a},e.round=function(y){return arguments.length?(u=!!y,p()):u},e.padding=function(y){return arguments.length?(f=Math.min(1,d=+y),p()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),p()):f},e.paddingOuter=function(y){return arguments.length?(d=+y,p()):d},e.align=function(y){return arguments.length?(h=Math.max(0,Math.min(1,y)),p()):h},e.copy=function(){return J_(t(),[r,i]).round(u).paddingInner(f).paddingOuter(d).align(h)},di.apply(p(),arguments)}function a8(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return a8(t())},e}function jse(){return a8(J_.apply(null,arguments).paddingInner(1))}function Ise(e){return function(){return e}}function Sv(e){return+e}var G3=[0,1];function ur(e){return e}function uS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ise(isNaN(t)?NaN:.5)}function zse(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Lse(e,t,n){var r=e[0],i=e[1],a=t[0],l=t[1];return i<r?(r=uS(i,r),a=n(l,a)):(r=uS(r,i),a=n(a,l)),function(u){return a(r(u))}}function Bse(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)i[l]=uS(e[l],e[l+1]),a[l]=n(t[l],t[l+1]);return function(u){var f=Vh(e,u,1,r)-1;return a[f](i[f](u))}}function Fh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function $g(){var e=G3,t=G3,n=Ka,r,i,a,l=ur,u,f,d;function h(){var y=Math.min(e.length,t.length);return l!==ur&&(l=zse(e[0],e[y-1])),u=y>2?Bse:Lse,f=d=null,p}function p(y){return y==null||isNaN(y=+y)?a:(f||(f=u(e.map(r),t,n)))(r(l(y)))}return p.invert=function(y){return l(i((d||(d=u(t,e.map(r),wi)))(y)))},p.domain=function(y){return arguments.length?(e=Array.from(y,Sv),h()):e.slice()},p.range=function(y){return arguments.length?(t=Array.from(y),h()):t.slice()},p.rangeRound=function(y){return t=Array.from(y),n=l_,h()},p.clamp=function(y){return arguments.length?(l=y?!0:ur,h()):l!==ur},p.interpolate=function(y){return arguments.length?(n=y,h()):n},p.unknown=function(y){return arguments.length?(a=y,p):a},function(y,v){return r=y,i=v,h()}}function eE(){return $g()(ur,ur)}function $se(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _v(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Bc(e){return e=_v(Math.abs(e)),e?e[1]:NaN}function Use(e,t){return function(n,r){for(var i=n.length,a=[],l=0,u=e[0],f=0;i>0&&u>0&&(f+u+1>r&&(u=Math.max(1,r-f)),a.push(n.substring(i-=u,i+u)),!((f+=u+1)>r));)u=e[l=(l+1)%e.length];return a.reverse().join(t)}}function qse(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Hse=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uh(e){if(!(t=Hse.exec(e)))throw new Error("invalid format: "+e);var t;return new tE({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}uh.prototype=tE.prototype;function tE(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}tE.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Vse(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Ev;function Fse(e,t){var n=_v(e,t);if(!n)return Ev=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Ev=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,l=r.length;return a===l?r:a>l?r+new Array(a-l+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+_v(e,Math.max(0,t+a-1))[0]}function Q3(e,t){var n=_v(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Z3={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$se,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Q3(e*100,t),r:Q3,s:Fse,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function X3(e){return e}var W3=Array.prototype.map,J3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Kse(e){var t=e.grouping===void 0||e.thousands===void 0?X3:Use(W3.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?X3:qse(W3.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(p,y){p=uh(p);var v=p.fill,g=p.align,b=p.sign,w=p.symbol,S=p.zero,M=p.width,A=p.comma,O=p.precision,k=p.trim,C=p.type;C==="n"?(A=!0,C="g"):Z3[C]||(O===void 0&&(O=12),k=!0,C="g"),(S||v==="0"&&g==="=")&&(S=!0,v="0",g="=");var T=(y&&y.prefix!==void 0?y.prefix:"")+(w==="$"?n:w==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),P=(w==="$"?r:/[%p]/.test(C)?l:"")+(y&&y.suffix!==void 0?y.suffix:""),D=Z3[C],z=/[defgprs%]/.test(C);O=O===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function R(N){var B=T,I=P,q,L,V;if(C==="c")I=D(N)+I,N="";else{N=+N;var F=N<0||1/N<0;if(N=isNaN(N)?f:D(Math.abs(N),O),k&&(N=Vse(N)),F&&+N==0&&b!=="+"&&(F=!1),B=(F?b==="("?b:u:b==="-"||b==="("?"":b)+B,I=(C==="s"&&!isNaN(N)&&Ev!==void 0?J3[8+Ev/3]:"")+I+(F&&b==="("?")":""),z){for(q=-1,L=N.length;++q<L;)if(V=N.charCodeAt(q),48>V||V>57){I=(V===46?i+N.slice(q+1):N.slice(q))+I,N=N.slice(0,q);break}}}A&&!S&&(N=t(N,1/0));var H=B.length+N.length+I.length,Y=H<M?new Array(M-H+1).join(v):"";switch(A&&S&&(N=t(Y+N,Y.length?M-I.length:1/0),Y=""),g){case"<":N=B+N+I+Y;break;case"=":N=B+Y+N+I;break;case"^":N=Y.slice(0,H=Y.length>>1)+B+N+I+Y.slice(H);break;default:N=Y+B+N+I;break}return a(N)}return R.toString=function(){return p+""},R}function h(p,y){var v=Math.max(-8,Math.min(8,Math.floor(Bc(y)/3)))*3,g=Math.pow(10,-v),b=d((p=uh(p),p.type="f",p),{suffix:J3[8+v/3]});return function(w){return b(g*w)}}return{format:d,formatPrefix:h}}var ty,nE,o8;Yse({thousands:",",grouping:[3],currency:["$",""]});function Yse(e){return ty=Kse(e),nE=ty.format,o8=ty.formatPrefix,ty}function Gse(e){return Math.max(0,-Bc(Math.abs(e)))}function Qse(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Bc(t)/3)))*3-Bc(Math.abs(e)))}function Zse(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Bc(t)-Bc(e))+1}function s8(e,t,n,r){var i=sS(e,t,n),a;switch(r=uh(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Qse(i,l))&&(r.precision=a),o8(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=Zse(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Gse(i))&&(r.precision=a-(r.type==="%")*2);break}}return nE(r)}function Os(e){var t=e.domain;return e.ticks=function(n){var r=t();return aS(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return s8(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,l=r[i],u=r[a],f,d,h=10;for(u<l&&(d=l,l=u,u=d,d=i,i=a,a=d);h-- >0;){if(d=oS(l,u,n),d===f)return r[i]=l,r[a]=u,t(r);if(d>0)l=Math.floor(l/d)*d,u=Math.ceil(u/d)*d;else if(d<0)l=Math.ceil(l*d)/d,u=Math.floor(u*d)/d;else break;f=d}return e},e}function l8(){var e=eE();return e.copy=function(){return Fh(e,l8())},di.apply(e,arguments),Os(e)}function u8(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Sv),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return u8(e).unknown(t)},e=arguments.length?Array.from(e,Sv):[0,1],Os(n)}function c8(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],l;return a<i&&(l=n,n=r,r=l,l=i,i=a,a=l),e[n]=t.floor(i),e[r]=t.ceil(a),e}function eR(e){return Math.log(e)}function tR(e){return Math.exp(e)}function Xse(e){return-Math.log(-e)}function Wse(e){return-Math.exp(-e)}function Jse(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ele(e){return e===10?Jse:e===Math.E?Math.exp:t=>Math.pow(e,t)}function tle(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function nR(e){return(t,n)=>-e(-t,n)}function rE(e){const t=e(eR,tR),n=t.domain;let r=10,i,a;function l(){return i=tle(r),a=ele(r),n()[0]<0?(i=nR(i),a=nR(a),e(Xse,Wse)):e(eR,tR),t}return t.base=function(u){return arguments.length?(r=+u,l()):r},t.domain=function(u){return arguments.length?(n(u),l()):n()},t.ticks=u=>{const f=n();let d=f[0],h=f[f.length-1];const p=h<d;p&&([d,h]=[h,d]);let y=i(d),v=i(h),g,b;const w=u==null?10:+u;let S=[];if(!(r%1)&&v-y<w){if(y=Math.floor(y),v=Math.ceil(v),d>0){for(;y<=v;++y)for(g=1;g<r;++g)if(b=y<0?g/a(-y):g*a(y),!(b<d)){if(b>h)break;S.push(b)}}else for(;y<=v;++y)for(g=r-1;g>=1;--g)if(b=y>0?g/a(-y):g*a(y),!(b<d)){if(b>h)break;S.push(b)}S.length*2<w&&(S=aS(d,h,w))}else S=aS(y,v,Math.min(v-y,w)).map(a);return p?S.reverse():S},t.tickFormat=(u,f)=>{if(u==null&&(u=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=uh(f)).precision==null&&(f.trim=!0),f=nE(f)),u===1/0)return f;const d=Math.max(1,r*u/t.ticks().length);return h=>{let p=h/a(Math.round(i(h)));return p*r<r-.5&&(p*=r),p<=d?f(h):""}},t.nice=()=>n(c8(n(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function f8(){const e=rE($g()).domain([1,10]);return e.copy=()=>Fh(e,f8()).base(e.base()),di.apply(e,arguments),e}function rR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function iR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function iE(e){var t=1,n=e(rR(t),iR(t));return n.constant=function(r){return arguments.length?e(rR(t=+r),iR(t)):t},Os(n)}function d8(){var e=iE($g());return e.copy=function(){return Fh(e,d8()).constant(e.constant())},di.apply(e,arguments)}function aR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function nle(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function rle(e){return e<0?-e*e:e*e}function aE(e){var t=e(ur,ur),n=1;function r(){return n===1?e(ur,ur):n===.5?e(nle,rle):e(aR(n),aR(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Os(t)}function oE(){var e=aE($g());return e.copy=function(){return Fh(e,oE()).exponent(e.exponent())},di.apply(e,arguments),e}function ile(){return oE.apply(null,arguments).exponent(.5)}function oR(e){return Math.sign(e)*e*e}function ale(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function h8(){var e=eE(),t=[0,1],n=!1,r;function i(a){var l=ale(e(a));return isNaN(l)?r:n?Math.round(l):l}return i.invert=function(a){return e.invert(oR(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Sv)).map(oR)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return h8(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},di.apply(i,arguments),Os(i)}function p8(){var e=[],t=[],n=[],r;function i(){var l=0,u=Math.max(1,t.length);for(n=new Array(u-1);++l<u;)n[l-1]=Rse(e,l/u);return a}function a(l){return l==null||isNaN(l=+l)?r:t[Vh(n,l)]}return a.invertExtent=function(l){var u=t.indexOf(l);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},a.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let u of l)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(ys),i()},a.range=function(l){return arguments.length?(t=Array.from(l),i()):t.slice()},a.unknown=function(l){return arguments.length?(r=l,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return p8().domain(e).range(t).unknown(r)},di.apply(a,arguments)}function m8(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function l(f){return f!=null&&f<=f?i[Vh(r,f,0,n)]:a}function u(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return l}return l.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,u()):[e,t]},l.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,u()):i.slice()},l.invertExtent=function(f){var d=i.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},l.unknown=function(f){return arguments.length&&(a=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return m8().domain([e,t]).range(i).unknown(a)},di.apply(Os(l),arguments)}function y8(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Vh(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var l=t.indexOf(a);return[e[l-1],e[l]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return y8().domain(e).range(t).unknown(n)},di.apply(i,arguments)}const Jx=new Date,ew=new Date;function An(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const l=i(a),u=i.ceil(a);return a-l<u-a?l:u},i.offset=(a,l)=>(t(a=new Date(+a),l==null?1:Math.floor(l)),a),i.range=(a,l,u)=>{const f=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<l)||!(u>0))return f;let d;do f.push(d=new Date(+a)),t(a,u),e(a);while(d<a&&a<l);return f},i.filter=a=>An(l=>{if(l>=l)for(;e(l),!a(l);)l.setTime(l-1)},(l,u)=>{if(l>=l)if(u<0)for(;++u<=0;)for(;t(l,-1),!a(l););else for(;--u>=0;)for(;t(l,1),!a(l););}),n&&(i.count=(a,l)=>(Jx.setTime(+a),ew.setTime(+l),e(Jx),e(ew),Math.floor(n(Jx,ew))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?l=>r(l)%a===0:l=>i.count(0,l)%a===0):i)),i}const Av=An(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Av.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?An(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Av);Av.range;const Va=1e3,oi=Va*60,Fa=oi*60,to=Fa*24,sE=to*7,sR=to*30,tw=to*365,cl=An(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Va)},(e,t)=>(t-e)/Va,e=>e.getUTCSeconds());cl.range;const lE=An(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Va)},(e,t)=>{e.setTime(+e+t*oi)},(e,t)=>(t-e)/oi,e=>e.getMinutes());lE.range;const uE=An(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*oi)},(e,t)=>(t-e)/oi,e=>e.getUTCMinutes());uE.range;const cE=An(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Va-e.getMinutes()*oi)},(e,t)=>{e.setTime(+e+t*Fa)},(e,t)=>(t-e)/Fa,e=>e.getHours());cE.range;const fE=An(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Fa)},(e,t)=>(t-e)/Fa,e=>e.getUTCHours());fE.range;const Kh=An(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*oi)/to,e=>e.getDate()-1);Kh.range;const Ug=An(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/to,e=>e.getUTCDate()-1);Ug.range;const v8=An(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/to,e=>Math.floor(e/to));v8.range;function Kl(e){return An(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*oi)/sE)}const qg=Kl(0),Ov=Kl(1),ole=Kl(2),sle=Kl(3),$c=Kl(4),lle=Kl(5),ule=Kl(6);qg.range;Ov.range;ole.range;sle.range;$c.range;lle.range;ule.range;function Yl(e){return An(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/sE)}const Hg=Yl(0),Mv=Yl(1),cle=Yl(2),fle=Yl(3),Uc=Yl(4),dle=Yl(5),hle=Yl(6);Hg.range;Mv.range;cle.range;fle.range;Uc.range;dle.range;hle.range;const dE=An(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());dE.range;const hE=An(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());hE.range;const no=An(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());no.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:An(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});no.range;const ro=An(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ro.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:An(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ro.range;function g8(e,t,n,r,i,a){const l=[[cl,1,Va],[cl,5,5*Va],[cl,15,15*Va],[cl,30,30*Va],[a,1,oi],[a,5,5*oi],[a,15,15*oi],[a,30,30*oi],[i,1,Fa],[i,3,3*Fa],[i,6,6*Fa],[i,12,12*Fa],[r,1,to],[r,2,2*to],[n,1,sE],[t,1,sR],[t,3,3*sR],[e,1,tw]];function u(d,h,p){const y=h<d;y&&([d,h]=[h,d]);const v=p&&typeof p.range=="function"?p:f(d,h,p),g=v?v.range(d,+h+1):[];return y?g.reverse():g}function f(d,h,p){const y=Math.abs(h-d)/p,v=X_(([,,w])=>w).right(l,y);if(v===l.length)return e.every(sS(d/tw,h/tw,p));if(v===0)return Av.every(Math.max(sS(d,h,p),1));const[g,b]=l[y/l[v-1][2]<l[v][2]/y?v-1:v];return g.every(b)}return[u,f]}const[ple,mle]=g8(ro,hE,Hg,v8,fE,uE),[yle,vle]=g8(no,dE,qg,Kh,cE,lE);function nw(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rw(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function dd(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function gle(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,l=e.shortDays,u=e.months,f=e.shortMonths,d=hd(i),h=pd(i),p=hd(a),y=pd(a),v=hd(l),g=pd(l),b=hd(u),w=pd(u),S=hd(f),M=pd(f),A={a:V,A:F,b:H,B:Y,c:null,d:hR,e:hR,f:Ule,g:Xle,G:Jle,H:Lle,I:Ble,j:$le,L:b8,m:qle,M:Hle,p:$,q:K,Q:yR,s:vR,S:Vle,u:Fle,U:Kle,V:Yle,w:Gle,W:Qle,x:null,X:null,y:Zle,Y:Wle,Z:eue,"%":mR},O={a:J,A:te,b:ce,B:he,c:null,d:pR,e:pR,f:iue,g:pue,G:yue,H:tue,I:nue,j:rue,L:w8,m:aue,M:oue,p:de,q:ie,Q:yR,s:vR,S:sue,u:lue,U:uue,V:cue,w:fue,W:due,x:null,X:null,y:hue,Y:mue,Z:vue,"%":mR},k={a:z,A:R,b:N,B,c:I,d:fR,e:fR,f:Dle,g:cR,G:uR,H:dR,I:dR,j:Tle,L:Rle,m:kle,M:Ple,p:D,q:Cle,Q:Ile,s:zle,S:Nle,u:_le,U:Ele,V:Ale,w:Sle,W:Ole,x:q,X:L,y:cR,Y:uR,Z:Mle,"%":jle};A.x=C(n,A),A.X=C(r,A),A.c=C(t,A),O.x=C(n,O),O.X=C(r,O),O.c=C(t,O);function C(W,pe){return function(ge){var ee=[],Ae=-1,Se=0,Ve=W.length,Ne,it,Nt;for(ge instanceof Date||(ge=new Date(+ge));++Ae<Ve;)W.charCodeAt(Ae)===37&&(ee.push(W.slice(Se,Ae)),(it=lR[Ne=W.charAt(++Ae)])!=null?Ne=W.charAt(++Ae):it=Ne==="e"?" ":"0",(Nt=pe[Ne])&&(Ne=Nt(ge,it)),ee.push(Ne),Se=Ae+1);return ee.push(W.slice(Se,Ae)),ee.join("")}}function T(W,pe){return function(ge){var ee=dd(1900,void 0,1),Ae=P(ee,W,ge+="",0),Se,Ve;if(Ae!=ge.length)return null;if("Q"in ee)return new Date(ee.Q);if("s"in ee)return new Date(ee.s*1e3+("L"in ee?ee.L:0));if(pe&&!("Z"in ee)&&(ee.Z=0),"p"in ee&&(ee.H=ee.H%12+ee.p*12),ee.m===void 0&&(ee.m="q"in ee?ee.q:0),"V"in ee){if(ee.V<1||ee.V>53)return null;"w"in ee||(ee.w=1),"Z"in ee?(Se=rw(dd(ee.y,0,1)),Ve=Se.getUTCDay(),Se=Ve>4||Ve===0?Mv.ceil(Se):Mv(Se),Se=Ug.offset(Se,(ee.V-1)*7),ee.y=Se.getUTCFullYear(),ee.m=Se.getUTCMonth(),ee.d=Se.getUTCDate()+(ee.w+6)%7):(Se=nw(dd(ee.y,0,1)),Ve=Se.getDay(),Se=Ve>4||Ve===0?Ov.ceil(Se):Ov(Se),Se=Kh.offset(Se,(ee.V-1)*7),ee.y=Se.getFullYear(),ee.m=Se.getMonth(),ee.d=Se.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),Ve="Z"in ee?rw(dd(ee.y,0,1)).getUTCDay():nw(dd(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+ee.W*7-(Ve+5)%7:ee.w+ee.U*7-(Ve+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,rw(ee)):nw(ee)}}function P(W,pe,ge,ee){for(var Ae=0,Se=pe.length,Ve=ge.length,Ne,it;Ae<Se;){if(ee>=Ve)return-1;if(Ne=pe.charCodeAt(Ae++),Ne===37){if(Ne=pe.charAt(Ae++),it=k[Ne in lR?pe.charAt(Ae++):Ne],!it||(ee=it(W,ge,ee))<0)return-1}else if(Ne!=ge.charCodeAt(ee++))return-1}return ee}function D(W,pe,ge){var ee=d.exec(pe.slice(ge));return ee?(W.p=h.get(ee[0].toLowerCase()),ge+ee[0].length):-1}function z(W,pe,ge){var ee=v.exec(pe.slice(ge));return ee?(W.w=g.get(ee[0].toLowerCase()),ge+ee[0].length):-1}function R(W,pe,ge){var ee=p.exec(pe.slice(ge));return ee?(W.w=y.get(ee[0].toLowerCase()),ge+ee[0].length):-1}function N(W,pe,ge){var ee=S.exec(pe.slice(ge));return ee?(W.m=M.get(ee[0].toLowerCase()),ge+ee[0].length):-1}function B(W,pe,ge){var ee=b.exec(pe.slice(ge));return ee?(W.m=w.get(ee[0].toLowerCase()),ge+ee[0].length):-1}function I(W,pe,ge){return P(W,t,pe,ge)}function q(W,pe,ge){return P(W,n,pe,ge)}function L(W,pe,ge){return P(W,r,pe,ge)}function V(W){return l[W.getDay()]}function F(W){return a[W.getDay()]}function H(W){return f[W.getMonth()]}function Y(W){return u[W.getMonth()]}function $(W){return i[+(W.getHours()>=12)]}function K(W){return 1+~~(W.getMonth()/3)}function J(W){return l[W.getUTCDay()]}function te(W){return a[W.getUTCDay()]}function ce(W){return f[W.getUTCMonth()]}function he(W){return u[W.getUTCMonth()]}function de(W){return i[+(W.getUTCHours()>=12)]}function ie(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var pe=C(W+="",A);return pe.toString=function(){return W},pe},parse:function(W){var pe=T(W+="",!1);return pe.toString=function(){return W},pe},utcFormat:function(W){var pe=C(W+="",O);return pe.toString=function(){return W},pe},utcParse:function(W){var pe=T(W+="",!0);return pe.toString=function(){return W},pe}}}var lR={"-":"",_:" ",0:"0"},jn=/^\s*\d+/,ble=/^%/,xle=/[\\^$*+?|[\]().{}]/g;function yt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function wle(e){return e.replace(xle,"\\$&")}function hd(e){return new RegExp("^(?:"+e.map(wle).join("|")+")","i")}function pd(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Sle(e,t,n){var r=jn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _le(e,t,n){var r=jn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ele(e,t,n){var r=jn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ale(e,t,n){var r=jn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ole(e,t,n){var r=jn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function uR(e,t,n){var r=jn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function cR(e,t,n){var r=jn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Mle(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Cle(e,t,n){var r=jn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function kle(e,t,n){var r=jn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function fR(e,t,n){var r=jn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Tle(e,t,n){var r=jn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function dR(e,t,n){var r=jn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ple(e,t,n){var r=jn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Nle(e,t,n){var r=jn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Rle(e,t,n){var r=jn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Dle(e,t,n){var r=jn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function jle(e,t,n){var r=ble.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ile(e,t,n){var r=jn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function zle(e,t,n){var r=jn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function hR(e,t){return yt(e.getDate(),t,2)}function Lle(e,t){return yt(e.getHours(),t,2)}function Ble(e,t){return yt(e.getHours()%12||12,t,2)}function $le(e,t){return yt(1+Kh.count(no(e),e),t,3)}function b8(e,t){return yt(e.getMilliseconds(),t,3)}function Ule(e,t){return b8(e,t)+"000"}function qle(e,t){return yt(e.getMonth()+1,t,2)}function Hle(e,t){return yt(e.getMinutes(),t,2)}function Vle(e,t){return yt(e.getSeconds(),t,2)}function Fle(e){var t=e.getDay();return t===0?7:t}function Kle(e,t){return yt(qg.count(no(e)-1,e),t,2)}function x8(e){var t=e.getDay();return t>=4||t===0?$c(e):$c.ceil(e)}function Yle(e,t){return e=x8(e),yt($c.count(no(e),e)+(no(e).getDay()===4),t,2)}function Gle(e){return e.getDay()}function Qle(e,t){return yt(Ov.count(no(e)-1,e),t,2)}function Zle(e,t){return yt(e.getFullYear()%100,t,2)}function Xle(e,t){return e=x8(e),yt(e.getFullYear()%100,t,2)}function Wle(e,t){return yt(e.getFullYear()%1e4,t,4)}function Jle(e,t){var n=e.getDay();return e=n>=4||n===0?$c(e):$c.ceil(e),yt(e.getFullYear()%1e4,t,4)}function eue(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yt(t/60|0,"0",2)+yt(t%60,"0",2)}function pR(e,t){return yt(e.getUTCDate(),t,2)}function tue(e,t){return yt(e.getUTCHours(),t,2)}function nue(e,t){return yt(e.getUTCHours()%12||12,t,2)}function rue(e,t){return yt(1+Ug.count(ro(e),e),t,3)}function w8(e,t){return yt(e.getUTCMilliseconds(),t,3)}function iue(e,t){return w8(e,t)+"000"}function aue(e,t){return yt(e.getUTCMonth()+1,t,2)}function oue(e,t){return yt(e.getUTCMinutes(),t,2)}function sue(e,t){return yt(e.getUTCSeconds(),t,2)}function lue(e){var t=e.getUTCDay();return t===0?7:t}function uue(e,t){return yt(Hg.count(ro(e)-1,e),t,2)}function S8(e){var t=e.getUTCDay();return t>=4||t===0?Uc(e):Uc.ceil(e)}function cue(e,t){return e=S8(e),yt(Uc.count(ro(e),e)+(ro(e).getUTCDay()===4),t,2)}function fue(e){return e.getUTCDay()}function due(e,t){return yt(Mv.count(ro(e)-1,e),t,2)}function hue(e,t){return yt(e.getUTCFullYear()%100,t,2)}function pue(e,t){return e=S8(e),yt(e.getUTCFullYear()%100,t,2)}function mue(e,t){return yt(e.getUTCFullYear()%1e4,t,4)}function yue(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Uc(e):Uc.ceil(e),yt(e.getUTCFullYear()%1e4,t,4)}function vue(){return"+0000"}function mR(){return"%"}function yR(e){return+e}function vR(e){return Math.floor(+e/1e3)}var qu,_8,E8;gue({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function gue(e){return qu=gle(e),_8=qu.format,qu.parse,E8=qu.utcFormat,qu.utcParse,qu}function bue(e){return new Date(e)}function xue(e){return e instanceof Date?+e:+new Date(+e)}function pE(e,t,n,r,i,a,l,u,f,d){var h=eE(),p=h.invert,y=h.domain,v=d(".%L"),g=d(":%S"),b=d("%I:%M"),w=d("%I %p"),S=d("%a %d"),M=d("%b %d"),A=d("%B"),O=d("%Y");function k(C){return(f(C)<C?v:u(C)<C?g:l(C)<C?b:a(C)<C?w:r(C)<C?i(C)<C?S:M:n(C)<C?A:O)(C)}return h.invert=function(C){return new Date(p(C))},h.domain=function(C){return arguments.length?y(Array.from(C,xue)):y().map(bue)},h.ticks=function(C){var T=y();return e(T[0],T[T.length-1],C??10)},h.tickFormat=function(C,T){return T==null?k:d(T)},h.nice=function(C){var T=y();return(!C||typeof C.range!="function")&&(C=t(T[0],T[T.length-1],C??10)),C?y(c8(T,C)):h},h.copy=function(){return Fh(h,pE(e,t,n,r,i,a,l,u,f,d))},h}function wue(){return di.apply(pE(yle,vle,no,dE,qg,Kh,cE,lE,cl,_8).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Sue(){return di.apply(pE(ple,mle,ro,hE,Hg,Ug,fE,uE,cl,E8).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Vg(){var e=0,t=1,n,r,i,a,l=ur,u=!1,f;function d(p){return p==null||isNaN(p=+p)?f:l(i===0?.5:(p=(a(p)-n)*i,u?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t]=p,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(p){return arguments.length?(u=!!p,d):u},d.interpolator=function(p){return arguments.length?(l=p,d):l};function h(p){return function(y){var v,g;return arguments.length?([v,g]=y,l=p(v,g),d):[l(0),l(1)]}}return d.range=h(Ka),d.rangeRound=h(l_),d.unknown=function(p){return arguments.length?(f=p,d):f},function(p){return a=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),d}}function Ms(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function A8(){var e=Os(Vg()(ur));return e.copy=function(){return Ms(e,A8())},co.apply(e,arguments)}function O8(){var e=rE(Vg()).domain([1,10]);return e.copy=function(){return Ms(e,O8()).base(e.base())},co.apply(e,arguments)}function M8(){var e=iE(Vg());return e.copy=function(){return Ms(e,M8()).constant(e.constant())},co.apply(e,arguments)}function mE(){var e=aE(Vg());return e.copy=function(){return Ms(e,mE()).exponent(e.exponent())},co.apply(e,arguments)}function _ue(){return mE.apply(null,arguments).exponent(.5)}function C8(){var e=[],t=ur;function n(r){if(r!=null&&!isNaN(r=+r))return t((Vh(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ys),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>Nse(e,a/r))},n.copy=function(){return C8(t).domain(e)},co.apply(n,arguments)}function Fg(){var e=0,t=.5,n=1,r=1,i,a,l,u,f,d=ur,h,p=!1,y;function v(b){return isNaN(b=+b)?y:(b=.5+((b=+h(b))-a)*(r*b<r*a?u:f),d(p?Math.max(0,Math.min(1,b)):b))}v.domain=function(b){return arguments.length?([e,t,n]=b,i=h(e=+e),a=h(t=+t),l=h(n=+n),u=i===a?0:.5/(a-i),f=a===l?0:.5/(l-a),r=a<i?-1:1,v):[e,t,n]},v.clamp=function(b){return arguments.length?(p=!!b,v):p},v.interpolator=function(b){return arguments.length?(d=b,v):d};function g(b){return function(w){var S,M,A;return arguments.length?([S,M,A]=w,d=IX(b,[S,M,A]),v):[d(0),d(.5),d(1)]}}return v.range=g(Ka),v.rangeRound=g(l_),v.unknown=function(b){return arguments.length?(y=b,v):y},function(b){return h=b,i=b(e),a=b(t),l=b(n),u=i===a?0:.5/(a-i),f=a===l?0:.5/(l-a),r=a<i?-1:1,v}}function k8(){var e=Os(Fg()(ur));return e.copy=function(){return Ms(e,k8())},co.apply(e,arguments)}function T8(){var e=rE(Fg()).domain([.1,1,10]);return e.copy=function(){return Ms(e,T8()).base(e.base())},co.apply(e,arguments)}function P8(){var e=iE(Fg());return e.copy=function(){return Ms(e,P8()).constant(e.constant())},co.apply(e,arguments)}function yE(){var e=aE(Fg());return e.copy=function(){return Ms(e,yE()).exponent(e.exponent())},co.apply(e,arguments)}function Eue(){return yE.apply(null,arguments).exponent(.5)}const Md=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:J_,scaleDiverging:k8,scaleDivergingLog:T8,scaleDivergingPow:yE,scaleDivergingSqrt:Eue,scaleDivergingSymlog:P8,scaleIdentity:u8,scaleImplicit:lS,scaleLinear:l8,scaleLog:f8,scaleOrdinal:W_,scalePoint:jse,scalePow:oE,scaleQuantile:p8,scaleQuantize:m8,scaleRadial:h8,scaleSequential:A8,scaleSequentialLog:O8,scaleSequentialPow:mE,scaleSequentialQuantile:C8,scaleSequentialSqrt:_ue,scaleSequentialSymlog:M8,scaleSqrt:ile,scaleSymlog:d8,scaleThreshold:y8,scaleTime:wue,scaleUtc:Sue,tickFormat:s8},Symbol.toStringTag,{value:"Module"}));function Aue(e){if(e in Md)return Md[e]();var t="scale".concat(zh(e));if(t in Md)return Md[t]()}function gR(e,t,n){if(typeof e=="function")return e.copy().domain(t).range(n);if(e!=null){var r=Aue(e);if(r!=null)return r.domain(t).range(n),r}}function vE(e,t,n,r){if(!(n==null||r==null))return typeof e.scale=="function"?gR(e.scale,n,r):gR(t,n,r)}function Oue(e){return"scale".concat(zh(e))}function Mue(e){return Oue(e)in Md}var N8=(e,t,n)=>{if(e!=null){var{scale:r,type:i}=e;if(r==="auto")return i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof r=="string")return Mue(r)?r:"point"}};function Cue(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var a=Math.floor((n+r)/2);(i?e[a]<t:e[a]>t)?n=a+1:r=a}return n}function R8(e,t){if(e){var n=t??e.domain(),r=n.map(a=>{var l;return(l=e(a))!==null&&l!==void 0?l:0}),i=e.range();if(!(n.length===0||i.length<2))return a=>{var l,u,f=Cue(r,a);if(f<=0)return n[0];if(f>=n.length)return n[n.length-1];var d=(l=r[f-1])!==null&&l!==void 0?l:0,h=(u=r[f])!==null&&u!==void 0?u:0;return Math.abs(a-d)<=Math.abs(a-h)?n[f-1]:n[f]}}}function kue(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):R8(e,void 0)}function bR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bR(Object(n),!0).forEach(function(r){Tue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tue(e,t,n){return(t=Pue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pue(e){var t=Nue(e,"string");return typeof t=="symbol"?t:t+""}function Nue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cS=[0,"auto"],wn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},D8=(e,t)=>e.cartesianAxis.xAxis[t],fo=(e,t)=>{var n=D8(e,t);return n??wn},Sn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:cS,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:Lh},j8=(e,t)=>e.cartesianAxis.yAxis[t],ho=(e,t)=>{var n=j8(e,t);return n??Sn},Rue={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},gE=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??Rue},cr=(e,t,n)=>{switch(t){case"xAxis":return fo(e,n);case"yAxis":return ho(e,n);case"zAxis":return gE(e,n);case"angleAxis":return Y_(e,n);case"radiusAxis":return G_(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Due=(e,t,n)=>{switch(t){case"xAxis":return fo(e,n);case"yAxis":return ho(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Yh=(e,t,n)=>{switch(t){case"xAxis":return fo(e,n);case"yAxis":return ho(e,n);case"angleAxis":return Y_(e,n);case"radiusAxis":return G_(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},I8=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function z8(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Gh=e=>e.graphicalItems.cartesianItems,jue=le([Rn,jg],z8),L8=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Qh=le([Gh,cr,jue],L8,{memoizeOptions:{resultEqualityCheck:Bg}}),B8=le([Qh],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(zg)),$8=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Iue=le([Qh],$8),U8=e=>e.map(t=>t.data).filter(Boolean).flat(1),zue=le([Qh],U8,{memoizeOptions:{resultEqualityCheck:Bg}}),q8=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},bE=le([zue,$_],q8),H8=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:en(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:en(i,r)}))):e.map(r=>({value:r})),Zh=le([bE,cr,Qh],H8);function lc(e){if(ea(e)||e instanceof Date){var t=Number(e);if(et(t))return t}}function xR(e){if(Array.isArray(e)){var t=[lc(e[0]),lc(e[1])];return Wi(t)?t:void 0}var n=lc(e);if(n!=null)return[n,n]}function io(e){return e.map(lc).filter(Or)}function Lue(e,t){var n=lc(e),r=lc(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var Bue=le([Zh],e=>e==null?void 0:e.map(t=>t.value).sort(Lue));function V8(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function $ue(e,t,n){return!n||typeof t!="number"||Ci(t)?[]:n.length?io(n.flatMap(r=>{var i=en(e,r.dataKey),a,l;if(Array.isArray(i)?[a,l]=i:a=l=i,!(!et(a)||!et(l)))return[t-a,t+l]})):[]}var On=e=>{var t=Dn(e),n=Xc(e);return Yh(e,t,n)},Xh=le([On],e=>e==null?void 0:e.dataKey),Uue=le([B8,$_,On],t8),F8=(e,t,n,r)=>{var i={},a=t.reduce((l,u)=>{if(u.stackId==null)return l;var f=l[u.stackId];return f==null&&(f=[]),f.push(u),l[u.stackId]=f,l},i);return Object.fromEntries(Object.entries(a).map(l=>{var[u,f]=l,d=r?[...f].reverse():f,h=d.map(Ig);return[u,{stackedData:Tie(e,h,n),graphicalItems:d}]}))},kv=le([Uue,B8,Pg,G6],F8),K8=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(r==null&&n!=="zAxis"){var l=Die(e,i,a);if(!(l!=null&&l[0]===0&&l[1]===0))return l}},que=le([cr],e=>e.allowDataOverflow),xE=e=>{var t;if(e==null||!("domain"in e))return cS;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=io(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:cS},Y8=le([cr],xE),G8=le([Y8,que],j6),Hue=le([kv,uo,Rn,G8],K8,{memoizeOptions:{resultEqualityCheck:Lg}}),wE=e=>e.errorBars,Vue=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>V8(n,r)),Tv=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var a=i.flat(),l=Math.min(...a),u=Math.max(...a);return[l,u]}},Q8=(e,t,n,r,i)=>{var a,l;if(n.length>0&&e.forEach(u=>{n.forEach(f=>{var d,h,p=(d=r[f.id])===null||d===void 0?void 0:d.filter(S=>V8(i,S)),y=en(u,(h=t.dataKey)!==null&&h!==void 0?h:f.dataKey),v=$ue(u,y,p);if(v.length>=2){var g=Math.min(...v),b=Math.max(...v);(a==null||g<a)&&(a=g),(l==null||b>l)&&(l=b)}var w=xR(y);w!=null&&(a=a==null?w[0]:Math.min(a,w[0]),l=l==null?w[1]:Math.max(l,w[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(u=>{var f=xR(en(u,t.dataKey));f!=null&&(a=a==null?f[0]:Math.min(a,f[0]),l=l==null?f[1]:Math.max(l,f[1]))}),et(a)&&et(l))return[a,l]},Fue=le([bE,cr,Iue,wE,Rn],Q8,{memoizeOptions:{resultEqualityCheck:Lg}});function Kue(e){var{value:t}=e;if(ea(t)||t instanceof Date)return t}var Yue=(e,t,n)=>{var r=e.map(Kue).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&Bz(r))?N6(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},Z8=e=>e.referenceElements.dots,Wc=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),Gue=le([Z8,Rn,jg],Wc),X8=e=>e.referenceElements.areas,Que=le([X8,Rn,jg],Wc),W8=e=>e.referenceElements.lines,Zue=le([W8,Rn,jg],Wc),J8=(e,t)=>{if(e!=null){var n=io(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Xue=le(Gue,Rn,J8),eL=(e,t)=>{if(e!=null){var n=io(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Wue=le([Que,Rn],eL);function Jue(e){var t;if(e.x!=null)return io([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:io(n)}function ece(e){var t;if(e.y!=null)return io([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:io(n)}var tL=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?Jue(r):ece(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},tce=le([Zue,Rn],tL),nce=le(Xue,tce,Wue,(e,t,n)=>Tv(e,n,t)),nL=(e,t,n,r,i,a,l,u)=>{if(n!=null)return n;var f=l==="vertical"&&u==="xAxis"||l==="horizontal"&&u==="yAxis",d=f?Tv(r,a,i):Tv(a,i);return ase(t,d,e.allowDataOverflow)},rce=le([cr,Y8,G8,Hue,Fue,nce,vt,Rn],nL,{memoizeOptions:{resultEqualityCheck:Lg}}),ice=[0,1],rL=(e,t,n,r,i,a,l)=>{if(!((e==null||n==null||n.length===0)&&l===void 0)){var{dataKey:u,type:f}=e,d=Ni(t,a);if(d&&u==null){var h;return N6(0,(h=n==null?void 0:n.length)!==null&&h!==void 0?h:0)}return f==="category"?Yue(r,e,d):i==="expand"?ice:l}},SE=le([cr,vt,bE,Zh,Pg,Rn,rce],rL),Jc=le([cr,I8,V_],N8),iL=(e,t,n)=>{var{niceTicks:r}=t;if(r!=="none"){var i=xE(t),a=Array.isArray(i)&&(i[0]==="auto"||i[1]==="auto");if((r==="snap125"||r==="adaptive")&&t!=null&&t.tickCount&&Wi(e)){if(a)return B3(e,t.tickCount,t.allowDecimals,r);if(t.type==="number")return $3(e,t.tickCount,t.allowDecimals,r)}if(r==="auto"&&n==="linear"&&t!=null&&t.tickCount){if(a&&Wi(e))return B3(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&Wi(e))return $3(e,t.tickCount,t.allowDecimals,"adaptive")}}},_E=le([SE,Yh,Jc],iL),aL=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&Wi(t)&&Array.isArray(n)&&n.length>0){var i,a,l=t[0],u=(i=n[0])!==null&&i!==void 0?i:0,f=t[1],d=(a=n[n.length-1])!==null&&a!==void 0?a:0;return[Math.min(l,u),Math.max(f,d)]}return t},ace=le([cr,SE,_E,Rn],aL),oce=le(Zh,cr,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(io(e.map(p=>p.value))).sort((p,y)=>p-y),i=r[0],a=r[r.length-1];if(i==null||a==null)return 1/0;var l=a-i;if(l===0)return 1/0;for(var u=0;u<r.length-1;u++){var f=r[u],d=r[u+1];if(!(f==null||d==null)){var h=d-f;n=Math.min(n,h)}}return n/l}}),oL=le(oce,vt,Y6,Pn,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!et(e))return 0;var a=t==="vertical"?r.height:r.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var l=ki(n,e*a),u=e*a/2;return u-l-(u-l)/a*l}return 0}),sce=(e,t,n)=>{var r=fo(e,t);return r==null||typeof r.padding!="string"?0:oL(e,"xAxis",t,n,r.padding)},lce=(e,t,n)=>{var r=ho(e,t);return r==null||typeof r.padding!="string"?0:oL(e,"yAxis",t,n,r.padding)},uce=le(fo,sce,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),cce=le(ho,lce,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),fce=le([Pn,uce,Og,Ag,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:a}=r;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),dce=le([Pn,vt,cce,Og,Ag,(e,t,n)=>n],(e,t,n,r,i,a)=>{var{padding:l}=i;return a?[r.height-l.bottom,l.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Wh=(e,t,n,r)=>{var i;switch(t){case"xAxis":return fce(e,n,r);case"yAxis":return dce(e,n,r);case"zAxis":return(i=gE(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return W6(e);case"radiusAxis":return J6(e,n);default:return}},sL=le([cr,Wh],Ng),hce=le([Jc,ace],xse),EE=le([cr,Jc,hce,sL],vE),lL=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:a}=n,l=Ni(e,r);if(l&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},AE=le([vt,Zh,Yh,Rn],lL),Kg=le([EE],Z_);le([EE],kue);le([EE,Bue],R8);le([Qh,wE,Rn],Vue);function uL(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var Yg=(e,t)=>t,Gg=(e,t,n)=>n,pce=le(_g,Yg,Gg,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(uL)),mce=le(Eg,Yg,Gg,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(uL)),cL=(e,t)=>({width:e.width,height:t.height}),yce=(e,t)=>{var n=typeof t.width=="number"?t.width:Lh;return{width:n,height:e.height}},fL=le(Pn,fo,cL),vce=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},gce=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},bce=le(lo,Pn,pce,Yg,Gg,(e,t,n,r,i)=>{var a={},l;return n.forEach(u=>{var f=cL(t,u);l==null&&(l=vce(t,r,e));var d=r==="top"&&!i||r==="bottom"&&i;a[u.id]=l-Number(d)*f.height,l+=(d?-1:1)*f.height}),a}),xce=le(so,Pn,mce,Yg,Gg,(e,t,n,r,i)=>{var a={},l;return n.forEach(u=>{var f=yce(t,u);l==null&&(l=gce(t,r,e));var d=r==="left"&&!i||r==="right"&&i;a[u.id]=l-Number(d)*f.width,l+=(d?-1:1)*f.width}),a}),wce=(e,t)=>{var n=fo(e,t);if(n!=null)return bce(e,n.orientation,n.mirror)},Sce=le([Pn,fo,wce,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),_ce=(e,t)=>{var n=ho(e,t);if(n!=null)return xce(e,n.orientation,n.mirror)},Ece=le([Pn,ho,_ce,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),dL=le(Pn,ho,(e,t)=>{var n=typeof t.width=="number"?t.width:Lh;return{width:n,height:e.height}}),wR=(e,t,n)=>{switch(t){case"xAxis":return fL(e,n).width;case"yAxis":return dL(e,n).height;default:return}},hL=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:a,dataKey:l}=n,u=Ni(e,r),f=t.map(d=>d.value);if(l&&u&&a==="category"&&i&&Bz(f))return f}},OE=le([vt,Zh,cr,Rn],hL),SR=le([vt,Due,Jc,Kg,OE,AE,Wh,_E,Rn],(e,t,n,r,i,a,l,u,f)=>{if(t!=null){var d=Ni(e,f);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:f,categoricalDomain:a,duplicateDomain:i,isCategorical:d,niceTicks:u,range:l,realScaleType:n,scale:r}}}),Ace=(e,t,n,r,i,a,l,u,f)=>{if(!(t==null||r==null)){var d=Ni(e,f),{type:h,ticks:p,tickCount:y}=t,v=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,g=h==="category"&&r.bandwidth?r.bandwidth()/v:0;g=f==="angleAxis"&&a!=null&&a.length>=2?Ar(a[0]-a[1])*2*g:g;var b=p||i;return b?b.map((w,S)=>{var M=l?l.indexOf(w):w,A=r.map(M);return et(A)?{index:S,coordinate:A+g,value:w,offset:g}:null}).filter(Or):d&&u?u.map((w,S)=>{var M=r.map(w);return et(M)?{coordinate:M+g,value:w,index:S,offset:g}:null}).filter(Or):r.ticks?r.ticks(y).map((w,S)=>{var M=r.map(w);return et(M)?{coordinate:M+g,value:w,index:S,offset:g}:null}).filter(Or):r.domain().map((w,S)=>{var M=r.map(w);return et(M)?{coordinate:M+g,value:l?l[w]:w,index:S,offset:g}:null}).filter(Or)}},pL=le([vt,Yh,Jc,Kg,_E,Wh,OE,AE,Rn],Ace),Oce=(e,t,n,r,i,a,l)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var u=Ni(e,l),{tickCount:f}=t,d=0;return d=l==="angleAxis"&&(r==null?void 0:r.length)>=2?Ar(r[0]-r[1])*2*d:d,u&&a?a.map((h,p)=>{var y=n.map(h);return et(y)?{coordinate:y+d,value:h,index:p,offset:d}:null}).filter(Or):n.ticks?n.ticks(f).map((h,p)=>{var y=n.map(h);return et(y)?{coordinate:y+d,value:h,index:p,offset:d}:null}).filter(Or):n.domain().map((h,p)=>{var y=n.map(h);return et(y)?{coordinate:y+d,value:i?i[h]:h,index:p,offset:d}:null}).filter(Or)}},ra=le([vt,Yh,Kg,Wh,OE,AE,Rn],Oce),ia=le(cr,Kg,(e,t)=>{if(!(e==null||t==null))return Cv(Cv({},e),{},{scale:t})}),Mce=le([cr,Jc,SE,sL],vE),Cce=le([Mce],Z_);le((e,t,n)=>gE(e,n),Cce,(e,t)=>{if(!(e==null||t==null))return Cv(Cv({},e),{},{scale:t})});var kce=le([vt,_g,Eg],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Tce=(e,t,n)=>{var r;return(r=e.renderedTicks[t])===null||r===void 0?void 0:r[n]};le([Tce],e=>{if(!(!e||e.length===0))return t=>{var n,r=1/0,i=e[0];for(var a of e){var l=Math.abs(a.coordinate-t);l<r&&(r=l,i=a)}return(n=i)===null||n===void 0?void 0:n.value}});var mL=e=>e.options.defaultTooltipEventType,yL=e=>e.options.validateTooltipEventTypes;function vL(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function ME(e,t){var n=mL(e),r=yL(e);return vL(t,n,r)}function Pce(e){return $e(t=>ME(t,e))}var gL=(e,t)=>{var n,r=Number(t);if(!(Ci(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},Nce=e=>e.tooltip.settings,ts={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Rce={itemInteraction:{click:ts,hover:ts},axisInteraction:{click:ts,hover:ts},keyboardInteraction:ts,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},bL=Wt({name:"tooltip",initialState:Rce,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:bt()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Lr(e).tooltipItemPayloads.indexOf(n);i>-1&&(e.tooltipItemPayloads[i]=r)},prepare:bt()},removeTooltipEntrySettings:{reducer(e,t){var n=Lr(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:bt()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:Dce,replaceTooltipEntrySettings:jce,removeTooltipEntrySettings:Ice,setTooltipSettingsState:zce,setActiveMouseOverItemIndex:xL,mouseLeaveItem:Lce,mouseLeaveChart:wL,setActiveClickItemIndex:Bce,setMouseOverAxisIndex:SL,setMouseClickAxisIndex:$ce,setSyncInteraction:fS,setKeyboardInteraction:Pv}=bL.actions,Uce=bL.reducer;function _R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ny(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_R(Object(n),!0).forEach(function(r){qce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_R(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qce(e,t,n){return(t=Hce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hce(e){var t=Vce(e,"string");return typeof t=="symbol"?t:t+""}function Vce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fce(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Kce(e){return e.index!=null}var _L=(e,t,n,r)=>{if(t==null)return ts;var i=Fce(e,t,n);if(i==null)return ts;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(Kce(i)){if(a)return ny(ny({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return ny(ny({},ts),{},{coordinate:i.coordinate})};function Yce(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function Gce(e,t){var n=Yce(e),r=t[0],i=t[1];if(n===void 0)return!1;var a=Math.min(r,i),l=Math.max(r,i);return n>=a&&n<=l}function Qce(e,t,n){if(n==null||t==null)return!0;var r=en(e,t);return r==null||!Wi(n)?!0:Gce(r,n)}var CE=(e,t,n,r)=>{var i=e==null?void 0:e.index;if(i==null)return null;var a=Number(i);if(!et(a))return i;var l=0,u=1/0;t.length>0&&(u=t.length-1);var f=Math.max(l,Math.min(a,u)),d=t[f];return d==null||Qce(d,n,r)?String(f):null},EL=(e,t,n,r,i,a,l)=>{if(a!=null){var u=l[0],f=u==null?void 0:u.getPosition(a);if(f!=null)return f;var d=i==null?void 0:i[Number(a)];if(d)switch(n){case"horizontal":return{x:d.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:d.coordinate}}}},AL=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(n==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&r!=null){var a=e.tooltipItemPayloads[0];return a!=null?[a]:[]}return e.tooltipItemPayloads.filter(l=>{var u;return((u=l.settings)===null||u===void 0?void 0:u.graphicalItemId)===i})},OL=e=>e.options.tooltipPayloadSearcher,ef=e=>e.tooltip;function ER(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ER(Object(n),!0).forEach(function(r){Zce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ER(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zce(e,t,n){return(t=Xce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xce(e){var t=Wce(e,"string");return typeof t=="symbol"?t:t+""}function Wce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jce(e){if(typeof e=="string"||typeof e=="number")return e}function efe(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function tfe(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function OR(e){if(typeof e=="string")return e}function nfe(e){if(!(e==null||typeof e!="object")){var t="name"in e?Jce(e.name):void 0,n="unit"in e?efe(e.unit):void 0,r="dataKey"in e?tfe(e.dataKey):void 0,i="payload"in e?e.payload:void 0,a="color"in e?OR(e.color):void 0,l="fill"in e?OR(e.fill):void 0;return{name:t,unit:n,dataKey:r,payload:i,color:a,fill:l}}}function rfe(e,t){return e??t}var ML=(e,t,n,r,i,a,l)=>{if(!(t==null||a==null)){var{chartData:u,computedData:f,dataStartIndex:d,dataEndIndex:h}=n,p=[];return e.reduce((y,v)=>{var g,{dataDefinedOnItem:b,settings:w}=v,S=rfe(b,u),M=Array.isArray(S)?r6(S,d,h):S,A=(g=w==null?void 0:w.dataKey)!==null&&g!==void 0?g:r,O=w==null?void 0:w.nameKey,k;if(r&&Array.isArray(M)&&!Array.isArray(M[0])&&l==="axis"?k=$z(M,r,i):k=a(M,t,f,O),Array.isArray(k))k.forEach(T=>{var P,D,z=nfe(T),R=z==null?void 0:z.name,N=z==null?void 0:z.dataKey,B=z==null?void 0:z.payload,I=AR(AR({},w),{},{name:R,unit:z==null?void 0:z.unit,color:(P=z==null?void 0:z.color)!==null&&P!==void 0?P:w==null?void 0:w.color,fill:(D=z==null?void 0:z.fill)!==null&&D!==void 0?D:w==null?void 0:w.fill});y.push(RN({tooltipEntrySettings:I,dataKey:N,payload:B,value:en(B,N),name:R==null?void 0:String(R)}))});else{var C;y.push(RN({tooltipEntrySettings:w,dataKey:A,payload:k,value:en(k,A),name:(C=en(k,O))!==null&&C!==void 0?C:w==null?void 0:w.name}))}return y},p)}},kE=le([On,I8,V_],N8),ife=le([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),afe=le([Dn,Xc],z8),tf=le([ife,On,afe],L8,{memoizeOptions:{resultEqualityCheck:Bg}}),ofe=le([tf],e=>e.filter(zg)),sfe=le([tf],U8,{memoizeOptions:{resultEqualityCheck:Bg}}),nf=le([sfe,uo],q8),lfe=le([ofe,uo,On],t8),TE=le([nf,On,tf],H8),CL=le([On],xE),ufe=le([On],e=>e.allowDataOverflow),kL=le([CL,ufe],j6),cfe=le([tf],e=>e.filter(zg)),ffe=le([lfe,cfe,Pg,G6],F8),dfe=le([ffe,uo,Dn,kL],K8),hfe=le([tf],$8),pfe=le([nf,On,hfe,wE,Dn],Q8,{memoizeOptions:{resultEqualityCheck:Lg}}),mfe=le([Z8,Dn,Xc],Wc),yfe=le([mfe,Dn],J8),vfe=le([X8,Dn,Xc],Wc),gfe=le([vfe,Dn],eL),bfe=le([W8,Dn,Xc],Wc),xfe=le([bfe,Dn],tL),wfe=le([yfe,xfe,gfe],Tv),Sfe=le([On,CL,kL,dfe,pfe,wfe,vt,Dn],nL),Jh=le([On,vt,nf,TE,Pg,Dn,Sfe],rL),_fe=le([Jh,On,kE],iL),Efe=le([On,Jh,_fe,Dn],aL),TL=e=>{var t=Dn(e),n=Xc(e),r=!1;return Wh(e,t,n,r)},PL=le([On,TL],Ng),Afe=le([On,kE,Efe,PL],vE),NL=le([Afe],Z_),Ofe=le([vt,TE,On,Dn],hL),Mfe=le([vt,TE,On,Dn],lL),Cfe=(e,t,n,r,i,a,l,u)=>{if(t){var{type:f}=t,d=Ni(e,u);if(r){var h=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,p=f==="category"&&r.bandwidth?r.bandwidth()/h:0;return p=u==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?Ar(i[0]-i[1])*2*p:p,d&&l?l.map((y,v)=>{var g=r.map(y);return et(g)?{coordinate:g+p,value:y,index:v,offset:p}:null}).filter(Or):r.domain().map((y,v)=>{var g=r.map(y);return et(g)?{coordinate:g+p,value:a?a[y]:y,index:v,offset:p}:null}).filter(Or)}}},po=le([vt,On,kE,NL,TL,Ofe,Mfe,Dn],Cfe),PE=le([mL,yL,Nce],(e,t,n)=>vL(n.shared,e,t)),RL=e=>e.tooltip.settings.trigger,NE=e=>e.tooltip.settings.defaultIndex,ep=le([ef,PE,RL,NE],_L),Hl=le([ep,nf,Xh,Jh],CE),DL=le([po,Hl],gL),jL=le([ep],e=>{if(e)return e.dataKey}),kfe=le([ep],e=>{if(e)return e.graphicalItemId}),IL=le([ef,PE,RL,NE],AL),Tfe=le([so,lo,vt,Pn,po,NE,IL],EL),Pfe=le([ep,Tfe],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Nfe=le([ep],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),Rfe=le([IL,Hl,uo,Xh,DL,OL,PE],ML),Dfe=le([Rfe],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function MR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MR(Object(n),!0).forEach(function(r){jfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jfe(e,t,n){return(t=Ife(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ife(e){var t=zfe(e,"string");return typeof t=="symbol"?t:t+""}function zfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lfe=()=>$e(On),Bfe=()=>{var e=Lfe(),t=$e(po),n=$e(NL);return Ss(!e||!n?void 0:CR(CR({},e),{},{scale:n}),t)};function kR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kR(Object(n),!0).forEach(function(r){$fe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $fe(e,t,n){return(t=Ufe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ufe(e){var t=qfe(e,"string");return typeof t=="symbol"?t:t+""}function qfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hfe=(e,t,n,r)=>{var i=t.find(a=>a&&a.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.relativeY};if(e==="vertical")return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},Vfe=(e,t,n,r)=>{var i=t.find(d=>d&&d.index===n);if(i){if(e==="centric"){var a=i.coordinate,{radius:l}=r;return Hu(Hu(Hu({},r),Fn(r.cx,r.cy,l,a)),{},{angle:a,radius:l})}var u=i.coordinate,{angle:f}=r;return Hu(Hu(Hu({},r),Fn(r.cx,r.cy,u,f)),{},{angle:f,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function Ffe(e,t){var{relativeX:n,relativeY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var zL=(e,t,n,r,i)=>{var a,l=(a=t==null?void 0:t.length)!==null&&a!==void 0?a:0;if(l<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<l;u++){var f,d,h,p,y,v=u>0?(f=n[u-1])===null||f===void 0?void 0:f.coordinate:(d=n[l-1])===null||d===void 0?void 0:d.coordinate,g=(h=n[u])===null||h===void 0?void 0:h.coordinate,b=u>=l-1?(p=n[0])===null||p===void 0?void 0:p.coordinate:(y=n[u+1])===null||y===void 0?void 0:y.coordinate,w=void 0;if(!(v==null||g==null||b==null))if(Ar(g-v)!==Ar(b-g)){var S=[];if(Ar(b-g)===Ar(i[1]-i[0])){w=b;var M=g+i[1]-i[0];S[0]=Math.min(M,(M+v)/2),S[1]=Math.max(M,(M+v)/2)}else{w=v;var A=b+i[1]-i[0];S[0]=Math.min(g,(A+g)/2),S[1]=Math.max(g,(A+g)/2)}var O=[Math.min(g,(w+g)/2),Math.max(g,(w+g)/2)];if(e>O[0]&&e<=O[1]||e>=S[0]&&e<=S[1]){var k;return(k=n[u])===null||k===void 0?void 0:k.index}}else{var C=Math.min(v,b),T=Math.max(v,b);if(e>(C+g)/2&&e<=(T+g)/2){var P;return(P=n[u])===null||P===void 0?void 0:P.index}}}else if(t)for(var D=0;D<l;D++){var z=t[D];if(z!=null){var R=t[D+1],N=t[D-1];if(D===0&&R!=null&&e<=(z.coordinate+R.coordinate)/2||D===l-1&&N!=null&&e>(z.coordinate+N.coordinate)/2||D>0&&D<l-1&&N!=null&&R!=null&&e>(z.coordinate+N.coordinate)/2&&e<=(z.coordinate+R.coordinate)/2)return z.index}}return-1},LL=()=>$e(V_),RE=(e,t)=>t,BL=(e,t,n)=>n,DE=(e,t,n,r)=>r,Kfe=le(po,e=>Sg(e,t=>t.coordinate)),jE=le([ef,RE,BL,DE],_L),IE=le([jE,nf,Xh,Jh],CE),Yfe=(e,t,n)=>{if(t!=null){var r=ef(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},$L=le([ef,RE,BL,DE],AL),Nv=le([so,lo,vt,Pn,po,DE,$L],EL),Gfe=le([jE,Nv],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),UL=le([po,IE],gL),Qfe=le([$L,IE,uo,Xh,UL,OL,RE],ML),Zfe=le([jE,IE],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),Xfe=(e,t,n,r,i,a,l)=>{if(!(!e||!n||!r||!i)&&Ffe(e,l)){var u=jie(e,t),f=zL(u,a,i,n,r),d=Hfe(t,i,f,e);return{activeIndex:String(f),activeCoordinate:d}}},Wfe=(e,t,n,r,i,a,l)=>{if(!(!e||!r||!i||!a||!n)){var u=Qoe(e,n);if(u){var f=Iie(u,t),d=zL(f,l,a,r,i),h=Vfe(t,a,d,u);return{activeIndex:String(d),activeCoordinate:h}}}},Jfe=(e,t,n,r,i,a,l,u)=>{if(!(!e||!t||!r||!i||!a))return t==="horizontal"||t==="vertical"?Xfe(e,t,r,i,a,l,u):Wfe(e,t,n,r,i,a,l)},ede=le(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),tde=le(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(En)),n=Array.from(new Set(t));return n.sort((r,i)=>r-i)},{memoizeOptions:{resultEqualityCheck:bse}});function TR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function PR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TR(Object(n),!0).forEach(function(r){nde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nde(e,t,n){return(t=rde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rde(e){var t=ide(e,"string");return typeof t=="symbol"?t:t+""}function ide(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ade={},ode={zIndexMap:Object.values(En).reduce((e,t)=>PR(PR({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),ade)},sde=new Set(Object.values(En));function lde(e){return sde.has(e)}var qL=Wt({name:"zIndex",initialState:ode,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:bt()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!lde(n)&&delete e.zIndexMap[n])},prepare:bt()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:i}=t.payload;e.zIndexMap[n]?i?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:i?void 0:r,panoramaElement:i?r:void 0}},prepare:bt()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:bt()}}}),{registerZIndexPortal:ude,unregisterZIndexPortal:cde,registerZIndexPortalElement:fde,unregisterZIndexPortalElement:dde}=qL.actions,hde=qL.reducer;function Kr(e){var{zIndex:t,children:n}=e,r=pae(),i=r&&t!==void 0&&t!==0,a=Nn(),l=Vt();E.useLayoutEffect(()=>i?(l(ude({zIndex:t})),()=>{l(cde({zIndex:t}))}):oo,[l,t,i]);var u=$e(f=>ede(f,t,a));return i?u?Yv.createPortal(n,u):null:n}function dS(){return dS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dS.apply(null,arguments)}function NR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ry(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NR(Object(n),!0).forEach(function(r){pde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pde(e,t,n){return(t=mde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mde(e){var t=yde(e,"string");return typeof t=="symbol"?t:t+""}function yde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vde(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return E.isValidElement(t)?E.cloneElement(t,r):E.createElement(n,r)}function gde(e){var t,{coordinate:n,payload:r,index:i,offset:a,tooltipAxisBandSize:l,layout:u,cursor:f,tooltipEventType:d,chartName:h}=e,p=n,y=r,v=i;if(!f||!p||h!=="ScatterChart"&&d!=="axis")return null;var g,b,w;if(h==="ScatterChart")g=p,b=uoe,w=En.cursorLine;else if(h==="BarChart")g=coe(u,p,a,l),b=C6,w=En.cursorRectangle;else if(u==="radial"&&Hz(p)){var{cx:S,cy:M,radius:A,startAngle:O,endAngle:k}=k6(p);g={cx:S,cy:M,startAngle:O,endAngle:k,innerRadius:A,outerRadius:A},b=P6,w=En.cursorLine}else g={points:Joe(u,p,a)},b=Rd,w=En.cursorLine;var C=typeof f=="object"&&"className"in f?f.className:void 0,T=ry(ry(ry(ry({stroke:"#ccc",pointerEvents:"none"},a),g),Ih(f)),{},{payload:y,payloadIndex:v,className:wt("recharts-tooltip-cursor",C)});return E.createElement(Kr,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:w},E.createElement(vde,{cursor:f,cursorComp:b,cursorProps:T}))}function bde(e){var t=Bfe(),n=f6(),r=As(),i=LL();return t==null||n==null||r==null||i==null?null:E.createElement(gde,dS({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var HL=E.createContext(null),xde=()=>E.useContext(HL),iw={exports:{}},RR;function wde(){return RR||(RR=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(f,d,h){this.fn=f,this.context=d,this.once=h||!1}function a(f,d,h,p,y){if(typeof h!="function")throw new TypeError("The listener must be a function");var v=new i(h,p||f,y),g=n?n+d:d;return f._events[g]?f._events[g].fn?f._events[g]=[f._events[g],v]:f._events[g].push(v):(f._events[g]=v,f._eventsCount++),f}function l(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var d=[],h,p;if(this._eventsCount===0)return d;for(p in h=this._events)t.call(h,p)&&d.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(h)):d},u.prototype.listeners=function(d){var h=n?n+d:d,p=this._events[h];if(!p)return[];if(p.fn)return[p.fn];for(var y=0,v=p.length,g=new Array(v);y<v;y++)g[y]=p[y].fn;return g},u.prototype.listenerCount=function(d){var h=n?n+d:d,p=this._events[h];return p?p.fn?1:p.length:0},u.prototype.emit=function(d,h,p,y,v,g){var b=n?n+d:d;if(!this._events[b])return!1;var w=this._events[b],S=arguments.length,M,A;if(w.fn){switch(w.once&&this.removeListener(d,w.fn,void 0,!0),S){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,h),!0;case 3:return w.fn.call(w.context,h,p),!0;case 4:return w.fn.call(w.context,h,p,y),!0;case 5:return w.fn.call(w.context,h,p,y,v),!0;case 6:return w.fn.call(w.context,h,p,y,v,g),!0}for(A=1,M=new Array(S-1);A<S;A++)M[A-1]=arguments[A];w.fn.apply(w.context,M)}else{var O=w.length,k;for(A=0;A<O;A++)switch(w[A].once&&this.removeListener(d,w[A].fn,void 0,!0),S){case 1:w[A].fn.call(w[A].context);break;case 2:w[A].fn.call(w[A].context,h);break;case 3:w[A].fn.call(w[A].context,h,p);break;case 4:w[A].fn.call(w[A].context,h,p,y);break;default:if(!M)for(k=1,M=new Array(S-1);k<S;k++)M[k-1]=arguments[k];w[A].fn.apply(w[A].context,M)}}return!0},u.prototype.on=function(d,h,p){return a(this,d,h,p,!1)},u.prototype.once=function(d,h,p){return a(this,d,h,p,!0)},u.prototype.removeListener=function(d,h,p,y){var v=n?n+d:d;if(!this._events[v])return this;if(!h)return l(this,v),this;var g=this._events[v];if(g.fn)g.fn===h&&(!y||g.once)&&(!p||g.context===p)&&l(this,v);else{for(var b=0,w=[],S=g.length;b<S;b++)(g[b].fn!==h||y&&!g[b].once||p&&g[b].context!==p)&&w.push(g[b]);w.length?this._events[v]=w.length===1?w[0]:w:l(this,v)}return this},u.prototype.removeAllListeners=function(d){var h;return d?(h=n?n+d:d,this._events[h]&&l(this,h)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(iw)),iw.exports}var Sde=wde();const _de=ui(Sde);var ch=new _de,hS="recharts.syncEvent.tooltip",DR="recharts.syncEvent.brush",zE=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!Ci(n))return e[n]}},Ede={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},VL=Wt({name:"options",initialState:Ede,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Ade=VL.reducer,{createEventEmitter:Ode}=VL.actions;function Mde(e){return e.tooltip.syncInteraction}var Cde={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},FL=Wt({name:"chartData",initialState:Cde,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:jR,setDataStartEndIndexes:kde,setComputedData:y2e}=FL.actions,Tde=FL.reducer,Pde=["x","y"];function IR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IR(Object(n),!0).forEach(function(r){Nde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nde(e,t,n){return(t=Rde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rde(e){var t=Dde(e,"string");return typeof t=="symbol"?t:t+""}function Dde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jde(e,t){if(e==null)return{};var n,r,i=Ide(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ide(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function zde(){var e=$e(F_),t=$e(K_),n=Vt(),r=$e(Q6),i=$e(po),a=As(),l=Mg(),u=$e(f=>f.rootProps.className);E.useEffect(()=>{if(e==null)return oo;var f=(d,h,p)=>{if(t!==p&&e===d){if(r==="index"){var y;if(l&&h!==null&&h!==void 0&&(y=h.payload)!==null&&y!==void 0&&y.coordinate&&h.payload.sourceViewBox){var v=h.payload.coordinate,{x:g,y:b}=v,w=jde(v,Pde),{x:S,y:M,width:A,height:O}=h.payload.sourceViewBox,k=Vu(Vu({},w),{},{x:l.x+(A?(g-S)/A:0)*l.width,y:l.y+(O?(b-M)/O:0)*l.height});n(Vu(Vu({},h),{},{payload:Vu(Vu({},h.payload),{},{coordinate:k})}))}else n(h);return}if(i!=null){var C;if(typeof r=="function"){var T={activeTooltipIndex:h.payload.index==null?void 0:Number(h.payload.index),isTooltipActive:h.payload.active,activeIndex:h.payload.index==null?void 0:Number(h.payload.index),activeLabel:h.payload.label,activeDataKey:h.payload.dataKey,activeCoordinate:h.payload.coordinate},P=r(i,T);C=i[P]}else r==="value"&&(C=i.find(L=>String(L.value)===h.payload.label));var{coordinate:D}=h.payload;if(C==null||h.payload.active===!1||D==null||l==null){n(fS({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:z,y:R}=D,N=Math.min(z,l.x+l.width),B=Math.min(R,l.y+l.height),I={x:a==="horizontal"?C.coordinate:N,y:a==="horizontal"?B:C.coordinate},q=fS({active:h.payload.active,coordinate:I,dataKey:h.payload.dataKey,index:String(C.index),label:h.payload.label,sourceViewBox:h.payload.sourceViewBox,graphicalItemId:h.payload.graphicalItemId});n(q)}}};return ch.on(hS,f),()=>{ch.off(hS,f)}},[u,n,t,e,r,i,a,l])}function Lde(){var e=$e(F_),t=$e(K_),n=Vt();E.useEffect(()=>{if(e==null)return oo;var r=(i,a,l)=>{t!==l&&e===i&&n(kde(a))};return ch.on(DR,r),()=>{ch.off(DR,r)}},[n,t,e])}function Bde(){var e=Vt();E.useEffect(()=>{e(Ode())},[e]),zde(),Lde()}function $de(e,t,n,r,i,a){var l=$e(g=>Yfe(g,e,t)),u=$e(kfe),f=$e(K_),d=$e(F_),h=$e(Q6),p=$e(Mde),y=p==null?void 0:p.active,v=Mg();E.useEffect(()=>{if(!y&&d!=null&&f!=null){var g=fS({active:a,coordinate:n,dataKey:l,index:i,label:typeof r=="number"?String(r):r,sourceViewBox:v,graphicalItemId:u});ch.emit(hS,d,g,f)}},[y,n,l,u,i,r,f,d,h,a,v])}function zR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function LR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zR(Object(n),!0).forEach(function(r){Ude(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ude(e,t,n){return(t=qde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qde(e){var t=Hde(e,"string");return typeof t=="symbol"?t:t+""}function Hde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vde(e){return e.dataKey}function Fde(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(Lae,t)}var BR=[],Kde={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function v2e(e){var t,n,r=nr(e,Kde),{active:i,allowEscapeViewBox:a,animationDuration:l,animationEasing:u,content:f,filterNull:d,isAnimationActive:h,offset:p,payloadUniqBy:y,position:v,reverseDirection:g,useTranslate3d:b,wrapperStyle:w,cursor:S,shared:M,trigger:A,defaultIndex:O,portal:k,axisId:C}=r,T=Vt(),P=typeof O=="number"?String(O):O;E.useEffect(()=>{T(zce({shared:M,trigger:A,axisId:C,active:i,defaultIndex:P}))},[T,M,A,C,i,P]);var D=Mg(),z=_6(),R=Pce(M),{activeIndex:N,isActive:B}=(t=$e(ie=>Zfe(ie,R,A,P)))!==null&&t!==void 0?t:{},I=$e(ie=>Qfe(ie,R,A,P)),q=$e(ie=>UL(ie,R,A,P)),L=$e(ie=>Gfe(ie,R,A,P)),V=I,F=xde(),H=(n=i??B)!==null&&n!==void 0?n:!1,[Y,$]=mie([V,H]),K=R==="axis"?q:void 0;$de(R,A,L,K,N,H);var J=k??F;if(J==null||D==null||R==null)return null;var te=V??BR;H||(te=BR),d&&te.length&&(te=nie(te.filter(ie=>ie.value!=null&&(ie.hide!==!0||r.includeHidden)),y,Vde));var ce=te.length>0,he=LR(LR({},r),{},{payload:te,label:K,active:H,activeIndex:N,coordinate:L,accessibilityLayer:z}),de=E.createElement(Qae,{allowEscapeViewBox:a,animationDuration:l,animationEasing:u,isAnimationActive:h,active:H,coordinate:L,hasPayload:ce,offset:p,position:v,reverseDirection:g,useTranslate3d:b,viewBox:D,wrapperStyle:w,lastBoundingBox:Y,innerRef:$,hasPortalFromProps:!!k},Fde(f,he));return E.createElement(E.Fragment,null,Yv.createPortal(de,J),H&&E.createElement(bde,{cursor:S,tooltipEventType:R,coordinate:L,payload:te,index:N}))}var KL=e=>null;KL.displayName="Cell";function Yde(e,t,n){return(t=Gde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gde(e){var t=Qde(e,"string");return typeof t=="symbol"?t:t+""}function Qde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Zde{constructor(t){Yde(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function $R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xde(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$R(Object(n),!0).forEach(function(r){Wde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$R(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wde(e,t,n){return(t=Jde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jde(e){var t=ehe(e,"string");return typeof t=="symbol"?t:t+""}function ehe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var the={cacheSize:2e3,enableCache:!0},YL=Xde({},the),UR=new Zde(YL.cacheSize),nhe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},qR="recharts_measurement_span";function rhe(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",l=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(a,"|").concat(l,"|").concat(u)}var HR=(e,t)=>{try{var n=document.getElementById(qR);n||(n=document.createElement("span"),n.setAttribute("id",qR),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,nhe,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Dd=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Uh.isSsr)return{width:0,height:0};if(!YL.enableCache)return HR(t,n);var r=rhe(t,n),i=UR.get(r);if(i)return i;var a=HR(t,n);return UR.set(r,a),a},GL;function ihe(e,t,n){return(t=ahe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ahe(e){var t=ohe(e,"string");return typeof t=="symbol"?t:t+""}function ohe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,FR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,she=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,lhe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,uhe={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},che=["cm","mm","pt","pc","in","Q","px"];function fhe(e){return che.includes(e)}var nc="NaN";function dhe(e,t){return e*uhe[t]}class Hn{static parse(t){var n,[,r,i]=(n=lhe.exec(t))!==null&&n!==void 0?n:[];return r==null?Hn.NaN:new Hn(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Ci(t)&&(this.unit=""),n!==""&&!she.test(n)&&(this.num=NaN,this.unit=""),fhe(n)&&(this.num=dhe(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new Hn(NaN,""):new Hn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Hn(NaN,""):new Hn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Hn(NaN,""):new Hn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Hn(NaN,""):new Hn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Ci(this.num)}}GL=Hn;ihe(Hn,"NaN",new GL(NaN,""));function QL(e){if(e==null||e.includes(nc))return nc;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,a]=(n=VR.exec(t))!==null&&n!==void 0?n:[],l=Hn.parse(r??""),u=Hn.parse(a??""),f=i==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return nc;t=t.replace(VR,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,[,h,p,y]=(d=FR.exec(t))!==null&&d!==void 0?d:[],v=Hn.parse(h??""),g=Hn.parse(y??""),b=p==="+"?v.add(g):v.subtract(g);if(b.isNaN())return nc;t=t.replace(FR,b.toString())}return t}var KR=/\(([^()]*)\)/;function hhe(e){for(var t=e,n;(n=KR.exec(t))!=null;){var[,r]=n;t=t.replace(KR,QL(r))}return t}function phe(e){var t=e.replace(/\s+/g,"");return t=hhe(t),t=QL(t),t}function mhe(e){try{return phe(e)}catch{return nc}}function aw(e){var t=mhe(e.slice(5,-1));return t===nc?"":t}var yhe=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],vhe=["dx","dy","angle","className","breakAll"];function pS(){return pS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pS.apply(null,arguments)}function YR(e,t){if(e==null)return{};var n,r,i=ghe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ghe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ZL=/[ \f\n\r\t\v\u2028\u2029]+/,XL=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];zt(t)||(n?i=t.toString().split(""):i=t.toString().split(ZL));var a=i.map(u=>({word:u,width:Dd(u,r).width})),l=n?0:Dd(" ",r).width;return{wordsWithComputedWidth:a,spaceWidth:l}}catch{return null}};function WL(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function bhe(e){return zt(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var JL=(e,t,n,r)=>e.reduce((i,a)=>{var{word:l,width:u}=a,f=i[i.length-1];if(f&&u!=null&&(t==null||r||f.width+u+n<Number(t)))f.words.push(l),f.width+=u+n;else{var d={words:[l],width:u};i.push(d)}return i},[]),e9=e=>e.reduce((t,n)=>t.width>n.width?t:n),xhe="…",GR=(e,t,n,r,i,a,l,u)=>{var f=e.slice(0,t),d=XL({breakAll:n,style:r,children:f+xhe});if(!d)return[!1,[]];var h=JL(d.wordsWithComputedWidth,a,l,u),p=h.length>i||e9(h).width>Number(a);return[p,h]},whe=(e,t,n,r,i)=>{var{maxLines:a,children:l,style:u,breakAll:f}=e,d=ke(a),h=String(l),p=JL(t,r,n,i);if(!d||i)return p;var y=p.length>a||e9(p).width>Number(r);if(!y)return p;for(var v=0,g=h.length-1,b=0,w;v<=g&&b<=h.length-1;){var S=Math.floor((v+g)/2),M=S-1,[A,O]=GR(h,M,f,u,a,r,n,i),[k]=GR(h,S,f,u,a,r,n,i);if(!A&&!k&&(v=S+1),A&&k&&(g=S-1),!A&&k){w=O;break}b++}return w||p},QR=e=>{var t=zt(e)?[]:e.toString().split(ZL);return[{words:t,width:void 0}]},She=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:a,maxLines:l}=e;if((t||n)&&!Uh.isSsr){var u,f,d=XL({breakAll:a,children:r,style:i});if(d){var{wordsWithComputedWidth:h,spaceWidth:p}=d;u=h,f=p}else return QR(r);return whe({breakAll:a,children:r,maxLines:l,style:i},u,f,t,!!n)}return QR(r)},t9="#808080",_he={angle:0,breakAll:!1,capHeight:"0.71em",fill:t9,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},LE=E.forwardRef((e,t)=>{var n=nr(e,_he),{x:r,y:i,lineHeight:a,capHeight:l,fill:u,scaleToFit:f,textAnchor:d,verticalAnchor:h}=n,p=YR(n,yhe),y=E.useMemo(()=>She({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:f,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,f,p.style,p.width]),{dx:v,dy:g,angle:b,className:w,breakAll:S}=p,M=YR(p,vhe);if(!ea(r)||!ea(i)||y.length===0)return null;var A=Number(r)+(ke(v)?v:0),O=Number(i)+(ke(g)?g:0);if(!et(A)||!et(O))return null;var k;switch(h){case"start":k=aw("calc(".concat(l,")"));break;case"middle":k=aw("calc(".concat((y.length-1)/2," * -").concat(a," + (").concat(l," / 2))"));break;default:k=aw("calc(".concat(y.length-1," * -").concat(a,")"));break}var C=[],T=y[0];if(f&&T!=null){var P=T.width,{width:D}=p;C.push("scale(".concat(ke(D)&&ke(P)?D/P:1,")"))}return b&&C.push("rotate(".concat(b,", ").concat(A,", ").concat(O,")")),C.length&&(M.transform=C.join(" ")),E.createElement("text",pS({},tr(M),{ref:t,x:A,y:O,className:wt("recharts-text",w),textAnchor:d,fill:u.includes("url")?t9:u}),y.map((z,R)=>{var N=z.words.join(S?"":" ");return E.createElement("tspan",{x:A,dy:R===0?k:a,key:"".concat(N,"-").concat(R)},N)}))});LE.displayName="Text";function ZR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(n),!0).forEach(function(r){Ehe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ehe(e,t,n){return(t=Ahe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ahe(e){var t=Ohe(e,"string");return typeof t=="symbol"?t:t+""}function Ohe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mhe=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:i}=e,{x:a,y:l,height:u,upperWidth:f,lowerWidth:d}=I_(t),h=a,p=a+(f-d)/2,y=(h+p)/2,v=(f+d)/2,g=h+f/2,b=u>=0?1:-1,w=b*r,S=b>0?"end":"start",M=b>0?"start":"end",A=f>=0?1:-1,O=A*r,k=A>0?"end":"start",C=A>0?"start":"end",T=i;if(n==="top"){var P={x:h+f/2,y:l-w,horizontalAnchor:"middle",verticalAnchor:S};return T&&(P.height=Math.max(l-T.y,0),P.width=f),P}if(n==="bottom"){var D={x:p+d/2,y:l+u+w,horizontalAnchor:"middle",verticalAnchor:M};return T&&(D.height=Math.max(T.y+T.height-(l+u),0),D.width=d),D}if(n==="left"){var z={x:y-O,y:l+u/2,horizontalAnchor:k,verticalAnchor:"middle"};return T&&(z.width=Math.max(z.x-T.x,0),z.height=u),z}if(n==="right"){var R={x:y+v+O,y:l+u/2,horizontalAnchor:C,verticalAnchor:"middle"};return T&&(R.width=Math.max(T.x+T.width-R.x,0),R.height=u),R}var N=T?{width:v,height:u}:{};return n==="insideLeft"?$i({x:y+O,y:l+u/2,horizontalAnchor:C,verticalAnchor:"middle"},N):n==="insideRight"?$i({x:y+v-O,y:l+u/2,horizontalAnchor:k,verticalAnchor:"middle"},N):n==="insideTop"?$i({x:h+f/2,y:l+w,horizontalAnchor:"middle",verticalAnchor:M},N):n==="insideBottom"?$i({x:p+d/2,y:l+u-w,horizontalAnchor:"middle",verticalAnchor:S},N):n==="insideTopLeft"?$i({x:h+O,y:l+w,horizontalAnchor:C,verticalAnchor:M},N):n==="insideTopRight"?$i({x:h+f-O,y:l+w,horizontalAnchor:k,verticalAnchor:M},N):n==="insideBottomLeft"?$i({x:p+O,y:l+u-w,horizontalAnchor:C,verticalAnchor:S},N):n==="insideBottomRight"?$i({x:p+d-O,y:l+u-w,horizontalAnchor:k,verticalAnchor:S},N):n&&typeof n=="object"&&(ke(n.x)||Bl(n.x))&&(ke(n.y)||Bl(n.y))?$i({x:a+ki(n.x,v),y:l+ki(n.y,u),horizontalAnchor:"end",verticalAnchor:"end"},N):$i({x:g,y:l+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},N)},Che=["labelRef"],khe=["content"];function XR(e,t){if(e==null)return{};var n,r,i=The(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function The(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function WR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WR(Object(n),!0).forEach(function(r){Phe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Phe(e,t,n){return(t=Nhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nhe(e){var t=Rhe(e,"string");return typeof t=="symbol"?t:t+""}function Rhe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ua.apply(null,arguments)}var n9=E.createContext(null),Dhe=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:l,children:u}=e,f=E.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:l}),[t,n,r,i,a,l]);return E.createElement(n9.Provider,{value:f},u)},r9=()=>{var e=E.useContext(n9),t=Mg();return e||(t?I_(t):void 0)},jhe=E.createContext(null),Ihe=()=>{var e=E.useContext(jhe),t=$e(e8);return e||t},zhe=e=>{var{value:t,formatter:n}=e,r=zt(e.children)?t:e.children;return typeof n=="function"?n(r):r},BE=e=>e!=null&&typeof e=="function",Lhe=(e,t)=>{var n=Ar(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Bhe=(e,t,n,r,i)=>{var{offset:a,className:l}=e,{cx:u,cy:f,innerRadius:d,outerRadius:h,startAngle:p,endAngle:y,clockWise:v}=i,g=(d+h)/2,b=Lhe(p,y),w=b>=0?1:-1,S,M;switch(t){case"insideStart":S=p+w*a,M=v;break;case"insideEnd":S=y-w*a,M=!v;break;case"end":S=y+w*a,M=v;break;default:throw new Error("Unsupported position ".concat(t))}M=b<=0?M:!M;var A=Fn(u,f,g,S),O=Fn(u,f,g,S+(M?1:-1)*359),k="M".concat(A.x,",").concat(A.y,`
|
|
856
|
-
A`).concat(g,",").concat(g,",0,1,").concat(M?0:1,`,
|
|
857
|
-
`).concat(O.x,",").concat(O.y),C=zt(e.id)?rh("recharts-radial-line-"):e.id;return E.createElement("text",Ua({},r,{dominantBaseline:"central",className:wt("recharts-radial-bar-label",l)}),E.createElement("defs",null,E.createElement("path",{id:C,d:k})),E.createElement("textPath",{xlinkHref:"#".concat(C)},n))},$he=(e,t,n)=>{var{cx:r,cy:i,innerRadius:a,outerRadius:l,startAngle:u,endAngle:f}=e,d=(u+f)/2;if(n==="outside"){var{x:h,y:p}=Fn(r,i,l+t,d);return{x:h,y:p,textAnchor:h>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var y=(a+l)/2,{x:v,y:g}=Fn(r,i,y,d);return{x:v,y:g,textAnchor:"middle",verticalAnchor:"middle"}},by=e=>e!=null&&"cx"in e&&ke(e.cx),Uhe={angle:0,offset:5,zIndex:En.label,position:"middle",textBreakAll:!1};function qhe(e){if(!by(e))return e;var{cx:t,cy:n,outerRadius:r}=e,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function Jo(e){var t=nr(e,Uhe),{viewBox:n,parentViewBox:r,position:i,value:a,children:l,content:u,className:f="",textBreakAll:d,labelRef:h}=t,p=Ihe(),y=r9(),v=i==="center"?y:p??y,g,b,w;n==null?g=v:by(n)?g=n:g=I_(n);var S=qhe(g);if(!g||zt(a)&&zt(l)&&!E.isValidElement(u)&&typeof u!="function")return null;var M=Cd(Cd({},t),{},{viewBox:g});if(E.isValidElement(u)){var{labelRef:A}=M,O=XR(M,Che);return E.cloneElement(u,O)}if(typeof u=="function"){var{content:k}=M,C=XR(M,khe);if(b=E.createElement(u,C),E.isValidElement(b))return b}else b=zhe(t);var T=tr(t);if(by(g)){if(i==="insideStart"||i==="insideEnd"||i==="end")return Bhe(t,i,b,T,g);w=$he(g,t.offset,t.position)}else{if(!S)return null;var P=Mhe({viewBox:S,position:i,offset:t.offset,parentViewBox:by(r)?void 0:r});w=Cd(Cd({x:P.x,y:P.y,textAnchor:P.horizontalAnchor,verticalAnchor:P.verticalAnchor},P.width!==void 0?{width:P.width}:{}),P.height!==void 0?{height:P.height}:{})}return E.createElement(Kr,{zIndex:t.zIndex},E.createElement(LE,Ua({ref:h,className:wt("recharts-label",f)},T,w,{textAnchor:WL(T.textAnchor)?T.textAnchor:w.textAnchor,breakAll:d}),b))}Jo.displayName="Label";var Hhe=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?E.createElement(Jo,Ua({key:"label-implicit"},r)):ea(e)?E.createElement(Jo,Ua({key:"label-implicit",value:e},r)):E.isValidElement(e)?e.type===Jo?E.cloneElement(e,Cd({key:"label-implicit"},r)):E.createElement(Jo,Ua({key:"label-implicit",content:e},r)):BE(e)?E.createElement(Jo,Ua({key:"label-implicit",content:e},r)):e&&typeof e=="object"?E.createElement(Jo,Ua({},e,{key:"label-implicit"},r)):null};function Vhe(e){var{label:t,labelRef:n}=e,r=r9();return Hhe(t,r,n)||null}var Fhe=["valueAccessor"],Khe=["dataKey","clockWise","id","textBreakAll","zIndex"];function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rv.apply(null,arguments)}function JR(e,t){if(e==null)return{};var n,r,i=Yhe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Yhe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ghe=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(bhe(t))return t},i9=E.createContext(void 0),$E=i9.Provider,a9=E.createContext(void 0);a9.Provider;function Qhe(){return E.useContext(i9)}function Zhe(){return E.useContext(a9)}function xy(e){var{valueAccessor:t=Ghe}=e,n=JR(e,Fhe),{dataKey:r,clockWise:i,id:a,textBreakAll:l,zIndex:u}=n,f=JR(n,Khe),d=Qhe(),h=Zhe(),p=d||h;return!p||!p.length?null:E.createElement(Kr,{zIndex:u??En.label},E.createElement(Yn,{className:"recharts-label-list"},p.map((y,v)=>{var g,b=zt(r)?t(y,v):en(y.payload,r),w=zt(a)?{}:{id:"".concat(a,"-").concat(v)};return E.createElement(Jo,Rv({key:"label-".concat(v)},tr(y),f,w,{fill:(g=n.fill)!==null&&g!==void 0?g:y.fill,parentViewBox:y.parentViewBox,value:b,textBreakAll:l,viewBox:y.viewBox,index:v,zIndex:0}))})))}xy.displayName="LabelList";function UE(e){var{label:t}=e;return t?t===!0?E.createElement(xy,{key:"labelList-implicit"}):E.isValidElement(t)||BE(t)?E.createElement(xy,{key:"labelList-implicit",content:t}):typeof t=="object"?E.createElement(xy,Rv({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mS.apply(null,arguments)}var o9=e=>{var{cx:t,cy:n,r,className:i}=e,a=wt("recharts-dot",i);return ke(t)&&ke(n)&&ke(r)?E.createElement("circle",mS({},Hr(e),T_(e),{className:a,cx:t,cy:n,r})):null},Xhe={radiusAxis:{},angleAxis:{}},s9=Wt({name:"polarAxis",initialState:Xhe,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:g2e,removeRadiusAxis:b2e,addAngleAxis:x2e,removeAngleAxis:w2e}=s9.actions,Whe=s9.reducer;function Jhe(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var ow={exports:{}},Mt={};/**
|
|
858
|
-
* @license React
|
|
859
|
-
* react-is.production.js
|
|
860
|
-
*
|
|
861
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
862
|
-
*
|
|
863
|
-
* This source code is licensed under the MIT license found in the
|
|
864
|
-
* LICENSE file in the root directory of this source tree.
|
|
865
|
-
*/var eD;function epe(){if(eD)return Mt;eD=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function g(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case n:case i:case r:case f:case d:case y:return b;default:switch(b=b&&b.$$typeof,b){case l:case u:case p:case h:return b;case a:return b;default:return w}}case t:return w}}}return Mt.ContextConsumer=a,Mt.ContextProvider=l,Mt.Element=e,Mt.ForwardRef=u,Mt.Fragment=n,Mt.Lazy=p,Mt.Memo=h,Mt.Portal=t,Mt.Profiler=i,Mt.StrictMode=r,Mt.Suspense=f,Mt.SuspenseList=d,Mt.isContextConsumer=function(b){return g(b)===a},Mt.isContextProvider=function(b){return g(b)===l},Mt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Mt.isForwardRef=function(b){return g(b)===u},Mt.isFragment=function(b){return g(b)===n},Mt.isLazy=function(b){return g(b)===p},Mt.isMemo=function(b){return g(b)===h},Mt.isPortal=function(b){return g(b)===t},Mt.isProfiler=function(b){return g(b)===i},Mt.isStrictMode=function(b){return g(b)===r},Mt.isSuspense=function(b){return g(b)===f},Mt.isSuspenseList=function(b){return g(b)===d},Mt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===i||b===r||b===f||b===d||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===l||b.$$typeof===a||b.$$typeof===u||b.$$typeof===v||b.getModuleId!==void 0)},Mt.typeOf=g,Mt}var tD;function tpe(){return tD||(tD=1,ow.exports=epe()),ow.exports}var npe=tpe(),nD=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",rD=null,sw=null,l9=e=>{if(e===rD&&Array.isArray(sw))return sw;var t=[];return E.Children.forEach(e,n=>{zt(n)||(npe.isFragment(n)?t=t.concat(l9(n.props.children)):t.push(n))}),sw=t,rD=e,t};function rpe(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>nD(i)):r=[nD(t)],l9(e).forEach(i=>{var a=zc(i,"type.displayName")||zc(i,"type.name");a&&r.indexOf(a)!==-1&&n.push(i)}),n}var qE=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,lw={},iD;function ipe(){return iD||(iD=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const a=n[Symbol.toStringTag];return a==null||!((i=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&i.writable)?!1:n.toString()===`[object ${a}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(lw)),lw}var uw,aD;function ape(){return aD||(aD=1,uw=ipe().isPlainObject),uw}var ope=ape();const spe=ui(ope);var oD,sD,lD,uD,cD;function fD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fD(Object(n),!0).forEach(function(r){lpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lpe(e,t,n){return(t=upe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function upe(e){var t=cpe(e,"string");return typeof t=="symbol"?t:t+""}function cpe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dv(){return Dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dv.apply(null,arguments)}function md(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var hD=(e,t,n,r,i)=>{var a=n-r,l;return l=Xt(oD||(oD=md(["M ",",",""])),e,t),l+=Xt(sD||(sD=md(["L ",",",""])),e+n,t),l+=Xt(lD||(lD=md(["L ",",",""])),e+n-a/2,t+i),l+=Xt(uD||(uD=md(["L ",",",""])),e+n-a/2-r,t+i),l+=Xt(cD||(cD=md(["L ",","," Z"])),e,t),l},fpe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dpe=e=>{var t=nr(e,fpe),{x:n,y:r,upperWidth:i,lowerWidth:a,height:l,className:u}=t,{animationEasing:f,animationDuration:d,animationBegin:h,isUpdateAnimationActive:p}=t,y=E.useRef(null),[v,g]=E.useState(-1),b=E.useRef(i),w=E.useRef(a),S=E.useRef(l),M=E.useRef(n),A=E.useRef(r),O=Hh(e,"trapezoid-");if(E.useEffect(()=>{if(y.current&&y.current.getTotalLength)try{var I=y.current.getTotalLength();I&&g(I)}catch{}},[]),n!==+n||r!==+r||i!==+i||a!==+a||l!==+l||i===0&&a===0||l===0)return null;var k=wt("recharts-trapezoid",u);if(!p)return E.createElement("g",null,E.createElement("path",Dv({},tr(t),{className:k,d:hD(n,r,i,a,l)})));var C=b.current,T=w.current,P=S.current,D=M.current,z=A.current,R="0px ".concat(v===-1?1:v,"px"),N="".concat(v,"px ").concat(v,"px"),B=E6(["strokeDasharray"],d,f);return E.createElement(qh,{animationId:O,key:O,canBegin:v>0,duration:d,easing:f,isActive:p,begin:h},I=>{var q=Ct(C,i,I),L=Ct(T,a,I),V=Ct(P,l,I),F=Ct(D,n,I),H=Ct(z,r,I);y.current&&(b.current=q,w.current=L,S.current=V,M.current=F,A.current=H);var Y=I>0?{transition:B,strokeDasharray:N}:{strokeDasharray:R};return E.createElement("path",Dv({},tr(t),{className:k,d:hD(F,H,q,L,V),ref:y,style:dD(dD({},Y),t.style)}))})},hpe=["option","shapeType","activeClassName","inActiveClassName"];function ppe(e,t){if(e==null)return{};var n,r,i=mpe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mpe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pD(Object(n),!0).forEach(function(r){ype(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ype(e,t,n){return(t=vpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vpe(e){var t=gpe(e,"string");return typeof t=="symbol"?t:t+""}function gpe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bpe(e,t){return jv(jv({},t),e)}function xpe(e,t){return e==="symbols"}function mD(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return E.createElement(C6,n);case"trapezoid":return E.createElement(dpe,n);case"sector":return E.createElement(P6,n);case"symbols":if(xpe(t))return E.createElement(qz,n);break;case"curve":return E.createElement(Rd,n);default:return null}}function wpe(e){return E.isValidElement(e)?e.props:e}function u9(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape",inActiveClassName:i="recharts-shape"}=e,a=ppe(e,hpe),l;if(E.isValidElement(t))l=E.cloneElement(t,jv(jv({},a),wpe(t)));else if(typeof t=="function")l=t(a,a.index);else if(spe(t)&&typeof t!="boolean"){var u=bpe(t,a);l=E.createElement(mD,{shapeType:n,elementProps:u})}else{var f=a;l=E.createElement(mD,{shapeType:n,elementProps:f})}return a.isActive?E.createElement(Yn,{className:r},l):E.createElement(Yn,{className:i},l)}var c9=(e,t,n)=>{var r=Vt();return(i,a)=>l=>{e==null||e(i,a,l),r(xL({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},f9=e=>{var t=Vt();return(n,r)=>i=>{e==null||e(n,r,i),t(Lce())}},d9=(e,t,n)=>{var r=Vt();return(i,a)=>l=>{e==null||e(i,a,l),r(Bce({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function HE(e){var{tooltipEntrySettings:t}=e,n=Vt(),r=Nn(),i=E.useRef(null);return E.useLayoutEffect(()=>{r||(i.current===null?n(Dce(t)):i.current!==t&&n(jce({prev:i.current,next:t})),i.current=t)},[t,n,r]),E.useLayoutEffect(()=>()=>{i.current&&(n(Ice(i.current)),i.current=null)},[n]),null}function VE(e){var{legendPayload:t}=e,n=Vt(),r=Nn(),i=E.useRef(null);return E.useLayoutEffect(()=>{r||(i.current===null?n(Mae(t)):i.current!==t&&n(Cae({prev:i.current,next:t})),i.current=t)},[n,r,t]),E.useLayoutEffect(()=>()=>{i.current&&(n(kae(i.current)),i.current=null)},[n]),null}var cw,Spe=()=>{var[e]=E.useState(()=>rh("uid-"));return e},_pe=(cw=C$.useId)!==null&&cw!==void 0?cw:Spe;function Epe(e,t){var n=_pe();return t||(e?"".concat(e,"-").concat(n):n)}var Ape=E.createContext(void 0),FE=e=>{var{id:t,type:n,children:r}=e,i=Epe("recharts-".concat(n),t);return E.createElement(Ape.Provider,{value:i},r(i))},Ope={cartesianItems:[],polarItems:[]},h9=Wt({name:"graphicalItems",initialState:Ope,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:bt()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Lr(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},prepare:bt()},removeCartesianGraphicalItem:{reducer(e,t){var n=Lr(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:bt()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:bt()},removePolarGraphicalItem:{reducer(e,t){var n=Lr(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:bt()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Lr(e).polarItems.indexOf(n);i>-1&&(e.polarItems[i]=r)},prepare:bt()}}}),{addCartesianGraphicalItem:Mpe,replaceCartesianGraphicalItem:Cpe,removeCartesianGraphicalItem:kpe,addPolarGraphicalItem:S2e,removePolarGraphicalItem:_2e,replacePolarGraphicalItem:E2e}=h9.actions,Tpe=h9.reducer,Ppe=e=>{var t=Vt(),n=E.useRef(null);return E.useLayoutEffect(()=>{n.current===null?t(Mpe(e)):n.current!==e&&t(Cpe({prev:n.current,next:e})),n.current=e},[t,e]),E.useLayoutEffect(()=>()=>{n.current&&(t(kpe(n.current)),n.current=null)},[t]),null},KE=E.memo(Ppe),Npe=["points"];function yD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yD(Object(n),!0).forEach(function(r){Rpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rpe(e,t,n){return(t=Dpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dpe(e){var t=jpe(e,"string");return typeof t=="symbol"?t:t+""}function jpe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iv.apply(null,arguments)}function Ipe(e,t){if(e==null)return{};var n,r,i=zpe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zpe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Lpe(e){var{option:t,dotProps:n,className:r}=e;if(E.isValidElement(t))return E.cloneElement(t,n);if(typeof t=="function")return t(n);var i=wt(r,typeof t!="boolean"?t.className:""),a=n??{},{points:l}=a,u=Ipe(a,Npe);return E.createElement(o9,Iv({},u,{className:i}))}function Bpe(e,t){return e==null?!1:t?!0:e.length===1}function p9(e){var{points:t,dot:n,className:r,dotClassName:i,dataKey:a,baseProps:l,needClip:u,clipPathId:f,zIndex:d=En.scatter}=e;if(!Bpe(t,n))return null;var h=qE(n),p=Cne(n),y=t.map((g,b)=>{var w,S,M=fw(fw(fw({r:3},l),p),{},{index:b,cx:(w=g.x)!==null&&w!==void 0?w:void 0,cy:(S=g.y)!==null&&S!==void 0?S:void 0,dataKey:a,value:g.value,payload:g.payload,points:t});return E.createElement(Lpe,{key:"dot-".concat(b),option:n,dotProps:M,className:i})}),v={};return u&&f!=null&&(v.clipPath="url(#clipPath-".concat(h?"":"dots-").concat(f,")")),E.createElement(Kr,{zIndex:d},E.createElement(Yn,Iv({className:r},v),y))}function vD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vD(Object(n),!0).forEach(function(r){$pe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $pe(e,t,n){return(t=Upe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Upe(e){var t=qpe(e,"string");return typeof t=="symbol"?t:t+""}function qpe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var m9=0,Hpe={xAxis:{},yAxis:{},zAxis:{}},y9=Wt({name:"cartesianAxis",initialState:Hpe,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:bt()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=r)},prepare:bt()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:bt()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:bt()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=r)},prepare:bt()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:bt()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:bt()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=r)},prepare:bt()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:bt()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var a,l=i.widthHistory||[];if(l.length===3&&l[0]===l[2]&&r===l[1]&&r!==i.width&&Math.abs(r-((a=l[0])!==null&&a!==void 0?a:0))<=1)return;var u=[...l,r].slice(-3);e.yAxis[n]=gD(gD({},i),{},{width:r,widthHistory:u})}}}}),{addXAxis:Vpe,replaceXAxis:Fpe,removeXAxis:Kpe,addYAxis:Ype,replaceYAxis:Gpe,removeYAxis:Qpe,addZAxis:A2e,replaceZAxis:O2e,removeZAxis:M2e,updateYAxisWidth:Zpe}=y9.actions,Xpe=y9.reducer,Wpe=le([Pn],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Jpe=le([Wpe,so,lo],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),Qg=()=>$e(Jpe),eme=()=>$e(Dfe);function bD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bD(Object(n),!0).forEach(function(r){tme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tme(e,t,n){return(t=nme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nme(e){var t=rme(e,"string");return typeof t=="symbol"?t:t+""}function rme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ime=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:a,clipPath:l}=e;if(i===!1||t.x==null||t.y==null)return null;var u={index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},f=dw(dw(dw({},u),Ih(i)),T_(i)),d;return E.isValidElement(i)?d=E.cloneElement(i,f):typeof i=="function"?d=i(f):d=E.createElement(o9,f),E.createElement(Yn,{className:"recharts-active-dot",clipPath:l},d)};function yS(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:a,zIndex:l=En.activeDot}=e,u=$e(Hl),f=eme();if(t==null||f==null)return null;var d=t.find(h=>f.includes(h.payload));return zt(d)?null:E.createElement(Kr,{zIndex:l},E.createElement(ime,{point:d,childIndex:Number(u),mainColor:n,dataKey:i,activeDot:r,clipPath:a}))}var xD=(e,t,n)=>{var r=n??e;if(!zt(r))return ki(r,t,0)},ame=(e,t,n)=>{var r={},i=e.filter(zg),a=e.filter(d=>d.stackId==null),l=i.reduce((d,h)=>{var p=d[h.stackId];return p==null&&(p=[]),p.push(h),d[h.stackId]=p,d},r),u=Object.entries(l).map(d=>{var h,[p,y]=d,v=y.map(b=>b.dataKey),g=xD(t,n,(h=y[0])===null||h===void 0?void 0:h.barSize);return{stackId:p,dataKeys:v,barSize:g}}),f=a.map(d=>{var h=[d.dataKey].filter(y=>y!=null),p=xD(t,n,d.barSize);return{stackId:void 0,dataKeys:h,barSize:p}});return[...u,...f]};function wD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function iy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wD(Object(n),!0).forEach(function(r){ome(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ome(e,t,n){return(t=sme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sme(e){var t=lme(e,"string");return typeof t=="symbol"?t:t+""}function lme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ume(e,t,n,r,i){var a,l=r.length;if(!(l<1)){var u=ki(e,n,0,!0),f,d=[];if(et((a=r[0])===null||a===void 0?void 0:a.barSize)){var h=!1,p=n/l,y=r.reduce((M,A)=>M+(A.barSize||0),0);y+=(l-1)*u,y>=n&&(y-=(l-1)*u,u=0),y>=n&&p>0&&(h=!0,p*=.9,y=l*p);var v=(n-y)/2>>0,g={offset:v-u,size:0};f=r.reduce((M,A)=>{var O,k={stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:g.offset+g.size+u,size:h?p:(O=A.barSize)!==null&&O!==void 0?O:0}},C=[...M,k];return g=k.position,C},d)}else{var b=ki(t,n,0,!0);n-2*b-(l-1)*u<=0&&(u=0);var w=(n-2*b-(l-1)*u)/l;w>1&&(w>>=0);var S=et(i)?Math.min(w,i):w;f=r.reduce((M,A,O)=>[...M,{stackId:A.stackId,dataKeys:A.dataKeys,position:{offset:b+(w+u)*O+(w-S)/2,size:S}}],d)}return f}}var cme=(e,t,n,r,i,a,l)=>{var u=zt(l)?t:l,f=ume(n,r,i!==a?i:a,e,u);return i!==a&&f!=null&&(f=f.map(d=>iy(iy({},d),{},{position:iy(iy({},d.position),{},{offset:d.position.offset-i/2})}))),f},fme=(e,t)=>{var n=Ig(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:a}=i;if(a)return a.find(l=>l.key===n)}}}},dme=(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function hme(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&et(e.zIndex)?e.zIndex:t}var pme=e=>{var{chartData:t}=e,n=Vt(),r=Nn();return E.useEffect(()=>r?()=>{}:(n(jR(t)),()=>{n(jR(void 0))}),[t,n,r]),null},SD={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},v9=Wt({name:"brush",initialState:SD,reducers:{setBrushSettings(e,t){return t.payload==null?SD:t.payload}}}),{setBrushSettings:C2e}=v9.actions,mme=v9.reducer;function yme(e){return(e%180+180)%180}var vme=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=yme(i),l=a*Math.PI/180,u=Math.atan(r/n),f=l>u&&l<Math.PI-u?r/Math.sin(l):n/Math.cos(l);return Math.abs(f)},gme={dots:[],areas:[],lines:[]},g9=Wt({name:"referenceElements",initialState:gme,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Lr(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Lr(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=Lr(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:k2e,removeDot:T2e,addArea:P2e,removeArea:N2e,addLine:R2e,removeLine:D2e}=g9.actions,bme=g9.reducer,xme=E.createContext(void 0),wme=e=>{var{children:t}=e,[n]=E.useState("".concat(rh("recharts"),"-clip")),r=Qg();if(r==null)return null;var{x:i,y:a,width:l,height:u}=r;return E.createElement(xme.Provider,{value:n},E.createElement("defs",null,E.createElement("clipPath",{id:n},E.createElement("rect",{x:i,y:a,height:u,width:l}))),t)};function b9(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}function Sme(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return vme(r,n)}function _me(e,t,n){var r=n==="width",{x:i,y:a,width:l,height:u}=e;return t===1?{start:r?i:a,end:r?i+l:a+u}:{start:r?i+l:a+u,end:r?i:a}}function fh(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function Eme(e,t){return b9(e,t+1)}function Ame(e,t,n,r,i){for(var a=(r||[]).slice(),{start:l,end:u}=t,f=0,d=1,h=l,p=function(){var g=r==null?void 0:r[f];if(g===void 0)return{v:b9(r,d)};var b=f,w,S=()=>(w===void 0&&(w=n(g,b)),w),M=g.coordinate,A=f===0||fh(e,M,S,h,u);A||(f=0,h=l,d+=1),A&&(h=M+e*(S()/2+i),f+=d)},y;d<=a.length;)if(y=p(),y)return y.v;return[]}function Ome(e,t,n,r,i){var a=(r||[]).slice(),l=a.length;if(l===0)return[];for(var{start:u,end:f}=t,d=1;d<=l;d++){for(var h=(l-1)%d,p=u,y=!0,v=function(){var O=r[b];if(O==null)return 0;var k=b,C,T=()=>(C===void 0&&(C=n(O,k)),C),P=O.coordinate,D=b===h||fh(e,P,T,p,f);if(!D)return y=!1,1;D&&(p=P+e*(T()/2+i))},g,b=h;b<l&&(g=v(),!(g!==0&&g===1));b+=d);if(y){for(var w=[],S=h;S<l;S+=d){var M=r[S];M!=null&&w.push(M)}return w}}return[]}function _D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_D(Object(n),!0).forEach(function(r){Mme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_D(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mme(e,t,n){return(t=Cme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cme(e){var t=kme(e,"string");return typeof t=="symbol"?t:t+""}function kme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tme(e,t,n,r,i){for(var a=(r||[]).slice(),l=a.length,{start:u}=t,{end:f}=t,d=function(y){var v=a[y];if(v==null)return 1;var g=v,b,w=()=>(b===void 0&&(b=n(v,y)),b);if(y===l-1){var S=e*(g.coordinate+e*w()/2-f);a[y]=g=Jn(Jn({},g),{},{tickCoord:S>0?g.coordinate-S*e:g.coordinate})}else a[y]=g=Jn(Jn({},g),{},{tickCoord:g.coordinate});if(g.tickCoord!=null){var M=fh(e,g.tickCoord,w,u,f);M&&(f=g.tickCoord-e*(w()/2+i),a[y]=Jn(Jn({},g),{},{isShow:!0}))}},h=l-1;h>=0;h--)d(h);return a}function Pme(e,t,n,r,i,a){var l=(r||[]).slice(),u=l.length,{start:f,end:d}=t;if(a){var h=r[u-1];if(h!=null){var p=n(h,u-1),y=e*(h.coordinate+e*p/2-d);if(l[u-1]=h=Jn(Jn({},h),{},{tickCoord:y>0?h.coordinate-y*e:h.coordinate}),h.tickCoord!=null){var v=fh(e,h.tickCoord,()=>p,f,d);v&&(d=h.tickCoord-e*(p/2+i),l[u-1]=Jn(Jn({},h),{},{isShow:!0}))}}}for(var g=a?u-1:u,b=function(M){var A=l[M];if(A==null)return 1;var O=A,k,C=()=>(k===void 0&&(k=n(A,M)),k);if(M===0){var T=e*(O.coordinate-e*C()/2-f);l[M]=O=Jn(Jn({},O),{},{tickCoord:T<0?O.coordinate-T*e:O.coordinate})}else l[M]=O=Jn(Jn({},O),{},{tickCoord:O.coordinate});if(O.tickCoord!=null){var P=fh(e,O.tickCoord,C,f,d);P&&(f=O.tickCoord+e*(C()/2+i),l[M]=Jn(Jn({},O),{},{isShow:!0}))}},w=0;w<g;w++)b(w);return l}function YE(e,t,n){var{tick:r,ticks:i,viewBox:a,minTickGap:l,orientation:u,interval:f,tickFormatter:d,unit:h,angle:p}=e;if(!i||!i.length||!r)return[];if(ke(f)||Uh.isSsr){var y;return(y=Eme(i,ke(f)?f:0))!==null&&y!==void 0?y:[]}var v=[],g=u==="top"||u==="bottom"?"width":"height",b=h&&g==="width"?Dd(h,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=(k,C)=>{var T=typeof d=="function"?d(k.value,C):k.value;return g==="width"?Sme(Dd(T,{fontSize:t,letterSpacing:n}),b,p):Dd(T,{fontSize:t,letterSpacing:n})[g]},S=i[0],M=i[1],A=i.length>=2&&S!=null&&M!=null?Ar(M.coordinate-S.coordinate):1,O=_me(a,A,g);return f==="equidistantPreserveStart"?Ame(A,O,w,i,l):f==="equidistantPreserveEnd"?Ome(A,O,w,i,l):(f==="preserveStart"||f==="preserveStartEnd"?v=Pme(A,O,w,i,l,f==="preserveStartEnd"):v=Tme(A,O,w,i,l),v.filter(k=>k.isShow))}var Nme=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:a=0}=e,l=0;if(t){Array.from(t).forEach(h=>{if(h){var p=h.getBoundingClientRect();p.width>l&&(l=p.width)}});var u=n?n.getBoundingClientRect().width:0,f=i+a,d=l+f+u+(n?r:0);return Math.round(d)}return 0},Rme={xAxis:{},yAxis:{}},x9=Wt({name:"renderedTicks",initialState:Rme,reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:i}=t.payload;e[n][r]=i},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:Dme,removeRenderedTicks:jme}=x9.actions,Ime=x9.reducer,zme=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function Lme(e,t){if(e==null)return{};var n,r,i=Bme(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Vl(){return Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vl.apply(null,arguments)}function ED(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ED(Object(n),!0).forEach(function(r){$me(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ED(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $me(e,t,n){return(t=Ume(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ume(e){var t=qme(e,"string");return typeof t=="symbol"?t:t+""}function qme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ga={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:En.axis};function Hme(e){var{x:t,y:n,width:r,height:i,orientation:a,mirror:l,axisLine:u,otherSvgProps:f}=e;if(!u)return null;var d=Zt(Zt(Zt({},f),Hr(u)),{},{fill:"none"});if(a==="top"||a==="bottom"){var h=+(a==="top"&&!l||a==="bottom"&&l);d=Zt(Zt({},d),{},{x1:t,y1:n+h*i,x2:t+r,y2:n+h*i})}else{var p=+(a==="left"&&!l||a==="right"&&l);d=Zt(Zt({},d),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+i})}return E.createElement("line",Vl({},d,{className:wt("recharts-cartesian-axis-line",zc(u,"className"))}))}function Vme(e,t,n,r,i,a,l,u,f){var d,h,p,y,v,g,b=u?-1:1,w=e.tickSize||l,S=ke(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":d=h=e.coordinate,y=n+ +!u*i,p=y-b*w,g=p-b*f,v=S;break;case"left":p=y=e.coordinate,h=t+ +!u*r,d=h-b*w,v=d-b*f,g=S;break;case"right":p=y=e.coordinate,h=t+ +u*r,d=h+b*w,v=d+b*f,g=S;break;default:d=h=e.coordinate,y=n+ +u*i,p=y+b*w,g=p+b*f,v=S;break}return{line:{x1:d,y1:p,x2:h,y2:y},tick:{x:v,y:g}}}function Fme(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Kme(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function Yme(e){var{option:t,tickProps:n,value:r}=e,i,a=wt(n.className,"recharts-cartesian-axis-tick-value");if(E.isValidElement(t))i=E.cloneElement(t,Zt(Zt({},n),{},{className:a}));else if(typeof t=="function")i=t(Zt(Zt({},n),{},{className:a}));else{var l="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(l=wt(l,Jhe(t))),i=E.createElement(LE,Vl({},n,{className:l}),r)}return i}function Gme(e){var{ticks:t,axisType:n,axisId:r}=e,i=Vt();return E.useEffect(()=>{if(r==null||n==null)return oo;var a=t.map(l=>({value:l.value,coordinate:l.coordinate,offset:l.offset,index:l.index}));return i(Dme({ticks:a,axisId:r,axisType:n})),()=>{i(jme({axisId:r,axisType:n}))}},[i,t,r,n]),null}var Qme=E.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:i,stroke:a,tickFormatter:l,unit:u,padding:f,tickTextProps:d,orientation:h,mirror:p,x:y,y:v,width:g,height:b,tickSize:w,tickMargin:S,fontSize:M,letterSpacing:A,getTicksConfig:O,events:k,axisType:C,axisId:T}=e,P=YE(Zt(Zt({},O),{},{ticks:n}),M,A),D=Hr(O),z=Ih(r),R=WL(D.textAnchor)?D.textAnchor:Fme(h,p),N=Kme(h,p),B={};typeof i=="object"&&(B=i);var I=Zt(Zt({},D),{},{fill:"none"},B),q=P.map(F=>Zt({entry:F},Vme(F,y,v,g,b,h,w,p,S))),L=q.map(F=>{var{entry:H,line:Y}=F;return E.createElement(Yn,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(H.value,"-").concat(H.coordinate,"-").concat(H.tickCoord)},i&&E.createElement("line",Vl({},I,Y,{className:wt("recharts-cartesian-axis-tick-line",zc(i,"className"))})))}),V=q.map((F,H)=>{var Y,$,{entry:K,tick:J}=F,te=Zt(Zt(Zt(Zt({verticalAnchor:N},D),{},{textAnchor:R,stroke:"none",fill:a},J),{},{index:H,payload:K,visibleTicksCount:P.length,tickFormatter:l,padding:f},d),{},{angle:(Y=($=d==null?void 0:d.angle)!==null&&$!==void 0?$:D.angle)!==null&&Y!==void 0?Y:0}),ce=Zt(Zt({},te),z);return E.createElement(Yn,Vl({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(K.value,"-").concat(K.coordinate,"-").concat(K.tickCoord)},P_(k,K,H)),r&&E.createElement(Yme,{option:r,tickProps:ce,value:"".concat(typeof l=="function"?l(K.value,H):K.value).concat(u||"")}))});return E.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(C,"-ticks")},E.createElement(Gme,{ticks:P,axisId:T,axisType:C}),V.length>0&&E.createElement(Kr,{zIndex:En.label},E.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(C,"-tick-labels"),ref:t},V)),L.length>0&&E.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(C,"-tick-lines")},L))}),Zme=E.forwardRef((e,t)=>{var{axisLine:n,width:r,height:i,className:a,hide:l,ticks:u,axisType:f,axisId:d}=e,h=Lme(e,zme),[p,y]=E.useState(""),[v,g]=E.useState(""),b=E.useRef(null);E.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var S;return Nme({ticks:b.current,label:(S=e.labelRef)===null||S===void 0?void 0:S.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var w=E.useCallback(S=>{if(S){var M=S.getElementsByClassName("recharts-cartesian-axis-tick-value");b.current=M;var A=M[0];if(A){var O=window.getComputedStyle(A),k=O.fontSize,C=O.letterSpacing;(k!==p||C!==v)&&(y(k),g(C))}}},[p,v]);return l||r!=null&&r<=0||i!=null&&i<=0?null:E.createElement(Kr,{zIndex:e.zIndex},E.createElement(Yn,{className:wt("recharts-cartesian-axis",a)},E.createElement(Hme,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Hr(e)}),E.createElement(Qme,{ref:w,axisType:f,events:h,fontSize:p,getTicksConfig:e,height:e.height,letterSpacing:v,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:u,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:d}),E.createElement(Dhe,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},E.createElement(Vhe,{label:e.label,labelRef:e.labelRef}),e.children)))}),GE=E.forwardRef((e,t)=>{var n=nr(e,Ga);return E.createElement(Zme,Vl({},n,{ref:t}))});GE.displayName="CartesianAxis";var Xme=["x1","y1","x2","y2","key"],Wme=["offset"],Jme=["xAxisId","yAxisId"],eye=["xAxisId","yAxisId"];function AD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AD(Object(n),!0).forEach(function(r){tye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tye(e,t,n){return(t=nye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nye(e){var t=rye(e,"string");return typeof t=="symbol"?t:t+""}function rye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fl.apply(null,arguments)}function zv(e,t){if(e==null)return{};var n,r,i=iye(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function iye(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var aye=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:a,height:l,ry:u}=e;return E.createElement("rect",{x:r,y:i,ry:u,width:a,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function w9(e){var{option:t,lineItemProps:n}=e,r;if(E.isValidElement(t))r=E.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var i,{x1:a,y1:l,x2:u,y2:f,key:d}=n,h=zv(n,Xme),p=(i=Hr(h))!==null&&i!==void 0?i:{},{offset:y}=p,v=zv(p,Wme);r=E.createElement("line",fl({},v,{x1:a,y1:l,x2:u,y2:f,fill:"none",key:d}))}return r}function oye(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:l}=e,u=zv(e,Jme),f=i.map((d,h)=>{var p=er(er({},u),{},{x1:t,y1:d,x2:t+n,y2:d,key:"line-".concat(h),index:h});return E.createElement(w9,{key:"line-".concat(h),option:r,lineItemProps:p})});return E.createElement("g",{className:"recharts-cartesian-grid-horizontal"},f)}function sye(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:l}=e,u=zv(e,eye),f=i.map((d,h)=>{var p=er(er({},u),{},{x1:d,y1:t,x2:d,y2:t+n,key:"line-".concat(h),index:h});return E.createElement(w9,{option:r,lineItemProps:p,key:"line-".concat(h)})});return E.createElement("g",{className:"recharts-cartesian-grid-vertical"},f)}function lye(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:a,height:l,horizontalPoints:u,horizontal:f=!0}=e;if(!f||!t||!t.length||u==null)return null;var d=u.map(p=>Math.round(p+i-i)).sort((p,y)=>p-y);i!==d[0]&&d.unshift(0);var h=d.map((p,y)=>{var v=d[y+1],g=v==null,b=g?i+l-p:v-p;if(b<=0)return null;var w=y%t.length;return E.createElement("rect",{key:"react-".concat(y),y:p,x:r,height:b,width:a,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function uye(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:a,width:l,height:u,verticalPoints:f}=e;if(!t||!n||!n.length)return null;var d=f.map(p=>Math.round(p+i-i)).sort((p,y)=>p-y);i!==d[0]&&d.unshift(0);var h=d.map((p,y)=>{var v=d[y+1],g=v==null,b=g?i+l-p:v-p;if(b<=0)return null;var w=y%n.length;return E.createElement("rect",{key:"react-".concat(y),x:p,y:a,width:b,height:u,stroke:"none",fill:n[w],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var cye=(e,t)=>{var{xAxis:n,width:r,height:i,offset:a}=e;return i6(YE(er(er(er({},Ga),n),{},{ticks:a6(n),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},fye=(e,t)=>{var{yAxis:n,width:r,height:i,offset:a}=e;return i6(YE(er(er(er({},Ga),n),{},{ticks:a6(n),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},dye={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:En.grid};function hye(e){var t=d6(),n=h6(),r=f6(),i=er(er({},nr(e,dye)),{},{x:ke(e.x)?e.x:r.left,y:ke(e.y)?e.y:r.top,width:ke(e.width)?e.width:r.width,height:ke(e.height)?e.height:r.height}),{xAxisId:a,yAxisId:l,x:u,y:f,width:d,height:h,syncWithTicks:p,horizontalValues:y,verticalValues:v}=i,g=Nn(),b=$e(D=>SR(D,"xAxis",a,g)),w=$e(D=>SR(D,"yAxis",l,g));if(!ta(d)||!ta(h)||!ke(u)||!ke(f))return null;var S=i.verticalCoordinatesGenerator||cye,M=i.horizontalCoordinatesGenerator||fye,{horizontalPoints:A,verticalPoints:O}=i;if((!A||!A.length)&&typeof M=="function"){var k=y&&y.length,C=M({yAxis:w?er(er({},w),{},{ticks:k?y:w.ticks}):void 0,width:t??d,height:n??h,offset:r},k?!0:p);cv(Array.isArray(C),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(A=C)}if((!O||!O.length)&&typeof S=="function"){var T=v&&v.length,P=S({xAxis:b?er(er({},b),{},{ticks:T?v:b.ticks}):void 0,width:t??d,height:n??h,offset:r},T?!0:p);cv(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(O=P)}return E.createElement(Kr,{zIndex:i.zIndex},E.createElement("g",{className:"recharts-cartesian-grid"},E.createElement(aye,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),E.createElement(lye,fl({},i,{horizontalPoints:A})),E.createElement(uye,fl({},i,{verticalPoints:O})),E.createElement(oye,fl({},i,{offset:r,horizontalPoints:A,xAxis:b,yAxis:w})),E.createElement(sye,fl({},i,{offset:r,verticalPoints:O,xAxis:b,yAxis:w}))))}hye.displayName="CartesianGrid";var pye={},S9=Wt({name:"errorBars",initialState:pye,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(a=>a.dataKey===r.dataKey&&a.direction===r.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:j2e,replaceErrorBar:I2e,removeErrorBar:z2e}=S9.actions,mye=S9.reducer,yye=["children"];function vye(e,t){if(e==null)return{};var n,r,i=gye(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gye(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var bye={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},xye=E.createContext(bye);function _9(e){var{children:t}=e,n=vye(e,yye);return E.createElement(xye.Provider,{value:n},t)}function Zg(e,t){var n,r,i=$e(d=>fo(d,e)),a=$e(d=>ho(d,t)),l=(n=i==null?void 0:i.allowDataOverflow)!==null&&n!==void 0?n:wn.allowDataOverflow,u=(r=a==null?void 0:a.allowDataOverflow)!==null&&r!==void 0?r:Sn.allowDataOverflow,f=l||u;return{needClip:f,needClipX:l,needClipY:u}}function QE(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=Qg(),{needClipX:a,needClipY:l,needClip:u}=Zg(t,n);if(!u||!i)return null;var{x:f,y:d,width:h,height:p}=i;return E.createElement("clipPath",{id:"clipPath-".concat(r)},E.createElement("rect",{x:a?f:f-h/2,y:l?d:d-p/2,width:a?h:h*2,height:l?p:p*2}))}var E9=(e,t,n,r)=>ia(e,"xAxis",t,r),A9=(e,t,n,r)=>ra(e,"xAxis",t,r),O9=(e,t,n,r)=>ia(e,"yAxis",n,r),M9=(e,t,n,r)=>ra(e,"yAxis",n,r),wye=le([vt,E9,O9,A9,M9],(e,t,n,r,i)=>Ni(e,"xAxis")?Ss(t,r,!1):Ss(n,i,!1)),Sye=(e,t,n,r,i)=>i;function _ye(e){return e.type==="line"}var Eye=le([Gh,Sye],(e,t)=>e.filter(_ye).find(n=>n.id===t)),Aye=le([vt,E9,O9,A9,M9,Eye,wye,$_],(e,t,n,r,i,a,l,u)=>{var{chartData:f,dataStartIndex:d,dataEndIndex:h}=u;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||l==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:p,data:y}=a,v;if(y!=null&&y.length>0?v=y:v=f==null?void 0:f.slice(d,h+1),v!=null)return Fye({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:p,bandSize:l,displayedData:v})}});function C9(e){var t=Ih(e),n=3,r=2;if(t!=null){var{r:i,strokeWidth:a}=t,l=Number(i),u=Number(a);return(Number.isNaN(l)||l<0)&&(l=n),(Number.isNaN(u)||u<0)&&(u=r),{r:l,strokeWidth:u}}return{r:n,strokeWidth:r}}var Oye=["id"],Mye=["type","layout","connectNulls","needClip","shape"],Cye=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dh.apply(null,arguments)}function OD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OD(Object(n),!0).forEach(function(r){kye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kye(e,t,n){return(t=Tye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tye(e){var t=Pye(e,"string");return typeof t=="symbol"?t:t+""}function Pye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZE(e,t){if(e==null)return{};var n,r,i=Nye(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Nye(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Rye=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:Yc(n,t),payload:e}]},Dye=E.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:l,hide:u,unit:f,tooltipType:d,id:h}=e,p={dataDefinedOnItem:n,getPosition:oo,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Yc(l,t),hide:u,type:d,color:r,unit:f,graphicalItemId:h}};return E.createElement(HE,{tooltipEntrySettings:p})}),k9=(e,t)=>"".concat(t,"px ").concat(e,"px");function jye(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],i=0;i<t;++i)r.push(...n);return r}var Iye=(e,t,n)=>{var r=n.reduce((y,v)=>y+v,0);if(!r)return k9(t,e);for(var i=Math.floor(e/r),a=e%r,l=[],u=0,f=0;u<n.length;f+=(d=n[u])!==null&&d!==void 0?d:0,++u){var d,h=n[u];if(h!=null&&f+h>a){l=[...n.slice(0,u),a-f];break}}var p=l.length%2===0?[0,t]:[t];return[...jye(n,i),...l,...p].map(y=>"".concat(y,"px")).join(", ")};function zye(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:l}=r,{id:u}=r,f=ZE(r,Oye),d=Hr(f);return E.createElement(p9,{points:n,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:a,baseProps:d,needClip:l,clipPathId:t})}function Lye(e){var{showLabels:t,children:n,points:r}=e,i=E.useMemo(()=>r==null?void 0:r.map(a=>{var l,u,f={x:(l=a.x)!==null&&l!==void 0?l:0,y:(u=a.y)!==null&&u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Ki(Ki({},f),{},{value:a.value,payload:a.payload,viewBox:f,parentViewBox:void 0,fill:void 0})}),[r]);return E.createElement($E,{value:t?i:void 0},n)}function MD(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a}=e,{type:l,layout:u,connectNulls:f,needClip:d,shape:h}=a,p=ZE(a,Mye),y=Ki(Ki({},tr(p)),{},{fill:"none",className:"recharts-line-curve",clipPath:d?"url(#clipPath-".concat(t,")"):void 0,points:r,type:l,layout:u,connectNulls:f,strokeDasharray:i??a.strokeDasharray});return E.createElement(E.Fragment,null,(r==null?void 0:r.length)>1&&E.createElement(u9,dh({shapeType:"curve",option:h},y,{pathRef:n})),E.createElement(zye,{points:r,clipPathId:t,props:a}))}function Bye(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function $ye(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:l,strokeDasharray:u,isAnimationActive:f,animationBegin:d,animationDuration:h,animationEasing:p,animateNewValues:y,width:v,height:g,onAnimationEnd:b,onAnimationStart:w}=n,S=i.current,M=Hh(l,"recharts-line-"),A=E.useRef(M),[O,k]=E.useState(!1),C=!O,T=E.useCallback(()=>{typeof b=="function"&&b(),k(!1)},[b]),P=E.useCallback(()=>{typeof w=="function"&&w(),k(!0)},[w]),D=Bye(r.current),z=E.useRef(0);A.current!==M&&(z.current=a.current,A.current=M);var R=z.current;return E.createElement(Lye,{points:l,showLabels:C},n.children,E.createElement(qh,{animationId:M,begin:d,duration:h,isActive:f,easing:p,onAnimationEnd:T,onAnimationStart:P,key:M},N=>{var B=Ct(R,D+R,N),I=Math.min(B,D),q;if(f)if(u){var L="".concat(u).split(/[,\s]+/gim).map(H=>parseFloat(H));q=Iye(I,D,L)}else q=k9(D,I);else q=u==null?void 0:String(u);if(N>0&&D>0&&(i.current=l,a.current=Math.max(a.current,I)),S){var V=S.length/l.length,F=N===1?l:l.map((H,Y)=>{var $=Math.floor(Y*V);if(S[$]){var K=S[$];return Ki(Ki({},H),{},{x:Ct(K.x,H.x,N),y:Ct(K.y,H.y,N)})}return y?Ki(Ki({},H),{},{x:Ct(v*2,H.x,N),y:Ct(g/2,H.y,N)}):Ki(Ki({},H),{},{x:H.x,y:H.y})});return i.current=F,E.createElement(MD,{props:n,points:F,clipPathId:t,pathRef:r,strokeDasharray:q})}return E.createElement(MD,{props:n,points:l,clipPathId:t,pathRef:r,strokeDasharray:q})}),E.createElement(UE,{label:n.label}))}function Uye(e){var{clipPathId:t,props:n}=e,r=E.useRef(null),i=E.useRef(0),a=E.useRef(null);return E.createElement($ye,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:a})}var qye=(e,t)=>{var n,r;return{x:(n=e.x)!==null&&n!==void 0?n:void 0,y:(r=e.y)!==null&&r!==void 0?r:void 0,value:e.value,errorVal:en(e.payload,t)}};class Hye extends E.Component{render(){var{hide:t,dot:n,points:r,className:i,xAxisId:a,yAxisId:l,top:u,left:f,width:d,height:h,id:p,needClip:y,zIndex:v}=this.props;if(t)return null;var g=wt("recharts-line",i),b=p,{r:w,strokeWidth:S}=C9(n),M=qE(n),A=w*2+S,O=y?"url(#clipPath-".concat(M?"":"dots-").concat(b,")"):void 0;return E.createElement(Kr,{zIndex:v},E.createElement(Yn,{className:g},y&&E.createElement("defs",null,E.createElement(QE,{clipPathId:b,xAxisId:a,yAxisId:l}),!M&&E.createElement("clipPath",{id:"clipPath-dots-".concat(b)},E.createElement("rect",{x:f-A/2,y:u-A/2,width:d+A,height:h+A}))),E.createElement(_9,{xAxisId:a,yAxisId:l,data:r,dataPointFormatter:qye,errorBarOffset:0},E.createElement(Uye,{props:this.props,clipPathId:b}))),E.createElement(yS,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:O}))}}var T9={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:En.line,type:"linear"};function Vye(e){var t=nr(e,T9),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:l,connectNulls:u,dot:f,hide:d,isAnimationActive:h,label:p,legendType:y,xAxisId:v,yAxisId:g,id:b}=t,w=ZE(t,Cye),{needClip:S}=Zg(v,g),M=Qg(),A=As(),O=Nn(),k=$e(z=>Aye(z,v,g,O,b));if(A!=="horizontal"&&A!=="vertical"||k==null||M==null)return null;var{height:C,width:T,x:P,y:D}=M;return E.createElement(Hye,dh({},w,{id:b,connectNulls:u,dot:f,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:l,isAnimationActive:h,hide:d,label:p,legendType:y,xAxisId:v,yAxisId:g,points:k,layout:A,height:C,width:T,left:P,top:D,needClip:S}))}function Fye(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:l,bandSize:u,displayedData:f}=e;return f.map((d,h)=>{var p=en(d,l);if(t==="horizontal"){var y=uv({axis:n,ticks:i,bandSize:u,entry:d,index:h}),v=zt(p)?null:r.scale.map(p);return{x:y,y:v??null,value:p,payload:d}}var g=zt(p)?null:n.scale.map(p),b=uv({axis:r,ticks:a,bandSize:u,entry:d,index:h});return g==null||b==null?null:{x:g,y:b,value:p,payload:d}}).filter(Boolean)}function Kye(e){var t=nr(e,T9),n=Nn();return E.createElement(FE,{id:t.id,type:"line"},r=>E.createElement(E.Fragment,null,E.createElement(VE,{legendPayload:Rye(t)}),E.createElement(Dye,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:r}),E.createElement(KE,{type:"line",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),E.createElement(Vye,dh({},t,{id:r}))))}var Yye=E.memo(Kye,Gc);Yye.displayName="Line";function sa(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:m9}function la(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:m9}var P9=(e,t,n)=>ia(e,"xAxis",sa(e,t),n),N9=(e,t,n)=>ra(e,"xAxis",sa(e,t),n),R9=(e,t,n)=>ia(e,"yAxis",la(e,t),n),D9=(e,t,n)=>ra(e,"yAxis",la(e,t),n),Gye=le([vt,P9,R9,N9,D9],(e,t,n,r,i)=>Ni(e,"xAxis")?Ss(t,r,!1):Ss(n,i,!1)),Qye=(e,t)=>t,j9=le([Gh,Qye],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),I9=e=>{var t=vt(e),n=Ni(t,"xAxis");return n?"yAxis":"xAxis"},Zye=(e,t)=>{var n=I9(e);return n==="yAxis"?la(e,t):sa(e,t)},Xye=(e,t,n)=>kv(e,I9(e),Zye(e,t),n),Wye=le([j9,Xye],(e,t)=>{var n;if(!(e==null||t==null)){var{stackId:r}=e,i=Ig(e);if(!(r==null||i==null)){var a=(n=t[r])===null||n===void 0?void 0:n.stackedData,l=a==null?void 0:a.find(u=>u.key===i);if(l!=null)return l.map(u=>[u[0],u[1]])}}}),Jye=le([vt,P9,R9,N9,D9,Wye,D6,Gye,j9,dse],(e,t,n,r,i,a,l,u,f,d)=>{var{chartData:h,dataStartIndex:p,dataEndIndex:y}=l;if(!(f==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||i==null||r.length===0||i.length===0||u==null)){var{data:v}=f,g;if(v&&v.length>0?g=v:g=h==null?void 0:h.slice(p,y+1),g!=null)return bve({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:p,areaSettings:f,stackedData:a,displayedData:g,chartBaseValue:d,bandSize:u})}}),eve=["id"],tve=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ol.apply(null,arguments)}function z9(e,t){if(e==null)return{};var n,r,i=nve(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nve(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function CD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CD(Object(n),!0).forEach(function(r){rve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rve(e,t,n){return(t=ive(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ive(e){var t=ave(e,"string");return typeof t=="symbol"?t:t+""}function ave(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lv(e,t){return e&&e!=="none"?e:t}var ove=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:a,hide:l}=e;return[{inactive:l,dataKey:t,type:a,color:Lv(r,i),value:Yc(n,t),payload:e}]},sve=E.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:l,hide:u,unit:f,tooltipType:d,id:h}=e,p={dataDefinedOnItem:n,getPosition:oo,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Yc(l,t),hide:u,type:d,color:Lv(r,a),unit:f,graphicalItemId:h}};return E.createElement(HE,{tooltipEntrySettings:p})});function lve(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:a,dataKey:l}=r,u=Hr(r);return E.createElement(p9,{points:n,dot:a,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:u,needClip:i,clipPathId:t})}function uve(e){var{showLabels:t,children:n,points:r}=e,i=r.map(a=>{var l,u,f={x:(l=a.x)!==null&&l!==void 0?l:0,y:(u=a.y)!==null&&u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return rc(rc({},f),{},{value:a.value,payload:a.payload,parentViewBox:void 0,viewBox:f,fill:void 0})});return E.createElement($E,{value:t?i:void 0},n)}function kD(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:a}=e,{layout:l,type:u,stroke:f,connectNulls:d,isRange:h}=a,{id:p}=a,y=z9(a,eve),v=Hr(y),g=tr(y);return E.createElement(E.Fragment,null,(t==null?void 0:t.length)>1&&E.createElement(Yn,{clipPath:r?"url(#clipPath-".concat(i,")"):void 0},E.createElement(Rd,Ol({},g,{id:p,points:t,connectNulls:d,type:u,baseLine:n,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&E.createElement(Rd,Ol({},v,{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:t})),f!=="none"&&h&&Array.isArray(n)&&E.createElement(Rd,Ol({},v,{className:"recharts-area-curve",layout:l,type:u,connectNulls:d,fill:"none",points:n}))),E.createElement(lve,{points:t,props:y,clipPathId:i}))}function cve(e){var t,n,{alpha:r,baseLine:i,points:a,strokeWidth:l}=e,u=(t=a[0])===null||t===void 0?void 0:t.y,f=(n=a[a.length-1])===null||n===void 0?void 0:n.y;if(!et(u)||!et(f))return null;var d=r*Math.abs(u-f),h=Math.max(...a.map(p=>p.x||0));return ke(i)?h=Math.max(i,h):i&&Array.isArray(i)&&i.length&&(h=Math.max(...i.map(p=>p.x||0),h)),ke(h)?E.createElement("rect",{x:0,y:u<f?u:u-d,width:h+(l?parseInt("".concat(l),10):1),height:Math.floor(d)}):null}function fve(e){var t,n,{alpha:r,baseLine:i,points:a,strokeWidth:l}=e,u=(t=a[0])===null||t===void 0?void 0:t.x,f=(n=a[a.length-1])===null||n===void 0?void 0:n.x;if(!et(u)||!et(f))return null;var d=r*Math.abs(u-f),h=Math.max(...a.map(p=>p.y||0));return ke(i)?h=Math.max(i,h):i&&Array.isArray(i)&&i.length&&(h=Math.max(...i.map(p=>p.y||0),h)),ke(h)?E.createElement("rect",{x:u<f?u:u-d,y:0,width:d,height:Math.floor(h+(l?parseInt("".concat(l),10):1))}):null}function dve(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:a}=e;return n==="vertical"?E.createElement(cve,{alpha:t,points:r,baseLine:i,strokeWidth:a}):E.createElement(fve,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function hve(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a}=e,{points:l,baseLine:u,isAnimationActive:f,animationBegin:d,animationDuration:h,animationEasing:p,onAnimationStart:y,onAnimationEnd:v}=r,g=E.useMemo(()=>({points:l,baseLine:u}),[l,u]),b=Hh(g,"recharts-area-"),w=z_(),[S,M]=E.useState(!1),A=!S,O=E.useCallback(()=>{typeof v=="function"&&v(),M(!1)},[v]),k=E.useCallback(()=>{typeof y=="function"&&y(),M(!0)},[y]);if(w==null)return null;var C=i.current,T=a.current;return E.createElement(uve,{showLabels:A,points:l},r.children,E.createElement(qh,{animationId:b,begin:d,duration:h,isActive:f,easing:p,onAnimationEnd:O,onAnimationStart:k,key:b},P=>{if(C){var D=C.length/l.length,z=P===1?l:l.map((N,B)=>{var I=Math.floor(B*D);if(C[I]){var q=C[I];return rc(rc({},N),{},{x:Ct(q.x,N.x,P),y:Ct(q.y,N.y,P)})}return N}),R;return ke(u)?R=Ct(T,u,P):zt(u)||Ci(u)?R=Ct(T,0,P):R=u.map((N,B)=>{var I=Math.floor(B*D);if(Array.isArray(T)&&T[I]){var q=T[I];return rc(rc({},N),{},{x:Ct(q.x,N.x,P),y:Ct(q.y,N.y,P)})}return N}),P>0&&(i.current=z,a.current=R),E.createElement(kD,{points:z,baseLine:R,needClip:t,clipPathId:n,props:r})}return P>0&&(i.current=l,a.current=u),E.createElement(Yn,null,f&&E.createElement("defs",null,E.createElement("clipPath",{id:"animationClipPath-".concat(n)},E.createElement(dve,{alpha:P,points:l,baseLine:u,layout:w,strokeWidth:r.strokeWidth}))),E.createElement(Yn,{clipPath:"url(#animationClipPath-".concat(n,")")},E.createElement(kD,{points:l,baseLine:u,needClip:t,clipPathId:n,props:r})))}),E.createElement(UE,{label:r.label}))}function pve(e){var{needClip:t,clipPathId:n,props:r}=e,i=E.useRef(null),a=E.useRef();return E.createElement(hve,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a})}class mve extends E.PureComponent{render(){var{hide:t,dot:n,points:r,className:i,top:a,left:l,needClip:u,xAxisId:f,yAxisId:d,width:h,height:p,id:y,baseLine:v,zIndex:g}=this.props;if(t)return null;var b=wt("recharts-area",i),w=y,{r:S,strokeWidth:M}=C9(n),A=qE(n),O=S*2+M,k=u?"url(#clipPath-".concat(A?"":"dots-").concat(w,")"):void 0;return E.createElement(Kr,{zIndex:g},E.createElement(Yn,{className:b},u&&E.createElement("defs",null,E.createElement(QE,{clipPathId:w,xAxisId:f,yAxisId:d}),!A&&E.createElement("clipPath",{id:"clipPath-dots-".concat(w)},E.createElement("rect",{x:l-O/2,y:a-O/2,width:h+O,height:p+O}))),E.createElement(pve,{needClip:u,clipPathId:w,props:this.props})),E.createElement(yS,{points:r,mainColor:Lv(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:k}),this.props.isRange&&Array.isArray(v)&&E.createElement(yS,{points:v,mainColor:Lv(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:k}))}}var yve={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:En.area};function vve(e){var t,{activeDot:n,animationBegin:r,animationDuration:i,animationEasing:a,connectNulls:l,dot:u,fill:f,fillOpacity:d,hide:h,isAnimationActive:p,legendType:y,stroke:v,xAxisId:g,yAxisId:b}=e,w=z9(e,tve),S=As(),M=LL(),{needClip:A}=Zg(g,b),O=Nn(),{points:k,isRange:C,baseLine:T}=(t=$e(B=>Jye(B,e.id,O)))!==null&&t!==void 0?t:{},P=Qg();if(S!=="horizontal"&&S!=="vertical"||P==null||M!=="AreaChart"&&M!=="ComposedChart")return null;var{height:D,width:z,x:R,y:N}=P;return!k||!k.length?null:E.createElement(mve,Ol({},w,{activeDot:n,animationBegin:r,animationDuration:i,animationEasing:a,baseLine:T,connectNulls:l,dot:u,fill:f,fillOpacity:d,height:D,hide:h,layout:S,isAnimationActive:p,isRange:C,legendType:y,needClip:A,points:k,stroke:v,width:z,left:R,top:N,xAxisId:g,yAxisId:b}))}var gve=(e,t,n,r,i)=>{var a=n??t;if(ke(a))return a;var l=e==="horizontal"?i:r,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return a==="dataMin"?d:a==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return a==="dataMin"?u[0]:a==="dataMax"?u[1]:u[0]};function bve(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:a,chartBaseValue:l,xAxis:u,yAxis:f,displayedData:d,dataStartIndex:h,xAxisTicks:p,yAxisTicks:y,bandSize:v}=e,g=i&&i.length,b=gve(a,l,n,u,f),w=a==="horizontal",S=!1,M=d.map((O,k)=>{var C,T,P,D;if(g)D=i[h+k];else{var z=en(O,r);Array.isArray(z)?(D=z,S=!0):D=[b,z]}var R=(C=(T=D)===null||T===void 0?void 0:T[1])!==null&&C!==void 0?C:null,N=R==null||g&&!t&&en(O,r)==null;if(w){var B;return{x:uv({axis:u,ticks:p,bandSize:v,entry:O,index:k}),y:N?null:(B=f.scale.map(R))!==null&&B!==void 0?B:null,value:D,payload:O}}return{x:N?null:(P=u.scale.map(R))!==null&&P!==void 0?P:null,y:uv({axis:f,ticks:y,bandSize:v,entry:O,index:k}),value:D,payload:O}}),A;return g||S?A=M.map(O=>{var k,C=Array.isArray(O.value)?O.value[0]:null;if(w){var T;return{x:O.x,y:C!=null&&O.y!=null&&(T=f.scale.map(C))!==null&&T!==void 0?T:null,payload:O.payload}}return{x:C!=null&&(k=u.scale.map(C))!==null&&k!==void 0?k:null,y:O.y,payload:O.payload}}):A=w?f.scale.map(b):u.scale.map(b),{points:M,baseLine:A??0,isRange:S}}function xve(e){var t=nr(e,yve),n=Nn();return E.createElement(FE,{id:t.id,type:"area"},r=>E.createElement(E.Fragment,null,E.createElement(VE,{legendPayload:ove(t)}),E.createElement(sve,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:r}),E.createElement(KE,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:o6(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),E.createElement(vve,Ol({},t,{id:r}))))}var wve=E.memo(xve,Gc);wve.displayName="Area";var Sve="Invariant failed";function _ve(e,t){throw new Error(Sve)}function vS(){return vS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vS.apply(null,arguments)}function XE(e){return E.createElement(u9,vS({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var Eve=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(ke(t))return t;var a=ke(r)||zt(r);return a?t(r,i):(a||_ve(),n)}},Ave=(e,t,n)=>n,Ove=(e,t)=>t,tp=le([Gh,Ove],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),Mve=le([tp],e=>e==null?void 0:e.maxBarSize),Cve=(e,t,n,r)=>r,kve=le([vt,Gh,sa,la,Ave],(e,t,n,r,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===n:a.yAxisId===r).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),Tve=(e,t,n)=>{var r=vt(e),i=sa(e,t),a=la(e,t);if(!(i==null||a==null))return r==="horizontal"?kv(e,"yAxis",a,n):kv(e,"xAxis",i,n)},Pve=(e,t)=>{var n=vt(e),r=sa(e,t),i=la(e,t);if(!(r==null||i==null))return n==="horizontal"?wR(e,"xAxis",r):wR(e,"yAxis",i)},Nve=le([kve,fse,Pve],ame),Rve=(e,t,n)=>{var r,i,a=tp(e,t);if(a==null)return 0;var l=sa(e,t),u=la(e,t);if(l==null||u==null)return 0;var f=vt(e),d=K6(e),{maxBarSize:h}=a,p=zt(h)?d:h,y,v;return f==="horizontal"?(y=ia(e,"xAxis",l,n),v=ra(e,"xAxis",l,n)):(y=ia(e,"yAxis",u,n),v=ra(e,"yAxis",u,n)),(r=(i=Ss(y,v,!0))!==null&&i!==void 0?i:p)!==null&&r!==void 0?r:0},L9=(e,t,n)=>{var r=vt(e),i=sa(e,t),a=la(e,t);if(!(i==null||a==null)){var l,u;return r==="horizontal"?(l=ia(e,"xAxis",i,n),u=ra(e,"xAxis",i,n)):(l=ia(e,"yAxis",a,n),u=ra(e,"yAxis",a,n)),Ss(l,u)}},Dve=le([Nve,K6,cse,Y6,Rve,L9,Mve],cme),jve=(e,t,n)=>{var r=sa(e,t);if(r!=null)return ia(e,"xAxis",r,n)},Ive=(e,t,n)=>{var r=la(e,t);if(r!=null)return ia(e,"yAxis",r,n)},zve=(e,t,n)=>{var r=sa(e,t);if(r!=null)return ra(e,"xAxis",r,n)},Lve=(e,t,n)=>{var r=la(e,t);if(r!=null)return ra(e,"yAxis",r,n)},Bve=le([Dve,tp],dme),$ve=le([Tve,tp],fme),Uve=le([Pn,D_,jve,Ive,zve,Lve,Bve,vt,D6,L9,$ve,tp,Cve],(e,t,n,r,i,a,l,u,f,d,h,p,y)=>{var{chartData:v,dataStartIndex:g,dataEndIndex:b}=f;if(!(p==null||l==null||t==null||u!=="horizontal"&&u!=="vertical"||n==null||r==null||i==null||a==null||d==null)){var{data:w}=p,S;if(w!=null&&w.length>0?S=w:S=v==null?void 0:v.slice(g,b+1),S!=null)return mge({layout:u,barSettings:p,pos:l,parentViewBox:t,bandSize:d,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,stackedData:h,displayedData:S,offset:e,cells:y,dataStartIndex:g})}}),qve=["index"];function gS(){return gS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gS.apply(null,arguments)}function Hve(e,t){if(e==null)return{};var n,r,i=Vve(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vve(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var B9=E.createContext(void 0),Fve=e=>{var t=E.useContext(B9);if(t!=null)return t.stackId;if(e!=null)return o6(e)},Kve=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),Yve=e=>{var t=E.useContext(B9);if(t!=null){var{stackId:n}=t;return"url(#".concat(Kve(n,e),")")}},$9=e=>{var{index:t}=e,n=Hve(e,qve),r=Yve(t);return E.createElement(Yn,gS({className:"recharts-bar-stack-layer",clipPath:r},n))},Gve=["onMouseEnter","onMouseLeave","onClick"],Qve=["value","background","tooltipPosition"],Zve=["id"],Xve=["onMouseEnter","onClick","onMouseLeave"];function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_s.apply(null,arguments)}function TD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TD(Object(n),!0).forEach(function(r){Wve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wve(e,t,n){return(t=Jve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jve(e){var t=ege(e,"string");return typeof t=="symbol"?t:t+""}function ege(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bv(e,t){if(e==null)return{};var n,r,i=tge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var nge=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:Yc(n,t),payload:e}]},rge=E.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:l,unit:u,tooltipType:f,id:d}=e,h={dataDefinedOnItem:void 0,getPosition:oo,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:Yc(a,t),hide:l,type:f,color:i,unit:u,graphicalItemId:d}};return E.createElement(HE,{tooltipEntrySettings:h})});function ige(e){var t=$e(Hl),{data:n,dataKey:r,background:i,allOtherBarProps:a}=e,{onMouseEnter:l,onMouseLeave:u,onClick:f}=a,d=Bv(a,Gve),h=c9(l,r,a.id),p=f9(u),y=d9(f,r,a.id);if(!i||n==null)return null;var v=Ih(i);return E.createElement(Kr,{zIndex:hme(i,En.barBackground)},n.map((g,b)=>{var{value:w,background:S,tooltipPosition:M}=g,A=Bv(g,Qve);if(!S)return null;var O=h(g,b),k=p(g,b),C=y(g,b),T=sr(sr(sr(sr(sr({option:i,isActive:String(b)===t},A),{},{fill:"#eee"},S),v),P_(d,g,b)),{},{onMouseEnter:O,onMouseLeave:k,onClick:C,dataKey:r,index:b,className:"recharts-bar-background-rectangle"});return E.createElement(XE,_s({key:"background-bar-".concat(b)},T))}))}function age(e){var{showLabels:t,children:n,rects:r}=e,i=r==null?void 0:r.map(a=>{var l={x:a.x,y:a.y,width:a.width,lowerWidth:a.width,upperWidth:a.width,height:a.height};return sr(sr({},l),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:l,fill:a.fill})});return E.createElement($E,{value:t?i:void 0},n)}function oge(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:a,dataKey:l}=e,u=$e(Hl),f=$e(jL),d=n&&String(i.originalDataIndex)===u&&(f==null||l===f),[h,p]=E.useState(!1),[y,v]=E.useState(!1);E.useEffect(()=>{var A;return d?(p(!0),A=requestAnimationFrame(()=>{v(!0)})):v(!1),()=>{cancelAnimationFrame(A)}},[d]);var g=E.useCallback(()=>{d||p(!1)},[d]),b=d&&y,w=d||h,S;d?n===!0?S=t:S=n:S=t;var M=E.createElement(XE,_s({},r,{name:String(r.name)},i,{isActive:b,option:S,index:a,dataKey:l,onTransitionEnd:g}));return w?E.createElement(Kr,{zIndex:En.activeBar},E.createElement($9,{index:i.originalDataIndex},M)):M}function sge(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:a}=e;return E.createElement(XE,_s({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:a}))}function lge(e){var t,{data:n,props:r}=e,i=(t=Hr(r))!==null&&t!==void 0?t:{},{id:a}=i,l=Bv(i,Zve),{shape:u,dataKey:f,activeBar:d}=r,{onMouseEnter:h,onClick:p,onMouseLeave:y}=r,v=Bv(r,Xve),g=c9(h,f,a),b=f9(y),w=d9(p,f,a);return n?E.createElement(E.Fragment,null,n.map((S,M)=>E.createElement($9,_s({index:S.originalDataIndex,key:"rectangle-".concat(S==null?void 0:S.x,"-").concat(S==null?void 0:S.y,"-").concat(S==null?void 0:S.value,"-").concat(M),className:"recharts-bar-rectangle"},P_(v,S,M),{onMouseEnter:g(S,M),onMouseLeave:b(S,M),onClick:w(S,M)}),d?E.createElement(oge,{shape:u,activeBar:d,baseProps:l,entry:S,index:M,dataKey:f}):E.createElement(sge,{shape:u,baseProps:l,entry:S,index:M,dataKey:f})))):null}function uge(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:a,animationBegin:l,animationDuration:u,animationEasing:f,onAnimationEnd:d,onAnimationStart:h}=t,p=n.current,y=Hh(t,"recharts-bar-"),[v,g]=E.useState(!1),b=!v,w=E.useCallback(()=>{typeof d=="function"&&d(),g(!1)},[d]),S=E.useCallback(()=>{typeof h=="function"&&h(),g(!0)},[h]);return E.createElement(age,{showLabels:b,rects:r},E.createElement(qh,{animationId:y,begin:l,duration:u,isActive:a,easing:f,onAnimationEnd:w,onAnimationStart:S,key:y},M=>{var A=M===1?r:r==null?void 0:r.map((O,k)=>{var C=p&&p[k];if(C)return sr(sr({},O),{},{x:Ct(C.x,O.x,M),y:Ct(C.y,O.y,M),width:Ct(C.width,O.width,M),height:Ct(C.height,O.height,M)});if(i==="horizontal"){var T=Ct(0,O.height,M),P=Ct(O.stackedBarStart,O.y,M);return sr(sr({},O),{},{y:P,height:T})}var D=Ct(0,O.width,M),z=Ct(O.stackedBarStart,O.x,M);return sr(sr({},O),{},{width:D,x:z})});return M>0&&(n.current=A??null),A==null?null:E.createElement(Yn,null,E.createElement(lge,{props:t,data:A}))}),E.createElement(UE,{label:t.label}),t.children)}function cge(e){var t=E.useRef(null);return E.createElement(uge,{previousRectanglesRef:t,props:e})}var U9=0,fge=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:en(e,t)}};class dge extends E.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:a,yAxisId:l,needClip:u,background:f,id:d}=this.props;if(t||n==null)return null;var h=wt("recharts-bar",i),p=d;return E.createElement(Yn,{className:h,id:d},u&&E.createElement("defs",null,E.createElement(QE,{clipPathId:p,xAxisId:a,yAxisId:l})),E.createElement(Yn,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(p,")"):void 0},E.createElement(ige,{data:n,dataKey:r,background:f,allOtherBarProps:this.props}),E.createElement(cge,this.props)))}}var hge={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:U9,xAxisId:0,yAxisId:0,zIndex:En.bar};function pge(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:l,animationBegin:u,animationDuration:f,animationEasing:d,isAnimationActive:h}=e,{needClip:p}=Zg(t,n),y=As(),v=Nn(),g=rpe(e.children,KL),b=$e(M=>Uve(M,e.id,v,g));if(y!=="vertical"&&y!=="horizontal")return null;var w,S=b==null?void 0:b[0];return S==null||S.height==null||S.width==null?w=0:w=y==="vertical"?S.height/2:S.width/2,E.createElement(_9,{xAxisId:t,yAxisId:n,data:b,dataPointFormatter:fge,errorBarOffset:w},E.createElement(dge,_s({},e,{layout:y,needClip:p,data:b,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:l,animationBegin:u,animationDuration:f,animationEasing:d,isAnimationActive:h})))}function mge(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r,hasCustomShape:i},pos:a,bandSize:l,xAxis:u,yAxis:f,xAxisTicks:d,yAxisTicks:h,stackedData:p,displayedData:y,offset:v,cells:g,parentViewBox:b,dataStartIndex:w}=e,S=t==="horizontal"?f:u,M=p?S.scale.domain():null,A=Pie({numericAxis:S}),O=S.scale.map(A);return y.map((k,C)=>{var T,P,D,z,R,N;if(p){var B=p[C+w];if(B==null)return null;T=Oie(B,M)}else T=en(k,n),Array.isArray(T)||(T=[A,T]);var I=Eve(r,U9)(T[1],C);if(t==="horizontal"){var q,L=f.scale.map(T[0]),V=f.scale.map(T[1]);if(L==null||V==null)return null;P=TN({axis:u,ticks:d,bandSize:l,offset:a.offset,entry:k,index:C}),D=(q=V??L)!==null&&q!==void 0?q:void 0,z=a.size;var F=L-V;if(R=Ci(F)?0:F,N={x:P,y:v.top,width:z,height:v.height},Math.abs(I)>0&&Math.abs(R)<Math.abs(I)){var H=Ar(R||I)*(Math.abs(I)-Math.abs(R));D-=H,R+=H}}else{var Y=u.scale.map(T[0]),$=u.scale.map(T[1]);if(Y==null||$==null)return null;if(P=Y,D=TN({axis:f,ticks:h,bandSize:l,offset:a.offset,entry:k,index:C}),z=$-Y,R=a.size,N={x:v.left,y:D,width:v.width,height:R},Math.abs(I)>0&&Math.abs(z)<Math.abs(I)){var K=Ar(z||I)*(Math.abs(I)-Math.abs(z));z+=K}}if(P==null||D==null||z==null||R==null||!i&&(z===0||R===0))return null;var J=sr(sr({},k),{},{stackedBarStart:O,x:P,y:D,width:z,height:R,value:p?T:T[1],payload:k,background:N,tooltipPosition:{x:P+z/2,y:D+R/2},parentViewBox:b,originalDataIndex:C},g&&g[C]&&g[C].props);return J}).filter(Boolean)}function yge(e){var t=nr(e,hge),n=Fve(t.stackId),r=Nn();return E.createElement(FE,{id:t.id,type:"bar"},i=>E.createElement(E.Fragment,null,E.createElement(VE,{legendPayload:nge(t)}),E.createElement(rge,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:i}),E.createElement(KE,{type:"bar",id:i,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null}),E.createElement(Kr,{zIndex:t.zIndex},E.createElement(pge,_s({},t,{id:i})))))}var vge=E.memo(yge,Gc);vge.displayName="Bar";var gge=["domain","range"],bge=["domain","range"];function PD(e,t){if(e==null)return{};var n,r,i=xge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ND(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function q9(e,t){if(e===t)return!0;var{domain:n,range:r}=e,i=PD(e,gge),{domain:a,range:l}=t,u=PD(t,bge);return!ND(n,a)||!ND(r,l)?!1:Gc(i,u)}var wge=["type"],Sge=["dangerouslySetInnerHTML","ticks","scale"],_ge=["id","scale"];function bS(){return bS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bS.apply(null,arguments)}function RD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RD(Object(n),!0).forEach(function(r){Ege(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ege(e,t,n){return(t=Age(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Age(e){var t=Oge(e,"string");return typeof t=="symbol"?t:t+""}function Oge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xS(e,t){if(e==null)return{};var n,r,i=Mge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Cge(e){var t=Vt(),n=E.useRef(null),r=z_(),{type:i}=e,a=xS(e,wge),l=Rg(r,"xAxis",i),u=E.useMemo(()=>{if(l!=null)return DD(DD({},a),{},{type:l})},[a,l]);return E.useLayoutEffect(()=>{u!=null&&(n.current===null?t(Vpe(u)):n.current!==u&&t(Fpe({prev:n.current,next:u})),n.current=u)},[u,t]),E.useLayoutEffect(()=>()=>{n.current&&(t(Kpe(n.current)),n.current=null)},[t]),null}var kge=e=>{var{xAxisId:t,className:n}=e,r=$e(D_),i=Nn(),a="xAxis",l=$e(S=>pL(S,a,t,i)),u=$e(S=>fL(S,t)),f=$e(S=>Sce(S,t)),d=$e(S=>D8(S,t));if(u==null||f==null||d==null)return null;var{dangerouslySetInnerHTML:h,ticks:p,scale:y}=e,v=xS(e,Sge),{id:g,scale:b}=d,w=xS(d,_ge);return E.createElement(GE,bS({},v,w,{x:f.x,y:f.y,width:u.width,height:u.height,className:wt("recharts-".concat(a," ").concat(a),n),viewBox:r,ticks:l,axisType:a,axisId:t}))},Tge={allowDataOverflow:wn.allowDataOverflow,allowDecimals:wn.allowDecimals,allowDuplicatedCategory:wn.allowDuplicatedCategory,angle:wn.angle,axisLine:Ga.axisLine,height:wn.height,hide:!1,includeHidden:wn.includeHidden,interval:wn.interval,label:!1,minTickGap:wn.minTickGap,mirror:wn.mirror,orientation:wn.orientation,padding:wn.padding,reversed:wn.reversed,scale:wn.scale,tick:wn.tick,tickCount:wn.tickCount,tickLine:Ga.tickLine,tickSize:Ga.tickSize,type:wn.type,niceTicks:wn.niceTicks,xAxisId:0},Pge=e=>{var t=nr(e,Tge);return E.createElement(E.Fragment,null,E.createElement(Cge,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),E.createElement(kge,t))},Nge=E.memo(Pge,q9);Nge.displayName="XAxis";var Rge=["type"],Dge=["dangerouslySetInnerHTML","ticks","scale"],jge=["id","scale"];function wS(){return wS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wS.apply(null,arguments)}function jD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ID(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jD(Object(n),!0).forEach(function(r){Ige(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ige(e,t,n){return(t=zge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zge(e){var t=Lge(e,"string");return typeof t=="symbol"?t:t+""}function Lge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SS(e,t){if(e==null)return{};var n,r,i=Bge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $ge(e){var t=Vt(),n=E.useRef(null),r=z_(),{type:i}=e,a=SS(e,Rge),l=Rg(r,"yAxis",i),u=E.useMemo(()=>{if(l!=null)return ID(ID({},a),{},{type:l})},[l,a]);return E.useLayoutEffect(()=>{u!=null&&(n.current===null?t(Ype(u)):n.current!==u&&t(Gpe({prev:n.current,next:u})),n.current=u)},[u,t]),E.useLayoutEffect(()=>()=>{n.current&&(t(Qpe(n.current)),n.current=null)},[t]),null}function Uge(e){var{yAxisId:t,className:n,width:r,label:i}=e,a=E.useRef(null),l=E.useRef(null),u=$e(D_),f=Nn(),d=Vt(),h="yAxis",p=$e(C=>dL(C,t)),y=$e(C=>Ece(C,t)),v=$e(C=>pL(C,h,t,f)),g=$e(C=>j8(C,t));if(E.useLayoutEffect(()=>{if(!(r!=="auto"||!p||BE(i)||E.isValidElement(i)||g==null)){var C=a.current;if(C){var T=C.getCalculatedWidth();Math.round(p.width)!==Math.round(T)&&d(Zpe({id:t,width:T}))}}},[v,p,d,i,t,r,g]),p==null||y==null||g==null)return null;var{dangerouslySetInnerHTML:b,ticks:w,scale:S}=e,M=SS(e,Dge),{id:A,scale:O}=g,k=SS(g,jge);return E.createElement(GE,wS({},M,k,{ref:a,labelRef:l,x:y.x,y:y.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:p.width,height:p.height,className:wt("recharts-".concat(h," ").concat(h),n),viewBox:u,ticks:v,axisType:h,axisId:t}))}var qge={allowDataOverflow:Sn.allowDataOverflow,allowDecimals:Sn.allowDecimals,allowDuplicatedCategory:Sn.allowDuplicatedCategory,angle:Sn.angle,axisLine:Ga.axisLine,hide:!1,includeHidden:Sn.includeHidden,interval:Sn.interval,label:!1,minTickGap:Sn.minTickGap,mirror:Sn.mirror,orientation:Sn.orientation,padding:Sn.padding,reversed:Sn.reversed,scale:Sn.scale,tick:Sn.tick,tickCount:Sn.tickCount,tickLine:Ga.tickLine,tickSize:Ga.tickSize,type:Sn.type,niceTicks:Sn.niceTicks,width:Sn.width,yAxisId:0},Hge=e=>{var t=nr(e,qge);return E.createElement(E.Fragment,null,E.createElement($ge,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),E.createElement(Uge,t))},Vge=E.memo(Hge,q9);Vge.displayName="YAxis";var Fge=(e,t)=>t,WE=le([Fge,vt,e8,Dn,PL,po,Kfe,Pn],Jfe);function Kge(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function JE(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(Kge(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;n=a.offsetWidth>0?t.width/a.offsetWidth:1,r=a.offsetHeight>0?t.height/a.offsetHeight:1}var l=(u,f)=>({relativeX:Math.round((u-t.left)/n),relativeY:Math.round((f-t.top)/r)});return"touches"in e?Array.from(e.touches).map(u=>l(u.clientX,u.clientY)):l(e.clientX,e.clientY)}var H9=Jt("mouseClick"),V9=Ch();V9.startListening({actionCreator:H9,effect:(e,t)=>{var n=e.payload,r=WE(t.getState(),JE(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch($ce({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var _S=Jt("mouseMove"),F9=Ch(),Fu=null,Js=null,hw=null;F9.startListening({actionCreator:_S,effect:(e,t)=>{var n=e.payload,r=t.getState(),{throttleDelay:i,throttledEvents:a}=r.eventSettings,l=a==="all"||(a==null?void 0:a.includes("mousemove"));Fu!==null&&(cancelAnimationFrame(Fu),Fu=null),Js!==null&&(typeof i!="number"||!l)&&(clearTimeout(Js),Js=null),hw=JE(n);var u=()=>{var f=t.getState(),d=ME(f,f.tooltip.settings.shared);if(!hw){Fu=null,Js=null;return}if(d==="axis"){var h=WE(f,hw);(h==null?void 0:h.activeIndex)!=null?t.dispatch(SL({activeIndex:h.activeIndex,activeDataKey:void 0,activeCoordinate:h.activeCoordinate})):t.dispatch(wL())}Fu=null,Js=null};if(!l){u();return}i==="raf"?Fu=requestAnimationFrame(u):typeof i=="number"&&Js===null&&(Js=setTimeout(u,i))}});function Yge(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var zD={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},K9=Wt({name:"rootProps",initialState:zD,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:zD.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),Gge=K9.reducer,{updateOptions:Qge}=K9.actions,Zge=null,Xge={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},Y9=Wt({name:"polarOptions",initialState:Zge,reducers:Xge}),{updatePolarOptions:L2e}=Y9.actions,Wge=Y9.reducer,G9=Jt("keyDown"),Q9=Jt("focus"),Z9=Jt("blur"),Xg=Ch(),Ku=null,el=null,ay=null;Xg.startListening({actionCreator:G9,effect:(e,t)=>{ay=e.payload,Ku!==null&&(cancelAnimationFrame(Ku),Ku=null);var n=t.getState(),{throttleDelay:r,throttledEvents:i}=n.eventSettings,a=i==="all"||i.includes("keydown");el!==null&&(typeof r!="number"||!a)&&(clearTimeout(el),el=null);var l=()=>{try{var u=t.getState(),f=u.rootProps.accessibilityLayer!==!1;if(!f)return;var{keyboardInteraction:d}=u.tooltip,h=ay;if(h!=="ArrowRight"&&h!=="ArrowLeft"&&h!=="Enter")return;var p=CE(d,nf(u),Xh(u),Jh(u)),y=p==null?-1:Number(p);if(!Number.isFinite(y)||y<0)return;var v=po(u);if(h==="Enter"){var g=Nv(u,"axis","hover",String(d.index));t.dispatch(Pv({active:!d.active,activeIndex:d.index,activeCoordinate:g}));return}var b=kce(u),w=b==="left-to-right"?1:-1,S=h==="ArrowRight"?1:-1,M=y+S*w;if(v==null||M>=v.length||M<0)return;var A=Nv(u,"axis","hover",String(M));t.dispatch(Pv({active:!0,activeIndex:M.toString(),activeCoordinate:A}))}finally{Ku=null,el=null}};if(!a){l();return}r==="raf"?Ku=requestAnimationFrame(l):typeof r=="number"&&el===null&&(l(),ay=null,el=setTimeout(()=>{ay?l():(el=null,Ku=null)},r))}});Xg.startListening({actionCreator:Q9,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var a="0",l=Nv(n,"axis","hover",String(a));t.dispatch(Pv({active:!0,activeIndex:a,activeCoordinate:l}))}}}});Xg.startListening({actionCreator:Z9,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;i.active&&t.dispatch(Pv({active:!1,activeIndex:i.index,activeCoordinate:i.coordinate}))}}});function X9(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(n,r)=>{if(r==="currentTarget")return t;var i=Reflect.get(n,r);return typeof i=="function"?i.bind(n):i}})}var ri=Jt("externalEvent"),W9=Ch(),oy=new Map,yd=new Map,pw=new Map;W9.startListening({actionCreator:ri,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){var i=r.type,a=X9(r);pw.set(i,{handler:n,reactEvent:a});var l=oy.get(i);l!==void 0&&(cancelAnimationFrame(l),oy.delete(i));var u=t.getState(),{throttleDelay:f,throttledEvents:d}=u.eventSettings,h=d,p=h==="all"||(h==null?void 0:h.includes(i)),y=yd.get(i);y!==void 0&&(typeof f!="number"||!p)&&(clearTimeout(y),yd.delete(i));var v=()=>{var w=pw.get(i);try{if(!w)return;var{handler:S,reactEvent:M}=w,A=t.getState(),O={activeCoordinate:Pfe(A),activeDataKey:jL(A),activeIndex:Hl(A),activeLabel:DL(A),activeTooltipIndex:Hl(A),isTooltipActive:Nfe(A)};S&&S(O,M)}finally{oy.delete(i),yd.delete(i),pw.delete(i)}};if(!p){v();return}if(f==="raf"){var g=requestAnimationFrame(v);oy.set(i,g)}else if(typeof f=="number"){if(!yd.has(i)){v();var b=setTimeout(v,f);yd.set(i,b)}}else v()}}});var Jge=le([ef],e=>e.tooltipItemPayloads),e0e=le([Jge,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(a=>a.settings.graphicalItemId===n);if(r!=null){var{getPosition:i}=r;if(i!=null)return i(t)}}}),J9=Jt("touchMove"),eB=Ch(),tl=null,Go=null,LD=null,vd=null;eB.startListening({actionCreator:J9,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){vd=X9(n);var r=t.getState(),{throttleDelay:i,throttledEvents:a}=r.eventSettings,l=a==="all"||a.includes("touchmove");tl!==null&&(cancelAnimationFrame(tl),tl=null),Go!==null&&(typeof i!="number"||!l)&&(clearTimeout(Go),Go=null),LD=Array.from(n.touches).map(f=>JE({clientX:f.clientX,clientY:f.clientY,currentTarget:n.currentTarget}));var u=()=>{if(vd!=null){var f=t.getState(),d=ME(f,f.tooltip.settings.shared);if(d==="axis"){var h,p=(h=LD)===null||h===void 0?void 0:h[0];if(p==null){tl=null,Go=null;return}var y=WE(f,p);(y==null?void 0:y.activeIndex)!=null&&t.dispatch(SL({activeIndex:y.activeIndex,activeDataKey:void 0,activeCoordinate:y.activeCoordinate}))}else if(d==="item"){var v,g=vd.touches[0];if(document.elementFromPoint==null||g==null)return;var b=document.elementFromPoint(g.clientX,g.clientY);if(!b||!b.getAttribute)return;var w=b.getAttribute(Lie),S=(v=b.getAttribute(Bie))!==null&&v!==void 0?v:void 0,M=tf(f).find(k=>k.id===S);if(w==null||M==null||S==null)return;var{dataKey:A}=M,O=e0e(f,w,S);t.dispatch(xL({activeDataKey:A,activeIndex:w,activeCoordinate:O,activeGraphicalItemId:S}))}tl=null,Go=null}};if(!l){u();return}i==="raf"?tl=requestAnimationFrame(u):typeof i=="number"&&Go===null&&(u(),vd=null,Go=setTimeout(()=>{vd?u():(Go=null,tl=null)},i))}}});var tB={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},nB=Wt({name:"eventSettings",initialState:tB,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:t0e}=nB.actions,n0e=nB.reducer,r0e=FS({brush:mme,cartesianAxis:Xpe,chartData:Tde,errorBars:mye,eventSettings:n0e,graphicalItems:Tpe,layout:wie,legend:Tae,options:Ade,polarAxis:Whe,polarOptions:Wge,referenceElements:bme,renderedTicks:Ime,rootProps:Gge,tooltip:Uce,zIndex:hde}),i0e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return fG({reducer:r0e,preloadedState:t,middleware:r=>{var i;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([V9.middleware,F9.middleware,Xg.middleware,W9.middleware,eB.middleware])},enhancers:r=>{var i=r;return typeof r=="function"&&(i=r()),i.concat(sj({type:"raf"}))},devTools:{serialize:{replacer:Yge},name:"recharts-".concat(n)}})};function a0e(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Nn(),a=E.useRef(null);if(i)return n;a.current==null&&(a.current=i0e(t,r));var l=R_;return E.createElement(TU,{context:l,store:a.current},n)}function o0e(e){var{layout:t,margin:n}=e,r=Vt(),i=Nn();return E.useEffect(()=>{i||(r(gie(t)),r(vie(n)))},[r,i,t,n]),null}var s0e=E.memo(o0e,Gc);function l0e(e){var t=Vt();return E.useEffect(()=>{t(Qge(e))},[t,e]),null}var u0e=e=>{var t=Vt();return E.useEffect(()=>{t(t0e(e))},[t,e]),null},c0e=E.memo(u0e,Gc);function BD(e){var{zIndex:t,isPanorama:n}=e,r=E.useRef(null),i=Vt();return E.useLayoutEffect(()=>(r.current&&i(fde({zIndex:t,element:r.current,isPanorama:n})),()=>{i(dde({zIndex:t,isPanorama:n}))}),[i,t,n]),E.createElement("g",{tabIndex:-1,ref:r,className:"recharts-zIndex-layer_".concat(t)})}function $D(e){var{children:t,isPanorama:n}=e,r=$e(tde);if(!r||r.length===0)return t;var i=r.filter(l=>l<0),a=r.filter(l=>l>0);return E.createElement(E.Fragment,null,i.map(l=>E.createElement(BD,{key:l,zIndex:l,isPanorama:n})),t,a.map(l=>E.createElement(BD,{key:l,zIndex:l,isPanorama:n})))}var f0e=["children"];function d0e(e,t){if(e==null)return{};var n,r,i=h0e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function h0e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $v(){return $v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$v.apply(null,arguments)}var p0e={width:"100%",height:"100%",display:"block"},m0e=E.forwardRef((e,t)=>{var n=d6(),r=h6(),i=_6();if(!ta(n)||!ta(r))return null;var{children:a,otherAttributes:l,title:u,desc:f}=e,d,h;return l!=null&&(typeof l.tabIndex=="number"?d=l.tabIndex:d=i?0:void 0,typeof l.role=="string"?h=l.role:h=i?"application":void 0),E.createElement(wz,$v({},l,{title:u,desc:f,role:h,tabIndex:d,width:n,height:r,style:p0e,ref:t}),a)}),y0e=e=>{var{children:t}=e,n=$e(Og);if(!n)return null;var{width:r,height:i,y:a,x:l}=n;return E.createElement(wz,{width:r,height:i,x:l,y:a},t)},UD=E.forwardRef((e,t)=>{var{children:n}=e,r=d0e(e,f0e),i=Nn();return i?E.createElement(y0e,null,E.createElement($D,{isPanorama:!0},n)):E.createElement(m0e,$v({ref:t},r),E.createElement($D,{isPanorama:!1},n))});function v0e(){var e=Vt(),[t,n]=E.useState(null),r=$e(zie);return E.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;et(a)&&a!==r&&e(xie(a))}},[t,e,r]),n}function qD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function g0e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qD(Object(n),!0).forEach(function(r){b0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b0e(e,t,n){return(t=x0e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x0e(e){var t=w0e(e,"string");return typeof t=="symbol"?t:t+""}function w0e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vs.apply(null,arguments)}var S0e=()=>(Bde(),null);function Uv(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var _0e=E.forwardRef((e,t)=>{var n,r,i=E.useRef(null),[a,l]=E.useState({containerWidth:Uv((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:Uv((r=e.style)===null||r===void 0?void 0:r.height)}),u=E.useCallback((d,h)=>{l(p=>{var y=Math.round(d),v=Math.round(h);return p.containerWidth===y&&p.containerHeight===v?p:{containerWidth:y,containerHeight:v}})},[]),f=E.useCallback(d=>{if(typeof t=="function"&&t(d),d!=null&&typeof ResizeObserver<"u"){var{width:h,height:p}=d.getBoundingClientRect();u(h,p);var y=g=>{var b=g[0];if(b!=null){var{width:w,height:S}=b.contentRect;u(w,S)}},v=new ResizeObserver(y);v.observe(d),i.current=v}},[t,u]);return E.useEffect(()=>()=>{var d=i.current;d!=null&&d.disconnect()},[u]),E.createElement(E.Fragment,null,E.createElement(Bh,{width:a.containerWidth,height:a.containerHeight}),E.createElement("div",vs({ref:f},e)))}),E0e=E.forwardRef((e,t)=>{var{width:n,height:r}=e,[i,a]=E.useState({containerWidth:Uv(n),containerHeight:Uv(r)}),l=E.useCallback((f,d)=>{a(h=>{var p=Math.round(f),y=Math.round(d);return h.containerWidth===p&&h.containerHeight===y?h:{containerWidth:p,containerHeight:y}})},[]),u=E.useCallback(f=>{if(typeof t=="function"&&t(f),f!=null){var{width:d,height:h}=f.getBoundingClientRect();l(d,h)}},[t,l]);return E.createElement(E.Fragment,null,E.createElement(Bh,{width:i.containerWidth,height:i.containerHeight}),E.createElement("div",vs({ref:u},e)))}),A0e=E.forwardRef((e,t)=>{var{width:n,height:r}=e;return E.createElement(E.Fragment,null,E.createElement(Bh,{width:n,height:r}),E.createElement("div",vs({ref:t},e)))}),O0e=E.forwardRef((e,t)=>{var{width:n,height:r}=e;return typeof n=="string"||typeof r=="string"?E.createElement(E0e,vs({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?E.createElement(A0e,vs({},e,{width:n,height:r,ref:t})):E.createElement(E.Fragment,null,E.createElement(Bh,{width:n,height:r}),E.createElement("div",vs({ref:t},e)))});function M0e(e){return e?_0e:O0e}var C0e=E.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:a,onContextMenu:l,onDoubleClick:u,onMouseDown:f,onMouseEnter:d,onMouseLeave:h,onMouseMove:p,onMouseUp:y,onTouchEnd:v,onTouchMove:g,onTouchStart:b,style:w,width:S,responsive:M,dispatchTouchEvents:A=!0}=e,O=E.useRef(null),k=Vt(),[C,T]=E.useState(null),[P,D]=E.useState(null),z=v0e(),R=j_(),N=(R==null?void 0:R.width)>0?R.width:S,B=(R==null?void 0:R.height)>0?R.height:i,I=E.useCallback(pe=>{z(pe),typeof t=="function"&&t(pe),T(pe),D(pe),pe!=null&&(O.current=pe)},[z,t,T,D]),q=E.useCallback(pe=>{k(H9(pe)),k(ri({handler:a,reactEvent:pe}))},[k,a]),L=E.useCallback(pe=>{k(_S(pe)),k(ri({handler:d,reactEvent:pe}))},[k,d]),V=E.useCallback(pe=>{k(wL()),k(ri({handler:h,reactEvent:pe}))},[k,h]),F=E.useCallback(pe=>{k(_S(pe)),k(ri({handler:p,reactEvent:pe}))},[k,p]),H=E.useCallback(()=>{k(Q9())},[k]),Y=E.useCallback(()=>{k(Z9())},[k]),$=E.useCallback(pe=>{k(G9(pe.key))},[k]),K=E.useCallback(pe=>{k(ri({handler:l,reactEvent:pe}))},[k,l]),J=E.useCallback(pe=>{k(ri({handler:u,reactEvent:pe}))},[k,u]),te=E.useCallback(pe=>{k(ri({handler:f,reactEvent:pe}))},[k,f]),ce=E.useCallback(pe=>{k(ri({handler:y,reactEvent:pe}))},[k,y]),he=E.useCallback(pe=>{k(ri({handler:b,reactEvent:pe}))},[k,b]),de=E.useCallback(pe=>{A&&k(J9(pe)),k(ri({handler:g,reactEvent:pe}))},[k,A,g]),ie=E.useCallback(pe=>{k(ri({handler:v,reactEvent:pe}))},[k,v]),W=M0e(M);return E.createElement(HL.Provider,{value:C},E.createElement(jne.Provider,{value:P},E.createElement(W,{width:N??(w==null?void 0:w.width),height:B??(w==null?void 0:w.height),className:wt("recharts-wrapper",r),style:g0e({position:"relative",cursor:"default",width:N,height:B},w),onClick:q,onContextMenu:K,onDoubleClick:J,onFocus:H,onBlur:Y,onKeyDown:$,onMouseDown:te,onMouseEnter:L,onMouseLeave:V,onMouseMove:F,onMouseUp:ce,onTouchEnd:ie,onTouchMove:de,onTouchStart:he,ref:I},E.createElement(S0e,null),n)))}),k0e=["width","height","responsive","children","className","style","compact","title","desc"];function T0e(e,t){if(e==null)return{};var n,r,i=P0e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function P0e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var N0e=E.forwardRef((e,t)=>{var{width:n,height:r,responsive:i,children:a,className:l,style:u,compact:f,title:d,desc:h}=e,p=T0e(e,k0e),y=Hr(p);return f?E.createElement(E.Fragment,null,E.createElement(Bh,{width:n,height:r}),E.createElement(UD,{otherAttributes:y,title:d,desc:h},a)):E.createElement(C0e,{className:l,style:u,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},E.createElement(UD,{otherAttributes:y,title:d,desc:h,ref:t},E.createElement(wme,null,a)))});function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ES.apply(null,arguments)}function HD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function R0e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HD(Object(n),!0).forEach(function(r){D0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function D0e(e,t,n){return(t=j0e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j0e(e){var t=I0e(e,"string");return typeof t=="symbol"?t:t+""}function I0e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z0e={top:5,right:5,bottom:5,left:5},L0e=R0e({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:z0e,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},tB),eA=E.forwardRef(function(t,n){var r,i=nr(t.categoricalChartProps,L0e),{chartName:a,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,h={chartName:a,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:f,eventEmitter:void 0};return E.createElement(a0e,{preloadedState:{options:h},reduxStoreName:(r=d.id)!==null&&r!==void 0?r:a},E.createElement(pme,{chartData:d.data}),E.createElement(s0e,{layout:i.layout,margin:i.margin}),E.createElement(c0e,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),E.createElement(l0e,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),E.createElement(N0e,ES({},i,{ref:n})))}),B0e=["axis"],B2e=E.forwardRef((e,t)=>E.createElement(eA,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:B0e,tooltipPayloadSearcher:zE,categoricalChartProps:e,ref:t})),$0e=["axis","item"],$2e=E.forwardRef((e,t)=>E.createElement(eA,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:$0e,tooltipPayloadSearcher:zE,categoricalChartProps:e,ref:t})),U0e=["axis"],U2e=E.forwardRef((e,t)=>E.createElement(eA,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:U0e,tooltipPayloadSearcher:zE,categoricalChartProps:e,ref:t}));function Yu(e,t,n){let r=n.initialDeps??[],i,a=!0;function l(){var u,f,d;let h;n.key&&((u=n.debug)!=null&&u.call(n))&&(h=Date.now());const p=e();if(!(p.length!==r.length||p.some((g,b)=>r[b]!==g)))return i;r=p;let v;if(n.key&&((f=n.debug)!=null&&f.call(n))&&(v=Date.now()),i=t(...p),n.key&&((d=n.debug)!=null&&d.call(n))){const g=Math.round((Date.now()-h)*100)/100,b=Math.round((Date.now()-v)*100)/100,w=b/16,S=(M,A)=>{for(M=String(M);M.length<A;)M=" "+M;return M};console.info(`%c⏱ ${S(b,5)} /${S(g,5)} ms`,`
|
|
866
|
-
font-size: .6rem;
|
|
867
|
-
font-weight: bold;
|
|
868
|
-
color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i}return l.updateDeps=u=>{r=u},l}function VD(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const q0e=(e,t)=>Math.abs(e-t)<1.01,H0e=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},FD=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},V0e=e=>e,F0e=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},K0e=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=l=>{const{width:u,height:f}=l;t({width:Math.round(u),height:Math.round(f)})};if(i(FD(n)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(l=>{const u=()=>{const f=l[0];if(f!=null&&f.borderBoxSize){const d=f.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(FD(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},KD={passive:!0},YD=typeof window>"u"?!0:"onscrollend"in window,Y0e=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const a=e.options.useScrollendEvent&&YD?()=>{}:H0e(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),l=h=>()=>{const{horizontal:p,isRtl:y}=e.options;i=p?n.scrollLeft*(y&&-1||1):n.scrollTop,a(),t(i,h)},u=l(!0),f=l(!1);n.addEventListener("scroll",u,KD);const d=e.options.useScrollendEvent&&YD;return d&&n.addEventListener("scrollend",f,KD),()=>{n.removeEventListener("scroll",u),d&&n.removeEventListener("scrollend",f)}},G0e=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Q0e=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;const l=e+t;(a=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class Z0e{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,r,i;return((i=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:i.call(r))??Date.now()},this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{const l=()=>{const u=a.target,f=this.indexFromElement(u);if(!u.isConnected){this.observer.unobserve(u);return}this.shouldMeasureDuringScroll(f)&&this.resizeItem(f,this.options.measureElement(u,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var a;return(a=r())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=r())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:V0e,rangeExtractor:F0e,onChange:()=>{},measureElement:G0e,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=Yu(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=a,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,a=new Map;for(let l=r-1;l>=0;l--){const u=n[l];if(i.has(u.lane))continue;const f=a.get(u.lane);if(f==null||u.end>f.end?a.set(u.lane,u):u.end<f.end&&i.set(u.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((l,u)=>l.end===u.end?l.index-u.index:l.end-u.end)[0]:void 0},this.getMeasurementOptions=Yu(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,r,i,a,l,u)=>(this.prevLanes!==void 0&&this.prevLanes!==u&&(this.lanesChangedFlag=!0),this.prevLanes=u,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:l,lanes:u}),{key:!1}),this.getMeasurements=Yu(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:l,lanes:u},f)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const y of this.laneAssignments.keys())y>=n&&this.laneAssignments.delete(y);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(y=>{this.itemSizeCache.set(y.key,y.size)}));const d=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const h=this.measurementsCache.slice(0,d),p=new Array(u).fill(void 0);for(let y=0;y<d;y++){const v=h[y];v&&(p[v.lane]=y)}for(let y=d;y<n;y++){const v=a(y),g=this.laneAssignments.get(y);let b,w;if(g!==void 0&&this.options.lanes>1){b=g;const O=p[b],k=O!==void 0?h[O]:void 0;w=k?k.end+this.options.gap:r+i}else{const O=this.options.lanes===1?h[y-1]:this.getFurthestMeasurement(h,y);w=O?O.end+this.options.gap:r+i,b=O?O.lane:y%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(y,b)}const S=f.get(v),M=typeof S=="number"?S:this.options.estimateSize(y),A=w+M;h[y]={index:y,start:w,size:M,end:A,key:v,lane:b},p[b]=y}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Yu(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,a)=>this.range=n.length>0&&r>0?X0e({measurements:n,outerSize:r,scrollOffset:i,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Yu(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,a,l)=>a===null||l===null?[]:n({startIndex:a,endIndex:l,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var r;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const i=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(i!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,i-a),u=Math.min(this.options.count-1,i+a);return n>=l&&n<=u}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((l,u)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(u))});return}const r=this.indexFromElement(n),i=this.options.getItemKey(r),a=this.elementsCache.get(i);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(i,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,r)=>{var i;const a=this.measurementsCache[n];if(!a)return;const l=this.itemSizeCache.get(a.key)??a.size,u=r-l;u!==0&&(((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,u,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,r)),this.notify(!1))},this.getVirtualItems=Yu(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let a=0,l=n.length;a<l;a++){const u=n[a],f=r[u];i.push(f)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return VD(r[rB(0,r.length-1,i=>VD(r[i]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,r,i=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),l=this.getScrollOffset();r==="auto"&&(r=n>=l+a?"end":"start"),r==="center"?n+=(i-a)/2:r==="end"&&(n-=a);const u=this.getMaxScrollOffset();return Math.max(Math.min(u,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.getSize(),a=this.getScrollOffset(),l=this.measurementsCache[n];if(!l)return;if(r==="auto")if(l.end>=a+i-this.options.scrollPaddingEnd)r="end";else if(l.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];if(r==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),r];const u=r==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(u,r,l.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:i="auto"}={})=>{const a=this.getOffsetForAlignment(n,r),l=this.now();this.scrollState={index:null,align:r,behavior:i,startedAt:l,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:r="auto",behavior:i="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getOffsetForIndex(n,r);if(!a)return;const[l,u]=a,f=this.now();this.scrollState={index:n,align:u,behavior:i,startedAt:f,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:r="auto"}={})=>{const i=this.getScrollOffset()+n,a=this.now();this.scrollState={index:null,align:"start",behavior:r,startedAt:a,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let l=r.length-1;for(;l>=0&&a.some(u=>u===null);){const u=r[l];a[u.lane]===null&&(a[u.lane]=u.end),l--}i=Math.max(...a.filter(u=>u!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const r=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,i=r?r[0]:this.scrollState.lastTargetOffset,a=1,l=i!==this.scrollState.lastTargetOffset;if(!l&&q0e(i,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=a){this.scrollState=null;return}}else this.scrollState.stableFrames=0,l&&(this.scrollState.lastTargetOffset=i,this.scrollState.behavior="auto",this._scrollToOffset(i,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const rB=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function X0e({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,a=f=>e[f].start;if(e.length<=r)return{startIndex:0,endIndex:i};let l=rB(0,i,a,n),u=l;if(r===1)for(;u<i&&e[u].end<n+t;)u++;else if(r>1){const f=Array(r).fill(0);for(;u<i&&f.some(h=>h<n+t);){const h=e[u];f[h.lane]=h.end,u++}const d=Array(r).fill(n+t);for(;l>=0&&d.some(h=>h>=n);){const h=e[l];d[h.lane]=h.start,l--}l=Math.max(0,l-l%r),u=Math.min(i,u+(r-1-u%r))}return{startIndex:l,endIndex:u}}const GD=typeof document<"u"?E.useLayoutEffect:E.useEffect;function W0e({useFlushSync:e=!0,...t}){const n=E.useReducer(()=>({}),{})[1],r={...t,onChange:(a,l)=>{var u;e&&l?Yv.flushSync(n):n(),(u=t.onChange)==null||u.call(t,a,l)}},[i]=E.useState(()=>new Z0e(r));return i.setOptions(r),GD(()=>i._didMount(),[]),GD(()=>i._willUpdate()),i}function q2e(e){return W0e({observeElementRect:K0e,observeElementOffset:Y0e,scrollToFn:Q0e,...e})}var np=e=>e.type==="checkbox",dl=e=>e instanceof Date,_r=e=>e==null;const iB=e=>typeof e=="object";var on=e=>!_r(e)&&!Array.isArray(e)&&iB(e)&&!dl(e),J0e=e=>on(e)&&e.target?np(e.target)?e.target.checked:e.target.value:e,aB=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,e1e=(e,t)=>e.has(aB(t)),t1e=e=>{const t=e.constructor&&e.constructor.prototype;return on(t)&&t.hasOwnProperty("isPrototypeOf")},tA=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function xn(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(tA&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(on(e)&&t1e(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=xn(e[i]));return r}var Wg=e=>/^\w*$/.test(e),Ht=e=>e===void 0,nA=e=>Array.isArray(e)?e.filter(Boolean):[],rA=e=>nA(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ie=(e,t,n)=>{if(!t||!on(e))return n;const r=(Wg(t)?[t]:rA(t)).reduce((i,a)=>_r(i)?i:i[a],e);return Ht(r)||r===e?Ht(e[t])?n:e[t]:r},qi=e=>typeof e=="boolean",Ei=e=>typeof e=="function",jt=(e,t,n)=>{let r=-1;const i=Wg(t)?[t]:rA(t),a=i.length,l=a-1;for(;++r<a;){const u=i[r];let f=n;if(r!==l){const d=e[u];f=on(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=f,e=e[u]}};const Gu={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Ai={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},vi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},mw="form",oB="root",n1e=rn.createContext(null);n1e.displayName="HookFormControlContext";var r1e=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const l=a;return t._proxyFormState[l]!==Ai.all&&(t._proxyFormState[l]=!r||Ai.all),e[l]}});return i};const i1e=typeof window<"u"?rn.useLayoutEffect:rn.useEffect;var lr=e=>typeof e=="string",a1e=(e,t,n,r,i)=>lr(e)?(r&&t.watch.add(e),Ie(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Ie(n,a))):(r&&(t.watchAll=!0),n),AS=e=>_r(e)||!iB(e);function ns(e,t,n=new WeakSet){if(AS(e)||AS(t))return Object.is(e,t);if(dl(e)&&dl(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const l=e[a];if(!i.includes(a))return!1;if(a!=="ref"){const u=t[a];if(dl(l)&&dl(u)||on(l)&&on(u)||Array.isArray(l)&&Array.isArray(u)?!ns(l,u,n):!Object.is(l,u))return!1}}return!0}const o1e=rn.createContext(null);o1e.displayName="HookFormContext";var s1e=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},jd=e=>Array.isArray(e)?e:[e],QD=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}};function sB(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],a=t[r];if(i&&on(i)&&a){const l=sB(i,a);on(l)&&(n[r]=l)}else e[r]&&(n[r]=a)}return n}var ar=e=>on(e)&&!Object.keys(e).length,iA=e=>e.type==="file",qv=e=>{if(!tA)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},lB=e=>e.type==="select-multiple",aA=e=>e.type==="radio",l1e=e=>aA(e)||np(e),yw=e=>qv(e)&&e.isConnected;function u1e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ht(e)?r++:e[t[r++]];return e}function c1e(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ht(e[t]))return!1;return!0}function dn(e,t){const n=Array.isArray(t)?t:Wg(t)?[t]:rA(t),r=n.length===1?e:u1e(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(on(r)&&ar(r)||Array.isArray(r)&&c1e(r))&&dn(e,n.slice(0,-1)),e}var f1e=e=>{for(const t in e)if(Ei(e[t]))return!0;return!1};function uB(e){return Array.isArray(e)||on(e)&&!f1e(e)}function OS(e,t={}){for(const n in e){const r=e[n];uB(r)?(t[n]=Array.isArray(r)?[]:{},OS(r,t[n])):Ht(r)||(t[n]=!0)}return t}function Wu(e,t,n){n||(n=OS(t));for(const r in e){const i=e[r];if(uB(i))Ht(t)||AS(n[r])?n[r]=OS(i,Array.isArray(i)?[]:{}):Wu(i,_r(t)?{}:t[r],n[r]);else{const a=t[r];n[r]=!ns(i,a)}}return n}const ZD={value:!1,isValid:!1},XD={value:!0,isValid:!0};var cB=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ht(e[0].attributes.value)?Ht(e[0].value)||e[0].value===""?XD:{value:e[0].value,isValid:!0}:XD:ZD}return ZD},fB=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ht(e)?e:t?e===""?NaN:e&&+e:n&&lr(e)?new Date(e):r?r(e):e;const WD={isValid:!1,value:null};var dB=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,WD):WD;function JD(e){const t=e.ref;return iA(t)?t.files:aA(t)?dB(e.refs).value:lB(t)?[...t.selectedOptions].map(({value:n})=>n):np(t)?cB(e.refs).value:fB(Ht(t.value)?e.ref.value:t.value,e)}var d1e=(e,t,n,r)=>{const i={};for(const a of e){const l=Ie(t,a);l&&jt(i,a,l._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Hv=e=>e instanceof RegExp,gd=e=>Ht(e)?e:Hv(e)?e.source:on(e)?Hv(e.value)?e.value.source:e.value:e,e4=e=>({isOnSubmit:!e||e===Ai.onSubmit,isOnBlur:e===Ai.onBlur,isOnChange:e===Ai.onChange,isOnAll:e===Ai.all,isOnTouch:e===Ai.onTouched});const t4="AsyncFunction";var h1e=e=>!!e&&!!e.validate&&!!(Ei(e.validate)&&e.validate.constructor.name===t4||on(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===t4)),p1e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),n4=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Id=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=Ie(e,i);if(a){const{_f:l,...u}=a;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],i)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(Id(u,t))break}else if(on(u)&&Id(u,t))break}}};function r4(e,t,n){const r=Ie(e,n);if(r||Wg(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),l=Ie(t,a),u=Ie(e,a);if(l&&!Array.isArray(l)&&n!==a)return{name:n};if(u&&u.type)return{name:a,error:u};if(u&&u.root&&u.root.type)return{name:`${a}.root`,error:u.root};i.pop()}return{name:n}}var m1e=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return ar(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(l=>t[l]===(!r||Ai.all))},y1e=(e,t,n)=>!e||!t||e===t||jd(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),v1e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,g1e=(e,t)=>!nA(Ie(e,t)).length&&dn(e,t),b1e=(e,t,n)=>{const r=jd(Ie(e,n));return jt(r,oB,t[n]),jt(e,n,r),e};function i4(e,t,n="validate"){if(lr(e)||Array.isArray(e)&&e.every(lr)||qi(e)&&!e)return{type:n,message:lr(e)?e:"",ref:t}}var Qu=e=>on(e)&&!Hv(e)?e:{value:e,message:""},a4=async(e,t,n,r,i,a)=>{const{ref:l,refs:u,required:f,maxLength:d,minLength:h,min:p,max:y,pattern:v,validate:g,name:b,valueAsNumber:w,mount:S}=e._f,M=Ie(n,b);if(!S||t.has(b))return{};const A=u?u[0]:l,O=N=>{i&&A.reportValidity&&(A.setCustomValidity(qi(N)?"":N||""),A.reportValidity())},k={},C=aA(l),T=np(l),P=C||T,D=(w||iA(l))&&Ht(l.value)&&Ht(M)||qv(l)&&l.value===""||M===""||Array.isArray(M)&&!M.length,z=s1e.bind(null,b,r,k),R=(N,B,I,q=vi.maxLength,L=vi.minLength)=>{const V=N?B:I;k[b]={type:N?q:L,message:V,ref:l,...z(N?q:L,V)}};if(a?!Array.isArray(M)||!M.length:f&&(!P&&(D||_r(M))||qi(M)&&!M||T&&!cB(u).isValid||C&&!dB(u).isValid)){const{value:N,message:B}=lr(f)?{value:!!f,message:f}:Qu(f);if(N&&(k[b]={type:vi.required,message:B,ref:A,...z(vi.required,B)},!r))return O(B),k}if(!D&&(!_r(p)||!_r(y))){let N,B;const I=Qu(y),q=Qu(p);if(!_r(M)&&!isNaN(M)){const L=l.valueAsNumber||M&&+M;_r(I.value)||(N=L>I.value),_r(q.value)||(B=L<q.value)}else{const L=l.valueAsDate||new Date(M),V=Y=>new Date(new Date().toDateString()+" "+Y),F=l.type=="time",H=l.type=="week";lr(I.value)&&M&&(N=F?V(M)>V(I.value):H?M>I.value:L>new Date(I.value)),lr(q.value)&&M&&(B=F?V(M)<V(q.value):H?M<q.value:L<new Date(q.value))}if((N||B)&&(R(!!N,I.message,q.message,vi.max,vi.min),!r))return O(k[b].message),k}if((d||h)&&!D&&(lr(M)||a&&Array.isArray(M))){const N=Qu(d),B=Qu(h),I=!_r(N.value)&&M.length>+N.value,q=!_r(B.value)&&M.length<+B.value;if((I||q)&&(R(I,N.message,B.message),!r))return O(k[b].message),k}if(v&&!D&&lr(M)){const{value:N,message:B}=Qu(v);if(Hv(N)&&!M.match(N)&&(k[b]={type:vi.pattern,message:B,ref:l,...z(vi.pattern,B)},!r))return O(B),k}if(g){if(Ei(g)){const N=await g(M,n),B=i4(N,A);if(B&&(k[b]={...B,...z(vi.validate,B.message)},!r))return O(B.message),k}else if(on(g)){let N={};for(const B in g){if(!ar(N)&&!r)break;const I=i4(await g[B](M,n),A,B);I&&(N={...I,...z(B,I.message)},O(I.message),r&&(k[b]=N))}if(!ar(N)&&(k[b]={ref:A,...N},!r))return k}}return O(!0),k};const x1e={mode:Ai.onSubmit,reValidateMode:Ai.onChange,shouldFocusError:!0};function w1e(e={}){let t={...x1e,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ei(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=on(t.defaultValues)||on(t.values)?xn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:xn(i),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,d=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={...h};let y={...p};const v={array:QD(),state:QD()},g=t.criteriaMode===Ai.all,b=Q=>re=>{clearTimeout(d),d=setTimeout(Q,re)},w=async Q=>{if(!l.keepIsValid&&!t.disabled&&(p.isValid||y.isValid||Q)){let re;t.resolver?(re=ar((await P()).errors),S()):re=await R({fields:r,onlyCheckValid:!0,eventType:Gu.VALID}),re!==n.isValid&&v.state.next({isValid:re})}},S=(Q,re)=>{!t.disabled&&(p.isValidating||p.validatingFields||y.isValidating||y.validatingFields)&&((Q||Array.from(u.mount)).forEach(ae=>{ae&&(re?jt(n.validatingFields,ae,re):dn(n.validatingFields,ae))}),v.state.next({validatingFields:n.validatingFields,isValidating:!ar(n.validatingFields)}))},M=(Q,re=[],ae,Oe,we=!0,_e=!0)=>{if(Oe&&ae&&!t.disabled){if(l.action=!0,_e&&Array.isArray(Ie(r,Q))){const Te=ae(Ie(r,Q),Oe.argA,Oe.argB);we&&jt(r,Q,Te)}if(_e&&Array.isArray(Ie(n.errors,Q))){const Te=ae(Ie(n.errors,Q),Oe.argA,Oe.argB);we&&jt(n.errors,Q,Te),g1e(n.errors,Q)}if((p.touchedFields||y.touchedFields)&&_e&&Array.isArray(Ie(n.touchedFields,Q))){const Te=ae(Ie(n.touchedFields,Q),Oe.argA,Oe.argB);we&&jt(n.touchedFields,Q,Te)}if(p.dirtyFields||y.dirtyFields){const Te=Wu(i,a),Ke=aB(Q);jt(n.dirtyFields,Ke,Ie(Te,Ke))}v.state.next({name:Q,isDirty:B(Q,re),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else jt(a,Q,re)},A=(Q,re)=>{jt(n.errors,Q,re),v.state.next({errors:n.errors})},O=Q=>{n.errors=Q,v.state.next({errors:n.errors,isValid:!1})},k=(Q,re,ae,Oe)=>{const we=Ie(r,Q);if(we){const _e=Ie(a,Q,Ht(ae)?Ie(i,Q):ae);Ht(_e)||Oe&&Oe.defaultChecked||re?jt(a,Q,re?_e:JD(we._f)):L(Q,_e),l.mount&&!l.action&&w()}},C=(Q,re,ae,Oe,we)=>{let _e=!1,Te=!1;const Ke={name:Q};if(!t.disabled){if(!ae||Oe){(p.isDirty||y.isDirty)&&(Te=n.isDirty,n.isDirty=Ke.isDirty=B(),_e=Te!==Ke.isDirty);const at=ns(Ie(i,Q),re);Te=!!Ie(n.dirtyFields,Q),at?dn(n.dirtyFields,Q):jt(n.dirtyFields,Q,!0),Ke.dirtyFields=n.dirtyFields,_e=_e||(p.dirtyFields||y.dirtyFields)&&Te!==!at}if(ae){const at=Ie(n.touchedFields,Q);at||(jt(n.touchedFields,Q,ae),Ke.touchedFields=n.touchedFields,_e=_e||(p.touchedFields||y.touchedFields)&&at!==ae)}_e&&we&&v.state.next(Ke)}return _e?Ke:{}},T=(Q,re,ae,Oe)=>{const we=Ie(n.errors,Q),_e=(p.isValid||y.isValid)&&qi(re)&&n.isValid!==re;if(t.delayError&&ae?(f=b(()=>A(Q,ae)),f(t.delayError)):(clearTimeout(d),f=null,ae?jt(n.errors,Q,ae):dn(n.errors,Q)),(ae?!ns(we,ae):we)||!ar(Oe)||_e){const Te={...Oe,..._e&&qi(re)?{isValid:re}:{},errors:n.errors,name:Q};n={...n,...Te},v.state.next(Te)}},P=async Q=>(S(Q,!0),await t.resolver(a,t.context,d1e(Q||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),D=async Q=>{const{errors:re}=await P(Q);if(S(Q),Q)for(const ae of Q){const Oe=Ie(re,ae);Oe?jt(n.errors,ae,Oe):dn(n.errors,ae)}else n.errors=re;return re},z=async({name:Q,eventType:re})=>{if(e.validate){const ae=await e.validate({formValues:a,formState:n,name:Q,eventType:re});if(on(ae))for(const Oe in ae)ae[Oe]&&ce(`${mw}.${Oe}`,{message:lr(ae.message)?ae.message:"",type:vi.validate});else lr(ae)||!ae?ce(mw,{message:ae||"",type:vi.validate}):te(mw);return ae}return!0},R=async({fields:Q,onlyCheckValid:re,name:ae,eventType:Oe,context:we={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(we.runRootValidation=!0,!await z({name:ae,eventType:Oe})&&(we.valid=!1,re)))return we.valid;for(const _e in Q){const Te=Q[_e];if(Te){const{_f:Ke,...at}=Te;if(Ke){const In=u.array.has(Ke.name),fr=Te._f&&h1e(Te._f);fr&&p.validatingFields&&S([Ke.name],!0);const Kt=await a4(Te,u.disabled,a,g,t.shouldUseNativeValidation&&!re,In);if(fr&&p.validatingFields&&S([Ke.name]),Kt[Ke.name]&&(we.valid=!1,re)||(!re&&(Ie(Kt,Ke.name)?In?b1e(n.errors,Kt,Ke.name):jt(n.errors,Ke.name,Kt[Ke.name]):dn(n.errors,Ke.name)),e.shouldUseNativeValidation&&Kt[Ke.name]))break}!ar(at)&&await R({context:we,onlyCheckValid:re,fields:at,name:_e,eventType:Oe})}}return we.valid},N=()=>{for(const Q of u.unMount){const re=Ie(r,Q);re&&(re._f.refs?re._f.refs.every(ae=>!yw(ae)):!yw(re._f.ref))&&W(Q)}u.unMount=new Set},B=(Q,re)=>!t.disabled&&(Q&&re&&jt(a,Q,re),!ns(K(),i)),I=(Q,re,ae)=>a1e(Q,u,{...l.mount?a:Ht(re)?i:lr(Q)?{[Q]:re}:re},ae,re),q=Q=>nA(Ie(l.mount?a:i,Q,t.shouldUnregister?Ie(i,Q,[]):[])),L=(Q,re,ae={})=>{const Oe=Ie(r,Q);let we=re;if(Oe){const _e=Oe._f;_e&&(!_e.disabled&&jt(a,Q,fB(re,_e)),we=qv(_e.ref)&&_r(re)?"":re,lB(_e.ref)?[..._e.ref.options].forEach(Te=>Te.selected=we.includes(Te.value)):_e.refs?np(_e.ref)?_e.refs.forEach(Te=>{(!Te.defaultChecked||!Te.disabled)&&(Array.isArray(we)?Te.checked=!!we.find(Ke=>Ke===Te.value):Te.checked=we===Te.value||!!we)}):_e.refs.forEach(Te=>Te.checked=Te.value===we):iA(_e.ref)?_e.ref.value="":(_e.ref.value=we,_e.ref.type||v.state.next({name:Q,values:xn(a)})))}(ae.shouldDirty||ae.shouldTouch)&&C(Q,we,ae.shouldTouch,ae.shouldDirty,!0),ae.shouldValidate&&$(Q)},V=(Q,re,ae)=>{for(const Oe in re){if(!re.hasOwnProperty(Oe))return;const we=re[Oe],_e=Q+"."+Oe,Te=Ie(r,_e);(u.array.has(Q)||on(we)||Te&&!Te._f)&&!dl(we)?V(_e,we,ae):L(_e,we,ae)}},F=(Q,re,ae={})=>{const Oe=Ie(r,Q),we=u.array.has(Q),_e=xn(re);jt(a,Q,_e),we?(v.array.next({name:Q,values:xn(a)}),(p.isDirty||p.dirtyFields||y.isDirty||y.dirtyFields)&&ae.shouldDirty&&v.state.next({name:Q,dirtyFields:Wu(i,a),isDirty:B(Q,_e)})):Oe&&!Oe._f&&!_r(_e)?V(Q,_e,ae):L(Q,_e,ae),n4(Q,u)?v.state.next({...n,name:Q,values:xn(a)}):v.state.next({name:l.mount?Q:void 0,values:xn(a)})},H=async Q=>{l.mount=!0;const re=Q.target;let ae=re.name,Oe=!0;const we=Ie(r,ae),_e=at=>{Oe=Number.isNaN(at)||dl(at)&&isNaN(at.getTime())||ns(at,Ie(a,ae,at))},Te=e4(t.mode),Ke=e4(t.reValidateMode);if(we){let at,In;const fr=re.type?JD(we._f):J0e(Q),Kt=Q.type===Gu.BLUR||Q.type===Gu.FOCUS_OUT,zn=!p1e(we._f)&&!e.validate&&!t.resolver&&!Ie(n.errors,ae)&&!we._f.deps||v1e(Kt,Ie(n.touchedFields,ae),n.isSubmitted,Ke,Te),dr=n4(ae,u,Kt);jt(a,ae,fr),Kt?(!re||!re.readOnly)&&(we._f.onBlur&&we._f.onBlur(Q),f&&f(0)):we._f.onChange&&we._f.onChange(Q);const yn=C(ae,fr,Kt),rf=!ar(yn)||dr;if(!Kt&&v.state.next({name:ae,type:Q.type,values:xn(a)}),zn)return(p.isValid||y.isValid)&&(t.mode==="onBlur"?Kt&&w():Kt||w()),rf&&v.state.next({name:ae,...dr?{}:yn});if(!t.resolver&&e.validate&&await z({name:ae,eventType:Q.type}),!Kt&&dr&&v.state.next({...n}),t.resolver){const{errors:Zl}=await P([ae]);if(S([ae]),_e(fr),Oe){const af=r4(n.errors,r,ae),ua=r4(Zl,r,af.name||ae);at=ua.error,ae=ua.name,In=ar(Zl)}}else S([ae],!0),at=(await a4(we,u.disabled,a,g,t.shouldUseNativeValidation))[ae],S([ae]),_e(fr),Oe&&(at?In=!1:(p.isValid||y.isValid)&&(In=await R({fields:r,onlyCheckValid:!0,name:ae,eventType:Q.type})));Oe&&(we._f.deps&&(!Array.isArray(we._f.deps)||we._f.deps.length>0)&&$(we._f.deps),T(ae,In,at,yn))}},Y=(Q,re)=>{if(Ie(n.errors,re)&&Q.focus)return Q.focus(),1},$=async(Q,re={})=>{let ae,Oe;const we=jd(Q);if(t.resolver){const _e=await D(Ht(Q)?Q:we);ae=ar(_e),Oe=Q?!we.some(Te=>Ie(_e,Te)):ae}else Q?(Oe=(await Promise.all(we.map(async _e=>{const Te=Ie(r,_e);return await R({fields:Te&&Te._f?{[_e]:Te}:Te,eventType:Gu.TRIGGER})}))).every(Boolean),!(!Oe&&!n.isValid)&&w()):Oe=ae=await R({fields:r,name:Q,eventType:Gu.TRIGGER});return v.state.next({...!lr(Q)||(p.isValid||y.isValid)&&ae!==n.isValid?{}:{name:Q},...t.resolver||!Q?{isValid:ae}:{},errors:n.errors}),re.shouldFocus&&!Oe&&Id(r,Y,Q?we:u.mount),Oe},K=(Q,re)=>{let ae={...l.mount?a:i};return re&&(ae=sB(re.dirtyFields?n.dirtyFields:n.touchedFields,ae)),Ht(Q)?ae:lr(Q)?Ie(ae,Q):Q.map(Oe=>Ie(ae,Oe))},J=(Q,re)=>({invalid:!!Ie((re||n).errors,Q),isDirty:!!Ie((re||n).dirtyFields,Q),error:Ie((re||n).errors,Q),isValidating:!!Ie(n.validatingFields,Q),isTouched:!!Ie((re||n).touchedFields,Q)}),te=Q=>{const re=Q?jd(Q):void 0;re==null||re.forEach(ae=>dn(n.errors,ae)),re?re.forEach(ae=>{v.state.next({name:ae,errors:n.errors})}):v.state.next({errors:{}})},ce=(Q,re,ae)=>{const Oe=(Ie(r,Q,{_f:{}})._f||{}).ref,we=Ie(n.errors,Q)||{},{ref:_e,message:Te,type:Ke,...at}=we;jt(n.errors,Q,{...at,...re,ref:Oe}),v.state.next({name:Q,errors:n.errors,isValid:!1}),ae&&ae.shouldFocus&&Oe&&Oe.focus&&Oe.focus()},he=(Q,re)=>Ei(Q)?v.state.subscribe({next:ae=>"values"in ae&&Q(I(void 0,re),ae)}):I(Q,re,!0),de=Q=>v.state.subscribe({next:re=>{y1e(Q.name,re.name,Q.exact)&&m1e(re,Q.formState||p,Ft,Q.reRenderRoot)&&Q.callback({values:{...a},...n,...re,defaultValues:i})}}).unsubscribe,ie=Q=>(l.mount=!0,y={...y,...Q.formState},de({...Q,formState:{...h,...Q.formState}})),W=(Q,re={})=>{for(const ae of Q?jd(Q):u.mount)u.mount.delete(ae),u.array.delete(ae),re.keepValue||(dn(r,ae),dn(a,ae)),!re.keepError&&dn(n.errors,ae),!re.keepDirty&&dn(n.dirtyFields,ae),!re.keepTouched&&dn(n.touchedFields,ae),!re.keepIsValidating&&dn(n.validatingFields,ae),!t.shouldUnregister&&!re.keepDefaultValue&&dn(i,ae);v.state.next({values:xn(a)}),v.state.next({...n,...re.keepDirty?{isDirty:B()}:{}}),!re.keepIsValid&&w()},pe=({disabled:Q,name:re})=>{if(qi(Q)&&l.mount||Q||u.disabled.has(re)){const we=u.disabled.has(re)!==!!Q;Q?u.disabled.add(re):u.disabled.delete(re),we&&l.mount&&!l.action&&w()}},ge=(Q,re={})=>{let ae=Ie(r,Q);const Oe=qi(re.disabled)||qi(t.disabled);return jt(r,Q,{...ae||{},_f:{...ae&&ae._f?ae._f:{ref:{name:Q}},name:Q,mount:!0,...re}}),u.mount.add(Q),ae?pe({disabled:qi(re.disabled)?re.disabled:t.disabled,name:Q}):k(Q,!0,re.value),{...Oe?{disabled:re.disabled||t.disabled}:{},...t.progressive?{required:!!re.required,min:gd(re.min),max:gd(re.max),minLength:gd(re.minLength),maxLength:gd(re.maxLength),pattern:gd(re.pattern)}:{},name:Q,onChange:H,onBlur:H,ref:we=>{if(we){ge(Q,re),ae=Ie(r,Q);const _e=Ht(we.value)&&we.querySelectorAll&&we.querySelectorAll("input,select,textarea")[0]||we,Te=l1e(_e),Ke=ae._f.refs||[];if(Te?Ke.find(at=>at===_e):_e===ae._f.ref)return;jt(r,Q,{_f:{...ae._f,...Te?{refs:[...Ke.filter(yw),_e,...Array.isArray(Ie(i,Q))?[{}]:[]],ref:{type:_e.type,name:Q}}:{ref:_e}}}),k(Q,!1,void 0,_e)}else ae=Ie(r,Q,{}),ae._f&&(ae._f.mount=!1),(t.shouldUnregister||re.shouldUnregister)&&!(e1e(u.array,Q)&&l.action)&&u.unMount.add(Q)}}},ee=()=>t.shouldFocusError&&Id(r,Y,u.mount),Ae=Q=>{qi(Q)&&(v.state.next({disabled:Q}),Id(r,(re,ae)=>{const Oe=Ie(r,ae);Oe&&(re.disabled=Oe._f.disabled||Q,Array.isArray(Oe._f.refs)&&Oe._f.refs.forEach(we=>{we.disabled=Oe._f.disabled||Q}))},0,!1))},Se=(Q,re)=>async ae=>{let Oe;ae&&(ae.preventDefault&&ae.preventDefault(),ae.persist&&ae.persist());let we=xn(a);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:_e,values:Te}=await P();S(),n.errors=_e,we=xn(Te)}else await R({fields:r,eventType:Gu.SUBMIT});if(u.disabled.size)for(const _e of u.disabled)dn(we,_e);if(dn(n.errors,oB),ar(n.errors)){v.state.next({errors:{}});try{await Q(we,ae)}catch(_e){Oe=_e}}else re&&await re({...n.errors},ae),ee(),setTimeout(ee);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ar(n.errors)&&!Oe,submitCount:n.submitCount+1,errors:n.errors}),Oe)throw Oe},Ve=(Q,re={})=>{Ie(r,Q)&&(Ht(re.defaultValue)?F(Q,xn(Ie(i,Q))):(F(Q,re.defaultValue),jt(i,Q,xn(re.defaultValue))),re.keepTouched||dn(n.touchedFields,Q),re.keepDirty||(dn(n.dirtyFields,Q),n.isDirty=re.defaultValue?B(Q,xn(Ie(i,Q))):B()),re.keepError||(dn(n.errors,Q),p.isValid&&w()),v.state.next({...n}))},Ne=(Q,re={})=>{const ae=Q?xn(Q):i,Oe=xn(ae),we=ar(Q),_e=we?i:Oe;if(re.keepDefaultValues||(i=ae),!re.keepValues){if(re.keepDirtyValues){const Te=new Set([...u.mount,...Object.keys(Wu(i,a))]);for(const Ke of Array.from(Te)){const at=Ie(n.dirtyFields,Ke),In=Ie(a,Ke),fr=Ie(_e,Ke);at&&!Ht(In)?jt(_e,Ke,In):!at&&!Ht(fr)&&F(Ke,fr)}}else{if(tA&&Ht(Q))for(const Te of u.mount){const Ke=Ie(r,Te);if(Ke&&Ke._f){const at=Array.isArray(Ke._f.refs)?Ke._f.refs[0]:Ke._f.ref;if(qv(at)){const In=at.closest("form");if(In){In.reset();break}}}}if(re.keepFieldsRef)for(const Te of u.mount)F(Te,Ie(_e,Te));else r={}}a=t.shouldUnregister?re.keepDefaultValues?xn(i):{}:xn(_e),v.array.next({values:{..._e}}),v.state.next({values:{..._e}})}u={mount:re.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!p.isValid||!!re.keepIsValid||!!re.keepDirtyValues||!t.shouldUnregister&&!ar(_e),l.watch=!!t.shouldUnregister,l.keepIsValid=!!re.keepIsValid,l.action=!1,re.keepErrors||(n.errors={}),v.state.next({submitCount:re.keepSubmitCount?n.submitCount:0,isDirty:we?!1:re.keepDirty?n.isDirty:!!(re.keepDefaultValues&&!ns(Q,i)),isSubmitted:re.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:we?{}:re.keepDirtyValues?re.keepDefaultValues&&a?Wu(i,a):n.dirtyFields:re.keepDefaultValues&&Q?Wu(i,Q):re.keepDirty?n.dirtyFields:{},touchedFields:re.keepTouched?n.touchedFields:{},errors:re.keepErrors?n.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},it=(Q,re)=>Ne(Ei(Q)?Q(a):Q,{...t.resetOptions,...re}),Nt=(Q,re={})=>{const ae=Ie(r,Q),Oe=ae&&ae._f;if(Oe){const we=Oe.refs?Oe.refs[0]:Oe.ref;we.focus&&setTimeout(()=>{we.focus(),re.shouldSelect&&Ei(we.select)&&we.select()})}},Ft=Q=>{n={...n,...Q}},Qn={control:{register:ge,unregister:W,getFieldState:J,handleSubmit:Se,setError:ce,_subscribe:de,_runSchema:P,_updateIsValidating:S,_focusError:ee,_getWatch:I,_getDirty:B,_setValid:w,_setFieldArray:M,_setDisabledField:pe,_setErrors:O,_getFieldArray:q,_reset:Ne,_resetDefaultValues:()=>Ei(t.defaultValues)&&t.defaultValues().then(Q=>{it(Q,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:N,_disableForm:Ae,_subjects:v,_proxyFormState:p,get _fields(){return r},get _formValues(){return a},get _state(){return l},set _state(Q){l=Q},get _defaultValues(){return i},get _names(){return u},set _names(Q){u=Q},get _formState(){return n},get _options(){return t},set _options(Q){t={...t,...Q}}},subscribe:ie,trigger:$,register:ge,handleSubmit:Se,watch:he,setValue:F,getValues:K,reset:it,resetField:Ve,clearErrors:te,unregister:W,setError:ce,setFocus:Nt,getFieldState:J};return{...Qn,formControl:Qn}}function H2e(e={}){const t=rn.useRef(void 0),n=rn.useRef(void 0),[r,i]=rn.useState({isDirty:!1,isValidating:!1,isLoading:Ei(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Ei(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Ei(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...u}=w1e(e);t.current={...u,formState:r}}const a=t.current.control;return a._options=e,i1e(()=>{const l=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(u=>({...u,isReady:!0})),a._formState.isReady=!0,l},[a]),rn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),rn.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),rn.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),rn.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),rn.useEffect(()=>{if(a._proxyFormState.isDirty){const l=a._getDirty();l!==r.isDirty&&a._subjects.state.next({isDirty:l})}},[a,r.isDirty]),rn.useEffect(()=>{var l;e.values&&!ns(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),!((l=a._options.resetOptions)===null||l===void 0)&&l.keepIsValid||a._setValid(),n.current=e.values,i(u=>({...u}))):a._resetDefaultValues()},[a,e.values]),rn.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=rn.useMemo(()=>r1e(r,a),[a,r]),t.current}var Zu={},vw,o4;function S1e(){return o4||(o4=1,vw=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),vw}var gw={},Qo={},s4;function Gl(){if(s4)return Qo;s4=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Qo.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},Qo.getSymbolTotalCodewords=function(r){return t[r]},Qo.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},Qo.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');e=r},Qo.isKanjiModeEnabled=function(){return typeof e<"u"},Qo.toSJIS=function(r){return e(r)},Qo}var bw={},l4;function oA(){return l4||(l4=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(bw)),bw}var xw,u4;function _1e(){if(u4)return xw;u4=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)===1},put:function(t,n){for(let r=0;r<n;r++)this.putBit((t>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},xw=e,xw}var ww,c4;function E1e(){if(c4)return ww;c4=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,n,r,i){const a=t*this.size+n;this.data[a]=r,i&&(this.reservedBit[a]=!0)},e.prototype.get=function(t,n){return this.data[t*this.size+n]},e.prototype.xor=function(t,n,r){this.data[t*this.size+n]^=r},e.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},ww=e,ww}var Sw={},f4;function A1e(){return f4||(f4=1,(function(e){const t=Gl().getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,a=t(r),l=a===145?26:Math.ceil((a-13)/(2*i-2))*2,u=[a-7];for(let f=1;f<i-1;f++)u[f]=u[f-1]-l;return u.push(6),u.reverse()},e.getPositions=function(r){const i=[],a=e.getRowColCoords(r),l=a.length;for(let u=0;u<l;u++)for(let f=0;f<l;f++)u===0&&f===0||u===0&&f===l-1||u===l-1&&f===0||i.push([a[u],a[f]]);return i}})(Sw)),Sw}var _w={},d4;function O1e(){if(d4)return _w;d4=1;const e=Gl().getSymbolSize,t=7;return _w.getPositions=function(r){const i=e(r);return[[0,0],[i-t,0],[0,i-t]]},_w}var Ew={},h4;function M1e(){return h4||(h4=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const a=i.size;let l=0,u=0,f=0,d=null,h=null;for(let p=0;p<a;p++){u=f=0,d=h=null;for(let y=0;y<a;y++){let v=i.get(p,y);v===d?u++:(u>=5&&(l+=t.N1+(u-5)),d=v,u=1),v=i.get(y,p),v===h?f++:(f>=5&&(l+=t.N1+(f-5)),h=v,f=1)}u>=5&&(l+=t.N1+(u-5)),f>=5&&(l+=t.N1+(f-5))}return l},e.getPenaltyN2=function(i){const a=i.size;let l=0;for(let u=0;u<a-1;u++)for(let f=0;f<a-1;f++){const d=i.get(u,f)+i.get(u,f+1)+i.get(u+1,f)+i.get(u+1,f+1);(d===4||d===0)&&l++}return l*t.N2},e.getPenaltyN3=function(i){const a=i.size;let l=0,u=0,f=0;for(let d=0;d<a;d++){u=f=0;for(let h=0;h<a;h++)u=u<<1&2047|i.get(d,h),h>=10&&(u===1488||u===93)&&l++,f=f<<1&2047|i.get(h,d),h>=10&&(f===1488||f===93)&&l++}return l*t.N3},e.getPenaltyN4=function(i){let a=0;const l=i.data.length;for(let f=0;f<l;f++)a+=i.data[f];return Math.abs(Math.ceil(a*100/l/5)-10)*t.N4};function n(r,i,a){switch(r){case e.Patterns.PATTERN000:return(i+a)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(i+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return i*a%2+i*a%3===0;case e.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case e.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,a){const l=a.size;for(let u=0;u<l;u++)for(let f=0;f<l;f++)a.isReserved(f,u)||a.xor(f,u,n(i,f,u))},e.getBestMask=function(i,a){const l=Object.keys(e.Patterns).length;let u=0,f=1/0;for(let d=0;d<l;d++){a(d),e.applyMask(d,i);const h=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(d,i),h<f&&(f=h,u=d)}return u}})(Ew)),Ew}var sy={},p4;function hB(){if(p4)return sy;p4=1;const e=oA(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return sy.getBlocksCount=function(i,a){switch(a){case e.L:return t[(i-1)*4+0];case e.M:return t[(i-1)*4+1];case e.Q:return t[(i-1)*4+2];case e.H:return t[(i-1)*4+3];default:return}},sy.getTotalCodewordsCount=function(i,a){switch(a){case e.L:return n[(i-1)*4+0];case e.M:return n[(i-1)*4+1];case e.Q:return n[(i-1)*4+2];case e.H:return n[(i-1)*4+3];default:return}},sy}var Aw={},bd={},m4;function C1e(){if(m4)return bd;m4=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)e[i]=r,t[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)e[i]=e[i-255]})(),bd.log=function(r){if(r<1)throw new Error("log("+r+")");return t[r]},bd.exp=function(r){return e[r]},bd.mul=function(r,i){return r===0||i===0?0:e[t[r]+t[i]]},bd}var y4;function k1e(){return y4||(y4=1,(function(e){const t=C1e();e.mul=function(r,i){const a=new Uint8Array(r.length+i.length-1);for(let l=0;l<r.length;l++)for(let u=0;u<i.length;u++)a[l+u]^=t.mul(r[l],i[u]);return a},e.mod=function(r,i){let a=new Uint8Array(r);for(;a.length-i.length>=0;){const l=a[0];for(let f=0;f<i.length;f++)a[f]^=t.mul(i[f],l);let u=0;for(;u<a.length&&a[u]===0;)u++;a=a.slice(u)}return a},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let a=0;a<r;a++)i=e.mul(i,new Uint8Array([1,t.exp(a)]));return i}})(Aw)),Aw}var Ow,v4;function T1e(){if(v4)return Ow;v4=1;const e=k1e();function t(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(r){this.degree=r,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const a=e.mod(i,this.genPoly),l=this.degree-a.length;if(l>0){const u=new Uint8Array(this.degree);return u.set(a,l),u}return a},Ow=t,Ow}var Mw={},Cw={},kw={},g4;function pB(){return g4||(g4=1,kw.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),kw}var Ui={},b4;function mB(){if(b4)return Ui;b4=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
|
|
869
|
-
]))+`;Ui.KANJI=new RegExp(n,"g"),Ui.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ui.BYTE=new RegExp(r,"g"),Ui.NUMERIC=new RegExp(e,"g"),Ui.ALPHANUMERIC=new RegExp(t,"g");const i=new RegExp("^"+n+"$"),a=new RegExp("^"+e+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ui.testKanji=function(f){return i.test(f)},Ui.testNumeric=function(f){return a.test(f)},Ui.testAlphanumeric=function(f){return l.test(f)},Ui}var x4;function Ql(){return x4||(x4=1,(function(e){const t=pB(),n=mB();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,l){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(l))throw new Error("Invalid version: "+l);return l>=1&&l<10?a.ccBits[0]:l<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(a,l){if(e.isValid(a))return a;try{return r(a)}catch{return l}}})(Cw)),Cw}var w4;function P1e(){return w4||(w4=1,(function(e){const t=Gl(),n=hB(),r=oA(),i=Ql(),a=pB(),l=7973,u=t.getBCHDigit(l);function f(y,v,g){for(let b=1;b<=40;b++)if(v<=e.getCapacity(b,g,y))return b}function d(y,v){return i.getCharCountIndicator(y,v)+4}function h(y,v){let g=0;return y.forEach(function(b){const w=d(b.mode,v);g+=w+b.getBitsLength()}),g}function p(y,v){for(let g=1;g<=40;g++)if(h(y,g)<=e.getCapacity(g,v,i.MIXED))return g}e.from=function(v,g){return a.isValid(v)?parseInt(v,10):g},e.getCapacity=function(v,g,b){if(!a.isValid(v))throw new Error("Invalid QR Code version");typeof b>"u"&&(b=i.BYTE);const w=t.getSymbolTotalCodewords(v),S=n.getTotalCodewordsCount(v,g),M=(w-S)*8;if(b===i.MIXED)return M;const A=M-d(b,v);switch(b){case i.NUMERIC:return Math.floor(A/10*3);case i.ALPHANUMERIC:return Math.floor(A/11*2);case i.KANJI:return Math.floor(A/13);case i.BYTE:default:return Math.floor(A/8)}},e.getBestVersionForData=function(v,g){let b;const w=r.from(g,r.M);if(Array.isArray(v)){if(v.length>1)return p(v,w);if(v.length===0)return 1;b=v[0]}else b=v;return f(b.mode,b.getLength(),w)},e.getEncodedBits=function(v){if(!a.isValid(v)||v<7)throw new Error("Invalid QR Code version");let g=v<<12;for(;t.getBCHDigit(g)-u>=0;)g^=l<<t.getBCHDigit(g)-u;return v<<12|g}})(Mw)),Mw}var Tw={},S4;function N1e(){if(S4)return Tw;S4=1;const e=Gl(),t=1335,n=21522,r=e.getBCHDigit(t);return Tw.getEncodedBits=function(a,l){const u=a.bit<<3|l;let f=u<<10;for(;e.getBCHDigit(f)-r>=0;)f^=t<<e.getBCHDigit(f)-r;return(u<<10|f)^n},Tw}var Pw={},Nw,_4;function R1e(){if(_4)return Nw;_4=1;const e=Ql();function t(n){this.mode=e.NUMERIC,this.data=n.toString()}return t.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){let i,a,l;for(i=0;i+3<=this.data.length;i+=3)a=this.data.substr(i,3),l=parseInt(a,10),r.put(l,10);const u=this.data.length-i;u>0&&(a=this.data.substr(i),l=parseInt(a,10),r.put(l,u*3+1))},Nw=t,Nw}var Rw,E4;function D1e(){if(E4)return Rw;E4=1;const e=Ql(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=e.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(i){let a;for(a=0;a+2<=this.data.length;a+=2){let l=t.indexOf(this.data[a])*45;l+=t.indexOf(this.data[a+1]),i.put(l,11)}this.data.length%2&&i.put(t.indexOf(this.data[a]),6)},Rw=n,Rw}var Dw,A4;function j1e(){if(A4)return Dw;A4=1;const e=Ql();function t(n){this.mode=e.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return t.getBitsLength=function(r){return r*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){for(let r=0,i=this.data.length;r<i;r++)n.put(this.data[r],8)},Dw=t,Dw}var jw,O4;function I1e(){if(O4)return jw;O4=1;const e=Ql(),t=Gl();function n(r){this.mode=e.KANJI,this.data=r}return n.getBitsLength=function(i){return i*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let i;for(i=0;i<this.data.length;i++){let a=t.toSJIS(this.data[i]);if(a>=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
|
|
870
|
-
Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),r.put(a,13)}},jw=n,jw}var Iw={exports:{}},M4;function z1e(){return M4||(M4=1,(function(e){var t={single_source_shortest_paths:function(n,r,i){var a={},l={};l[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var f,d,h,p,y,v,g,b,w;!u.empty();){f=u.pop(),d=f.value,p=f.cost,y=n[d]||{};for(h in y)y.hasOwnProperty(h)&&(v=y[h],g=p+v,b=l[h],w=typeof l[h]>"u",(w||b>g)&&(l[h]=g,u.push(h,g),a[h]=d))}if(typeof i<"u"&&typeof l[i]>"u"){var S=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(S)}return a},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],a=r;a;)i.push(a),n[a],a=n[a];return i.reverse(),i},find_path:function(n,r,i){var a=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},a;n=n||{};for(a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Iw)),Iw.exports}var C4;function L1e(){return C4||(C4=1,(function(e){const t=Ql(),n=R1e(),r=D1e(),i=j1e(),a=I1e(),l=mB(),u=Gl(),f=z1e();function d(S){return unescape(encodeURIComponent(S)).length}function h(S,M,A){const O=[];let k;for(;(k=S.exec(A))!==null;)O.push({data:k[0],index:k.index,mode:M,length:k[0].length});return O}function p(S){const M=h(l.NUMERIC,t.NUMERIC,S),A=h(l.ALPHANUMERIC,t.ALPHANUMERIC,S);let O,k;return u.isKanjiModeEnabled()?(O=h(l.BYTE,t.BYTE,S),k=h(l.KANJI,t.KANJI,S)):(O=h(l.BYTE_KANJI,t.BYTE,S),k=[]),M.concat(A,O,k).sort(function(T,P){return T.index-P.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function y(S,M){switch(M){case t.NUMERIC:return n.getBitsLength(S);case t.ALPHANUMERIC:return r.getBitsLength(S);case t.KANJI:return a.getBitsLength(S);case t.BYTE:return i.getBitsLength(S)}}function v(S){return S.reduce(function(M,A){const O=M.length-1>=0?M[M.length-1]:null;return O&&O.mode===A.mode?(M[M.length-1].data+=A.data,M):(M.push(A),M)},[])}function g(S){const M=[];for(let A=0;A<S.length;A++){const O=S[A];switch(O.mode){case t.NUMERIC:M.push([O,{data:O.data,mode:t.ALPHANUMERIC,length:O.length},{data:O.data,mode:t.BYTE,length:O.length}]);break;case t.ALPHANUMERIC:M.push([O,{data:O.data,mode:t.BYTE,length:O.length}]);break;case t.KANJI:M.push([O,{data:O.data,mode:t.BYTE,length:d(O.data)}]);break;case t.BYTE:M.push([{data:O.data,mode:t.BYTE,length:d(O.data)}])}}return M}function b(S,M){const A={},O={start:{}};let k=["start"];for(let C=0;C<S.length;C++){const T=S[C],P=[];for(let D=0;D<T.length;D++){const z=T[D],R=""+C+D;P.push(R),A[R]={node:z,lastCount:0},O[R]={};for(let N=0;N<k.length;N++){const B=k[N];A[B]&&A[B].node.mode===z.mode?(O[B][R]=y(A[B].lastCount+z.length,z.mode)-y(A[B].lastCount,z.mode),A[B].lastCount+=z.length):(A[B]&&(A[B].lastCount=z.length),O[B][R]=y(z.length,z.mode)+4+t.getCharCountIndicator(z.mode,M))}}k=P}for(let C=0;C<k.length;C++)O[k[C]].end=0;return{map:O,table:A}}function w(S,M){let A;const O=t.getBestModeForData(S);if(A=t.from(M,O),A!==t.BYTE&&A.bit<O.bit)throw new Error('"'+S+'" cannot be encoded with mode '+t.toString(A)+`.
|
|
871
|
-
Suggested mode is: `+t.toString(O));switch(A===t.KANJI&&!u.isKanjiModeEnabled()&&(A=t.BYTE),A){case t.NUMERIC:return new n(S);case t.ALPHANUMERIC:return new r(S);case t.KANJI:return new a(S);case t.BYTE:return new i(S)}}e.fromArray=function(M){return M.reduce(function(A,O){return typeof O=="string"?A.push(w(O,null)):O.data&&A.push(w(O.data,O.mode)),A},[])},e.fromString=function(M,A){const O=p(M,u.isKanjiModeEnabled()),k=g(O),C=b(k,A),T=f.find_path(C.map,"start","end"),P=[];for(let D=1;D<T.length-1;D++)P.push(C.table[T[D]].node);return e.fromArray(v(P))},e.rawSplit=function(M){return e.fromArray(p(M,u.isKanjiModeEnabled()))}})(Pw)),Pw}var k4;function B1e(){if(k4)return gw;k4=1;const e=Gl(),t=oA(),n=_1e(),r=E1e(),i=A1e(),a=O1e(),l=M1e(),u=hB(),f=T1e(),d=P1e(),h=N1e(),p=Ql(),y=L1e();function v(C,T){const P=C.size,D=a.getPositions(T);for(let z=0;z<D.length;z++){const R=D[z][0],N=D[z][1];for(let B=-1;B<=7;B++)if(!(R+B<=-1||P<=R+B))for(let I=-1;I<=7;I++)N+I<=-1||P<=N+I||(B>=0&&B<=6&&(I===0||I===6)||I>=0&&I<=6&&(B===0||B===6)||B>=2&&B<=4&&I>=2&&I<=4?C.set(R+B,N+I,!0,!0):C.set(R+B,N+I,!1,!0))}}function g(C){const T=C.size;for(let P=8;P<T-8;P++){const D=P%2===0;C.set(P,6,D,!0),C.set(6,P,D,!0)}}function b(C,T){const P=i.getPositions(T);for(let D=0;D<P.length;D++){const z=P[D][0],R=P[D][1];for(let N=-2;N<=2;N++)for(let B=-2;B<=2;B++)N===-2||N===2||B===-2||B===2||N===0&&B===0?C.set(z+N,R+B,!0,!0):C.set(z+N,R+B,!1,!0)}}function w(C,T){const P=C.size,D=d.getEncodedBits(T);let z,R,N;for(let B=0;B<18;B++)z=Math.floor(B/3),R=B%3+P-8-3,N=(D>>B&1)===1,C.set(z,R,N,!0),C.set(R,z,N,!0)}function S(C,T,P){const D=C.size,z=h.getEncodedBits(T,P);let R,N;for(R=0;R<15;R++)N=(z>>R&1)===1,R<6?C.set(R,8,N,!0):R<8?C.set(R+1,8,N,!0):C.set(D-15+R,8,N,!0),R<8?C.set(8,D-R-1,N,!0):R<9?C.set(8,15-R-1+1,N,!0):C.set(8,15-R-1,N,!0);C.set(D-8,8,1,!0)}function M(C,T){const P=C.size;let D=-1,z=P-1,R=7,N=0;for(let B=P-1;B>0;B-=2)for(B===6&&B--;;){for(let I=0;I<2;I++)if(!C.isReserved(z,B-I)){let q=!1;N<T.length&&(q=(T[N]>>>R&1)===1),C.set(z,B-I,q),R--,R===-1&&(N++,R=7)}if(z+=D,z<0||P<=z){z-=D,D=-D;break}}}function A(C,T,P){const D=new n;P.forEach(function(I){D.put(I.mode.bit,4),D.put(I.getLength(),p.getCharCountIndicator(I.mode,C)),I.write(D)});const z=e.getSymbolTotalCodewords(C),R=u.getTotalCodewordsCount(C,T),N=(z-R)*8;for(D.getLengthInBits()+4<=N&&D.put(0,4);D.getLengthInBits()%8!==0;)D.putBit(0);const B=(N-D.getLengthInBits())/8;for(let I=0;I<B;I++)D.put(I%2?17:236,8);return O(D,C,T)}function O(C,T,P){const D=e.getSymbolTotalCodewords(T),z=u.getTotalCodewordsCount(T,P),R=D-z,N=u.getBlocksCount(T,P),B=D%N,I=N-B,q=Math.floor(D/N),L=Math.floor(R/N),V=L+1,F=q-L,H=new f(F);let Y=0;const $=new Array(N),K=new Array(N);let J=0;const te=new Uint8Array(C.buffer);for(let W=0;W<N;W++){const pe=W<I?L:V;$[W]=te.slice(Y,Y+pe),K[W]=H.encode($[W]),Y+=pe,J=Math.max(J,pe)}const ce=new Uint8Array(D);let he=0,de,ie;for(de=0;de<J;de++)for(ie=0;ie<N;ie++)de<$[ie].length&&(ce[he++]=$[ie][de]);for(de=0;de<F;de++)for(ie=0;ie<N;ie++)ce[he++]=K[ie][de];return ce}function k(C,T,P,D){let z;if(Array.isArray(C))z=y.fromArray(C);else if(typeof C=="string"){let q=T;if(!q){const L=y.rawSplit(C);q=d.getBestVersionForData(L,P)}z=y.fromString(C,q||40)}else throw new Error("Invalid data");const R=d.getBestVersionForData(z,P);if(!R)throw new Error("The amount of data is too big to be stored in a QR Code");if(!T)T=R;else if(T<R)throw new Error(`
|
|
872
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
873
|
-
Minimum version required to store current data is: `+R+`.
|
|
874
|
-
`);const N=A(T,P,z),B=e.getSymbolSize(T),I=new r(B);return v(I,T),g(I),b(I,T),S(I,P,0),T>=7&&w(I,T),M(I,N),isNaN(D)&&(D=l.getBestMask(I,S.bind(null,I,P))),l.applyMask(D,I),S(I,P,D),{modules:I,version:T,errorCorrectionLevel:P,maskPattern:D,segments:z}}return gw.create=function(T,P){if(typeof T>"u"||T==="")throw new Error("No input text");let D=t.M,z,R;return typeof P<"u"&&(D=t.from(P.errorCorrectionLevel,t.M),z=d.from(P.version),R=l.from(P.maskPattern),P.toSJISFunc&&e.setToSJISFunction(P.toSJISFunc)),k(T,z,D,R)},gw}var zw={},Lw={},T4;function yB(){return T4||(T4=1,(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,a=r.width&&r.width>=21?r.width:void 0,l=r.scale||4;return{width:a,scale:a?4:l,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const a=e.getScale(r,i);return Math.floor((r+i.margin*2)*a)},e.qrToImageData=function(r,i,a){const l=i.modules.size,u=i.modules.data,f=e.getScale(l,a),d=Math.floor((l+a.margin*2)*f),h=a.margin*f,p=[a.color.light,a.color.dark];for(let y=0;y<d;y++)for(let v=0;v<d;v++){let g=(y*d+v)*4,b=a.color.light;if(y>=h&&v>=h&&y<d-h&&v<d-h){const w=Math.floor((y-h)/f),S=Math.floor((v-h)/f);b=p[u[w*l+S]?1:0]}r[g++]=b.r,r[g++]=b.g,r[g++]=b.b,r[g]=b.a}}})(Lw)),Lw}var P4;function $1e(){return P4||(P4=1,(function(e){const t=yB();function n(i,a,l){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=l,a.width=l,a.style.height=l+"px",a.style.width=l+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(a,l,u){let f=u,d=l;typeof f>"u"&&(!l||!l.getContext)&&(f=l,l=void 0),l||(d=r()),f=t.getOptions(f);const h=t.getImageWidth(a.modules.size,f),p=d.getContext("2d"),y=p.createImageData(h,h);return t.qrToImageData(y.data,a,f),n(p,d,h),p.putImageData(y,0,0),d},e.renderToDataURL=function(a,l,u){let f=u;typeof f>"u"&&(!l||!l.getContext)&&(f=l,l=void 0),f||(f={});const d=e.render(a,l,f),h=f.type||"image/png",p=f.rendererOpts||{};return d.toDataURL(h,p.quality)}})(zw)),zw}var Bw={},N4;function U1e(){if(N4)return Bw;N4=1;const e=yB();function t(i,a){const l=i.a/255,u=a+'="'+i.hex+'"';return l<1?u+" "+a+'-opacity="'+l.toFixed(2).slice(1)+'"':u}function n(i,a,l){let u=i+a;return typeof l<"u"&&(u+=" "+l),u}function r(i,a,l){let u="",f=0,d=!1,h=0;for(let p=0;p<i.length;p++){const y=Math.floor(p%a),v=Math.floor(p/a);!y&&!d&&(d=!0),i[p]?(h++,p>0&&y>0&&i[p-1]||(u+=d?n("M",y+l,.5+v+l):n("m",f,0),f=0,d=!1),y+1<a&&i[p+1]||(u+=n("h",h),h=0)):f++}return u}return Bw.render=function(a,l,u){const f=e.getOptions(l),d=a.modules.size,h=a.modules.data,p=d+f.margin*2,y=f.color.light.a?"<path "+t(f.color.light,"fill")+' d="M0 0h'+p+"v"+p+'H0z"/>':"",v="<path "+t(f.color.dark,"stroke")+' d="'+r(h,d,f.margin)+'"/>',g='viewBox="0 0 '+p+" "+p+'"',w='<svg xmlns="http://www.w3.org/2000/svg" '+(f.width?'width="'+f.width+'" height="'+f.width+'" ':"")+g+' shape-rendering="crispEdges">'+y+v+`</svg>
|
|
875
|
-
`;return typeof u=="function"&&u(null,w),w},Bw}var R4;function q1e(){if(R4)return Zu;R4=1;const e=S1e(),t=B1e(),n=$1e(),r=U1e();function i(a,l,u,f,d){const h=[].slice.call(arguments,1),p=h.length,y=typeof h[p-1]=="function";if(!y&&!e())throw new Error("Callback required as last argument");if(y){if(p<2)throw new Error("Too few arguments provided");p===2?(d=u,u=l,l=f=void 0):p===3&&(l.getContext&&typeof d>"u"?(d=f,f=void 0):(d=f,f=u,u=l,l=void 0))}else{if(p<1)throw new Error("Too few arguments provided");return p===1?(u=l,l=f=void 0):p===2&&!l.getContext&&(f=u,u=l,l=void 0),new Promise(function(v,g){try{const b=t.create(u,f);v(a(b,l,f))}catch(b){g(b)}})}try{const v=t.create(u,f);d(null,a(v,l,f))}catch(v){d(v)}}return Zu.create=t.create,Zu.toCanvas=i.bind(null,n.render),Zu.toDataURL=i.bind(null,n.renderToDataURL),Zu.toString=i.bind(null,function(a,l,u){return r.render(a,u)}),Zu}var H1e=q1e();const V2e=ui(H1e);export{n2e as $,gbe as A,wbe as B,Mbe as C,Abe as D,Swe as E,oxe as F,fxe as G,vxe as H,gwe as I,Zwe as J,Bbe as K,kxe as L,vbe as M,Fxe as N,Tbe as O,r2e as P,rwe as Q,rn as R,bwe as S,Nwe as T,Xwe as U,t2e as V,e2e as W,Ywe as X,i2e as Y,Gwe as Z,hH as _,Yv as a,d2e as a$,Jwe as a0,Ee as a1,Wwe as a2,Sbe as a3,Uwe as a4,Awe as a5,Kxe as a6,Vwe as a7,Mxe as a8,Twe as a9,Vxe as aA,Rxe as aB,Jbe as aC,bbe as aD,Cbe as aE,bh as aF,tbe as aG,Z1e as aH,W1e as aI,ebe as aJ,X1e as aK,sxe as aL,pbe as aM,M5 as aN,jbe as aO,Dbe as aP,pxe as aQ,qwe as aR,nv as aS,He as aT,Hxe as aU,txe as aV,Vbe as aW,fwe as aX,obe as aY,twe as aZ,Nxe as a_,cxe as aa,Fwe as ab,Bwe as ac,mxe as ad,Uxe as ae,aa as af,iH as ag,Dwe as ah,Rwe as ai,Jxe as aj,kwe as ak,Lbe as al,kbe as am,awe as an,l2e as ao,s2e as ap,Wt as aq,Ch as ar,Wa as as,FS as at,fG as au,o2e as av,gh as aw,le as ax,NU as ay,jU as az,C$ as b,axe as b$,Xxe as b0,xwe as b1,qbe as b2,jwe as b3,Qbe as b4,dwe as b5,exe as b6,Oxe as b7,rxe as b8,Wxe as b9,Lxe as bA,Dxe as bB,nxe as bC,Kwe as bD,vwe as bE,_we as bF,Zbe as bG,hwe as bH,zwe as bI,mbe as bJ,Axe as bK,Xbe as bL,u2e as bM,f2e as bN,c2e as bO,Jy as bP,Nbe as bQ,Owe as bR,wxe as bS,Pwe as bT,gxe as bU,qxe as bV,Bxe as bW,jxe as bX,H2e as bY,Mwe as bZ,Exe as b_,Ybe as ba,nbe as bb,Ibe as bc,$be as bd,Iwe as be,Zxe as bf,Ewe as bg,Ixe as bh,uxe as bi,h2e as bj,U2e as bk,Nge as bl,Vge as bm,wve as bn,Rbe as bo,Pbe as bp,J1e as bq,q2e as br,Wbe as bs,hye as bt,v2e as bu,Lwe as bv,uwe as bw,_xe as bx,xbe as by,ybe as bz,sbe as c,lwe as c0,Gbe as c1,B2e as c2,Yye as c3,zbe as c4,pwe as c5,Yxe as c6,Gxe as c7,xxe as c8,Ube as c9,zxe as cA,ibe as cB,Nq as cC,rbe as cD,Y1e as cE,F1e as cF,TU as cG,G1e as cH,abe as cI,Kbe as ca,V2e as cb,nwe as cc,wwe as cd,Fbe as ce,ewe as cf,$xe as cg,yxe as ch,$we as ci,hxe as cj,ixe as ck,Hwe as cl,Qxe as cm,Cxe as cn,bxe as co,$2e as cp,vge as cq,yJ as cr,Pee as cs,Tee as ct,Obe as cu,Cwe as cv,Txe as cw,dxe as cx,_be as cy,ywe as cz,cbe as d,Ay as e,lbe as f,fbe as g,hbe as h,wt as i,ye as j,cwe as k,swe as l,owe as m,lxe as n,zS as o,Q1e as p,mwe as q,E as r,dbe as s,Qwe as t,ube as u,Pxe as v,iwe as w,Sxe as x,Hbe as y,Ebe as z};
|
|
876
|
-
//# sourceMappingURL=vendor-lE3tZJcC.js.map
|