@elizaos/plugin-knowledge 1.0.2 → 1.0.4

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.
@@ -1,4 +1,4 @@
1
- var _p=e=>{throw TypeError(e)};var cc=(e,n,i)=>n.has(e)||_p("Cannot "+i);var N=(e,n,i)=>(cc(e,n,"read from private field"),i?i.call(e):n.get(e)),ve=(e,n,i)=>n.has(e)?_p("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,i),ue=(e,n,i,s)=>(cc(e,n,"write to private field"),s?s.call(e,i):n.set(e,i),i),Pe=(e,n,i)=>(cc(e,n,"access private method"),i);var Il=(e,n,i,s)=>({set _(a){ue(e,n,a,i)},get _(){return N(e,n,s)}});(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();function h0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fc={exports:{}},Vo={},hc={exports:{}},Te={};/**
1
+ var _p=e=>{throw TypeError(e)};var cc=(e,n,i)=>n.has(e)||_p("Cannot "+i);var T=(e,n,i)=>(cc(e,n,"read from private field"),i?i.call(e):n.get(e)),ve=(e,n,i)=>n.has(e)?_p("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,i),ue=(e,n,i,s)=>(cc(e,n,"write to private field"),s?s.call(e,i):n.set(e,i),i),Pe=(e,n,i)=>(cc(e,n,"access private method"),i);var Il=(e,n,i,s)=>({set _(a){ue(e,n,a,i)},get _(){return T(e,n,s)}});(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function i(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(a){if(a.ep)return;a.ep=!0;const u=i(a);fetch(a.href,u)}})();function h0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fc={exports:{}},qo={},hc={exports:{}},Ne={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var _p=e=>{throw TypeError(e)};var cc=(e,n,i)=>n.has(e)||_p("Cannot "+i);var N=(
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var xp;function Av(){if(xp)return Te;xp=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;function _(R){return R===null||typeof R!="object"?null:(R=g&&R[g]||R["@@iterator"],typeof R=="function"?R:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,b={};function S(R,V,le){this.props=R,this.context=V,this.refs=b,this.updater=le||x}S.prototype.isReactComponent={},S.prototype.setState=function(R,V){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,V,"setState")},S.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function k(){}k.prototype=S.prototype;function O(R,V,le){this.props=R,this.context=V,this.refs=b,this.updater=le||x}var A=O.prototype=new k;A.constructor=O,C(A,S.prototype),A.isPureReactComponent=!0;var P=Array.isArray,T=Object.prototype.hasOwnProperty,z={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function D(R,V,le){var ge,ke={},Ce=null,Ee=null;if(V!=null)for(ge in V.ref!==void 0&&(Ee=V.ref),V.key!==void 0&&(Ce=""+V.key),V)T.call(V,ge)&&!L.hasOwnProperty(ge)&&(ke[ge]=V[ge]);var be=arguments.length-2;if(be===1)ke.children=le;else if(1<be){for(var Ae=Array(be),gt=0;gt<be;gt++)Ae[gt]=arguments[gt+2];ke.children=Ae}if(R&&R.defaultProps)for(ge in be=R.defaultProps,be)ke[ge]===void 0&&(ke[ge]=be[ge]);return{$$typeof:e,type:R,key:Ce,ref:Ee,props:ke,_owner:z.current}}function Q(R,V){return{$$typeof:e,type:R.type,key:V,ref:R.ref,props:R.props,_owner:R._owner}}function K(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function Z(R){var V={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(le){return V[le]})}var ie=/\/+/g;function ce(R,V){return typeof R=="object"&&R!==null&&R.key!=null?Z(""+R.key):V.toString(36)}function F(R,V,le,ge,ke){var Ce=typeof R;(Ce==="undefined"||Ce==="boolean")&&(R=null);var Ee=!1;if(R===null)Ee=!0;else switch(Ce){case"string":case"number":Ee=!0;break;case"object":switch(R.$$typeof){case e:case n:Ee=!0}}if(Ee)return Ee=R,ke=ke(Ee),R=ge===""?"."+ce(Ee,0):ge,P(ke)?(le="",R!=null&&(le=R.replace(ie,"$&/")+"/"),F(ke,V,le,"",function(gt){return gt})):ke!=null&&(K(ke)&&(ke=Q(ke,le+(!ke.key||Ee&&Ee.key===ke.key?"":(""+ke.key).replace(ie,"$&/")+"/")+R)),V.push(ke)),1;if(Ee=0,ge=ge===""?".":ge+":",P(R))for(var be=0;be<R.length;be++){Ce=R[be];var Ae=ge+ce(Ce,be);Ee+=F(Ce,V,le,Ae,ke)}else if(Ae=_(R),typeof Ae=="function")for(R=Ae.call(R),be=0;!(Ce=R.next()).done;)Ce=Ce.value,Ae=ge+ce(Ce,be++),Ee+=F(Ce,V,le,Ae,ke);else if(Ce==="object")throw V=String(R),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return Ee}function te(R,V,le){if(R==null)return R;var ge=[],ke=0;return F(R,ge,"","",function(Ce){return V.call(le,Ce,ke++)}),ge}function W(R){if(R._status===-1){var V=R._result;V=V(),V.then(function(le){(R._status===0||R._status===-1)&&(R._status=1,R._result=le)},function(le){(R._status===0||R._status===-1)&&(R._status=2,R._result=le)}),R._status===-1&&(R._status=0,R._result=V)}if(R._status===1)return R._result.default;throw R._result}var oe={current:null},B={transition:null},J={ReactCurrentDispatcher:oe,ReactCurrentBatchConfig:B,ReactCurrentOwner:z};function G(){throw Error("act(...) is not supported in production builds of React.")}return Te.Children={map:te,forEach:function(R,V,le){te(R,function(){V.apply(this,arguments)},le)},count:function(R){var V=0;return te(R,function(){V++}),V},toArray:function(R){return te(R,function(V){return V})||[]},only:function(R){if(!K(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Te.Component=S,Te.Fragment=i,Te.Profiler=a,Te.PureComponent=O,Te.StrictMode=s,Te.Suspense=p,Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Te.act=G,Te.cloneElement=function(R,V,le){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var ge=C({},R.props),ke=R.key,Ce=R.ref,Ee=R._owner;if(V!=null){if(V.ref!==void 0&&(Ce=V.ref,Ee=z.current),V.key!==void 0&&(ke=""+V.key),R.type&&R.type.defaultProps)var be=R.type.defaultProps;for(Ae in V)T.call(V,Ae)&&!L.hasOwnProperty(Ae)&&(ge[Ae]=V[Ae]===void 0&&be!==void 0?be[Ae]:V[Ae])}var Ae=arguments.length-2;if(Ae===1)ge.children=le;else if(1<Ae){be=Array(Ae);for(var gt=0;gt<Ae;gt++)be[gt]=arguments[gt+2];ge.children=be}return{$$typeof:e,type:R.type,key:ke,ref:Ce,props:ge,_owner:Ee}},Te.createContext=function(R){return R={$$typeof:f,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:u,_context:R},R.Consumer=R},Te.createElement=D,Te.createFactory=function(R){var V=D.bind(null,R);return V.type=R,V},Te.createRef=function(){return{current:null}},Te.forwardRef=function(R){return{$$typeof:h,render:R}},Te.isValidElement=K,Te.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:W}},Te.memo=function(R,V){return{$$typeof:y,type:R,compare:V===void 0?null:V}},Te.startTransition=function(R){var V=B.transition;B.transition={};try{R()}finally{B.transition=V}},Te.unstable_act=G,Te.useCallback=function(R,V){return oe.current.useCallback(R,V)},Te.useContext=function(R){return oe.current.useContext(R)},Te.useDebugValue=function(){},Te.useDeferredValue=function(R){return oe.current.useDeferredValue(R)},Te.useEffect=function(R,V){return oe.current.useEffect(R,V)},Te.useId=function(){return oe.current.useId()},Te.useImperativeHandle=function(R,V,le){return oe.current.useImperativeHandle(R,V,le)},Te.useInsertionEffect=function(R,V){return oe.current.useInsertionEffect(R,V)},Te.useLayoutEffect=function(R,V){return oe.current.useLayoutEffect(R,V)},Te.useMemo=function(R,V){return oe.current.useMemo(R,V)},Te.useReducer=function(R,V,le){return oe.current.useReducer(R,V,le)},Te.useRef=function(R){return oe.current.useRef(R)},Te.useState=function(R){return oe.current.useState(R)},Te.useSyncExternalStore=function(R,V,le){return oe.current.useSyncExternalStore(R,V,le)},Te.useTransition=function(){return oe.current.useTransition()},Te.version="18.3.1",Te}var wp;function hf(){return wp||(wp=1,hc.exports=Av()),hc.exports}/**
9
+ */var xp;function jv(){if(xp)return Ne;xp=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;function _(R){return R===null||typeof R!="object"?null:(R=g&&R[g]||R["@@iterator"],typeof R=="function"?R:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,b={};function S(R,q,le){this.props=R,this.context=q,this.refs=b,this.updater=le||x}S.prototype.isReactComponent={},S.prototype.setState=function(R,q){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,q,"setState")},S.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function k(){}k.prototype=S.prototype;function O(R,q,le){this.props=R,this.context=q,this.refs=b,this.updater=le||x}var A=O.prototype=new k;A.constructor=O,C(A,S.prototype),A.isPureReactComponent=!0;var P=Array.isArray,N=Object.prototype.hasOwnProperty,z={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function D(R,q,le){var ge,ke={},Ce=null,Ee=null;if(q!=null)for(ge in q.ref!==void 0&&(Ee=q.ref),q.key!==void 0&&(Ce=""+q.key),q)N.call(q,ge)&&!F.hasOwnProperty(ge)&&(ke[ge]=q[ge]);var be=arguments.length-2;if(be===1)ke.children=le;else if(1<be){for(var Ae=Array(be),gt=0;gt<be;gt++)Ae[gt]=arguments[gt+2];ke.children=Ae}if(R&&R.defaultProps)for(ge in be=R.defaultProps,be)ke[ge]===void 0&&(ke[ge]=be[ge]);return{$$typeof:e,type:R,key:Ce,ref:Ee,props:ke,_owner:z.current}}function Q(R,q){return{$$typeof:e,type:R.type,key:q,ref:R.ref,props:R.props,_owner:R._owner}}function K(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function Z(R){var q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(le){return q[le]})}var ie=/\/+/g;function ce(R,q){return typeof R=="object"&&R!==null&&R.key!=null?Z(""+R.key):q.toString(36)}function $(R,q,le,ge,ke){var Ce=typeof R;(Ce==="undefined"||Ce==="boolean")&&(R=null);var Ee=!1;if(R===null)Ee=!0;else switch(Ce){case"string":case"number":Ee=!0;break;case"object":switch(R.$$typeof){case e:case n:Ee=!0}}if(Ee)return Ee=R,ke=ke(Ee),R=ge===""?"."+ce(Ee,0):ge,P(ke)?(le="",R!=null&&(le=R.replace(ie,"$&/")+"/"),$(ke,q,le,"",function(gt){return gt})):ke!=null&&(K(ke)&&(ke=Q(ke,le+(!ke.key||Ee&&Ee.key===ke.key?"":(""+ke.key).replace(ie,"$&/")+"/")+R)),q.push(ke)),1;if(Ee=0,ge=ge===""?".":ge+":",P(R))for(var be=0;be<R.length;be++){Ce=R[be];var Ae=ge+ce(Ce,be);Ee+=$(Ce,q,le,Ae,ke)}else if(Ae=_(R),typeof Ae=="function")for(R=Ae.call(R),be=0;!(Ce=R.next()).done;)Ce=Ce.value,Ae=ge+ce(Ce,be++),Ee+=$(Ce,q,le,Ae,ke);else if(Ce==="object")throw q=String(R),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return Ee}function te(R,q,le){if(R==null)return R;var ge=[],ke=0;return $(R,ge,"","",function(Ce){return q.call(le,Ce,ke++)}),ge}function W(R){if(R._status===-1){var q=R._result;q=q(),q.then(function(le){(R._status===0||R._status===-1)&&(R._status=1,R._result=le)},function(le){(R._status===0||R._status===-1)&&(R._status=2,R._result=le)}),R._status===-1&&(R._status=0,R._result=q)}if(R._status===1)return R._result.default;throw R._result}var oe={current:null},B={transition:null},J={ReactCurrentDispatcher:oe,ReactCurrentBatchConfig:B,ReactCurrentOwner:z};function G(){throw Error("act(...) is not supported in production builds of React.")}return Ne.Children={map:te,forEach:function(R,q,le){te(R,function(){q.apply(this,arguments)},le)},count:function(R){var q=0;return te(R,function(){q++}),q},toArray:function(R){return te(R,function(q){return q})||[]},only:function(R){if(!K(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Ne.Component=S,Ne.Fragment=i,Ne.Profiler=a,Ne.PureComponent=O,Ne.StrictMode=s,Ne.Suspense=p,Ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Ne.act=G,Ne.cloneElement=function(R,q,le){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var ge=C({},R.props),ke=R.key,Ce=R.ref,Ee=R._owner;if(q!=null){if(q.ref!==void 0&&(Ce=q.ref,Ee=z.current),q.key!==void 0&&(ke=""+q.key),R.type&&R.type.defaultProps)var be=R.type.defaultProps;for(Ae in q)N.call(q,Ae)&&!F.hasOwnProperty(Ae)&&(ge[Ae]=q[Ae]===void 0&&be!==void 0?be[Ae]:q[Ae])}var Ae=arguments.length-2;if(Ae===1)ge.children=le;else if(1<Ae){be=Array(Ae);for(var gt=0;gt<Ae;gt++)be[gt]=arguments[gt+2];ge.children=be}return{$$typeof:e,type:R.type,key:ke,ref:Ce,props:ge,_owner:Ee}},Ne.createContext=function(R){return R={$$typeof:f,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:u,_context:R},R.Consumer=R},Ne.createElement=D,Ne.createFactory=function(R){var q=D.bind(null,R);return q.type=R,q},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(R){return{$$typeof:h,render:R}},Ne.isValidElement=K,Ne.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:W}},Ne.memo=function(R,q){return{$$typeof:m,type:R,compare:q===void 0?null:q}},Ne.startTransition=function(R){var q=B.transition;B.transition={};try{R()}finally{B.transition=q}},Ne.unstable_act=G,Ne.useCallback=function(R,q){return oe.current.useCallback(R,q)},Ne.useContext=function(R){return oe.current.useContext(R)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(R){return oe.current.useDeferredValue(R)},Ne.useEffect=function(R,q){return oe.current.useEffect(R,q)},Ne.useId=function(){return oe.current.useId()},Ne.useImperativeHandle=function(R,q,le){return oe.current.useImperativeHandle(R,q,le)},Ne.useInsertionEffect=function(R,q){return oe.current.useInsertionEffect(R,q)},Ne.useLayoutEffect=function(R,q){return oe.current.useLayoutEffect(R,q)},Ne.useMemo=function(R,q){return oe.current.useMemo(R,q)},Ne.useReducer=function(R,q,le){return oe.current.useReducer(R,q,le)},Ne.useRef=function(R){return oe.current.useRef(R)},Ne.useState=function(R){return oe.current.useState(R)},Ne.useSyncExternalStore=function(R,q,le){return oe.current.useSyncExternalStore(R,q,le)},Ne.useTransition=function(){return oe.current.useTransition()},Ne.version="18.3.1",Ne}var wp;function hf(){return wp||(wp=1,hc.exports=jv()),hc.exports}/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var _p=e=>{throw TypeError(e)};var cc=(e,n,i)=>n.has(e)||_p("Cannot "+i);var N=(
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var kp;function jv(){if(kp)return Vo;kp=1;var e=hf(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(h,p,y){var v,g={},_=null,x=null;y!==void 0&&(_=""+y),p.key!==void 0&&(_=""+p.key),p.ref!==void 0&&(x=p.ref);for(v in p)s.call(p,v)&&!u.hasOwnProperty(v)&&(g[v]=p[v]);if(h&&h.defaultProps)for(v in p=h.defaultProps,p)g[v]===void 0&&(g[v]=p[v]);return{$$typeof:n,type:h,key:_,ref:x,props:g,_owner:a.current}}return Vo.Fragment=i,Vo.jsx=f,Vo.jsxs=f,Vo}var Sp;function zv(){return Sp||(Sp=1,fc.exports=jv()),fc.exports}var $=zv(),no=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(){}},oi=typeof window>"u"||"Deno"in globalThis;function xt(){}function Dv(e,n){return typeof e=="function"?e(n):e}function Oc(e){return typeof e=="number"&&e>=0&&e!==1/0}function d0(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Mr(e,n){return typeof e=="function"?e(n):e}function fn(e,n){return typeof e=="function"?e(n):e}function Cp(e,n){const{type:i="all",exact:s,fetchStatus:a,predicate:u,queryKey:f,stale:h}=e;if(f){if(s){if(n.queryHash!==df(f,n.options))return!1}else if(!ls(n.queryKey,f))return!1}if(i!=="all"){const p=n.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||a&&a!==n.state.fetchStatus||u&&!u(n))}function bp(e,n){const{exact:i,status:s,predicate:a,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(i){if(si(n.options.mutationKey)!==si(u))return!1}else if(!ls(n.options.mutationKey,u))return!1}return!(s&&n.state.status!==s||a&&!a(n))}function df(e,n){return((n==null?void 0:n.queryKeyHashFn)||si)(e)}function si(e){return JSON.stringify(e,(n,i)=>Rc(i)?Object.keys(i).sort().reduce((s,a)=>(s[a]=i[a],s),{}):i)}function ls(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(i=>ls(e[i],n[i])):!1}function p0(e,n){if(e===n)return e;const i=Ep(e)&&Ep(n);if(i||Rc(e)&&Rc(n)){const s=i?e:Object.keys(e),a=s.length,u=i?n:Object.keys(n),f=u.length,h=i?[]:{},p=new Set(s);let y=0;for(let v=0;v<f;v++){const g=i?v:u[v];(!i&&p.has(g)||i)&&e[g]===void 0&&n[g]===void 0?(h[g]=void 0,y++):(h[g]=p0(e[g],n[g]),h[g]===e[g]&&e[g]!==void 0&&y++)}return a===f&&y===a?e:h}return n}function ea(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const i in e)if(e[i]!==n[i])return!1;return!0}function Ep(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Rc(e){if(!Pp(e))return!1;const n=e.constructor;if(n===void 0)return!0;const i=n.prototype;return!(!Pp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Pp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Iv(e){return new Promise(n=>{setTimeout(n,e)})}function Ac(e,n,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,n):i.structuralSharing!==!1?p0(e,n):n}function Lv(e,n,i=0){const s=[...e,n];return i&&s.length>i?s.slice(1):s}function Fv(e,n,i=0){const s=[n,...e];return i&&s.length>i?s.slice(0,-1):s}var pf=Symbol();function g0(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===pf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function y0(e,n){return typeof e=="function"?e(...n):!!e}var Gr,xr,$i,n0,$v=(n0=class extends no{constructor(){super();ve(this,Gr);ve(this,xr);ve(this,$i);ue(this,$i,n=>{if(!oi&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){N(this,xr)||this.setEventListener(N(this,$i))}onUnsubscribe(){var n;this.hasListeners()||((n=N(this,xr))==null||n.call(this),ue(this,xr,void 0))}setEventListener(n){var i;ue(this,$i,n),(i=N(this,xr))==null||i.call(this),ue(this,xr,n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(n){N(this,Gr)!==n&&(ue(this,Gr,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){var n;return typeof N(this,Gr)=="boolean"?N(this,Gr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Gr=new WeakMap,xr=new WeakMap,$i=new WeakMap,n0),gf=new $v,Ui,wr,Hi,r0,Uv=(r0=class extends no{constructor(){super();ve(this,Ui,!0);ve(this,wr);ve(this,Hi);ue(this,Hi,n=>{if(!oi&&window.addEventListener){const i=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}})}onSubscribe(){N(this,wr)||this.setEventListener(N(this,Hi))}onUnsubscribe(){var n;this.hasListeners()||((n=N(this,wr))==null||n.call(this),ue(this,wr,void 0))}setEventListener(n){var i;ue(this,Hi,n),(i=N(this,wr))==null||i.call(this),ue(this,wr,n(this.setOnline.bind(this)))}setOnline(n){N(this,Ui)!==n&&(ue(this,Ui,n),this.listeners.forEach(s=>{s(n)}))}isOnline(){return N(this,Ui)}},Ui=new WeakMap,wr=new WeakMap,Hi=new WeakMap,r0),ta=new Uv;function jc(){let e,n;const i=new Promise((a,u)=>{e=a,n=u});i.status="pending",i.catch(()=>{});function s(a){Object.assign(i,a),delete i.resolve,delete i.reject}return i.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},i.reject=a=>{s({status:"rejected",reason:a}),n(a)},i}function Hv(e){return Math.min(1e3*2**e,3e4)}function m0(e){return(e??"online")==="online"?ta.isOnline():!0}var v0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dc(e){return e instanceof v0}function _0(e){let n=!1,i=0,s=!1,a;const u=jc(),f=b=>{var S;s||(_(new v0(b)),(S=e.abort)==null||S.call(e))},h=()=>{n=!0},p=()=>{n=!1},y=()=>gf.isFocused()&&(e.networkMode==="always"||ta.isOnline())&&e.canRun(),v=()=>m0(e.networkMode)&&e.canRun(),g=b=>{var S;s||(s=!0,(S=e.onSuccess)==null||S.call(e,b),a==null||a(),u.resolve(b))},_=b=>{var S;s||(s=!0,(S=e.onError)==null||S.call(e,b),a==null||a(),u.reject(b))},x=()=>new Promise(b=>{var S;a=k=>{(s||y())&&b(k)},(S=e.onPause)==null||S.call(e)}).then(()=>{var b;a=void 0,s||(b=e.onContinue)==null||b.call(e)}),C=()=>{if(s)return;let b;const S=i===0?e.initialPromise:void 0;try{b=S??e.fn()}catch(k){b=Promise.reject(k)}Promise.resolve(b).then(g).catch(k=>{var z;if(s)return;const O=e.retry??(oi?0:3),A=e.retryDelay??Hv,P=typeof A=="function"?A(i,k):A,T=O===!0||typeof O=="number"&&i<O||typeof O=="function"&&O(i,k);if(n||!T){_(k);return}i++,(z=e.onFail)==null||z.call(e,i,k),Iv(P).then(()=>y()?void 0:x()).then(()=>{n?_(k):C()})})};return{promise:u,cancel:f,continue:()=>(a==null||a(),u),cancelRetry:h,continueRetry:p,canStart:v,start:()=>(v()?C():x().then(C),u)}}var qv=e=>setTimeout(e,0);function Vv(){let e=[],n=0,i=h=>{h()},s=h=>{h()},a=qv;const u=h=>{n?e.push(h):a(()=>{i(h)})},f=()=>{const h=e;e=[],h.length&&a(()=>{s(()=>{h.forEach(p=>{i(p)})})})};return{batch:h=>{let p;n++;try{p=h()}finally{n--,n||f()}return p},batchCalls:h=>(...p)=>{u(()=>{h(...p)})},schedule:u,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{a=h}}}var tt=Vv(),Xr,i0,x0=(i0=class{constructor(){ve(this,Xr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oc(this.gcTime)&&ue(this,Xr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(oi?1/0:5*60*1e3))}clearGcTimeout(){N(this,Xr)&&(clearTimeout(N(this,Xr)),ue(this,Xr,void 0))}},Xr=new WeakMap,i0),qi,Vi,Xt,Yr,pt,ys,Zr,un,Un,o0,Qv=(o0=class extends x0{constructor(n){super();ve(this,un);ve(this,qi);ve(this,Vi);ve(this,Xt);ve(this,Yr);ve(this,pt);ve(this,ys);ve(this,Zr);ue(this,Zr,!1),ue(this,ys,n.defaultOptions),this.setOptions(n.options),this.observers=[],ue(this,Yr,n.client),ue(this,Xt,N(this,Yr).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,ue(this,qi,Bv(this.options)),this.state=n.state??N(this,qi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=N(this,pt))==null?void 0:n.promise}setOptions(n){this.options={...N(this,ys),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,Xt).remove(this)}setData(n,i){const s=Ac(this.state.data,n,this.options);return Pe(this,un,Un).call(this,{data:s,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),s}setState(n,i){Pe(this,un,Un).call(this,{type:"setState",state:n,setStateOptions:i})}cancel(n){var s,a;const i=(s=N(this,pt))==null?void 0:s.promise;return(a=N(this,pt))==null||a.cancel(n),i?i.then(xt).catch(xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,qi))}isActive(){return this.observers.some(n=>fn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Mr(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!d0(this.state.dataUpdatedAt,n)}onFocus(){var i;const n=this.observers.find(s=>s.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(i=N(this,pt))==null||i.continue()}onOnline(){var i;const n=this.observers.find(s=>s.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(i=N(this,pt))==null||i.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),N(this,Xt).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(N(this,pt)&&(N(this,Zr)?N(this,pt).cancel({revert:!0}):N(this,pt).cancelRetry()),this.scheduleGc()),N(this,Xt).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,un,Un).call(this,{type:"invalidate"})}fetch(n,i){var y,v,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(N(this,pt))return N(this,pt).continueRetry(),N(this,pt).promise}if(n&&this.setOptions(n),!this.options.queryFn){const _=this.observers.find(x=>x.options.queryFn);_&&this.setOptions(_.options)}const s=new AbortController,a=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(ue(this,Zr,!0),s.signal)})},u=()=>{const _=g0(this.options,i),C=(()=>{const b={client:N(this,Yr),queryKey:this.queryKey,meta:this.meta};return a(b),b})();return ue(this,Zr,!1),this.options.persister?this.options.persister(_,C,this):_(C)},h=(()=>{const _={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:N(this,Yr),state:this.state,fetchFn:u};return a(_),_})();(y=this.options.behavior)==null||y.onFetch(h,this),ue(this,Vi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=h.fetchOptions)==null?void 0:v.meta))&&Pe(this,un,Un).call(this,{type:"fetch",meta:(g=h.fetchOptions)==null?void 0:g.meta});const p=_=>{var x,C,b,S;dc(_)&&_.silent||Pe(this,un,Un).call(this,{type:"error",error:_}),dc(_)||((C=(x=N(this,Xt).config).onError)==null||C.call(x,_,this),(S=(b=N(this,Xt).config).onSettled)==null||S.call(b,this.state.data,_,this)),this.scheduleGc()};return ue(this,pt,_0({initialPromise:i==null?void 0:i.initialPromise,fn:h.fetchFn,abort:s.abort.bind(s),onSuccess:_=>{var x,C,b,S;if(_===void 0){p(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(_)}catch(k){p(k);return}(C=(x=N(this,Xt).config).onSuccess)==null||C.call(x,_,this),(S=(b=N(this,Xt).config).onSettled)==null||S.call(b,_,this.state.error,this),this.scheduleGc()},onError:p,onFail:(_,x)=>{Pe(this,un,Un).call(this,{type:"failed",failureCount:_,error:x})},onPause:()=>{Pe(this,un,Un).call(this,{type:"pause"})},onContinue:()=>{Pe(this,un,Un).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),N(this,pt).start()}},qi=new WeakMap,Vi=new WeakMap,Xt=new WeakMap,Yr=new WeakMap,pt=new WeakMap,ys=new WeakMap,Zr=new WeakMap,un=new WeakSet,Un=function(n){const i=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...w0(s.data,this.options),fetchMeta:n.meta??null};case"success":return{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=n.error;return dc(a)&&a.revert&&N(this,Vi)?{...N(this,Vi),fetchStatus:"idle"}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=i(this.state),tt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),N(this,Xt).notify({query:this,type:"updated",action:n})})},o0);function w0(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:m0(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Bv(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,i=n!==void 0,s=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var kn,s0,Wv=(s0=class extends no{constructor(n={}){super();ve(this,kn);this.config=n,ue(this,kn,new Map)}build(n,i,s){const a=i.queryKey,u=i.queryHash??df(a,i);let f=this.get(u);return f||(f=new Qv({client:n,queryKey:a,queryHash:u,options:n.defaultQueryOptions(i),state:s,defaultOptions:n.getQueryDefaults(a)}),this.add(f)),f}add(n){N(this,kn).has(n.queryHash)||(N(this,kn).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=N(this,kn).get(n.queryHash);i&&(n.destroy(),i===n&&N(this,kn).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){tt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return N(this,kn).get(n)}getAll(){return[...N(this,kn).values()]}find(n){const i={exact:!0,...n};return this.getAll().find(s=>Cp(i,s))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(s=>Cp(n,s)):i}notify(n){tt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){tt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){tt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},kn=new WeakMap,s0),Sn,vt,Jr,Cn,vr,l0,Kv=(l0=class extends x0{constructor(n){super();ve(this,Cn);ve(this,Sn);ve(this,vt);ve(this,Jr);this.mutationId=n.mutationId,ue(this,vt,n.mutationCache),ue(this,Sn,[]),this.state=n.state||k0(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){N(this,Sn).includes(n)||(N(this,Sn).push(n),this.clearGcTimeout(),N(this,vt).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){ue(this,Sn,N(this,Sn).filter(i=>i!==n)),this.scheduleGc(),N(this,vt).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){N(this,Sn).length||(this.state.status==="pending"?this.scheduleGc():N(this,vt).remove(this))}continue(){var n;return((n=N(this,Jr))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var u,f,h,p,y,v,g,_,x,C,b,S,k,O,A,P,T,z,L,D;const i=()=>{Pe(this,Cn,vr).call(this,{type:"continue"})};ue(this,Jr,_0({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(Q,K)=>{Pe(this,Cn,vr).call(this,{type:"failed",failureCount:Q,error:K})},onPause:()=>{Pe(this,Cn,vr).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,vt).canRun(this)}));const s=this.state.status==="pending",a=!N(this,Jr).canStart();try{if(s)i();else{Pe(this,Cn,vr).call(this,{type:"pending",variables:n,isPaused:a}),await((f=(u=N(this,vt).config).onMutate)==null?void 0:f.call(u,n,this));const K=await((p=(h=this.options).onMutate)==null?void 0:p.call(h,n));K!==this.state.context&&Pe(this,Cn,vr).call(this,{type:"pending",context:K,variables:n,isPaused:a})}const Q=await N(this,Jr).start();return await((v=(y=N(this,vt).config).onSuccess)==null?void 0:v.call(y,Q,n,this.state.context,this)),await((_=(g=this.options).onSuccess)==null?void 0:_.call(g,Q,n,this.state.context)),await((C=(x=N(this,vt).config).onSettled)==null?void 0:C.call(x,Q,null,this.state.variables,this.state.context,this)),await((S=(b=this.options).onSettled)==null?void 0:S.call(b,Q,null,n,this.state.context)),Pe(this,Cn,vr).call(this,{type:"success",data:Q}),Q}catch(Q){try{throw await((O=(k=N(this,vt).config).onError)==null?void 0:O.call(k,Q,n,this.state.context,this)),await((P=(A=this.options).onError)==null?void 0:P.call(A,Q,n,this.state.context)),await((z=(T=N(this,vt).config).onSettled)==null?void 0:z.call(T,void 0,Q,this.state.variables,this.state.context,this)),await((D=(L=this.options).onSettled)==null?void 0:D.call(L,void 0,Q,n,this.state.context)),Q}finally{Pe(this,Cn,vr).call(this,{type:"error",error:Q})}}finally{N(this,vt).runNext(this)}}},Sn=new WeakMap,vt=new WeakMap,Jr=new WeakMap,Cn=new WeakSet,vr=function(n){const i=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),tt.batch(()=>{N(this,Sn).forEach(s=>{s.onMutationUpdate(n)}),N(this,vt).notify({mutation:this,type:"updated",action:n})})},l0);function k0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var qn,cn,ms,a0,Gv=(a0=class extends no{constructor(n={}){super();ve(this,qn);ve(this,cn);ve(this,ms);this.config=n,ue(this,qn,new Set),ue(this,cn,new Map),ue(this,ms,0)}build(n,i,s){const a=new Kv({mutationCache:this,mutationId:++Il(this,ms)._,options:n.defaultMutationOptions(i),state:s});return this.add(a),a}add(n){N(this,qn).add(n);const i=Ll(n);if(typeof i=="string"){const s=N(this,cn).get(i);s?s.push(n):N(this,cn).set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(N(this,qn).delete(n)){const i=Ll(n);if(typeof i=="string"){const s=N(this,cn).get(i);if(s)if(s.length>1){const a=s.indexOf(n);a!==-1&&s.splice(a,1)}else s[0]===n&&N(this,cn).delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Ll(n);if(typeof i=="string"){const s=N(this,cn).get(i),a=s==null?void 0:s.find(u=>u.state.status==="pending");return!a||a===n}else return!0}runNext(n){var s;const i=Ll(n);if(typeof i=="string"){const a=(s=N(this,cn).get(i))==null?void 0:s.find(u=>u!==n&&u.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){tt.batch(()=>{N(this,qn).forEach(n=>{this.notify({type:"removed",mutation:n})}),N(this,qn).clear(),N(this,cn).clear()})}getAll(){return Array.from(N(this,qn))}find(n){const i={exact:!0,...n};return this.getAll().find(s=>bp(i,s))}findAll(n={}){return this.getAll().filter(i=>bp(n,i))}notify(n){tt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return tt.batch(()=>Promise.all(n.map(i=>i.continue().catch(xt))))}},qn=new WeakMap,cn=new WeakMap,ms=new WeakMap,a0);function Ll(e){var n;return(n=e.options.scope)==null?void 0:n.id}function Tp(e){return{onFetch:(n,i)=>{var v,g,_,x,C;const s=n.options,a=(_=(g=(v=n.fetchOptions)==null?void 0:v.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,u=((x=n.state.data)==null?void 0:x.pages)||[],f=((C=n.state.data)==null?void 0:C.pageParams)||[];let h={pages:[],pageParams:[]},p=0;const y=async()=>{let b=!1;const S=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(n.signal.aborted?b=!0:n.signal.addEventListener("abort",()=>{b=!0}),n.signal)})},k=g0(n.options,n.fetchOptions),O=async(A,P,T)=>{if(b)return Promise.reject();if(P==null&&A.pages.length)return Promise.resolve(A);const L=(()=>{const Z={client:n.client,queryKey:n.queryKey,pageParam:P,direction:T?"backward":"forward",meta:n.options.meta};return S(Z),Z})(),D=await k(L),{maxPages:Q}=n.options,K=T?Fv:Lv;return{pages:K(A.pages,D,Q),pageParams:K(A.pageParams,P,Q)}};if(a&&u.length){const A=a==="backward",P=A?Xv:Np,T={pages:u,pageParams:f},z=P(s,T);h=await O(T,z,A)}else{const A=e??u.length;do{const P=p===0?f[0]??s.initialPageParam:Np(s,h);if(p>0&&P==null)break;h=await O(h,P),p++}while(p<A)}return h};n.options.persister?n.fetchFn=()=>{var b,S;return(S=(b=n.options).persister)==null?void 0:S.call(b,y,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},i)}:n.fetchFn=y}}}function Np(e,{pages:n,pageParams:i}){const s=n.length-1;return n.length>0?e.getNextPageParam(n[s],n,i[s],i):void 0}function Xv(e,{pages:n,pageParams:i}){var s;return n.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,n[0],n,i[0],i):void 0}var Ge,kr,Sr,Qi,Bi,Cr,Wi,Ki,u0,Yv=(u0=class{constructor(e={}){ve(this,Ge);ve(this,kr);ve(this,Sr);ve(this,Qi);ve(this,Bi);ve(this,Cr);ve(this,Wi);ve(this,Ki);ue(this,Ge,e.queryCache||new Wv),ue(this,kr,e.mutationCache||new Gv),ue(this,Sr,e.defaultOptions||{}),ue(this,Qi,new Map),ue(this,Bi,new Map),ue(this,Cr,0)}mount(){Il(this,Cr)._++,N(this,Cr)===1&&(ue(this,Wi,gf.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,Ge).onFocus())})),ue(this,Ki,ta.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,Ge).onOnline())})))}unmount(){var e,n;Il(this,Cr)._--,N(this,Cr)===0&&((e=N(this,Wi))==null||e.call(this),ue(this,Wi,void 0),(n=N(this,Ki))==null||n.call(this),ue(this,Ki,void 0))}isFetching(e){return N(this,Ge).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,kr).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const n=this.defaultQueryOptions({queryKey:e});return(i=N(this,Ge).get(n.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),i=N(this,Ge).build(this,n),s=i.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(Mr(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return N(this,Ge).findAll(e).map(({queryKey:n,state:i})=>{const s=i.data;return[n,s]})}setQueryData(e,n,i){const s=this.defaultQueryOptions({queryKey:e}),a=N(this,Ge).get(s.queryHash),u=a==null?void 0:a.state.data,f=Dv(n,u);if(f!==void 0)return N(this,Ge).build(this,s).setData(f,{...i,manual:!0})}setQueriesData(e,n,i){return tt.batch(()=>N(this,Ge).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,i)]))}getQueryState(e){var i;const n=this.defaultQueryOptions({queryKey:e});return(i=N(this,Ge).get(n.queryHash))==null?void 0:i.state}removeQueries(e){const n=N(this,Ge);tt.batch(()=>{n.findAll(e).forEach(i=>{n.remove(i)})})}resetQueries(e,n){const i=N(this,Ge);return tt.batch(()=>(i.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const i={revert:!0,...n},s=tt.batch(()=>N(this,Ge).findAll(e).map(a=>a.cancel(i)));return Promise.all(s).then(xt).catch(xt)}invalidateQueries(e,n={}){return tt.batch(()=>(N(this,Ge).findAll(e).forEach(i=>{i.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"},n)))}refetchQueries(e,n={}){const i={...n,cancelRefetch:n.cancelRefetch??!0},s=tt.batch(()=>N(this,Ge).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(xt)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(s).then(xt)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const i=N(this,Ge).build(this,n);return i.isStaleByTime(Mr(n.staleTime,i))?i.fetch(n):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xt).catch(xt)}fetchInfiniteQuery(e){return e.behavior=Tp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xt).catch(xt)}ensureInfiniteQueryData(e){return e.behavior=Tp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ta.isOnline()?N(this,kr).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,Ge)}getMutationCache(){return N(this,kr)}getDefaultOptions(){return N(this,Sr)}setDefaultOptions(e){ue(this,Sr,e)}setQueryDefaults(e,n){N(this,Qi).set(si(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...N(this,Qi).values()],i={};return n.forEach(s=>{ls(e,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(e,n){N(this,Bi).set(si(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...N(this,Bi).values()],i={};return n.forEach(s=>{ls(e,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const n={...N(this,Sr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=df(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===pf&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...N(this,Sr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,Ge).clear(),N(this,kr).clear()}},Ge=new WeakMap,kr=new WeakMap,Sr=new WeakMap,Qi=new WeakMap,Bi=new WeakMap,Cr=new WeakMap,Wi=new WeakMap,Ki=new WeakMap,u0),Ot,Ne,vs,_t,ei,Gi,br,Er,_s,Xi,Yi,ti,ni,Pr,Zi,je,Jo,zc,Dc,Ic,Lc,Fc,$c,Uc,S0,c0,Zv=(c0=class extends no{constructor(n,i){super();ve(this,je);ve(this,Ot);ve(this,Ne);ve(this,vs);ve(this,_t);ve(this,ei);ve(this,Gi);ve(this,br);ve(this,Er);ve(this,_s);ve(this,Xi);ve(this,Yi);ve(this,ti);ve(this,ni);ve(this,Pr);ve(this,Zi,new Set);this.options=i,ue(this,Ot,n),ue(this,Er,null),ue(this,br,jc()),this.options.experimental_prefetchInRender||N(this,br).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(N(this,Ne).addObserver(this),Mp(N(this,Ne),this.options)?Pe(this,je,Jo).call(this):this.updateResult(),Pe(this,je,Lc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hc(N(this,Ne),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hc(N(this,Ne),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Pe(this,je,Fc).call(this),Pe(this,je,$c).call(this),N(this,Ne).removeObserver(this)}setOptions(n){const i=this.options,s=N(this,Ne);if(this.options=N(this,Ot).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof fn(this.options.enabled,N(this,Ne))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Pe(this,je,Uc).call(this),N(this,Ne).setOptions(this.options),i._defaulted&&!ea(this.options,i)&&N(this,Ot).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,Ne),observer:this});const a=this.hasListeners();a&&Op(N(this,Ne),s,this.options,i)&&Pe(this,je,Jo).call(this),this.updateResult(),a&&(N(this,Ne)!==s||fn(this.options.enabled,N(this,Ne))!==fn(i.enabled,N(this,Ne))||Mr(this.options.staleTime,N(this,Ne))!==Mr(i.staleTime,N(this,Ne)))&&Pe(this,je,zc).call(this);const u=Pe(this,je,Dc).call(this);a&&(N(this,Ne)!==s||fn(this.options.enabled,N(this,Ne))!==fn(i.enabled,N(this,Ne))||u!==N(this,Pr))&&Pe(this,je,Ic).call(this,u)}getOptimisticResult(n){const i=N(this,Ot).getQueryCache().build(N(this,Ot),n),s=this.createResult(i,n);return e1(this,s)&&(ue(this,_t,s),ue(this,Gi,this.options),ue(this,ei,N(this,Ne).state)),s}getCurrentResult(){return N(this,_t)}trackResult(n,i){return new Proxy(n,{get:(s,a)=>(this.trackProp(a),i==null||i(a),Reflect.get(s,a))})}trackProp(n){N(this,Zi).add(n)}getCurrentQuery(){return N(this,Ne)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=N(this,Ot).defaultQueryOptions(n),s=N(this,Ot).getQueryCache().build(N(this,Ot),i);return s.fetch().then(()=>this.createResult(s,i))}fetch(n){return Pe(this,je,Jo).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),N(this,_t)))}createResult(n,i){var Q;const s=N(this,Ne),a=this.options,u=N(this,_t),f=N(this,ei),h=N(this,Gi),y=n!==s?n.state:N(this,vs),{state:v}=n;let g={...v},_=!1,x;if(i._optimisticResults){const K=this.hasListeners(),Z=!K&&Mp(n,i),ie=K&&Op(n,s,i,a);(Z||ie)&&(g={...g,...w0(v.data,n.options)}),i._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:C,errorUpdatedAt:b,status:S}=g;x=g.data;let k=!1;if(i.placeholderData!==void 0&&x===void 0&&S==="pending"){let K;u!=null&&u.isPlaceholderData&&i.placeholderData===(h==null?void 0:h.placeholderData)?(K=u.data,k=!0):K=typeof i.placeholderData=="function"?i.placeholderData((Q=N(this,Yi))==null?void 0:Q.state.data,N(this,Yi)):i.placeholderData,K!==void 0&&(S="success",x=Ac(u==null?void 0:u.data,K,i),_=!0)}if(i.select&&x!==void 0&&!k)if(u&&x===(f==null?void 0:f.data)&&i.select===N(this,_s))x=N(this,Xi);else try{ue(this,_s,i.select),x=i.select(x),x=Ac(u==null?void 0:u.data,x,i),ue(this,Xi,x),ue(this,Er,null)}catch(K){ue(this,Er,K)}N(this,Er)&&(C=N(this,Er),x=N(this,Xi),b=Date.now(),S="error");const O=g.fetchStatus==="fetching",A=S==="pending",P=S==="error",T=A&&O,z=x!==void 0,D={status:S,fetchStatus:g.fetchStatus,isPending:A,isSuccess:S==="success",isError:P,isInitialLoading:T,isLoading:T,data:x,dataUpdatedAt:g.dataUpdatedAt,error:C,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>y.dataUpdateCount||g.errorUpdateCount>y.errorUpdateCount,isFetching:O,isRefetching:O&&!A,isLoadingError:P&&!z,isPaused:g.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:P&&z,isStale:yf(n,i),refetch:this.refetch,promise:N(this,br)};if(this.options.experimental_prefetchInRender){const K=ce=>{D.status==="error"?ce.reject(D.error):D.data!==void 0&&ce.resolve(D.data)},Z=()=>{const ce=ue(this,br,D.promise=jc());K(ce)},ie=N(this,br);switch(ie.status){case"pending":n.queryHash===s.queryHash&&K(ie);break;case"fulfilled":(D.status==="error"||D.data!==ie.value)&&Z();break;case"rejected":(D.status!=="error"||D.error!==ie.reason)&&Z();break}}return D}updateResult(){const n=N(this,_t),i=this.createResult(N(this,Ne),this.options);if(ue(this,ei,N(this,Ne).state),ue(this,Gi,this.options),N(this,ei).data!==void 0&&ue(this,Yi,N(this,Ne)),ea(i,n))return;ue(this,_t,i);const s=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,u=typeof a=="function"?a():a;if(u==="all"||!u&&!N(this,Zi).size)return!0;const f=new Set(u??N(this,Zi));return this.options.throwOnError&&f.add("error"),Object.keys(N(this,_t)).some(h=>{const p=h;return N(this,_t)[p]!==n[p]&&f.has(p)})};Pe(this,je,S0).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Pe(this,je,Lc).call(this)}},Ot=new WeakMap,Ne=new WeakMap,vs=new WeakMap,_t=new WeakMap,ei=new WeakMap,Gi=new WeakMap,br=new WeakMap,Er=new WeakMap,_s=new WeakMap,Xi=new WeakMap,Yi=new WeakMap,ti=new WeakMap,ni=new WeakMap,Pr=new WeakMap,Zi=new WeakMap,je=new WeakSet,Jo=function(n){Pe(this,je,Uc).call(this);let i=N(this,Ne).fetch(this.options,n);return n!=null&&n.throwOnError||(i=i.catch(xt)),i},zc=function(){Pe(this,je,Fc).call(this);const n=Mr(this.options.staleTime,N(this,Ne));if(oi||N(this,_t).isStale||!Oc(n))return;const s=d0(N(this,_t).dataUpdatedAt,n)+1;ue(this,ti,setTimeout(()=>{N(this,_t).isStale||this.updateResult()},s))},Dc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,Ne)):this.options.refetchInterval)??!1},Ic=function(n){Pe(this,je,$c).call(this),ue(this,Pr,n),!(oi||fn(this.options.enabled,N(this,Ne))===!1||!Oc(N(this,Pr))||N(this,Pr)===0)&&ue(this,ni,setInterval(()=>{(this.options.refetchIntervalInBackground||gf.isFocused())&&Pe(this,je,Jo).call(this)},N(this,Pr)))},Lc=function(){Pe(this,je,zc).call(this),Pe(this,je,Ic).call(this,Pe(this,je,Dc).call(this))},Fc=function(){N(this,ti)&&(clearTimeout(N(this,ti)),ue(this,ti,void 0))},$c=function(){N(this,ni)&&(clearInterval(N(this,ni)),ue(this,ni,void 0))},Uc=function(){const n=N(this,Ot).getQueryCache().build(N(this,Ot),this.options);if(n===N(this,Ne))return;const i=N(this,Ne);ue(this,Ne,n),ue(this,vs,n.state),this.hasListeners()&&(i==null||i.removeObserver(this),n.addObserver(this))},S0=function(n){tt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(N(this,_t))}),N(this,Ot).getQueryCache().notify({query:N(this,Ne),type:"observerResultsUpdated"})})},c0);function Jv(e,n){return fn(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function Mp(e,n){return Jv(e,n)||e.state.data!==void 0&&Hc(e,n,n.refetchOnMount)}function Hc(e,n,i){if(fn(n.enabled,e)!==!1&&Mr(n.staleTime,e)!=="static"){const s=typeof i=="function"?i(e):i;return s==="always"||s!==!1&&yf(e,n)}return!1}function Op(e,n,i,s){return(e!==n||fn(s.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&yf(e,i)}function yf(e,n){return fn(n.enabled,e)!==!1&&e.isStaleByTime(Mr(n.staleTime,e))}function e1(e,n){return!ea(e.getCurrentResult(),n)}var Tr,Nr,Rt,Vn,Kn,Kl,qc,f0,t1=(f0=class extends no{constructor(i,s){super();ve(this,Kn);ve(this,Tr);ve(this,Nr);ve(this,Rt);ve(this,Vn);ue(this,Tr,i),this.setOptions(s),this.bindMethods(),Pe(this,Kn,Kl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var a;const s=this.options;this.options=N(this,Tr).defaultMutationOptions(i),ea(this.options,s)||N(this,Tr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:N(this,Rt),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&si(s.mutationKey)!==si(this.options.mutationKey)?this.reset():((a=N(this,Rt))==null?void 0:a.state.status)==="pending"&&N(this,Rt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=N(this,Rt))==null||i.removeObserver(this)}onMutationUpdate(i){Pe(this,Kn,Kl).call(this),Pe(this,Kn,qc).call(this,i)}getCurrentResult(){return N(this,Nr)}reset(){var i;(i=N(this,Rt))==null||i.removeObserver(this),ue(this,Rt,void 0),Pe(this,Kn,Kl).call(this),Pe(this,Kn,qc).call(this)}mutate(i,s){var a;return ue(this,Vn,s),(a=N(this,Rt))==null||a.removeObserver(this),ue(this,Rt,N(this,Tr).getMutationCache().build(N(this,Tr),this.options)),N(this,Rt).addObserver(this),N(this,Rt).execute(i)}},Tr=new WeakMap,Nr=new WeakMap,Rt=new WeakMap,Vn=new WeakMap,Kn=new WeakSet,Kl=function(){var s;const i=((s=N(this,Rt))==null?void 0:s.state)??k0();ue(this,Nr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},qc=function(i){tt.batch(()=>{var s,a,u,f,h,p,y,v;if(N(this,Vn)&&this.hasListeners()){const g=N(this,Nr).variables,_=N(this,Nr).context;(i==null?void 0:i.type)==="success"?((a=(s=N(this,Vn)).onSuccess)==null||a.call(s,i.data,g,_),(f=(u=N(this,Vn)).onSettled)==null||f.call(u,i.data,null,g,_)):(i==null?void 0:i.type)==="error"&&((p=(h=N(this,Vn)).onError)==null||p.call(h,i.error,g,_),(v=(y=N(this,Vn)).onSettled)==null||v.call(y,void 0,i.error,g,_))}this.listeners.forEach(g=>{g(N(this,Nr))})})},f0),de=hf();const n1=h0(de);var C0=de.createContext(void 0),pa=e=>{const n=de.useContext(C0);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},r1=({client:e,children:n})=>(de.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),$.jsx(C0.Provider,{value:e,children:n})),b0=de.createContext(!1),i1=()=>de.useContext(b0);b0.Provider;function o1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var s1=de.createContext(o1()),l1=()=>de.useContext(s1),a1=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},u1=e=>{de.useEffect(()=>{e.clearReset()},[e])},c1=({result:e,errorResetBoundary:n,throwOnError:i,query:s,suspense:a})=>e.isError&&!n.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||y0(i,[e.error,s])),f1=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},h1=(e,n)=>e.isLoading&&e.isFetching&&!n,d1=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,Rp=(e,n,i)=>n.fetchOptimistic(e).catch(()=>{i.clearReset()});function p1(e,n,i){var g,_,x,C,b;const s=i1(),a=l1(),u=pa(),f=u.defaultQueryOptions(e);(_=(g=u.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||_.call(g,f),f._optimisticResults=s?"isRestoring":"optimistic",f1(f),a1(f,a),u1(a);const h=!u.getQueryCache().get(f.queryHash),[p]=de.useState(()=>new n(u,f)),y=p.getOptimisticResult(f),v=!s&&e.subscribed!==!1;if(de.useSyncExternalStore(de.useCallback(S=>{const k=v?p.subscribe(tt.batchCalls(S)):xt;return p.updateResult(),k},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),de.useEffect(()=>{p.setOptions(f)},[f,p]),d1(f,y))throw Rp(f,p,a);if(c1({result:y,errorResetBoundary:a,throwOnError:f.throwOnError,query:u.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw y.error;if((C=(x=u.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||C.call(x,f,y),f.experimental_prefetchInRender&&!oi&&h1(y,s)){const S=h?Rp(f,p,a):(b=u.getQueryCache().get(f.queryHash))==null?void 0:b.promise;S==null||S.catch(xt).finally(()=>{p.updateResult()})}return f.notifyOnChangeProps?y:p.trackResult(y)}function Vc(e,n){return p1(e,Zv)}function g1(e,n){const i=pa(),[s]=de.useState(()=>new t1(i,e));de.useEffect(()=>{s.setOptions(e)},[s,e]);const a=de.useSyncExternalStore(de.useCallback(f=>s.subscribe(tt.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=de.useCallback((f,h)=>{s.mutate(f,h).catch(xt)},[s]);if(a.error&&y0(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}var Fl={},pc={exports:{}},Mt={},gc={exports:{}},yc={};/**
17
+ */var kp;function zv(){if(kp)return qo;kp=1;var e=hf(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(h,p,m){var v,g={},_=null,x=null;m!==void 0&&(_=""+m),p.key!==void 0&&(_=""+p.key),p.ref!==void 0&&(x=p.ref);for(v in p)s.call(p,v)&&!u.hasOwnProperty(v)&&(g[v]=p[v]);if(h&&h.defaultProps)for(v in p=h.defaultProps,p)g[v]===void 0&&(g[v]=p[v]);return{$$typeof:n,type:h,key:_,ref:x,props:g,_owner:a.current}}return qo.Fragment=i,qo.jsx=f,qo.jsxs=f,qo}var Sp;function Dv(){return Sp||(Sp=1,fc.exports=zv()),fc.exports}var I=Dv(),no=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(){}},si=typeof window>"u"||"Deno"in globalThis;function xt(){}function Iv(e,n){return typeof e=="function"?e(n):e}function Oc(e){return typeof e=="number"&&e>=0&&e!==1/0}function d0(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Or(e,n){return typeof e=="function"?e(n):e}function fn(e,n){return typeof e=="function"?e(n):e}function Cp(e,n){const{type:i="all",exact:s,fetchStatus:a,predicate:u,queryKey:f,stale:h}=e;if(f){if(s){if(n.queryHash!==df(f,n.options))return!1}else if(!ls(n.queryKey,f))return!1}if(i!=="all"){const p=n.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||a&&a!==n.state.fetchStatus||u&&!u(n))}function bp(e,n){const{exact:i,status:s,predicate:a,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(i){if(li(n.options.mutationKey)!==li(u))return!1}else if(!ls(n.options.mutationKey,u))return!1}return!(s&&n.state.status!==s||a&&!a(n))}function df(e,n){return((n==null?void 0:n.queryKeyHashFn)||li)(e)}function li(e){return JSON.stringify(e,(n,i)=>Rc(i)?Object.keys(i).sort().reduce((s,a)=>(s[a]=i[a],s),{}):i)}function ls(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(i=>ls(e[i],n[i])):!1}function p0(e,n){if(e===n)return e;const i=Ep(e)&&Ep(n);if(i||Rc(e)&&Rc(n)){const s=i?e:Object.keys(e),a=s.length,u=i?n:Object.keys(n),f=u.length,h=i?[]:{},p=new Set(s);let m=0;for(let v=0;v<f;v++){const g=i?v:u[v];(!i&&p.has(g)||i)&&e[g]===void 0&&n[g]===void 0?(h[g]=void 0,m++):(h[g]=p0(e[g],n[g]),h[g]===e[g]&&e[g]!==void 0&&m++)}return a===f&&m===a?e:h}return n}function ea(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const i in e)if(e[i]!==n[i])return!1;return!0}function Ep(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Rc(e){if(!Pp(e))return!1;const n=e.constructor;if(n===void 0)return!0;const i=n.prototype;return!(!Pp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Pp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lv(e){return new Promise(n=>{setTimeout(n,e)})}function Ac(e,n,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,n):i.structuralSharing!==!1?p0(e,n):n}function Fv(e,n,i=0){const s=[...e,n];return i&&s.length>i?s.slice(1):s}function $v(e,n,i=0){const s=[n,...e];return i&&s.length>i?s.slice(0,-1):s}var pf=Symbol();function g0(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===pf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function m0(e,n){return typeof e=="function"?e(...n):!!e}var Xr,wr,$i,n0,Uv=(n0=class extends no{constructor(){super();ve(this,Xr);ve(this,wr);ve(this,$i);ue(this,$i,n=>{if(!si&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){T(this,wr)||this.setEventListener(T(this,$i))}onUnsubscribe(){var n;this.hasListeners()||((n=T(this,wr))==null||n.call(this),ue(this,wr,void 0))}setEventListener(n){var i;ue(this,$i,n),(i=T(this,wr))==null||i.call(this),ue(this,wr,n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(n){T(this,Xr)!==n&&(ue(this,Xr,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){var n;return typeof T(this,Xr)=="boolean"?T(this,Xr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Xr=new WeakMap,wr=new WeakMap,$i=new WeakMap,n0),gf=new Uv,Ui,kr,Hi,r0,Hv=(r0=class extends no{constructor(){super();ve(this,Ui,!0);ve(this,kr);ve(this,Hi);ue(this,Hi,n=>{if(!si&&window.addEventListener){const i=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}})}onSubscribe(){T(this,kr)||this.setEventListener(T(this,Hi))}onUnsubscribe(){var n;this.hasListeners()||((n=T(this,kr))==null||n.call(this),ue(this,kr,void 0))}setEventListener(n){var i;ue(this,Hi,n),(i=T(this,kr))==null||i.call(this),ue(this,kr,n(this.setOnline.bind(this)))}setOnline(n){T(this,Ui)!==n&&(ue(this,Ui,n),this.listeners.forEach(s=>{s(n)}))}isOnline(){return T(this,Ui)}},Ui=new WeakMap,kr=new WeakMap,Hi=new WeakMap,r0),ta=new Hv;function jc(){let e,n;const i=new Promise((a,u)=>{e=a,n=u});i.status="pending",i.catch(()=>{});function s(a){Object.assign(i,a),delete i.resolve,delete i.reject}return i.resolve=a=>{s({status:"fulfilled",value:a}),e(a)},i.reject=a=>{s({status:"rejected",reason:a}),n(a)},i}function Vv(e){return Math.min(1e3*2**e,3e4)}function y0(e){return(e??"online")==="online"?ta.isOnline():!0}var v0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dc(e){return e instanceof v0}function _0(e){let n=!1,i=0,s=!1,a;const u=jc(),f=b=>{var S;s||(_(new v0(b)),(S=e.abort)==null||S.call(e))},h=()=>{n=!0},p=()=>{n=!1},m=()=>gf.isFocused()&&(e.networkMode==="always"||ta.isOnline())&&e.canRun(),v=()=>y0(e.networkMode)&&e.canRun(),g=b=>{var S;s||(s=!0,(S=e.onSuccess)==null||S.call(e,b),a==null||a(),u.resolve(b))},_=b=>{var S;s||(s=!0,(S=e.onError)==null||S.call(e,b),a==null||a(),u.reject(b))},x=()=>new Promise(b=>{var S;a=k=>{(s||m())&&b(k)},(S=e.onPause)==null||S.call(e)}).then(()=>{var b;a=void 0,s||(b=e.onContinue)==null||b.call(e)}),C=()=>{if(s)return;let b;const S=i===0?e.initialPromise:void 0;try{b=S??e.fn()}catch(k){b=Promise.reject(k)}Promise.resolve(b).then(g).catch(k=>{var z;if(s)return;const O=e.retry??(si?0:3),A=e.retryDelay??Vv,P=typeof A=="function"?A(i,k):A,N=O===!0||typeof O=="number"&&i<O||typeof O=="function"&&O(i,k);if(n||!N){_(k);return}i++,(z=e.onFail)==null||z.call(e,i,k),Lv(P).then(()=>m()?void 0:x()).then(()=>{n?_(k):C()})})};return{promise:u,cancel:f,continue:()=>(a==null||a(),u),cancelRetry:h,continueRetry:p,canStart:v,start:()=>(v()?C():x().then(C),u)}}var qv=e=>setTimeout(e,0);function Qv(){let e=[],n=0,i=h=>{h()},s=h=>{h()},a=qv;const u=h=>{n?e.push(h):a(()=>{i(h)})},f=()=>{const h=e;e=[],h.length&&a(()=>{s(()=>{h.forEach(p=>{i(p)})})})};return{batch:h=>{let p;n++;try{p=h()}finally{n--,n||f()}return p},batchCalls:h=>(...p)=>{u(()=>{h(...p)})},schedule:u,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{a=h}}}var tt=Qv(),Yr,i0,x0=(i0=class{constructor(){ve(this,Yr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oc(this.gcTime)&&ue(this,Yr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(si?1/0:5*60*1e3))}clearGcTimeout(){T(this,Yr)&&(clearTimeout(T(this,Yr)),ue(this,Yr,void 0))}},Yr=new WeakMap,i0),Vi,qi,Xt,Zr,pt,ms,Jr,un,Un,o0,Bv=(o0=class extends x0{constructor(n){super();ve(this,un);ve(this,Vi);ve(this,qi);ve(this,Xt);ve(this,Zr);ve(this,pt);ve(this,ms);ve(this,Jr);ue(this,Jr,!1),ue(this,ms,n.defaultOptions),this.setOptions(n.options),this.observers=[],ue(this,Zr,n.client),ue(this,Xt,T(this,Zr).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,ue(this,Vi,Wv(this.options)),this.state=n.state??T(this,Vi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=T(this,pt))==null?void 0:n.promise}setOptions(n){this.options={...T(this,ms),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Xt).remove(this)}setData(n,i){const s=Ac(this.state.data,n,this.options);return Pe(this,un,Un).call(this,{data:s,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),s}setState(n,i){Pe(this,un,Un).call(this,{type:"setState",state:n,setStateOptions:i})}cancel(n){var s,a;const i=(s=T(this,pt))==null?void 0:s.promise;return(a=T(this,pt))==null||a.cancel(n),i?i.then(xt).catch(xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,Vi))}isActive(){return this.observers.some(n=>fn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Or(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!d0(this.state.dataUpdatedAt,n)}onFocus(){var i;const n=this.observers.find(s=>s.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(i=T(this,pt))==null||i.continue()}onOnline(){var i;const n=this.observers.find(s=>s.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(i=T(this,pt))==null||i.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),T(this,Xt).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(T(this,pt)&&(T(this,Jr)?T(this,pt).cancel({revert:!0}):T(this,pt).cancelRetry()),this.scheduleGc()),T(this,Xt).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,un,Un).call(this,{type:"invalidate"})}fetch(n,i){var m,v,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(T(this,pt))return T(this,pt).continueRetry(),T(this,pt).promise}if(n&&this.setOptions(n),!this.options.queryFn){const _=this.observers.find(x=>x.options.queryFn);_&&this.setOptions(_.options)}const s=new AbortController,a=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(ue(this,Jr,!0),s.signal)})},u=()=>{const _=g0(this.options,i),C=(()=>{const b={client:T(this,Zr),queryKey:this.queryKey,meta:this.meta};return a(b),b})();return ue(this,Jr,!1),this.options.persister?this.options.persister(_,C,this):_(C)},h=(()=>{const _={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:T(this,Zr),state:this.state,fetchFn:u};return a(_),_})();(m=this.options.behavior)==null||m.onFetch(h,this),ue(this,qi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=h.fetchOptions)==null?void 0:v.meta))&&Pe(this,un,Un).call(this,{type:"fetch",meta:(g=h.fetchOptions)==null?void 0:g.meta});const p=_=>{var x,C,b,S;dc(_)&&_.silent||Pe(this,un,Un).call(this,{type:"error",error:_}),dc(_)||((C=(x=T(this,Xt).config).onError)==null||C.call(x,_,this),(S=(b=T(this,Xt).config).onSettled)==null||S.call(b,this.state.data,_,this)),this.scheduleGc()};return ue(this,pt,_0({initialPromise:i==null?void 0:i.initialPromise,fn:h.fetchFn,abort:s.abort.bind(s),onSuccess:_=>{var x,C,b,S;if(_===void 0){p(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(_)}catch(k){p(k);return}(C=(x=T(this,Xt).config).onSuccess)==null||C.call(x,_,this),(S=(b=T(this,Xt).config).onSettled)==null||S.call(b,_,this.state.error,this),this.scheduleGc()},onError:p,onFail:(_,x)=>{Pe(this,un,Un).call(this,{type:"failed",failureCount:_,error:x})},onPause:()=>{Pe(this,un,Un).call(this,{type:"pause"})},onContinue:()=>{Pe(this,un,Un).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),T(this,pt).start()}},Vi=new WeakMap,qi=new WeakMap,Xt=new WeakMap,Zr=new WeakMap,pt=new WeakMap,ms=new WeakMap,Jr=new WeakMap,un=new WeakSet,Un=function(n){const i=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...w0(s.data,this.options),fetchMeta:n.meta??null};case"success":return{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=n.error;return dc(a)&&a.revert&&T(this,qi)?{...T(this,qi),fetchStatus:"idle"}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=i(this.state),tt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),T(this,Xt).notify({query:this,type:"updated",action:n})})},o0);function w0(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:y0(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Wv(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,i=n!==void 0,s=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var kn,s0,Kv=(s0=class extends no{constructor(n={}){super();ve(this,kn);this.config=n,ue(this,kn,new Map)}build(n,i,s){const a=i.queryKey,u=i.queryHash??df(a,i);let f=this.get(u);return f||(f=new Bv({client:n,queryKey:a,queryHash:u,options:n.defaultQueryOptions(i),state:s,defaultOptions:n.getQueryDefaults(a)}),this.add(f)),f}add(n){T(this,kn).has(n.queryHash)||(T(this,kn).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=T(this,kn).get(n.queryHash);i&&(n.destroy(),i===n&&T(this,kn).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){tt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return T(this,kn).get(n)}getAll(){return[...T(this,kn).values()]}find(n){const i={exact:!0,...n};return this.getAll().find(s=>Cp(i,s))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(s=>Cp(n,s)):i}notify(n){tt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){tt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){tt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},kn=new WeakMap,s0),Sn,vt,ei,Cn,_r,l0,Gv=(l0=class extends x0{constructor(n){super();ve(this,Cn);ve(this,Sn);ve(this,vt);ve(this,ei);this.mutationId=n.mutationId,ue(this,vt,n.mutationCache),ue(this,Sn,[]),this.state=n.state||k0(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){T(this,Sn).includes(n)||(T(this,Sn).push(n),this.clearGcTimeout(),T(this,vt).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){ue(this,Sn,T(this,Sn).filter(i=>i!==n)),this.scheduleGc(),T(this,vt).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){T(this,Sn).length||(this.state.status==="pending"?this.scheduleGc():T(this,vt).remove(this))}continue(){var n;return((n=T(this,ei))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var u,f,h,p,m,v,g,_,x,C,b,S,k,O,A,P,N,z,F,D;const i=()=>{Pe(this,Cn,_r).call(this,{type:"continue"})};ue(this,ei,_0({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(Q,K)=>{Pe(this,Cn,_r).call(this,{type:"failed",failureCount:Q,error:K})},onPause:()=>{Pe(this,Cn,_r).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,vt).canRun(this)}));const s=this.state.status==="pending",a=!T(this,ei).canStart();try{if(s)i();else{Pe(this,Cn,_r).call(this,{type:"pending",variables:n,isPaused:a}),await((f=(u=T(this,vt).config).onMutate)==null?void 0:f.call(u,n,this));const K=await((p=(h=this.options).onMutate)==null?void 0:p.call(h,n));K!==this.state.context&&Pe(this,Cn,_r).call(this,{type:"pending",context:K,variables:n,isPaused:a})}const Q=await T(this,ei).start();return await((v=(m=T(this,vt).config).onSuccess)==null?void 0:v.call(m,Q,n,this.state.context,this)),await((_=(g=this.options).onSuccess)==null?void 0:_.call(g,Q,n,this.state.context)),await((C=(x=T(this,vt).config).onSettled)==null?void 0:C.call(x,Q,null,this.state.variables,this.state.context,this)),await((S=(b=this.options).onSettled)==null?void 0:S.call(b,Q,null,n,this.state.context)),Pe(this,Cn,_r).call(this,{type:"success",data:Q}),Q}catch(Q){try{throw await((O=(k=T(this,vt).config).onError)==null?void 0:O.call(k,Q,n,this.state.context,this)),await((P=(A=this.options).onError)==null?void 0:P.call(A,Q,n,this.state.context)),await((z=(N=T(this,vt).config).onSettled)==null?void 0:z.call(N,void 0,Q,this.state.variables,this.state.context,this)),await((D=(F=this.options).onSettled)==null?void 0:D.call(F,void 0,Q,n,this.state.context)),Q}finally{Pe(this,Cn,_r).call(this,{type:"error",error:Q})}}finally{T(this,vt).runNext(this)}}},Sn=new WeakMap,vt=new WeakMap,ei=new WeakMap,Cn=new WeakSet,_r=function(n){const i=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),tt.batch(()=>{T(this,Sn).forEach(s=>{s.onMutationUpdate(n)}),T(this,vt).notify({mutation:this,type:"updated",action:n})})},l0);function k0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vn,cn,ys,a0,Xv=(a0=class extends no{constructor(n={}){super();ve(this,Vn);ve(this,cn);ve(this,ys);this.config=n,ue(this,Vn,new Set),ue(this,cn,new Map),ue(this,ys,0)}build(n,i,s){const a=new Gv({mutationCache:this,mutationId:++Il(this,ys)._,options:n.defaultMutationOptions(i),state:s});return this.add(a),a}add(n){T(this,Vn).add(n);const i=Ll(n);if(typeof i=="string"){const s=T(this,cn).get(i);s?s.push(n):T(this,cn).set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(T(this,Vn).delete(n)){const i=Ll(n);if(typeof i=="string"){const s=T(this,cn).get(i);if(s)if(s.length>1){const a=s.indexOf(n);a!==-1&&s.splice(a,1)}else s[0]===n&&T(this,cn).delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Ll(n);if(typeof i=="string"){const s=T(this,cn).get(i),a=s==null?void 0:s.find(u=>u.state.status==="pending");return!a||a===n}else return!0}runNext(n){var s;const i=Ll(n);if(typeof i=="string"){const a=(s=T(this,cn).get(i))==null?void 0:s.find(u=>u!==n&&u.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){tt.batch(()=>{T(this,Vn).forEach(n=>{this.notify({type:"removed",mutation:n})}),T(this,Vn).clear(),T(this,cn).clear()})}getAll(){return Array.from(T(this,Vn))}find(n){const i={exact:!0,...n};return this.getAll().find(s=>bp(i,s))}findAll(n={}){return this.getAll().filter(i=>bp(n,i))}notify(n){tt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return tt.batch(()=>Promise.all(n.map(i=>i.continue().catch(xt))))}},Vn=new WeakMap,cn=new WeakMap,ys=new WeakMap,a0);function Ll(e){var n;return(n=e.options.scope)==null?void 0:n.id}function Np(e){return{onFetch:(n,i)=>{var v,g,_,x,C;const s=n.options,a=(_=(g=(v=n.fetchOptions)==null?void 0:v.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,u=((x=n.state.data)==null?void 0:x.pages)||[],f=((C=n.state.data)==null?void 0:C.pageParams)||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let b=!1;const S=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(n.signal.aborted?b=!0:n.signal.addEventListener("abort",()=>{b=!0}),n.signal)})},k=g0(n.options,n.fetchOptions),O=async(A,P,N)=>{if(b)return Promise.reject();if(P==null&&A.pages.length)return Promise.resolve(A);const F=(()=>{const Z={client:n.client,queryKey:n.queryKey,pageParam:P,direction:N?"backward":"forward",meta:n.options.meta};return S(Z),Z})(),D=await k(F),{maxPages:Q}=n.options,K=N?$v:Fv;return{pages:K(A.pages,D,Q),pageParams:K(A.pageParams,P,Q)}};if(a&&u.length){const A=a==="backward",P=A?Yv:Tp,N={pages:u,pageParams:f},z=P(s,N);h=await O(N,z,A)}else{const A=e??u.length;do{const P=p===0?f[0]??s.initialPageParam:Tp(s,h);if(p>0&&P==null)break;h=await O(h,P),p++}while(p<A)}return h};n.options.persister?n.fetchFn=()=>{var b,S;return(S=(b=n.options).persister)==null?void 0:S.call(b,m,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},i)}:n.fetchFn=m}}}function Tp(e,{pages:n,pageParams:i}){const s=n.length-1;return n.length>0?e.getNextPageParam(n[s],n,i[s],i):void 0}function Yv(e,{pages:n,pageParams:i}){var s;return n.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,n[0],n,i[0],i):void 0}var Ge,Sr,Cr,Qi,Bi,br,Wi,Ki,u0,Zv=(u0=class{constructor(e={}){ve(this,Ge);ve(this,Sr);ve(this,Cr);ve(this,Qi);ve(this,Bi);ve(this,br);ve(this,Wi);ve(this,Ki);ue(this,Ge,e.queryCache||new Kv),ue(this,Sr,e.mutationCache||new Xv),ue(this,Cr,e.defaultOptions||{}),ue(this,Qi,new Map),ue(this,Bi,new Map),ue(this,br,0)}mount(){Il(this,br)._++,T(this,br)===1&&(ue(this,Wi,gf.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ge).onFocus())})),ue(this,Ki,ta.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,Ge).onOnline())})))}unmount(){var e,n;Il(this,br)._--,T(this,br)===0&&((e=T(this,Wi))==null||e.call(this),ue(this,Wi,void 0),(n=T(this,Ki))==null||n.call(this),ue(this,Ki,void 0))}isFetching(e){return T(this,Ge).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Sr).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const n=this.defaultQueryOptions({queryKey:e});return(i=T(this,Ge).get(n.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),i=T(this,Ge).build(this,n),s=i.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(Or(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return T(this,Ge).findAll(e).map(({queryKey:n,state:i})=>{const s=i.data;return[n,s]})}setQueryData(e,n,i){const s=this.defaultQueryOptions({queryKey:e}),a=T(this,Ge).get(s.queryHash),u=a==null?void 0:a.state.data,f=Iv(n,u);if(f!==void 0)return T(this,Ge).build(this,s).setData(f,{...i,manual:!0})}setQueriesData(e,n,i){return tt.batch(()=>T(this,Ge).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,i)]))}getQueryState(e){var i;const n=this.defaultQueryOptions({queryKey:e});return(i=T(this,Ge).get(n.queryHash))==null?void 0:i.state}removeQueries(e){const n=T(this,Ge);tt.batch(()=>{n.findAll(e).forEach(i=>{n.remove(i)})})}resetQueries(e,n){const i=T(this,Ge);return tt.batch(()=>(i.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const i={revert:!0,...n},s=tt.batch(()=>T(this,Ge).findAll(e).map(a=>a.cancel(i)));return Promise.all(s).then(xt).catch(xt)}invalidateQueries(e,n={}){return tt.batch(()=>(T(this,Ge).findAll(e).forEach(i=>{i.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"},n)))}refetchQueries(e,n={}){const i={...n,cancelRefetch:n.cancelRefetch??!0},s=tt.batch(()=>T(this,Ge).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(xt)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(s).then(xt)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const i=T(this,Ge).build(this,n);return i.isStaleByTime(Or(n.staleTime,i))?i.fetch(n):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xt).catch(xt)}fetchInfiniteQuery(e){return e.behavior=Np(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xt).catch(xt)}ensureInfiniteQueryData(e){return e.behavior=Np(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ta.isOnline()?T(this,Sr).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ge)}getMutationCache(){return T(this,Sr)}getDefaultOptions(){return T(this,Cr)}setDefaultOptions(e){ue(this,Cr,e)}setQueryDefaults(e,n){T(this,Qi).set(li(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...T(this,Qi).values()],i={};return n.forEach(s=>{ls(e,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(e,n){T(this,Bi).set(li(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...T(this,Bi).values()],i={};return n.forEach(s=>{ls(e,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const n={...T(this,Cr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=df(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===pf&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Cr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,Ge).clear(),T(this,Sr).clear()}},Ge=new WeakMap,Sr=new WeakMap,Cr=new WeakMap,Qi=new WeakMap,Bi=new WeakMap,br=new WeakMap,Wi=new WeakMap,Ki=new WeakMap,u0),Ot,Te,vs,_t,ti,Gi,Er,Pr,_s,Xi,Yi,ni,ri,Nr,Zi,je,Jo,zc,Dc,Ic,Lc,Fc,$c,Uc,S0,c0,Jv=(c0=class extends no{constructor(n,i){super();ve(this,je);ve(this,Ot);ve(this,Te);ve(this,vs);ve(this,_t);ve(this,ti);ve(this,Gi);ve(this,Er);ve(this,Pr);ve(this,_s);ve(this,Xi);ve(this,Yi);ve(this,ni);ve(this,ri);ve(this,Nr);ve(this,Zi,new Set);this.options=i,ue(this,Ot,n),ue(this,Pr,null),ue(this,Er,jc()),this.options.experimental_prefetchInRender||T(this,Er).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Te).addObserver(this),Mp(T(this,Te),this.options)?Pe(this,je,Jo).call(this):this.updateResult(),Pe(this,je,Lc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hc(T(this,Te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hc(T(this,Te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Pe(this,je,Fc).call(this),Pe(this,je,$c).call(this),T(this,Te).removeObserver(this)}setOptions(n){const i=this.options,s=T(this,Te);if(this.options=T(this,Ot).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof fn(this.options.enabled,T(this,Te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Pe(this,je,Uc).call(this),T(this,Te).setOptions(this.options),i._defaulted&&!ea(this.options,i)&&T(this,Ot).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Te),observer:this});const a=this.hasListeners();a&&Op(T(this,Te),s,this.options,i)&&Pe(this,je,Jo).call(this),this.updateResult(),a&&(T(this,Te)!==s||fn(this.options.enabled,T(this,Te))!==fn(i.enabled,T(this,Te))||Or(this.options.staleTime,T(this,Te))!==Or(i.staleTime,T(this,Te)))&&Pe(this,je,zc).call(this);const u=Pe(this,je,Dc).call(this);a&&(T(this,Te)!==s||fn(this.options.enabled,T(this,Te))!==fn(i.enabled,T(this,Te))||u!==T(this,Nr))&&Pe(this,je,Ic).call(this,u)}getOptimisticResult(n){const i=T(this,Ot).getQueryCache().build(T(this,Ot),n),s=this.createResult(i,n);return t1(this,s)&&(ue(this,_t,s),ue(this,Gi,this.options),ue(this,ti,T(this,Te).state)),s}getCurrentResult(){return T(this,_t)}trackResult(n,i){return new Proxy(n,{get:(s,a)=>(this.trackProp(a),i==null||i(a),Reflect.get(s,a))})}trackProp(n){T(this,Zi).add(n)}getCurrentQuery(){return T(this,Te)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=T(this,Ot).defaultQueryOptions(n),s=T(this,Ot).getQueryCache().build(T(this,Ot),i);return s.fetch().then(()=>this.createResult(s,i))}fetch(n){return Pe(this,je,Jo).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,_t)))}createResult(n,i){var Q;const s=T(this,Te),a=this.options,u=T(this,_t),f=T(this,ti),h=T(this,Gi),m=n!==s?n.state:T(this,vs),{state:v}=n;let g={...v},_=!1,x;if(i._optimisticResults){const K=this.hasListeners(),Z=!K&&Mp(n,i),ie=K&&Op(n,s,i,a);(Z||ie)&&(g={...g,...w0(v.data,n.options)}),i._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:C,errorUpdatedAt:b,status:S}=g;x=g.data;let k=!1;if(i.placeholderData!==void 0&&x===void 0&&S==="pending"){let K;u!=null&&u.isPlaceholderData&&i.placeholderData===(h==null?void 0:h.placeholderData)?(K=u.data,k=!0):K=typeof i.placeholderData=="function"?i.placeholderData((Q=T(this,Yi))==null?void 0:Q.state.data,T(this,Yi)):i.placeholderData,K!==void 0&&(S="success",x=Ac(u==null?void 0:u.data,K,i),_=!0)}if(i.select&&x!==void 0&&!k)if(u&&x===(f==null?void 0:f.data)&&i.select===T(this,_s))x=T(this,Xi);else try{ue(this,_s,i.select),x=i.select(x),x=Ac(u==null?void 0:u.data,x,i),ue(this,Xi,x),ue(this,Pr,null)}catch(K){ue(this,Pr,K)}T(this,Pr)&&(C=T(this,Pr),x=T(this,Xi),b=Date.now(),S="error");const O=g.fetchStatus==="fetching",A=S==="pending",P=S==="error",N=A&&O,z=x!==void 0,D={status:S,fetchStatus:g.fetchStatus,isPending:A,isSuccess:S==="success",isError:P,isInitialLoading:N,isLoading:N,data:x,dataUpdatedAt:g.dataUpdatedAt,error:C,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>m.dataUpdateCount||g.errorUpdateCount>m.errorUpdateCount,isFetching:O,isRefetching:O&&!A,isLoadingError:P&&!z,isPaused:g.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:P&&z,isStale:mf(n,i),refetch:this.refetch,promise:T(this,Er)};if(this.options.experimental_prefetchInRender){const K=ce=>{D.status==="error"?ce.reject(D.error):D.data!==void 0&&ce.resolve(D.data)},Z=()=>{const ce=ue(this,Er,D.promise=jc());K(ce)},ie=T(this,Er);switch(ie.status){case"pending":n.queryHash===s.queryHash&&K(ie);break;case"fulfilled":(D.status==="error"||D.data!==ie.value)&&Z();break;case"rejected":(D.status!=="error"||D.error!==ie.reason)&&Z();break}}return D}updateResult(){const n=T(this,_t),i=this.createResult(T(this,Te),this.options);if(ue(this,ti,T(this,Te).state),ue(this,Gi,this.options),T(this,ti).data!==void 0&&ue(this,Yi,T(this,Te)),ea(i,n))return;ue(this,_t,i);const s=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,u=typeof a=="function"?a():a;if(u==="all"||!u&&!T(this,Zi).size)return!0;const f=new Set(u??T(this,Zi));return this.options.throwOnError&&f.add("error"),Object.keys(T(this,_t)).some(h=>{const p=h;return T(this,_t)[p]!==n[p]&&f.has(p)})};Pe(this,je,S0).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Pe(this,je,Lc).call(this)}},Ot=new WeakMap,Te=new WeakMap,vs=new WeakMap,_t=new WeakMap,ti=new WeakMap,Gi=new WeakMap,Er=new WeakMap,Pr=new WeakMap,_s=new WeakMap,Xi=new WeakMap,Yi=new WeakMap,ni=new WeakMap,ri=new WeakMap,Nr=new WeakMap,Zi=new WeakMap,je=new WeakSet,Jo=function(n){Pe(this,je,Uc).call(this);let i=T(this,Te).fetch(this.options,n);return n!=null&&n.throwOnError||(i=i.catch(xt)),i},zc=function(){Pe(this,je,Fc).call(this);const n=Or(this.options.staleTime,T(this,Te));if(si||T(this,_t).isStale||!Oc(n))return;const s=d0(T(this,_t).dataUpdatedAt,n)+1;ue(this,ni,setTimeout(()=>{T(this,_t).isStale||this.updateResult()},s))},Dc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Te)):this.options.refetchInterval)??!1},Ic=function(n){Pe(this,je,$c).call(this),ue(this,Nr,n),!(si||fn(this.options.enabled,T(this,Te))===!1||!Oc(T(this,Nr))||T(this,Nr)===0)&&ue(this,ri,setInterval(()=>{(this.options.refetchIntervalInBackground||gf.isFocused())&&Pe(this,je,Jo).call(this)},T(this,Nr)))},Lc=function(){Pe(this,je,zc).call(this),Pe(this,je,Ic).call(this,Pe(this,je,Dc).call(this))},Fc=function(){T(this,ni)&&(clearTimeout(T(this,ni)),ue(this,ni,void 0))},$c=function(){T(this,ri)&&(clearInterval(T(this,ri)),ue(this,ri,void 0))},Uc=function(){const n=T(this,Ot).getQueryCache().build(T(this,Ot),this.options);if(n===T(this,Te))return;const i=T(this,Te);ue(this,Te,n),ue(this,vs,n.state),this.hasListeners()&&(i==null||i.removeObserver(this),n.addObserver(this))},S0=function(n){tt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(T(this,_t))}),T(this,Ot).getQueryCache().notify({query:T(this,Te),type:"observerResultsUpdated"})})},c0);function e1(e,n){return fn(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function Mp(e,n){return e1(e,n)||e.state.data!==void 0&&Hc(e,n,n.refetchOnMount)}function Hc(e,n,i){if(fn(n.enabled,e)!==!1&&Or(n.staleTime,e)!=="static"){const s=typeof i=="function"?i(e):i;return s==="always"||s!==!1&&mf(e,n)}return!1}function Op(e,n,i,s){return(e!==n||fn(s.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&mf(e,i)}function mf(e,n){return fn(n.enabled,e)!==!1&&e.isStaleByTime(Or(n.staleTime,e))}function t1(e,n){return!ea(e.getCurrentResult(),n)}var Tr,Mr,Rt,qn,Kn,Kl,Vc,f0,n1=(f0=class extends no{constructor(i,s){super();ve(this,Kn);ve(this,Tr);ve(this,Mr);ve(this,Rt);ve(this,qn);ue(this,Tr,i),this.setOptions(s),this.bindMethods(),Pe(this,Kn,Kl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var a;const s=this.options;this.options=T(this,Tr).defaultMutationOptions(i),ea(this.options,s)||T(this,Tr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,Rt),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&li(s.mutationKey)!==li(this.options.mutationKey)?this.reset():((a=T(this,Rt))==null?void 0:a.state.status)==="pending"&&T(this,Rt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=T(this,Rt))==null||i.removeObserver(this)}onMutationUpdate(i){Pe(this,Kn,Kl).call(this),Pe(this,Kn,Vc).call(this,i)}getCurrentResult(){return T(this,Mr)}reset(){var i;(i=T(this,Rt))==null||i.removeObserver(this),ue(this,Rt,void 0),Pe(this,Kn,Kl).call(this),Pe(this,Kn,Vc).call(this)}mutate(i,s){var a;return ue(this,qn,s),(a=T(this,Rt))==null||a.removeObserver(this),ue(this,Rt,T(this,Tr).getMutationCache().build(T(this,Tr),this.options)),T(this,Rt).addObserver(this),T(this,Rt).execute(i)}},Tr=new WeakMap,Mr=new WeakMap,Rt=new WeakMap,qn=new WeakMap,Kn=new WeakSet,Kl=function(){var s;const i=((s=T(this,Rt))==null?void 0:s.state)??k0();ue(this,Mr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Vc=function(i){tt.batch(()=>{var s,a,u,f,h,p,m,v;if(T(this,qn)&&this.hasListeners()){const g=T(this,Mr).variables,_=T(this,Mr).context;(i==null?void 0:i.type)==="success"?((a=(s=T(this,qn)).onSuccess)==null||a.call(s,i.data,g,_),(f=(u=T(this,qn)).onSettled)==null||f.call(u,i.data,null,g,_)):(i==null?void 0:i.type)==="error"&&((p=(h=T(this,qn)).onError)==null||p.call(h,i.error,g,_),(v=(m=T(this,qn)).onSettled)==null||v.call(m,void 0,i.error,g,_))}this.listeners.forEach(g=>{g(T(this,Mr))})})},f0),de=hf();const C0=h0(de);var b0=de.createContext(void 0),pa=e=>{const n=de.useContext(b0);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},r1=({client:e,children:n})=>(de.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.jsx(b0.Provider,{value:e,children:n})),E0=de.createContext(!1),i1=()=>de.useContext(E0);E0.Provider;function o1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var s1=de.createContext(o1()),l1=()=>de.useContext(s1),a1=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},u1=e=>{de.useEffect(()=>{e.clearReset()},[e])},c1=({result:e,errorResetBoundary:n,throwOnError:i,query:s,suspense:a})=>e.isError&&!n.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||m0(i,[e.error,s])),f1=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},h1=(e,n)=>e.isLoading&&e.isFetching&&!n,d1=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,Rp=(e,n,i)=>n.fetchOptimistic(e).catch(()=>{i.clearReset()});function p1(e,n,i){var g,_,x,C,b;const s=i1(),a=l1(),u=pa(),f=u.defaultQueryOptions(e);(_=(g=u.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||_.call(g,f),f._optimisticResults=s?"isRestoring":"optimistic",f1(f),a1(f,a),u1(a);const h=!u.getQueryCache().get(f.queryHash),[p]=de.useState(()=>new n(u,f)),m=p.getOptimisticResult(f),v=!s&&e.subscribed!==!1;if(de.useSyncExternalStore(de.useCallback(S=>{const k=v?p.subscribe(tt.batchCalls(S)):xt;return p.updateResult(),k},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),de.useEffect(()=>{p.setOptions(f)},[f,p]),d1(f,m))throw Rp(f,p,a);if(c1({result:m,errorResetBoundary:a,throwOnError:f.throwOnError,query:u.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw m.error;if((C=(x=u.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||C.call(x,f,m),f.experimental_prefetchInRender&&!si&&h1(m,s)){const S=h?Rp(f,p,a):(b=u.getQueryCache().get(f.queryHash))==null?void 0:b.promise;S==null||S.catch(xt).finally(()=>{p.updateResult()})}return f.notifyOnChangeProps?m:p.trackResult(m)}function qc(e,n){return p1(e,Jv)}function g1(e,n){const i=pa(),[s]=de.useState(()=>new n1(i,e));de.useEffect(()=>{s.setOptions(e)},[s,e]);const a=de.useSyncExternalStore(de.useCallback(f=>s.subscribe(tt.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=de.useCallback((f,h)=>{s.mutate(f,h).catch(xt)},[s]);if(a.error&&m0(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}var Fl={},pc={exports:{}},Mt={},gc={exports:{}},mc={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var _p=e=>{throw TypeError(e)};var cc=(e,n,i)=>n.has(e)||_p("Cannot "+i);var N=(
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Ap;function y1(){return Ap||(Ap=1,function(e){function n(B,J){var G=B.length;B.push(J);e:for(;0<G;){var R=G-1>>>1,V=B[R];if(0<a(V,J))B[R]=J,B[G]=V,G=R;else break e}}function i(B){return B.length===0?null:B[0]}function s(B){if(B.length===0)return null;var J=B[0],G=B.pop();if(G!==J){B[0]=G;e:for(var R=0,V=B.length,le=V>>>1;R<le;){var ge=2*(R+1)-1,ke=B[ge],Ce=ge+1,Ee=B[Ce];if(0>a(ke,G))Ce<V&&0>a(Ee,ke)?(B[R]=Ee,B[Ce]=G,R=Ce):(B[R]=ke,B[ge]=G,R=ge);else if(Ce<V&&0>a(Ee,G))B[R]=Ee,B[Ce]=G,R=Ce;else break e}}return J}function a(B,J){var G=B.sortIndex-J.sortIndex;return G!==0?G:B.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var p=[],y=[],v=1,g=null,_=3,x=!1,C=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(B){for(var J=i(y);J!==null;){if(J.callback===null)s(y);else if(J.startTime<=B)s(y),J.sortIndex=J.expirationTime,n(p,J);else break;J=i(y)}}function P(B){if(b=!1,A(B),!C)if(i(p)!==null)C=!0,W(T);else{var J=i(y);J!==null&&oe(P,J.startTime-B)}}function T(B,J){C=!1,b&&(b=!1,k(D),D=-1),x=!0;var G=_;try{for(A(J),g=i(p);g!==null&&(!(g.expirationTime>J)||B&&!Z());){var R=g.callback;if(typeof R=="function"){g.callback=null,_=g.priorityLevel;var V=R(g.expirationTime<=J);J=e.unstable_now(),typeof V=="function"?g.callback=V:g===i(p)&&s(p),A(J)}else s(p);g=i(p)}if(g!==null)var le=!0;else{var ge=i(y);ge!==null&&oe(P,ge.startTime-J),le=!1}return le}finally{g=null,_=G,x=!1}}var z=!1,L=null,D=-1,Q=5,K=-1;function Z(){return!(e.unstable_now()-K<Q)}function ie(){if(L!==null){var B=e.unstable_now();K=B;var J=!0;try{J=L(!0,B)}finally{J?ce():(z=!1,L=null)}}else z=!1}var ce;if(typeof O=="function")ce=function(){O(ie)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,te=F.port2;F.port1.onmessage=ie,ce=function(){te.postMessage(null)}}else ce=function(){S(ie,0)};function W(B){L=B,z||(z=!0,ce())}function oe(B,J){D=S(function(){B(e.unstable_now())},J)}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(B){B.callback=null},e.unstable_continueExecution=function(){C||x||(C=!0,W(T))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(B){switch(_){case 1:case 2:case 3:var J=3;break;default:J=_}var G=_;_=J;try{return B()}finally{_=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,J){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var G=_;_=B;try{return J()}finally{_=G}},e.unstable_scheduleCallback=function(B,J,G){var R=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?R+G:R):G=R,B){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=G+V,B={id:v++,callback:J,priorityLevel:B,startTime:G,expirationTime:V,sortIndex:-1},G>R?(B.sortIndex=G,n(y,B),i(p)===null&&B===i(y)&&(b?(k(D),D=-1):b=!0,oe(P,G-R))):(B.sortIndex=V,n(p,B),C||x||(C=!0,W(T))),B},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(B){var J=_;return function(){var G=_;_=J;try{return B.apply(this,arguments)}finally{_=G}}}}(yc)),yc}var jp;function m1(){return jp||(jp=1,gc.exports=y1()),gc.exports}/**
25
+ */var Ap;function m1(){return Ap||(Ap=1,function(e){function n(B,J){var G=B.length;B.push(J);e:for(;0<G;){var R=G-1>>>1,q=B[R];if(0<a(q,J))B[R]=J,B[G]=q,G=R;else break e}}function i(B){return B.length===0?null:B[0]}function s(B){if(B.length===0)return null;var J=B[0],G=B.pop();if(G!==J){B[0]=G;e:for(var R=0,q=B.length,le=q>>>1;R<le;){var ge=2*(R+1)-1,ke=B[ge],Ce=ge+1,Ee=B[Ce];if(0>a(ke,G))Ce<q&&0>a(Ee,ke)?(B[R]=Ee,B[Ce]=G,R=Ce):(B[R]=ke,B[ge]=G,R=ge);else if(Ce<q&&0>a(Ee,G))B[R]=Ee,B[Ce]=G,R=Ce;else break e}}return J}function a(B,J){var G=B.sortIndex-J.sortIndex;return G!==0?G:B.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var p=[],m=[],v=1,g=null,_=3,x=!1,C=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(B){for(var J=i(m);J!==null;){if(J.callback===null)s(m);else if(J.startTime<=B)s(m),J.sortIndex=J.expirationTime,n(p,J);else break;J=i(m)}}function P(B){if(b=!1,A(B),!C)if(i(p)!==null)C=!0,W(N);else{var J=i(m);J!==null&&oe(P,J.startTime-B)}}function N(B,J){C=!1,b&&(b=!1,k(D),D=-1),x=!0;var G=_;try{for(A(J),g=i(p);g!==null&&(!(g.expirationTime>J)||B&&!Z());){var R=g.callback;if(typeof R=="function"){g.callback=null,_=g.priorityLevel;var q=R(g.expirationTime<=J);J=e.unstable_now(),typeof q=="function"?g.callback=q:g===i(p)&&s(p),A(J)}else s(p);g=i(p)}if(g!==null)var le=!0;else{var ge=i(m);ge!==null&&oe(P,ge.startTime-J),le=!1}return le}finally{g=null,_=G,x=!1}}var z=!1,F=null,D=-1,Q=5,K=-1;function Z(){return!(e.unstable_now()-K<Q)}function ie(){if(F!==null){var B=e.unstable_now();K=B;var J=!0;try{J=F(!0,B)}finally{J?ce():(z=!1,F=null)}}else z=!1}var ce;if(typeof O=="function")ce=function(){O(ie)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,te=$.port2;$.port1.onmessage=ie,ce=function(){te.postMessage(null)}}else ce=function(){S(ie,0)};function W(B){F=B,z||(z=!0,ce())}function oe(B,J){D=S(function(){B(e.unstable_now())},J)}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(B){B.callback=null},e.unstable_continueExecution=function(){C||x||(C=!0,W(N))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(B){switch(_){case 1:case 2:case 3:var J=3;break;default:J=_}var G=_;_=J;try{return B()}finally{_=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,J){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var G=_;_=B;try{return J()}finally{_=G}},e.unstable_scheduleCallback=function(B,J,G){var R=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?R+G:R):G=R,B){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=G+q,B={id:v++,callback:J,priorityLevel:B,startTime:G,expirationTime:q,sortIndex:-1},G>R?(B.sortIndex=G,n(m,B),i(p)===null&&B===i(m)&&(b?(k(D),D=-1):b=!0,oe(P,G-R))):(B.sortIndex=q,n(p,B),C||x||(C=!0,W(N))),B},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(B){var J=_;return function(){var G=_;_=J;try{return B.apply(this,arguments)}finally{_=G}}}}(mc)),mc}var jp;function y1(){return jp||(jp=1,gc.exports=m1()),gc.exports}/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,19 +30,19 @@ var _p=e=>{throw TypeError(e)};var cc=(e,n,i)=>n.has(e)||_p("Cannot "+i);var N=(
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var zp;function v1(){if(zp)return Mt;zp=1;var e=hf(),n=m1();function i(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(r,o){f(r,o),f(r+"Capture",o)}function f(r,o){for(a[r]=o,r=0;r<o.length;r++)s.add(o[r])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,y=/^[: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]*$/,v={},g={};function _(r){return p.call(g,r)?!0:p.call(v,r)?!1:y.test(r)?g[r]=!0:(v[r]=!0,!1)}function x(r,o,l,c){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function C(r,o,l,c){if(o===null||typeof o>"u"||x(r,o,l,c))return!0;if(c)return!1;if(l!==null)switch(l.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function b(r,o,l,c,d,m,w){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=d,this.mustUseProperty=l,this.propertyName=r,this.type=o,this.sanitizeURL=m,this.removeEmptyString=w}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){S[r]=new b(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];S[o]=new b(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){S[r]=new b(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){S[r]=new b(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){S[r]=new b(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){S[r]=new b(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){S[r]=new b(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){S[r]=new b(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){S[r]=new b(r,5,!1,r.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function O(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(k,O);S[o]=new b(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(k,O);S[o]=new b(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(k,O);S[o]=new b(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){S[r]=new b(r,1,!1,r.toLowerCase(),null,!1,!1)}),S.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){S[r]=new b(r,1,!1,r.toLowerCase(),null,!0,!0)});function A(r,o,l,c){var d=S.hasOwnProperty(o)?S[o]:null;(d!==null?d.type!==0:c||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(C(o,l,d,c)&&(l=null),c||d===null?_(o)&&(l===null?r.removeAttribute(o):r.setAttribute(o,""+l)):d.mustUseProperty?r[d.propertyName]=l===null?d.type===3?!1:"":l:(o=d.attributeName,c=d.attributeNamespace,l===null?r.removeAttribute(o):(d=d.type,l=d===3||d===4&&l===!0?"":""+l,c?r.setAttributeNS(c,o,l):r.setAttribute(o,l))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),z=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),Z=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),B=Symbol.iterator;function J(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var G=Object.assign,R;function V(r){if(R===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);R=o&&o[1]||""}return`
34
- `+R+r}var le=!1;function ge(r,o){if(!r||le)return"";le=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(q){var c=q}Reflect.construct(r,[],o)}else{try{o.call()}catch(q){c=q}r.call(o.prototype)}else{try{throw Error()}catch(q){c=q}r()}}catch(q){if(q&&c&&typeof q.stack=="string"){for(var d=q.stack.split(`
35
- `),m=c.stack.split(`
36
- `),w=d.length-1,E=m.length-1;1<=w&&0<=E&&d[w]!==m[E];)E--;for(;1<=w&&0<=E;w--,E--)if(d[w]!==m[E]){if(w!==1||E!==1)do if(w--,E--,0>E||d[w]!==m[E]){var M=`
37
- `+d[w].replace(" at new "," at ");return r.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",r.displayName)),M}while(1<=w&&0<=E);break}}}finally{le=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?V(r):""}function ke(r){switch(r.tag){case 5:return V(r.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return r=ge(r.type,!1),r;case 11:return r=ge(r.type.render,!1),r;case 1:return r=ge(r.type,!0),r;default:return""}}function Ce(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case L:return"Fragment";case z:return"Portal";case Q:return"Profiler";case D:return"StrictMode";case ce:return"Suspense";case F:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Z:return(r.displayName||"Context")+".Consumer";case K:return(r._context.displayName||"Context")+".Provider";case ie:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case te:return o=r.displayName||null,o!==null?o:Ce(r.type)||"Memo";case W:o=r._payload,r=r._init;try{return Ce(r(o))}catch{}}return null}function Ee(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(o);case 8:return o===D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function be(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ae(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function gt(r){var o=Ae(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),c=""+r[o];if(!r.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,m=l.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return d.call(this)},set:function(w){c=""+w,m.call(this,w)}}),Object.defineProperty(r,o,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Or(r){r._valueTracker||(r._valueTracker=gt(r))}function bs(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),c="";return r&&(c=Ae(r)?r.checked?"true":"false":r.value),r=c,r!==l?(o.setValue(r),!0):!1}function ui(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function ro(r,o){var l=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Es(r,o){var l=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;l=be(o.value!=null?o.value:l),r._wrapperState={initialChecked:c,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Ps(r,o){o=o.checked,o!=null&&A(r,"checked",o,!1)}function io(r,o){Ps(r,o);var l=be(o.value),c=o.type;if(l!=null)c==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?oo(r,o.type,l):o.hasOwnProperty("defaultValue")&&oo(r,o.type,be(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function Ts(r,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,l||o===r.value||(r.value=o),r.defaultValue=o}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function oo(r,o,l){(o!=="number"||ui(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var Rr=Array.isArray;function Xn(r,o,l,c){if(r=r.options,o){o={};for(var d=0;d<l.length;d++)o["$"+l[d]]=!0;for(l=0;l<r.length;l++)d=o.hasOwnProperty("$"+r[l].value),r[l].selected!==d&&(r[l].selected=d),d&&c&&(r[l].defaultSelected=!0)}else{for(l=""+be(l),o=null,d=0;d<r.length;d++){if(r[d].value===l){r[d].selected=!0,c&&(r[d].defaultSelected=!0);return}o!==null||r[d].disabled||(o=r[d])}o!==null&&(o.selected=!0)}}function ci(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return G({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function so(r,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(i(92));if(Rr(l)){if(1<l.length)throw Error(i(93));l=l[0]}o=l}o==null&&(o=""),l=o}r._wrapperState={initialValue:be(l)}}function se(r,o){var l=be(o.value),c=be(o.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),o.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),c!=null&&(r.defaultValue=""+c)}function we(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function Me(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function St(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?Me(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var He,Ut=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,c,d){MSApp.execUnsafeLocalFunction(function(){return r(o,l,c,d)})}:r}(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(He=He||document.createElement("div"),He.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=He.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function Ct(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var Jt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ns=["Webkit","ms","Moz","O"];Object.keys(Jt).forEach(function(r){Ns.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),Jt[o]=Jt[r]})});function fi(r,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||Jt.hasOwnProperty(r)&&Jt[r]?(""+o).trim():o+"px"}function zf(r,o){r=r.style;for(var l in o)if(o.hasOwnProperty(l)){var c=l.indexOf("--")===0,d=fi(l,o[l],c);l==="float"&&(l="cssFloat"),c?r.setProperty(l,d):r[l]=d}}var Ly=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ka(r,o){if(o){if(Ly[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(i(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(i(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(i(61))}if(o.style!=null&&typeof o.style!="object")throw Error(i(62))}}function Sa(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){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 Ca=null;function ba(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ea=null,hi=null,di=null;function Df(r){if(r=No(r)){if(typeof Ea!="function")throw Error(i(280));var o=r.stateNode;o&&(o=Zs(o),Ea(r.stateNode,r.type,o))}}function If(r){hi?di?di.push(r):di=[r]:hi=r}function Lf(){if(hi){var r=hi,o=di;if(di=hi=null,Df(r),o)for(r=0;r<o.length;r++)Df(o[r])}}function Ff(r,o){return r(o)}function $f(){}var Pa=!1;function Uf(r,o,l){if(Pa)return r(o,l);Pa=!0;try{return Ff(r,o,l)}finally{Pa=!1,(hi!==null||di!==null)&&($f(),Lf())}}function lo(r,o){var l=r.stateNode;if(l===null)return null;var c=Zs(l);if(c===null)return null;l=c[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,o,typeof l));return l}var Ta=!1;if(h)try{var ao={};Object.defineProperty(ao,"passive",{get:function(){Ta=!0}}),window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch{Ta=!1}function Fy(r,o,l,c,d,m,w,E,M){var q=Array.prototype.slice.call(arguments,3);try{o.apply(l,q)}catch(Y){this.onError(Y)}}var uo=!1,Ms=null,Os=!1,Na=null,$y={onError:function(r){uo=!0,Ms=r}};function Uy(r,o,l,c,d,m,w,E,M){uo=!1,Ms=null,Fy.apply($y,arguments)}function Hy(r,o,l,c,d,m,w,E,M){if(Uy.apply(this,arguments),uo){if(uo){var q=Ms;uo=!1,Ms=null}else throw Error(i(198));Os||(Os=!0,Na=q)}}function Ar(r){var o=r,l=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(l=o.return),r=o.return;while(r)}return o.tag===3?l:null}function Hf(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function qf(r){if(Ar(r)!==r)throw Error(i(188))}function qy(r){var o=r.alternate;if(!o){if(o=Ar(r),o===null)throw Error(i(188));return o!==r?null:r}for(var l=r,c=o;;){var d=l.return;if(d===null)break;var m=d.alternate;if(m===null){if(c=d.return,c!==null){l=c;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===l)return qf(d),r;if(m===c)return qf(d),o;m=m.sibling}throw Error(i(188))}if(l.return!==c.return)l=d,c=m;else{for(var w=!1,E=d.child;E;){if(E===l){w=!0,l=d,c=m;break}if(E===c){w=!0,c=d,l=m;break}E=E.sibling}if(!w){for(E=m.child;E;){if(E===l){w=!0,l=m,c=d;break}if(E===c){w=!0,c=m,l=d;break}E=E.sibling}if(!w)throw Error(i(189))}}if(l.alternate!==c)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:o}function Vf(r){return r=qy(r),r!==null?Qf(r):null}function Qf(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=Qf(r);if(o!==null)return o;r=r.sibling}return null}var Bf=n.unstable_scheduleCallback,Wf=n.unstable_cancelCallback,Vy=n.unstable_shouldYield,Qy=n.unstable_requestPaint,Xe=n.unstable_now,By=n.unstable_getCurrentPriorityLevel,Ma=n.unstable_ImmediatePriority,Kf=n.unstable_UserBlockingPriority,Rs=n.unstable_NormalPriority,Wy=n.unstable_LowPriority,Gf=n.unstable_IdlePriority,As=null,gn=null;function Ky(r){if(gn&&typeof gn.onCommitFiberRoot=="function")try{gn.onCommitFiberRoot(As,r,void 0,(r.current.flags&128)===128)}catch{}}var en=Math.clz32?Math.clz32:Yy,Gy=Math.log,Xy=Math.LN2;function Yy(r){return r>>>=0,r===0?32:31-(Gy(r)/Xy|0)|0}var js=64,zs=4194304;function co(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Ds(r,o){var l=r.pendingLanes;if(l===0)return 0;var c=0,d=r.suspendedLanes,m=r.pingedLanes,w=l&268435455;if(w!==0){var E=w&~d;E!==0?c=co(E):(m&=w,m!==0&&(c=co(m)))}else w=l&~d,w!==0?c=co(w):m!==0&&(c=co(m));if(c===0)return 0;if(o!==0&&o!==c&&(o&d)===0&&(d=c&-c,m=o&-o,d>=m||d===16&&(m&4194240)!==0))return o;if((c&4)!==0&&(c|=l&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=c;0<o;)l=31-en(o),d=1<<l,c|=r[l],o&=~d;return c}function Zy(r,o){switch(r){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Jy(r,o){for(var l=r.suspendedLanes,c=r.pingedLanes,d=r.expirationTimes,m=r.pendingLanes;0<m;){var w=31-en(m),E=1<<w,M=d[w];M===-1?((E&l)===0||(E&c)!==0)&&(d[w]=Zy(E,o)):M<=o&&(r.expiredLanes|=E),m&=~E}}function Oa(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Xf(){var r=js;return js<<=1,(js&4194240)===0&&(js=64),r}function Ra(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function fo(r,o,l){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-en(o),r[o]=l}function em(r,o){var l=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<l;){var d=31-en(l),m=1<<d;o[d]=0,c[d]=-1,r[d]=-1,l&=~m}}function Aa(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var c=31-en(l),d=1<<c;d&o|r[c]&o&&(r[c]|=o),l&=~d}}var ze=0;function Yf(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Zf,ja,Jf,eh,th,za=!1,Is=[],Yn=null,Zn=null,Jn=null,ho=new Map,po=new Map,er=[],tm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function nh(r,o){switch(r){case"focusin":case"focusout":Yn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":ho.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":po.delete(o.pointerId)}}function go(r,o,l,c,d,m){return r===null||r.nativeEvent!==m?(r={blockedOn:o,domEventName:l,eventSystemFlags:c,nativeEvent:m,targetContainers:[d]},o!==null&&(o=No(o),o!==null&&ja(o)),r):(r.eventSystemFlags|=c,o=r.targetContainers,d!==null&&o.indexOf(d)===-1&&o.push(d),r)}function nm(r,o,l,c,d){switch(o){case"focusin":return Yn=go(Yn,r,o,l,c,d),!0;case"dragenter":return Zn=go(Zn,r,o,l,c,d),!0;case"mouseover":return Jn=go(Jn,r,o,l,c,d),!0;case"pointerover":var m=d.pointerId;return ho.set(m,go(ho.get(m)||null,r,o,l,c,d)),!0;case"gotpointercapture":return m=d.pointerId,po.set(m,go(po.get(m)||null,r,o,l,c,d)),!0}return!1}function rh(r){var o=jr(r.target);if(o!==null){var l=Ar(o);if(l!==null){if(o=l.tag,o===13){if(o=Hf(l),o!==null){r.blockedOn=o,th(r.priority,function(){Jf(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ls(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=Ia(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);Ca=c,l.target.dispatchEvent(c),Ca=null}else return o=No(l),o!==null&&ja(o),r.blockedOn=l,!1;o.shift()}return!0}function ih(r,o,l){Ls(r)&&l.delete(o)}function rm(){za=!1,Yn!==null&&Ls(Yn)&&(Yn=null),Zn!==null&&Ls(Zn)&&(Zn=null),Jn!==null&&Ls(Jn)&&(Jn=null),ho.forEach(ih),po.forEach(ih)}function yo(r,o){r.blockedOn===o&&(r.blockedOn=null,za||(za=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,rm)))}function mo(r){function o(d){return yo(d,r)}if(0<Is.length){yo(Is[0],r);for(var l=1;l<Is.length;l++){var c=Is[l];c.blockedOn===r&&(c.blockedOn=null)}}for(Yn!==null&&yo(Yn,r),Zn!==null&&yo(Zn,r),Jn!==null&&yo(Jn,r),ho.forEach(o),po.forEach(o),l=0;l<er.length;l++)c=er[l],c.blockedOn===r&&(c.blockedOn=null);for(;0<er.length&&(l=er[0],l.blockedOn===null);)rh(l),l.blockedOn===null&&er.shift()}var pi=P.ReactCurrentBatchConfig,Fs=!0;function im(r,o,l,c){var d=ze,m=pi.transition;pi.transition=null;try{ze=1,Da(r,o,l,c)}finally{ze=d,pi.transition=m}}function om(r,o,l,c){var d=ze,m=pi.transition;pi.transition=null;try{ze=4,Da(r,o,l,c)}finally{ze=d,pi.transition=m}}function Da(r,o,l,c){if(Fs){var d=Ia(r,o,l,c);if(d===null)eu(r,o,c,$s,l),nh(r,c);else if(nm(d,r,o,l,c))c.stopPropagation();else if(nh(r,c),o&4&&-1<tm.indexOf(r)){for(;d!==null;){var m=No(d);if(m!==null&&Zf(m),m=Ia(r,o,l,c),m===null&&eu(r,o,c,$s,l),m===d)break;d=m}d!==null&&c.stopPropagation()}else eu(r,o,c,null,l)}}var $s=null;function Ia(r,o,l,c){if($s=null,r=ba(c),r=jr(r),r!==null)if(o=Ar(r),o===null)r=null;else if(l=o.tag,l===13){if(r=Hf(o),r!==null)return r;r=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return $s=r,null}function oh(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(By()){case Ma:return 1;case Kf:return 4;case Rs:case Wy:return 16;case Gf:return 536870912;default:return 16}default:return 16}}var tr=null,La=null,Us=null;function sh(){if(Us)return Us;var r,o=La,l=o.length,c,d="value"in tr?tr.value:tr.textContent,m=d.length;for(r=0;r<l&&o[r]===d[r];r++);var w=l-r;for(c=1;c<=w&&o[l-c]===d[m-c];c++);return Us=d.slice(r,1<c?1-c:void 0)}function Hs(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function qs(){return!0}function lh(){return!1}function zt(r){function o(l,c,d,m,w){this._reactName=l,this._targetInst=d,this.type=c,this.nativeEvent=m,this.target=w,this.currentTarget=null;for(var E in r)r.hasOwnProperty(E)&&(l=r[E],this[E]=l?l(m):m[E]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?qs:lh,this.isPropagationStopped=lh,this}return G(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=qs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=qs)},persist:function(){},isPersistent:qs}),o}var gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=zt(gi),vo=G({},gi,{view:0,detail:0}),sm=zt(vo),$a,Ua,_o,Vs=G({},vo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qa,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==_o&&(_o&&r.type==="mousemove"?($a=r.screenX-_o.screenX,Ua=r.screenY-_o.screenY):Ua=$a=0,_o=r),$a)},movementY:function(r){return"movementY"in r?r.movementY:Ua}}),ah=zt(Vs),lm=G({},Vs,{dataTransfer:0}),am=zt(lm),um=G({},vo,{relatedTarget:0}),Ha=zt(um),cm=G({},gi,{animationName:0,elapsedTime:0,pseudoElement:0}),fm=zt(cm),hm=G({},gi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),dm=zt(hm),pm=G({},gi,{data:0}),uh=zt(pm),gm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ym={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"},mm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vm(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=mm[r])?!!o[r]:!1}function qa(){return vm}var _m=G({},vo,{key:function(r){if(r.key){var o=gm[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=Hs(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?ym[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qa,charCode:function(r){return r.type==="keypress"?Hs(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Hs(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),xm=zt(_m),wm=G({},Vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ch=zt(wm),km=G({},vo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qa}),Sm=zt(km),Cm=G({},gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),bm=zt(Cm),Em=G({},Vs,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Pm=zt(Em),Tm=[9,13,27,32],Va=h&&"CompositionEvent"in window,xo=null;h&&"documentMode"in document&&(xo=document.documentMode);var Nm=h&&"TextEvent"in window&&!xo,fh=h&&(!Va||xo&&8<xo&&11>=xo),hh=" ",dh=!1;function ph(r,o){switch(r){case"keyup":return Tm.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gh(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var yi=!1;function Mm(r,o){switch(r){case"compositionend":return gh(o);case"keypress":return o.which!==32?null:(dh=!0,hh);case"textInput":return r=o.data,r===hh&&dh?null:r;default:return null}}function Om(r,o){if(yi)return r==="compositionend"||!Va&&ph(r,o)?(r=sh(),Us=La=tr=null,yi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return fh&&o.locale!=="ko"?null:o.data;default:return null}}var Rm={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 yh(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!Rm[r.type]:o==="textarea"}function mh(r,o,l,c){If(c),o=Gs(o,"onChange"),0<o.length&&(l=new Fa("onChange","change",null,l,c),r.push({event:l,listeners:o}))}var wo=null,ko=null;function Am(r){zh(r,0)}function Qs(r){var o=wi(r);if(bs(o))return r}function jm(r,o){if(r==="change")return o}var vh=!1;if(h){var Qa;if(h){var Ba="oninput"in document;if(!Ba){var _h=document.createElement("div");_h.setAttribute("oninput","return;"),Ba=typeof _h.oninput=="function"}Qa=Ba}else Qa=!1;vh=Qa&&(!document.documentMode||9<document.documentMode)}function xh(){wo&&(wo.detachEvent("onpropertychange",wh),ko=wo=null)}function wh(r){if(r.propertyName==="value"&&Qs(ko)){var o=[];mh(o,ko,r,ba(r)),Uf(Am,o)}}function zm(r,o,l){r==="focusin"?(xh(),wo=o,ko=l,wo.attachEvent("onpropertychange",wh)):r==="focusout"&&xh()}function Dm(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Qs(ko)}function Im(r,o){if(r==="click")return Qs(o)}function Lm(r,o){if(r==="input"||r==="change")return Qs(o)}function Fm(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var tn=typeof Object.is=="function"?Object.is:Fm;function So(r,o){if(tn(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var l=Object.keys(r),c=Object.keys(o);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var d=l[c];if(!p.call(o,d)||!tn(r[d],o[d]))return!1}return!0}function kh(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Sh(r,o){var l=kh(r);r=0;for(var c;l;){if(l.nodeType===3){if(c=r+l.textContent.length,r<=o&&c>=o)return{node:l,offset:o-r};r=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=kh(l)}}function Ch(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?Ch(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function bh(){for(var r=window,o=ui();o instanceof r.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)r=o.contentWindow;else break;o=ui(r.document)}return o}function Wa(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function $m(r){var o=bh(),l=r.focusedElem,c=r.selectionRange;if(o!==l&&l&&l.ownerDocument&&Ch(l.ownerDocument.documentElement,l)){if(c!==null&&Wa(l)){if(o=c.start,r=c.end,r===void 0&&(r=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(r,l.value.length);else if(r=(o=l.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var d=l.textContent.length,m=Math.min(c.start,d);c=c.end===void 0?m:Math.min(c.end,d),!r.extend&&m>c&&(d=c,c=m,m=d),d=Sh(l,m);var w=Sh(l,c);d&&w&&(r.rangeCount!==1||r.anchorNode!==d.node||r.anchorOffset!==d.offset||r.focusNode!==w.node||r.focusOffset!==w.offset)&&(o=o.createRange(),o.setStart(d.node,d.offset),r.removeAllRanges(),m>c?(r.addRange(o),r.extend(w.node,w.offset)):(o.setEnd(w.node,w.offset),r.addRange(o)))}}for(o=[],r=l;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)r=o[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var Um=h&&"documentMode"in document&&11>=document.documentMode,mi=null,Ka=null,Co=null,Ga=!1;function Eh(r,o,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ga||mi==null||mi!==ui(c)||(c=mi,"selectionStart"in c&&Wa(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Co&&So(Co,c)||(Co=c,c=Gs(Ka,"onSelect"),0<c.length&&(o=new Fa("onSelect","select",null,o,l),r.push({event:o,listeners:c}),o.target=mi)))}function Bs(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var vi={animationend:Bs("Animation","AnimationEnd"),animationiteration:Bs("Animation","AnimationIteration"),animationstart:Bs("Animation","AnimationStart"),transitionend:Bs("Transition","TransitionEnd")},Xa={},Ph={};h&&(Ph=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function Ws(r){if(Xa[r])return Xa[r];if(!vi[r])return r;var o=vi[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in Ph)return Xa[r]=o[l];return r}var Th=Ws("animationend"),Nh=Ws("animationiteration"),Mh=Ws("animationstart"),Oh=Ws("transitionend"),Rh=new Map,Ah="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function nr(r,o){Rh.set(r,o),u(o,[r])}for(var Ya=0;Ya<Ah.length;Ya++){var Za=Ah[Ya],Hm=Za.toLowerCase(),qm=Za[0].toUpperCase()+Za.slice(1);nr(Hm,"on"+qm)}nr(Th,"onAnimationEnd"),nr(Nh,"onAnimationIteration"),nr(Mh,"onAnimationStart"),nr("dblclick","onDoubleClick"),nr("focusin","onFocus"),nr("focusout","onBlur"),nr(Oh,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bo="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(" "),Vm=new Set("cancel close invalid load scroll toggle".split(" ").concat(bo));function jh(r,o,l){var c=r.type||"unknown-event";r.currentTarget=l,Hy(c,o,void 0,r),r.currentTarget=null}function zh(r,o){o=(o&4)!==0;for(var l=0;l<r.length;l++){var c=r[l],d=c.event;c=c.listeners;e:{var m=void 0;if(o)for(var w=c.length-1;0<=w;w--){var E=c[w],M=E.instance,q=E.currentTarget;if(E=E.listener,M!==m&&d.isPropagationStopped())break e;jh(d,E,q),m=M}else for(w=0;w<c.length;w++){if(E=c[w],M=E.instance,q=E.currentTarget,E=E.listener,M!==m&&d.isPropagationStopped())break e;jh(d,E,q),m=M}}}if(Os)throw r=Na,Os=!1,Na=null,r}function Fe(r,o){var l=o[su];l===void 0&&(l=o[su]=new Set);var c=r+"__bubble";l.has(c)||(Dh(o,r,2,!1),l.add(c))}function Ja(r,o,l){var c=0;o&&(c|=4),Dh(l,r,c,o)}var Ks="_reactListening"+Math.random().toString(36).slice(2);function Eo(r){if(!r[Ks]){r[Ks]=!0,s.forEach(function(l){l!=="selectionchange"&&(Vm.has(l)||Ja(l,!1,r),Ja(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Ks]||(o[Ks]=!0,Ja("selectionchange",!1,o))}}function Dh(r,o,l,c){switch(oh(o)){case 1:var d=im;break;case 4:d=om;break;default:d=Da}l=d.bind(null,o,l,r),d=void 0,!Ta||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(d=!0),c?d!==void 0?r.addEventListener(o,l,{capture:!0,passive:d}):r.addEventListener(o,l,!0):d!==void 0?r.addEventListener(o,l,{passive:d}):r.addEventListener(o,l,!1)}function eu(r,o,l,c,d){var m=c;if((o&1)===0&&(o&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var E=c.stateNode.containerInfo;if(E===d||E.nodeType===8&&E.parentNode===d)break;if(w===4)for(w=c.return;w!==null;){var M=w.tag;if((M===3||M===4)&&(M=w.stateNode.containerInfo,M===d||M.nodeType===8&&M.parentNode===d))return;w=w.return}for(;E!==null;){if(w=jr(E),w===null)return;if(M=w.tag,M===5||M===6){c=m=w;continue e}E=E.parentNode}}c=c.return}Uf(function(){var q=m,Y=ba(l),ee=[];e:{var X=Rh.get(r);if(X!==void 0){var ae=Fa,he=r;switch(r){case"keypress":if(Hs(l)===0)break e;case"keydown":case"keyup":ae=xm;break;case"focusin":he="focus",ae=Ha;break;case"focusout":he="blur",ae=Ha;break;case"beforeblur":case"afterblur":ae=Ha;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=ah;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=am;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=Sm;break;case Th:case Nh:case Mh:ae=fm;break;case Oh:ae=bm;break;case"scroll":ae=sm;break;case"wheel":ae=Pm;break;case"copy":case"cut":case"paste":ae=dm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=ch}var pe=(o&4)!==0,Ye=!pe&&r==="scroll",U=pe?X!==null?X+"Capture":null:X;pe=[];for(var j=q,H;j!==null;){H=j;var ne=H.stateNode;if(H.tag===5&&ne!==null&&(H=ne,U!==null&&(ne=lo(j,U),ne!=null&&pe.push(Po(j,ne,H)))),Ye)break;j=j.return}0<pe.length&&(X=new ae(X,he,null,l,Y),ee.push({event:X,listeners:pe}))}}if((o&7)===0){e:{if(X=r==="mouseover"||r==="pointerover",ae=r==="mouseout"||r==="pointerout",X&&l!==Ca&&(he=l.relatedTarget||l.fromElement)&&(jr(he)||he[Nn]))break e;if((ae||X)&&(X=Y.window===Y?Y:(X=Y.ownerDocument)?X.defaultView||X.parentWindow:window,ae?(he=l.relatedTarget||l.toElement,ae=q,he=he?jr(he):null,he!==null&&(Ye=Ar(he),he!==Ye||he.tag!==5&&he.tag!==6)&&(he=null)):(ae=null,he=q),ae!==he)){if(pe=ah,ne="onMouseLeave",U="onMouseEnter",j="mouse",(r==="pointerout"||r==="pointerover")&&(pe=ch,ne="onPointerLeave",U="onPointerEnter",j="pointer"),Ye=ae==null?X:wi(ae),H=he==null?X:wi(he),X=new pe(ne,j+"leave",ae,l,Y),X.target=Ye,X.relatedTarget=H,ne=null,jr(Y)===q&&(pe=new pe(U,j+"enter",he,l,Y),pe.target=H,pe.relatedTarget=Ye,ne=pe),Ye=ne,ae&&he)t:{for(pe=ae,U=he,j=0,H=pe;H;H=_i(H))j++;for(H=0,ne=U;ne;ne=_i(ne))H++;for(;0<j-H;)pe=_i(pe),j--;for(;0<H-j;)U=_i(U),H--;for(;j--;){if(pe===U||U!==null&&pe===U.alternate)break t;pe=_i(pe),U=_i(U)}pe=null}else pe=null;ae!==null&&Ih(ee,X,ae,pe,!1),he!==null&&Ye!==null&&Ih(ee,Ye,he,pe,!0)}}e:{if(X=q?wi(q):window,ae=X.nodeName&&X.nodeName.toLowerCase(),ae==="select"||ae==="input"&&X.type==="file")var ye=jm;else if(yh(X))if(vh)ye=Lm;else{ye=Dm;var _e=zm}else(ae=X.nodeName)&&ae.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(ye=Im);if(ye&&(ye=ye(r,q))){mh(ee,ye,l,Y);break e}_e&&_e(r,X,q),r==="focusout"&&(_e=X._wrapperState)&&_e.controlled&&X.type==="number"&&oo(X,"number",X.value)}switch(_e=q?wi(q):window,r){case"focusin":(yh(_e)||_e.contentEditable==="true")&&(mi=_e,Ka=q,Co=null);break;case"focusout":Co=Ka=mi=null;break;case"mousedown":Ga=!0;break;case"contextmenu":case"mouseup":case"dragend":Ga=!1,Eh(ee,l,Y);break;case"selectionchange":if(Um)break;case"keydown":case"keyup":Eh(ee,l,Y)}var xe;if(Va)e:{switch(r){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else yi?ph(r,l)&&(Se="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Se="onCompositionStart");Se&&(fh&&l.locale!=="ko"&&(yi||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&yi&&(xe=sh()):(tr=Y,La="value"in tr?tr.value:tr.textContent,yi=!0)),_e=Gs(q,Se),0<_e.length&&(Se=new uh(Se,r,null,l,Y),ee.push({event:Se,listeners:_e}),xe?Se.data=xe:(xe=gh(l),xe!==null&&(Se.data=xe)))),(xe=Nm?Mm(r,l):Om(r,l))&&(q=Gs(q,"onBeforeInput"),0<q.length&&(Y=new uh("onBeforeInput","beforeinput",null,l,Y),ee.push({event:Y,listeners:q}),Y.data=xe))}zh(ee,o)})}function Po(r,o,l){return{instance:r,listener:o,currentTarget:l}}function Gs(r,o){for(var l=o+"Capture",c=[];r!==null;){var d=r,m=d.stateNode;d.tag===5&&m!==null&&(d=m,m=lo(r,l),m!=null&&c.unshift(Po(r,m,d)),m=lo(r,o),m!=null&&c.push(Po(r,m,d))),r=r.return}return c}function _i(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Ih(r,o,l,c,d){for(var m=o._reactName,w=[];l!==null&&l!==c;){var E=l,M=E.alternate,q=E.stateNode;if(M!==null&&M===c)break;E.tag===5&&q!==null&&(E=q,d?(M=lo(l,m),M!=null&&w.unshift(Po(l,M,E))):d||(M=lo(l,m),M!=null&&w.push(Po(l,M,E)))),l=l.return}w.length!==0&&r.push({event:o,listeners:w})}var Qm=/\r\n?/g,Bm=/\u0000|\uFFFD/g;function Lh(r){return(typeof r=="string"?r:""+r).replace(Qm,`
38
- `).replace(Bm,"")}function Xs(r,o,l){if(o=Lh(o),Lh(r)!==o&&l)throw Error(i(425))}function Ys(){}var tu=null,nu=null;function ru(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var iu=typeof setTimeout=="function"?setTimeout:void 0,Wm=typeof clearTimeout=="function"?clearTimeout:void 0,Fh=typeof Promise=="function"?Promise:void 0,Km=typeof queueMicrotask=="function"?queueMicrotask:typeof Fh<"u"?function(r){return Fh.resolve(null).then(r).catch(Gm)}:iu;function Gm(r){setTimeout(function(){throw r})}function ou(r,o){var l=o,c=0;do{var d=l.nextSibling;if(r.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(c===0){r.removeChild(d),mo(o);return}c--}else l!=="$"&&l!=="$?"&&l!=="$!"||c++;l=d}while(l);mo(o)}function rr(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function $h(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return r;o--}else l==="/$"&&o++}r=r.previousSibling}return null}var xi=Math.random().toString(36).slice(2),yn="__reactFiber$"+xi,To="__reactProps$"+xi,Nn="__reactContainer$"+xi,su="__reactEvents$"+xi,Xm="__reactListeners$"+xi,Ym="__reactHandles$"+xi;function jr(r){var o=r[yn];if(o)return o;for(var l=r.parentNode;l;){if(o=l[Nn]||l[yn]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=$h(r);r!==null;){if(l=r[yn])return l;r=$h(r)}return o}r=l,l=r.parentNode}return null}function No(r){return r=r[yn]||r[Nn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function wi(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(i(33))}function Zs(r){return r[To]||null}var lu=[],ki=-1;function ir(r){return{current:r}}function $e(r){0>ki||(r.current=lu[ki],lu[ki]=null,ki--)}function Le(r,o){ki++,lu[ki]=r.current,r.current=o}var or={},at=ir(or),bt=ir(!1),zr=or;function Si(r,o){var l=r.type.contextTypes;if(!l)return or;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var d={},m;for(m in l)d[m]=o[m];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=d),d}function Et(r){return r=r.childContextTypes,r!=null}function Js(){$e(bt),$e(at)}function Uh(r,o,l){if(at.current!==or)throw Error(i(168));Le(at,o),Le(bt,l)}function Hh(r,o,l){var c=r.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return l;c=c.getChildContext();for(var d in c)if(!(d in o))throw Error(i(108,Ee(r)||"Unknown",d));return G({},l,c)}function el(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||or,zr=at.current,Le(at,r),Le(bt,bt.current),!0}function qh(r,o,l){var c=r.stateNode;if(!c)throw Error(i(169));l?(r=Hh(r,o,zr),c.__reactInternalMemoizedMergedChildContext=r,$e(bt),$e(at),Le(at,r)):$e(bt),Le(bt,l)}var Mn=null,tl=!1,au=!1;function Vh(r){Mn===null?Mn=[r]:Mn.push(r)}function Zm(r){tl=!0,Vh(r)}function sr(){if(!au&&Mn!==null){au=!0;var r=0,o=ze;try{var l=Mn;for(ze=1;r<l.length;r++){var c=l[r];do c=c(!0);while(c!==null)}Mn=null,tl=!1}catch(d){throw Mn!==null&&(Mn=Mn.slice(r+1)),Bf(Ma,sr),d}finally{ze=o,au=!1}}return null}var Ci=[],bi=0,nl=null,rl=0,Ht=[],qt=0,Dr=null,On=1,Rn="";function Ir(r,o){Ci[bi++]=rl,Ci[bi++]=nl,nl=r,rl=o}function Qh(r,o,l){Ht[qt++]=On,Ht[qt++]=Rn,Ht[qt++]=Dr,Dr=r;var c=On;r=Rn;var d=32-en(c)-1;c&=~(1<<d),l+=1;var m=32-en(o)+d;if(30<m){var w=d-d%5;m=(c&(1<<w)-1).toString(32),c>>=w,d-=w,On=1<<32-en(o)+d|l<<d|c,Rn=m+r}else On=1<<m|l<<d|c,Rn=r}function uu(r){r.return!==null&&(Ir(r,1),Qh(r,1,0))}function cu(r){for(;r===nl;)nl=Ci[--bi],Ci[bi]=null,rl=Ci[--bi],Ci[bi]=null;for(;r===Dr;)Dr=Ht[--qt],Ht[qt]=null,Rn=Ht[--qt],Ht[qt]=null,On=Ht[--qt],Ht[qt]=null}var Dt=null,It=null,qe=!1,nn=null;function Bh(r,o){var l=Wt(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=r,o=r.deletions,o===null?(r.deletions=[l],r.flags|=16):o.push(l)}function Wh(r,o){switch(r.tag){case 5:var l=r.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,Dt=r,It=rr(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,Dt=r,It=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=Dr!==null?{id:On,overflow:Rn}:null,r.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=Wt(18,null,null,0),l.stateNode=o,l.return=r,r.child=l,Dt=r,It=null,!0):!1;default:return!1}}function fu(r){return(r.mode&1)!==0&&(r.flags&128)===0}function hu(r){if(qe){var o=It;if(o){var l=o;if(!Wh(r,o)){if(fu(r))throw Error(i(418));o=rr(l.nextSibling);var c=Dt;o&&Wh(r,o)?Bh(c,l):(r.flags=r.flags&-4097|2,qe=!1,Dt=r)}}else{if(fu(r))throw Error(i(418));r.flags=r.flags&-4097|2,qe=!1,Dt=r}}}function Kh(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Dt=r}function il(r){if(r!==Dt)return!1;if(!qe)return Kh(r),qe=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!ru(r.type,r.memoizedProps)),o&&(o=It)){if(fu(r))throw Gh(),Error(i(418));for(;o;)Bh(r,o),o=rr(o.nextSibling)}if(Kh(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(o===0){It=rr(r.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}r=r.nextSibling}It=null}}else It=Dt?rr(r.stateNode.nextSibling):null;return!0}function Gh(){for(var r=It;r;)r=rr(r.nextSibling)}function Ei(){It=Dt=null,qe=!1}function du(r){nn===null?nn=[r]:nn.push(r)}var Jm=P.ReactCurrentBatchConfig;function Mo(r,o,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(i(309));var c=l.stateNode}if(!c)throw Error(i(147,r));var d=c,m=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===m?o.ref:(o=function(w){var E=d.refs;w===null?delete E[m]:E[m]=w},o._stringRef=m,o)}if(typeof r!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,r))}return r}function ol(r,o){throw r=Object.prototype.toString.call(o),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function Xh(r){var o=r._init;return o(r._payload)}function Yh(r){function o(U,j){if(r){var H=U.deletions;H===null?(U.deletions=[j],U.flags|=16):H.push(j)}}function l(U,j){if(!r)return null;for(;j!==null;)o(U,j),j=j.sibling;return null}function c(U,j){for(U=new Map;j!==null;)j.key!==null?U.set(j.key,j):U.set(j.index,j),j=j.sibling;return U}function d(U,j){return U=pr(U,j),U.index=0,U.sibling=null,U}function m(U,j,H){return U.index=H,r?(H=U.alternate,H!==null?(H=H.index,H<j?(U.flags|=2,j):H):(U.flags|=2,j)):(U.flags|=1048576,j)}function w(U){return r&&U.alternate===null&&(U.flags|=2),U}function E(U,j,H,ne){return j===null||j.tag!==6?(j=ic(H,U.mode,ne),j.return=U,j):(j=d(j,H),j.return=U,j)}function M(U,j,H,ne){var ye=H.type;return ye===L?Y(U,j,H.props.children,ne,H.key):j!==null&&(j.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===W&&Xh(ye)===j.type)?(ne=d(j,H.props),ne.ref=Mo(U,j,H),ne.return=U,ne):(ne=Nl(H.type,H.key,H.props,null,U.mode,ne),ne.ref=Mo(U,j,H),ne.return=U,ne)}function q(U,j,H,ne){return j===null||j.tag!==4||j.stateNode.containerInfo!==H.containerInfo||j.stateNode.implementation!==H.implementation?(j=oc(H,U.mode,ne),j.return=U,j):(j=d(j,H.children||[]),j.return=U,j)}function Y(U,j,H,ne,ye){return j===null||j.tag!==7?(j=Qr(H,U.mode,ne,ye),j.return=U,j):(j=d(j,H),j.return=U,j)}function ee(U,j,H){if(typeof j=="string"&&j!==""||typeof j=="number")return j=ic(""+j,U.mode,H),j.return=U,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case T:return H=Nl(j.type,j.key,j.props,null,U.mode,H),H.ref=Mo(U,null,j),H.return=U,H;case z:return j=oc(j,U.mode,H),j.return=U,j;case W:var ne=j._init;return ee(U,ne(j._payload),H)}if(Rr(j)||J(j))return j=Qr(j,U.mode,H,null),j.return=U,j;ol(U,j)}return null}function X(U,j,H,ne){var ye=j!==null?j.key:null;if(typeof H=="string"&&H!==""||typeof H=="number")return ye!==null?null:E(U,j,""+H,ne);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case T:return H.key===ye?M(U,j,H,ne):null;case z:return H.key===ye?q(U,j,H,ne):null;case W:return ye=H._init,X(U,j,ye(H._payload),ne)}if(Rr(H)||J(H))return ye!==null?null:Y(U,j,H,ne,null);ol(U,H)}return null}function ae(U,j,H,ne,ye){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return U=U.get(H)||null,E(j,U,""+ne,ye);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case T:return U=U.get(ne.key===null?H:ne.key)||null,M(j,U,ne,ye);case z:return U=U.get(ne.key===null?H:ne.key)||null,q(j,U,ne,ye);case W:var _e=ne._init;return ae(U,j,H,_e(ne._payload),ye)}if(Rr(ne)||J(ne))return U=U.get(H)||null,Y(j,U,ne,ye,null);ol(j,ne)}return null}function he(U,j,H,ne){for(var ye=null,_e=null,xe=j,Se=j=0,it=null;xe!==null&&Se<H.length;Se++){xe.index>Se?(it=xe,xe=null):it=xe.sibling;var Re=X(U,xe,H[Se],ne);if(Re===null){xe===null&&(xe=it);break}r&&xe&&Re.alternate===null&&o(U,xe),j=m(Re,j,Se),_e===null?ye=Re:_e.sibling=Re,_e=Re,xe=it}if(Se===H.length)return l(U,xe),qe&&Ir(U,Se),ye;if(xe===null){for(;Se<H.length;Se++)xe=ee(U,H[Se],ne),xe!==null&&(j=m(xe,j,Se),_e===null?ye=xe:_e.sibling=xe,_e=xe);return qe&&Ir(U,Se),ye}for(xe=c(U,xe);Se<H.length;Se++)it=ae(xe,U,Se,H[Se],ne),it!==null&&(r&&it.alternate!==null&&xe.delete(it.key===null?Se:it.key),j=m(it,j,Se),_e===null?ye=it:_e.sibling=it,_e=it);return r&&xe.forEach(function(gr){return o(U,gr)}),qe&&Ir(U,Se),ye}function pe(U,j,H,ne){var ye=J(H);if(typeof ye!="function")throw Error(i(150));if(H=ye.call(H),H==null)throw Error(i(151));for(var _e=ye=null,xe=j,Se=j=0,it=null,Re=H.next();xe!==null&&!Re.done;Se++,Re=H.next()){xe.index>Se?(it=xe,xe=null):it=xe.sibling;var gr=X(U,xe,Re.value,ne);if(gr===null){xe===null&&(xe=it);break}r&&xe&&gr.alternate===null&&o(U,xe),j=m(gr,j,Se),_e===null?ye=gr:_e.sibling=gr,_e=gr,xe=it}if(Re.done)return l(U,xe),qe&&Ir(U,Se),ye;if(xe===null){for(;!Re.done;Se++,Re=H.next())Re=ee(U,Re.value,ne),Re!==null&&(j=m(Re,j,Se),_e===null?ye=Re:_e.sibling=Re,_e=Re);return qe&&Ir(U,Se),ye}for(xe=c(U,xe);!Re.done;Se++,Re=H.next())Re=ae(xe,U,Se,Re.value,ne),Re!==null&&(r&&Re.alternate!==null&&xe.delete(Re.key===null?Se:Re.key),j=m(Re,j,Se),_e===null?ye=Re:_e.sibling=Re,_e=Re);return r&&xe.forEach(function(Rv){return o(U,Rv)}),qe&&Ir(U,Se),ye}function Ye(U,j,H,ne){if(typeof H=="object"&&H!==null&&H.type===L&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case T:e:{for(var ye=H.key,_e=j;_e!==null;){if(_e.key===ye){if(ye=H.type,ye===L){if(_e.tag===7){l(U,_e.sibling),j=d(_e,H.props.children),j.return=U,U=j;break e}}else if(_e.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===W&&Xh(ye)===_e.type){l(U,_e.sibling),j=d(_e,H.props),j.ref=Mo(U,_e,H),j.return=U,U=j;break e}l(U,_e);break}else o(U,_e);_e=_e.sibling}H.type===L?(j=Qr(H.props.children,U.mode,ne,H.key),j.return=U,U=j):(ne=Nl(H.type,H.key,H.props,null,U.mode,ne),ne.ref=Mo(U,j,H),ne.return=U,U=ne)}return w(U);case z:e:{for(_e=H.key;j!==null;){if(j.key===_e)if(j.tag===4&&j.stateNode.containerInfo===H.containerInfo&&j.stateNode.implementation===H.implementation){l(U,j.sibling),j=d(j,H.children||[]),j.return=U,U=j;break e}else{l(U,j);break}else o(U,j);j=j.sibling}j=oc(H,U.mode,ne),j.return=U,U=j}return w(U);case W:return _e=H._init,Ye(U,j,_e(H._payload),ne)}if(Rr(H))return he(U,j,H,ne);if(J(H))return pe(U,j,H,ne);ol(U,H)}return typeof H=="string"&&H!==""||typeof H=="number"?(H=""+H,j!==null&&j.tag===6?(l(U,j.sibling),j=d(j,H),j.return=U,U=j):(l(U,j),j=ic(H,U.mode,ne),j.return=U,U=j),w(U)):l(U,j)}return Ye}var Pi=Yh(!0),Zh=Yh(!1),sl=ir(null),ll=null,Ti=null,pu=null;function gu(){pu=Ti=ll=null}function yu(r){var o=sl.current;$e(sl),r._currentValue=o}function mu(r,o,l){for(;r!==null;){var c=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),r===l)break;r=r.return}}function Ni(r,o){ll=r,pu=Ti=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(Pt=!0),r.firstContext=null)}function Vt(r){var o=r._currentValue;if(pu!==r)if(r={context:r,memoizedValue:o,next:null},Ti===null){if(ll===null)throw Error(i(308));Ti=r,ll.dependencies={lanes:0,firstContext:r}}else Ti=Ti.next=r;return o}var Lr=null;function vu(r){Lr===null?Lr=[r]:Lr.push(r)}function Jh(r,o,l,c){var d=o.interleaved;return d===null?(l.next=l,vu(o)):(l.next=d.next,d.next=l),o.interleaved=l,An(r,c)}function An(r,o){r.lanes|=o;var l=r.alternate;for(l!==null&&(l.lanes|=o),l=r,r=r.return;r!==null;)r.childLanes|=o,l=r.alternate,l!==null&&(l.childLanes|=o),l=r,r=r.return;return l.tag===3?l.stateNode:null}var lr=!1;function _u(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ed(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function jn(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function ar(r,o,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Oe&2)!==0){var d=c.pending;return d===null?o.next=o:(o.next=d.next,d.next=o),c.pending=o,An(r,l)}return d=c.interleaved,d===null?(o.next=o,vu(c)):(o.next=d.next,d.next=o),c.interleaved=o,An(r,l)}function al(r,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var c=o.lanes;c&=r.pendingLanes,l|=c,o.lanes=l,Aa(r,l)}}function td(r,o){var l=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var d=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var w={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};m===null?d=m=w:m=m.next=w,l=l.next}while(l!==null);m===null?d=m=o:m=m.next=o}else d=m=o;l={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:c.shared,effects:c.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=o:r.next=o,l.lastBaseUpdate=o}function ul(r,o,l,c){var d=r.updateQueue;lr=!1;var m=d.firstBaseUpdate,w=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var M=E,q=M.next;M.next=null,w===null?m=q:w.next=q,w=M;var Y=r.alternate;Y!==null&&(Y=Y.updateQueue,E=Y.lastBaseUpdate,E!==w&&(E===null?Y.firstBaseUpdate=q:E.next=q,Y.lastBaseUpdate=M))}if(m!==null){var ee=d.baseState;w=0,Y=q=M=null,E=m;do{var X=E.lane,ae=E.eventTime;if((c&X)===X){Y!==null&&(Y=Y.next={eventTime:ae,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var he=r,pe=E;switch(X=o,ae=l,pe.tag){case 1:if(he=pe.payload,typeof he=="function"){ee=he.call(ae,ee,X);break e}ee=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=pe.payload,X=typeof he=="function"?he.call(ae,ee,X):he,X==null)break e;ee=G({},ee,X);break e;case 2:lr=!0}}E.callback!==null&&E.lane!==0&&(r.flags|=64,X=d.effects,X===null?d.effects=[E]:X.push(E))}else ae={eventTime:ae,lane:X,tag:E.tag,payload:E.payload,callback:E.callback,next:null},Y===null?(q=Y=ae,M=ee):Y=Y.next=ae,w|=X;if(E=E.next,E===null){if(E=d.shared.pending,E===null)break;X=E,E=X.next,X.next=null,d.lastBaseUpdate=X,d.shared.pending=null}}while(!0);if(Y===null&&(M=ee),d.baseState=M,d.firstBaseUpdate=q,d.lastBaseUpdate=Y,o=d.shared.interleaved,o!==null){d=o;do w|=d.lane,d=d.next;while(d!==o)}else m===null&&(d.shared.lanes=0);Ur|=w,r.lanes=w,r.memoizedState=ee}}function nd(r,o,l){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var c=r[o],d=c.callback;if(d!==null){if(c.callback=null,c=l,typeof d!="function")throw Error(i(191,d));d.call(c)}}}var Oo={},mn=ir(Oo),Ro=ir(Oo),Ao=ir(Oo);function Fr(r){if(r===Oo)throw Error(i(174));return r}function xu(r,o){switch(Le(Ao,o),Le(Ro,r),Le(mn,Oo),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:St(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=St(o,r)}$e(mn),Le(mn,o)}function Mi(){$e(mn),$e(Ro),$e(Ao)}function rd(r){Fr(Ao.current);var o=Fr(mn.current),l=St(o,r.type);o!==l&&(Le(Ro,r),Le(mn,l))}function wu(r){Ro.current===r&&($e(mn),$e(Ro))}var Be=ir(0);function cl(r){for(var o=r;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var ku=[];function Su(){for(var r=0;r<ku.length;r++)ku[r]._workInProgressVersionPrimary=null;ku.length=0}var fl=P.ReactCurrentDispatcher,Cu=P.ReactCurrentBatchConfig,$r=0,We=null,Je=null,nt=null,hl=!1,jo=!1,zo=0,ev=0;function ut(){throw Error(i(321))}function bu(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!tn(r[l],o[l]))return!1;return!0}function Eu(r,o,l,c,d,m){if($r=m,We=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,fl.current=r===null||r.memoizedState===null?iv:ov,r=l(c,d),jo){m=0;do{if(jo=!1,zo=0,25<=m)throw Error(i(301));m+=1,nt=Je=null,o.updateQueue=null,fl.current=sv,r=l(c,d)}while(jo)}if(fl.current=gl,o=Je!==null&&Je.next!==null,$r=0,nt=Je=We=null,hl=!1,o)throw Error(i(300));return r}function Pu(){var r=zo!==0;return zo=0,r}function vn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?We.memoizedState=nt=r:nt=nt.next=r,nt}function Qt(){if(Je===null){var r=We.alternate;r=r!==null?r.memoizedState:null}else r=Je.next;var o=nt===null?We.memoizedState:nt.next;if(o!==null)nt=o,Je=r;else{if(r===null)throw Error(i(310));Je=r,r={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},nt===null?We.memoizedState=nt=r:nt=nt.next=r}return nt}function Do(r,o){return typeof o=="function"?o(r):o}function Tu(r){var o=Qt(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=Je,d=c.baseQueue,m=l.pending;if(m!==null){if(d!==null){var w=d.next;d.next=m.next,m.next=w}c.baseQueue=d=m,l.pending=null}if(d!==null){m=d.next,c=c.baseState;var E=w=null,M=null,q=m;do{var Y=q.lane;if(($r&Y)===Y)M!==null&&(M=M.next={lane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),c=q.hasEagerState?q.eagerState:r(c,q.action);else{var ee={lane:Y,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null};M===null?(E=M=ee,w=c):M=M.next=ee,We.lanes|=Y,Ur|=Y}q=q.next}while(q!==null&&q!==m);M===null?w=c:M.next=E,tn(c,o.memoizedState)||(Pt=!0),o.memoizedState=c,o.baseState=w,o.baseQueue=M,l.lastRenderedState=c}if(r=l.interleaved,r!==null){d=r;do m=d.lane,We.lanes|=m,Ur|=m,d=d.next;while(d!==r)}else d===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function Nu(r){var o=Qt(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=l.dispatch,d=l.pending,m=o.memoizedState;if(d!==null){l.pending=null;var w=d=d.next;do m=r(m,w.action),w=w.next;while(w!==d);tn(m,o.memoizedState)||(Pt=!0),o.memoizedState=m,o.baseQueue===null&&(o.baseState=m),l.lastRenderedState=m}return[m,c]}function id(){}function od(r,o){var l=We,c=Qt(),d=o(),m=!tn(c.memoizedState,d);if(m&&(c.memoizedState=d,Pt=!0),c=c.queue,Mu(ad.bind(null,l,c,r),[r]),c.getSnapshot!==o||m||nt!==null&&nt.memoizedState.tag&1){if(l.flags|=2048,Io(9,ld.bind(null,l,c,d,o),void 0,null),rt===null)throw Error(i(349));($r&30)!==0||sd(l,o,d)}return d}function sd(r,o,l){r.flags|=16384,r={getSnapshot:o,value:l},o=We.updateQueue,o===null?(o={lastEffect:null,stores:null},We.updateQueue=o,o.stores=[r]):(l=o.stores,l===null?o.stores=[r]:l.push(r))}function ld(r,o,l,c){o.value=l,o.getSnapshot=c,ud(o)&&cd(r)}function ad(r,o,l){return l(function(){ud(o)&&cd(r)})}function ud(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!tn(r,l)}catch{return!0}}function cd(r){var o=An(r,1);o!==null&&ln(o,r,1,-1)}function fd(r){var o=vn();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:r},o.queue=r,r=r.dispatch=rv.bind(null,We,r),[o.memoizedState,r]}function Io(r,o,l,c){return r={tag:r,create:o,destroy:l,deps:c,next:null},o=We.updateQueue,o===null?(o={lastEffect:null,stores:null},We.updateQueue=o,o.lastEffect=r.next=r):(l=o.lastEffect,l===null?o.lastEffect=r.next=r:(c=l.next,l.next=r,r.next=c,o.lastEffect=r)),r}function hd(){return Qt().memoizedState}function dl(r,o,l,c){var d=vn();We.flags|=r,d.memoizedState=Io(1|o,l,void 0,c===void 0?null:c)}function pl(r,o,l,c){var d=Qt();c=c===void 0?null:c;var m=void 0;if(Je!==null){var w=Je.memoizedState;if(m=w.destroy,c!==null&&bu(c,w.deps)){d.memoizedState=Io(o,l,m,c);return}}We.flags|=r,d.memoizedState=Io(1|o,l,m,c)}function dd(r,o){return dl(8390656,8,r,o)}function Mu(r,o){return pl(2048,8,r,o)}function pd(r,o){return pl(4,2,r,o)}function gd(r,o){return pl(4,4,r,o)}function yd(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function md(r,o,l){return l=l!=null?l.concat([r]):null,pl(4,4,yd.bind(null,o,r),l)}function Ou(){}function vd(r,o){var l=Qt();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&bu(o,c[1])?c[0]:(l.memoizedState=[r,o],r)}function _d(r,o){var l=Qt();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&bu(o,c[1])?c[0]:(r=r(),l.memoizedState=[r,o],r)}function xd(r,o,l){return($r&21)===0?(r.baseState&&(r.baseState=!1,Pt=!0),r.memoizedState=l):(tn(l,o)||(l=Xf(),We.lanes|=l,Ur|=l,r.baseState=!0),o)}function tv(r,o){var l=ze;ze=l!==0&&4>l?l:4,r(!0);var c=Cu.transition;Cu.transition={};try{r(!1),o()}finally{ze=l,Cu.transition=c}}function wd(){return Qt().memoizedState}function nv(r,o,l){var c=hr(r);if(l={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null},kd(r))Sd(o,l);else if(l=Jh(r,o,l,c),l!==null){var d=mt();ln(l,r,c,d),Cd(l,o,c)}}function rv(r,o,l){var c=hr(r),d={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null};if(kd(r))Sd(o,d);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=o.lastRenderedReducer,m!==null))try{var w=o.lastRenderedState,E=m(w,l);if(d.hasEagerState=!0,d.eagerState=E,tn(E,w)){var M=o.interleaved;M===null?(d.next=d,vu(o)):(d.next=M.next,M.next=d),o.interleaved=d;return}}catch{}finally{}l=Jh(r,o,d,c),l!==null&&(d=mt(),ln(l,r,c,d),Cd(l,o,c))}}function kd(r){var o=r.alternate;return r===We||o!==null&&o===We}function Sd(r,o){jo=hl=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function Cd(r,o,l){if((l&4194240)!==0){var c=o.lanes;c&=r.pendingLanes,l|=c,o.lanes=l,Aa(r,l)}}var gl={readContext:Vt,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},iv={readContext:Vt,useCallback:function(r,o){return vn().memoizedState=[r,o===void 0?null:o],r},useContext:Vt,useEffect:dd,useImperativeHandle:function(r,o,l){return l=l!=null?l.concat([r]):null,dl(4194308,4,yd.bind(null,o,r),l)},useLayoutEffect:function(r,o){return dl(4194308,4,r,o)},useInsertionEffect:function(r,o){return dl(4,2,r,o)},useMemo:function(r,o){var l=vn();return o=o===void 0?null:o,r=r(),l.memoizedState=[r,o],r},useReducer:function(r,o,l){var c=vn();return o=l!==void 0?l(o):o,c.memoizedState=c.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},c.queue=r,r=r.dispatch=nv.bind(null,We,r),[c.memoizedState,r]},useRef:function(r){var o=vn();return r={current:r},o.memoizedState=r},useState:fd,useDebugValue:Ou,useDeferredValue:function(r){return vn().memoizedState=r},useTransition:function(){var r=fd(!1),o=r[0];return r=tv.bind(null,r[1]),vn().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,l){var c=We,d=vn();if(qe){if(l===void 0)throw Error(i(407));l=l()}else{if(l=o(),rt===null)throw Error(i(349));($r&30)!==0||sd(c,o,l)}d.memoizedState=l;var m={value:l,getSnapshot:o};return d.queue=m,dd(ad.bind(null,c,m,r),[r]),c.flags|=2048,Io(9,ld.bind(null,c,m,l,o),void 0,null),l},useId:function(){var r=vn(),o=rt.identifierPrefix;if(qe){var l=Rn,c=On;l=(c&~(1<<32-en(c)-1)).toString(32)+l,o=":"+o+"R"+l,l=zo++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=ev++,o=":"+o+"r"+l.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},ov={readContext:Vt,useCallback:vd,useContext:Vt,useEffect:Mu,useImperativeHandle:md,useInsertionEffect:pd,useLayoutEffect:gd,useMemo:_d,useReducer:Tu,useRef:hd,useState:function(){return Tu(Do)},useDebugValue:Ou,useDeferredValue:function(r){var o=Qt();return xd(o,Je.memoizedState,r)},useTransition:function(){var r=Tu(Do)[0],o=Qt().memoizedState;return[r,o]},useMutableSource:id,useSyncExternalStore:od,useId:wd,unstable_isNewReconciler:!1},sv={readContext:Vt,useCallback:vd,useContext:Vt,useEffect:Mu,useImperativeHandle:md,useInsertionEffect:pd,useLayoutEffect:gd,useMemo:_d,useReducer:Nu,useRef:hd,useState:function(){return Nu(Do)},useDebugValue:Ou,useDeferredValue:function(r){var o=Qt();return Je===null?o.memoizedState=r:xd(o,Je.memoizedState,r)},useTransition:function(){var r=Nu(Do)[0],o=Qt().memoizedState;return[r,o]},useMutableSource:id,useSyncExternalStore:od,useId:wd,unstable_isNewReconciler:!1};function rn(r,o){if(r&&r.defaultProps){o=G({},o),r=r.defaultProps;for(var l in r)o[l]===void 0&&(o[l]=r[l]);return o}return o}function Ru(r,o,l,c){o=r.memoizedState,l=l(c,o),l=l==null?o:G({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var yl={isMounted:function(r){return(r=r._reactInternals)?Ar(r)===r:!1},enqueueSetState:function(r,o,l){r=r._reactInternals;var c=mt(),d=hr(r),m=jn(c,d);m.payload=o,l!=null&&(m.callback=l),o=ar(r,m,d),o!==null&&(ln(o,r,d,c),al(o,r,d))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var c=mt(),d=hr(r),m=jn(c,d);m.tag=1,m.payload=o,l!=null&&(m.callback=l),o=ar(r,m,d),o!==null&&(ln(o,r,d,c),al(o,r,d))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=mt(),c=hr(r),d=jn(l,c);d.tag=2,o!=null&&(d.callback=o),o=ar(r,d,c),o!==null&&(ln(o,r,c,l),al(o,r,c))}};function bd(r,o,l,c,d,m,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,m,w):o.prototype&&o.prototype.isPureReactComponent?!So(l,c)||!So(d,m):!0}function Ed(r,o,l){var c=!1,d=or,m=o.contextType;return typeof m=="object"&&m!==null?m=Vt(m):(d=Et(o)?zr:at.current,c=o.contextTypes,m=(c=c!=null)?Si(r,d):or),o=new o(l,m),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=yl,r.stateNode=o,o._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=d,r.__reactInternalMemoizedMaskedChildContext=m),o}function Pd(r,o,l,c){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,c),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,c),o.state!==r&&yl.enqueueReplaceState(o,o.state,null)}function Au(r,o,l,c){var d=r.stateNode;d.props=l,d.state=r.memoizedState,d.refs={},_u(r);var m=o.contextType;typeof m=="object"&&m!==null?d.context=Vt(m):(m=Et(o)?zr:at.current,d.context=Si(r,m)),d.state=r.memoizedState,m=o.getDerivedStateFromProps,typeof m=="function"&&(Ru(r,o,m,l),d.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(o=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),o!==d.state&&yl.enqueueReplaceState(d,d.state,null),ul(r,l,d,c),d.state=r.memoizedState),typeof d.componentDidMount=="function"&&(r.flags|=4194308)}function Oi(r,o){try{var l="",c=o;do l+=ke(c),c=c.return;while(c);var d=l}catch(m){d=`
39
- Error generating stack: `+m.message+`
40
- `+m.stack}return{value:r,source:o,stack:d,digest:null}}function ju(r,o,l){return{value:r,source:null,stack:l??null,digest:o??null}}function zu(r,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var lv=typeof WeakMap=="function"?WeakMap:Map;function Td(r,o,l){l=jn(-1,l),l.tag=3,l.payload={element:null};var c=o.value;return l.callback=function(){Sl||(Sl=!0,Xu=c),zu(r,o)},l}function Nd(r,o,l){l=jn(-1,l),l.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var d=o.value;l.payload=function(){return c(d)},l.callback=function(){zu(r,o)}}var m=r.stateNode;return m!==null&&typeof m.componentDidCatch=="function"&&(l.callback=function(){zu(r,o),typeof c!="function"&&(cr===null?cr=new Set([this]):cr.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})}),l}function Md(r,o,l){var c=r.pingCache;if(c===null){c=r.pingCache=new lv;var d=new Set;c.set(o,d)}else d=c.get(o),d===void 0&&(d=new Set,c.set(o,d));d.has(l)||(d.add(l),r=wv.bind(null,r,o,l),o.then(r,r))}function Od(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function Rd(r,o,l,c,d){return(r.mode&1)===0?(r===o?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=jn(-1,1),o.tag=2,ar(l,o,1))),l.lanes|=1),r):(r.flags|=65536,r.lanes=d,r)}var av=P.ReactCurrentOwner,Pt=!1;function yt(r,o,l,c){o.child=r===null?Zh(o,null,l,c):Pi(o,r.child,l,c)}function Ad(r,o,l,c,d){l=l.render;var m=o.ref;return Ni(o,d),c=Eu(r,o,l,c,m,d),l=Pu(),r!==null&&!Pt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,zn(r,o,d)):(qe&&l&&uu(o),o.flags|=1,yt(r,o,c,d),o.child)}function jd(r,o,l,c,d){if(r===null){var m=l.type;return typeof m=="function"&&!rc(m)&&m.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=m,zd(r,o,m,c,d)):(r=Nl(l.type,null,c,o,o.mode,d),r.ref=o.ref,r.return=o,o.child=r)}if(m=r.child,(r.lanes&d)===0){var w=m.memoizedProps;if(l=l.compare,l=l!==null?l:So,l(w,c)&&r.ref===o.ref)return zn(r,o,d)}return o.flags|=1,r=pr(m,c),r.ref=o.ref,r.return=o,o.child=r}function zd(r,o,l,c,d){if(r!==null){var m=r.memoizedProps;if(So(m,c)&&r.ref===o.ref)if(Pt=!1,o.pendingProps=c=m,(r.lanes&d)!==0)(r.flags&131072)!==0&&(Pt=!0);else return o.lanes=r.lanes,zn(r,o,d)}return Du(r,o,l,c,d)}function Dd(r,o,l){var c=o.pendingProps,d=c.children,m=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(Ai,Lt),Lt|=l;else{if((l&1073741824)===0)return r=m!==null?m.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Le(Ai,Lt),Lt|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=m!==null?m.baseLanes:l,Le(Ai,Lt),Lt|=c}else m!==null?(c=m.baseLanes|l,o.memoizedState=null):c=l,Le(Ai,Lt),Lt|=c;return yt(r,o,d,l),o.child}function Id(r,o){var l=o.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function Du(r,o,l,c,d){var m=Et(l)?zr:at.current;return m=Si(o,m),Ni(o,d),l=Eu(r,o,l,c,m,d),c=Pu(),r!==null&&!Pt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,zn(r,o,d)):(qe&&c&&uu(o),o.flags|=1,yt(r,o,l,d),o.child)}function Ld(r,o,l,c,d){if(Et(l)){var m=!0;el(o)}else m=!1;if(Ni(o,d),o.stateNode===null)vl(r,o),Ed(o,l,c),Au(o,l,c,d),c=!0;else if(r===null){var w=o.stateNode,E=o.memoizedProps;w.props=E;var M=w.context,q=l.contextType;typeof q=="object"&&q!==null?q=Vt(q):(q=Et(l)?zr:at.current,q=Si(o,q));var Y=l.getDerivedStateFromProps,ee=typeof Y=="function"||typeof w.getSnapshotBeforeUpdate=="function";ee||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(E!==c||M!==q)&&Pd(o,w,c,q),lr=!1;var X=o.memoizedState;w.state=X,ul(o,c,w,d),M=o.memoizedState,E!==c||X!==M||bt.current||lr?(typeof Y=="function"&&(Ru(o,l,Y,c),M=o.memoizedState),(E=lr||bd(o,l,E,c,X,M,q))?(ee||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(o.flags|=4194308)):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=M),w.props=c,w.state=M,w.context=q,c=E):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{w=o.stateNode,ed(r,o),E=o.memoizedProps,q=o.type===o.elementType?E:rn(o.type,E),w.props=q,ee=o.pendingProps,X=w.context,M=l.contextType,typeof M=="object"&&M!==null?M=Vt(M):(M=Et(l)?zr:at.current,M=Si(o,M));var ae=l.getDerivedStateFromProps;(Y=typeof ae=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(E!==ee||X!==M)&&Pd(o,w,c,M),lr=!1,X=o.memoizedState,w.state=X,ul(o,c,w,d);var he=o.memoizedState;E!==ee||X!==he||bt.current||lr?(typeof ae=="function"&&(Ru(o,l,ae,c),he=o.memoizedState),(q=lr||bd(o,l,q,c,X,he,M)||!1)?(Y||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(c,he,M),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(c,he,M)),typeof w.componentDidUpdate=="function"&&(o.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof w.componentDidUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=he),w.props=c,w.state=he,w.context=M,c=q):(typeof w.componentDidUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=1024),c=!1)}return Iu(r,o,l,c,m,d)}function Iu(r,o,l,c,d,m){Id(r,o);var w=(o.flags&128)!==0;if(!c&&!w)return d&&qh(o,l,!1),zn(r,o,m);c=o.stateNode,av.current=o;var E=w&&typeof l.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,r!==null&&w?(o.child=Pi(o,r.child,null,m),o.child=Pi(o,null,E,m)):yt(r,o,E,m),o.memoizedState=c.state,d&&qh(o,l,!0),o.child}function Fd(r){var o=r.stateNode;o.pendingContext?Uh(r,o.pendingContext,o.pendingContext!==o.context):o.context&&Uh(r,o.context,!1),xu(r,o.containerInfo)}function $d(r,o,l,c,d){return Ei(),du(d),o.flags|=256,yt(r,o,l,c),o.child}var Lu={dehydrated:null,treeContext:null,retryLane:0};function Fu(r){return{baseLanes:r,cachePool:null,transitions:null}}function Ud(r,o,l){var c=o.pendingProps,d=Be.current,m=!1,w=(o.flags&128)!==0,E;if((E=w)||(E=r!==null&&r.memoizedState===null?!1:(d&2)!==0),E?(m=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(d|=1),Le(Be,d&1),r===null)return hu(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((o.mode&1)===0?o.lanes=1:r.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(w=c.children,r=c.fallback,m?(c=o.mode,m=o.child,w={mode:"hidden",children:w},(c&1)===0&&m!==null?(m.childLanes=0,m.pendingProps=w):m=Ml(w,c,0,null),r=Qr(r,c,l,null),m.return=o,r.return=o,m.sibling=r,o.child=m,o.child.memoizedState=Fu(l),o.memoizedState=Lu,r):$u(o,w));if(d=r.memoizedState,d!==null&&(E=d.dehydrated,E!==null))return uv(r,o,w,c,E,d,l);if(m){m=c.fallback,w=o.mode,d=r.child,E=d.sibling;var M={mode:"hidden",children:c.children};return(w&1)===0&&o.child!==d?(c=o.child,c.childLanes=0,c.pendingProps=M,o.deletions=null):(c=pr(d,M),c.subtreeFlags=d.subtreeFlags&14680064),E!==null?m=pr(E,m):(m=Qr(m,w,l,null),m.flags|=2),m.return=o,c.return=o,c.sibling=m,o.child=c,c=m,m=o.child,w=r.child.memoizedState,w=w===null?Fu(l):{baseLanes:w.baseLanes|l,cachePool:null,transitions:w.transitions},m.memoizedState=w,m.childLanes=r.childLanes&~l,o.memoizedState=Lu,c}return m=r.child,r=m.sibling,c=pr(m,{mode:"visible",children:c.children}),(o.mode&1)===0&&(c.lanes=l),c.return=o,c.sibling=null,r!==null&&(l=o.deletions,l===null?(o.deletions=[r],o.flags|=16):l.push(r)),o.child=c,o.memoizedState=null,c}function $u(r,o){return o=Ml({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function ml(r,o,l,c){return c!==null&&du(c),Pi(o,r.child,null,l),r=$u(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function uv(r,o,l,c,d,m,w){if(l)return o.flags&256?(o.flags&=-257,c=ju(Error(i(422))),ml(r,o,w,c)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(m=c.fallback,d=o.mode,c=Ml({mode:"visible",children:c.children},d,0,null),m=Qr(m,d,w,null),m.flags|=2,c.return=o,m.return=o,c.sibling=m,o.child=c,(o.mode&1)!==0&&Pi(o,r.child,null,w),o.child.memoizedState=Fu(w),o.memoizedState=Lu,m);if((o.mode&1)===0)return ml(r,o,w,null);if(d.data==="$!"){if(c=d.nextSibling&&d.nextSibling.dataset,c)var E=c.dgst;return c=E,m=Error(i(419)),c=ju(m,c,void 0),ml(r,o,w,c)}if(E=(w&r.childLanes)!==0,Pt||E){if(c=rt,c!==null){switch(w&-w){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(c.suspendedLanes|w))!==0?0:d,d!==0&&d!==m.retryLane&&(m.retryLane=d,An(r,d),ln(c,r,d,-1))}return nc(),c=ju(Error(i(421))),ml(r,o,w,c)}return d.data==="$?"?(o.flags|=128,o.child=r.child,o=kv.bind(null,r),d._reactRetry=o,null):(r=m.treeContext,It=rr(d.nextSibling),Dt=o,qe=!0,nn=null,r!==null&&(Ht[qt++]=On,Ht[qt++]=Rn,Ht[qt++]=Dr,On=r.id,Rn=r.overflow,Dr=o),o=$u(o,c.children),o.flags|=4096,o)}function Hd(r,o,l){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o),mu(r.return,o,l)}function Uu(r,o,l,c,d){var m=r.memoizedState;m===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:d}:(m.isBackwards=o,m.rendering=null,m.renderingStartTime=0,m.last=c,m.tail=l,m.tailMode=d)}function qd(r,o,l){var c=o.pendingProps,d=c.revealOrder,m=c.tail;if(yt(r,o,c.children,l),c=Be.current,(c&2)!==0)c=c&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Hd(r,l,o);else if(r.tag===19)Hd(r,l,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(Le(Be,c),(o.mode&1)===0)o.memoizedState=null;else switch(d){case"forwards":for(l=o.child,d=null;l!==null;)r=l.alternate,r!==null&&cl(r)===null&&(d=l),l=l.sibling;l=d,l===null?(d=o.child,o.child=null):(d=l.sibling,l.sibling=null),Uu(o,!1,d,l,m);break;case"backwards":for(l=null,d=o.child,o.child=null;d!==null;){if(r=d.alternate,r!==null&&cl(r)===null){o.child=d;break}r=d.sibling,d.sibling=l,l=d,d=r}Uu(o,!0,l,null,m);break;case"together":Uu(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function vl(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function zn(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),Ur|=o.lanes,(l&o.childLanes)===0)return null;if(r!==null&&o.child!==r.child)throw Error(i(153));if(o.child!==null){for(r=o.child,l=pr(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=pr(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function cv(r,o,l){switch(o.tag){case 3:Fd(o),Ei();break;case 5:rd(o);break;case 1:Et(o.type)&&el(o);break;case 4:xu(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,d=o.memoizedProps.value;Le(sl,c._currentValue),c._currentValue=d;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(Le(Be,Be.current&1),o.flags|=128,null):(l&o.child.childLanes)!==0?Ud(r,o,l):(Le(Be,Be.current&1),r=zn(r,o,l),r!==null?r.sibling:null);Le(Be,Be.current&1);break;case 19:if(c=(l&o.childLanes)!==0,(r.flags&128)!==0){if(c)return qd(r,o,l);o.flags|=128}if(d=o.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Le(Be,Be.current),c)break;return null;case 22:case 23:return o.lanes=0,Dd(r,o,l)}return zn(r,o,l)}var Vd,Hu,Qd,Bd;Vd=function(r,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Hu=function(){},Qd=function(r,o,l,c){var d=r.memoizedProps;if(d!==c){r=o.stateNode,Fr(mn.current);var m=null;switch(l){case"input":d=ro(r,d),c=ro(r,c),m=[];break;case"select":d=G({},d,{value:void 0}),c=G({},c,{value:void 0}),m=[];break;case"textarea":d=ci(r,d),c=ci(r,c),m=[];break;default:typeof d.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=Ys)}ka(l,c);var w;l=null;for(q in d)if(!c.hasOwnProperty(q)&&d.hasOwnProperty(q)&&d[q]!=null)if(q==="style"){var E=d[q];for(w in E)E.hasOwnProperty(w)&&(l||(l={}),l[w]="")}else q!=="dangerouslySetInnerHTML"&&q!=="children"&&q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&q!=="autoFocus"&&(a.hasOwnProperty(q)?m||(m=[]):(m=m||[]).push(q,null));for(q in c){var M=c[q];if(E=d!=null?d[q]:void 0,c.hasOwnProperty(q)&&M!==E&&(M!=null||E!=null))if(q==="style")if(E){for(w in E)!E.hasOwnProperty(w)||M&&M.hasOwnProperty(w)||(l||(l={}),l[w]="");for(w in M)M.hasOwnProperty(w)&&E[w]!==M[w]&&(l||(l={}),l[w]=M[w])}else l||(m||(m=[]),m.push(q,l)),l=M;else q==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,E=E?E.__html:void 0,M!=null&&E!==M&&(m=m||[]).push(q,M)):q==="children"?typeof M!="string"&&typeof M!="number"||(m=m||[]).push(q,""+M):q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&(a.hasOwnProperty(q)?(M!=null&&q==="onScroll"&&Fe("scroll",r),m||E===M||(m=[])):(m=m||[]).push(q,M))}l&&(m=m||[]).push("style",l);var q=m;(o.updateQueue=q)&&(o.flags|=4)}},Bd=function(r,o,l,c){l!==c&&(o.flags|=4)};function Lo(r,o){if(!qe)switch(r.tailMode){case"hidden":o=r.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function ct(r){var o=r.alternate!==null&&r.alternate.child===r.child,l=0,c=0;if(o)for(var d=r.child;d!==null;)l|=d.lanes|d.childLanes,c|=d.subtreeFlags&14680064,c|=d.flags&14680064,d.return=r,d=d.sibling;else for(d=r.child;d!==null;)l|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=r,d=d.sibling;return r.subtreeFlags|=c,r.childLanes=l,o}function fv(r,o,l){var c=o.pendingProps;switch(cu(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(o),null;case 1:return Et(o.type)&&Js(),ct(o),null;case 3:return c=o.stateNode,Mi(),$e(bt),$e(at),Su(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(il(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,nn!==null&&(Ju(nn),nn=null))),Hu(r,o),ct(o),null;case 5:wu(o);var d=Fr(Ao.current);if(l=o.type,r!==null&&o.stateNode!=null)Qd(r,o,l,c,d),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!c){if(o.stateNode===null)throw Error(i(166));return ct(o),null}if(r=Fr(mn.current),il(o)){c=o.stateNode,l=o.type;var m=o.memoizedProps;switch(c[yn]=o,c[To]=m,r=(o.mode&1)!==0,l){case"dialog":Fe("cancel",c),Fe("close",c);break;case"iframe":case"object":case"embed":Fe("load",c);break;case"video":case"audio":for(d=0;d<bo.length;d++)Fe(bo[d],c);break;case"source":Fe("error",c);break;case"img":case"image":case"link":Fe("error",c),Fe("load",c);break;case"details":Fe("toggle",c);break;case"input":Es(c,m),Fe("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!m.multiple},Fe("invalid",c);break;case"textarea":so(c,m),Fe("invalid",c)}ka(l,m),d=null;for(var w in m)if(m.hasOwnProperty(w)){var E=m[w];w==="children"?typeof E=="string"?c.textContent!==E&&(m.suppressHydrationWarning!==!0&&Xs(c.textContent,E,r),d=["children",E]):typeof E=="number"&&c.textContent!==""+E&&(m.suppressHydrationWarning!==!0&&Xs(c.textContent,E,r),d=["children",""+E]):a.hasOwnProperty(w)&&E!=null&&w==="onScroll"&&Fe("scroll",c)}switch(l){case"input":Or(c),Ts(c,m,!0);break;case"textarea":Or(c),we(c);break;case"select":case"option":break;default:typeof m.onClick=="function"&&(c.onclick=Ys)}c=d,o.updateQueue=c,c!==null&&(o.flags|=4)}else{w=d.nodeType===9?d:d.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Me(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=w.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=w.createElement(l,{is:c.is}):(r=w.createElement(l),l==="select"&&(w=r,c.multiple?w.multiple=!0:c.size&&(w.size=c.size))):r=w.createElementNS(r,l),r[yn]=o,r[To]=c,Vd(r,o,!1,!1),o.stateNode=r;e:{switch(w=Sa(l,c),l){case"dialog":Fe("cancel",r),Fe("close",r),d=c;break;case"iframe":case"object":case"embed":Fe("load",r),d=c;break;case"video":case"audio":for(d=0;d<bo.length;d++)Fe(bo[d],r);d=c;break;case"source":Fe("error",r),d=c;break;case"img":case"image":case"link":Fe("error",r),Fe("load",r),d=c;break;case"details":Fe("toggle",r),d=c;break;case"input":Es(r,c),d=ro(r,c),Fe("invalid",r);break;case"option":d=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},d=G({},c,{value:void 0}),Fe("invalid",r);break;case"textarea":so(r,c),d=ci(r,c),Fe("invalid",r);break;default:d=c}ka(l,d),E=d;for(m in E)if(E.hasOwnProperty(m)){var M=E[m];m==="style"?zf(r,M):m==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&Ut(r,M)):m==="children"?typeof M=="string"?(l!=="textarea"||M!=="")&&Ct(r,M):typeof M=="number"&&Ct(r,""+M):m!=="suppressContentEditableWarning"&&m!=="suppressHydrationWarning"&&m!=="autoFocus"&&(a.hasOwnProperty(m)?M!=null&&m==="onScroll"&&Fe("scroll",r):M!=null&&A(r,m,M,w))}switch(l){case"input":Or(r),Ts(r,c,!1);break;case"textarea":Or(r),we(r);break;case"option":c.value!=null&&r.setAttribute("value",""+be(c.value));break;case"select":r.multiple=!!c.multiple,m=c.value,m!=null?Xn(r,!!c.multiple,m,!1):c.defaultValue!=null&&Xn(r,!!c.multiple,c.defaultValue,!0);break;default:typeof d.onClick=="function"&&(r.onclick=Ys)}switch(l){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return ct(o),null;case 6:if(r&&o.stateNode!=null)Bd(r,o,r.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(i(166));if(l=Fr(Ao.current),Fr(mn.current),il(o)){if(c=o.stateNode,l=o.memoizedProps,c[yn]=o,(m=c.nodeValue!==l)&&(r=Dt,r!==null))switch(r.tag){case 3:Xs(c.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Xs(c.nodeValue,l,(r.mode&1)!==0)}m&&(o.flags|=4)}else c=(l.nodeType===9?l:l.ownerDocument).createTextNode(c),c[yn]=o,o.stateNode=c}return ct(o),null;case 13:if($e(Be),c=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(qe&&It!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Gh(),Ei(),o.flags|=98560,m=!1;else if(m=il(o),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(i(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[yn]=o}else Ei(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ct(o),m=!1}else nn!==null&&(Ju(nn),nn=null),m=!0;if(!m)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=l,o):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(o.child.flags|=8192,(o.mode&1)!==0&&(r===null||(Be.current&1)!==0?et===0&&(et=3):nc())),o.updateQueue!==null&&(o.flags|=4),ct(o),null);case 4:return Mi(),Hu(r,o),r===null&&Eo(o.stateNode.containerInfo),ct(o),null;case 10:return yu(o.type._context),ct(o),null;case 17:return Et(o.type)&&Js(),ct(o),null;case 19:if($e(Be),m=o.memoizedState,m===null)return ct(o),null;if(c=(o.flags&128)!==0,w=m.rendering,w===null)if(c)Lo(m,!1);else{if(et!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(w=cl(r),w!==null){for(o.flags|=128,Lo(m,!1),c=w.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),o.subtreeFlags=0,c=l,l=o.child;l!==null;)m=l,r=c,m.flags&=14680066,w=m.alternate,w===null?(m.childLanes=0,m.lanes=r,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null):(m.childLanes=w.childLanes,m.lanes=w.lanes,m.child=w.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=w.memoizedProps,m.memoizedState=w.memoizedState,m.updateQueue=w.updateQueue,m.type=w.type,r=w.dependencies,m.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Le(Be,Be.current&1|2),o.child}r=r.sibling}m.tail!==null&&Xe()>ji&&(o.flags|=128,c=!0,Lo(m,!1),o.lanes=4194304)}else{if(!c)if(r=cl(w),r!==null){if(o.flags|=128,c=!0,l=r.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),Lo(m,!0),m.tail===null&&m.tailMode==="hidden"&&!w.alternate&&!qe)return ct(o),null}else 2*Xe()-m.renderingStartTime>ji&&l!==1073741824&&(o.flags|=128,c=!0,Lo(m,!1),o.lanes=4194304);m.isBackwards?(w.sibling=o.child,o.child=w):(l=m.last,l!==null?l.sibling=w:o.child=w,m.last=w)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=Xe(),o.sibling=null,l=Be.current,Le(Be,c?l&1|2:l&1),o):(ct(o),null);case 22:case 23:return tc(),c=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?(Lt&1073741824)!==0&&(ct(o),o.subtreeFlags&6&&(o.flags|=8192)):ct(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function hv(r,o){switch(cu(o),o.tag){case 1:return Et(o.type)&&Js(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Mi(),$e(bt),$e(at),Su(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return wu(o),null;case 13:if($e(Be),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Ei()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return $e(Be),null;case 4:return Mi(),null;case 10:return yu(o.type._context),null;case 22:case 23:return tc(),null;case 24:return null;default:return null}}var _l=!1,ft=!1,dv=typeof WeakSet=="function"?WeakSet:Set,fe=null;function Ri(r,o){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(c){Ke(r,o,c)}else l.current=null}function qu(r,o,l){try{l()}catch(c){Ke(r,o,c)}}var Wd=!1;function pv(r,o){if(tu=Fs,r=bh(),Wa(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var d=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var w=0,E=-1,M=-1,q=0,Y=0,ee=r,X=null;t:for(;;){for(var ae;ee!==l||d!==0&&ee.nodeType!==3||(E=w+d),ee!==m||c!==0&&ee.nodeType!==3||(M=w+c),ee.nodeType===3&&(w+=ee.nodeValue.length),(ae=ee.firstChild)!==null;)X=ee,ee=ae;for(;;){if(ee===r)break t;if(X===l&&++q===d&&(E=w),X===m&&++Y===c&&(M=w),(ae=ee.nextSibling)!==null)break;ee=X,X=ee.parentNode}ee=ae}l=E===-1||M===-1?null:{start:E,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(nu={focusedElem:r,selectionRange:l},Fs=!1,fe=o;fe!==null;)if(o=fe,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,fe=r;else for(;fe!==null;){o=fe;try{var he=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var pe=he.memoizedProps,Ye=he.memoizedState,U=o.stateNode,j=U.getSnapshotBeforeUpdate(o.elementType===o.type?pe:rn(o.type,pe),Ye);U.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var H=o.stateNode.containerInfo;H.nodeType===1?H.textContent="":H.nodeType===9&&H.documentElement&&H.removeChild(H.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ne){Ke(o,o.return,ne)}if(r=o.sibling,r!==null){r.return=o.return,fe=r;break}fe=o.return}return he=Wd,Wd=!1,he}function Fo(r,o,l){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var d=c=c.next;do{if((d.tag&r)===r){var m=d.destroy;d.destroy=void 0,m!==void 0&&qu(o,l,m)}d=d.next}while(d!==c)}}function xl(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&r)===r){var c=l.create;l.destroy=c()}l=l.next}while(l!==o)}}function Vu(r){var o=r.ref;if(o!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof o=="function"?o(r):o.current=r}}function Kd(r){var o=r.alternate;o!==null&&(r.alternate=null,Kd(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[yn],delete o[To],delete o[su],delete o[Xm],delete o[Ym])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Gd(r){return r.tag===5||r.tag===3||r.tag===4}function Xd(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Gd(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Qu(r,o,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(r,o):l.insertBefore(r,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(r,l)):(o=l,o.appendChild(r)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=Ys));else if(c!==4&&(r=r.child,r!==null))for(Qu(r,o,l),r=r.sibling;r!==null;)Qu(r,o,l),r=r.sibling}function Bu(r,o,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,o?l.insertBefore(r,o):l.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(Bu(r,o,l),r=r.sibling;r!==null;)Bu(r,o,l),r=r.sibling}var ot=null,on=!1;function ur(r,o,l){for(l=l.child;l!==null;)Yd(r,o,l),l=l.sibling}function Yd(r,o,l){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(As,l)}catch{}switch(l.tag){case 5:ft||Ri(l,o);case 6:var c=ot,d=on;ot=null,ur(r,o,l),ot=c,on=d,ot!==null&&(on?(r=ot,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):ot.removeChild(l.stateNode));break;case 18:ot!==null&&(on?(r=ot,l=l.stateNode,r.nodeType===8?ou(r.parentNode,l):r.nodeType===1&&ou(r,l),mo(r)):ou(ot,l.stateNode));break;case 4:c=ot,d=on,ot=l.stateNode.containerInfo,on=!0,ur(r,o,l),ot=c,on=d;break;case 0:case 11:case 14:case 15:if(!ft&&(c=l.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){d=c=c.next;do{var m=d,w=m.destroy;m=m.tag,w!==void 0&&((m&2)!==0||(m&4)!==0)&&qu(l,o,w),d=d.next}while(d!==c)}ur(r,o,l);break;case 1:if(!ft&&(Ri(l,o),c=l.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=l.memoizedProps,c.state=l.memoizedState,c.componentWillUnmount()}catch(E){Ke(l,o,E)}ur(r,o,l);break;case 21:ur(r,o,l);break;case 22:l.mode&1?(ft=(c=ft)||l.memoizedState!==null,ur(r,o,l),ft=c):ur(r,o,l);break;default:ur(r,o,l)}}function Zd(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new dv),o.forEach(function(c){var d=Sv.bind(null,r,c);l.has(c)||(l.add(c),c.then(d,d))})}}function sn(r,o){var l=o.deletions;if(l!==null)for(var c=0;c<l.length;c++){var d=l[c];try{var m=r,w=o,E=w;e:for(;E!==null;){switch(E.tag){case 5:ot=E.stateNode,on=!1;break e;case 3:ot=E.stateNode.containerInfo,on=!0;break e;case 4:ot=E.stateNode.containerInfo,on=!0;break e}E=E.return}if(ot===null)throw Error(i(160));Yd(m,w,d),ot=null,on=!1;var M=d.alternate;M!==null&&(M.return=null),d.return=null}catch(q){Ke(d,o,q)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Jd(o,r),o=o.sibling}function Jd(r,o){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(sn(o,r),_n(r),c&4){try{Fo(3,r,r.return),xl(3,r)}catch(pe){Ke(r,r.return,pe)}try{Fo(5,r,r.return)}catch(pe){Ke(r,r.return,pe)}}break;case 1:sn(o,r),_n(r),c&512&&l!==null&&Ri(l,l.return);break;case 5:if(sn(o,r),_n(r),c&512&&l!==null&&Ri(l,l.return),r.flags&32){var d=r.stateNode;try{Ct(d,"")}catch(pe){Ke(r,r.return,pe)}}if(c&4&&(d=r.stateNode,d!=null)){var m=r.memoizedProps,w=l!==null?l.memoizedProps:m,E=r.type,M=r.updateQueue;if(r.updateQueue=null,M!==null)try{E==="input"&&m.type==="radio"&&m.name!=null&&Ps(d,m),Sa(E,w);var q=Sa(E,m);for(w=0;w<M.length;w+=2){var Y=M[w],ee=M[w+1];Y==="style"?zf(d,ee):Y==="dangerouslySetInnerHTML"?Ut(d,ee):Y==="children"?Ct(d,ee):A(d,Y,ee,q)}switch(E){case"input":io(d,m);break;case"textarea":se(d,m);break;case"select":var X=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!m.multiple;var ae=m.value;ae!=null?Xn(d,!!m.multiple,ae,!1):X!==!!m.multiple&&(m.defaultValue!=null?Xn(d,!!m.multiple,m.defaultValue,!0):Xn(d,!!m.multiple,m.multiple?[]:"",!1))}d[To]=m}catch(pe){Ke(r,r.return,pe)}}break;case 6:if(sn(o,r),_n(r),c&4){if(r.stateNode===null)throw Error(i(162));d=r.stateNode,m=r.memoizedProps;try{d.nodeValue=m}catch(pe){Ke(r,r.return,pe)}}break;case 3:if(sn(o,r),_n(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{mo(o.containerInfo)}catch(pe){Ke(r,r.return,pe)}break;case 4:sn(o,r),_n(r);break;case 13:sn(o,r),_n(r),d=r.child,d.flags&8192&&(m=d.memoizedState!==null,d.stateNode.isHidden=m,!m||d.alternate!==null&&d.alternate.memoizedState!==null||(Gu=Xe())),c&4&&Zd(r);break;case 22:if(Y=l!==null&&l.memoizedState!==null,r.mode&1?(ft=(q=ft)||Y,sn(o,r),ft=q):sn(o,r),_n(r),c&8192){if(q=r.memoizedState!==null,(r.stateNode.isHidden=q)&&!Y&&(r.mode&1)!==0)for(fe=r,Y=r.child;Y!==null;){for(ee=fe=Y;fe!==null;){switch(X=fe,ae=X.child,X.tag){case 0:case 11:case 14:case 15:Fo(4,X,X.return);break;case 1:Ri(X,X.return);var he=X.stateNode;if(typeof he.componentWillUnmount=="function"){c=X,l=X.return;try{o=c,he.props=o.memoizedProps,he.state=o.memoizedState,he.componentWillUnmount()}catch(pe){Ke(c,l,pe)}}break;case 5:Ri(X,X.return);break;case 22:if(X.memoizedState!==null){np(ee);continue}}ae!==null?(ae.return=X,fe=ae):np(ee)}Y=Y.sibling}e:for(Y=null,ee=r;;){if(ee.tag===5){if(Y===null){Y=ee;try{d=ee.stateNode,q?(m=d.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none"):(E=ee.stateNode,M=ee.memoizedProps.style,w=M!=null&&M.hasOwnProperty("display")?M.display:null,E.style.display=fi("display",w))}catch(pe){Ke(r,r.return,pe)}}}else if(ee.tag===6){if(Y===null)try{ee.stateNode.nodeValue=q?"":ee.memoizedProps}catch(pe){Ke(r,r.return,pe)}}else if((ee.tag!==22&&ee.tag!==23||ee.memoizedState===null||ee===r)&&ee.child!==null){ee.child.return=ee,ee=ee.child;continue}if(ee===r)break e;for(;ee.sibling===null;){if(ee.return===null||ee.return===r)break e;Y===ee&&(Y=null),ee=ee.return}Y===ee&&(Y=null),ee.sibling.return=ee.return,ee=ee.sibling}}break;case 19:sn(o,r),_n(r),c&4&&Zd(r);break;case 21:break;default:sn(o,r),_n(r)}}function _n(r){var o=r.flags;if(o&2){try{e:{for(var l=r.return;l!==null;){if(Gd(l)){var c=l;break e}l=l.return}throw Error(i(160))}switch(c.tag){case 5:var d=c.stateNode;c.flags&32&&(Ct(d,""),c.flags&=-33);var m=Xd(r);Bu(r,m,d);break;case 3:case 4:var w=c.stateNode.containerInfo,E=Xd(r);Qu(r,E,w);break;default:throw Error(i(161))}}catch(M){Ke(r,r.return,M)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function gv(r,o,l){fe=r,ep(r)}function ep(r,o,l){for(var c=(r.mode&1)!==0;fe!==null;){var d=fe,m=d.child;if(d.tag===22&&c){var w=d.memoizedState!==null||_l;if(!w){var E=d.alternate,M=E!==null&&E.memoizedState!==null||ft;E=_l;var q=ft;if(_l=w,(ft=M)&&!q)for(fe=d;fe!==null;)w=fe,M=w.child,w.tag===22&&w.memoizedState!==null?rp(d):M!==null?(M.return=w,fe=M):rp(d);for(;m!==null;)fe=m,ep(m),m=m.sibling;fe=d,_l=E,ft=q}tp(r)}else(d.subtreeFlags&8772)!==0&&m!==null?(m.return=d,fe=m):tp(r)}}function tp(r){for(;fe!==null;){var o=fe;if((o.flags&8772)!==0){var l=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:ft||xl(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!ft)if(l===null)c.componentDidMount();else{var d=o.elementType===o.type?l.memoizedProps:rn(o.type,l.memoizedProps);c.componentDidUpdate(d,l.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var m=o.updateQueue;m!==null&&nd(o,m,c);break;case 3:var w=o.updateQueue;if(w!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}nd(o,w,l)}break;case 5:var E=o.stateNode;if(l===null&&o.flags&4){l=E;var M=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&l.focus();break;case"img":M.src&&(l.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var q=o.alternate;if(q!==null){var Y=q.memoizedState;if(Y!==null){var ee=Y.dehydrated;ee!==null&&mo(ee)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ft||o.flags&512&&Vu(o)}catch(X){Ke(o,o.return,X)}}if(o===r){fe=null;break}if(l=o.sibling,l!==null){l.return=o.return,fe=l;break}fe=o.return}}function np(r){for(;fe!==null;){var o=fe;if(o===r){fe=null;break}var l=o.sibling;if(l!==null){l.return=o.return,fe=l;break}fe=o.return}}function rp(r){for(;fe!==null;){var o=fe;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{xl(4,o)}catch(M){Ke(o,l,M)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var d=o.return;try{c.componentDidMount()}catch(M){Ke(o,d,M)}}var m=o.return;try{Vu(o)}catch(M){Ke(o,m,M)}break;case 5:var w=o.return;try{Vu(o)}catch(M){Ke(o,w,M)}}}catch(M){Ke(o,o.return,M)}if(o===r){fe=null;break}var E=o.sibling;if(E!==null){E.return=o.return,fe=E;break}fe=o.return}}var yv=Math.ceil,wl=P.ReactCurrentDispatcher,Wu=P.ReactCurrentOwner,Bt=P.ReactCurrentBatchConfig,Oe=0,rt=null,Ze=null,st=0,Lt=0,Ai=ir(0),et=0,$o=null,Ur=0,kl=0,Ku=0,Uo=null,Tt=null,Gu=0,ji=1/0,Dn=null,Sl=!1,Xu=null,cr=null,Cl=!1,fr=null,bl=0,Ho=0,Yu=null,El=-1,Pl=0;function mt(){return(Oe&6)!==0?Xe():El!==-1?El:El=Xe()}function hr(r){return(r.mode&1)===0?1:(Oe&2)!==0&&st!==0?st&-st:Jm.transition!==null?(Pl===0&&(Pl=Xf()),Pl):(r=ze,r!==0||(r=window.event,r=r===void 0?16:oh(r.type)),r)}function ln(r,o,l,c){if(50<Ho)throw Ho=0,Yu=null,Error(i(185));fo(r,l,c),((Oe&2)===0||r!==rt)&&(r===rt&&((Oe&2)===0&&(kl|=l),et===4&&dr(r,st)),Nt(r,c),l===1&&Oe===0&&(o.mode&1)===0&&(ji=Xe()+500,tl&&sr()))}function Nt(r,o){var l=r.callbackNode;Jy(r,o);var c=Ds(r,r===rt?st:0);if(c===0)l!==null&&Wf(l),r.callbackNode=null,r.callbackPriority=0;else if(o=c&-c,r.callbackPriority!==o){if(l!=null&&Wf(l),o===1)r.tag===0?Zm(op.bind(null,r)):Vh(op.bind(null,r)),Km(function(){(Oe&6)===0&&sr()}),l=null;else{switch(Yf(c)){case 1:l=Ma;break;case 4:l=Kf;break;case 16:l=Rs;break;case 536870912:l=Gf;break;default:l=Rs}l=dp(l,ip.bind(null,r))}r.callbackPriority=o,r.callbackNode=l}}function ip(r,o){if(El=-1,Pl=0,(Oe&6)!==0)throw Error(i(327));var l=r.callbackNode;if(zi()&&r.callbackNode!==l)return null;var c=Ds(r,r===rt?st:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||o)o=Tl(r,c);else{o=c;var d=Oe;Oe|=2;var m=lp();(rt!==r||st!==o)&&(Dn=null,ji=Xe()+500,qr(r,o));do try{_v();break}catch(E){sp(r,E)}while(!0);gu(),wl.current=m,Oe=d,Ze!==null?o=0:(rt=null,st=0,o=et)}if(o!==0){if(o===2&&(d=Oa(r),d!==0&&(c=d,o=Zu(r,d))),o===1)throw l=$o,qr(r,0),dr(r,c),Nt(r,Xe()),l;if(o===6)dr(r,c);else{if(d=r.current.alternate,(c&30)===0&&!mv(d)&&(o=Tl(r,c),o===2&&(m=Oa(r),m!==0&&(c=m,o=Zu(r,m))),o===1))throw l=$o,qr(r,0),dr(r,c),Nt(r,Xe()),l;switch(r.finishedWork=d,r.finishedLanes=c,o){case 0:case 1:throw Error(i(345));case 2:Vr(r,Tt,Dn);break;case 3:if(dr(r,c),(c&130023424)===c&&(o=Gu+500-Xe(),10<o)){if(Ds(r,0)!==0)break;if(d=r.suspendedLanes,(d&c)!==c){mt(),r.pingedLanes|=r.suspendedLanes&d;break}r.timeoutHandle=iu(Vr.bind(null,r,Tt,Dn),o);break}Vr(r,Tt,Dn);break;case 4:if(dr(r,c),(c&4194240)===c)break;for(o=r.eventTimes,d=-1;0<c;){var w=31-en(c);m=1<<w,w=o[w],w>d&&(d=w),c&=~m}if(c=d,c=Xe()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*yv(c/1960))-c,10<c){r.timeoutHandle=iu(Vr.bind(null,r,Tt,Dn),c);break}Vr(r,Tt,Dn);break;case 5:Vr(r,Tt,Dn);break;default:throw Error(i(329))}}}return Nt(r,Xe()),r.callbackNode===l?ip.bind(null,r):null}function Zu(r,o){var l=Uo;return r.current.memoizedState.isDehydrated&&(qr(r,o).flags|=256),r=Tl(r,o),r!==2&&(o=Tt,Tt=l,o!==null&&Ju(o)),r}function Ju(r){Tt===null?Tt=r:Tt.push.apply(Tt,r)}function mv(r){for(var o=r;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var c=0;c<l.length;c++){var d=l[c],m=d.getSnapshot;d=d.value;try{if(!tn(m(),d))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function dr(r,o){for(o&=~Ku,o&=~kl,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var l=31-en(o),c=1<<l;r[l]=-1,o&=~c}}function op(r){if((Oe&6)!==0)throw Error(i(327));zi();var o=Ds(r,0);if((o&1)===0)return Nt(r,Xe()),null;var l=Tl(r,o);if(r.tag!==0&&l===2){var c=Oa(r);c!==0&&(o=c,l=Zu(r,c))}if(l===1)throw l=$o,qr(r,0),dr(r,o),Nt(r,Xe()),l;if(l===6)throw Error(i(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,Vr(r,Tt,Dn),Nt(r,Xe()),null}function ec(r,o){var l=Oe;Oe|=1;try{return r(o)}finally{Oe=l,Oe===0&&(ji=Xe()+500,tl&&sr())}}function Hr(r){fr!==null&&fr.tag===0&&(Oe&6)===0&&zi();var o=Oe;Oe|=1;var l=Bt.transition,c=ze;try{if(Bt.transition=null,ze=1,r)return r()}finally{ze=c,Bt.transition=l,Oe=o,(Oe&6)===0&&sr()}}function tc(){Lt=Ai.current,$e(Ai)}function qr(r,o){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,Wm(l)),Ze!==null)for(l=Ze.return;l!==null;){var c=l;switch(cu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Js();break;case 3:Mi(),$e(bt),$e(at),Su();break;case 5:wu(c);break;case 4:Mi();break;case 13:$e(Be);break;case 19:$e(Be);break;case 10:yu(c.type._context);break;case 22:case 23:tc()}l=l.return}if(rt=r,Ze=r=pr(r.current,null),st=Lt=o,et=0,$o=null,Ku=kl=Ur=0,Tt=Uo=null,Lr!==null){for(o=0;o<Lr.length;o++)if(l=Lr[o],c=l.interleaved,c!==null){l.interleaved=null;var d=c.next,m=l.pending;if(m!==null){var w=m.next;m.next=d,c.next=w}l.pending=c}Lr=null}return r}function sp(r,o){do{var l=Ze;try{if(gu(),fl.current=gl,hl){for(var c=We.memoizedState;c!==null;){var d=c.queue;d!==null&&(d.pending=null),c=c.next}hl=!1}if($r=0,nt=Je=We=null,jo=!1,zo=0,Wu.current=null,l===null||l.return===null){et=1,$o=o,Ze=null;break}e:{var m=r,w=l.return,E=l,M=o;if(o=st,E.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var q=M,Y=E,ee=Y.tag;if((Y.mode&1)===0&&(ee===0||ee===11||ee===15)){var X=Y.alternate;X?(Y.updateQueue=X.updateQueue,Y.memoizedState=X.memoizedState,Y.lanes=X.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var ae=Od(w);if(ae!==null){ae.flags&=-257,Rd(ae,w,E,m,o),ae.mode&1&&Md(m,q,o),o=ae,M=q;var he=o.updateQueue;if(he===null){var pe=new Set;pe.add(M),o.updateQueue=pe}else he.add(M);break e}else{if((o&1)===0){Md(m,q,o),nc();break e}M=Error(i(426))}}else if(qe&&E.mode&1){var Ye=Od(w);if(Ye!==null){(Ye.flags&65536)===0&&(Ye.flags|=256),Rd(Ye,w,E,m,o),du(Oi(M,E));break e}}m=M=Oi(M,E),et!==4&&(et=2),Uo===null?Uo=[m]:Uo.push(m),m=w;do{switch(m.tag){case 3:m.flags|=65536,o&=-o,m.lanes|=o;var U=Td(m,M,o);td(m,U);break e;case 1:E=M;var j=m.type,H=m.stateNode;if((m.flags&128)===0&&(typeof j.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(cr===null||!cr.has(H)))){m.flags|=65536,o&=-o,m.lanes|=o;var ne=Nd(m,E,o);td(m,ne);break e}}m=m.return}while(m!==null)}up(l)}catch(ye){o=ye,Ze===l&&l!==null&&(Ze=l=l.return);continue}break}while(!0)}function lp(){var r=wl.current;return wl.current=gl,r===null?gl:r}function nc(){(et===0||et===3||et===2)&&(et=4),rt===null||(Ur&268435455)===0&&(kl&268435455)===0||dr(rt,st)}function Tl(r,o){var l=Oe;Oe|=2;var c=lp();(rt!==r||st!==o)&&(Dn=null,qr(r,o));do try{vv();break}catch(d){sp(r,d)}while(!0);if(gu(),Oe=l,wl.current=c,Ze!==null)throw Error(i(261));return rt=null,st=0,et}function vv(){for(;Ze!==null;)ap(Ze)}function _v(){for(;Ze!==null&&!Vy();)ap(Ze)}function ap(r){var o=hp(r.alternate,r,Lt);r.memoizedProps=r.pendingProps,o===null?up(r):Ze=o,Wu.current=null}function up(r){var o=r;do{var l=o.alternate;if(r=o.return,(o.flags&32768)===0){if(l=fv(l,o,Lt),l!==null){Ze=l;return}}else{if(l=hv(l,o),l!==null){l.flags&=32767,Ze=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{et=6,Ze=null;return}}if(o=o.sibling,o!==null){Ze=o;return}Ze=o=r}while(o!==null);et===0&&(et=5)}function Vr(r,o,l){var c=ze,d=Bt.transition;try{Bt.transition=null,ze=1,xv(r,o,l,c)}finally{Bt.transition=d,ze=c}return null}function xv(r,o,l,c){do zi();while(fr!==null);if((Oe&6)!==0)throw Error(i(327));l=r.finishedWork;var d=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(i(177));r.callbackNode=null,r.callbackPriority=0;var m=l.lanes|l.childLanes;if(em(r,m),r===rt&&(Ze=rt=null,st=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Cl||(Cl=!0,dp(Rs,function(){return zi(),null})),m=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||m){m=Bt.transition,Bt.transition=null;var w=ze;ze=1;var E=Oe;Oe|=4,Wu.current=null,pv(r,l),Jd(l,r),$m(nu),Fs=!!tu,nu=tu=null,r.current=l,gv(l),Qy(),Oe=E,ze=w,Bt.transition=m}else r.current=l;if(Cl&&(Cl=!1,fr=r,bl=d),m=r.pendingLanes,m===0&&(cr=null),Ky(l.stateNode),Nt(r,Xe()),o!==null)for(c=r.onRecoverableError,l=0;l<o.length;l++)d=o[l],c(d.value,{componentStack:d.stack,digest:d.digest});if(Sl)throw Sl=!1,r=Xu,Xu=null,r;return(bl&1)!==0&&r.tag!==0&&zi(),m=r.pendingLanes,(m&1)!==0?r===Yu?Ho++:(Ho=0,Yu=r):Ho=0,sr(),null}function zi(){if(fr!==null){var r=Yf(bl),o=Bt.transition,l=ze;try{if(Bt.transition=null,ze=16>r?16:r,fr===null)var c=!1;else{if(r=fr,fr=null,bl=0,(Oe&6)!==0)throw Error(i(331));var d=Oe;for(Oe|=4,fe=r.current;fe!==null;){var m=fe,w=m.child;if((fe.flags&16)!==0){var E=m.deletions;if(E!==null){for(var M=0;M<E.length;M++){var q=E[M];for(fe=q;fe!==null;){var Y=fe;switch(Y.tag){case 0:case 11:case 15:Fo(8,Y,m)}var ee=Y.child;if(ee!==null)ee.return=Y,fe=ee;else for(;fe!==null;){Y=fe;var X=Y.sibling,ae=Y.return;if(Kd(Y),Y===q){fe=null;break}if(X!==null){X.return=ae,fe=X;break}fe=ae}}}var he=m.alternate;if(he!==null){var pe=he.child;if(pe!==null){he.child=null;do{var Ye=pe.sibling;pe.sibling=null,pe=Ye}while(pe!==null)}}fe=m}}if((m.subtreeFlags&2064)!==0&&w!==null)w.return=m,fe=w;else e:for(;fe!==null;){if(m=fe,(m.flags&2048)!==0)switch(m.tag){case 0:case 11:case 15:Fo(9,m,m.return)}var U=m.sibling;if(U!==null){U.return=m.return,fe=U;break e}fe=m.return}}var j=r.current;for(fe=j;fe!==null;){w=fe;var H=w.child;if((w.subtreeFlags&2064)!==0&&H!==null)H.return=w,fe=H;else e:for(w=j;fe!==null;){if(E=fe,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:xl(9,E)}}catch(ye){Ke(E,E.return,ye)}if(E===w){fe=null;break e}var ne=E.sibling;if(ne!==null){ne.return=E.return,fe=ne;break e}fe=E.return}}if(Oe=d,sr(),gn&&typeof gn.onPostCommitFiberRoot=="function")try{gn.onPostCommitFiberRoot(As,r)}catch{}c=!0}return c}finally{ze=l,Bt.transition=o}}return!1}function cp(r,o,l){o=Oi(l,o),o=Td(r,o,1),r=ar(r,o,1),o=mt(),r!==null&&(fo(r,1,o),Nt(r,o))}function Ke(r,o,l){if(r.tag===3)cp(r,r,l);else for(;o!==null;){if(o.tag===3){cp(o,r,l);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(cr===null||!cr.has(c))){r=Oi(l,r),r=Nd(o,r,1),o=ar(o,r,1),r=mt(),o!==null&&(fo(o,1,r),Nt(o,r));break}}o=o.return}}function wv(r,o,l){var c=r.pingCache;c!==null&&c.delete(o),o=mt(),r.pingedLanes|=r.suspendedLanes&l,rt===r&&(st&l)===l&&(et===4||et===3&&(st&130023424)===st&&500>Xe()-Gu?qr(r,0):Ku|=l),Nt(r,o)}function fp(r,o){o===0&&((r.mode&1)===0?o=1:(o=zs,zs<<=1,(zs&130023424)===0&&(zs=4194304)));var l=mt();r=An(r,o),r!==null&&(fo(r,o,l),Nt(r,l))}function kv(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),fp(r,l)}function Sv(r,o){var l=0;switch(r.tag){case 13:var c=r.stateNode,d=r.memoizedState;d!==null&&(l=d.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(i(314))}c!==null&&c.delete(o),fp(r,l)}var hp;hp=function(r,o,l){if(r!==null)if(r.memoizedProps!==o.pendingProps||bt.current)Pt=!0;else{if((r.lanes&l)===0&&(o.flags&128)===0)return Pt=!1,cv(r,o,l);Pt=(r.flags&131072)!==0}else Pt=!1,qe&&(o.flags&1048576)!==0&&Qh(o,rl,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;vl(r,o),r=o.pendingProps;var d=Si(o,at.current);Ni(o,l),d=Eu(null,o,c,r,d,l);var m=Pu();return o.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Et(c)?(m=!0,el(o)):m=!1,o.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,_u(o),d.updater=yl,o.stateNode=d,d._reactInternals=o,Au(o,c,r,l),o=Iu(null,o,c,!0,m,l)):(o.tag=0,qe&&m&&uu(o),yt(null,o,d,l),o=o.child),o;case 16:c=o.elementType;e:{switch(vl(r,o),r=o.pendingProps,d=c._init,c=d(c._payload),o.type=c,d=o.tag=bv(c),r=rn(c,r),d){case 0:o=Du(null,o,c,r,l);break e;case 1:o=Ld(null,o,c,r,l);break e;case 11:o=Ad(null,o,c,r,l);break e;case 14:o=jd(null,o,c,rn(c.type,r),l);break e}throw Error(i(306,c,""))}return o;case 0:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:rn(c,d),Du(r,o,c,d,l);case 1:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:rn(c,d),Ld(r,o,c,d,l);case 3:e:{if(Fd(o),r===null)throw Error(i(387));c=o.pendingProps,m=o.memoizedState,d=m.element,ed(r,o),ul(o,c,null,l);var w=o.memoizedState;if(c=w.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},o.updateQueue.baseState=m,o.memoizedState=m,o.flags&256){d=Oi(Error(i(423)),o),o=$d(r,o,c,l,d);break e}else if(c!==d){d=Oi(Error(i(424)),o),o=$d(r,o,c,l,d);break e}else for(It=rr(o.stateNode.containerInfo.firstChild),Dt=o,qe=!0,nn=null,l=Zh(o,null,c,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ei(),c===d){o=zn(r,o,l);break e}yt(r,o,c,l)}o=o.child}return o;case 5:return rd(o),r===null&&hu(o),c=o.type,d=o.pendingProps,m=r!==null?r.memoizedProps:null,w=d.children,ru(c,d)?w=null:m!==null&&ru(c,m)&&(o.flags|=32),Id(r,o),yt(r,o,w,l),o.child;case 6:return r===null&&hu(o),null;case 13:return Ud(r,o,l);case 4:return xu(o,o.stateNode.containerInfo),c=o.pendingProps,r===null?o.child=Pi(o,null,c,l):yt(r,o,c,l),o.child;case 11:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:rn(c,d),Ad(r,o,c,d,l);case 7:return yt(r,o,o.pendingProps,l),o.child;case 8:return yt(r,o,o.pendingProps.children,l),o.child;case 12:return yt(r,o,o.pendingProps.children,l),o.child;case 10:e:{if(c=o.type._context,d=o.pendingProps,m=o.memoizedProps,w=d.value,Le(sl,c._currentValue),c._currentValue=w,m!==null)if(tn(m.value,w)){if(m.children===d.children&&!bt.current){o=zn(r,o,l);break e}}else for(m=o.child,m!==null&&(m.return=o);m!==null;){var E=m.dependencies;if(E!==null){w=m.child;for(var M=E.firstContext;M!==null;){if(M.context===c){if(m.tag===1){M=jn(-1,l&-l),M.tag=2;var q=m.updateQueue;if(q!==null){q=q.shared;var Y=q.pending;Y===null?M.next=M:(M.next=Y.next,Y.next=M),q.pending=M}}m.lanes|=l,M=m.alternate,M!==null&&(M.lanes|=l),mu(m.return,l,o),E.lanes|=l;break}M=M.next}}else if(m.tag===10)w=m.type===o.type?null:m.child;else if(m.tag===18){if(w=m.return,w===null)throw Error(i(341));w.lanes|=l,E=w.alternate,E!==null&&(E.lanes|=l),mu(w,l,o),w=m.sibling}else w=m.child;if(w!==null)w.return=m;else for(w=m;w!==null;){if(w===o){w=null;break}if(m=w.sibling,m!==null){m.return=w.return,w=m;break}w=w.return}m=w}yt(r,o,d.children,l),o=o.child}return o;case 9:return d=o.type,c=o.pendingProps.children,Ni(o,l),d=Vt(d),c=c(d),o.flags|=1,yt(r,o,c,l),o.child;case 14:return c=o.type,d=rn(c,o.pendingProps),d=rn(c.type,d),jd(r,o,c,d,l);case 15:return zd(r,o,o.type,o.pendingProps,l);case 17:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:rn(c,d),vl(r,o),o.tag=1,Et(c)?(r=!0,el(o)):r=!1,Ni(o,l),Ed(o,c,d),Au(o,c,d,l),Iu(null,o,c,!0,r,l);case 19:return qd(r,o,l);case 22:return Dd(r,o,l)}throw Error(i(156,o.tag))};function dp(r,o){return Bf(r,o)}function Cv(r,o,l,c){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(r,o,l,c){return new Cv(r,o,l,c)}function rc(r){return r=r.prototype,!(!r||!r.isReactComponent)}function bv(r){if(typeof r=="function")return rc(r)?1:0;if(r!=null){if(r=r.$$typeof,r===ie)return 11;if(r===te)return 14}return 2}function pr(r,o){var l=r.alternate;return l===null?(l=Wt(r.tag,o,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=o,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,o=r.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function Nl(r,o,l,c,d,m){var w=2;if(c=r,typeof r=="function")rc(r)&&(w=1);else if(typeof r=="string")w=5;else e:switch(r){case L:return Qr(l.children,d,m,o);case D:w=8,d|=8;break;case Q:return r=Wt(12,l,o,d|2),r.elementType=Q,r.lanes=m,r;case ce:return r=Wt(13,l,o,d),r.elementType=ce,r.lanes=m,r;case F:return r=Wt(19,l,o,d),r.elementType=F,r.lanes=m,r;case oe:return Ml(l,d,m,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case K:w=10;break e;case Z:w=9;break e;case ie:w=11;break e;case te:w=14;break e;case W:w=16,c=null;break e}throw Error(i(130,r==null?r:typeof r,""))}return o=Wt(w,l,o,d),o.elementType=r,o.type=c,o.lanes=m,o}function Qr(r,o,l,c){return r=Wt(7,r,c,o),r.lanes=l,r}function Ml(r,o,l,c){return r=Wt(22,r,c,o),r.elementType=oe,r.lanes=l,r.stateNode={isHidden:!1},r}function ic(r,o,l){return r=Wt(6,r,null,o),r.lanes=l,r}function oc(r,o,l){return o=Wt(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function Ev(r,o,l,c,d){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ra(0),this.expirationTimes=Ra(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ra(0),this.identifierPrefix=c,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function sc(r,o,l,c,d,m,w,E,M){return r=new Ev(r,o,l,E,M),o===1?(o=1,m===!0&&(o|=8)):o=0,m=Wt(3,null,null,o),r.current=m,m.stateNode=r,m.memoizedState={element:c,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},_u(m),r}function Pv(r,o,l){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:c==null?null:""+c,children:r,containerInfo:o,implementation:l}}function pp(r){if(!r)return or;r=r._reactInternals;e:{if(Ar(r)!==r||r.tag!==1)throw Error(i(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Et(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(i(171))}if(r.tag===1){var l=r.type;if(Et(l))return Hh(r,l,o)}return o}function gp(r,o,l,c,d,m,w,E,M){return r=sc(l,c,!0,r,d,m,w,E,M),r.context=pp(null),l=r.current,c=mt(),d=hr(l),m=jn(c,d),m.callback=o??null,ar(l,m,d),r.current.lanes=d,fo(r,d,c),Nt(r,c),r}function Ol(r,o,l,c){var d=o.current,m=mt(),w=hr(d);return l=pp(l),o.context===null?o.context=l:o.pendingContext=l,o=jn(m,w),o.payload={element:r},c=c===void 0?null:c,c!==null&&(o.callback=c),r=ar(d,o,w),r!==null&&(ln(r,d,w,m),al(r,d,w)),w}function Rl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function yp(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function lc(r,o){yp(r,o),(r=r.alternate)&&yp(r,o)}function Tv(){return null}var mp=typeof reportError=="function"?reportError:function(r){console.error(r)};function ac(r){this._internalRoot=r}Al.prototype.render=ac.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(i(409));Ol(r,o,null,null)},Al.prototype.unmount=ac.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;Hr(function(){Ol(null,r,null,null)}),o[Nn]=null}};function Al(r){this._internalRoot=r}Al.prototype.unstable_scheduleHydration=function(r){if(r){var o=eh();r={blockedOn:null,target:r,priority:o};for(var l=0;l<er.length&&o!==0&&o<er[l].priority;l++);er.splice(l,0,r),l===0&&rh(r)}};function uc(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function jl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function vp(){}function Nv(r,o,l,c,d){if(d){if(typeof c=="function"){var m=c;c=function(){var q=Rl(w);m.call(q)}}var w=gp(o,c,r,0,null,!1,!1,"",vp);return r._reactRootContainer=w,r[Nn]=w.current,Eo(r.nodeType===8?r.parentNode:r),Hr(),w}for(;d=r.lastChild;)r.removeChild(d);if(typeof c=="function"){var E=c;c=function(){var q=Rl(M);E.call(q)}}var M=sc(r,0,!1,null,null,!1,!1,"",vp);return r._reactRootContainer=M,r[Nn]=M.current,Eo(r.nodeType===8?r.parentNode:r),Hr(function(){Ol(o,M,l,c)}),M}function zl(r,o,l,c,d){var m=l._reactRootContainer;if(m){var w=m;if(typeof d=="function"){var E=d;d=function(){var M=Rl(w);E.call(M)}}Ol(o,w,r,d)}else w=Nv(l,o,r,d,c);return Rl(w)}Zf=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var l=co(o.pendingLanes);l!==0&&(Aa(o,l|1),Nt(o,Xe()),(Oe&6)===0&&(ji=Xe()+500,sr()))}break;case 13:Hr(function(){var c=An(r,1);if(c!==null){var d=mt();ln(c,r,1,d)}}),lc(r,1)}},ja=function(r){if(r.tag===13){var o=An(r,134217728);if(o!==null){var l=mt();ln(o,r,134217728,l)}lc(r,134217728)}},Jf=function(r){if(r.tag===13){var o=hr(r),l=An(r,o);if(l!==null){var c=mt();ln(l,r,o,c)}lc(r,o)}},eh=function(){return ze},th=function(r,o){var l=ze;try{return ze=r,o()}finally{ze=l}},Ea=function(r,o,l){switch(o){case"input":if(io(r,l),o=l.name,l.type==="radio"&&o!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var c=l[o];if(c!==r&&c.form===r.form){var d=Zs(c);if(!d)throw Error(i(90));bs(c),io(c,d)}}}break;case"textarea":se(r,l);break;case"select":o=l.value,o!=null&&Xn(r,!!l.multiple,o,!1)}},Ff=ec,$f=Hr;var Mv={usingClientEntryPoint:!1,Events:[No,wi,Zs,If,Lf,ec]},qo={findFiberByHostInstance:jr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ov={bundleType:qo.bundleType,version:qo.version,rendererPackageName:qo.rendererPackageName,rendererConfig:qo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Vf(r),r===null?null:r.stateNode},findFiberByHostInstance:qo.findFiberByHostInstance||Tv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dl.isDisabled&&Dl.supportsFiber)try{As=Dl.inject(Ov),gn=Dl}catch{}}return Mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mv,Mt.createPortal=function(r,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!uc(o))throw Error(i(200));return Pv(r,o,null,l)},Mt.createRoot=function(r,o){if(!uc(r))throw Error(i(299));var l=!1,c="",d=mp;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(d=o.onRecoverableError)),o=sc(r,1,!1,null,null,l,!1,c,d),r[Nn]=o.current,Eo(r.nodeType===8?r.parentNode:r),new ac(o)},Mt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=Vf(o),r=r===null?null:r.stateNode,r},Mt.flushSync=function(r){return Hr(r)},Mt.hydrate=function(r,o,l){if(!jl(o))throw Error(i(200));return zl(null,r,o,!0,l)},Mt.hydrateRoot=function(r,o,l){if(!uc(r))throw Error(i(405));var c=l!=null&&l.hydratedSources||null,d=!1,m="",w=mp;if(l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onRecoverableError!==void 0&&(w=l.onRecoverableError)),o=gp(o,null,r,1,l??null,d,!1,m,w),r[Nn]=o.current,Eo(r),c)for(r=0;r<c.length;r++)l=c[r],d=l._getVersion,d=d(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,d]:o.mutableSourceEagerHydrationData.push(l,d);return new Al(o)},Mt.render=function(r,o,l){if(!jl(o))throw Error(i(200));return zl(null,r,o,!1,l)},Mt.unmountComponentAtNode=function(r){if(!jl(r))throw Error(i(40));return r._reactRootContainer?(Hr(function(){zl(null,null,r,!1,function(){r._reactRootContainer=null,r[Nn]=null})}),!0):!1},Mt.unstable_batchedUpdates=ec,Mt.unstable_renderSubtreeIntoContainer=function(r,o,l,c){if(!jl(l))throw Error(i(200));if(r==null||r._reactInternals===void 0)throw Error(i(38));return zl(r,o,l,!1,c)},Mt.version="18.3.1-next-f1338f8080-20240426",Mt}var Dp;function _1(){if(Dp)return pc.exports;Dp=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(n){console.error(n)}}return e(),pc.exports=v1(),pc.exports}var Ip;function x1(){if(Ip)return Fl;Ip=1;var e=_1();return Fl.createRoot=e.createRoot,Fl.hydrateRoot=e.hydrateRoot,Fl}var w1=x1();/**
33
+ */var zp;function v1(){if(zp)return Mt;zp=1;var e=hf(),n=y1();function i(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(r,o){f(r,o),f(r+"Capture",o)}function f(r,o){for(a[r]=o,r=0;r<o.length;r++)s.add(o[r])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[: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]*$/,v={},g={};function _(r){return p.call(g,r)?!0:p.call(v,r)?!1:m.test(r)?g[r]=!0:(v[r]=!0,!1)}function x(r,o,l,c){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function C(r,o,l,c){if(o===null||typeof o>"u"||x(r,o,l,c))return!0;if(c)return!1;if(l!==null)switch(l.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function b(r,o,l,c,d,y,w){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=d,this.mustUseProperty=l,this.propertyName=r,this.type=o,this.sanitizeURL=y,this.removeEmptyString=w}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){S[r]=new b(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];S[o]=new b(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){S[r]=new b(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){S[r]=new b(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){S[r]=new b(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){S[r]=new b(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){S[r]=new b(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){S[r]=new b(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){S[r]=new b(r,5,!1,r.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function O(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(k,O);S[o]=new b(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(k,O);S[o]=new b(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(k,O);S[o]=new b(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){S[r]=new b(r,1,!1,r.toLowerCase(),null,!1,!1)}),S.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){S[r]=new b(r,1,!1,r.toLowerCase(),null,!0,!0)});function A(r,o,l,c){var d=S.hasOwnProperty(o)?S[o]:null;(d!==null?d.type!==0:c||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(C(o,l,d,c)&&(l=null),c||d===null?_(o)&&(l===null?r.removeAttribute(o):r.setAttribute(o,""+l)):d.mustUseProperty?r[d.propertyName]=l===null?d.type===3?!1:"":l:(o=d.attributeName,c=d.attributeNamespace,l===null?r.removeAttribute(o):(d=d.type,l=d===3||d===4&&l===!0?"":""+l,c?r.setAttributeNS(c,o,l):r.setAttribute(o,l))))}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=Symbol.for("react.element"),z=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),Z=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),B=Symbol.iterator;function J(r){return r===null||typeof r!="object"?null:(r=B&&r[B]||r["@@iterator"],typeof r=="function"?r:null)}var G=Object.assign,R;function q(r){if(R===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);R=o&&o[1]||""}return`
34
+ `+R+r}var le=!1;function ge(r,o){if(!r||le)return"";le=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(V){var c=V}Reflect.construct(r,[],o)}else{try{o.call()}catch(V){c=V}r.call(o.prototype)}else{try{throw Error()}catch(V){c=V}r()}}catch(V){if(V&&c&&typeof V.stack=="string"){for(var d=V.stack.split(`
35
+ `),y=c.stack.split(`
36
+ `),w=d.length-1,E=y.length-1;1<=w&&0<=E&&d[w]!==y[E];)E--;for(;1<=w&&0<=E;w--,E--)if(d[w]!==y[E]){if(w!==1||E!==1)do if(w--,E--,0>E||d[w]!==y[E]){var M=`
37
+ `+d[w].replace(" at new "," at ");return r.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",r.displayName)),M}while(1<=w&&0<=E);break}}}finally{le=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?q(r):""}function ke(r){switch(r.tag){case 5:return q(r.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return r=ge(r.type,!1),r;case 11:return r=ge(r.type.render,!1),r;case 1:return r=ge(r.type,!0),r;default:return""}}function Ce(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case F:return"Fragment";case z:return"Portal";case Q:return"Profiler";case D:return"StrictMode";case ce:return"Suspense";case $:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Z:return(r.displayName||"Context")+".Consumer";case K:return(r._context.displayName||"Context")+".Provider";case ie:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case te:return o=r.displayName||null,o!==null?o:Ce(r.type)||"Memo";case W:o=r._payload,r=r._init;try{return Ce(r(o))}catch{}}return null}function Ee(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ce(o);case 8:return o===D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function be(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ae(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function gt(r){var o=Ae(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),c=""+r[o];if(!r.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,y=l.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return d.call(this)},set:function(w){c=""+w,y.call(this,w)}}),Object.defineProperty(r,o,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function Rr(r){r._valueTracker||(r._valueTracker=gt(r))}function bs(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),c="";return r&&(c=Ae(r)?r.checked?"true":"false":r.value),r=c,r!==l?(o.setValue(r),!0):!1}function ui(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function ro(r,o){var l=o.checked;return G({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Es(r,o){var l=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;l=be(o.value!=null?o.value:l),r._wrapperState={initialChecked:c,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Ps(r,o){o=o.checked,o!=null&&A(r,"checked",o,!1)}function io(r,o){Ps(r,o);var l=be(o.value),c=o.type;if(l!=null)c==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(c==="submit"||c==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?oo(r,o.type,l):o.hasOwnProperty("defaultValue")&&oo(r,o.type,be(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function Ns(r,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,l||o===r.value||(r.value=o),r.defaultValue=o}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function oo(r,o,l){(o!=="number"||ui(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var Ar=Array.isArray;function Yn(r,o,l,c){if(r=r.options,o){o={};for(var d=0;d<l.length;d++)o["$"+l[d]]=!0;for(l=0;l<r.length;l++)d=o.hasOwnProperty("$"+r[l].value),r[l].selected!==d&&(r[l].selected=d),d&&c&&(r[l].defaultSelected=!0)}else{for(l=""+be(l),o=null,d=0;d<r.length;d++){if(r[d].value===l){r[d].selected=!0,c&&(r[d].defaultSelected=!0);return}o!==null||r[d].disabled||(o=r[d])}o!==null&&(o.selected=!0)}}function ci(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return G({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function so(r,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(i(92));if(Ar(l)){if(1<l.length)throw Error(i(93));l=l[0]}o=l}o==null&&(o=""),l=o}r._wrapperState={initialValue:be(l)}}function se(r,o){var l=be(o.value),c=be(o.defaultValue);l!=null&&(l=""+l,l!==r.value&&(r.value=l),o.defaultValue==null&&r.defaultValue!==l&&(r.defaultValue=l)),c!=null&&(r.defaultValue=""+c)}function we(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function Me(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function St(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?Me(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var He,Ut=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,c,d){MSApp.execUnsafeLocalFunction(function(){return r(o,l,c,d)})}:r}(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(He=He||document.createElement("div"),He.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=He.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function Ct(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var Jt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ts=["Webkit","ms","Moz","O"];Object.keys(Jt).forEach(function(r){Ts.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),Jt[o]=Jt[r]})});function fi(r,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||Jt.hasOwnProperty(r)&&Jt[r]?(""+o).trim():o+"px"}function zf(r,o){r=r.style;for(var l in o)if(o.hasOwnProperty(l)){var c=l.indexOf("--")===0,d=fi(l,o[l],c);l==="float"&&(l="cssFloat"),c?r.setProperty(l,d):r[l]=d}}var Fm=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ka(r,o){if(o){if(Fm[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(i(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(i(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(i(61))}if(o.style!=null&&typeof o.style!="object")throw Error(i(62))}}function Sa(r,o){if(r.indexOf("-")===-1)return typeof o.is=="string";switch(r){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 Ca=null;function ba(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ea=null,hi=null,di=null;function Df(r){if(r=To(r)){if(typeof Ea!="function")throw Error(i(280));var o=r.stateNode;o&&(o=Zs(o),Ea(r.stateNode,r.type,o))}}function If(r){hi?di?di.push(r):di=[r]:hi=r}function Lf(){if(hi){var r=hi,o=di;if(di=hi=null,Df(r),o)for(r=0;r<o.length;r++)Df(o[r])}}function Ff(r,o){return r(o)}function $f(){}var Pa=!1;function Uf(r,o,l){if(Pa)return r(o,l);Pa=!0;try{return Ff(r,o,l)}finally{Pa=!1,(hi!==null||di!==null)&&($f(),Lf())}}function lo(r,o){var l=r.stateNode;if(l===null)return null;var c=Zs(l);if(c===null)return null;l=c[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,o,typeof l));return l}var Na=!1;if(h)try{var ao={};Object.defineProperty(ao,"passive",{get:function(){Na=!0}}),window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch{Na=!1}function $m(r,o,l,c,d,y,w,E,M){var V=Array.prototype.slice.call(arguments,3);try{o.apply(l,V)}catch(Y){this.onError(Y)}}var uo=!1,Ms=null,Os=!1,Ta=null,Um={onError:function(r){uo=!0,Ms=r}};function Hm(r,o,l,c,d,y,w,E,M){uo=!1,Ms=null,$m.apply(Um,arguments)}function Vm(r,o,l,c,d,y,w,E,M){if(Hm.apply(this,arguments),uo){if(uo){var V=Ms;uo=!1,Ms=null}else throw Error(i(198));Os||(Os=!0,Ta=V)}}function jr(r){var o=r,l=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(l=o.return),r=o.return;while(r)}return o.tag===3?l:null}function Hf(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function Vf(r){if(jr(r)!==r)throw Error(i(188))}function qm(r){var o=r.alternate;if(!o){if(o=jr(r),o===null)throw Error(i(188));return o!==r?null:r}for(var l=r,c=o;;){var d=l.return;if(d===null)break;var y=d.alternate;if(y===null){if(c=d.return,c!==null){l=c;continue}break}if(d.child===y.child){for(y=d.child;y;){if(y===l)return Vf(d),r;if(y===c)return Vf(d),o;y=y.sibling}throw Error(i(188))}if(l.return!==c.return)l=d,c=y;else{for(var w=!1,E=d.child;E;){if(E===l){w=!0,l=d,c=y;break}if(E===c){w=!0,c=d,l=y;break}E=E.sibling}if(!w){for(E=y.child;E;){if(E===l){w=!0,l=y,c=d;break}if(E===c){w=!0,c=y,l=d;break}E=E.sibling}if(!w)throw Error(i(189))}}if(l.alternate!==c)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:o}function qf(r){return r=qm(r),r!==null?Qf(r):null}function Qf(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=Qf(r);if(o!==null)return o;r=r.sibling}return null}var Bf=n.unstable_scheduleCallback,Wf=n.unstable_cancelCallback,Qm=n.unstable_shouldYield,Bm=n.unstable_requestPaint,Xe=n.unstable_now,Wm=n.unstable_getCurrentPriorityLevel,Ma=n.unstable_ImmediatePriority,Kf=n.unstable_UserBlockingPriority,Rs=n.unstable_NormalPriority,Km=n.unstable_LowPriority,Gf=n.unstable_IdlePriority,As=null,gn=null;function Gm(r){if(gn&&typeof gn.onCommitFiberRoot=="function")try{gn.onCommitFiberRoot(As,r,void 0,(r.current.flags&128)===128)}catch{}}var en=Math.clz32?Math.clz32:Zm,Xm=Math.log,Ym=Math.LN2;function Zm(r){return r>>>=0,r===0?32:31-(Xm(r)/Ym|0)|0}var js=64,zs=4194304;function co(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Ds(r,o){var l=r.pendingLanes;if(l===0)return 0;var c=0,d=r.suspendedLanes,y=r.pingedLanes,w=l&268435455;if(w!==0){var E=w&~d;E!==0?c=co(E):(y&=w,y!==0&&(c=co(y)))}else w=l&~d,w!==0?c=co(w):y!==0&&(c=co(y));if(c===0)return 0;if(o!==0&&o!==c&&(o&d)===0&&(d=c&-c,y=o&-o,d>=y||d===16&&(y&4194240)!==0))return o;if((c&4)!==0&&(c|=l&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=c;0<o;)l=31-en(o),d=1<<l,c|=r[l],o&=~d;return c}function Jm(r,o){switch(r){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ey(r,o){for(var l=r.suspendedLanes,c=r.pingedLanes,d=r.expirationTimes,y=r.pendingLanes;0<y;){var w=31-en(y),E=1<<w,M=d[w];M===-1?((E&l)===0||(E&c)!==0)&&(d[w]=Jm(E,o)):M<=o&&(r.expiredLanes|=E),y&=~E}}function Oa(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Xf(){var r=js;return js<<=1,(js&4194240)===0&&(js=64),r}function Ra(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function fo(r,o,l){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-en(o),r[o]=l}function ty(r,o){var l=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var c=r.eventTimes;for(r=r.expirationTimes;0<l;){var d=31-en(l),y=1<<d;o[d]=0,c[d]=-1,r[d]=-1,l&=~y}}function Aa(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var c=31-en(l),d=1<<c;d&o|r[c]&o&&(r[c]|=o),l&=~d}}var ze=0;function Yf(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Zf,ja,Jf,eh,th,za=!1,Is=[],Zn=null,Jn=null,er=null,ho=new Map,po=new Map,tr=[],ny="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function nh(r,o){switch(r){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":ho.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":po.delete(o.pointerId)}}function go(r,o,l,c,d,y){return r===null||r.nativeEvent!==y?(r={blockedOn:o,domEventName:l,eventSystemFlags:c,nativeEvent:y,targetContainers:[d]},o!==null&&(o=To(o),o!==null&&ja(o)),r):(r.eventSystemFlags|=c,o=r.targetContainers,d!==null&&o.indexOf(d)===-1&&o.push(d),r)}function ry(r,o,l,c,d){switch(o){case"focusin":return Zn=go(Zn,r,o,l,c,d),!0;case"dragenter":return Jn=go(Jn,r,o,l,c,d),!0;case"mouseover":return er=go(er,r,o,l,c,d),!0;case"pointerover":var y=d.pointerId;return ho.set(y,go(ho.get(y)||null,r,o,l,c,d)),!0;case"gotpointercapture":return y=d.pointerId,po.set(y,go(po.get(y)||null,r,o,l,c,d)),!0}return!1}function rh(r){var o=zr(r.target);if(o!==null){var l=jr(o);if(l!==null){if(o=l.tag,o===13){if(o=Hf(l),o!==null){r.blockedOn=o,th(r.priority,function(){Jf(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ls(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=Ia(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);Ca=c,l.target.dispatchEvent(c),Ca=null}else return o=To(l),o!==null&&ja(o),r.blockedOn=l,!1;o.shift()}return!0}function ih(r,o,l){Ls(r)&&l.delete(o)}function iy(){za=!1,Zn!==null&&Ls(Zn)&&(Zn=null),Jn!==null&&Ls(Jn)&&(Jn=null),er!==null&&Ls(er)&&(er=null),ho.forEach(ih),po.forEach(ih)}function mo(r,o){r.blockedOn===o&&(r.blockedOn=null,za||(za=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,iy)))}function yo(r){function o(d){return mo(d,r)}if(0<Is.length){mo(Is[0],r);for(var l=1;l<Is.length;l++){var c=Is[l];c.blockedOn===r&&(c.blockedOn=null)}}for(Zn!==null&&mo(Zn,r),Jn!==null&&mo(Jn,r),er!==null&&mo(er,r),ho.forEach(o),po.forEach(o),l=0;l<tr.length;l++)c=tr[l],c.blockedOn===r&&(c.blockedOn=null);for(;0<tr.length&&(l=tr[0],l.blockedOn===null);)rh(l),l.blockedOn===null&&tr.shift()}var pi=P.ReactCurrentBatchConfig,Fs=!0;function oy(r,o,l,c){var d=ze,y=pi.transition;pi.transition=null;try{ze=1,Da(r,o,l,c)}finally{ze=d,pi.transition=y}}function sy(r,o,l,c){var d=ze,y=pi.transition;pi.transition=null;try{ze=4,Da(r,o,l,c)}finally{ze=d,pi.transition=y}}function Da(r,o,l,c){if(Fs){var d=Ia(r,o,l,c);if(d===null)eu(r,o,c,$s,l),nh(r,c);else if(ry(d,r,o,l,c))c.stopPropagation();else if(nh(r,c),o&4&&-1<ny.indexOf(r)){for(;d!==null;){var y=To(d);if(y!==null&&Zf(y),y=Ia(r,o,l,c),y===null&&eu(r,o,c,$s,l),y===d)break;d=y}d!==null&&c.stopPropagation()}else eu(r,o,c,null,l)}}var $s=null;function Ia(r,o,l,c){if($s=null,r=ba(c),r=zr(r),r!==null)if(o=jr(r),o===null)r=null;else if(l=o.tag,l===13){if(r=Hf(o),r!==null)return r;r=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return $s=r,null}function oh(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wm()){case Ma:return 1;case Kf:return 4;case Rs:case Km:return 16;case Gf:return 536870912;default:return 16}default:return 16}}var nr=null,La=null,Us=null;function sh(){if(Us)return Us;var r,o=La,l=o.length,c,d="value"in nr?nr.value:nr.textContent,y=d.length;for(r=0;r<l&&o[r]===d[r];r++);var w=l-r;for(c=1;c<=w&&o[l-c]===d[y-c];c++);return Us=d.slice(r,1<c?1-c:void 0)}function Hs(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function Vs(){return!0}function lh(){return!1}function zt(r){function o(l,c,d,y,w){this._reactName=l,this._targetInst=d,this.type=c,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var E in r)r.hasOwnProperty(E)&&(l=r[E],this[E]=l?l(y):y[E]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Vs:lh,this.isPropagationStopped=lh,this}return G(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Vs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Vs)},persist:function(){},isPersistent:Vs}),o}var gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=zt(gi),vo=G({},gi,{view:0,detail:0}),ly=zt(vo),$a,Ua,_o,qs=G({},vo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Va,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==_o&&(_o&&r.type==="mousemove"?($a=r.screenX-_o.screenX,Ua=r.screenY-_o.screenY):Ua=$a=0,_o=r),$a)},movementY:function(r){return"movementY"in r?r.movementY:Ua}}),ah=zt(qs),ay=G({},qs,{dataTransfer:0}),uy=zt(ay),cy=G({},vo,{relatedTarget:0}),Ha=zt(cy),fy=G({},gi,{animationName:0,elapsedTime:0,pseudoElement:0}),hy=zt(fy),dy=G({},gi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),py=zt(dy),gy=G({},gi,{data:0}),uh=zt(gy),my={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yy={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"},vy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _y(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=vy[r])?!!o[r]:!1}function Va(){return _y}var xy=G({},vo,{key:function(r){if(r.key){var o=my[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=Hs(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?yy[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Va,charCode:function(r){return r.type==="keypress"?Hs(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Hs(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),wy=zt(xy),ky=G({},qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ch=zt(ky),Sy=G({},vo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Va}),Cy=zt(Sy),by=G({},gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ey=zt(by),Py=G({},qs,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Ny=zt(Py),Ty=[9,13,27,32],qa=h&&"CompositionEvent"in window,xo=null;h&&"documentMode"in document&&(xo=document.documentMode);var My=h&&"TextEvent"in window&&!xo,fh=h&&(!qa||xo&&8<xo&&11>=xo),hh=" ",dh=!1;function ph(r,o){switch(r){case"keyup":return Ty.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gh(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var mi=!1;function Oy(r,o){switch(r){case"compositionend":return gh(o);case"keypress":return o.which!==32?null:(dh=!0,hh);case"textInput":return r=o.data,r===hh&&dh?null:r;default:return null}}function Ry(r,o){if(mi)return r==="compositionend"||!qa&&ph(r,o)?(r=sh(),Us=La=nr=null,mi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return fh&&o.locale!=="ko"?null:o.data;default:return null}}var Ay={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 mh(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!Ay[r.type]:o==="textarea"}function yh(r,o,l,c){If(c),o=Gs(o,"onChange"),0<o.length&&(l=new Fa("onChange","change",null,l,c),r.push({event:l,listeners:o}))}var wo=null,ko=null;function jy(r){zh(r,0)}function Qs(r){var o=wi(r);if(bs(o))return r}function zy(r,o){if(r==="change")return o}var vh=!1;if(h){var Qa;if(h){var Ba="oninput"in document;if(!Ba){var _h=document.createElement("div");_h.setAttribute("oninput","return;"),Ba=typeof _h.oninput=="function"}Qa=Ba}else Qa=!1;vh=Qa&&(!document.documentMode||9<document.documentMode)}function xh(){wo&&(wo.detachEvent("onpropertychange",wh),ko=wo=null)}function wh(r){if(r.propertyName==="value"&&Qs(ko)){var o=[];yh(o,ko,r,ba(r)),Uf(jy,o)}}function Dy(r,o,l){r==="focusin"?(xh(),wo=o,ko=l,wo.attachEvent("onpropertychange",wh)):r==="focusout"&&xh()}function Iy(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Qs(ko)}function Ly(r,o){if(r==="click")return Qs(o)}function Fy(r,o){if(r==="input"||r==="change")return Qs(o)}function $y(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var tn=typeof Object.is=="function"?Object.is:$y;function So(r,o){if(tn(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var l=Object.keys(r),c=Object.keys(o);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var d=l[c];if(!p.call(o,d)||!tn(r[d],o[d]))return!1}return!0}function kh(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Sh(r,o){var l=kh(r);r=0;for(var c;l;){if(l.nodeType===3){if(c=r+l.textContent.length,r<=o&&c>=o)return{node:l,offset:o-r};r=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=kh(l)}}function Ch(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?Ch(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function bh(){for(var r=window,o=ui();o instanceof r.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)r=o.contentWindow;else break;o=ui(r.document)}return o}function Wa(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function Uy(r){var o=bh(),l=r.focusedElem,c=r.selectionRange;if(o!==l&&l&&l.ownerDocument&&Ch(l.ownerDocument.documentElement,l)){if(c!==null&&Wa(l)){if(o=c.start,r=c.end,r===void 0&&(r=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(r,l.value.length);else if(r=(o=l.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var d=l.textContent.length,y=Math.min(c.start,d);c=c.end===void 0?y:Math.min(c.end,d),!r.extend&&y>c&&(d=c,c=y,y=d),d=Sh(l,y);var w=Sh(l,c);d&&w&&(r.rangeCount!==1||r.anchorNode!==d.node||r.anchorOffset!==d.offset||r.focusNode!==w.node||r.focusOffset!==w.offset)&&(o=o.createRange(),o.setStart(d.node,d.offset),r.removeAllRanges(),y>c?(r.addRange(o),r.extend(w.node,w.offset)):(o.setEnd(w.node,w.offset),r.addRange(o)))}}for(o=[],r=l;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)r=o[l],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var Hy=h&&"documentMode"in document&&11>=document.documentMode,yi=null,Ka=null,Co=null,Ga=!1;function Eh(r,o,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ga||yi==null||yi!==ui(c)||(c=yi,"selectionStart"in c&&Wa(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Co&&So(Co,c)||(Co=c,c=Gs(Ka,"onSelect"),0<c.length&&(o=new Fa("onSelect","select",null,o,l),r.push({event:o,listeners:c}),o.target=yi)))}function Bs(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var vi={animationend:Bs("Animation","AnimationEnd"),animationiteration:Bs("Animation","AnimationIteration"),animationstart:Bs("Animation","AnimationStart"),transitionend:Bs("Transition","TransitionEnd")},Xa={},Ph={};h&&(Ph=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function Ws(r){if(Xa[r])return Xa[r];if(!vi[r])return r;var o=vi[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in Ph)return Xa[r]=o[l];return r}var Nh=Ws("animationend"),Th=Ws("animationiteration"),Mh=Ws("animationstart"),Oh=Ws("transitionend"),Rh=new Map,Ah="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function rr(r,o){Rh.set(r,o),u(o,[r])}for(var Ya=0;Ya<Ah.length;Ya++){var Za=Ah[Ya],Vy=Za.toLowerCase(),qy=Za[0].toUpperCase()+Za.slice(1);rr(Vy,"on"+qy)}rr(Nh,"onAnimationEnd"),rr(Th,"onAnimationIteration"),rr(Mh,"onAnimationStart"),rr("dblclick","onDoubleClick"),rr("focusin","onFocus"),rr("focusout","onBlur"),rr(Oh,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bo="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(" "),Qy=new Set("cancel close invalid load scroll toggle".split(" ").concat(bo));function jh(r,o,l){var c=r.type||"unknown-event";r.currentTarget=l,Vm(c,o,void 0,r),r.currentTarget=null}function zh(r,o){o=(o&4)!==0;for(var l=0;l<r.length;l++){var c=r[l],d=c.event;c=c.listeners;e:{var y=void 0;if(o)for(var w=c.length-1;0<=w;w--){var E=c[w],M=E.instance,V=E.currentTarget;if(E=E.listener,M!==y&&d.isPropagationStopped())break e;jh(d,E,V),y=M}else for(w=0;w<c.length;w++){if(E=c[w],M=E.instance,V=E.currentTarget,E=E.listener,M!==y&&d.isPropagationStopped())break e;jh(d,E,V),y=M}}}if(Os)throw r=Ta,Os=!1,Ta=null,r}function Fe(r,o){var l=o[su];l===void 0&&(l=o[su]=new Set);var c=r+"__bubble";l.has(c)||(Dh(o,r,2,!1),l.add(c))}function Ja(r,o,l){var c=0;o&&(c|=4),Dh(l,r,c,o)}var Ks="_reactListening"+Math.random().toString(36).slice(2);function Eo(r){if(!r[Ks]){r[Ks]=!0,s.forEach(function(l){l!=="selectionchange"&&(Qy.has(l)||Ja(l,!1,r),Ja(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Ks]||(o[Ks]=!0,Ja("selectionchange",!1,o))}}function Dh(r,o,l,c){switch(oh(o)){case 1:var d=oy;break;case 4:d=sy;break;default:d=Da}l=d.bind(null,o,l,r),d=void 0,!Na||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(d=!0),c?d!==void 0?r.addEventListener(o,l,{capture:!0,passive:d}):r.addEventListener(o,l,!0):d!==void 0?r.addEventListener(o,l,{passive:d}):r.addEventListener(o,l,!1)}function eu(r,o,l,c,d){var y=c;if((o&1)===0&&(o&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var E=c.stateNode.containerInfo;if(E===d||E.nodeType===8&&E.parentNode===d)break;if(w===4)for(w=c.return;w!==null;){var M=w.tag;if((M===3||M===4)&&(M=w.stateNode.containerInfo,M===d||M.nodeType===8&&M.parentNode===d))return;w=w.return}for(;E!==null;){if(w=zr(E),w===null)return;if(M=w.tag,M===5||M===6){c=y=w;continue e}E=E.parentNode}}c=c.return}Uf(function(){var V=y,Y=ba(l),ee=[];e:{var X=Rh.get(r);if(X!==void 0){var ae=Fa,he=r;switch(r){case"keypress":if(Hs(l)===0)break e;case"keydown":case"keyup":ae=wy;break;case"focusin":he="focus",ae=Ha;break;case"focusout":he="blur",ae=Ha;break;case"beforeblur":case"afterblur":ae=Ha;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=ah;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=uy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=Cy;break;case Nh:case Th:case Mh:ae=hy;break;case Oh:ae=Ey;break;case"scroll":ae=ly;break;case"wheel":ae=Ny;break;case"copy":case"cut":case"paste":ae=py;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=ch}var pe=(o&4)!==0,Ye=!pe&&r==="scroll",U=pe?X!==null?X+"Capture":null:X;pe=[];for(var j=V,H;j!==null;){H=j;var ne=H.stateNode;if(H.tag===5&&ne!==null&&(H=ne,U!==null&&(ne=lo(j,U),ne!=null&&pe.push(Po(j,ne,H)))),Ye)break;j=j.return}0<pe.length&&(X=new ae(X,he,null,l,Y),ee.push({event:X,listeners:pe}))}}if((o&7)===0){e:{if(X=r==="mouseover"||r==="pointerover",ae=r==="mouseout"||r==="pointerout",X&&l!==Ca&&(he=l.relatedTarget||l.fromElement)&&(zr(he)||he[Tn]))break e;if((ae||X)&&(X=Y.window===Y?Y:(X=Y.ownerDocument)?X.defaultView||X.parentWindow:window,ae?(he=l.relatedTarget||l.toElement,ae=V,he=he?zr(he):null,he!==null&&(Ye=jr(he),he!==Ye||he.tag!==5&&he.tag!==6)&&(he=null)):(ae=null,he=V),ae!==he)){if(pe=ah,ne="onMouseLeave",U="onMouseEnter",j="mouse",(r==="pointerout"||r==="pointerover")&&(pe=ch,ne="onPointerLeave",U="onPointerEnter",j="pointer"),Ye=ae==null?X:wi(ae),H=he==null?X:wi(he),X=new pe(ne,j+"leave",ae,l,Y),X.target=Ye,X.relatedTarget=H,ne=null,zr(Y)===V&&(pe=new pe(U,j+"enter",he,l,Y),pe.target=H,pe.relatedTarget=Ye,ne=pe),Ye=ne,ae&&he)t:{for(pe=ae,U=he,j=0,H=pe;H;H=_i(H))j++;for(H=0,ne=U;ne;ne=_i(ne))H++;for(;0<j-H;)pe=_i(pe),j--;for(;0<H-j;)U=_i(U),H--;for(;j--;){if(pe===U||U!==null&&pe===U.alternate)break t;pe=_i(pe),U=_i(U)}pe=null}else pe=null;ae!==null&&Ih(ee,X,ae,pe,!1),he!==null&&Ye!==null&&Ih(ee,Ye,he,pe,!0)}}e:{if(X=V?wi(V):window,ae=X.nodeName&&X.nodeName.toLowerCase(),ae==="select"||ae==="input"&&X.type==="file")var me=zy;else if(mh(X))if(vh)me=Fy;else{me=Iy;var _e=Dy}else(ae=X.nodeName)&&ae.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(me=Ly);if(me&&(me=me(r,V))){yh(ee,me,l,Y);break e}_e&&_e(r,X,V),r==="focusout"&&(_e=X._wrapperState)&&_e.controlled&&X.type==="number"&&oo(X,"number",X.value)}switch(_e=V?wi(V):window,r){case"focusin":(mh(_e)||_e.contentEditable==="true")&&(yi=_e,Ka=V,Co=null);break;case"focusout":Co=Ka=yi=null;break;case"mousedown":Ga=!0;break;case"contextmenu":case"mouseup":case"dragend":Ga=!1,Eh(ee,l,Y);break;case"selectionchange":if(Hy)break;case"keydown":case"keyup":Eh(ee,l,Y)}var xe;if(qa)e:{switch(r){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else mi?ph(r,l)&&(Se="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Se="onCompositionStart");Se&&(fh&&l.locale!=="ko"&&(mi||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&mi&&(xe=sh()):(nr=Y,La="value"in nr?nr.value:nr.textContent,mi=!0)),_e=Gs(V,Se),0<_e.length&&(Se=new uh(Se,r,null,l,Y),ee.push({event:Se,listeners:_e}),xe?Se.data=xe:(xe=gh(l),xe!==null&&(Se.data=xe)))),(xe=My?Oy(r,l):Ry(r,l))&&(V=Gs(V,"onBeforeInput"),0<V.length&&(Y=new uh("onBeforeInput","beforeinput",null,l,Y),ee.push({event:Y,listeners:V}),Y.data=xe))}zh(ee,o)})}function Po(r,o,l){return{instance:r,listener:o,currentTarget:l}}function Gs(r,o){for(var l=o+"Capture",c=[];r!==null;){var d=r,y=d.stateNode;d.tag===5&&y!==null&&(d=y,y=lo(r,l),y!=null&&c.unshift(Po(r,y,d)),y=lo(r,o),y!=null&&c.push(Po(r,y,d))),r=r.return}return c}function _i(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Ih(r,o,l,c,d){for(var y=o._reactName,w=[];l!==null&&l!==c;){var E=l,M=E.alternate,V=E.stateNode;if(M!==null&&M===c)break;E.tag===5&&V!==null&&(E=V,d?(M=lo(l,y),M!=null&&w.unshift(Po(l,M,E))):d||(M=lo(l,y),M!=null&&w.push(Po(l,M,E)))),l=l.return}w.length!==0&&r.push({event:o,listeners:w})}var By=/\r\n?/g,Wy=/\u0000|\uFFFD/g;function Lh(r){return(typeof r=="string"?r:""+r).replace(By,`
38
+ `).replace(Wy,"")}function Xs(r,o,l){if(o=Lh(o),Lh(r)!==o&&l)throw Error(i(425))}function Ys(){}var tu=null,nu=null;function ru(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var iu=typeof setTimeout=="function"?setTimeout:void 0,Ky=typeof clearTimeout=="function"?clearTimeout:void 0,Fh=typeof Promise=="function"?Promise:void 0,Gy=typeof queueMicrotask=="function"?queueMicrotask:typeof Fh<"u"?function(r){return Fh.resolve(null).then(r).catch(Xy)}:iu;function Xy(r){setTimeout(function(){throw r})}function ou(r,o){var l=o,c=0;do{var d=l.nextSibling;if(r.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(c===0){r.removeChild(d),yo(o);return}c--}else l!=="$"&&l!=="$?"&&l!=="$!"||c++;l=d}while(l);yo(o)}function ir(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function $h(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return r;o--}else l==="/$"&&o++}r=r.previousSibling}return null}var xi=Math.random().toString(36).slice(2),mn="__reactFiber$"+xi,No="__reactProps$"+xi,Tn="__reactContainer$"+xi,su="__reactEvents$"+xi,Yy="__reactListeners$"+xi,Zy="__reactHandles$"+xi;function zr(r){var o=r[mn];if(o)return o;for(var l=r.parentNode;l;){if(o=l[Tn]||l[mn]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=$h(r);r!==null;){if(l=r[mn])return l;r=$h(r)}return o}r=l,l=r.parentNode}return null}function To(r){return r=r[mn]||r[Tn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function wi(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(i(33))}function Zs(r){return r[No]||null}var lu=[],ki=-1;function or(r){return{current:r}}function $e(r){0>ki||(r.current=lu[ki],lu[ki]=null,ki--)}function Le(r,o){ki++,lu[ki]=r.current,r.current=o}var sr={},at=or(sr),bt=or(!1),Dr=sr;function Si(r,o){var l=r.type.contextTypes;if(!l)return sr;var c=r.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var d={},y;for(y in l)d[y]=o[y];return c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=d),d}function Et(r){return r=r.childContextTypes,r!=null}function Js(){$e(bt),$e(at)}function Uh(r,o,l){if(at.current!==sr)throw Error(i(168));Le(at,o),Le(bt,l)}function Hh(r,o,l){var c=r.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return l;c=c.getChildContext();for(var d in c)if(!(d in o))throw Error(i(108,Ee(r)||"Unknown",d));return G({},l,c)}function el(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||sr,Dr=at.current,Le(at,r),Le(bt,bt.current),!0}function Vh(r,o,l){var c=r.stateNode;if(!c)throw Error(i(169));l?(r=Hh(r,o,Dr),c.__reactInternalMemoizedMergedChildContext=r,$e(bt),$e(at),Le(at,r)):$e(bt),Le(bt,l)}var Mn=null,tl=!1,au=!1;function qh(r){Mn===null?Mn=[r]:Mn.push(r)}function Jy(r){tl=!0,qh(r)}function lr(){if(!au&&Mn!==null){au=!0;var r=0,o=ze;try{var l=Mn;for(ze=1;r<l.length;r++){var c=l[r];do c=c(!0);while(c!==null)}Mn=null,tl=!1}catch(d){throw Mn!==null&&(Mn=Mn.slice(r+1)),Bf(Ma,lr),d}finally{ze=o,au=!1}}return null}var Ci=[],bi=0,nl=null,rl=0,Ht=[],Vt=0,Ir=null,On=1,Rn="";function Lr(r,o){Ci[bi++]=rl,Ci[bi++]=nl,nl=r,rl=o}function Qh(r,o,l){Ht[Vt++]=On,Ht[Vt++]=Rn,Ht[Vt++]=Ir,Ir=r;var c=On;r=Rn;var d=32-en(c)-1;c&=~(1<<d),l+=1;var y=32-en(o)+d;if(30<y){var w=d-d%5;y=(c&(1<<w)-1).toString(32),c>>=w,d-=w,On=1<<32-en(o)+d|l<<d|c,Rn=y+r}else On=1<<y|l<<d|c,Rn=r}function uu(r){r.return!==null&&(Lr(r,1),Qh(r,1,0))}function cu(r){for(;r===nl;)nl=Ci[--bi],Ci[bi]=null,rl=Ci[--bi],Ci[bi]=null;for(;r===Ir;)Ir=Ht[--Vt],Ht[Vt]=null,Rn=Ht[--Vt],Ht[Vt]=null,On=Ht[--Vt],Ht[Vt]=null}var Dt=null,It=null,Ve=!1,nn=null;function Bh(r,o){var l=Wt(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=r,o=r.deletions,o===null?(r.deletions=[l],r.flags|=16):o.push(l)}function Wh(r,o){switch(r.tag){case 5:var l=r.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,Dt=r,It=ir(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,Dt=r,It=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=Ir!==null?{id:On,overflow:Rn}:null,r.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=Wt(18,null,null,0),l.stateNode=o,l.return=r,r.child=l,Dt=r,It=null,!0):!1;default:return!1}}function fu(r){return(r.mode&1)!==0&&(r.flags&128)===0}function hu(r){if(Ve){var o=It;if(o){var l=o;if(!Wh(r,o)){if(fu(r))throw Error(i(418));o=ir(l.nextSibling);var c=Dt;o&&Wh(r,o)?Bh(c,l):(r.flags=r.flags&-4097|2,Ve=!1,Dt=r)}}else{if(fu(r))throw Error(i(418));r.flags=r.flags&-4097|2,Ve=!1,Dt=r}}}function Kh(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Dt=r}function il(r){if(r!==Dt)return!1;if(!Ve)return Kh(r),Ve=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!ru(r.type,r.memoizedProps)),o&&(o=It)){if(fu(r))throw Gh(),Error(i(418));for(;o;)Bh(r,o),o=ir(o.nextSibling)}if(Kh(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"){if(o===0){It=ir(r.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}r=r.nextSibling}It=null}}else It=Dt?ir(r.stateNode.nextSibling):null;return!0}function Gh(){for(var r=It;r;)r=ir(r.nextSibling)}function Ei(){It=Dt=null,Ve=!1}function du(r){nn===null?nn=[r]:nn.push(r)}var ev=P.ReactCurrentBatchConfig;function Mo(r,o,l){if(r=l.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(i(309));var c=l.stateNode}if(!c)throw Error(i(147,r));var d=c,y=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===y?o.ref:(o=function(w){var E=d.refs;w===null?delete E[y]:E[y]=w},o._stringRef=y,o)}if(typeof r!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,r))}return r}function ol(r,o){throw r=Object.prototype.toString.call(o),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function Xh(r){var o=r._init;return o(r._payload)}function Yh(r){function o(U,j){if(r){var H=U.deletions;H===null?(U.deletions=[j],U.flags|=16):H.push(j)}}function l(U,j){if(!r)return null;for(;j!==null;)o(U,j),j=j.sibling;return null}function c(U,j){for(U=new Map;j!==null;)j.key!==null?U.set(j.key,j):U.set(j.index,j),j=j.sibling;return U}function d(U,j){return U=gr(U,j),U.index=0,U.sibling=null,U}function y(U,j,H){return U.index=H,r?(H=U.alternate,H!==null?(H=H.index,H<j?(U.flags|=2,j):H):(U.flags|=2,j)):(U.flags|=1048576,j)}function w(U){return r&&U.alternate===null&&(U.flags|=2),U}function E(U,j,H,ne){return j===null||j.tag!==6?(j=ic(H,U.mode,ne),j.return=U,j):(j=d(j,H),j.return=U,j)}function M(U,j,H,ne){var me=H.type;return me===F?Y(U,j,H.props.children,ne,H.key):j!==null&&(j.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===W&&Xh(me)===j.type)?(ne=d(j,H.props),ne.ref=Mo(U,j,H),ne.return=U,ne):(ne=Tl(H.type,H.key,H.props,null,U.mode,ne),ne.ref=Mo(U,j,H),ne.return=U,ne)}function V(U,j,H,ne){return j===null||j.tag!==4||j.stateNode.containerInfo!==H.containerInfo||j.stateNode.implementation!==H.implementation?(j=oc(H,U.mode,ne),j.return=U,j):(j=d(j,H.children||[]),j.return=U,j)}function Y(U,j,H,ne,me){return j===null||j.tag!==7?(j=Br(H,U.mode,ne,me),j.return=U,j):(j=d(j,H),j.return=U,j)}function ee(U,j,H){if(typeof j=="string"&&j!==""||typeof j=="number")return j=ic(""+j,U.mode,H),j.return=U,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case N:return H=Tl(j.type,j.key,j.props,null,U.mode,H),H.ref=Mo(U,null,j),H.return=U,H;case z:return j=oc(j,U.mode,H),j.return=U,j;case W:var ne=j._init;return ee(U,ne(j._payload),H)}if(Ar(j)||J(j))return j=Br(j,U.mode,H,null),j.return=U,j;ol(U,j)}return null}function X(U,j,H,ne){var me=j!==null?j.key:null;if(typeof H=="string"&&H!==""||typeof H=="number")return me!==null?null:E(U,j,""+H,ne);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case N:return H.key===me?M(U,j,H,ne):null;case z:return H.key===me?V(U,j,H,ne):null;case W:return me=H._init,X(U,j,me(H._payload),ne)}if(Ar(H)||J(H))return me!==null?null:Y(U,j,H,ne,null);ol(U,H)}return null}function ae(U,j,H,ne,me){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return U=U.get(H)||null,E(j,U,""+ne,me);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case N:return U=U.get(ne.key===null?H:ne.key)||null,M(j,U,ne,me);case z:return U=U.get(ne.key===null?H:ne.key)||null,V(j,U,ne,me);case W:var _e=ne._init;return ae(U,j,H,_e(ne._payload),me)}if(Ar(ne)||J(ne))return U=U.get(H)||null,Y(j,U,ne,me,null);ol(j,ne)}return null}function he(U,j,H,ne){for(var me=null,_e=null,xe=j,Se=j=0,it=null;xe!==null&&Se<H.length;Se++){xe.index>Se?(it=xe,xe=null):it=xe.sibling;var Re=X(U,xe,H[Se],ne);if(Re===null){xe===null&&(xe=it);break}r&&xe&&Re.alternate===null&&o(U,xe),j=y(Re,j,Se),_e===null?me=Re:_e.sibling=Re,_e=Re,xe=it}if(Se===H.length)return l(U,xe),Ve&&Lr(U,Se),me;if(xe===null){for(;Se<H.length;Se++)xe=ee(U,H[Se],ne),xe!==null&&(j=y(xe,j,Se),_e===null?me=xe:_e.sibling=xe,_e=xe);return Ve&&Lr(U,Se),me}for(xe=c(U,xe);Se<H.length;Se++)it=ae(xe,U,Se,H[Se],ne),it!==null&&(r&&it.alternate!==null&&xe.delete(it.key===null?Se:it.key),j=y(it,j,Se),_e===null?me=it:_e.sibling=it,_e=it);return r&&xe.forEach(function(mr){return o(U,mr)}),Ve&&Lr(U,Se),me}function pe(U,j,H,ne){var me=J(H);if(typeof me!="function")throw Error(i(150));if(H=me.call(H),H==null)throw Error(i(151));for(var _e=me=null,xe=j,Se=j=0,it=null,Re=H.next();xe!==null&&!Re.done;Se++,Re=H.next()){xe.index>Se?(it=xe,xe=null):it=xe.sibling;var mr=X(U,xe,Re.value,ne);if(mr===null){xe===null&&(xe=it);break}r&&xe&&mr.alternate===null&&o(U,xe),j=y(mr,j,Se),_e===null?me=mr:_e.sibling=mr,_e=mr,xe=it}if(Re.done)return l(U,xe),Ve&&Lr(U,Se),me;if(xe===null){for(;!Re.done;Se++,Re=H.next())Re=ee(U,Re.value,ne),Re!==null&&(j=y(Re,j,Se),_e===null?me=Re:_e.sibling=Re,_e=Re);return Ve&&Lr(U,Se),me}for(xe=c(U,xe);!Re.done;Se++,Re=H.next())Re=ae(xe,U,Se,Re.value,ne),Re!==null&&(r&&Re.alternate!==null&&xe.delete(Re.key===null?Se:Re.key),j=y(Re,j,Se),_e===null?me=Re:_e.sibling=Re,_e=Re);return r&&xe.forEach(function(Av){return o(U,Av)}),Ve&&Lr(U,Se),me}function Ye(U,j,H,ne){if(typeof H=="object"&&H!==null&&H.type===F&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case N:e:{for(var me=H.key,_e=j;_e!==null;){if(_e.key===me){if(me=H.type,me===F){if(_e.tag===7){l(U,_e.sibling),j=d(_e,H.props.children),j.return=U,U=j;break e}}else if(_e.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===W&&Xh(me)===_e.type){l(U,_e.sibling),j=d(_e,H.props),j.ref=Mo(U,_e,H),j.return=U,U=j;break e}l(U,_e);break}else o(U,_e);_e=_e.sibling}H.type===F?(j=Br(H.props.children,U.mode,ne,H.key),j.return=U,U=j):(ne=Tl(H.type,H.key,H.props,null,U.mode,ne),ne.ref=Mo(U,j,H),ne.return=U,U=ne)}return w(U);case z:e:{for(_e=H.key;j!==null;){if(j.key===_e)if(j.tag===4&&j.stateNode.containerInfo===H.containerInfo&&j.stateNode.implementation===H.implementation){l(U,j.sibling),j=d(j,H.children||[]),j.return=U,U=j;break e}else{l(U,j);break}else o(U,j);j=j.sibling}j=oc(H,U.mode,ne),j.return=U,U=j}return w(U);case W:return _e=H._init,Ye(U,j,_e(H._payload),ne)}if(Ar(H))return he(U,j,H,ne);if(J(H))return pe(U,j,H,ne);ol(U,H)}return typeof H=="string"&&H!==""||typeof H=="number"?(H=""+H,j!==null&&j.tag===6?(l(U,j.sibling),j=d(j,H),j.return=U,U=j):(l(U,j),j=ic(H,U.mode,ne),j.return=U,U=j),w(U)):l(U,j)}return Ye}var Pi=Yh(!0),Zh=Yh(!1),sl=or(null),ll=null,Ni=null,pu=null;function gu(){pu=Ni=ll=null}function mu(r){var o=sl.current;$e(sl),r._currentValue=o}function yu(r,o,l){for(;r!==null;){var c=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),r===l)break;r=r.return}}function Ti(r,o){ll=r,pu=Ni=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(Pt=!0),r.firstContext=null)}function qt(r){var o=r._currentValue;if(pu!==r)if(r={context:r,memoizedValue:o,next:null},Ni===null){if(ll===null)throw Error(i(308));Ni=r,ll.dependencies={lanes:0,firstContext:r}}else Ni=Ni.next=r;return o}var Fr=null;function vu(r){Fr===null?Fr=[r]:Fr.push(r)}function Jh(r,o,l,c){var d=o.interleaved;return d===null?(l.next=l,vu(o)):(l.next=d.next,d.next=l),o.interleaved=l,An(r,c)}function An(r,o){r.lanes|=o;var l=r.alternate;for(l!==null&&(l.lanes|=o),l=r,r=r.return;r!==null;)r.childLanes|=o,l=r.alternate,l!==null&&(l.childLanes|=o),l=r,r=r.return;return l.tag===3?l.stateNode:null}var ar=!1;function _u(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ed(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function jn(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function ur(r,o,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Oe&2)!==0){var d=c.pending;return d===null?o.next=o:(o.next=d.next,d.next=o),c.pending=o,An(r,l)}return d=c.interleaved,d===null?(o.next=o,vu(c)):(o.next=d.next,d.next=o),c.interleaved=o,An(r,l)}function al(r,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var c=o.lanes;c&=r.pendingLanes,l|=c,o.lanes=l,Aa(r,l)}}function td(r,o){var l=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var d=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var w={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};y===null?d=y=w:y=y.next=w,l=l.next}while(l!==null);y===null?d=y=o:y=y.next=o}else d=y=o;l={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:y,shared:c.shared,effects:c.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=o:r.next=o,l.lastBaseUpdate=o}function ul(r,o,l,c){var d=r.updateQueue;ar=!1;var y=d.firstBaseUpdate,w=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var M=E,V=M.next;M.next=null,w===null?y=V:w.next=V,w=M;var Y=r.alternate;Y!==null&&(Y=Y.updateQueue,E=Y.lastBaseUpdate,E!==w&&(E===null?Y.firstBaseUpdate=V:E.next=V,Y.lastBaseUpdate=M))}if(y!==null){var ee=d.baseState;w=0,Y=V=M=null,E=y;do{var X=E.lane,ae=E.eventTime;if((c&X)===X){Y!==null&&(Y=Y.next={eventTime:ae,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var he=r,pe=E;switch(X=o,ae=l,pe.tag){case 1:if(he=pe.payload,typeof he=="function"){ee=he.call(ae,ee,X);break e}ee=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=pe.payload,X=typeof he=="function"?he.call(ae,ee,X):he,X==null)break e;ee=G({},ee,X);break e;case 2:ar=!0}}E.callback!==null&&E.lane!==0&&(r.flags|=64,X=d.effects,X===null?d.effects=[E]:X.push(E))}else ae={eventTime:ae,lane:X,tag:E.tag,payload:E.payload,callback:E.callback,next:null},Y===null?(V=Y=ae,M=ee):Y=Y.next=ae,w|=X;if(E=E.next,E===null){if(E=d.shared.pending,E===null)break;X=E,E=X.next,X.next=null,d.lastBaseUpdate=X,d.shared.pending=null}}while(!0);if(Y===null&&(M=ee),d.baseState=M,d.firstBaseUpdate=V,d.lastBaseUpdate=Y,o=d.shared.interleaved,o!==null){d=o;do w|=d.lane,d=d.next;while(d!==o)}else y===null&&(d.shared.lanes=0);Hr|=w,r.lanes=w,r.memoizedState=ee}}function nd(r,o,l){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var c=r[o],d=c.callback;if(d!==null){if(c.callback=null,c=l,typeof d!="function")throw Error(i(191,d));d.call(c)}}}var Oo={},yn=or(Oo),Ro=or(Oo),Ao=or(Oo);function $r(r){if(r===Oo)throw Error(i(174));return r}function xu(r,o){switch(Le(Ao,o),Le(Ro,r),Le(yn,Oo),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:St(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=St(o,r)}$e(yn),Le(yn,o)}function Mi(){$e(yn),$e(Ro),$e(Ao)}function rd(r){$r(Ao.current);var o=$r(yn.current),l=St(o,r.type);o!==l&&(Le(Ro,r),Le(yn,l))}function wu(r){Ro.current===r&&($e(yn),$e(Ro))}var Be=or(0);function cl(r){for(var o=r;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var ku=[];function Su(){for(var r=0;r<ku.length;r++)ku[r]._workInProgressVersionPrimary=null;ku.length=0}var fl=P.ReactCurrentDispatcher,Cu=P.ReactCurrentBatchConfig,Ur=0,We=null,Je=null,nt=null,hl=!1,jo=!1,zo=0,tv=0;function ut(){throw Error(i(321))}function bu(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!tn(r[l],o[l]))return!1;return!0}function Eu(r,o,l,c,d,y){if(Ur=y,We=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,fl.current=r===null||r.memoizedState===null?ov:sv,r=l(c,d),jo){y=0;do{if(jo=!1,zo=0,25<=y)throw Error(i(301));y+=1,nt=Je=null,o.updateQueue=null,fl.current=lv,r=l(c,d)}while(jo)}if(fl.current=gl,o=Je!==null&&Je.next!==null,Ur=0,nt=Je=We=null,hl=!1,o)throw Error(i(300));return r}function Pu(){var r=zo!==0;return zo=0,r}function vn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?We.memoizedState=nt=r:nt=nt.next=r,nt}function Qt(){if(Je===null){var r=We.alternate;r=r!==null?r.memoizedState:null}else r=Je.next;var o=nt===null?We.memoizedState:nt.next;if(o!==null)nt=o,Je=r;else{if(r===null)throw Error(i(310));Je=r,r={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},nt===null?We.memoizedState=nt=r:nt=nt.next=r}return nt}function Do(r,o){return typeof o=="function"?o(r):o}function Nu(r){var o=Qt(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=Je,d=c.baseQueue,y=l.pending;if(y!==null){if(d!==null){var w=d.next;d.next=y.next,y.next=w}c.baseQueue=d=y,l.pending=null}if(d!==null){y=d.next,c=c.baseState;var E=w=null,M=null,V=y;do{var Y=V.lane;if((Ur&Y)===Y)M!==null&&(M=M.next={lane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),c=V.hasEagerState?V.eagerState:r(c,V.action);else{var ee={lane:Y,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null};M===null?(E=M=ee,w=c):M=M.next=ee,We.lanes|=Y,Hr|=Y}V=V.next}while(V!==null&&V!==y);M===null?w=c:M.next=E,tn(c,o.memoizedState)||(Pt=!0),o.memoizedState=c,o.baseState=w,o.baseQueue=M,l.lastRenderedState=c}if(r=l.interleaved,r!==null){d=r;do y=d.lane,We.lanes|=y,Hr|=y,d=d.next;while(d!==r)}else d===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function Tu(r){var o=Qt(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=l.dispatch,d=l.pending,y=o.memoizedState;if(d!==null){l.pending=null;var w=d=d.next;do y=r(y,w.action),w=w.next;while(w!==d);tn(y,o.memoizedState)||(Pt=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),l.lastRenderedState=y}return[y,c]}function id(){}function od(r,o){var l=We,c=Qt(),d=o(),y=!tn(c.memoizedState,d);if(y&&(c.memoizedState=d,Pt=!0),c=c.queue,Mu(ad.bind(null,l,c,r),[r]),c.getSnapshot!==o||y||nt!==null&&nt.memoizedState.tag&1){if(l.flags|=2048,Io(9,ld.bind(null,l,c,d,o),void 0,null),rt===null)throw Error(i(349));(Ur&30)!==0||sd(l,o,d)}return d}function sd(r,o,l){r.flags|=16384,r={getSnapshot:o,value:l},o=We.updateQueue,o===null?(o={lastEffect:null,stores:null},We.updateQueue=o,o.stores=[r]):(l=o.stores,l===null?o.stores=[r]:l.push(r))}function ld(r,o,l,c){o.value=l,o.getSnapshot=c,ud(o)&&cd(r)}function ad(r,o,l){return l(function(){ud(o)&&cd(r)})}function ud(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!tn(r,l)}catch{return!0}}function cd(r){var o=An(r,1);o!==null&&ln(o,r,1,-1)}function fd(r){var o=vn();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:r},o.queue=r,r=r.dispatch=iv.bind(null,We,r),[o.memoizedState,r]}function Io(r,o,l,c){return r={tag:r,create:o,destroy:l,deps:c,next:null},o=We.updateQueue,o===null?(o={lastEffect:null,stores:null},We.updateQueue=o,o.lastEffect=r.next=r):(l=o.lastEffect,l===null?o.lastEffect=r.next=r:(c=l.next,l.next=r,r.next=c,o.lastEffect=r)),r}function hd(){return Qt().memoizedState}function dl(r,o,l,c){var d=vn();We.flags|=r,d.memoizedState=Io(1|o,l,void 0,c===void 0?null:c)}function pl(r,o,l,c){var d=Qt();c=c===void 0?null:c;var y=void 0;if(Je!==null){var w=Je.memoizedState;if(y=w.destroy,c!==null&&bu(c,w.deps)){d.memoizedState=Io(o,l,y,c);return}}We.flags|=r,d.memoizedState=Io(1|o,l,y,c)}function dd(r,o){return dl(8390656,8,r,o)}function Mu(r,o){return pl(2048,8,r,o)}function pd(r,o){return pl(4,2,r,o)}function gd(r,o){return pl(4,4,r,o)}function md(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function yd(r,o,l){return l=l!=null?l.concat([r]):null,pl(4,4,md.bind(null,o,r),l)}function Ou(){}function vd(r,o){var l=Qt();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&bu(o,c[1])?c[0]:(l.memoizedState=[r,o],r)}function _d(r,o){var l=Qt();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&bu(o,c[1])?c[0]:(r=r(),l.memoizedState=[r,o],r)}function xd(r,o,l){return(Ur&21)===0?(r.baseState&&(r.baseState=!1,Pt=!0),r.memoizedState=l):(tn(l,o)||(l=Xf(),We.lanes|=l,Hr|=l,r.baseState=!0),o)}function nv(r,o){var l=ze;ze=l!==0&&4>l?l:4,r(!0);var c=Cu.transition;Cu.transition={};try{r(!1),o()}finally{ze=l,Cu.transition=c}}function wd(){return Qt().memoizedState}function rv(r,o,l){var c=dr(r);if(l={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null},kd(r))Sd(o,l);else if(l=Jh(r,o,l,c),l!==null){var d=yt();ln(l,r,c,d),Cd(l,o,c)}}function iv(r,o,l){var c=dr(r),d={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null};if(kd(r))Sd(o,d);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var w=o.lastRenderedState,E=y(w,l);if(d.hasEagerState=!0,d.eagerState=E,tn(E,w)){var M=o.interleaved;M===null?(d.next=d,vu(o)):(d.next=M.next,M.next=d),o.interleaved=d;return}}catch{}finally{}l=Jh(r,o,d,c),l!==null&&(d=yt(),ln(l,r,c,d),Cd(l,o,c))}}function kd(r){var o=r.alternate;return r===We||o!==null&&o===We}function Sd(r,o){jo=hl=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function Cd(r,o,l){if((l&4194240)!==0){var c=o.lanes;c&=r.pendingLanes,l|=c,o.lanes=l,Aa(r,l)}}var gl={readContext:qt,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},ov={readContext:qt,useCallback:function(r,o){return vn().memoizedState=[r,o===void 0?null:o],r},useContext:qt,useEffect:dd,useImperativeHandle:function(r,o,l){return l=l!=null?l.concat([r]):null,dl(4194308,4,md.bind(null,o,r),l)},useLayoutEffect:function(r,o){return dl(4194308,4,r,o)},useInsertionEffect:function(r,o){return dl(4,2,r,o)},useMemo:function(r,o){var l=vn();return o=o===void 0?null:o,r=r(),l.memoizedState=[r,o],r},useReducer:function(r,o,l){var c=vn();return o=l!==void 0?l(o):o,c.memoizedState=c.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},c.queue=r,r=r.dispatch=rv.bind(null,We,r),[c.memoizedState,r]},useRef:function(r){var o=vn();return r={current:r},o.memoizedState=r},useState:fd,useDebugValue:Ou,useDeferredValue:function(r){return vn().memoizedState=r},useTransition:function(){var r=fd(!1),o=r[0];return r=nv.bind(null,r[1]),vn().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,l){var c=We,d=vn();if(Ve){if(l===void 0)throw Error(i(407));l=l()}else{if(l=o(),rt===null)throw Error(i(349));(Ur&30)!==0||sd(c,o,l)}d.memoizedState=l;var y={value:l,getSnapshot:o};return d.queue=y,dd(ad.bind(null,c,y,r),[r]),c.flags|=2048,Io(9,ld.bind(null,c,y,l,o),void 0,null),l},useId:function(){var r=vn(),o=rt.identifierPrefix;if(Ve){var l=Rn,c=On;l=(c&~(1<<32-en(c)-1)).toString(32)+l,o=":"+o+"R"+l,l=zo++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=tv++,o=":"+o+"r"+l.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},sv={readContext:qt,useCallback:vd,useContext:qt,useEffect:Mu,useImperativeHandle:yd,useInsertionEffect:pd,useLayoutEffect:gd,useMemo:_d,useReducer:Nu,useRef:hd,useState:function(){return Nu(Do)},useDebugValue:Ou,useDeferredValue:function(r){var o=Qt();return xd(o,Je.memoizedState,r)},useTransition:function(){var r=Nu(Do)[0],o=Qt().memoizedState;return[r,o]},useMutableSource:id,useSyncExternalStore:od,useId:wd,unstable_isNewReconciler:!1},lv={readContext:qt,useCallback:vd,useContext:qt,useEffect:Mu,useImperativeHandle:yd,useInsertionEffect:pd,useLayoutEffect:gd,useMemo:_d,useReducer:Tu,useRef:hd,useState:function(){return Tu(Do)},useDebugValue:Ou,useDeferredValue:function(r){var o=Qt();return Je===null?o.memoizedState=r:xd(o,Je.memoizedState,r)},useTransition:function(){var r=Tu(Do)[0],o=Qt().memoizedState;return[r,o]},useMutableSource:id,useSyncExternalStore:od,useId:wd,unstable_isNewReconciler:!1};function rn(r,o){if(r&&r.defaultProps){o=G({},o),r=r.defaultProps;for(var l in r)o[l]===void 0&&(o[l]=r[l]);return o}return o}function Ru(r,o,l,c){o=r.memoizedState,l=l(c,o),l=l==null?o:G({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var ml={isMounted:function(r){return(r=r._reactInternals)?jr(r)===r:!1},enqueueSetState:function(r,o,l){r=r._reactInternals;var c=yt(),d=dr(r),y=jn(c,d);y.payload=o,l!=null&&(y.callback=l),o=ur(r,y,d),o!==null&&(ln(o,r,d,c),al(o,r,d))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var c=yt(),d=dr(r),y=jn(c,d);y.tag=1,y.payload=o,l!=null&&(y.callback=l),o=ur(r,y,d),o!==null&&(ln(o,r,d,c),al(o,r,d))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=yt(),c=dr(r),d=jn(l,c);d.tag=2,o!=null&&(d.callback=o),o=ur(r,d,c),o!==null&&(ln(o,r,c,l),al(o,r,c))}};function bd(r,o,l,c,d,y,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,y,w):o.prototype&&o.prototype.isPureReactComponent?!So(l,c)||!So(d,y):!0}function Ed(r,o,l){var c=!1,d=sr,y=o.contextType;return typeof y=="object"&&y!==null?y=qt(y):(d=Et(o)?Dr:at.current,c=o.contextTypes,y=(c=c!=null)?Si(r,d):sr),o=new o(l,y),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=ml,r.stateNode=o,o._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=d,r.__reactInternalMemoizedMaskedChildContext=y),o}function Pd(r,o,l,c){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,c),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,c),o.state!==r&&ml.enqueueReplaceState(o,o.state,null)}function Au(r,o,l,c){var d=r.stateNode;d.props=l,d.state=r.memoizedState,d.refs={},_u(r);var y=o.contextType;typeof y=="object"&&y!==null?d.context=qt(y):(y=Et(o)?Dr:at.current,d.context=Si(r,y)),d.state=r.memoizedState,y=o.getDerivedStateFromProps,typeof y=="function"&&(Ru(r,o,y,l),d.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(o=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),o!==d.state&&ml.enqueueReplaceState(d,d.state,null),ul(r,l,d,c),d.state=r.memoizedState),typeof d.componentDidMount=="function"&&(r.flags|=4194308)}function Oi(r,o){try{var l="",c=o;do l+=ke(c),c=c.return;while(c);var d=l}catch(y){d=`
39
+ Error generating stack: `+y.message+`
40
+ `+y.stack}return{value:r,source:o,stack:d,digest:null}}function ju(r,o,l){return{value:r,source:null,stack:l??null,digest:o??null}}function zu(r,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var av=typeof WeakMap=="function"?WeakMap:Map;function Nd(r,o,l){l=jn(-1,l),l.tag=3,l.payload={element:null};var c=o.value;return l.callback=function(){Sl||(Sl=!0,Xu=c),zu(r,o)},l}function Td(r,o,l){l=jn(-1,l),l.tag=3;var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var d=o.value;l.payload=function(){return c(d)},l.callback=function(){zu(r,o)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(l.callback=function(){zu(r,o),typeof c!="function"&&(fr===null?fr=new Set([this]):fr.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})}),l}function Md(r,o,l){var c=r.pingCache;if(c===null){c=r.pingCache=new av;var d=new Set;c.set(o,d)}else d=c.get(o),d===void 0&&(d=new Set,c.set(o,d));d.has(l)||(d.add(l),r=kv.bind(null,r,o,l),o.then(r,r))}function Od(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function Rd(r,o,l,c,d){return(r.mode&1)===0?(r===o?r.flags|=65536:(r.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=jn(-1,1),o.tag=2,ur(l,o,1))),l.lanes|=1),r):(r.flags|=65536,r.lanes=d,r)}var uv=P.ReactCurrentOwner,Pt=!1;function mt(r,o,l,c){o.child=r===null?Zh(o,null,l,c):Pi(o,r.child,l,c)}function Ad(r,o,l,c,d){l=l.render;var y=o.ref;return Ti(o,d),c=Eu(r,o,l,c,y,d),l=Pu(),r!==null&&!Pt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,zn(r,o,d)):(Ve&&l&&uu(o),o.flags|=1,mt(r,o,c,d),o.child)}function jd(r,o,l,c,d){if(r===null){var y=l.type;return typeof y=="function"&&!rc(y)&&y.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=y,zd(r,o,y,c,d)):(r=Tl(l.type,null,c,o,o.mode,d),r.ref=o.ref,r.return=o,o.child=r)}if(y=r.child,(r.lanes&d)===0){var w=y.memoizedProps;if(l=l.compare,l=l!==null?l:So,l(w,c)&&r.ref===o.ref)return zn(r,o,d)}return o.flags|=1,r=gr(y,c),r.ref=o.ref,r.return=o,o.child=r}function zd(r,o,l,c,d){if(r!==null){var y=r.memoizedProps;if(So(y,c)&&r.ref===o.ref)if(Pt=!1,o.pendingProps=c=y,(r.lanes&d)!==0)(r.flags&131072)!==0&&(Pt=!0);else return o.lanes=r.lanes,zn(r,o,d)}return Du(r,o,l,c,d)}function Dd(r,o,l){var c=o.pendingProps,d=c.children,y=r!==null?r.memoizedState:null;if(c.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Le(Ai,Lt),Lt|=l;else{if((l&1073741824)===0)return r=y!==null?y.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Le(Ai,Lt),Lt|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=y!==null?y.baseLanes:l,Le(Ai,Lt),Lt|=c}else y!==null?(c=y.baseLanes|l,o.memoizedState=null):c=l,Le(Ai,Lt),Lt|=c;return mt(r,o,d,l),o.child}function Id(r,o){var l=o.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function Du(r,o,l,c,d){var y=Et(l)?Dr:at.current;return y=Si(o,y),Ti(o,d),l=Eu(r,o,l,c,y,d),c=Pu(),r!==null&&!Pt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,zn(r,o,d)):(Ve&&c&&uu(o),o.flags|=1,mt(r,o,l,d),o.child)}function Ld(r,o,l,c,d){if(Et(l)){var y=!0;el(o)}else y=!1;if(Ti(o,d),o.stateNode===null)vl(r,o),Ed(o,l,c),Au(o,l,c,d),c=!0;else if(r===null){var w=o.stateNode,E=o.memoizedProps;w.props=E;var M=w.context,V=l.contextType;typeof V=="object"&&V!==null?V=qt(V):(V=Et(l)?Dr:at.current,V=Si(o,V));var Y=l.getDerivedStateFromProps,ee=typeof Y=="function"||typeof w.getSnapshotBeforeUpdate=="function";ee||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(E!==c||M!==V)&&Pd(o,w,c,V),ar=!1;var X=o.memoizedState;w.state=X,ul(o,c,w,d),M=o.memoizedState,E!==c||X!==M||bt.current||ar?(typeof Y=="function"&&(Ru(o,l,Y,c),M=o.memoizedState),(E=ar||bd(o,l,E,c,X,M,V))?(ee||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(o.flags|=4194308)):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=M),w.props=c,w.state=M,w.context=V,c=E):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{w=o.stateNode,ed(r,o),E=o.memoizedProps,V=o.type===o.elementType?E:rn(o.type,E),w.props=V,ee=o.pendingProps,X=w.context,M=l.contextType,typeof M=="object"&&M!==null?M=qt(M):(M=Et(l)?Dr:at.current,M=Si(o,M));var ae=l.getDerivedStateFromProps;(Y=typeof ae=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(E!==ee||X!==M)&&Pd(o,w,c,M),ar=!1,X=o.memoizedState,w.state=X,ul(o,c,w,d);var he=o.memoizedState;E!==ee||X!==he||bt.current||ar?(typeof ae=="function"&&(Ru(o,l,ae,c),he=o.memoizedState),(V=ar||bd(o,l,V,c,X,he,M)||!1)?(Y||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(c,he,M),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(c,he,M)),typeof w.componentDidUpdate=="function"&&(o.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof w.componentDidUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=he),w.props=c,w.state=he,w.context=M,c=V):(typeof w.componentDidUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&X===r.memoizedState||(o.flags|=1024),c=!1)}return Iu(r,o,l,c,y,d)}function Iu(r,o,l,c,d,y){Id(r,o);var w=(o.flags&128)!==0;if(!c&&!w)return d&&Vh(o,l,!1),zn(r,o,y);c=o.stateNode,uv.current=o;var E=w&&typeof l.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,r!==null&&w?(o.child=Pi(o,r.child,null,y),o.child=Pi(o,null,E,y)):mt(r,o,E,y),o.memoizedState=c.state,d&&Vh(o,l,!0),o.child}function Fd(r){var o=r.stateNode;o.pendingContext?Uh(r,o.pendingContext,o.pendingContext!==o.context):o.context&&Uh(r,o.context,!1),xu(r,o.containerInfo)}function $d(r,o,l,c,d){return Ei(),du(d),o.flags|=256,mt(r,o,l,c),o.child}var Lu={dehydrated:null,treeContext:null,retryLane:0};function Fu(r){return{baseLanes:r,cachePool:null,transitions:null}}function Ud(r,o,l){var c=o.pendingProps,d=Be.current,y=!1,w=(o.flags&128)!==0,E;if((E=w)||(E=r!==null&&r.memoizedState===null?!1:(d&2)!==0),E?(y=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(d|=1),Le(Be,d&1),r===null)return hu(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((o.mode&1)===0?o.lanes=1:r.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(w=c.children,r=c.fallback,y?(c=o.mode,y=o.child,w={mode:"hidden",children:w},(c&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=w):y=Ml(w,c,0,null),r=Br(r,c,l,null),y.return=o,r.return=o,y.sibling=r,o.child=y,o.child.memoizedState=Fu(l),o.memoizedState=Lu,r):$u(o,w));if(d=r.memoizedState,d!==null&&(E=d.dehydrated,E!==null))return cv(r,o,w,c,E,d,l);if(y){y=c.fallback,w=o.mode,d=r.child,E=d.sibling;var M={mode:"hidden",children:c.children};return(w&1)===0&&o.child!==d?(c=o.child,c.childLanes=0,c.pendingProps=M,o.deletions=null):(c=gr(d,M),c.subtreeFlags=d.subtreeFlags&14680064),E!==null?y=gr(E,y):(y=Br(y,w,l,null),y.flags|=2),y.return=o,c.return=o,c.sibling=y,o.child=c,c=y,y=o.child,w=r.child.memoizedState,w=w===null?Fu(l):{baseLanes:w.baseLanes|l,cachePool:null,transitions:w.transitions},y.memoizedState=w,y.childLanes=r.childLanes&~l,o.memoizedState=Lu,c}return y=r.child,r=y.sibling,c=gr(y,{mode:"visible",children:c.children}),(o.mode&1)===0&&(c.lanes=l),c.return=o,c.sibling=null,r!==null&&(l=o.deletions,l===null?(o.deletions=[r],o.flags|=16):l.push(r)),o.child=c,o.memoizedState=null,c}function $u(r,o){return o=Ml({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function yl(r,o,l,c){return c!==null&&du(c),Pi(o,r.child,null,l),r=$u(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function cv(r,o,l,c,d,y,w){if(l)return o.flags&256?(o.flags&=-257,c=ju(Error(i(422))),yl(r,o,w,c)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(y=c.fallback,d=o.mode,c=Ml({mode:"visible",children:c.children},d,0,null),y=Br(y,d,w,null),y.flags|=2,c.return=o,y.return=o,c.sibling=y,o.child=c,(o.mode&1)!==0&&Pi(o,r.child,null,w),o.child.memoizedState=Fu(w),o.memoizedState=Lu,y);if((o.mode&1)===0)return yl(r,o,w,null);if(d.data==="$!"){if(c=d.nextSibling&&d.nextSibling.dataset,c)var E=c.dgst;return c=E,y=Error(i(419)),c=ju(y,c,void 0),yl(r,o,w,c)}if(E=(w&r.childLanes)!==0,Pt||E){if(c=rt,c!==null){switch(w&-w){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=(d&(c.suspendedLanes|w))!==0?0:d,d!==0&&d!==y.retryLane&&(y.retryLane=d,An(r,d),ln(c,r,d,-1))}return nc(),c=ju(Error(i(421))),yl(r,o,w,c)}return d.data==="$?"?(o.flags|=128,o.child=r.child,o=Sv.bind(null,r),d._reactRetry=o,null):(r=y.treeContext,It=ir(d.nextSibling),Dt=o,Ve=!0,nn=null,r!==null&&(Ht[Vt++]=On,Ht[Vt++]=Rn,Ht[Vt++]=Ir,On=r.id,Rn=r.overflow,Ir=o),o=$u(o,c.children),o.flags|=4096,o)}function Hd(r,o,l){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o),yu(r.return,o,l)}function Uu(r,o,l,c,d){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:d}:(y.isBackwards=o,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=l,y.tailMode=d)}function Vd(r,o,l){var c=o.pendingProps,d=c.revealOrder,y=c.tail;if(mt(r,o,c.children,l),c=Be.current,(c&2)!==0)c=c&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Hd(r,l,o);else if(r.tag===19)Hd(r,l,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}if(Le(Be,c),(o.mode&1)===0)o.memoizedState=null;else switch(d){case"forwards":for(l=o.child,d=null;l!==null;)r=l.alternate,r!==null&&cl(r)===null&&(d=l),l=l.sibling;l=d,l===null?(d=o.child,o.child=null):(d=l.sibling,l.sibling=null),Uu(o,!1,d,l,y);break;case"backwards":for(l=null,d=o.child,o.child=null;d!==null;){if(r=d.alternate,r!==null&&cl(r)===null){o.child=d;break}r=d.sibling,d.sibling=l,l=d,d=r}Uu(o,!0,l,null,y);break;case"together":Uu(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function vl(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function zn(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),Hr|=o.lanes,(l&o.childLanes)===0)return null;if(r!==null&&o.child!==r.child)throw Error(i(153));if(o.child!==null){for(r=o.child,l=gr(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=gr(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function fv(r,o,l){switch(o.tag){case 3:Fd(o),Ei();break;case 5:rd(o);break;case 1:Et(o.type)&&el(o);break;case 4:xu(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,d=o.memoizedProps.value;Le(sl,c._currentValue),c._currentValue=d;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(Le(Be,Be.current&1),o.flags|=128,null):(l&o.child.childLanes)!==0?Ud(r,o,l):(Le(Be,Be.current&1),r=zn(r,o,l),r!==null?r.sibling:null);Le(Be,Be.current&1);break;case 19:if(c=(l&o.childLanes)!==0,(r.flags&128)!==0){if(c)return Vd(r,o,l);o.flags|=128}if(d=o.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Le(Be,Be.current),c)break;return null;case 22:case 23:return o.lanes=0,Dd(r,o,l)}return zn(r,o,l)}var qd,Hu,Qd,Bd;qd=function(r,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Hu=function(){},Qd=function(r,o,l,c){var d=r.memoizedProps;if(d!==c){r=o.stateNode,$r(yn.current);var y=null;switch(l){case"input":d=ro(r,d),c=ro(r,c),y=[];break;case"select":d=G({},d,{value:void 0}),c=G({},c,{value:void 0}),y=[];break;case"textarea":d=ci(r,d),c=ci(r,c),y=[];break;default:typeof d.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=Ys)}ka(l,c);var w;l=null;for(V in d)if(!c.hasOwnProperty(V)&&d.hasOwnProperty(V)&&d[V]!=null)if(V==="style"){var E=d[V];for(w in E)E.hasOwnProperty(w)&&(l||(l={}),l[w]="")}else V!=="dangerouslySetInnerHTML"&&V!=="children"&&V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&V!=="autoFocus"&&(a.hasOwnProperty(V)?y||(y=[]):(y=y||[]).push(V,null));for(V in c){var M=c[V];if(E=d!=null?d[V]:void 0,c.hasOwnProperty(V)&&M!==E&&(M!=null||E!=null))if(V==="style")if(E){for(w in E)!E.hasOwnProperty(w)||M&&M.hasOwnProperty(w)||(l||(l={}),l[w]="");for(w in M)M.hasOwnProperty(w)&&E[w]!==M[w]&&(l||(l={}),l[w]=M[w])}else l||(y||(y=[]),y.push(V,l)),l=M;else V==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,E=E?E.__html:void 0,M!=null&&E!==M&&(y=y||[]).push(V,M)):V==="children"?typeof M!="string"&&typeof M!="number"||(y=y||[]).push(V,""+M):V!=="suppressContentEditableWarning"&&V!=="suppressHydrationWarning"&&(a.hasOwnProperty(V)?(M!=null&&V==="onScroll"&&Fe("scroll",r),y||E===M||(y=[])):(y=y||[]).push(V,M))}l&&(y=y||[]).push("style",l);var V=y;(o.updateQueue=V)&&(o.flags|=4)}},Bd=function(r,o,l,c){l!==c&&(o.flags|=4)};function Lo(r,o){if(!Ve)switch(r.tailMode){case"hidden":o=r.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function ct(r){var o=r.alternate!==null&&r.alternate.child===r.child,l=0,c=0;if(o)for(var d=r.child;d!==null;)l|=d.lanes|d.childLanes,c|=d.subtreeFlags&14680064,c|=d.flags&14680064,d.return=r,d=d.sibling;else for(d=r.child;d!==null;)l|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=r,d=d.sibling;return r.subtreeFlags|=c,r.childLanes=l,o}function hv(r,o,l){var c=o.pendingProps;switch(cu(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(o),null;case 1:return Et(o.type)&&Js(),ct(o),null;case 3:return c=o.stateNode,Mi(),$e(bt),$e(at),Su(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(il(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,nn!==null&&(Ju(nn),nn=null))),Hu(r,o),ct(o),null;case 5:wu(o);var d=$r(Ao.current);if(l=o.type,r!==null&&o.stateNode!=null)Qd(r,o,l,c,d),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!c){if(o.stateNode===null)throw Error(i(166));return ct(o),null}if(r=$r(yn.current),il(o)){c=o.stateNode,l=o.type;var y=o.memoizedProps;switch(c[mn]=o,c[No]=y,r=(o.mode&1)!==0,l){case"dialog":Fe("cancel",c),Fe("close",c);break;case"iframe":case"object":case"embed":Fe("load",c);break;case"video":case"audio":for(d=0;d<bo.length;d++)Fe(bo[d],c);break;case"source":Fe("error",c);break;case"img":case"image":case"link":Fe("error",c),Fe("load",c);break;case"details":Fe("toggle",c);break;case"input":Es(c,y),Fe("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!y.multiple},Fe("invalid",c);break;case"textarea":so(c,y),Fe("invalid",c)}ka(l,y),d=null;for(var w in y)if(y.hasOwnProperty(w)){var E=y[w];w==="children"?typeof E=="string"?c.textContent!==E&&(y.suppressHydrationWarning!==!0&&Xs(c.textContent,E,r),d=["children",E]):typeof E=="number"&&c.textContent!==""+E&&(y.suppressHydrationWarning!==!0&&Xs(c.textContent,E,r),d=["children",""+E]):a.hasOwnProperty(w)&&E!=null&&w==="onScroll"&&Fe("scroll",c)}switch(l){case"input":Rr(c),Ns(c,y,!0);break;case"textarea":Rr(c),we(c);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(c.onclick=Ys)}c=d,o.updateQueue=c,c!==null&&(o.flags|=4)}else{w=d.nodeType===9?d:d.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Me(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=w.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=w.createElement(l,{is:c.is}):(r=w.createElement(l),l==="select"&&(w=r,c.multiple?w.multiple=!0:c.size&&(w.size=c.size))):r=w.createElementNS(r,l),r[mn]=o,r[No]=c,qd(r,o,!1,!1),o.stateNode=r;e:{switch(w=Sa(l,c),l){case"dialog":Fe("cancel",r),Fe("close",r),d=c;break;case"iframe":case"object":case"embed":Fe("load",r),d=c;break;case"video":case"audio":for(d=0;d<bo.length;d++)Fe(bo[d],r);d=c;break;case"source":Fe("error",r),d=c;break;case"img":case"image":case"link":Fe("error",r),Fe("load",r),d=c;break;case"details":Fe("toggle",r),d=c;break;case"input":Es(r,c),d=ro(r,c),Fe("invalid",r);break;case"option":d=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},d=G({},c,{value:void 0}),Fe("invalid",r);break;case"textarea":so(r,c),d=ci(r,c),Fe("invalid",r);break;default:d=c}ka(l,d),E=d;for(y in E)if(E.hasOwnProperty(y)){var M=E[y];y==="style"?zf(r,M):y==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&Ut(r,M)):y==="children"?typeof M=="string"?(l!=="textarea"||M!=="")&&Ct(r,M):typeof M=="number"&&Ct(r,""+M):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(a.hasOwnProperty(y)?M!=null&&y==="onScroll"&&Fe("scroll",r):M!=null&&A(r,y,M,w))}switch(l){case"input":Rr(r),Ns(r,c,!1);break;case"textarea":Rr(r),we(r);break;case"option":c.value!=null&&r.setAttribute("value",""+be(c.value));break;case"select":r.multiple=!!c.multiple,y=c.value,y!=null?Yn(r,!!c.multiple,y,!1):c.defaultValue!=null&&Yn(r,!!c.multiple,c.defaultValue,!0);break;default:typeof d.onClick=="function"&&(r.onclick=Ys)}switch(l){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return ct(o),null;case 6:if(r&&o.stateNode!=null)Bd(r,o,r.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(i(166));if(l=$r(Ao.current),$r(yn.current),il(o)){if(c=o.stateNode,l=o.memoizedProps,c[mn]=o,(y=c.nodeValue!==l)&&(r=Dt,r!==null))switch(r.tag){case 3:Xs(c.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Xs(c.nodeValue,l,(r.mode&1)!==0)}y&&(o.flags|=4)}else c=(l.nodeType===9?l:l.ownerDocument).createTextNode(c),c[mn]=o,o.stateNode=c}return ct(o),null;case 13:if($e(Be),c=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Ve&&It!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Gh(),Ei(),o.flags|=98560,y=!1;else if(y=il(o),c!==null&&c.dehydrated!==null){if(r===null){if(!y)throw Error(i(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(i(317));y[mn]=o}else Ei(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ct(o),y=!1}else nn!==null&&(Ju(nn),nn=null),y=!0;if(!y)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=l,o):(c=c!==null,c!==(r!==null&&r.memoizedState!==null)&&c&&(o.child.flags|=8192,(o.mode&1)!==0&&(r===null||(Be.current&1)!==0?et===0&&(et=3):nc())),o.updateQueue!==null&&(o.flags|=4),ct(o),null);case 4:return Mi(),Hu(r,o),r===null&&Eo(o.stateNode.containerInfo),ct(o),null;case 10:return mu(o.type._context),ct(o),null;case 17:return Et(o.type)&&Js(),ct(o),null;case 19:if($e(Be),y=o.memoizedState,y===null)return ct(o),null;if(c=(o.flags&128)!==0,w=y.rendering,w===null)if(c)Lo(y,!1);else{if(et!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(w=cl(r),w!==null){for(o.flags|=128,Lo(y,!1),c=w.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),o.subtreeFlags=0,c=l,l=o.child;l!==null;)y=l,r=c,y.flags&=14680066,w=y.alternate,w===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=w.childLanes,y.lanes=w.lanes,y.child=w.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=w.memoizedProps,y.memoizedState=w.memoizedState,y.updateQueue=w.updateQueue,y.type=w.type,r=w.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Le(Be,Be.current&1|2),o.child}r=r.sibling}y.tail!==null&&Xe()>ji&&(o.flags|=128,c=!0,Lo(y,!1),o.lanes=4194304)}else{if(!c)if(r=cl(w),r!==null){if(o.flags|=128,c=!0,l=r.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),Lo(y,!0),y.tail===null&&y.tailMode==="hidden"&&!w.alternate&&!Ve)return ct(o),null}else 2*Xe()-y.renderingStartTime>ji&&l!==1073741824&&(o.flags|=128,c=!0,Lo(y,!1),o.lanes=4194304);y.isBackwards?(w.sibling=o.child,o.child=w):(l=y.last,l!==null?l.sibling=w:o.child=w,y.last=w)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=Xe(),o.sibling=null,l=Be.current,Le(Be,c?l&1|2:l&1),o):(ct(o),null);case 22:case 23:return tc(),c=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?(Lt&1073741824)!==0&&(ct(o),o.subtreeFlags&6&&(o.flags|=8192)):ct(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function dv(r,o){switch(cu(o),o.tag){case 1:return Et(o.type)&&Js(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Mi(),$e(bt),$e(at),Su(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return wu(o),null;case 13:if($e(Be),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Ei()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return $e(Be),null;case 4:return Mi(),null;case 10:return mu(o.type._context),null;case 22:case 23:return tc(),null;case 24:return null;default:return null}}var _l=!1,ft=!1,pv=typeof WeakSet=="function"?WeakSet:Set,fe=null;function Ri(r,o){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(c){Ke(r,o,c)}else l.current=null}function Vu(r,o,l){try{l()}catch(c){Ke(r,o,c)}}var Wd=!1;function gv(r,o){if(tu=Fs,r=bh(),Wa(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var d=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var w=0,E=-1,M=-1,V=0,Y=0,ee=r,X=null;t:for(;;){for(var ae;ee!==l||d!==0&&ee.nodeType!==3||(E=w+d),ee!==y||c!==0&&ee.nodeType!==3||(M=w+c),ee.nodeType===3&&(w+=ee.nodeValue.length),(ae=ee.firstChild)!==null;)X=ee,ee=ae;for(;;){if(ee===r)break t;if(X===l&&++V===d&&(E=w),X===y&&++Y===c&&(M=w),(ae=ee.nextSibling)!==null)break;ee=X,X=ee.parentNode}ee=ae}l=E===-1||M===-1?null:{start:E,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(nu={focusedElem:r,selectionRange:l},Fs=!1,fe=o;fe!==null;)if(o=fe,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,fe=r;else for(;fe!==null;){o=fe;try{var he=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var pe=he.memoizedProps,Ye=he.memoizedState,U=o.stateNode,j=U.getSnapshotBeforeUpdate(o.elementType===o.type?pe:rn(o.type,pe),Ye);U.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var H=o.stateNode.containerInfo;H.nodeType===1?H.textContent="":H.nodeType===9&&H.documentElement&&H.removeChild(H.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ne){Ke(o,o.return,ne)}if(r=o.sibling,r!==null){r.return=o.return,fe=r;break}fe=o.return}return he=Wd,Wd=!1,he}function Fo(r,o,l){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var d=c=c.next;do{if((d.tag&r)===r){var y=d.destroy;d.destroy=void 0,y!==void 0&&Vu(o,l,y)}d=d.next}while(d!==c)}}function xl(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&r)===r){var c=l.create;l.destroy=c()}l=l.next}while(l!==o)}}function qu(r){var o=r.ref;if(o!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof o=="function"?o(r):o.current=r}}function Kd(r){var o=r.alternate;o!==null&&(r.alternate=null,Kd(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[mn],delete o[No],delete o[su],delete o[Yy],delete o[Zy])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Gd(r){return r.tag===5||r.tag===3||r.tag===4}function Xd(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Gd(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Qu(r,o,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(r,o):l.insertBefore(r,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(r,l)):(o=l,o.appendChild(r)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=Ys));else if(c!==4&&(r=r.child,r!==null))for(Qu(r,o,l),r=r.sibling;r!==null;)Qu(r,o,l),r=r.sibling}function Bu(r,o,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,o?l.insertBefore(r,o):l.appendChild(r);else if(c!==4&&(r=r.child,r!==null))for(Bu(r,o,l),r=r.sibling;r!==null;)Bu(r,o,l),r=r.sibling}var ot=null,on=!1;function cr(r,o,l){for(l=l.child;l!==null;)Yd(r,o,l),l=l.sibling}function Yd(r,o,l){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(As,l)}catch{}switch(l.tag){case 5:ft||Ri(l,o);case 6:var c=ot,d=on;ot=null,cr(r,o,l),ot=c,on=d,ot!==null&&(on?(r=ot,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):ot.removeChild(l.stateNode));break;case 18:ot!==null&&(on?(r=ot,l=l.stateNode,r.nodeType===8?ou(r.parentNode,l):r.nodeType===1&&ou(r,l),yo(r)):ou(ot,l.stateNode));break;case 4:c=ot,d=on,ot=l.stateNode.containerInfo,on=!0,cr(r,o,l),ot=c,on=d;break;case 0:case 11:case 14:case 15:if(!ft&&(c=l.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){d=c=c.next;do{var y=d,w=y.destroy;y=y.tag,w!==void 0&&((y&2)!==0||(y&4)!==0)&&Vu(l,o,w),d=d.next}while(d!==c)}cr(r,o,l);break;case 1:if(!ft&&(Ri(l,o),c=l.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=l.memoizedProps,c.state=l.memoizedState,c.componentWillUnmount()}catch(E){Ke(l,o,E)}cr(r,o,l);break;case 21:cr(r,o,l);break;case 22:l.mode&1?(ft=(c=ft)||l.memoizedState!==null,cr(r,o,l),ft=c):cr(r,o,l);break;default:cr(r,o,l)}}function Zd(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new pv),o.forEach(function(c){var d=Cv.bind(null,r,c);l.has(c)||(l.add(c),c.then(d,d))})}}function sn(r,o){var l=o.deletions;if(l!==null)for(var c=0;c<l.length;c++){var d=l[c];try{var y=r,w=o,E=w;e:for(;E!==null;){switch(E.tag){case 5:ot=E.stateNode,on=!1;break e;case 3:ot=E.stateNode.containerInfo,on=!0;break e;case 4:ot=E.stateNode.containerInfo,on=!0;break e}E=E.return}if(ot===null)throw Error(i(160));Yd(y,w,d),ot=null,on=!1;var M=d.alternate;M!==null&&(M.return=null),d.return=null}catch(V){Ke(d,o,V)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Jd(o,r),o=o.sibling}function Jd(r,o){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(sn(o,r),_n(r),c&4){try{Fo(3,r,r.return),xl(3,r)}catch(pe){Ke(r,r.return,pe)}try{Fo(5,r,r.return)}catch(pe){Ke(r,r.return,pe)}}break;case 1:sn(o,r),_n(r),c&512&&l!==null&&Ri(l,l.return);break;case 5:if(sn(o,r),_n(r),c&512&&l!==null&&Ri(l,l.return),r.flags&32){var d=r.stateNode;try{Ct(d,"")}catch(pe){Ke(r,r.return,pe)}}if(c&4&&(d=r.stateNode,d!=null)){var y=r.memoizedProps,w=l!==null?l.memoizedProps:y,E=r.type,M=r.updateQueue;if(r.updateQueue=null,M!==null)try{E==="input"&&y.type==="radio"&&y.name!=null&&Ps(d,y),Sa(E,w);var V=Sa(E,y);for(w=0;w<M.length;w+=2){var Y=M[w],ee=M[w+1];Y==="style"?zf(d,ee):Y==="dangerouslySetInnerHTML"?Ut(d,ee):Y==="children"?Ct(d,ee):A(d,Y,ee,V)}switch(E){case"input":io(d,y);break;case"textarea":se(d,y);break;case"select":var X=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!y.multiple;var ae=y.value;ae!=null?Yn(d,!!y.multiple,ae,!1):X!==!!y.multiple&&(y.defaultValue!=null?Yn(d,!!y.multiple,y.defaultValue,!0):Yn(d,!!y.multiple,y.multiple?[]:"",!1))}d[No]=y}catch(pe){Ke(r,r.return,pe)}}break;case 6:if(sn(o,r),_n(r),c&4){if(r.stateNode===null)throw Error(i(162));d=r.stateNode,y=r.memoizedProps;try{d.nodeValue=y}catch(pe){Ke(r,r.return,pe)}}break;case 3:if(sn(o,r),_n(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{yo(o.containerInfo)}catch(pe){Ke(r,r.return,pe)}break;case 4:sn(o,r),_n(r);break;case 13:sn(o,r),_n(r),d=r.child,d.flags&8192&&(y=d.memoizedState!==null,d.stateNode.isHidden=y,!y||d.alternate!==null&&d.alternate.memoizedState!==null||(Gu=Xe())),c&4&&Zd(r);break;case 22:if(Y=l!==null&&l.memoizedState!==null,r.mode&1?(ft=(V=ft)||Y,sn(o,r),ft=V):sn(o,r),_n(r),c&8192){if(V=r.memoizedState!==null,(r.stateNode.isHidden=V)&&!Y&&(r.mode&1)!==0)for(fe=r,Y=r.child;Y!==null;){for(ee=fe=Y;fe!==null;){switch(X=fe,ae=X.child,X.tag){case 0:case 11:case 14:case 15:Fo(4,X,X.return);break;case 1:Ri(X,X.return);var he=X.stateNode;if(typeof he.componentWillUnmount=="function"){c=X,l=X.return;try{o=c,he.props=o.memoizedProps,he.state=o.memoizedState,he.componentWillUnmount()}catch(pe){Ke(c,l,pe)}}break;case 5:Ri(X,X.return);break;case 22:if(X.memoizedState!==null){np(ee);continue}}ae!==null?(ae.return=X,fe=ae):np(ee)}Y=Y.sibling}e:for(Y=null,ee=r;;){if(ee.tag===5){if(Y===null){Y=ee;try{d=ee.stateNode,V?(y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(E=ee.stateNode,M=ee.memoizedProps.style,w=M!=null&&M.hasOwnProperty("display")?M.display:null,E.style.display=fi("display",w))}catch(pe){Ke(r,r.return,pe)}}}else if(ee.tag===6){if(Y===null)try{ee.stateNode.nodeValue=V?"":ee.memoizedProps}catch(pe){Ke(r,r.return,pe)}}else if((ee.tag!==22&&ee.tag!==23||ee.memoizedState===null||ee===r)&&ee.child!==null){ee.child.return=ee,ee=ee.child;continue}if(ee===r)break e;for(;ee.sibling===null;){if(ee.return===null||ee.return===r)break e;Y===ee&&(Y=null),ee=ee.return}Y===ee&&(Y=null),ee.sibling.return=ee.return,ee=ee.sibling}}break;case 19:sn(o,r),_n(r),c&4&&Zd(r);break;case 21:break;default:sn(o,r),_n(r)}}function _n(r){var o=r.flags;if(o&2){try{e:{for(var l=r.return;l!==null;){if(Gd(l)){var c=l;break e}l=l.return}throw Error(i(160))}switch(c.tag){case 5:var d=c.stateNode;c.flags&32&&(Ct(d,""),c.flags&=-33);var y=Xd(r);Bu(r,y,d);break;case 3:case 4:var w=c.stateNode.containerInfo,E=Xd(r);Qu(r,E,w);break;default:throw Error(i(161))}}catch(M){Ke(r,r.return,M)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function mv(r,o,l){fe=r,ep(r)}function ep(r,o,l){for(var c=(r.mode&1)!==0;fe!==null;){var d=fe,y=d.child;if(d.tag===22&&c){var w=d.memoizedState!==null||_l;if(!w){var E=d.alternate,M=E!==null&&E.memoizedState!==null||ft;E=_l;var V=ft;if(_l=w,(ft=M)&&!V)for(fe=d;fe!==null;)w=fe,M=w.child,w.tag===22&&w.memoizedState!==null?rp(d):M!==null?(M.return=w,fe=M):rp(d);for(;y!==null;)fe=y,ep(y),y=y.sibling;fe=d,_l=E,ft=V}tp(r)}else(d.subtreeFlags&8772)!==0&&y!==null?(y.return=d,fe=y):tp(r)}}function tp(r){for(;fe!==null;){var o=fe;if((o.flags&8772)!==0){var l=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:ft||xl(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!ft)if(l===null)c.componentDidMount();else{var d=o.elementType===o.type?l.memoizedProps:rn(o.type,l.memoizedProps);c.componentDidUpdate(d,l.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var y=o.updateQueue;y!==null&&nd(o,y,c);break;case 3:var w=o.updateQueue;if(w!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}nd(o,w,l)}break;case 5:var E=o.stateNode;if(l===null&&o.flags&4){l=E;var M=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&l.focus();break;case"img":M.src&&(l.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var V=o.alternate;if(V!==null){var Y=V.memoizedState;if(Y!==null){var ee=Y.dehydrated;ee!==null&&yo(ee)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ft||o.flags&512&&qu(o)}catch(X){Ke(o,o.return,X)}}if(o===r){fe=null;break}if(l=o.sibling,l!==null){l.return=o.return,fe=l;break}fe=o.return}}function np(r){for(;fe!==null;){var o=fe;if(o===r){fe=null;break}var l=o.sibling;if(l!==null){l.return=o.return,fe=l;break}fe=o.return}}function rp(r){for(;fe!==null;){var o=fe;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{xl(4,o)}catch(M){Ke(o,l,M)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var d=o.return;try{c.componentDidMount()}catch(M){Ke(o,d,M)}}var y=o.return;try{qu(o)}catch(M){Ke(o,y,M)}break;case 5:var w=o.return;try{qu(o)}catch(M){Ke(o,w,M)}}}catch(M){Ke(o,o.return,M)}if(o===r){fe=null;break}var E=o.sibling;if(E!==null){E.return=o.return,fe=E;break}fe=o.return}}var yv=Math.ceil,wl=P.ReactCurrentDispatcher,Wu=P.ReactCurrentOwner,Bt=P.ReactCurrentBatchConfig,Oe=0,rt=null,Ze=null,st=0,Lt=0,Ai=or(0),et=0,$o=null,Hr=0,kl=0,Ku=0,Uo=null,Nt=null,Gu=0,ji=1/0,Dn=null,Sl=!1,Xu=null,fr=null,Cl=!1,hr=null,bl=0,Ho=0,Yu=null,El=-1,Pl=0;function yt(){return(Oe&6)!==0?Xe():El!==-1?El:El=Xe()}function dr(r){return(r.mode&1)===0?1:(Oe&2)!==0&&st!==0?st&-st:ev.transition!==null?(Pl===0&&(Pl=Xf()),Pl):(r=ze,r!==0||(r=window.event,r=r===void 0?16:oh(r.type)),r)}function ln(r,o,l,c){if(50<Ho)throw Ho=0,Yu=null,Error(i(185));fo(r,l,c),((Oe&2)===0||r!==rt)&&(r===rt&&((Oe&2)===0&&(kl|=l),et===4&&pr(r,st)),Tt(r,c),l===1&&Oe===0&&(o.mode&1)===0&&(ji=Xe()+500,tl&&lr()))}function Tt(r,o){var l=r.callbackNode;ey(r,o);var c=Ds(r,r===rt?st:0);if(c===0)l!==null&&Wf(l),r.callbackNode=null,r.callbackPriority=0;else if(o=c&-c,r.callbackPriority!==o){if(l!=null&&Wf(l),o===1)r.tag===0?Jy(op.bind(null,r)):qh(op.bind(null,r)),Gy(function(){(Oe&6)===0&&lr()}),l=null;else{switch(Yf(c)){case 1:l=Ma;break;case 4:l=Kf;break;case 16:l=Rs;break;case 536870912:l=Gf;break;default:l=Rs}l=dp(l,ip.bind(null,r))}r.callbackPriority=o,r.callbackNode=l}}function ip(r,o){if(El=-1,Pl=0,(Oe&6)!==0)throw Error(i(327));var l=r.callbackNode;if(zi()&&r.callbackNode!==l)return null;var c=Ds(r,r===rt?st:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||o)o=Nl(r,c);else{o=c;var d=Oe;Oe|=2;var y=lp();(rt!==r||st!==o)&&(Dn=null,ji=Xe()+500,qr(r,o));do try{xv();break}catch(E){sp(r,E)}while(!0);gu(),wl.current=y,Oe=d,Ze!==null?o=0:(rt=null,st=0,o=et)}if(o!==0){if(o===2&&(d=Oa(r),d!==0&&(c=d,o=Zu(r,d))),o===1)throw l=$o,qr(r,0),pr(r,c),Tt(r,Xe()),l;if(o===6)pr(r,c);else{if(d=r.current.alternate,(c&30)===0&&!vv(d)&&(o=Nl(r,c),o===2&&(y=Oa(r),y!==0&&(c=y,o=Zu(r,y))),o===1))throw l=$o,qr(r,0),pr(r,c),Tt(r,Xe()),l;switch(r.finishedWork=d,r.finishedLanes=c,o){case 0:case 1:throw Error(i(345));case 2:Qr(r,Nt,Dn);break;case 3:if(pr(r,c),(c&130023424)===c&&(o=Gu+500-Xe(),10<o)){if(Ds(r,0)!==0)break;if(d=r.suspendedLanes,(d&c)!==c){yt(),r.pingedLanes|=r.suspendedLanes&d;break}r.timeoutHandle=iu(Qr.bind(null,r,Nt,Dn),o);break}Qr(r,Nt,Dn);break;case 4:if(pr(r,c),(c&4194240)===c)break;for(o=r.eventTimes,d=-1;0<c;){var w=31-en(c);y=1<<w,w=o[w],w>d&&(d=w),c&=~y}if(c=d,c=Xe()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*yv(c/1960))-c,10<c){r.timeoutHandle=iu(Qr.bind(null,r,Nt,Dn),c);break}Qr(r,Nt,Dn);break;case 5:Qr(r,Nt,Dn);break;default:throw Error(i(329))}}}return Tt(r,Xe()),r.callbackNode===l?ip.bind(null,r):null}function Zu(r,o){var l=Uo;return r.current.memoizedState.isDehydrated&&(qr(r,o).flags|=256),r=Nl(r,o),r!==2&&(o=Nt,Nt=l,o!==null&&Ju(o)),r}function Ju(r){Nt===null?Nt=r:Nt.push.apply(Nt,r)}function vv(r){for(var o=r;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var c=0;c<l.length;c++){var d=l[c],y=d.getSnapshot;d=d.value;try{if(!tn(y(),d))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function pr(r,o){for(o&=~Ku,o&=~kl,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var l=31-en(o),c=1<<l;r[l]=-1,o&=~c}}function op(r){if((Oe&6)!==0)throw Error(i(327));zi();var o=Ds(r,0);if((o&1)===0)return Tt(r,Xe()),null;var l=Nl(r,o);if(r.tag!==0&&l===2){var c=Oa(r);c!==0&&(o=c,l=Zu(r,c))}if(l===1)throw l=$o,qr(r,0),pr(r,o),Tt(r,Xe()),l;if(l===6)throw Error(i(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,Qr(r,Nt,Dn),Tt(r,Xe()),null}function ec(r,o){var l=Oe;Oe|=1;try{return r(o)}finally{Oe=l,Oe===0&&(ji=Xe()+500,tl&&lr())}}function Vr(r){hr!==null&&hr.tag===0&&(Oe&6)===0&&zi();var o=Oe;Oe|=1;var l=Bt.transition,c=ze;try{if(Bt.transition=null,ze=1,r)return r()}finally{ze=c,Bt.transition=l,Oe=o,(Oe&6)===0&&lr()}}function tc(){Lt=Ai.current,$e(Ai)}function qr(r,o){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,Ky(l)),Ze!==null)for(l=Ze.return;l!==null;){var c=l;switch(cu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Js();break;case 3:Mi(),$e(bt),$e(at),Su();break;case 5:wu(c);break;case 4:Mi();break;case 13:$e(Be);break;case 19:$e(Be);break;case 10:mu(c.type._context);break;case 22:case 23:tc()}l=l.return}if(rt=r,Ze=r=gr(r.current,null),st=Lt=o,et=0,$o=null,Ku=kl=Hr=0,Nt=Uo=null,Fr!==null){for(o=0;o<Fr.length;o++)if(l=Fr[o],c=l.interleaved,c!==null){l.interleaved=null;var d=c.next,y=l.pending;if(y!==null){var w=y.next;y.next=d,c.next=w}l.pending=c}Fr=null}return r}function sp(r,o){do{var l=Ze;try{if(gu(),fl.current=gl,hl){for(var c=We.memoizedState;c!==null;){var d=c.queue;d!==null&&(d.pending=null),c=c.next}hl=!1}if(Ur=0,nt=Je=We=null,jo=!1,zo=0,Wu.current=null,l===null||l.return===null){et=1,$o=o,Ze=null;break}e:{var y=r,w=l.return,E=l,M=o;if(o=st,E.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var V=M,Y=E,ee=Y.tag;if((Y.mode&1)===0&&(ee===0||ee===11||ee===15)){var X=Y.alternate;X?(Y.updateQueue=X.updateQueue,Y.memoizedState=X.memoizedState,Y.lanes=X.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var ae=Od(w);if(ae!==null){ae.flags&=-257,Rd(ae,w,E,y,o),ae.mode&1&&Md(y,V,o),o=ae,M=V;var he=o.updateQueue;if(he===null){var pe=new Set;pe.add(M),o.updateQueue=pe}else he.add(M);break e}else{if((o&1)===0){Md(y,V,o),nc();break e}M=Error(i(426))}}else if(Ve&&E.mode&1){var Ye=Od(w);if(Ye!==null){(Ye.flags&65536)===0&&(Ye.flags|=256),Rd(Ye,w,E,y,o),du(Oi(M,E));break e}}y=M=Oi(M,E),et!==4&&(et=2),Uo===null?Uo=[y]:Uo.push(y),y=w;do{switch(y.tag){case 3:y.flags|=65536,o&=-o,y.lanes|=o;var U=Nd(y,M,o);td(y,U);break e;case 1:E=M;var j=y.type,H=y.stateNode;if((y.flags&128)===0&&(typeof j.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(fr===null||!fr.has(H)))){y.flags|=65536,o&=-o,y.lanes|=o;var ne=Td(y,E,o);td(y,ne);break e}}y=y.return}while(y!==null)}up(l)}catch(me){o=me,Ze===l&&l!==null&&(Ze=l=l.return);continue}break}while(!0)}function lp(){var r=wl.current;return wl.current=gl,r===null?gl:r}function nc(){(et===0||et===3||et===2)&&(et=4),rt===null||(Hr&268435455)===0&&(kl&268435455)===0||pr(rt,st)}function Nl(r,o){var l=Oe;Oe|=2;var c=lp();(rt!==r||st!==o)&&(Dn=null,qr(r,o));do try{_v();break}catch(d){sp(r,d)}while(!0);if(gu(),Oe=l,wl.current=c,Ze!==null)throw Error(i(261));return rt=null,st=0,et}function _v(){for(;Ze!==null;)ap(Ze)}function xv(){for(;Ze!==null&&!Qm();)ap(Ze)}function ap(r){var o=hp(r.alternate,r,Lt);r.memoizedProps=r.pendingProps,o===null?up(r):Ze=o,Wu.current=null}function up(r){var o=r;do{var l=o.alternate;if(r=o.return,(o.flags&32768)===0){if(l=hv(l,o,Lt),l!==null){Ze=l;return}}else{if(l=dv(l,o),l!==null){l.flags&=32767,Ze=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{et=6,Ze=null;return}}if(o=o.sibling,o!==null){Ze=o;return}Ze=o=r}while(o!==null);et===0&&(et=5)}function Qr(r,o,l){var c=ze,d=Bt.transition;try{Bt.transition=null,ze=1,wv(r,o,l,c)}finally{Bt.transition=d,ze=c}return null}function wv(r,o,l,c){do zi();while(hr!==null);if((Oe&6)!==0)throw Error(i(327));l=r.finishedWork;var d=r.finishedLanes;if(l===null)return null;if(r.finishedWork=null,r.finishedLanes=0,l===r.current)throw Error(i(177));r.callbackNode=null,r.callbackPriority=0;var y=l.lanes|l.childLanes;if(ty(r,y),r===rt&&(Ze=rt=null,st=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Cl||(Cl=!0,dp(Rs,function(){return zi(),null})),y=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||y){y=Bt.transition,Bt.transition=null;var w=ze;ze=1;var E=Oe;Oe|=4,Wu.current=null,gv(r,l),Jd(l,r),Uy(nu),Fs=!!tu,nu=tu=null,r.current=l,mv(l),Bm(),Oe=E,ze=w,Bt.transition=y}else r.current=l;if(Cl&&(Cl=!1,hr=r,bl=d),y=r.pendingLanes,y===0&&(fr=null),Gm(l.stateNode),Tt(r,Xe()),o!==null)for(c=r.onRecoverableError,l=0;l<o.length;l++)d=o[l],c(d.value,{componentStack:d.stack,digest:d.digest});if(Sl)throw Sl=!1,r=Xu,Xu=null,r;return(bl&1)!==0&&r.tag!==0&&zi(),y=r.pendingLanes,(y&1)!==0?r===Yu?Ho++:(Ho=0,Yu=r):Ho=0,lr(),null}function zi(){if(hr!==null){var r=Yf(bl),o=Bt.transition,l=ze;try{if(Bt.transition=null,ze=16>r?16:r,hr===null)var c=!1;else{if(r=hr,hr=null,bl=0,(Oe&6)!==0)throw Error(i(331));var d=Oe;for(Oe|=4,fe=r.current;fe!==null;){var y=fe,w=y.child;if((fe.flags&16)!==0){var E=y.deletions;if(E!==null){for(var M=0;M<E.length;M++){var V=E[M];for(fe=V;fe!==null;){var Y=fe;switch(Y.tag){case 0:case 11:case 15:Fo(8,Y,y)}var ee=Y.child;if(ee!==null)ee.return=Y,fe=ee;else for(;fe!==null;){Y=fe;var X=Y.sibling,ae=Y.return;if(Kd(Y),Y===V){fe=null;break}if(X!==null){X.return=ae,fe=X;break}fe=ae}}}var he=y.alternate;if(he!==null){var pe=he.child;if(pe!==null){he.child=null;do{var Ye=pe.sibling;pe.sibling=null,pe=Ye}while(pe!==null)}}fe=y}}if((y.subtreeFlags&2064)!==0&&w!==null)w.return=y,fe=w;else e:for(;fe!==null;){if(y=fe,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Fo(9,y,y.return)}var U=y.sibling;if(U!==null){U.return=y.return,fe=U;break e}fe=y.return}}var j=r.current;for(fe=j;fe!==null;){w=fe;var H=w.child;if((w.subtreeFlags&2064)!==0&&H!==null)H.return=w,fe=H;else e:for(w=j;fe!==null;){if(E=fe,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:xl(9,E)}}catch(me){Ke(E,E.return,me)}if(E===w){fe=null;break e}var ne=E.sibling;if(ne!==null){ne.return=E.return,fe=ne;break e}fe=E.return}}if(Oe=d,lr(),gn&&typeof gn.onPostCommitFiberRoot=="function")try{gn.onPostCommitFiberRoot(As,r)}catch{}c=!0}return c}finally{ze=l,Bt.transition=o}}return!1}function cp(r,o,l){o=Oi(l,o),o=Nd(r,o,1),r=ur(r,o,1),o=yt(),r!==null&&(fo(r,1,o),Tt(r,o))}function Ke(r,o,l){if(r.tag===3)cp(r,r,l);else for(;o!==null;){if(o.tag===3){cp(o,r,l);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(fr===null||!fr.has(c))){r=Oi(l,r),r=Td(o,r,1),o=ur(o,r,1),r=yt(),o!==null&&(fo(o,1,r),Tt(o,r));break}}o=o.return}}function kv(r,o,l){var c=r.pingCache;c!==null&&c.delete(o),o=yt(),r.pingedLanes|=r.suspendedLanes&l,rt===r&&(st&l)===l&&(et===4||et===3&&(st&130023424)===st&&500>Xe()-Gu?qr(r,0):Ku|=l),Tt(r,o)}function fp(r,o){o===0&&((r.mode&1)===0?o=1:(o=zs,zs<<=1,(zs&130023424)===0&&(zs=4194304)));var l=yt();r=An(r,o),r!==null&&(fo(r,o,l),Tt(r,l))}function Sv(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),fp(r,l)}function Cv(r,o){var l=0;switch(r.tag){case 13:var c=r.stateNode,d=r.memoizedState;d!==null&&(l=d.retryLane);break;case 19:c=r.stateNode;break;default:throw Error(i(314))}c!==null&&c.delete(o),fp(r,l)}var hp;hp=function(r,o,l){if(r!==null)if(r.memoizedProps!==o.pendingProps||bt.current)Pt=!0;else{if((r.lanes&l)===0&&(o.flags&128)===0)return Pt=!1,fv(r,o,l);Pt=(r.flags&131072)!==0}else Pt=!1,Ve&&(o.flags&1048576)!==0&&Qh(o,rl,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;vl(r,o),r=o.pendingProps;var d=Si(o,at.current);Ti(o,l),d=Eu(null,o,c,r,d,l);var y=Pu();return o.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Et(c)?(y=!0,el(o)):y=!1,o.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,_u(o),d.updater=ml,o.stateNode=d,d._reactInternals=o,Au(o,c,r,l),o=Iu(null,o,c,!0,y,l)):(o.tag=0,Ve&&y&&uu(o),mt(null,o,d,l),o=o.child),o;case 16:c=o.elementType;e:{switch(vl(r,o),r=o.pendingProps,d=c._init,c=d(c._payload),o.type=c,d=o.tag=Ev(c),r=rn(c,r),d){case 0:o=Du(null,o,c,r,l);break e;case 1:o=Ld(null,o,c,r,l);break e;case 11:o=Ad(null,o,c,r,l);break e;case 14:o=jd(null,o,c,rn(c.type,r),l);break e}throw Error(i(306,c,""))}return o;case 0:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:rn(c,d),Du(r,o,c,d,l);case 1:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:rn(c,d),Ld(r,o,c,d,l);case 3:e:{if(Fd(o),r===null)throw Error(i(387));c=o.pendingProps,y=o.memoizedState,d=y.element,ed(r,o),ul(o,c,null,l);var w=o.memoizedState;if(c=w.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){d=Oi(Error(i(423)),o),o=$d(r,o,c,l,d);break e}else if(c!==d){d=Oi(Error(i(424)),o),o=$d(r,o,c,l,d);break e}else for(It=ir(o.stateNode.containerInfo.firstChild),Dt=o,Ve=!0,nn=null,l=Zh(o,null,c,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ei(),c===d){o=zn(r,o,l);break e}mt(r,o,c,l)}o=o.child}return o;case 5:return rd(o),r===null&&hu(o),c=o.type,d=o.pendingProps,y=r!==null?r.memoizedProps:null,w=d.children,ru(c,d)?w=null:y!==null&&ru(c,y)&&(o.flags|=32),Id(r,o),mt(r,o,w,l),o.child;case 6:return r===null&&hu(o),null;case 13:return Ud(r,o,l);case 4:return xu(o,o.stateNode.containerInfo),c=o.pendingProps,r===null?o.child=Pi(o,null,c,l):mt(r,o,c,l),o.child;case 11:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:rn(c,d),Ad(r,o,c,d,l);case 7:return mt(r,o,o.pendingProps,l),o.child;case 8:return mt(r,o,o.pendingProps.children,l),o.child;case 12:return mt(r,o,o.pendingProps.children,l),o.child;case 10:e:{if(c=o.type._context,d=o.pendingProps,y=o.memoizedProps,w=d.value,Le(sl,c._currentValue),c._currentValue=w,y!==null)if(tn(y.value,w)){if(y.children===d.children&&!bt.current){o=zn(r,o,l);break e}}else for(y=o.child,y!==null&&(y.return=o);y!==null;){var E=y.dependencies;if(E!==null){w=y.child;for(var M=E.firstContext;M!==null;){if(M.context===c){if(y.tag===1){M=jn(-1,l&-l),M.tag=2;var V=y.updateQueue;if(V!==null){V=V.shared;var Y=V.pending;Y===null?M.next=M:(M.next=Y.next,Y.next=M),V.pending=M}}y.lanes|=l,M=y.alternate,M!==null&&(M.lanes|=l),yu(y.return,l,o),E.lanes|=l;break}M=M.next}}else if(y.tag===10)w=y.type===o.type?null:y.child;else if(y.tag===18){if(w=y.return,w===null)throw Error(i(341));w.lanes|=l,E=w.alternate,E!==null&&(E.lanes|=l),yu(w,l,o),w=y.sibling}else w=y.child;if(w!==null)w.return=y;else for(w=y;w!==null;){if(w===o){w=null;break}if(y=w.sibling,y!==null){y.return=w.return,w=y;break}w=w.return}y=w}mt(r,o,d.children,l),o=o.child}return o;case 9:return d=o.type,c=o.pendingProps.children,Ti(o,l),d=qt(d),c=c(d),o.flags|=1,mt(r,o,c,l),o.child;case 14:return c=o.type,d=rn(c,o.pendingProps),d=rn(c.type,d),jd(r,o,c,d,l);case 15:return zd(r,o,o.type,o.pendingProps,l);case 17:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:rn(c,d),vl(r,o),o.tag=1,Et(c)?(r=!0,el(o)):r=!1,Ti(o,l),Ed(o,c,d),Au(o,c,d,l),Iu(null,o,c,!0,r,l);case 19:return Vd(r,o,l);case 22:return Dd(r,o,l)}throw Error(i(156,o.tag))};function dp(r,o){return Bf(r,o)}function bv(r,o,l,c){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(r,o,l,c){return new bv(r,o,l,c)}function rc(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Ev(r){if(typeof r=="function")return rc(r)?1:0;if(r!=null){if(r=r.$$typeof,r===ie)return 11;if(r===te)return 14}return 2}function gr(r,o){var l=r.alternate;return l===null?(l=Wt(r.tag,o,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=o,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,o=r.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function Tl(r,o,l,c,d,y){var w=2;if(c=r,typeof r=="function")rc(r)&&(w=1);else if(typeof r=="string")w=5;else e:switch(r){case F:return Br(l.children,d,y,o);case D:w=8,d|=8;break;case Q:return r=Wt(12,l,o,d|2),r.elementType=Q,r.lanes=y,r;case ce:return r=Wt(13,l,o,d),r.elementType=ce,r.lanes=y,r;case $:return r=Wt(19,l,o,d),r.elementType=$,r.lanes=y,r;case oe:return Ml(l,d,y,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case K:w=10;break e;case Z:w=9;break e;case ie:w=11;break e;case te:w=14;break e;case W:w=16,c=null;break e}throw Error(i(130,r==null?r:typeof r,""))}return o=Wt(w,l,o,d),o.elementType=r,o.type=c,o.lanes=y,o}function Br(r,o,l,c){return r=Wt(7,r,c,o),r.lanes=l,r}function Ml(r,o,l,c){return r=Wt(22,r,c,o),r.elementType=oe,r.lanes=l,r.stateNode={isHidden:!1},r}function ic(r,o,l){return r=Wt(6,r,null,o),r.lanes=l,r}function oc(r,o,l){return o=Wt(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function Pv(r,o,l,c,d){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ra(0),this.expirationTimes=Ra(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ra(0),this.identifierPrefix=c,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function sc(r,o,l,c,d,y,w,E,M){return r=new Pv(r,o,l,E,M),o===1?(o=1,y===!0&&(o|=8)):o=0,y=Wt(3,null,null,o),r.current=y,y.stateNode=r,y.memoizedState={element:c,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},_u(y),r}function Nv(r,o,l){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:c==null?null:""+c,children:r,containerInfo:o,implementation:l}}function pp(r){if(!r)return sr;r=r._reactInternals;e:{if(jr(r)!==r||r.tag!==1)throw Error(i(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Et(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(i(171))}if(r.tag===1){var l=r.type;if(Et(l))return Hh(r,l,o)}return o}function gp(r,o,l,c,d,y,w,E,M){return r=sc(l,c,!0,r,d,y,w,E,M),r.context=pp(null),l=r.current,c=yt(),d=dr(l),y=jn(c,d),y.callback=o??null,ur(l,y,d),r.current.lanes=d,fo(r,d,c),Tt(r,c),r}function Ol(r,o,l,c){var d=o.current,y=yt(),w=dr(d);return l=pp(l),o.context===null?o.context=l:o.pendingContext=l,o=jn(y,w),o.payload={element:r},c=c===void 0?null:c,c!==null&&(o.callback=c),r=ur(d,o,w),r!==null&&(ln(r,d,w,y),al(r,d,w)),w}function Rl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function mp(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function lc(r,o){mp(r,o),(r=r.alternate)&&mp(r,o)}function Tv(){return null}var yp=typeof reportError=="function"?reportError:function(r){console.error(r)};function ac(r){this._internalRoot=r}Al.prototype.render=ac.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(i(409));Ol(r,o,null,null)},Al.prototype.unmount=ac.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;Vr(function(){Ol(null,r,null,null)}),o[Tn]=null}};function Al(r){this._internalRoot=r}Al.prototype.unstable_scheduleHydration=function(r){if(r){var o=eh();r={blockedOn:null,target:r,priority:o};for(var l=0;l<tr.length&&o!==0&&o<tr[l].priority;l++);tr.splice(l,0,r),l===0&&rh(r)}};function uc(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function jl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function vp(){}function Mv(r,o,l,c,d){if(d){if(typeof c=="function"){var y=c;c=function(){var V=Rl(w);y.call(V)}}var w=gp(o,c,r,0,null,!1,!1,"",vp);return r._reactRootContainer=w,r[Tn]=w.current,Eo(r.nodeType===8?r.parentNode:r),Vr(),w}for(;d=r.lastChild;)r.removeChild(d);if(typeof c=="function"){var E=c;c=function(){var V=Rl(M);E.call(V)}}var M=sc(r,0,!1,null,null,!1,!1,"",vp);return r._reactRootContainer=M,r[Tn]=M.current,Eo(r.nodeType===8?r.parentNode:r),Vr(function(){Ol(o,M,l,c)}),M}function zl(r,o,l,c,d){var y=l._reactRootContainer;if(y){var w=y;if(typeof d=="function"){var E=d;d=function(){var M=Rl(w);E.call(M)}}Ol(o,w,r,d)}else w=Mv(l,o,r,d,c);return Rl(w)}Zf=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var l=co(o.pendingLanes);l!==0&&(Aa(o,l|1),Tt(o,Xe()),(Oe&6)===0&&(ji=Xe()+500,lr()))}break;case 13:Vr(function(){var c=An(r,1);if(c!==null){var d=yt();ln(c,r,1,d)}}),lc(r,1)}},ja=function(r){if(r.tag===13){var o=An(r,134217728);if(o!==null){var l=yt();ln(o,r,134217728,l)}lc(r,134217728)}},Jf=function(r){if(r.tag===13){var o=dr(r),l=An(r,o);if(l!==null){var c=yt();ln(l,r,o,c)}lc(r,o)}},eh=function(){return ze},th=function(r,o){var l=ze;try{return ze=r,o()}finally{ze=l}},Ea=function(r,o,l){switch(o){case"input":if(io(r,l),o=l.name,l.type==="radio"&&o!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var c=l[o];if(c!==r&&c.form===r.form){var d=Zs(c);if(!d)throw Error(i(90));bs(c),io(c,d)}}}break;case"textarea":se(r,l);break;case"select":o=l.value,o!=null&&Yn(r,!!l.multiple,o,!1)}},Ff=ec,$f=Vr;var Ov={usingClientEntryPoint:!1,Events:[To,wi,Zs,If,Lf,ec]},Vo={findFiberByHostInstance:zr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Rv={bundleType:Vo.bundleType,version:Vo.version,rendererPackageName:Vo.rendererPackageName,rendererConfig:Vo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:P.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=qf(r),r===null?null:r.stateNode},findFiberByHostInstance:Vo.findFiberByHostInstance||Tv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dl.isDisabled&&Dl.supportsFiber)try{As=Dl.inject(Rv),gn=Dl}catch{}}return Mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ov,Mt.createPortal=function(r,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!uc(o))throw Error(i(200));return Nv(r,o,null,l)},Mt.createRoot=function(r,o){if(!uc(r))throw Error(i(299));var l=!1,c="",d=yp;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(d=o.onRecoverableError)),o=sc(r,1,!1,null,null,l,!1,c,d),r[Tn]=o.current,Eo(r.nodeType===8?r.parentNode:r),new ac(o)},Mt.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=qf(o),r=r===null?null:r.stateNode,r},Mt.flushSync=function(r){return Vr(r)},Mt.hydrate=function(r,o,l){if(!jl(o))throw Error(i(200));return zl(null,r,o,!0,l)},Mt.hydrateRoot=function(r,o,l){if(!uc(r))throw Error(i(405));var c=l!=null&&l.hydratedSources||null,d=!1,y="",w=yp;if(l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(w=l.onRecoverableError)),o=gp(o,null,r,1,l??null,d,!1,y,w),r[Tn]=o.current,Eo(r),c)for(r=0;r<c.length;r++)l=c[r],d=l._getVersion,d=d(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,d]:o.mutableSourceEagerHydrationData.push(l,d);return new Al(o)},Mt.render=function(r,o,l){if(!jl(o))throw Error(i(200));return zl(null,r,o,!1,l)},Mt.unmountComponentAtNode=function(r){if(!jl(r))throw Error(i(40));return r._reactRootContainer?(Vr(function(){zl(null,null,r,!1,function(){r._reactRootContainer=null,r[Tn]=null})}),!0):!1},Mt.unstable_batchedUpdates=ec,Mt.unstable_renderSubtreeIntoContainer=function(r,o,l,c){if(!jl(l))throw Error(i(200));if(r==null||r._reactInternals===void 0)throw Error(i(38));return zl(r,o,l,!1,c)},Mt.version="18.3.1-next-f1338f8080-20240426",Mt}var Dp;function _1(){if(Dp)return pc.exports;Dp=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(n){console.error(n)}}return e(),pc.exports=v1(),pc.exports}var Ip;function x1(){if(Ip)return Fl;Ip=1;var e=_1();return Fl.createRoot=e.createRoot,Fl.hydrateRoot=e.hydrateRoot,Fl}var w1=x1();/**
41
41
  * @license lucide-react v0.408.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
- */const k1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E0=(...e)=>e.filter((n,i,s)=>!!n&&s.indexOf(n)===i).join(" ");/**
45
+ */const k1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P0=(...e)=>e.filter((n,i,s)=>!!n&&s.indexOf(n)===i).join(" ");/**
46
46
  * @license lucide-react v0.408.0 - ISC
47
47
  *
48
48
  * This source code is licensed under the ISC license.
@@ -52,54 +52,64 @@ Error generating stack: `+m.message+`
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const C1=de.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:a="",children:u,iconNode:f,...h},p)=>de.createElement("svg",{ref:p,...S1,width:n,height:n,stroke:e,strokeWidth:s?Number(i)*24/Number(n):i,className:E0("lucide",a),...h},[...f.map(([y,v])=>de.createElement(y,v)),...Array.isArray(u)?u:[u]]));/**
55
+ */const C1=de.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:a="",children:u,iconNode:f,...h},p)=>de.createElement("svg",{ref:p,...S1,width:n,height:n,stroke:e,strokeWidth:s?Number(i)*24/Number(n):i,className:P0("lucide",a),...h},[...f.map(([m,v])=>de.createElement(m,v)),...Array.isArray(u)?u:[u]]));/**
56
56
  * @license lucide-react v0.408.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const ai=(e,n)=>{const i=de.forwardRef(({className:s,...a},u)=>de.createElement(C1,{ref:u,iconNode:n,className:E0(`lucide-${k1(e)}`,s),...a}));return i.displayName=`${e}`,i};/**
60
+ */const Xn=(e,n)=>{const i=de.forwardRef(({className:s,...a},u)=>de.createElement(C1,{ref:u,iconNode:n,className:P0(`lucide-${k1(e)}`,s),...a}));return i.displayName=`${e}`,i};/**
61
61
  * @license lucide-react v0.408.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
- */const b1=ai("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/**
65
+ */const b1=Xn("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/**
66
66
  * @license lucide-react v0.408.0 - ISC
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const E1=ai("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
70
+ */const E1=Xn("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
71
71
  * @license lucide-react v0.408.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const Lp=ai("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
75
+ */const Lp=Xn("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
76
76
  * @license lucide-react v0.408.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
- */const mc=ai("File",[["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"}]]);/**
80
+ */const yc=Xn("File",[["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"}]]);/**
81
81
  * @license lucide-react v0.408.0 - ISC
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const vc=ai("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
85
+ */const P1=Xn("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
86
86
  * @license lucide-react v0.408.0 - ISC
87
87
  *
88
88
  * This source code is licensed under the ISC license.
89
89
  * See the LICENSE file in the root directory of this source tree.
90
- */const P1=ai("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
90
+ */const vc=Xn("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
91
91
  * @license lucide-react v0.408.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
- */const Fp=ai("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);function T1({children:e,variant:n="default",className:i=""}){const s="inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",a={default:"bg-primary text-primary-foreground",outline:"border border-input bg-background text-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-destructive-foreground"};return $.jsx("span",{className:`${s} ${a[n]} ${i}`,children:e})}function ht({children:e,variant:n="default",size:i="default",className:s="",onClick:a,disabled:u=!1,title:f,type:h="button"}){const p="inline-flex items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none",y={default:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"},v={default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"};return $.jsx("button",{type:h,className:`${p} ${y[n]} ${v[i]} ${s}`,onClick:a,disabled:u,title:f,children:e})}function N1({children:e,className:n=""}){return $.jsx("div",{className:`rounded-lg border bg-card text-card-foreground shadow-sm ${n}`,children:e})}function M1({children:e,className:n=""}){return $.jsx("div",{className:`flex flex-col space-y-1.5 p-6 ${n}`,children:e})}function O1({children:e,className:n=""}){return $.jsx("div",{className:`flex items-center p-6 pt-0 ${n}`,children:e})}function R1({type:e="text",placeholder:n,value:i,onChange:s,className:a="",disabled:u=!1,ref:f,multiple:h,accept:p,...y}){return $.jsx("input",{type:e,placeholder:n,value:i,onChange:s,disabled:u,multiple:h,accept:p,ref:f,className:`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${a}`,...y})}function A1(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n===0){if(Object(i)!==i)return;p=!1}else for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function j1(e,n,i){return n=H1(n),n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function $p(e,n){return I1(e)||A1(e,n)||P0(e,n)||$1()}function z1(e){return D1(e)||L1(e)||P0(e)||F1()}function D1(e){if(Array.isArray(e))return Qc(e)}function I1(e){if(Array.isArray(e))return e}function L1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function P0(e,n){if(e){if(typeof e=="string")return Qc(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Qc(e,n)}}function Qc(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=new Array(n);i<n;i++)s[i]=e[i];return s}function F1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
96
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
97
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U1(e,n){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function H1(e){var n=U1(e,"string");return typeof n=="symbol"?n:String(n)}var q1=function(n,i){var s=new Set(i);return Object.assign.apply(Object,[{}].concat(z1(Object.entries(n).filter(function(a){var u=$p(a,1),f=u[0];return!s.has(f)}).map(function(a){var u=$p(a,2),f=u[0],h=u[1];return j1({},f,h)}))))};function Bc(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function V1(e){if(Array.isArray(e))return e}function Q1(e){if(Array.isArray(e))return Bc(e)}function B1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function W1(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function K1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
98
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
99
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X1(e,n){return V1(e)||W1(e,n)||T0(e,n)||K1()}function Up(e){return Q1(e)||B1(e)||T0(e)||G1()}function T0(e,n){if(e){if(typeof e=="string")return Bc(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Bc(e,n):void 0}}function Y1(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.wrapperElementType,s=i===void 0?"div":i,a=n.nodeMapper,u=a===void 0?function(v){return v}:a,f=n.methodNames,h=f===void 0?[]:f,p=n.initPropNames,y=p===void 0?[]:p;return de.forwardRef(function(v,g){var _=de.useRef(),x=de.useMemo(function(){var S=Object.fromEntries(y.filter(function(k){return v.hasOwnProperty(k)}).map(function(k){return[k,v[k]]}));return e(S)},[]);Hp(function(){x(u(_.current))},de.useLayoutEffect),Hp(function(){return x._destructor instanceof Function?x._destructor:void 0});var C=de.useCallback(function(S){for(var k=arguments.length,O=new Array(k>1?k-1:0),A=1;A<k;A++)O[A-1]=arguments[A];return x[S]instanceof Function?x[S].apply(x,O):void 0},[x]),b=de.useRef({});return Object.keys(q1(v,[].concat(Up(h),Up(y)))).filter(function(S){return b.current[S]!==v[S]}).forEach(function(S){return C(S,v[S])}),b.current=v,de.useImperativeHandle(g,function(){return Object.fromEntries(h.map(function(S){return[S,function(){for(var k=arguments.length,O=new Array(k),A=0;A<k;A++)O[A]=arguments[A];return C.apply(void 0,[S].concat(O))}]}))},[C]),n1.createElement(s,{ref:_})})}function Hp(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:de.useEffect,i=de.useRef(),s=de.useRef(!1),a=de.useRef(!1),u=de.useState(0),f=X1(u,2);f[0];var h=f[1];s.current&&(a.current=!0),n(function(){return s.current||(i.current=e(),s.current=!0),h(function(p){return p+1}),function(){a.current&&i.current&&i.current()}},[])}var Wc="http://www.w3.org/1999/xhtml";const qp={svg:"http://www.w3.org/2000/svg",xhtml:Wc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ga(e){var n=e+="",i=n.indexOf(":");return i>=0&&(n=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),qp.hasOwnProperty(n)?{space:qp[n],local:e}:e}function Z1(e){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Wc&&n.documentElement.namespaceURI===Wc?n.createElement(e):n.createElementNS(i,e)}}function J1(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function N0(e){var n=ga(e);return(n.local?J1:Z1)(n)}function e_(){}function mf(e){return e==null?e_:function(){return this.querySelector(e)}}function t_(e){typeof e!="function"&&(e=mf(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=new Array(f),p,y,v=0;v<f;++v)(p=u[v])&&(y=e.call(p,p.__data__,v,u))&&("__data__"in p&&(y.__data__=p.__data__),h[v]=y);return new $t(s,this._parents)}function n_(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function r_(){return[]}function M0(e){return e==null?r_:function(){return this.querySelectorAll(e)}}function i_(e){return function(){return n_(e.apply(this,arguments))}}function o_(e){typeof e=="function"?e=i_(e):e=M0(e);for(var n=this._groups,i=n.length,s=[],a=[],u=0;u<i;++u)for(var f=n[u],h=f.length,p,y=0;y<h;++y)(p=f[y])&&(s.push(e.call(p,p.__data__,y,f)),a.push(p));return new $t(s,a)}function O0(e){return function(){return this.matches(e)}}function R0(e){return function(n){return n.matches(e)}}var s_=Array.prototype.find;function l_(e){return function(){return s_.call(this.children,e)}}function a_(){return this.firstElementChild}function u_(e){return this.select(e==null?a_:l_(typeof e=="function"?e:R0(e)))}var c_=Array.prototype.filter;function f_(){return Array.from(this.children)}function h_(e){return function(){return c_.call(this.children,e)}}function d_(e){return this.selectAll(e==null?f_:h_(typeof e=="function"?e:R0(e)))}function p_(e){typeof e!="function"&&(e=O0(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=[],p,y=0;y<f;++y)(p=u[y])&&e.call(p,p.__data__,y,u)&&h.push(p);return new $t(s,this._parents)}function A0(e){return new Array(e.length)}function g_(){return new $t(this._enter||this._groups.map(A0),this._parents)}function na(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}na.prototype={constructor:na,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function y_(e){return function(){return e}}function m_(e,n,i,s,a,u){for(var f=0,h,p=n.length,y=u.length;f<y;++f)(h=n[f])?(h.__data__=u[f],s[f]=h):i[f]=new na(e,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function v_(e,n,i,s,a,u,f){var h,p,y=new Map,v=n.length,g=u.length,_=new Array(v),x;for(h=0;h<v;++h)(p=n[h])&&(_[h]=x=f.call(p,p.__data__,h,n)+"",y.has(x)?a[h]=p:y.set(x,p));for(h=0;h<g;++h)x=f.call(e,u[h],h,u)+"",(p=y.get(x))?(s[h]=p,p.__data__=u[h],y.delete(x)):i[h]=new na(e,u[h]);for(h=0;h<v;++h)(p=n[h])&&y.get(_[h])===p&&(a[h]=p)}function __(e){return e.__data__}function x_(e,n){if(!arguments.length)return Array.from(this,__);var i=n?v_:m_,s=this._parents,a=this._groups;typeof e!="function"&&(e=y_(e));for(var u=a.length,f=new Array(u),h=new Array(u),p=new Array(u),y=0;y<u;++y){var v=s[y],g=a[y],_=g.length,x=w_(e.call(v,v&&v.__data__,y,s)),C=x.length,b=h[y]=new Array(C),S=f[y]=new Array(C),k=p[y]=new Array(_);i(v,g,b,S,k,x,n);for(var O=0,A=0,P,T;O<C;++O)if(P=b[O]){for(O>=A&&(A=O+1);!(T=S[A])&&++A<C;);P._next=T||null}}return f=new $t(f,s),f._enter=h,f._exit=p,f}function w_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function k_(){return new $t(this._exit||this._groups.map(A0),this._parents)}function S_(e,n,i){var s=this.enter(),a=this,u=this.exit();return typeof e=="function"?(s=e(s),s&&(s=s.selection())):s=s.append(e+""),n!=null&&(a=n(a),a&&(a=a.selection())),i==null?u.remove():i(u),s&&a?s.merge(a).order():a}function C_(e){for(var n=e.selection?e.selection():e,i=this._groups,s=n._groups,a=i.length,u=s.length,f=Math.min(a,u),h=new Array(a),p=0;p<f;++p)for(var y=i[p],v=s[p],g=y.length,_=h[p]=new Array(g),x,C=0;C<g;++C)(x=y[C]||v[C])&&(_[C]=x);for(;p<a;++p)h[p]=i[p];return new $t(h,this._parents)}function b_(){for(var e=this._groups,n=-1,i=e.length;++n<i;)for(var s=e[n],a=s.length-1,u=s[a],f;--a>=0;)(f=s[a])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function E_(e){e||(e=P_);function n(g,_){return g&&_?e(g.__data__,_.__data__):!g-!_}for(var i=this._groups,s=i.length,a=new Array(s),u=0;u<s;++u){for(var f=i[u],h=f.length,p=a[u]=new Array(h),y,v=0;v<h;++v)(y=f[v])&&(p[v]=y);p.sort(n)}return new $t(a,this._parents).order()}function P_(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function T_(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function N_(){return Array.from(this)}function M_(){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var s=e[n],a=0,u=s.length;a<u;++a){var f=s[a];if(f)return f}return null}function O_(){let e=0;for(const n of this)++e;return e}function R_(){return!this.node()}function A_(e){for(var n=this._groups,i=0,s=n.length;i<s;++i)for(var a=n[i],u=0,f=a.length,h;u<f;++u)(h=a[u])&&e.call(h,h.__data__,u,a);return this}function j_(e){return function(){this.removeAttribute(e)}}function z_(e){return function(){this.removeAttributeNS(e.space,e.local)}}function D_(e,n){return function(){this.setAttribute(e,n)}}function I_(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function L_(e,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttribute(e):this.setAttribute(e,i)}}function F_(e,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function $_(e,n){var i=ga(e);if(arguments.length<2){var s=this.node();return i.local?s.getAttributeNS(i.space,i.local):s.getAttribute(i)}return this.each((n==null?i.local?z_:j_:typeof n=="function"?i.local?F_:L_:i.local?I_:D_)(i,n))}function j0(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function U_(e){return function(){this.style.removeProperty(e)}}function H_(e,n,i){return function(){this.style.setProperty(e,n,i)}}function q_(e,n,i){return function(){var s=n.apply(this,arguments);s==null?this.style.removeProperty(e):this.style.setProperty(e,s,i)}}function V_(e,n,i){return arguments.length>1?this.each((n==null?U_:typeof n=="function"?q_:H_)(e,n,i??"")):Ji(this.node(),e)}function Ji(e,n){return e.style.getPropertyValue(n)||j0(e).getComputedStyle(e,null).getPropertyValue(n)}function Q_(e){return function(){delete this[e]}}function B_(e,n){return function(){this[e]=n}}function W_(e,n){return function(){var i=n.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function K_(e,n){return arguments.length>1?this.each((n==null?Q_:typeof n=="function"?W_:B_)(e,n)):this.node()[e]}function z0(e){return e.trim().split(/^|\s+/)}function vf(e){return e.classList||new D0(e)}function D0(e){this._node=e,this._names=z0(e.getAttribute("class")||"")}D0.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function I0(e,n){for(var i=vf(e),s=-1,a=n.length;++s<a;)i.add(n[s])}function L0(e,n){for(var i=vf(e),s=-1,a=n.length;++s<a;)i.remove(n[s])}function G_(e){return function(){I0(this,e)}}function X_(e){return function(){L0(this,e)}}function Y_(e,n){return function(){(n.apply(this,arguments)?I0:L0)(this,e)}}function Z_(e,n){var i=z0(e+"");if(arguments.length<2){for(var s=vf(this.node()),a=-1,u=i.length;++a<u;)if(!s.contains(i[a]))return!1;return!0}return this.each((typeof n=="function"?Y_:n?G_:X_)(i,n))}function J_(){this.textContent=""}function ex(e){return function(){this.textContent=e}}function tx(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function nx(e){return arguments.length?this.each(e==null?J_:(typeof e=="function"?tx:ex)(e)):this.node().textContent}function rx(){this.innerHTML=""}function ix(e){return function(){this.innerHTML=e}}function ox(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function sx(e){return arguments.length?this.each(e==null?rx:(typeof e=="function"?ox:ix)(e)):this.node().innerHTML}function lx(){this.nextSibling&&this.parentNode.appendChild(this)}function ax(){return this.each(lx)}function ux(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cx(){return this.each(ux)}function fx(e){var n=typeof e=="function"?e:N0(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function hx(){return null}function dx(e,n){var i=typeof e=="function"?e:N0(e),s=n==null?hx:typeof n=="function"?n:mf(n);return this.select(function(){return this.insertBefore(i.apply(this,arguments),s.apply(this,arguments)||null)})}function px(){var e=this.parentNode;e&&e.removeChild(this)}function gx(){return this.each(px)}function yx(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function mx(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function vx(e){return this.select(e?mx:yx)}function _x(e){return arguments.length?this.property("__data__",e):this.node().__data__}function xx(e){return function(n){e.call(this,n,this.__data__)}}function wx(e){return e.trim().split(/^|\s+/).map(function(n){var i="",s=n.indexOf(".");return s>=0&&(i=n.slice(s+1),n=n.slice(0,s)),{type:n,name:i}})}function kx(e){return function(){var n=this.__on;if(n){for(var i=0,s=-1,a=n.length,u;i<a;++i)u=n[i],(!e.type||u.type===e.type)&&u.name===e.name?this.removeEventListener(u.type,u.listener,u.options):n[++s]=u;++s?n.length=s:delete this.__on}}}function Sx(e,n,i){return function(){var s=this.__on,a,u=xx(n);if(s){for(var f=0,h=s.length;f<h;++f)if((a=s[f]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=i),a.value=n;return}}this.addEventListener(e.type,u,i),a={type:e.type,name:e.name,value:n,listener:u,options:i},s?s.push(a):this.__on=[a]}}function Cx(e,n,i){var s=wx(e+""),a,u=s.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,y=h.length,v;p<y;++p)for(a=0,v=h[p];a<u;++a)if((f=s[a]).type===v.type&&f.name===v.name)return v.value}return}for(h=n?Sx:kx,a=0;a<u;++a)this.each(h(s[a],n,i));return this}function F0(e,n,i){var s=j0(e),a=s.CustomEvent;typeof a=="function"?a=new a(n,i):(a=s.document.createEvent("Event"),i?(a.initEvent(n,i.bubbles,i.cancelable),a.detail=i.detail):a.initEvent(n,!1,!1)),e.dispatchEvent(a)}function bx(e,n){return function(){return F0(this,e,n)}}function Ex(e,n){return function(){return F0(this,e,n.apply(this,arguments))}}function Px(e,n){return this.each((typeof n=="function"?Ex:bx)(e,n))}function*Tx(){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var s=e[n],a=0,u=s.length,f;a<u;++a)(f=s[a])&&(yield f)}var $0=[null];function $t(e,n){this._groups=e,this._parents=n}function xs(){return new $t([[document.documentElement]],$0)}function Nx(){return this}$t.prototype=xs.prototype={constructor:$t,select:t_,selectAll:o_,selectChild:u_,selectChildren:d_,filter:p_,data:x_,enter:g_,exit:k_,join:S_,merge:C_,selection:Nx,order:b_,sort:E_,call:T_,nodes:N_,node:M_,size:O_,empty:R_,each:A_,attr:$_,style:V_,property:K_,classed:Z_,text:nx,html:sx,raise:ax,lower:cx,append:fx,insert:dx,remove:gx,clone:vx,datum:_x,on:Cx,dispatch:Px,[Symbol.iterator]:Tx};function Yt(e){return typeof e=="string"?new $t([[document.querySelector(e)]],[document.documentElement]):new $t([[e]],$0)}function Mx(e){let n;for(;n=e.sourceEvent;)e=n;return e}function wn(e,n){if(e=Mx(e),n===void 0&&(n=e.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var s=i.createSVGPoint();return s.x=e.clientX,s.y=e.clientY,s=s.matrixTransform(n.getScreenCTM().inverse()),[s.x,s.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.clientTop]}}return[e.pageX,e.pageY]}var Ox={value:()=>{}};function ws(){for(var e=0,n=arguments.length,i={},s;e<n;++e){if(!(s=arguments[e]+"")||s in i||/[\s.]/.test(s))throw new Error("illegal type: "+s);i[s]=[]}return new Gl(i)}function Gl(e){this._=e}function Rx(e,n){return e.trim().split(/^|\s+/).map(function(i){var s="",a=i.indexOf(".");if(a>=0&&(s=i.slice(a+1),i=i.slice(0,a)),i&&!n.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:s}})}Gl.prototype=ws.prototype={constructor:Gl,on:function(e,n){var i=this._,s=Rx(e+"",i),a,u=-1,f=s.length;if(arguments.length<2){for(;++u<f;)if((a=(e=s[u]).type)&&(a=Ax(i[a],e.name)))return a;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++u<f;)if(a=(e=s[u]).type)i[a]=Vp(i[a],e.name,n);else if(n==null)for(a in i)i[a]=Vp(i[a],e.name,null);return this},copy:function(){var e={},n=this._;for(var i in n)e[i]=n[i].slice();return new Gl(e)},call:function(e,n){if((a=arguments.length-2)>0)for(var i=new Array(a),s=0,a,u;s<a;++s)i[s]=arguments[s+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(u=this._[e],s=0,a=u.length;s<a;++s)u[s].value.apply(n,i)},apply:function(e,n,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var s=this._[e],a=0,u=s.length;a<u;++a)s[a].value.apply(n,i)}};function Ax(e,n){for(var i=0,s=e.length,a;i<s;++i)if((a=e[i]).name===n)return a.value}function Vp(e,n,i){for(var s=0,a=e.length;s<a;++s)if(e[s].name===n){e[s]=Ox,e=e.slice(0,s).concat(e.slice(s+1));break}return i!=null&&e.push({name:n,value:i}),e}const jx={passive:!1},as={capture:!0,passive:!1};function _c(e){e.stopImmediatePropagation()}function Li(e){e.preventDefault(),e.stopImmediatePropagation()}function U0(e){var n=e.document.documentElement,i=Yt(e).on("dragstart.drag",Li,as);"onselectstart"in n?i.on("selectstart.drag",Li,as):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function H0(e,n){var i=e.document.documentElement,s=Yt(e).on("dragstart.drag",null);n&&(s.on("click.drag",Li,as),setTimeout(function(){s.on("click.drag",null)},0)),"onselectstart"in i?s.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}const $l=e=>()=>e;function Kc(e,{sourceEvent:n,subject:i,target:s,identifier:a,active:u,x:f,y:h,dx:p,dy:y,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:p,enumerable:!0,configurable:!0},dy:{value:y,enumerable:!0,configurable:!0},_:{value:v}})}Kc.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function zx(e){return!e.ctrlKey&&!e.button}function Dx(){return this.parentNode}function Ix(e,n){return n??{x:e.x,y:e.y}}function Lx(){return navigator.maxTouchPoints||"ontouchstart"in this}function Fx(){var e=zx,n=Dx,i=Ix,s=Lx,a={},u=ws("start","drag","end"),f=0,h,p,y,v,g=0;function _(P){P.on("mousedown.drag",x).filter(s).on("touchstart.drag",S).on("touchmove.drag",k,jx).on("touchend.drag touchcancel.drag",O).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(P,T){if(!(v||!e.call(this,P,T))){var z=A(this,n.call(this,P,T),P,T,"mouse");z&&(Yt(P.view).on("mousemove.drag",C,as).on("mouseup.drag",b,as),U0(P.view),_c(P),y=!1,h=P.clientX,p=P.clientY,z("start",P))}}function C(P){if(Li(P),!y){var T=P.clientX-h,z=P.clientY-p;y=T*T+z*z>g}a.mouse("drag",P)}function b(P){Yt(P.view).on("mousemove.drag mouseup.drag",null),H0(P.view,y),Li(P),a.mouse("end",P)}function S(P,T){if(e.call(this,P,T)){var z=P.changedTouches,L=n.call(this,P,T),D=z.length,Q,K;for(Q=0;Q<D;++Q)(K=A(this,L,P,T,z[Q].identifier,z[Q]))&&(_c(P),K("start",P,z[Q]))}}function k(P){var T=P.changedTouches,z=T.length,L,D;for(L=0;L<z;++L)(D=a[T[L].identifier])&&(Li(P),D("drag",P,T[L]))}function O(P){var T=P.changedTouches,z=T.length,L,D;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),L=0;L<z;++L)(D=a[T[L].identifier])&&(_c(P),D("end",P,T[L]))}function A(P,T,z,L,D,Q){var K=u.copy(),Z=wn(Q||z,T),ie,ce,F;if((F=i.call(P,new Kc("beforestart",{sourceEvent:z,target:_,identifier:D,active:f,x:Z[0],y:Z[1],dx:0,dy:0,dispatch:K}),L))!=null)return ie=F.x-Z[0]||0,ce=F.y-Z[1]||0,function te(W,oe,B){var J=Z,G;switch(W){case"start":a[D]=te,G=f++;break;case"end":delete a[D],--f;case"drag":Z=wn(B||oe,T),G=f;break}K.call(W,P,new Kc(W,{sourceEvent:oe,subject:F,target:_,identifier:D,active:G,x:Z[0]+ie,y:Z[1]+ce,dx:Z[0]-J[0],dy:Z[1]-J[1],dispatch:K}),L)}}return _.filter=function(P){return arguments.length?(e=typeof P=="function"?P:$l(!!P),_):e},_.container=function(P){return arguments.length?(n=typeof P=="function"?P:$l(P),_):n},_.subject=function(P){return arguments.length?(i=typeof P=="function"?P:$l(P),_):i},_.touchable=function(P){return arguments.length?(s=typeof P=="function"?P:$l(!!P),_):s},_.on=function(){var P=u.on.apply(u,arguments);return P===u?_:P},_.clickDistance=function(P){return arguments.length?(g=(P=+P)*P,_):Math.sqrt(g)},_}function _f(e,n,i){e.prototype=n.prototype=i,i.constructor=e}function q0(e,n){var i=Object.create(e.prototype);for(var s in n)i[s]=n[s];return i}function ks(){}var us=.7,ra=1/us,Fi="\\s*([+-]?\\d+)\\s*",cs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",En="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$x=/^#([0-9a-f]{3,8})$/,Ux=new RegExp(`^rgb\\(${Fi},${Fi},${Fi}\\)$`),Hx=new RegExp(`^rgb\\(${En},${En},${En}\\)$`),qx=new RegExp(`^rgba\\(${Fi},${Fi},${Fi},${cs}\\)$`),Vx=new RegExp(`^rgba\\(${En},${En},${En},${cs}\\)$`),Qx=new RegExp(`^hsl\\(${cs},${En},${En}\\)$`),Bx=new RegExp(`^hsla\\(${cs},${En},${En},${cs}\\)$`),Qp={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};_f(ks,fs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bp,formatHex:Bp,formatHex8:Wx,formatHsl:Kx,formatRgb:Wp,toString:Wp});function Bp(){return this.rgb().formatHex()}function Wx(){return this.rgb().formatHex8()}function Kx(){return V0(this).formatHsl()}function Wp(){return this.rgb().formatRgb()}function fs(e){var n,i;return e=(e+"").trim().toLowerCase(),(n=$x.exec(e))?(i=n[1].length,n=parseInt(n[1],16),i===6?Kp(n):i===3?new At(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?Ul(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?Ul(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=Ux.exec(e))?new At(n[1],n[2],n[3],1):(n=Hx.exec(e))?new At(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=qx.exec(e))?Ul(n[1],n[2],n[3],n[4]):(n=Vx.exec(e))?Ul(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Qx.exec(e))?Yp(n[1],n[2]/100,n[3]/100,1):(n=Bx.exec(e))?Yp(n[1],n[2]/100,n[3]/100,n[4]):Qp.hasOwnProperty(e)?Kp(Qp[e]):e==="transparent"?new At(NaN,NaN,NaN,0):null}function Kp(e){return new At(e>>16&255,e>>8&255,e&255,1)}function Ul(e,n,i,s){return s<=0&&(e=n=i=NaN),new At(e,n,i,s)}function Gx(e){return e instanceof ks||(e=fs(e)),e?(e=e.rgb(),new At(e.r,e.g,e.b,e.opacity)):new At}function Gc(e,n,i,s){return arguments.length===1?Gx(e):new At(e,n,i,s??1)}function At(e,n,i,s){this.r=+e,this.g=+n,this.b=+i,this.opacity=+s}_f(At,Gc,q0(ks,{brighter(e){return e=e==null?ra:Math.pow(ra,e),new At(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?us:Math.pow(us,e),new At(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new At(ri(this.r),ri(this.g),ri(this.b),ia(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:Gp,formatHex:Gp,formatHex8:Xx,formatRgb:Xp,toString:Xp}));function Gp(){return`#${Kr(this.r)}${Kr(this.g)}${Kr(this.b)}`}function Xx(){return`#${Kr(this.r)}${Kr(this.g)}${Kr(this.b)}${Kr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xp(){const e=ia(this.opacity);return`${e===1?"rgb(":"rgba("}${ri(this.r)}, ${ri(this.g)}, ${ri(this.b)}${e===1?")":`, ${e})`}`}function ia(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ri(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Kr(e){return e=ri(e),(e<16?"0":"")+e.toString(16)}function Yp(e,n,i,s){return s<=0?e=n=i=NaN:i<=0||i>=1?e=n=NaN:n<=0&&(e=NaN),new hn(e,n,i,s)}function V0(e){if(e instanceof hn)return new hn(e.h,e.s,e.l,e.opacity);if(e instanceof ks||(e=fs(e)),!e)return new hn;if(e instanceof hn)return e;e=e.rgb();var n=e.r/255,i=e.g/255,s=e.b/255,a=Math.min(n,i,s),u=Math.max(n,i,s),f=NaN,h=u-a,p=(u+a)/2;return h?(n===u?f=(i-s)/h+(i<s)*6:i===u?f=(s-n)/h+2:f=(n-i)/h+4,h/=p<.5?u+a:2-u-a,f*=60):h=p>0&&p<1?0:f,new hn(f,h,p,e.opacity)}function Yx(e,n,i,s){return arguments.length===1?V0(e):new hn(e,n,i,s??1)}function hn(e,n,i,s){this.h=+e,this.s=+n,this.l=+i,this.opacity=+s}_f(hn,Yx,q0(ks,{brighter(e){return e=e==null?ra:Math.pow(ra,e),new hn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?us:Math.pow(us,e),new hn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*n,a=2*i-s;return new At(xc(e>=240?e-240:e+120,a,s),xc(e,a,s),xc(e<120?e+240:e-120,a,s),this.opacity)},clamp(){return new hn(Zp(this.h),Hl(this.s),Hl(this.l),ia(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=ia(this.opacity);return`${e===1?"hsl(":"hsla("}${Zp(this.h)}, ${Hl(this.s)*100}%, ${Hl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zp(e){return e=(e||0)%360,e<0?e+360:e}function Hl(e){return Math.max(0,Math.min(1,e||0))}function xc(e,n,i){return(e<60?n+(i-n)*e/60:e<180?i:e<240?n+(i-n)*(240-e)/60:n)*255}const Q0=e=>()=>e;function Zx(e,n){return function(i){return e+i*n}}function Jx(e,n,i){return e=Math.pow(e,i),n=Math.pow(n,i)-e,i=1/i,function(s){return Math.pow(e+s*n,i)}}function ew(e){return(e=+e)==1?B0:function(n,i){return i-n?Jx(n,i,e):Q0(isNaN(n)?i:n)}}function B0(e,n){var i=n-e;return i?Zx(e,i):Q0(isNaN(e)?n:e)}const Jp=function e(n){var i=ew(n);function s(a,u){var f=i((a=Gc(a)).r,(u=Gc(u)).r),h=i(a.g,u.g),p=i(a.b,u.b),y=B0(a.opacity,u.opacity);return function(v){return a.r=f(v),a.g=h(v),a.b=p(v),a.opacity=y(v),a+""}}return s.gamma=e,s}(1);function _r(e,n){return e=+e,n=+n,function(i){return e*(1-i)+n*i}}var Xc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wc=new RegExp(Xc.source,"g");function tw(e){return function(){return e}}function nw(e){return function(n){return e(n)+""}}function rw(e,n){var i=Xc.lastIndex=wc.lastIndex=0,s,a,u,f=-1,h=[],p=[];for(e=e+"",n=n+"";(s=Xc.exec(e))&&(a=wc.exec(n));)(u=a.index)>i&&(u=n.slice(i,u),h[f]?h[f]+=u:h[++f]=u),(s=s[0])===(a=a[0])?h[f]?h[f]+=a:h[++f]=a:(h[++f]=null,p.push({i:f,x:_r(s,a)})),i=wc.lastIndex;return i<n.length&&(u=n.slice(i),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?nw(p[0].x):tw(n):(n=p.length,function(y){for(var v=0,g;v<n;++v)h[(g=p[v]).i]=g.x(y);return h.join("")})}var eg=180/Math.PI,Yc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function W0(e,n,i,s,a,u){var f,h,p;return(f=Math.sqrt(e*e+n*n))&&(e/=f,n/=f),(p=e*i+n*s)&&(i-=e*p,s-=n*p),(h=Math.sqrt(i*i+s*s))&&(i/=h,s/=h,p/=h),e*s<n*i&&(e=-e,n=-n,p=-p,f=-f),{translateX:a,translateY:u,rotate:Math.atan2(n,e)*eg,skewX:Math.atan(p)*eg,scaleX:f,scaleY:h}}var ql;function iw(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?Yc:W0(n.a,n.b,n.c,n.d,n.e,n.f)}function ow(e){return e==null||(ql||(ql=document.createElementNS("http://www.w3.org/2000/svg","g")),ql.setAttribute("transform",e),!(e=ql.transform.baseVal.consolidate()))?Yc:(e=e.matrix,W0(e.a,e.b,e.c,e.d,e.e,e.f))}function K0(e,n,i,s){function a(y){return y.length?y.pop()+" ":""}function u(y,v,g,_,x,C){if(y!==g||v!==_){var b=x.push("translate(",null,n,null,i);C.push({i:b-4,x:_r(y,g)},{i:b-2,x:_r(v,_)})}else(g||_)&&x.push("translate("+g+n+_+i)}function f(y,v,g,_){y!==v?(y-v>180?v+=360:v-y>180&&(y+=360),_.push({i:g.push(a(g)+"rotate(",null,s)-2,x:_r(y,v)})):v&&g.push(a(g)+"rotate("+v+s)}function h(y,v,g,_){y!==v?_.push({i:g.push(a(g)+"skewX(",null,s)-2,x:_r(y,v)}):v&&g.push(a(g)+"skewX("+v+s)}function p(y,v,g,_,x,C){if(y!==g||v!==_){var b=x.push(a(x)+"scale(",null,",",null,")");C.push({i:b-4,x:_r(y,g)},{i:b-2,x:_r(v,_)})}else(g!==1||_!==1)&&x.push(a(x)+"scale("+g+","+_+")")}return function(y,v){var g=[],_=[];return y=e(y),v=e(v),u(y.translateX,y.translateY,v.translateX,v.translateY,g,_),f(y.rotate,v.rotate,g,_),h(y.skewX,v.skewX,g,_),p(y.scaleX,y.scaleY,v.scaleX,v.scaleY,g,_),y=v=null,function(x){for(var C=-1,b=_.length,S;++C<b;)g[(S=_[C]).i]=S.x(x);return g.join("")}}}var sw=K0(iw,"px, ","px)","deg)"),lw=K0(ow,", ",")",")"),aw=1e-12;function tg(e){return((e=Math.exp(e))+1/e)/2}function uw(e){return((e=Math.exp(e))-1/e)/2}function cw(e){return((e=Math.exp(2*e))-1)/(e+1)}const fw=function e(n,i,s){function a(u,f){var h=u[0],p=u[1],y=u[2],v=f[0],g=f[1],_=f[2],x=v-h,C=g-p,b=x*x+C*C,S,k;if(b<aw)k=Math.log(_/y)/n,S=function(L){return[h+L*x,p+L*C,y*Math.exp(n*L*k)]};else{var O=Math.sqrt(b),A=(_*_-y*y+s*b)/(2*y*i*O),P=(_*_-y*y-s*b)/(2*_*i*O),T=Math.log(Math.sqrt(A*A+1)-A),z=Math.log(Math.sqrt(P*P+1)-P);k=(z-T)/n,S=function(L){var D=L*k,Q=tg(T),K=y/(i*O)*(Q*cw(n*D+T)-uw(T));return[h+K*x,p+K*C,y*Q/tg(n*D+T)]}}return S.duration=k*1e3*n/Math.SQRT2,S}return a.rho=function(u){var f=Math.max(.001,+u),h=f*f,p=h*h;return e(f,h,p)},a}(Math.SQRT2,2,4);var eo=0,es=0,Qo=0,G0=1e3,oa,ts,sa=0,li=0,ya=0,hs=typeof performance=="object"&&performance.now?performance:Date,X0=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function xf(){return li||(X0(hw),li=hs.now()+ya)}function hw(){li=0}function la(){this._call=this._time=this._next=null}la.prototype=wf.prototype={constructor:la,restart:function(e,n,i){if(typeof e!="function")throw new TypeError("callback is not a function");i=(i==null?xf():+i)+(n==null?0:+n),!this._next&&ts!==this&&(ts?ts._next=this:oa=this,ts=this),this._call=e,this._time=i,Zc()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zc())}};function wf(e,n,i){var s=new la;return s.restart(e,n,i),s}function dw(){xf(),++eo;for(var e=oa,n;e;)(n=li-e._time)>=0&&e._call.call(void 0,n),e=e._next;--eo}function ng(){li=(sa=hs.now())+ya,eo=es=0;try{dw()}finally{eo=0,gw(),li=0}}function pw(){var e=hs.now(),n=e-sa;n>G0&&(ya-=n,sa=e)}function gw(){for(var e,n=oa,i,s=1/0;n;)n._call?(s>n._time&&(s=n._time),e=n,n=n._next):(i=n._next,n._next=null,n=e?e._next=i:oa=i);ts=e,Zc(s)}function Zc(e){if(!eo){es&&(es=clearTimeout(es));var n=e-li;n>24?(e<1/0&&(es=setTimeout(ng,e-hs.now()-ya)),Qo&&(Qo=clearInterval(Qo))):(Qo||(sa=hs.now(),Qo=setInterval(pw,G0)),eo=1,X0(ng))}}function rg(e,n,i){var s=new la;return n=n==null?0:+n,s.restart(a=>{s.stop(),e(a+n)},n,i),s}var yw=ws("start","end","cancel","interrupt"),mw=[],Y0=0,ig=1,Jc=2,Xl=3,og=4,ef=5,Yl=6;function ma(e,n,i,s,a,u){var f=e.__transition;if(!f)e.__transition={};else if(i in f)return;vw(e,i,{name:n,index:s,group:a,on:yw,tween:mw,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Y0})}function kf(e,n){var i=pn(e,n);if(i.state>Y0)throw new Error("too late; already scheduled");return i}function Tn(e,n){var i=pn(e,n);if(i.state>Xl)throw new Error("too late; already running");return i}function pn(e,n){var i=e.__transition;if(!i||!(i=i[n]))throw new Error("transition not found");return i}function vw(e,n,i){var s=e.__transition,a;s[n]=i,i.timer=wf(u,0,i.time);function u(y){i.state=ig,i.timer.restart(f,i.delay,i.time),i.delay<=y&&f(y-i.delay)}function f(y){var v,g,_,x;if(i.state!==ig)return p();for(v in s)if(x=s[v],x.name===i.name){if(x.state===Xl)return rg(f);x.state===og?(x.state=Yl,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete s[v]):+v<n&&(x.state=Yl,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete s[v])}if(rg(function(){i.state===Xl&&(i.state=og,i.timer.restart(h,i.delay,i.time),h(y))}),i.state=Jc,i.on.call("start",e,e.__data__,i.index,i.group),i.state===Jc){for(i.state=Xl,a=new Array(_=i.tween.length),v=0,g=-1;v<_;++v)(x=i.tween[v].value.call(e,e.__data__,i.index,i.group))&&(a[++g]=x);a.length=g+1}}function h(y){for(var v=y<i.duration?i.ease.call(null,y/i.duration):(i.timer.restart(p),i.state=ef,1),g=-1,_=a.length;++g<_;)a[g].call(e,v);i.state===ef&&(i.on.call("end",e,e.__data__,i.index,i.group),p())}function p(){i.state=Yl,i.timer.stop(),delete s[n];for(var y in s)return;delete e.__transition}}function Zl(e,n){var i=e.__transition,s,a,u=!0,f;if(i){n=n==null?null:n+"";for(f in i){if((s=i[f]).name!==n){u=!1;continue}a=s.state>Jc&&s.state<ef,s.state=Yl,s.timer.stop(),s.on.call(a?"interrupt":"cancel",e,e.__data__,s.index,s.group),delete i[f]}u&&delete e.__transition}}function _w(e){return this.each(function(){Zl(this,e)})}function xw(e,n){var i,s;return function(){var a=Tn(this,e),u=a.tween;if(u!==i){s=i=u;for(var f=0,h=s.length;f<h;++f)if(s[f].name===n){s=s.slice(),s.splice(f,1);break}}a.tween=s}}function ww(e,n,i){var s,a;if(typeof i!="function")throw new Error;return function(){var u=Tn(this,e),f=u.tween;if(f!==s){a=(s=f).slice();for(var h={name:n,value:i},p=0,y=a.length;p<y;++p)if(a[p].name===n){a[p]=h;break}p===y&&a.push(h)}u.tween=a}}function kw(e,n){var i=this._id;if(e+="",arguments.length<2){for(var s=pn(this.node(),i).tween,a=0,u=s.length,f;a<u;++a)if((f=s[a]).name===e)return f.value;return null}return this.each((n==null?xw:ww)(i,e,n))}function Sf(e,n,i){var s=e._id;return e.each(function(){var a=Tn(this,s);(a.value||(a.value={}))[n]=i.apply(this,arguments)}),function(a){return pn(a,s).value[n]}}function Z0(e,n){var i;return(typeof n=="number"?_r:n instanceof fs?Jp:(i=fs(n))?(n=i,Jp):rw)(e,n)}function Sw(e){return function(){this.removeAttribute(e)}}function Cw(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bw(e,n,i){var s,a=i+"",u;return function(){var f=this.getAttribute(e);return f===a?null:f===s?u:u=n(s=f,i)}}function Ew(e,n,i){var s,a=i+"",u;return function(){var f=this.getAttributeNS(e.space,e.local);return f===a?null:f===s?u:u=n(s=f,i)}}function Pw(e,n,i){var s,a,u;return function(){var f,h=i(this),p;return h==null?void this.removeAttribute(e):(f=this.getAttribute(e),p=h+"",f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h)))}}function Tw(e,n,i){var s,a,u;return function(){var f,h=i(this),p;return h==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),p=h+"",f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h)))}}function Nw(e,n){var i=ga(e),s=i==="transform"?lw:Z0;return this.attrTween(e,typeof n=="function"?(i.local?Tw:Pw)(i,s,Sf(this,"attr."+e,n)):n==null?(i.local?Cw:Sw)(i):(i.local?Ew:bw)(i,s,n))}function Mw(e,n){return function(i){this.setAttribute(e,n.call(this,i))}}function Ow(e,n){return function(i){this.setAttributeNS(e.space,e.local,n.call(this,i))}}function Rw(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&Ow(e,u)),i}return a._value=n,a}function Aw(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&Mw(e,u)),i}return a._value=n,a}function jw(e,n){var i="attr."+e;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;var s=ga(e);return this.tween(i,(s.local?Rw:Aw)(s,n))}function zw(e,n){return function(){kf(this,e).delay=+n.apply(this,arguments)}}function Dw(e,n){return n=+n,function(){kf(this,e).delay=n}}function Iw(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?zw:Dw)(n,e)):pn(this.node(),n).delay}function Lw(e,n){return function(){Tn(this,e).duration=+n.apply(this,arguments)}}function Fw(e,n){return n=+n,function(){Tn(this,e).duration=n}}function $w(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?Lw:Fw)(n,e)):pn(this.node(),n).duration}function Uw(e,n){if(typeof n!="function")throw new Error;return function(){Tn(this,e).ease=n}}function Hw(e){var n=this._id;return arguments.length?this.each(Uw(n,e)):pn(this.node(),n).ease}function qw(e,n){return function(){var i=n.apply(this,arguments);if(typeof i!="function")throw new Error;Tn(this,e).ease=i}}function Vw(e){if(typeof e!="function")throw new Error;return this.each(qw(this._id,e))}function Qw(e){typeof e!="function"&&(e=O0(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=[],p,y=0;y<f;++y)(p=u[y])&&e.call(p,p.__data__,y,u)&&h.push(p);return new Gn(s,this._parents,this._name,this._id)}function Bw(e){if(e._id!==this._id)throw new Error;for(var n=this._groups,i=e._groups,s=n.length,a=i.length,u=Math.min(s,a),f=new Array(s),h=0;h<u;++h)for(var p=n[h],y=i[h],v=p.length,g=f[h]=new Array(v),_,x=0;x<v;++x)(_=p[x]||y[x])&&(g[x]=_);for(;h<s;++h)f[h]=n[h];return new Gn(f,this._parents,this._name,this._id)}function Ww(e){return(e+"").trim().split(/^|\s+/).every(function(n){var i=n.indexOf(".");return i>=0&&(n=n.slice(0,i)),!n||n==="start"})}function Kw(e,n,i){var s,a,u=Ww(n)?kf:Tn;return function(){var f=u(this,e),h=f.on;h!==s&&(a=(s=h).copy()).on(n,i),f.on=a}}function Gw(e,n){var i=this._id;return arguments.length<2?pn(this.node(),i).on.on(e):this.each(Kw(i,e,n))}function Xw(e){return function(){var n=this.parentNode;for(var i in this.__transition)if(+i!==e)return;n&&n.removeChild(this)}}function Yw(){return this.on("end.remove",Xw(this._id))}function Zw(e){var n=this._name,i=this._id;typeof e!="function"&&(e=mf(e));for(var s=this._groups,a=s.length,u=new Array(a),f=0;f<a;++f)for(var h=s[f],p=h.length,y=u[f]=new Array(p),v,g,_=0;_<p;++_)(v=h[_])&&(g=e.call(v,v.__data__,_,h))&&("__data__"in v&&(g.__data__=v.__data__),y[_]=g,ma(y[_],n,i,_,y,pn(v,i)));return new Gn(u,this._parents,n,i)}function Jw(e){var n=this._name,i=this._id;typeof e!="function"&&(e=M0(e));for(var s=this._groups,a=s.length,u=[],f=[],h=0;h<a;++h)for(var p=s[h],y=p.length,v,g=0;g<y;++g)if(v=p[g]){for(var _=e.call(v,v.__data__,g,p),x,C=pn(v,i),b=0,S=_.length;b<S;++b)(x=_[b])&&ma(x,n,i,b,_,C);u.push(_),f.push(v)}return new Gn(u,f,n,i)}var e2=xs.prototype.constructor;function t2(){return new e2(this._groups,this._parents)}function n2(e,n){var i,s,a;return function(){var u=Ji(this,e),f=(this.style.removeProperty(e),Ji(this,e));return u===f?null:u===i&&f===s?a:a=n(i=u,s=f)}}function J0(e){return function(){this.style.removeProperty(e)}}function r2(e,n,i){var s,a=i+"",u;return function(){var f=Ji(this,e);return f===a?null:f===s?u:u=n(s=f,i)}}function i2(e,n,i){var s,a,u;return function(){var f=Ji(this,e),h=i(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(e),Ji(this,e))),f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h))}}function o2(e,n){var i,s,a,u="style."+n,f="end."+u,h;return function(){var p=Tn(this,e),y=p.on,v=p.value[u]==null?h||(h=J0(n)):void 0;(y!==i||a!==v)&&(s=(i=y).copy()).on(f,a=v),p.on=s}}function s2(e,n,i){var s=(e+="")=="transform"?sw:Z0;return n==null?this.styleTween(e,n2(e,s)).on("end.style."+e,J0(e)):typeof n=="function"?this.styleTween(e,i2(e,s,Sf(this,"style."+e,n))).each(o2(this._id,e)):this.styleTween(e,r2(e,s,n),i).on("end.style."+e,null)}function l2(e,n,i){return function(s){this.style.setProperty(e,n.call(this,s),i)}}function a2(e,n,i){var s,a;function u(){var f=n.apply(this,arguments);return f!==a&&(s=(a=f)&&l2(e,f,i)),s}return u._value=n,u}function u2(e,n,i){var s="style."+(e+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(n==null)return this.tween(s,null);if(typeof n!="function")throw new Error;return this.tween(s,a2(e,n,i??""))}function c2(e){return function(){this.textContent=e}}function f2(e){return function(){var n=e(this);this.textContent=n??""}}function h2(e){return this.tween("text",typeof e=="function"?f2(Sf(this,"text",e)):c2(e==null?"":e+""))}function d2(e){return function(n){this.textContent=e.call(this,n)}}function p2(e){var n,i;function s(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&d2(a)),n}return s._value=e,s}function g2(e){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,p2(e))}function y2(){for(var e=this._name,n=this._id,i=ey(),s=this._groups,a=s.length,u=0;u<a;++u)for(var f=s[u],h=f.length,p,y=0;y<h;++y)if(p=f[y]){var v=pn(p,n);ma(p,e,i,y,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Gn(s,this._parents,e,i)}function m2(){var e,n,i=this,s=i._id,a=i.size();return new Promise(function(u,f){var h={value:f},p={value:function(){--a===0&&u()}};i.each(function(){var y=Tn(this,s),v=y.on;v!==e&&(n=(e=v).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(p)),y.on=n}),a===0&&u()})}var v2=0;function Gn(e,n,i,s){this._groups=e,this._parents=n,this._name=i,this._id=s}function ey(){return++v2}var In=xs.prototype;Gn.prototype={constructor:Gn,select:Zw,selectAll:Jw,selectChild:In.selectChild,selectChildren:In.selectChildren,filter:Qw,merge:Bw,selection:t2,transition:y2,call:In.call,nodes:In.nodes,node:In.node,size:In.size,empty:In.empty,each:In.each,on:Gw,attr:Nw,attrTween:jw,style:s2,styleTween:u2,text:h2,textTween:g2,remove:Yw,tween:kw,delay:Iw,duration:$w,ease:Hw,easeVarying:Vw,end:m2,[Symbol.iterator]:In[Symbol.iterator]};function _2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var x2={time:null,delay:0,duration:250,ease:_2};function w2(e,n){for(var i;!(i=e.__transition)||!(i=i[n]);)if(!(e=e.parentNode))throw new Error(`transition ${n} not found`);return i}function k2(e){var n,i;e instanceof Gn?(n=e._id,e=e._name):(n=ey(),(i=x2).time=xf(),e=e==null?null:e+"");for(var s=this._groups,a=s.length,u=0;u<a;++u)for(var f=s[u],h=f.length,p,y=0;y<h;++y)(p=f[y])&&ma(p,e,n,y,f,i||w2(p,n));return new Gn(s,this._parents,e,n)}xs.prototype.interrupt=_w;xs.prototype.transition=k2;const Vl=e=>()=>e;function S2(e,{sourceEvent:n,target:i,transform:s,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:s,enumerable:!0,configurable:!0},_:{value:a}})}function Qn(e,n,i){this.k=e,this.x=n,this.y=i}Qn.prototype={constructor:Qn,scale:function(e){return e===1?this:new Qn(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new Qn(this.k,this.x+this.k*e,this.y+this.k*n)},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 Cf=new Qn(1,0,0);xn.prototype=Qn.prototype;function xn(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Cf;return e.__zoom}function kc(e){e.stopImmediatePropagation()}function Bo(e){e.preventDefault(),e.stopImmediatePropagation()}function C2(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function b2(){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 sg(){return this.__zoom||Cf}function E2(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function P2(){return navigator.maxTouchPoints||"ontouchstart"in this}function T2(e,n,i){var s=e.invertX(n[0][0])-i[0][0],a=e.invertX(n[1][0])-i[1][0],u=e.invertY(n[0][1])-i[0][1],f=e.invertY(n[1][1])-i[1][1];return e.translate(a>s?(s+a)/2:Math.min(0,s)||Math.max(0,a),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function N2(){var e=C2,n=b2,i=T2,s=E2,a=P2,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=fw,y=ws("start","zoom","end"),v,g,_,x=500,C=150,b=0,S=10;function k(F){F.property("__zoom",sg).on("wheel.zoom",D,{passive:!1}).on("mousedown.zoom",Q).on("dblclick.zoom",K).filter(a).on("touchstart.zoom",Z).on("touchmove.zoom",ie).on("touchend.zoom touchcancel.zoom",ce).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(F,te,W,oe){var B=F.selection?F.selection():F;B.property("__zoom",sg),F!==B?T(F,te,W,oe):B.interrupt().each(function(){z(this,arguments).event(oe).start().zoom(null,typeof te=="function"?te.apply(this,arguments):te).end()})},k.scaleBy=function(F,te,W,oe){k.scaleTo(F,function(){var B=this.__zoom.k,J=typeof te=="function"?te.apply(this,arguments):te;return B*J},W,oe)},k.scaleTo=function(F,te,W,oe){k.transform(F,function(){var B=n.apply(this,arguments),J=this.__zoom,G=W==null?P(B):typeof W=="function"?W.apply(this,arguments):W,R=J.invert(G),V=typeof te=="function"?te.apply(this,arguments):te;return i(A(O(J,V),G,R),B,f)},W,oe)},k.translateBy=function(F,te,W,oe){k.transform(F,function(){return i(this.__zoom.translate(typeof te=="function"?te.apply(this,arguments):te,typeof W=="function"?W.apply(this,arguments):W),n.apply(this,arguments),f)},null,oe)},k.translateTo=function(F,te,W,oe,B){k.transform(F,function(){var J=n.apply(this,arguments),G=this.__zoom,R=oe==null?P(J):typeof oe=="function"?oe.apply(this,arguments):oe;return i(Cf.translate(R[0],R[1]).scale(G.k).translate(typeof te=="function"?-te.apply(this,arguments):-te,typeof W=="function"?-W.apply(this,arguments):-W),J,f)},oe,B)};function O(F,te){return te=Math.max(u[0],Math.min(u[1],te)),te===F.k?F:new Qn(te,F.x,F.y)}function A(F,te,W){var oe=te[0]-W[0]*F.k,B=te[1]-W[1]*F.k;return oe===F.x&&B===F.y?F:new Qn(F.k,oe,B)}function P(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function T(F,te,W,oe){F.on("start.zoom",function(){z(this,arguments).event(oe).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(oe).end()}).tween("zoom",function(){var B=this,J=arguments,G=z(B,J).event(oe),R=n.apply(B,J),V=W==null?P(R):typeof W=="function"?W.apply(B,J):W,le=Math.max(R[1][0]-R[0][0],R[1][1]-R[0][1]),ge=B.__zoom,ke=typeof te=="function"?te.apply(B,J):te,Ce=p(ge.invert(V).concat(le/ge.k),ke.invert(V).concat(le/ke.k));return function(Ee){if(Ee===1)Ee=ke;else{var be=Ce(Ee),Ae=le/be[2];Ee=new Qn(Ae,V[0]-be[0]*Ae,V[1]-be[1]*Ae)}G.zoom(null,Ee)}})}function z(F,te,W){return!W&&F.__zooming||new L(F,te)}function L(F,te){this.that=F,this.args=te,this.active=0,this.sourceEvent=null,this.extent=n.apply(F,te),this.taps=0}L.prototype={event:function(F){return F&&(this.sourceEvent=F),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(F,te){return this.mouse&&F!=="mouse"&&(this.mouse[1]=te.invert(this.mouse[0])),this.touch0&&F!=="touch"&&(this.touch0[1]=te.invert(this.touch0[0])),this.touch1&&F!=="touch"&&(this.touch1[1]=te.invert(this.touch1[0])),this.that.__zoom=te,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(F){var te=Yt(this.that).datum();y.call(F,this.that,new S2(F,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:y}),te)}};function D(F,...te){if(!e.apply(this,arguments))return;var W=z(this,te).event(F),oe=this.__zoom,B=Math.max(u[0],Math.min(u[1],oe.k*Math.pow(2,s.apply(this,arguments)))),J=wn(F);if(W.wheel)(W.mouse[0][0]!==J[0]||W.mouse[0][1]!==J[1])&&(W.mouse[1]=oe.invert(W.mouse[0]=J)),clearTimeout(W.wheel);else{if(oe.k===B)return;W.mouse=[J,oe.invert(J)],Zl(this),W.start()}Bo(F),W.wheel=setTimeout(G,C),W.zoom("mouse",i(A(O(oe,B),W.mouse[0],W.mouse[1]),W.extent,f));function G(){W.wheel=null,W.end()}}function Q(F,...te){if(_||!e.apply(this,arguments))return;var W=F.currentTarget,oe=z(this,te,!0).event(F),B=Yt(F.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",le,!0),J=wn(F,W),G=F.clientX,R=F.clientY;U0(F.view),kc(F),oe.mouse=[J,this.__zoom.invert(J)],Zl(this),oe.start();function V(ge){if(Bo(ge),!oe.moved){var ke=ge.clientX-G,Ce=ge.clientY-R;oe.moved=ke*ke+Ce*Ce>b}oe.event(ge).zoom("mouse",i(A(oe.that.__zoom,oe.mouse[0]=wn(ge,W),oe.mouse[1]),oe.extent,f))}function le(ge){B.on("mousemove.zoom mouseup.zoom",null),H0(ge.view,oe.moved),Bo(ge),oe.event(ge).end()}}function K(F,...te){if(e.apply(this,arguments)){var W=this.__zoom,oe=wn(F.changedTouches?F.changedTouches[0]:F,this),B=W.invert(oe),J=W.k*(F.shiftKey?.5:2),G=i(A(O(W,J),oe,B),n.apply(this,te),f);Bo(F),h>0?Yt(this).transition().duration(h).call(T,G,oe,F):Yt(this).call(k.transform,G,oe,F)}}function Z(F,...te){if(e.apply(this,arguments)){var W=F.touches,oe=W.length,B=z(this,te,F.changedTouches.length===oe).event(F),J,G,R,V;for(kc(F),G=0;G<oe;++G)R=W[G],V=wn(R,this),V=[V,this.__zoom.invert(V),R.identifier],B.touch0?!B.touch1&&B.touch0[2]!==V[2]&&(B.touch1=V,B.taps=0):(B.touch0=V,J=!0,B.taps=1+!!v);v&&(v=clearTimeout(v)),J&&(B.taps<2&&(g=V[0],v=setTimeout(function(){v=null},x)),Zl(this),B.start())}}function ie(F,...te){if(this.__zooming){var W=z(this,te).event(F),oe=F.changedTouches,B=oe.length,J,G,R,V;for(Bo(F),J=0;J<B;++J)G=oe[J],R=wn(G,this),W.touch0&&W.touch0[2]===G.identifier?W.touch0[0]=R:W.touch1&&W.touch1[2]===G.identifier&&(W.touch1[0]=R);if(G=W.that.__zoom,W.touch1){var le=W.touch0[0],ge=W.touch0[1],ke=W.touch1[0],Ce=W.touch1[1],Ee=(Ee=ke[0]-le[0])*Ee+(Ee=ke[1]-le[1])*Ee,be=(be=Ce[0]-ge[0])*be+(be=Ce[1]-ge[1])*be;G=O(G,Math.sqrt(Ee/be)),R=[(le[0]+ke[0])/2,(le[1]+ke[1])/2],V=[(ge[0]+Ce[0])/2,(ge[1]+Ce[1])/2]}else if(W.touch0)R=W.touch0[0],V=W.touch0[1];else return;W.zoom("touch",i(A(G,R,V),W.extent,f))}}function ce(F,...te){if(this.__zooming){var W=z(this,te).event(F),oe=F.changedTouches,B=oe.length,J,G;for(kc(F),_&&clearTimeout(_),_=setTimeout(function(){_=null},x),J=0;J<B;++J)G=oe[J],W.touch0&&W.touch0[2]===G.identifier?delete W.touch0:W.touch1&&W.touch1[2]===G.identifier&&delete W.touch1;if(W.touch1&&!W.touch0&&(W.touch0=W.touch1,delete W.touch1),W.touch0)W.touch0[1]=this.__zoom.invert(W.touch0[0]);else if(W.end(),W.taps===2&&(G=wn(G,this),Math.hypot(g[0]-G[0],g[1]-G[1])<S)){var R=Yt(this).on("dblclick.zoom");R&&R.apply(this,arguments)}}}return k.wheelDelta=function(F){return arguments.length?(s=typeof F=="function"?F:Vl(+F),k):s},k.filter=function(F){return arguments.length?(e=typeof F=="function"?F:Vl(!!F),k):e},k.touchable=function(F){return arguments.length?(a=typeof F=="function"?F:Vl(!!F),k):a},k.extent=function(F){return arguments.length?(n=typeof F=="function"?F:Vl([[+F[0][0],+F[0][1]],[+F[1][0],+F[1][1]]]),k):n},k.scaleExtent=function(F){return arguments.length?(u[0]=+F[0],u[1]=+F[1],k):[u[0],u[1]]},k.translateExtent=function(F){return arguments.length?(f[0][0]=+F[0][0],f[1][0]=+F[1][0],f[0][1]=+F[0][1],f[1][1]=+F[1][1],k):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},k.constrain=function(F){return arguments.length?(i=F,k):i},k.duration=function(F){return arguments.length?(h=+F,k):h},k.interpolate=function(F){return arguments.length?(p=F,k):p},k.on=function(){var F=y.on.apply(y,arguments);return F===y?k:F},k.clickDistance=function(F){return arguments.length?(b=(F=+F)*F,k):Math.sqrt(b)},k.tapDistance=function(F){return arguments.length?(S=+F,k):S},k}class lg extends Map{constructor(n,i=R2){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),n!=null)for(const[s,a]of n)this.set(s,a)}get(n){return super.get(ag(this,n))}has(n){return super.has(ag(this,n))}set(n,i){return super.set(M2(this,n),i)}delete(n){return super.delete(O2(this,n))}}function ag({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):i}function M2({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):(e.set(s,i),i)}function O2({_intern:e,_key:n},i){const s=n(i);return e.has(s)&&(i=e.get(s),e.delete(s)),i}function R2(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ug(e,n){let i;if(n===void 0)for(const s of e)s!=null&&(i<s||i===void 0&&s>=s)&&(i=s);else{let s=-1;for(let a of e)(a=n(a,++s,e))!=null&&(i<a||i===void 0&&a>=a)&&(i=a)}return i}function cg(e,n){let i;if(n===void 0)for(const s of e)s!=null&&(i>s||i===void 0&&s>=s)&&(i=s);else{let s=-1;for(let a of e)(a=n(a,++s,e))!=null&&(i>a||i===void 0&&a>=a)&&(i=a)}return i}function A2(e,n){let i=0;for(let s of e)(s=+s)&&(i+=s);return i}var j2=typeof global=="object"&&global&&global.Object===Object&&global,z2=typeof self=="object"&&self&&self.Object===Object&&self,ty=j2||z2||Function("return this")(),aa=ty.Symbol,ny=Object.prototype,D2=ny.hasOwnProperty,I2=ny.toString,Wo=aa?aa.toStringTag:void 0;function L2(e){var n=D2.call(e,Wo),i=e[Wo];try{e[Wo]=void 0;var s=!0}catch{}var a=I2.call(e);return s&&(n?e[Wo]=i:delete e[Wo]),a}var F2=Object.prototype,$2=F2.toString;function U2(e){return $2.call(e)}var H2="[object Null]",q2="[object Undefined]",fg=aa?aa.toStringTag:void 0;function V2(e){return e==null?e===void 0?q2:H2:fg&&fg in Object(e)?L2(e):U2(e)}function Q2(e){return e!=null&&typeof e=="object"}var B2="[object Symbol]";function W2(e){return typeof e=="symbol"||Q2(e)&&V2(e)==B2}var K2=/\s/;function G2(e){for(var n=e.length;n--&&K2.test(e.charAt(n)););return n}var X2=/^\s+/;function Y2(e){return e&&e.slice(0,G2(e)+1).replace(X2,"")}function ua(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var hg=NaN,Z2=/^[-+]0x[0-9a-f]+$/i,J2=/^0b[01]+$/i,ek=/^0o[0-7]+$/i,tk=parseInt;function dg(e){if(typeof e=="number")return e;if(W2(e))return hg;if(ua(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=ua(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Y2(e);var i=J2.test(e);return i||ek.test(e)?tk(e.slice(2),i?2:8):Z2.test(e)?hg:+e}var Sc=function(){return ty.Date.now()},nk="Expected a function",rk=Math.max,ik=Math.min;function ry(e,n,i){var s,a,u,f,h,p,y=0,v=!1,g=!1,_=!0;if(typeof e!="function")throw new TypeError(nk);n=dg(n)||0,ua(i)&&(v=!!i.leading,g="maxWait"in i,u=g?rk(dg(i.maxWait)||0,n):u,_="trailing"in i?!!i.trailing:_);function x(z){var L=s,D=a;return s=a=void 0,y=z,f=e.apply(D,L),f}function C(z){return y=z,h=setTimeout(k,n),v?x(z):f}function b(z){var L=z-p,D=z-y,Q=n-L;return g?ik(Q,u-D):Q}function S(z){var L=z-p,D=z-y;return p===void 0||L>=n||L<0||g&&D>=u}function k(){var z=Sc();if(S(z))return O(z);h=setTimeout(k,b(z))}function O(z){return h=void 0,_&&s?x(z):(s=a=void 0,f)}function A(){h!==void 0&&clearTimeout(h),y=0,s=p=a=h=void 0}function P(){return h===void 0?f:O(Sc())}function T(){var z=Sc(),L=S(z);if(s=arguments,a=this,p=z,L){if(h===void 0)return C(p);if(g)return clearTimeout(h),h=setTimeout(k,n),x(p)}return h===void 0&&(h=setTimeout(k,n)),f}return T.cancel=A,T.flush=P,T}var ok="Expected a function";function sk(e,n,i){var s=!0,a=!0;if(typeof e!="function")throw new TypeError(ok);return ua(i)&&(s="leading"in i?!!i.leading:s,a="trailing"in i?!!i.trailing:a),ry(e,n,{leading:s,maxWait:n,trailing:a})}var ii=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return e},Out:function(e){return e},InOut:function(e){return e}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(e){var n=1.70158;return e===1?1:e*e*((n+1)*e-n)},Out:function(e){var n=1.70158;return e===0?0:--e*e*((n+1)*e+n)+1},InOut:function(e){var n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}}),Bounce:Object.freeze({In:function(e){return 1-ii.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?ii.Bounce.In(e*2)*.5:ii.Bounce.Out(e*2-1)*.5+.5}}),generatePow:function(e){return e===void 0&&(e=4),e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(n){return Math.pow(n,e)},Out:function(n){return 1-Math.pow(1-n,e)},InOut:function(n){return n<.5?Math.pow(n*2,e)/2:(1-Math.pow(2-n*2,e))/2+.5}}}}),ns=function(){return performance.now()},iy=function(){function e(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,n)}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(i){return n._tweens[i]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];for(var a=0,u=i;a<u.length;a++){var f=u[a];(n=f._group)===null||n===void 0||n.remove(f),f._group=this,this._tweens[f.getId()]=f,this._tweensAddedDuringUpdate[f.getId()]=f}},e.prototype.remove=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var s=0,a=n;s<a.length;s++){var u=a[s];u._group=void 0,delete this._tweens[u.getId()],delete this._tweensAddedDuringUpdate[u.getId()]}},e.prototype.allStopped=function(){return this.getAll().every(function(n){return!n.isPlaying()})},e.prototype.update=function(n,i){n===void 0&&(n=ns()),i===void 0&&(i=!0);var s=Object.keys(this._tweens);if(s.length!==0)for(;s.length>0;){this._tweensAddedDuringUpdate={};for(var a=0;a<s.length;a++){var u=this._tweens[s[a]],f=!i;u&&u.update(n,f)===!1&&!i&&this.remove(u)}s=Object.keys(this._tweensAddedDuringUpdate)}},e}(),tf={Linear:function(e,n){var i=e.length-1,s=i*n,a=Math.floor(s),u=tf.Utils.Linear;return n<0?u(e[0],e[1],s):n>1?u(e[i],e[i-1],i-s):u(e[a],e[a+1>i?i:a+1],s-a)},Utils:{Linear:function(e,n,i){return(n-e)*i+e}}},oy=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),nf=new iy,pg=function(){function e(n,i){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=ii.Linear.None,this._interpolationFunction=tf.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=oy.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=n,typeof i=="object"?(this._group=i,i.add(this)):i===!0&&(this._group=nf,nf.add(this))}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(n,i){if(i===void 0&&(i=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=n,this._propertiesAreSetUp=!1,this._duration=i<0?0:i,this},e.prototype.duration=function(n){return n===void 0&&(n=1e3),this._duration=n<0?0:n,this},e.prototype.dynamic=function(n){return n===void 0&&(n=!1),this._isDynamic=n,this},e.prototype.start=function(n,i){if(n===void 0&&(n=ns()),i===void 0&&(i=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var s in this._valuesStartRepeat)this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n,this._startTime+=this._delayTime,!this._propertiesAreSetUp||i){if(this._propertiesAreSetUp=!0,!this._isDynamic){var a={};for(var u in this._valuesEnd)a[u]=this._valuesEnd[u];this._valuesEnd=a}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,i)}return this},e.prototype.startFromCurrentValues=function(n){return this.start(n,!0)},e.prototype._setupProperties=function(n,i,s,a,u){for(var f in s){var h=n[f],p=Array.isArray(h),y=p?"array":typeof h,v=!p&&Array.isArray(s[f]);if(!(y==="undefined"||y==="function")){if(v){var g=s[f];if(g.length===0)continue;for(var _=[h],x=0,C=g.length;x<C;x+=1){var b=this._handleRelativeValue(h,g[x]);if(isNaN(b)){v=!1,console.warn("Found invalid interpolation list. Skipping.");break}_.push(b)}v&&(s[f]=_)}if((y==="object"||p)&&h&&!v){i[f]=p?[]:{};var S=h;for(var k in S)i[f][k]=S[k];a[f]=p?[]:{};var g=s[f];if(!this._isDynamic){var O={};for(var k in g)O[k]=g[k];s[f]=g=O}this._setupProperties(S,i[f],g,a[f],u)}else(typeof i[f]>"u"||u)&&(i[f]=h),p||(i[f]*=1),v?a[f]=s[f].slice().reverse():a[f]=i[f]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},e.prototype.pause=function(n){return n===void 0&&(n=ns()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this)},e.prototype.resume=function(n){return n===void 0&&(n=ns()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this)},e.prototype.stopChainedTweens=function(){for(var n=0,i=this._chainedTweens.length;n<i;n++)this._chainedTweens[n].stop();return this},e.prototype.group=function(n){return n?(n.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},e.prototype.remove=function(){var n;return(n=this._group)===null||n===void 0||n.remove(this),this},e.prototype.delay=function(n){return n===void 0&&(n=0),this._delayTime=n,this},e.prototype.repeat=function(n){return n===void 0&&(n=0),this._initialRepeat=n,this._repeat=n,this},e.prototype.repeatDelay=function(n){return this._repeatDelayTime=n,this},e.prototype.yoyo=function(n){return n===void 0&&(n=!1),this._yoyo=n,this},e.prototype.easing=function(n){return n===void 0&&(n=ii.Linear.None),this._easingFunction=n,this},e.prototype.interpolation=function(n){return n===void 0&&(n=tf.Linear),this._interpolationFunction=n,this},e.prototype.chain=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return this._chainedTweens=n,this},e.prototype.onStart=function(n){return this._onStartCallback=n,this},e.prototype.onEveryStart=function(n){return this._onEveryStartCallback=n,this},e.prototype.onUpdate=function(n){return this._onUpdateCallback=n,this},e.prototype.onRepeat=function(n){return this._onRepeatCallback=n,this},e.prototype.onComplete=function(n){return this._onCompleteCallback=n,this},e.prototype.onStop=function(n){return this._onStopCallback=n,this},e.prototype.update=function(n,i){var s=this,a;if(n===void 0&&(n=ns()),i===void 0&&(i=e.autoStartOnUpdate),this._isPaused)return!0;var u;if(!this._goToEnd&&!this._isPlaying)if(i)this.start(n,!0);else return!1;if(this._goToEnd=!1,n<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var f=n-this._startTime,h=this._duration+((a=this._repeatDelayTime)!==null&&a!==void 0?a:this._delayTime),p=this._duration+this._repeat*h,y=function(){if(s._duration===0||f>p)return 1;var b=Math.trunc(f/h),S=f-b*h,k=Math.min(S/s._duration,1);return k===0&&f===s._duration?1:k},v=y(),g=this._easingFunction(v);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,g),this._onUpdateCallback&&this._onUpdateCallback(this._object,v),this._duration===0||f>=this._duration)if(this._repeat>0){var _=Math.min(Math.trunc((f-this._duration)/h)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=_);for(u in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[u]=="string"&&(this._valuesStartRepeat[u]=this._valuesStartRepeat[u]+parseFloat(this._valuesEnd[u])),this._yoyo&&this._swapEndStartRepeatValues(u),this._valuesStart[u]=this._valuesStartRepeat[u];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=h*_,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var x=0,C=this._chainedTweens.length;x<C;x++)this._chainedTweens[x].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,i,s,a){for(var u in s)if(i[u]!==void 0){var f=i[u]||0,h=s[u],p=Array.isArray(n[u]),y=Array.isArray(h),v=!p&&y;v?n[u]=this._interpolationFunction(h,a):typeof h=="object"&&h?this._updateProperties(n[u],f,h,a):(h=this._handleRelativeValue(f,h),typeof h=="number"&&(n[u]=f+(h-f)*a))}},e.prototype._handleRelativeValue=function(n,i){return typeof i!="string"?i:i.charAt(0)==="+"||i.charAt(0)==="-"?n+parseFloat(i):parseFloat(i)},e.prototype._swapEndStartRepeatValues=function(n){var i=this._valuesStartRepeat[n],s=this._valuesEnd[n];typeof s=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(s):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=i},e.autoStartOnUpdate=!1,e}();oy.nextId;var Pn=nf;Pn.getAll.bind(Pn);Pn.removeAll.bind(Pn);Pn.add.bind(Pn);Pn.remove.bind(Pn);Pn.update.bind(Pn);function gg(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function lk(e){if(Array.isArray(e))return e}function ak(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function uk(e,n,i){return Object.defineProperty(e,"prototype",{writable:!1}),e}function ck(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function fk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
100
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hk(e,n){return lk(e)||ck(e,n)||dk(e,n)||fk()}function dk(e,n){if(e){if(typeof e=="string")return gg(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?gg(e,n):void 0}}var pk=uk(function e(n,i){var s=i.default,a=s===void 0?null:s,u=i.triggerUpdate,f=u===void 0?!0:u,h=i.onChange,p=h===void 0?function(y,v){}:h;ak(this,e),this.name=n,this.defaultVal=a,this.triggerUpdate=f,this.onChange=p});function bf(e){var n=e.stateInit,i=n===void 0?function(){return{}}:n,s=e.props,a=s===void 0?{}:s,u=e.methods,f=u===void 0?{}:u,h=e.aliases,p=h===void 0?{}:h,y=e.init,v=y===void 0?function(){}:y,g=e.update,_=g===void 0?function(){}:g,x=Object.keys(a).map(function(C){return new pk(C,a[C])});return function C(){for(var b=arguments.length,S=new Array(b),k=0;k<b;k++)S[k]=arguments[k];var O=!!(this instanceof C&&this.constructor),A=O?S.shift():void 0,P=S[0],T=P===void 0?{}:P,z=Object.assign({},i instanceof Function?i(T):i,{initialised:!1}),L={};function D(Z){return Q(Z,T),K(),D}var Q=function(ie,ce){v.call(D,ie,z,ce),z.initialised=!0},K=ry(function(){z.initialised&&(_.call(D,z,L),L={})},1);return x.forEach(function(Z){D[Z.name]=ie(Z);function ie(ce){var F=ce.name,te=ce.triggerUpdate,W=te===void 0?!1:te,oe=ce.onChange,B=oe===void 0?function(R,V){}:oe,J=ce.defaultVal,G=J===void 0?null:J;return function(R){var V=z[F];if(!arguments.length)return V;var le=R===void 0?G:R;return z[F]=le,B.call(D,le,z,V),!L.hasOwnProperty(F)&&(L[F]=V),W&&K(),D}}}),Object.keys(f).forEach(function(Z){D[Z]=function(){for(var ie,ce=arguments.length,F=new Array(ce),te=0;te<ce;te++)F[te]=arguments[te];return(ie=f[Z]).call.apply(ie,[D,z].concat(F))}}),Object.entries(p).forEach(function(Z){var ie=hk(Z,2),ce=ie[0],F=ie[1];return D[ce]=D[F]}),D.resetProps=function(){return x.forEach(function(Z){D[Z.name](Z.defaultVal)}),D},D.resetProps(),z._rerender=K,O&&A&&D(A),D}}var De=function(e){return typeof e=="function"?e:typeof e=="string"?function(n){return n[e]}:function(n){return e}};function ca(e){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ca(e)}var gk=/^\s+/,yk=/\s+$/;function me(e,n){if(e=e||"",n=n||{},e instanceof me)return e;if(!(this instanceof me))return new me(e,n);var i=mk(e);this._originalInput=e,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||i.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=i.ok}me.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),i,s,a,u,f,h;return i=n.r/255,s=n.g/255,a=n.b/255,i<=.03928?u=i/12.92:u=Math.pow((i+.055)/1.055,2.4),s<=.03928?f=s/12.92:f=Math.pow((s+.055)/1.055,2.4),a<=.03928?h=a/12.92:h=Math.pow((a+.055)/1.055,2.4),.2126*u+.7152*f+.0722*h},setAlpha:function(n){return this._a=sy(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=mg(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=mg(this._r,this._g,this._b),i=Math.round(n.h*360),s=Math.round(n.s*100),a=Math.round(n.v*100);return this._a==1?"hsv("+i+", "+s+"%, "+a+"%)":"hsva("+i+", "+s+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var n=yg(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=yg(this._r,this._g,this._b),i=Math.round(n.h*360),s=Math.round(n.s*100),a=Math.round(n.l*100);return this._a==1?"hsl("+i+", "+s+"%, "+a+"%)":"hsla("+i+", "+s+"%, "+a+"%, "+this._roundA+")"},toHex:function(n){return vg(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return wk(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ve(this._r,255)*100)+"%",g:Math.round(Ve(this._g,255)*100)+"%",b:Math.round(Ve(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ve(this._r,255)*100)+"%, "+Math.round(Ve(this._g,255)*100)+"%, "+Math.round(Ve(this._b,255)*100)+"%)":"rgba("+Math.round(Ve(this._r,255)*100)+"%, "+Math.round(Ve(this._g,255)*100)+"%, "+Math.round(Ve(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ak[vg(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var i="#"+_g(this._r,this._g,this._b,this._a),s=i,a=this._gradientType?"GradientType = 1, ":"";if(n){var u=me(n);s="#"+_g(u._r,u._g,u._b,u._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+i+",endColorstr="+s+")"},toString:function(n){var i=!!n;n=n||this._format;var s=!1,a=this._a<1&&this._a>=0,u=!i&&a&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return u?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return me(this.toString())},_applyModification:function(n,i){var s=n.apply(null,[this].concat([].slice.call(i)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(bk,arguments)},brighten:function(){return this._applyModification(Ek,arguments)},darken:function(){return this._applyModification(Pk,arguments)},desaturate:function(){return this._applyModification(kk,arguments)},saturate:function(){return this._applyModification(Sk,arguments)},greyscale:function(){return this._applyModification(Ck,arguments)},spin:function(){return this._applyModification(Tk,arguments)},_applyCombination:function(n,i){return n.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(Ok,arguments)},complement:function(){return this._applyCombination(Nk,arguments)},monochromatic:function(){return this._applyCombination(Rk,arguments)},splitcomplement:function(){return this._applyCombination(Mk,arguments)},triad:function(){return this._applyCombination(xg,[3])},tetrad:function(){return this._applyCombination(xg,[4])}};me.fromRatio=function(e,n){if(ca(e)=="object"){var i={};for(var s in e)e.hasOwnProperty(s)&&(s==="a"?i[s]=e[s]:i[s]=rs(e[s]));e=i}return me(e,n)};function mk(e){var n={r:0,g:0,b:0},i=1,s=null,a=null,u=null,f=!1,h=!1;return typeof e=="string"&&(e=Ik(e)),ca(e)=="object"&&(Ln(e.r)&&Ln(e.g)&&Ln(e.b)?(n=vk(e.r,e.g,e.b),f=!0,h=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ln(e.h)&&Ln(e.s)&&Ln(e.v)?(s=rs(e.s),a=rs(e.v),n=xk(e.h,s,a),f=!0,h="hsv"):Ln(e.h)&&Ln(e.s)&&Ln(e.l)&&(s=rs(e.s),u=rs(e.l),n=_k(e.h,s,u),f=!0,h="hsl"),e.hasOwnProperty("a")&&(i=e.a)),i=sy(i),{ok:f,format:e.format||h,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:i}}function vk(e,n,i){return{r:Ve(e,255)*255,g:Ve(n,255)*255,b:Ve(i,255)*255}}function yg(e,n,i){e=Ve(e,255),n=Ve(n,255),i=Ve(i,255);var s=Math.max(e,n,i),a=Math.min(e,n,i),u,f,h=(s+a)/2;if(s==a)u=f=0;else{var p=s-a;switch(f=h>.5?p/(2-s-a):p/(s+a),s){case e:u=(n-i)/p+(n<i?6:0);break;case n:u=(i-e)/p+2;break;case i:u=(e-n)/p+4;break}u/=6}return{h:u,s:f,l:h}}function _k(e,n,i){var s,a,u;e=Ve(e,360),n=Ve(n,100),i=Ve(i,100);function f(y,v,g){return g<0&&(g+=1),g>1&&(g-=1),g<1/6?y+(v-y)*6*g:g<1/2?v:g<2/3?y+(v-y)*(2/3-g)*6:y}if(n===0)s=a=u=i;else{var h=i<.5?i*(1+n):i+n-i*n,p=2*i-h;s=f(p,h,e+1/3),a=f(p,h,e),u=f(p,h,e-1/3)}return{r:s*255,g:a*255,b:u*255}}function mg(e,n,i){e=Ve(e,255),n=Ve(n,255),i=Ve(i,255);var s=Math.max(e,n,i),a=Math.min(e,n,i),u,f,h=s,p=s-a;if(f=s===0?0:p/s,s==a)u=0;else{switch(s){case e:u=(n-i)/p+(n<i?6:0);break;case n:u=(i-e)/p+2;break;case i:u=(e-n)/p+4;break}u/=6}return{h:u,s:f,v:h}}function xk(e,n,i){e=Ve(e,360)*6,n=Ve(n,100),i=Ve(i,100);var s=Math.floor(e),a=e-s,u=i*(1-n),f=i*(1-a*n),h=i*(1-(1-a)*n),p=s%6,y=[i,f,u,u,h,i][p],v=[h,i,i,f,u,u][p],g=[u,u,h,i,i,f][p];return{r:y*255,g:v*255,b:g*255}}function vg(e,n,i,s){var a=[dn(Math.round(e).toString(16)),dn(Math.round(n).toString(16)),dn(Math.round(i).toString(16))];return s&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function wk(e,n,i,s,a){var u=[dn(Math.round(e).toString(16)),dn(Math.round(n).toString(16)),dn(Math.round(i).toString(16)),dn(ly(s))];return a&&u[0].charAt(0)==u[0].charAt(1)&&u[1].charAt(0)==u[1].charAt(1)&&u[2].charAt(0)==u[2].charAt(1)&&u[3].charAt(0)==u[3].charAt(1)?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0)+u[3].charAt(0):u.join("")}function _g(e,n,i,s){var a=[dn(ly(s)),dn(Math.round(e).toString(16)),dn(Math.round(n).toString(16)),dn(Math.round(i).toString(16))];return a.join("")}me.equals=function(e,n){return!e||!n?!1:me(e).toRgbString()==me(n).toRgbString()};me.random=function(){return me.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function kk(e,n){n=n===0?0:n||10;var i=me(e).toHsl();return i.s-=n/100,i.s=va(i.s),me(i)}function Sk(e,n){n=n===0?0:n||10;var i=me(e).toHsl();return i.s+=n/100,i.s=va(i.s),me(i)}function Ck(e){return me(e).desaturate(100)}function bk(e,n){n=n===0?0:n||10;var i=me(e).toHsl();return i.l+=n/100,i.l=va(i.l),me(i)}function Ek(e,n){n=n===0?0:n||10;var i=me(e).toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(n/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(n/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(n/100)))),me(i)}function Pk(e,n){n=n===0?0:n||10;var i=me(e).toHsl();return i.l-=n/100,i.l=va(i.l),me(i)}function Tk(e,n){var i=me(e).toHsl(),s=(i.h+n)%360;return i.h=s<0?360+s:s,me(i)}function Nk(e){var n=me(e).toHsl();return n.h=(n.h+180)%360,me(n)}function xg(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var i=me(e).toHsl(),s=[me(e)],a=360/n,u=1;u<n;u++)s.push(me({h:(i.h+u*a)%360,s:i.s,l:i.l}));return s}function Mk(e){var n=me(e).toHsl(),i=n.h;return[me(e),me({h:(i+72)%360,s:n.s,l:n.l}),me({h:(i+216)%360,s:n.s,l:n.l})]}function Ok(e,n,i){n=n||6,i=i||30;var s=me(e).toHsl(),a=360/i,u=[me(e)];for(s.h=(s.h-(a*n>>1)+720)%360;--n;)s.h=(s.h+a)%360,u.push(me(s));return u}function Rk(e,n){n=n||6;for(var i=me(e).toHsv(),s=i.h,a=i.s,u=i.v,f=[],h=1/n;n--;)f.push(me({h:s,s:a,v:u})),u=(u+h)%1;return f}me.mix=function(e,n,i){i=i===0?0:i||50;var s=me(e).toRgb(),a=me(n).toRgb(),u=i/100,f={r:(a.r-s.r)*u+s.r,g:(a.g-s.g)*u+s.g,b:(a.b-s.b)*u+s.b,a:(a.a-s.a)*u+s.a};return me(f)};me.readability=function(e,n){var i=me(e),s=me(n);return(Math.max(i.getLuminance(),s.getLuminance())+.05)/(Math.min(i.getLuminance(),s.getLuminance())+.05)};me.isReadable=function(e,n,i){var s=me.readability(e,n),a,u;switch(u=!1,a=Lk(i),a.level+a.size){case"AAsmall":case"AAAlarge":u=s>=4.5;break;case"AAlarge":u=s>=3;break;case"AAAsmall":u=s>=7;break}return u};me.mostReadable=function(e,n,i){var s=null,a=0,u,f,h,p;i=i||{},f=i.includeFallbackColors,h=i.level,p=i.size;for(var y=0;y<n.length;y++)u=me.readability(e,n[y]),u>a&&(a=u,s=me(n[y]));return me.isReadable(e,s,{level:h,size:p})||!f?s:(i.includeFallbackColors=!1,me.mostReadable(e,["#fff","#000"],i))};var rf=me.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ak=me.hexNames=jk(rf);function jk(e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[e[i]]=i);return n}function sy(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ve(e,n){zk(e)&&(e="100%");var i=Dk(e);return e=Math.min(n,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function va(e){return Math.min(1,Math.max(0,e))}function Ft(e){return parseInt(e,16)}function zk(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Dk(e){return typeof e=="string"&&e.indexOf("%")!=-1}function dn(e){return e.length==1?"0"+e:""+e}function rs(e){return e<=1&&(e=e*100+"%"),e}function ly(e){return Math.round(parseFloat(e)*255).toString(16)}function wg(e){return Ft(e)/255}var an=function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",i="(?:"+n+")|(?:"+e+")",s="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",a="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?";return{CSS_UNIT:new RegExp(i),rgb:new RegExp("rgb"+s),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+s),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+s),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ln(e){return!!an.CSS_UNIT.exec(e)}function Ik(e){e=e.replace(gk,"").replace(yk,"").toLowerCase();var n=!1;if(rf[e])e=rf[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var i;return(i=an.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=an.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=an.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=an.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=an.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=an.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=an.hex8.exec(e))?{r:Ft(i[1]),g:Ft(i[2]),b:Ft(i[3]),a:wg(i[4]),format:n?"name":"hex8"}:(i=an.hex6.exec(e))?{r:Ft(i[1]),g:Ft(i[2]),b:Ft(i[3]),format:n?"name":"hex"}:(i=an.hex4.exec(e))?{r:Ft(i[1]+""+i[1]),g:Ft(i[2]+""+i[2]),b:Ft(i[3]+""+i[3]),a:wg(i[4]+""+i[4]),format:n?"name":"hex8"}:(i=an.hex3.exec(e))?{r:Ft(i[1]+""+i[1]),g:Ft(i[2]+""+i[2]),b:Ft(i[3]+""+i[3]),format:n?"name":"hex"}:!1}function Lk(e){var n,i;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),i=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),i!=="small"&&i!=="large"&&(i="small"),{level:n,size:i}}function of(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function Fk(e){if(Array.isArray(e))return of(e)}function ay(e,n,i){if(typeof e=="function"?e===n:e.has(n))return arguments.length<3?n:i;throw new TypeError("Private element is not present on this object")}function $k(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Uk(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Kt(e,n){return e.get(ay(e,n))}function kg(e,n,i){$k(e,n),n.set(e,i)}function Sg(e,n,i){return e.set(ay(e,n),i),i}function Hk(e,n){for(var i=0;i<n.length;i++){var s=n[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,Kk(s.key),s)}}function qk(e,n,i){return n&&Hk(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
101
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bk(e){return Fk(e)||Vk(e)||Gk(e)||Qk()}function Wk(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Kk(e){var n=Wk(e,"string");return typeof n=="symbol"?n:n+""}function Gk(e,n){if(e){if(typeof e=="string")return of(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?of(e,n):void 0}}var Xk=123,Yk=function(n){return"#".concat(Math.min(n,Math.pow(2,24)).toString(16).padStart(6,"0"))},uy=function(n,i,s){return(n<<16)+(i<<8)+s},Zk=function(n){var i=me(n).toRgb(),s=i.r,a=i.g,u=i.b;return uy(s,a,u)},Cg=function(n,i){return n*Xk%Math.pow(2,i)},Br=new WeakMap,Fn=new WeakMap,Jk=function(){function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6;Uk(this,e),kg(this,Br,void 0),kg(this,Fn,void 0),Sg(Fn,this,n),this.reset()}return qk(e,[{key:"reset",value:function(){Sg(Br,this,["__reserved for background__"])}},{key:"register",value:function(i){if(Kt(Br,this).length>=Math.pow(2,24-Kt(Fn,this)))return null;var s=Kt(Br,this).length,a=Cg(s,Kt(Fn,this)),u=Yk(s+(a<<24-Kt(Fn,this)));return Kt(Br,this).push(i),u}},{key:"lookup",value:function(i){if(!i)return null;var s=typeof i=="string"?Zk(i):uy.apply(void 0,Bk(i));if(!s)return null;var a=s&Math.pow(2,24-Kt(Fn,this))-1,u=s>>24-Kt(Fn,this)&Math.pow(2,Kt(Fn,this))-1;return Cg(a,Kt(Fn,this))!==u||a>=Kt(Br,this).length?null:Kt(Br,this)[a]}}])}(),Ss,Qe,cy,fy,Wr,bg,hy,dy,py,Ef,sf,lf,ds={},gy=[],eS=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_a=Array.isArray;function bn(e,n){for(var i in n)e[i]=n[i];return e}function Pf(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function tS(e,n,i){var s,a,u,f={};for(u in n)u=="key"?s=n[u]:u=="ref"?a=n[u]:f[u]=n[u];if(arguments.length>2&&(f.children=arguments.length>3?Ss.call(arguments,2):i),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)f[u]===void 0&&(f[u]=e.defaultProps[u]);return is(e,f,s,a,null)}function is(e,n,i,s,a){var u={type:e,props:n,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++cy,__i:-1,__u:0};return a==null&&Qe.vnode!=null&&Qe.vnode(u),u}function xa(e){return e.children}function Jl(e,n){this.props=e,this.context=n}function to(e,n){if(n==null)return e.__?to(e.__,e.__i+1):null;for(var i;n<e.__k.length;n++)if((i=e.__k[n])!=null&&i.__e!=null)return i.__e;return typeof e.type=="function"?to(e):null}function yy(e){var n,i;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((i=e.__k[n])!=null&&i.__e!=null){e.__e=e.__c.base=i.__e;break}return yy(e)}}function Eg(e){(!e.__d&&(e.__d=!0)&&Wr.push(e)&&!fa.__r++||bg!=Qe.debounceRendering)&&((bg=Qe.debounceRendering)||hy)(fa)}function fa(){for(var e,n,i,s,a,u,f,h=1;Wr.length;)Wr.length>h&&Wr.sort(dy),e=Wr.shift(),h=Wr.length,e.__d&&(i=void 0,a=(s=(n=e).__v).__e,u=[],f=[],n.__P&&((i=bn({},s)).__v=s.__v+1,Qe.vnode&&Qe.vnode(i),Tf(n.__P,i,s,n.__n,n.__P.namespaceURI,32&s.__u?[a]:null,u,a??to(s),!!(32&s.__u),f),i.__v=s.__v,i.__.__k[i.__i]=i,_y(u,i,f),i.__e!=a&&yy(i)));fa.__r=0}function my(e,n,i,s,a,u,f,h,p,y,v){var g,_,x,C,b,S,k=s&&s.__k||gy,O=n.length;for(p=nS(i,n,k,p,O),g=0;g<O;g++)(x=i.__k[g])!=null&&(_=x.__i==-1?ds:k[x.__i]||ds,x.__i=g,S=Tf(e,x,_,a,u,f,h,p,y,v),C=x.__e,x.ref&&_.ref!=x.ref&&(_.ref&&Nf(_.ref,null,x),v.push(x.ref,x.__c||C,x)),b==null&&C!=null&&(b=C),4&x.__u||_.__k===x.__k?p=vy(x,p,e):typeof x.type=="function"&&S!==void 0?p=S:C&&(p=C.nextSibling),x.__u&=-7);return i.__e=b,p}function nS(e,n,i,s,a){var u,f,h,p,y,v=i.length,g=v,_=0;for(e.__k=new Array(a),u=0;u<a;u++)(f=n[u])!=null&&typeof f!="boolean"&&typeof f!="function"?(p=u+_,(f=e.__k[u]=typeof f=="string"||typeof f=="number"||typeof f=="bigint"||f.constructor==String?is(null,f,null,null,null):_a(f)?is(xa,{children:f},null,null,null):f.constructor==null&&f.__b>0?is(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f).__=e,f.__b=e.__b+1,h=null,(y=f.__i=rS(f,i,p,g))!=-1&&(g--,(h=i[y])&&(h.__u|=2)),h==null||h.__v==null?(y==-1&&(a>v?_--:a<v&&_++),typeof f.type!="function"&&(f.__u|=4)):y!=p&&(y==p-1?_--:y==p+1?_++:(y>p?_--:_++,f.__u|=4))):e.__k[u]=null;if(g)for(u=0;u<v;u++)(h=i[u])!=null&&(2&h.__u)==0&&(h.__e==s&&(s=to(h)),wy(h,h));return s}function vy(e,n,i){var s,a;if(typeof e.type=="function"){for(s=e.__k,a=0;s&&a<s.length;a++)s[a]&&(s[a].__=e,n=vy(s[a],n,i));return n}e.__e!=n&&(n&&e.type&&!i.contains(n)&&(n=to(e)),i.insertBefore(e.__e,n||null),n=e.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType==8);return n}function rS(e,n,i,s){var a,u,f=e.key,h=e.type,p=n[i];if(p===null&&e.key==null||p&&f==p.key&&h==p.type&&(2&p.__u)==0)return i;if(s>(p!=null&&(2&p.__u)==0?1:0))for(a=i-1,u=i+1;a>=0||u<n.length;){if(a>=0){if((p=n[a])&&(2&p.__u)==0&&f==p.key&&h==p.type)return a;a--}if(u<n.length){if((p=n[u])&&(2&p.__u)==0&&f==p.key&&h==p.type)return u;u++}}return-1}function Pg(e,n,i){n[0]=="-"?e.setProperty(n,i??""):e[n]=i==null?"":typeof i!="number"||eS.test(n)?i:i+"px"}function Ql(e,n,i,s,a){var u,f;e:if(n=="style")if(typeof i=="string")e.style.cssText=i;else{if(typeof s=="string"&&(e.style.cssText=s=""),s)for(n in s)i&&n in i||Pg(e.style,n,"");if(i)for(n in i)s&&i[n]==s[n]||Pg(e.style,n,i[n])}else if(n[0]=="o"&&n[1]=="n")u=n!=(n=n.replace(py,"$1")),f=n.toLowerCase(),n=f in e||n=="onFocusOut"||n=="onFocusIn"?f.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+u]=i,i?s?i.u=s.u:(i.u=Ef,e.addEventListener(n,u?lf:sf,u)):e.removeEventListener(n,u?lf:sf,u);else{if(a=="http://www.w3.org/2000/svg")n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(n!="width"&&n!="height"&&n!="href"&&n!="list"&&n!="form"&&n!="tabIndex"&&n!="download"&&n!="rowSpan"&&n!="colSpan"&&n!="role"&&n!="popover"&&n in e)try{e[n]=i??"";break e}catch{}typeof i=="function"||(i==null||i===!1&&n[4]!="-"?e.removeAttribute(n):e.setAttribute(n,n=="popover"&&i==1?"":i))}}function Tg(e){return function(n){if(this.l){var i=this.l[n.type+e];if(n.t==null)n.t=Ef++;else if(n.t<i.u)return;return i(Qe.event?Qe.event(n):n)}}}function Tf(e,n,i,s,a,u,f,h,p,y){var v,g,_,x,C,b,S,k,O,A,P,T,z,L,D,Q,K,Z=n.type;if(n.constructor!=null)return null;128&i.__u&&(p=!!(32&i.__u),u=[h=n.__e=i.__e]),(v=Qe.__b)&&v(n);e:if(typeof Z=="function")try{if(k=n.props,O="prototype"in Z&&Z.prototype.render,A=(v=Z.contextType)&&s[v.__c],P=v?A?A.props.value:v.__:s,i.__c?S=(g=n.__c=i.__c).__=g.__E:(O?n.__c=g=new Z(k,P):(n.__c=g=new Jl(k,P),g.constructor=Z,g.render=oS),A&&A.sub(g),g.props=k,g.state||(g.state={}),g.context=P,g.__n=s,_=g.__d=!0,g.__h=[],g._sb=[]),O&&g.__s==null&&(g.__s=g.state),O&&Z.getDerivedStateFromProps!=null&&(g.__s==g.state&&(g.__s=bn({},g.__s)),bn(g.__s,Z.getDerivedStateFromProps(k,g.__s))),x=g.props,C=g.state,g.__v=n,_)O&&Z.getDerivedStateFromProps==null&&g.componentWillMount!=null&&g.componentWillMount(),O&&g.componentDidMount!=null&&g.__h.push(g.componentDidMount);else{if(O&&Z.getDerivedStateFromProps==null&&k!==x&&g.componentWillReceiveProps!=null&&g.componentWillReceiveProps(k,P),!g.__e&&g.shouldComponentUpdate!=null&&g.shouldComponentUpdate(k,g.__s,P)===!1||n.__v==i.__v){for(n.__v!=i.__v&&(g.props=k,g.state=g.__s,g.__d=!1),n.__e=i.__e,n.__k=i.__k,n.__k.some(function(ie){ie&&(ie.__=n)}),T=0;T<g._sb.length;T++)g.__h.push(g._sb[T]);g._sb=[],g.__h.length&&f.push(g);break e}g.componentWillUpdate!=null&&g.componentWillUpdate(k,g.__s,P),O&&g.componentDidUpdate!=null&&g.__h.push(function(){g.componentDidUpdate(x,C,b)})}if(g.context=P,g.props=k,g.__P=e,g.__e=!1,z=Qe.__r,L=0,O){for(g.state=g.__s,g.__d=!1,z&&z(n),v=g.render(g.props,g.state,g.context),D=0;D<g._sb.length;D++)g.__h.push(g._sb[D]);g._sb=[]}else do g.__d=!1,z&&z(n),v=g.render(g.props,g.state,g.context),g.state=g.__s;while(g.__d&&++L<25);g.state=g.__s,g.getChildContext!=null&&(s=bn(bn({},s),g.getChildContext())),O&&!_&&g.getSnapshotBeforeUpdate!=null&&(b=g.getSnapshotBeforeUpdate(x,C)),Q=v,v!=null&&v.type===xa&&v.key==null&&(Q=xy(v.props.children)),h=my(e,_a(Q)?Q:[Q],n,i,s,a,u,f,h,p,y),g.base=n.__e,n.__u&=-161,g.__h.length&&f.push(g),S&&(g.__E=g.__=null)}catch(ie){if(n.__v=null,p||u!=null)if(ie.then){for(n.__u|=p?160:128;h&&h.nodeType==8&&h.nextSibling;)h=h.nextSibling;u[u.indexOf(h)]=null,n.__e=h}else for(K=u.length;K--;)Pf(u[K]);else n.__e=i.__e,n.__k=i.__k;Qe.__e(ie,n,i)}else u==null&&n.__v==i.__v?(n.__k=i.__k,n.__e=i.__e):h=n.__e=iS(i.__e,n,i,s,a,u,f,p,y);return(v=Qe.diffed)&&v(n),128&n.__u?void 0:h}function _y(e,n,i){for(var s=0;s<i.length;s++)Nf(i[s],i[++s],i[++s]);Qe.__c&&Qe.__c(n,e),e.some(function(a){try{e=a.__h,a.__h=[],e.some(function(u){u.call(a)})}catch(u){Qe.__e(u,a.__v)}})}function xy(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:_a(e)?e.map(xy):bn({},e)}function iS(e,n,i,s,a,u,f,h,p){var y,v,g,_,x,C,b,S=i.props,k=n.props,O=n.type;if(O=="svg"?a="http://www.w3.org/2000/svg":O=="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),u!=null){for(y=0;y<u.length;y++)if((x=u[y])&&"setAttribute"in x==!!O&&(O?x.localName==O:x.nodeType==3)){e=x,u[y]=null;break}}if(e==null){if(O==null)return document.createTextNode(k);e=document.createElementNS(a,O,k.is&&k),h&&(Qe.__m&&Qe.__m(n,u),h=!1),u=null}if(O==null)S===k||h&&e.data==k||(e.data=k);else{if(u=u&&Ss.call(e.childNodes),S=i.props||ds,!h&&u!=null)for(S={},y=0;y<e.attributes.length;y++)S[(x=e.attributes[y]).name]=x.value;for(y in S)if(x=S[y],y!="children"){if(y=="dangerouslySetInnerHTML")g=x;else if(!(y in k)){if(y=="value"&&"defaultValue"in k||y=="checked"&&"defaultChecked"in k)continue;Ql(e,y,null,x,a)}}for(y in k)x=k[y],y=="children"?_=x:y=="dangerouslySetInnerHTML"?v=x:y=="value"?C=x:y=="checked"?b=x:h&&typeof x!="function"||S[y]===x||Ql(e,y,x,S[y],a);if(v)h||g&&(v.__html==g.__html||v.__html==e.innerHTML)||(e.innerHTML=v.__html),n.__k=[];else if(g&&(e.innerHTML=""),my(n.type=="template"?e.content:e,_a(_)?_:[_],n,i,s,O=="foreignObject"?"http://www.w3.org/1999/xhtml":a,u,f,u?u[0]:i.__k&&to(i,0),h,p),u!=null)for(y=u.length;y--;)Pf(u[y]);h||(y="value",O=="progress"&&C==null?e.removeAttribute("value"):C!=null&&(C!==e[y]||O=="progress"&&!C||O=="option"&&C!=S[y])&&Ql(e,y,C,S[y],a),y="checked",b!=null&&b!=e[y]&&Ql(e,y,b,S[y],a))}return e}function Nf(e,n,i){try{if(typeof e=="function"){var s=typeof e.__u=="function";s&&e.__u(),s&&n==null||(e.__u=e(n))}else e.current=n}catch(a){Qe.__e(a,i)}}function wy(e,n,i){var s,a;if(Qe.unmount&&Qe.unmount(e),(s=e.ref)&&(s.current&&s.current!=e.__e||Nf(s,null,n)),(s=e.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(u){Qe.__e(u,n)}s.base=s.__P=null}if(s=e.__k)for(a=0;a<s.length;a++)s[a]&&wy(s[a],n,i||typeof e.type!="function");i||Pf(e.__e),e.__c=e.__=e.__e=void 0}function oS(e,n,i){return this.constructor(e,i)}function sS(e,n,i){var s,a,u,f;n==document&&(n=document.documentElement),Qe.__&&Qe.__(e,n),a=(s=!1)?null:n.__k,u=[],f=[],Tf(n,e=n.__k=tS(xa,null,[e]),a||ds,ds,n.namespaceURI,a?null:n.firstChild?Ss.call(n.childNodes):null,u,a?a.__e:n.firstChild,s,f),_y(u,e,f)}function ky(e,n,i){var s,a,u,f,h=bn({},e.props);for(u in e.type&&e.type.defaultProps&&(f=e.type.defaultProps),n)u=="key"?s=n[u]:u=="ref"?a=n[u]:h[u]=n[u]===void 0&&f!=null?f[u]:n[u];return arguments.length>2&&(h.children=arguments.length>3?Ss.call(arguments,2):i),is(e.type,h,s||e.key,a||e.ref,null)}Ss=gy.slice,Qe={__e:function(e,n,i,s){for(var a,u,f;n=n.__;)if((a=n.__c)&&!a.__)try{if((u=a.constructor)&&u.getDerivedStateFromError!=null&&(a.setState(u.getDerivedStateFromError(e)),f=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(e,s||{}),f=a.__d),f)return a.__E=a}catch(h){e=h}throw e}},cy=0,fy=function(e){return e!=null&&e.constructor==null},Jl.prototype.setState=function(e,n){var i;i=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=bn({},this.state),typeof e=="function"&&(e=e(bn({},i),this.props)),e&&bn(i,e),e!=null&&this.__v&&(n&&this._sb.push(n),Eg(this))},Jl.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Eg(this))},Jl.prototype.render=xa,Wr=[],hy=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,dy=function(e,n){return e.__v.__b-n.__v.__b},fa.__r=0,py=/(PointerCapture)$|Capture$/i,Ef=0,sf=Tg(!1),lf=Tg(!0);function Ng(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function lS(e){if(Array.isArray(e))return e}function aS(e,n,i){return(n=pS(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function uS(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function cS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
102
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mg(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,s)}return i}function fS(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Mg(Object(i),!0).forEach(function(s){aS(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Mg(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function hS(e,n){return lS(e)||uS(e,n)||gS(e,n)||cS()}function dS(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function pS(e){var n=dS(e,"string");return typeof n=="symbol"?n:n+""}function ha(e){"@babel/helpers - typeof";return ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ha(e)}function gS(e,n){if(e){if(typeof e=="string")return Ng(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ng(e,n):void 0}}var af=function(n){if(ha(n)!=="object")return n;var i=ky(n);if(i.props){var s;i.props=fS({},i.props),i!=null&&(s=i.props)!==null&&s!==void 0&&s.children&&(i.props.children=Array.isArray(i.props.children)?i.props.children.map(af):af(i.props.children))}return i},yS=function(n){return fy(ky(n))},mS=function(n,i){delete i.__k,sS(af(n),i)};function vS(e,n){n===void 0&&(n={});var i=n.insertAt;if(!(typeof document>"u")){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",i==="top"&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var _S=`.float-tooltip-kap {
95
+ */const N1=Xn("Network",[["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"}]]);/**
96
+ * @license lucide-react v0.408.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const T1=Xn("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
101
+ * @license lucide-react v0.408.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const Fp=Xn("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);function M1({children:e,variant:n="default",className:i=""}){const s="inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",a={default:"bg-primary text-primary-foreground",outline:"border border-input bg-background text-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive text-destructive-foreground"};return I.jsx("span",{className:`${s} ${a[n]} ${i}`,children:e})}function ht({children:e,variant:n="default",size:i="default",className:s="",onClick:a,disabled:u=!1,title:f,type:h="button"}){const p="inline-flex items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none",m={default:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90"},v={default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"};return I.jsx("button",{type:h,className:`${p} ${m[n]} ${v[i]} ${s}`,onClick:a,disabled:u,title:f,children:e})}function O1({children:e,className:n=""}){return I.jsx("div",{className:`rounded-lg border bg-card text-card-foreground shadow-sm ${n}`,children:e})}function R1({children:e,className:n=""}){return I.jsx("div",{className:`flex flex-col space-y-1.5 p-6 ${n}`,children:e})}function A1({children:e,className:n=""}){return I.jsx("div",{className:`flex items-center p-6 pt-0 ${n}`,children:e})}function j1({type:e="text",placeholder:n,value:i,onChange:s,className:a="",disabled:u=!1,ref:f,multiple:h,accept:p,...m}){return I.jsx("input",{type:e,placeholder:n,value:i,onChange:s,disabled:u,multiple:h,accept:p,ref:f,className:`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ${a}`,...m})}function z1(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,m=!1;try{if(u=(i=i.call(e)).next,n===0){if(Object(i)!==i)return;p=!1}else for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function D1(e,n,i){return n=q1(n),n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function $p(e,n){return F1(e)||z1(e,n)||N0(e,n)||H1()}function I1(e){return L1(e)||$1(e)||N0(e)||U1()}function L1(e){if(Array.isArray(e))return Qc(e)}function F1(e){if(Array.isArray(e))return e}function $1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N0(e,n){if(e){if(typeof e=="string")return Qc(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Qc(e,n)}}function Qc(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=new Array(n);i<n;i++)s[i]=e[i];return s}function U1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
106
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
107
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V1(e,n){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function q1(e){var n=V1(e,"string");return typeof n=="symbol"?n:String(n)}var Q1=function(n,i){var s=new Set(i);return Object.assign.apply(Object,[{}].concat(I1(Object.entries(n).filter(function(a){var u=$p(a,1),f=u[0];return!s.has(f)}).map(function(a){var u=$p(a,2),f=u[0],h=u[1];return D1({},f,h)}))))};function Bc(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function B1(e){if(Array.isArray(e))return e}function W1(e){if(Array.isArray(e))return Bc(e)}function K1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function G1(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,m=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function X1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
108
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
109
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z1(e,n){return B1(e)||G1(e,n)||T0(e,n)||X1()}function Up(e){return W1(e)||K1(e)||T0(e)||Y1()}function T0(e,n){if(e){if(typeof e=="string")return Bc(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Bc(e,n):void 0}}function J1(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.wrapperElementType,s=i===void 0?"div":i,a=n.nodeMapper,u=a===void 0?function(v){return v}:a,f=n.methodNames,h=f===void 0?[]:f,p=n.initPropNames,m=p===void 0?[]:p;return de.forwardRef(function(v,g){var _=de.useRef(),x=de.useMemo(function(){var S=Object.fromEntries(m.filter(function(k){return v.hasOwnProperty(k)}).map(function(k){return[k,v[k]]}));return e(S)},[]);Hp(function(){x(u(_.current))},de.useLayoutEffect),Hp(function(){return x._destructor instanceof Function?x._destructor:void 0});var C=de.useCallback(function(S){for(var k=arguments.length,O=new Array(k>1?k-1:0),A=1;A<k;A++)O[A-1]=arguments[A];return x[S]instanceof Function?x[S].apply(x,O):void 0},[x]),b=de.useRef({});return Object.keys(Q1(v,[].concat(Up(h),Up(m)))).filter(function(S){return b.current[S]!==v[S]}).forEach(function(S){return C(S,v[S])}),b.current=v,de.useImperativeHandle(g,function(){return Object.fromEntries(h.map(function(S){return[S,function(){for(var k=arguments.length,O=new Array(k),A=0;A<k;A++)O[A]=arguments[A];return C.apply(void 0,[S].concat(O))}]}))},[C]),C0.createElement(s,{ref:_})})}function Hp(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:de.useEffect,i=de.useRef(),s=de.useRef(!1),a=de.useRef(!1),u=de.useState(0),f=Z1(u,2);f[0];var h=f[1];s.current&&(a.current=!0),n(function(){return s.current||(i.current=e(),s.current=!0),h(function(p){return p+1}),function(){a.current&&i.current&&i.current()}},[])}var Wc="http://www.w3.org/1999/xhtml";const Vp={svg:"http://www.w3.org/2000/svg",xhtml:Wc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ga(e){var n=e+="",i=n.indexOf(":");return i>=0&&(n=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),Vp.hasOwnProperty(n)?{space:Vp[n],local:e}:e}function e_(e){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Wc&&n.documentElement.namespaceURI===Wc?n.createElement(e):n.createElementNS(i,e)}}function t_(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function M0(e){var n=ga(e);return(n.local?t_:e_)(n)}function n_(){}function yf(e){return e==null?n_:function(){return this.querySelector(e)}}function r_(e){typeof e!="function"&&(e=yf(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=new Array(f),p,m,v=0;v<f;++v)(p=u[v])&&(m=e.call(p,p.__data__,v,u))&&("__data__"in p&&(m.__data__=p.__data__),h[v]=m);return new $t(s,this._parents)}function i_(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function o_(){return[]}function O0(e){return e==null?o_:function(){return this.querySelectorAll(e)}}function s_(e){return function(){return i_(e.apply(this,arguments))}}function l_(e){typeof e=="function"?e=s_(e):e=O0(e);for(var n=this._groups,i=n.length,s=[],a=[],u=0;u<i;++u)for(var f=n[u],h=f.length,p,m=0;m<h;++m)(p=f[m])&&(s.push(e.call(p,p.__data__,m,f)),a.push(p));return new $t(s,a)}function R0(e){return function(){return this.matches(e)}}function A0(e){return function(n){return n.matches(e)}}var a_=Array.prototype.find;function u_(e){return function(){return a_.call(this.children,e)}}function c_(){return this.firstElementChild}function f_(e){return this.select(e==null?c_:u_(typeof e=="function"?e:A0(e)))}var h_=Array.prototype.filter;function d_(){return Array.from(this.children)}function p_(e){return function(){return h_.call(this.children,e)}}function g_(e){return this.selectAll(e==null?d_:p_(typeof e=="function"?e:A0(e)))}function m_(e){typeof e!="function"&&(e=R0(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=[],p,m=0;m<f;++m)(p=u[m])&&e.call(p,p.__data__,m,u)&&h.push(p);return new $t(s,this._parents)}function j0(e){return new Array(e.length)}function y_(){return new $t(this._enter||this._groups.map(j0),this._parents)}function na(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}na.prototype={constructor:na,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function v_(e){return function(){return e}}function __(e,n,i,s,a,u){for(var f=0,h,p=n.length,m=u.length;f<m;++f)(h=n[f])?(h.__data__=u[f],s[f]=h):i[f]=new na(e,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function x_(e,n,i,s,a,u,f){var h,p,m=new Map,v=n.length,g=u.length,_=new Array(v),x;for(h=0;h<v;++h)(p=n[h])&&(_[h]=x=f.call(p,p.__data__,h,n)+"",m.has(x)?a[h]=p:m.set(x,p));for(h=0;h<g;++h)x=f.call(e,u[h],h,u)+"",(p=m.get(x))?(s[h]=p,p.__data__=u[h],m.delete(x)):i[h]=new na(e,u[h]);for(h=0;h<v;++h)(p=n[h])&&m.get(_[h])===p&&(a[h]=p)}function w_(e){return e.__data__}function k_(e,n){if(!arguments.length)return Array.from(this,w_);var i=n?x_:__,s=this._parents,a=this._groups;typeof e!="function"&&(e=v_(e));for(var u=a.length,f=new Array(u),h=new Array(u),p=new Array(u),m=0;m<u;++m){var v=s[m],g=a[m],_=g.length,x=S_(e.call(v,v&&v.__data__,m,s)),C=x.length,b=h[m]=new Array(C),S=f[m]=new Array(C),k=p[m]=new Array(_);i(v,g,b,S,k,x,n);for(var O=0,A=0,P,N;O<C;++O)if(P=b[O]){for(O>=A&&(A=O+1);!(N=S[A])&&++A<C;);P._next=N||null}}return f=new $t(f,s),f._enter=h,f._exit=p,f}function S_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function C_(){return new $t(this._exit||this._groups.map(j0),this._parents)}function b_(e,n,i){var s=this.enter(),a=this,u=this.exit();return typeof e=="function"?(s=e(s),s&&(s=s.selection())):s=s.append(e+""),n!=null&&(a=n(a),a&&(a=a.selection())),i==null?u.remove():i(u),s&&a?s.merge(a).order():a}function E_(e){for(var n=e.selection?e.selection():e,i=this._groups,s=n._groups,a=i.length,u=s.length,f=Math.min(a,u),h=new Array(a),p=0;p<f;++p)for(var m=i[p],v=s[p],g=m.length,_=h[p]=new Array(g),x,C=0;C<g;++C)(x=m[C]||v[C])&&(_[C]=x);for(;p<a;++p)h[p]=i[p];return new $t(h,this._parents)}function P_(){for(var e=this._groups,n=-1,i=e.length;++n<i;)for(var s=e[n],a=s.length-1,u=s[a],f;--a>=0;)(f=s[a])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function N_(e){e||(e=T_);function n(g,_){return g&&_?e(g.__data__,_.__data__):!g-!_}for(var i=this._groups,s=i.length,a=new Array(s),u=0;u<s;++u){for(var f=i[u],h=f.length,p=a[u]=new Array(h),m,v=0;v<h;++v)(m=f[v])&&(p[v]=m);p.sort(n)}return new $t(a,this._parents).order()}function T_(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function M_(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function O_(){return Array.from(this)}function R_(){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var s=e[n],a=0,u=s.length;a<u;++a){var f=s[a];if(f)return f}return null}function A_(){let e=0;for(const n of this)++e;return e}function j_(){return!this.node()}function z_(e){for(var n=this._groups,i=0,s=n.length;i<s;++i)for(var a=n[i],u=0,f=a.length,h;u<f;++u)(h=a[u])&&e.call(h,h.__data__,u,a);return this}function D_(e){return function(){this.removeAttribute(e)}}function I_(e){return function(){this.removeAttributeNS(e.space,e.local)}}function L_(e,n){return function(){this.setAttribute(e,n)}}function F_(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function $_(e,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttribute(e):this.setAttribute(e,i)}}function U_(e,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function H_(e,n){var i=ga(e);if(arguments.length<2){var s=this.node();return i.local?s.getAttributeNS(i.space,i.local):s.getAttribute(i)}return this.each((n==null?i.local?I_:D_:typeof n=="function"?i.local?U_:$_:i.local?F_:L_)(i,n))}function z0(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function V_(e){return function(){this.style.removeProperty(e)}}function q_(e,n,i){return function(){this.style.setProperty(e,n,i)}}function Q_(e,n,i){return function(){var s=n.apply(this,arguments);s==null?this.style.removeProperty(e):this.style.setProperty(e,s,i)}}function B_(e,n,i){return arguments.length>1?this.each((n==null?V_:typeof n=="function"?Q_:q_)(e,n,i??"")):Ji(this.node(),e)}function Ji(e,n){return e.style.getPropertyValue(n)||z0(e).getComputedStyle(e,null).getPropertyValue(n)}function W_(e){return function(){delete this[e]}}function K_(e,n){return function(){this[e]=n}}function G_(e,n){return function(){var i=n.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function X_(e,n){return arguments.length>1?this.each((n==null?W_:typeof n=="function"?G_:K_)(e,n)):this.node()[e]}function D0(e){return e.trim().split(/^|\s+/)}function vf(e){return e.classList||new I0(e)}function I0(e){this._node=e,this._names=D0(e.getAttribute("class")||"")}I0.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function L0(e,n){for(var i=vf(e),s=-1,a=n.length;++s<a;)i.add(n[s])}function F0(e,n){for(var i=vf(e),s=-1,a=n.length;++s<a;)i.remove(n[s])}function Y_(e){return function(){L0(this,e)}}function Z_(e){return function(){F0(this,e)}}function J_(e,n){return function(){(n.apply(this,arguments)?L0:F0)(this,e)}}function ex(e,n){var i=D0(e+"");if(arguments.length<2){for(var s=vf(this.node()),a=-1,u=i.length;++a<u;)if(!s.contains(i[a]))return!1;return!0}return this.each((typeof n=="function"?J_:n?Y_:Z_)(i,n))}function tx(){this.textContent=""}function nx(e){return function(){this.textContent=e}}function rx(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function ix(e){return arguments.length?this.each(e==null?tx:(typeof e=="function"?rx:nx)(e)):this.node().textContent}function ox(){this.innerHTML=""}function sx(e){return function(){this.innerHTML=e}}function lx(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function ax(e){return arguments.length?this.each(e==null?ox:(typeof e=="function"?lx:sx)(e)):this.node().innerHTML}function ux(){this.nextSibling&&this.parentNode.appendChild(this)}function cx(){return this.each(ux)}function fx(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hx(){return this.each(fx)}function dx(e){var n=typeof e=="function"?e:M0(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function px(){return null}function gx(e,n){var i=typeof e=="function"?e:M0(e),s=n==null?px:typeof n=="function"?n:yf(n);return this.select(function(){return this.insertBefore(i.apply(this,arguments),s.apply(this,arguments)||null)})}function mx(){var e=this.parentNode;e&&e.removeChild(this)}function yx(){return this.each(mx)}function vx(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function _x(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function xx(e){return this.select(e?_x:vx)}function wx(e){return arguments.length?this.property("__data__",e):this.node().__data__}function kx(e){return function(n){e.call(this,n,this.__data__)}}function Sx(e){return e.trim().split(/^|\s+/).map(function(n){var i="",s=n.indexOf(".");return s>=0&&(i=n.slice(s+1),n=n.slice(0,s)),{type:n,name:i}})}function Cx(e){return function(){var n=this.__on;if(n){for(var i=0,s=-1,a=n.length,u;i<a;++i)u=n[i],(!e.type||u.type===e.type)&&u.name===e.name?this.removeEventListener(u.type,u.listener,u.options):n[++s]=u;++s?n.length=s:delete this.__on}}}function bx(e,n,i){return function(){var s=this.__on,a,u=kx(n);if(s){for(var f=0,h=s.length;f<h;++f)if((a=s[f]).type===e.type&&a.name===e.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=i),a.value=n;return}}this.addEventListener(e.type,u,i),a={type:e.type,name:e.name,value:n,listener:u,options:i},s?s.push(a):this.__on=[a]}}function Ex(e,n,i){var s=Sx(e+""),a,u=s.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,m=h.length,v;p<m;++p)for(a=0,v=h[p];a<u;++a)if((f=s[a]).type===v.type&&f.name===v.name)return v.value}return}for(h=n?bx:Cx,a=0;a<u;++a)this.each(h(s[a],n,i));return this}function $0(e,n,i){var s=z0(e),a=s.CustomEvent;typeof a=="function"?a=new a(n,i):(a=s.document.createEvent("Event"),i?(a.initEvent(n,i.bubbles,i.cancelable),a.detail=i.detail):a.initEvent(n,!1,!1)),e.dispatchEvent(a)}function Px(e,n){return function(){return $0(this,e,n)}}function Nx(e,n){return function(){return $0(this,e,n.apply(this,arguments))}}function Tx(e,n){return this.each((typeof n=="function"?Nx:Px)(e,n))}function*Mx(){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var s=e[n],a=0,u=s.length,f;a<u;++a)(f=s[a])&&(yield f)}var U0=[null];function $t(e,n){this._groups=e,this._parents=n}function xs(){return new $t([[document.documentElement]],U0)}function Ox(){return this}$t.prototype=xs.prototype={constructor:$t,select:r_,selectAll:l_,selectChild:f_,selectChildren:g_,filter:m_,data:k_,enter:y_,exit:C_,join:b_,merge:E_,selection:Ox,order:P_,sort:N_,call:M_,nodes:O_,node:R_,size:A_,empty:j_,each:z_,attr:H_,style:B_,property:X_,classed:ex,text:ix,html:ax,raise:cx,lower:hx,append:dx,insert:gx,remove:yx,clone:xx,datum:wx,on:Ex,dispatch:Tx,[Symbol.iterator]:Mx};function Yt(e){return typeof e=="string"?new $t([[document.querySelector(e)]],[document.documentElement]):new $t([[e]],U0)}function Rx(e){let n;for(;n=e.sourceEvent;)e=n;return e}function wn(e,n){if(e=Rx(e),n===void 0&&(n=e.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var s=i.createSVGPoint();return s.x=e.clientX,s.y=e.clientY,s=s.matrixTransform(n.getScreenCTM().inverse()),[s.x,s.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[e.clientX-a.left-n.clientLeft,e.clientY-a.top-n.clientTop]}}return[e.pageX,e.pageY]}var Ax={value:()=>{}};function ws(){for(var e=0,n=arguments.length,i={},s;e<n;++e){if(!(s=arguments[e]+"")||s in i||/[\s.]/.test(s))throw new Error("illegal type: "+s);i[s]=[]}return new Gl(i)}function Gl(e){this._=e}function jx(e,n){return e.trim().split(/^|\s+/).map(function(i){var s="",a=i.indexOf(".");if(a>=0&&(s=i.slice(a+1),i=i.slice(0,a)),i&&!n.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:s}})}Gl.prototype=ws.prototype={constructor:Gl,on:function(e,n){var i=this._,s=jx(e+"",i),a,u=-1,f=s.length;if(arguments.length<2){for(;++u<f;)if((a=(e=s[u]).type)&&(a=zx(i[a],e.name)))return a;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++u<f;)if(a=(e=s[u]).type)i[a]=qp(i[a],e.name,n);else if(n==null)for(a in i)i[a]=qp(i[a],e.name,null);return this},copy:function(){var e={},n=this._;for(var i in n)e[i]=n[i].slice();return new Gl(e)},call:function(e,n){if((a=arguments.length-2)>0)for(var i=new Array(a),s=0,a,u;s<a;++s)i[s]=arguments[s+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(u=this._[e],s=0,a=u.length;s<a;++s)u[s].value.apply(n,i)},apply:function(e,n,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var s=this._[e],a=0,u=s.length;a<u;++a)s[a].value.apply(n,i)}};function zx(e,n){for(var i=0,s=e.length,a;i<s;++i)if((a=e[i]).name===n)return a.value}function qp(e,n,i){for(var s=0,a=e.length;s<a;++s)if(e[s].name===n){e[s]=Ax,e=e.slice(0,s).concat(e.slice(s+1));break}return i!=null&&e.push({name:n,value:i}),e}const Dx={passive:!1},as={capture:!0,passive:!1};function _c(e){e.stopImmediatePropagation()}function Li(e){e.preventDefault(),e.stopImmediatePropagation()}function H0(e){var n=e.document.documentElement,i=Yt(e).on("dragstart.drag",Li,as);"onselectstart"in n?i.on("selectstart.drag",Li,as):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function V0(e,n){var i=e.document.documentElement,s=Yt(e).on("dragstart.drag",null);n&&(s.on("click.drag",Li,as),setTimeout(function(){s.on("click.drag",null)},0)),"onselectstart"in i?s.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}const $l=e=>()=>e;function Kc(e,{sourceEvent:n,subject:i,target:s,identifier:a,active:u,x:f,y:h,dx:p,dy:m,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:i,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:p,enumerable:!0,configurable:!0},dy:{value:m,enumerable:!0,configurable:!0},_:{value:v}})}Kc.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Ix(e){return!e.ctrlKey&&!e.button}function Lx(){return this.parentNode}function Fx(e,n){return n??{x:e.x,y:e.y}}function $x(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ux(){var e=Ix,n=Lx,i=Fx,s=$x,a={},u=ws("start","drag","end"),f=0,h,p,m,v,g=0;function _(P){P.on("mousedown.drag",x).filter(s).on("touchstart.drag",S).on("touchmove.drag",k,Dx).on("touchend.drag touchcancel.drag",O).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(P,N){if(!(v||!e.call(this,P,N))){var z=A(this,n.call(this,P,N),P,N,"mouse");z&&(Yt(P.view).on("mousemove.drag",C,as).on("mouseup.drag",b,as),H0(P.view),_c(P),m=!1,h=P.clientX,p=P.clientY,z("start",P))}}function C(P){if(Li(P),!m){var N=P.clientX-h,z=P.clientY-p;m=N*N+z*z>g}a.mouse("drag",P)}function b(P){Yt(P.view).on("mousemove.drag mouseup.drag",null),V0(P.view,m),Li(P),a.mouse("end",P)}function S(P,N){if(e.call(this,P,N)){var z=P.changedTouches,F=n.call(this,P,N),D=z.length,Q,K;for(Q=0;Q<D;++Q)(K=A(this,F,P,N,z[Q].identifier,z[Q]))&&(_c(P),K("start",P,z[Q]))}}function k(P){var N=P.changedTouches,z=N.length,F,D;for(F=0;F<z;++F)(D=a[N[F].identifier])&&(Li(P),D("drag",P,N[F]))}function O(P){var N=P.changedTouches,z=N.length,F,D;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),F=0;F<z;++F)(D=a[N[F].identifier])&&(_c(P),D("end",P,N[F]))}function A(P,N,z,F,D,Q){var K=u.copy(),Z=wn(Q||z,N),ie,ce,$;if(($=i.call(P,new Kc("beforestart",{sourceEvent:z,target:_,identifier:D,active:f,x:Z[0],y:Z[1],dx:0,dy:0,dispatch:K}),F))!=null)return ie=$.x-Z[0]||0,ce=$.y-Z[1]||0,function te(W,oe,B){var J=Z,G;switch(W){case"start":a[D]=te,G=f++;break;case"end":delete a[D],--f;case"drag":Z=wn(B||oe,N),G=f;break}K.call(W,P,new Kc(W,{sourceEvent:oe,subject:$,target:_,identifier:D,active:G,x:Z[0]+ie,y:Z[1]+ce,dx:Z[0]-J[0],dy:Z[1]-J[1],dispatch:K}),F)}}return _.filter=function(P){return arguments.length?(e=typeof P=="function"?P:$l(!!P),_):e},_.container=function(P){return arguments.length?(n=typeof P=="function"?P:$l(P),_):n},_.subject=function(P){return arguments.length?(i=typeof P=="function"?P:$l(P),_):i},_.touchable=function(P){return arguments.length?(s=typeof P=="function"?P:$l(!!P),_):s},_.on=function(){var P=u.on.apply(u,arguments);return P===u?_:P},_.clickDistance=function(P){return arguments.length?(g=(P=+P)*P,_):Math.sqrt(g)},_}function _f(e,n,i){e.prototype=n.prototype=i,i.constructor=e}function q0(e,n){var i=Object.create(e.prototype);for(var s in n)i[s]=n[s];return i}function ks(){}var us=.7,ra=1/us,Fi="\\s*([+-]?\\d+)\\s*",cs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",En="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hx=/^#([0-9a-f]{3,8})$/,Vx=new RegExp(`^rgb\\(${Fi},${Fi},${Fi}\\)$`),qx=new RegExp(`^rgb\\(${En},${En},${En}\\)$`),Qx=new RegExp(`^rgba\\(${Fi},${Fi},${Fi},${cs}\\)$`),Bx=new RegExp(`^rgba\\(${En},${En},${En},${cs}\\)$`),Wx=new RegExp(`^hsl\\(${cs},${En},${En}\\)$`),Kx=new RegExp(`^hsla\\(${cs},${En},${En},${cs}\\)$`),Qp={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};_f(ks,fs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bp,formatHex:Bp,formatHex8:Gx,formatHsl:Xx,formatRgb:Wp,toString:Wp});function Bp(){return this.rgb().formatHex()}function Gx(){return this.rgb().formatHex8()}function Xx(){return Q0(this).formatHsl()}function Wp(){return this.rgb().formatRgb()}function fs(e){var n,i;return e=(e+"").trim().toLowerCase(),(n=Hx.exec(e))?(i=n[1].length,n=parseInt(n[1],16),i===6?Kp(n):i===3?new At(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?Ul(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?Ul(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=Vx.exec(e))?new At(n[1],n[2],n[3],1):(n=qx.exec(e))?new At(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Qx.exec(e))?Ul(n[1],n[2],n[3],n[4]):(n=Bx.exec(e))?Ul(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Wx.exec(e))?Yp(n[1],n[2]/100,n[3]/100,1):(n=Kx.exec(e))?Yp(n[1],n[2]/100,n[3]/100,n[4]):Qp.hasOwnProperty(e)?Kp(Qp[e]):e==="transparent"?new At(NaN,NaN,NaN,0):null}function Kp(e){return new At(e>>16&255,e>>8&255,e&255,1)}function Ul(e,n,i,s){return s<=0&&(e=n=i=NaN),new At(e,n,i,s)}function Yx(e){return e instanceof ks||(e=fs(e)),e?(e=e.rgb(),new At(e.r,e.g,e.b,e.opacity)):new At}function Gc(e,n,i,s){return arguments.length===1?Yx(e):new At(e,n,i,s??1)}function At(e,n,i,s){this.r=+e,this.g=+n,this.b=+i,this.opacity=+s}_f(At,Gc,q0(ks,{brighter(e){return e=e==null?ra:Math.pow(ra,e),new At(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?us:Math.pow(us,e),new At(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new At(ii(this.r),ii(this.g),ii(this.b),ia(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:Gp,formatHex:Gp,formatHex8:Zx,formatRgb:Xp,toString:Xp}));function Gp(){return`#${Gr(this.r)}${Gr(this.g)}${Gr(this.b)}`}function Zx(){return`#${Gr(this.r)}${Gr(this.g)}${Gr(this.b)}${Gr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Xp(){const e=ia(this.opacity);return`${e===1?"rgb(":"rgba("}${ii(this.r)}, ${ii(this.g)}, ${ii(this.b)}${e===1?")":`, ${e})`}`}function ia(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ii(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gr(e){return e=ii(e),(e<16?"0":"")+e.toString(16)}function Yp(e,n,i,s){return s<=0?e=n=i=NaN:i<=0||i>=1?e=n=NaN:n<=0&&(e=NaN),new hn(e,n,i,s)}function Q0(e){if(e instanceof hn)return new hn(e.h,e.s,e.l,e.opacity);if(e instanceof ks||(e=fs(e)),!e)return new hn;if(e instanceof hn)return e;e=e.rgb();var n=e.r/255,i=e.g/255,s=e.b/255,a=Math.min(n,i,s),u=Math.max(n,i,s),f=NaN,h=u-a,p=(u+a)/2;return h?(n===u?f=(i-s)/h+(i<s)*6:i===u?f=(s-n)/h+2:f=(n-i)/h+4,h/=p<.5?u+a:2-u-a,f*=60):h=p>0&&p<1?0:f,new hn(f,h,p,e.opacity)}function Jx(e,n,i,s){return arguments.length===1?Q0(e):new hn(e,n,i,s??1)}function hn(e,n,i,s){this.h=+e,this.s=+n,this.l=+i,this.opacity=+s}_f(hn,Jx,q0(ks,{brighter(e){return e=e==null?ra:Math.pow(ra,e),new hn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?us:Math.pow(us,e),new hn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*n,a=2*i-s;return new At(xc(e>=240?e-240:e+120,a,s),xc(e,a,s),xc(e<120?e+240:e-120,a,s),this.opacity)},clamp(){return new hn(Zp(this.h),Hl(this.s),Hl(this.l),ia(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=ia(this.opacity);return`${e===1?"hsl(":"hsla("}${Zp(this.h)}, ${Hl(this.s)*100}%, ${Hl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zp(e){return e=(e||0)%360,e<0?e+360:e}function Hl(e){return Math.max(0,Math.min(1,e||0))}function xc(e,n,i){return(e<60?n+(i-n)*e/60:e<180?i:e<240?n+(i-n)*(240-e)/60:n)*255}const B0=e=>()=>e;function ew(e,n){return function(i){return e+i*n}}function tw(e,n,i){return e=Math.pow(e,i),n=Math.pow(n,i)-e,i=1/i,function(s){return Math.pow(e+s*n,i)}}function nw(e){return(e=+e)==1?W0:function(n,i){return i-n?tw(n,i,e):B0(isNaN(n)?i:n)}}function W0(e,n){var i=n-e;return i?ew(e,i):B0(isNaN(e)?n:e)}const Jp=function e(n){var i=nw(n);function s(a,u){var f=i((a=Gc(a)).r,(u=Gc(u)).r),h=i(a.g,u.g),p=i(a.b,u.b),m=W0(a.opacity,u.opacity);return function(v){return a.r=f(v),a.g=h(v),a.b=p(v),a.opacity=m(v),a+""}}return s.gamma=e,s}(1);function xr(e,n){return e=+e,n=+n,function(i){return e*(1-i)+n*i}}var Xc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wc=new RegExp(Xc.source,"g");function rw(e){return function(){return e}}function iw(e){return function(n){return e(n)+""}}function ow(e,n){var i=Xc.lastIndex=wc.lastIndex=0,s,a,u,f=-1,h=[],p=[];for(e=e+"",n=n+"";(s=Xc.exec(e))&&(a=wc.exec(n));)(u=a.index)>i&&(u=n.slice(i,u),h[f]?h[f]+=u:h[++f]=u),(s=s[0])===(a=a[0])?h[f]?h[f]+=a:h[++f]=a:(h[++f]=null,p.push({i:f,x:xr(s,a)})),i=wc.lastIndex;return i<n.length&&(u=n.slice(i),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?iw(p[0].x):rw(n):(n=p.length,function(m){for(var v=0,g;v<n;++v)h[(g=p[v]).i]=g.x(m);return h.join("")})}var eg=180/Math.PI,Yc={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function K0(e,n,i,s,a,u){var f,h,p;return(f=Math.sqrt(e*e+n*n))&&(e/=f,n/=f),(p=e*i+n*s)&&(i-=e*p,s-=n*p),(h=Math.sqrt(i*i+s*s))&&(i/=h,s/=h,p/=h),e*s<n*i&&(e=-e,n=-n,p=-p,f=-f),{translateX:a,translateY:u,rotate:Math.atan2(n,e)*eg,skewX:Math.atan(p)*eg,scaleX:f,scaleY:h}}var Vl;function sw(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?Yc:K0(n.a,n.b,n.c,n.d,n.e,n.f)}function lw(e){return e==null||(Vl||(Vl=document.createElementNS("http://www.w3.org/2000/svg","g")),Vl.setAttribute("transform",e),!(e=Vl.transform.baseVal.consolidate()))?Yc:(e=e.matrix,K0(e.a,e.b,e.c,e.d,e.e,e.f))}function G0(e,n,i,s){function a(m){return m.length?m.pop()+" ":""}function u(m,v,g,_,x,C){if(m!==g||v!==_){var b=x.push("translate(",null,n,null,i);C.push({i:b-4,x:xr(m,g)},{i:b-2,x:xr(v,_)})}else(g||_)&&x.push("translate("+g+n+_+i)}function f(m,v,g,_){m!==v?(m-v>180?v+=360:v-m>180&&(m+=360),_.push({i:g.push(a(g)+"rotate(",null,s)-2,x:xr(m,v)})):v&&g.push(a(g)+"rotate("+v+s)}function h(m,v,g,_){m!==v?_.push({i:g.push(a(g)+"skewX(",null,s)-2,x:xr(m,v)}):v&&g.push(a(g)+"skewX("+v+s)}function p(m,v,g,_,x,C){if(m!==g||v!==_){var b=x.push(a(x)+"scale(",null,",",null,")");C.push({i:b-4,x:xr(m,g)},{i:b-2,x:xr(v,_)})}else(g!==1||_!==1)&&x.push(a(x)+"scale("+g+","+_+")")}return function(m,v){var g=[],_=[];return m=e(m),v=e(v),u(m.translateX,m.translateY,v.translateX,v.translateY,g,_),f(m.rotate,v.rotate,g,_),h(m.skewX,v.skewX,g,_),p(m.scaleX,m.scaleY,v.scaleX,v.scaleY,g,_),m=v=null,function(x){for(var C=-1,b=_.length,S;++C<b;)g[(S=_[C]).i]=S.x(x);return g.join("")}}}var aw=G0(sw,"px, ","px)","deg)"),uw=G0(lw,", ",")",")"),cw=1e-12;function tg(e){return((e=Math.exp(e))+1/e)/2}function fw(e){return((e=Math.exp(e))-1/e)/2}function hw(e){return((e=Math.exp(2*e))-1)/(e+1)}const dw=function e(n,i,s){function a(u,f){var h=u[0],p=u[1],m=u[2],v=f[0],g=f[1],_=f[2],x=v-h,C=g-p,b=x*x+C*C,S,k;if(b<cw)k=Math.log(_/m)/n,S=function(F){return[h+F*x,p+F*C,m*Math.exp(n*F*k)]};else{var O=Math.sqrt(b),A=(_*_-m*m+s*b)/(2*m*i*O),P=(_*_-m*m-s*b)/(2*_*i*O),N=Math.log(Math.sqrt(A*A+1)-A),z=Math.log(Math.sqrt(P*P+1)-P);k=(z-N)/n,S=function(F){var D=F*k,Q=tg(N),K=m/(i*O)*(Q*hw(n*D+N)-fw(N));return[h+K*x,p+K*C,m*Q/tg(n*D+N)]}}return S.duration=k*1e3*n/Math.SQRT2,S}return a.rho=function(u){var f=Math.max(.001,+u),h=f*f,p=h*h;return e(f,h,p)},a}(Math.SQRT2,2,4);var eo=0,es=0,Qo=0,X0=1e3,oa,ts,sa=0,ai=0,ma=0,hs=typeof performance=="object"&&performance.now?performance:Date,Y0=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function xf(){return ai||(Y0(pw),ai=hs.now()+ma)}function pw(){ai=0}function la(){this._call=this._time=this._next=null}la.prototype=wf.prototype={constructor:la,restart:function(e,n,i){if(typeof e!="function")throw new TypeError("callback is not a function");i=(i==null?xf():+i)+(n==null?0:+n),!this._next&&ts!==this&&(ts?ts._next=this:oa=this,ts=this),this._call=e,this._time=i,Zc()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zc())}};function wf(e,n,i){var s=new la;return s.restart(e,n,i),s}function gw(){xf(),++eo;for(var e=oa,n;e;)(n=ai-e._time)>=0&&e._call.call(void 0,n),e=e._next;--eo}function ng(){ai=(sa=hs.now())+ma,eo=es=0;try{gw()}finally{eo=0,yw(),ai=0}}function mw(){var e=hs.now(),n=e-sa;n>X0&&(ma-=n,sa=e)}function yw(){for(var e,n=oa,i,s=1/0;n;)n._call?(s>n._time&&(s=n._time),e=n,n=n._next):(i=n._next,n._next=null,n=e?e._next=i:oa=i);ts=e,Zc(s)}function Zc(e){if(!eo){es&&(es=clearTimeout(es));var n=e-ai;n>24?(e<1/0&&(es=setTimeout(ng,e-hs.now()-ma)),Qo&&(Qo=clearInterval(Qo))):(Qo||(sa=hs.now(),Qo=setInterval(mw,X0)),eo=1,Y0(ng))}}function rg(e,n,i){var s=new la;return n=n==null?0:+n,s.restart(a=>{s.stop(),e(a+n)},n,i),s}var vw=ws("start","end","cancel","interrupt"),_w=[],Z0=0,ig=1,Jc=2,Xl=3,og=4,ef=5,Yl=6;function ya(e,n,i,s,a,u){var f=e.__transition;if(!f)e.__transition={};else if(i in f)return;xw(e,i,{name:n,index:s,group:a,on:vw,tween:_w,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Z0})}function kf(e,n){var i=pn(e,n);if(i.state>Z0)throw new Error("too late; already scheduled");return i}function Nn(e,n){var i=pn(e,n);if(i.state>Xl)throw new Error("too late; already running");return i}function pn(e,n){var i=e.__transition;if(!i||!(i=i[n]))throw new Error("transition not found");return i}function xw(e,n,i){var s=e.__transition,a;s[n]=i,i.timer=wf(u,0,i.time);function u(m){i.state=ig,i.timer.restart(f,i.delay,i.time),i.delay<=m&&f(m-i.delay)}function f(m){var v,g,_,x;if(i.state!==ig)return p();for(v in s)if(x=s[v],x.name===i.name){if(x.state===Xl)return rg(f);x.state===og?(x.state=Yl,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete s[v]):+v<n&&(x.state=Yl,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete s[v])}if(rg(function(){i.state===Xl&&(i.state=og,i.timer.restart(h,i.delay,i.time),h(m))}),i.state=Jc,i.on.call("start",e,e.__data__,i.index,i.group),i.state===Jc){for(i.state=Xl,a=new Array(_=i.tween.length),v=0,g=-1;v<_;++v)(x=i.tween[v].value.call(e,e.__data__,i.index,i.group))&&(a[++g]=x);a.length=g+1}}function h(m){for(var v=m<i.duration?i.ease.call(null,m/i.duration):(i.timer.restart(p),i.state=ef,1),g=-1,_=a.length;++g<_;)a[g].call(e,v);i.state===ef&&(i.on.call("end",e,e.__data__,i.index,i.group),p())}function p(){i.state=Yl,i.timer.stop(),delete s[n];for(var m in s)return;delete e.__transition}}function Zl(e,n){var i=e.__transition,s,a,u=!0,f;if(i){n=n==null?null:n+"";for(f in i){if((s=i[f]).name!==n){u=!1;continue}a=s.state>Jc&&s.state<ef,s.state=Yl,s.timer.stop(),s.on.call(a?"interrupt":"cancel",e,e.__data__,s.index,s.group),delete i[f]}u&&delete e.__transition}}function ww(e){return this.each(function(){Zl(this,e)})}function kw(e,n){var i,s;return function(){var a=Nn(this,e),u=a.tween;if(u!==i){s=i=u;for(var f=0,h=s.length;f<h;++f)if(s[f].name===n){s=s.slice(),s.splice(f,1);break}}a.tween=s}}function Sw(e,n,i){var s,a;if(typeof i!="function")throw new Error;return function(){var u=Nn(this,e),f=u.tween;if(f!==s){a=(s=f).slice();for(var h={name:n,value:i},p=0,m=a.length;p<m;++p)if(a[p].name===n){a[p]=h;break}p===m&&a.push(h)}u.tween=a}}function Cw(e,n){var i=this._id;if(e+="",arguments.length<2){for(var s=pn(this.node(),i).tween,a=0,u=s.length,f;a<u;++a)if((f=s[a]).name===e)return f.value;return null}return this.each((n==null?kw:Sw)(i,e,n))}function Sf(e,n,i){var s=e._id;return e.each(function(){var a=Nn(this,s);(a.value||(a.value={}))[n]=i.apply(this,arguments)}),function(a){return pn(a,s).value[n]}}function J0(e,n){var i;return(typeof n=="number"?xr:n instanceof fs?Jp:(i=fs(n))?(n=i,Jp):ow)(e,n)}function bw(e){return function(){this.removeAttribute(e)}}function Ew(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Pw(e,n,i){var s,a=i+"",u;return function(){var f=this.getAttribute(e);return f===a?null:f===s?u:u=n(s=f,i)}}function Nw(e,n,i){var s,a=i+"",u;return function(){var f=this.getAttributeNS(e.space,e.local);return f===a?null:f===s?u:u=n(s=f,i)}}function Tw(e,n,i){var s,a,u;return function(){var f,h=i(this),p;return h==null?void this.removeAttribute(e):(f=this.getAttribute(e),p=h+"",f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h)))}}function Mw(e,n,i){var s,a,u;return function(){var f,h=i(this),p;return h==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),p=h+"",f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h)))}}function Ow(e,n){var i=ga(e),s=i==="transform"?uw:J0;return this.attrTween(e,typeof n=="function"?(i.local?Mw:Tw)(i,s,Sf(this,"attr."+e,n)):n==null?(i.local?Ew:bw)(i):(i.local?Nw:Pw)(i,s,n))}function Rw(e,n){return function(i){this.setAttribute(e,n.call(this,i))}}function Aw(e,n){return function(i){this.setAttributeNS(e.space,e.local,n.call(this,i))}}function jw(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&Aw(e,u)),i}return a._value=n,a}function zw(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&Rw(e,u)),i}return a._value=n,a}function Dw(e,n){var i="attr."+e;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;var s=ga(e);return this.tween(i,(s.local?jw:zw)(s,n))}function Iw(e,n){return function(){kf(this,e).delay=+n.apply(this,arguments)}}function Lw(e,n){return n=+n,function(){kf(this,e).delay=n}}function Fw(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?Iw:Lw)(n,e)):pn(this.node(),n).delay}function $w(e,n){return function(){Nn(this,e).duration=+n.apply(this,arguments)}}function Uw(e,n){return n=+n,function(){Nn(this,e).duration=n}}function Hw(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?$w:Uw)(n,e)):pn(this.node(),n).duration}function Vw(e,n){if(typeof n!="function")throw new Error;return function(){Nn(this,e).ease=n}}function qw(e){var n=this._id;return arguments.length?this.each(Vw(n,e)):pn(this.node(),n).ease}function Qw(e,n){return function(){var i=n.apply(this,arguments);if(typeof i!="function")throw new Error;Nn(this,e).ease=i}}function Bw(e){if(typeof e!="function")throw new Error;return this.each(Qw(this._id,e))}function Ww(e){typeof e!="function"&&(e=R0(e));for(var n=this._groups,i=n.length,s=new Array(i),a=0;a<i;++a)for(var u=n[a],f=u.length,h=s[a]=[],p,m=0;m<f;++m)(p=u[m])&&e.call(p,p.__data__,m,u)&&h.push(p);return new Gn(s,this._parents,this._name,this._id)}function Kw(e){if(e._id!==this._id)throw new Error;for(var n=this._groups,i=e._groups,s=n.length,a=i.length,u=Math.min(s,a),f=new Array(s),h=0;h<u;++h)for(var p=n[h],m=i[h],v=p.length,g=f[h]=new Array(v),_,x=0;x<v;++x)(_=p[x]||m[x])&&(g[x]=_);for(;h<s;++h)f[h]=n[h];return new Gn(f,this._parents,this._name,this._id)}function Gw(e){return(e+"").trim().split(/^|\s+/).every(function(n){var i=n.indexOf(".");return i>=0&&(n=n.slice(0,i)),!n||n==="start"})}function Xw(e,n,i){var s,a,u=Gw(n)?kf:Nn;return function(){var f=u(this,e),h=f.on;h!==s&&(a=(s=h).copy()).on(n,i),f.on=a}}function Yw(e,n){var i=this._id;return arguments.length<2?pn(this.node(),i).on.on(e):this.each(Xw(i,e,n))}function Zw(e){return function(){var n=this.parentNode;for(var i in this.__transition)if(+i!==e)return;n&&n.removeChild(this)}}function Jw(){return this.on("end.remove",Zw(this._id))}function e2(e){var n=this._name,i=this._id;typeof e!="function"&&(e=yf(e));for(var s=this._groups,a=s.length,u=new Array(a),f=0;f<a;++f)for(var h=s[f],p=h.length,m=u[f]=new Array(p),v,g,_=0;_<p;++_)(v=h[_])&&(g=e.call(v,v.__data__,_,h))&&("__data__"in v&&(g.__data__=v.__data__),m[_]=g,ya(m[_],n,i,_,m,pn(v,i)));return new Gn(u,this._parents,n,i)}function t2(e){var n=this._name,i=this._id;typeof e!="function"&&(e=O0(e));for(var s=this._groups,a=s.length,u=[],f=[],h=0;h<a;++h)for(var p=s[h],m=p.length,v,g=0;g<m;++g)if(v=p[g]){for(var _=e.call(v,v.__data__,g,p),x,C=pn(v,i),b=0,S=_.length;b<S;++b)(x=_[b])&&ya(x,n,i,b,_,C);u.push(_),f.push(v)}return new Gn(u,f,n,i)}var n2=xs.prototype.constructor;function r2(){return new n2(this._groups,this._parents)}function i2(e,n){var i,s,a;return function(){var u=Ji(this,e),f=(this.style.removeProperty(e),Ji(this,e));return u===f?null:u===i&&f===s?a:a=n(i=u,s=f)}}function em(e){return function(){this.style.removeProperty(e)}}function o2(e,n,i){var s,a=i+"",u;return function(){var f=Ji(this,e);return f===a?null:f===s?u:u=n(s=f,i)}}function s2(e,n,i){var s,a,u;return function(){var f=Ji(this,e),h=i(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(e),Ji(this,e))),f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h))}}function l2(e,n){var i,s,a,u="style."+n,f="end."+u,h;return function(){var p=Nn(this,e),m=p.on,v=p.value[u]==null?h||(h=em(n)):void 0;(m!==i||a!==v)&&(s=(i=m).copy()).on(f,a=v),p.on=s}}function a2(e,n,i){var s=(e+="")=="transform"?aw:J0;return n==null?this.styleTween(e,i2(e,s)).on("end.style."+e,em(e)):typeof n=="function"?this.styleTween(e,s2(e,s,Sf(this,"style."+e,n))).each(l2(this._id,e)):this.styleTween(e,o2(e,s,n),i).on("end.style."+e,null)}function u2(e,n,i){return function(s){this.style.setProperty(e,n.call(this,s),i)}}function c2(e,n,i){var s,a;function u(){var f=n.apply(this,arguments);return f!==a&&(s=(a=f)&&u2(e,f,i)),s}return u._value=n,u}function f2(e,n,i){var s="style."+(e+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(n==null)return this.tween(s,null);if(typeof n!="function")throw new Error;return this.tween(s,c2(e,n,i??""))}function h2(e){return function(){this.textContent=e}}function d2(e){return function(){var n=e(this);this.textContent=n??""}}function p2(e){return this.tween("text",typeof e=="function"?d2(Sf(this,"text",e)):h2(e==null?"":e+""))}function g2(e){return function(n){this.textContent=e.call(this,n)}}function m2(e){var n,i;function s(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&g2(a)),n}return s._value=e,s}function y2(e){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,m2(e))}function v2(){for(var e=this._name,n=this._id,i=tm(),s=this._groups,a=s.length,u=0;u<a;++u)for(var f=s[u],h=f.length,p,m=0;m<h;++m)if(p=f[m]){var v=pn(p,n);ya(p,e,i,m,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Gn(s,this._parents,e,i)}function _2(){var e,n,i=this,s=i._id,a=i.size();return new Promise(function(u,f){var h={value:f},p={value:function(){--a===0&&u()}};i.each(function(){var m=Nn(this,s),v=m.on;v!==e&&(n=(e=v).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(p)),m.on=n}),a===0&&u()})}var x2=0;function Gn(e,n,i,s){this._groups=e,this._parents=n,this._name=i,this._id=s}function tm(){return++x2}var In=xs.prototype;Gn.prototype={constructor:Gn,select:e2,selectAll:t2,selectChild:In.selectChild,selectChildren:In.selectChildren,filter:Ww,merge:Kw,selection:r2,transition:v2,call:In.call,nodes:In.nodes,node:In.node,size:In.size,empty:In.empty,each:In.each,on:Yw,attr:Ow,attrTween:Dw,style:a2,styleTween:f2,text:p2,textTween:y2,remove:Jw,tween:Cw,delay:Fw,duration:Hw,ease:qw,easeVarying:Bw,end:_2,[Symbol.iterator]:In[Symbol.iterator]};function w2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var k2={time:null,delay:0,duration:250,ease:w2};function S2(e,n){for(var i;!(i=e.__transition)||!(i=i[n]);)if(!(e=e.parentNode))throw new Error(`transition ${n} not found`);return i}function C2(e){var n,i;e instanceof Gn?(n=e._id,e=e._name):(n=tm(),(i=k2).time=xf(),e=e==null?null:e+"");for(var s=this._groups,a=s.length,u=0;u<a;++u)for(var f=s[u],h=f.length,p,m=0;m<h;++m)(p=f[m])&&ya(p,e,n,m,f,i||S2(p,n));return new Gn(s,this._parents,e,n)}xs.prototype.interrupt=ww;xs.prototype.transition=C2;const ql=e=>()=>e;function b2(e,{sourceEvent:n,target:i,transform:s,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:s,enumerable:!0,configurable:!0},_:{value:a}})}function Qn(e,n,i){this.k=e,this.x=n,this.y=i}Qn.prototype={constructor:Qn,scale:function(e){return e===1?this:new Qn(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new Qn(this.k,this.x+this.k*e,this.y+this.k*n)},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 Cf=new Qn(1,0,0);xn.prototype=Qn.prototype;function xn(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Cf;return e.__zoom}function kc(e){e.stopImmediatePropagation()}function Bo(e){e.preventDefault(),e.stopImmediatePropagation()}function E2(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function P2(){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 sg(){return this.__zoom||Cf}function N2(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function T2(){return navigator.maxTouchPoints||"ontouchstart"in this}function M2(e,n,i){var s=e.invertX(n[0][0])-i[0][0],a=e.invertX(n[1][0])-i[1][0],u=e.invertY(n[0][1])-i[0][1],f=e.invertY(n[1][1])-i[1][1];return e.translate(a>s?(s+a)/2:Math.min(0,s)||Math.max(0,a),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function O2(){var e=E2,n=P2,i=M2,s=N2,a=T2,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=dw,m=ws("start","zoom","end"),v,g,_,x=500,C=150,b=0,S=10;function k($){$.property("__zoom",sg).on("wheel.zoom",D,{passive:!1}).on("mousedown.zoom",Q).on("dblclick.zoom",K).filter(a).on("touchstart.zoom",Z).on("touchmove.zoom",ie).on("touchend.zoom touchcancel.zoom",ce).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function($,te,W,oe){var B=$.selection?$.selection():$;B.property("__zoom",sg),$!==B?N($,te,W,oe):B.interrupt().each(function(){z(this,arguments).event(oe).start().zoom(null,typeof te=="function"?te.apply(this,arguments):te).end()})},k.scaleBy=function($,te,W,oe){k.scaleTo($,function(){var B=this.__zoom.k,J=typeof te=="function"?te.apply(this,arguments):te;return B*J},W,oe)},k.scaleTo=function($,te,W,oe){k.transform($,function(){var B=n.apply(this,arguments),J=this.__zoom,G=W==null?P(B):typeof W=="function"?W.apply(this,arguments):W,R=J.invert(G),q=typeof te=="function"?te.apply(this,arguments):te;return i(A(O(J,q),G,R),B,f)},W,oe)},k.translateBy=function($,te,W,oe){k.transform($,function(){return i(this.__zoom.translate(typeof te=="function"?te.apply(this,arguments):te,typeof W=="function"?W.apply(this,arguments):W),n.apply(this,arguments),f)},null,oe)},k.translateTo=function($,te,W,oe,B){k.transform($,function(){var J=n.apply(this,arguments),G=this.__zoom,R=oe==null?P(J):typeof oe=="function"?oe.apply(this,arguments):oe;return i(Cf.translate(R[0],R[1]).scale(G.k).translate(typeof te=="function"?-te.apply(this,arguments):-te,typeof W=="function"?-W.apply(this,arguments):-W),J,f)},oe,B)};function O($,te){return te=Math.max(u[0],Math.min(u[1],te)),te===$.k?$:new Qn(te,$.x,$.y)}function A($,te,W){var oe=te[0]-W[0]*$.k,B=te[1]-W[1]*$.k;return oe===$.x&&B===$.y?$:new Qn($.k,oe,B)}function P($){return[(+$[0][0]+ +$[1][0])/2,(+$[0][1]+ +$[1][1])/2]}function N($,te,W,oe){$.on("start.zoom",function(){z(this,arguments).event(oe).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(oe).end()}).tween("zoom",function(){var B=this,J=arguments,G=z(B,J).event(oe),R=n.apply(B,J),q=W==null?P(R):typeof W=="function"?W.apply(B,J):W,le=Math.max(R[1][0]-R[0][0],R[1][1]-R[0][1]),ge=B.__zoom,ke=typeof te=="function"?te.apply(B,J):te,Ce=p(ge.invert(q).concat(le/ge.k),ke.invert(q).concat(le/ke.k));return function(Ee){if(Ee===1)Ee=ke;else{var be=Ce(Ee),Ae=le/be[2];Ee=new Qn(Ae,q[0]-be[0]*Ae,q[1]-be[1]*Ae)}G.zoom(null,Ee)}})}function z($,te,W){return!W&&$.__zooming||new F($,te)}function F($,te){this.that=$,this.args=te,this.active=0,this.sourceEvent=null,this.extent=n.apply($,te),this.taps=0}F.prototype={event:function($){return $&&(this.sourceEvent=$),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function($,te){return this.mouse&&$!=="mouse"&&(this.mouse[1]=te.invert(this.mouse[0])),this.touch0&&$!=="touch"&&(this.touch0[1]=te.invert(this.touch0[0])),this.touch1&&$!=="touch"&&(this.touch1[1]=te.invert(this.touch1[0])),this.that.__zoom=te,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function($){var te=Yt(this.that).datum();m.call($,this.that,new b2($,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:m}),te)}};function D($,...te){if(!e.apply(this,arguments))return;var W=z(this,te).event($),oe=this.__zoom,B=Math.max(u[0],Math.min(u[1],oe.k*Math.pow(2,s.apply(this,arguments)))),J=wn($);if(W.wheel)(W.mouse[0][0]!==J[0]||W.mouse[0][1]!==J[1])&&(W.mouse[1]=oe.invert(W.mouse[0]=J)),clearTimeout(W.wheel);else{if(oe.k===B)return;W.mouse=[J,oe.invert(J)],Zl(this),W.start()}Bo($),W.wheel=setTimeout(G,C),W.zoom("mouse",i(A(O(oe,B),W.mouse[0],W.mouse[1]),W.extent,f));function G(){W.wheel=null,W.end()}}function Q($,...te){if(_||!e.apply(this,arguments))return;var W=$.currentTarget,oe=z(this,te,!0).event($),B=Yt($.view).on("mousemove.zoom",q,!0).on("mouseup.zoom",le,!0),J=wn($,W),G=$.clientX,R=$.clientY;H0($.view),kc($),oe.mouse=[J,this.__zoom.invert(J)],Zl(this),oe.start();function q(ge){if(Bo(ge),!oe.moved){var ke=ge.clientX-G,Ce=ge.clientY-R;oe.moved=ke*ke+Ce*Ce>b}oe.event(ge).zoom("mouse",i(A(oe.that.__zoom,oe.mouse[0]=wn(ge,W),oe.mouse[1]),oe.extent,f))}function le(ge){B.on("mousemove.zoom mouseup.zoom",null),V0(ge.view,oe.moved),Bo(ge),oe.event(ge).end()}}function K($,...te){if(e.apply(this,arguments)){var W=this.__zoom,oe=wn($.changedTouches?$.changedTouches[0]:$,this),B=W.invert(oe),J=W.k*($.shiftKey?.5:2),G=i(A(O(W,J),oe,B),n.apply(this,te),f);Bo($),h>0?Yt(this).transition().duration(h).call(N,G,oe,$):Yt(this).call(k.transform,G,oe,$)}}function Z($,...te){if(e.apply(this,arguments)){var W=$.touches,oe=W.length,B=z(this,te,$.changedTouches.length===oe).event($),J,G,R,q;for(kc($),G=0;G<oe;++G)R=W[G],q=wn(R,this),q=[q,this.__zoom.invert(q),R.identifier],B.touch0?!B.touch1&&B.touch0[2]!==q[2]&&(B.touch1=q,B.taps=0):(B.touch0=q,J=!0,B.taps=1+!!v);v&&(v=clearTimeout(v)),J&&(B.taps<2&&(g=q[0],v=setTimeout(function(){v=null},x)),Zl(this),B.start())}}function ie($,...te){if(this.__zooming){var W=z(this,te).event($),oe=$.changedTouches,B=oe.length,J,G,R,q;for(Bo($),J=0;J<B;++J)G=oe[J],R=wn(G,this),W.touch0&&W.touch0[2]===G.identifier?W.touch0[0]=R:W.touch1&&W.touch1[2]===G.identifier&&(W.touch1[0]=R);if(G=W.that.__zoom,W.touch1){var le=W.touch0[0],ge=W.touch0[1],ke=W.touch1[0],Ce=W.touch1[1],Ee=(Ee=ke[0]-le[0])*Ee+(Ee=ke[1]-le[1])*Ee,be=(be=Ce[0]-ge[0])*be+(be=Ce[1]-ge[1])*be;G=O(G,Math.sqrt(Ee/be)),R=[(le[0]+ke[0])/2,(le[1]+ke[1])/2],q=[(ge[0]+Ce[0])/2,(ge[1]+Ce[1])/2]}else if(W.touch0)R=W.touch0[0],q=W.touch0[1];else return;W.zoom("touch",i(A(G,R,q),W.extent,f))}}function ce($,...te){if(this.__zooming){var W=z(this,te).event($),oe=$.changedTouches,B=oe.length,J,G;for(kc($),_&&clearTimeout(_),_=setTimeout(function(){_=null},x),J=0;J<B;++J)G=oe[J],W.touch0&&W.touch0[2]===G.identifier?delete W.touch0:W.touch1&&W.touch1[2]===G.identifier&&delete W.touch1;if(W.touch1&&!W.touch0&&(W.touch0=W.touch1,delete W.touch1),W.touch0)W.touch0[1]=this.__zoom.invert(W.touch0[0]);else if(W.end(),W.taps===2&&(G=wn(G,this),Math.hypot(g[0]-G[0],g[1]-G[1])<S)){var R=Yt(this).on("dblclick.zoom");R&&R.apply(this,arguments)}}}return k.wheelDelta=function($){return arguments.length?(s=typeof $=="function"?$:ql(+$),k):s},k.filter=function($){return arguments.length?(e=typeof $=="function"?$:ql(!!$),k):e},k.touchable=function($){return arguments.length?(a=typeof $=="function"?$:ql(!!$),k):a},k.extent=function($){return arguments.length?(n=typeof $=="function"?$:ql([[+$[0][0],+$[0][1]],[+$[1][0],+$[1][1]]]),k):n},k.scaleExtent=function($){return arguments.length?(u[0]=+$[0],u[1]=+$[1],k):[u[0],u[1]]},k.translateExtent=function($){return arguments.length?(f[0][0]=+$[0][0],f[1][0]=+$[1][0],f[0][1]=+$[0][1],f[1][1]=+$[1][1],k):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},k.constrain=function($){return arguments.length?(i=$,k):i},k.duration=function($){return arguments.length?(h=+$,k):h},k.interpolate=function($){return arguments.length?(p=$,k):p},k.on=function(){var $=m.on.apply(m,arguments);return $===m?k:$},k.clickDistance=function($){return arguments.length?(b=($=+$)*$,k):Math.sqrt(b)},k.tapDistance=function($){return arguments.length?(S=+$,k):S},k}class lg extends Map{constructor(n,i=j2){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),n!=null)for(const[s,a]of n)this.set(s,a)}get(n){return super.get(ag(this,n))}has(n){return super.has(ag(this,n))}set(n,i){return super.set(R2(this,n),i)}delete(n){return super.delete(A2(this,n))}}function ag({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):i}function R2({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):(e.set(s,i),i)}function A2({_intern:e,_key:n},i){const s=n(i);return e.has(s)&&(i=e.get(s),e.delete(s)),i}function j2(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ug(e,n){let i;if(n===void 0)for(const s of e)s!=null&&(i<s||i===void 0&&s>=s)&&(i=s);else{let s=-1;for(let a of e)(a=n(a,++s,e))!=null&&(i<a||i===void 0&&a>=a)&&(i=a)}return i}function cg(e,n){let i;if(n===void 0)for(const s of e)s!=null&&(i>s||i===void 0&&s>=s)&&(i=s);else{let s=-1;for(let a of e)(a=n(a,++s,e))!=null&&(i>a||i===void 0&&a>=a)&&(i=a)}return i}function z2(e,n){let i=0;for(let s of e)(s=+s)&&(i+=s);return i}var D2=typeof global=="object"&&global&&global.Object===Object&&global,I2=typeof self=="object"&&self&&self.Object===Object&&self,nm=D2||I2||Function("return this")(),aa=nm.Symbol,rm=Object.prototype,L2=rm.hasOwnProperty,F2=rm.toString,Wo=aa?aa.toStringTag:void 0;function $2(e){var n=L2.call(e,Wo),i=e[Wo];try{e[Wo]=void 0;var s=!0}catch{}var a=F2.call(e);return s&&(n?e[Wo]=i:delete e[Wo]),a}var U2=Object.prototype,H2=U2.toString;function V2(e){return H2.call(e)}var q2="[object Null]",Q2="[object Undefined]",fg=aa?aa.toStringTag:void 0;function B2(e){return e==null?e===void 0?Q2:q2:fg&&fg in Object(e)?$2(e):V2(e)}function W2(e){return e!=null&&typeof e=="object"}var K2="[object Symbol]";function G2(e){return typeof e=="symbol"||W2(e)&&B2(e)==K2}var X2=/\s/;function Y2(e){for(var n=e.length;n--&&X2.test(e.charAt(n)););return n}var Z2=/^\s+/;function J2(e){return e&&e.slice(0,Y2(e)+1).replace(Z2,"")}function ua(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var hg=NaN,ek=/^[-+]0x[0-9a-f]+$/i,tk=/^0b[01]+$/i,nk=/^0o[0-7]+$/i,rk=parseInt;function dg(e){if(typeof e=="number")return e;if(G2(e))return hg;if(ua(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=ua(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=J2(e);var i=tk.test(e);return i||nk.test(e)?rk(e.slice(2),i?2:8):ek.test(e)?hg:+e}var Sc=function(){return nm.Date.now()},ik="Expected a function",ok=Math.max,sk=Math.min;function im(e,n,i){var s,a,u,f,h,p,m=0,v=!1,g=!1,_=!0;if(typeof e!="function")throw new TypeError(ik);n=dg(n)||0,ua(i)&&(v=!!i.leading,g="maxWait"in i,u=g?ok(dg(i.maxWait)||0,n):u,_="trailing"in i?!!i.trailing:_);function x(z){var F=s,D=a;return s=a=void 0,m=z,f=e.apply(D,F),f}function C(z){return m=z,h=setTimeout(k,n),v?x(z):f}function b(z){var F=z-p,D=z-m,Q=n-F;return g?sk(Q,u-D):Q}function S(z){var F=z-p,D=z-m;return p===void 0||F>=n||F<0||g&&D>=u}function k(){var z=Sc();if(S(z))return O(z);h=setTimeout(k,b(z))}function O(z){return h=void 0,_&&s?x(z):(s=a=void 0,f)}function A(){h!==void 0&&clearTimeout(h),m=0,s=p=a=h=void 0}function P(){return h===void 0?f:O(Sc())}function N(){var z=Sc(),F=S(z);if(s=arguments,a=this,p=z,F){if(h===void 0)return C(p);if(g)return clearTimeout(h),h=setTimeout(k,n),x(p)}return h===void 0&&(h=setTimeout(k,n)),f}return N.cancel=A,N.flush=P,N}var lk="Expected a function";function ak(e,n,i){var s=!0,a=!0;if(typeof e!="function")throw new TypeError(lk);return ua(i)&&(s="leading"in i?!!i.leading:s,a="trailing"in i?!!i.trailing:a),im(e,n,{leading:s,maxWait:n,trailing:a})}var oi=Object.freeze({Linear:Object.freeze({None:function(e){return e},In:function(e){return e},Out:function(e){return e},InOut:function(e){return e}}),Quadratic:Object.freeze({In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}}),Cubic:Object.freeze({In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}),Quartic:Object.freeze({In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}}),Quintic:Object.freeze({In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}}),Sinusoidal:Object.freeze({In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}}),Exponential:Object.freeze({In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}}),Circular:Object.freeze({In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}}),Elastic:Object.freeze({In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}}),Back:Object.freeze({In:function(e){var n=1.70158;return e===1?1:e*e*((n+1)*e-n)},Out:function(e){var n=1.70158;return e===0?0:--e*e*((n+1)*e+n)+1},InOut:function(e){var n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}}),Bounce:Object.freeze({In:function(e){return 1-oi.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?oi.Bounce.In(e*2)*.5:oi.Bounce.Out(e*2-1)*.5+.5}}),generatePow:function(e){return e===void 0&&(e=4),e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(n){return Math.pow(n,e)},Out:function(n){return 1-Math.pow(1-n,e)},InOut:function(n){return n<.5?Math.pow(n*2,e)/2:(1-Math.pow(2-n*2,e))/2+.5}}}}),ns=function(){return performance.now()},om=function(){function e(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,n)}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(i){return n._tweens[i]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];for(var a=0,u=i;a<u.length;a++){var f=u[a];(n=f._group)===null||n===void 0||n.remove(f),f._group=this,this._tweens[f.getId()]=f,this._tweensAddedDuringUpdate[f.getId()]=f}},e.prototype.remove=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var s=0,a=n;s<a.length;s++){var u=a[s];u._group=void 0,delete this._tweens[u.getId()],delete this._tweensAddedDuringUpdate[u.getId()]}},e.prototype.allStopped=function(){return this.getAll().every(function(n){return!n.isPlaying()})},e.prototype.update=function(n,i){n===void 0&&(n=ns()),i===void 0&&(i=!0);var s=Object.keys(this._tweens);if(s.length!==0)for(;s.length>0;){this._tweensAddedDuringUpdate={};for(var a=0;a<s.length;a++){var u=this._tweens[s[a]],f=!i;u&&u.update(n,f)===!1&&!i&&this.remove(u)}s=Object.keys(this._tweensAddedDuringUpdate)}},e}(),tf={Linear:function(e,n){var i=e.length-1,s=i*n,a=Math.floor(s),u=tf.Utils.Linear;return n<0?u(e[0],e[1],s):n>1?u(e[i],e[i-1],i-s):u(e[a],e[a+1>i?i:a+1],s-a)},Utils:{Linear:function(e,n,i){return(n-e)*i+e}}},sm=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),nf=new om,pg=function(){function e(n,i){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=oi.Linear.None,this._interpolationFunction=tf.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=sm.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=n,typeof i=="object"?(this._group=i,i.add(this)):i===!0&&(this._group=nf,nf.add(this))}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(n,i){if(i===void 0&&(i=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=n,this._propertiesAreSetUp=!1,this._duration=i<0?0:i,this},e.prototype.duration=function(n){return n===void 0&&(n=1e3),this._duration=n<0?0:n,this},e.prototype.dynamic=function(n){return n===void 0&&(n=!1),this._isDynamic=n,this},e.prototype.start=function(n,i){if(n===void 0&&(n=ns()),i===void 0&&(i=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var s in this._valuesStartRepeat)this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n,this._startTime+=this._delayTime,!this._propertiesAreSetUp||i){if(this._propertiesAreSetUp=!0,!this._isDynamic){var a={};for(var u in this._valuesEnd)a[u]=this._valuesEnd[u];this._valuesEnd=a}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,i)}return this},e.prototype.startFromCurrentValues=function(n){return this.start(n,!0)},e.prototype._setupProperties=function(n,i,s,a,u){for(var f in s){var h=n[f],p=Array.isArray(h),m=p?"array":typeof h,v=!p&&Array.isArray(s[f]);if(!(m==="undefined"||m==="function")){if(v){var g=s[f];if(g.length===0)continue;for(var _=[h],x=0,C=g.length;x<C;x+=1){var b=this._handleRelativeValue(h,g[x]);if(isNaN(b)){v=!1,console.warn("Found invalid interpolation list. Skipping.");break}_.push(b)}v&&(s[f]=_)}if((m==="object"||p)&&h&&!v){i[f]=p?[]:{};var S=h;for(var k in S)i[f][k]=S[k];a[f]=p?[]:{};var g=s[f];if(!this._isDynamic){var O={};for(var k in g)O[k]=g[k];s[f]=g=O}this._setupProperties(S,i[f],g,a[f],u)}else(typeof i[f]>"u"||u)&&(i[f]=h),p||(i[f]*=1),v?a[f]=s[f].slice().reverse():a[f]=i[f]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},e.prototype.pause=function(n){return n===void 0&&(n=ns()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this)},e.prototype.resume=function(n){return n===void 0&&(n=ns()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this)},e.prototype.stopChainedTweens=function(){for(var n=0,i=this._chainedTweens.length;n<i;n++)this._chainedTweens[n].stop();return this},e.prototype.group=function(n){return n?(n.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},e.prototype.remove=function(){var n;return(n=this._group)===null||n===void 0||n.remove(this),this},e.prototype.delay=function(n){return n===void 0&&(n=0),this._delayTime=n,this},e.prototype.repeat=function(n){return n===void 0&&(n=0),this._initialRepeat=n,this._repeat=n,this},e.prototype.repeatDelay=function(n){return this._repeatDelayTime=n,this},e.prototype.yoyo=function(n){return n===void 0&&(n=!1),this._yoyo=n,this},e.prototype.easing=function(n){return n===void 0&&(n=oi.Linear.None),this._easingFunction=n,this},e.prototype.interpolation=function(n){return n===void 0&&(n=tf.Linear),this._interpolationFunction=n,this},e.prototype.chain=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return this._chainedTweens=n,this},e.prototype.onStart=function(n){return this._onStartCallback=n,this},e.prototype.onEveryStart=function(n){return this._onEveryStartCallback=n,this},e.prototype.onUpdate=function(n){return this._onUpdateCallback=n,this},e.prototype.onRepeat=function(n){return this._onRepeatCallback=n,this},e.prototype.onComplete=function(n){return this._onCompleteCallback=n,this},e.prototype.onStop=function(n){return this._onStopCallback=n,this},e.prototype.update=function(n,i){var s=this,a;if(n===void 0&&(n=ns()),i===void 0&&(i=e.autoStartOnUpdate),this._isPaused)return!0;var u;if(!this._goToEnd&&!this._isPlaying)if(i)this.start(n,!0);else return!1;if(this._goToEnd=!1,n<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var f=n-this._startTime,h=this._duration+((a=this._repeatDelayTime)!==null&&a!==void 0?a:this._delayTime),p=this._duration+this._repeat*h,m=function(){if(s._duration===0||f>p)return 1;var b=Math.trunc(f/h),S=f-b*h,k=Math.min(S/s._duration,1);return k===0&&f===s._duration?1:k},v=m(),g=this._easingFunction(v);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,g),this._onUpdateCallback&&this._onUpdateCallback(this._object,v),this._duration===0||f>=this._duration)if(this._repeat>0){var _=Math.min(Math.trunc((f-this._duration)/h)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=_);for(u in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[u]=="string"&&(this._valuesStartRepeat[u]=this._valuesStartRepeat[u]+parseFloat(this._valuesEnd[u])),this._yoyo&&this._swapEndStartRepeatValues(u),this._valuesStart[u]=this._valuesStartRepeat[u];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=h*_,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var x=0,C=this._chainedTweens.length;x<C;x++)this._chainedTweens[x].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,i,s,a){for(var u in s)if(i[u]!==void 0){var f=i[u]||0,h=s[u],p=Array.isArray(n[u]),m=Array.isArray(h),v=!p&&m;v?n[u]=this._interpolationFunction(h,a):typeof h=="object"&&h?this._updateProperties(n[u],f,h,a):(h=this._handleRelativeValue(f,h),typeof h=="number"&&(n[u]=f+(h-f)*a))}},e.prototype._handleRelativeValue=function(n,i){return typeof i!="string"?i:i.charAt(0)==="+"||i.charAt(0)==="-"?n+parseFloat(i):parseFloat(i)},e.prototype._swapEndStartRepeatValues=function(n){var i=this._valuesStartRepeat[n],s=this._valuesEnd[n];typeof s=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(s):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=i},e.autoStartOnUpdate=!1,e}();sm.nextId;var Pn=nf;Pn.getAll.bind(Pn);Pn.removeAll.bind(Pn);Pn.add.bind(Pn);Pn.remove.bind(Pn);Pn.update.bind(Pn);function gg(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function uk(e){if(Array.isArray(e))return e}function ck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function fk(e,n,i){return Object.defineProperty(e,"prototype",{writable:!1}),e}function hk(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,m=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function dk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
110
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pk(e,n){return uk(e)||hk(e,n)||gk(e,n)||dk()}function gk(e,n){if(e){if(typeof e=="string")return gg(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?gg(e,n):void 0}}var mk=fk(function e(n,i){var s=i.default,a=s===void 0?null:s,u=i.triggerUpdate,f=u===void 0?!0:u,h=i.onChange,p=h===void 0?function(m,v){}:h;ck(this,e),this.name=n,this.defaultVal=a,this.triggerUpdate=f,this.onChange=p});function bf(e){var n=e.stateInit,i=n===void 0?function(){return{}}:n,s=e.props,a=s===void 0?{}:s,u=e.methods,f=u===void 0?{}:u,h=e.aliases,p=h===void 0?{}:h,m=e.init,v=m===void 0?function(){}:m,g=e.update,_=g===void 0?function(){}:g,x=Object.keys(a).map(function(C){return new mk(C,a[C])});return function C(){for(var b=arguments.length,S=new Array(b),k=0;k<b;k++)S[k]=arguments[k];var O=!!(this instanceof C&&this.constructor),A=O?S.shift():void 0,P=S[0],N=P===void 0?{}:P,z=Object.assign({},i instanceof Function?i(N):i,{initialised:!1}),F={};function D(Z){return Q(Z,N),K(),D}var Q=function(ie,ce){v.call(D,ie,z,ce),z.initialised=!0},K=im(function(){z.initialised&&(_.call(D,z,F),F={})},1);return x.forEach(function(Z){D[Z.name]=ie(Z);function ie(ce){var $=ce.name,te=ce.triggerUpdate,W=te===void 0?!1:te,oe=ce.onChange,B=oe===void 0?function(R,q){}:oe,J=ce.defaultVal,G=J===void 0?null:J;return function(R){var q=z[$];if(!arguments.length)return q;var le=R===void 0?G:R;return z[$]=le,B.call(D,le,z,q),!F.hasOwnProperty($)&&(F[$]=q),W&&K(),D}}}),Object.keys(f).forEach(function(Z){D[Z]=function(){for(var ie,ce=arguments.length,$=new Array(ce),te=0;te<ce;te++)$[te]=arguments[te];return(ie=f[Z]).call.apply(ie,[D,z].concat($))}}),Object.entries(p).forEach(function(Z){var ie=pk(Z,2),ce=ie[0],$=ie[1];return D[ce]=D[$]}),D.resetProps=function(){return x.forEach(function(Z){D[Z.name](Z.defaultVal)}),D},D.resetProps(),z._rerender=K,O&&A&&D(A),D}}var De=function(e){return typeof e=="function"?e:typeof e=="string"?function(n){return n[e]}:function(n){return e}};function ca(e){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ca(e)}var yk=/^\s+/,vk=/\s+$/;function ye(e,n){if(e=e||"",n=n||{},e instanceof ye)return e;if(!(this instanceof ye))return new ye(e,n);var i=_k(e);this._originalInput=e,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||i.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=i.ok}ye.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),i,s,a,u,f,h;return i=n.r/255,s=n.g/255,a=n.b/255,i<=.03928?u=i/12.92:u=Math.pow((i+.055)/1.055,2.4),s<=.03928?f=s/12.92:f=Math.pow((s+.055)/1.055,2.4),a<=.03928?h=a/12.92:h=Math.pow((a+.055)/1.055,2.4),.2126*u+.7152*f+.0722*h},setAlpha:function(n){return this._a=lm(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=yg(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=yg(this._r,this._g,this._b),i=Math.round(n.h*360),s=Math.round(n.s*100),a=Math.round(n.v*100);return this._a==1?"hsv("+i+", "+s+"%, "+a+"%)":"hsva("+i+", "+s+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var n=mg(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=mg(this._r,this._g,this._b),i=Math.round(n.h*360),s=Math.round(n.s*100),a=Math.round(n.l*100);return this._a==1?"hsl("+i+", "+s+"%, "+a+"%)":"hsla("+i+", "+s+"%, "+a+"%, "+this._roundA+")"},toHex:function(n){return vg(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return Sk(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(qe(this._r,255)*100)+"%",g:Math.round(qe(this._g,255)*100)+"%",b:Math.round(qe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(qe(this._r,255)*100)+"%, "+Math.round(qe(this._g,255)*100)+"%, "+Math.round(qe(this._b,255)*100)+"%)":"rgba("+Math.round(qe(this._r,255)*100)+"%, "+Math.round(qe(this._g,255)*100)+"%, "+Math.round(qe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:zk[vg(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var i="#"+_g(this._r,this._g,this._b,this._a),s=i,a=this._gradientType?"GradientType = 1, ":"";if(n){var u=ye(n);s="#"+_g(u._r,u._g,u._b,u._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+i+",endColorstr="+s+")"},toString:function(n){var i=!!n;n=n||this._format;var s=!1,a=this._a<1&&this._a>=0,u=!i&&a&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return u?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(s=this.toRgbString()),n==="prgb"&&(s=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(s=this.toHexString()),n==="hex3"&&(s=this.toHexString(!0)),n==="hex4"&&(s=this.toHex8String(!0)),n==="hex8"&&(s=this.toHex8String()),n==="name"&&(s=this.toName()),n==="hsl"&&(s=this.toHslString()),n==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},clone:function(){return ye(this.toString())},_applyModification:function(n,i){var s=n.apply(null,[this].concat([].slice.call(i)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(Pk,arguments)},brighten:function(){return this._applyModification(Nk,arguments)},darken:function(){return this._applyModification(Tk,arguments)},desaturate:function(){return this._applyModification(Ck,arguments)},saturate:function(){return this._applyModification(bk,arguments)},greyscale:function(){return this._applyModification(Ek,arguments)},spin:function(){return this._applyModification(Mk,arguments)},_applyCombination:function(n,i){return n.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(Ak,arguments)},complement:function(){return this._applyCombination(Ok,arguments)},monochromatic:function(){return this._applyCombination(jk,arguments)},splitcomplement:function(){return this._applyCombination(Rk,arguments)},triad:function(){return this._applyCombination(xg,[3])},tetrad:function(){return this._applyCombination(xg,[4])}};ye.fromRatio=function(e,n){if(ca(e)=="object"){var i={};for(var s in e)e.hasOwnProperty(s)&&(s==="a"?i[s]=e[s]:i[s]=rs(e[s]));e=i}return ye(e,n)};function _k(e){var n={r:0,g:0,b:0},i=1,s=null,a=null,u=null,f=!1,h=!1;return typeof e=="string"&&(e=Fk(e)),ca(e)=="object"&&(Ln(e.r)&&Ln(e.g)&&Ln(e.b)?(n=xk(e.r,e.g,e.b),f=!0,h=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ln(e.h)&&Ln(e.s)&&Ln(e.v)?(s=rs(e.s),a=rs(e.v),n=kk(e.h,s,a),f=!0,h="hsv"):Ln(e.h)&&Ln(e.s)&&Ln(e.l)&&(s=rs(e.s),u=rs(e.l),n=wk(e.h,s,u),f=!0,h="hsl"),e.hasOwnProperty("a")&&(i=e.a)),i=lm(i),{ok:f,format:e.format||h,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:i}}function xk(e,n,i){return{r:qe(e,255)*255,g:qe(n,255)*255,b:qe(i,255)*255}}function mg(e,n,i){e=qe(e,255),n=qe(n,255),i=qe(i,255);var s=Math.max(e,n,i),a=Math.min(e,n,i),u,f,h=(s+a)/2;if(s==a)u=f=0;else{var p=s-a;switch(f=h>.5?p/(2-s-a):p/(s+a),s){case e:u=(n-i)/p+(n<i?6:0);break;case n:u=(i-e)/p+2;break;case i:u=(e-n)/p+4;break}u/=6}return{h:u,s:f,l:h}}function wk(e,n,i){var s,a,u;e=qe(e,360),n=qe(n,100),i=qe(i,100);function f(m,v,g){return g<0&&(g+=1),g>1&&(g-=1),g<1/6?m+(v-m)*6*g:g<1/2?v:g<2/3?m+(v-m)*(2/3-g)*6:m}if(n===0)s=a=u=i;else{var h=i<.5?i*(1+n):i+n-i*n,p=2*i-h;s=f(p,h,e+1/3),a=f(p,h,e),u=f(p,h,e-1/3)}return{r:s*255,g:a*255,b:u*255}}function yg(e,n,i){e=qe(e,255),n=qe(n,255),i=qe(i,255);var s=Math.max(e,n,i),a=Math.min(e,n,i),u,f,h=s,p=s-a;if(f=s===0?0:p/s,s==a)u=0;else{switch(s){case e:u=(n-i)/p+(n<i?6:0);break;case n:u=(i-e)/p+2;break;case i:u=(e-n)/p+4;break}u/=6}return{h:u,s:f,v:h}}function kk(e,n,i){e=qe(e,360)*6,n=qe(n,100),i=qe(i,100);var s=Math.floor(e),a=e-s,u=i*(1-n),f=i*(1-a*n),h=i*(1-(1-a)*n),p=s%6,m=[i,f,u,u,h,i][p],v=[h,i,i,f,u,u][p],g=[u,u,h,i,i,f][p];return{r:m*255,g:v*255,b:g*255}}function vg(e,n,i,s){var a=[dn(Math.round(e).toString(16)),dn(Math.round(n).toString(16)),dn(Math.round(i).toString(16))];return s&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Sk(e,n,i,s,a){var u=[dn(Math.round(e).toString(16)),dn(Math.round(n).toString(16)),dn(Math.round(i).toString(16)),dn(am(s))];return a&&u[0].charAt(0)==u[0].charAt(1)&&u[1].charAt(0)==u[1].charAt(1)&&u[2].charAt(0)==u[2].charAt(1)&&u[3].charAt(0)==u[3].charAt(1)?u[0].charAt(0)+u[1].charAt(0)+u[2].charAt(0)+u[3].charAt(0):u.join("")}function _g(e,n,i,s){var a=[dn(am(s)),dn(Math.round(e).toString(16)),dn(Math.round(n).toString(16)),dn(Math.round(i).toString(16))];return a.join("")}ye.equals=function(e,n){return!e||!n?!1:ye(e).toRgbString()==ye(n).toRgbString()};ye.random=function(){return ye.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Ck(e,n){n=n===0?0:n||10;var i=ye(e).toHsl();return i.s-=n/100,i.s=va(i.s),ye(i)}function bk(e,n){n=n===0?0:n||10;var i=ye(e).toHsl();return i.s+=n/100,i.s=va(i.s),ye(i)}function Ek(e){return ye(e).desaturate(100)}function Pk(e,n){n=n===0?0:n||10;var i=ye(e).toHsl();return i.l+=n/100,i.l=va(i.l),ye(i)}function Nk(e,n){n=n===0?0:n||10;var i=ye(e).toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(255*-(n/100)))),i.g=Math.max(0,Math.min(255,i.g-Math.round(255*-(n/100)))),i.b=Math.max(0,Math.min(255,i.b-Math.round(255*-(n/100)))),ye(i)}function Tk(e,n){n=n===0?0:n||10;var i=ye(e).toHsl();return i.l-=n/100,i.l=va(i.l),ye(i)}function Mk(e,n){var i=ye(e).toHsl(),s=(i.h+n)%360;return i.h=s<0?360+s:s,ye(i)}function Ok(e){var n=ye(e).toHsl();return n.h=(n.h+180)%360,ye(n)}function xg(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var i=ye(e).toHsl(),s=[ye(e)],a=360/n,u=1;u<n;u++)s.push(ye({h:(i.h+u*a)%360,s:i.s,l:i.l}));return s}function Rk(e){var n=ye(e).toHsl(),i=n.h;return[ye(e),ye({h:(i+72)%360,s:n.s,l:n.l}),ye({h:(i+216)%360,s:n.s,l:n.l})]}function Ak(e,n,i){n=n||6,i=i||30;var s=ye(e).toHsl(),a=360/i,u=[ye(e)];for(s.h=(s.h-(a*n>>1)+720)%360;--n;)s.h=(s.h+a)%360,u.push(ye(s));return u}function jk(e,n){n=n||6;for(var i=ye(e).toHsv(),s=i.h,a=i.s,u=i.v,f=[],h=1/n;n--;)f.push(ye({h:s,s:a,v:u})),u=(u+h)%1;return f}ye.mix=function(e,n,i){i=i===0?0:i||50;var s=ye(e).toRgb(),a=ye(n).toRgb(),u=i/100,f={r:(a.r-s.r)*u+s.r,g:(a.g-s.g)*u+s.g,b:(a.b-s.b)*u+s.b,a:(a.a-s.a)*u+s.a};return ye(f)};ye.readability=function(e,n){var i=ye(e),s=ye(n);return(Math.max(i.getLuminance(),s.getLuminance())+.05)/(Math.min(i.getLuminance(),s.getLuminance())+.05)};ye.isReadable=function(e,n,i){var s=ye.readability(e,n),a,u;switch(u=!1,a=$k(i),a.level+a.size){case"AAsmall":case"AAAlarge":u=s>=4.5;break;case"AAlarge":u=s>=3;break;case"AAAsmall":u=s>=7;break}return u};ye.mostReadable=function(e,n,i){var s=null,a=0,u,f,h,p;i=i||{},f=i.includeFallbackColors,h=i.level,p=i.size;for(var m=0;m<n.length;m++)u=ye.readability(e,n[m]),u>a&&(a=u,s=ye(n[m]));return ye.isReadable(e,s,{level:h,size:p})||!f?s:(i.includeFallbackColors=!1,ye.mostReadable(e,["#fff","#000"],i))};var rf=ye.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},zk=ye.hexNames=Dk(rf);function Dk(e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[e[i]]=i);return n}function lm(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function qe(e,n){Ik(e)&&(e="100%");var i=Lk(e);return e=Math.min(n,Math.max(0,parseFloat(e))),i&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function va(e){return Math.min(1,Math.max(0,e))}function Ft(e){return parseInt(e,16)}function Ik(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Lk(e){return typeof e=="string"&&e.indexOf("%")!=-1}function dn(e){return e.length==1?"0"+e:""+e}function rs(e){return e<=1&&(e=e*100+"%"),e}function am(e){return Math.round(parseFloat(e)*255).toString(16)}function wg(e){return Ft(e)/255}var an=function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",i="(?:"+n+")|(?:"+e+")",s="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",a="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?";return{CSS_UNIT:new RegExp(i),rgb:new RegExp("rgb"+s),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+s),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+s),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ln(e){return!!an.CSS_UNIT.exec(e)}function Fk(e){e=e.replace(yk,"").replace(vk,"").toLowerCase();var n=!1;if(rf[e])e=rf[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var i;return(i=an.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=an.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=an.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=an.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=an.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=an.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=an.hex8.exec(e))?{r:Ft(i[1]),g:Ft(i[2]),b:Ft(i[3]),a:wg(i[4]),format:n?"name":"hex8"}:(i=an.hex6.exec(e))?{r:Ft(i[1]),g:Ft(i[2]),b:Ft(i[3]),format:n?"name":"hex"}:(i=an.hex4.exec(e))?{r:Ft(i[1]+""+i[1]),g:Ft(i[2]+""+i[2]),b:Ft(i[3]+""+i[3]),a:wg(i[4]+""+i[4]),format:n?"name":"hex8"}:(i=an.hex3.exec(e))?{r:Ft(i[1]+""+i[1]),g:Ft(i[2]+""+i[2]),b:Ft(i[3]+""+i[3]),format:n?"name":"hex"}:!1}function $k(e){var n,i;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),i=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),i!=="small"&&i!=="large"&&(i="small"),{level:n,size:i}}function of(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function Uk(e){if(Array.isArray(e))return of(e)}function um(e,n,i){if(typeof e=="function"?e===n:e.has(n))return arguments.length<3?n:i;throw new TypeError("Private element is not present on this object")}function Hk(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Vk(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Kt(e,n){return e.get(um(e,n))}function kg(e,n,i){Hk(e,n),n.set(e,i)}function Sg(e,n,i){return e.set(um(e,n),i),i}function qk(e,n){for(var i=0;i<n.length;i++){var s=n[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,Xk(s.key),s)}}function Qk(e,n,i){return n&&qk(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
111
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kk(e){return Uk(e)||Bk(e)||Yk(e)||Wk()}function Gk(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Xk(e){var n=Gk(e,"string");return typeof n=="symbol"?n:n+""}function Yk(e,n){if(e){if(typeof e=="string")return of(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?of(e,n):void 0}}var Zk=123,Jk=function(n){return"#".concat(Math.min(n,Math.pow(2,24)).toString(16).padStart(6,"0"))},cm=function(n,i,s){return(n<<16)+(i<<8)+s},eS=function(n){var i=ye(n).toRgb(),s=i.r,a=i.g,u=i.b;return cm(s,a,u)},Cg=function(n,i){return n*Zk%Math.pow(2,i)},Wr=new WeakMap,Fn=new WeakMap,tS=function(){function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6;Vk(this,e),kg(this,Wr,void 0),kg(this,Fn,void 0),Sg(Fn,this,n),this.reset()}return Qk(e,[{key:"reset",value:function(){Sg(Wr,this,["__reserved for background__"])}},{key:"register",value:function(i){if(Kt(Wr,this).length>=Math.pow(2,24-Kt(Fn,this)))return null;var s=Kt(Wr,this).length,a=Cg(s,Kt(Fn,this)),u=Jk(s+(a<<24-Kt(Fn,this)));return Kt(Wr,this).push(i),u}},{key:"lookup",value:function(i){if(!i)return null;var s=typeof i=="string"?eS(i):cm.apply(void 0,Kk(i));if(!s)return null;var a=s&Math.pow(2,24-Kt(Fn,this))-1,u=s>>24-Kt(Fn,this)&Math.pow(2,Kt(Fn,this))-1;return Cg(a,Kt(Fn,this))!==u||a>=Kt(Wr,this).length?null:Kt(Wr,this)[a]}}])}(),Ss,Qe,fm,hm,Kr,bg,dm,pm,gm,Ef,sf,lf,ds={},mm=[],nS=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_a=Array.isArray;function bn(e,n){for(var i in n)e[i]=n[i];return e}function Pf(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function rS(e,n,i){var s,a,u,f={};for(u in n)u=="key"?s=n[u]:u=="ref"?a=n[u]:f[u]=n[u];if(arguments.length>2&&(f.children=arguments.length>3?Ss.call(arguments,2):i),typeof e=="function"&&e.defaultProps!=null)for(u in e.defaultProps)f[u]===void 0&&(f[u]=e.defaultProps[u]);return is(e,f,s,a,null)}function is(e,n,i,s,a){var u={type:e,props:n,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++fm,__i:-1,__u:0};return a==null&&Qe.vnode!=null&&Qe.vnode(u),u}function xa(e){return e.children}function Jl(e,n){this.props=e,this.context=n}function to(e,n){if(n==null)return e.__?to(e.__,e.__i+1):null;for(var i;n<e.__k.length;n++)if((i=e.__k[n])!=null&&i.__e!=null)return i.__e;return typeof e.type=="function"?to(e):null}function ym(e){var n,i;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((i=e.__k[n])!=null&&i.__e!=null){e.__e=e.__c.base=i.__e;break}return ym(e)}}function Eg(e){(!e.__d&&(e.__d=!0)&&Kr.push(e)&&!fa.__r++||bg!=Qe.debounceRendering)&&((bg=Qe.debounceRendering)||dm)(fa)}function fa(){for(var e,n,i,s,a,u,f,h=1;Kr.length;)Kr.length>h&&Kr.sort(pm),e=Kr.shift(),h=Kr.length,e.__d&&(i=void 0,a=(s=(n=e).__v).__e,u=[],f=[],n.__P&&((i=bn({},s)).__v=s.__v+1,Qe.vnode&&Qe.vnode(i),Nf(n.__P,i,s,n.__n,n.__P.namespaceURI,32&s.__u?[a]:null,u,a??to(s),!!(32&s.__u),f),i.__v=s.__v,i.__.__k[i.__i]=i,xm(u,i,f),i.__e!=a&&ym(i)));fa.__r=0}function vm(e,n,i,s,a,u,f,h,p,m,v){var g,_,x,C,b,S,k=s&&s.__k||mm,O=n.length;for(p=iS(i,n,k,p,O),g=0;g<O;g++)(x=i.__k[g])!=null&&(_=x.__i==-1?ds:k[x.__i]||ds,x.__i=g,S=Nf(e,x,_,a,u,f,h,p,m,v),C=x.__e,x.ref&&_.ref!=x.ref&&(_.ref&&Tf(_.ref,null,x),v.push(x.ref,x.__c||C,x)),b==null&&C!=null&&(b=C),4&x.__u||_.__k===x.__k?p=_m(x,p,e):typeof x.type=="function"&&S!==void 0?p=S:C&&(p=C.nextSibling),x.__u&=-7);return i.__e=b,p}function iS(e,n,i,s,a){var u,f,h,p,m,v=i.length,g=v,_=0;for(e.__k=new Array(a),u=0;u<a;u++)(f=n[u])!=null&&typeof f!="boolean"&&typeof f!="function"?(p=u+_,(f=e.__k[u]=typeof f=="string"||typeof f=="number"||typeof f=="bigint"||f.constructor==String?is(null,f,null,null,null):_a(f)?is(xa,{children:f},null,null,null):f.constructor==null&&f.__b>0?is(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f).__=e,f.__b=e.__b+1,h=null,(m=f.__i=oS(f,i,p,g))!=-1&&(g--,(h=i[m])&&(h.__u|=2)),h==null||h.__v==null?(m==-1&&(a>v?_--:a<v&&_++),typeof f.type!="function"&&(f.__u|=4)):m!=p&&(m==p-1?_--:m==p+1?_++:(m>p?_--:_++,f.__u|=4))):e.__k[u]=null;if(g)for(u=0;u<v;u++)(h=i[u])!=null&&(2&h.__u)==0&&(h.__e==s&&(s=to(h)),km(h,h));return s}function _m(e,n,i){var s,a;if(typeof e.type=="function"){for(s=e.__k,a=0;s&&a<s.length;a++)s[a]&&(s[a].__=e,n=_m(s[a],n,i));return n}e.__e!=n&&(n&&e.type&&!i.contains(n)&&(n=to(e)),i.insertBefore(e.__e,n||null),n=e.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType==8);return n}function oS(e,n,i,s){var a,u,f=e.key,h=e.type,p=n[i];if(p===null&&e.key==null||p&&f==p.key&&h==p.type&&(2&p.__u)==0)return i;if(s>(p!=null&&(2&p.__u)==0?1:0))for(a=i-1,u=i+1;a>=0||u<n.length;){if(a>=0){if((p=n[a])&&(2&p.__u)==0&&f==p.key&&h==p.type)return a;a--}if(u<n.length){if((p=n[u])&&(2&p.__u)==0&&f==p.key&&h==p.type)return u;u++}}return-1}function Pg(e,n,i){n[0]=="-"?e.setProperty(n,i??""):e[n]=i==null?"":typeof i!="number"||nS.test(n)?i:i+"px"}function Ql(e,n,i,s,a){var u,f;e:if(n=="style")if(typeof i=="string")e.style.cssText=i;else{if(typeof s=="string"&&(e.style.cssText=s=""),s)for(n in s)i&&n in i||Pg(e.style,n,"");if(i)for(n in i)s&&i[n]==s[n]||Pg(e.style,n,i[n])}else if(n[0]=="o"&&n[1]=="n")u=n!=(n=n.replace(gm,"$1")),f=n.toLowerCase(),n=f in e||n=="onFocusOut"||n=="onFocusIn"?f.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+u]=i,i?s?i.u=s.u:(i.u=Ef,e.addEventListener(n,u?lf:sf,u)):e.removeEventListener(n,u?lf:sf,u);else{if(a=="http://www.w3.org/2000/svg")n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(n!="width"&&n!="height"&&n!="href"&&n!="list"&&n!="form"&&n!="tabIndex"&&n!="download"&&n!="rowSpan"&&n!="colSpan"&&n!="role"&&n!="popover"&&n in e)try{e[n]=i??"";break e}catch{}typeof i=="function"||(i==null||i===!1&&n[4]!="-"?e.removeAttribute(n):e.setAttribute(n,n=="popover"&&i==1?"":i))}}function Ng(e){return function(n){if(this.l){var i=this.l[n.type+e];if(n.t==null)n.t=Ef++;else if(n.t<i.u)return;return i(Qe.event?Qe.event(n):n)}}}function Nf(e,n,i,s,a,u,f,h,p,m){var v,g,_,x,C,b,S,k,O,A,P,N,z,F,D,Q,K,Z=n.type;if(n.constructor!=null)return null;128&i.__u&&(p=!!(32&i.__u),u=[h=n.__e=i.__e]),(v=Qe.__b)&&v(n);e:if(typeof Z=="function")try{if(k=n.props,O="prototype"in Z&&Z.prototype.render,A=(v=Z.contextType)&&s[v.__c],P=v?A?A.props.value:v.__:s,i.__c?S=(g=n.__c=i.__c).__=g.__E:(O?n.__c=g=new Z(k,P):(n.__c=g=new Jl(k,P),g.constructor=Z,g.render=lS),A&&A.sub(g),g.props=k,g.state||(g.state={}),g.context=P,g.__n=s,_=g.__d=!0,g.__h=[],g._sb=[]),O&&g.__s==null&&(g.__s=g.state),O&&Z.getDerivedStateFromProps!=null&&(g.__s==g.state&&(g.__s=bn({},g.__s)),bn(g.__s,Z.getDerivedStateFromProps(k,g.__s))),x=g.props,C=g.state,g.__v=n,_)O&&Z.getDerivedStateFromProps==null&&g.componentWillMount!=null&&g.componentWillMount(),O&&g.componentDidMount!=null&&g.__h.push(g.componentDidMount);else{if(O&&Z.getDerivedStateFromProps==null&&k!==x&&g.componentWillReceiveProps!=null&&g.componentWillReceiveProps(k,P),!g.__e&&g.shouldComponentUpdate!=null&&g.shouldComponentUpdate(k,g.__s,P)===!1||n.__v==i.__v){for(n.__v!=i.__v&&(g.props=k,g.state=g.__s,g.__d=!1),n.__e=i.__e,n.__k=i.__k,n.__k.some(function(ie){ie&&(ie.__=n)}),N=0;N<g._sb.length;N++)g.__h.push(g._sb[N]);g._sb=[],g.__h.length&&f.push(g);break e}g.componentWillUpdate!=null&&g.componentWillUpdate(k,g.__s,P),O&&g.componentDidUpdate!=null&&g.__h.push(function(){g.componentDidUpdate(x,C,b)})}if(g.context=P,g.props=k,g.__P=e,g.__e=!1,z=Qe.__r,F=0,O){for(g.state=g.__s,g.__d=!1,z&&z(n),v=g.render(g.props,g.state,g.context),D=0;D<g._sb.length;D++)g.__h.push(g._sb[D]);g._sb=[]}else do g.__d=!1,z&&z(n),v=g.render(g.props,g.state,g.context),g.state=g.__s;while(g.__d&&++F<25);g.state=g.__s,g.getChildContext!=null&&(s=bn(bn({},s),g.getChildContext())),O&&!_&&g.getSnapshotBeforeUpdate!=null&&(b=g.getSnapshotBeforeUpdate(x,C)),Q=v,v!=null&&v.type===xa&&v.key==null&&(Q=wm(v.props.children)),h=vm(e,_a(Q)?Q:[Q],n,i,s,a,u,f,h,p,m),g.base=n.__e,n.__u&=-161,g.__h.length&&f.push(g),S&&(g.__E=g.__=null)}catch(ie){if(n.__v=null,p||u!=null)if(ie.then){for(n.__u|=p?160:128;h&&h.nodeType==8&&h.nextSibling;)h=h.nextSibling;u[u.indexOf(h)]=null,n.__e=h}else for(K=u.length;K--;)Pf(u[K]);else n.__e=i.__e,n.__k=i.__k;Qe.__e(ie,n,i)}else u==null&&n.__v==i.__v?(n.__k=i.__k,n.__e=i.__e):h=n.__e=sS(i.__e,n,i,s,a,u,f,p,m);return(v=Qe.diffed)&&v(n),128&n.__u?void 0:h}function xm(e,n,i){for(var s=0;s<i.length;s++)Tf(i[s],i[++s],i[++s]);Qe.__c&&Qe.__c(n,e),e.some(function(a){try{e=a.__h,a.__h=[],e.some(function(u){u.call(a)})}catch(u){Qe.__e(u,a.__v)}})}function wm(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:_a(e)?e.map(wm):bn({},e)}function sS(e,n,i,s,a,u,f,h,p){var m,v,g,_,x,C,b,S=i.props,k=n.props,O=n.type;if(O=="svg"?a="http://www.w3.org/2000/svg":O=="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),u!=null){for(m=0;m<u.length;m++)if((x=u[m])&&"setAttribute"in x==!!O&&(O?x.localName==O:x.nodeType==3)){e=x,u[m]=null;break}}if(e==null){if(O==null)return document.createTextNode(k);e=document.createElementNS(a,O,k.is&&k),h&&(Qe.__m&&Qe.__m(n,u),h=!1),u=null}if(O==null)S===k||h&&e.data==k||(e.data=k);else{if(u=u&&Ss.call(e.childNodes),S=i.props||ds,!h&&u!=null)for(S={},m=0;m<e.attributes.length;m++)S[(x=e.attributes[m]).name]=x.value;for(m in S)if(x=S[m],m!="children"){if(m=="dangerouslySetInnerHTML")g=x;else if(!(m in k)){if(m=="value"&&"defaultValue"in k||m=="checked"&&"defaultChecked"in k)continue;Ql(e,m,null,x,a)}}for(m in k)x=k[m],m=="children"?_=x:m=="dangerouslySetInnerHTML"?v=x:m=="value"?C=x:m=="checked"?b=x:h&&typeof x!="function"||S[m]===x||Ql(e,m,x,S[m],a);if(v)h||g&&(v.__html==g.__html||v.__html==e.innerHTML)||(e.innerHTML=v.__html),n.__k=[];else if(g&&(e.innerHTML=""),vm(n.type=="template"?e.content:e,_a(_)?_:[_],n,i,s,O=="foreignObject"?"http://www.w3.org/1999/xhtml":a,u,f,u?u[0]:i.__k&&to(i,0),h,p),u!=null)for(m=u.length;m--;)Pf(u[m]);h||(m="value",O=="progress"&&C==null?e.removeAttribute("value"):C!=null&&(C!==e[m]||O=="progress"&&!C||O=="option"&&C!=S[m])&&Ql(e,m,C,S[m],a),m="checked",b!=null&&b!=e[m]&&Ql(e,m,b,S[m],a))}return e}function Tf(e,n,i){try{if(typeof e=="function"){var s=typeof e.__u=="function";s&&e.__u(),s&&n==null||(e.__u=e(n))}else e.current=n}catch(a){Qe.__e(a,i)}}function km(e,n,i){var s,a;if(Qe.unmount&&Qe.unmount(e),(s=e.ref)&&(s.current&&s.current!=e.__e||Tf(s,null,n)),(s=e.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(u){Qe.__e(u,n)}s.base=s.__P=null}if(s=e.__k)for(a=0;a<s.length;a++)s[a]&&km(s[a],n,i||typeof e.type!="function");i||Pf(e.__e),e.__c=e.__=e.__e=void 0}function lS(e,n,i){return this.constructor(e,i)}function aS(e,n,i){var s,a,u,f;n==document&&(n=document.documentElement),Qe.__&&Qe.__(e,n),a=(s=!1)?null:n.__k,u=[],f=[],Nf(n,e=n.__k=rS(xa,null,[e]),a||ds,ds,n.namespaceURI,a?null:n.firstChild?Ss.call(n.childNodes):null,u,a?a.__e:n.firstChild,s,f),xm(u,e,f)}function Sm(e,n,i){var s,a,u,f,h=bn({},e.props);for(u in e.type&&e.type.defaultProps&&(f=e.type.defaultProps),n)u=="key"?s=n[u]:u=="ref"?a=n[u]:h[u]=n[u]===void 0&&f!=null?f[u]:n[u];return arguments.length>2&&(h.children=arguments.length>3?Ss.call(arguments,2):i),is(e.type,h,s||e.key,a||e.ref,null)}Ss=mm.slice,Qe={__e:function(e,n,i,s){for(var a,u,f;n=n.__;)if((a=n.__c)&&!a.__)try{if((u=a.constructor)&&u.getDerivedStateFromError!=null&&(a.setState(u.getDerivedStateFromError(e)),f=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(e,s||{}),f=a.__d),f)return a.__E=a}catch(h){e=h}throw e}},fm=0,hm=function(e){return e!=null&&e.constructor==null},Jl.prototype.setState=function(e,n){var i;i=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=bn({},this.state),typeof e=="function"&&(e=e(bn({},i),this.props)),e&&bn(i,e),e!=null&&this.__v&&(n&&this._sb.push(n),Eg(this))},Jl.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Eg(this))},Jl.prototype.render=xa,Kr=[],dm=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,pm=function(e,n){return e.__v.__b-n.__v.__b},fa.__r=0,gm=/(PointerCapture)$|Capture$/i,Ef=0,sf=Ng(!1),lf=Ng(!0);function Tg(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function uS(e){if(Array.isArray(e))return e}function cS(e,n,i){return(n=mS(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function fS(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,m=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function hS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
112
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mg(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,s)}return i}function dS(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Mg(Object(i),!0).forEach(function(s){cS(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Mg(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function pS(e,n){return uS(e)||fS(e,n)||yS(e,n)||hS()}function gS(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function mS(e){var n=gS(e,"string");return typeof n=="symbol"?n:n+""}function ha(e){"@babel/helpers - typeof";return ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ha(e)}function yS(e,n){if(e){if(typeof e=="string")return Tg(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Tg(e,n):void 0}}var af=function(n){if(ha(n)!=="object")return n;var i=Sm(n);if(i.props){var s;i.props=dS({},i.props),i!=null&&(s=i.props)!==null&&s!==void 0&&s.children&&(i.props.children=Array.isArray(i.props.children)?i.props.children.map(af):af(i.props.children))}return i},vS=function(n){return hm(Sm(n))},_S=function(n,i){delete i.__k,aS(af(n),i)};function xS(e,n){n===void 0&&(n={});var i=n.insertAt;if(!(typeof document>"u")){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",i==="top"&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var wS=`.float-tooltip-kap {
103
113
  position: absolute;
104
114
  width: max-content; /* prevent shrinking near right edge */
105
115
  max-width: max(50%, 150px);
@@ -110,9 +120,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
110
120
  background: rgba(0,0,0,0.6);
111
121
  pointer-events: none;
112
122
  }
113
- `;vS(_S);var xS=bf({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(n,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=s.style,u=a===void 0?{}:a,f=!!n&&ha(n)==="object"&&!!n.node&&typeof n.node=="function",h=Yt(f?n.node():n);h.style("position")==="static"&&h.style("position","relative"),i.tooltipEl=h.append("div").attr("class","float-tooltip-kap"),Object.entries(u).forEach(function(y){var v=hS(y,2),g=v[0],_=v[1];return i.tooltipEl.style(g,_)}),i.tooltipEl.style("left","-10000px").style("display","none");var p="tooltip-".concat(Math.round(Math.random()*1e12));i.mouseInside=!1,h.on("mousemove.".concat(p),function(y){i.mouseInside=!0;var v=wn(y),g=h.node(),_=g.offsetWidth,x=g.offsetHeight,C=[i.offsetX===null||i.offsetX===void 0?"-".concat(v[0]/_*100,"%"):typeof i.offsetX=="number"?"calc(-50% + ".concat(i.offsetX,"px)"):i.offsetX,i.offsetY===null||i.offsetY===void 0?x>130&&x-v[1]<100?"calc(-100% - 6px)":"21px":typeof i.offsetY=="number"?i.offsetY<0?"calc(-100% - ".concat(Math.abs(i.offsetY),"px)"):"".concat(i.offsetY,"px"):i.offsetY];i.tooltipEl.style("left",v[0]+"px").style("top",v[1]+"px").style("transform","translate(".concat(C.join(","),")")),i.content&&i.tooltipEl.style("display","inline")}),h.on("mouseover.".concat(p),function(){i.mouseInside=!0,i.content&&i.tooltipEl.style("display","inline")}),h.on("mouseout.".concat(p),function(){i.mouseInside=!1,i.tooltipEl.style("display","none")})},update:function(n){n.tooltipEl.style("display",n.content&&n.mouseInside?"inline":"none"),n.content?n.content instanceof HTMLElement?(n.tooltipEl.text(""),n.tooltipEl.append(function(){return n.content})):typeof n.content=="string"?n.tooltipEl.html(n.content):yS(n.content)?(n.tooltipEl.text(""),mS(n.content,n.tooltipEl.node())):(n.tooltipEl.style("display","none"),console.warn("Tooltip content is invalid, skipping.",n.content,n.content.toString())):n.tooltipEl.text("")}});function wS(e,n,i){var s,a=1;e==null&&(e=0),n==null&&(n=0),i==null&&(i=0);function u(){var f,h=s.length,p,y=0,v=0,g=0;for(f=0;f<h;++f)p=s[f],y+=p.x||0,v+=p.y||0,g+=p.z||0;for(y=(y/h-e)*a,v=(v/h-n)*a,g=(g/h-i)*a,f=0;f<h;++f)p=s[f],y&&(p.x-=y),v&&(p.y-=v),g&&(p.z-=g)}return u.initialize=function(f){s=f},u.x=function(f){return arguments.length?(e=+f,u):e},u.y=function(f){return arguments.length?(n=+f,u):n},u.z=function(f){return arguments.length?(i=+f,u):i},u.strength=function(f){return arguments.length?(a=+f,u):a},u}function kS(e){const n=+this._x.call(null,e);return Sy(this.cover(n),n,e)}function Sy(e,n,i){if(isNaN(n))return e;var s,a=e._root,u={data:i},f=e._x0,h=e._x1,p,y,v,g,_;if(!a)return e._root=u,e;for(;a.length;)if((v=n>=(p=(f+h)/2))?f=p:h=p,s=a,!(a=a[g=+v]))return s[g]=u,e;if(y=+e._x.call(null,a.data),n===y)return u.next=a,s?s[g]=u:e._root=u,e;do s=s?s[g]=new Array(2):e._root=new Array(2),(v=n>=(p=(f+h)/2))?f=p:h=p;while((g=+v)==(_=+(y>=p)));return s[_]=a,s[g]=u,e}function SS(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,i=new Float64Array(n);let s=1/0,a=-1/0;for(let u=0,f;u<n;++u)isNaN(f=+this._x.call(null,e[u]))||(i[u]=f,f<s&&(s=f),f>a&&(a=f));if(s>a)return this;this.cover(s).cover(a);for(let u=0;u<n;++u)Sy(this,i[u],e[u]);return this}function CS(e){if(isNaN(e=+e))return this;var n=this._x0,i=this._x1;if(isNaN(n))i=(n=Math.floor(e))+1;else{for(var s=i-n||1,a=this._root,u,f;n>e||e>=i;)switch(f=+(e<n),u=new Array(2),u[f]=a,a=u,s*=2,f){case 0:i=n+s;break;case 1:n=i-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._x1=i,this}function bS(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function ES(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function Wn(e,n,i){this.node=e,this.x0=n,this.x1=i}function PS(e,n){var i,s=this._x0,a,u,f=this._x1,h=[],p=this._root,y,v;for(p&&h.push(new Wn(p,s,f)),n==null?n=1/0:(s=e-n,f=e+n);y=h.pop();)if(!(!(p=y.node)||(a=y.x0)>f||(u=y.x1)<s))if(p.length){var g=(a+u)/2;h.push(new Wn(p[1],g,u),new Wn(p[0],a,g)),(v=+(e>=g))&&(y=h[h.length-1],h[h.length-1]=h[h.length-1-v],h[h.length-1-v]=y)}else{var _=Math.abs(e-+this._x.call(null,p.data));_<n&&(n=_,s=e-_,f=e+_,i=p.data)}return i}function TS(e){if(isNaN(p=+this._x.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._x1,p,y,v,g,_;if(!i)return this;if(i.length)for(;;){if((v=p>=(y=(f+h)/2))?f=y:h=y,n=i,!(i=i[g=+v]))return this;if(!i.length)break;n[g+1&1]&&(s=n,_=g)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[g]=u:delete n[g],(i=n[0]||n[1])&&i===(n[1]||n[0])&&!i.length&&(s?s[_]=i:this._root=i),this):(this._root=u,this)}function NS(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function MS(){return this._root}function OS(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function RS(e){var n=[],i,s=this._root,a,u,f;for(s&&n.push(new Wn(s,this._x0,this._x1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.x1)&&s.length){var h=(u+f)/2;(a=s[1])&&n.push(new Wn(a,h,f)),(a=s[0])&&n.push(new Wn(a,u,h))}return this}function AS(e){var n=[],i=[],s;for(this._root&&n.push(new Wn(this._root,this._x0,this._x1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.x1,p=(f+h)/2;(u=a[0])&&n.push(new Wn(u,f,p)),(u=a[1])&&n.push(new Wn(u,p,h))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.x1);return this}function jS(e){return e[0]}function zS(e){return arguments.length?(this._x=e,this):this._x}function Cy(e,n){var i=new Mf(n??jS,NaN,NaN);return e==null?i:i.addAll(e)}function Mf(e,n,i){this._x=e,this._x0=n,this._x1=i,this._root=void 0}function Og(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var jt=Cy.prototype=Mf.prototype;jt.copy=function(){var e=new Mf(this._x,this._x0,this._x1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=Og(n),e;for(i=[{source:n,target:e._root=new Array(2)}];n=i.pop();)for(var a=0;a<2;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(2)}):n.target[a]=Og(s));return e};jt.add=kS;jt.addAll=SS;jt.cover=CS;jt.data=bS;jt.extent=ES;jt.find=PS;jt.remove=TS;jt.removeAll=NS;jt.root=MS;jt.size=OS;jt.visit=RS;jt.visitAfter=AS;jt.x=zS;function DS(e){const n=+this._x.call(null,e),i=+this._y.call(null,e);return by(this.cover(n,i),n,i,e)}function by(e,n,i,s){if(isNaN(n)||isNaN(i))return e;var a,u=e._root,f={data:s},h=e._x0,p=e._y0,y=e._x1,v=e._y1,g,_,x,C,b,S,k,O;if(!u)return e._root=f,e;for(;u.length;)if((b=n>=(g=(h+y)/2))?h=g:y=g,(S=i>=(_=(p+v)/2))?p=_:v=_,a=u,!(u=u[k=S<<1|b]))return a[k]=f,e;if(x=+e._x.call(null,u.data),C=+e._y.call(null,u.data),n===x&&i===C)return f.next=u,a?a[k]=f:e._root=f,e;do a=a?a[k]=new Array(4):e._root=new Array(4),(b=n>=(g=(h+y)/2))?h=g:y=g,(S=i>=(_=(p+v)/2))?p=_:v=_;while((k=S<<1|b)===(O=(C>=_)<<1|x>=g));return a[O]=u,a[k]=f,e}function IS(e){var n,i,s=e.length,a,u,f=new Array(s),h=new Array(s),p=1/0,y=1/0,v=-1/0,g=-1/0;for(i=0;i<s;++i)isNaN(a=+this._x.call(null,n=e[i]))||isNaN(u=+this._y.call(null,n))||(f[i]=a,h[i]=u,a<p&&(p=a),a>v&&(v=a),u<y&&(y=u),u>g&&(g=u));if(p>v||y>g)return this;for(this.cover(p,y).cover(v,g),i=0;i<s;++i)by(this,f[i],h[i],e[i]);return this}function LS(e,n){if(isNaN(e=+e)||isNaN(n=+n))return this;var i=this._x0,s=this._y0,a=this._x1,u=this._y1;if(isNaN(i))a=(i=Math.floor(e))+1,u=(s=Math.floor(n))+1;else{for(var f=a-i||1,h=this._root,p,y;i>e||e>=a||s>n||n>=u;)switch(y=(n<s)<<1|e<i,p=new Array(4),p[y]=h,h=p,f*=2,y){case 0:a=i+f,u=s+f;break;case 1:i=a-f,u=s+f;break;case 2:a=i+f,s=u-f;break;case 3:i=a-f,s=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=i,this._y0=s,this._x1=a,this._y1=u,this}function FS(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function $S(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function wt(e,n,i,s,a){this.node=e,this.x0=n,this.y0=i,this.x1=s,this.y1=a}function US(e,n,i){var s,a=this._x0,u=this._y0,f,h,p,y,v=this._x1,g=this._y1,_=[],x=this._root,C,b;for(x&&_.push(new wt(x,a,u,v,g)),i==null?i=1/0:(a=e-i,u=n-i,v=e+i,g=n+i,i*=i);C=_.pop();)if(!(!(x=C.node)||(f=C.x0)>v||(h=C.y0)>g||(p=C.x1)<a||(y=C.y1)<u))if(x.length){var S=(f+p)/2,k=(h+y)/2;_.push(new wt(x[3],S,k,p,y),new wt(x[2],f,k,S,y),new wt(x[1],S,h,p,k),new wt(x[0],f,h,S,k)),(b=(n>=k)<<1|e>=S)&&(C=_[_.length-1],_[_.length-1]=_[_.length-1-b],_[_.length-1-b]=C)}else{var O=e-+this._x.call(null,x.data),A=n-+this._y.call(null,x.data),P=O*O+A*A;if(P<i){var T=Math.sqrt(i=P);a=e-T,u=n-T,v=e+T,g=n+T,s=x.data}}return s}function HS(e){if(isNaN(v=+this._x.call(null,e))||isNaN(g=+this._y.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._y0,p=this._x1,y=this._y1,v,g,_,x,C,b,S,k;if(!i)return this;if(i.length)for(;;){if((C=v>=(_=(f+p)/2))?f=_:p=_,(b=g>=(x=(h+y)/2))?h=x:y=x,n=i,!(i=i[S=b<<1|C]))return this;if(!i.length)break;(n[S+1&3]||n[S+2&3]||n[S+3&3])&&(s=n,k=S)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[S]=u:delete n[S],(i=n[0]||n[1]||n[2]||n[3])&&i===(n[3]||n[2]||n[1]||n[0])&&!i.length&&(s?s[k]=i:this._root=i),this):(this._root=u,this)}function qS(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function VS(){return this._root}function QS(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function BS(e){var n=[],i,s=this._root,a,u,f,h,p;for(s&&n.push(new wt(s,this._x0,this._y0,this._x1,this._y1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.y0,h=i.x1,p=i.y1)&&s.length){var y=(u+h)/2,v=(f+p)/2;(a=s[3])&&n.push(new wt(a,y,v,h,p)),(a=s[2])&&n.push(new wt(a,u,v,y,p)),(a=s[1])&&n.push(new wt(a,y,f,h,v)),(a=s[0])&&n.push(new wt(a,u,f,y,v))}return this}function WS(e){var n=[],i=[],s;for(this._root&&n.push(new wt(this._root,this._x0,this._y0,this._x1,this._y1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.y0,p=s.x1,y=s.y1,v=(f+p)/2,g=(h+y)/2;(u=a[0])&&n.push(new wt(u,f,h,v,g)),(u=a[1])&&n.push(new wt(u,v,h,p,g)),(u=a[2])&&n.push(new wt(u,f,g,v,y)),(u=a[3])&&n.push(new wt(u,v,g,p,y))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.y0,s.x1,s.y1);return this}function KS(e){return e[0]}function GS(e){return arguments.length?(this._x=e,this):this._x}function XS(e){return e[1]}function YS(e){return arguments.length?(this._y=e,this):this._y}function Ey(e,n,i){var s=new Of(n??KS,i??XS,NaN,NaN,NaN,NaN);return e==null?s:s.addAll(e)}function Of(e,n,i,s,a,u){this._x=e,this._y=n,this._x0=i,this._y0=s,this._x1=a,this._y1=u,this._root=void 0}function Rg(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var kt=Ey.prototype=Of.prototype;kt.copy=function(){var e=new Of(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=Rg(n),e;for(i=[{source:n,target:e._root=new Array(4)}];n=i.pop();)for(var a=0;a<4;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(4)}):n.target[a]=Rg(s));return e};kt.add=DS;kt.addAll=IS;kt.cover=LS;kt.data=FS;kt.extent=$S;kt.find=US;kt.remove=HS;kt.removeAll=qS;kt.root=VS;kt.size=QS;kt.visit=BS;kt.visitAfter=WS;kt.x=GS;kt.y=YS;function ZS(e){const n=+this._x.call(null,e),i=+this._y.call(null,e),s=+this._z.call(null,e);return Py(this.cover(n,i,s),n,i,s,e)}function Py(e,n,i,s,a){if(isNaN(n)||isNaN(i)||isNaN(s))return e;var u,f=e._root,h={data:a},p=e._x0,y=e._y0,v=e._z0,g=e._x1,_=e._y1,x=e._z1,C,b,S,k,O,A,P,T,z,L,D;if(!f)return e._root=h,e;for(;f.length;)if((P=n>=(C=(p+g)/2))?p=C:g=C,(T=i>=(b=(y+_)/2))?y=b:_=b,(z=s>=(S=(v+x)/2))?v=S:x=S,u=f,!(f=f[L=z<<2|T<<1|P]))return u[L]=h,e;if(k=+e._x.call(null,f.data),O=+e._y.call(null,f.data),A=+e._z.call(null,f.data),n===k&&i===O&&s===A)return h.next=f,u?u[L]=h:e._root=h,e;do u=u?u[L]=new Array(8):e._root=new Array(8),(P=n>=(C=(p+g)/2))?p=C:g=C,(T=i>=(b=(y+_)/2))?y=b:_=b,(z=s>=(S=(v+x)/2))?v=S:x=S;while((L=z<<2|T<<1|P)===(D=(A>=S)<<2|(O>=b)<<1|k>=C));return u[D]=f,u[L]=h,e}function JS(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,i=new Float64Array(n),s=new Float64Array(n),a=new Float64Array(n);let u=1/0,f=1/0,h=1/0,p=-1/0,y=-1/0,v=-1/0;for(let g=0,_,x,C,b;g<n;++g)isNaN(x=+this._x.call(null,_=e[g]))||isNaN(C=+this._y.call(null,_))||isNaN(b=+this._z.call(null,_))||(i[g]=x,s[g]=C,a[g]=b,x<u&&(u=x),x>p&&(p=x),C<f&&(f=C),C>y&&(y=C),b<h&&(h=b),b>v&&(v=b));if(u>p||f>y||h>v)return this;this.cover(u,f,h).cover(p,y,v);for(let g=0;g<n;++g)Py(this,i[g],s[g],a[g],e[g]);return this}function eC(e,n,i){if(isNaN(e=+e)||isNaN(n=+n)||isNaN(i=+i))return this;var s=this._x0,a=this._y0,u=this._z0,f=this._x1,h=this._y1,p=this._z1;if(isNaN(s))f=(s=Math.floor(e))+1,h=(a=Math.floor(n))+1,p=(u=Math.floor(i))+1;else{for(var y=f-s||1,v=this._root,g,_;s>e||e>=f||a>n||n>=h||u>i||i>=p;)switch(_=(i<u)<<2|(n<a)<<1|e<s,g=new Array(8),g[_]=v,v=g,y*=2,_){case 0:f=s+y,h=a+y,p=u+y;break;case 1:s=f-y,h=a+y,p=u+y;break;case 2:f=s+y,a=h-y,p=u+y;break;case 3:s=f-y,a=h-y,p=u+y;break;case 4:f=s+y,h=a+y,u=p-y;break;case 5:s=f-y,h=a+y,u=p-y;break;case 6:f=s+y,a=h-y,u=p-y;break;case 7:s=f-y,a=h-y,u=p-y;break}this._root&&this._root.length&&(this._root=v)}return this._x0=s,this._y0=a,this._z0=u,this._x1=f,this._y1=h,this._z1=p,this}function tC(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function nC(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}function Ie(e,n,i,s,a,u,f){this.node=e,this.x0=n,this.y0=i,this.z0=s,this.x1=a,this.y1=u,this.z1=f}function rC(e,n,i,s){var a,u=this._x0,f=this._y0,h=this._z0,p,y,v,g,_,x,C=this._x1,b=this._y1,S=this._z1,k=[],O=this._root,A,P;for(O&&k.push(new Ie(O,u,f,h,C,b,S)),s==null?s=1/0:(u=e-s,f=n-s,h=i-s,C=e+s,b=n+s,S=i+s,s*=s);A=k.pop();)if(!(!(O=A.node)||(p=A.x0)>C||(y=A.y0)>b||(v=A.z0)>S||(g=A.x1)<u||(_=A.y1)<f||(x=A.z1)<h))if(O.length){var T=(p+g)/2,z=(y+_)/2,L=(v+x)/2;k.push(new Ie(O[7],T,z,L,g,_,x),new Ie(O[6],p,z,L,T,_,x),new Ie(O[5],T,y,L,g,z,x),new Ie(O[4],p,y,L,T,z,x),new Ie(O[3],T,z,v,g,_,L),new Ie(O[2],p,z,v,T,_,L),new Ie(O[1],T,y,v,g,z,L),new Ie(O[0],p,y,v,T,z,L)),(P=(i>=L)<<2|(n>=z)<<1|e>=T)&&(A=k[k.length-1],k[k.length-1]=k[k.length-1-P],k[k.length-1-P]=A)}else{var D=e-+this._x.call(null,O.data),Q=n-+this._y.call(null,O.data),K=i-+this._z.call(null,O.data),Z=D*D+Q*Q+K*K;if(Z<s){var ie=Math.sqrt(s=Z);u=e-ie,f=n-ie,h=i-ie,C=e+ie,b=n+ie,S=i+ie,a=O.data}}return a}const iC=(e,n,i,s,a,u)=>Math.sqrt((e-s)**2+(n-a)**2+(i-u)**2);function oC(e,n,i,s){const a=[],u=e-s,f=n-s,h=i-s,p=e+s,y=n+s,v=i+s;return this.visit((g,_,x,C,b,S,k)=>{if(!g.length)do{const O=g.data;iC(e,n,i,this._x(O),this._y(O),this._z(O))<=s&&a.push(O)}while(g=g.next);return _>p||x>y||C>v||b<u||S<f||k<h}),a}function sC(e){if(isNaN(_=+this._x.call(null,e))||isNaN(x=+this._y.call(null,e))||isNaN(C=+this._z.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._y0,p=this._z0,y=this._x1,v=this._y1,g=this._z1,_,x,C,b,S,k,O,A,P,T,z;if(!i)return this;if(i.length)for(;;){if((O=_>=(b=(f+y)/2))?f=b:y=b,(A=x>=(S=(h+v)/2))?h=S:v=S,(P=C>=(k=(p+g)/2))?p=k:g=k,n=i,!(i=i[T=P<<2|A<<1|O]))return this;if(!i.length)break;(n[T+1&7]||n[T+2&7]||n[T+3&7]||n[T+4&7]||n[T+5&7]||n[T+6&7]||n[T+7&7])&&(s=n,z=T)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[T]=u:delete n[T],(i=n[0]||n[1]||n[2]||n[3]||n[4]||n[5]||n[6]||n[7])&&i===(n[7]||n[6]||n[5]||n[4]||n[3]||n[2]||n[1]||n[0])&&!i.length&&(s?s[z]=i:this._root=i),this):(this._root=u,this)}function lC(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function aC(){return this._root}function uC(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function cC(e){var n=[],i,s=this._root,a,u,f,h,p,y,v;for(s&&n.push(new Ie(s,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.y0,h=i.z0,p=i.x1,y=i.y1,v=i.z1)&&s.length){var g=(u+p)/2,_=(f+y)/2,x=(h+v)/2;(a=s[7])&&n.push(new Ie(a,g,_,x,p,y,v)),(a=s[6])&&n.push(new Ie(a,u,_,x,g,y,v)),(a=s[5])&&n.push(new Ie(a,g,f,x,p,_,v)),(a=s[4])&&n.push(new Ie(a,u,f,x,g,_,v)),(a=s[3])&&n.push(new Ie(a,g,_,h,p,y,x)),(a=s[2])&&n.push(new Ie(a,u,_,h,g,y,x)),(a=s[1])&&n.push(new Ie(a,g,f,h,p,_,x)),(a=s[0])&&n.push(new Ie(a,u,f,h,g,_,x))}return this}function fC(e){var n=[],i=[],s;for(this._root&&n.push(new Ie(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.y0,p=s.z0,y=s.x1,v=s.y1,g=s.z1,_=(f+y)/2,x=(h+v)/2,C=(p+g)/2;(u=a[0])&&n.push(new Ie(u,f,h,p,_,x,C)),(u=a[1])&&n.push(new Ie(u,_,h,p,y,x,C)),(u=a[2])&&n.push(new Ie(u,f,x,p,_,v,C)),(u=a[3])&&n.push(new Ie(u,_,x,p,y,v,C)),(u=a[4])&&n.push(new Ie(u,f,h,C,_,x,g)),(u=a[5])&&n.push(new Ie(u,_,h,C,y,x,g)),(u=a[6])&&n.push(new Ie(u,f,x,C,_,v,g)),(u=a[7])&&n.push(new Ie(u,_,x,C,y,v,g))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.y0,s.z0,s.x1,s.y1,s.z1);return this}function hC(e){return e[0]}function dC(e){return arguments.length?(this._x=e,this):this._x}function pC(e){return e[1]}function gC(e){return arguments.length?(this._y=e,this):this._y}function yC(e){return e[2]}function mC(e){return arguments.length?(this._z=e,this):this._z}function Ty(e,n,i,s){var a=new Rf(n??hC,i??pC,s??yC,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?a:a.addAll(e)}function Rf(e,n,i,s,a,u,f,h,p){this._x=e,this._y=n,this._z=i,this._x0=s,this._y0=a,this._z0=u,this._x1=f,this._y1=h,this._z1=p,this._root=void 0}function Ag(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var lt=Ty.prototype=Rf.prototype;lt.copy=function(){var e=new Rf(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=Ag(n),e;for(i=[{source:n,target:e._root=new Array(8)}];n=i.pop();)for(var a=0;a<8;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(8)}):n.target[a]=Ag(s));return e};lt.add=ZS;lt.addAll=JS;lt.cover=eC;lt.data=tC;lt.extent=nC;lt.find=rC;lt.findAllWithinRadius=oC;lt.remove=sC;lt.removeAll=lC;lt.root=aC;lt.size=uC;lt.visit=cC;lt.visitAfter=fC;lt.x=dC;lt.y=gC;lt.z=mC;function Bn(e){return function(){return e}}function Hn(e){return(e()-.5)*1e-6}function vC(e){return e.index}function jg(e,n){var i=e.get(n);if(!i)throw new Error("node not found: "+n);return i}function _C(e){var n=vC,i=_,s,a=Bn(30),u,f,h,p,y,v,g=1;e==null&&(e=[]);function _(k){return 1/Math.min(p[k.source.index],p[k.target.index])}function x(k){for(var O=0,A=e.length;O<g;++O)for(var P=0,T,z,L,D=0,Q=0,K=0,Z,ie;P<A;++P)T=e[P],z=T.source,L=T.target,D=L.x+L.vx-z.x-z.vx||Hn(v),h>1&&(Q=L.y+L.vy-z.y-z.vy||Hn(v)),h>2&&(K=L.z+L.vz-z.z-z.vz||Hn(v)),Z=Math.sqrt(D*D+Q*Q+K*K),Z=(Z-u[P])/Z*k*s[P],D*=Z,Q*=Z,K*=Z,L.vx-=D*(ie=y[P]),h>1&&(L.vy-=Q*ie),h>2&&(L.vz-=K*ie),z.vx+=D*(ie=1-ie),h>1&&(z.vy+=Q*ie),h>2&&(z.vz+=K*ie)}function C(){if(f){var k,O=f.length,A=e.length,P=new Map(f.map((z,L)=>[n(z,L,f),z])),T;for(k=0,p=new Array(O);k<A;++k)T=e[k],T.index=k,typeof T.source!="object"&&(T.source=jg(P,T.source)),typeof T.target!="object"&&(T.target=jg(P,T.target)),p[T.source.index]=(p[T.source.index]||0)+1,p[T.target.index]=(p[T.target.index]||0)+1;for(k=0,y=new Array(A);k<A;++k)T=e[k],y[k]=p[T.source.index]/(p[T.source.index]+p[T.target.index]);s=new Array(A),b(),u=new Array(A),S()}}function b(){if(f)for(var k=0,O=e.length;k<O;++k)s[k]=+i(e[k],k,e)}function S(){if(f)for(var k=0,O=e.length;k<O;++k)u[k]=+a(e[k],k,e)}return x.initialize=function(k,...O){f=k,v=O.find(A=>typeof A=="function")||Math.random,h=O.find(A=>[1,2,3].includes(A))||2,C()},x.links=function(k){return arguments.length?(e=k,C(),x):e},x.id=function(k){return arguments.length?(n=k,x):n},x.iterations=function(k){return arguments.length?(g=+k,x):g},x.strength=function(k){return arguments.length?(i=typeof k=="function"?k:Bn(+k),b(),x):i},x.distance=function(k){return arguments.length?(a=typeof k=="function"?k:Bn(+k),S(),x):a},x}const xC=1664525,wC=1013904223,zg=4294967296;function kC(){let e=1;return()=>(e=(xC*e+wC)%zg)/zg}var Dg=3;function Cc(e){return e.x}function Ig(e){return e.y}function SC(e){return e.z}var CC=10,bC=Math.PI*(3-Math.sqrt(5)),EC=Math.PI*20/(9+Math.sqrt(221));function PC(e,n){n=n||2;var i=Math.min(Dg,Math.max(1,Math.round(n))),s,a=1,u=.001,f=1-Math.pow(u,1/300),h=0,p=.6,y=new Map,v=wf(x),g=ws("tick","end"),_=kC();e==null&&(e=[]);function x(){C(),g.call("tick",s),a<u&&(v.stop(),g.call("end",s))}function C(k){var O,A=e.length,P;k===void 0&&(k=1);for(var T=0;T<k;++T)for(a+=(h-a)*f,y.forEach(function(z){z(a)}),O=0;O<A;++O)P=e[O],P.fx==null?P.x+=P.vx*=p:(P.x=P.fx,P.vx=0),i>1&&(P.fy==null?P.y+=P.vy*=p:(P.y=P.fy,P.vy=0)),i>2&&(P.fz==null?P.z+=P.vz*=p:(P.z=P.fz,P.vz=0));return s}function b(){for(var k=0,O=e.length,A;k<O;++k){if(A=e[k],A.index=k,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),A.fz!=null&&(A.z=A.fz),isNaN(A.x)||i>1&&isNaN(A.y)||i>2&&isNaN(A.z)){var P=CC*(i>2?Math.cbrt(.5+k):i>1?Math.sqrt(.5+k):k),T=k*bC,z=k*EC;i===1?A.x=P:i===2?(A.x=P*Math.cos(T),A.y=P*Math.sin(T)):(A.x=P*Math.sin(T)*Math.cos(z),A.y=P*Math.cos(T),A.z=P*Math.sin(T)*Math.sin(z))}(isNaN(A.vx)||i>1&&isNaN(A.vy)||i>2&&isNaN(A.vz))&&(A.vx=0,i>1&&(A.vy=0),i>2&&(A.vz=0))}}function S(k){return k.initialize&&k.initialize(e,_,i),k}return b(),s={tick:C,restart:function(){return v.restart(x),s},stop:function(){return v.stop(),s},numDimensions:function(k){return arguments.length?(i=Math.min(Dg,Math.max(1,Math.round(k))),y.forEach(S),s):i},nodes:function(k){return arguments.length?(e=k,b(),y.forEach(S),s):e},alpha:function(k){return arguments.length?(a=+k,s):a},alphaMin:function(k){return arguments.length?(u=+k,s):u},alphaDecay:function(k){return arguments.length?(f=+k,s):+f},alphaTarget:function(k){return arguments.length?(h=+k,s):h},velocityDecay:function(k){return arguments.length?(p=1-k,s):1-p},randomSource:function(k){return arguments.length?(_=k,y.forEach(S),s):_},force:function(k,O){return arguments.length>1?(O==null?y.delete(k):y.set(k,S(O)),s):y.get(k)},find:function(){var k=Array.prototype.slice.call(arguments),O=k.shift()||0,A=(i>1?k.shift():null)||0,P=(i>2?k.shift():null)||0,T=k.shift()||1/0,z=0,L=e.length,D,Q,K,Z,ie,ce;for(T*=T,z=0;z<L;++z)ie=e[z],D=O-ie.x,Q=A-(ie.y||0),K=P-(ie.z||0),Z=D*D+Q*Q+K*K,Z<T&&(ce=ie,T=Z);return ce},on:function(k,O){return arguments.length>1?(g.on(k,O),s):g.on(k)}}}function TC(){var e,n,i,s,a,u=Bn(-30),f,h=1,p=1/0,y=.81;function v(C){var b,S=e.length,k=(n===1?Cy(e,Cc):n===2?Ey(e,Cc,Ig):n===3?Ty(e,Cc,Ig,SC):null).visitAfter(_);for(a=C,b=0;b<S;++b)i=e[b],k.visit(x)}function g(){if(e){var C,b=e.length,S;for(f=new Array(b),C=0;C<b;++C)S=e[C],f[S.index]=+u(S,C,e)}}function _(C){var b=0,S,k,O=0,A,P,T,z,L=C.length;if(L){for(A=P=T=z=0;z<L;++z)(S=C[z])&&(k=Math.abs(S.value))&&(b+=S.value,O+=k,A+=k*(S.x||0),P+=k*(S.y||0),T+=k*(S.z||0));b*=Math.sqrt(4/L),C.x=A/O,n>1&&(C.y=P/O),n>2&&(C.z=T/O)}else{S=C,S.x=S.data.x,n>1&&(S.y=S.data.y),n>2&&(S.z=S.data.z);do b+=f[S.data.index];while(S=S.next)}C.value=b}function x(C,b,S,k,O){if(!C.value)return!0;var A=[S,k,O][n-1],P=C.x-i.x,T=n>1?C.y-i.y:0,z=n>2?C.z-i.z:0,L=A-b,D=P*P+T*T+z*z;if(L*L/y<D)return D<p&&(P===0&&(P=Hn(s),D+=P*P),n>1&&T===0&&(T=Hn(s),D+=T*T),n>2&&z===0&&(z=Hn(s),D+=z*z),D<h&&(D=Math.sqrt(h*D)),i.vx+=P*C.value*a/D,n>1&&(i.vy+=T*C.value*a/D),n>2&&(i.vz+=z*C.value*a/D)),!0;if(C.length||D>=p)return;(C.data!==i||C.next)&&(P===0&&(P=Hn(s),D+=P*P),n>1&&T===0&&(T=Hn(s),D+=T*T),n>2&&z===0&&(z=Hn(s),D+=z*z),D<h&&(D=Math.sqrt(h*D)));do C.data!==i&&(L=f[C.data.index]*a/D,i.vx+=P*L,n>1&&(i.vy+=T*L),n>2&&(i.vz+=z*L));while(C=C.next)}return v.initialize=function(C,...b){e=C,s=b.find(S=>typeof S=="function")||Math.random,n=b.find(S=>[1,2,3].includes(S))||2,g()},v.strength=function(C){return arguments.length?(u=typeof C=="function"?C:Bn(+C),g(),v):u},v.distanceMin=function(C){return arguments.length?(h=C*C,v):Math.sqrt(h)},v.distanceMax=function(C){return arguments.length?(p=C*C,v):Math.sqrt(p)},v.theta=function(C){return arguments.length?(y=C*C,v):Math.sqrt(y)},v}function NC(e,n,i,s){var a,u,f=Bn(.1),h,p;typeof e!="function"&&(e=Bn(+e)),n==null&&(n=0),i==null&&(i=0),s==null&&(s=0);function y(g){for(var _=0,x=a.length;_<x;++_){var C=a[_],b=C.x-n||1e-6,S=(C.y||0)-i||1e-6,k=(C.z||0)-s||1e-6,O=Math.sqrt(b*b+S*S+k*k),A=(p[_]-O)*h[_]*g/O;C.vx+=b*A,u>1&&(C.vy+=S*A),u>2&&(C.vz+=k*A)}}function v(){if(a){var g,_=a.length;for(h=new Array(_),p=new Array(_),g=0;g<_;++g)p[g]=+e(a[g],g,a),h[g]=isNaN(p[g])?0:+f(a[g],g,a)}}return y.initialize=function(g,..._){a=g,u=_.find(x=>[1,2,3].includes(x))||2,v()},y.strength=function(g){return arguments.length?(f=typeof g=="function"?g:Bn(+g),v(),y):f},y.radius=function(g){return arguments.length?(e=typeof g=="function"?g:Bn(+g),v(),y):e},y.x=function(g){return arguments.length?(n=+g,y):n},y.y=function(g){return arguments.length?(i=+g,y):i},y.z=function(g){return arguments.length?(s=+g,y):s},y}const{abs:Ko,cos:$n,sin:Di,acos:MC,atan2:Go,sqrt:yr,pow:Gt}=Math;function Xo(e){return e<0?-Gt(-e,1/3):Gt(e,1/3)}const Ny=Math.PI,Bl=2*Ny,mr=Ny/2,OC=1e-6,bc=Number.MAX_SAFE_INTEGER||9007199254740991,Ec=Number.MIN_SAFE_INTEGER||-9007199254740991,RC={x:0,y:0,z:0},re={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,n){const i=n(e);let s=i.x*i.x+i.y*i.y;return typeof i.z<"u"&&(s+=i.z*i.z),yr(s)},compute:function(e,n,i){if(e===0)return n[0].t=0,n[0];const s=n.length-1;if(e===1)return n[s].t=1,n[s];const a=1-e;let u=n;if(s===0)return n[0].t=e,n[0];if(s===1){const h={x:a*u[0].x+e*u[1].x,y:a*u[0].y+e*u[1].y,t:e};return i&&(h.z=a*u[0].z+e*u[1].z),h}if(s<4){let h=a*a,p=e*e,y,v,g,_=0;s===2?(u=[u[0],u[1],u[2],RC],y=h,v=a*e*2,g=p):s===3&&(y=h*a,v=h*e*3,g=a*p*3,_=e*p);const x={x:y*u[0].x+v*u[1].x+g*u[2].x+_*u[3].x,y:y*u[0].y+v*u[1].y+g*u[2].y+_*u[3].y,t:e};return i&&(x.z=y*u[0].z+v*u[1].z+g*u[2].z+_*u[3].z),x}const f=JSON.parse(JSON.stringify(n));for(;f.length>1;){for(let h=0;h<f.length-1;h++)f[h]={x:f[h].x+(f[h+1].x-f[h].x)*e,y:f[h].y+(f[h+1].y-f[h].y)*e},typeof f[h].z<"u"&&(f[h].z=f[h].z+(f[h+1].z-f[h].z)*e);f.splice(f.length-1,1)}return f[0].t=e,f[0]},computeWithRatios:function(e,n,i,s){const a=1-e,u=i,f=n;let h=u[0],p=u[1],y=u[2],v=u[3],g;if(h*=a,p*=e,f.length===2)return g=h+p,{x:(h*f[0].x+p*f[1].x)/g,y:(h*f[0].y+p*f[1].y)/g,z:s?(h*f[0].z+p*f[1].z)/g:!1,t:e};if(h*=a,p*=2*a,y*=e*e,f.length===3)return g=h+p+y,{x:(h*f[0].x+p*f[1].x+y*f[2].x)/g,y:(h*f[0].y+p*f[1].y+y*f[2].y)/g,z:s?(h*f[0].z+p*f[1].z+y*f[2].z)/g:!1,t:e};if(h*=a,p*=1.5*a,y*=3*a,v*=e*e*e,f.length===4)return g=h+p+y+v,{x:(h*f[0].x+p*f[1].x+y*f[2].x+v*f[3].x)/g,y:(h*f[0].y+p*f[1].y+y*f[2].y+v*f[3].y)/g,z:s?(h*f[0].z+p*f[1].z+y*f[2].z+v*f[3].z)/g:!1,t:e}},derive:function(e,n){const i=[];for(let s=e,a=s.length,u=a-1;a>1;a--,u--){const f=[];for(let h=0,p;h<u;h++)p={x:u*(s[h+1].x-s[h].x),y:u*(s[h+1].y-s[h].y)},n&&(p.z=u*(s[h+1].z-s[h].z)),f.push(p);i.push(f),s=f}return i},between:function(e,n,i){return n<=e&&e<=i||re.approximately(e,n)||re.approximately(e,i)},approximately:function(e,n,i){return Ko(e-n)<=(i||OC)},length:function(e){const i=re.Tvalues.length;let s=0;for(let a=0,u;a<i;a++)u=.5*re.Tvalues[a]+.5,s+=re.Cvalues[a]*re.arcfn(u,e);return .5*s},map:function(e,n,i,s,a){const u=i-n,f=a-s,h=e-n,p=h/u;return s+f*p},lerp:function(e,n,i){const s={x:n.x+e*(i.x-n.x),y:n.y+e*(i.y-n.y)};return n.z!==void 0&&i.z!==void 0&&(s.z=n.z+e*(i.z-n.z)),s},pointToString:function(e){let n=e.x+"/"+e.y;return typeof e.z<"u"&&(n+="/"+e.z),n},pointsToString:function(e){return"["+e.map(re.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,n,i){const s=n.x-e.x,a=n.y-e.y,u=i.x-e.x,f=i.y-e.y,h=s*f-a*u,p=s*u+a*f;return Go(h,p)},round:function(e,n){const i=""+e,s=i.indexOf(".");return parseFloat(i.substring(0,s+1+n))},dist:function(e,n){const i=e.x-n.x,s=e.y-n.y;return yr(i*i+s*s)},closest:function(e,n){let i=Gt(2,63),s,a;return e.forEach(function(u,f){a=re.dist(n,u),a<i&&(i=a,s=f)}),{mdist:i,mpos:s}},abcratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const i=Gt(e,n)+Gt(1-e,n),s=i-1;return Ko(s/i)},projectionratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const i=Gt(1-e,n),s=Gt(e,n)+i;return i/s},lli8:function(e,n,i,s,a,u,f,h){const p=(e*s-n*i)*(a-f)-(e-i)*(a*h-u*f),y=(e*s-n*i)*(u-h)-(n-s)*(a*h-u*f),v=(e-i)*(u-h)-(n-s)*(a-f);return v==0?!1:{x:p/v,y:y/v}},lli4:function(e,n,i,s){const a=e.x,u=e.y,f=n.x,h=n.y,p=i.x,y=i.y,v=s.x,g=s.y;return re.lli8(a,u,f,h,p,y,v,g)},lli:function(e,n){return re.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new Ue(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=bc,i=bc,s=Ec,a=Ec;return e.forEach(function(u){const f=u.bbox();n>f.x.min&&(n=f.x.min),i>f.y.min&&(i=f.y.min),s<f.x.max&&(s=f.x.max),a<f.y.max&&(a=f.y.max)}),{x:{min:n,mid:(n+s)/2,max:s,size:s-n},y:{min:i,mid:(i+a)/2,max:a,size:a-i}}},shapeintersections:function(e,n,i,s,a){if(!re.bboxoverlap(n,s))return[];const u=[],f=[e.startcap,e.forward,e.back,e.endcap],h=[i.startcap,i.forward,i.back,i.endcap];return f.forEach(function(p){p.virtual||h.forEach(function(y){if(y.virtual)return;const v=p.intersects(y,a);v.length>0&&(v.c1=p,v.c2=y,v.s1=e,v.s2=i,u.push(v))})}),u},makeshape:function(e,n,i){const s=n.points.length,a=e.points.length,u=re.makeline(n.points[s-1],e.points[0]),f=re.makeline(e.points[a-1],n.points[0]),h={startcap:u,forward:e,back:n,endcap:f,bbox:re.findbbox([u,e,n,f])};return h.intersections=function(p){return re.shapeintersections(h,h.bbox,p,p.bbox,i)},h},getminmax:function(e,n,i){if(!i)return{min:0,max:0};let s=bc,a=Ec,u,f;i.indexOf(0)===-1&&(i=[0].concat(i)),i.indexOf(1)===-1&&i.push(1);for(let h=0,p=i.length;h<p;h++)u=i[h],f=e.get(u),f[n]<s&&(s=f[n]),f[n]>a&&(a=f[n]);return{min:s,mid:(s+a)/2,max:a,size:a-s}},align:function(e,n){const i=n.p1.x,s=n.p1.y,a=-Go(n.p2.y-s,n.p2.x-i),u=function(f){return{x:(f.x-i)*$n(a)-(f.y-s)*Di(a),y:(f.x-i)*Di(a)+(f.y-s)*$n(a)}};return e.map(u)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};const i=e.length-1,s=re.align(e,n),a=function(L){return 0<=L&&L<=1};if(i===2){const L=s[0].y,D=s[1].y,Q=s[2].y,K=L-2*D+Q;if(K!==0){const Z=-yr(D*D-L*Q),ie=-L+D,ce=-(Z+ie)/K,F=-(-Z+ie)/K;return[ce,F].filter(a)}else if(D!==Q&&K===0)return[(2*D-Q)/(2*D-2*Q)].filter(a);return[]}const u=s[0].y,f=s[1].y,h=s[2].y,p=s[3].y;let y=-u+3*f-3*h+p,v=3*u-6*f+3*h,g=-3*u+3*f,_=u;if(re.approximately(y,0)){if(re.approximately(v,0))return re.approximately(g,0)?[]:[-_/g].filter(a);const L=yr(g*g-4*v*_),D=2*v;return[(L-g)/D,(-g-L)/D].filter(a)}v/=y,g/=y,_/=y;const x=(3*g-v*v)/3,C=x/3,b=(2*v*v*v-9*v*g+27*_)/27,S=b/2,k=S*S+C*C*C;let O,A,P,T,z;if(k<0){const L=-x/3,D=L*L*L,Q=yr(D),K=-b/(2*Q),Z=K<-1?-1:K>1?1:K,ie=MC(Z),ce=Xo(Q),F=2*ce;return P=F*$n(ie/3)-v/3,T=F*$n((ie+Bl)/3)-v/3,z=F*$n((ie+2*Bl)/3)-v/3,[P,T,z].filter(a)}else{if(k===0)return O=S<0?Xo(-S):-Xo(S),P=2*O-v/3,T=-O-v/3,[P,T].filter(a);{const L=yr(k);return O=Xo(-S+L),A=Xo(S+L),[O-A-v/3].filter(a)}}},droots:function(e){if(e.length===3){const n=e[0],i=e[1],s=e[2],a=n-2*i+s;if(a!==0){const u=-yr(i*i-n*s),f=-n+i,h=-(u+f)/a,p=-(-u+f)/a;return[h,p]}else if(i!==s&&a===0)return[(2*i-s)/(2*(i-s))];return[]}if(e.length===2){const n=e[0],i=e[1];return n!==i?[n/(n-i)]:[]}return[]},curvature:function(e,n,i,s,a){let u,f,h,p,y=0,v=0;const g=re.compute(e,n),_=re.compute(e,i),x=g.x*g.x+g.y*g.y;if(s?(u=yr(Gt(g.y*_.z-_.y*g.z,2)+Gt(g.z*_.x-_.z*g.x,2)+Gt(g.x*_.y-_.x*g.y,2)),f=Gt(x+g.z*g.z,3/2)):(u=g.x*_.y-g.y*_.x,f=Gt(x,3/2)),u===0||f===0)return{k:0,r:0};if(y=u/f,v=f/u,!a){const C=re.curvature(e-.001,n,i,s,!0).k,b=re.curvature(e+.001,n,i,s,!0).k;p=(b-y+(y-C))/2,h=(Ko(b-y)+Ko(y-C))/2}return{k:y,r:v,dk:p,adk:h}},inflections:function(e){if(e.length<4)return[];const n=re.align(e,{p1:e[0],p2:e.slice(-1)[0]}),i=n[2].x*n[1].y,s=n[3].x*n[1].y,a=n[1].x*n[2].y,u=n[3].x*n[2].y,f=18*(-3*i+2*s+3*a-u),h=18*(3*i-s-3*a),p=18*(a-i);if(re.approximately(f,0)){if(!re.approximately(h,0)){let _=-p/h;if(0<=_&&_<=1)return[_]}return[]}const y=2*f;if(re.approximately(y,0))return[];const v=h*h-4*f*p;if(v<0)return[];const g=Math.sqrt(v);return[(g-h)/y,-(h+g)/y].filter(function(_){return 0<=_&&_<=1})},bboxoverlap:function(e,n){const i=["x","y"],s=i.length;for(let a=0,u,f,h,p;a<s;a++)if(u=i[a],f=e[u].mid,h=n[u].mid,p=(e[u].size+n[u].size)/2,Ko(f-h)>=p)return!1;return!0},expandbox:function(e,n){n.x.min<e.x.min&&(e.x.min=n.x.min),n.y.min<e.y.min&&(e.y.min=n.y.min),n.z&&n.z.min<e.z.min&&(e.z.min=n.z.min),n.x.max>e.x.max&&(e.x.max=n.x.max),n.y.max>e.y.max&&(e.y.max=n.y.max),n.z&&n.z.max>e.z.max&&(e.z.max=n.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,n,i){const s=e.bbox(),a=n.bbox(),u=1e5,f=i||.5;if(s.x.size+s.y.size<f&&a.x.size+a.y.size<f)return[(u*(e._t1+e._t2)/2|0)/u+"/"+(u*(n._t1+n._t2)/2|0)/u];let h=e.split(.5),p=n.split(.5),y=[{left:h.left,right:p.left},{left:h.left,right:p.right},{left:h.right,right:p.right},{left:h.right,right:p.left}];y=y.filter(function(g){return re.bboxoverlap(g.left.bbox(),g.right.bbox())});let v=[];return y.length===0||(y.forEach(function(g){v=v.concat(re.pairiteration(g.left,g.right,f))}),v=v.filter(function(g,_){return v.indexOf(g)===_})),v},getccenter:function(e,n,i){const s=n.x-e.x,a=n.y-e.y,u=i.x-n.x,f=i.y-n.y,h=s*$n(mr)-a*Di(mr),p=s*Di(mr)+a*$n(mr),y=u*$n(mr)-f*Di(mr),v=u*Di(mr)+f*$n(mr),g=(e.x+n.x)/2,_=(e.y+n.y)/2,x=(n.x+i.x)/2,C=(n.y+i.y)/2,b=g+h,S=_+p,k=x+y,O=C+v,A=re.lli8(g,_,b,S,x,C,k,O),P=re.dist(A,e);let T=Go(e.y-A.y,e.x-A.x),z=Go(n.y-A.y,n.x-A.x),L=Go(i.y-A.y,i.x-A.x),D;return T<L?((T>z||z>L)&&(T+=Bl),T>L&&(D=L,L=T,T=D)):L<z&&z<T?(D=L,L=T,T=D):L+=Bl,A.s=T,A.e=L,A.r=P,A},numberSort:function(e,n){return e-n}};class os{constructor(n){this.curves=[],this._3d=!1,n&&(this.curves=n,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map(function(n){return re.pointsToString(n.points)}).join(", ")+"]"}addCurve(n){this.curves.push(n),this._3d=this._3d||n._3d}length(){return this.curves.map(function(n){return n.length()}).reduce(function(n,i){return n+i})}curve(n){return this.curves[n]}bbox(){const n=this.curves;for(var i=n[0].bbox(),s=1;s<n.length;s++)re.expandbox(i,n[s].bbox());return i}offset(n){const i=[];return this.curves.forEach(function(s){i.push(...s.offset(n))}),new os(i)}}const{abs:Yo,min:Lg,max:Fg,cos:AC,sin:jC,acos:zC,sqrt:Zo}=Math,DC=Math.PI;class Ue{constructor(n){let i=n&&n.forEach?n:Array.from(arguments).slice(),s=!1;if(typeof i[0]=="object"){s=i.length;const x=[];i.forEach(function(C){["x","y","z"].forEach(function(b){typeof C[b]<"u"&&x.push(C[b])})}),i=x}let a=!1;const u=i.length;if(s){if(s>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");a=!0}}else if(u!==6&&u!==8&&u!==9&&u!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const f=this._3d=!a&&(u===9||u===12)||n&&n[0]&&typeof n[0].z<"u",h=this.points=[];for(let x=0,C=f?3:2;x<u;x+=C){var p={x:i[x],y:i[x+1]};f&&(p.z=i[x+2]),h.push(p)}const y=this.order=h.length-1,v=this.dims=["x","y"];f&&v.push("z"),this.dimlen=v.length;const g=re.align(h,{p1:h[0],p2:h[y]}),_=re.dist(h[0],h[y]);this._linear=g.reduce((x,C)=>x+Yo(C.y),0)<_/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(n,i,s,a){if(typeof a>"u"&&(a=.5),a===0)return new Ue(i,i,s);if(a===1)return new Ue(n,i,i);const u=Ue.getABC(2,n,i,s,a);return new Ue(n,u.A,s)}static cubicFromPoints(n,i,s,a,u){typeof a>"u"&&(a=.5);const f=Ue.getABC(3,n,i,s,a);typeof u>"u"&&(u=re.dist(i,f.C));const h=u*(1-a)/a,p=re.dist(n,s),y=(s.x-n.x)/p,v=(s.y-n.y)/p,g=u*y,_=u*v,x=h*y,C=h*v,b={x:i.x-g,y:i.y-_},S={x:i.x+x,y:i.y+C},k=f.A,O={x:k.x+(b.x-k.x)/(1-a),y:k.y+(b.y-k.y)/(1-a)},A={x:k.x+(S.x-k.x)/a,y:k.y+(S.y-k.y)/a},P={x:n.x+(O.x-n.x)/a,y:n.y+(O.y-n.y)/a},T={x:s.x+(A.x-s.x)/(1-a),y:s.y+(A.y-s.y)/(1-a)};return new Ue(n,P,T,s)}static getUtils(){return re}getUtils(){return Ue.getUtils()}static get PolyBezier(){return os}valueOf(){return this.toString()}toString(){return re.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const n=this.points,i=n[0].x,s=n[0].y,a=["M",i,s,this.order===2?"Q":"C"];for(let u=1,f=n.length;u<f;u++)a.push(n[u].x),a.push(n[u].y);return a.join(" ")}setRatios(n){if(n.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=n,this._lut=[]}verify(){const n=this.coordDigest();n!==this._print&&(this._print=n,this.update())}coordDigest(){return this.points.map(function(n,i){return""+i+n.x+n.y+(n.z?n.z:0)}).join("")}update(){this._lut=[],this.dpoints=re.derive(this.points,this._3d),this.computedirection()}computedirection(){const n=this.points,i=re.angle(n[0],n[this.order],n[1]);this.clockwise=i>0}length(){return re.length(this.derivative.bind(this))}static getABC(n=2,i,s,a,u=.5){const f=re.projectionratio(u,n),h=1-f,p={x:f*i.x+h*a.x,y:f*i.y+h*a.y},y=re.abcratio(u,n);return{A:{x:s.x+(s.x-p.x)/y,y:s.y+(s.y-p.y)/y},B:s,C:p,S:i,E:a}}getABC(n,i){i=i||this.get(n);let s=this.points[0],a=this.points[this.order];return Ue.getABC(this.order,s,i,a,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n+1)return this._lut;this._lut=[],n++,this._lut=[];for(let i=0,s,a;i<n;i++)a=i/(n-1),s=this.compute(a),s.t=a,this._lut.push(s);return this._lut}on(n,i){i=i||5;const s=this.getLUT(),a=[];for(let u=0,f,h=0;u<s.length;u++)f=s[u],re.dist(f,n)<i&&(a.push(f),h+=u/s.length);return a.length?t/=a.length:!1}project(n){const i=this.getLUT(),s=i.length-1,a=re.closest(i,n),u=a.mpos,f=(u-1)/s,h=(u+1)/s,p=.1/s;let y=a.mdist,v=f,g=v,_;y+=1;for(let x;v<h+p;v+=p)_=this.compute(v),x=re.dist(n,_),x<y&&(y=x,g=v);return g=g<0?0:g>1?1:g,_=this.compute(g),_.t=g,_.d=y,_}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?re.computeWithRatios(n,this.points,this.ratios,this._3d):re.compute(n,this.points,this._3d,this.ratios)}raise(){const n=this.points,i=[n[0]],s=n.length;for(let a=1,u,f;a<s;a++)u=n[a],f=n[a-1],i[a]={x:(s-a)/s*u.x+a/s*f.x,y:(s-a)/s*u.y+a/s*f.y};return i[s]=n[s-1],new Ue(i)}derivative(n){return re.compute(n,this.dpoints[0],this._3d)}dderivative(n){return re.compute(n,this.dpoints[1],this._3d)}align(){let n=this.points;return new Ue(re.align(n,{p1:n[0],p2:n[n.length-1]}))}curvature(n){return re.curvature(n,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return re.inflections(this.points)}normal(n){return this._3d?this.__normal3(n):this.__normal2(n)}__normal2(n){const i=this.derivative(n),s=Zo(i.x*i.x+i.y*i.y);return{t:n,x:-i.y/s,y:i.x/s}}__normal3(n){const i=this.derivative(n),s=this.derivative(n+.01),a=Zo(i.x*i.x+i.y*i.y+i.z*i.z),u=Zo(s.x*s.x+s.y*s.y+s.z*s.z);i.x/=a,i.y/=a,i.z/=a,s.x/=u,s.y/=u,s.z/=u;const f={x:s.y*i.z-s.z*i.y,y:s.z*i.x-s.x*i.z,z:s.x*i.y-s.y*i.x},h=Zo(f.x*f.x+f.y*f.y+f.z*f.z);f.x/=h,f.y/=h,f.z/=h;const p=[f.x*f.x,f.x*f.y-f.z,f.x*f.z+f.y,f.x*f.y+f.z,f.y*f.y,f.y*f.z-f.x,f.x*f.z-f.y,f.y*f.z+f.x,f.z*f.z];return{t:n,x:p[0]*i.x+p[1]*i.y+p[2]*i.z,y:p[3]*i.x+p[4]*i.y+p[5]*i.z,z:p[6]*i.x+p[7]*i.y+p[8]*i.z}}hull(n){let i=this.points,s=[],a=[],u=0;for(a[u++]=i[0],a[u++]=i[1],a[u++]=i[2],this.order===3&&(a[u++]=i[3]);i.length>1;){s=[];for(let f=0,h,p=i.length-1;f<p;f++)h=re.lerp(n,i[f],i[f+1]),a[u++]=h,s.push(h);i=s}return a}split(n,i){if(n===0&&i)return this.split(i).left;if(i===1)return this.split(n).right;const s=this.hull(n),a={left:this.order===2?new Ue([s[0],s[3],s[5]]):new Ue([s[0],s[4],s[7],s[9]]),right:this.order===2?new Ue([s[5],s[4],s[2]]):new Ue([s[9],s[8],s[6],s[3]]),span:s};return a.left._t1=re.map(0,0,1,this._t1,this._t2),a.left._t2=re.map(n,0,1,this._t1,this._t2),a.right._t1=re.map(n,0,1,this._t1,this._t2),a.right._t2=re.map(1,0,1,this._t1,this._t2),i?(i=re.map(i,n,1,0,1),a.right.split(i).left):a}extrema(){const n={};let i=[];return this.dims.forEach((function(s){let a=function(f){return f[s]},u=this.dpoints[0].map(a);n[s]=re.droots(u),this.order===3&&(u=this.dpoints[1].map(a),n[s]=n[s].concat(re.droots(u))),n[s]=n[s].filter(function(f){return f>=0&&f<=1}),i=i.concat(n[s].sort(re.numberSort))}).bind(this)),n.values=i.sort(re.numberSort).filter(function(s,a){return i.indexOf(s)===a}),n}bbox(){const n=this.extrema(),i={};return this.dims.forEach((function(s){i[s]=re.getminmax(this,s,n[s])}).bind(this)),i}overlaps(n){const i=this.bbox(),s=n.bbox();return re.bboxoverlap(i,s)}offset(n,i){if(typeof i<"u"){const s=this.get(n),a=this.normal(n),u={c:s,n:a,x:s.x+a.x*i,y:s.y+a.y*i};return this._3d&&(u.z=s.z+a.z*i),u}if(this._linear){const s=this.normal(0),a=this.points.map(function(u){const f={x:u.x+n*s.x,y:u.y+n*s.y};return u.z&&s.z&&(f.z=u.z+n*s.z),f});return[new Ue(a)]}return this.reduce().map(function(s){return s._linear?s.offset(n)[0]:s.scale(n)})}simple(){if(this.order===3){const a=re.angle(this.points[0],this.points[3],this.points[1]),u=re.angle(this.points[0],this.points[3],this.points[2]);if(a>0&&u<0||a<0&&u>0)return!1}const n=this.normal(0),i=this.normal(1);let s=n.x*i.x+n.y*i.y;return this._3d&&(s+=n.z*i.z),Yo(zC(s))<DC/3}reduce(){let n,i=0,s=0,a=.01,u,f=[],h=[],p=this.extrema().values;for(p.indexOf(0)===-1&&(p=[0].concat(p)),p.indexOf(1)===-1&&p.push(1),i=p[0],n=1;n<p.length;n++)s=p[n],u=this.split(i,s),u._t1=i,u._t2=s,f.push(u),i=s;return f.forEach(function(y){for(i=0,s=0;s<=1;)for(s=i+a;s<=1+a;s+=a)if(u=y.split(i,s),!u.simple()){if(s-=a,Yo(i-s)<a)return[];u=y.split(i,s),u._t1=re.map(i,0,1,y._t1,y._t2),u._t2=re.map(s,0,1,y._t1,y._t2),h.push(u),i=s;break}i<1&&(u=y.split(i,1),u._t1=re.map(i,0,1,y._t1,y._t2),u._t2=y._t2,h.push(u))}),h}translate(n,i,s){s=typeof s=="number"?s:i;const a=this.order;let u=this.points.map((f,h)=>(1-h/a)*i+h/a*s);return new Ue(this.points.map((f,h)=>({x:f.x+n.x*u[h],y:f.y+n.y*u[h]})))}scale(n){const i=this.order;let s=!1;if(typeof n=="function"&&(s=n),s&&i===2)return this.raise().scale(s);const a=this.clockwise,u=this.points;if(this._linear)return this.translate(this.normal(0),s?s(0):n,s?s(1):n);const f=s?s(0):n,h=s?s(1):n,p=[this.offset(0,10),this.offset(1,10)],y=[],v=re.lli4(p[0],p[0].c,p[1],p[1].c);if(!v)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(g){const _=y[g*i]=re.copy(u[g*i]);_.x+=(g?h:f)*p[g].n.x,_.y+=(g?h:f)*p[g].n.y}),s?([0,1].forEach(function(g){if(!(i===2&&g)){var _=u[g+1],x={x:_.x-v.x,y:_.y-v.y},C=s?s((g+1)/i):n;s&&!a&&(C=-C);var b=Zo(x.x*x.x+x.y*x.y);x.x/=b,x.y/=b,y[g+1]={x:_.x+C*x.x,y:_.y+C*x.y}}}),new Ue(y)):([0,1].forEach(g=>{if(i===2&&g)return;const _=y[g*i],x=this.derivative(g),C={x:_.x+x.x,y:_.y+x.y};y[g+1]=re.lli4(_,C,v,u[g+1])}),new Ue(y))}outline(n,i,s,a){if(i=i===void 0?n:i,this._linear){const T=this.normal(0),z=this.points[0],L=this.points[this.points.length-1];let D,Q,K;s===void 0&&(s=n,a=i),D={x:z.x+T.x*n,y:z.y+T.y*n},K={x:L.x+T.x*s,y:L.y+T.y*s},Q={x:(D.x+K.x)/2,y:(D.y+K.y)/2};const Z=[D,Q,K];D={x:z.x-T.x*i,y:z.y-T.y*i},K={x:L.x-T.x*a,y:L.y-T.y*a},Q={x:(D.x+K.x)/2,y:(D.y+K.y)/2};const ie=[K,Q,D],ce=re.makeline(ie[2],Z[0]),F=re.makeline(Z[2],ie[0]),te=[ce,new Ue(Z),F,new Ue(ie)];return new os(te)}const u=this.reduce(),f=u.length,h=[];let p=[],y,v=0,g=this.length();const _=typeof s<"u"&&typeof a<"u";function x(T,z,L,D,Q){return function(K){const Z=D/L,ie=(D+Q)/L,ce=z-T;return re.map(K,0,1,T+Z*ce,T+ie*ce)}}u.forEach(function(T){const z=T.length();_?(h.push(T.scale(x(n,s,g,v,z))),p.push(T.scale(x(-i,-a,g,v,z)))):(h.push(T.scale(n)),p.push(T.scale(-i))),v+=z}),p=p.map(function(T){return y=T.points,y[3]?T.points=[y[3],y[2],y[1],y[0]]:T.points=[y[2],y[1],y[0]],T}).reverse();const C=h[0].points[0],b=h[f-1].points[h[f-1].points.length-1],S=p[f-1].points[p[f-1].points.length-1],k=p[0].points[0],O=re.makeline(S,C),A=re.makeline(b,k),P=[O].concat(h).concat([A]).concat(p);return new os(P)}outlineshapes(n,i,s){i=i||n;const a=this.outline(n,i).curves,u=[];for(let f=1,h=a.length;f<h/2;f++){const p=re.makeshape(a[f],a[h-f],s);p.startcap.virtual=f>1,p.endcap.virtual=f<h/2-1,u.push(p)}return u}intersects(n,i){return n?n.p1&&n.p2?this.lineIntersects(n):(n instanceof Ue&&(n=n.reduce()),this.curveintersects(this.reduce(),n,i)):this.selfintersects(i)}lineIntersects(n){const i=Lg(n.p1.x,n.p2.x),s=Lg(n.p1.y,n.p2.y),a=Fg(n.p1.x,n.p2.x),u=Fg(n.p1.y,n.p2.y);return re.roots(this.points,n).filter(f=>{var h=this.get(f);return re.between(h.x,i,a)&&re.between(h.y,s,u)})}selfintersects(n){const i=this.reduce(),s=i.length-2,a=[];for(let u=0,f,h,p;u<s;u++)h=i.slice(u,u+1),p=i.slice(u+2),f=this.curveintersects(h,p,n),a.push(...f);return a}curveintersects(n,i,s){const a=[];n.forEach(function(f){i.forEach(function(h){f.overlaps(h)&&a.push({left:f,right:h})})});let u=[];return a.forEach(function(f){const h=re.pairiteration(f.left,f.right,s);h.length>0&&(u=u.concat(h))}),u}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,i,s,a){const u=(a-s)/4,f=this.get(s+u),h=this.get(a-u),p=re.dist(n,i),y=re.dist(n,f),v=re.dist(n,h);return Yo(y-p)+Yo(v-p)}_iterate(n,i){let s=0,a=1,u;do{u=0,a=1;let f=this.get(s),h,p,y,v,g=!1,_=!1,x,C=a,b=1;do if(_=g,v=y,C=(s+a)/2,h=this.get(C),p=this.get(a),y=re.getccenter(f,h,p),y.interval={start:s,end:a},g=this._error(y,f,s,a)<=n,x=_&&!g,x||(b=a),g){if(a>=1){if(y.interval.end=b=1,v=y,a>1){let k={x:y.x+y.r*AC(y.e),y:y.y+y.r*jC(y.e)};y.e+=re.angle({x:y.x,y:y.y},k,this.get(1))}break}a=a+(a-s)/2}else a=C;while(!x&&u++<100);if(u>=100)break;v=v||y,i.push(v),s=b}while(a<1);return i}}function uf(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function IC(e){if(Array.isArray(e))return e}function LC(e){if(Array.isArray(e))return uf(e)}function FC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $C(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function UC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
114
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
115
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qC(e,n){if(e==null)return{};var i,s,a=VC(e,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(s=0;s<u.length;s++)i=u[s],n.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}function VC(e,n){if(e==null)return{};var i={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(n.includes(s))continue;i[s]=e[s]}return i}function QC(e,n){return IC(e)||$C(e,n)||My(e,n)||UC()}function BC(e){return LC(e)||FC(e)||My(e)||HC()}function WC(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KC(e){var n=WC(e,"string");return typeof n=="symbol"?n:n+""}function My(e,n){if(e){if(typeof e=="string")return uf(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?uf(e,n):void 0}}var GC=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=(n instanceof Array?n.length?n:[void 0]:[n]).map(function(h){return{keyAccessor:h,isProp:!(h instanceof Function)}}),u=e.reduce(function(h,p){var y=h,v=p;return a.forEach(function(g,_){var x=g.keyAccessor,C=g.isProp,b;if(C){var S=v,k=S[x],O=qC(S,[x].map(KC));b=k,v=O}else b=x(v,_);_+1<a.length?(y.hasOwnProperty(b)||(y[b]={}),y=y[b]):i?(y.hasOwnProperty(b)||(y[b]=[]),y[b].push(v)):y[b]=v}),h},{});i instanceof Function&&function h(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;y===a.length?Object.keys(p).forEach(function(v){return p[v]=i(p[v])}):Object.values(p).forEach(function(v){return h(v,y+1)})}(u);var f=u;return s&&(f=[],function h(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];y.length===a.length?f.push({keys:y,vals:p}):Object.entries(p).forEach(function(v){var g=QC(v,2),_=g[0],x=g[1];return h(x,[].concat(BC(y),[_]))})}(u),n instanceof Array&&n.length===0&&f.length===1&&(f[0].keys=[])),f};function XC(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}const $g=Symbol("implicit");function Oy(){var e=new lg,n=[],i=[],s=$g;function a(u){let f=e.get(u);if(f===void 0){if(s!==$g)return s;e.set(u,f=n.push(u)-1)}return i[f%i.length]}return a.domain=function(u){if(!arguments.length)return n.slice();n=[],e=new lg;for(const f of u)e.has(f)||e.set(f,n.push(f)-1);return a},a.range=function(u){return arguments.length?(i=Array.from(u),a):i.slice()},a.unknown=function(u){return arguments.length?(s=u,a):s},a.copy=function(){return Oy(n,i).unknown(s)},XC.apply(a,arguments),a}function YC(e){for(var n=e.length/6|0,i=new Array(n),s=0;s<n;)i[s]="#"+e.slice(s*6,++s*6);return i}const ZC=YC("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");function JC(e,n){n===void 0&&(n={});var i=n.insertAt;if(!(typeof document>"u")){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",i==="top"&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var eb=`.force-graph-container canvas {
123
+ `;xS(wS);var kS=bf({props:{content:{default:!1},offsetX:{triggerUpdate:!1},offsetY:{triggerUpdate:!1}},init:function(n,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=s.style,u=a===void 0?{}:a,f=!!n&&ha(n)==="object"&&!!n.node&&typeof n.node=="function",h=Yt(f?n.node():n);h.style("position")==="static"&&h.style("position","relative"),i.tooltipEl=h.append("div").attr("class","float-tooltip-kap"),Object.entries(u).forEach(function(m){var v=pS(m,2),g=v[0],_=v[1];return i.tooltipEl.style(g,_)}),i.tooltipEl.style("left","-10000px").style("display","none");var p="tooltip-".concat(Math.round(Math.random()*1e12));i.mouseInside=!1,h.on("mousemove.".concat(p),function(m){i.mouseInside=!0;var v=wn(m),g=h.node(),_=g.offsetWidth,x=g.offsetHeight,C=[i.offsetX===null||i.offsetX===void 0?"-".concat(v[0]/_*100,"%"):typeof i.offsetX=="number"?"calc(-50% + ".concat(i.offsetX,"px)"):i.offsetX,i.offsetY===null||i.offsetY===void 0?x>130&&x-v[1]<100?"calc(-100% - 6px)":"21px":typeof i.offsetY=="number"?i.offsetY<0?"calc(-100% - ".concat(Math.abs(i.offsetY),"px)"):"".concat(i.offsetY,"px"):i.offsetY];i.tooltipEl.style("left",v[0]+"px").style("top",v[1]+"px").style("transform","translate(".concat(C.join(","),")")),i.content&&i.tooltipEl.style("display","inline")}),h.on("mouseover.".concat(p),function(){i.mouseInside=!0,i.content&&i.tooltipEl.style("display","inline")}),h.on("mouseout.".concat(p),function(){i.mouseInside=!1,i.tooltipEl.style("display","none")})},update:function(n){n.tooltipEl.style("display",n.content&&n.mouseInside?"inline":"none"),n.content?n.content instanceof HTMLElement?(n.tooltipEl.text(""),n.tooltipEl.append(function(){return n.content})):typeof n.content=="string"?n.tooltipEl.html(n.content):vS(n.content)?(n.tooltipEl.text(""),_S(n.content,n.tooltipEl.node())):(n.tooltipEl.style("display","none"),console.warn("Tooltip content is invalid, skipping.",n.content,n.content.toString())):n.tooltipEl.text("")}});function SS(e,n,i){var s,a=1;e==null&&(e=0),n==null&&(n=0),i==null&&(i=0);function u(){var f,h=s.length,p,m=0,v=0,g=0;for(f=0;f<h;++f)p=s[f],m+=p.x||0,v+=p.y||0,g+=p.z||0;for(m=(m/h-e)*a,v=(v/h-n)*a,g=(g/h-i)*a,f=0;f<h;++f)p=s[f],m&&(p.x-=m),v&&(p.y-=v),g&&(p.z-=g)}return u.initialize=function(f){s=f},u.x=function(f){return arguments.length?(e=+f,u):e},u.y=function(f){return arguments.length?(n=+f,u):n},u.z=function(f){return arguments.length?(i=+f,u):i},u.strength=function(f){return arguments.length?(a=+f,u):a},u}function CS(e){const n=+this._x.call(null,e);return Cm(this.cover(n),n,e)}function Cm(e,n,i){if(isNaN(n))return e;var s,a=e._root,u={data:i},f=e._x0,h=e._x1,p,m,v,g,_;if(!a)return e._root=u,e;for(;a.length;)if((v=n>=(p=(f+h)/2))?f=p:h=p,s=a,!(a=a[g=+v]))return s[g]=u,e;if(m=+e._x.call(null,a.data),n===m)return u.next=a,s?s[g]=u:e._root=u,e;do s=s?s[g]=new Array(2):e._root=new Array(2),(v=n>=(p=(f+h)/2))?f=p:h=p;while((g=+v)==(_=+(m>=p)));return s[_]=a,s[g]=u,e}function bS(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,i=new Float64Array(n);let s=1/0,a=-1/0;for(let u=0,f;u<n;++u)isNaN(f=+this._x.call(null,e[u]))||(i[u]=f,f<s&&(s=f),f>a&&(a=f));if(s>a)return this;this.cover(s).cover(a);for(let u=0;u<n;++u)Cm(this,i[u],e[u]);return this}function ES(e){if(isNaN(e=+e))return this;var n=this._x0,i=this._x1;if(isNaN(n))i=(n=Math.floor(e))+1;else{for(var s=i-n||1,a=this._root,u,f;n>e||e>=i;)switch(f=+(e<n),u=new Array(2),u[f]=a,a=u,s*=2,f){case 0:i=n+s;break;case 1:n=i-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._x1=i,this}function PS(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function NS(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function Wn(e,n,i){this.node=e,this.x0=n,this.x1=i}function TS(e,n){var i,s=this._x0,a,u,f=this._x1,h=[],p=this._root,m,v;for(p&&h.push(new Wn(p,s,f)),n==null?n=1/0:(s=e-n,f=e+n);m=h.pop();)if(!(!(p=m.node)||(a=m.x0)>f||(u=m.x1)<s))if(p.length){var g=(a+u)/2;h.push(new Wn(p[1],g,u),new Wn(p[0],a,g)),(v=+(e>=g))&&(m=h[h.length-1],h[h.length-1]=h[h.length-1-v],h[h.length-1-v]=m)}else{var _=Math.abs(e-+this._x.call(null,p.data));_<n&&(n=_,s=e-_,f=e+_,i=p.data)}return i}function MS(e){if(isNaN(p=+this._x.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._x1,p,m,v,g,_;if(!i)return this;if(i.length)for(;;){if((v=p>=(m=(f+h)/2))?f=m:h=m,n=i,!(i=i[g=+v]))return this;if(!i.length)break;n[g+1&1]&&(s=n,_=g)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[g]=u:delete n[g],(i=n[0]||n[1])&&i===(n[1]||n[0])&&!i.length&&(s?s[_]=i:this._root=i),this):(this._root=u,this)}function OS(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function RS(){return this._root}function AS(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function jS(e){var n=[],i,s=this._root,a,u,f;for(s&&n.push(new Wn(s,this._x0,this._x1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.x1)&&s.length){var h=(u+f)/2;(a=s[1])&&n.push(new Wn(a,h,f)),(a=s[0])&&n.push(new Wn(a,u,h))}return this}function zS(e){var n=[],i=[],s;for(this._root&&n.push(new Wn(this._root,this._x0,this._x1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.x1,p=(f+h)/2;(u=a[0])&&n.push(new Wn(u,f,p)),(u=a[1])&&n.push(new Wn(u,p,h))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.x1);return this}function DS(e){return e[0]}function IS(e){return arguments.length?(this._x=e,this):this._x}function bm(e,n){var i=new Mf(n??DS,NaN,NaN);return e==null?i:i.addAll(e)}function Mf(e,n,i){this._x=e,this._x0=n,this._x1=i,this._root=void 0}function Og(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var jt=bm.prototype=Mf.prototype;jt.copy=function(){var e=new Mf(this._x,this._x0,this._x1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=Og(n),e;for(i=[{source:n,target:e._root=new Array(2)}];n=i.pop();)for(var a=0;a<2;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(2)}):n.target[a]=Og(s));return e};jt.add=CS;jt.addAll=bS;jt.cover=ES;jt.data=PS;jt.extent=NS;jt.find=TS;jt.remove=MS;jt.removeAll=OS;jt.root=RS;jt.size=AS;jt.visit=jS;jt.visitAfter=zS;jt.x=IS;function LS(e){const n=+this._x.call(null,e),i=+this._y.call(null,e);return Em(this.cover(n,i),n,i,e)}function Em(e,n,i,s){if(isNaN(n)||isNaN(i))return e;var a,u=e._root,f={data:s},h=e._x0,p=e._y0,m=e._x1,v=e._y1,g,_,x,C,b,S,k,O;if(!u)return e._root=f,e;for(;u.length;)if((b=n>=(g=(h+m)/2))?h=g:m=g,(S=i>=(_=(p+v)/2))?p=_:v=_,a=u,!(u=u[k=S<<1|b]))return a[k]=f,e;if(x=+e._x.call(null,u.data),C=+e._y.call(null,u.data),n===x&&i===C)return f.next=u,a?a[k]=f:e._root=f,e;do a=a?a[k]=new Array(4):e._root=new Array(4),(b=n>=(g=(h+m)/2))?h=g:m=g,(S=i>=(_=(p+v)/2))?p=_:v=_;while((k=S<<1|b)===(O=(C>=_)<<1|x>=g));return a[O]=u,a[k]=f,e}function FS(e){var n,i,s=e.length,a,u,f=new Array(s),h=new Array(s),p=1/0,m=1/0,v=-1/0,g=-1/0;for(i=0;i<s;++i)isNaN(a=+this._x.call(null,n=e[i]))||isNaN(u=+this._y.call(null,n))||(f[i]=a,h[i]=u,a<p&&(p=a),a>v&&(v=a),u<m&&(m=u),u>g&&(g=u));if(p>v||m>g)return this;for(this.cover(p,m).cover(v,g),i=0;i<s;++i)Em(this,f[i],h[i],e[i]);return this}function $S(e,n){if(isNaN(e=+e)||isNaN(n=+n))return this;var i=this._x0,s=this._y0,a=this._x1,u=this._y1;if(isNaN(i))a=(i=Math.floor(e))+1,u=(s=Math.floor(n))+1;else{for(var f=a-i||1,h=this._root,p,m;i>e||e>=a||s>n||n>=u;)switch(m=(n<s)<<1|e<i,p=new Array(4),p[m]=h,h=p,f*=2,m){case 0:a=i+f,u=s+f;break;case 1:i=a-f,u=s+f;break;case 2:a=i+f,s=u-f;break;case 3:i=a-f,s=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=i,this._y0=s,this._x1=a,this._y1=u,this}function US(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function HS(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function wt(e,n,i,s,a){this.node=e,this.x0=n,this.y0=i,this.x1=s,this.y1=a}function VS(e,n,i){var s,a=this._x0,u=this._y0,f,h,p,m,v=this._x1,g=this._y1,_=[],x=this._root,C,b;for(x&&_.push(new wt(x,a,u,v,g)),i==null?i=1/0:(a=e-i,u=n-i,v=e+i,g=n+i,i*=i);C=_.pop();)if(!(!(x=C.node)||(f=C.x0)>v||(h=C.y0)>g||(p=C.x1)<a||(m=C.y1)<u))if(x.length){var S=(f+p)/2,k=(h+m)/2;_.push(new wt(x[3],S,k,p,m),new wt(x[2],f,k,S,m),new wt(x[1],S,h,p,k),new wt(x[0],f,h,S,k)),(b=(n>=k)<<1|e>=S)&&(C=_[_.length-1],_[_.length-1]=_[_.length-1-b],_[_.length-1-b]=C)}else{var O=e-+this._x.call(null,x.data),A=n-+this._y.call(null,x.data),P=O*O+A*A;if(P<i){var N=Math.sqrt(i=P);a=e-N,u=n-N,v=e+N,g=n+N,s=x.data}}return s}function qS(e){if(isNaN(v=+this._x.call(null,e))||isNaN(g=+this._y.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._y0,p=this._x1,m=this._y1,v,g,_,x,C,b,S,k;if(!i)return this;if(i.length)for(;;){if((C=v>=(_=(f+p)/2))?f=_:p=_,(b=g>=(x=(h+m)/2))?h=x:m=x,n=i,!(i=i[S=b<<1|C]))return this;if(!i.length)break;(n[S+1&3]||n[S+2&3]||n[S+3&3])&&(s=n,k=S)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[S]=u:delete n[S],(i=n[0]||n[1]||n[2]||n[3])&&i===(n[3]||n[2]||n[1]||n[0])&&!i.length&&(s?s[k]=i:this._root=i),this):(this._root=u,this)}function QS(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function BS(){return this._root}function WS(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function KS(e){var n=[],i,s=this._root,a,u,f,h,p;for(s&&n.push(new wt(s,this._x0,this._y0,this._x1,this._y1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.y0,h=i.x1,p=i.y1)&&s.length){var m=(u+h)/2,v=(f+p)/2;(a=s[3])&&n.push(new wt(a,m,v,h,p)),(a=s[2])&&n.push(new wt(a,u,v,m,p)),(a=s[1])&&n.push(new wt(a,m,f,h,v)),(a=s[0])&&n.push(new wt(a,u,f,m,v))}return this}function GS(e){var n=[],i=[],s;for(this._root&&n.push(new wt(this._root,this._x0,this._y0,this._x1,this._y1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.y0,p=s.x1,m=s.y1,v=(f+p)/2,g=(h+m)/2;(u=a[0])&&n.push(new wt(u,f,h,v,g)),(u=a[1])&&n.push(new wt(u,v,h,p,g)),(u=a[2])&&n.push(new wt(u,f,g,v,m)),(u=a[3])&&n.push(new wt(u,v,g,p,m))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.y0,s.x1,s.y1);return this}function XS(e){return e[0]}function YS(e){return arguments.length?(this._x=e,this):this._x}function ZS(e){return e[1]}function JS(e){return arguments.length?(this._y=e,this):this._y}function Pm(e,n,i){var s=new Of(n??XS,i??ZS,NaN,NaN,NaN,NaN);return e==null?s:s.addAll(e)}function Of(e,n,i,s,a,u){this._x=e,this._y=n,this._x0=i,this._y0=s,this._x1=a,this._y1=u,this._root=void 0}function Rg(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var kt=Pm.prototype=Of.prototype;kt.copy=function(){var e=new Of(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=Rg(n),e;for(i=[{source:n,target:e._root=new Array(4)}];n=i.pop();)for(var a=0;a<4;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(4)}):n.target[a]=Rg(s));return e};kt.add=LS;kt.addAll=FS;kt.cover=$S;kt.data=US;kt.extent=HS;kt.find=VS;kt.remove=qS;kt.removeAll=QS;kt.root=BS;kt.size=WS;kt.visit=KS;kt.visitAfter=GS;kt.x=YS;kt.y=JS;function eC(e){const n=+this._x.call(null,e),i=+this._y.call(null,e),s=+this._z.call(null,e);return Nm(this.cover(n,i,s),n,i,s,e)}function Nm(e,n,i,s,a){if(isNaN(n)||isNaN(i)||isNaN(s))return e;var u,f=e._root,h={data:a},p=e._x0,m=e._y0,v=e._z0,g=e._x1,_=e._y1,x=e._z1,C,b,S,k,O,A,P,N,z,F,D;if(!f)return e._root=h,e;for(;f.length;)if((P=n>=(C=(p+g)/2))?p=C:g=C,(N=i>=(b=(m+_)/2))?m=b:_=b,(z=s>=(S=(v+x)/2))?v=S:x=S,u=f,!(f=f[F=z<<2|N<<1|P]))return u[F]=h,e;if(k=+e._x.call(null,f.data),O=+e._y.call(null,f.data),A=+e._z.call(null,f.data),n===k&&i===O&&s===A)return h.next=f,u?u[F]=h:e._root=h,e;do u=u?u[F]=new Array(8):e._root=new Array(8),(P=n>=(C=(p+g)/2))?p=C:g=C,(N=i>=(b=(m+_)/2))?m=b:_=b,(z=s>=(S=(v+x)/2))?v=S:x=S;while((F=z<<2|N<<1|P)===(D=(A>=S)<<2|(O>=b)<<1|k>=C));return u[D]=f,u[F]=h,e}function tC(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,i=new Float64Array(n),s=new Float64Array(n),a=new Float64Array(n);let u=1/0,f=1/0,h=1/0,p=-1/0,m=-1/0,v=-1/0;for(let g=0,_,x,C,b;g<n;++g)isNaN(x=+this._x.call(null,_=e[g]))||isNaN(C=+this._y.call(null,_))||isNaN(b=+this._z.call(null,_))||(i[g]=x,s[g]=C,a[g]=b,x<u&&(u=x),x>p&&(p=x),C<f&&(f=C),C>m&&(m=C),b<h&&(h=b),b>v&&(v=b));if(u>p||f>m||h>v)return this;this.cover(u,f,h).cover(p,m,v);for(let g=0;g<n;++g)Nm(this,i[g],s[g],a[g],e[g]);return this}function nC(e,n,i){if(isNaN(e=+e)||isNaN(n=+n)||isNaN(i=+i))return this;var s=this._x0,a=this._y0,u=this._z0,f=this._x1,h=this._y1,p=this._z1;if(isNaN(s))f=(s=Math.floor(e))+1,h=(a=Math.floor(n))+1,p=(u=Math.floor(i))+1;else{for(var m=f-s||1,v=this._root,g,_;s>e||e>=f||a>n||n>=h||u>i||i>=p;)switch(_=(i<u)<<2|(n<a)<<1|e<s,g=new Array(8),g[_]=v,v=g,m*=2,_){case 0:f=s+m,h=a+m,p=u+m;break;case 1:s=f-m,h=a+m,p=u+m;break;case 2:f=s+m,a=h-m,p=u+m;break;case 3:s=f-m,a=h-m,p=u+m;break;case 4:f=s+m,h=a+m,u=p-m;break;case 5:s=f-m,h=a+m,u=p-m;break;case 6:f=s+m,a=h-m,u=p-m;break;case 7:s=f-m,a=h-m,u=p-m;break}this._root&&this._root.length&&(this._root=v)}return this._x0=s,this._y0=a,this._z0=u,this._x1=f,this._y1=h,this._z1=p,this}function rC(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function iC(e){return arguments.length?this.cover(+e[0][0],+e[0][1],+e[0][2]).cover(+e[1][0],+e[1][1],+e[1][2]):isNaN(this._x0)?void 0:[[this._x0,this._y0,this._z0],[this._x1,this._y1,this._z1]]}function Ie(e,n,i,s,a,u,f){this.node=e,this.x0=n,this.y0=i,this.z0=s,this.x1=a,this.y1=u,this.z1=f}function oC(e,n,i,s){var a,u=this._x0,f=this._y0,h=this._z0,p,m,v,g,_,x,C=this._x1,b=this._y1,S=this._z1,k=[],O=this._root,A,P;for(O&&k.push(new Ie(O,u,f,h,C,b,S)),s==null?s=1/0:(u=e-s,f=n-s,h=i-s,C=e+s,b=n+s,S=i+s,s*=s);A=k.pop();)if(!(!(O=A.node)||(p=A.x0)>C||(m=A.y0)>b||(v=A.z0)>S||(g=A.x1)<u||(_=A.y1)<f||(x=A.z1)<h))if(O.length){var N=(p+g)/2,z=(m+_)/2,F=(v+x)/2;k.push(new Ie(O[7],N,z,F,g,_,x),new Ie(O[6],p,z,F,N,_,x),new Ie(O[5],N,m,F,g,z,x),new Ie(O[4],p,m,F,N,z,x),new Ie(O[3],N,z,v,g,_,F),new Ie(O[2],p,z,v,N,_,F),new Ie(O[1],N,m,v,g,z,F),new Ie(O[0],p,m,v,N,z,F)),(P=(i>=F)<<2|(n>=z)<<1|e>=N)&&(A=k[k.length-1],k[k.length-1]=k[k.length-1-P],k[k.length-1-P]=A)}else{var D=e-+this._x.call(null,O.data),Q=n-+this._y.call(null,O.data),K=i-+this._z.call(null,O.data),Z=D*D+Q*Q+K*K;if(Z<s){var ie=Math.sqrt(s=Z);u=e-ie,f=n-ie,h=i-ie,C=e+ie,b=n+ie,S=i+ie,a=O.data}}return a}const sC=(e,n,i,s,a,u)=>Math.sqrt((e-s)**2+(n-a)**2+(i-u)**2);function lC(e,n,i,s){const a=[],u=e-s,f=n-s,h=i-s,p=e+s,m=n+s,v=i+s;return this.visit((g,_,x,C,b,S,k)=>{if(!g.length)do{const O=g.data;sC(e,n,i,this._x(O),this._y(O),this._z(O))<=s&&a.push(O)}while(g=g.next);return _>p||x>m||C>v||b<u||S<f||k<h}),a}function aC(e){if(isNaN(_=+this._x.call(null,e))||isNaN(x=+this._y.call(null,e))||isNaN(C=+this._z.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._y0,p=this._z0,m=this._x1,v=this._y1,g=this._z1,_,x,C,b,S,k,O,A,P,N,z;if(!i)return this;if(i.length)for(;;){if((O=_>=(b=(f+m)/2))?f=b:m=b,(A=x>=(S=(h+v)/2))?h=S:v=S,(P=C>=(k=(p+g)/2))?p=k:g=k,n=i,!(i=i[N=P<<2|A<<1|O]))return this;if(!i.length)break;(n[N+1&7]||n[N+2&7]||n[N+3&7]||n[N+4&7]||n[N+5&7]||n[N+6&7]||n[N+7&7])&&(s=n,z=N)}for(;i.data!==e;)if(a=i,!(i=i.next))return this;return(u=i.next)&&delete i.next,a?(u?a.next=u:delete a.next,this):n?(u?n[N]=u:delete n[N],(i=n[0]||n[1]||n[2]||n[3]||n[4]||n[5]||n[6]||n[7])&&i===(n[7]||n[6]||n[5]||n[4]||n[3]||n[2]||n[1]||n[0])&&!i.length&&(s?s[z]=i:this._root=i),this):(this._root=u,this)}function uC(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function cC(){return this._root}function fC(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function hC(e){var n=[],i,s=this._root,a,u,f,h,p,m,v;for(s&&n.push(new Ie(s,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));i=n.pop();)if(!e(s=i.node,u=i.x0,f=i.y0,h=i.z0,p=i.x1,m=i.y1,v=i.z1)&&s.length){var g=(u+p)/2,_=(f+m)/2,x=(h+v)/2;(a=s[7])&&n.push(new Ie(a,g,_,x,p,m,v)),(a=s[6])&&n.push(new Ie(a,u,_,x,g,m,v)),(a=s[5])&&n.push(new Ie(a,g,f,x,p,_,v)),(a=s[4])&&n.push(new Ie(a,u,f,x,g,_,v)),(a=s[3])&&n.push(new Ie(a,g,_,h,p,m,x)),(a=s[2])&&n.push(new Ie(a,u,_,h,g,m,x)),(a=s[1])&&n.push(new Ie(a,g,f,h,p,_,x)),(a=s[0])&&n.push(new Ie(a,u,f,h,g,_,x))}return this}function dC(e){var n=[],i=[],s;for(this._root&&n.push(new Ie(this._root,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1));s=n.pop();){var a=s.node;if(a.length){var u,f=s.x0,h=s.y0,p=s.z0,m=s.x1,v=s.y1,g=s.z1,_=(f+m)/2,x=(h+v)/2,C=(p+g)/2;(u=a[0])&&n.push(new Ie(u,f,h,p,_,x,C)),(u=a[1])&&n.push(new Ie(u,_,h,p,m,x,C)),(u=a[2])&&n.push(new Ie(u,f,x,p,_,v,C)),(u=a[3])&&n.push(new Ie(u,_,x,p,m,v,C)),(u=a[4])&&n.push(new Ie(u,f,h,C,_,x,g)),(u=a[5])&&n.push(new Ie(u,_,h,C,m,x,g)),(u=a[6])&&n.push(new Ie(u,f,x,C,_,v,g)),(u=a[7])&&n.push(new Ie(u,_,x,C,m,v,g))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.y0,s.z0,s.x1,s.y1,s.z1);return this}function pC(e){return e[0]}function gC(e){return arguments.length?(this._x=e,this):this._x}function mC(e){return e[1]}function yC(e){return arguments.length?(this._y=e,this):this._y}function vC(e){return e[2]}function _C(e){return arguments.length?(this._z=e,this):this._z}function Tm(e,n,i,s){var a=new Rf(n??pC,i??mC,s??vC,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?a:a.addAll(e)}function Rf(e,n,i,s,a,u,f,h,p){this._x=e,this._y=n,this._z=i,this._x0=s,this._y0=a,this._z0=u,this._x1=f,this._y1=h,this._z1=p,this._root=void 0}function Ag(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var lt=Tm.prototype=Rf.prototype;lt.copy=function(){var e=new Rf(this._x,this._y,this._z,this._x0,this._y0,this._z0,this._x1,this._y1,this._z1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=Ag(n),e;for(i=[{source:n,target:e._root=new Array(8)}];n=i.pop();)for(var a=0;a<8;++a)(s=n.source[a])&&(s.length?i.push({source:s,target:n.target[a]=new Array(8)}):n.target[a]=Ag(s));return e};lt.add=eC;lt.addAll=tC;lt.cover=nC;lt.data=rC;lt.extent=iC;lt.find=oC;lt.findAllWithinRadius=lC;lt.remove=aC;lt.removeAll=uC;lt.root=cC;lt.size=fC;lt.visit=hC;lt.visitAfter=dC;lt.x=gC;lt.y=yC;lt.z=_C;function Bn(e){return function(){return e}}function Hn(e){return(e()-.5)*1e-6}function xC(e){return e.index}function jg(e,n){var i=e.get(n);if(!i)throw new Error("node not found: "+n);return i}function wC(e){var n=xC,i=_,s,a=Bn(30),u,f,h,p,m,v,g=1;e==null&&(e=[]);function _(k){return 1/Math.min(p[k.source.index],p[k.target.index])}function x(k){for(var O=0,A=e.length;O<g;++O)for(var P=0,N,z,F,D=0,Q=0,K=0,Z,ie;P<A;++P)N=e[P],z=N.source,F=N.target,D=F.x+F.vx-z.x-z.vx||Hn(v),h>1&&(Q=F.y+F.vy-z.y-z.vy||Hn(v)),h>2&&(K=F.z+F.vz-z.z-z.vz||Hn(v)),Z=Math.sqrt(D*D+Q*Q+K*K),Z=(Z-u[P])/Z*k*s[P],D*=Z,Q*=Z,K*=Z,F.vx-=D*(ie=m[P]),h>1&&(F.vy-=Q*ie),h>2&&(F.vz-=K*ie),z.vx+=D*(ie=1-ie),h>1&&(z.vy+=Q*ie),h>2&&(z.vz+=K*ie)}function C(){if(f){var k,O=f.length,A=e.length,P=new Map(f.map((z,F)=>[n(z,F,f),z])),N;for(k=0,p=new Array(O);k<A;++k)N=e[k],N.index=k,typeof N.source!="object"&&(N.source=jg(P,N.source)),typeof N.target!="object"&&(N.target=jg(P,N.target)),p[N.source.index]=(p[N.source.index]||0)+1,p[N.target.index]=(p[N.target.index]||0)+1;for(k=0,m=new Array(A);k<A;++k)N=e[k],m[k]=p[N.source.index]/(p[N.source.index]+p[N.target.index]);s=new Array(A),b(),u=new Array(A),S()}}function b(){if(f)for(var k=0,O=e.length;k<O;++k)s[k]=+i(e[k],k,e)}function S(){if(f)for(var k=0,O=e.length;k<O;++k)u[k]=+a(e[k],k,e)}return x.initialize=function(k,...O){f=k,v=O.find(A=>typeof A=="function")||Math.random,h=O.find(A=>[1,2,3].includes(A))||2,C()},x.links=function(k){return arguments.length?(e=k,C(),x):e},x.id=function(k){return arguments.length?(n=k,x):n},x.iterations=function(k){return arguments.length?(g=+k,x):g},x.strength=function(k){return arguments.length?(i=typeof k=="function"?k:Bn(+k),b(),x):i},x.distance=function(k){return arguments.length?(a=typeof k=="function"?k:Bn(+k),S(),x):a},x}const kC=1664525,SC=1013904223,zg=4294967296;function CC(){let e=1;return()=>(e=(kC*e+SC)%zg)/zg}var Dg=3;function Cc(e){return e.x}function Ig(e){return e.y}function bC(e){return e.z}var EC=10,PC=Math.PI*(3-Math.sqrt(5)),NC=Math.PI*20/(9+Math.sqrt(221));function TC(e,n){n=n||2;var i=Math.min(Dg,Math.max(1,Math.round(n))),s,a=1,u=.001,f=1-Math.pow(u,1/300),h=0,p=.6,m=new Map,v=wf(x),g=ws("tick","end"),_=CC();e==null&&(e=[]);function x(){C(),g.call("tick",s),a<u&&(v.stop(),g.call("end",s))}function C(k){var O,A=e.length,P;k===void 0&&(k=1);for(var N=0;N<k;++N)for(a+=(h-a)*f,m.forEach(function(z){z(a)}),O=0;O<A;++O)P=e[O],P.fx==null?P.x+=P.vx*=p:(P.x=P.fx,P.vx=0),i>1&&(P.fy==null?P.y+=P.vy*=p:(P.y=P.fy,P.vy=0)),i>2&&(P.fz==null?P.z+=P.vz*=p:(P.z=P.fz,P.vz=0));return s}function b(){for(var k=0,O=e.length,A;k<O;++k){if(A=e[k],A.index=k,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),A.fz!=null&&(A.z=A.fz),isNaN(A.x)||i>1&&isNaN(A.y)||i>2&&isNaN(A.z)){var P=EC*(i>2?Math.cbrt(.5+k):i>1?Math.sqrt(.5+k):k),N=k*PC,z=k*NC;i===1?A.x=P:i===2?(A.x=P*Math.cos(N),A.y=P*Math.sin(N)):(A.x=P*Math.sin(N)*Math.cos(z),A.y=P*Math.cos(N),A.z=P*Math.sin(N)*Math.sin(z))}(isNaN(A.vx)||i>1&&isNaN(A.vy)||i>2&&isNaN(A.vz))&&(A.vx=0,i>1&&(A.vy=0),i>2&&(A.vz=0))}}function S(k){return k.initialize&&k.initialize(e,_,i),k}return b(),s={tick:C,restart:function(){return v.restart(x),s},stop:function(){return v.stop(),s},numDimensions:function(k){return arguments.length?(i=Math.min(Dg,Math.max(1,Math.round(k))),m.forEach(S),s):i},nodes:function(k){return arguments.length?(e=k,b(),m.forEach(S),s):e},alpha:function(k){return arguments.length?(a=+k,s):a},alphaMin:function(k){return arguments.length?(u=+k,s):u},alphaDecay:function(k){return arguments.length?(f=+k,s):+f},alphaTarget:function(k){return arguments.length?(h=+k,s):h},velocityDecay:function(k){return arguments.length?(p=1-k,s):1-p},randomSource:function(k){return arguments.length?(_=k,m.forEach(S),s):_},force:function(k,O){return arguments.length>1?(O==null?m.delete(k):m.set(k,S(O)),s):m.get(k)},find:function(){var k=Array.prototype.slice.call(arguments),O=k.shift()||0,A=(i>1?k.shift():null)||0,P=(i>2?k.shift():null)||0,N=k.shift()||1/0,z=0,F=e.length,D,Q,K,Z,ie,ce;for(N*=N,z=0;z<F;++z)ie=e[z],D=O-ie.x,Q=A-(ie.y||0),K=P-(ie.z||0),Z=D*D+Q*Q+K*K,Z<N&&(ce=ie,N=Z);return ce},on:function(k,O){return arguments.length>1?(g.on(k,O),s):g.on(k)}}}function MC(){var e,n,i,s,a,u=Bn(-30),f,h=1,p=1/0,m=.81;function v(C){var b,S=e.length,k=(n===1?bm(e,Cc):n===2?Pm(e,Cc,Ig):n===3?Tm(e,Cc,Ig,bC):null).visitAfter(_);for(a=C,b=0;b<S;++b)i=e[b],k.visit(x)}function g(){if(e){var C,b=e.length,S;for(f=new Array(b),C=0;C<b;++C)S=e[C],f[S.index]=+u(S,C,e)}}function _(C){var b=0,S,k,O=0,A,P,N,z,F=C.length;if(F){for(A=P=N=z=0;z<F;++z)(S=C[z])&&(k=Math.abs(S.value))&&(b+=S.value,O+=k,A+=k*(S.x||0),P+=k*(S.y||0),N+=k*(S.z||0));b*=Math.sqrt(4/F),C.x=A/O,n>1&&(C.y=P/O),n>2&&(C.z=N/O)}else{S=C,S.x=S.data.x,n>1&&(S.y=S.data.y),n>2&&(S.z=S.data.z);do b+=f[S.data.index];while(S=S.next)}C.value=b}function x(C,b,S,k,O){if(!C.value)return!0;var A=[S,k,O][n-1],P=C.x-i.x,N=n>1?C.y-i.y:0,z=n>2?C.z-i.z:0,F=A-b,D=P*P+N*N+z*z;if(F*F/m<D)return D<p&&(P===0&&(P=Hn(s),D+=P*P),n>1&&N===0&&(N=Hn(s),D+=N*N),n>2&&z===0&&(z=Hn(s),D+=z*z),D<h&&(D=Math.sqrt(h*D)),i.vx+=P*C.value*a/D,n>1&&(i.vy+=N*C.value*a/D),n>2&&(i.vz+=z*C.value*a/D)),!0;if(C.length||D>=p)return;(C.data!==i||C.next)&&(P===0&&(P=Hn(s),D+=P*P),n>1&&N===0&&(N=Hn(s),D+=N*N),n>2&&z===0&&(z=Hn(s),D+=z*z),D<h&&(D=Math.sqrt(h*D)));do C.data!==i&&(F=f[C.data.index]*a/D,i.vx+=P*F,n>1&&(i.vy+=N*F),n>2&&(i.vz+=z*F));while(C=C.next)}return v.initialize=function(C,...b){e=C,s=b.find(S=>typeof S=="function")||Math.random,n=b.find(S=>[1,2,3].includes(S))||2,g()},v.strength=function(C){return arguments.length?(u=typeof C=="function"?C:Bn(+C),g(),v):u},v.distanceMin=function(C){return arguments.length?(h=C*C,v):Math.sqrt(h)},v.distanceMax=function(C){return arguments.length?(p=C*C,v):Math.sqrt(p)},v.theta=function(C){return arguments.length?(m=C*C,v):Math.sqrt(m)},v}function OC(e,n,i,s){var a,u,f=Bn(.1),h,p;typeof e!="function"&&(e=Bn(+e)),n==null&&(n=0),i==null&&(i=0),s==null&&(s=0);function m(g){for(var _=0,x=a.length;_<x;++_){var C=a[_],b=C.x-n||1e-6,S=(C.y||0)-i||1e-6,k=(C.z||0)-s||1e-6,O=Math.sqrt(b*b+S*S+k*k),A=(p[_]-O)*h[_]*g/O;C.vx+=b*A,u>1&&(C.vy+=S*A),u>2&&(C.vz+=k*A)}}function v(){if(a){var g,_=a.length;for(h=new Array(_),p=new Array(_),g=0;g<_;++g)p[g]=+e(a[g],g,a),h[g]=isNaN(p[g])?0:+f(a[g],g,a)}}return m.initialize=function(g,..._){a=g,u=_.find(x=>[1,2,3].includes(x))||2,v()},m.strength=function(g){return arguments.length?(f=typeof g=="function"?g:Bn(+g),v(),m):f},m.radius=function(g){return arguments.length?(e=typeof g=="function"?g:Bn(+g),v(),m):e},m.x=function(g){return arguments.length?(n=+g,m):n},m.y=function(g){return arguments.length?(i=+g,m):i},m.z=function(g){return arguments.length?(s=+g,m):s},m}const{abs:Ko,cos:$n,sin:Di,acos:RC,atan2:Go,sqrt:yr,pow:Gt}=Math;function Xo(e){return e<0?-Gt(-e,1/3):Gt(e,1/3)}const Mm=Math.PI,Bl=2*Mm,vr=Mm/2,AC=1e-6,bc=Number.MAX_SAFE_INTEGER||9007199254740991,Ec=Number.MIN_SAFE_INTEGER||-9007199254740991,jC={x:0,y:0,z:0},re={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,n){const i=n(e);let s=i.x*i.x+i.y*i.y;return typeof i.z<"u"&&(s+=i.z*i.z),yr(s)},compute:function(e,n,i){if(e===0)return n[0].t=0,n[0];const s=n.length-1;if(e===1)return n[s].t=1,n[s];const a=1-e;let u=n;if(s===0)return n[0].t=e,n[0];if(s===1){const h={x:a*u[0].x+e*u[1].x,y:a*u[0].y+e*u[1].y,t:e};return i&&(h.z=a*u[0].z+e*u[1].z),h}if(s<4){let h=a*a,p=e*e,m,v,g,_=0;s===2?(u=[u[0],u[1],u[2],jC],m=h,v=a*e*2,g=p):s===3&&(m=h*a,v=h*e*3,g=a*p*3,_=e*p);const x={x:m*u[0].x+v*u[1].x+g*u[2].x+_*u[3].x,y:m*u[0].y+v*u[1].y+g*u[2].y+_*u[3].y,t:e};return i&&(x.z=m*u[0].z+v*u[1].z+g*u[2].z+_*u[3].z),x}const f=JSON.parse(JSON.stringify(n));for(;f.length>1;){for(let h=0;h<f.length-1;h++)f[h]={x:f[h].x+(f[h+1].x-f[h].x)*e,y:f[h].y+(f[h+1].y-f[h].y)*e},typeof f[h].z<"u"&&(f[h].z=f[h].z+(f[h+1].z-f[h].z)*e);f.splice(f.length-1,1)}return f[0].t=e,f[0]},computeWithRatios:function(e,n,i,s){const a=1-e,u=i,f=n;let h=u[0],p=u[1],m=u[2],v=u[3],g;if(h*=a,p*=e,f.length===2)return g=h+p,{x:(h*f[0].x+p*f[1].x)/g,y:(h*f[0].y+p*f[1].y)/g,z:s?(h*f[0].z+p*f[1].z)/g:!1,t:e};if(h*=a,p*=2*a,m*=e*e,f.length===3)return g=h+p+m,{x:(h*f[0].x+p*f[1].x+m*f[2].x)/g,y:(h*f[0].y+p*f[1].y+m*f[2].y)/g,z:s?(h*f[0].z+p*f[1].z+m*f[2].z)/g:!1,t:e};if(h*=a,p*=1.5*a,m*=3*a,v*=e*e*e,f.length===4)return g=h+p+m+v,{x:(h*f[0].x+p*f[1].x+m*f[2].x+v*f[3].x)/g,y:(h*f[0].y+p*f[1].y+m*f[2].y+v*f[3].y)/g,z:s?(h*f[0].z+p*f[1].z+m*f[2].z+v*f[3].z)/g:!1,t:e}},derive:function(e,n){const i=[];for(let s=e,a=s.length,u=a-1;a>1;a--,u--){const f=[];for(let h=0,p;h<u;h++)p={x:u*(s[h+1].x-s[h].x),y:u*(s[h+1].y-s[h].y)},n&&(p.z=u*(s[h+1].z-s[h].z)),f.push(p);i.push(f),s=f}return i},between:function(e,n,i){return n<=e&&e<=i||re.approximately(e,n)||re.approximately(e,i)},approximately:function(e,n,i){return Ko(e-n)<=(i||AC)},length:function(e){const i=re.Tvalues.length;let s=0;for(let a=0,u;a<i;a++)u=.5*re.Tvalues[a]+.5,s+=re.Cvalues[a]*re.arcfn(u,e);return .5*s},map:function(e,n,i,s,a){const u=i-n,f=a-s,h=e-n,p=h/u;return s+f*p},lerp:function(e,n,i){const s={x:n.x+e*(i.x-n.x),y:n.y+e*(i.y-n.y)};return n.z!==void 0&&i.z!==void 0&&(s.z=n.z+e*(i.z-n.z)),s},pointToString:function(e){let n=e.x+"/"+e.y;return typeof e.z<"u"&&(n+="/"+e.z),n},pointsToString:function(e){return"["+e.map(re.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,n,i){const s=n.x-e.x,a=n.y-e.y,u=i.x-e.x,f=i.y-e.y,h=s*f-a*u,p=s*u+a*f;return Go(h,p)},round:function(e,n){const i=""+e,s=i.indexOf(".");return parseFloat(i.substring(0,s+1+n))},dist:function(e,n){const i=e.x-n.x,s=e.y-n.y;return yr(i*i+s*s)},closest:function(e,n){let i=Gt(2,63),s,a;return e.forEach(function(u,f){a=re.dist(n,u),a<i&&(i=a,s=f)}),{mdist:i,mpos:s}},abcratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const i=Gt(e,n)+Gt(1-e,n),s=i-1;return Ko(s/i)},projectionratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const i=Gt(1-e,n),s=Gt(e,n)+i;return i/s},lli8:function(e,n,i,s,a,u,f,h){const p=(e*s-n*i)*(a-f)-(e-i)*(a*h-u*f),m=(e*s-n*i)*(u-h)-(n-s)*(a*h-u*f),v=(e-i)*(u-h)-(n-s)*(a-f);return v==0?!1:{x:p/v,y:m/v}},lli4:function(e,n,i,s){const a=e.x,u=e.y,f=n.x,h=n.y,p=i.x,m=i.y,v=s.x,g=s.y;return re.lli8(a,u,f,h,p,m,v,g)},lli:function(e,n){return re.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new Ue(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=bc,i=bc,s=Ec,a=Ec;return e.forEach(function(u){const f=u.bbox();n>f.x.min&&(n=f.x.min),i>f.y.min&&(i=f.y.min),s<f.x.max&&(s=f.x.max),a<f.y.max&&(a=f.y.max)}),{x:{min:n,mid:(n+s)/2,max:s,size:s-n},y:{min:i,mid:(i+a)/2,max:a,size:a-i}}},shapeintersections:function(e,n,i,s,a){if(!re.bboxoverlap(n,s))return[];const u=[],f=[e.startcap,e.forward,e.back,e.endcap],h=[i.startcap,i.forward,i.back,i.endcap];return f.forEach(function(p){p.virtual||h.forEach(function(m){if(m.virtual)return;const v=p.intersects(m,a);v.length>0&&(v.c1=p,v.c2=m,v.s1=e,v.s2=i,u.push(v))})}),u},makeshape:function(e,n,i){const s=n.points.length,a=e.points.length,u=re.makeline(n.points[s-1],e.points[0]),f=re.makeline(e.points[a-1],n.points[0]),h={startcap:u,forward:e,back:n,endcap:f,bbox:re.findbbox([u,e,n,f])};return h.intersections=function(p){return re.shapeintersections(h,h.bbox,p,p.bbox,i)},h},getminmax:function(e,n,i){if(!i)return{min:0,max:0};let s=bc,a=Ec,u,f;i.indexOf(0)===-1&&(i=[0].concat(i)),i.indexOf(1)===-1&&i.push(1);for(let h=0,p=i.length;h<p;h++)u=i[h],f=e.get(u),f[n]<s&&(s=f[n]),f[n]>a&&(a=f[n]);return{min:s,mid:(s+a)/2,max:a,size:a-s}},align:function(e,n){const i=n.p1.x,s=n.p1.y,a=-Go(n.p2.y-s,n.p2.x-i),u=function(f){return{x:(f.x-i)*$n(a)-(f.y-s)*Di(a),y:(f.x-i)*Di(a)+(f.y-s)*$n(a)}};return e.map(u)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};const i=e.length-1,s=re.align(e,n),a=function(F){return 0<=F&&F<=1};if(i===2){const F=s[0].y,D=s[1].y,Q=s[2].y,K=F-2*D+Q;if(K!==0){const Z=-yr(D*D-F*Q),ie=-F+D,ce=-(Z+ie)/K,$=-(-Z+ie)/K;return[ce,$].filter(a)}else if(D!==Q&&K===0)return[(2*D-Q)/(2*D-2*Q)].filter(a);return[]}const u=s[0].y,f=s[1].y,h=s[2].y,p=s[3].y;let m=-u+3*f-3*h+p,v=3*u-6*f+3*h,g=-3*u+3*f,_=u;if(re.approximately(m,0)){if(re.approximately(v,0))return re.approximately(g,0)?[]:[-_/g].filter(a);const F=yr(g*g-4*v*_),D=2*v;return[(F-g)/D,(-g-F)/D].filter(a)}v/=m,g/=m,_/=m;const x=(3*g-v*v)/3,C=x/3,b=(2*v*v*v-9*v*g+27*_)/27,S=b/2,k=S*S+C*C*C;let O,A,P,N,z;if(k<0){const F=-x/3,D=F*F*F,Q=yr(D),K=-b/(2*Q),Z=K<-1?-1:K>1?1:K,ie=RC(Z),ce=Xo(Q),$=2*ce;return P=$*$n(ie/3)-v/3,N=$*$n((ie+Bl)/3)-v/3,z=$*$n((ie+2*Bl)/3)-v/3,[P,N,z].filter(a)}else{if(k===0)return O=S<0?Xo(-S):-Xo(S),P=2*O-v/3,N=-O-v/3,[P,N].filter(a);{const F=yr(k);return O=Xo(-S+F),A=Xo(S+F),[O-A-v/3].filter(a)}}},droots:function(e){if(e.length===3){const n=e[0],i=e[1],s=e[2],a=n-2*i+s;if(a!==0){const u=-yr(i*i-n*s),f=-n+i,h=-(u+f)/a,p=-(-u+f)/a;return[h,p]}else if(i!==s&&a===0)return[(2*i-s)/(2*(i-s))];return[]}if(e.length===2){const n=e[0],i=e[1];return n!==i?[n/(n-i)]:[]}return[]},curvature:function(e,n,i,s,a){let u,f,h,p,m=0,v=0;const g=re.compute(e,n),_=re.compute(e,i),x=g.x*g.x+g.y*g.y;if(s?(u=yr(Gt(g.y*_.z-_.y*g.z,2)+Gt(g.z*_.x-_.z*g.x,2)+Gt(g.x*_.y-_.x*g.y,2)),f=Gt(x+g.z*g.z,3/2)):(u=g.x*_.y-g.y*_.x,f=Gt(x,3/2)),u===0||f===0)return{k:0,r:0};if(m=u/f,v=f/u,!a){const C=re.curvature(e-.001,n,i,s,!0).k,b=re.curvature(e+.001,n,i,s,!0).k;p=(b-m+(m-C))/2,h=(Ko(b-m)+Ko(m-C))/2}return{k:m,r:v,dk:p,adk:h}},inflections:function(e){if(e.length<4)return[];const n=re.align(e,{p1:e[0],p2:e.slice(-1)[0]}),i=n[2].x*n[1].y,s=n[3].x*n[1].y,a=n[1].x*n[2].y,u=n[3].x*n[2].y,f=18*(-3*i+2*s+3*a-u),h=18*(3*i-s-3*a),p=18*(a-i);if(re.approximately(f,0)){if(!re.approximately(h,0)){let _=-p/h;if(0<=_&&_<=1)return[_]}return[]}const m=2*f;if(re.approximately(m,0))return[];const v=h*h-4*f*p;if(v<0)return[];const g=Math.sqrt(v);return[(g-h)/m,-(h+g)/m].filter(function(_){return 0<=_&&_<=1})},bboxoverlap:function(e,n){const i=["x","y"],s=i.length;for(let a=0,u,f,h,p;a<s;a++)if(u=i[a],f=e[u].mid,h=n[u].mid,p=(e[u].size+n[u].size)/2,Ko(f-h)>=p)return!1;return!0},expandbox:function(e,n){n.x.min<e.x.min&&(e.x.min=n.x.min),n.y.min<e.y.min&&(e.y.min=n.y.min),n.z&&n.z.min<e.z.min&&(e.z.min=n.z.min),n.x.max>e.x.max&&(e.x.max=n.x.max),n.y.max>e.y.max&&(e.y.max=n.y.max),n.z&&n.z.max>e.z.max&&(e.z.max=n.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,n,i){const s=e.bbox(),a=n.bbox(),u=1e5,f=i||.5;if(s.x.size+s.y.size<f&&a.x.size+a.y.size<f)return[(u*(e._t1+e._t2)/2|0)/u+"/"+(u*(n._t1+n._t2)/2|0)/u];let h=e.split(.5),p=n.split(.5),m=[{left:h.left,right:p.left},{left:h.left,right:p.right},{left:h.right,right:p.right},{left:h.right,right:p.left}];m=m.filter(function(g){return re.bboxoverlap(g.left.bbox(),g.right.bbox())});let v=[];return m.length===0||(m.forEach(function(g){v=v.concat(re.pairiteration(g.left,g.right,f))}),v=v.filter(function(g,_){return v.indexOf(g)===_})),v},getccenter:function(e,n,i){const s=n.x-e.x,a=n.y-e.y,u=i.x-n.x,f=i.y-n.y,h=s*$n(vr)-a*Di(vr),p=s*Di(vr)+a*$n(vr),m=u*$n(vr)-f*Di(vr),v=u*Di(vr)+f*$n(vr),g=(e.x+n.x)/2,_=(e.y+n.y)/2,x=(n.x+i.x)/2,C=(n.y+i.y)/2,b=g+h,S=_+p,k=x+m,O=C+v,A=re.lli8(g,_,b,S,x,C,k,O),P=re.dist(A,e);let N=Go(e.y-A.y,e.x-A.x),z=Go(n.y-A.y,n.x-A.x),F=Go(i.y-A.y,i.x-A.x),D;return N<F?((N>z||z>F)&&(N+=Bl),N>F&&(D=F,F=N,N=D)):F<z&&z<N?(D=F,F=N,N=D):F+=Bl,A.s=N,A.e=F,A.r=P,A},numberSort:function(e,n){return e-n}};class os{constructor(n){this.curves=[],this._3d=!1,n&&(this.curves=n,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map(function(n){return re.pointsToString(n.points)}).join(", ")+"]"}addCurve(n){this.curves.push(n),this._3d=this._3d||n._3d}length(){return this.curves.map(function(n){return n.length()}).reduce(function(n,i){return n+i})}curve(n){return this.curves[n]}bbox(){const n=this.curves;for(var i=n[0].bbox(),s=1;s<n.length;s++)re.expandbox(i,n[s].bbox());return i}offset(n){const i=[];return this.curves.forEach(function(s){i.push(...s.offset(n))}),new os(i)}}const{abs:Yo,min:Lg,max:Fg,cos:zC,sin:DC,acos:IC,sqrt:Zo}=Math,LC=Math.PI;class Ue{constructor(n){let i=n&&n.forEach?n:Array.from(arguments).slice(),s=!1;if(typeof i[0]=="object"){s=i.length;const x=[];i.forEach(function(C){["x","y","z"].forEach(function(b){typeof C[b]<"u"&&x.push(C[b])})}),i=x}let a=!1;const u=i.length;if(s){if(s>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");a=!0}}else if(u!==6&&u!==8&&u!==9&&u!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const f=this._3d=!a&&(u===9||u===12)||n&&n[0]&&typeof n[0].z<"u",h=this.points=[];for(let x=0,C=f?3:2;x<u;x+=C){var p={x:i[x],y:i[x+1]};f&&(p.z=i[x+2]),h.push(p)}const m=this.order=h.length-1,v=this.dims=["x","y"];f&&v.push("z"),this.dimlen=v.length;const g=re.align(h,{p1:h[0],p2:h[m]}),_=re.dist(h[0],h[m]);this._linear=g.reduce((x,C)=>x+Yo(C.y),0)<_/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(n,i,s,a){if(typeof a>"u"&&(a=.5),a===0)return new Ue(i,i,s);if(a===1)return new Ue(n,i,i);const u=Ue.getABC(2,n,i,s,a);return new Ue(n,u.A,s)}static cubicFromPoints(n,i,s,a,u){typeof a>"u"&&(a=.5);const f=Ue.getABC(3,n,i,s,a);typeof u>"u"&&(u=re.dist(i,f.C));const h=u*(1-a)/a,p=re.dist(n,s),m=(s.x-n.x)/p,v=(s.y-n.y)/p,g=u*m,_=u*v,x=h*m,C=h*v,b={x:i.x-g,y:i.y-_},S={x:i.x+x,y:i.y+C},k=f.A,O={x:k.x+(b.x-k.x)/(1-a),y:k.y+(b.y-k.y)/(1-a)},A={x:k.x+(S.x-k.x)/a,y:k.y+(S.y-k.y)/a},P={x:n.x+(O.x-n.x)/a,y:n.y+(O.y-n.y)/a},N={x:s.x+(A.x-s.x)/(1-a),y:s.y+(A.y-s.y)/(1-a)};return new Ue(n,P,N,s)}static getUtils(){return re}getUtils(){return Ue.getUtils()}static get PolyBezier(){return os}valueOf(){return this.toString()}toString(){return re.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const n=this.points,i=n[0].x,s=n[0].y,a=["M",i,s,this.order===2?"Q":"C"];for(let u=1,f=n.length;u<f;u++)a.push(n[u].x),a.push(n[u].y);return a.join(" ")}setRatios(n){if(n.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=n,this._lut=[]}verify(){const n=this.coordDigest();n!==this._print&&(this._print=n,this.update())}coordDigest(){return this.points.map(function(n,i){return""+i+n.x+n.y+(n.z?n.z:0)}).join("")}update(){this._lut=[],this.dpoints=re.derive(this.points,this._3d),this.computedirection()}computedirection(){const n=this.points,i=re.angle(n[0],n[this.order],n[1]);this.clockwise=i>0}length(){return re.length(this.derivative.bind(this))}static getABC(n=2,i,s,a,u=.5){const f=re.projectionratio(u,n),h=1-f,p={x:f*i.x+h*a.x,y:f*i.y+h*a.y},m=re.abcratio(u,n);return{A:{x:s.x+(s.x-p.x)/m,y:s.y+(s.y-p.y)/m},B:s,C:p,S:i,E:a}}getABC(n,i){i=i||this.get(n);let s=this.points[0],a=this.points[this.order];return Ue.getABC(this.order,s,i,a,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n+1)return this._lut;this._lut=[],n++,this._lut=[];for(let i=0,s,a;i<n;i++)a=i/(n-1),s=this.compute(a),s.t=a,this._lut.push(s);return this._lut}on(n,i){i=i||5;const s=this.getLUT(),a=[];for(let u=0,f,h=0;u<s.length;u++)f=s[u],re.dist(f,n)<i&&(a.push(f),h+=u/s.length);return a.length?t/=a.length:!1}project(n){const i=this.getLUT(),s=i.length-1,a=re.closest(i,n),u=a.mpos,f=(u-1)/s,h=(u+1)/s,p=.1/s;let m=a.mdist,v=f,g=v,_;m+=1;for(let x;v<h+p;v+=p)_=this.compute(v),x=re.dist(n,_),x<m&&(m=x,g=v);return g=g<0?0:g>1?1:g,_=this.compute(g),_.t=g,_.d=m,_}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?re.computeWithRatios(n,this.points,this.ratios,this._3d):re.compute(n,this.points,this._3d,this.ratios)}raise(){const n=this.points,i=[n[0]],s=n.length;for(let a=1,u,f;a<s;a++)u=n[a],f=n[a-1],i[a]={x:(s-a)/s*u.x+a/s*f.x,y:(s-a)/s*u.y+a/s*f.y};return i[s]=n[s-1],new Ue(i)}derivative(n){return re.compute(n,this.dpoints[0],this._3d)}dderivative(n){return re.compute(n,this.dpoints[1],this._3d)}align(){let n=this.points;return new Ue(re.align(n,{p1:n[0],p2:n[n.length-1]}))}curvature(n){return re.curvature(n,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return re.inflections(this.points)}normal(n){return this._3d?this.__normal3(n):this.__normal2(n)}__normal2(n){const i=this.derivative(n),s=Zo(i.x*i.x+i.y*i.y);return{t:n,x:-i.y/s,y:i.x/s}}__normal3(n){const i=this.derivative(n),s=this.derivative(n+.01),a=Zo(i.x*i.x+i.y*i.y+i.z*i.z),u=Zo(s.x*s.x+s.y*s.y+s.z*s.z);i.x/=a,i.y/=a,i.z/=a,s.x/=u,s.y/=u,s.z/=u;const f={x:s.y*i.z-s.z*i.y,y:s.z*i.x-s.x*i.z,z:s.x*i.y-s.y*i.x},h=Zo(f.x*f.x+f.y*f.y+f.z*f.z);f.x/=h,f.y/=h,f.z/=h;const p=[f.x*f.x,f.x*f.y-f.z,f.x*f.z+f.y,f.x*f.y+f.z,f.y*f.y,f.y*f.z-f.x,f.x*f.z-f.y,f.y*f.z+f.x,f.z*f.z];return{t:n,x:p[0]*i.x+p[1]*i.y+p[2]*i.z,y:p[3]*i.x+p[4]*i.y+p[5]*i.z,z:p[6]*i.x+p[7]*i.y+p[8]*i.z}}hull(n){let i=this.points,s=[],a=[],u=0;for(a[u++]=i[0],a[u++]=i[1],a[u++]=i[2],this.order===3&&(a[u++]=i[3]);i.length>1;){s=[];for(let f=0,h,p=i.length-1;f<p;f++)h=re.lerp(n,i[f],i[f+1]),a[u++]=h,s.push(h);i=s}return a}split(n,i){if(n===0&&i)return this.split(i).left;if(i===1)return this.split(n).right;const s=this.hull(n),a={left:this.order===2?new Ue([s[0],s[3],s[5]]):new Ue([s[0],s[4],s[7],s[9]]),right:this.order===2?new Ue([s[5],s[4],s[2]]):new Ue([s[9],s[8],s[6],s[3]]),span:s};return a.left._t1=re.map(0,0,1,this._t1,this._t2),a.left._t2=re.map(n,0,1,this._t1,this._t2),a.right._t1=re.map(n,0,1,this._t1,this._t2),a.right._t2=re.map(1,0,1,this._t1,this._t2),i?(i=re.map(i,n,1,0,1),a.right.split(i).left):a}extrema(){const n={};let i=[];return this.dims.forEach((function(s){let a=function(f){return f[s]},u=this.dpoints[0].map(a);n[s]=re.droots(u),this.order===3&&(u=this.dpoints[1].map(a),n[s]=n[s].concat(re.droots(u))),n[s]=n[s].filter(function(f){return f>=0&&f<=1}),i=i.concat(n[s].sort(re.numberSort))}).bind(this)),n.values=i.sort(re.numberSort).filter(function(s,a){return i.indexOf(s)===a}),n}bbox(){const n=this.extrema(),i={};return this.dims.forEach((function(s){i[s]=re.getminmax(this,s,n[s])}).bind(this)),i}overlaps(n){const i=this.bbox(),s=n.bbox();return re.bboxoverlap(i,s)}offset(n,i){if(typeof i<"u"){const s=this.get(n),a=this.normal(n),u={c:s,n:a,x:s.x+a.x*i,y:s.y+a.y*i};return this._3d&&(u.z=s.z+a.z*i),u}if(this._linear){const s=this.normal(0),a=this.points.map(function(u){const f={x:u.x+n*s.x,y:u.y+n*s.y};return u.z&&s.z&&(f.z=u.z+n*s.z),f});return[new Ue(a)]}return this.reduce().map(function(s){return s._linear?s.offset(n)[0]:s.scale(n)})}simple(){if(this.order===3){const a=re.angle(this.points[0],this.points[3],this.points[1]),u=re.angle(this.points[0],this.points[3],this.points[2]);if(a>0&&u<0||a<0&&u>0)return!1}const n=this.normal(0),i=this.normal(1);let s=n.x*i.x+n.y*i.y;return this._3d&&(s+=n.z*i.z),Yo(IC(s))<LC/3}reduce(){let n,i=0,s=0,a=.01,u,f=[],h=[],p=this.extrema().values;for(p.indexOf(0)===-1&&(p=[0].concat(p)),p.indexOf(1)===-1&&p.push(1),i=p[0],n=1;n<p.length;n++)s=p[n],u=this.split(i,s),u._t1=i,u._t2=s,f.push(u),i=s;return f.forEach(function(m){for(i=0,s=0;s<=1;)for(s=i+a;s<=1+a;s+=a)if(u=m.split(i,s),!u.simple()){if(s-=a,Yo(i-s)<a)return[];u=m.split(i,s),u._t1=re.map(i,0,1,m._t1,m._t2),u._t2=re.map(s,0,1,m._t1,m._t2),h.push(u),i=s;break}i<1&&(u=m.split(i,1),u._t1=re.map(i,0,1,m._t1,m._t2),u._t2=m._t2,h.push(u))}),h}translate(n,i,s){s=typeof s=="number"?s:i;const a=this.order;let u=this.points.map((f,h)=>(1-h/a)*i+h/a*s);return new Ue(this.points.map((f,h)=>({x:f.x+n.x*u[h],y:f.y+n.y*u[h]})))}scale(n){const i=this.order;let s=!1;if(typeof n=="function"&&(s=n),s&&i===2)return this.raise().scale(s);const a=this.clockwise,u=this.points;if(this._linear)return this.translate(this.normal(0),s?s(0):n,s?s(1):n);const f=s?s(0):n,h=s?s(1):n,p=[this.offset(0,10),this.offset(1,10)],m=[],v=re.lli4(p[0],p[0].c,p[1],p[1].c);if(!v)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(g){const _=m[g*i]=re.copy(u[g*i]);_.x+=(g?h:f)*p[g].n.x,_.y+=(g?h:f)*p[g].n.y}),s?([0,1].forEach(function(g){if(!(i===2&&g)){var _=u[g+1],x={x:_.x-v.x,y:_.y-v.y},C=s?s((g+1)/i):n;s&&!a&&(C=-C);var b=Zo(x.x*x.x+x.y*x.y);x.x/=b,x.y/=b,m[g+1]={x:_.x+C*x.x,y:_.y+C*x.y}}}),new Ue(m)):([0,1].forEach(g=>{if(i===2&&g)return;const _=m[g*i],x=this.derivative(g),C={x:_.x+x.x,y:_.y+x.y};m[g+1]=re.lli4(_,C,v,u[g+1])}),new Ue(m))}outline(n,i,s,a){if(i=i===void 0?n:i,this._linear){const N=this.normal(0),z=this.points[0],F=this.points[this.points.length-1];let D,Q,K;s===void 0&&(s=n,a=i),D={x:z.x+N.x*n,y:z.y+N.y*n},K={x:F.x+N.x*s,y:F.y+N.y*s},Q={x:(D.x+K.x)/2,y:(D.y+K.y)/2};const Z=[D,Q,K];D={x:z.x-N.x*i,y:z.y-N.y*i},K={x:F.x-N.x*a,y:F.y-N.y*a},Q={x:(D.x+K.x)/2,y:(D.y+K.y)/2};const ie=[K,Q,D],ce=re.makeline(ie[2],Z[0]),$=re.makeline(Z[2],ie[0]),te=[ce,new Ue(Z),$,new Ue(ie)];return new os(te)}const u=this.reduce(),f=u.length,h=[];let p=[],m,v=0,g=this.length();const _=typeof s<"u"&&typeof a<"u";function x(N,z,F,D,Q){return function(K){const Z=D/F,ie=(D+Q)/F,ce=z-N;return re.map(K,0,1,N+Z*ce,N+ie*ce)}}u.forEach(function(N){const z=N.length();_?(h.push(N.scale(x(n,s,g,v,z))),p.push(N.scale(x(-i,-a,g,v,z)))):(h.push(N.scale(n)),p.push(N.scale(-i))),v+=z}),p=p.map(function(N){return m=N.points,m[3]?N.points=[m[3],m[2],m[1],m[0]]:N.points=[m[2],m[1],m[0]],N}).reverse();const C=h[0].points[0],b=h[f-1].points[h[f-1].points.length-1],S=p[f-1].points[p[f-1].points.length-1],k=p[0].points[0],O=re.makeline(S,C),A=re.makeline(b,k),P=[O].concat(h).concat([A]).concat(p);return new os(P)}outlineshapes(n,i,s){i=i||n;const a=this.outline(n,i).curves,u=[];for(let f=1,h=a.length;f<h/2;f++){const p=re.makeshape(a[f],a[h-f],s);p.startcap.virtual=f>1,p.endcap.virtual=f<h/2-1,u.push(p)}return u}intersects(n,i){return n?n.p1&&n.p2?this.lineIntersects(n):(n instanceof Ue&&(n=n.reduce()),this.curveintersects(this.reduce(),n,i)):this.selfintersects(i)}lineIntersects(n){const i=Lg(n.p1.x,n.p2.x),s=Lg(n.p1.y,n.p2.y),a=Fg(n.p1.x,n.p2.x),u=Fg(n.p1.y,n.p2.y);return re.roots(this.points,n).filter(f=>{var h=this.get(f);return re.between(h.x,i,a)&&re.between(h.y,s,u)})}selfintersects(n){const i=this.reduce(),s=i.length-2,a=[];for(let u=0,f,h,p;u<s;u++)h=i.slice(u,u+1),p=i.slice(u+2),f=this.curveintersects(h,p,n),a.push(...f);return a}curveintersects(n,i,s){const a=[];n.forEach(function(f){i.forEach(function(h){f.overlaps(h)&&a.push({left:f,right:h})})});let u=[];return a.forEach(function(f){const h=re.pairiteration(f.left,f.right,s);h.length>0&&(u=u.concat(h))}),u}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,i,s,a){const u=(a-s)/4,f=this.get(s+u),h=this.get(a-u),p=re.dist(n,i),m=re.dist(n,f),v=re.dist(n,h);return Yo(m-p)+Yo(v-p)}_iterate(n,i){let s=0,a=1,u;do{u=0,a=1;let f=this.get(s),h,p,m,v,g=!1,_=!1,x,C=a,b=1;do if(_=g,v=m,C=(s+a)/2,h=this.get(C),p=this.get(a),m=re.getccenter(f,h,p),m.interval={start:s,end:a},g=this._error(m,f,s,a)<=n,x=_&&!g,x||(b=a),g){if(a>=1){if(m.interval.end=b=1,v=m,a>1){let k={x:m.x+m.r*zC(m.e),y:m.y+m.r*DC(m.e)};m.e+=re.angle({x:m.x,y:m.y},k,this.get(1))}break}a=a+(a-s)/2}else a=C;while(!x&&u++<100);if(u>=100)break;v=v||m,i.push(v),s=b}while(a<1);return i}}function uf(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function FC(e){if(Array.isArray(e))return e}function $C(e){if(Array.isArray(e))return uf(e)}function UC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HC(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,m=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function VC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
124
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
125
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QC(e,n){if(e==null)return{};var i,s,a=BC(e,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(s=0;s<u.length;s++)i=u[s],n.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}function BC(e,n){if(e==null)return{};var i={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(n.includes(s))continue;i[s]=e[s]}return i}function WC(e,n){return FC(e)||HC(e,n)||Om(e,n)||VC()}function KC(e){return $C(e)||UC(e)||Om(e)||qC()}function GC(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function XC(e){var n=GC(e,"string");return typeof n=="symbol"?n:n+""}function Om(e,n){if(e){if(typeof e=="string")return uf(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?uf(e,n):void 0}}var YC=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=(n instanceof Array?n.length?n:[void 0]:[n]).map(function(h){return{keyAccessor:h,isProp:!(h instanceof Function)}}),u=e.reduce(function(h,p){var m=h,v=p;return a.forEach(function(g,_){var x=g.keyAccessor,C=g.isProp,b;if(C){var S=v,k=S[x],O=QC(S,[x].map(XC));b=k,v=O}else b=x(v,_);_+1<a.length?(m.hasOwnProperty(b)||(m[b]={}),m=m[b]):i?(m.hasOwnProperty(b)||(m[b]=[]),m[b].push(v)):m[b]=v}),h},{});i instanceof Function&&function h(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;m===a.length?Object.keys(p).forEach(function(v){return p[v]=i(p[v])}):Object.values(p).forEach(function(v){return h(v,m+1)})}(u);var f=u;return s&&(f=[],function h(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];m.length===a.length?f.push({keys:m,vals:p}):Object.entries(p).forEach(function(v){var g=WC(v,2),_=g[0],x=g[1];return h(x,[].concat(KC(m),[_]))})}(u),n instanceof Array&&n.length===0&&f.length===1&&(f[0].keys=[])),f};function ZC(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}const $g=Symbol("implicit");function Rm(){var e=new lg,n=[],i=[],s=$g;function a(u){let f=e.get(u);if(f===void 0){if(s!==$g)return s;e.set(u,f=n.push(u)-1)}return i[f%i.length]}return a.domain=function(u){if(!arguments.length)return n.slice();n=[],e=new lg;for(const f of u)e.has(f)||e.set(f,n.push(f)-1);return a},a.range=function(u){return arguments.length?(i=Array.from(u),a):i.slice()},a.unknown=function(u){return arguments.length?(s=u,a):s},a.copy=function(){return Rm(n,i).unknown(s)},ZC.apply(a,arguments),a}function JC(e){for(var n=e.length/6|0,i=new Array(n),s=0;s<n;)i[s]="#"+e.slice(s*6,++s*6);return i}const eb=JC("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");function tb(e,n){n===void 0&&(n={});var i=n.insertAt;if(!(typeof document>"u")){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",i==="top"&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var nb=`.force-graph-container canvas {
116
126
  display: block;
117
127
  user-select: none;
118
128
  outline: none;
@@ -135,6 +145,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
135
145
  cursor: -moz-grabbing;
136
146
  cursor: -webkit-grabbing;
137
147
  }
138
- `;JC(eb);function cf(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function tb(e){if(Array.isArray(e))return e}function nb(e){if(Array.isArray(e))return cf(e)}function Ug(e,n,i){if(Ry())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,n);var a=new(e.bind.apply(e,s));return a}function ps(e,n,i){return(n=ab(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Ry(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ry=function(){return!!e})()}function rb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ib(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,y=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){y=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(y)throw a}}return h}}function ob(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
139
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
140
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hg(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,s)}return i}function Ii(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Hg(Object(i),!0).forEach(function(s){ps(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Hg(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function ss(e,n){return tb(e)||ib(e,n)||Ay(e,n)||ob()}function Zt(e){return nb(e)||rb(e)||Ay(e)||sb()}function lb(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function ab(e){var n=lb(e,"string");return typeof n=="symbol"?n:n+""}function ff(e){"@babel/helpers - typeof";return ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ff(e)}function Ay(e,n){if(e){if(typeof e=="string")return cf(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?cf(e,n):void 0}}var ub=Oy(ZC);function qg(e,n,i){!n||typeof i!="string"||e.filter(function(s){return!s[i]}).forEach(function(s){s[i]=ub(n(s))})}function cb(e,n){var i=e.nodes,s=e.links,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=a.nodeFilter,f=u===void 0?function(){return!0}:u,h=a.onLoopError,p=h===void 0?function(x){throw"Invalid DAG structure! Found cycle in node path: ".concat(x.join(" -> "),".")}:h,y={};i.forEach(function(x){return y[n(x)]={data:x,out:[],depth:-1,skip:!f(x)}}),s.forEach(function(x){var C=x.source,b=x.target,S=P(C),k=P(b);if(!y.hasOwnProperty(S))throw"Missing source node with id: ".concat(S);if(!y.hasOwnProperty(k))throw"Missing target node with id: ".concat(k);var O=y[S],A=y[k];O.out.push(A);function P(T){return ff(T)==="object"?n(T):T}});var v=[];_(Object.values(y));var g=Object.assign.apply(Object,[{}].concat(Zt(Object.entries(y).filter(function(x){var C=ss(x,2),b=C[1];return!b.skip}).map(function(x){var C=ss(x,2),b=C[0],S=C[1];return ps({},b,S.depth)}))));return g;function _(x){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,S=function(){var P=x[k];if(C.indexOf(P)!==-1){var T=[].concat(Zt(C.slice(C.indexOf(P))),[P]).map(function(z){return n(z.data)});return v.some(function(z){return z.length===T.length&&z.every(function(L,D){return L===T[D]})})||(v.push(T),p(T)),1}b>P.depth&&(P.depth=b,_(P.out,[].concat(Zt(C),[P]),b+(P.skip?0:1)))},k=0,O=x.length;k<O;k++)S()}}var fb=2,dt=function(n,i){return i.onNeedsRedraw&&i.onNeedsRedraw()},Vg=function(n,i){if(!i.isShadow){var s=De(i.linkDirectionalParticles);i.graphData.links.forEach(function(a){var u=Math.round(Math.abs(s(a)));u?a.__photons=Zt(Array(u)).map(function(){return{}}):delete a.__photons})}},da=bf({props:{graphData:{default:{nodes:[],links:[]},onChange:function(n,i){i.engineRunning=!1,Vg(n,i)}},dagMode:{onChange:function(n,i){!n&&(i.graphData.nodes||[]).forEach(function(s){return s.fx=s.fy=void 0})}},dagLevelDistance:{},dagNodeFilter:{default:function(n){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:dt},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:dt},nodeColor:{default:"color",triggerUpdate:!1,onChange:dt},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:dt},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:dt},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:dt},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:dt},linkColor:{default:"color",triggerUpdate:!1,onChange:dt},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:dt},linkWidth:{default:1,triggerUpdate:!1,onChange:dt},linkCurvature:{default:0,triggerUpdate:!1,onChange:dt},linkCanvasObject:{triggerUpdate:!1,onChange:dt},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:dt},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:dt},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:dt},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:dt},linkDirectionalParticles:{default:0,triggerUpdate:!1,onChange:Vg},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:4,triggerUpdate:!1},linkDirectionalParticleColor:{triggerUpdate:!1},globalScale:{default:1,triggerUpdate:!1},d3AlphaMin:{default:0,triggerUpdate:!1},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(n,i){i.forceLayout.alphaDecay(n)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(n,i){i.forceLayout.alphaTarget(n)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(n,i){i.forceLayout.velocityDecay(n)}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1},onNeedsRedraw:{triggerUpdate:!1},isShadow:{default:!1,triggerUpdate:!1}},methods:{d3Force:function(n,i,s){return s===void 0?n.forceLayout.force(i):(n.forceLayout.force(i,s),this)},d3ReheatSimulation:function(n){return n.forceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(n){return n.cntTicks=0,n.startTickTime=new Date,n.engineRunning=!0,this},isEngineRunning:function(n){return!!n.engineRunning},tickFrame:function(n){return!n.isShadow&&i(),a(),!n.isShadow&&u(),!n.isShadow&&f(),s(),this;function i(){n.engineRunning&&(++n.cntTicks>n.cooldownTicks||new Date-n.startTickTime>n.cooldownTime||n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin?(n.engineRunning=!1,n.onEngineStop()):(n.forceLayout.tick(),n.onEngineTick()))}function s(){var h=De(n.nodeVisibility),p=De(n.nodeVal),y=De(n.nodeColor),v=De(n.nodeCanvasObjectMode),g=n.ctx,_=n.isShadow/n.globalScale,x=n.graphData.nodes.filter(h);g.save(),x.forEach(function(C){var b=v(C);if(n.nodeCanvasObject&&(b==="before"||b==="replace")&&(n.nodeCanvasObject(C,g,n.globalScale),b==="replace")){g.restore();return}var S=Math.sqrt(Math.max(0,p(C)||1))*n.nodeRelSize+_;g.beginPath(),g.arc(C.x,C.y,S,0,2*Math.PI,!1),g.fillStyle=y(C)||"rgba(31, 120, 180, 0.92)",g.fill(),n.nodeCanvasObject&&b==="after"&&n.nodeCanvasObject(C,n.ctx,n.globalScale)}),g.restore()}function a(){var h=De(n.linkVisibility),p=De(n.linkColor),y=De(n.linkWidth),v=De(n.linkLineDash),g=De(n.linkCurvature),_=De(n.linkCanvasObjectMode),x=n.ctx,C=n.isShadow*2,b=n.graphData.links.filter(h);b.forEach(z);var S=[],k=[],O=b;if(n.linkCanvasObject){var A=[],P=[];b.forEach(function(L){return({before:S,after:k,replace:A}[_(L)]||P).push(L)}),O=[].concat(Zt(S),k,P),S=S.concat(A)}x.save(),S.forEach(function(L){return n.linkCanvasObject(L,x,n.globalScale)}),x.restore();var T=GC(O,[p,y,v]);x.save(),Object.entries(T).forEach(function(L){var D=ss(L,2),Q=D[0],K=D[1],Z=!Q||Q==="undefined"?"rgba(0,0,0,0.15)":Q;Object.entries(K).forEach(function(ie){var ce=ss(ie,2),F=ce[0],te=ce[1],W=(F||1)/n.globalScale+C;Object.entries(te).forEach(function(oe){var B=ss(oe,2);B[0];var J=B[1],G=v(J[0]);x.beginPath(),J.forEach(function(R){var V=R.source,le=R.target;if(!(!V||!le||!V.hasOwnProperty("x")||!le.hasOwnProperty("x"))){x.moveTo(V.x,V.y);var ge=R.__controlPoints;ge?x[ge.length===2?"quadraticCurveTo":"bezierCurveTo"].apply(x,Zt(ge).concat([le.x,le.y])):x.lineTo(le.x,le.y)}}),x.strokeStyle=Z,x.lineWidth=W,x.setLineDash(G||[]),x.stroke()})})}),x.restore(),x.save(),k.forEach(function(L){return n.linkCanvasObject(L,x,n.globalScale)}),x.restore();function z(L){var D=g(L);if(!D){L.__controlPoints=null;return}var Q=L.source,K=L.target;if(!(!Q||!K||!Q.hasOwnProperty("x")||!K.hasOwnProperty("x"))){var Z=Math.sqrt(Math.pow(K.x-Q.x,2)+Math.pow(K.y-Q.y,2));if(Z>0){var ie=Math.atan2(K.y-Q.y,K.x-Q.x),ce=Z*D,F={x:(Q.x+K.x)/2+ce*Math.cos(ie-Math.PI/2),y:(Q.y+K.y)/2+ce*Math.sin(ie-Math.PI/2)};L.__controlPoints=[F.x,F.y]}else{var te=D*70;L.__controlPoints=[K.x,K.y-te,K.x+te,K.y]}}}}function u(){var h=1.6,p=.2,y=De(n.linkDirectionalArrowLength),v=De(n.linkDirectionalArrowRelPos),g=De(n.linkVisibility),_=De(n.linkDirectionalArrowColor||n.linkColor),x=De(n.nodeVal),C=n.ctx;C.save(),n.graphData.links.filter(g).forEach(function(b){var S=y(b);if(!(!S||S<0)){var k=b.source,O=b.target;if(!(!k||!O||!k.hasOwnProperty("x")||!O.hasOwnProperty("x"))){var A=Math.sqrt(Math.max(0,x(k)||1))*n.nodeRelSize,P=Math.sqrt(Math.max(0,x(O)||1))*n.nodeRelSize,T=Math.min(1,Math.max(0,v(b))),z=_(b)||"rgba(0,0,0,0.28)",L=S/h/2,D=b.__controlPoints&&Ug(Ue,[k.x,k.y].concat(Zt(b.__controlPoints),[O.x,O.y])),Q=D?function(W){return D.get(W)}:function(W){return{x:k.x+(O.x-k.x)*W||0,y:k.y+(O.y-k.y)*W||0}},K=D?D.length():Math.sqrt(Math.pow(O.x-k.x,2)+Math.pow(O.y-k.y,2)),Z=A+S+(K-A-P-S)*T,ie=Q(Z/K),ce=Q((Z-S)/K),F=Q((Z-S*(1-p))/K),te=Math.atan2(ie.y-ce.y,ie.x-ce.x)-Math.PI/2;C.beginPath(),C.moveTo(ie.x,ie.y),C.lineTo(ce.x+L*Math.cos(te),ce.y+L*Math.sin(te)),C.lineTo(F.x,F.y),C.lineTo(ce.x-L*Math.cos(te),ce.y-L*Math.sin(te)),C.fillStyle=z,C.fill()}}}),C.restore()}function f(){var h=De(n.linkDirectionalParticles),p=De(n.linkDirectionalParticleSpeed),y=De(n.linkDirectionalParticleWidth),v=De(n.linkVisibility),g=De(n.linkDirectionalParticleColor||n.linkColor),_=n.ctx;_.save(),n.graphData.links.filter(v).forEach(function(x){var C=h(x);if(!(!x.hasOwnProperty("__photons")||!x.__photons.length)){var b=x.source,S=x.target;if(!(!b||!S||!b.hasOwnProperty("x")||!S.hasOwnProperty("x"))){var k=p(x),O=x.__photons||[],A=Math.max(0,y(x)/2)/Math.sqrt(n.globalScale),P=g(x)||"rgba(0,0,0,0.28)";_.fillStyle=P;var T=x.__controlPoints?Ug(Ue,[b.x,b.y].concat(Zt(x.__controlPoints),[S.x,S.y])):null,z=0,L=!1;O.forEach(function(D){var Q=!!D.__singleHop;if(D.hasOwnProperty("__progressRatio")||(D.__progressRatio=Q?0:z/C),!Q&&z++,D.__progressRatio+=k,D.__progressRatio>=1)if(!Q)D.__progressRatio=D.__progressRatio%1;else{L=!0;return}var K=D.__progressRatio,Z=T?T.get(K):{x:b.x+(S.x-b.x)*K||0,y:b.y+(S.y-b.y)*K||0};_.beginPath(),_.arc(Z.x,Z.y,A,0,2*Math.PI,!1),_.fill()}),L&&(x.__photons=x.__photons.filter(function(D){return!D.__singleHop||D.__progressRatio<=1}))}}}),_.restore()}},emitParticle:function(n,i){return i&&(!i.__photons&&(i.__photons=[]),i.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:PC().force("link",_C()).force("charge",TC()).force("center",wS()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(n,i){i.ctx=n},update:function(n,i){n.engineRunning=!1,n.onUpdate(),n.nodeAutoColorBy!==null&&qg(n.graphData.nodes,De(n.nodeAutoColorBy),n.nodeColor),n.linkAutoColorBy!==null&&qg(n.graphData.links,De(n.linkAutoColorBy),n.linkColor),n.graphData.links.forEach(function(_){_.source=_[n.linkSource],_.target=_[n.linkTarget]}),n.forceLayout.stop().alpha(1).nodes(n.graphData.nodes);var s=n.forceLayout.force("link");s&&s.id(function(_){return _[n.nodeId]}).links(n.graphData.links);var a=n.dagMode&&cb(n.graphData,function(_){return _[n.nodeId]},{nodeFilter:n.dagNodeFilter,onLoopError:n.onDagError||void 0}),u=Math.max.apply(Math,Zt(Object.values(a||[]))),f=n.dagLevelDistance||n.graphData.nodes.length/(u||1)*fb*(["radialin","radialout"].indexOf(n.dagMode)!==-1?.7:1);if(["lr","rl","td","bu"].includes(i.dagMode)){var h=["lr","rl"].includes(i.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(_){return delete _[h]})}if(["lr","rl","td","bu"].includes(n.dagMode)){var p=["rl","bu"].includes(n.dagMode),y=function(x){return(a[x[n.nodeId]]-u/2)*f*(p?-1:1)},v=["lr","rl"].includes(n.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(_){return _[v]=y(_)})}n.forceLayout.force("dagRadial",["radialin","radialout"].indexOf(n.dagMode)!==-1?NC(function(_){var x=a[_[n.nodeId]]||-1;return(n.dagMode==="radialin"?u-x:x)*f}).strength(function(_){return n.dagNodeFilter(_)?1:0}):null);for(var g=0;g<n.warmupTicks&&!(n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin);g++)n.forceLayout.tick();this.resetCountdown(),n.onFinishUpdate()}});function jy(e,n){var i=e instanceof Array?e:[e],s=new n;return s._destructor&&s._destructor(),{linkProp:function(u){return{default:s[u](),onChange:function(h,p){i.forEach(function(y){return p[y][u](h)})},triggerUpdate:!1}},linkMethod:function(u){return function(f){for(var h=arguments.length,p=new Array(h>1?h-1:0),y=1;y<h;y++)p[y-1]=arguments[y];var v=[];return i.forEach(function(g){var _=f[g],x=_[u].apply(_,p);x!==_&&v.push(x)}),v.length?v[0]:this}}}}var hb=800,db=4,pb=5,zy=jy("forceGraph",da),gb=jy(["forceGraph","shadowGraph"],da),yb=Object.assign.apply(Object,Zt(["nodeColor","nodeAutoColorBy","nodeCanvasObject","nodeCanvasObjectMode","linkColor","linkAutoColorBy","linkLineDash","linkWidth","linkCanvasObject","linkCanvasObjectMode","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","dagMode","dagLevelDistance","dagNodeFilter","onDagError","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map(function(e){return ps({},e,zy.linkProp(e))})).concat(Zt(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map(function(e){return ps({},e,gb.linkProp(e))})))),mb=Object.assign.apply(Object,Zt(["d3Force","d3ReheatSimulation","emitParticle"].map(function(e){return ps({},e,zy.linkMethod(e))})));function Pc(e){if(e.canvas){var n=e.canvas.width,i=e.canvas.height;n===300&&i===150&&(n=i=0);var s=window.devicePixelRatio;n/=s,i/=s,[e.canvas,e.shadowCanvas].forEach(function(u){u.style.width="".concat(e.width,"px"),u.style.height="".concat(e.height,"px"),u.width=e.width*s,u.height=e.height*s,!n&&!i&&u.getContext("2d").scale(s,s)});var a=xn(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-n)/2/a,(e.height-i)/2/a),e.needsRedraw=!0}}function Dy(e){var n=window.devicePixelRatio;e.setTransform(n,0,0,n,0,0)}function Qg(e,n,i){e.save(),Dy(e),e.clearRect(0,0,n,i),e.restore()}var vb=bf({props:Ii({width:{default:window.innerWidth,onChange:function(n,i){return Pc(i)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(n,i){return Pc(i)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(n,i){[n.nodes,n.links].every(function(a){return(a||[]).every(function(u){return!u.hasOwnProperty("__indexColor")})})&&i.colorTracker.reset(),[{type:"Node",objs:n.nodes},{type:"Link",objs:n.links}].forEach(s),i.forceGraph.graphData(n),i.shadowGraph.graphData(n);function s(a){var u=a.type,f=a.objs;f.filter(function(h){if(!h.hasOwnProperty("__indexColor"))return!0;var p=i.colorTracker.lookup(h.__indexColor);return!p||!p.hasOwnProperty("d")||p.d!==h}).forEach(function(h){h.__indexColor=i.colorTracker.register({type:u,d:h})})}},triggerUpdate:!1},backgroundColor:{onChange:function(n,i){i.canvas&&n&&(i.canvas.style.background=n)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(n,i){i.shadowGraph.nodeCanvasObject(n?function(s,a,u){return n(s,s.__indexColor,a,u)}:null),i.flushShadowCanvas&&i.flushShadowCanvas()},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(n,i){i.shadowGraph.linkCanvasObject(n?function(s,a,u){return n(s,s.__indexColor,a,u)}:null),i.flushShadowCanvas&&i.flushShadowCanvas()},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(n,i){i.zoom.scaleExtent([n,i.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(n,i){i.zoom.scaleExtent([i.zoom.scaleExtent()[0],n])},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},enableZoomInteraction:{default:!0,triggerUpdate:!1},enablePanInteraction:{default:!0,triggerUpdate:!1},enableZoomPanInteraction:{default:!0,triggerUpdate:!1},enablePointerInteraction:{default:!0,onChange:function(n,i){i.hoverObj=null},triggerUpdate:!1},autoPauseRedraw:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1},onZoom:{triggerUpdate:!1},onZoomEnd:{triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},yb),aliases:{stopAnimation:"pauseAnimation"},methods:Ii({graph2ScreenCoords:function(n,i,s){var a=xn(n.canvas);return{x:i*a.k+a.x,y:s*a.k+a.y}},screen2GraphCoords:function(n,i,s){var a=xn(n.canvas);return{x:(i-a.x)/a.k,y:(s-a.y)/a.k}},centerAt:function(n,i,s,a){if(!n.canvas)return null;if(i!==void 0||s!==void 0){var u=Object.assign({},i!==void 0?{x:i}:{},s!==void 0?{y:s}:{});return a?n.tweenGroup.add(new pg(f()).to(u,a).easing(ii.Quadratic.Out).onUpdate(h).start()):h(u),this}return f();function f(){var p=xn(n.canvas);return{x:(n.width/2-p.x)/p.k,y:(n.height/2-p.y)/p.k}}function h(p){var y=p.x,v=p.y;n.zoom.translateTo(n.zoom.__baseElem,y===void 0?f().x:y,v===void 0?f().y:v),n.needsRedraw=!0}},zoom:function(n,i,s){if(!n.canvas)return null;if(i!==void 0)return s?n.tweenGroup.add(new pg({k:a()}).to({k:i},s).easing(ii.Quadratic.Out).onUpdate(function(f){var h=f.k;return u(h)}).start()):u(i),this;return a();function a(){return xn(n.canvas).k}function u(f){n.zoom.scaleTo(n.zoom.__baseElem,f),n.needsRedraw=!0}},zoomToFit:function(n){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,a=arguments.length,u=new Array(a>3?a-3:0),f=3;f<a;f++)u[f-3]=arguments[f];var h=this.getGraphBbox.apply(this,u);if(h){var p={x:(h.x[0]+h.x[1])/2,y:(h.y[0]+h.y[1])/2},y=Math.max(1e-12,Math.min(1e12,(n.width-s*2)/(h.x[1]-h.x[0]),(n.height-s*2)/(h.y[1]-h.y[0])));this.centerAt(p.x,p.y,i),this.zoom(y,i)}return this},getGraphBbox:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},s=De(n.nodeVal),a=function(h){return Math.sqrt(Math.max(0,s(h)||1))*n.nodeRelSize},u=n.graphData.nodes.filter(i).map(function(f){return{x:f.x,y:f.y,r:a(f)}});return u.length?{x:[cg(u,function(f){return f.x-f.r}),ug(u,function(f){return f.x+f.r})],y:[cg(u,function(f){return f.y-f.r}),ug(u,function(f){return f.y+f.r})]}:null},pauseAnimation:function(n){return n.animationFrameRequestId&&(cancelAnimationFrame(n.animationFrameRequestId),n.animationFrameRequestId=null),this},resumeAnimation:function(n){return n.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},mb),stateInit:function(){return{lastSetZoom:1,zoom:N2(),forceGraph:new da,shadowGraph:new da().cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new Jk,tweenGroup:new iy}},init:function(n,i){var s=this;n.innerHTML="";var a=document.createElement("div");a.classList.add("force-graph-container"),a.style.position="relative",n.appendChild(a),i.canvas=document.createElement("canvas"),i.backgroundColor&&(i.canvas.style.background=i.backgroundColor),a.appendChild(i.canvas),i.shadowCanvas=document.createElement("canvas");var u=i.canvas.getContext("2d"),f=i.shadowCanvas.getContext("2d",{willReadFrequently:!0}),h={x:-1e12,y:-1e12},p=function(){var g=null,_=window.devicePixelRatio,x=h.x>0&&h.y>0?f.getImageData(h.x*_,h.y*_,1,1):null;return x&&(g=i.colorTracker.lookup(x.data)),g};Yt(i.canvas).call(Fx().subject(function(){if(!i.enableNodeDrag)return null;var v=p();return v&&v.type==="Node"?v.d:null}).on("start",function(v){var g=v.subject;g.__initialDragPos={x:g.x,y:g.y,fx:g.fx,fy:g.fy},v.active||(g.fx=g.x,g.fy=g.y),i.canvas.classList.add("grabbable")}).on("drag",function(v){var g=v.subject,_=g.__initialDragPos,x=v,C=xn(i.canvas).k,b={x:_.x+(x.x-_.x)/C-g.x,y:_.y+(x.y-_.y)/C-g.y};["x","y"].forEach(function(S){return g["f".concat(S)]=g[S]=_[S]+(x[S]-_[S])/C}),!(!g.__dragged&&pb>=Math.sqrt(A2(["x","y"].map(function(S){return Math.pow(v[S]-_[S],2)}))))&&(i.forceGraph.d3AlphaTarget(.3).resetCountdown(),i.isPointerDragging=!0,g.__dragged=!0,i.onNodeDrag(g,b))}).on("end",function(v){var g=v.subject,_=g.__initialDragPos,x={x:g.x-_.x,y:g.y-_.y};_.fx===void 0&&(g.fx=void 0),_.fy===void 0&&(g.fy=void 0),delete g.__initialDragPos,i.forceGraph.d3AlphaTarget()&&i.forceGraph.d3AlphaTarget(0).resetCountdown(),i.canvas.classList.remove("grabbable"),i.isPointerDragging=!1,g.__dragged&&(delete g.__dragged,i.onNodeDragEnd(g,x))})),i.zoom(i.zoom.__baseElem=Yt(i.canvas)),i.zoom.__baseElem.on("dblclick.zoom",null),i.zoom.filter(function(v){return!v.button&&i.enableZoomPanInteraction&&(v.type!=="wheel"||De(i.enableZoomInteraction)(v))&&(v.type==="wheel"||De(i.enablePanInteraction)(v))}).on("zoom",function(v){var g=v.transform;[u,f].forEach(function(_){Dy(_),_.translate(g.x,g.y),_.scale(g.k,g.k)}),i.isPointerDragging=!0,i.onZoom&&i.onZoom(Ii(Ii({},g),s.centerAt())),i.needsRedraw=!0}).on("end",function(v){i.isPointerDragging=!1,i.onZoomEnd&&i.onZoomEnd(Ii(Ii({},v.transform),s.centerAt()))}),Pc(i),i.forceGraph.onNeedsRedraw(function(){return i.needsRedraw=!0}).onFinishUpdate(function(){xn(i.canvas).k===i.lastSetZoom&&i.graphData.nodes.length&&(i.zoom.scaleTo(i.zoom.__baseElem,i.lastSetZoom=db/Math.cbrt(i.graphData.nodes.length)),i.needsRedraw=!0)}),i.tooltip=new xS(a),["pointermove","pointerdown"].forEach(function(v){return a.addEventListener(v,function(g){v==="pointerdown"&&(i.isPointerPressed=!0,i.pointerDownEvent=g),!i.isPointerDragging&&g.type==="pointermove"&&i.onBackgroundClick&&(g.pressure>0||i.isPointerPressed)&&(g.pointerType!=="touch"||g.movementX===void 0||[g.movementX,g.movementY].some(function(C){return Math.abs(C)>1}))&&(i.isPointerDragging=!0);var _=x(a);h.x=g.pageX-_.left,h.y=g.pageY-_.top;function x(C){var b=C.getBoundingClientRect(),S=window.pageXOffset||document.documentElement.scrollLeft,k=window.pageYOffset||document.documentElement.scrollTop;return{top:b.top+k,left:b.left+S}}},{passive:!0})}),a.addEventListener("pointerup",function(v){if(i.isPointerPressed){if(i.isPointerPressed=!1,i.isPointerDragging){i.isPointerDragging=!1;return}var g=[v,i.pointerDownEvent];requestAnimationFrame(function(){if(v.button===0)if(i.hoverObj){var _=i["on".concat(i.hoverObj.type,"Click")];_&&_.apply(void 0,[i.hoverObj.d].concat(g))}else i.onBackgroundClick&&i.onBackgroundClick.apply(i,g);if(v.button===2)if(i.hoverObj){var x=i["on".concat(i.hoverObj.type,"RightClick")];x&&x.apply(void 0,[i.hoverObj.d].concat(g))}else i.onBackgroundRightClick&&i.onBackgroundRightClick.apply(i,g)})}},{passive:!0}),a.addEventListener("contextmenu",function(v){return!i.onBackgroundRightClick&&!i.onNodeRightClick&&!i.onLinkRightClick?!0:(v.preventDefault(),!1)}),i.forceGraph(u),i.shadowGraph(f);var y=sk(function(){Qg(f,i.width,i.height),i.shadowGraph.linkWidth(function(g){return De(i.linkWidth)(g)+i.linkHoverPrecision});var v=xn(i.canvas);i.shadowGraph.globalScale(v.k).tickFrame()},hb);i.flushShadowCanvas=y.flush,(this._animationCycle=function v(){var g=!i.autoPauseRedraw||!!i.needsRedraw||i.forceGraph.isEngineRunning()||i.graphData.links.some(function(A){return A.__photons&&A.__photons.length});if(i.needsRedraw=!1,i.enablePointerInteraction){var _=i.isPointerDragging?null:p();if(_!==i.hoverObj){var x=i.hoverObj,C=x?x.type:null,b=_?_.type:null;if(C&&C!==b){var S=i["on".concat(C,"Hover")];S&&S(null,x.d)}if(b){var k=i["on".concat(b,"Hover")];k&&k(_.d,C===b?x.d:null)}i.tooltip.content(_&&De(i["".concat(_.type.toLowerCase(),"Label")])(_.d)||null),i.canvas.classList[_&&i["on".concat(b,"Click")]||!_&&i.onBackgroundClick?"add":"remove"]("clickable"),i.hoverObj=_}g&&y()}if(g){Qg(u,i.width,i.height);var O=xn(i.canvas).k;i.onRenderFramePre&&i.onRenderFramePre(u,O),i.forceGraph.globalScale(O).tickFrame(),i.onRenderFramePost&&i.onRenderFramePost(u,O)}i.tweenGroup.update(),i.animationFrameRequestId=requestAnimationFrame(v)})()},update:function(n){}}),Tc={exports:{}},Nc,Bg;function _b(){if(Bg)return Nc;Bg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Nc=e,Nc}var Mc,Wg;function xb(){if(Wg)return Mc;Wg=1;var e=_b();function n(){}function i(){}return i.resetWarningCache=n,Mc=function(){function s(f,h,p,y,v,g){if(g!==e){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}s.isRequired=s;function a(){return s}var u={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:a,element:s,elementType:s,instanceOf:a,node:s,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:i,resetWarningCache:n};return u.PropTypes=u,u},Mc}var Kg;function wb(){return Kg||(Kg=1,Tc.exports=xb()()),Tc.exports}var kb=wb();const I=h0(kb),wa={width:I.number,height:I.number,graphData:I.shape({nodes:I.arrayOf(I.object).isRequired,links:I.arrayOf(I.object).isRequired}),backgroundColor:I.string,nodeRelSize:I.number,nodeId:I.string,nodeLabel:I.oneOfType([I.string,I.func]),nodeVal:I.oneOfType([I.number,I.string,I.func]),nodeVisibility:I.oneOfType([I.bool,I.string,I.func]),nodeColor:I.oneOfType([I.string,I.func]),nodeAutoColorBy:I.oneOfType([I.string,I.func]),onNodeHover:I.func,onNodeClick:I.func,linkSource:I.string,linkTarget:I.string,linkLabel:I.oneOfType([I.string,I.func]),linkVisibility:I.oneOfType([I.bool,I.string,I.func]),linkColor:I.oneOfType([I.string,I.func]),linkAutoColorBy:I.oneOfType([I.string,I.func]),linkWidth:I.oneOfType([I.number,I.string,I.func]),linkCurvature:I.oneOfType([I.number,I.string,I.func]),linkDirectionalArrowLength:I.oneOfType([I.number,I.string,I.func]),linkDirectionalArrowColor:I.oneOfType([I.string,I.func]),linkDirectionalArrowRelPos:I.oneOfType([I.number,I.string,I.func]),linkDirectionalParticles:I.oneOfType([I.number,I.string,I.func]),linkDirectionalParticleSpeed:I.oneOfType([I.number,I.string,I.func]),linkDirectionalParticleWidth:I.oneOfType([I.number,I.string,I.func]),linkDirectionalParticleColor:I.oneOfType([I.string,I.func]),onLinkHover:I.func,onLinkClick:I.func,dagMode:I.oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:I.number,dagNodeFilter:I.func,onDagError:I.func,d3AlphaMin:I.number,d3AlphaDecay:I.number,d3VelocityDecay:I.number,warmupTicks:I.number,cooldownTicks:I.number,cooldownTime:I.number,onEngineTick:I.func,onEngineStop:I.func,getGraphBbox:I.func},Iy={zoomToFit:I.func,onNodeRightClick:I.func,onNodeDrag:I.func,onNodeDragEnd:I.func,onLinkRightClick:I.func,linkHoverPrecision:I.number,onBackgroundClick:I.func,onBackgroundRightClick:I.func,enablePointerInteraction:I.bool,enableNodeDrag:I.bool},Af={showNavInfo:I.bool,nodeOpacity:I.number,nodeResolution:I.number,nodeThreeObject:I.oneOfType([I.object,I.string,I.func]),nodeThreeObjectExtend:I.oneOfType([I.bool,I.string,I.func]),linkOpacity:I.number,linkResolution:I.number,linkCurveRotation:I.oneOfType([I.number,I.string,I.func]),linkMaterial:I.oneOfType([I.object,I.string,I.func]),linkThreeObject:I.oneOfType([I.object,I.string,I.func]),linkThreeObjectExtend:I.oneOfType([I.bool,I.string,I.func]),linkPositionUpdate:I.func,linkDirectionalArrowResolution:I.number,linkDirectionalParticleResolution:I.number,forceEngine:I.oneOf(["d3","ngraph"]),ngraphPhysics:I.object,numDimensions:I.oneOf([1,2,3])},Sb=Object.assign({},wa,Iy,{linkLineDash:I.oneOfType([I.arrayOf(I.number),I.string,I.func]),nodeCanvasObjectMode:I.oneOfType([I.string,I.func]),nodeCanvasObject:I.func,nodePointerAreaPaint:I.func,linkCanvasObjectMode:I.oneOfType([I.string,I.func]),linkCanvasObject:I.func,linkPointerAreaPaint:I.func,autoPauseRedraw:I.bool,minZoom:I.number,maxZoom:I.number,enableZoomInteraction:I.oneOfType([I.bool,I.func]),enablePanInteraction:I.oneOfType([I.bool,I.func]),onZoom:I.func,onZoomEnd:I.func,onRenderFramePre:I.func,onRenderFramePost:I.func});Object.assign({},wa,Iy,Af,{enableNavigationControls:I.bool,controlType:I.oneOf(["trackball","orbit","fly"]),rendererConfig:I.object,extraRenderers:I.arrayOf(I.shape({render:I.func.isRequired}))});Object.assign({},wa,Af,{nodeDesc:I.oneOfType([I.string,I.func]),linkDesc:I.oneOfType([I.string,I.func])});Object.assign({},wa,Af,{markerAttrs:I.object,yOffset:I.number,glScale:I.number});const jf=Y1(vb,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});jf.displayName="ForceGraph2D";jf.propTypes=Sb;const Cb=e=>{const n=[],i=[];e.forEach(u=>{const f=u.metadata;if(!u.id||!f||typeof f!="object")return;const h={id:u.id,name:f.title||u.id.substring(0,8),memory:u,val:3,type:(f.type||"").toLowerCase()==="document"?"document":"fragment"};(f.type||"").toLowerCase()==="document"?(h.val=5,n.push(h)):(f.type||"").toLowerCase()==="fragment"||f.documentId&&(f.type||"").toLowerCase()!=="document"?(h.val=3,i.push(h)):n.push(h)});const s=[];return i.forEach(u=>{const f=u.memory.metadata;if(f.documentId){const h=n.find(p=>p.id===f.documentId);h&&s.push({source:h.id,target:u.id,value:1})}}),{nodes:[...n,...i],links:s}};function bb({memories:e,onNodeClick:n,selectedMemoryId:i}){const s=de.useRef(null),[a,u]=de.useState(!1),[f,h]=de.useState(!0),[p,y]=de.useState({nodes:[],links:[]}),v=de.useRef(null),[g,_]=de.useState({width:800,height:600}),x=4;de.useEffect(()=>{if(e.length>0){const S=Cb(e);y(S)}},[e]),de.useEffect(()=>()=>{s.current=null,u(!1),h(!1)},[]),de.useEffect(()=>{const S=()=>{if(v.current){const{offsetWidth:k,offsetHeight:O}=v.current;_({width:k,height:O})}};return S(),window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[]),de.useEffect(()=>{if(a&&s.current&&i){const S=p.nodes.find(k=>k.id===i);S&&(s.current.centerAt(S.x,S.y,1e3),s.current.zoom(2.5,1e3))}},[i,a,p.nodes]);const C=de.useCallback(S=>{if(s.current=S,S){const k=S.d3Force("charge");k&&k.strength(-120);const O=S.d3Force("link");O&&O.distance(50),S.zoomToFit(400),u(!0)}},[]),b=()=>$.jsxs("div",{className:"absolute top-4 right-4 p-3 bg-card/90 text-card-foreground border border-border rounded-md shadow-sm text-xs backdrop-blur-sm",children:[$.jsx("div",{className:"font-medium mb-2 text-xs",children:"Legend"}),$.jsxs("div",{className:"flex items-center mb-2",children:[$.jsx("div",{className:"w-3 h-3 rounded-full bg-orange-500/90 mr-2 border border-orange-600/60"}),$.jsx("span",{children:"Document"})]}),$.jsxs("div",{className:"flex items-center",children:[$.jsx("div",{className:"w-3 h-3 rounded-full bg-gray-400/90 mr-2 border border-gray-500/60"}),$.jsx("span",{children:"Fragment"})]})]});return $.jsxs("div",{ref:v,className:"w-full h-full relative",children:[b(),f&&$.jsx(jf,{ref:C,graphData:p,width:g.width,height:g.height,backgroundColor:"hsla(var(--background), 0.8)",linkColor:()=>"hsla(var(--muted-foreground), 0.2)",linkWidth:1,linkDirectionalParticles:1,linkDirectionalParticleWidth:1,linkDirectionalParticleSpeed:.003,nodeRelSize:x,nodeVal:S=>S.val||3,nodeColor:S=>S.type==="document"?"hsl(30, 100%, 50%)":"hsl(210, 10%, 70%)",nodeLabel:S=>{const k=S.memory.metadata;return`${S.type==="document"?"📄 Document":"📝 Fragment"}: ${k.title||S.id.substring(0,8)}`},onNodeClick:S=>{n(S.memory)},onNodeDragEnd:S=>{S.fx=S.x,S.fy=S.y},cooldownTicks:100,nodeCanvasObjectMode:S=>i===S.id?"after":"replace",nodeCanvasObject:(S,k,O)=>{const{x:A,y:P}=S,T=(S.val||3)*x,z=10/O,L=i===S.id,D=S.type==="document";if(k.beginPath(),k.arc(A||0,P||0,T,0,2*Math.PI),k.fillStyle=D?"hsl(30, 100%, 50%)":"hsl(210, 10%, 70%)",k.fill(),k.strokeStyle=D?"hsl(30, 100%, 35%)":"hsl(210, 10%, 45%)",k.lineWidth=L?2:1,k.stroke(),O>=1.4||L){const Q=S.name||S.id.substring(0,6),K=S.memory.metadata,Z=D?Q:K.position!==void 0?`#${K.position}`:Q;k.font=`${L?"bold ":""}${z}px Arial`,k.textAlign="center",k.textBaseline="middle",k.strokeStyle="hsla(var(--background), 0.8)",k.lineWidth=3,k.strokeText(Z,A||0,P||0),k.fillStyle="hsla(var(--foreground), 0.9)",k.fillText(Z,A||0,P||0)}if(L){k.beginPath(),k.arc(A||0,P||0,T*1.4,0,2*Math.PI),k.strokeStyle=D?"hsla(30, 100%, 60%, 0.8)":"hsla(210, 10%, 80%, 0.8)",k.lineWidth=1.5,k.stroke();const Q=k.createRadialGradient(A||0,P||0,T,A||0,P||0,T*2);Q.addColorStop(0,D?"hsla(30, 100%, 60%, 0.3)":"hsla(210, 10%, 80%, 0.3)"),Q.addColorStop(1,"hsla(0, 0%, 0%, 0)"),k.fillStyle=Q,k.beginPath(),k.arc(A||0,P||0,T*2,0,2*Math.PI),k.fill()}}})]})}const Cs=(...e)=>e.filter(Boolean).join(" "),Eb=()=>({toast:({title:e,description:n,variant:i})=>{console.log(`Toast: ${e} - ${n} (${i||"default"})`)}}),Gg=({open:e,onOpenChange:n,children:i})=>e?$.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm flex items-center justify-center p-4",onClick:()=>n(!1),children:$.jsx("div",{className:"bg-card text-card-foreground rounded-lg shadow-lg max-w-full max-h-full flex flex-col border border-border",onClick:s=>s.stopPropagation(),children:i})}):null,Xg=({className:e,children:n})=>$.jsx("div",{className:Cs("p-6 flex flex-col border-border",e),children:n}),Yg=({className:e,children:n})=>$.jsx("div",{className:Cs("mb-4",e),children:n}),Zg=({className:e,children:n})=>$.jsx("h2",{className:Cs("text-lg font-semibold",e),children:n}),Jg=({className:e,children:n})=>$.jsx("p",{className:Cs("text-sm text-muted-foreground",e),children:n}),e0=({className:e,children:n})=>$.jsx("div",{className:Cs("flex justify-end gap-2 mt-4",e),children:n}),Wl=10,gs={getKnowledgeDocuments:async(e,n)=>{const i=new URLSearchParams;n!=null&&n.limit&&i.append("limit",n.limit.toString()),n!=null&&n.before&&i.append("before",n.before.toString()),n!=null&&n.includeEmbedding&&i.append("includeEmbedding","true");const s=await fetch(`/api/agents/${e}/plugins/knowledge/documents?${i.toString()}`);if(!s.ok){const a=await s.text();throw new Error(`Failed to fetch knowledge documents: ${s.status} ${a}`)}return await s.json()},getKnowledgeChunks:async(e,n)=>{const i=new URLSearchParams;n!=null&&n.limit&&i.append("limit",n.limit.toString()),n!=null&&n.before&&i.append("before",n.before.toString()),n!=null&&n.documentId&&i.append("documentId",n.documentId);const s=await fetch(`/api/agents/${e}/plugins/knowledge/knowledges?${i.toString()}`);if(!s.ok){const a=await s.text();throw new Error(`Failed to fetch knowledge chunks: ${s.status} ${a}`)}return await s.json()},deleteKnowledgeDocument:async(e,n)=>{const i=await fetch(`/api/agents/${e}/plugins/knowledge/documents/${n}`,{method:"DELETE"});if(!i.ok){const s=await i.text();throw new Error(`Failed to delete knowledge document: ${i.status} ${s}`)}if(i.status!==204)return await i.json()},uploadKnowledge:async(e,n)=>{const i=new FormData;n.forEach(a=>i.append("files",a));const s=await fetch(`/api/agents/${e}/plugins/knowledge/documents`,{method:"POST",body:i});if(!s.ok){const a=await s.text();throw new Error(`Failed to upload knowledge: ${s.status} ${a}`)}return await s.json()}},Pb=(e,n=!0,i=!1)=>Vc({queryKey:["agents",e,"knowledge","documents",{includeEmbedding:i}],queryFn:async()=>(await gs.getKnowledgeDocuments(e,{includeEmbedding:i})).data.memories||[],enabled:n}),Tb=(e,n=!0,i)=>{const{data:s=[],isLoading:a,error:u}=Vc({queryKey:["agents",e,"knowledge","chunks",{documentIdFilter:i}],queryFn:async()=>(await gs.getKnowledgeChunks(e,{documentId:i})).data.chunks||[],enabled:n}),{data:f=[],isLoading:h,error:p}=Vc({queryKey:["agents",e,"knowledge","documents-for-graph"],queryFn:async()=>(await gs.getKnowledgeDocuments(e,{includeEmbedding:!1})).data.memories||[],enabled:n}),y=[...f,...s],v=a||h,g=u||p;return console.log(`Documents: ${f.length}, Fragments: ${s.length}, Total: ${y.length}`),{data:y,isLoading:v,error:g}},Nb=e=>{const n=pa();return g1({mutationFn:async({knowledgeId:i})=>{await gs.deleteKnowledgeDocument(e,i)},onSuccess:()=>{n.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})}})};function Mb({agentId:e}){var ci,so;const[n,i]=de.useState(null),[s,a]=de.useState(!1),[u,f]=de.useState(Wl),[h,p]=de.useState(!1),[y,v]=de.useState("list"),[g,_]=de.useState(null),[x,C]=de.useState(void 0),[b,S]=de.useState(1),[k,O]=de.useState(!1),[A,P]=de.useState(""),[T,z]=de.useState(!1),[L,D]=de.useState(null),[Q,K]=de.useState([]),Z=de.useRef(null),ie=de.useRef(null),{toast:ce}=Eb(),F=pa(),{data:te=[],isLoading:W,error:oe}=Pb(e,y==="list",!1),{data:B=[],isLoading:J,error:G}=Tb(e,y==="graph",x),R=y==="list"?W:J,V=y==="list"?oe:G,le=y==="list"?te:B,{mutate:ge}=Nb(e),ke=de.useCallback(()=>{if(!ie.current||h||u>=le.length)return;const{scrollTop:se,scrollHeight:we,clientHeight:Me}=ie.current;se+Me>=we-100&&(p(!0),setTimeout(()=>{f(He=>Math.min(He+Wl,le.length)),p(!1)},300))},[h,u,le.length]);if(de.useEffect(()=>{f(Wl)},[]),de.useEffect(()=>{const se=ie.current;if(se)return se.addEventListener("scroll",ke),()=>se.removeEventListener("scroll",ke)},[ke]),R&&(!le||le.length===0))return $.jsx("div",{className:"flex items-center justify-center h-40",children:"Loading knowledge documents..."});if(V)return $.jsxs("div",{className:"flex items-center justify-center h-40 text-destructive",children:["Error loading knowledge documents: ",V.message]});const Ce=se=>{const we=new Date(se);return`${we.toLocaleDateString()} ${we.toLocaleTimeString()}`},Ee=se=>{var Me;switch((Me=se.split(".").pop())==null?void 0:Me.toLowerCase()){case"md":return $.jsx(mc,{className:"h-4 w-4 text-blue-500"});case"js":case"ts":case"jsx":case"tsx":return $.jsx(mc,{className:"h-4 w-4 text-yellow-500"});case"json":return $.jsx(mc,{className:"h-4 w-4 text-green-500"});case"pdf":return $.jsx(Lp,{className:"h-4 w-4 text-red-500"});default:return $.jsx(Lp,{className:"h-4 w-4 text-gray-500"})}},be=se=>{se&&window.confirm("Are you sure you want to delete this document?")&&(ge({knowledgeId:se}),i(null))},Ae=()=>{Z.current&&Z.current.click()},gt=()=>{O(!0),P(""),K([]),D(null)},Or=()=>{try{if(!new URL(A).protocol.startsWith("http")){D("URL must start with http:// or https://");return}if(Q.includes(A)){D("This URL is already in the list");return}K([...Q,A]),P(""),D(null)}catch{D("Invalid URL")}},bs=se=>{K(Q.filter(we=>we!==se))},ui=async()=>{var se;if(A.trim())try{new URL(A).protocol.startsWith("http")&&!Q.includes(A)&&K([...Q,A])}catch{}if(Q.length===0){D("Please add at least one valid URL");return}z(!0),D(null);try{const we=await fetch(`/api/agents/${e}/plugins/knowledge/documents`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileUrls:Q})});if(!we.ok){const St=await we.text();throw new Error(St)}const Me=await we.json();Me.success?(ce({title:"URLs imported",description:`Successfully imported ${Q.length} document(s)`}),O(!1),F.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})):D(((se=Me.error)==null?void 0:se.message)||"Error importing documents from URLs")}catch(we){D(we.message||"Error importing documents from URLs"),ce({title:"Error",description:"Failed to import documents from URLs",variant:"destructive"})}finally{z(!1)}},ro=async se=>{const we=se.target.files;if(!(!we||we.length===0)){a(!0);try{const Me=Array.from(we),He=(await gs.uploadKnowledge(e,Me)).data||[];if(Array.isArray(He)&&He.every(Ut=>Ut.status==="success"))ce({title:"Knowledge Uploaded",description:`Successfully uploaded ${Me.length} file(s)`}),F.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]});else{const Ut=He.filter(Jt=>Jt.status==="success").length,Ct=Me.length-Ut;ce({title:Ct>0?"Upload Partially Failed":"Upload Issues",description:`Uploaded ${Ut} file(s). ${Ct} file(s) failed. Check console for details.`,variant:Ct>0?"destructive":"default"}),console.error("Upload results:",He)}}catch(Me){ce({title:"Upload Failed",description:Me instanceof Error?Me.message:"Failed to upload knowledge files",variant:"destructive"}),console.error("Upload error:",Me)}finally{a(!1),Z.current&&(Z.current.value="")}}},Es=le.slice(0,u),Ps=u<le.length,io=()=>$.jsx("div",{className:"flex justify-center p-4",children:h?$.jsxs("div",{className:"flex items-center gap-2",children:[$.jsx(vc,{className:"h-4 w-4 animate-spin"}),$.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading more..."})]}):$.jsx(ht,{variant:"ghost",size:"sm",onClick:()=>f(se=>se+Wl),className:"text-xs",children:"Show more"})}),Ts=()=>$.jsxs("div",{className:"text-muted-foreground text-center p-12 flex flex-col items-center gap-3 border-2 border-dashed rounded-lg mt-8",children:[$.jsx(b1,{className:"h-12 w-12 text-muted-foreground opacity-20"}),$.jsx("h3",{className:"text-lg font-medium",children:"No Knowledge Documents"}),$.jsx("p",{className:"max-w-md text-sm",children:"No Knowledge Documents found."}),$.jsxs(ht,{variant:"outline",onClick:Ae,children:[$.jsx(Fp,{className:"h-4 w-4 mr-2"}),"Upload Documents"]})]}),oo=({memory:se,index:we})=>{var Ns;const Me=se.metadata||{},St=Me.title||se.id||"Unknown Document",He=Me.filename||"Unknown Document",Ut=Me.fileExt||((Ns=He.split(".").pop())==null?void 0:Ns.toLowerCase())||"",Ct=St,Jt=Me.path||He;return $.jsx("button",{type:"button",className:"w-full text-left",onClick:()=>i(se),children:$.jsxs(N1,{className:"hover:bg-accent/10 transition-colors relative group",children:[$.jsx("div",{className:"absolute top-3 left-3 opacity-70",children:Ee(He)}),$.jsxs(M1,{className:"p-3 pb-2 pl-10",children:[$.jsx("div",{className:"text-xs text-muted-foreground mb-1 line-clamp-1",children:Jt}),$.jsxs("div",{className:"mb-2",children:[$.jsx("div",{className:"text-sm font-medium mb-1",children:Ct}),Me.description&&$.jsx("div",{className:"text-xs text-muted-foreground line-clamp-2",children:Me.description})]})]}),$.jsx(O1,{className:"p-2 border-t bg-muted/30 text-xs text-muted-foreground",children:$.jsxs("div",{className:"flex justify-between items-center w-full",children:[$.jsxs("div",{className:"flex items-center",children:[$.jsx(E1,{className:"h-3 w-3 mr-1.5"}),$.jsx("span",{children:new Date(se.createdAt||0).toLocaleString(void 0,{month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"})})]}),$.jsxs("div",{className:"flex items-center gap-2",children:[$.jsx(T1,{variant:"outline",className:"px-1.5 py-0 h-5",children:Ut||"unknown document"}),se.id&&$.jsx(ht,{variant:"ghost",size:"icon",className:"size-6 opacity-0 group-hover:opacity-100 transition-opacity",onClick:fi=>{fi&&(fi.stopPropagation(),fi.preventDefault()),be(se.id||"")},title:"Delete knowledge",children:$.jsx(P1,{className:"h-3.5 w-3.5 text-destructive"})})]})]})})]})},se.id||we)},Rr=se=>{C(se===x?void 0:se)},Xn=({memory:se})=>{var St,He;const we=se.metadata,Me=(we==null?void 0:we.type)==="fragment";return we==null||we.type,$.jsxs("div",{className:"border-t border-border bg-card text-card-foreground h-full flex flex-col",children:[$.jsxs("div",{className:"p-4 flex justify-between items-start flex-shrink-0",children:[$.jsxs("div",{className:"space-y-1",children:[$.jsxs("h3",{className:"text-sm font-medium flex items-center gap-2",children:[Me?$.jsxs("span",{className:"flex items-center",children:[$.jsx("div",{className:"h-3 w-3 rounded-full bg-accent mr-1.5"}),"Fragment"]}):$.jsxs("span",{className:"flex items-center",children:[$.jsx("div",{className:"h-3 w-3 rounded-full bg-primary mr-1.5"}),"Document"]}),$.jsx("span",{className:"text-muted-foreground ml-2",children:(we==null?void 0:we.title)||((St=se.id)==null?void 0:St.substring(0,8))})]}),$.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[$.jsxs("div",{className:"col-span-2",children:["ID: ",$.jsx("span",{className:"font-mono",children:se.id})]}),Me&&we.documentId&&$.jsxs("div",{className:"col-span-2",children:["Parent Document: ",$.jsx("span",{className:"font-mono text-primary/80",children:we.documentId})]}),Me&&we.position!==void 0&&$.jsxs("div",{children:["Position: ",we.position]}),we.source&&$.jsxs("div",{children:["Source: ",we.source]}),$.jsxs("div",{children:["Created on: ",Ce(se.createdAt||0)]})]})]}),$.jsx(ht,{variant:"ghost",size:"sm",onClick:()=>_(null),className:"text-xs h-7 px-2",children:"Close"})]}),$.jsxs("div",{className:"px-4 pb-4 flex-1 flex flex-col",children:[$.jsx("div",{className:"bg-background rounded border border-border p-3 text-sm overflow-auto flex-1",children:$.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs h-full",children:((He=se.content)==null?void 0:He.text)||"No content available"})}),se.embedding&&$.jsxs("div",{className:"mt-2 flex items-center text-xs text-muted-foreground flex-shrink-0",children:[$.jsx("span",{className:"bg-accent/20 text-accent-foreground px-1.5 py-0.5 rounded text-[10px] font-medium mr-1.5",children:"EMBEDDING"}),$.jsxs("span",{children:["Vector with ",se.embedding.length," dimensions"]})]})]})]})};return $.jsxs("div",{className:"flex flex-col h-full",children:[$.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[$.jsx("h2",{className:"text-lg font-semibold",children:"Knowledge"}),$.jsxs("div",{className:"flex items-center gap-2",children:[$.jsx(ht,{variant:"outline",size:"sm",onClick:()=>v(y==="list"?"graph":"list"),children:y==="list"?"Graph":"List"}),y==="graph"&&x&&$.jsx(ht,{variant:"outline",size:"sm",onClick:()=>C(void 0),children:"Clear Filter"}),$.jsxs("div",{className:"flex gap-2",children:[$.jsxs(ht,{variant:"outline",onClick:gt,children:[$.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-2",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[$.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),$.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]}),"URL"]}),$.jsxs(ht,{onClick:Ae,disabled:s,children:[s?$.jsx(vc,{className:"h-4 w-4 animate-spin mr-2"}):$.jsx(Fp,{className:"h-4 w-4 mr-2"}),"Upload"]})]})]})]}),k&&$.jsx(Gg,{open:k,onOpenChange:O,children:$.jsxs(Xg,{className:"max-w-md w-full",children:[$.jsxs(Yg,{children:[$.jsx(Zg,{className:"text-xl font-bold",children:"Import from URL"}),$.jsx(Jg,{children:"Enter one or more URLs of PDF, text, or other files to import into the knowledge base."})]}),$.jsxs("div",{className:"mt-6 space-y-4",children:[$.jsxs("div",{className:"flex gap-2",children:[$.jsx(R1,{placeholder:"https://example.com/document.pdf",value:A,onChange:se=>P(se.target.value),disabled:T,className:"flex-1",onKeyDown:se=>{se.key==="Enter"&&A.trim()&&(se.preventDefault(),Or())}}),$.jsx(ht,{variant:"outline",size:"sm",onClick:Or,disabled:T||!A.trim(),children:"Add"})]}),L&&$.jsx("div",{className:"text-sm text-destructive bg-destructive/10 p-2 rounded-md",children:L}),Q.length>0&&$.jsxs("div",{className:"border border-border rounded-md bg-card/50 p-3 mt-2",children:[$.jsxs("h4",{className:"text-sm font-medium mb-2",children:["URLs to import (",Q.length,")"]}),$.jsx("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:Q.map((se,we)=>$.jsxs("div",{className:"flex items-center justify-between text-sm bg-background p-2 rounded border border-border",children:[$.jsx("span",{className:"truncate flex-1",children:se}),$.jsx(ht,{variant:"ghost",size:"icon",className:"h-6 w-6 hover:bg-destructive/10 hover:text-destructive",onClick:()=>bs(se),disabled:T,children:$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:$.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},we))})]})]}),$.jsxs(e0,{className:"mt-6 pt-4 border-t border-border",children:[$.jsx(ht,{variant:"outline",onClick:()=>O(!1),disabled:T,children:"Cancel"}),$.jsx(ht,{onClick:ui,disabled:T||Q.length===0&&!A.trim(),children:T?$.jsxs($.Fragment,{children:[$.jsx(vc,{className:"h-4 w-4 animate-spin mr-2"}),"Importing..."]}):"Import"})]})]})}),$.jsx("input",{ref:Z,type:"file",multiple:!0,accept:".txt,.md,.markdown,.pdf,.doc,.docx,.json,.xml,.yaml,.yml,.csv,.tsv,.log,.ini,.cfg,.conf,.env,.gitignore,.dockerignore,.editorconfig,.js,.jsx,.ts,.tsx,.mjs,.cjs,.py,.pyw,.pyi,.java,.c,.cpp,.cc,.cxx,.h,.hpp,.cs,.php,.rb,.go,.rs,.swift,.kt,.kts,.scala,.clj,.cljs,.ex,.exs,.r,.R,.m,.mm,.sh,.bash,.zsh,.fish,.ps1,.bat,.cmd,.sql,.html,.htm,.css,.scss,.sass,.less,.vue,.svelte,.astro,.lua,.pl,.pm,.dart,.hs,.elm,.ml,.fs,.fsx,.vb,.pas,.d,.nim,.zig,.jl,.tcl,.awk,.sed",onChange:ro,className:"hidden"}),$.jsx("div",{className:"flex-1 overflow-hidden",children:le.length===0?$.jsx(Ts,{}):y==="graph"?$.jsxs("div",{className:"flex flex-col h-full",children:[$.jsxs("div",{className:`p-4 overflow-hidden ${g?"h-1/3":"flex-1"} transition-all duration-300`,children:[$.jsx(bb,{memories:le,onNodeClick:se=>{_(se),se.metadata&&typeof se.metadata=="object"&&"type"in se.metadata&&(se.metadata.type||"").toLowerCase()==="document"&&!("documentId"in se.metadata)&&Rr(se.id)},selectedMemoryId:g==null?void 0:g.id}),x&&$.jsx("div",{className:"absolute top-16 left-4 bg-card/90 backdrop-blur-sm text-card-foreground p-2 rounded-md shadow-sm border border-border",children:$.jsxs("span",{className:"text-xs text-muted-foreground flex items-center",children:[$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3 mr-1.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:$.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),"Filtering by document ID: ",$.jsxs("span",{className:"font-mono ml-1",children:[x.substring(0,8),"..."]})]})})]}),g&&$.jsx("div",{className:"h-2/3 overflow-hidden flex-1 transition-all duration-300",children:$.jsx(Xn,{memory:g})})]}):$.jsxs("div",{ref:ie,className:"h-full overflow-y-auto p-4",children:[$.jsx("div",{className:"grid gap-3",children:Es.map((se,we)=>$.jsx(oo,{memory:se,index:we},se.id||we))}),Ps&&$.jsx(io,{})]})}),n&&$.jsx(Gg,{open:!!n,onOpenChange:()=>i(null),children:$.jsxs(Xg,{className:"max-w-[95vw] w-full max-h-[95vh] h-full overflow-hidden flex flex-col p-0",children:[$.jsx(Yg,{className:"flex-shrink-0 p-6 pb-2",children:$.jsxs("div",{className:"flex items-center justify-between",children:[$.jsxs("div",{children:[$.jsx(Zg,{className:"text-xl",children:((ci=n.metadata)==null?void 0:ci.title)||"Document Content"}),$.jsx(Jg,{children:((so=n.metadata)==null?void 0:so.filename)||"Knowledge document"})]}),(()=>{var He;const se=n.metadata,we=(se==null?void 0:se.contentType)||"",Me=((He=se==null?void 0:se.fileExt)==null?void 0:He.toLowerCase())||"";return we==="application/pdf"||Me==="pdf"?$.jsxs("div",{className:"flex items-center gap-2",children:[$.jsx(ht,{variant:"outline",size:"sm",onClick:()=>S(Math.max(.5,b-.25)),disabled:b<=.5,children:$.jsx("span",{className:"text-lg",children:"−"})}),$.jsxs("span",{className:"text-sm font-medium min-w-[60px] text-center",children:[Math.round(b*100),"%"]}),$.jsx(ht,{variant:"outline",size:"sm",onClick:()=>S(Math.min(3,b+.25)),disabled:b>=3,children:$.jsx("span",{className:"text-lg",children:"+"})}),$.jsx(ht,{variant:"outline",size:"sm",onClick:()=>S(1),children:"Reset"})]}):null})()]})}),$.jsx("div",{className:"flex-1 overflow-auto px-6 pb-2",children:(()=>{var He,Ut,Ct;const se=n.metadata,we=(se==null?void 0:se.contentType)||"",Me=((He=se==null?void 0:se.fileExt)==null?void 0:He.toLowerCase())||"";if((we==="application/pdf"||Me==="pdf")&&((Ut=n.content)!=null&&Ut.text)){const Jt=`data:application/pdf;base64,${n.content.text}`;return $.jsx("div",{className:"w-full h-full rounded-lg overflow-auto bg-card border border-border",children:$.jsx("div",{className:"min-w-full flex items-center justify-center p-4",style:{minHeight:"100%",transform:`scale(${b})`,transformOrigin:"top center",width:b>1?`${100/b}%`:"100%"},children:$.jsx("iframe",{src:Jt,className:"w-full border-0 shadow-md",style:{height:"90vh",maxWidth:"1200px",backgroundColor:"var(--background)"},title:"PDF Document"})})})}else return $.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6",children:$.jsx("pre",{className:"whitespace-pre-wrap text-sm font-mono leading-relaxed text-foreground",children:((Ct=n.content)==null?void 0:Ct.text)||"No content available"})})})()}),$.jsx(e0,{className:"flex-shrink-0 p-6 pt-4 border-t border-border",children:$.jsx(ht,{variant:"outline",onClick:()=>{i(null),S(1)},children:"Close"})})]})})]})}const Ob=new Yv;function Rb(){const e=window.ELIZA_CONFIG,n=e==null?void 0:e.agentId;return n?$.jsx(Ab,{agentId:n}):$.jsxs("div",{className:"p-4 text-center",children:[$.jsx("div",{className:"text-red-600 font-medium",children:"Error: Agent ID not found"}),$.jsx("div",{className:"text-sm text-gray-600 mt-2",children:"The server should inject the agent ID configuration."})]})}function Ab({agentId:e}){return $.jsx(r1,{client:Ob,children:$.jsx(Mb,{agentId:e})})}const t0=document.getElementById("root");t0&&w1.createRoot(t0).render($.jsx(Rb,{}));
148
+ `;tb(nb);function cf(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,s=Array(n);i<n;i++)s[i]=e[i];return s}function rb(e){if(Array.isArray(e))return e}function ib(e){if(Array.isArray(e))return cf(e)}function Ug(e,n,i){if(Am())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,n);var a=new(e.bind.apply(e,s));return a}function ps(e,n,i){return(n=cb(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Am(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Am=function(){return!!e})()}function ob(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sb(e,n){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,a,u,f,h=[],p=!0,m=!1;try{if(u=(i=i.call(e)).next,n!==0)for(;!(p=(s=u.call(i)).done)&&(h.push(s.value),h.length!==n);p=!0);}catch(v){m=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(m)throw a}}return h}}function lb(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
149
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ab(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
150
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hg(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,s)}return i}function Ii(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Hg(Object(i),!0).forEach(function(s){ps(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Hg(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function ss(e,n){return rb(e)||sb(e,n)||jm(e,n)||lb()}function Zt(e){return ib(e)||ob(e)||jm(e)||ab()}function ub(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function cb(e){var n=ub(e,"string");return typeof n=="symbol"?n:n+""}function ff(e){"@babel/helpers - typeof";return ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ff(e)}function jm(e,n){if(e){if(typeof e=="string")return cf(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?cf(e,n):void 0}}var fb=Rm(eb);function Vg(e,n,i){!n||typeof i!="string"||e.filter(function(s){return!s[i]}).forEach(function(s){s[i]=fb(n(s))})}function hb(e,n){var i=e.nodes,s=e.links,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=a.nodeFilter,f=u===void 0?function(){return!0}:u,h=a.onLoopError,p=h===void 0?function(x){throw"Invalid DAG structure! Found cycle in node path: ".concat(x.join(" -> "),".")}:h,m={};i.forEach(function(x){return m[n(x)]={data:x,out:[],depth:-1,skip:!f(x)}}),s.forEach(function(x){var C=x.source,b=x.target,S=P(C),k=P(b);if(!m.hasOwnProperty(S))throw"Missing source node with id: ".concat(S);if(!m.hasOwnProperty(k))throw"Missing target node with id: ".concat(k);var O=m[S],A=m[k];O.out.push(A);function P(N){return ff(N)==="object"?n(N):N}});var v=[];_(Object.values(m));var g=Object.assign.apply(Object,[{}].concat(Zt(Object.entries(m).filter(function(x){var C=ss(x,2),b=C[1];return!b.skip}).map(function(x){var C=ss(x,2),b=C[0],S=C[1];return ps({},b,S.depth)}))));return g;function _(x){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,S=function(){var P=x[k];if(C.indexOf(P)!==-1){var N=[].concat(Zt(C.slice(C.indexOf(P))),[P]).map(function(z){return n(z.data)});return v.some(function(z){return z.length===N.length&&z.every(function(F,D){return F===N[D]})})||(v.push(N),p(N)),1}b>P.depth&&(P.depth=b,_(P.out,[].concat(Zt(C),[P]),b+(P.skip?0:1)))},k=0,O=x.length;k<O;k++)S()}}var db=2,dt=function(n,i){return i.onNeedsRedraw&&i.onNeedsRedraw()},qg=function(n,i){if(!i.isShadow){var s=De(i.linkDirectionalParticles);i.graphData.links.forEach(function(a){var u=Math.round(Math.abs(s(a)));u?a.__photons=Zt(Array(u)).map(function(){return{}}):delete a.__photons})}},da=bf({props:{graphData:{default:{nodes:[],links:[]},onChange:function(n,i){i.engineRunning=!1,qg(n,i)}},dagMode:{onChange:function(n,i){!n&&(i.graphData.nodes||[]).forEach(function(s){return s.fx=s.fy=void 0})}},dagLevelDistance:{},dagNodeFilter:{default:function(n){return!0}},onDagError:{triggerUpdate:!1},nodeRelSize:{default:4,triggerUpdate:!1,onChange:dt},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:dt},nodeColor:{default:"color",triggerUpdate:!1,onChange:dt},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:dt},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:dt},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:dt},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:dt},linkColor:{default:"color",triggerUpdate:!1,onChange:dt},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:dt},linkWidth:{default:1,triggerUpdate:!1,onChange:dt},linkCurvature:{default:0,triggerUpdate:!1,onChange:dt},linkCanvasObject:{triggerUpdate:!1,onChange:dt},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:dt},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:dt},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:dt},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:dt},linkDirectionalParticles:{default:0,triggerUpdate:!1,onChange:qg},linkDirectionalParticleSpeed:{default:.01,triggerUpdate:!1},linkDirectionalParticleWidth:{default:4,triggerUpdate:!1},linkDirectionalParticleColor:{triggerUpdate:!1},globalScale:{default:1,triggerUpdate:!1},d3AlphaMin:{default:0,triggerUpdate:!1},d3AlphaDecay:{default:.0228,triggerUpdate:!1,onChange:function(n,i){i.forceLayout.alphaDecay(n)}},d3AlphaTarget:{default:0,triggerUpdate:!1,onChange:function(n,i){i.forceLayout.alphaTarget(n)}},d3VelocityDecay:{default:.4,triggerUpdate:!1,onChange:function(n,i){i.forceLayout.velocityDecay(n)}},warmupTicks:{default:0,triggerUpdate:!1},cooldownTicks:{default:1/0,triggerUpdate:!1},cooldownTime:{default:15e3,triggerUpdate:!1},onUpdate:{default:function(){},triggerUpdate:!1},onFinishUpdate:{default:function(){},triggerUpdate:!1},onEngineTick:{default:function(){},triggerUpdate:!1},onEngineStop:{default:function(){},triggerUpdate:!1},onNeedsRedraw:{triggerUpdate:!1},isShadow:{default:!1,triggerUpdate:!1}},methods:{d3Force:function(n,i,s){return s===void 0?n.forceLayout.force(i):(n.forceLayout.force(i,s),this)},d3ReheatSimulation:function(n){return n.forceLayout.alpha(1),this.resetCountdown(),this},resetCountdown:function(n){return n.cntTicks=0,n.startTickTime=new Date,n.engineRunning=!0,this},isEngineRunning:function(n){return!!n.engineRunning},tickFrame:function(n){return!n.isShadow&&i(),a(),!n.isShadow&&u(),!n.isShadow&&f(),s(),this;function i(){n.engineRunning&&(++n.cntTicks>n.cooldownTicks||new Date-n.startTickTime>n.cooldownTime||n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin?(n.engineRunning=!1,n.onEngineStop()):(n.forceLayout.tick(),n.onEngineTick()))}function s(){var h=De(n.nodeVisibility),p=De(n.nodeVal),m=De(n.nodeColor),v=De(n.nodeCanvasObjectMode),g=n.ctx,_=n.isShadow/n.globalScale,x=n.graphData.nodes.filter(h);g.save(),x.forEach(function(C){var b=v(C);if(n.nodeCanvasObject&&(b==="before"||b==="replace")&&(n.nodeCanvasObject(C,g,n.globalScale),b==="replace")){g.restore();return}var S=Math.sqrt(Math.max(0,p(C)||1))*n.nodeRelSize+_;g.beginPath(),g.arc(C.x,C.y,S,0,2*Math.PI,!1),g.fillStyle=m(C)||"rgba(31, 120, 180, 0.92)",g.fill(),n.nodeCanvasObject&&b==="after"&&n.nodeCanvasObject(C,n.ctx,n.globalScale)}),g.restore()}function a(){var h=De(n.linkVisibility),p=De(n.linkColor),m=De(n.linkWidth),v=De(n.linkLineDash),g=De(n.linkCurvature),_=De(n.linkCanvasObjectMode),x=n.ctx,C=n.isShadow*2,b=n.graphData.links.filter(h);b.forEach(z);var S=[],k=[],O=b;if(n.linkCanvasObject){var A=[],P=[];b.forEach(function(F){return({before:S,after:k,replace:A}[_(F)]||P).push(F)}),O=[].concat(Zt(S),k,P),S=S.concat(A)}x.save(),S.forEach(function(F){return n.linkCanvasObject(F,x,n.globalScale)}),x.restore();var N=YC(O,[p,m,v]);x.save(),Object.entries(N).forEach(function(F){var D=ss(F,2),Q=D[0],K=D[1],Z=!Q||Q==="undefined"?"rgba(0,0,0,0.15)":Q;Object.entries(K).forEach(function(ie){var ce=ss(ie,2),$=ce[0],te=ce[1],W=($||1)/n.globalScale+C;Object.entries(te).forEach(function(oe){var B=ss(oe,2);B[0];var J=B[1],G=v(J[0]);x.beginPath(),J.forEach(function(R){var q=R.source,le=R.target;if(!(!q||!le||!q.hasOwnProperty("x")||!le.hasOwnProperty("x"))){x.moveTo(q.x,q.y);var ge=R.__controlPoints;ge?x[ge.length===2?"quadraticCurveTo":"bezierCurveTo"].apply(x,Zt(ge).concat([le.x,le.y])):x.lineTo(le.x,le.y)}}),x.strokeStyle=Z,x.lineWidth=W,x.setLineDash(G||[]),x.stroke()})})}),x.restore(),x.save(),k.forEach(function(F){return n.linkCanvasObject(F,x,n.globalScale)}),x.restore();function z(F){var D=g(F);if(!D){F.__controlPoints=null;return}var Q=F.source,K=F.target;if(!(!Q||!K||!Q.hasOwnProperty("x")||!K.hasOwnProperty("x"))){var Z=Math.sqrt(Math.pow(K.x-Q.x,2)+Math.pow(K.y-Q.y,2));if(Z>0){var ie=Math.atan2(K.y-Q.y,K.x-Q.x),ce=Z*D,$={x:(Q.x+K.x)/2+ce*Math.cos(ie-Math.PI/2),y:(Q.y+K.y)/2+ce*Math.sin(ie-Math.PI/2)};F.__controlPoints=[$.x,$.y]}else{var te=D*70;F.__controlPoints=[K.x,K.y-te,K.x+te,K.y]}}}}function u(){var h=1.6,p=.2,m=De(n.linkDirectionalArrowLength),v=De(n.linkDirectionalArrowRelPos),g=De(n.linkVisibility),_=De(n.linkDirectionalArrowColor||n.linkColor),x=De(n.nodeVal),C=n.ctx;C.save(),n.graphData.links.filter(g).forEach(function(b){var S=m(b);if(!(!S||S<0)){var k=b.source,O=b.target;if(!(!k||!O||!k.hasOwnProperty("x")||!O.hasOwnProperty("x"))){var A=Math.sqrt(Math.max(0,x(k)||1))*n.nodeRelSize,P=Math.sqrt(Math.max(0,x(O)||1))*n.nodeRelSize,N=Math.min(1,Math.max(0,v(b))),z=_(b)||"rgba(0,0,0,0.28)",F=S/h/2,D=b.__controlPoints&&Ug(Ue,[k.x,k.y].concat(Zt(b.__controlPoints),[O.x,O.y])),Q=D?function(W){return D.get(W)}:function(W){return{x:k.x+(O.x-k.x)*W||0,y:k.y+(O.y-k.y)*W||0}},K=D?D.length():Math.sqrt(Math.pow(O.x-k.x,2)+Math.pow(O.y-k.y,2)),Z=A+S+(K-A-P-S)*N,ie=Q(Z/K),ce=Q((Z-S)/K),$=Q((Z-S*(1-p))/K),te=Math.atan2(ie.y-ce.y,ie.x-ce.x)-Math.PI/2;C.beginPath(),C.moveTo(ie.x,ie.y),C.lineTo(ce.x+F*Math.cos(te),ce.y+F*Math.sin(te)),C.lineTo($.x,$.y),C.lineTo(ce.x-F*Math.cos(te),ce.y-F*Math.sin(te)),C.fillStyle=z,C.fill()}}}),C.restore()}function f(){var h=De(n.linkDirectionalParticles),p=De(n.linkDirectionalParticleSpeed),m=De(n.linkDirectionalParticleWidth),v=De(n.linkVisibility),g=De(n.linkDirectionalParticleColor||n.linkColor),_=n.ctx;_.save(),n.graphData.links.filter(v).forEach(function(x){var C=h(x);if(!(!x.hasOwnProperty("__photons")||!x.__photons.length)){var b=x.source,S=x.target;if(!(!b||!S||!b.hasOwnProperty("x")||!S.hasOwnProperty("x"))){var k=p(x),O=x.__photons||[],A=Math.max(0,m(x)/2)/Math.sqrt(n.globalScale),P=g(x)||"rgba(0,0,0,0.28)";_.fillStyle=P;var N=x.__controlPoints?Ug(Ue,[b.x,b.y].concat(Zt(x.__controlPoints),[S.x,S.y])):null,z=0,F=!1;O.forEach(function(D){var Q=!!D.__singleHop;if(D.hasOwnProperty("__progressRatio")||(D.__progressRatio=Q?0:z/C),!Q&&z++,D.__progressRatio+=k,D.__progressRatio>=1)if(!Q)D.__progressRatio=D.__progressRatio%1;else{F=!0;return}var K=D.__progressRatio,Z=N?N.get(K):{x:b.x+(S.x-b.x)*K||0,y:b.y+(S.y-b.y)*K||0};_.beginPath(),_.arc(Z.x,Z.y,A,0,2*Math.PI,!1),_.fill()}),F&&(x.__photons=x.__photons.filter(function(D){return!D.__singleHop||D.__progressRatio<=1}))}}}),_.restore()}},emitParticle:function(n,i){return i&&(!i.__photons&&(i.__photons=[]),i.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:TC().force("link",wC()).force("charge",MC()).force("center",SS()).force("dagRadial",null).stop(),engineRunning:!1}},init:function(n,i){i.ctx=n},update:function(n,i){n.engineRunning=!1,n.onUpdate(),n.nodeAutoColorBy!==null&&Vg(n.graphData.nodes,De(n.nodeAutoColorBy),n.nodeColor),n.linkAutoColorBy!==null&&Vg(n.graphData.links,De(n.linkAutoColorBy),n.linkColor),n.graphData.links.forEach(function(_){_.source=_[n.linkSource],_.target=_[n.linkTarget]}),n.forceLayout.stop().alpha(1).nodes(n.graphData.nodes);var s=n.forceLayout.force("link");s&&s.id(function(_){return _[n.nodeId]}).links(n.graphData.links);var a=n.dagMode&&hb(n.graphData,function(_){return _[n.nodeId]},{nodeFilter:n.dagNodeFilter,onLoopError:n.onDagError||void 0}),u=Math.max.apply(Math,Zt(Object.values(a||[]))),f=n.dagLevelDistance||n.graphData.nodes.length/(u||1)*db*(["radialin","radialout"].indexOf(n.dagMode)!==-1?.7:1);if(["lr","rl","td","bu"].includes(i.dagMode)){var h=["lr","rl"].includes(i.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(_){return delete _[h]})}if(["lr","rl","td","bu"].includes(n.dagMode)){var p=["rl","bu"].includes(n.dagMode),m=function(x){return(a[x[n.nodeId]]-u/2)*f*(p?-1:1)},v=["lr","rl"].includes(n.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(_){return _[v]=m(_)})}n.forceLayout.force("dagRadial",["radialin","radialout"].indexOf(n.dagMode)!==-1?OC(function(_){var x=a[_[n.nodeId]]||-1;return(n.dagMode==="radialin"?u-x:x)*f}).strength(function(_){return n.dagNodeFilter(_)?1:0}):null);for(var g=0;g<n.warmupTicks&&!(n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin);g++)n.forceLayout.tick();this.resetCountdown(),n.onFinishUpdate()}});function zm(e,n){var i=e instanceof Array?e:[e],s=new n;return s._destructor&&s._destructor(),{linkProp:function(u){return{default:s[u](),onChange:function(h,p){i.forEach(function(m){return p[m][u](h)})},triggerUpdate:!1}},linkMethod:function(u){return function(f){for(var h=arguments.length,p=new Array(h>1?h-1:0),m=1;m<h;m++)p[m-1]=arguments[m];var v=[];return i.forEach(function(g){var _=f[g],x=_[u].apply(_,p);x!==_&&v.push(x)}),v.length?v[0]:this}}}}var pb=800,gb=4,mb=5,Dm=zm("forceGraph",da),yb=zm(["forceGraph","shadowGraph"],da),vb=Object.assign.apply(Object,Zt(["nodeColor","nodeAutoColorBy","nodeCanvasObject","nodeCanvasObjectMode","linkColor","linkAutoColorBy","linkLineDash","linkWidth","linkCanvasObject","linkCanvasObjectMode","linkDirectionalArrowLength","linkDirectionalArrowColor","linkDirectionalArrowRelPos","linkDirectionalParticles","linkDirectionalParticleSpeed","linkDirectionalParticleWidth","linkDirectionalParticleColor","dagMode","dagLevelDistance","dagNodeFilter","onDagError","d3AlphaMin","d3AlphaDecay","d3VelocityDecay","warmupTicks","cooldownTicks","cooldownTime","onEngineTick","onEngineStop"].map(function(e){return ps({},e,Dm.linkProp(e))})).concat(Zt(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map(function(e){return ps({},e,yb.linkProp(e))})))),_b=Object.assign.apply(Object,Zt(["d3Force","d3ReheatSimulation","emitParticle"].map(function(e){return ps({},e,Dm.linkMethod(e))})));function Pc(e){if(e.canvas){var n=e.canvas.width,i=e.canvas.height;n===300&&i===150&&(n=i=0);var s=window.devicePixelRatio;n/=s,i/=s,[e.canvas,e.shadowCanvas].forEach(function(u){u.style.width="".concat(e.width,"px"),u.style.height="".concat(e.height,"px"),u.width=e.width*s,u.height=e.height*s,!n&&!i&&u.getContext("2d").scale(s,s)});var a=xn(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-n)/2/a,(e.height-i)/2/a),e.needsRedraw=!0}}function Im(e){var n=window.devicePixelRatio;e.setTransform(n,0,0,n,0,0)}function Qg(e,n,i){e.save(),Im(e),e.clearRect(0,0,n,i),e.restore()}var xb=bf({props:Ii({width:{default:window.innerWidth,onChange:function(n,i){return Pc(i)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(n,i){return Pc(i)},triggerUpdate:!1},graphData:{default:{nodes:[],links:[]},onChange:function(n,i){[n.nodes,n.links].every(function(a){return(a||[]).every(function(u){return!u.hasOwnProperty("__indexColor")})})&&i.colorTracker.reset(),[{type:"Node",objs:n.nodes},{type:"Link",objs:n.links}].forEach(s),i.forceGraph.graphData(n),i.shadowGraph.graphData(n);function s(a){var u=a.type,f=a.objs;f.filter(function(h){if(!h.hasOwnProperty("__indexColor"))return!0;var p=i.colorTracker.lookup(h.__indexColor);return!p||!p.hasOwnProperty("d")||p.d!==h}).forEach(function(h){h.__indexColor=i.colorTracker.register({type:u,d:h})})}},triggerUpdate:!1},backgroundColor:{onChange:function(n,i){i.canvas&&n&&(i.canvas.style.background=n)},triggerUpdate:!1},nodeLabel:{default:"name",triggerUpdate:!1},nodePointerAreaPaint:{onChange:function(n,i){i.shadowGraph.nodeCanvasObject(n?function(s,a,u){return n(s,s.__indexColor,a,u)}:null),i.flushShadowCanvas&&i.flushShadowCanvas()},triggerUpdate:!1},linkPointerAreaPaint:{onChange:function(n,i){i.shadowGraph.linkCanvasObject(n?function(s,a,u){return n(s,s.__indexColor,a,u)}:null),i.flushShadowCanvas&&i.flushShadowCanvas()},triggerUpdate:!1},linkLabel:{default:"name",triggerUpdate:!1},linkHoverPrecision:{default:4,triggerUpdate:!1},minZoom:{default:.01,onChange:function(n,i){i.zoom.scaleExtent([n,i.zoom.scaleExtent()[1]])},triggerUpdate:!1},maxZoom:{default:1e3,onChange:function(n,i){i.zoom.scaleExtent([i.zoom.scaleExtent()[0],n])},triggerUpdate:!1},enableNodeDrag:{default:!0,triggerUpdate:!1},enableZoomInteraction:{default:!0,triggerUpdate:!1},enablePanInteraction:{default:!0,triggerUpdate:!1},enableZoomPanInteraction:{default:!0,triggerUpdate:!1},enablePointerInteraction:{default:!0,onChange:function(n,i){i.hoverObj=null},triggerUpdate:!1},autoPauseRedraw:{default:!0,triggerUpdate:!1},onNodeDrag:{default:function(){},triggerUpdate:!1},onNodeDragEnd:{default:function(){},triggerUpdate:!1},onNodeClick:{triggerUpdate:!1},onNodeRightClick:{triggerUpdate:!1},onNodeHover:{triggerUpdate:!1},onLinkClick:{triggerUpdate:!1},onLinkRightClick:{triggerUpdate:!1},onLinkHover:{triggerUpdate:!1},onBackgroundClick:{triggerUpdate:!1},onBackgroundRightClick:{triggerUpdate:!1},onZoom:{triggerUpdate:!1},onZoomEnd:{triggerUpdate:!1},onRenderFramePre:{triggerUpdate:!1},onRenderFramePost:{triggerUpdate:!1}},vb),aliases:{stopAnimation:"pauseAnimation"},methods:Ii({graph2ScreenCoords:function(n,i,s){var a=xn(n.canvas);return{x:i*a.k+a.x,y:s*a.k+a.y}},screen2GraphCoords:function(n,i,s){var a=xn(n.canvas);return{x:(i-a.x)/a.k,y:(s-a.y)/a.k}},centerAt:function(n,i,s,a){if(!n.canvas)return null;if(i!==void 0||s!==void 0){var u=Object.assign({},i!==void 0?{x:i}:{},s!==void 0?{y:s}:{});return a?n.tweenGroup.add(new pg(f()).to(u,a).easing(oi.Quadratic.Out).onUpdate(h).start()):h(u),this}return f();function f(){var p=xn(n.canvas);return{x:(n.width/2-p.x)/p.k,y:(n.height/2-p.y)/p.k}}function h(p){var m=p.x,v=p.y;n.zoom.translateTo(n.zoom.__baseElem,m===void 0?f().x:m,v===void 0?f().y:v),n.needsRedraw=!0}},zoom:function(n,i,s){if(!n.canvas)return null;if(i!==void 0)return s?n.tweenGroup.add(new pg({k:a()}).to({k:i},s).easing(oi.Quadratic.Out).onUpdate(function(f){var h=f.k;return u(h)}).start()):u(i),this;return a();function a(){return xn(n.canvas).k}function u(f){n.zoom.scaleTo(n.zoom.__baseElem,f),n.needsRedraw=!0}},zoomToFit:function(n){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,a=arguments.length,u=new Array(a>3?a-3:0),f=3;f<a;f++)u[f-3]=arguments[f];var h=this.getGraphBbox.apply(this,u);if(h){var p={x:(h.x[0]+h.x[1])/2,y:(h.y[0]+h.y[1])/2},m=Math.max(1e-12,Math.min(1e12,(n.width-s*2)/(h.x[1]-h.x[0]),(n.height-s*2)/(h.y[1]-h.y[0])));this.centerAt(p.x,p.y,i),this.zoom(m,i)}return this},getGraphBbox:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},s=De(n.nodeVal),a=function(h){return Math.sqrt(Math.max(0,s(h)||1))*n.nodeRelSize},u=n.graphData.nodes.filter(i).map(function(f){return{x:f.x,y:f.y,r:a(f)}});return u.length?{x:[cg(u,function(f){return f.x-f.r}),ug(u,function(f){return f.x+f.r})],y:[cg(u,function(f){return f.y-f.r}),ug(u,function(f){return f.y+f.r})]}:null},pauseAnimation:function(n){return n.animationFrameRequestId&&(cancelAnimationFrame(n.animationFrameRequestId),n.animationFrameRequestId=null),this},resumeAnimation:function(n){return n.animationFrameRequestId||this._animationCycle(),this},_destructor:function(){this.pauseAnimation(),this.graphData({nodes:[],links:[]})}},_b),stateInit:function(){return{lastSetZoom:1,zoom:O2(),forceGraph:new da,shadowGraph:new da().cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new tS,tweenGroup:new om}},init:function(n,i){var s=this;n.innerHTML="";var a=document.createElement("div");a.classList.add("force-graph-container"),a.style.position="relative",n.appendChild(a),i.canvas=document.createElement("canvas"),i.backgroundColor&&(i.canvas.style.background=i.backgroundColor),a.appendChild(i.canvas),i.shadowCanvas=document.createElement("canvas");var u=i.canvas.getContext("2d"),f=i.shadowCanvas.getContext("2d",{willReadFrequently:!0}),h={x:-1e12,y:-1e12},p=function(){var g=null,_=window.devicePixelRatio,x=h.x>0&&h.y>0?f.getImageData(h.x*_,h.y*_,1,1):null;return x&&(g=i.colorTracker.lookup(x.data)),g};Yt(i.canvas).call(Ux().subject(function(){if(!i.enableNodeDrag)return null;var v=p();return v&&v.type==="Node"?v.d:null}).on("start",function(v){var g=v.subject;g.__initialDragPos={x:g.x,y:g.y,fx:g.fx,fy:g.fy},v.active||(g.fx=g.x,g.fy=g.y),i.canvas.classList.add("grabbable")}).on("drag",function(v){var g=v.subject,_=g.__initialDragPos,x=v,C=xn(i.canvas).k,b={x:_.x+(x.x-_.x)/C-g.x,y:_.y+(x.y-_.y)/C-g.y};["x","y"].forEach(function(S){return g["f".concat(S)]=g[S]=_[S]+(x[S]-_[S])/C}),!(!g.__dragged&&mb>=Math.sqrt(z2(["x","y"].map(function(S){return Math.pow(v[S]-_[S],2)}))))&&(i.forceGraph.d3AlphaTarget(.3).resetCountdown(),i.isPointerDragging=!0,g.__dragged=!0,i.onNodeDrag(g,b))}).on("end",function(v){var g=v.subject,_=g.__initialDragPos,x={x:g.x-_.x,y:g.y-_.y};_.fx===void 0&&(g.fx=void 0),_.fy===void 0&&(g.fy=void 0),delete g.__initialDragPos,i.forceGraph.d3AlphaTarget()&&i.forceGraph.d3AlphaTarget(0).resetCountdown(),i.canvas.classList.remove("grabbable"),i.isPointerDragging=!1,g.__dragged&&(delete g.__dragged,i.onNodeDragEnd(g,x))})),i.zoom(i.zoom.__baseElem=Yt(i.canvas)),i.zoom.__baseElem.on("dblclick.zoom",null),i.zoom.filter(function(v){return!v.button&&i.enableZoomPanInteraction&&(v.type!=="wheel"||De(i.enableZoomInteraction)(v))&&(v.type==="wheel"||De(i.enablePanInteraction)(v))}).on("zoom",function(v){var g=v.transform;[u,f].forEach(function(_){Im(_),_.translate(g.x,g.y),_.scale(g.k,g.k)}),i.isPointerDragging=!0,i.onZoom&&i.onZoom(Ii(Ii({},g),s.centerAt())),i.needsRedraw=!0}).on("end",function(v){i.isPointerDragging=!1,i.onZoomEnd&&i.onZoomEnd(Ii(Ii({},v.transform),s.centerAt()))}),Pc(i),i.forceGraph.onNeedsRedraw(function(){return i.needsRedraw=!0}).onFinishUpdate(function(){xn(i.canvas).k===i.lastSetZoom&&i.graphData.nodes.length&&(i.zoom.scaleTo(i.zoom.__baseElem,i.lastSetZoom=gb/Math.cbrt(i.graphData.nodes.length)),i.needsRedraw=!0)}),i.tooltip=new kS(a),["pointermove","pointerdown"].forEach(function(v){return a.addEventListener(v,function(g){v==="pointerdown"&&(i.isPointerPressed=!0,i.pointerDownEvent=g),!i.isPointerDragging&&g.type==="pointermove"&&i.onBackgroundClick&&(g.pressure>0||i.isPointerPressed)&&(g.pointerType!=="touch"||g.movementX===void 0||[g.movementX,g.movementY].some(function(C){return Math.abs(C)>1}))&&(i.isPointerDragging=!0);var _=x(a);h.x=g.pageX-_.left,h.y=g.pageY-_.top;function x(C){var b=C.getBoundingClientRect(),S=window.pageXOffset||document.documentElement.scrollLeft,k=window.pageYOffset||document.documentElement.scrollTop;return{top:b.top+k,left:b.left+S}}},{passive:!0})}),a.addEventListener("pointerup",function(v){if(i.isPointerPressed){if(i.isPointerPressed=!1,i.isPointerDragging){i.isPointerDragging=!1;return}var g=[v,i.pointerDownEvent];requestAnimationFrame(function(){if(v.button===0)if(i.hoverObj){var _=i["on".concat(i.hoverObj.type,"Click")];_&&_.apply(void 0,[i.hoverObj.d].concat(g))}else i.onBackgroundClick&&i.onBackgroundClick.apply(i,g);if(v.button===2)if(i.hoverObj){var x=i["on".concat(i.hoverObj.type,"RightClick")];x&&x.apply(void 0,[i.hoverObj.d].concat(g))}else i.onBackgroundRightClick&&i.onBackgroundRightClick.apply(i,g)})}},{passive:!0}),a.addEventListener("contextmenu",function(v){return!i.onBackgroundRightClick&&!i.onNodeRightClick&&!i.onLinkRightClick?!0:(v.preventDefault(),!1)}),i.forceGraph(u),i.shadowGraph(f);var m=ak(function(){Qg(f,i.width,i.height),i.shadowGraph.linkWidth(function(g){return De(i.linkWidth)(g)+i.linkHoverPrecision});var v=xn(i.canvas);i.shadowGraph.globalScale(v.k).tickFrame()},pb);i.flushShadowCanvas=m.flush,(this._animationCycle=function v(){var g=!i.autoPauseRedraw||!!i.needsRedraw||i.forceGraph.isEngineRunning()||i.graphData.links.some(function(A){return A.__photons&&A.__photons.length});if(i.needsRedraw=!1,i.enablePointerInteraction){var _=i.isPointerDragging?null:p();if(_!==i.hoverObj){var x=i.hoverObj,C=x?x.type:null,b=_?_.type:null;if(C&&C!==b){var S=i["on".concat(C,"Hover")];S&&S(null,x.d)}if(b){var k=i["on".concat(b,"Hover")];k&&k(_.d,C===b?x.d:null)}i.tooltip.content(_&&De(i["".concat(_.type.toLowerCase(),"Label")])(_.d)||null),i.canvas.classList[_&&i["on".concat(b,"Click")]||!_&&i.onBackgroundClick?"add":"remove"]("clickable"),i.hoverObj=_}g&&m()}if(g){Qg(u,i.width,i.height);var O=xn(i.canvas).k;i.onRenderFramePre&&i.onRenderFramePre(u,O),i.forceGraph.globalScale(O).tickFrame(),i.onRenderFramePost&&i.onRenderFramePost(u,O)}i.tweenGroup.update(),i.animationFrameRequestId=requestAnimationFrame(v)})()},update:function(n){}}),Nc={exports:{}},Tc,Bg;function wb(){if(Bg)return Tc;Bg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tc=e,Tc}var Mc,Wg;function kb(){if(Wg)return Mc;Wg=1;var e=wb();function n(){}function i(){}return i.resetWarningCache=n,Mc=function(){function s(f,h,p,m,v,g){if(g!==e){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}s.isRequired=s;function a(){return s}var u={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:a,element:s,elementType:s,instanceOf:a,node:s,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:i,resetWarningCache:n};return u.PropTypes=u,u},Mc}var Kg;function Sb(){return Kg||(Kg=1,Nc.exports=kb()()),Nc.exports}var Cb=Sb();const L=h0(Cb),wa={width:L.number,height:L.number,graphData:L.shape({nodes:L.arrayOf(L.object).isRequired,links:L.arrayOf(L.object).isRequired}),backgroundColor:L.string,nodeRelSize:L.number,nodeId:L.string,nodeLabel:L.oneOfType([L.string,L.func]),nodeVal:L.oneOfType([L.number,L.string,L.func]),nodeVisibility:L.oneOfType([L.bool,L.string,L.func]),nodeColor:L.oneOfType([L.string,L.func]),nodeAutoColorBy:L.oneOfType([L.string,L.func]),onNodeHover:L.func,onNodeClick:L.func,linkSource:L.string,linkTarget:L.string,linkLabel:L.oneOfType([L.string,L.func]),linkVisibility:L.oneOfType([L.bool,L.string,L.func]),linkColor:L.oneOfType([L.string,L.func]),linkAutoColorBy:L.oneOfType([L.string,L.func]),linkWidth:L.oneOfType([L.number,L.string,L.func]),linkCurvature:L.oneOfType([L.number,L.string,L.func]),linkDirectionalArrowLength:L.oneOfType([L.number,L.string,L.func]),linkDirectionalArrowColor:L.oneOfType([L.string,L.func]),linkDirectionalArrowRelPos:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticles:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticleSpeed:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticleWidth:L.oneOfType([L.number,L.string,L.func]),linkDirectionalParticleColor:L.oneOfType([L.string,L.func]),onLinkHover:L.func,onLinkClick:L.func,dagMode:L.oneOf(["td","bu","lr","rl","zin","zout","radialin","radialout"]),dagLevelDistance:L.number,dagNodeFilter:L.func,onDagError:L.func,d3AlphaMin:L.number,d3AlphaDecay:L.number,d3VelocityDecay:L.number,warmupTicks:L.number,cooldownTicks:L.number,cooldownTime:L.number,onEngineTick:L.func,onEngineStop:L.func,getGraphBbox:L.func},Lm={zoomToFit:L.func,onNodeRightClick:L.func,onNodeDrag:L.func,onNodeDragEnd:L.func,onLinkRightClick:L.func,linkHoverPrecision:L.number,onBackgroundClick:L.func,onBackgroundRightClick:L.func,enablePointerInteraction:L.bool,enableNodeDrag:L.bool},Af={showNavInfo:L.bool,nodeOpacity:L.number,nodeResolution:L.number,nodeThreeObject:L.oneOfType([L.object,L.string,L.func]),nodeThreeObjectExtend:L.oneOfType([L.bool,L.string,L.func]),linkOpacity:L.number,linkResolution:L.number,linkCurveRotation:L.oneOfType([L.number,L.string,L.func]),linkMaterial:L.oneOfType([L.object,L.string,L.func]),linkThreeObject:L.oneOfType([L.object,L.string,L.func]),linkThreeObjectExtend:L.oneOfType([L.bool,L.string,L.func]),linkPositionUpdate:L.func,linkDirectionalArrowResolution:L.number,linkDirectionalParticleResolution:L.number,forceEngine:L.oneOf(["d3","ngraph"]),ngraphPhysics:L.object,numDimensions:L.oneOf([1,2,3])},bb=Object.assign({},wa,Lm,{linkLineDash:L.oneOfType([L.arrayOf(L.number),L.string,L.func]),nodeCanvasObjectMode:L.oneOfType([L.string,L.func]),nodeCanvasObject:L.func,nodePointerAreaPaint:L.func,linkCanvasObjectMode:L.oneOfType([L.string,L.func]),linkCanvasObject:L.func,linkPointerAreaPaint:L.func,autoPauseRedraw:L.bool,minZoom:L.number,maxZoom:L.number,enableZoomInteraction:L.oneOfType([L.bool,L.func]),enablePanInteraction:L.oneOfType([L.bool,L.func]),onZoom:L.func,onZoomEnd:L.func,onRenderFramePre:L.func,onRenderFramePost:L.func});Object.assign({},wa,Lm,Af,{enableNavigationControls:L.bool,controlType:L.oneOf(["trackball","orbit","fly"]),rendererConfig:L.object,extraRenderers:L.arrayOf(L.shape({render:L.func.isRequired}))});Object.assign({},wa,Af,{nodeDesc:L.oneOfType([L.string,L.func]),linkDesc:L.oneOfType([L.string,L.func])});Object.assign({},wa,Af,{markerAttrs:L.object,yOffset:L.number,glScale:L.number});const jf=J1(xb,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});jf.displayName="ForceGraph2D";jf.propTypes=bb;const Eb=e=>{const n=[],i=[];e.forEach(u=>{const f=u.metadata;if(!u.id||!f||typeof f!="object")return;const h={id:u.id,name:f.title||u.id.substring(0,8),memory:u,val:3,type:(f.type||"").toLowerCase()==="document"?"document":"fragment"};(f.type||"").toLowerCase()==="document"?(h.val=5,n.push(h)):(f.type||"").toLowerCase()==="fragment"||f.documentId&&(f.type||"").toLowerCase()!=="document"?(h.val=3,i.push(h)):n.push(h)});const s=[];return i.forEach(u=>{const f=u.memory.metadata;if(f.documentId){const h=n.find(p=>p.id===f.documentId);h&&s.push({source:h.id,target:u.id,value:1})}}),{nodes:[...n,...i],links:s}};function Pb({memories:e,onNodeClick:n,selectedMemoryId:i}){const s=de.useRef(null),[a,u]=de.useState(!1),[f,h]=de.useState(!0),[p,m]=de.useState({nodes:[],links:[]}),v=de.useRef(null),[g,_]=de.useState({width:800,height:600}),x=4;de.useEffect(()=>{if(e.length>0){const S=Eb(e);m(S)}},[e]),de.useEffect(()=>()=>{s.current=null,u(!1),h(!1)},[]),de.useEffect(()=>{const S=()=>{if(v.current){const{offsetWidth:k,offsetHeight:O}=v.current;_({width:k,height:O})}};return S(),window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[]),de.useEffect(()=>{if(a&&s.current&&i){const S=p.nodes.find(k=>k.id===i);S&&(s.current.centerAt(S.x,S.y,1e3),s.current.zoom(2.5,1e3))}},[i,a,p.nodes]);const C=de.useCallback(S=>{if(s.current=S,S){const k=S.d3Force("charge");k&&k.strength(-120);const O=S.d3Force("link");O&&O.distance(50),S.zoomToFit(400),u(!0)}},[]),b=()=>I.jsxs("div",{className:"absolute top-4 right-4 p-3 bg-card/90 text-card-foreground border border-border rounded-md shadow-sm text-xs backdrop-blur-sm",children:[I.jsx("div",{className:"font-medium mb-2 text-xs",children:"Legend"}),I.jsxs("div",{className:"flex items-center mb-2",children:[I.jsx("div",{className:"w-3 h-3 rounded-full bg-orange-500/90 mr-2 border border-orange-600/60"}),I.jsx("span",{children:"Document"})]}),I.jsxs("div",{className:"flex items-center",children:[I.jsx("div",{className:"w-3 h-3 rounded-full bg-gray-400/90 mr-2 border border-gray-500/60"}),I.jsx("span",{children:"Fragment"})]})]});return I.jsxs("div",{ref:v,className:"w-full h-full relative",children:[b(),f&&I.jsx(jf,{ref:C,graphData:p,width:g.width,height:g.height,backgroundColor:"hsla(var(--background), 0.8)",linkColor:()=>"hsla(var(--muted-foreground), 0.2)",linkWidth:1,linkDirectionalParticles:1,linkDirectionalParticleWidth:1,linkDirectionalParticleSpeed:.003,nodeRelSize:x,nodeVal:S=>S.val||3,nodeColor:S=>S.type==="document"?"hsl(30, 100%, 50%)":"hsl(210, 10%, 70%)",nodeLabel:S=>{const k=S.memory.metadata;return`${S.type==="document"?"📄 Document":"📝 Fragment"}: ${k.title||S.id.substring(0,8)}`},onNodeClick:S=>{n(S.memory)},onNodeDragEnd:S=>{S.fx=S.x,S.fy=S.y},cooldownTicks:100,nodeCanvasObjectMode:S=>i===S.id?"after":"replace",nodeCanvasObject:(S,k,O)=>{const{x:A,y:P}=S,N=(S.val||3)*x,z=10/O,F=i===S.id,D=S.type==="document";if(k.beginPath(),k.arc(A||0,P||0,N,0,2*Math.PI),k.fillStyle=D?"hsl(30, 100%, 50%)":"hsl(210, 10%, 70%)",k.fill(),k.strokeStyle=D?"hsl(30, 100%, 35%)":"hsl(210, 10%, 45%)",k.lineWidth=F?2:1,k.stroke(),O>=1.4||F){const Q=S.name||S.id.substring(0,6),K=S.memory.metadata,Z=D?Q:K.position!==void 0?`#${K.position}`:Q;k.font=`${F?"bold ":""}${z}px Arial`,k.textAlign="center",k.textBaseline="middle",k.strokeStyle="hsla(var(--background), 0.8)",k.lineWidth=3,k.strokeText(Z,A||0,P||0),k.fillStyle="hsla(var(--foreground), 0.9)",k.fillText(Z,A||0,P||0)}if(F){k.beginPath(),k.arc(A||0,P||0,N*1.4,0,2*Math.PI),k.strokeStyle=D?"hsla(30, 100%, 60%, 0.8)":"hsla(210, 10%, 80%, 0.8)",k.lineWidth=1.5,k.stroke();const Q=k.createRadialGradient(A||0,P||0,N,A||0,P||0,N*2);Q.addColorStop(0,D?"hsla(30, 100%, 60%, 0.3)":"hsla(210, 10%, 80%, 0.3)"),Q.addColorStop(1,"hsla(0, 0%, 0%, 0)"),k.fillStyle=Q,k.beginPath(),k.arc(A||0,P||0,N*2,0,2*Math.PI),k.fill()}}})]})}const Cs=(...e)=>e.filter(Boolean).join(" "),Nb=()=>({toast:({title:e,description:n,variant:i})=>{console.log(`Toast: ${e} - ${n} (${i||"default"})`)}}),Gg=({open:e,onOpenChange:n,children:i})=>e?I.jsx("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm flex items-center justify-center p-4",onClick:()=>n(!1),children:I.jsx("div",{className:"bg-card text-card-foreground rounded-lg shadow-lg max-w-full max-h-full flex flex-col border border-border",onClick:s=>s.stopPropagation(),children:i})}):null,Xg=({className:e,children:n})=>I.jsx("div",{className:Cs("p-6 flex flex-col border-border",e),children:n}),Yg=({className:e,children:n})=>I.jsx("div",{className:Cs("mb-4",e),children:n}),Zg=({className:e,children:n})=>I.jsx("h2",{className:Cs("text-lg font-semibold",e),children:n}),Jg=({className:e,children:n})=>I.jsx("p",{className:Cs("text-sm text-muted-foreground",e),children:n}),e0=({className:e,children:n})=>I.jsx("div",{className:Cs("flex justify-end gap-2 mt-4",e),children:n}),Wl=10,gs={getKnowledgeDocuments:async(e,n)=>{const i=new URLSearchParams;n!=null&&n.limit&&i.append("limit",n.limit.toString()),n!=null&&n.before&&i.append("before",n.before.toString()),n!=null&&n.includeEmbedding&&i.append("includeEmbedding","true");const s=await fetch(`/api/agents/${e}/plugins/knowledge/documents?${i.toString()}`);if(!s.ok){const a=await s.text();throw new Error(`Failed to fetch knowledge documents: ${s.status} ${a}`)}return await s.json()},getKnowledgeChunks:async(e,n)=>{const i=new URLSearchParams;n!=null&&n.limit&&i.append("limit",n.limit.toString()),n!=null&&n.before&&i.append("before",n.before.toString()),n!=null&&n.documentId&&i.append("documentId",n.documentId);const s=await fetch(`/api/agents/${e}/plugins/knowledge/knowledges?${i.toString()}`);if(!s.ok){const a=await s.text();throw new Error(`Failed to fetch knowledge chunks: ${s.status} ${a}`)}return await s.json()},deleteKnowledgeDocument:async(e,n)=>{const i=await fetch(`/api/agents/${e}/plugins/knowledge/documents/${n}`,{method:"DELETE"});if(!i.ok){const s=await i.text();throw new Error(`Failed to delete knowledge document: ${i.status} ${s}`)}if(i.status!==204)return await i.json()},uploadKnowledge:async(e,n)=>{const i=new FormData;n.forEach(a=>i.append("files",a));const s=await fetch(`/api/agents/${e}/plugins/knowledge/documents`,{method:"POST",body:i});if(!s.ok){const a=await s.text();throw new Error(`Failed to upload knowledge: ${s.status} ${a}`)}return await s.json()}},Tb=(e,n=!0,i=!1)=>qc({queryKey:["agents",e,"knowledge","documents",{includeEmbedding:i}],queryFn:async()=>(await gs.getKnowledgeDocuments(e,{includeEmbedding:i})).data.memories||[],enabled:n}),Mb=(e,n=!0,i)=>{const{data:s=[],isLoading:a,error:u}=qc({queryKey:["agents",e,"knowledge","chunks",{documentIdFilter:i}],queryFn:async()=>(await gs.getKnowledgeChunks(e,{documentId:i})).data.chunks||[],enabled:n}),{data:f=[],isLoading:h,error:p}=qc({queryKey:["agents",e,"knowledge","documents-for-graph"],queryFn:async()=>(await gs.getKnowledgeDocuments(e,{includeEmbedding:!1})).data.memories||[],enabled:n}),m=[...f,...s],v=a||h,g=u||p;return console.log(`Documents: ${f.length}, Fragments: ${s.length}, Total: ${m.length}`),{data:m,isLoading:v,error:g}},Ob=e=>{const n=pa();return g1({mutationFn:async({knowledgeId:i})=>{await gs.deleteKnowledgeDocument(e,i)},onSuccess:()=>{n.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})}})};function Rb({agentId:e}){var ci,so;const[n,i]=de.useState(null),[s,a]=de.useState(!1),[u,f]=de.useState(Wl),[h,p]=de.useState(!1),[m,v]=de.useState("list"),[g,_]=de.useState(null),[x,C]=de.useState(void 0),[b,S]=de.useState(1),[k,O]=de.useState(!1),[A,P]=de.useState(""),[N,z]=de.useState(!1),[F,D]=de.useState(null),[Q,K]=de.useState([]),Z=de.useRef(null),ie=de.useRef(null),{toast:ce}=Nb(),$=pa(),{data:te=[],isLoading:W,error:oe}=Tb(e,m==="list",!1),{data:B=[],isLoading:J,error:G}=Mb(e,m==="graph",x),R=m==="list"?W:J,q=m==="list"?oe:G,le=m==="list"?te:B,{mutate:ge}=Ob(e),ke=de.useCallback(()=>{if(!ie.current||h||u>=le.length)return;const{scrollTop:se,scrollHeight:we,clientHeight:Me}=ie.current;se+Me>=we-100&&(p(!0),setTimeout(()=>{f(He=>Math.min(He+Wl,le.length)),p(!1)},300))},[h,u,le.length]);if(de.useEffect(()=>{f(Wl)},[]),de.useEffect(()=>{const se=ie.current;if(se)return se.addEventListener("scroll",ke),()=>se.removeEventListener("scroll",ke)},[ke]),R&&(!le||le.length===0))return I.jsx("div",{className:"flex items-center justify-center h-40",children:"Loading knowledge documents..."});if(q)return I.jsxs("div",{className:"flex items-center justify-center h-40 text-destructive",children:["Error loading knowledge documents: ",q.message]});const Ce=se=>{const we=new Date(se);return`${we.toLocaleDateString()} ${we.toLocaleTimeString()}`},Ee=se=>{var Me;switch((Me=se.split(".").pop())==null?void 0:Me.toLowerCase()){case"md":return I.jsx(yc,{className:"h-4 w-4 text-blue-500"});case"js":case"ts":case"jsx":case"tsx":return I.jsx(yc,{className:"h-4 w-4 text-yellow-500"});case"json":return I.jsx(yc,{className:"h-4 w-4 text-green-500"});case"pdf":return I.jsx(Lp,{className:"h-4 w-4 text-red-500"});default:return I.jsx(Lp,{className:"h-4 w-4 text-gray-500"})}},be=se=>{se&&window.confirm("Are you sure you want to delete this document?")&&(ge({knowledgeId:se}),i(null))},Ae=()=>{Z.current&&Z.current.click()},gt=()=>{O(!0),P(""),K([]),D(null)},Rr=()=>{try{if(!new URL(A).protocol.startsWith("http")){D("URL must start with http:// or https://");return}if(Q.includes(A)){D("This URL is already in the list");return}K([...Q,A]),P(""),D(null)}catch{D("Invalid URL")}},bs=se=>{K(Q.filter(we=>we!==se))},ui=async()=>{var se;if(A.trim())try{new URL(A).protocol.startsWith("http")&&!Q.includes(A)&&K([...Q,A])}catch{}if(Q.length===0){D("Please add at least one valid URL");return}z(!0),D(null);try{const we=await fetch(`/api/agents/${e}/plugins/knowledge/documents`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileUrls:Q})});if(!we.ok){const St=await we.text();throw new Error(St)}const Me=await we.json();Me.success?(ce({title:"URLs imported",description:`Successfully imported ${Q.length} document(s)`}),O(!1),$.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})):D(((se=Me.error)==null?void 0:se.message)||"Error importing documents from URLs")}catch(we){D(we.message||"Error importing documents from URLs"),ce({title:"Error",description:"Failed to import documents from URLs",variant:"destructive"})}finally{z(!1)}},ro=async se=>{const we=se.target.files;if(!(!we||we.length===0)){a(!0);try{const Me=Array.from(we),He=(await gs.uploadKnowledge(e,Me)).data||[];if(Array.isArray(He)&&He.every(Ut=>Ut.status==="success"))ce({title:"Knowledge Uploaded",description:`Successfully uploaded ${Me.length} file(s)`}),$.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]});else{const Ut=He.filter(Jt=>Jt.status==="success").length,Ct=Me.length-Ut;ce({title:Ct>0?"Upload Partially Failed":"Upload Issues",description:`Uploaded ${Ut} file(s). ${Ct} file(s) failed. Check console for details.`,variant:Ct>0?"destructive":"default"}),console.error("Upload results:",He)}}catch(Me){ce({title:"Upload Failed",description:Me instanceof Error?Me.message:"Failed to upload knowledge files",variant:"destructive"}),console.error("Upload error:",Me)}finally{a(!1),Z.current&&(Z.current.value="")}}},Es=le.slice(0,u),Ps=u<le.length,io=()=>I.jsx("div",{className:"flex justify-center p-4",children:h?I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx(vc,{className:"h-4 w-4 animate-spin"}),I.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading more..."})]}):I.jsx(ht,{variant:"ghost",size:"sm",onClick:()=>f(se=>se+Wl),className:"text-xs",children:"Show more"})}),Ns=()=>I.jsxs("div",{className:"text-muted-foreground text-center p-12 flex flex-col items-center gap-3 border-2 border-dashed rounded-lg mt-8",children:[I.jsx(b1,{className:"h-12 w-12 text-muted-foreground opacity-20"}),I.jsx("h3",{className:"text-lg font-medium",children:"No Knowledge Documents"}),I.jsx("p",{className:"max-w-md text-sm",children:"No Knowledge Documents found."}),I.jsxs(ht,{variant:"outline",onClick:Ae,children:[I.jsx(Fp,{className:"h-4 w-4 mr-2"}),"Upload Documents"]})]}),oo=({memory:se,index:we})=>{var Ts;const Me=se.metadata||{},St=Me.title||se.id||"Unknown Document",He=Me.filename||"Unknown Document",Ut=Me.fileExt||((Ts=He.split(".").pop())==null?void 0:Ts.toLowerCase())||"",Ct=St,Jt=Me.path||He;return I.jsx("button",{type:"button",className:"w-full text-left",onClick:()=>i(se),children:I.jsxs(O1,{className:"hover:bg-accent/10 transition-colors relative group",children:[I.jsx("div",{className:"absolute top-3 left-3 opacity-70",children:Ee(He)}),I.jsxs(R1,{className:"p-3 pb-2 pl-10",children:[I.jsx("div",{className:"text-xs text-muted-foreground mb-1 line-clamp-1",children:Jt}),I.jsxs("div",{className:"mb-2",children:[I.jsx("div",{className:"text-sm font-medium mb-1",children:Ct}),Me.description&&I.jsx("div",{className:"text-xs text-muted-foreground line-clamp-2",children:Me.description})]})]}),I.jsx(A1,{className:"p-2 border-t bg-muted/30 text-xs text-muted-foreground",children:I.jsxs("div",{className:"flex justify-between items-center w-full",children:[I.jsxs("div",{className:"flex items-center",children:[I.jsx(E1,{className:"h-3 w-3 mr-1.5"}),I.jsx("span",{children:new Date(se.createdAt||0).toLocaleString(void 0,{month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"})})]}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx(M1,{variant:"outline",className:"px-1.5 py-0 h-5",children:Ut||"unknown document"}),se.id&&I.jsx(ht,{variant:"ghost",size:"icon",className:"size-6 opacity-0 group-hover:opacity-100 transition-opacity",onClick:fi=>{fi&&(fi.stopPropagation(),fi.preventDefault()),be(se.id||"")},title:"Delete knowledge",children:I.jsx(T1,{className:"h-3.5 w-3.5 text-destructive"})})]})]})})]})},se.id||we)},Ar=se=>{C(se===x?void 0:se)},Yn=({memory:se})=>{var St,He;const we=se.metadata,Me=(we==null?void 0:we.type)==="fragment";return we==null||we.type,I.jsxs("div",{className:"border-t border-border bg-card text-card-foreground h-full flex flex-col",children:[I.jsxs("div",{className:"p-4 flex justify-between items-start flex-shrink-0",children:[I.jsxs("div",{className:"space-y-1",children:[I.jsxs("h3",{className:"text-sm font-medium flex items-center gap-2",children:[Me?I.jsxs("span",{className:"flex items-center",children:[I.jsx("div",{className:"h-3 w-3 rounded-full bg-accent mr-1.5"}),"Fragment"]}):I.jsxs("span",{className:"flex items-center",children:[I.jsx("div",{className:"h-3 w-3 rounded-full bg-primary mr-1.5"}),"Document"]}),I.jsx("span",{className:"text-muted-foreground ml-2",children:(we==null?void 0:we.title)||((St=se.id)==null?void 0:St.substring(0,8))})]}),I.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[I.jsxs("div",{className:"col-span-2",children:["ID: ",I.jsx("span",{className:"font-mono",children:se.id})]}),Me&&we.documentId&&I.jsxs("div",{className:"col-span-2",children:["Parent Document: ",I.jsx("span",{className:"font-mono text-primary/80",children:we.documentId})]}),Me&&we.position!==void 0&&I.jsxs("div",{children:["Position: ",we.position]}),we.source&&I.jsxs("div",{children:["Source: ",we.source]}),I.jsxs("div",{children:["Created on: ",Ce(se.createdAt||0)]})]})]}),I.jsx(ht,{variant:"ghost",size:"sm",onClick:()=>_(null),className:"text-xs h-7 px-2",children:"Close"})]}),I.jsxs("div",{className:"px-4 pb-4 flex-1 flex flex-col",children:[I.jsx("div",{className:"bg-background rounded border border-border p-3 text-sm overflow-auto flex-1",children:I.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs h-full",children:((He=se.content)==null?void 0:He.text)||"No content available"})}),se.embedding&&I.jsxs("div",{className:"mt-2 flex items-center text-xs text-muted-foreground flex-shrink-0",children:[I.jsx("span",{className:"bg-accent/20 text-accent-foreground px-1.5 py-0.5 rounded text-[10px] font-medium mr-1.5",children:"EMBEDDING"}),I.jsxs("span",{children:["Vector with ",se.embedding.length," dimensions"]})]})]})]})};return I.jsxs("div",{className:"flex flex-col h-full",children:[I.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between p-4 border-b gap-3",children:[I.jsxs("div",{className:"flex flex-col gap-1",children:[I.jsx("h2",{className:"text-lg font-semibold",children:"Knowledge"}),I.jsx("p",{className:"text-xs text-muted-foreground",children:m==="list"?"Viewing documents only":"Viewing documents and their fragments"})]}),I.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[I.jsx(ht,{variant:"outline",size:"sm",onClick:()=>v(m==="list"?"graph":"list"),className:"flex-shrink-0",title:m==="list"?"Switch to Graph view to see documents and fragments":"Switch to List view to see documents only",children:m==="list"?I.jsxs(I.Fragment,{children:[I.jsx(N1,{className:"h-4 w-4 mr-2"}),I.jsx("span",{className:"hidden md:inline",children:"Graph View"}),I.jsx("span",{className:"md:hidden",children:"Graph"})]}):I.jsxs(I.Fragment,{children:[I.jsx(P1,{className:"h-4 w-4 mr-2"}),I.jsx("span",{className:"hidden md:inline",children:"List View"}),I.jsx("span",{className:"md:hidden",children:"List"})]})}),m==="graph"&&x&&I.jsxs(ht,{variant:"outline",size:"sm",onClick:()=>C(void 0),className:"flex-shrink-0",children:[I.jsx("span",{className:"hidden sm:inline",children:"Clear Filter"}),I.jsx("span",{className:"sm:hidden",children:"Clear"})]}),I.jsxs("div",{className:"flex gap-2 ml-auto sm:ml-0",children:[I.jsxs(ht,{variant:"outline",onClick:gt,size:"sm",className:"flex-shrink-0",children:[I.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 sm:mr-2",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[I.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),I.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]}),I.jsx("span",{className:"hidden sm:inline",children:"URL"})]}),I.jsxs(ht,{onClick:Ae,disabled:s,size:"sm",className:"flex-shrink-0",children:[s?I.jsx(vc,{className:"h-4 w-4 animate-spin sm:mr-2"}):I.jsx(Fp,{className:"h-4 w-4 sm:mr-2"}),I.jsx("span",{className:"hidden sm:inline",children:"Upload"})]})]})]})]}),k&&I.jsx(Gg,{open:k,onOpenChange:O,children:I.jsxs(Xg,{className:"max-w-md w-full",children:[I.jsxs(Yg,{children:[I.jsx(Zg,{className:"text-xl font-bold",children:"Import from URL"}),I.jsx(Jg,{children:"Enter one or more URLs of PDF, text, or other files to import into the knowledge base."})]}),I.jsxs("div",{className:"mt-6 space-y-4",children:[I.jsxs("div",{className:"flex gap-2",children:[I.jsx(j1,{placeholder:"https://example.com/document.pdf",value:A,onChange:se=>P(se.target.value),disabled:N,className:"flex-1",onKeyDown:se=>{se.key==="Enter"&&A.trim()&&(se.preventDefault(),Rr())}}),I.jsx(ht,{variant:"outline",size:"sm",onClick:Rr,disabled:N||!A.trim(),children:"Add"})]}),F&&I.jsx("div",{className:"text-sm text-destructive bg-destructive/10 p-2 rounded-md",children:F}),Q.length>0&&I.jsxs("div",{className:"border border-border rounded-md bg-card/50 p-3 mt-2",children:[I.jsxs("h4",{className:"text-sm font-medium mb-2",children:["URLs to import (",Q.length,")"]}),I.jsx("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:Q.map((se,we)=>I.jsxs("div",{className:"flex items-center justify-between text-sm bg-background p-2 rounded border border-border",children:[I.jsx("span",{className:"truncate flex-1",children:se}),I.jsx(ht,{variant:"ghost",size:"icon",className:"h-6 w-6 hover:bg-destructive/10 hover:text-destructive",onClick:()=>bs(se),disabled:N,children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:I.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},we))})]})]}),I.jsxs(e0,{className:"mt-6 pt-4 border-t border-border",children:[I.jsx(ht,{variant:"outline",onClick:()=>O(!1),disabled:N,children:"Cancel"}),I.jsx(ht,{onClick:ui,disabled:N||Q.length===0&&!A.trim(),children:N?I.jsxs(I.Fragment,{children:[I.jsx(vc,{className:"h-4 w-4 animate-spin mr-2"}),"Importing..."]}):"Import"})]})]})}),I.jsx("input",{ref:Z,type:"file",multiple:!0,accept:".txt,.md,.markdown,.pdf,.doc,.docx,.json,.xml,.yaml,.yml,.csv,.tsv,.log,.ini,.cfg,.conf,.env,.gitignore,.dockerignore,.editorconfig,.js,.jsx,.ts,.tsx,.mjs,.cjs,.py,.pyw,.pyi,.java,.c,.cpp,.cc,.cxx,.h,.hpp,.cs,.php,.rb,.go,.rs,.swift,.kt,.kts,.scala,.clj,.cljs,.ex,.exs,.r,.R,.m,.mm,.sh,.bash,.zsh,.fish,.ps1,.bat,.cmd,.sql,.html,.htm,.css,.scss,.sass,.less,.vue,.svelte,.astro,.lua,.pl,.pm,.dart,.hs,.elm,.ml,.fs,.fsx,.vb,.pas,.d,.nim,.zig,.jl,.tcl,.awk,.sed",onChange:ro,className:"hidden"}),I.jsx("div",{className:"flex-1 overflow-hidden",children:le.length===0?I.jsx(Ns,{}):m==="graph"?I.jsxs("div",{className:"flex flex-col h-full",children:[I.jsxs("div",{className:`p-4 overflow-hidden ${g?"h-1/3":"flex-1"} transition-all duration-300`,children:[I.jsx(Pb,{memories:le,onNodeClick:se=>{_(se),se.metadata&&typeof se.metadata=="object"&&"type"in se.metadata&&(se.metadata.type||"").toLowerCase()==="document"&&!("documentId"in se.metadata)&&Ar(se.id)},selectedMemoryId:g==null?void 0:g.id}),x&&I.jsx("div",{className:"absolute top-16 left-4 bg-card/90 backdrop-blur-sm text-card-foreground p-2 rounded-md shadow-sm border border-border",children:I.jsxs("span",{className:"text-xs text-muted-foreground flex items-center",children:[I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3 mr-1.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:I.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),"Filtering by document ID: ",I.jsxs("span",{className:"font-mono ml-1",children:[x.substring(0,8),"..."]})]})})]}),g&&I.jsx("div",{className:"h-2/3 overflow-hidden flex-1 transition-all duration-300",children:I.jsx(Yn,{memory:g})})]}):I.jsxs("div",{ref:ie,className:"h-full overflow-y-auto p-4",children:[I.jsx("div",{className:"grid gap-3",children:Es.map((se,we)=>I.jsx(oo,{memory:se,index:we},se.id||we))}),Ps&&I.jsx(io,{})]})}),n&&I.jsx(Gg,{open:!!n,onOpenChange:()=>i(null),children:I.jsxs(Xg,{className:"max-w-[95vw] w-full max-h-[95vh] h-full overflow-hidden flex flex-col p-0",children:[I.jsx(Yg,{className:"flex-shrink-0 p-6 pb-2",children:I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsxs("div",{children:[I.jsx(Zg,{className:"text-xl",children:((ci=n.metadata)==null?void 0:ci.title)||"Document Content"}),I.jsx(Jg,{children:((so=n.metadata)==null?void 0:so.filename)||"Knowledge document"})]}),(()=>{var He;const se=n.metadata,we=(se==null?void 0:se.contentType)||"",Me=((He=se==null?void 0:se.fileExt)==null?void 0:He.toLowerCase())||"";return we==="application/pdf"||Me==="pdf"?I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx(ht,{variant:"outline",size:"sm",onClick:()=>S(Math.max(.5,b-.25)),disabled:b<=.5,children:I.jsx("span",{className:"text-lg",children:"−"})}),I.jsxs("span",{className:"text-sm font-medium min-w-[60px] text-center",children:[Math.round(b*100),"%"]}),I.jsx(ht,{variant:"outline",size:"sm",onClick:()=>S(Math.min(3,b+.25)),disabled:b>=3,children:I.jsx("span",{className:"text-lg",children:"+"})}),I.jsx(ht,{variant:"outline",size:"sm",onClick:()=>S(1),children:"Reset"})]}):null})()]})}),I.jsx("div",{className:"flex-1 overflow-auto px-6 pb-2",children:(()=>{var He,Ut,Ct;const se=n.metadata,we=(se==null?void 0:se.contentType)||"",Me=((He=se==null?void 0:se.fileExt)==null?void 0:He.toLowerCase())||"";if((we==="application/pdf"||Me==="pdf")&&((Ut=n.content)!=null&&Ut.text)){const Jt=`data:application/pdf;base64,${n.content.text}`;return I.jsx("div",{className:"w-full h-full rounded-lg overflow-auto bg-card border border-border",children:I.jsx("div",{className:"min-w-full flex items-center justify-center p-4",style:{minHeight:"100%",transform:`scale(${b})`,transformOrigin:"top center",width:b>1?`${100/b}%`:"100%"},children:I.jsx("iframe",{src:Jt,className:"w-full border-0 shadow-md",style:{height:"90vh",maxWidth:"1200px",backgroundColor:"var(--background)"},title:"PDF Document"})})})}else return I.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6",children:I.jsx("pre",{className:"whitespace-pre-wrap text-sm font-mono leading-relaxed text-foreground",children:((Ct=n.content)==null?void 0:Ct.text)||"No content available"})})})()}),I.jsx(e0,{className:"flex-shrink-0 p-6 pt-4 border-t border-border",children:I.jsx(ht,{variant:"outline",onClick:()=>{i(null),S(1)},children:"Close"})})]})})]})}const Ab=new Zv;function jb(){const e=window.ELIZA_CONFIG,n=e==null?void 0:e.agentId;return C0.useEffect(()=>{document.documentElement.classList.add("dark")},[]),n?I.jsx(zb,{agentId:n}):I.jsxs("div",{className:"p-4 text-center",children:[I.jsx("div",{className:"text-red-600 font-medium",children:"Error: Agent ID not found"}),I.jsx("div",{className:"text-sm text-gray-600 mt-2",children:"The server should inject the agent ID configuration."})]})}function zb({agentId:e}){return I.jsx(r1,{client:Ab,children:I.jsx(Rb,{agentId:e})})}const t0=document.getElementById("root");t0&&w1.createRoot(t0).render(I.jsx(jb,{}));