@elizaos/plugin-knowledge 1.0.9 → 1.0.10

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.
@@ -0,0 +1,165 @@
1
+ (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 qp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lu={exports:{}},Gi={},au={exports:{}},Ce={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var od;function cy(){if(od)return Ce;od=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"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=m&&j[m]||j["@@iterator"],typeof j=="function"?j:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,C={};function S(j,q,ae){this.props=j,this.context=q,this.refs=C,this.updater=ae||w}S.prototype.isReactComponent={},S.prototype.setState=function(j,q){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,q,"setState")},S.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function k(){}k.prototype=S.prototype;function O(j,q,ae){this.props=j,this.context=q,this.refs=C,this.updater=ae||w}var D=O.prototype=new k;D.constructor=O,b(D,S.prototype),D.isPureReactComponent=!0;var P=Array.isArray,T=Object.prototype.hasOwnProperty,z={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function L(j,q,ae){var ce,ve={},we=null,be=null;if(q!=null)for(ce in q.ref!==void 0&&(be=q.ref),q.key!==void 0&&(we=""+q.key),q)T.call(q,ce)&&!A.hasOwnProperty(ce)&&(ve[ce]=q[ce]);var ke=arguments.length-2;if(ke===1)ve.children=ae;else if(1<ke){for(var Pe=Array(ke),nt=0;nt<ke;nt++)Pe[nt]=arguments[nt+2];ve.children=Pe}if(j&&j.defaultProps)for(ce in ke=j.defaultProps,ke)ve[ce]===void 0&&(ve[ce]=ke[ce]);return{$$typeof:e,type:j,key:we,ref:be,props:ve,_owner:z.current}}function W(j,q){return{$$typeof:e,type:j.type,key:q,ref:j.ref,props:j.props,_owner:j._owner}}function X(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function Z(j){var q={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(ae){return q[ae]})}var oe=/\/+/g;function de(j,q){return typeof j=="object"&&j!==null&&j.key!=null?Z(""+j.key):q.toString(36)}function F(j,q,ae,ce,ve){var we=typeof j;(we==="undefined"||we==="boolean")&&(j=null);var be=!1;if(j===null)be=!0;else switch(we){case"string":case"number":be=!0;break;case"object":switch(j.$$typeof){case e:case n:be=!0}}if(be)return be=j,ve=ve(be),j=ce===""?"."+de(be,0):ce,P(ve)?(ae="",j!=null&&(ae=j.replace(oe,"$&/")+"/"),F(ve,q,ae,"",function(nt){return nt})):ve!=null&&(X(ve)&&(ve=W(ve,ae+(!ve.key||be&&be.key===ve.key?"":(""+ve.key).replace(oe,"$&/")+"/")+j)),q.push(ve)),1;if(be=0,ce=ce===""?".":ce+":",P(j))for(var ke=0;ke<j.length;ke++){we=j[ke];var Pe=ce+de(we,ke);be+=F(we,q,ae,Pe,ve)}else if(Pe=x(j),typeof Pe=="function")for(j=Pe.call(j),ke=0;!(we=j.next()).done;)we=we.value,Pe=ce+de(we,ke++),be+=F(we,q,ae,Pe,ve);else if(we==="object")throw q=String(j),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return be}function ee(j,q,ae){if(j==null)return j;var ce=[],ve=0;return F(j,ce,"","",function(we){return q.call(ae,we,ve++)}),ce}function B(j){if(j._status===-1){var q=j._result;q=q(),q.then(function(ae){(j._status===0||j._status===-1)&&(j._status=1,j._result=ae)},function(ae){(j._status===0||j._status===-1)&&(j._status=2,j._result=ae)}),j._status===-1&&(j._status=0,j._result=q)}if(j._status===1)return j._result.default;throw j._result}var te={current:null},V={transition:null},Y={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:V,ReactCurrentOwner:z};function Q(){throw Error("act(...) is not supported in production builds of React.")}return Ce.Children={map:ee,forEach:function(j,q,ae){ee(j,function(){q.apply(this,arguments)},ae)},count:function(j){var q=0;return ee(j,function(){q++}),q},toArray:function(j){return ee(j,function(q){return q})||[]},only:function(j){if(!X(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},Ce.Component=S,Ce.Fragment=i,Ce.Profiler=a,Ce.PureComponent=O,Ce.StrictMode=s,Ce.Suspense=p,Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,Ce.act=Q,Ce.cloneElement=function(j,q,ae){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var ce=b({},j.props),ve=j.key,we=j.ref,be=j._owner;if(q!=null){if(q.ref!==void 0&&(we=q.ref,be=z.current),q.key!==void 0&&(ve=""+q.key),j.type&&j.type.defaultProps)var ke=j.type.defaultProps;for(Pe in q)T.call(q,Pe)&&!A.hasOwnProperty(Pe)&&(ce[Pe]=q[Pe]===void 0&&ke!==void 0?ke[Pe]:q[Pe])}var Pe=arguments.length-2;if(Pe===1)ce.children=ae;else if(1<Pe){ke=Array(Pe);for(var nt=0;nt<Pe;nt++)ke[nt]=arguments[nt+2];ce.children=ke}return{$$typeof:e,type:j.type,key:ve,ref:we,props:ce,_owner:be}},Ce.createContext=function(j){return j={$$typeof:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:u,_context:j},j.Consumer=j},Ce.createElement=L,Ce.createFactory=function(j){var q=L.bind(null,j);return q.type=j,q},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(j){return{$$typeof:h,render:j}},Ce.isValidElement=X,Ce.lazy=function(j){return{$$typeof:v,_payload:{_status:-1,_result:j},_init:B}},Ce.memo=function(j,q){return{$$typeof:g,type:j,compare:q===void 0?null:q}},Ce.startTransition=function(j){var q=V.transition;V.transition={};try{j()}finally{V.transition=q}},Ce.unstable_act=Q,Ce.useCallback=function(j,q){return te.current.useCallback(j,q)},Ce.useContext=function(j){return te.current.useContext(j)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(j){return te.current.useDeferredValue(j)},Ce.useEffect=function(j,q){return te.current.useEffect(j,q)},Ce.useId=function(){return te.current.useId()},Ce.useImperativeHandle=function(j,q,ae){return te.current.useImperativeHandle(j,q,ae)},Ce.useInsertionEffect=function(j,q){return te.current.useInsertionEffect(j,q)},Ce.useLayoutEffect=function(j,q){return te.current.useLayoutEffect(j,q)},Ce.useMemo=function(j,q){return te.current.useMemo(j,q)},Ce.useReducer=function(j,q,ae){return te.current.useReducer(j,q,ae)},Ce.useRef=function(j){return te.current.useRef(j)},Ce.useState=function(j){return te.current.useState(j)},Ce.useSyncExternalStore=function(j,q,ae){return te.current.useSyncExternalStore(j,q,ae)},Ce.useTransition=function(){return te.current.useTransition()},Ce.version="18.3.1",Ce}var sd;function Ju(){return sd||(sd=1,au.exports=cy()),au.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var ld;function fy(){if(ld)return Gi;ld=1;var e=Ju(),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,g){var v,m={},x=null,w=null;g!==void 0&&(x=""+g),p.key!==void 0&&(x=""+p.key),p.ref!==void 0&&(w=p.ref);for(v in p)s.call(p,v)&&!u.hasOwnProperty(v)&&(m[v]=p[v]);if(h&&h.defaultProps)for(v in p=h.defaultProps,p)m[v]===void 0&&(m[v]=p[v]);return{$$typeof:n,type:h,key:x,ref:w,props:m,_owner:a.current}}return Gi.Fragment=i,Gi.jsx=f,Gi.jsxs=f,Gi}var ad;function hy(){return ad||(ad=1,lu.exports=fy()),lu.exports}var N=hy(),li=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(){}},Cr=typeof window>"u"||"Deno"in globalThis;function ct(){}function dy(e,n){return typeof e=="function"?e(n):e}function Nu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Vp(e,n){return Math.max(e+(n||0)-Date.now(),0)}function tr(e,n){return typeof e=="function"?e(n):e}function Zt(e,n){return typeof e=="function"?e(n):e}function ud(e,n){const{type:i="all",exact:s,fetchStatus:a,predicate:u,queryKey:f,stale:h}=e;if(f){if(s){if(n.queryHash!==ec(f,n.options))return!1}else if(!fo(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 cd(e,n){const{exact:i,status:s,predicate:a,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(i){if(Er(n.options.mutationKey)!==Er(u))return!1}else if(!fo(n.options.mutationKey,u))return!1}return!(s&&n.state.status!==s||a&&!a(n))}function ec(e,n){return(n?.queryKeyHashFn||Er)(e)}function Er(e){return JSON.stringify(e,(n,i)=>Pu(i)?Object.keys(i).sort().reduce((s,a)=>(s[a]=i[a],s),{}):i)}function fo(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(i=>fo(e[i],n[i])):!1}function Bp(e,n){if(e===n)return e;const i=fd(e)&&fd(n);if(i||Pu(e)&&Pu(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 g=0;for(let v=0;v<f;v++){const m=i?v:u[v];(!i&&p.has(m)||i)&&e[m]===void 0&&n[m]===void 0?(h[m]=void 0,g++):(h[m]=Bp(e[m],n[m]),h[m]===e[m]&&e[m]!==void 0&&g++)}return a===f&&g===a?e:h}return n}function tl(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 fd(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pu(e){if(!hd(e))return!1;const n=e.constructor;if(n===void 0)return!0;const i=n.prototype;return!(!hd(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function hd(e){return Object.prototype.toString.call(e)==="[object Object]"}function py(e){return new Promise(n=>{setTimeout(n,e)})}function Tu(e,n,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,n):i.structuralSharing!==!1?Bp(e,n):n}function gy(e,n,i=0){const s=[...e,n];return i&&s.length>i?s.slice(1):s}function my(e,n,i=0){const s=[n,...e];return i&&s.length>i?s.slice(0,-1):s}var tc=Symbol();function Qp(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===tc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Wp(e,n){return typeof e=="function"?e(...n):!!e}var yy=class extends li{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Cr&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},nc=new yy,vy=class extends li{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Cr&&window.addEventListener){const n=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(i=>{i(e)}))}isOnline(){return this.#t}},nl=new vy;function ju(){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 xy(e){return Math.min(1e3*2**e,3e4)}function Kp(e){return(e??"online")==="online"?nl.isOnline():!0}var Gp=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function uu(e){return e instanceof Gp}function Xp(e){let n=!1,i=0,s=!1,a;const u=ju(),f=C=>{s||(x(new Gp(C)),e.abort?.())},h=()=>{n=!0},p=()=>{n=!1},g=()=>nc.isFocused()&&(e.networkMode==="always"||nl.isOnline())&&e.canRun(),v=()=>Kp(e.networkMode)&&e.canRun(),m=C=>{s||(s=!0,e.onSuccess?.(C),a?.(),u.resolve(C))},x=C=>{s||(s=!0,e.onError?.(C),a?.(),u.reject(C))},w=()=>new Promise(C=>{a=S=>{(s||g())&&C(S)},e.onPause?.()}).then(()=>{a=void 0,s||e.onContinue?.()}),b=()=>{if(s)return;let C;const S=i===0?e.initialPromise:void 0;try{C=S??e.fn()}catch(k){C=Promise.reject(k)}Promise.resolve(C).then(m).catch(k=>{if(s)return;const O=e.retry??(Cr?0:3),D=e.retryDelay??xy,P=typeof D=="function"?D(i,k):D,T=O===!0||typeof O=="number"&&i<O||typeof O=="function"&&O(i,k);if(n||!T){x(k);return}i++,e.onFail?.(i,k),py(P).then(()=>g()?void 0:w()).then(()=>{n?x(k):b()})})};return{promise:u,cancel:f,continue:()=>(a?.(),u),cancelRetry:h,continueRetry:p,canStart:v,start:()=>(v()?b():w().then(b),u)}}var _y=e=>setTimeout(e,0);function wy(){let e=[],n=0,i=h=>{h()},s=h=>{h()},a=_y;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 We=wy(),Yp=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Nu(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Cr?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},ky=class extends Yp{#t;#e;#n;#r;#i;#s;#l;constructor(e){super(),this.#l=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Sy(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const i=Tu(this.state.data,e,this.options);return this.#o({data:i,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),i}setState(e,n){this.#o({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#i?.promise;return this.#i?.cancel(e),n?n.then(ct).catch(ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Zt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===tc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>tr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Vp(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#i&&(this.#l?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}fetch(e,n){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}const i=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#l=!0,i.signal)})},a=()=>{const p=Qp(this.options,n),v=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return s(m),m})();return this.#l=!1,this.options.persister?this.options.persister(p,v,this):p(v)},f=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return s(p),p})();this.options.behavior?.onFetch(f,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#o({type:"fetch",meta:f.fetchOptions?.meta});const h=p=>{uu(p)&&p.silent||this.#o({type:"error",error:p}),uu(p)||(this.#n.config.onError?.(p,this),this.#n.config.onSettled?.(this.state.data,p,this)),this.scheduleGc()};return this.#i=Xp({initialPromise:n?.initialPromise,fn:f.fetchFn,abort:i.abort.bind(i),onSuccess:p=>{if(p===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(g){h(g);return}this.#n.config.onSuccess?.(p,this),this.#n.config.onSettled?.(p,this.state.error,this),this.scheduleGc()},onError:h,onFail:(p,g)=>{this.#o({type:"failed",failureCount:p,error:g})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}),this.#i.start()}#o(e){const n=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Zp(i.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...i,data:e.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=e.error;return uu(s)&&s.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=n(this.state),We.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Zp(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kp(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Sy(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 by=class extends li{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,n,i){const s=n.queryKey,a=n.queryHash??ec(s,n);let u=this.get(a);return u||(u=new ky({client:e,queryKey:s,queryHash:a,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(s)}),this.add(u)),u}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#t.get(e.queryHash);n&&(e.destroy(),n===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){We.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(i=>ud(n,i))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(i=>ud(e,i)):n}notify(e){We.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){We.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){We.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Cy=class extends Yp{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||Jp(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(n=>n!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#r({type:"continue"})};this.#n=Xp({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,u)=>{this.#r({type:"failed",failureCount:a,error:u})},onPause:()=>{this.#r({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const i=this.state.status==="pending",s=!this.#n.canStart();try{if(i)n();else{this.#r({type:"pending",variables:e,isPaused:s}),await this.#e.config.onMutate?.(e,this);const u=await this.options.onMutate?.(e);u!==this.state.context&&this.#r({type:"pending",context:u,variables:e,isPaused:s})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const n=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),We.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function Jp(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ey=class extends li{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,n,i){const s=new Cy({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:i});return this.add(s),s}add(e){this.#t.add(e);const n=$s(e);if(typeof n=="string"){const i=this.#e.get(n);i?i.push(e):this.#e.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const n=$s(e);if(typeof n=="string"){const i=this.#e.get(n);if(i)if(i.length>1){const s=i.indexOf(e);s!==-1&&i.splice(s,1)}else i[0]===e&&this.#e.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=$s(e);if(typeof n=="string"){const s=this.#e.get(n)?.find(a=>a.state.status==="pending");return!s||s===e}else return!0}runNext(e){const n=$s(e);return typeof n=="string"?this.#e.get(n)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){We.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const n={exact:!0,...e};return this.getAll().find(i=>cd(n,i))}findAll(e={}){return this.getAll().filter(n=>cd(e,n))}notify(e){We.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return We.batch(()=>Promise.all(e.map(n=>n.continue().catch(ct))))}};function $s(e){return e.options.scope?.id}function dd(e){return{onFetch:(n,i)=>{const s=n.options,a=n.fetchOptions?.meta?.fetchMore?.direction,u=n.state.data?.pages||[],f=n.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const g=async()=>{let v=!1;const m=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(n.signal.aborted?v=!0:n.signal.addEventListener("abort",()=>{v=!0}),n.signal)})},x=Qp(n.options,n.fetchOptions),w=async(b,C,S)=>{if(v)return Promise.reject();if(C==null&&b.pages.length)return Promise.resolve(b);const O=(()=>{const z={client:n.client,queryKey:n.queryKey,pageParam:C,direction:S?"backward":"forward",meta:n.options.meta};return m(z),z})(),D=await x(O),{maxPages:P}=n.options,T=S?my:gy;return{pages:T(b.pages,D,P),pageParams:T(b.pageParams,C,P)}};if(a&&u.length){const b=a==="backward",C=b?Ny:pd,S={pages:u,pageParams:f},k=C(s,S);h=await w(S,k,b)}else{const b=e??u.length;do{const C=p===0?f[0]??s.initialPageParam:pd(s,h);if(p>0&&C==null)break;h=await w(h,C),p++}while(p<b)}return h};n.options.persister?n.fetchFn=()=>n.options.persister?.(g,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},i):n.fetchFn=g}}}function pd(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 Ny(e,{pages:n,pageParams:i}){return n.length>0?e.getPreviousPageParam?.(n[0],n,i[0],i):void 0}var Py=class{#t;#e;#n;#r;#i;#s;#l;#o;constructor(e={}){this.#t=e.queryCache||new by,this.#e=e.mutationCache||new Ey,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#l=nc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=nl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#l?.(),this.#l=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#t.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),i=this.#t.build(this,n),s=i.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(tr(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:n,state:i})=>{const s=i.data;return[n,s]})}setQueryData(e,n,i){const s=this.defaultQueryOptions({queryKey:e}),u=this.#t.get(s.queryHash)?.state.data,f=dy(n,u);if(f!==void 0)return this.#t.build(this,s).setData(f,{...i,manual:!0})}setQueriesData(e,n,i){return We.batch(()=>this.#t.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,i)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#t.get(n.queryHash)?.state}removeQueries(e){const n=this.#t;We.batch(()=>{n.findAll(e).forEach(i=>{n.remove(i)})})}resetQueries(e,n){const i=this.#t;return We.batch(()=>(i.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const i={revert:!0,...n},s=We.batch(()=>this.#t.findAll(e).map(a=>a.cancel(i)));return Promise.all(s).then(ct).catch(ct)}invalidateQueries(e,n={}){return We.batch(()=>(this.#t.findAll(e).forEach(i=>{i.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const i={...n,cancelRefetch:n.cancelRefetch??!0},s=We.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(ct)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(s).then(ct)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const i=this.#t.build(this,n);return i.isStaleByTime(tr(n.staleTime,i))?i.fetch(n):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ct).catch(ct)}fetchInfiniteQuery(e){return e.behavior=dd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ct).catch(ct)}ensureInfiniteQueryData(e){return e.behavior=dd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return nl.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#r.set(Er(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()],i={};return n.forEach(s=>{fo(e,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(e,n){this.#i.set(Er(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#i.values()],i={};return n.forEach(s=>{fo(e,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=ec(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===tc&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Ty=class extends li{constructor(e,n){super(),this.options=n,this.#t=e,this.#o=null,this.#l=ju(),this.options.experimental_prefetchInRender||this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}#t;#e=void 0;#n=void 0;#r=void 0;#i;#s;#l;#o;#g;#h;#d;#u;#c;#a;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),gd(this.#e,this.options)?this.#f():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mu(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mu(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const n=this.options,i=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Zt(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#e.setOptions(this.options),n._defaulted&&!tl(this.options,n)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&md(this.#e,i,this.options,n)&&this.#f(),this.updateResult(),s&&(this.#e!==i||Zt(this.options.enabled,this.#e)!==Zt(n.enabled,this.#e)||tr(this.options.staleTime,this.#e)!==tr(n.staleTime,this.#e))&&this.#m();const a=this.#y();s&&(this.#e!==i||Zt(this.options.enabled,this.#e)!==Zt(n.enabled,this.#e)||a!==this.#a)&&this.#v(a)}getOptimisticResult(e){const n=this.#t.getQueryCache().build(this.#t,e),i=this.createResult(n,e);return My(this,i)&&(this.#r=i,this.#s=this.options,this.#i=this.#e.state),i}getCurrentResult(){return this.#r}trackResult(e,n){return new Proxy(e,{get:(i,s)=>(this.trackProp(s),n?.(s),Reflect.get(i,s))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=this.#t.defaultQueryOptions(e),i=this.#t.getQueryCache().build(this.#t,n);return i.fetch().then(()=>this.createResult(i,n))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#k();let n=this.#e.fetch(this.options,e);return e?.throwOnError||(n=n.catch(ct)),n}#m(){this.#_();const e=tr(this.options.staleTime,this.#e);if(Cr||this.#r.isStale||!Nu(e))return;const i=Vp(this.#r.dataUpdatedAt,e)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},i)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#w(),this.#a=e,!(Cr||Zt(this.options.enabled,this.#e)===!1||!Nu(this.#a)||this.#a===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||nc.isFocused())&&this.#f()},this.#a))}#x(){this.#m(),this.#v(this.#y())}#_(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#w(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(e,n){const i=this.#e,s=this.options,a=this.#r,u=this.#i,f=this.#s,p=e!==i?e.state:this.#n,{state:g}=e;let v={...g},m=!1,x;if(n._optimisticResults){const L=this.hasListeners(),W=!L&&gd(e,n),X=L&&md(e,i,n,s);(W||X)&&(v={...v,...Zp(g.data,e.options)}),n._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:w,errorUpdatedAt:b,status:C}=v;x=v.data;let S=!1;if(n.placeholderData!==void 0&&x===void 0&&C==="pending"){let L;a?.isPlaceholderData&&n.placeholderData===f?.placeholderData?(L=a.data,S=!0):L=typeof n.placeholderData=="function"?n.placeholderData(this.#d?.state.data,this.#d):n.placeholderData,L!==void 0&&(C="success",x=Tu(a?.data,L,n),m=!0)}if(n.select&&x!==void 0&&!S)if(a&&x===u?.data&&n.select===this.#g)x=this.#h;else try{this.#g=n.select,x=n.select(x),x=Tu(a?.data,x,n),this.#h=x,this.#o=null}catch(L){this.#o=L}this.#o&&(w=this.#o,x=this.#h,b=Date.now(),C="error");const k=v.fetchStatus==="fetching",O=C==="pending",D=C==="error",P=O&&k,T=x!==void 0,A={status:C,fetchStatus:v.fetchStatus,isPending:O,isSuccess:C==="success",isError:D,isInitialLoading:P,isLoading:P,data:x,dataUpdatedAt:v.dataUpdatedAt,error:w,errorUpdatedAt:b,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:k,isRefetching:k&&!O,isLoadingError:D&&!T,isPaused:v.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:D&&T,isStale:rc(e,n),refetch:this.refetch,promise:this.#l};if(this.options.experimental_prefetchInRender){const L=Z=>{A.status==="error"?Z.reject(A.error):A.data!==void 0&&Z.resolve(A.data)},W=()=>{const Z=this.#l=A.promise=ju();L(Z)},X=this.#l;switch(X.status){case"pending":e.queryHash===i.queryHash&&L(X);break;case"fulfilled":(A.status==="error"||A.data!==X.value)&&W();break;case"rejected":(A.status!=="error"||A.error!==X.reason)&&W();break}}return A}updateResult(){const e=this.#r,n=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#s=this.options,this.#i.data!==void 0&&(this.#d=this.#e),tl(n,e))return;this.#r=n;const i=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,a=typeof s=="function"?s():s;if(a==="all"||!a&&!this.#p.size)return!0;const u=new Set(a??this.#p);return this.options.throwOnError&&u.add("error"),Object.keys(this.#r).some(f=>{const h=f;return this.#r[h]!==e[h]&&u.has(h)})};this.#S({listeners:i()})}#k(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const n=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(n?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#S(e){We.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function jy(e,n){return Zt(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function gd(e,n){return jy(e,n)||e.state.data!==void 0&&Mu(e,n,n.refetchOnMount)}function Mu(e,n,i){if(Zt(n.enabled,e)!==!1&&tr(n.staleTime,e)!=="static"){const s=typeof i=="function"?i(e):i;return s==="always"||s!==!1&&rc(e,n)}return!1}function md(e,n,i,s){return(e!==n||Zt(s.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&rc(e,i)}function rc(e,n){return Zt(n.enabled,e)!==!1&&e.isStaleByTime(tr(n.staleTime,e))}function My(e,n){return!tl(e.getCurrentResult(),n)}var Oy=class extends li{#t;#e=void 0;#n;#r;constructor(n,i){super(),this.#t=n,this.setOptions(i),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const i=this.options;this.options=this.#t.defaultMutationOptions(n),tl(this.options,i)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Er(i.mutationKey)!==Er(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(n){this.#i(),this.#s(n)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#s()}mutate(n,i){return this.#r=i,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(n)}#i(){const n=this.#n?.state??Jp();this.#e={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#s(n){We.batch(()=>{if(this.#r&&this.hasListeners()){const i=this.#e.variables,s=this.#e.context;n?.type==="success"?(this.#r.onSuccess?.(n.data,i,s),this.#r.onSettled?.(n.data,null,i,s)):n?.type==="error"&&(this.#r.onError?.(n.error,i,s),this.#r.onSettled?.(void 0,n.error,i,s))}this.listeners.forEach(i=>{i(this.#e)})})}},le=Ju();const eg=qp(le);var tg=le.createContext(void 0),gl=e=>{const n=le.useContext(tg);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},Ry=({client:e,children:n})=>(le.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(tg.Provider,{value:e,children:n})),ng=le.createContext(!1),Ay=()=>le.useContext(ng);ng.Provider;function zy(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Dy=le.createContext(zy()),Iy=()=>le.useContext(Dy),Ly=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},Fy=e=>{le.useEffect(()=>{e.clearReset()},[e])},$y=({result:e,errorResetBoundary:n,throwOnError:i,query:s,suspense:a})=>e.isError&&!n.isReset()&&!e.isFetching&&s&&(a&&e.data===void 0||Wp(i,[e.error,s])),Uy=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))}},Hy=(e,n)=>e.isLoading&&e.isFetching&&!n,qy=(e,n)=>e?.suspense&&n.isPending,yd=(e,n,i)=>n.fetchOptimistic(e).catch(()=>{i.clearReset()});function Vy(e,n,i){const s=Ay(),a=Iy(),u=gl(),f=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(f),f._optimisticResults=s?"isRestoring":"optimistic",Uy(f),Ly(f,a),Fy(a);const h=!u.getQueryCache().get(f.queryHash),[p]=le.useState(()=>new n(u,f)),g=p.getOptimisticResult(f),v=!s&&e.subscribed!==!1;if(le.useSyncExternalStore(le.useCallback(m=>{const x=v?p.subscribe(We.batchCalls(m)):ct;return p.updateResult(),x},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),le.useEffect(()=>{p.setOptions(f)},[f,p]),qy(f,g))throw yd(f,p,a);if($y({result:g,errorResetBoundary:a,throwOnError:f.throwOnError,query:u.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw g.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(f,g),f.experimental_prefetchInRender&&!Cr&&Hy(g,s)&&(h?yd(f,p,a):u.getQueryCache().get(f.queryHash)?.promise)?.catch(ct).finally(()=>{p.updateResult()}),f.notifyOnChangeProps?g:p.trackResult(g)}function Ou(e,n){return Vy(e,Ty)}function By(e,n){const i=gl(),[s]=le.useState(()=>new Oy(i,e));le.useEffect(()=>{s.setOptions(e)},[s,e]);const a=le.useSyncExternalStore(le.useCallback(f=>s.subscribe(We.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=le.useCallback((f,h)=>{s.mutate(f,h).catch(ct)},[s]);if(a.error&&Wp(s.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}var Us={},cu={exports:{}},wt={},fu={exports:{}},hu={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var vd;function Qy(){return vd||(vd=1,function(e){function n(V,Y){var Q=V.length;V.push(Y);e:for(;0<Q;){var j=Q-1>>>1,q=V[j];if(0<a(q,Y))V[j]=Y,V[Q]=q,Q=j;else break e}}function i(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var Y=V[0],Q=V.pop();if(Q!==Y){V[0]=Q;e:for(var j=0,q=V.length,ae=q>>>1;j<ae;){var ce=2*(j+1)-1,ve=V[ce],we=ce+1,be=V[we];if(0>a(ve,Q))we<q&&0>a(be,ve)?(V[j]=be,V[we]=Q,j=we):(V[j]=ve,V[ce]=Q,j=ce);else if(we<q&&0>a(be,Q))V[j]=be,V[we]=Q,j=we;else break e}}return Y}function a(V,Y){var Q=V.sortIndex-Y.sortIndex;return Q!==0?Q:V.id-Y.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=[],g=[],v=1,m=null,x=3,w=!1,b=!1,C=!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 D(V){for(var Y=i(g);Y!==null;){if(Y.callback===null)s(g);else if(Y.startTime<=V)s(g),Y.sortIndex=Y.expirationTime,n(p,Y);else break;Y=i(g)}}function P(V){if(C=!1,D(V),!b)if(i(p)!==null)b=!0,B(T);else{var Y=i(g);Y!==null&&te(P,Y.startTime-V)}}function T(V,Y){b=!1,C&&(C=!1,k(L),L=-1),w=!0;var Q=x;try{for(D(Y),m=i(p);m!==null&&(!(m.expirationTime>Y)||V&&!Z());){var j=m.callback;if(typeof j=="function"){m.callback=null,x=m.priorityLevel;var q=j(m.expirationTime<=Y);Y=e.unstable_now(),typeof q=="function"?m.callback=q:m===i(p)&&s(p),D(Y)}else s(p);m=i(p)}if(m!==null)var ae=!0;else{var ce=i(g);ce!==null&&te(P,ce.startTime-Y),ae=!1}return ae}finally{m=null,x=Q,w=!1}}var z=!1,A=null,L=-1,W=5,X=-1;function Z(){return!(e.unstable_now()-X<W)}function oe(){if(A!==null){var V=e.unstable_now();X=V;var Y=!0;try{Y=A(!0,V)}finally{Y?de():(z=!1,A=null)}}else z=!1}var de;if(typeof O=="function")de=function(){O(oe)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,ee=F.port2;F.port1.onmessage=oe,de=function(){ee.postMessage(null)}}else de=function(){S(oe,0)};function B(V){A=V,z||(z=!0,de())}function te(V,Y){L=S(function(){V(e.unstable_now())},Y)}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(V){V.callback=null},e.unstable_continueExecution=function(){b||w||(b=!0,B(T))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(V){switch(x){case 1:case 2:case 3:var Y=3;break;default:Y=x}var Q=x;x=Y;try{return V()}finally{x=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,Y){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Q=x;x=V;try{return Y()}finally{x=Q}},e.unstable_scheduleCallback=function(V,Y,Q){var j=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?j+Q:j):Q=j,V){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=Q+q,V={id:v++,callback:Y,priorityLevel:V,startTime:Q,expirationTime:q,sortIndex:-1},Q>j?(V.sortIndex=Q,n(g,V),i(p)===null&&V===i(g)&&(C?(k(L),L=-1):C=!0,te(P,Q-j))):(V.sortIndex=q,n(p,V),b||w||(b=!0,B(T))),V},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(V){var Y=x;return function(){var Q=x;x=Y;try{return V.apply(this,arguments)}finally{x=Q}}}}(hu)),hu}var xd;function Wy(){return xd||(xd=1,fu.exports=Qy()),fu.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var _d;function Ky(){if(_d)return wt;_d=1;var e=Ju(),n=Wy();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,g=/^[: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={},m={};function x(r){return p.call(m,r)?!0:p.call(v,r)?!1:g.test(r)?m[r]=!0:(v[r]=!0,!1)}function w(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 b(r,o,l,c){if(o===null||typeof o>"u"||w(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 C(r,o,l,c,d,y,_){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=_}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){S[r]=new C(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 C(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){S[r]=new C(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){S[r]=new C(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 C(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){S[r]=new C(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){S[r]=new C(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){S[r]=new C(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){S[r]=new C(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 C(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 C(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 C(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){S[r]=new C(r,1,!1,r.toLowerCase(),null,!1,!1)}),S.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){S[r]=new C(r,1,!1,r.toLowerCase(),null,!0,!0)});function D(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")&&(b(o,l,d,c)&&(l=null),c||d===null?x(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"),A=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),X=Symbol.for("react.provider"),Z=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),V=Symbol.iterator;function Y(r){return r===null||typeof r!="object"?null:(r=V&&r[V]||r["@@iterator"],typeof r=="function"?r:null)}var Q=Object.assign,j;function q(r){if(j===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);j=o&&o[1]||""}return`
34
+ `+j+r}var ae=!1;function ce(r,o){if(!r||ae)return"";ae=!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(H){var c=H}Reflect.construct(r,[],o)}else{try{o.call()}catch(H){c=H}r.call(o.prototype)}else{try{throw Error()}catch(H){c=H}r()}}catch(H){if(H&&c&&typeof H.stack=="string"){for(var d=H.stack.split(`
35
+ `),y=c.stack.split(`
36
+ `),_=d.length-1,E=y.length-1;1<=_&&0<=E&&d[_]!==y[E];)E--;for(;1<=_&&0<=E;_--,E--)if(d[_]!==y[E]){if(_!==1||E!==1)do if(_--,E--,0>E||d[_]!==y[E]){var M=`
37
+ `+d[_].replace(" at new "," at ");return r.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",r.displayName)),M}while(1<=_&&0<=E);break}}}finally{ae=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?q(r):""}function ve(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=ce(r.type,!1),r;case 11:return r=ce(r.type.render,!1),r;case 1:return r=ce(r.type,!0),r;default:return""}}function we(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 A:return"Fragment";case z:return"Portal";case W:return"Profiler";case L:return"StrictMode";case de:return"Suspense";case F:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Z:return(r.displayName||"Context")+".Consumer";case X:return(r._context.displayName||"Context")+".Provider";case oe:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ee:return o=r.displayName||null,o!==null?o:we(r.type)||"Memo";case B:o=r._payload,r=r._init;try{return we(r(o))}catch{}}return null}function be(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 we(o);case 8:return o===L?"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 ke(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Pe(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function nt(r){var o=Pe(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(_){c=""+_,y.call(this,_)}}),Object.defineProperty(r,o,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(_){c=""+_},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function nr(r){r._valueTracker||(r._valueTracker=nt(r))}function Eo(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var l=o.getValue(),c="";return r&&(c=Pe(r)?r.checked?"true":"false":r.value),r=c,r!==l?(o.setValue(r),!0):!1}function Pr(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 Tr(r,o){var l=o.checked;return Q({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function Ut(r,o){var l=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;l=ke(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 No(r,o){o=o.checked,o!=null&&D(r,"checked",o,!1)}function rr(r,o){No(r,o);var l=ke(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")?ai(r,o.type,l):o.hasOwnProperty("defaultValue")&&ai(r,o.type,ke(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function Po(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 ai(r,o,l){(o!=="number"||Pr(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var ir=Array.isArray;function pn(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=""+ke(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 ui(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(i(91));return Q({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function ci(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(ir(l)){if(1<l.length)throw Error(i(93));l=l[0]}o=l}o==null&&(o=""),l=o}r._wrapperState={initialValue:ke(l)}}function To(r,o){var l=ke(o.value),c=ke(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 fi(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function jo(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 hi(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?jo(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var jr,Mo=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(jr=jr||document.createElement("div"),jr.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=jr.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function or(r,o){if(o){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=o;return}}r.textContent=o}var sr={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},Sl=["Webkit","ms","Moz","O"];Object.keys(sr).forEach(function(r){Sl.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),sr[o]=sr[r]})});function Oo(r,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||sr.hasOwnProperty(r)&&sr[r]?(""+o).trim():o+"px"}function ie(r,o){r=r.style;for(var l in o)if(o.hasOwnProperty(l)){var c=l.indexOf("--")===0,d=Oo(l,o[l],c);l==="float"&&(l="cssFloat"),c?r.setProperty(l,d):r[l]=d}}var Se=Q({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 xe(r,o){if(o){if(Se[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 dt(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 pt=null;function On(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ht=null,Ze=null,gt=null;function qt(r){if(r=Ai(r)){if(typeof Ht!="function")throw Error(i(280));var o=r.stateNode;o&&(o=ts(o),Ht(r.stateNode,r.type,o))}}function kc(r){Ze?gt?gt.push(r):gt=[r]:Ze=r}function Sc(){if(Ze){var r=Ze,o=gt;if(gt=Ze=null,qt(r),o)for(r=0;r<o.length;r++)qt(o[r])}}function bc(r,o){return r(o)}function Cc(){}var bl=!1;function Ec(r,o,l){if(bl)return r(o,l);bl=!0;try{return bc(r,o,l)}finally{bl=!1,(Ze!==null||gt!==null)&&(Cc(),Sc())}}function di(r,o){var l=r.stateNode;if(l===null)return null;var c=ts(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 Cl=!1;if(h)try{var pi={};Object.defineProperty(pi,"passive",{get:function(){Cl=!0}}),window.addEventListener("test",pi,pi),window.removeEventListener("test",pi,pi)}catch{Cl=!1}function mm(r,o,l,c,d,y,_,E,M){var H=Array.prototype.slice.call(arguments,3);try{o.apply(l,H)}catch(G){this.onError(G)}}var gi=!1,Ro=null,Ao=!1,El=null,ym={onError:function(r){gi=!0,Ro=r}};function vm(r,o,l,c,d,y,_,E,M){gi=!1,Ro=null,mm.apply(ym,arguments)}function xm(r,o,l,c,d,y,_,E,M){if(vm.apply(this,arguments),gi){if(gi){var H=Ro;gi=!1,Ro=null}else throw Error(i(198));Ao||(Ao=!0,El=H)}}function lr(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 Nc(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 Pc(r){if(lr(r)!==r)throw Error(i(188))}function _m(r){var o=r.alternate;if(!o){if(o=lr(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 Pc(d),r;if(y===c)return Pc(d),o;y=y.sibling}throw Error(i(188))}if(l.return!==c.return)l=d,c=y;else{for(var _=!1,E=d.child;E;){if(E===l){_=!0,l=d,c=y;break}if(E===c){_=!0,c=d,l=y;break}E=E.sibling}if(!_){for(E=y.child;E;){if(E===l){_=!0,l=y,c=d;break}if(E===c){_=!0,c=y,l=d;break}E=E.sibling}if(!_)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 Tc(r){return r=_m(r),r!==null?jc(r):null}function jc(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=jc(r);if(o!==null)return o;r=r.sibling}return null}var Mc=n.unstable_scheduleCallback,Oc=n.unstable_cancelCallback,wm=n.unstable_shouldYield,km=n.unstable_requestPaint,He=n.unstable_now,Sm=n.unstable_getCurrentPriorityLevel,Nl=n.unstable_ImmediatePriority,Rc=n.unstable_UserBlockingPriority,zo=n.unstable_NormalPriority,bm=n.unstable_LowPriority,Ac=n.unstable_IdlePriority,Do=null,nn=null;function Cm(r){if(nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(Do,r,void 0,(r.current.flags&128)===128)}catch{}}var Vt=Math.clz32?Math.clz32:Pm,Em=Math.log,Nm=Math.LN2;function Pm(r){return r>>>=0,r===0?32:31-(Em(r)/Nm|0)|0}var Io=64,Lo=4194304;function mi(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 Fo(r,o){var l=r.pendingLanes;if(l===0)return 0;var c=0,d=r.suspendedLanes,y=r.pingedLanes,_=l&268435455;if(_!==0){var E=_&~d;E!==0?c=mi(E):(y&=_,y!==0&&(c=mi(y)))}else _=l&~d,_!==0?c=mi(_):y!==0&&(c=mi(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-Vt(o),d=1<<l,c|=r[l],o&=~d;return c}function Tm(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 jm(r,o){for(var l=r.suspendedLanes,c=r.pingedLanes,d=r.expirationTimes,y=r.pendingLanes;0<y;){var _=31-Vt(y),E=1<<_,M=d[_];M===-1?((E&l)===0||(E&c)!==0)&&(d[_]=Tm(E,o)):M<=o&&(r.expiredLanes|=E),y&=~E}}function Pl(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function zc(){var r=Io;return Io<<=1,(Io&4194240)===0&&(Io=64),r}function Tl(r){for(var o=[],l=0;31>l;l++)o.push(r);return o}function yi(r,o,l){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-Vt(o),r[o]=l}function Mm(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-Vt(l),y=1<<d;o[d]=0,c[d]=-1,r[d]=-1,l&=~y}}function jl(r,o){var l=r.entangledLanes|=o;for(r=r.entanglements;l;){var c=31-Vt(l),d=1<<c;d&o|r[c]&o&&(r[c]|=o),l&=~d}}var Te=0;function Dc(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Ic,Ml,Lc,Fc,$c,Ol=!1,$o=[],Rn=null,An=null,zn=null,vi=new Map,xi=new Map,Dn=[],Om="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 Uc(r,o){switch(r){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":An=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":vi.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":xi.delete(o.pointerId)}}function _i(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=Ai(o),o!==null&&Ml(o)),r):(r.eventSystemFlags|=c,o=r.targetContainers,d!==null&&o.indexOf(d)===-1&&o.push(d),r)}function Rm(r,o,l,c,d){switch(o){case"focusin":return Rn=_i(Rn,r,o,l,c,d),!0;case"dragenter":return An=_i(An,r,o,l,c,d),!0;case"mouseover":return zn=_i(zn,r,o,l,c,d),!0;case"pointerover":var y=d.pointerId;return vi.set(y,_i(vi.get(y)||null,r,o,l,c,d)),!0;case"gotpointercapture":return y=d.pointerId,xi.set(y,_i(xi.get(y)||null,r,o,l,c,d)),!0}return!1}function Hc(r){var o=ar(r.target);if(o!==null){var l=lr(o);if(l!==null){if(o=l.tag,o===13){if(o=Nc(l),o!==null){r.blockedOn=o,$c(r.priority,function(){Lc(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 Uo(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var l=Al(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);pt=c,l.target.dispatchEvent(c),pt=null}else return o=Ai(l),o!==null&&Ml(o),r.blockedOn=l,!1;o.shift()}return!0}function qc(r,o,l){Uo(r)&&l.delete(o)}function Am(){Ol=!1,Rn!==null&&Uo(Rn)&&(Rn=null),An!==null&&Uo(An)&&(An=null),zn!==null&&Uo(zn)&&(zn=null),vi.forEach(qc),xi.forEach(qc)}function wi(r,o){r.blockedOn===o&&(r.blockedOn=null,Ol||(Ol=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Am)))}function ki(r){function o(d){return wi(d,r)}if(0<$o.length){wi($o[0],r);for(var l=1;l<$o.length;l++){var c=$o[l];c.blockedOn===r&&(c.blockedOn=null)}}for(Rn!==null&&wi(Rn,r),An!==null&&wi(An,r),zn!==null&&wi(zn,r),vi.forEach(o),xi.forEach(o),l=0;l<Dn.length;l++)c=Dn[l],c.blockedOn===r&&(c.blockedOn=null);for(;0<Dn.length&&(l=Dn[0],l.blockedOn===null);)Hc(l),l.blockedOn===null&&Dn.shift()}var Mr=P.ReactCurrentBatchConfig,Ho=!0;function zm(r,o,l,c){var d=Te,y=Mr.transition;Mr.transition=null;try{Te=1,Rl(r,o,l,c)}finally{Te=d,Mr.transition=y}}function Dm(r,o,l,c){var d=Te,y=Mr.transition;Mr.transition=null;try{Te=4,Rl(r,o,l,c)}finally{Te=d,Mr.transition=y}}function Rl(r,o,l,c){if(Ho){var d=Al(r,o,l,c);if(d===null)Yl(r,o,c,qo,l),Uc(r,c);else if(Rm(d,r,o,l,c))c.stopPropagation();else if(Uc(r,c),o&4&&-1<Om.indexOf(r)){for(;d!==null;){var y=Ai(d);if(y!==null&&Ic(y),y=Al(r,o,l,c),y===null&&Yl(r,o,c,qo,l),y===d)break;d=y}d!==null&&c.stopPropagation()}else Yl(r,o,c,null,l)}}var qo=null;function Al(r,o,l,c){if(qo=null,r=On(c),r=ar(r),r!==null)if(o=lr(r),o===null)r=null;else if(l=o.tag,l===13){if(r=Nc(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 qo=r,null}function Vc(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(Sm()){case Nl:return 1;case Rc:return 4;case zo:case bm:return 16;case Ac:return 536870912;default:return 16}default:return 16}}var In=null,zl=null,Vo=null;function Bc(){if(Vo)return Vo;var r,o=zl,l=o.length,c,d="value"in In?In.value:In.textContent,y=d.length;for(r=0;r<l&&o[r]===d[r];r++);var _=l-r;for(c=1;c<=_&&o[l-c]===d[y-c];c++);return Vo=d.slice(r,1<c?1-c:void 0)}function Bo(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 Qo(){return!0}function Qc(){return!1}function bt(r){function o(l,c,d,y,_){this._reactName=l,this._targetInst=d,this.type=c,this.nativeEvent=y,this.target=_,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)?Qo:Qc,this.isPropagationStopped=Qc,this}return Q(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=Qo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Qo)},persist:function(){},isPersistent:Qo}),o}var Or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dl=bt(Or),Si=Q({},Or,{view:0,detail:0}),Im=bt(Si),Il,Ll,bi,Wo=Q({},Si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$l,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!==bi&&(bi&&r.type==="mousemove"?(Il=r.screenX-bi.screenX,Ll=r.screenY-bi.screenY):Ll=Il=0,bi=r),Il)},movementY:function(r){return"movementY"in r?r.movementY:Ll}}),Wc=bt(Wo),Lm=Q({},Wo,{dataTransfer:0}),Fm=bt(Lm),$m=Q({},Si,{relatedTarget:0}),Fl=bt($m),Um=Q({},Or,{animationName:0,elapsedTime:0,pseudoElement:0}),Hm=bt(Um),qm=Q({},Or,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Vm=bt(qm),Bm=Q({},Or,{data:0}),Kc=bt(Bm),Qm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wm={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"},Km={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gm(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=Km[r])?!!o[r]:!1}function $l(){return Gm}var Xm=Q({},Si,{key:function(r){if(r.key){var o=Qm[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=Bo(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Wm[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$l,charCode:function(r){return r.type==="keypress"?Bo(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Bo(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Ym=bt(Xm),Zm=Q({},Wo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gc=bt(Zm),Jm=Q({},Si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$l}),e0=bt(Jm),t0=Q({},Or,{propertyName:0,elapsedTime:0,pseudoElement:0}),n0=bt(t0),r0=Q({},Wo,{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}),i0=bt(r0),o0=[9,13,27,32],Ul=h&&"CompositionEvent"in window,Ci=null;h&&"documentMode"in document&&(Ci=document.documentMode);var s0=h&&"TextEvent"in window&&!Ci,Xc=h&&(!Ul||Ci&&8<Ci&&11>=Ci),Yc=" ",Zc=!1;function Jc(r,o){switch(r){case"keyup":return o0.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ef(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Rr=!1;function l0(r,o){switch(r){case"compositionend":return ef(o);case"keypress":return o.which!==32?null:(Zc=!0,Yc);case"textInput":return r=o.data,r===Yc&&Zc?null:r;default:return null}}function a0(r,o){if(Rr)return r==="compositionend"||!Ul&&Jc(r,o)?(r=Bc(),Vo=zl=In=null,Rr=!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 Xc&&o.locale!=="ko"?null:o.data;default:return null}}var u0={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 tf(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!u0[r.type]:o==="textarea"}function nf(r,o,l,c){kc(c),o=Zo(o,"onChange"),0<o.length&&(l=new Dl("onChange","change",null,l,c),r.push({event:l,listeners:o}))}var Ei=null,Ni=null;function c0(r){wf(r,0)}function Ko(r){var o=Lr(r);if(Eo(o))return r}function f0(r,o){if(r==="change")return o}var rf=!1;if(h){var Hl;if(h){var ql="oninput"in document;if(!ql){var of=document.createElement("div");of.setAttribute("oninput","return;"),ql=typeof of.oninput=="function"}Hl=ql}else Hl=!1;rf=Hl&&(!document.documentMode||9<document.documentMode)}function sf(){Ei&&(Ei.detachEvent("onpropertychange",lf),Ni=Ei=null)}function lf(r){if(r.propertyName==="value"&&Ko(Ni)){var o=[];nf(o,Ni,r,On(r)),Ec(c0,o)}}function h0(r,o,l){r==="focusin"?(sf(),Ei=o,Ni=l,Ei.attachEvent("onpropertychange",lf)):r==="focusout"&&sf()}function d0(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Ko(Ni)}function p0(r,o){if(r==="click")return Ko(o)}function g0(r,o){if(r==="input"||r==="change")return Ko(o)}function m0(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var Bt=typeof Object.is=="function"?Object.is:m0;function Pi(r,o){if(Bt(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)||!Bt(r[d],o[d]))return!1}return!0}function af(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function uf(r,o){var l=af(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=af(l)}}function cf(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?cf(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function ff(){for(var r=window,o=Pr();o instanceof r.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)r=o.contentWindow;else break;o=Pr(r.document)}return o}function Vl(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 y0(r){var o=ff(),l=r.focusedElem,c=r.selectionRange;if(o!==l&&l&&l.ownerDocument&&cf(l.ownerDocument.documentElement,l)){if(c!==null&&Vl(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=uf(l,y);var _=uf(l,c);d&&_&&(r.rangeCount!==1||r.anchorNode!==d.node||r.anchorOffset!==d.offset||r.focusNode!==_.node||r.focusOffset!==_.offset)&&(o=o.createRange(),o.setStart(d.node,d.offset),r.removeAllRanges(),y>c?(r.addRange(o),r.extend(_.node,_.offset)):(o.setEnd(_.node,_.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 v0=h&&"documentMode"in document&&11>=document.documentMode,Ar=null,Bl=null,Ti=null,Ql=!1;function hf(r,o,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ql||Ar==null||Ar!==Pr(c)||(c=Ar,"selectionStart"in c&&Vl(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}),Ti&&Pi(Ti,c)||(Ti=c,c=Zo(Bl,"onSelect"),0<c.length&&(o=new Dl("onSelect","select",null,o,l),r.push({event:o,listeners:c}),o.target=Ar)))}function Go(r,o){var l={};return l[r.toLowerCase()]=o.toLowerCase(),l["Webkit"+r]="webkit"+o,l["Moz"+r]="moz"+o,l}var zr={animationend:Go("Animation","AnimationEnd"),animationiteration:Go("Animation","AnimationIteration"),animationstart:Go("Animation","AnimationStart"),transitionend:Go("Transition","TransitionEnd")},Wl={},df={};h&&(df=document.createElement("div").style,"AnimationEvent"in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),"TransitionEvent"in window||delete zr.transitionend.transition);function Xo(r){if(Wl[r])return Wl[r];if(!zr[r])return r;var o=zr[r],l;for(l in o)if(o.hasOwnProperty(l)&&l in df)return Wl[r]=o[l];return r}var pf=Xo("animationend"),gf=Xo("animationiteration"),mf=Xo("animationstart"),yf=Xo("transitionend"),vf=new Map,xf="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 Ln(r,o){vf.set(r,o),u(o,[r])}for(var Kl=0;Kl<xf.length;Kl++){var Gl=xf[Kl],x0=Gl.toLowerCase(),_0=Gl[0].toUpperCase()+Gl.slice(1);Ln(x0,"on"+_0)}Ln(pf,"onAnimationEnd"),Ln(gf,"onAnimationIteration"),Ln(mf,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(yf,"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 ji="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(" "),w0=new Set("cancel close invalid load scroll toggle".split(" ").concat(ji));function _f(r,o,l){var c=r.type||"unknown-event";r.currentTarget=l,xm(c,o,void 0,r),r.currentTarget=null}function wf(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 _=c.length-1;0<=_;_--){var E=c[_],M=E.instance,H=E.currentTarget;if(E=E.listener,M!==y&&d.isPropagationStopped())break e;_f(d,E,H),y=M}else for(_=0;_<c.length;_++){if(E=c[_],M=E.instance,H=E.currentTarget,E=E.listener,M!==y&&d.isPropagationStopped())break e;_f(d,E,H),y=M}}}if(Ao)throw r=El,Ao=!1,El=null,r}function Re(r,o){var l=o[ra];l===void 0&&(l=o[ra]=new Set);var c=r+"__bubble";l.has(c)||(kf(o,r,2,!1),l.add(c))}function Xl(r,o,l){var c=0;o&&(c|=4),kf(l,r,c,o)}var Yo="_reactListening"+Math.random().toString(36).slice(2);function Mi(r){if(!r[Yo]){r[Yo]=!0,s.forEach(function(l){l!=="selectionchange"&&(w0.has(l)||Xl(l,!1,r),Xl(l,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[Yo]||(o[Yo]=!0,Xl("selectionchange",!1,o))}}function kf(r,o,l,c){switch(Vc(o)){case 1:var d=zm;break;case 4:d=Dm;break;default:d=Rl}l=d.bind(null,o,l,r),d=void 0,!Cl||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 Yl(r,o,l,c,d){var y=c;if((o&1)===0&&(o&2)===0&&c!==null)e:for(;;){if(c===null)return;var _=c.tag;if(_===3||_===4){var E=c.stateNode.containerInfo;if(E===d||E.nodeType===8&&E.parentNode===d)break;if(_===4)for(_=c.return;_!==null;){var M=_.tag;if((M===3||M===4)&&(M=_.stateNode.containerInfo,M===d||M.nodeType===8&&M.parentNode===d))return;_=_.return}for(;E!==null;){if(_=ar(E),_===null)return;if(M=_.tag,M===5||M===6){c=y=_;continue e}E=E.parentNode}}c=c.return}Ec(function(){var H=y,G=On(l),J=[];e:{var K=vf.get(r);if(K!==void 0){var se=Dl,fe=r;switch(r){case"keypress":if(Bo(l)===0)break e;case"keydown":case"keyup":se=Ym;break;case"focusin":fe="focus",se=Fl;break;case"focusout":fe="blur",se=Fl;break;case"beforeblur":case"afterblur":se=Fl;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":se=Wc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=Fm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=e0;break;case pf:case gf:case mf:se=Hm;break;case yf:se=n0;break;case"scroll":se=Im;break;case"wheel":se=i0;break;case"copy":case"cut":case"paste":se=Vm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=Gc}var he=(o&4)!==0,qe=!he&&r==="scroll",$=he?K!==null?K+"Capture":null:K;he=[];for(var R=H,U;R!==null;){U=R;var ne=U.stateNode;if(U.tag===5&&ne!==null&&(U=ne,$!==null&&(ne=di(R,$),ne!=null&&he.push(Oi(R,ne,U)))),qe)break;R=R.return}0<he.length&&(K=new se(K,fe,null,l,G),J.push({event:K,listeners:he}))}}if((o&7)===0){e:{if(K=r==="mouseover"||r==="pointerover",se=r==="mouseout"||r==="pointerout",K&&l!==pt&&(fe=l.relatedTarget||l.fromElement)&&(ar(fe)||fe[gn]))break e;if((se||K)&&(K=G.window===G?G:(K=G.ownerDocument)?K.defaultView||K.parentWindow:window,se?(fe=l.relatedTarget||l.toElement,se=H,fe=fe?ar(fe):null,fe!==null&&(qe=lr(fe),fe!==qe||fe.tag!==5&&fe.tag!==6)&&(fe=null)):(se=null,fe=H),se!==fe)){if(he=Wc,ne="onMouseLeave",$="onMouseEnter",R="mouse",(r==="pointerout"||r==="pointerover")&&(he=Gc,ne="onPointerLeave",$="onPointerEnter",R="pointer"),qe=se==null?K:Lr(se),U=fe==null?K:Lr(fe),K=new he(ne,R+"leave",se,l,G),K.target=qe,K.relatedTarget=U,ne=null,ar(G)===H&&(he=new he($,R+"enter",fe,l,G),he.target=U,he.relatedTarget=qe,ne=he),qe=ne,se&&fe)t:{for(he=se,$=fe,R=0,U=he;U;U=Dr(U))R++;for(U=0,ne=$;ne;ne=Dr(ne))U++;for(;0<R-U;)he=Dr(he),R--;for(;0<U-R;)$=Dr($),U--;for(;R--;){if(he===$||$!==null&&he===$.alternate)break t;he=Dr(he),$=Dr($)}he=null}else he=null;se!==null&&Sf(J,K,se,he,!1),fe!==null&&qe!==null&&Sf(J,qe,fe,he,!0)}}e:{if(K=H?Lr(H):window,se=K.nodeName&&K.nodeName.toLowerCase(),se==="select"||se==="input"&&K.type==="file")var pe=f0;else if(tf(K))if(rf)pe=g0;else{pe=d0;var me=h0}else(se=K.nodeName)&&se.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(pe=p0);if(pe&&(pe=pe(r,H))){nf(J,pe,l,G);break e}me&&me(r,K,H),r==="focusout"&&(me=K._wrapperState)&&me.controlled&&K.type==="number"&&ai(K,"number",K.value)}switch(me=H?Lr(H):window,r){case"focusin":(tf(me)||me.contentEditable==="true")&&(Ar=me,Bl=H,Ti=null);break;case"focusout":Ti=Bl=Ar=null;break;case"mousedown":Ql=!0;break;case"contextmenu":case"mouseup":case"dragend":Ql=!1,hf(J,l,G);break;case"selectionchange":if(v0)break;case"keydown":case"keyup":hf(J,l,G)}var ye;if(Ul)e:{switch(r){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else Rr?Jc(r,l)&&(_e="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(_e="onCompositionStart");_e&&(Xc&&l.locale!=="ko"&&(Rr||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&Rr&&(ye=Bc()):(In=G,zl="value"in In?In.value:In.textContent,Rr=!0)),me=Zo(H,_e),0<me.length&&(_e=new Kc(_e,r,null,l,G),J.push({event:_e,listeners:me}),ye?_e.data=ye:(ye=ef(l),ye!==null&&(_e.data=ye)))),(ye=s0?l0(r,l):a0(r,l))&&(H=Zo(H,"onBeforeInput"),0<H.length&&(G=new Kc("onBeforeInput","beforeinput",null,l,G),J.push({event:G,listeners:H}),G.data=ye))}wf(J,o)})}function Oi(r,o,l){return{instance:r,listener:o,currentTarget:l}}function Zo(r,o){for(var l=o+"Capture",c=[];r!==null;){var d=r,y=d.stateNode;d.tag===5&&y!==null&&(d=y,y=di(r,l),y!=null&&c.unshift(Oi(r,y,d)),y=di(r,o),y!=null&&c.push(Oi(r,y,d))),r=r.return}return c}function Dr(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function Sf(r,o,l,c,d){for(var y=o._reactName,_=[];l!==null&&l!==c;){var E=l,M=E.alternate,H=E.stateNode;if(M!==null&&M===c)break;E.tag===5&&H!==null&&(E=H,d?(M=di(l,y),M!=null&&_.unshift(Oi(l,M,E))):d||(M=di(l,y),M!=null&&_.push(Oi(l,M,E)))),l=l.return}_.length!==0&&r.push({event:o,listeners:_})}var k0=/\r\n?/g,S0=/\u0000|\uFFFD/g;function bf(r){return(typeof r=="string"?r:""+r).replace(k0,`
38
+ `).replace(S0,"")}function Jo(r,o,l){if(o=bf(o),bf(r)!==o&&l)throw Error(i(425))}function es(){}var Zl=null,Jl=null;function ea(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 ta=typeof setTimeout=="function"?setTimeout:void 0,b0=typeof clearTimeout=="function"?clearTimeout:void 0,Cf=typeof Promise=="function"?Promise:void 0,C0=typeof queueMicrotask=="function"?queueMicrotask:typeof Cf<"u"?function(r){return Cf.resolve(null).then(r).catch(E0)}:ta;function E0(r){setTimeout(function(){throw r})}function na(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),ki(o);return}c--}else l!=="$"&&l!=="$?"&&l!=="$!"||c++;l=d}while(l);ki(o)}function Fn(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 Ef(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 Ir=Math.random().toString(36).slice(2),rn="__reactFiber$"+Ir,Ri="__reactProps$"+Ir,gn="__reactContainer$"+Ir,ra="__reactEvents$"+Ir,N0="__reactListeners$"+Ir,P0="__reactHandles$"+Ir;function ar(r){var o=r[rn];if(o)return o;for(var l=r.parentNode;l;){if(o=l[gn]||l[rn]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(r=Ef(r);r!==null;){if(l=r[rn])return l;r=Ef(r)}return o}r=l,l=r.parentNode}return null}function Ai(r){return r=r[rn]||r[gn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Lr(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(i(33))}function ts(r){return r[Ri]||null}var ia=[],Fr=-1;function $n(r){return{current:r}}function Ae(r){0>Fr||(r.current=ia[Fr],ia[Fr]=null,Fr--)}function Oe(r,o){Fr++,ia[Fr]=r.current,r.current=o}var Un={},rt=$n(Un),mt=$n(!1),ur=Un;function $r(r,o){var l=r.type.contextTypes;if(!l)return Un;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 yt(r){return r=r.childContextTypes,r!=null}function ns(){Ae(mt),Ae(rt)}function Nf(r,o,l){if(rt.current!==Un)throw Error(i(168));Oe(rt,o),Oe(mt,l)}function Pf(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,be(r)||"Unknown",d));return Q({},l,c)}function rs(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Un,ur=rt.current,Oe(rt,r),Oe(mt,mt.current),!0}function Tf(r,o,l){var c=r.stateNode;if(!c)throw Error(i(169));l?(r=Pf(r,o,ur),c.__reactInternalMemoizedMergedChildContext=r,Ae(mt),Ae(rt),Oe(rt,r)):Ae(mt),Oe(mt,l)}var mn=null,is=!1,oa=!1;function jf(r){mn===null?mn=[r]:mn.push(r)}function T0(r){is=!0,jf(r)}function Hn(){if(!oa&&mn!==null){oa=!0;var r=0,o=Te;try{var l=mn;for(Te=1;r<l.length;r++){var c=l[r];do c=c(!0);while(c!==null)}mn=null,is=!1}catch(d){throw mn!==null&&(mn=mn.slice(r+1)),Mc(Nl,Hn),d}finally{Te=o,oa=!1}}return null}var Ur=[],Hr=0,os=null,ss=0,jt=[],Mt=0,cr=null,yn=1,vn="";function fr(r,o){Ur[Hr++]=ss,Ur[Hr++]=os,os=r,ss=o}function Mf(r,o,l){jt[Mt++]=yn,jt[Mt++]=vn,jt[Mt++]=cr,cr=r;var c=yn;r=vn;var d=32-Vt(c)-1;c&=~(1<<d),l+=1;var y=32-Vt(o)+d;if(30<y){var _=d-d%5;y=(c&(1<<_)-1).toString(32),c>>=_,d-=_,yn=1<<32-Vt(o)+d|l<<d|c,vn=y+r}else yn=1<<y|l<<d|c,vn=r}function sa(r){r.return!==null&&(fr(r,1),Mf(r,1,0))}function la(r){for(;r===os;)os=Ur[--Hr],Ur[Hr]=null,ss=Ur[--Hr],Ur[Hr]=null;for(;r===cr;)cr=jt[--Mt],jt[Mt]=null,vn=jt[--Mt],jt[Mt]=null,yn=jt[--Mt],jt[Mt]=null}var Ct=null,Et=null,De=!1,Qt=null;function Of(r,o){var l=zt(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 Rf(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,Ct=r,Et=Fn(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,Ct=r,Et=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=cr!==null?{id:yn,overflow:vn}:null,r.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=zt(18,null,null,0),l.stateNode=o,l.return=r,r.child=l,Ct=r,Et=null,!0):!1;default:return!1}}function aa(r){return(r.mode&1)!==0&&(r.flags&128)===0}function ua(r){if(De){var o=Et;if(o){var l=o;if(!Rf(r,o)){if(aa(r))throw Error(i(418));o=Fn(l.nextSibling);var c=Ct;o&&Rf(r,o)?Of(c,l):(r.flags=r.flags&-4097|2,De=!1,Ct=r)}}else{if(aa(r))throw Error(i(418));r.flags=r.flags&-4097|2,De=!1,Ct=r}}}function Af(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Ct=r}function ls(r){if(r!==Ct)return!1;if(!De)return Af(r),De=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!ea(r.type,r.memoizedProps)),o&&(o=Et)){if(aa(r))throw zf(),Error(i(418));for(;o;)Of(r,o),o=Fn(o.nextSibling)}if(Af(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){Et=Fn(r.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}r=r.nextSibling}Et=null}}else Et=Ct?Fn(r.stateNode.nextSibling):null;return!0}function zf(){for(var r=Et;r;)r=Fn(r.nextSibling)}function qr(){Et=Ct=null,De=!1}function ca(r){Qt===null?Qt=[r]:Qt.push(r)}var j0=P.ReactCurrentBatchConfig;function zi(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(_){var E=d.refs;_===null?delete E[y]:E[y]=_},o._stringRef=y,o)}if(typeof r!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,r))}return r}function as(r,o){throw r=Object.prototype.toString.call(o),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function Df(r){var o=r._init;return o(r._payload)}function If(r){function o($,R){if(r){var U=$.deletions;U===null?($.deletions=[R],$.flags|=16):U.push(R)}}function l($,R){if(!r)return null;for(;R!==null;)o($,R),R=R.sibling;return null}function c($,R){for($=new Map;R!==null;)R.key!==null?$.set(R.key,R):$.set(R.index,R),R=R.sibling;return $}function d($,R){return $=Xn($,R),$.index=0,$.sibling=null,$}function y($,R,U){return $.index=U,r?(U=$.alternate,U!==null?(U=U.index,U<R?($.flags|=2,R):U):($.flags|=2,R)):($.flags|=1048576,R)}function _($){return r&&$.alternate===null&&($.flags|=2),$}function E($,R,U,ne){return R===null||R.tag!==6?(R=tu(U,$.mode,ne),R.return=$,R):(R=d(R,U),R.return=$,R)}function M($,R,U,ne){var pe=U.type;return pe===A?G($,R,U.props.children,ne,U.key):R!==null&&(R.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===B&&Df(pe)===R.type)?(ne=d(R,U.props),ne.ref=zi($,R,U),ne.return=$,ne):(ne=Os(U.type,U.key,U.props,null,$.mode,ne),ne.ref=zi($,R,U),ne.return=$,ne)}function H($,R,U,ne){return R===null||R.tag!==4||R.stateNode.containerInfo!==U.containerInfo||R.stateNode.implementation!==U.implementation?(R=nu(U,$.mode,ne),R.return=$,R):(R=d(R,U.children||[]),R.return=$,R)}function G($,R,U,ne,pe){return R===null||R.tag!==7?(R=xr(U,$.mode,ne,pe),R.return=$,R):(R=d(R,U),R.return=$,R)}function J($,R,U){if(typeof R=="string"&&R!==""||typeof R=="number")return R=tu(""+R,$.mode,U),R.return=$,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case T:return U=Os(R.type,R.key,R.props,null,$.mode,U),U.ref=zi($,null,R),U.return=$,U;case z:return R=nu(R,$.mode,U),R.return=$,R;case B:var ne=R._init;return J($,ne(R._payload),U)}if(ir(R)||Y(R))return R=xr(R,$.mode,U,null),R.return=$,R;as($,R)}return null}function K($,R,U,ne){var pe=R!==null?R.key:null;if(typeof U=="string"&&U!==""||typeof U=="number")return pe!==null?null:E($,R,""+U,ne);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case T:return U.key===pe?M($,R,U,ne):null;case z:return U.key===pe?H($,R,U,ne):null;case B:return pe=U._init,K($,R,pe(U._payload),ne)}if(ir(U)||Y(U))return pe!==null?null:G($,R,U,ne,null);as($,U)}return null}function se($,R,U,ne,pe){if(typeof ne=="string"&&ne!==""||typeof ne=="number")return $=$.get(U)||null,E(R,$,""+ne,pe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case T:return $=$.get(ne.key===null?U:ne.key)||null,M(R,$,ne,pe);case z:return $=$.get(ne.key===null?U:ne.key)||null,H(R,$,ne,pe);case B:var me=ne._init;return se($,R,U,me(ne._payload),pe)}if(ir(ne)||Y(ne))return $=$.get(U)||null,G(R,$,ne,pe,null);as(R,ne)}return null}function fe($,R,U,ne){for(var pe=null,me=null,ye=R,_e=R=0,Xe=null;ye!==null&&_e<U.length;_e++){ye.index>_e?(Xe=ye,ye=null):Xe=ye.sibling;var Ne=K($,ye,U[_e],ne);if(Ne===null){ye===null&&(ye=Xe);break}r&&ye&&Ne.alternate===null&&o($,ye),R=y(Ne,R,_e),me===null?pe=Ne:me.sibling=Ne,me=Ne,ye=Xe}if(_e===U.length)return l($,ye),De&&fr($,_e),pe;if(ye===null){for(;_e<U.length;_e++)ye=J($,U[_e],ne),ye!==null&&(R=y(ye,R,_e),me===null?pe=ye:me.sibling=ye,me=ye);return De&&fr($,_e),pe}for(ye=c($,ye);_e<U.length;_e++)Xe=se(ye,$,_e,U[_e],ne),Xe!==null&&(r&&Xe.alternate!==null&&ye.delete(Xe.key===null?_e:Xe.key),R=y(Xe,R,_e),me===null?pe=Xe:me.sibling=Xe,me=Xe);return r&&ye.forEach(function(Yn){return o($,Yn)}),De&&fr($,_e),pe}function he($,R,U,ne){var pe=Y(U);if(typeof pe!="function")throw Error(i(150));if(U=pe.call(U),U==null)throw Error(i(151));for(var me=pe=null,ye=R,_e=R=0,Xe=null,Ne=U.next();ye!==null&&!Ne.done;_e++,Ne=U.next()){ye.index>_e?(Xe=ye,ye=null):Xe=ye.sibling;var Yn=K($,ye,Ne.value,ne);if(Yn===null){ye===null&&(ye=Xe);break}r&&ye&&Yn.alternate===null&&o($,ye),R=y(Yn,R,_e),me===null?pe=Yn:me.sibling=Yn,me=Yn,ye=Xe}if(Ne.done)return l($,ye),De&&fr($,_e),pe;if(ye===null){for(;!Ne.done;_e++,Ne=U.next())Ne=J($,Ne.value,ne),Ne!==null&&(R=y(Ne,R,_e),me===null?pe=Ne:me.sibling=Ne,me=Ne);return De&&fr($,_e),pe}for(ye=c($,ye);!Ne.done;_e++,Ne=U.next())Ne=se(ye,$,_e,Ne.value,ne),Ne!==null&&(r&&Ne.alternate!==null&&ye.delete(Ne.key===null?_e:Ne.key),R=y(Ne,R,_e),me===null?pe=Ne:me.sibling=Ne,me=Ne);return r&&ye.forEach(function(uy){return o($,uy)}),De&&fr($,_e),pe}function qe($,R,U,ne){if(typeof U=="object"&&U!==null&&U.type===A&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case T:e:{for(var pe=U.key,me=R;me!==null;){if(me.key===pe){if(pe=U.type,pe===A){if(me.tag===7){l($,me.sibling),R=d(me,U.props.children),R.return=$,$=R;break e}}else if(me.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===B&&Df(pe)===me.type){l($,me.sibling),R=d(me,U.props),R.ref=zi($,me,U),R.return=$,$=R;break e}l($,me);break}else o($,me);me=me.sibling}U.type===A?(R=xr(U.props.children,$.mode,ne,U.key),R.return=$,$=R):(ne=Os(U.type,U.key,U.props,null,$.mode,ne),ne.ref=zi($,R,U),ne.return=$,$=ne)}return _($);case z:e:{for(me=U.key;R!==null;){if(R.key===me)if(R.tag===4&&R.stateNode.containerInfo===U.containerInfo&&R.stateNode.implementation===U.implementation){l($,R.sibling),R=d(R,U.children||[]),R.return=$,$=R;break e}else{l($,R);break}else o($,R);R=R.sibling}R=nu(U,$.mode,ne),R.return=$,$=R}return _($);case B:return me=U._init,qe($,R,me(U._payload),ne)}if(ir(U))return fe($,R,U,ne);if(Y(U))return he($,R,U,ne);as($,U)}return typeof U=="string"&&U!==""||typeof U=="number"?(U=""+U,R!==null&&R.tag===6?(l($,R.sibling),R=d(R,U),R.return=$,$=R):(l($,R),R=tu(U,$.mode,ne),R.return=$,$=R),_($)):l($,R)}return qe}var Vr=If(!0),Lf=If(!1),us=$n(null),cs=null,Br=null,fa=null;function ha(){fa=Br=cs=null}function da(r){var o=us.current;Ae(us),r._currentValue=o}function pa(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 Qr(r,o){cs=r,fa=Br=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(vt=!0),r.firstContext=null)}function Ot(r){var o=r._currentValue;if(fa!==r)if(r={context:r,memoizedValue:o,next:null},Br===null){if(cs===null)throw Error(i(308));Br=r,cs.dependencies={lanes:0,firstContext:r}}else Br=Br.next=r;return o}var hr=null;function ga(r){hr===null?hr=[r]:hr.push(r)}function Ff(r,o,l,c){var d=o.interleaved;return d===null?(l.next=l,ga(o)):(l.next=d.next,d.next=l),o.interleaved=l,xn(r,c)}function xn(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 qn=!1;function ma(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $f(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 _n(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function Vn(r,o,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(Ee&2)!==0){var d=c.pending;return d===null?o.next=o:(o.next=d.next,d.next=o),c.pending=o,xn(r,l)}return d=c.interleaved,d===null?(o.next=o,ga(c)):(o.next=d.next,d.next=o),c.interleaved=o,xn(r,l)}function fs(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,jl(r,l)}}function Uf(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 _={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};y===null?d=y=_:y=y.next=_,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 hs(r,o,l,c){var d=r.updateQueue;qn=!1;var y=d.firstBaseUpdate,_=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var M=E,H=M.next;M.next=null,_===null?y=H:_.next=H,_=M;var G=r.alternate;G!==null&&(G=G.updateQueue,E=G.lastBaseUpdate,E!==_&&(E===null?G.firstBaseUpdate=H:E.next=H,G.lastBaseUpdate=M))}if(y!==null){var J=d.baseState;_=0,G=H=M=null,E=y;do{var K=E.lane,se=E.eventTime;if((c&K)===K){G!==null&&(G=G.next={eventTime:se,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var fe=r,he=E;switch(K=o,se=l,he.tag){case 1:if(fe=he.payload,typeof fe=="function"){J=fe.call(se,J,K);break e}J=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=he.payload,K=typeof fe=="function"?fe.call(se,J,K):fe,K==null)break e;J=Q({},J,K);break e;case 2:qn=!0}}E.callback!==null&&E.lane!==0&&(r.flags|=64,K=d.effects,K===null?d.effects=[E]:K.push(E))}else se={eventTime:se,lane:K,tag:E.tag,payload:E.payload,callback:E.callback,next:null},G===null?(H=G=se,M=J):G=G.next=se,_|=K;if(E=E.next,E===null){if(E=d.shared.pending,E===null)break;K=E,E=K.next,K.next=null,d.lastBaseUpdate=K,d.shared.pending=null}}while(!0);if(G===null&&(M=J),d.baseState=M,d.firstBaseUpdate=H,d.lastBaseUpdate=G,o=d.shared.interleaved,o!==null){d=o;do _|=d.lane,d=d.next;while(d!==o)}else y===null&&(d.shared.lanes=0);gr|=_,r.lanes=_,r.memoizedState=J}}function Hf(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 Di={},on=$n(Di),Ii=$n(Di),Li=$n(Di);function dr(r){if(r===Di)throw Error(i(174));return r}function ya(r,o){switch(Oe(Li,o),Oe(Ii,r),Oe(on,Di),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:hi(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=hi(o,r)}Ae(on),Oe(on,o)}function Wr(){Ae(on),Ae(Ii),Ae(Li)}function qf(r){dr(Li.current);var o=dr(on.current),l=hi(o,r.type);o!==l&&(Oe(Ii,r),Oe(on,l))}function va(r){Ii.current===r&&(Ae(on),Ae(Ii))}var Fe=$n(0);function ds(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 xa=[];function _a(){for(var r=0;r<xa.length;r++)xa[r]._workInProgressVersionPrimary=null;xa.length=0}var ps=P.ReactCurrentDispatcher,wa=P.ReactCurrentBatchConfig,pr=0,$e=null,Be=null,Ke=null,gs=!1,Fi=!1,$i=0,M0=0;function it(){throw Error(i(321))}function ka(r,o){if(o===null)return!1;for(var l=0;l<o.length&&l<r.length;l++)if(!Bt(r[l],o[l]))return!1;return!0}function Sa(r,o,l,c,d,y){if(pr=y,$e=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,ps.current=r===null||r.memoizedState===null?z0:D0,r=l(c,d),Fi){y=0;do{if(Fi=!1,$i=0,25<=y)throw Error(i(301));y+=1,Ke=Be=null,o.updateQueue=null,ps.current=I0,r=l(c,d)}while(Fi)}if(ps.current=vs,o=Be!==null&&Be.next!==null,pr=0,Ke=Be=$e=null,gs=!1,o)throw Error(i(300));return r}function ba(){var r=$i!==0;return $i=0,r}function sn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?$e.memoizedState=Ke=r:Ke=Ke.next=r,Ke}function Rt(){if(Be===null){var r=$e.alternate;r=r!==null?r.memoizedState:null}else r=Be.next;var o=Ke===null?$e.memoizedState:Ke.next;if(o!==null)Ke=o,Be=r;else{if(r===null)throw Error(i(310));Be=r,r={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},Ke===null?$e.memoizedState=Ke=r:Ke=Ke.next=r}return Ke}function Ui(r,o){return typeof o=="function"?o(r):o}function Ca(r){var o=Rt(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=Be,d=c.baseQueue,y=l.pending;if(y!==null){if(d!==null){var _=d.next;d.next=y.next,y.next=_}c.baseQueue=d=y,l.pending=null}if(d!==null){y=d.next,c=c.baseState;var E=_=null,M=null,H=y;do{var G=H.lane;if((pr&G)===G)M!==null&&(M=M.next={lane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),c=H.hasEagerState?H.eagerState:r(c,H.action);else{var J={lane:G,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null};M===null?(E=M=J,_=c):M=M.next=J,$e.lanes|=G,gr|=G}H=H.next}while(H!==null&&H!==y);M===null?_=c:M.next=E,Bt(c,o.memoizedState)||(vt=!0),o.memoizedState=c,o.baseState=_,o.baseQueue=M,l.lastRenderedState=c}if(r=l.interleaved,r!==null){d=r;do y=d.lane,$e.lanes|=y,gr|=y,d=d.next;while(d!==r)}else d===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function Ea(r){var o=Rt(),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 _=d=d.next;do y=r(y,_.action),_=_.next;while(_!==d);Bt(y,o.memoizedState)||(vt=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),l.lastRenderedState=y}return[y,c]}function Vf(){}function Bf(r,o){var l=$e,c=Rt(),d=o(),y=!Bt(c.memoizedState,d);if(y&&(c.memoizedState=d,vt=!0),c=c.queue,Na(Kf.bind(null,l,c,r),[r]),c.getSnapshot!==o||y||Ke!==null&&Ke.memoizedState.tag&1){if(l.flags|=2048,Hi(9,Wf.bind(null,l,c,d,o),void 0,null),Ge===null)throw Error(i(349));(pr&30)!==0||Qf(l,o,d)}return d}function Qf(r,o,l){r.flags|=16384,r={getSnapshot:o,value:l},o=$e.updateQueue,o===null?(o={lastEffect:null,stores:null},$e.updateQueue=o,o.stores=[r]):(l=o.stores,l===null?o.stores=[r]:l.push(r))}function Wf(r,o,l,c){o.value=l,o.getSnapshot=c,Gf(o)&&Xf(r)}function Kf(r,o,l){return l(function(){Gf(o)&&Xf(r)})}function Gf(r){var o=r.getSnapshot;r=r.value;try{var l=o();return!Bt(r,l)}catch{return!0}}function Xf(r){var o=xn(r,1);o!==null&&Xt(o,r,1,-1)}function Yf(r){var o=sn();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ui,lastRenderedState:r},o.queue=r,r=r.dispatch=A0.bind(null,$e,r),[o.memoizedState,r]}function Hi(r,o,l,c){return r={tag:r,create:o,destroy:l,deps:c,next:null},o=$e.updateQueue,o===null?(o={lastEffect:null,stores:null},$e.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 Zf(){return Rt().memoizedState}function ms(r,o,l,c){var d=sn();$e.flags|=r,d.memoizedState=Hi(1|o,l,void 0,c===void 0?null:c)}function ys(r,o,l,c){var d=Rt();c=c===void 0?null:c;var y=void 0;if(Be!==null){var _=Be.memoizedState;if(y=_.destroy,c!==null&&ka(c,_.deps)){d.memoizedState=Hi(o,l,y,c);return}}$e.flags|=r,d.memoizedState=Hi(1|o,l,y,c)}function Jf(r,o){return ms(8390656,8,r,o)}function Na(r,o){return ys(2048,8,r,o)}function eh(r,o){return ys(4,2,r,o)}function th(r,o){return ys(4,4,r,o)}function nh(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 rh(r,o,l){return l=l!=null?l.concat([r]):null,ys(4,4,nh.bind(null,o,r),l)}function Pa(){}function ih(r,o){var l=Rt();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&ka(o,c[1])?c[0]:(l.memoizedState=[r,o],r)}function oh(r,o){var l=Rt();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&ka(o,c[1])?c[0]:(r=r(),l.memoizedState=[r,o],r)}function sh(r,o,l){return(pr&21)===0?(r.baseState&&(r.baseState=!1,vt=!0),r.memoizedState=l):(Bt(l,o)||(l=zc(),$e.lanes|=l,gr|=l,r.baseState=!0),o)}function O0(r,o){var l=Te;Te=l!==0&&4>l?l:4,r(!0);var c=wa.transition;wa.transition={};try{r(!1),o()}finally{Te=l,wa.transition=c}}function lh(){return Rt().memoizedState}function R0(r,o,l){var c=Kn(r);if(l={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null},ah(r))uh(o,l);else if(l=Ff(r,o,l,c),l!==null){var d=ut();Xt(l,r,c,d),ch(l,o,c)}}function A0(r,o,l){var c=Kn(r),d={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null};if(ah(r))uh(o,d);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var _=o.lastRenderedState,E=y(_,l);if(d.hasEagerState=!0,d.eagerState=E,Bt(E,_)){var M=o.interleaved;M===null?(d.next=d,ga(o)):(d.next=M.next,M.next=d),o.interleaved=d;return}}catch{}finally{}l=Ff(r,o,d,c),l!==null&&(d=ut(),Xt(l,r,c,d),ch(l,o,c))}}function ah(r){var o=r.alternate;return r===$e||o!==null&&o===$e}function uh(r,o){Fi=gs=!0;var l=r.pending;l===null?o.next=o:(o.next=l.next,l.next=o),r.pending=o}function ch(r,o,l){if((l&4194240)!==0){var c=o.lanes;c&=r.pendingLanes,l|=c,o.lanes=l,jl(r,l)}}var vs={readContext:Ot,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},z0={readContext:Ot,useCallback:function(r,o){return sn().memoizedState=[r,o===void 0?null:o],r},useContext:Ot,useEffect:Jf,useImperativeHandle:function(r,o,l){return l=l!=null?l.concat([r]):null,ms(4194308,4,nh.bind(null,o,r),l)},useLayoutEffect:function(r,o){return ms(4194308,4,r,o)},useInsertionEffect:function(r,o){return ms(4,2,r,o)},useMemo:function(r,o){var l=sn();return o=o===void 0?null:o,r=r(),l.memoizedState=[r,o],r},useReducer:function(r,o,l){var c=sn();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=R0.bind(null,$e,r),[c.memoizedState,r]},useRef:function(r){var o=sn();return r={current:r},o.memoizedState=r},useState:Yf,useDebugValue:Pa,useDeferredValue:function(r){return sn().memoizedState=r},useTransition:function(){var r=Yf(!1),o=r[0];return r=O0.bind(null,r[1]),sn().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,l){var c=$e,d=sn();if(De){if(l===void 0)throw Error(i(407));l=l()}else{if(l=o(),Ge===null)throw Error(i(349));(pr&30)!==0||Qf(c,o,l)}d.memoizedState=l;var y={value:l,getSnapshot:o};return d.queue=y,Jf(Kf.bind(null,c,y,r),[r]),c.flags|=2048,Hi(9,Wf.bind(null,c,y,l,o),void 0,null),l},useId:function(){var r=sn(),o=Ge.identifierPrefix;if(De){var l=vn,c=yn;l=(c&~(1<<32-Vt(c)-1)).toString(32)+l,o=":"+o+"R"+l,l=$i++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=M0++,o=":"+o+"r"+l.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},D0={readContext:Ot,useCallback:ih,useContext:Ot,useEffect:Na,useImperativeHandle:rh,useInsertionEffect:eh,useLayoutEffect:th,useMemo:oh,useReducer:Ca,useRef:Zf,useState:function(){return Ca(Ui)},useDebugValue:Pa,useDeferredValue:function(r){var o=Rt();return sh(o,Be.memoizedState,r)},useTransition:function(){var r=Ca(Ui)[0],o=Rt().memoizedState;return[r,o]},useMutableSource:Vf,useSyncExternalStore:Bf,useId:lh,unstable_isNewReconciler:!1},I0={readContext:Ot,useCallback:ih,useContext:Ot,useEffect:Na,useImperativeHandle:rh,useInsertionEffect:eh,useLayoutEffect:th,useMemo:oh,useReducer:Ea,useRef:Zf,useState:function(){return Ea(Ui)},useDebugValue:Pa,useDeferredValue:function(r){var o=Rt();return Be===null?o.memoizedState=r:sh(o,Be.memoizedState,r)},useTransition:function(){var r=Ea(Ui)[0],o=Rt().memoizedState;return[r,o]},useMutableSource:Vf,useSyncExternalStore:Bf,useId:lh,unstable_isNewReconciler:!1};function Wt(r,o){if(r&&r.defaultProps){o=Q({},o),r=r.defaultProps;for(var l in r)o[l]===void 0&&(o[l]=r[l]);return o}return o}function Ta(r,o,l,c){o=r.memoizedState,l=l(c,o),l=l==null?o:Q({},o,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var xs={isMounted:function(r){return(r=r._reactInternals)?lr(r)===r:!1},enqueueSetState:function(r,o,l){r=r._reactInternals;var c=ut(),d=Kn(r),y=_n(c,d);y.payload=o,l!=null&&(y.callback=l),o=Vn(r,y,d),o!==null&&(Xt(o,r,d,c),fs(o,r,d))},enqueueReplaceState:function(r,o,l){r=r._reactInternals;var c=ut(),d=Kn(r),y=_n(c,d);y.tag=1,y.payload=o,l!=null&&(y.callback=l),o=Vn(r,y,d),o!==null&&(Xt(o,r,d,c),fs(o,r,d))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var l=ut(),c=Kn(r),d=_n(l,c);d.tag=2,o!=null&&(d.callback=o),o=Vn(r,d,c),o!==null&&(Xt(o,r,c,l),fs(o,r,c))}};function fh(r,o,l,c,d,y,_){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,y,_):o.prototype&&o.prototype.isPureReactComponent?!Pi(l,c)||!Pi(d,y):!0}function hh(r,o,l){var c=!1,d=Un,y=o.contextType;return typeof y=="object"&&y!==null?y=Ot(y):(d=yt(o)?ur:rt.current,c=o.contextTypes,y=(c=c!=null)?$r(r,d):Un),o=new o(l,y),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=xs,r.stateNode=o,o._reactInternals=r,c&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=d,r.__reactInternalMemoizedMaskedChildContext=y),o}function dh(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&&xs.enqueueReplaceState(o,o.state,null)}function ja(r,o,l,c){var d=r.stateNode;d.props=l,d.state=r.memoizedState,d.refs={},ma(r);var y=o.contextType;typeof y=="object"&&y!==null?d.context=Ot(y):(y=yt(o)?ur:rt.current,d.context=$r(r,y)),d.state=r.memoizedState,y=o.getDerivedStateFromProps,typeof y=="function"&&(Ta(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&&xs.enqueueReplaceState(d,d.state,null),hs(r,l,d,c),d.state=r.memoizedState),typeof d.componentDidMount=="function"&&(r.flags|=4194308)}function Kr(r,o){try{var l="",c=o;do l+=ve(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 Ma(r,o,l){return{value:r,source:null,stack:l??null,digest:o??null}}function Oa(r,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var L0=typeof WeakMap=="function"?WeakMap:Map;function ph(r,o,l){l=_n(-1,l),l.tag=3,l.payload={element:null};var c=o.value;return l.callback=function(){Es||(Es=!0,Wa=c),Oa(r,o)},l}function gh(r,o,l){l=_n(-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(){Oa(r,o)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(l.callback=function(){Oa(r,o),typeof c!="function"&&(Qn===null?Qn=new Set([this]):Qn.add(this));var _=o.stack;this.componentDidCatch(o.value,{componentStack:_!==null?_:""})}),l}function mh(r,o,l){var c=r.pingCache;if(c===null){c=r.pingCache=new L0;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=Z0.bind(null,r,o,l),o.then(r,r))}function yh(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 vh(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=_n(-1,1),o.tag=2,Vn(l,o,1))),l.lanes|=1),r):(r.flags|=65536,r.lanes=d,r)}var F0=P.ReactCurrentOwner,vt=!1;function at(r,o,l,c){o.child=r===null?Lf(o,null,l,c):Vr(o,r.child,l,c)}function xh(r,o,l,c,d){l=l.render;var y=o.ref;return Qr(o,d),c=Sa(r,o,l,c,y,d),l=ba(),r!==null&&!vt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,wn(r,o,d)):(De&&l&&sa(o),o.flags|=1,at(r,o,c,d),o.child)}function _h(r,o,l,c,d){if(r===null){var y=l.type;return typeof y=="function"&&!eu(y)&&y.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=y,wh(r,o,y,c,d)):(r=Os(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 _=y.memoizedProps;if(l=l.compare,l=l!==null?l:Pi,l(_,c)&&r.ref===o.ref)return wn(r,o,d)}return o.flags|=1,r=Xn(y,c),r.ref=o.ref,r.return=o,o.child=r}function wh(r,o,l,c,d){if(r!==null){var y=r.memoizedProps;if(Pi(y,c)&&r.ref===o.ref)if(vt=!1,o.pendingProps=c=y,(r.lanes&d)!==0)(r.flags&131072)!==0&&(vt=!0);else return o.lanes=r.lanes,wn(r,o,d)}return Ra(r,o,l,c,d)}function kh(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},Oe(Xr,Nt),Nt|=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,Oe(Xr,Nt),Nt|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=y!==null?y.baseLanes:l,Oe(Xr,Nt),Nt|=c}else y!==null?(c=y.baseLanes|l,o.memoizedState=null):c=l,Oe(Xr,Nt),Nt|=c;return at(r,o,d,l),o.child}function Sh(r,o){var l=o.ref;(r===null&&l!==null||r!==null&&r.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function Ra(r,o,l,c,d){var y=yt(l)?ur:rt.current;return y=$r(o,y),Qr(o,d),l=Sa(r,o,l,c,y,d),c=ba(),r!==null&&!vt?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~d,wn(r,o,d)):(De&&c&&sa(o),o.flags|=1,at(r,o,l,d),o.child)}function bh(r,o,l,c,d){if(yt(l)){var y=!0;rs(o)}else y=!1;if(Qr(o,d),o.stateNode===null)ws(r,o),hh(o,l,c),ja(o,l,c,d),c=!0;else if(r===null){var _=o.stateNode,E=o.memoizedProps;_.props=E;var M=_.context,H=l.contextType;typeof H=="object"&&H!==null?H=Ot(H):(H=yt(l)?ur:rt.current,H=$r(o,H));var G=l.getDerivedStateFromProps,J=typeof G=="function"||typeof _.getSnapshotBeforeUpdate=="function";J||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(E!==c||M!==H)&&dh(o,_,c,H),qn=!1;var K=o.memoizedState;_.state=K,hs(o,c,_,d),M=o.memoizedState,E!==c||K!==M||mt.current||qn?(typeof G=="function"&&(Ta(o,l,G,c),M=o.memoizedState),(E=qn||fh(o,l,E,c,K,M,H))?(J||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=M),_.props=c,_.state=M,_.context=H,c=E):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{_=o.stateNode,$f(r,o),E=o.memoizedProps,H=o.type===o.elementType?E:Wt(o.type,E),_.props=H,J=o.pendingProps,K=_.context,M=l.contextType,typeof M=="object"&&M!==null?M=Ot(M):(M=yt(l)?ur:rt.current,M=$r(o,M));var se=l.getDerivedStateFromProps;(G=typeof se=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(E!==J||K!==M)&&dh(o,_,c,M),qn=!1,K=o.memoizedState,_.state=K,hs(o,c,_,d);var fe=o.memoizedState;E!==J||K!==fe||mt.current||qn?(typeof se=="function"&&(Ta(o,l,se,c),fe=o.memoizedState),(H=qn||fh(o,l,H,c,K,fe,M)||!1)?(G||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(c,fe,M),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(c,fe,M)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||E===r.memoizedProps&&K===r.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&K===r.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=fe),_.props=c,_.state=fe,_.context=M,c=H):(typeof _.componentDidUpdate!="function"||E===r.memoizedProps&&K===r.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&K===r.memoizedState||(o.flags|=1024),c=!1)}return Aa(r,o,l,c,y,d)}function Aa(r,o,l,c,d,y){Sh(r,o);var _=(o.flags&128)!==0;if(!c&&!_)return d&&Tf(o,l,!1),wn(r,o,y);c=o.stateNode,F0.current=o;var E=_&&typeof l.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,r!==null&&_?(o.child=Vr(o,r.child,null,y),o.child=Vr(o,null,E,y)):at(r,o,E,y),o.memoizedState=c.state,d&&Tf(o,l,!0),o.child}function Ch(r){var o=r.stateNode;o.pendingContext?Nf(r,o.pendingContext,o.pendingContext!==o.context):o.context&&Nf(r,o.context,!1),ya(r,o.containerInfo)}function Eh(r,o,l,c,d){return qr(),ca(d),o.flags|=256,at(r,o,l,c),o.child}var za={dehydrated:null,treeContext:null,retryLane:0};function Da(r){return{baseLanes:r,cachePool:null,transitions:null}}function Nh(r,o,l){var c=o.pendingProps,d=Fe.current,y=!1,_=(o.flags&128)!==0,E;if((E=_)||(E=r!==null&&r.memoizedState===null?!1:(d&2)!==0),E?(y=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(d|=1),Oe(Fe,d&1),r===null)return ua(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):(_=c.children,r=c.fallback,y?(c=o.mode,y=o.child,_={mode:"hidden",children:_},(c&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=_):y=Rs(_,c,0,null),r=xr(r,c,l,null),y.return=o,r.return=o,y.sibling=r,o.child=y,o.child.memoizedState=Da(l),o.memoizedState=za,r):Ia(o,_));if(d=r.memoizedState,d!==null&&(E=d.dehydrated,E!==null))return $0(r,o,_,c,E,d,l);if(y){y=c.fallback,_=o.mode,d=r.child,E=d.sibling;var M={mode:"hidden",children:c.children};return(_&1)===0&&o.child!==d?(c=o.child,c.childLanes=0,c.pendingProps=M,o.deletions=null):(c=Xn(d,M),c.subtreeFlags=d.subtreeFlags&14680064),E!==null?y=Xn(E,y):(y=xr(y,_,l,null),y.flags|=2),y.return=o,c.return=o,c.sibling=y,o.child=c,c=y,y=o.child,_=r.child.memoizedState,_=_===null?Da(l):{baseLanes:_.baseLanes|l,cachePool:null,transitions:_.transitions},y.memoizedState=_,y.childLanes=r.childLanes&~l,o.memoizedState=za,c}return y=r.child,r=y.sibling,c=Xn(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 Ia(r,o){return o=Rs({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function _s(r,o,l,c){return c!==null&&ca(c),Vr(o,r.child,null,l),r=Ia(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function $0(r,o,l,c,d,y,_){if(l)return o.flags&256?(o.flags&=-257,c=Ma(Error(i(422))),_s(r,o,_,c)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(y=c.fallback,d=o.mode,c=Rs({mode:"visible",children:c.children},d,0,null),y=xr(y,d,_,null),y.flags|=2,c.return=o,y.return=o,c.sibling=y,o.child=c,(o.mode&1)!==0&&Vr(o,r.child,null,_),o.child.memoizedState=Da(_),o.memoizedState=za,y);if((o.mode&1)===0)return _s(r,o,_,null);if(d.data==="$!"){if(c=d.nextSibling&&d.nextSibling.dataset,c)var E=c.dgst;return c=E,y=Error(i(419)),c=Ma(y,c,void 0),_s(r,o,_,c)}if(E=(_&r.childLanes)!==0,vt||E){if(c=Ge,c!==null){switch(_&-_){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|_))!==0?0:d,d!==0&&d!==y.retryLane&&(y.retryLane=d,xn(r,d),Xt(c,r,d,-1))}return Ja(),c=Ma(Error(i(421))),_s(r,o,_,c)}return d.data==="$?"?(o.flags|=128,o.child=r.child,o=J0.bind(null,r),d._reactRetry=o,null):(r=y.treeContext,Et=Fn(d.nextSibling),Ct=o,De=!0,Qt=null,r!==null&&(jt[Mt++]=yn,jt[Mt++]=vn,jt[Mt++]=cr,yn=r.id,vn=r.overflow,cr=o),o=Ia(o,c.children),o.flags|=4096,o)}function Ph(r,o,l){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o),pa(r.return,o,l)}function La(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 Th(r,o,l){var c=o.pendingProps,d=c.revealOrder,y=c.tail;if(at(r,o,c.children,l),c=Fe.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&&Ph(r,l,o);else if(r.tag===19)Ph(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(Oe(Fe,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&&ds(r)===null&&(d=l),l=l.sibling;l=d,l===null?(d=o.child,o.child=null):(d=l.sibling,l.sibling=null),La(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&&ds(r)===null){o.child=d;break}r=d.sibling,d.sibling=l,l=d,d=r}La(o,!0,l,null,y);break;case"together":La(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function ws(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function wn(r,o,l){if(r!==null&&(o.dependencies=r.dependencies),gr|=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=Xn(r,r.pendingProps),o.child=l,l.return=o;r.sibling!==null;)r=r.sibling,l=l.sibling=Xn(r,r.pendingProps),l.return=o;l.sibling=null}return o.child}function U0(r,o,l){switch(o.tag){case 3:Ch(o),qr();break;case 5:qf(o);break;case 1:yt(o.type)&&rs(o);break;case 4:ya(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,d=o.memoizedProps.value;Oe(us,c._currentValue),c._currentValue=d;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(Oe(Fe,Fe.current&1),o.flags|=128,null):(l&o.child.childLanes)!==0?Nh(r,o,l):(Oe(Fe,Fe.current&1),r=wn(r,o,l),r!==null?r.sibling:null);Oe(Fe,Fe.current&1);break;case 19:if(c=(l&o.childLanes)!==0,(r.flags&128)!==0){if(c)return Th(r,o,l);o.flags|=128}if(d=o.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Oe(Fe,Fe.current),c)break;return null;case 22:case 23:return o.lanes=0,kh(r,o,l)}return wn(r,o,l)}var jh,Fa,Mh,Oh;jh=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}},Fa=function(){},Mh=function(r,o,l,c){var d=r.memoizedProps;if(d!==c){r=o.stateNode,dr(on.current);var y=null;switch(l){case"input":d=Tr(r,d),c=Tr(r,c),y=[];break;case"select":d=Q({},d,{value:void 0}),c=Q({},c,{value:void 0}),y=[];break;case"textarea":d=ui(r,d),c=ui(r,c),y=[];break;default:typeof d.onClick!="function"&&typeof c.onClick=="function"&&(r.onclick=es)}xe(l,c);var _;l=null;for(H in d)if(!c.hasOwnProperty(H)&&d.hasOwnProperty(H)&&d[H]!=null)if(H==="style"){var E=d[H];for(_ in E)E.hasOwnProperty(_)&&(l||(l={}),l[_]="")}else H!=="dangerouslySetInnerHTML"&&H!=="children"&&H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&H!=="autoFocus"&&(a.hasOwnProperty(H)?y||(y=[]):(y=y||[]).push(H,null));for(H in c){var M=c[H];if(E=d?.[H],c.hasOwnProperty(H)&&M!==E&&(M!=null||E!=null))if(H==="style")if(E){for(_ in E)!E.hasOwnProperty(_)||M&&M.hasOwnProperty(_)||(l||(l={}),l[_]="");for(_ in M)M.hasOwnProperty(_)&&E[_]!==M[_]&&(l||(l={}),l[_]=M[_])}else l||(y||(y=[]),y.push(H,l)),l=M;else H==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,E=E?E.__html:void 0,M!=null&&E!==M&&(y=y||[]).push(H,M)):H==="children"?typeof M!="string"&&typeof M!="number"||(y=y||[]).push(H,""+M):H!=="suppressContentEditableWarning"&&H!=="suppressHydrationWarning"&&(a.hasOwnProperty(H)?(M!=null&&H==="onScroll"&&Re("scroll",r),y||E===M||(y=[])):(y=y||[]).push(H,M))}l&&(y=y||[]).push("style",l);var H=y;(o.updateQueue=H)&&(o.flags|=4)}},Oh=function(r,o,l,c){l!==c&&(o.flags|=4)};function qi(r,o){if(!De)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 ot(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 H0(r,o,l){var c=o.pendingProps;switch(la(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(o),null;case 1:return yt(o.type)&&ns(),ot(o),null;case 3:return c=o.stateNode,Wr(),Ae(mt),Ae(rt),_a(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(ls(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Qt!==null&&(Xa(Qt),Qt=null))),Fa(r,o),ot(o),null;case 5:va(o);var d=dr(Li.current);if(l=o.type,r!==null&&o.stateNode!=null)Mh(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 ot(o),null}if(r=dr(on.current),ls(o)){c=o.stateNode,l=o.type;var y=o.memoizedProps;switch(c[rn]=o,c[Ri]=y,r=(o.mode&1)!==0,l){case"dialog":Re("cancel",c),Re("close",c);break;case"iframe":case"object":case"embed":Re("load",c);break;case"video":case"audio":for(d=0;d<ji.length;d++)Re(ji[d],c);break;case"source":Re("error",c);break;case"img":case"image":case"link":Re("error",c),Re("load",c);break;case"details":Re("toggle",c);break;case"input":Ut(c,y),Re("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!y.multiple},Re("invalid",c);break;case"textarea":ci(c,y),Re("invalid",c)}xe(l,y),d=null;for(var _ in y)if(y.hasOwnProperty(_)){var E=y[_];_==="children"?typeof E=="string"?c.textContent!==E&&(y.suppressHydrationWarning!==!0&&Jo(c.textContent,E,r),d=["children",E]):typeof E=="number"&&c.textContent!==""+E&&(y.suppressHydrationWarning!==!0&&Jo(c.textContent,E,r),d=["children",""+E]):a.hasOwnProperty(_)&&E!=null&&_==="onScroll"&&Re("scroll",c)}switch(l){case"input":nr(c),Po(c,y,!0);break;case"textarea":nr(c),fi(c);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(c.onclick=es)}c=d,o.updateQueue=c,c!==null&&(o.flags|=4)}else{_=d.nodeType===9?d:d.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=jo(l)),r==="http://www.w3.org/1999/xhtml"?l==="script"?(r=_.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof c.is=="string"?r=_.createElement(l,{is:c.is}):(r=_.createElement(l),l==="select"&&(_=r,c.multiple?_.multiple=!0:c.size&&(_.size=c.size))):r=_.createElementNS(r,l),r[rn]=o,r[Ri]=c,jh(r,o,!1,!1),o.stateNode=r;e:{switch(_=dt(l,c),l){case"dialog":Re("cancel",r),Re("close",r),d=c;break;case"iframe":case"object":case"embed":Re("load",r),d=c;break;case"video":case"audio":for(d=0;d<ji.length;d++)Re(ji[d],r);d=c;break;case"source":Re("error",r),d=c;break;case"img":case"image":case"link":Re("error",r),Re("load",r),d=c;break;case"details":Re("toggle",r),d=c;break;case"input":Ut(r,c),d=Tr(r,c),Re("invalid",r);break;case"option":d=c;break;case"select":r._wrapperState={wasMultiple:!!c.multiple},d=Q({},c,{value:void 0}),Re("invalid",r);break;case"textarea":ci(r,c),d=ui(r,c),Re("invalid",r);break;default:d=c}xe(l,d),E=d;for(y in E)if(E.hasOwnProperty(y)){var M=E[y];y==="style"?ie(r,M):y==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&Mo(r,M)):y==="children"?typeof M=="string"?(l!=="textarea"||M!=="")&&or(r,M):typeof M=="number"&&or(r,""+M):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(a.hasOwnProperty(y)?M!=null&&y==="onScroll"&&Re("scroll",r):M!=null&&D(r,y,M,_))}switch(l){case"input":nr(r),Po(r,c,!1);break;case"textarea":nr(r),fi(r);break;case"option":c.value!=null&&r.setAttribute("value",""+ke(c.value));break;case"select":r.multiple=!!c.multiple,y=c.value,y!=null?pn(r,!!c.multiple,y,!1):c.defaultValue!=null&&pn(r,!!c.multiple,c.defaultValue,!0);break;default:typeof d.onClick=="function"&&(r.onclick=es)}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 ot(o),null;case 6:if(r&&o.stateNode!=null)Oh(r,o,r.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(i(166));if(l=dr(Li.current),dr(on.current),ls(o)){if(c=o.stateNode,l=o.memoizedProps,c[rn]=o,(y=c.nodeValue!==l)&&(r=Ct,r!==null))switch(r.tag){case 3:Jo(c.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Jo(c.nodeValue,l,(r.mode&1)!==0)}y&&(o.flags|=4)}else c=(l.nodeType===9?l:l.ownerDocument).createTextNode(c),c[rn]=o,o.stateNode=c}return ot(o),null;case 13:if(Ae(Fe),c=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(De&&Et!==null&&(o.mode&1)!==0&&(o.flags&128)===0)zf(),qr(),o.flags|=98560,y=!1;else if(y=ls(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[rn]=o}else qr(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ot(o),y=!1}else Qt!==null&&(Xa(Qt),Qt=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||(Fe.current&1)!==0?Qe===0&&(Qe=3):Ja())),o.updateQueue!==null&&(o.flags|=4),ot(o),null);case 4:return Wr(),Fa(r,o),r===null&&Mi(o.stateNode.containerInfo),ot(o),null;case 10:return da(o.type._context),ot(o),null;case 17:return yt(o.type)&&ns(),ot(o),null;case 19:if(Ae(Fe),y=o.memoizedState,y===null)return ot(o),null;if(c=(o.flags&128)!==0,_=y.rendering,_===null)if(c)qi(y,!1);else{if(Qe!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(_=ds(r),_!==null){for(o.flags|=128,qi(y,!1),c=_.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,_=y.alternate,_===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=_.childLanes,y.lanes=_.lanes,y.child=_.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=_.memoizedProps,y.memoizedState=_.memoizedState,y.updateQueue=_.updateQueue,y.type=_.type,r=_.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Oe(Fe,Fe.current&1|2),o.child}r=r.sibling}y.tail!==null&&He()>Yr&&(o.flags|=128,c=!0,qi(y,!1),o.lanes=4194304)}else{if(!c)if(r=ds(_),r!==null){if(o.flags|=128,c=!0,l=r.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),qi(y,!0),y.tail===null&&y.tailMode==="hidden"&&!_.alternate&&!De)return ot(o),null}else 2*He()-y.renderingStartTime>Yr&&l!==1073741824&&(o.flags|=128,c=!0,qi(y,!1),o.lanes=4194304);y.isBackwards?(_.sibling=o.child,o.child=_):(l=y.last,l!==null?l.sibling=_:o.child=_,y.last=_)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=He(),o.sibling=null,l=Fe.current,Oe(Fe,c?l&1|2:l&1),o):(ot(o),null);case 22:case 23:return Za(),c=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?(Nt&1073741824)!==0&&(ot(o),o.subtreeFlags&6&&(o.flags|=8192)):ot(o),null;case 24:return null;case 25:return null}throw Error(i(156,o.tag))}function q0(r,o){switch(la(o),o.tag){case 1:return yt(o.type)&&ns(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return Wr(),Ae(mt),Ae(rt),_a(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return va(o),null;case 13:if(Ae(Fe),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(i(340));qr()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return Ae(Fe),null;case 4:return Wr(),null;case 10:return da(o.type._context),null;case 22:case 23:return Za(),null;case 24:return null;default:return null}}var ks=!1,st=!1,V0=typeof WeakSet=="function"?WeakSet:Set,ue=null;function Gr(r,o){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(c){Ue(r,o,c)}else l.current=null}function $a(r,o,l){try{l()}catch(c){Ue(r,o,c)}}var Rh=!1;function B0(r,o){if(Zl=Ho,r=ff(),Vl(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 _=0,E=-1,M=-1,H=0,G=0,J=r,K=null;t:for(;;){for(var se;J!==l||d!==0&&J.nodeType!==3||(E=_+d),J!==y||c!==0&&J.nodeType!==3||(M=_+c),J.nodeType===3&&(_+=J.nodeValue.length),(se=J.firstChild)!==null;)K=J,J=se;for(;;){if(J===r)break t;if(K===l&&++H===d&&(E=_),K===y&&++G===c&&(M=_),(se=J.nextSibling)!==null)break;J=K,K=J.parentNode}J=se}l=E===-1||M===-1?null:{start:E,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Jl={focusedElem:r,selectionRange:l},Ho=!1,ue=o;ue!==null;)if(o=ue,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,ue=r;else for(;ue!==null;){o=ue;try{var fe=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(fe!==null){var he=fe.memoizedProps,qe=fe.memoizedState,$=o.stateNode,R=$.getSnapshotBeforeUpdate(o.elementType===o.type?he:Wt(o.type,he),qe);$.__reactInternalSnapshotBeforeUpdate=R}break;case 3:var U=o.stateNode.containerInfo;U.nodeType===1?U.textContent="":U.nodeType===9&&U.documentElement&&U.removeChild(U.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(ne){Ue(o,o.return,ne)}if(r=o.sibling,r!==null){r.return=o.return,ue=r;break}ue=o.return}return fe=Rh,Rh=!1,fe}function Vi(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&&$a(o,l,y)}d=d.next}while(d!==c)}}function Ss(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 Ua(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 Ah(r){var o=r.alternate;o!==null&&(r.alternate=null,Ah(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[rn],delete o[Ri],delete o[ra],delete o[N0],delete o[P0])),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 zh(r){return r.tag===5||r.tag===3||r.tag===4}function Dh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||zh(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 Ha(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=es));else if(c!==4&&(r=r.child,r!==null))for(Ha(r,o,l),r=r.sibling;r!==null;)Ha(r,o,l),r=r.sibling}function qa(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(qa(r,o,l),r=r.sibling;r!==null;)qa(r,o,l),r=r.sibling}var Je=null,Kt=!1;function Bn(r,o,l){for(l=l.child;l!==null;)Ih(r,o,l),l=l.sibling}function Ih(r,o,l){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Do,l)}catch{}switch(l.tag){case 5:st||Gr(l,o);case 6:var c=Je,d=Kt;Je=null,Bn(r,o,l),Je=c,Kt=d,Je!==null&&(Kt?(r=Je,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):Je.removeChild(l.stateNode));break;case 18:Je!==null&&(Kt?(r=Je,l=l.stateNode,r.nodeType===8?na(r.parentNode,l):r.nodeType===1&&na(r,l),ki(r)):na(Je,l.stateNode));break;case 4:c=Je,d=Kt,Je=l.stateNode.containerInfo,Kt=!0,Bn(r,o,l),Je=c,Kt=d;break;case 0:case 11:case 14:case 15:if(!st&&(c=l.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){d=c=c.next;do{var y=d,_=y.destroy;y=y.tag,_!==void 0&&((y&2)!==0||(y&4)!==0)&&$a(l,o,_),d=d.next}while(d!==c)}Bn(r,o,l);break;case 1:if(!st&&(Gr(l,o),c=l.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=l.memoizedProps,c.state=l.memoizedState,c.componentWillUnmount()}catch(E){Ue(l,o,E)}Bn(r,o,l);break;case 21:Bn(r,o,l);break;case 22:l.mode&1?(st=(c=st)||l.memoizedState!==null,Bn(r,o,l),st=c):Bn(r,o,l);break;default:Bn(r,o,l)}}function Lh(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new V0),o.forEach(function(c){var d=ey.bind(null,r,c);l.has(c)||(l.add(c),c.then(d,d))})}}function Gt(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,_=o,E=_;e:for(;E!==null;){switch(E.tag){case 5:Je=E.stateNode,Kt=!1;break e;case 3:Je=E.stateNode.containerInfo,Kt=!0;break e;case 4:Je=E.stateNode.containerInfo,Kt=!0;break e}E=E.return}if(Je===null)throw Error(i(160));Ih(y,_,d),Je=null,Kt=!1;var M=d.alternate;M!==null&&(M.return=null),d.return=null}catch(H){Ue(d,o,H)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Fh(o,r),o=o.sibling}function Fh(r,o){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Gt(o,r),ln(r),c&4){try{Vi(3,r,r.return),Ss(3,r)}catch(he){Ue(r,r.return,he)}try{Vi(5,r,r.return)}catch(he){Ue(r,r.return,he)}}break;case 1:Gt(o,r),ln(r),c&512&&l!==null&&Gr(l,l.return);break;case 5:if(Gt(o,r),ln(r),c&512&&l!==null&&Gr(l,l.return),r.flags&32){var d=r.stateNode;try{or(d,"")}catch(he){Ue(r,r.return,he)}}if(c&4&&(d=r.stateNode,d!=null)){var y=r.memoizedProps,_=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&&No(d,y),dt(E,_);var H=dt(E,y);for(_=0;_<M.length;_+=2){var G=M[_],J=M[_+1];G==="style"?ie(d,J):G==="dangerouslySetInnerHTML"?Mo(d,J):G==="children"?or(d,J):D(d,G,J,H)}switch(E){case"input":rr(d,y);break;case"textarea":To(d,y);break;case"select":var K=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!y.multiple;var se=y.value;se!=null?pn(d,!!y.multiple,se,!1):K!==!!y.multiple&&(y.defaultValue!=null?pn(d,!!y.multiple,y.defaultValue,!0):pn(d,!!y.multiple,y.multiple?[]:"",!1))}d[Ri]=y}catch(he){Ue(r,r.return,he)}}break;case 6:if(Gt(o,r),ln(r),c&4){if(r.stateNode===null)throw Error(i(162));d=r.stateNode,y=r.memoizedProps;try{d.nodeValue=y}catch(he){Ue(r,r.return,he)}}break;case 3:if(Gt(o,r),ln(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{ki(o.containerInfo)}catch(he){Ue(r,r.return,he)}break;case 4:Gt(o,r),ln(r);break;case 13:Gt(o,r),ln(r),d=r.child,d.flags&8192&&(y=d.memoizedState!==null,d.stateNode.isHidden=y,!y||d.alternate!==null&&d.alternate.memoizedState!==null||(Qa=He())),c&4&&Lh(r);break;case 22:if(G=l!==null&&l.memoizedState!==null,r.mode&1?(st=(H=st)||G,Gt(o,r),st=H):Gt(o,r),ln(r),c&8192){if(H=r.memoizedState!==null,(r.stateNode.isHidden=H)&&!G&&(r.mode&1)!==0)for(ue=r,G=r.child;G!==null;){for(J=ue=G;ue!==null;){switch(K=ue,se=K.child,K.tag){case 0:case 11:case 14:case 15:Vi(4,K,K.return);break;case 1:Gr(K,K.return);var fe=K.stateNode;if(typeof fe.componentWillUnmount=="function"){c=K,l=K.return;try{o=c,fe.props=o.memoizedProps,fe.state=o.memoizedState,fe.componentWillUnmount()}catch(he){Ue(c,l,he)}}break;case 5:Gr(K,K.return);break;case 22:if(K.memoizedState!==null){Hh(J);continue}}se!==null?(se.return=K,ue=se):Hh(J)}G=G.sibling}e:for(G=null,J=r;;){if(J.tag===5){if(G===null){G=J;try{d=J.stateNode,H?(y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(E=J.stateNode,M=J.memoizedProps.style,_=M!=null&&M.hasOwnProperty("display")?M.display:null,E.style.display=Oo("display",_))}catch(he){Ue(r,r.return,he)}}}else if(J.tag===6){if(G===null)try{J.stateNode.nodeValue=H?"":J.memoizedProps}catch(he){Ue(r,r.return,he)}}else if((J.tag!==22&&J.tag!==23||J.memoizedState===null||J===r)&&J.child!==null){J.child.return=J,J=J.child;continue}if(J===r)break e;for(;J.sibling===null;){if(J.return===null||J.return===r)break e;G===J&&(G=null),J=J.return}G===J&&(G=null),J.sibling.return=J.return,J=J.sibling}}break;case 19:Gt(o,r),ln(r),c&4&&Lh(r);break;case 21:break;default:Gt(o,r),ln(r)}}function ln(r){var o=r.flags;if(o&2){try{e:{for(var l=r.return;l!==null;){if(zh(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&&(or(d,""),c.flags&=-33);var y=Dh(r);qa(r,y,d);break;case 3:case 4:var _=c.stateNode.containerInfo,E=Dh(r);Ha(r,E,_);break;default:throw Error(i(161))}}catch(M){Ue(r,r.return,M)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function Q0(r,o,l){ue=r,$h(r)}function $h(r,o,l){for(var c=(r.mode&1)!==0;ue!==null;){var d=ue,y=d.child;if(d.tag===22&&c){var _=d.memoizedState!==null||ks;if(!_){var E=d.alternate,M=E!==null&&E.memoizedState!==null||st;E=ks;var H=st;if(ks=_,(st=M)&&!H)for(ue=d;ue!==null;)_=ue,M=_.child,_.tag===22&&_.memoizedState!==null?qh(d):M!==null?(M.return=_,ue=M):qh(d);for(;y!==null;)ue=y,$h(y),y=y.sibling;ue=d,ks=E,st=H}Uh(r)}else(d.subtreeFlags&8772)!==0&&y!==null?(y.return=d,ue=y):Uh(r)}}function Uh(r){for(;ue!==null;){var o=ue;if((o.flags&8772)!==0){var l=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:st||Ss(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!st)if(l===null)c.componentDidMount();else{var d=o.elementType===o.type?l.memoizedProps:Wt(o.type,l.memoizedProps);c.componentDidUpdate(d,l.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var y=o.updateQueue;y!==null&&Hf(o,y,c);break;case 3:var _=o.updateQueue;if(_!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}Hf(o,_,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 H=o.alternate;if(H!==null){var G=H.memoizedState;if(G!==null){var J=G.dehydrated;J!==null&&ki(J)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}st||o.flags&512&&Ua(o)}catch(K){Ue(o,o.return,K)}}if(o===r){ue=null;break}if(l=o.sibling,l!==null){l.return=o.return,ue=l;break}ue=o.return}}function Hh(r){for(;ue!==null;){var o=ue;if(o===r){ue=null;break}var l=o.sibling;if(l!==null){l.return=o.return,ue=l;break}ue=o.return}}function qh(r){for(;ue!==null;){var o=ue;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{Ss(4,o)}catch(M){Ue(o,l,M)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var d=o.return;try{c.componentDidMount()}catch(M){Ue(o,d,M)}}var y=o.return;try{Ua(o)}catch(M){Ue(o,y,M)}break;case 5:var _=o.return;try{Ua(o)}catch(M){Ue(o,_,M)}}}catch(M){Ue(o,o.return,M)}if(o===r){ue=null;break}var E=o.sibling;if(E!==null){E.return=o.return,ue=E;break}ue=o.return}}var W0=Math.ceil,bs=P.ReactCurrentDispatcher,Va=P.ReactCurrentOwner,At=P.ReactCurrentBatchConfig,Ee=0,Ge=null,Ve=null,et=0,Nt=0,Xr=$n(0),Qe=0,Bi=null,gr=0,Cs=0,Ba=0,Qi=null,xt=null,Qa=0,Yr=1/0,kn=null,Es=!1,Wa=null,Qn=null,Ns=!1,Wn=null,Ps=0,Wi=0,Ka=null,Ts=-1,js=0;function ut(){return(Ee&6)!==0?He():Ts!==-1?Ts:Ts=He()}function Kn(r){return(r.mode&1)===0?1:(Ee&2)!==0&&et!==0?et&-et:j0.transition!==null?(js===0&&(js=zc()),js):(r=Te,r!==0||(r=window.event,r=r===void 0?16:Vc(r.type)),r)}function Xt(r,o,l,c){if(50<Wi)throw Wi=0,Ka=null,Error(i(185));yi(r,l,c),((Ee&2)===0||r!==Ge)&&(r===Ge&&((Ee&2)===0&&(Cs|=l),Qe===4&&Gn(r,et)),_t(r,c),l===1&&Ee===0&&(o.mode&1)===0&&(Yr=He()+500,is&&Hn()))}function _t(r,o){var l=r.callbackNode;jm(r,o);var c=Fo(r,r===Ge?et:0);if(c===0)l!==null&&Oc(l),r.callbackNode=null,r.callbackPriority=0;else if(o=c&-c,r.callbackPriority!==o){if(l!=null&&Oc(l),o===1)r.tag===0?T0(Bh.bind(null,r)):jf(Bh.bind(null,r)),C0(function(){(Ee&6)===0&&Hn()}),l=null;else{switch(Dc(c)){case 1:l=Nl;break;case 4:l=Rc;break;case 16:l=zo;break;case 536870912:l=Ac;break;default:l=zo}l=Jh(l,Vh.bind(null,r))}r.callbackPriority=o,r.callbackNode=l}}function Vh(r,o){if(Ts=-1,js=0,(Ee&6)!==0)throw Error(i(327));var l=r.callbackNode;if(Zr()&&r.callbackNode!==l)return null;var c=Fo(r,r===Ge?et:0);if(c===0)return null;if((c&30)!==0||(c&r.expiredLanes)!==0||o)o=Ms(r,c);else{o=c;var d=Ee;Ee|=2;var y=Wh();(Ge!==r||et!==o)&&(kn=null,Yr=He()+500,yr(r,o));do try{X0();break}catch(E){Qh(r,E)}while(!0);ha(),bs.current=y,Ee=d,Ve!==null?o=0:(Ge=null,et=0,o=Qe)}if(o!==0){if(o===2&&(d=Pl(r),d!==0&&(c=d,o=Ga(r,d))),o===1)throw l=Bi,yr(r,0),Gn(r,c),_t(r,He()),l;if(o===6)Gn(r,c);else{if(d=r.current.alternate,(c&30)===0&&!K0(d)&&(o=Ms(r,c),o===2&&(y=Pl(r),y!==0&&(c=y,o=Ga(r,y))),o===1))throw l=Bi,yr(r,0),Gn(r,c),_t(r,He()),l;switch(r.finishedWork=d,r.finishedLanes=c,o){case 0:case 1:throw Error(i(345));case 2:vr(r,xt,kn);break;case 3:if(Gn(r,c),(c&130023424)===c&&(o=Qa+500-He(),10<o)){if(Fo(r,0)!==0)break;if(d=r.suspendedLanes,(d&c)!==c){ut(),r.pingedLanes|=r.suspendedLanes&d;break}r.timeoutHandle=ta(vr.bind(null,r,xt,kn),o);break}vr(r,xt,kn);break;case 4:if(Gn(r,c),(c&4194240)===c)break;for(o=r.eventTimes,d=-1;0<c;){var _=31-Vt(c);y=1<<_,_=o[_],_>d&&(d=_),c&=~y}if(c=d,c=He()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*W0(c/1960))-c,10<c){r.timeoutHandle=ta(vr.bind(null,r,xt,kn),c);break}vr(r,xt,kn);break;case 5:vr(r,xt,kn);break;default:throw Error(i(329))}}}return _t(r,He()),r.callbackNode===l?Vh.bind(null,r):null}function Ga(r,o){var l=Qi;return r.current.memoizedState.isDehydrated&&(yr(r,o).flags|=256),r=Ms(r,o),r!==2&&(o=xt,xt=l,o!==null&&Xa(o)),r}function Xa(r){xt===null?xt=r:xt.push.apply(xt,r)}function K0(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(!Bt(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 Gn(r,o){for(o&=~Ba,o&=~Cs,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var l=31-Vt(o),c=1<<l;r[l]=-1,o&=~c}}function Bh(r){if((Ee&6)!==0)throw Error(i(327));Zr();var o=Fo(r,0);if((o&1)===0)return _t(r,He()),null;var l=Ms(r,o);if(r.tag!==0&&l===2){var c=Pl(r);c!==0&&(o=c,l=Ga(r,c))}if(l===1)throw l=Bi,yr(r,0),Gn(r,o),_t(r,He()),l;if(l===6)throw Error(i(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,vr(r,xt,kn),_t(r,He()),null}function Ya(r,o){var l=Ee;Ee|=1;try{return r(o)}finally{Ee=l,Ee===0&&(Yr=He()+500,is&&Hn())}}function mr(r){Wn!==null&&Wn.tag===0&&(Ee&6)===0&&Zr();var o=Ee;Ee|=1;var l=At.transition,c=Te;try{if(At.transition=null,Te=1,r)return r()}finally{Te=c,At.transition=l,Ee=o,(Ee&6)===0&&Hn()}}function Za(){Nt=Xr.current,Ae(Xr)}function yr(r,o){r.finishedWork=null,r.finishedLanes=0;var l=r.timeoutHandle;if(l!==-1&&(r.timeoutHandle=-1,b0(l)),Ve!==null)for(l=Ve.return;l!==null;){var c=l;switch(la(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&ns();break;case 3:Wr(),Ae(mt),Ae(rt),_a();break;case 5:va(c);break;case 4:Wr();break;case 13:Ae(Fe);break;case 19:Ae(Fe);break;case 10:da(c.type._context);break;case 22:case 23:Za()}l=l.return}if(Ge=r,Ve=r=Xn(r.current,null),et=Nt=o,Qe=0,Bi=null,Ba=Cs=gr=0,xt=Qi=null,hr!==null){for(o=0;o<hr.length;o++)if(l=hr[o],c=l.interleaved,c!==null){l.interleaved=null;var d=c.next,y=l.pending;if(y!==null){var _=y.next;y.next=d,c.next=_}l.pending=c}hr=null}return r}function Qh(r,o){do{var l=Ve;try{if(ha(),ps.current=vs,gs){for(var c=$e.memoizedState;c!==null;){var d=c.queue;d!==null&&(d.pending=null),c=c.next}gs=!1}if(pr=0,Ke=Be=$e=null,Fi=!1,$i=0,Va.current=null,l===null||l.return===null){Qe=1,Bi=o,Ve=null;break}e:{var y=r,_=l.return,E=l,M=o;if(o=et,E.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var H=M,G=E,J=G.tag;if((G.mode&1)===0&&(J===0||J===11||J===15)){var K=G.alternate;K?(G.updateQueue=K.updateQueue,G.memoizedState=K.memoizedState,G.lanes=K.lanes):(G.updateQueue=null,G.memoizedState=null)}var se=yh(_);if(se!==null){se.flags&=-257,vh(se,_,E,y,o),se.mode&1&&mh(y,H,o),o=se,M=H;var fe=o.updateQueue;if(fe===null){var he=new Set;he.add(M),o.updateQueue=he}else fe.add(M);break e}else{if((o&1)===0){mh(y,H,o),Ja();break e}M=Error(i(426))}}else if(De&&E.mode&1){var qe=yh(_);if(qe!==null){(qe.flags&65536)===0&&(qe.flags|=256),vh(qe,_,E,y,o),ca(Kr(M,E));break e}}y=M=Kr(M,E),Qe!==4&&(Qe=2),Qi===null?Qi=[y]:Qi.push(y),y=_;do{switch(y.tag){case 3:y.flags|=65536,o&=-o,y.lanes|=o;var $=ph(y,M,o);Uf(y,$);break e;case 1:E=M;var R=y.type,U=y.stateNode;if((y.flags&128)===0&&(typeof R.getDerivedStateFromError=="function"||U!==null&&typeof U.componentDidCatch=="function"&&(Qn===null||!Qn.has(U)))){y.flags|=65536,o&=-o,y.lanes|=o;var ne=gh(y,E,o);Uf(y,ne);break e}}y=y.return}while(y!==null)}Gh(l)}catch(pe){o=pe,Ve===l&&l!==null&&(Ve=l=l.return);continue}break}while(!0)}function Wh(){var r=bs.current;return bs.current=vs,r===null?vs:r}function Ja(){(Qe===0||Qe===3||Qe===2)&&(Qe=4),Ge===null||(gr&268435455)===0&&(Cs&268435455)===0||Gn(Ge,et)}function Ms(r,o){var l=Ee;Ee|=2;var c=Wh();(Ge!==r||et!==o)&&(kn=null,yr(r,o));do try{G0();break}catch(d){Qh(r,d)}while(!0);if(ha(),Ee=l,bs.current=c,Ve!==null)throw Error(i(261));return Ge=null,et=0,Qe}function G0(){for(;Ve!==null;)Kh(Ve)}function X0(){for(;Ve!==null&&!wm();)Kh(Ve)}function Kh(r){var o=Zh(r.alternate,r,Nt);r.memoizedProps=r.pendingProps,o===null?Gh(r):Ve=o,Va.current=null}function Gh(r){var o=r;do{var l=o.alternate;if(r=o.return,(o.flags&32768)===0){if(l=H0(l,o,Nt),l!==null){Ve=l;return}}else{if(l=q0(l,o),l!==null){l.flags&=32767,Ve=l;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Qe=6,Ve=null;return}}if(o=o.sibling,o!==null){Ve=o;return}Ve=o=r}while(o!==null);Qe===0&&(Qe=5)}function vr(r,o,l){var c=Te,d=At.transition;try{At.transition=null,Te=1,Y0(r,o,l,c)}finally{At.transition=d,Te=c}return null}function Y0(r,o,l,c){do Zr();while(Wn!==null);if((Ee&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(Mm(r,y),r===Ge&&(Ve=Ge=null,et=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Ns||(Ns=!0,Jh(zo,function(){return Zr(),null})),y=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||y){y=At.transition,At.transition=null;var _=Te;Te=1;var E=Ee;Ee|=4,Va.current=null,B0(r,l),Fh(l,r),y0(Jl),Ho=!!Zl,Jl=Zl=null,r.current=l,Q0(l),km(),Ee=E,Te=_,At.transition=y}else r.current=l;if(Ns&&(Ns=!1,Wn=r,Ps=d),y=r.pendingLanes,y===0&&(Qn=null),Cm(l.stateNode),_t(r,He()),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(Es)throw Es=!1,r=Wa,Wa=null,r;return(Ps&1)!==0&&r.tag!==0&&Zr(),y=r.pendingLanes,(y&1)!==0?r===Ka?Wi++:(Wi=0,Ka=r):Wi=0,Hn(),null}function Zr(){if(Wn!==null){var r=Dc(Ps),o=At.transition,l=Te;try{if(At.transition=null,Te=16>r?16:r,Wn===null)var c=!1;else{if(r=Wn,Wn=null,Ps=0,(Ee&6)!==0)throw Error(i(331));var d=Ee;for(Ee|=4,ue=r.current;ue!==null;){var y=ue,_=y.child;if((ue.flags&16)!==0){var E=y.deletions;if(E!==null){for(var M=0;M<E.length;M++){var H=E[M];for(ue=H;ue!==null;){var G=ue;switch(G.tag){case 0:case 11:case 15:Vi(8,G,y)}var J=G.child;if(J!==null)J.return=G,ue=J;else for(;ue!==null;){G=ue;var K=G.sibling,se=G.return;if(Ah(G),G===H){ue=null;break}if(K!==null){K.return=se,ue=K;break}ue=se}}}var fe=y.alternate;if(fe!==null){var he=fe.child;if(he!==null){fe.child=null;do{var qe=he.sibling;he.sibling=null,he=qe}while(he!==null)}}ue=y}}if((y.subtreeFlags&2064)!==0&&_!==null)_.return=y,ue=_;else e:for(;ue!==null;){if(y=ue,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Vi(9,y,y.return)}var $=y.sibling;if($!==null){$.return=y.return,ue=$;break e}ue=y.return}}var R=r.current;for(ue=R;ue!==null;){_=ue;var U=_.child;if((_.subtreeFlags&2064)!==0&&U!==null)U.return=_,ue=U;else e:for(_=R;ue!==null;){if(E=ue,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:Ss(9,E)}}catch(pe){Ue(E,E.return,pe)}if(E===_){ue=null;break e}var ne=E.sibling;if(ne!==null){ne.return=E.return,ue=ne;break e}ue=E.return}}if(Ee=d,Hn(),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(Do,r)}catch{}c=!0}return c}finally{Te=l,At.transition=o}}return!1}function Xh(r,o,l){o=Kr(l,o),o=ph(r,o,1),r=Vn(r,o,1),o=ut(),r!==null&&(yi(r,1,o),_t(r,o))}function Ue(r,o,l){if(r.tag===3)Xh(r,r,l);else for(;o!==null;){if(o.tag===3){Xh(o,r,l);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Qn===null||!Qn.has(c))){r=Kr(l,r),r=gh(o,r,1),o=Vn(o,r,1),r=ut(),o!==null&&(yi(o,1,r),_t(o,r));break}}o=o.return}}function Z0(r,o,l){var c=r.pingCache;c!==null&&c.delete(o),o=ut(),r.pingedLanes|=r.suspendedLanes&l,Ge===r&&(et&l)===l&&(Qe===4||Qe===3&&(et&130023424)===et&&500>He()-Qa?yr(r,0):Ba|=l),_t(r,o)}function Yh(r,o){o===0&&((r.mode&1)===0?o=1:(o=Lo,Lo<<=1,(Lo&130023424)===0&&(Lo=4194304)));var l=ut();r=xn(r,o),r!==null&&(yi(r,o,l),_t(r,l))}function J0(r){var o=r.memoizedState,l=0;o!==null&&(l=o.retryLane),Yh(r,l)}function ey(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),Yh(r,l)}var Zh;Zh=function(r,o,l){if(r!==null)if(r.memoizedProps!==o.pendingProps||mt.current)vt=!0;else{if((r.lanes&l)===0&&(o.flags&128)===0)return vt=!1,U0(r,o,l);vt=(r.flags&131072)!==0}else vt=!1,De&&(o.flags&1048576)!==0&&Mf(o,ss,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;ws(r,o),r=o.pendingProps;var d=$r(o,rt.current);Qr(o,l),d=Sa(null,o,c,r,d,l);var y=ba();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,yt(c)?(y=!0,rs(o)):y=!1,o.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,ma(o),d.updater=xs,o.stateNode=d,d._reactInternals=o,ja(o,c,r,l),o=Aa(null,o,c,!0,y,l)):(o.tag=0,De&&y&&sa(o),at(null,o,d,l),o=o.child),o;case 16:c=o.elementType;e:{switch(ws(r,o),r=o.pendingProps,d=c._init,c=d(c._payload),o.type=c,d=o.tag=ny(c),r=Wt(c,r),d){case 0:o=Ra(null,o,c,r,l);break e;case 1:o=bh(null,o,c,r,l);break e;case 11:o=xh(null,o,c,r,l);break e;case 14:o=_h(null,o,c,Wt(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:Wt(c,d),Ra(r,o,c,d,l);case 1:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Wt(c,d),bh(r,o,c,d,l);case 3:e:{if(Ch(o),r===null)throw Error(i(387));c=o.pendingProps,y=o.memoizedState,d=y.element,$f(r,o),hs(o,c,null,l);var _=o.memoizedState;if(c=_.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){d=Kr(Error(i(423)),o),o=Eh(r,o,c,l,d);break e}else if(c!==d){d=Kr(Error(i(424)),o),o=Eh(r,o,c,l,d);break e}else for(Et=Fn(o.stateNode.containerInfo.firstChild),Ct=o,De=!0,Qt=null,l=Lf(o,null,c,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(qr(),c===d){o=wn(r,o,l);break e}at(r,o,c,l)}o=o.child}return o;case 5:return qf(o),r===null&&ua(o),c=o.type,d=o.pendingProps,y=r!==null?r.memoizedProps:null,_=d.children,ea(c,d)?_=null:y!==null&&ea(c,y)&&(o.flags|=32),Sh(r,o),at(r,o,_,l),o.child;case 6:return r===null&&ua(o),null;case 13:return Nh(r,o,l);case 4:return ya(o,o.stateNode.containerInfo),c=o.pendingProps,r===null?o.child=Vr(o,null,c,l):at(r,o,c,l),o.child;case 11:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Wt(c,d),xh(r,o,c,d,l);case 7:return at(r,o,o.pendingProps,l),o.child;case 8:return at(r,o,o.pendingProps.children,l),o.child;case 12:return at(r,o,o.pendingProps.children,l),o.child;case 10:e:{if(c=o.type._context,d=o.pendingProps,y=o.memoizedProps,_=d.value,Oe(us,c._currentValue),c._currentValue=_,y!==null)if(Bt(y.value,_)){if(y.children===d.children&&!mt.current){o=wn(r,o,l);break e}}else for(y=o.child,y!==null&&(y.return=o);y!==null;){var E=y.dependencies;if(E!==null){_=y.child;for(var M=E.firstContext;M!==null;){if(M.context===c){if(y.tag===1){M=_n(-1,l&-l),M.tag=2;var H=y.updateQueue;if(H!==null){H=H.shared;var G=H.pending;G===null?M.next=M:(M.next=G.next,G.next=M),H.pending=M}}y.lanes|=l,M=y.alternate,M!==null&&(M.lanes|=l),pa(y.return,l,o),E.lanes|=l;break}M=M.next}}else if(y.tag===10)_=y.type===o.type?null:y.child;else if(y.tag===18){if(_=y.return,_===null)throw Error(i(341));_.lanes|=l,E=_.alternate,E!==null&&(E.lanes|=l),pa(_,l,o),_=y.sibling}else _=y.child;if(_!==null)_.return=y;else for(_=y;_!==null;){if(_===o){_=null;break}if(y=_.sibling,y!==null){y.return=_.return,_=y;break}_=_.return}y=_}at(r,o,d.children,l),o=o.child}return o;case 9:return d=o.type,c=o.pendingProps.children,Qr(o,l),d=Ot(d),c=c(d),o.flags|=1,at(r,o,c,l),o.child;case 14:return c=o.type,d=Wt(c,o.pendingProps),d=Wt(c.type,d),_h(r,o,c,d,l);case 15:return wh(r,o,o.type,o.pendingProps,l);case 17:return c=o.type,d=o.pendingProps,d=o.elementType===c?d:Wt(c,d),ws(r,o),o.tag=1,yt(c)?(r=!0,rs(o)):r=!1,Qr(o,l),hh(o,c,d),ja(o,c,d,l),Aa(null,o,c,!0,r,l);case 19:return Th(r,o,l);case 22:return kh(r,o,l)}throw Error(i(156,o.tag))};function Jh(r,o){return Mc(r,o)}function ty(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 zt(r,o,l,c){return new ty(r,o,l,c)}function eu(r){return r=r.prototype,!(!r||!r.isReactComponent)}function ny(r){if(typeof r=="function")return eu(r)?1:0;if(r!=null){if(r=r.$$typeof,r===oe)return 11;if(r===ee)return 14}return 2}function Xn(r,o){var l=r.alternate;return l===null?(l=zt(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 Os(r,o,l,c,d,y){var _=2;if(c=r,typeof r=="function")eu(r)&&(_=1);else if(typeof r=="string")_=5;else e:switch(r){case A:return xr(l.children,d,y,o);case L:_=8,d|=8;break;case W:return r=zt(12,l,o,d|2),r.elementType=W,r.lanes=y,r;case de:return r=zt(13,l,o,d),r.elementType=de,r.lanes=y,r;case F:return r=zt(19,l,o,d),r.elementType=F,r.lanes=y,r;case te:return Rs(l,d,y,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case X:_=10;break e;case Z:_=9;break e;case oe:_=11;break e;case ee:_=14;break e;case B:_=16,c=null;break e}throw Error(i(130,r==null?r:typeof r,""))}return o=zt(_,l,o,d),o.elementType=r,o.type=c,o.lanes=y,o}function xr(r,o,l,c){return r=zt(7,r,c,o),r.lanes=l,r}function Rs(r,o,l,c){return r=zt(22,r,c,o),r.elementType=te,r.lanes=l,r.stateNode={isHidden:!1},r}function tu(r,o,l){return r=zt(6,r,null,o),r.lanes=l,r}function nu(r,o,l){return o=zt(4,r.children!==null?r.children:[],r.key,o),o.lanes=l,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function ry(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=Tl(0),this.expirationTimes=Tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tl(0),this.identifierPrefix=c,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function ru(r,o,l,c,d,y,_,E,M){return r=new ry(r,o,l,E,M),o===1?(o=1,y===!0&&(o|=8)):o=0,y=zt(3,null,null,o),r.current=y,y.stateNode=r,y.memoizedState={element:c,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},ma(y),r}function iy(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 ed(r){if(!r)return Un;r=r._reactInternals;e:{if(lr(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(yt(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(yt(l))return Pf(r,l,o)}return o}function td(r,o,l,c,d,y,_,E,M){return r=ru(l,c,!0,r,d,y,_,E,M),r.context=ed(null),l=r.current,c=ut(),d=Kn(l),y=_n(c,d),y.callback=o??null,Vn(l,y,d),r.current.lanes=d,yi(r,d,c),_t(r,c),r}function As(r,o,l,c){var d=o.current,y=ut(),_=Kn(d);return l=ed(l),o.context===null?o.context=l:o.pendingContext=l,o=_n(y,_),o.payload={element:r},c=c===void 0?null:c,c!==null&&(o.callback=c),r=Vn(d,o,_),r!==null&&(Xt(r,d,_,y),fs(r,d,_)),_}function zs(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 nd(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<o?l:o}}function iu(r,o){nd(r,o),(r=r.alternate)&&nd(r,o)}function oy(){return null}var rd=typeof reportError=="function"?reportError:function(r){console.error(r)};function ou(r){this._internalRoot=r}Ds.prototype.render=ou.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(i(409));As(r,o,null,null)},Ds.prototype.unmount=ou.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;mr(function(){As(null,r,null,null)}),o[gn]=null}};function Ds(r){this._internalRoot=r}Ds.prototype.unstable_scheduleHydration=function(r){if(r){var o=Fc();r={blockedOn:null,target:r,priority:o};for(var l=0;l<Dn.length&&o!==0&&o<Dn[l].priority;l++);Dn.splice(l,0,r),l===0&&Hc(r)}};function su(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Is(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function id(){}function sy(r,o,l,c,d){if(d){if(typeof c=="function"){var y=c;c=function(){var H=zs(_);y.call(H)}}var _=td(o,c,r,0,null,!1,!1,"",id);return r._reactRootContainer=_,r[gn]=_.current,Mi(r.nodeType===8?r.parentNode:r),mr(),_}for(;d=r.lastChild;)r.removeChild(d);if(typeof c=="function"){var E=c;c=function(){var H=zs(M);E.call(H)}}var M=ru(r,0,!1,null,null,!1,!1,"",id);return r._reactRootContainer=M,r[gn]=M.current,Mi(r.nodeType===8?r.parentNode:r),mr(function(){As(o,M,l,c)}),M}function Ls(r,o,l,c,d){var y=l._reactRootContainer;if(y){var _=y;if(typeof d=="function"){var E=d;d=function(){var M=zs(_);E.call(M)}}As(o,_,r,d)}else _=sy(l,o,r,d,c);return zs(_)}Ic=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var l=mi(o.pendingLanes);l!==0&&(jl(o,l|1),_t(o,He()),(Ee&6)===0&&(Yr=He()+500,Hn()))}break;case 13:mr(function(){var c=xn(r,1);if(c!==null){var d=ut();Xt(c,r,1,d)}}),iu(r,1)}},Ml=function(r){if(r.tag===13){var o=xn(r,134217728);if(o!==null){var l=ut();Xt(o,r,134217728,l)}iu(r,134217728)}},Lc=function(r){if(r.tag===13){var o=Kn(r),l=xn(r,o);if(l!==null){var c=ut();Xt(l,r,o,c)}iu(r,o)}},Fc=function(){return Te},$c=function(r,o){var l=Te;try{return Te=r,o()}finally{Te=l}},Ht=function(r,o,l){switch(o){case"input":if(rr(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=ts(c);if(!d)throw Error(i(90));Eo(c),rr(c,d)}}}break;case"textarea":To(r,l);break;case"select":o=l.value,o!=null&&pn(r,!!l.multiple,o,!1)}},bc=Ya,Cc=mr;var ly={usingClientEntryPoint:!1,Events:[Ai,Lr,ts,kc,Sc,Ya]},Ki={findFiberByHostInstance:ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ay={bundleType:Ki.bundleType,version:Ki.version,rendererPackageName:Ki.rendererPackageName,rendererConfig:Ki.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=Tc(r),r===null?null:r.stateNode},findFiberByHostInstance:Ki.findFiberByHostInstance||oy,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 Fs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fs.isDisabled&&Fs.supportsFiber)try{Do=Fs.inject(ay),nn=Fs}catch{}}return wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ly,wt.createPortal=function(r,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!su(o))throw Error(i(200));return iy(r,o,null,l)},wt.createRoot=function(r,o){if(!su(r))throw Error(i(299));var l=!1,c="",d=rd;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(d=o.onRecoverableError)),o=ru(r,1,!1,null,null,l,!1,c,d),r[gn]=o.current,Mi(r.nodeType===8?r.parentNode:r),new ou(o)},wt.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=Tc(o),r=r===null?null:r.stateNode,r},wt.flushSync=function(r){return mr(r)},wt.hydrate=function(r,o,l){if(!Is(o))throw Error(i(200));return Ls(null,r,o,!0,l)},wt.hydrateRoot=function(r,o,l){if(!su(r))throw Error(i(405));var c=l!=null&&l.hydratedSources||null,d=!1,y="",_=rd;if(l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(_=l.onRecoverableError)),o=td(o,null,r,1,l??null,d,!1,y,_),r[gn]=o.current,Mi(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 Ds(o)},wt.render=function(r,o,l){if(!Is(o))throw Error(i(200));return Ls(null,r,o,!1,l)},wt.unmountComponentAtNode=function(r){if(!Is(r))throw Error(i(40));return r._reactRootContainer?(mr(function(){Ls(null,null,r,!1,function(){r._reactRootContainer=null,r[gn]=null})}),!0):!1},wt.unstable_batchedUpdates=Ya,wt.unstable_renderSubtreeIntoContainer=function(r,o,l,c){if(!Is(l))throw Error(i(200));if(r==null||r._reactInternals===void 0)throw Error(i(38));return Ls(r,o,l,!1,c)},wt.version="18.3.1-next-f1338f8080-20240426",wt}var wd;function Gy(){if(wd)return cu.exports;wd=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(),cu.exports=Ky(),cu.exports}var kd;function Xy(){if(kd)return Us;kd=1;var e=Gy();return Us.createRoot=e.createRoot,Us.hydrateRoot=e.hydrateRoot,Us}var Yy=Xy();/**
41
+ * @license lucide-react v0.408.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const Zy=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rg=(...e)=>e.filter((n,i,s)=>!!n&&s.indexOf(n)===i).join(" ");/**
46
+ * @license lucide-react v0.408.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */var Jy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51
+ * @license lucide-react v0.408.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const ev=le.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:a="",children:u,iconNode:f,...h},p)=>le.createElement("svg",{ref:p,...Jy,width:n,height:n,stroke:e,strokeWidth:s?Number(i)*24/Number(n):i,className:rg("lucide",a),...h},[...f.map(([g,v])=>le.createElement(g,v)),...Array.isArray(u)?u:[u]]));/**
56
+ * @license lucide-react v0.408.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const $t=(e,n)=>{const i=le.forwardRef(({className:s,...a},u)=>le.createElement(ev,{ref:u,iconNode:n,className:rg(`lucide-${Zy(e)}`,s),...a}));return i.displayName=`${e}`,i};/**
61
+ * @license lucide-react v0.408.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const tv=$t("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
66
+ * @license lucide-react v0.408.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const nv=$t("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"}]]);/**
71
+ * @license lucide-react v0.408.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const rv=$t("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
76
+ * @license lucide-react v0.408.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const Sd=$t("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"}]]);/**
81
+ * @license lucide-react v0.408.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const du=$t("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"}]]);/**
86
+ * @license lucide-react v0.408.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const iv=$t("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
91
+ * @license lucide-react v0.408.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const ov=$t("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"}]]);/**
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 Jr=$t("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"}]]);/**
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 sv=$t("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"}]]);/**
106
+ * @license lucide-react v0.408.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const pu=$t("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
111
+ * @license lucide-react v0.408.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const lv=$t("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"}]]);/**
116
+ * @license lucide-react v0.408.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const bd=$t("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 Cd({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 N.jsx("span",{className:`${s} ${a[n]} ${i}`,children:e})}function Ye({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",g={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 N.jsx("button",{type:h,className:`${p} ${g[n]} ${v[i]} ${s}`,onClick:a,disabled:u,title:f,children:e})}function av({children:e,className:n=""}){return N.jsx("div",{className:`rounded-lg border bg-card text-card-foreground shadow-sm ${n}`,children:e})}function uv({children:e,className:n=""}){return N.jsx("div",{className:`flex flex-col space-y-1.5 p-6 ${n}`,children:e})}function cv({children:e,className:n=""}){return N.jsx("div",{className:`flex items-center p-6 pt-0 ${n}`,children:e})}function Ed({type:e="text",placeholder:n,value:i,onChange:s,className:a="",disabled:u=!1,ref:f,multiple:h,accept:p,...g}){return N.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}`,...g})}function fv(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,g=!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){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function hv(e,n,i){return n=_v(n),n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Nd(e,n){return gv(e)||fv(e,n)||ig(e,n)||vv()}function dv(e){return pv(e)||mv(e)||ig(e)||yv()}function pv(e){if(Array.isArray(e))return Ru(e)}function gv(e){if(Array.isArray(e))return e}function mv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ig(e,n){if(e){if(typeof e=="string")return Ru(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 Ru(e,n)}}function Ru(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 yv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
121
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
122
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xv(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 _v(e){var n=xv(e,"string");return typeof n=="symbol"?n:String(n)}var wv=function(n,i){var s=new Set(i);return Object.assign.apply(Object,[{}].concat(dv(Object.entries(n).filter(function(a){var u=Nd(a,1),f=u[0];return!s.has(f)}).map(function(a){var u=Nd(a,2),f=u[0],h=u[1];return hv({},f,h)}))))};function Au(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 kv(e){if(Array.isArray(e))return e}function Sv(e){if(Array.isArray(e))return Au(e)}function bv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cv(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,g=!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){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function Ev(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
123
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
124
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pv(e,n){return kv(e)||Cv(e,n)||og(e,n)||Ev()}function Pd(e){return Sv(e)||bv(e)||og(e)||Nv()}function og(e,n){if(e){if(typeof e=="string")return Au(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)?Au(e,n):void 0}}function Tv(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,g=p===void 0?[]:p;return le.forwardRef(function(v,m){var x=le.useRef(),w=le.useMemo(function(){var S=Object.fromEntries(g.filter(function(k){return v.hasOwnProperty(k)}).map(function(k){return[k,v[k]]}));return e(S)},[]);Td(function(){w(u(x.current))},le.useLayoutEffect),Td(function(){return w._destructor instanceof Function?w._destructor:void 0});var b=le.useCallback(function(S){for(var k=arguments.length,O=new Array(k>1?k-1:0),D=1;D<k;D++)O[D-1]=arguments[D];return w[S]instanceof Function?w[S].apply(w,O):void 0},[w]),C=le.useRef({});return Object.keys(wv(v,[].concat(Pd(h),Pd(g)))).filter(function(S){return C.current[S]!==v[S]}).forEach(function(S){return b(S,v[S])}),C.current=v,le.useImperativeHandle(m,function(){return Object.fromEntries(h.map(function(S){return[S,function(){for(var k=arguments.length,O=new Array(k),D=0;D<k;D++)O[D]=arguments[D];return b.apply(void 0,[S].concat(O))}]}))},[b]),eg.createElement(s,{ref:x})})}function Td(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.useEffect,i=le.useRef(),s=le.useRef(!1),a=le.useRef(!1),u=le.useState(0),f=Pv(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 zu="http://www.w3.org/1999/xhtml";const jd={svg:"http://www.w3.org/2000/svg",xhtml:zu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ml(e){var n=e+="",i=n.indexOf(":");return i>=0&&(n=e.slice(0,i))!=="xmlns"&&(e=e.slice(i+1)),jd.hasOwnProperty(n)?{space:jd[n],local:e}:e}function jv(e){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===zu&&n.documentElement.namespaceURI===zu?n.createElement(e):n.createElementNS(i,e)}}function Mv(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function sg(e){var n=ml(e);return(n.local?Mv:jv)(n)}function Ov(){}function ic(e){return e==null?Ov:function(){return this.querySelector(e)}}function Rv(e){typeof e!="function"&&(e=ic(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,g,v=0;v<f;++v)(p=u[v])&&(g=e.call(p,p.__data__,v,u))&&("__data__"in p&&(g.__data__=p.__data__),h[v]=g);return new Tt(s,this._parents)}function Av(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function zv(){return[]}function lg(e){return e==null?zv:function(){return this.querySelectorAll(e)}}function Dv(e){return function(){return Av(e.apply(this,arguments))}}function Iv(e){typeof e=="function"?e=Dv(e):e=lg(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,g=0;g<h;++g)(p=f[g])&&(s.push(e.call(p,p.__data__,g,f)),a.push(p));return new Tt(s,a)}function ag(e){return function(){return this.matches(e)}}function ug(e){return function(n){return n.matches(e)}}var Lv=Array.prototype.find;function Fv(e){return function(){return Lv.call(this.children,e)}}function $v(){return this.firstElementChild}function Uv(e){return this.select(e==null?$v:Fv(typeof e=="function"?e:ug(e)))}var Hv=Array.prototype.filter;function qv(){return Array.from(this.children)}function Vv(e){return function(){return Hv.call(this.children,e)}}function Bv(e){return this.selectAll(e==null?qv:Vv(typeof e=="function"?e:ug(e)))}function Qv(e){typeof e!="function"&&(e=ag(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,g=0;g<f;++g)(p=u[g])&&e.call(p,p.__data__,g,u)&&h.push(p);return new Tt(s,this._parents)}function cg(e){return new Array(e.length)}function Wv(){return new Tt(this._enter||this._groups.map(cg),this._parents)}function rl(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}rl.prototype={constructor:rl,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 Kv(e){return function(){return e}}function Gv(e,n,i,s,a,u){for(var f=0,h,p=n.length,g=u.length;f<g;++f)(h=n[f])?(h.__data__=u[f],s[f]=h):i[f]=new rl(e,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function Xv(e,n,i,s,a,u,f){var h,p,g=new Map,v=n.length,m=u.length,x=new Array(v),w;for(h=0;h<v;++h)(p=n[h])&&(x[h]=w=f.call(p,p.__data__,h,n)+"",g.has(w)?a[h]=p:g.set(w,p));for(h=0;h<m;++h)w=f.call(e,u[h],h,u)+"",(p=g.get(w))?(s[h]=p,p.__data__=u[h],g.delete(w)):i[h]=new rl(e,u[h]);for(h=0;h<v;++h)(p=n[h])&&g.get(x[h])===p&&(a[h]=p)}function Yv(e){return e.__data__}function Zv(e,n){if(!arguments.length)return Array.from(this,Yv);var i=n?Xv:Gv,s=this._parents,a=this._groups;typeof e!="function"&&(e=Kv(e));for(var u=a.length,f=new Array(u),h=new Array(u),p=new Array(u),g=0;g<u;++g){var v=s[g],m=a[g],x=m.length,w=Jv(e.call(v,v&&v.__data__,g,s)),b=w.length,C=h[g]=new Array(b),S=f[g]=new Array(b),k=p[g]=new Array(x);i(v,m,C,S,k,w,n);for(var O=0,D=0,P,T;O<b;++O)if(P=C[O]){for(O>=D&&(D=O+1);!(T=S[D])&&++D<b;);P._next=T||null}}return f=new Tt(f,s),f._enter=h,f._exit=p,f}function Jv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function e1(){return new Tt(this._exit||this._groups.map(cg),this._parents)}function t1(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 n1(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 g=i[p],v=s[p],m=g.length,x=h[p]=new Array(m),w,b=0;b<m;++b)(w=g[b]||v[b])&&(x[b]=w);for(;p<a;++p)h[p]=i[p];return new Tt(h,this._parents)}function r1(){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 i1(e){e||(e=o1);function n(m,x){return m&&x?e(m.__data__,x.__data__):!m-!x}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),g,v=0;v<h;++v)(g=f[v])&&(p[v]=g);p.sort(n)}return new Tt(a,this._parents).order()}function o1(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function s1(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function l1(){return Array.from(this)}function a1(){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 u1(){let e=0;for(const n of this)++e;return e}function c1(){return!this.node()}function f1(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 h1(e){return function(){this.removeAttribute(e)}}function d1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function p1(e,n){return function(){this.setAttribute(e,n)}}function g1(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function m1(e,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttribute(e):this.setAttribute(e,i)}}function y1(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 v1(e,n){var i=ml(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?d1:h1:typeof n=="function"?i.local?y1:m1:i.local?g1:p1)(i,n))}function fg(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function x1(e){return function(){this.style.removeProperty(e)}}function _1(e,n,i){return function(){this.style.setProperty(e,n,i)}}function w1(e,n,i){return function(){var s=n.apply(this,arguments);s==null?this.style.removeProperty(e):this.style.setProperty(e,s,i)}}function k1(e,n,i){return arguments.length>1?this.each((n==null?x1:typeof n=="function"?w1:_1)(e,n,i??"")):ii(this.node(),e)}function ii(e,n){return e.style.getPropertyValue(n)||fg(e).getComputedStyle(e,null).getPropertyValue(n)}function S1(e){return function(){delete this[e]}}function b1(e,n){return function(){this[e]=n}}function C1(e,n){return function(){var i=n.apply(this,arguments);i==null?delete this[e]:this[e]=i}}function E1(e,n){return arguments.length>1?this.each((n==null?S1:typeof n=="function"?C1:b1)(e,n)):this.node()[e]}function hg(e){return e.trim().split(/^|\s+/)}function oc(e){return e.classList||new dg(e)}function dg(e){this._node=e,this._names=hg(e.getAttribute("class")||"")}dg.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 pg(e,n){for(var i=oc(e),s=-1,a=n.length;++s<a;)i.add(n[s])}function gg(e,n){for(var i=oc(e),s=-1,a=n.length;++s<a;)i.remove(n[s])}function N1(e){return function(){pg(this,e)}}function P1(e){return function(){gg(this,e)}}function T1(e,n){return function(){(n.apply(this,arguments)?pg:gg)(this,e)}}function j1(e,n){var i=hg(e+"");if(arguments.length<2){for(var s=oc(this.node()),a=-1,u=i.length;++a<u;)if(!s.contains(i[a]))return!1;return!0}return this.each((typeof n=="function"?T1:n?N1:P1)(i,n))}function M1(){this.textContent=""}function O1(e){return function(){this.textContent=e}}function R1(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function A1(e){return arguments.length?this.each(e==null?M1:(typeof e=="function"?R1:O1)(e)):this.node().textContent}function z1(){this.innerHTML=""}function D1(e){return function(){this.innerHTML=e}}function I1(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function L1(e){return arguments.length?this.each(e==null?z1:(typeof e=="function"?I1:D1)(e)):this.node().innerHTML}function F1(){this.nextSibling&&this.parentNode.appendChild(this)}function $1(){return this.each(F1)}function U1(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function H1(){return this.each(U1)}function q1(e){var n=typeof e=="function"?e:sg(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function V1(){return null}function B1(e,n){var i=typeof e=="function"?e:sg(e),s=n==null?V1:typeof n=="function"?n:ic(n);return this.select(function(){return this.insertBefore(i.apply(this,arguments),s.apply(this,arguments)||null)})}function Q1(){var e=this.parentNode;e&&e.removeChild(this)}function W1(){return this.each(Q1)}function K1(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function G1(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function X1(e){return this.select(e?G1:K1)}function Y1(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Z1(e){return function(n){e.call(this,n,this.__data__)}}function J1(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 ex(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 tx(e,n,i){return function(){var s=this.__on,a,u=Z1(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 nx(e,n,i){var s=J1(e+""),a,u=s.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,g=h.length,v;p<g;++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?tx:ex,a=0;a<u;++a)this.each(h(s[a],n,i));return this}function mg(e,n,i){var s=fg(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 rx(e,n){return function(){return mg(this,e,n)}}function ix(e,n){return function(){return mg(this,e,n.apply(this,arguments))}}function ox(e,n){return this.each((typeof n=="function"?ix:rx)(e,n))}function*sx(){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 yg=[null];function Tt(e,n){this._groups=e,this._parents=n}function wo(){return new Tt([[document.documentElement]],yg)}function lx(){return this}Tt.prototype=wo.prototype={constructor:Tt,select:Rv,selectAll:Iv,selectChild:Uv,selectChildren:Bv,filter:Qv,data:Zv,enter:Wv,exit:e1,join:t1,merge:n1,selection:lx,order:r1,sort:i1,call:s1,nodes:l1,node:a1,size:u1,empty:c1,each:f1,attr:v1,style:k1,property:E1,classed:j1,text:A1,html:L1,raise:$1,lower:H1,append:q1,insert:B1,remove:W1,clone:X1,datum:Y1,on:nx,dispatch:ox,[Symbol.iterator]:sx};function Lt(e){return typeof e=="string"?new Tt([[document.querySelector(e)]],[document.documentElement]):new Tt([[e]],yg)}function ax(e){let n;for(;n=e.sourceEvent;)e=n;return e}function un(e,n){if(e=ax(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 ux={value:()=>{}};function ko(){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 Xs(i)}function Xs(e){this._=e}function cx(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}})}Xs.prototype=ko.prototype={constructor:Xs,on:function(e,n){var i=this._,s=cx(e+"",i),a,u=-1,f=s.length;if(arguments.length<2){for(;++u<f;)if((a=(e=s[u]).type)&&(a=fx(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]=Md(i[a],e.name,n);else if(n==null)for(a in i)i[a]=Md(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 Xs(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 fx(e,n){for(var i=0,s=e.length,a;i<s;++i)if((a=e[i]).name===n)return a.value}function Md(e,n,i){for(var s=0,a=e.length;s<a;++s)if(e[s].name===n){e[s]=ux,e=e.slice(0,s).concat(e.slice(s+1));break}return i!=null&&e.push({name:n,value:i}),e}const hx={passive:!1},ho={capture:!0,passive:!1};function gu(e){e.stopImmediatePropagation()}function ni(e){e.preventDefault(),e.stopImmediatePropagation()}function vg(e){var n=e.document.documentElement,i=Lt(e).on("dragstart.drag",ni,ho);"onselectstart"in n?i.on("selectstart.drag",ni,ho):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function xg(e,n){var i=e.document.documentElement,s=Lt(e).on("dragstart.drag",null);n&&(s.on("click.drag",ni,ho),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 Hs=e=>()=>e;function Du(e,{sourceEvent:n,subject:i,target:s,identifier:a,active:u,x:f,y:h,dx:p,dy:g,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:g,enumerable:!0,configurable:!0},_:{value:v}})}Du.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function dx(e){return!e.ctrlKey&&!e.button}function px(){return this.parentNode}function gx(e,n){return n??{x:e.x,y:e.y}}function mx(){return navigator.maxTouchPoints||"ontouchstart"in this}function yx(){var e=dx,n=px,i=gx,s=mx,a={},u=ko("start","drag","end"),f=0,h,p,g,v,m=0;function x(P){P.on("mousedown.drag",w).filter(s).on("touchstart.drag",S).on("touchmove.drag",k,hx).on("touchend.drag touchcancel.drag",O).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(P,T){if(!(v||!e.call(this,P,T))){var z=D(this,n.call(this,P,T),P,T,"mouse");z&&(Lt(P.view).on("mousemove.drag",b,ho).on("mouseup.drag",C,ho),vg(P.view),gu(P),g=!1,h=P.clientX,p=P.clientY,z("start",P))}}function b(P){if(ni(P),!g){var T=P.clientX-h,z=P.clientY-p;g=T*T+z*z>m}a.mouse("drag",P)}function C(P){Lt(P.view).on("mousemove.drag mouseup.drag",null),xg(P.view,g),ni(P),a.mouse("end",P)}function S(P,T){if(e.call(this,P,T)){var z=P.changedTouches,A=n.call(this,P,T),L=z.length,W,X;for(W=0;W<L;++W)(X=D(this,A,P,T,z[W].identifier,z[W]))&&(gu(P),X("start",P,z[W]))}}function k(P){var T=P.changedTouches,z=T.length,A,L;for(A=0;A<z;++A)(L=a[T[A].identifier])&&(ni(P),L("drag",P,T[A]))}function O(P){var T=P.changedTouches,z=T.length,A,L;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),A=0;A<z;++A)(L=a[T[A].identifier])&&(gu(P),L("end",P,T[A]))}function D(P,T,z,A,L,W){var X=u.copy(),Z=un(W||z,T),oe,de,F;if((F=i.call(P,new Du("beforestart",{sourceEvent:z,target:x,identifier:L,active:f,x:Z[0],y:Z[1],dx:0,dy:0,dispatch:X}),A))!=null)return oe=F.x-Z[0]||0,de=F.y-Z[1]||0,function ee(B,te,V){var Y=Z,Q;switch(B){case"start":a[L]=ee,Q=f++;break;case"end":delete a[L],--f;case"drag":Z=un(V||te,T),Q=f;break}X.call(B,P,new Du(B,{sourceEvent:te,subject:F,target:x,identifier:L,active:Q,x:Z[0]+oe,y:Z[1]+de,dx:Z[0]-Y[0],dy:Z[1]-Y[1],dispatch:X}),A)}}return x.filter=function(P){return arguments.length?(e=typeof P=="function"?P:Hs(!!P),x):e},x.container=function(P){return arguments.length?(n=typeof P=="function"?P:Hs(P),x):n},x.subject=function(P){return arguments.length?(i=typeof P=="function"?P:Hs(P),x):i},x.touchable=function(P){return arguments.length?(s=typeof P=="function"?P:Hs(!!P),x):s},x.on=function(){var P=u.on.apply(u,arguments);return P===u?x:P},x.clickDistance=function(P){return arguments.length?(m=(P=+P)*P,x):Math.sqrt(m)},x}function sc(e,n,i){e.prototype=n.prototype=i,i.constructor=e}function _g(e,n){var i=Object.create(e.prototype);for(var s in n)i[s]=n[s];return i}function So(){}var po=.7,il=1/po,ri="\\s*([+-]?\\d+)\\s*",go="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vx=/^#([0-9a-f]{3,8})$/,xx=new RegExp(`^rgb\\(${ri},${ri},${ri}\\)$`),_x=new RegExp(`^rgb\\(${fn},${fn},${fn}\\)$`),wx=new RegExp(`^rgba\\(${ri},${ri},${ri},${go}\\)$`),kx=new RegExp(`^rgba\\(${fn},${fn},${fn},${go}\\)$`),Sx=new RegExp(`^hsl\\(${go},${fn},${fn}\\)$`),bx=new RegExp(`^hsla\\(${go},${fn},${fn},${go}\\)$`),Od={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};sc(So,mo,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Rd,formatHex:Rd,formatHex8:Cx,formatHsl:Ex,formatRgb:Ad,toString:Ad});function Rd(){return this.rgb().formatHex()}function Cx(){return this.rgb().formatHex8()}function Ex(){return wg(this).formatHsl()}function Ad(){return this.rgb().formatRgb()}function mo(e){var n,i;return e=(e+"").trim().toLowerCase(),(n=vx.exec(e))?(i=n[1].length,n=parseInt(n[1],16),i===6?zd(n):i===3?new kt(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?qs(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?qs(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=xx.exec(e))?new kt(n[1],n[2],n[3],1):(n=_x.exec(e))?new kt(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=wx.exec(e))?qs(n[1],n[2],n[3],n[4]):(n=kx.exec(e))?qs(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Sx.exec(e))?Ld(n[1],n[2]/100,n[3]/100,1):(n=bx.exec(e))?Ld(n[1],n[2]/100,n[3]/100,n[4]):Od.hasOwnProperty(e)?zd(Od[e]):e==="transparent"?new kt(NaN,NaN,NaN,0):null}function zd(e){return new kt(e>>16&255,e>>8&255,e&255,1)}function qs(e,n,i,s){return s<=0&&(e=n=i=NaN),new kt(e,n,i,s)}function Nx(e){return e instanceof So||(e=mo(e)),e?(e=e.rgb(),new kt(e.r,e.g,e.b,e.opacity)):new kt}function Iu(e,n,i,s){return arguments.length===1?Nx(e):new kt(e,n,i,s??1)}function kt(e,n,i,s){this.r=+e,this.g=+n,this.b=+i,this.opacity=+s}sc(kt,Iu,_g(So,{brighter(e){return e=e==null?il:Math.pow(il,e),new kt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?po:Math.pow(po,e),new kt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new kt(Sr(this.r),Sr(this.g),Sr(this.b),ol(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:Dd,formatHex:Dd,formatHex8:Px,formatRgb:Id,toString:Id}));function Dd(){return`#${kr(this.r)}${kr(this.g)}${kr(this.b)}`}function Px(){return`#${kr(this.r)}${kr(this.g)}${kr(this.b)}${kr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Id(){const e=ol(this.opacity);return`${e===1?"rgb(":"rgba("}${Sr(this.r)}, ${Sr(this.g)}, ${Sr(this.b)}${e===1?")":`, ${e})`}`}function ol(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Sr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function kr(e){return e=Sr(e),(e<16?"0":"")+e.toString(16)}function Ld(e,n,i,s){return s<=0?e=n=i=NaN:i<=0||i>=1?e=n=NaN:n<=0&&(e=NaN),new Jt(e,n,i,s)}function wg(e){if(e instanceof Jt)return new Jt(e.h,e.s,e.l,e.opacity);if(e instanceof So||(e=mo(e)),!e)return new Jt;if(e instanceof Jt)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 Jt(f,h,p,e.opacity)}function Tx(e,n,i,s){return arguments.length===1?wg(e):new Jt(e,n,i,s??1)}function Jt(e,n,i,s){this.h=+e,this.s=+n,this.l=+i,this.opacity=+s}sc(Jt,Tx,_g(So,{brighter(e){return e=e==null?il:Math.pow(il,e),new Jt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?po:Math.pow(po,e),new Jt(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 kt(mu(e>=240?e-240:e+120,a,s),mu(e,a,s),mu(e<120?e+240:e-120,a,s),this.opacity)},clamp(){return new Jt(Fd(this.h),Vs(this.s),Vs(this.l),ol(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=ol(this.opacity);return`${e===1?"hsl(":"hsla("}${Fd(this.h)}, ${Vs(this.s)*100}%, ${Vs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Fd(e){return e=(e||0)%360,e<0?e+360:e}function Vs(e){return Math.max(0,Math.min(1,e||0))}function mu(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 kg=e=>()=>e;function jx(e,n){return function(i){return e+i*n}}function Mx(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 Ox(e){return(e=+e)==1?Sg:function(n,i){return i-n?Mx(n,i,e):kg(isNaN(n)?i:n)}}function Sg(e,n){var i=n-e;return i?jx(e,i):kg(isNaN(e)?n:e)}const $d=function e(n){var i=Ox(n);function s(a,u){var f=i((a=Iu(a)).r,(u=Iu(u)).r),h=i(a.g,u.g),p=i(a.b,u.b),g=Sg(a.opacity,u.opacity);return function(v){return a.r=f(v),a.g=h(v),a.b=p(v),a.opacity=g(v),a+""}}return s.gamma=e,s}(1);function er(e,n){return e=+e,n=+n,function(i){return e*(1-i)+n*i}}var Lu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yu=new RegExp(Lu.source,"g");function Rx(e){return function(){return e}}function Ax(e){return function(n){return e(n)+""}}function zx(e,n){var i=Lu.lastIndex=yu.lastIndex=0,s,a,u,f=-1,h=[],p=[];for(e=e+"",n=n+"";(s=Lu.exec(e))&&(a=yu.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:er(s,a)})),i=yu.lastIndex;return i<n.length&&(u=n.slice(i),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?Ax(p[0].x):Rx(n):(n=p.length,function(g){for(var v=0,m;v<n;++v)h[(m=p[v]).i]=m.x(g);return h.join("")})}var Ud=180/Math.PI,Fu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function bg(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)*Ud,skewX:Math.atan(p)*Ud,scaleX:f,scaleY:h}}var Bs;function Dx(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?Fu:bg(n.a,n.b,n.c,n.d,n.e,n.f)}function Ix(e){return e==null||(Bs||(Bs=document.createElementNS("http://www.w3.org/2000/svg","g")),Bs.setAttribute("transform",e),!(e=Bs.transform.baseVal.consolidate()))?Fu:(e=e.matrix,bg(e.a,e.b,e.c,e.d,e.e,e.f))}function Cg(e,n,i,s){function a(g){return g.length?g.pop()+" ":""}function u(g,v,m,x,w,b){if(g!==m||v!==x){var C=w.push("translate(",null,n,null,i);b.push({i:C-4,x:er(g,m)},{i:C-2,x:er(v,x)})}else(m||x)&&w.push("translate("+m+n+x+i)}function f(g,v,m,x){g!==v?(g-v>180?v+=360:v-g>180&&(g+=360),x.push({i:m.push(a(m)+"rotate(",null,s)-2,x:er(g,v)})):v&&m.push(a(m)+"rotate("+v+s)}function h(g,v,m,x){g!==v?x.push({i:m.push(a(m)+"skewX(",null,s)-2,x:er(g,v)}):v&&m.push(a(m)+"skewX("+v+s)}function p(g,v,m,x,w,b){if(g!==m||v!==x){var C=w.push(a(w)+"scale(",null,",",null,")");b.push({i:C-4,x:er(g,m)},{i:C-2,x:er(v,x)})}else(m!==1||x!==1)&&w.push(a(w)+"scale("+m+","+x+")")}return function(g,v){var m=[],x=[];return g=e(g),v=e(v),u(g.translateX,g.translateY,v.translateX,v.translateY,m,x),f(g.rotate,v.rotate,m,x),h(g.skewX,v.skewX,m,x),p(g.scaleX,g.scaleY,v.scaleX,v.scaleY,m,x),g=v=null,function(w){for(var b=-1,C=x.length,S;++b<C;)m[(S=x[b]).i]=S.x(w);return m.join("")}}}var Lx=Cg(Dx,"px, ","px)","deg)"),Fx=Cg(Ix,", ",")",")"),$x=1e-12;function Hd(e){return((e=Math.exp(e))+1/e)/2}function Ux(e){return((e=Math.exp(e))-1/e)/2}function Hx(e){return((e=Math.exp(2*e))-1)/(e+1)}const qx=function e(n,i,s){function a(u,f){var h=u[0],p=u[1],g=u[2],v=f[0],m=f[1],x=f[2],w=v-h,b=m-p,C=w*w+b*b,S,k;if(C<$x)k=Math.log(x/g)/n,S=function(A){return[h+A*w,p+A*b,g*Math.exp(n*A*k)]};else{var O=Math.sqrt(C),D=(x*x-g*g+s*C)/(2*g*i*O),P=(x*x-g*g-s*C)/(2*x*i*O),T=Math.log(Math.sqrt(D*D+1)-D),z=Math.log(Math.sqrt(P*P+1)-P);k=(z-T)/n,S=function(A){var L=A*k,W=Hd(T),X=g/(i*O)*(W*Hx(n*L+T)-Ux(T));return[h+X*w,p+X*b,g*W/Hd(n*L+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 oi=0,io=0,Xi=0,Eg=1e3,sl,oo,ll=0,Nr=0,yl=0,yo=typeof performance=="object"&&performance.now?performance:Date,Ng=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function lc(){return Nr||(Ng(Vx),Nr=yo.now()+yl)}function Vx(){Nr=0}function al(){this._call=this._time=this._next=null}al.prototype=ac.prototype={constructor:al,restart:function(e,n,i){if(typeof e!="function")throw new TypeError("callback is not a function");i=(i==null?lc():+i)+(n==null?0:+n),!this._next&&oo!==this&&(oo?oo._next=this:sl=this,oo=this),this._call=e,this._time=i,$u()},stop:function(){this._call&&(this._call=null,this._time=1/0,$u())}};function ac(e,n,i){var s=new al;return s.restart(e,n,i),s}function Bx(){lc(),++oi;for(var e=sl,n;e;)(n=Nr-e._time)>=0&&e._call.call(void 0,n),e=e._next;--oi}function qd(){Nr=(ll=yo.now())+yl,oi=io=0;try{Bx()}finally{oi=0,Wx(),Nr=0}}function Qx(){var e=yo.now(),n=e-ll;n>Eg&&(yl-=n,ll=e)}function Wx(){for(var e,n=sl,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:sl=i);oo=e,$u(s)}function $u(e){if(!oi){io&&(io=clearTimeout(io));var n=e-Nr;n>24?(e<1/0&&(io=setTimeout(qd,e-yo.now()-yl)),Xi&&(Xi=clearInterval(Xi))):(Xi||(ll=yo.now(),Xi=setInterval(Qx,Eg)),oi=1,Ng(qd))}}function Vd(e,n,i){var s=new al;return n=n==null?0:+n,s.restart(a=>{s.stop(),e(a+n)},n,i),s}var Kx=ko("start","end","cancel","interrupt"),Gx=[],Pg=0,Bd=1,Uu=2,Ys=3,Qd=4,Hu=5,Zs=6;function vl(e,n,i,s,a,u){var f=e.__transition;if(!f)e.__transition={};else if(i in f)return;Xx(e,i,{name:n,index:s,group:a,on:Kx,tween:Gx,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Pg})}function uc(e,n){var i=tn(e,n);if(i.state>Pg)throw new Error("too late; already scheduled");return i}function dn(e,n){var i=tn(e,n);if(i.state>Ys)throw new Error("too late; already running");return i}function tn(e,n){var i=e.__transition;if(!i||!(i=i[n]))throw new Error("transition not found");return i}function Xx(e,n,i){var s=e.__transition,a;s[n]=i,i.timer=ac(u,0,i.time);function u(g){i.state=Bd,i.timer.restart(f,i.delay,i.time),i.delay<=g&&f(g-i.delay)}function f(g){var v,m,x,w;if(i.state!==Bd)return p();for(v in s)if(w=s[v],w.name===i.name){if(w.state===Ys)return Vd(f);w.state===Qd?(w.state=Zs,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete s[v]):+v<n&&(w.state=Zs,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete s[v])}if(Vd(function(){i.state===Ys&&(i.state=Qd,i.timer.restart(h,i.delay,i.time),h(g))}),i.state=Uu,i.on.call("start",e,e.__data__,i.index,i.group),i.state===Uu){for(i.state=Ys,a=new Array(x=i.tween.length),v=0,m=-1;v<x;++v)(w=i.tween[v].value.call(e,e.__data__,i.index,i.group))&&(a[++m]=w);a.length=m+1}}function h(g){for(var v=g<i.duration?i.ease.call(null,g/i.duration):(i.timer.restart(p),i.state=Hu,1),m=-1,x=a.length;++m<x;)a[m].call(e,v);i.state===Hu&&(i.on.call("end",e,e.__data__,i.index,i.group),p())}function p(){i.state=Zs,i.timer.stop(),delete s[n];for(var g in s)return;delete e.__transition}}function Js(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>Uu&&s.state<Hu,s.state=Zs,s.timer.stop(),s.on.call(a?"interrupt":"cancel",e,e.__data__,s.index,s.group),delete i[f]}u&&delete e.__transition}}function Yx(e){return this.each(function(){Js(this,e)})}function Zx(e,n){var i,s;return function(){var a=dn(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 Jx(e,n,i){var s,a;if(typeof i!="function")throw new Error;return function(){var u=dn(this,e),f=u.tween;if(f!==s){a=(s=f).slice();for(var h={name:n,value:i},p=0,g=a.length;p<g;++p)if(a[p].name===n){a[p]=h;break}p===g&&a.push(h)}u.tween=a}}function e_(e,n){var i=this._id;if(e+="",arguments.length<2){for(var s=tn(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?Zx:Jx)(i,e,n))}function cc(e,n,i){var s=e._id;return e.each(function(){var a=dn(this,s);(a.value||(a.value={}))[n]=i.apply(this,arguments)}),function(a){return tn(a,s).value[n]}}function Tg(e,n){var i;return(typeof n=="number"?er:n instanceof mo?$d:(i=mo(n))?(n=i,$d):zx)(e,n)}function t_(e){return function(){this.removeAttribute(e)}}function n_(e){return function(){this.removeAttributeNS(e.space,e.local)}}function r_(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 i_(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 o_(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 s_(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 l_(e,n){var i=ml(e),s=i==="transform"?Fx:Tg;return this.attrTween(e,typeof n=="function"?(i.local?s_:o_)(i,s,cc(this,"attr."+e,n)):n==null?(i.local?n_:t_)(i):(i.local?i_:r_)(i,s,n))}function a_(e,n){return function(i){this.setAttribute(e,n.call(this,i))}}function u_(e,n){return function(i){this.setAttributeNS(e.space,e.local,n.call(this,i))}}function c_(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&u_(e,u)),i}return a._value=n,a}function f_(e,n){var i,s;function a(){var u=n.apply(this,arguments);return u!==s&&(i=(s=u)&&a_(e,u)),i}return a._value=n,a}function h_(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=ml(e);return this.tween(i,(s.local?c_:f_)(s,n))}function d_(e,n){return function(){uc(this,e).delay=+n.apply(this,arguments)}}function p_(e,n){return n=+n,function(){uc(this,e).delay=n}}function g_(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?d_:p_)(n,e)):tn(this.node(),n).delay}function m_(e,n){return function(){dn(this,e).duration=+n.apply(this,arguments)}}function y_(e,n){return n=+n,function(){dn(this,e).duration=n}}function v_(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?m_:y_)(n,e)):tn(this.node(),n).duration}function x_(e,n){if(typeof n!="function")throw new Error;return function(){dn(this,e).ease=n}}function __(e){var n=this._id;return arguments.length?this.each(x_(n,e)):tn(this.node(),n).ease}function w_(e,n){return function(){var i=n.apply(this,arguments);if(typeof i!="function")throw new Error;dn(this,e).ease=i}}function k_(e){if(typeof e!="function")throw new Error;return this.each(w_(this._id,e))}function S_(e){typeof e!="function"&&(e=ag(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,g=0;g<f;++g)(p=u[g])&&e.call(p,p.__data__,g,u)&&h.push(p);return new Mn(s,this._parents,this._name,this._id)}function b_(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],g=i[h],v=p.length,m=f[h]=new Array(v),x,w=0;w<v;++w)(x=p[w]||g[w])&&(m[w]=x);for(;h<s;++h)f[h]=n[h];return new Mn(f,this._parents,this._name,this._id)}function C_(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 E_(e,n,i){var s,a,u=C_(n)?uc:dn;return function(){var f=u(this,e),h=f.on;h!==s&&(a=(s=h).copy()).on(n,i),f.on=a}}function N_(e,n){var i=this._id;return arguments.length<2?tn(this.node(),i).on.on(e):this.each(E_(i,e,n))}function P_(e){return function(){var n=this.parentNode;for(var i in this.__transition)if(+i!==e)return;n&&n.removeChild(this)}}function T_(){return this.on("end.remove",P_(this._id))}function j_(e){var n=this._name,i=this._id;typeof e!="function"&&(e=ic(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,g=u[f]=new Array(p),v,m,x=0;x<p;++x)(v=h[x])&&(m=e.call(v,v.__data__,x,h))&&("__data__"in v&&(m.__data__=v.__data__),g[x]=m,vl(g[x],n,i,x,g,tn(v,i)));return new Mn(u,this._parents,n,i)}function M_(e){var n=this._name,i=this._id;typeof e!="function"&&(e=lg(e));for(var s=this._groups,a=s.length,u=[],f=[],h=0;h<a;++h)for(var p=s[h],g=p.length,v,m=0;m<g;++m)if(v=p[m]){for(var x=e.call(v,v.__data__,m,p),w,b=tn(v,i),C=0,S=x.length;C<S;++C)(w=x[C])&&vl(w,n,i,C,x,b);u.push(x),f.push(v)}return new Mn(u,f,n,i)}var O_=wo.prototype.constructor;function R_(){return new O_(this._groups,this._parents)}function A_(e,n){var i,s,a;return function(){var u=ii(this,e),f=(this.style.removeProperty(e),ii(this,e));return u===f?null:u===i&&f===s?a:a=n(i=u,s=f)}}function jg(e){return function(){this.style.removeProperty(e)}}function z_(e,n,i){var s,a=i+"",u;return function(){var f=ii(this,e);return f===a?null:f===s?u:u=n(s=f,i)}}function D_(e,n,i){var s,a,u;return function(){var f=ii(this,e),h=i(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(e),ii(this,e))),f===p?null:f===s&&p===a?u:(a=p,u=n(s=f,h))}}function I_(e,n){var i,s,a,u="style."+n,f="end."+u,h;return function(){var p=dn(this,e),g=p.on,v=p.value[u]==null?h||(h=jg(n)):void 0;(g!==i||a!==v)&&(s=(i=g).copy()).on(f,a=v),p.on=s}}function L_(e,n,i){var s=(e+="")=="transform"?Lx:Tg;return n==null?this.styleTween(e,A_(e,s)).on("end.style."+e,jg(e)):typeof n=="function"?this.styleTween(e,D_(e,s,cc(this,"style."+e,n))).each(I_(this._id,e)):this.styleTween(e,z_(e,s,n),i).on("end.style."+e,null)}function F_(e,n,i){return function(s){this.style.setProperty(e,n.call(this,s),i)}}function $_(e,n,i){var s,a;function u(){var f=n.apply(this,arguments);return f!==a&&(s=(a=f)&&F_(e,f,i)),s}return u._value=n,u}function U_(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,$_(e,n,i??""))}function H_(e){return function(){this.textContent=e}}function q_(e){return function(){var n=e(this);this.textContent=n??""}}function V_(e){return this.tween("text",typeof e=="function"?q_(cc(this,"text",e)):H_(e==null?"":e+""))}function B_(e){return function(n){this.textContent=e.call(this,n)}}function Q_(e){var n,i;function s(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&B_(a)),n}return s._value=e,s}function W_(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,Q_(e))}function K_(){for(var e=this._name,n=this._id,i=Mg(),s=this._groups,a=s.length,u=0;u<a;++u)for(var f=s[u],h=f.length,p,g=0;g<h;++g)if(p=f[g]){var v=tn(p,n);vl(p,e,i,g,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Mn(s,this._parents,e,i)}function G_(){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 g=dn(this,s),v=g.on;v!==e&&(n=(e=v).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(p)),g.on=n}),a===0&&u()})}var X_=0;function Mn(e,n,i,s){this._groups=e,this._parents=n,this._name=i,this._id=s}function Mg(){return++X_}var Sn=wo.prototype;Mn.prototype={constructor:Mn,select:j_,selectAll:M_,selectChild:Sn.selectChild,selectChildren:Sn.selectChildren,filter:S_,merge:b_,selection:R_,transition:K_,call:Sn.call,nodes:Sn.nodes,node:Sn.node,size:Sn.size,empty:Sn.empty,each:Sn.each,on:N_,attr:l_,attrTween:h_,style:L_,styleTween:U_,text:V_,textTween:W_,remove:T_,tween:e_,delay:g_,duration:v_,ease:__,easeVarying:k_,end:G_,[Symbol.iterator]:Sn[Symbol.iterator]};function Y_(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Z_={time:null,delay:0,duration:250,ease:Y_};function J_(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 ew(e){var n,i;e instanceof Mn?(n=e._id,e=e._name):(n=Mg(),(i=Z_).time=lc(),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,g=0;g<h;++g)(p=f[g])&&vl(p,e,n,g,f,i||J_(p,n));return new Mn(s,this._parents,e,n)}wo.prototype.interrupt=Yx;wo.prototype.transition=ew;const Qs=e=>()=>e;function tw(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 Pn(e,n,i){this.k=e,this.x=n,this.y=i}Pn.prototype={constructor:Pn,scale:function(e){return e===1?this:new Pn(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new Pn(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 fc=new Pn(1,0,0);an.prototype=Pn.prototype;function an(e){for(;!e.__zoom;)if(!(e=e.parentNode))return fc;return e.__zoom}function vu(e){e.stopImmediatePropagation()}function Yi(e){e.preventDefault(),e.stopImmediatePropagation()}function nw(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function rw(){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 Wd(){return this.__zoom||fc}function iw(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ow(){return navigator.maxTouchPoints||"ontouchstart"in this}function sw(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 lw(){var e=nw,n=rw,i=sw,s=iw,a=ow,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=qx,g=ko("start","zoom","end"),v,m,x,w=500,b=150,C=0,S=10;function k(F){F.property("__zoom",Wd).on("wheel.zoom",L,{passive:!1}).on("mousedown.zoom",W).on("dblclick.zoom",X).filter(a).on("touchstart.zoom",Z).on("touchmove.zoom",oe).on("touchend.zoom touchcancel.zoom",de).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(F,ee,B,te){var V=F.selection?F.selection():F;V.property("__zoom",Wd),F!==V?T(F,ee,B,te):V.interrupt().each(function(){z(this,arguments).event(te).start().zoom(null,typeof ee=="function"?ee.apply(this,arguments):ee).end()})},k.scaleBy=function(F,ee,B,te){k.scaleTo(F,function(){var V=this.__zoom.k,Y=typeof ee=="function"?ee.apply(this,arguments):ee;return V*Y},B,te)},k.scaleTo=function(F,ee,B,te){k.transform(F,function(){var V=n.apply(this,arguments),Y=this.__zoom,Q=B==null?P(V):typeof B=="function"?B.apply(this,arguments):B,j=Y.invert(Q),q=typeof ee=="function"?ee.apply(this,arguments):ee;return i(D(O(Y,q),Q,j),V,f)},B,te)},k.translateBy=function(F,ee,B,te){k.transform(F,function(){return i(this.__zoom.translate(typeof ee=="function"?ee.apply(this,arguments):ee,typeof B=="function"?B.apply(this,arguments):B),n.apply(this,arguments),f)},null,te)},k.translateTo=function(F,ee,B,te,V){k.transform(F,function(){var Y=n.apply(this,arguments),Q=this.__zoom,j=te==null?P(Y):typeof te=="function"?te.apply(this,arguments):te;return i(fc.translate(j[0],j[1]).scale(Q.k).translate(typeof ee=="function"?-ee.apply(this,arguments):-ee,typeof B=="function"?-B.apply(this,arguments):-B),Y,f)},te,V)};function O(F,ee){return ee=Math.max(u[0],Math.min(u[1],ee)),ee===F.k?F:new Pn(ee,F.x,F.y)}function D(F,ee,B){var te=ee[0]-B[0]*F.k,V=ee[1]-B[1]*F.k;return te===F.x&&V===F.y?F:new Pn(F.k,te,V)}function P(F){return[(+F[0][0]+ +F[1][0])/2,(+F[0][1]+ +F[1][1])/2]}function T(F,ee,B,te){F.on("start.zoom",function(){z(this,arguments).event(te).start()}).on("interrupt.zoom end.zoom",function(){z(this,arguments).event(te).end()}).tween("zoom",function(){var V=this,Y=arguments,Q=z(V,Y).event(te),j=n.apply(V,Y),q=B==null?P(j):typeof B=="function"?B.apply(V,Y):B,ae=Math.max(j[1][0]-j[0][0],j[1][1]-j[0][1]),ce=V.__zoom,ve=typeof ee=="function"?ee.apply(V,Y):ee,we=p(ce.invert(q).concat(ae/ce.k),ve.invert(q).concat(ae/ve.k));return function(be){if(be===1)be=ve;else{var ke=we(be),Pe=ae/ke[2];be=new Pn(Pe,q[0]-ke[0]*Pe,q[1]-ke[1]*Pe)}Q.zoom(null,be)}})}function z(F,ee,B){return!B&&F.__zooming||new A(F,ee)}function A(F,ee){this.that=F,this.args=ee,this.active=0,this.sourceEvent=null,this.extent=n.apply(F,ee),this.taps=0}A.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,ee){return this.mouse&&F!=="mouse"&&(this.mouse[1]=ee.invert(this.mouse[0])),this.touch0&&F!=="touch"&&(this.touch0[1]=ee.invert(this.touch0[0])),this.touch1&&F!=="touch"&&(this.touch1[1]=ee.invert(this.touch1[0])),this.that.__zoom=ee,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(F){var ee=Lt(this.that).datum();g.call(F,this.that,new tw(F,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:g}),ee)}};function L(F,...ee){if(!e.apply(this,arguments))return;var B=z(this,ee).event(F),te=this.__zoom,V=Math.max(u[0],Math.min(u[1],te.k*Math.pow(2,s.apply(this,arguments)))),Y=un(F);if(B.wheel)(B.mouse[0][0]!==Y[0]||B.mouse[0][1]!==Y[1])&&(B.mouse[1]=te.invert(B.mouse[0]=Y)),clearTimeout(B.wheel);else{if(te.k===V)return;B.mouse=[Y,te.invert(Y)],Js(this),B.start()}Yi(F),B.wheel=setTimeout(Q,b),B.zoom("mouse",i(D(O(te,V),B.mouse[0],B.mouse[1]),B.extent,f));function Q(){B.wheel=null,B.end()}}function W(F,...ee){if(x||!e.apply(this,arguments))return;var B=F.currentTarget,te=z(this,ee,!0).event(F),V=Lt(F.view).on("mousemove.zoom",q,!0).on("mouseup.zoom",ae,!0),Y=un(F,B),Q=F.clientX,j=F.clientY;vg(F.view),vu(F),te.mouse=[Y,this.__zoom.invert(Y)],Js(this),te.start();function q(ce){if(Yi(ce),!te.moved){var ve=ce.clientX-Q,we=ce.clientY-j;te.moved=ve*ve+we*we>C}te.event(ce).zoom("mouse",i(D(te.that.__zoom,te.mouse[0]=un(ce,B),te.mouse[1]),te.extent,f))}function ae(ce){V.on("mousemove.zoom mouseup.zoom",null),xg(ce.view,te.moved),Yi(ce),te.event(ce).end()}}function X(F,...ee){if(e.apply(this,arguments)){var B=this.__zoom,te=un(F.changedTouches?F.changedTouches[0]:F,this),V=B.invert(te),Y=B.k*(F.shiftKey?.5:2),Q=i(D(O(B,Y),te,V),n.apply(this,ee),f);Yi(F),h>0?Lt(this).transition().duration(h).call(T,Q,te,F):Lt(this).call(k.transform,Q,te,F)}}function Z(F,...ee){if(e.apply(this,arguments)){var B=F.touches,te=B.length,V=z(this,ee,F.changedTouches.length===te).event(F),Y,Q,j,q;for(vu(F),Q=0;Q<te;++Q)j=B[Q],q=un(j,this),q=[q,this.__zoom.invert(q),j.identifier],V.touch0?!V.touch1&&V.touch0[2]!==q[2]&&(V.touch1=q,V.taps=0):(V.touch0=q,Y=!0,V.taps=1+!!v);v&&(v=clearTimeout(v)),Y&&(V.taps<2&&(m=q[0],v=setTimeout(function(){v=null},w)),Js(this),V.start())}}function oe(F,...ee){if(this.__zooming){var B=z(this,ee).event(F),te=F.changedTouches,V=te.length,Y,Q,j,q;for(Yi(F),Y=0;Y<V;++Y)Q=te[Y],j=un(Q,this),B.touch0&&B.touch0[2]===Q.identifier?B.touch0[0]=j:B.touch1&&B.touch1[2]===Q.identifier&&(B.touch1[0]=j);if(Q=B.that.__zoom,B.touch1){var ae=B.touch0[0],ce=B.touch0[1],ve=B.touch1[0],we=B.touch1[1],be=(be=ve[0]-ae[0])*be+(be=ve[1]-ae[1])*be,ke=(ke=we[0]-ce[0])*ke+(ke=we[1]-ce[1])*ke;Q=O(Q,Math.sqrt(be/ke)),j=[(ae[0]+ve[0])/2,(ae[1]+ve[1])/2],q=[(ce[0]+we[0])/2,(ce[1]+we[1])/2]}else if(B.touch0)j=B.touch0[0],q=B.touch0[1];else return;B.zoom("touch",i(D(Q,j,q),B.extent,f))}}function de(F,...ee){if(this.__zooming){var B=z(this,ee).event(F),te=F.changedTouches,V=te.length,Y,Q;for(vu(F),x&&clearTimeout(x),x=setTimeout(function(){x=null},w),Y=0;Y<V;++Y)Q=te[Y],B.touch0&&B.touch0[2]===Q.identifier?delete B.touch0:B.touch1&&B.touch1[2]===Q.identifier&&delete B.touch1;if(B.touch1&&!B.touch0&&(B.touch0=B.touch1,delete B.touch1),B.touch0)B.touch0[1]=this.__zoom.invert(B.touch0[0]);else if(B.end(),B.taps===2&&(Q=un(Q,this),Math.hypot(m[0]-Q[0],m[1]-Q[1])<S)){var j=Lt(this).on("dblclick.zoom");j&&j.apply(this,arguments)}}}return k.wheelDelta=function(F){return arguments.length?(s=typeof F=="function"?F:Qs(+F),k):s},k.filter=function(F){return arguments.length?(e=typeof F=="function"?F:Qs(!!F),k):e},k.touchable=function(F){return arguments.length?(a=typeof F=="function"?F:Qs(!!F),k):a},k.extent=function(F){return arguments.length?(n=typeof F=="function"?F:Qs([[+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=g.on.apply(g,arguments);return F===g?k:F},k.clickDistance=function(F){return arguments.length?(C=(F=+F)*F,k):Math.sqrt(C)},k.tapDistance=function(F){return arguments.length?(S=+F,k):S},k}class Kd extends Map{constructor(n,i=cw){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(Gd(this,n))}has(n){return super.has(Gd(this,n))}set(n,i){return super.set(aw(this,n),i)}delete(n){return super.delete(uw(this,n))}}function Gd({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):i}function aw({_intern:e,_key:n},i){const s=n(i);return e.has(s)?e.get(s):(e.set(s,i),i)}function uw({_intern:e,_key:n},i){const s=n(i);return e.has(s)&&(i=e.get(s),e.delete(s)),i}function cw(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Xd(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 Yd(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 fw(e,n){let i=0;for(let s of e)(s=+s)&&(i+=s);return i}var hw=typeof global=="object"&&global&&global.Object===Object&&global,dw=typeof self=="object"&&self&&self.Object===Object&&self,Og=hw||dw||Function("return this")(),ul=Og.Symbol,Rg=Object.prototype,pw=Rg.hasOwnProperty,gw=Rg.toString,Zi=ul?ul.toStringTag:void 0;function mw(e){var n=pw.call(e,Zi),i=e[Zi];try{e[Zi]=void 0;var s=!0}catch{}var a=gw.call(e);return s&&(n?e[Zi]=i:delete e[Zi]),a}var yw=Object.prototype,vw=yw.toString;function xw(e){return vw.call(e)}var _w="[object Null]",ww="[object Undefined]",Zd=ul?ul.toStringTag:void 0;function kw(e){return e==null?e===void 0?ww:_w:Zd&&Zd in Object(e)?mw(e):xw(e)}function Sw(e){return e!=null&&typeof e=="object"}var bw="[object Symbol]";function Cw(e){return typeof e=="symbol"||Sw(e)&&kw(e)==bw}var Ew=/\s/;function Nw(e){for(var n=e.length;n--&&Ew.test(e.charAt(n)););return n}var Pw=/^\s+/;function Tw(e){return e&&e.slice(0,Nw(e)+1).replace(Pw,"")}function cl(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Jd=NaN,jw=/^[-+]0x[0-9a-f]+$/i,Mw=/^0b[01]+$/i,Ow=/^0o[0-7]+$/i,Rw=parseInt;function ep(e){if(typeof e=="number")return e;if(Cw(e))return Jd;if(cl(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=cl(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Tw(e);var i=Mw.test(e);return i||Ow.test(e)?Rw(e.slice(2),i?2:8):jw.test(e)?Jd:+e}var xu=function(){return Og.Date.now()},Aw="Expected a function",zw=Math.max,Dw=Math.min;function Ag(e,n,i){var s,a,u,f,h,p,g=0,v=!1,m=!1,x=!0;if(typeof e!="function")throw new TypeError(Aw);n=ep(n)||0,cl(i)&&(v=!!i.leading,m="maxWait"in i,u=m?zw(ep(i.maxWait)||0,n):u,x="trailing"in i?!!i.trailing:x);function w(z){var A=s,L=a;return s=a=void 0,g=z,f=e.apply(L,A),f}function b(z){return g=z,h=setTimeout(k,n),v?w(z):f}function C(z){var A=z-p,L=z-g,W=n-A;return m?Dw(W,u-L):W}function S(z){var A=z-p,L=z-g;return p===void 0||A>=n||A<0||m&&L>=u}function k(){var z=xu();if(S(z))return O(z);h=setTimeout(k,C(z))}function O(z){return h=void 0,x&&s?w(z):(s=a=void 0,f)}function D(){h!==void 0&&clearTimeout(h),g=0,s=p=a=h=void 0}function P(){return h===void 0?f:O(xu())}function T(){var z=xu(),A=S(z);if(s=arguments,a=this,p=z,A){if(h===void 0)return b(p);if(m)return clearTimeout(h),h=setTimeout(k,n),w(p)}return h===void 0&&(h=setTimeout(k,n)),f}return T.cancel=D,T.flush=P,T}var Iw="Expected a function";function Lw(e,n,i){var s=!0,a=!0;if(typeof e!="function")throw new TypeError(Iw);return cl(i)&&(s="leading"in i?!!i.leading:s,a="trailing"in i?!!i.trailing:a),Ag(e,n,{leading:s,maxWait:n,trailing:a})}var br=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-br.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?br.Bounce.In(e*2)*.5:br.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}}}}),so=function(){return performance.now()},zg=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=so()),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}(),qu={Linear:function(e,n){var i=e.length-1,s=i*n,a=Math.floor(s),u=qu.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}}},Dg=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),Vu=new zg,tp=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=br.Linear.None,this._interpolationFunction=qu.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=Dg.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=Vu,Vu.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=so()),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),g=p?"array":typeof h,v=!p&&Array.isArray(s[f]);if(!(g==="undefined"||g==="function")){if(v){var m=s[f];if(m.length===0)continue;for(var x=[h],w=0,b=m.length;w<b;w+=1){var C=this._handleRelativeValue(h,m[w]);if(isNaN(C)){v=!1,console.warn("Found invalid interpolation list. Skipping.");break}x.push(C)}v&&(s[f]=x)}if((g==="object"||p)&&h&&!v){i[f]=p?[]:{};var S=h;for(var k in S)i[f][k]=S[k];a[f]=p?[]:{};var m=s[f];if(!this._isDynamic){var O={};for(var k in m)O[k]=m[k];s[f]=m=O}this._setupProperties(S,i[f],m,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=so()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this)},e.prototype.resume=function(n){return n===void 0&&(n=so()),!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=br.Linear.None),this._easingFunction=n,this},e.prototype.interpolation=function(n){return n===void 0&&(n=qu.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=so()),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,g=function(){if(s._duration===0||f>p)return 1;var C=Math.trunc(f/h),S=f-C*h,k=Math.min(S/s._duration,1);return k===0&&f===s._duration?1:k},v=g(),m=this._easingFunction(v);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,m),this._onUpdateCallback&&this._onUpdateCallback(this._object,v),this._duration===0||f>=this._duration)if(this._repeat>0){var x=Math.min(Math.trunc((f-this._duration)/h)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=x);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*x,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var w=0,b=this._chainedTweens.length;w<b;w++)this._chainedTweens[w].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]),g=Array.isArray(h),v=!p&&g;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}();Dg.nextId;var hn=Vu;hn.getAll.bind(hn);hn.removeAll.bind(hn);hn.add.bind(hn);hn.remove.bind(hn);hn.update.bind(hn);function np(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 Fw(e){if(Array.isArray(e))return e}function $w(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Uw(e,n,i){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Hw(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,g=!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){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function qw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
125
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vw(e,n){return Fw(e)||Hw(e,n)||Bw(e,n)||qw()}function Bw(e,n){if(e){if(typeof e=="string")return np(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)?np(e,n):void 0}}var Qw=Uw(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(g,v){}:h;$w(this,e),this.name=n,this.defaultVal=a,this.triggerUpdate=f,this.onChange=p});function hc(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,g=e.init,v=g===void 0?function(){}:g,m=e.update,x=m===void 0?function(){}:m,w=Object.keys(a).map(function(b){return new Qw(b,a[b])});return function b(){for(var C=arguments.length,S=new Array(C),k=0;k<C;k++)S[k]=arguments[k];var O=!!(this instanceof b&&this.constructor),D=O?S.shift():void 0,P=S[0],T=P===void 0?{}:P,z=Object.assign({},i instanceof Function?i(T):i,{initialised:!1}),A={};function L(Z){return W(Z,T),X(),L}var W=function(oe,de){v.call(L,oe,z,de),z.initialised=!0},X=Ag(function(){z.initialised&&(x.call(L,z,A),A={})},1);return w.forEach(function(Z){L[Z.name]=oe(Z);function oe(de){var F=de.name,ee=de.triggerUpdate,B=ee===void 0?!1:ee,te=de.onChange,V=te===void 0?function(j,q){}:te,Y=de.defaultVal,Q=Y===void 0?null:Y;return function(j){var q=z[F];if(!arguments.length)return q;var ae=j===void 0?Q:j;return z[F]=ae,V.call(L,ae,z,q),!A.hasOwnProperty(F)&&(A[F]=q),B&&X(),L}}}),Object.keys(f).forEach(function(Z){L[Z]=function(){for(var oe,de=arguments.length,F=new Array(de),ee=0;ee<de;ee++)F[ee]=arguments[ee];return(oe=f[Z]).call.apply(oe,[L,z].concat(F))}}),Object.entries(p).forEach(function(Z){var oe=Vw(Z,2),de=oe[0],F=oe[1];return L[de]=L[F]}),L.resetProps=function(){return w.forEach(function(Z){L[Z.name](Z.defaultVal)}),L},L.resetProps(),z._rerender=X,O&&D&&L(D),L}}var je=function(e){return typeof e=="function"?e:typeof e=="string"?function(n){return n[e]}:function(n){return e}};function fl(e){"@babel/helpers - typeof";return fl=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},fl(e)}var Ww=/^\s+/,Kw=/\s+$/;function ge(e,n){if(e=e||"",n=n||{},e instanceof ge)return e;if(!(this instanceof ge))return new ge(e,n);var i=Gw(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}ge.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=Ig(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=ip(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=ip(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=rp(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=rp(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 op(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return Jw(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(Ie(this._r,255)*100)+"%",g:Math.round(Ie(this._g,255)*100)+"%",b:Math.round(Ie(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ie(this._r,255)*100)+"%, "+Math.round(Ie(this._g,255)*100)+"%, "+Math.round(Ie(this._b,255)*100)+"%)":"rgba("+Math.round(Ie(this._r,255)*100)+"%, "+Math.round(Ie(this._g,255)*100)+"%, "+Math.round(Ie(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:f2[op(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var i="#"+sp(this._r,this._g,this._b,this._a),s=i,a=this._gradientType?"GradientType = 1, ":"";if(n){var u=ge(n);s="#"+sp(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 ge(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(r2,arguments)},brighten:function(){return this._applyModification(i2,arguments)},darken:function(){return this._applyModification(o2,arguments)},desaturate:function(){return this._applyModification(e2,arguments)},saturate:function(){return this._applyModification(t2,arguments)},greyscale:function(){return this._applyModification(n2,arguments)},spin:function(){return this._applyModification(s2,arguments)},_applyCombination:function(n,i){return n.apply(null,[this].concat([].slice.call(i)))},analogous:function(){return this._applyCombination(u2,arguments)},complement:function(){return this._applyCombination(l2,arguments)},monochromatic:function(){return this._applyCombination(c2,arguments)},splitcomplement:function(){return this._applyCombination(a2,arguments)},triad:function(){return this._applyCombination(lp,[3])},tetrad:function(){return this._applyCombination(lp,[4])}};ge.fromRatio=function(e,n){if(fl(e)=="object"){var i={};for(var s in e)e.hasOwnProperty(s)&&(s==="a"?i[s]=e[s]:i[s]=lo(e[s]));e=i}return ge(e,n)};function Gw(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=g2(e)),fl(e)=="object"&&(bn(e.r)&&bn(e.g)&&bn(e.b)?(n=Xw(e.r,e.g,e.b),f=!0,h=String(e.r).substr(-1)==="%"?"prgb":"rgb"):bn(e.h)&&bn(e.s)&&bn(e.v)?(s=lo(e.s),a=lo(e.v),n=Zw(e.h,s,a),f=!0,h="hsv"):bn(e.h)&&bn(e.s)&&bn(e.l)&&(s=lo(e.s),u=lo(e.l),n=Yw(e.h,s,u),f=!0,h="hsl"),e.hasOwnProperty("a")&&(i=e.a)),i=Ig(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 Xw(e,n,i){return{r:Ie(e,255)*255,g:Ie(n,255)*255,b:Ie(i,255)*255}}function rp(e,n,i){e=Ie(e,255),n=Ie(n,255),i=Ie(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 Yw(e,n,i){var s,a,u;e=Ie(e,360),n=Ie(n,100),i=Ie(i,100);function f(g,v,m){return m<0&&(m+=1),m>1&&(m-=1),m<1/6?g+(v-g)*6*m:m<1/2?v:m<2/3?g+(v-g)*(2/3-m)*6:g}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 ip(e,n,i){e=Ie(e,255),n=Ie(n,255),i=Ie(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 Zw(e,n,i){e=Ie(e,360)*6,n=Ie(n,100),i=Ie(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,g=[i,f,u,u,h,i][p],v=[h,i,i,f,u,u][p],m=[u,u,h,i,i,f][p];return{r:g*255,g:v*255,b:m*255}}function op(e,n,i,s){var a=[en(Math.round(e).toString(16)),en(Math.round(n).toString(16)),en(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 Jw(e,n,i,s,a){var u=[en(Math.round(e).toString(16)),en(Math.round(n).toString(16)),en(Math.round(i).toString(16)),en(Lg(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 sp(e,n,i,s){var a=[en(Lg(s)),en(Math.round(e).toString(16)),en(Math.round(n).toString(16)),en(Math.round(i).toString(16))];return a.join("")}ge.equals=function(e,n){return!e||!n?!1:ge(e).toRgbString()==ge(n).toRgbString()};ge.random=function(){return ge.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function e2(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.s-=n/100,i.s=xl(i.s),ge(i)}function t2(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.s+=n/100,i.s=xl(i.s),ge(i)}function n2(e){return ge(e).desaturate(100)}function r2(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.l+=n/100,i.l=xl(i.l),ge(i)}function i2(e,n){n=n===0?0:n||10;var i=ge(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)))),ge(i)}function o2(e,n){n=n===0?0:n||10;var i=ge(e).toHsl();return i.l-=n/100,i.l=xl(i.l),ge(i)}function s2(e,n){var i=ge(e).toHsl(),s=(i.h+n)%360;return i.h=s<0?360+s:s,ge(i)}function l2(e){var n=ge(e).toHsl();return n.h=(n.h+180)%360,ge(n)}function lp(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var i=ge(e).toHsl(),s=[ge(e)],a=360/n,u=1;u<n;u++)s.push(ge({h:(i.h+u*a)%360,s:i.s,l:i.l}));return s}function a2(e){var n=ge(e).toHsl(),i=n.h;return[ge(e),ge({h:(i+72)%360,s:n.s,l:n.l}),ge({h:(i+216)%360,s:n.s,l:n.l})]}function u2(e,n,i){n=n||6,i=i||30;var s=ge(e).toHsl(),a=360/i,u=[ge(e)];for(s.h=(s.h-(a*n>>1)+720)%360;--n;)s.h=(s.h+a)%360,u.push(ge(s));return u}function c2(e,n){n=n||6;for(var i=ge(e).toHsv(),s=i.h,a=i.s,u=i.v,f=[],h=1/n;n--;)f.push(ge({h:s,s:a,v:u})),u=(u+h)%1;return f}ge.mix=function(e,n,i){i=i===0?0:i||50;var s=ge(e).toRgb(),a=ge(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 ge(f)};ge.readability=function(e,n){var i=ge(e),s=ge(n);return(Math.max(i.getLuminance(),s.getLuminance())+.05)/(Math.min(i.getLuminance(),s.getLuminance())+.05)};ge.isReadable=function(e,n,i){var s=ge.readability(e,n),a,u;switch(u=!1,a=m2(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};ge.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 g=0;g<n.length;g++)u=ge.readability(e,n[g]),u>a&&(a=u,s=ge(n[g]));return ge.isReadable(e,s,{level:h,size:p})||!f?s:(i.includeFallbackColors=!1,ge.mostReadable(e,["#fff","#000"],i))};var Bu=ge.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"},f2=ge.hexNames=h2(Bu);function h2(e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[e[i]]=i);return n}function Ig(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ie(e,n){d2(e)&&(e="100%");var i=p2(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 xl(e){return Math.min(1,Math.max(0,e))}function Pt(e){return parseInt(e,16)}function d2(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function p2(e){return typeof e=="string"&&e.indexOf("%")!=-1}function en(e){return e.length==1?"0"+e:""+e}function lo(e){return e<=1&&(e=e*100+"%"),e}function Lg(e){return Math.round(parseFloat(e)*255).toString(16)}function ap(e){return Pt(e)/255}var Yt=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 bn(e){return!!Yt.CSS_UNIT.exec(e)}function g2(e){e=e.replace(Ww,"").replace(Kw,"").toLowerCase();var n=!1;if(Bu[e])e=Bu[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var i;return(i=Yt.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=Yt.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=Yt.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=Yt.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=Yt.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=Yt.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=Yt.hex8.exec(e))?{r:Pt(i[1]),g:Pt(i[2]),b:Pt(i[3]),a:ap(i[4]),format:n?"name":"hex8"}:(i=Yt.hex6.exec(e))?{r:Pt(i[1]),g:Pt(i[2]),b:Pt(i[3]),format:n?"name":"hex"}:(i=Yt.hex4.exec(e))?{r:Pt(i[1]+""+i[1]),g:Pt(i[2]+""+i[2]),b:Pt(i[3]+""+i[3]),a:ap(i[4]+""+i[4]),format:n?"name":"hex8"}:(i=Yt.hex3.exec(e))?{r:Pt(i[1]+""+i[1]),g:Pt(i[2]+""+i[2]),b:Pt(i[3]+""+i[3]),format:n?"name":"hex"}:!1}function m2(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 Qu(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 y2(e){if(Array.isArray(e))return Qu(e)}function Fg(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 v2(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function x2(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Dt(e,n){return e.get(Fg(e,n))}function up(e,n,i){v2(e,n),n.set(e,i)}function cp(e,n,i){return e.set(Fg(e,n),i),i}function _2(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,E2(s.key),s)}}function w2(e,n,i){return n&&_2(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function k2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
126
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b2(e){return y2(e)||k2(e)||N2(e)||S2()}function C2(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 E2(e){var n=C2(e,"string");return typeof n=="symbol"?n:n+""}function N2(e,n){if(e){if(typeof e=="string")return Qu(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)?Qu(e,n):void 0}}var P2=123,T2=function(n){return"#".concat(Math.min(n,Math.pow(2,24)).toString(16).padStart(6,"0"))},$g=function(n,i,s){return(n<<16)+(i<<8)+s},j2=function(n){var i=ge(n).toRgb(),s=i.r,a=i.g,u=i.b;return $g(s,a,u)},fp=function(n,i){return n*P2%Math.pow(2,i)},_r=new WeakMap,Cn=new WeakMap,M2=function(){function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6;x2(this,e),up(this,_r,void 0),up(this,Cn,void 0),cp(Cn,this,n),this.reset()}return w2(e,[{key:"reset",value:function(){cp(_r,this,["__reserved for background__"])}},{key:"register",value:function(i){if(Dt(_r,this).length>=Math.pow(2,24-Dt(Cn,this)))return null;var s=Dt(_r,this).length,a=fp(s,Dt(Cn,this)),u=T2(s+(a<<24-Dt(Cn,this)));return Dt(_r,this).push(i),u}},{key:"lookup",value:function(i){if(!i)return null;var s=typeof i=="string"?j2(i):$g.apply(void 0,b2(i));if(!s)return null;var a=s&Math.pow(2,24-Dt(Cn,this))-1,u=s>>24-Dt(Cn,this)&Math.pow(2,Dt(Cn,this))-1;return fp(a,Dt(Cn,this))!==u||a>=Dt(_r,this).length?null:Dt(_r,this)[a]}}])}(),bo,Le,Ug,Hg,wr,hp,qg,Vg,Bg,dc,Wu,Ku,vo={},Qg=[],O2=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_l=Array.isArray;function cn(e,n){for(var i in n)e[i]=n[i];return e}function pc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function R2(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?bo.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 ao(e,f,s,a,null)}function ao(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??++Ug,__i:-1,__u:0};return a==null&&Le.vnode!=null&&Le.vnode(u),u}function wl(e){return e.children}function el(e,n){this.props=e,this.context=n}function si(e,n){if(n==null)return e.__?si(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"?si(e):null}function Wg(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 Wg(e)}}function dp(e){(!e.__d&&(e.__d=!0)&&wr.push(e)&&!hl.__r++||hp!=Le.debounceRendering)&&((hp=Le.debounceRendering)||qg)(hl)}function hl(){for(var e,n,i,s,a,u,f,h=1;wr.length;)wr.length>h&&wr.sort(Vg),e=wr.shift(),h=wr.length,e.__d&&(i=void 0,a=(s=(n=e).__v).__e,u=[],f=[],n.__P&&((i=cn({},s)).__v=s.__v+1,Le.vnode&&Le.vnode(i),gc(n.__P,i,s,n.__n,n.__P.namespaceURI,32&s.__u?[a]:null,u,a??si(s),!!(32&s.__u),f),i.__v=s.__v,i.__.__k[i.__i]=i,Xg(u,i,f),i.__e!=a&&Wg(i)));hl.__r=0}function Kg(e,n,i,s,a,u,f,h,p,g,v){var m,x,w,b,C,S,k=s&&s.__k||Qg,O=n.length;for(p=A2(i,n,k,p,O),m=0;m<O;m++)(w=i.__k[m])!=null&&(x=w.__i==-1?vo:k[w.__i]||vo,w.__i=m,S=gc(e,w,x,a,u,f,h,p,g,v),b=w.__e,w.ref&&x.ref!=w.ref&&(x.ref&&mc(x.ref,null,w),v.push(w.ref,w.__c||b,w)),C==null&&b!=null&&(C=b),4&w.__u||x.__k===w.__k?p=Gg(w,p,e):typeof w.type=="function"&&S!==void 0?p=S:b&&(p=b.nextSibling),w.__u&=-7);return i.__e=C,p}function A2(e,n,i,s,a){var u,f,h,p,g,v=i.length,m=v,x=0;for(e.__k=new Array(a),u=0;u<a;u++)(f=n[u])!=null&&typeof f!="boolean"&&typeof f!="function"?(p=u+x,(f=e.__k[u]=typeof f=="string"||typeof f=="number"||typeof f=="bigint"||f.constructor==String?ao(null,f,null,null,null):_l(f)?ao(wl,{children:f},null,null,null):f.constructor==null&&f.__b>0?ao(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f).__=e,f.__b=e.__b+1,h=null,(g=f.__i=z2(f,i,p,m))!=-1&&(m--,(h=i[g])&&(h.__u|=2)),h==null||h.__v==null?(g==-1&&(a>v?x--:a<v&&x++),typeof f.type!="function"&&(f.__u|=4)):g!=p&&(g==p-1?x--:g==p+1?x++:(g>p?x--:x++,f.__u|=4))):e.__k[u]=null;if(m)for(u=0;u<v;u++)(h=i[u])!=null&&(2&h.__u)==0&&(h.__e==s&&(s=si(h)),Zg(h,h));return s}function Gg(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=Gg(s[a],n,i));return n}e.__e!=n&&(n&&e.type&&!i.contains(n)&&(n=si(e)),i.insertBefore(e.__e,n||null),n=e.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType==8);return n}function z2(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 pp(e,n,i){n[0]=="-"?e.setProperty(n,i??""):e[n]=i==null?"":typeof i!="number"||O2.test(n)?i:i+"px"}function Ws(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||pp(e.style,n,"");if(i)for(n in i)s&&i[n]==s[n]||pp(e.style,n,i[n])}else if(n[0]=="o"&&n[1]=="n")u=n!=(n=n.replace(Bg,"$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=dc,e.addEventListener(n,u?Ku:Wu,u)):e.removeEventListener(n,u?Ku:Wu,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 gp(e){return function(n){if(this.l){var i=this.l[n.type+e];if(n.t==null)n.t=dc++;else if(n.t<i.u)return;return i(Le.event?Le.event(n):n)}}}function gc(e,n,i,s,a,u,f,h,p,g){var v,m,x,w,b,C,S,k,O,D,P,T,z,A,L,W,X,Z=n.type;if(n.constructor!=null)return null;128&i.__u&&(p=!!(32&i.__u),u=[h=n.__e=i.__e]),(v=Le.__b)&&v(n);e:if(typeof Z=="function")try{if(k=n.props,O="prototype"in Z&&Z.prototype.render,D=(v=Z.contextType)&&s[v.__c],P=v?D?D.props.value:v.__:s,i.__c?S=(m=n.__c=i.__c).__=m.__E:(O?n.__c=m=new Z(k,P):(n.__c=m=new el(k,P),m.constructor=Z,m.render=I2),D&&D.sub(m),m.props=k,m.state||(m.state={}),m.context=P,m.__n=s,x=m.__d=!0,m.__h=[],m._sb=[]),O&&m.__s==null&&(m.__s=m.state),O&&Z.getDerivedStateFromProps!=null&&(m.__s==m.state&&(m.__s=cn({},m.__s)),cn(m.__s,Z.getDerivedStateFromProps(k,m.__s))),w=m.props,b=m.state,m.__v=n,x)O&&Z.getDerivedStateFromProps==null&&m.componentWillMount!=null&&m.componentWillMount(),O&&m.componentDidMount!=null&&m.__h.push(m.componentDidMount);else{if(O&&Z.getDerivedStateFromProps==null&&k!==w&&m.componentWillReceiveProps!=null&&m.componentWillReceiveProps(k,P),!m.__e&&m.shouldComponentUpdate!=null&&m.shouldComponentUpdate(k,m.__s,P)===!1||n.__v==i.__v){for(n.__v!=i.__v&&(m.props=k,m.state=m.__s,m.__d=!1),n.__e=i.__e,n.__k=i.__k,n.__k.some(function(oe){oe&&(oe.__=n)}),T=0;T<m._sb.length;T++)m.__h.push(m._sb[T]);m._sb=[],m.__h.length&&f.push(m);break e}m.componentWillUpdate!=null&&m.componentWillUpdate(k,m.__s,P),O&&m.componentDidUpdate!=null&&m.__h.push(function(){m.componentDidUpdate(w,b,C)})}if(m.context=P,m.props=k,m.__P=e,m.__e=!1,z=Le.__r,A=0,O){for(m.state=m.__s,m.__d=!1,z&&z(n),v=m.render(m.props,m.state,m.context),L=0;L<m._sb.length;L++)m.__h.push(m._sb[L]);m._sb=[]}else do m.__d=!1,z&&z(n),v=m.render(m.props,m.state,m.context),m.state=m.__s;while(m.__d&&++A<25);m.state=m.__s,m.getChildContext!=null&&(s=cn(cn({},s),m.getChildContext())),O&&!x&&m.getSnapshotBeforeUpdate!=null&&(C=m.getSnapshotBeforeUpdate(w,b)),W=v,v!=null&&v.type===wl&&v.key==null&&(W=Yg(v.props.children)),h=Kg(e,_l(W)?W:[W],n,i,s,a,u,f,h,p,g),m.base=n.__e,n.__u&=-161,m.__h.length&&f.push(m),S&&(m.__E=m.__=null)}catch(oe){if(n.__v=null,p||u!=null)if(oe.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(X=u.length;X--;)pc(u[X]);else n.__e=i.__e,n.__k=i.__k;Le.__e(oe,n,i)}else u==null&&n.__v==i.__v?(n.__k=i.__k,n.__e=i.__e):h=n.__e=D2(i.__e,n,i,s,a,u,f,p,g);return(v=Le.diffed)&&v(n),128&n.__u?void 0:h}function Xg(e,n,i){for(var s=0;s<i.length;s++)mc(i[s],i[++s],i[++s]);Le.__c&&Le.__c(n,e),e.some(function(a){try{e=a.__h,a.__h=[],e.some(function(u){u.call(a)})}catch(u){Le.__e(u,a.__v)}})}function Yg(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:_l(e)?e.map(Yg):cn({},e)}function D2(e,n,i,s,a,u,f,h,p){var g,v,m,x,w,b,C,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(g=0;g<u.length;g++)if((w=u[g])&&"setAttribute"in w==!!O&&(O?w.localName==O:w.nodeType==3)){e=w,u[g]=null;break}}if(e==null){if(O==null)return document.createTextNode(k);e=document.createElementNS(a,O,k.is&&k),h&&(Le.__m&&Le.__m(n,u),h=!1),u=null}if(O==null)S===k||h&&e.data==k||(e.data=k);else{if(u=u&&bo.call(e.childNodes),S=i.props||vo,!h&&u!=null)for(S={},g=0;g<e.attributes.length;g++)S[(w=e.attributes[g]).name]=w.value;for(g in S)if(w=S[g],g!="children"){if(g=="dangerouslySetInnerHTML")m=w;else if(!(g in k)){if(g=="value"&&"defaultValue"in k||g=="checked"&&"defaultChecked"in k)continue;Ws(e,g,null,w,a)}}for(g in k)w=k[g],g=="children"?x=w:g=="dangerouslySetInnerHTML"?v=w:g=="value"?b=w:g=="checked"?C=w:h&&typeof w!="function"||S[g]===w||Ws(e,g,w,S[g],a);if(v)h||m&&(v.__html==m.__html||v.__html==e.innerHTML)||(e.innerHTML=v.__html),n.__k=[];else if(m&&(e.innerHTML=""),Kg(n.type=="template"?e.content:e,_l(x)?x:[x],n,i,s,O=="foreignObject"?"http://www.w3.org/1999/xhtml":a,u,f,u?u[0]:i.__k&&si(i,0),h,p),u!=null)for(g=u.length;g--;)pc(u[g]);h||(g="value",O=="progress"&&b==null?e.removeAttribute("value"):b!=null&&(b!==e[g]||O=="progress"&&!b||O=="option"&&b!=S[g])&&Ws(e,g,b,S[g],a),g="checked",C!=null&&C!=e[g]&&Ws(e,g,C,S[g],a))}return e}function mc(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){Le.__e(a,i)}}function Zg(e,n,i){var s,a;if(Le.unmount&&Le.unmount(e),(s=e.ref)&&(s.current&&s.current!=e.__e||mc(s,null,n)),(s=e.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(u){Le.__e(u,n)}s.base=s.__P=null}if(s=e.__k)for(a=0;a<s.length;a++)s[a]&&Zg(s[a],n,i||typeof e.type!="function");i||pc(e.__e),e.__c=e.__=e.__e=void 0}function I2(e,n,i){return this.constructor(e,i)}function L2(e,n,i){var s,a,u,f;n==document&&(n=document.documentElement),Le.__&&Le.__(e,n),a=(s=!1)?null:n.__k,u=[],f=[],gc(n,e=n.__k=R2(wl,null,[e]),a||vo,vo,n.namespaceURI,a?null:n.firstChild?bo.call(n.childNodes):null,u,a?a.__e:n.firstChild,s,f),Xg(u,e,f)}function Jg(e,n,i){var s,a,u,f,h=cn({},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?bo.call(arguments,2):i),ao(e.type,h,s||e.key,a||e.ref,null)}bo=Qg.slice,Le={__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}},Ug=0,Hg=function(e){return e!=null&&e.constructor==null},el.prototype.setState=function(e,n){var i;i=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=cn({},this.state),typeof e=="function"&&(e=e(cn({},i),this.props)),e&&cn(i,e),e!=null&&this.__v&&(n&&this._sb.push(n),dp(this))},el.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),dp(this))},el.prototype.render=wl,wr=[],qg=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vg=function(e,n){return e.__v.__b-n.__v.__b},hl.__r=0,Bg=/(PointerCapture)$|Capture$/i,dc=0,Wu=gp(!1),Ku=gp(!0);function mp(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 F2(e){if(Array.isArray(e))return e}function $2(e,n,i){return(n=Q2(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function U2(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,g=!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){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function H2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
127
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yp(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 q2(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?yp(Object(i),!0).forEach(function(s){$2(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):yp(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function V2(e,n){return F2(e)||U2(e,n)||W2(e,n)||H2()}function B2(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 Q2(e){var n=B2(e,"string");return typeof n=="symbol"?n:n+""}function dl(e){"@babel/helpers - typeof";return dl=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},dl(e)}function W2(e,n){if(e){if(typeof e=="string")return mp(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)?mp(e,n):void 0}}var Gu=function(n){if(dl(n)!=="object")return n;var i=Jg(n);if(i.props){var s;i.props=q2({},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(Gu):Gu(i.props.children))}return i},K2=function(n){return Hg(Jg(n))},G2=function(n,i){delete i.__k,L2(Gu(n),i)};function X2(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 Y2=`.float-tooltip-kap {
128
+ position: absolute;
129
+ width: max-content; /* prevent shrinking near right edge */
130
+ max-width: max(50%, 150px);
131
+ padding: 3px 5px;
132
+ border-radius: 3px;
133
+ font: 12px sans-serif;
134
+ color: #eee;
135
+ background: rgba(0,0,0,0.6);
136
+ pointer-events: none;
137
+ }
138
+ `;X2(Y2);var Z2=hc({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&&dl(n)==="object"&&!!n.node&&typeof n.node=="function",h=Lt(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(g){var v=V2(g,2),m=v[0],x=v[1];return i.tooltipEl.style(m,x)}),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(g){i.mouseInside=!0;var v=un(g),m=h.node(),x=m.offsetWidth,w=m.offsetHeight,b=[i.offsetX===null||i.offsetX===void 0?"-".concat(v[0]/x*100,"%"):typeof i.offsetX=="number"?"calc(-50% + ".concat(i.offsetX,"px)"):i.offsetX,i.offsetY===null||i.offsetY===void 0?w>130&&w-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(b.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):K2(n.content)?(n.tooltipEl.text(""),G2(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 J2(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,g=0,v=0,m=0;for(f=0;f<h;++f)p=s[f],g+=p.x||0,v+=p.y||0,m+=p.z||0;for(g=(g/h-e)*a,v=(v/h-n)*a,m=(m/h-i)*a,f=0;f<h;++f)p=s[f],g&&(p.x-=g),v&&(p.y-=v),m&&(p.z-=m)}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 ek(e){const n=+this._x.call(null,e);return em(this.cover(n),n,e)}function em(e,n,i){if(isNaN(n))return e;var s,a=e._root,u={data:i},f=e._x0,h=e._x1,p,g,v,m,x;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[m=+v]))return s[m]=u,e;if(g=+e._x.call(null,a.data),n===g)return u.next=a,s?s[m]=u:e._root=u,e;do s=s?s[m]=new Array(2):e._root=new Array(2),(v=n>=(p=(f+h)/2))?f=p:h=p;while((m=+v)==(x=+(g>=p)));return s[x]=a,s[m]=u,e}function tk(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)em(this,i[u],e[u]);return this}function nk(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 rk(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function ik(e){return arguments.length?this.cover(+e[0][0]).cover(+e[1][0]):isNaN(this._x0)?void 0:[[this._x0],[this._x1]]}function jn(e,n,i){this.node=e,this.x0=n,this.x1=i}function ok(e,n){var i,s=this._x0,a,u,f=this._x1,h=[],p=this._root,g,v;for(p&&h.push(new jn(p,s,f)),n==null?n=1/0:(s=e-n,f=e+n);g=h.pop();)if(!(!(p=g.node)||(a=g.x0)>f||(u=g.x1)<s))if(p.length){var m=(a+u)/2;h.push(new jn(p[1],m,u),new jn(p[0],a,m)),(v=+(e>=m))&&(g=h[h.length-1],h[h.length-1]=h[h.length-1-v],h[h.length-1-v]=g)}else{var x=Math.abs(e-+this._x.call(null,p.data));x<n&&(n=x,s=e-x,f=e+x,i=p.data)}return i}function sk(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,g,v,m,x;if(!i)return this;if(i.length)for(;;){if((v=p>=(g=(f+h)/2))?f=g:h=g,n=i,!(i=i[m=+v]))return this;if(!i.length)break;n[m+1&1]&&(s=n,x=m)}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[m]=u:delete n[m],(i=n[0]||n[1])&&i===(n[1]||n[0])&&!i.length&&(s?s[x]=i:this._root=i),this):(this._root=u,this)}function lk(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function ak(){return this._root}function uk(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function ck(e){var n=[],i,s=this._root,a,u,f;for(s&&n.push(new jn(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 jn(a,h,f)),(a=s[0])&&n.push(new jn(a,u,h))}return this}function fk(e){var n=[],i=[],s;for(this._root&&n.push(new jn(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 jn(u,f,p)),(u=a[1])&&n.push(new jn(u,p,h))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.x1);return this}function hk(e){return e[0]}function dk(e){return arguments.length?(this._x=e,this):this._x}function tm(e,n){var i=new yc(n??hk,NaN,NaN);return e==null?i:i.addAll(e)}function yc(e,n,i){this._x=e,this._x0=n,this._x1=i,this._root=void 0}function vp(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var St=tm.prototype=yc.prototype;St.copy=function(){var e=new yc(this._x,this._x0,this._x1),n=this._root,i,s;if(!n)return e;if(!n.length)return e._root=vp(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]=vp(s));return e};St.add=ek;St.addAll=tk;St.cover=nk;St.data=rk;St.extent=ik;St.find=ok;St.remove=sk;St.removeAll=lk;St.root=ak;St.size=uk;St.visit=ck;St.visitAfter=fk;St.x=dk;function pk(e){const n=+this._x.call(null,e),i=+this._y.call(null,e);return nm(this.cover(n,i),n,i,e)}function nm(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,g=e._x1,v=e._y1,m,x,w,b,C,S,k,O;if(!u)return e._root=f,e;for(;u.length;)if((C=n>=(m=(h+g)/2))?h=m:g=m,(S=i>=(x=(p+v)/2))?p=x:v=x,a=u,!(u=u[k=S<<1|C]))return a[k]=f,e;if(w=+e._x.call(null,u.data),b=+e._y.call(null,u.data),n===w&&i===b)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),(C=n>=(m=(h+g)/2))?h=m:g=m,(S=i>=(x=(p+v)/2))?p=x:v=x;while((k=S<<1|C)===(O=(b>=x)<<1|w>=m));return a[O]=u,a[k]=f,e}function gk(e){var n,i,s=e.length,a,u,f=new Array(s),h=new Array(s),p=1/0,g=1/0,v=-1/0,m=-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<g&&(g=u),u>m&&(m=u));if(p>v||g>m)return this;for(this.cover(p,g).cover(v,m),i=0;i<s;++i)nm(this,f[i],h[i],e[i]);return this}function mk(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,g;i>e||e>=a||s>n||n>=u;)switch(g=(n<s)<<1|e<i,p=new Array(4),p[g]=h,h=p,f*=2,g){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 yk(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function vk(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 ft(e,n,i,s,a){this.node=e,this.x0=n,this.y0=i,this.x1=s,this.y1=a}function xk(e,n,i){var s,a=this._x0,u=this._y0,f,h,p,g,v=this._x1,m=this._y1,x=[],w=this._root,b,C;for(w&&x.push(new ft(w,a,u,v,m)),i==null?i=1/0:(a=e-i,u=n-i,v=e+i,m=n+i,i*=i);b=x.pop();)if(!(!(w=b.node)||(f=b.x0)>v||(h=b.y0)>m||(p=b.x1)<a||(g=b.y1)<u))if(w.length){var S=(f+p)/2,k=(h+g)/2;x.push(new ft(w[3],S,k,p,g),new ft(w[2],f,k,S,g),new ft(w[1],S,h,p,k),new ft(w[0],f,h,S,k)),(C=(n>=k)<<1|e>=S)&&(b=x[x.length-1],x[x.length-1]=x[x.length-1-C],x[x.length-1-C]=b)}else{var O=e-+this._x.call(null,w.data),D=n-+this._y.call(null,w.data),P=O*O+D*D;if(P<i){var T=Math.sqrt(i=P);a=e-T,u=n-T,v=e+T,m=n+T,s=w.data}}return s}function _k(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._y0,p=this._x1,g=this._y1,v,m,x,w,b,C,S,k;if(!i)return this;if(i.length)for(;;){if((b=v>=(x=(f+p)/2))?f=x:p=x,(C=m>=(w=(h+g)/2))?h=w:g=w,n=i,!(i=i[S=C<<1|b]))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 wk(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function kk(){return this._root}function Sk(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function bk(e){var n=[],i,s=this._root,a,u,f,h,p;for(s&&n.push(new ft(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 g=(u+h)/2,v=(f+p)/2;(a=s[3])&&n.push(new ft(a,g,v,h,p)),(a=s[2])&&n.push(new ft(a,u,v,g,p)),(a=s[1])&&n.push(new ft(a,g,f,h,v)),(a=s[0])&&n.push(new ft(a,u,f,g,v))}return this}function Ck(e){var n=[],i=[],s;for(this._root&&n.push(new ft(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,g=s.y1,v=(f+p)/2,m=(h+g)/2;(u=a[0])&&n.push(new ft(u,f,h,v,m)),(u=a[1])&&n.push(new ft(u,v,h,p,m)),(u=a[2])&&n.push(new ft(u,f,m,v,g)),(u=a[3])&&n.push(new ft(u,v,m,p,g))}i.push(s)}for(;s=i.pop();)e(s.node,s.x0,s.y0,s.x1,s.y1);return this}function Ek(e){return e[0]}function Nk(e){return arguments.length?(this._x=e,this):this._x}function Pk(e){return e[1]}function Tk(e){return arguments.length?(this._y=e,this):this._y}function rm(e,n,i){var s=new vc(n??Ek,i??Pk,NaN,NaN,NaN,NaN);return e==null?s:s.addAll(e)}function vc(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 xp(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var ht=rm.prototype=vc.prototype;ht.copy=function(){var e=new vc(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=xp(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]=xp(s));return e};ht.add=pk;ht.addAll=gk;ht.cover=mk;ht.data=yk;ht.extent=vk;ht.find=xk;ht.remove=_k;ht.removeAll=wk;ht.root=kk;ht.size=Sk;ht.visit=bk;ht.visitAfter=Ck;ht.x=Nk;ht.y=Tk;function jk(e){const n=+this._x.call(null,e),i=+this._y.call(null,e),s=+this._z.call(null,e);return im(this.cover(n,i,s),n,i,s,e)}function im(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,g=e._y0,v=e._z0,m=e._x1,x=e._y1,w=e._z1,b,C,S,k,O,D,P,T,z,A,L;if(!f)return e._root=h,e;for(;f.length;)if((P=n>=(b=(p+m)/2))?p=b:m=b,(T=i>=(C=(g+x)/2))?g=C:x=C,(z=s>=(S=(v+w)/2))?v=S:w=S,u=f,!(f=f[A=z<<2|T<<1|P]))return u[A]=h,e;if(k=+e._x.call(null,f.data),O=+e._y.call(null,f.data),D=+e._z.call(null,f.data),n===k&&i===O&&s===D)return h.next=f,u?u[A]=h:e._root=h,e;do u=u?u[A]=new Array(8):e._root=new Array(8),(P=n>=(b=(p+m)/2))?p=b:m=b,(T=i>=(C=(g+x)/2))?g=C:x=C,(z=s>=(S=(v+w)/2))?v=S:w=S;while((A=z<<2|T<<1|P)===(L=(D>=S)<<2|(O>=C)<<1|k>=b));return u[L]=f,u[A]=h,e}function Mk(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,g=-1/0,v=-1/0;for(let m=0,x,w,b,C;m<n;++m)isNaN(w=+this._x.call(null,x=e[m]))||isNaN(b=+this._y.call(null,x))||isNaN(C=+this._z.call(null,x))||(i[m]=w,s[m]=b,a[m]=C,w<u&&(u=w),w>p&&(p=w),b<f&&(f=b),b>g&&(g=b),C<h&&(h=C),C>v&&(v=C));if(u>p||f>g||h>v)return this;this.cover(u,f,h).cover(p,g,v);for(let m=0;m<n;++m)im(this,i[m],s[m],a[m],e[m]);return this}function Ok(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 g=f-s||1,v=this._root,m,x;s>e||e>=f||a>n||n>=h||u>i||i>=p;)switch(x=(i<u)<<2|(n<a)<<1|e<s,m=new Array(8),m[x]=v,v=m,g*=2,x){case 0:f=s+g,h=a+g,p=u+g;break;case 1:s=f-g,h=a+g,p=u+g;break;case 2:f=s+g,a=h-g,p=u+g;break;case 3:s=f-g,a=h-g,p=u+g;break;case 4:f=s+g,h=a+g,u=p-g;break;case 5:s=f-g,h=a+g,u=p-g;break;case 6:f=s+g,a=h-g,u=p-g;break;case 7:s=f-g,a=h-g,u=p-g;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 Rk(){var e=[];return this.visit(function(n){if(!n.length)do e.push(n.data);while(n=n.next)}),e}function Ak(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 Me(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 zk(e,n,i,s){var a,u=this._x0,f=this._y0,h=this._z0,p,g,v,m,x,w,b=this._x1,C=this._y1,S=this._z1,k=[],O=this._root,D,P;for(O&&k.push(new Me(O,u,f,h,b,C,S)),s==null?s=1/0:(u=e-s,f=n-s,h=i-s,b=e+s,C=n+s,S=i+s,s*=s);D=k.pop();)if(!(!(O=D.node)||(p=D.x0)>b||(g=D.y0)>C||(v=D.z0)>S||(m=D.x1)<u||(x=D.y1)<f||(w=D.z1)<h))if(O.length){var T=(p+m)/2,z=(g+x)/2,A=(v+w)/2;k.push(new Me(O[7],T,z,A,m,x,w),new Me(O[6],p,z,A,T,x,w),new Me(O[5],T,g,A,m,z,w),new Me(O[4],p,g,A,T,z,w),new Me(O[3],T,z,v,m,x,A),new Me(O[2],p,z,v,T,x,A),new Me(O[1],T,g,v,m,z,A),new Me(O[0],p,g,v,T,z,A)),(P=(i>=A)<<2|(n>=z)<<1|e>=T)&&(D=k[k.length-1],k[k.length-1]=k[k.length-1-P],k[k.length-1-P]=D)}else{var L=e-+this._x.call(null,O.data),W=n-+this._y.call(null,O.data),X=i-+this._z.call(null,O.data),Z=L*L+W*W+X*X;if(Z<s){var oe=Math.sqrt(s=Z);u=e-oe,f=n-oe,h=i-oe,b=e+oe,C=n+oe,S=i+oe,a=O.data}}return a}const Dk=(e,n,i,s,a,u)=>Math.sqrt((e-s)**2+(n-a)**2+(i-u)**2);function Ik(e,n,i,s){const a=[],u=e-s,f=n-s,h=i-s,p=e+s,g=n+s,v=i+s;return this.visit((m,x,w,b,C,S,k)=>{if(!m.length)do{const O=m.data;Dk(e,n,i,this._x(O),this._y(O),this._z(O))<=s&&a.push(O)}while(m=m.next);return x>p||w>g||b>v||C<u||S<f||k<h}),a}function Lk(e){if(isNaN(x=+this._x.call(null,e))||isNaN(w=+this._y.call(null,e))||isNaN(b=+this._z.call(null,e)))return this;var n,i=this._root,s,a,u,f=this._x0,h=this._y0,p=this._z0,g=this._x1,v=this._y1,m=this._z1,x,w,b,C,S,k,O,D,P,T,z;if(!i)return this;if(i.length)for(;;){if((O=x>=(C=(f+g)/2))?f=C:g=C,(D=w>=(S=(h+v)/2))?h=S:v=S,(P=b>=(k=(p+m)/2))?p=k:m=k,n=i,!(i=i[T=P<<2|D<<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 Fk(e){for(var n=0,i=e.length;n<i;++n)this.remove(e[n]);return this}function $k(){return this._root}function Uk(){var e=0;return this.visit(function(n){if(!n.length)do++e;while(n=n.next)}),e}function Hk(e){var n=[],i,s=this._root,a,u,f,h,p,g,v;for(s&&n.push(new Me(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,g=i.y1,v=i.z1)&&s.length){var m=(u+p)/2,x=(f+g)/2,w=(h+v)/2;(a=s[7])&&n.push(new Me(a,m,x,w,p,g,v)),(a=s[6])&&n.push(new Me(a,u,x,w,m,g,v)),(a=s[5])&&n.push(new Me(a,m,f,w,p,x,v)),(a=s[4])&&n.push(new Me(a,u,f,w,m,x,v)),(a=s[3])&&n.push(new Me(a,m,x,h,p,g,w)),(a=s[2])&&n.push(new Me(a,u,x,h,m,g,w)),(a=s[1])&&n.push(new Me(a,m,f,h,p,x,w)),(a=s[0])&&n.push(new Me(a,u,f,h,m,x,w))}return this}function qk(e){var n=[],i=[],s;for(this._root&&n.push(new Me(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,g=s.x1,v=s.y1,m=s.z1,x=(f+g)/2,w=(h+v)/2,b=(p+m)/2;(u=a[0])&&n.push(new Me(u,f,h,p,x,w,b)),(u=a[1])&&n.push(new Me(u,x,h,p,g,w,b)),(u=a[2])&&n.push(new Me(u,f,w,p,x,v,b)),(u=a[3])&&n.push(new Me(u,x,w,p,g,v,b)),(u=a[4])&&n.push(new Me(u,f,h,b,x,w,m)),(u=a[5])&&n.push(new Me(u,x,h,b,g,w,m)),(u=a[6])&&n.push(new Me(u,f,w,b,x,v,m)),(u=a[7])&&n.push(new Me(u,x,w,b,g,v,m))}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 Vk(e){return e[0]}function Bk(e){return arguments.length?(this._x=e,this):this._x}function Qk(e){return e[1]}function Wk(e){return arguments.length?(this._y=e,this):this._y}function Kk(e){return e[2]}function Gk(e){return arguments.length?(this._z=e,this):this._z}function om(e,n,i,s){var a=new xc(n??Vk,i??Qk,s??Kk,NaN,NaN,NaN,NaN,NaN,NaN);return e==null?a:a.addAll(e)}function xc(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 _p(e){for(var n={data:e.data},i=n;e=e.next;)i=i.next={data:e.data};return n}var tt=om.prototype=xc.prototype;tt.copy=function(){var e=new xc(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=_p(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]=_p(s));return e};tt.add=jk;tt.addAll=Mk;tt.cover=Ok;tt.data=Rk;tt.extent=Ak;tt.find=zk;tt.findAllWithinRadius=Ik;tt.remove=Lk;tt.removeAll=Fk;tt.root=$k;tt.size=Uk;tt.visit=Hk;tt.visitAfter=qk;tt.x=Bk;tt.y=Wk;tt.z=Gk;function Tn(e){return function(){return e}}function Nn(e){return(e()-.5)*1e-6}function Xk(e){return e.index}function wp(e,n){var i=e.get(n);if(!i)throw new Error("node not found: "+n);return i}function Yk(e){var n=Xk,i=x,s,a=Tn(30),u,f,h,p,g,v,m=1;e==null&&(e=[]);function x(k){return 1/Math.min(p[k.source.index],p[k.target.index])}function w(k){for(var O=0,D=e.length;O<m;++O)for(var P=0,T,z,A,L=0,W=0,X=0,Z,oe;P<D;++P)T=e[P],z=T.source,A=T.target,L=A.x+A.vx-z.x-z.vx||Nn(v),h>1&&(W=A.y+A.vy-z.y-z.vy||Nn(v)),h>2&&(X=A.z+A.vz-z.z-z.vz||Nn(v)),Z=Math.sqrt(L*L+W*W+X*X),Z=(Z-u[P])/Z*k*s[P],L*=Z,W*=Z,X*=Z,A.vx-=L*(oe=g[P]),h>1&&(A.vy-=W*oe),h>2&&(A.vz-=X*oe),z.vx+=L*(oe=1-oe),h>1&&(z.vy+=W*oe),h>2&&(z.vz+=X*oe)}function b(){if(f){var k,O=f.length,D=e.length,P=new Map(f.map((z,A)=>[n(z,A,f),z])),T;for(k=0,p=new Array(O);k<D;++k)T=e[k],T.index=k,typeof T.source!="object"&&(T.source=wp(P,T.source)),typeof T.target!="object"&&(T.target=wp(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,g=new Array(D);k<D;++k)T=e[k],g[k]=p[T.source.index]/(p[T.source.index]+p[T.target.index]);s=new Array(D),C(),u=new Array(D),S()}}function C(){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 w.initialize=function(k,...O){f=k,v=O.find(D=>typeof D=="function")||Math.random,h=O.find(D=>[1,2,3].includes(D))||2,b()},w.links=function(k){return arguments.length?(e=k,b(),w):e},w.id=function(k){return arguments.length?(n=k,w):n},w.iterations=function(k){return arguments.length?(m=+k,w):m},w.strength=function(k){return arguments.length?(i=typeof k=="function"?k:Tn(+k),C(),w):i},w.distance=function(k){return arguments.length?(a=typeof k=="function"?k:Tn(+k),S(),w):a},w}const Zk=1664525,Jk=1013904223,kp=4294967296;function eS(){let e=1;return()=>(e=(Zk*e+Jk)%kp)/kp}var Sp=3;function _u(e){return e.x}function bp(e){return e.y}function tS(e){return e.z}var nS=10,rS=Math.PI*(3-Math.sqrt(5)),iS=Math.PI*20/(9+Math.sqrt(221));function oS(e,n){n=n||2;var i=Math.min(Sp,Math.max(1,Math.round(n))),s,a=1,u=.001,f=1-Math.pow(u,1/300),h=0,p=.6,g=new Map,v=ac(w),m=ko("tick","end"),x=eS();e==null&&(e=[]);function w(){b(),m.call("tick",s),a<u&&(v.stop(),m.call("end",s))}function b(k){var O,D=e.length,P;k===void 0&&(k=1);for(var T=0;T<k;++T)for(a+=(h-a)*f,g.forEach(function(z){z(a)}),O=0;O<D;++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 C(){for(var k=0,O=e.length,D;k<O;++k){if(D=e[k],D.index=k,D.fx!=null&&(D.x=D.fx),D.fy!=null&&(D.y=D.fy),D.fz!=null&&(D.z=D.fz),isNaN(D.x)||i>1&&isNaN(D.y)||i>2&&isNaN(D.z)){var P=nS*(i>2?Math.cbrt(.5+k):i>1?Math.sqrt(.5+k):k),T=k*rS,z=k*iS;i===1?D.x=P:i===2?(D.x=P*Math.cos(T),D.y=P*Math.sin(T)):(D.x=P*Math.sin(T)*Math.cos(z),D.y=P*Math.cos(T),D.z=P*Math.sin(T)*Math.sin(z))}(isNaN(D.vx)||i>1&&isNaN(D.vy)||i>2&&isNaN(D.vz))&&(D.vx=0,i>1&&(D.vy=0),i>2&&(D.vz=0))}}function S(k){return k.initialize&&k.initialize(e,x,i),k}return C(),s={tick:b,restart:function(){return v.restart(w),s},stop:function(){return v.stop(),s},numDimensions:function(k){return arguments.length?(i=Math.min(Sp,Math.max(1,Math.round(k))),g.forEach(S),s):i},nodes:function(k){return arguments.length?(e=k,C(),g.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?(x=k,g.forEach(S),s):x},force:function(k,O){return arguments.length>1?(O==null?g.delete(k):g.set(k,S(O)),s):g.get(k)},find:function(){var k=Array.prototype.slice.call(arguments),O=k.shift()||0,D=(i>1?k.shift():null)||0,P=(i>2?k.shift():null)||0,T=k.shift()||1/0,z=0,A=e.length,L,W,X,Z,oe,de;for(T*=T,z=0;z<A;++z)oe=e[z],L=O-oe.x,W=D-(oe.y||0),X=P-(oe.z||0),Z=L*L+W*W+X*X,Z<T&&(de=oe,T=Z);return de},on:function(k,O){return arguments.length>1?(m.on(k,O),s):m.on(k)}}}function sS(){var e,n,i,s,a,u=Tn(-30),f,h=1,p=1/0,g=.81;function v(b){var C,S=e.length,k=(n===1?tm(e,_u):n===2?rm(e,_u,bp):n===3?om(e,_u,bp,tS):null).visitAfter(x);for(a=b,C=0;C<S;++C)i=e[C],k.visit(w)}function m(){if(e){var b,C=e.length,S;for(f=new Array(C),b=0;b<C;++b)S=e[b],f[S.index]=+u(S,b,e)}}function x(b){var C=0,S,k,O=0,D,P,T,z,A=b.length;if(A){for(D=P=T=z=0;z<A;++z)(S=b[z])&&(k=Math.abs(S.value))&&(C+=S.value,O+=k,D+=k*(S.x||0),P+=k*(S.y||0),T+=k*(S.z||0));C*=Math.sqrt(4/A),b.x=D/O,n>1&&(b.y=P/O),n>2&&(b.z=T/O)}else{S=b,S.x=S.data.x,n>1&&(S.y=S.data.y),n>2&&(S.z=S.data.z);do C+=f[S.data.index];while(S=S.next)}b.value=C}function w(b,C,S,k,O){if(!b.value)return!0;var D=[S,k,O][n-1],P=b.x-i.x,T=n>1?b.y-i.y:0,z=n>2?b.z-i.z:0,A=D-C,L=P*P+T*T+z*z;if(A*A/g<L)return L<p&&(P===0&&(P=Nn(s),L+=P*P),n>1&&T===0&&(T=Nn(s),L+=T*T),n>2&&z===0&&(z=Nn(s),L+=z*z),L<h&&(L=Math.sqrt(h*L)),i.vx+=P*b.value*a/L,n>1&&(i.vy+=T*b.value*a/L),n>2&&(i.vz+=z*b.value*a/L)),!0;if(b.length||L>=p)return;(b.data!==i||b.next)&&(P===0&&(P=Nn(s),L+=P*P),n>1&&T===0&&(T=Nn(s),L+=T*T),n>2&&z===0&&(z=Nn(s),L+=z*z),L<h&&(L=Math.sqrt(h*L)));do b.data!==i&&(A=f[b.data.index]*a/L,i.vx+=P*A,n>1&&(i.vy+=T*A),n>2&&(i.vz+=z*A));while(b=b.next)}return v.initialize=function(b,...C){e=b,s=C.find(S=>typeof S=="function")||Math.random,n=C.find(S=>[1,2,3].includes(S))||2,m()},v.strength=function(b){return arguments.length?(u=typeof b=="function"?b:Tn(+b),m(),v):u},v.distanceMin=function(b){return arguments.length?(h=b*b,v):Math.sqrt(h)},v.distanceMax=function(b){return arguments.length?(p=b*b,v):Math.sqrt(p)},v.theta=function(b){return arguments.length?(g=b*b,v):Math.sqrt(g)},v}function lS(e,n,i,s){var a,u,f=Tn(.1),h,p;typeof e!="function"&&(e=Tn(+e)),n==null&&(n=0),i==null&&(i=0),s==null&&(s=0);function g(m){for(var x=0,w=a.length;x<w;++x){var b=a[x],C=b.x-n||1e-6,S=(b.y||0)-i||1e-6,k=(b.z||0)-s||1e-6,O=Math.sqrt(C*C+S*S+k*k),D=(p[x]-O)*h[x]*m/O;b.vx+=C*D,u>1&&(b.vy+=S*D),u>2&&(b.vz+=k*D)}}function v(){if(a){var m,x=a.length;for(h=new Array(x),p=new Array(x),m=0;m<x;++m)p[m]=+e(a[m],m,a),h[m]=isNaN(p[m])?0:+f(a[m],m,a)}}return g.initialize=function(m,...x){a=m,u=x.find(w=>[1,2,3].includes(w))||2,v()},g.strength=function(m){return arguments.length?(f=typeof m=="function"?m:Tn(+m),v(),g):f},g.radius=function(m){return arguments.length?(e=typeof m=="function"?m:Tn(+m),v(),g):e},g.x=function(m){return arguments.length?(n=+m,g):n},g.y=function(m){return arguments.length?(i=+m,g):i},g.z=function(m){return arguments.length?(s=+m,g):s},g}const{abs:Ji,cos:En,sin:ei,acos:aS,atan2:eo,sqrt:Zn,pow:It}=Math;function to(e){return e<0?-It(-e,1/3):It(e,1/3)}const sm=Math.PI,Ks=2*sm,Jn=sm/2,uS=1e-6,wu=Number.MAX_SAFE_INTEGER||9007199254740991,ku=Number.MIN_SAFE_INTEGER||-9007199254740991,cS={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),Zn(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,g,v,m,x=0;s===2?(u=[u[0],u[1],u[2],cS],g=h,v=a*e*2,m=p):s===3&&(g=h*a,v=h*e*3,m=a*p*3,x=e*p);const w={x:g*u[0].x+v*u[1].x+m*u[2].x+x*u[3].x,y:g*u[0].y+v*u[1].y+m*u[2].y+x*u[3].y,t:e};return i&&(w.z=g*u[0].z+v*u[1].z+m*u[2].z+x*u[3].z),w}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],g=u[2],v=u[3],m;if(h*=a,p*=e,f.length===2)return m=h+p,{x:(h*f[0].x+p*f[1].x)/m,y:(h*f[0].y+p*f[1].y)/m,z:s?(h*f[0].z+p*f[1].z)/m:!1,t:e};if(h*=a,p*=2*a,g*=e*e,f.length===3)return m=h+p+g,{x:(h*f[0].x+p*f[1].x+g*f[2].x)/m,y:(h*f[0].y+p*f[1].y+g*f[2].y)/m,z:s?(h*f[0].z+p*f[1].z+g*f[2].z)/m:!1,t:e};if(h*=a,p*=1.5*a,g*=3*a,v*=e*e*e,f.length===4)return m=h+p+g+v,{x:(h*f[0].x+p*f[1].x+g*f[2].x+v*f[3].x)/m,y:(h*f[0].y+p*f[1].y+g*f[2].y+v*f[3].y)/m,z:s?(h*f[0].z+p*f[1].z+g*f[2].z+v*f[3].z)/m:!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 Ji(e-n)<=(i||uS)},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 eo(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 Zn(i*i+s*s)},closest:function(e,n){let i=It(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=It(e,n)+It(1-e,n),s=i-1;return Ji(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=It(1-e,n),s=It(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),g=(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:g/v}},lli4:function(e,n,i,s){const a=e.x,u=e.y,f=n.x,h=n.y,p=i.x,g=i.y,v=s.x,m=s.y;return re.lli8(a,u,f,h,p,g,v,m)},lli:function(e,n){return re.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new ze(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=wu,i=wu,s=ku,a=ku;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(g){if(g.virtual)return;const v=p.intersects(g,a);v.length>0&&(v.c1=p,v.c2=g,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=wu,a=ku,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=-eo(n.p2.y-s,n.p2.x-i),u=function(f){return{x:(f.x-i)*En(a)-(f.y-s)*ei(a),y:(f.x-i)*ei(a)+(f.y-s)*En(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(A){return 0<=A&&A<=1};if(i===2){const A=s[0].y,L=s[1].y,W=s[2].y,X=A-2*L+W;if(X!==0){const Z=-Zn(L*L-A*W),oe=-A+L,de=-(Z+oe)/X,F=-(-Z+oe)/X;return[de,F].filter(a)}else if(L!==W&&X===0)return[(2*L-W)/(2*L-2*W)].filter(a);return[]}const u=s[0].y,f=s[1].y,h=s[2].y,p=s[3].y;let g=-u+3*f-3*h+p,v=3*u-6*f+3*h,m=-3*u+3*f,x=u;if(re.approximately(g,0)){if(re.approximately(v,0))return re.approximately(m,0)?[]:[-x/m].filter(a);const A=Zn(m*m-4*v*x),L=2*v;return[(A-m)/L,(-m-A)/L].filter(a)}v/=g,m/=g,x/=g;const w=(3*m-v*v)/3,b=w/3,C=(2*v*v*v-9*v*m+27*x)/27,S=C/2,k=S*S+b*b*b;let O,D,P,T,z;if(k<0){const A=-w/3,L=A*A*A,W=Zn(L),X=-C/(2*W),Z=X<-1?-1:X>1?1:X,oe=aS(Z),de=to(W),F=2*de;return P=F*En(oe/3)-v/3,T=F*En((oe+Ks)/3)-v/3,z=F*En((oe+2*Ks)/3)-v/3,[P,T,z].filter(a)}else{if(k===0)return O=S<0?to(-S):-to(S),P=2*O-v/3,T=-O-v/3,[P,T].filter(a);{const A=Zn(k);return O=to(-S+A),D=to(S+A),[O-D-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=-Zn(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,g=0,v=0;const m=re.compute(e,n),x=re.compute(e,i),w=m.x*m.x+m.y*m.y;if(s?(u=Zn(It(m.y*x.z-x.y*m.z,2)+It(m.z*x.x-x.z*m.x,2)+It(m.x*x.y-x.x*m.y,2)),f=It(w+m.z*m.z,3/2)):(u=m.x*x.y-m.y*x.x,f=It(w,3/2)),u===0||f===0)return{k:0,r:0};if(g=u/f,v=f/u,!a){const b=re.curvature(e-.001,n,i,s,!0).k,C=re.curvature(e+.001,n,i,s,!0).k;p=(C-g+(g-b))/2,h=(Ji(C-g)+Ji(g-b))/2}return{k:g,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 x=-p/h;if(0<=x&&x<=1)return[x]}return[]}const g=2*f;if(re.approximately(g,0))return[];const v=h*h-4*f*p;if(v<0)return[];const m=Math.sqrt(v);return[(m-h)/g,-(h+m)/g].filter(function(x){return 0<=x&&x<=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,Ji(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),g=[{left:h.left,right:p.left},{left:h.left,right:p.right},{left:h.right,right:p.right},{left:h.right,right:p.left}];g=g.filter(function(m){return re.bboxoverlap(m.left.bbox(),m.right.bbox())});let v=[];return g.length===0||(g.forEach(function(m){v=v.concat(re.pairiteration(m.left,m.right,f))}),v=v.filter(function(m,x){return v.indexOf(m)===x})),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*En(Jn)-a*ei(Jn),p=s*ei(Jn)+a*En(Jn),g=u*En(Jn)-f*ei(Jn),v=u*ei(Jn)+f*En(Jn),m=(e.x+n.x)/2,x=(e.y+n.y)/2,w=(n.x+i.x)/2,b=(n.y+i.y)/2,C=m+h,S=x+p,k=w+g,O=b+v,D=re.lli8(m,x,C,S,w,b,k,O),P=re.dist(D,e);let T=eo(e.y-D.y,e.x-D.x),z=eo(n.y-D.y,n.x-D.x),A=eo(i.y-D.y,i.x-D.x),L;return T<A?((T>z||z>A)&&(T+=Ks),T>A&&(L=A,A=T,T=L)):A<z&&z<T?(L=A,A=T,T=L):A+=Ks,D.s=T,D.e=A,D.r=P,D},numberSort:function(e,n){return e-n}};class uo{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 uo(i)}}const{abs:no,min:Cp,max:Ep,cos:fS,sin:hS,acos:dS,sqrt:ro}=Math,pS=Math.PI;class ze{constructor(n){let i=n&&n.forEach?n:Array.from(arguments).slice(),s=!1;if(typeof i[0]=="object"){s=i.length;const w=[];i.forEach(function(b){["x","y","z"].forEach(function(C){typeof b[C]<"u"&&w.push(b[C])})}),i=w}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 w=0,b=f?3:2;w<u;w+=b){var p={x:i[w],y:i[w+1]};f&&(p.z=i[w+2]),h.push(p)}const g=this.order=h.length-1,v=this.dims=["x","y"];f&&v.push("z"),this.dimlen=v.length;const m=re.align(h,{p1:h[0],p2:h[g]}),x=re.dist(h[0],h[g]);this._linear=m.reduce((w,b)=>w+no(b.y),0)<x/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 ze(i,i,s);if(a===1)return new ze(n,i,i);const u=ze.getABC(2,n,i,s,a);return new ze(n,u.A,s)}static cubicFromPoints(n,i,s,a,u){typeof a>"u"&&(a=.5);const f=ze.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),g=(s.x-n.x)/p,v=(s.y-n.y)/p,m=u*g,x=u*v,w=h*g,b=h*v,C={x:i.x-m,y:i.y-x},S={x:i.x+w,y:i.y+b},k=f.A,O={x:k.x+(C.x-k.x)/(1-a),y:k.y+(C.y-k.y)/(1-a)},D={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+(D.x-s.x)/(1-a),y:s.y+(D.y-s.y)/(1-a)};return new ze(n,P,T,s)}static getUtils(){return re}getUtils(){return ze.getUtils()}static get PolyBezier(){return uo}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},g=re.abcratio(u,n);return{A:{x:s.x+(s.x-p.x)/g,y:s.y+(s.y-p.y)/g},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 ze.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 g=a.mdist,v=f,m=v,x;g+=1;for(let w;v<h+p;v+=p)x=this.compute(v),w=re.dist(n,x),w<g&&(g=w,m=v);return m=m<0?0:m>1?1:m,x=this.compute(m),x.t=m,x.d=g,x}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 ze(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 ze(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=ro(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=ro(i.x*i.x+i.y*i.y+i.z*i.z),u=ro(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=ro(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 ze([s[0],s[3],s[5]]):new ze([s[0],s[4],s[7],s[9]]),right:this.order===2?new ze([s[5],s[4],s[2]]):new ze([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 ze(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),no(dS(s))<pS/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(g){for(i=0,s=0;s<=1;)for(s=i+a;s<=1+a;s+=a)if(u=g.split(i,s),!u.simple()){if(s-=a,no(i-s)<a)return[];u=g.split(i,s),u._t1=re.map(i,0,1,g._t1,g._t2),u._t2=re.map(s,0,1,g._t1,g._t2),h.push(u),i=s;break}i<1&&(u=g.split(i,1),u._t1=re.map(i,0,1,g._t1,g._t2),u._t2=g._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 ze(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)],g=[],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(m){const x=g[m*i]=re.copy(u[m*i]);x.x+=(m?h:f)*p[m].n.x,x.y+=(m?h:f)*p[m].n.y}),s?([0,1].forEach(function(m){if(!(i===2&&m)){var x=u[m+1],w={x:x.x-v.x,y:x.y-v.y},b=s?s((m+1)/i):n;s&&!a&&(b=-b);var C=ro(w.x*w.x+w.y*w.y);w.x/=C,w.y/=C,g[m+1]={x:x.x+b*w.x,y:x.y+b*w.y}}}),new ze(g)):([0,1].forEach(m=>{if(i===2&&m)return;const x=g[m*i],w=this.derivative(m),b={x:x.x+w.x,y:x.y+w.y};g[m+1]=re.lli4(x,b,v,u[m+1])}),new ze(g))}outline(n,i,s,a){if(i=i===void 0?n:i,this._linear){const T=this.normal(0),z=this.points[0],A=this.points[this.points.length-1];let L,W,X;s===void 0&&(s=n,a=i),L={x:z.x+T.x*n,y:z.y+T.y*n},X={x:A.x+T.x*s,y:A.y+T.y*s},W={x:(L.x+X.x)/2,y:(L.y+X.y)/2};const Z=[L,W,X];L={x:z.x-T.x*i,y:z.y-T.y*i},X={x:A.x-T.x*a,y:A.y-T.y*a},W={x:(L.x+X.x)/2,y:(L.y+X.y)/2};const oe=[X,W,L],de=re.makeline(oe[2],Z[0]),F=re.makeline(Z[2],oe[0]),ee=[de,new ze(Z),F,new ze(oe)];return new uo(ee)}const u=this.reduce(),f=u.length,h=[];let p=[],g,v=0,m=this.length();const x=typeof s<"u"&&typeof a<"u";function w(T,z,A,L,W){return function(X){const Z=L/A,oe=(L+W)/A,de=z-T;return re.map(X,0,1,T+Z*de,T+oe*de)}}u.forEach(function(T){const z=T.length();x?(h.push(T.scale(w(n,s,m,v,z))),p.push(T.scale(w(-i,-a,m,v,z)))):(h.push(T.scale(n)),p.push(T.scale(-i))),v+=z}),p=p.map(function(T){return g=T.points,g[3]?T.points=[g[3],g[2],g[1],g[0]]:T.points=[g[2],g[1],g[0]],T}).reverse();const b=h[0].points[0],C=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,b),D=re.makeline(C,k),P=[O].concat(h).concat([D]).concat(p);return new uo(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 ze&&(n=n.reduce()),this.curveintersects(this.reduce(),n,i)):this.selfintersects(i)}lineIntersects(n){const i=Cp(n.p1.x,n.p2.x),s=Cp(n.p1.y,n.p2.y),a=Ep(n.p1.x,n.p2.x),u=Ep(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),g=re.dist(n,f),v=re.dist(n,h);return no(g-p)+no(v-p)}_iterate(n,i){let s=0,a=1,u;do{u=0,a=1;let f=this.get(s),h,p,g,v,m=!1,x=!1,w,b=a,C=1;do if(x=m,v=g,b=(s+a)/2,h=this.get(b),p=this.get(a),g=re.getccenter(f,h,p),g.interval={start:s,end:a},m=this._error(g,f,s,a)<=n,w=x&&!m,w||(C=a),m){if(a>=1){if(g.interval.end=C=1,v=g,a>1){let k={x:g.x+g.r*fS(g.e),y:g.y+g.r*hS(g.e)};g.e+=re.angle({x:g.x,y:g.y},k,this.get(1))}break}a=a+(a-s)/2}else a=b;while(!w&&u++<100);if(u>=100)break;v=v||g,i.push(v),s=C}while(a<1);return i}}function Xu(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 gS(e){if(Array.isArray(e))return e}function mS(e){if(Array.isArray(e))return Xu(e)}function yS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vS(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,g=!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){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function xS(){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 _S(){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 wS(e,n){if(e==null)return{};var i,s,a=kS(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 kS(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 SS(e,n){return gS(e)||vS(e,n)||lm(e,n)||xS()}function bS(e){return mS(e)||yS(e)||lm(e)||_S()}function CS(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 ES(e){var n=CS(e,"string");return typeof n=="symbol"?n:n+""}function lm(e,n){if(e){if(typeof e=="string")return Xu(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)?Xu(e,n):void 0}}var NS=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 g=h,v=p;return a.forEach(function(m,x){var w=m.keyAccessor,b=m.isProp,C;if(b){var S=v,k=S[w],O=wS(S,[w].map(ES));C=k,v=O}else C=w(v,x);x+1<a.length?(g.hasOwnProperty(C)||(g[C]={}),g=g[C]):i?(g.hasOwnProperty(C)||(g[C]=[]),g[C].push(v)):g[C]=v}),h},{});i instanceof Function&&function h(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;g===a.length?Object.keys(p).forEach(function(v){return p[v]=i(p[v])}):Object.values(p).forEach(function(v){return h(v,g+1)})}(u);var f=u;return s&&(f=[],function h(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];g.length===a.length?f.push({keys:g,vals:p}):Object.entries(p).forEach(function(v){var m=SS(v,2),x=m[0],w=m[1];return h(w,[].concat(bS(g),[x]))})}(u),n instanceof Array&&n.length===0&&f.length===1&&(f[0].keys=[])),f};function PS(e,n){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(n).domain(e);break}return this}const Np=Symbol("implicit");function am(){var e=new Kd,n=[],i=[],s=Np;function a(u){let f=e.get(u);if(f===void 0){if(s!==Np)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 Kd;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 am(n,i).unknown(s)},PS.apply(a,arguments),a}function TS(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 jS=TS("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");function MS(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 OS=`.force-graph-container canvas {
141
+ display: block;
142
+ user-select: none;
143
+ outline: none;
144
+ -webkit-tap-highlight-color: transparent;
145
+ }
146
+
147
+ .force-graph-container .clickable {
148
+ cursor: pointer;
149
+ }
150
+
151
+ .force-graph-container .grabbable {
152
+ cursor: move;
153
+ cursor: grab;
154
+ cursor: -moz-grab;
155
+ cursor: -webkit-grab;
156
+ }
157
+
158
+ .force-graph-container .grabbable:active {
159
+ cursor: grabbing;
160
+ cursor: -moz-grabbing;
161
+ cursor: -webkit-grabbing;
162
+ }
163
+ `;MS(OS);function Yu(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 RS(e){if(Array.isArray(e))return e}function AS(e){if(Array.isArray(e))return Yu(e)}function Pp(e,n,i){if(um())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 xo(e,n,i){return(n=$S(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function um(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(um=function(){return!!e})()}function zS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DS(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,g=!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){g=!0,a=v}finally{try{if(!p&&i.return!=null&&(f=i.return(),Object(f)!==f))return}finally{if(g)throw a}}return h}}function IS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
164
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
165
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tp(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 ti(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Tp(Object(i),!0).forEach(function(s){xo(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Tp(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function co(e,n){return RS(e)||DS(e,n)||cm(e,n)||IS()}function Ft(e){return AS(e)||zS(e)||cm(e)||LS()}function FS(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 $S(e){var n=FS(e,"string");return typeof n=="symbol"?n:n+""}function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}function cm(e,n){if(e){if(typeof e=="string")return Yu(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)?Yu(e,n):void 0}}var US=am(jS);function jp(e,n,i){!n||typeof i!="string"||e.filter(function(s){return!s[i]}).forEach(function(s){s[i]=US(n(s))})}function HS(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(w){throw"Invalid DAG structure! Found cycle in node path: ".concat(w.join(" -> "),".")}:h,g={};i.forEach(function(w){return g[n(w)]={data:w,out:[],depth:-1,skip:!f(w)}}),s.forEach(function(w){var b=w.source,C=w.target,S=P(b),k=P(C);if(!g.hasOwnProperty(S))throw"Missing source node with id: ".concat(S);if(!g.hasOwnProperty(k))throw"Missing target node with id: ".concat(k);var O=g[S],D=g[k];O.out.push(D);function P(T){return Zu(T)==="object"?n(T):T}});var v=[];x(Object.values(g));var m=Object.assign.apply(Object,[{}].concat(Ft(Object.entries(g).filter(function(w){var b=co(w,2),C=b[1];return!C.skip}).map(function(w){var b=co(w,2),C=b[0],S=b[1];return xo({},C,S.depth)}))));return m;function x(w){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,S=function(){var P=w[k];if(b.indexOf(P)!==-1){var T=[].concat(Ft(b.slice(b.indexOf(P))),[P]).map(function(z){return n(z.data)});return v.some(function(z){return z.length===T.length&&z.every(function(A,L){return A===T[L]})})||(v.push(T),p(T)),1}C>P.depth&&(P.depth=C,x(P.out,[].concat(Ft(b),[P]),C+(P.skip?0:1)))},k=0,O=w.length;k<O;k++)S()}}var qS=2,lt=function(n,i){return i.onNeedsRedraw&&i.onNeedsRedraw()},Mp=function(n,i){if(!i.isShadow){var s=je(i.linkDirectionalParticles);i.graphData.links.forEach(function(a){var u=Math.round(Math.abs(s(a)));u?a.__photons=Ft(Array(u)).map(function(){return{}}):delete a.__photons})}},pl=hc({props:{graphData:{default:{nodes:[],links:[]},onChange:function(n,i){i.engineRunning=!1,Mp(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:lt},nodeId:{default:"id"},nodeVal:{default:"val",triggerUpdate:!1,onChange:lt},nodeColor:{default:"color",triggerUpdate:!1,onChange:lt},nodeAutoColorBy:{},nodeCanvasObject:{triggerUpdate:!1,onChange:lt},nodeCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:lt},nodeVisibility:{default:!0,triggerUpdate:!1,onChange:lt},linkSource:{default:"source"},linkTarget:{default:"target"},linkVisibility:{default:!0,triggerUpdate:!1,onChange:lt},linkColor:{default:"color",triggerUpdate:!1,onChange:lt},linkAutoColorBy:{},linkLineDash:{triggerUpdate:!1,onChange:lt},linkWidth:{default:1,triggerUpdate:!1,onChange:lt},linkCurvature:{default:0,triggerUpdate:!1,onChange:lt},linkCanvasObject:{triggerUpdate:!1,onChange:lt},linkCanvasObjectMode:{default:function(){return"replace"},triggerUpdate:!1,onChange:lt},linkDirectionalArrowLength:{default:0,triggerUpdate:!1,onChange:lt},linkDirectionalArrowColor:{triggerUpdate:!1,onChange:lt},linkDirectionalArrowRelPos:{default:.5,triggerUpdate:!1,onChange:lt},linkDirectionalParticles:{default:0,triggerUpdate:!1,onChange:Mp},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=je(n.nodeVisibility),p=je(n.nodeVal),g=je(n.nodeColor),v=je(n.nodeCanvasObjectMode),m=n.ctx,x=n.isShadow/n.globalScale,w=n.graphData.nodes.filter(h);m.save(),w.forEach(function(b){var C=v(b);if(n.nodeCanvasObject&&(C==="before"||C==="replace")&&(n.nodeCanvasObject(b,m,n.globalScale),C==="replace")){m.restore();return}var S=Math.sqrt(Math.max(0,p(b)||1))*n.nodeRelSize+x;m.beginPath(),m.arc(b.x,b.y,S,0,2*Math.PI,!1),m.fillStyle=g(b)||"rgba(31, 120, 180, 0.92)",m.fill(),n.nodeCanvasObject&&C==="after"&&n.nodeCanvasObject(b,n.ctx,n.globalScale)}),m.restore()}function a(){var h=je(n.linkVisibility),p=je(n.linkColor),g=je(n.linkWidth),v=je(n.linkLineDash),m=je(n.linkCurvature),x=je(n.linkCanvasObjectMode),w=n.ctx,b=n.isShadow*2,C=n.graphData.links.filter(h);C.forEach(z);var S=[],k=[],O=C;if(n.linkCanvasObject){var D=[],P=[];C.forEach(function(A){return({before:S,after:k,replace:D}[x(A)]||P).push(A)}),O=[].concat(Ft(S),k,P),S=S.concat(D)}w.save(),S.forEach(function(A){return n.linkCanvasObject(A,w,n.globalScale)}),w.restore();var T=NS(O,[p,g,v]);w.save(),Object.entries(T).forEach(function(A){var L=co(A,2),W=L[0],X=L[1],Z=!W||W==="undefined"?"rgba(0,0,0,0.15)":W;Object.entries(X).forEach(function(oe){var de=co(oe,2),F=de[0],ee=de[1],B=(F||1)/n.globalScale+b;Object.entries(ee).forEach(function(te){var V=co(te,2);V[0];var Y=V[1],Q=v(Y[0]);w.beginPath(),Y.forEach(function(j){var q=j.source,ae=j.target;if(!(!q||!ae||!q.hasOwnProperty("x")||!ae.hasOwnProperty("x"))){w.moveTo(q.x,q.y);var ce=j.__controlPoints;ce?w[ce.length===2?"quadraticCurveTo":"bezierCurveTo"].apply(w,Ft(ce).concat([ae.x,ae.y])):w.lineTo(ae.x,ae.y)}}),w.strokeStyle=Z,w.lineWidth=B,w.setLineDash(Q||[]),w.stroke()})})}),w.restore(),w.save(),k.forEach(function(A){return n.linkCanvasObject(A,w,n.globalScale)}),w.restore();function z(A){var L=m(A);if(!L){A.__controlPoints=null;return}var W=A.source,X=A.target;if(!(!W||!X||!W.hasOwnProperty("x")||!X.hasOwnProperty("x"))){var Z=Math.sqrt(Math.pow(X.x-W.x,2)+Math.pow(X.y-W.y,2));if(Z>0){var oe=Math.atan2(X.y-W.y,X.x-W.x),de=Z*L,F={x:(W.x+X.x)/2+de*Math.cos(oe-Math.PI/2),y:(W.y+X.y)/2+de*Math.sin(oe-Math.PI/2)};A.__controlPoints=[F.x,F.y]}else{var ee=L*70;A.__controlPoints=[X.x,X.y-ee,X.x+ee,X.y]}}}}function u(){var h=1.6,p=.2,g=je(n.linkDirectionalArrowLength),v=je(n.linkDirectionalArrowRelPos),m=je(n.linkVisibility),x=je(n.linkDirectionalArrowColor||n.linkColor),w=je(n.nodeVal),b=n.ctx;b.save(),n.graphData.links.filter(m).forEach(function(C){var S=g(C);if(!(!S||S<0)){var k=C.source,O=C.target;if(!(!k||!O||!k.hasOwnProperty("x")||!O.hasOwnProperty("x"))){var D=Math.sqrt(Math.max(0,w(k)||1))*n.nodeRelSize,P=Math.sqrt(Math.max(0,w(O)||1))*n.nodeRelSize,T=Math.min(1,Math.max(0,v(C))),z=x(C)||"rgba(0,0,0,0.28)",A=S/h/2,L=C.__controlPoints&&Pp(ze,[k.x,k.y].concat(Ft(C.__controlPoints),[O.x,O.y])),W=L?function(B){return L.get(B)}:function(B){return{x:k.x+(O.x-k.x)*B||0,y:k.y+(O.y-k.y)*B||0}},X=L?L.length():Math.sqrt(Math.pow(O.x-k.x,2)+Math.pow(O.y-k.y,2)),Z=D+S+(X-D-P-S)*T,oe=W(Z/X),de=W((Z-S)/X),F=W((Z-S*(1-p))/X),ee=Math.atan2(oe.y-de.y,oe.x-de.x)-Math.PI/2;b.beginPath(),b.moveTo(oe.x,oe.y),b.lineTo(de.x+A*Math.cos(ee),de.y+A*Math.sin(ee)),b.lineTo(F.x,F.y),b.lineTo(de.x-A*Math.cos(ee),de.y-A*Math.sin(ee)),b.fillStyle=z,b.fill()}}}),b.restore()}function f(){var h=je(n.linkDirectionalParticles),p=je(n.linkDirectionalParticleSpeed),g=je(n.linkDirectionalParticleWidth),v=je(n.linkVisibility),m=je(n.linkDirectionalParticleColor||n.linkColor),x=n.ctx;x.save(),n.graphData.links.filter(v).forEach(function(w){var b=h(w);if(!(!w.hasOwnProperty("__photons")||!w.__photons.length)){var C=w.source,S=w.target;if(!(!C||!S||!C.hasOwnProperty("x")||!S.hasOwnProperty("x"))){var k=p(w),O=w.__photons||[],D=Math.max(0,g(w)/2)/Math.sqrt(n.globalScale),P=m(w)||"rgba(0,0,0,0.28)";x.fillStyle=P;var T=w.__controlPoints?Pp(ze,[C.x,C.y].concat(Ft(w.__controlPoints),[S.x,S.y])):null,z=0,A=!1;O.forEach(function(L){var W=!!L.__singleHop;if(L.hasOwnProperty("__progressRatio")||(L.__progressRatio=W?0:z/b),!W&&z++,L.__progressRatio+=k,L.__progressRatio>=1)if(!W)L.__progressRatio=L.__progressRatio%1;else{A=!0;return}var X=L.__progressRatio,Z=T?T.get(X):{x:C.x+(S.x-C.x)*X||0,y:C.y+(S.y-C.y)*X||0};x.beginPath(),x.arc(Z.x,Z.y,D,0,2*Math.PI,!1),x.fill()}),A&&(w.__photons=w.__photons.filter(function(L){return!L.__singleHop||L.__progressRatio<=1}))}}}),x.restore()}},emitParticle:function(n,i){return i&&(!i.__photons&&(i.__photons=[]),i.__photons.push({__singleHop:!0})),this}},stateInit:function(){return{forceLayout:oS().force("link",Yk()).force("charge",sS()).force("center",J2()).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&&jp(n.graphData.nodes,je(n.nodeAutoColorBy),n.nodeColor),n.linkAutoColorBy!==null&&jp(n.graphData.links,je(n.linkAutoColorBy),n.linkColor),n.graphData.links.forEach(function(x){x.source=x[n.linkSource],x.target=x[n.linkTarget]}),n.forceLayout.stop().alpha(1).nodes(n.graphData.nodes);var s=n.forceLayout.force("link");s&&s.id(function(x){return x[n.nodeId]}).links(n.graphData.links);var a=n.dagMode&&HS(n.graphData,function(x){return x[n.nodeId]},{nodeFilter:n.dagNodeFilter,onLoopError:n.onDagError||void 0}),u=Math.max.apply(Math,Ft(Object.values(a||[]))),f=n.dagLevelDistance||n.graphData.nodes.length/(u||1)*qS*(["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(x){return delete x[h]})}if(["lr","rl","td","bu"].includes(n.dagMode)){var p=["rl","bu"].includes(n.dagMode),g=function(w){return(a[w[n.nodeId]]-u/2)*f*(p?-1:1)},v=["lr","rl"].includes(n.dagMode)?"fx":"fy";n.graphData.nodes.filter(n.dagNodeFilter).forEach(function(x){return x[v]=g(x)})}n.forceLayout.force("dagRadial",["radialin","radialout"].indexOf(n.dagMode)!==-1?lS(function(x){var w=a[x[n.nodeId]]||-1;return(n.dagMode==="radialin"?u-w:w)*f}).strength(function(x){return n.dagNodeFilter(x)?1:0}):null);for(var m=0;m<n.warmupTicks&&!(n.d3AlphaMin>0&&n.forceLayout.alpha()<n.d3AlphaMin);m++)n.forceLayout.tick();this.resetCountdown(),n.onFinishUpdate()}});function fm(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(g){return p[g][u](h)})},triggerUpdate:!1}},linkMethod:function(u){return function(f){for(var h=arguments.length,p=new Array(h>1?h-1:0),g=1;g<h;g++)p[g-1]=arguments[g];var v=[];return i.forEach(function(m){var x=f[m],w=x[u].apply(x,p);w!==x&&v.push(w)}),v.length?v[0]:this}}}}var VS=800,BS=4,QS=5,hm=fm("forceGraph",pl),WS=fm(["forceGraph","shadowGraph"],pl),KS=Object.assign.apply(Object,Ft(["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 xo({},e,hm.linkProp(e))})).concat(Ft(["nodeRelSize","nodeId","nodeVal","nodeVisibility","linkSource","linkTarget","linkVisibility","linkCurvature"].map(function(e){return xo({},e,WS.linkProp(e))})))),GS=Object.assign.apply(Object,Ft(["d3Force","d3ReheatSimulation","emitParticle"].map(function(e){return xo({},e,hm.linkMethod(e))})));function Su(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=an(e.canvas).k;e.zoom.translateBy(e.zoom.__baseElem,(e.width-n)/2/a,(e.height-i)/2/a),e.needsRedraw=!0}}function dm(e){var n=window.devicePixelRatio;e.setTransform(n,0,0,n,0,0)}function Op(e,n,i){e.save(),dm(e),e.clearRect(0,0,n,i),e.restore()}var XS=hc({props:ti({width:{default:window.innerWidth,onChange:function(n,i){return Su(i)},triggerUpdate:!1},height:{default:window.innerHeight,onChange:function(n,i){return Su(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}},KS),aliases:{stopAnimation:"pauseAnimation"},methods:ti({graph2ScreenCoords:function(n,i,s){var a=an(n.canvas);return{x:i*a.k+a.x,y:s*a.k+a.y}},screen2GraphCoords:function(n,i,s){var a=an(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 tp(f()).to(u,a).easing(br.Quadratic.Out).onUpdate(h).start()):h(u),this}return f();function f(){var p=an(n.canvas);return{x:(n.width/2-p.x)/p.k,y:(n.height/2-p.y)/p.k}}function h(p){var g=p.x,v=p.y;n.zoom.translateTo(n.zoom.__baseElem,g===void 0?f().x:g,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 tp({k:a()}).to({k:i},s).easing(br.Quadratic.Out).onUpdate(function(f){var h=f.k;return u(h)}).start()):u(i),this;return a();function a(){return an(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},g=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(g,i)}return this},getGraphBbox:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},s=je(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:[Yd(u,function(f){return f.x-f.r}),Xd(u,function(f){return f.x+f.r})],y:[Yd(u,function(f){return f.y-f.r}),Xd(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:[]})}},GS),stateInit:function(){return{lastSetZoom:1,zoom:lw(),forceGraph:new pl,shadowGraph:new pl().cooldownTicks(0).nodeColor("__indexColor").linkColor("__indexColor").isShadow(!0),colorTracker:new M2,tweenGroup:new zg}},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 m=null,x=window.devicePixelRatio,w=h.x>0&&h.y>0?f.getImageData(h.x*x,h.y*x,1,1):null;return w&&(m=i.colorTracker.lookup(w.data)),m};Lt(i.canvas).call(yx().subject(function(){if(!i.enableNodeDrag)return null;var v=p();return v&&v.type==="Node"?v.d:null}).on("start",function(v){var m=v.subject;m.__initialDragPos={x:m.x,y:m.y,fx:m.fx,fy:m.fy},v.active||(m.fx=m.x,m.fy=m.y),i.canvas.classList.add("grabbable")}).on("drag",function(v){var m=v.subject,x=m.__initialDragPos,w=v,b=an(i.canvas).k,C={x:x.x+(w.x-x.x)/b-m.x,y:x.y+(w.y-x.y)/b-m.y};["x","y"].forEach(function(S){return m["f".concat(S)]=m[S]=x[S]+(w[S]-x[S])/b}),!(!m.__dragged&&QS>=Math.sqrt(fw(["x","y"].map(function(S){return Math.pow(v[S]-x[S],2)}))))&&(i.forceGraph.d3AlphaTarget(.3).resetCountdown(),i.isPointerDragging=!0,m.__dragged=!0,i.onNodeDrag(m,C))}).on("end",function(v){var m=v.subject,x=m.__initialDragPos,w={x:m.x-x.x,y:m.y-x.y};x.fx===void 0&&(m.fx=void 0),x.fy===void 0&&(m.fy=void 0),delete m.__initialDragPos,i.forceGraph.d3AlphaTarget()&&i.forceGraph.d3AlphaTarget(0).resetCountdown(),i.canvas.classList.remove("grabbable"),i.isPointerDragging=!1,m.__dragged&&(delete m.__dragged,i.onNodeDragEnd(m,w))})),i.zoom(i.zoom.__baseElem=Lt(i.canvas)),i.zoom.__baseElem.on("dblclick.zoom",null),i.zoom.filter(function(v){return!v.button&&i.enableZoomPanInteraction&&(v.type!=="wheel"||je(i.enableZoomInteraction)(v))&&(v.type==="wheel"||je(i.enablePanInteraction)(v))}).on("zoom",function(v){var m=v.transform;[u,f].forEach(function(x){dm(x),x.translate(m.x,m.y),x.scale(m.k,m.k)}),i.isPointerDragging=!0,i.onZoom&&i.onZoom(ti(ti({},m),s.centerAt())),i.needsRedraw=!0}).on("end",function(v){i.isPointerDragging=!1,i.onZoomEnd&&i.onZoomEnd(ti(ti({},v.transform),s.centerAt()))}),Su(i),i.forceGraph.onNeedsRedraw(function(){return i.needsRedraw=!0}).onFinishUpdate(function(){an(i.canvas).k===i.lastSetZoom&&i.graphData.nodes.length&&(i.zoom.scaleTo(i.zoom.__baseElem,i.lastSetZoom=BS/Math.cbrt(i.graphData.nodes.length)),i.needsRedraw=!0)}),i.tooltip=new Z2(a),["pointermove","pointerdown"].forEach(function(v){return a.addEventListener(v,function(m){v==="pointerdown"&&(i.isPointerPressed=!0,i.pointerDownEvent=m),!i.isPointerDragging&&m.type==="pointermove"&&i.onBackgroundClick&&(m.pressure>0||i.isPointerPressed)&&(m.pointerType!=="touch"||m.movementX===void 0||[m.movementX,m.movementY].some(function(b){return Math.abs(b)>1}))&&(i.isPointerDragging=!0);var x=w(a);h.x=m.pageX-x.left,h.y=m.pageY-x.top;function w(b){var C=b.getBoundingClientRect(),S=window.pageXOffset||document.documentElement.scrollLeft,k=window.pageYOffset||document.documentElement.scrollTop;return{top:C.top+k,left:C.left+S}}},{passive:!0})}),a.addEventListener("pointerup",function(v){if(i.isPointerPressed){if(i.isPointerPressed=!1,i.isPointerDragging){i.isPointerDragging=!1;return}var m=[v,i.pointerDownEvent];requestAnimationFrame(function(){if(v.button===0)if(i.hoverObj){var x=i["on".concat(i.hoverObj.type,"Click")];x&&x.apply(void 0,[i.hoverObj.d].concat(m))}else i.onBackgroundClick&&i.onBackgroundClick.apply(i,m);if(v.button===2)if(i.hoverObj){var w=i["on".concat(i.hoverObj.type,"RightClick")];w&&w.apply(void 0,[i.hoverObj.d].concat(m))}else i.onBackgroundRightClick&&i.onBackgroundRightClick.apply(i,m)})}},{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 g=Lw(function(){Op(f,i.width,i.height),i.shadowGraph.linkWidth(function(m){return je(i.linkWidth)(m)+i.linkHoverPrecision});var v=an(i.canvas);i.shadowGraph.globalScale(v.k).tickFrame()},VS);i.flushShadowCanvas=g.flush,(this._animationCycle=function v(){var m=!i.autoPauseRedraw||!!i.needsRedraw||i.forceGraph.isEngineRunning()||i.graphData.links.some(function(D){return D.__photons&&D.__photons.length});if(i.needsRedraw=!1,i.enablePointerInteraction){var x=i.isPointerDragging?null:p();if(x!==i.hoverObj){var w=i.hoverObj,b=w?w.type:null,C=x?x.type:null;if(b&&b!==C){var S=i["on".concat(b,"Hover")];S&&S(null,w.d)}if(C){var k=i["on".concat(C,"Hover")];k&&k(x.d,b===C?w.d:null)}i.tooltip.content(x&&je(i["".concat(x.type.toLowerCase(),"Label")])(x.d)||null),i.canvas.classList[x&&i["on".concat(C,"Click")]||!x&&i.onBackgroundClick?"add":"remove"]("clickable"),i.hoverObj=x}m&&g()}if(m){Op(u,i.width,i.height);var O=an(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){}}),bu={exports:{}},Cu,Rp;function YS(){if(Rp)return Cu;Rp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cu=e,Cu}var Eu,Ap;function ZS(){if(Ap)return Eu;Ap=1;var e=YS();function n(){}function i(){}return i.resetWarningCache=n,Eu=function(){function s(f,h,p,g,v,m){if(m!==e){var x=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 x.name="Invariant Violation",x}}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},Eu}var zp;function JS(){return zp||(zp=1,bu.exports=ZS()()),bu.exports}var eb=JS();const I=qp(eb),kl={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},pm={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},_c={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])},tb=Object.assign({},kl,pm,{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({},kl,pm,_c,{enableNavigationControls:I.bool,controlType:I.oneOf(["trackball","orbit","fly"]),rendererConfig:I.object,extraRenderers:I.arrayOf(I.shape({render:I.func.isRequired}))});Object.assign({},kl,_c,{nodeDesc:I.oneOfType([I.string,I.func]),linkDesc:I.oneOfType([I.string,I.func])});Object.assign({},kl,_c,{markerAttrs:I.object,yOffset:I.number,glScale:I.number});const wc=Tv(XS,{methodNames:["emitParticle","d3Force","d3ReheatSimulation","stopAnimation","pauseAnimation","resumeAnimation","centerAt","zoom","zoomToFit","getGraphBbox","screen2GraphCoords","graph2ScreenCoords"]});wc.displayName="ForceGraph2D";wc.propTypes=tb;const nb=e=>{const n=[],i=[],s=new Map;e.forEach(f=>{const h=f.metadata;if(h?.type==="fragment"&&h.documentId){const p=s.get(h.documentId)||0;s.set(h.documentId,p+1)}}),e.forEach(f=>{const h=f.metadata;if(!f.id||!h||typeof h!="object")return;const p=()=>{let v="";if(h.title?v=h.title:h.filename?v=h.filename:h.originalFilename?v=h.originalFilename:h.path?v=h.path.split("/").pop()||h.path:v=`${(h.type||"").toLowerCase()==="document"?"Doc":"Fragment"} ${f.id?f.id.substring(0,8):"Unknown"}`,h.type==="document"&&f.id){const m=s.get(f.id)||0;m>0&&(v+=` (${m} fragments)`)}return v},g={id:f.id,name:p(),memory:f,val:3,type:(h.type||"").toLowerCase()==="document"?"document":"fragment"};(h.type||"").toLowerCase()==="document"?(g.val=5,n.push(g)):(h.type||"").toLowerCase()==="fragment"||h.documentId&&(h.type||"").toLowerCase()!=="document"?(g.val=3,i.push(g)):n.push(g)});const a=[];return i.forEach(f=>{const h=f.memory.metadata;if(h.documentId){const p=n.find(g=>g.id===h.documentId);p&&a.push({source:p.id,target:f.id,value:1})}}),{nodes:[...n,...i],links:a}};function rb({memories:e,onNodeClick:n,selectedMemoryId:i}){const s=le.useRef(null),[a,u]=le.useState(!1),[f,h]=le.useState(!0),[p,g]=le.useState({nodes:[],links:[]}),v=le.useRef(null),[m,x]=le.useState({width:800,height:600}),w=4;le.useEffect(()=>{if(e.length>0){const S=nb(e);g(S)}},[e]),le.useEffect(()=>()=>{s.current=null,u(!1),h(!1)},[]),le.useEffect(()=>{const S=()=>{if(v.current){const{offsetWidth:k,offsetHeight:O}=v.current;x({width:k,height:O})}};return S(),window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[]),le.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 b=le.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)}},[]),C=()=>N.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:[N.jsx("div",{className:"font-medium mb-2 text-xs",children:"Legend"}),N.jsxs("div",{className:"flex items-center mb-2",children:[N.jsx("div",{className:"w-3 h-3 rounded-full bg-orange-500/90 mr-2 border border-orange-600/60"}),N.jsx("span",{children:"Document"})]}),N.jsxs("div",{className:"flex items-center",children:[N.jsx("div",{className:"w-3 h-3 rounded-full bg-gray-400/90 mr-2 border border-gray-500/60"}),N.jsx("span",{children:"Fragment"})]})]});return N.jsxs("div",{ref:v,className:"w-full h-full relative",children:[C(),f&&N.jsx(wc,{ref:S=>{s.current=S,S&&!a&&b(S)},graphData:p,width:m.width,height:m.height,backgroundColor:"hsla(var(--background), 0.8)",linkColor:()=>"hsla(var(--muted-foreground), 0.2)",linkWidth:1,linkDirectionalParticles:1,linkDirectionalParticleWidth:1,linkDirectionalParticleSpeed:.003,nodeRelSize:w,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:D,y:P}=S,T=(S.val||3)*w,z=10/O,A=i===S.id,L=S.type==="document";if(k.beginPath(),k.arc(D||0,P||0,T,0,2*Math.PI),k.fillStyle=L?"hsl(30, 100%, 50%)":"hsl(210, 10%, 70%)",k.fill(),k.strokeStyle=L?"hsl(30, 100%, 35%)":"hsl(210, 10%, 45%)",k.lineWidth=A?2:1,k.stroke(),O>=1.4||A){const W=S.name||S.id.substring(0,6),X=S.memory.metadata,Z=L?W:X.position!==void 0?`#${X.position}`:W;k.font=`${A?"bold ":""}${z}px Arial`,k.textAlign="center",k.textBaseline="middle",k.strokeStyle="hsla(var(--background), 0.8)",k.lineWidth=3,k.strokeText(Z,D||0,P||0),k.fillStyle="hsla(var(--foreground), 0.9)",k.fillText(Z,D||0,P||0)}if(A){k.beginPath(),k.arc(D||0,P||0,T*1.4,0,2*Math.PI),k.strokeStyle=L?"hsla(30, 100%, 60%, 0.8)":"hsla(210, 10%, 80%, 0.8)",k.lineWidth=1.5,k.stroke();const W=k.createRadialGradient(D||0,P||0,T,D||0,P||0,T*2);W.addColorStop(0,L?"hsla(30, 100%, 60%, 0.3)":"hsla(210, 10%, 80%, 0.3)"),W.addColorStop(1,"hsla(0, 0%, 0%, 0)"),k.fillStyle=W,k.beginPath(),k.arc(D||0,P||0,T*2,0,2*Math.PI),k.fill()}}})]})}const Co=(...e)=>e.filter(Boolean).join(" "),ib=()=>({toast:({title:e,description:n,variant:i})=>{console.log(`Toast: ${e} - ${n} (${i||"default"})`)}}),Dp=({open:e,onOpenChange:n,children:i})=>e?N.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:N.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,Ip=({className:e,children:n})=>N.jsx("div",{className:Co("p-6 flex flex-col border-border",e),children:n}),Lp=({className:e,children:n})=>N.jsx("div",{className:Co("mb-4",e),children:n}),Fp=({className:e,children:n})=>N.jsx("h2",{className:Co("text-lg font-semibold",e),children:n}),$p=({className:e,children:n})=>N.jsx("p",{className:Co("text-sm text-muted-foreground",e),children:n}),Up=({className:e,children:n})=>N.jsx("div",{className:Co("flex justify-end gap-2 mt-4",e),children:n}),Gs=10,gm=e=>{const i=e.name.toLowerCase().split(".").pop()||"",s=["ts","tsx","js","jsx","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","lua","pl","pm","dart","hs","elm","ml","fs","fsx","vb","pas","d","nim","zig","jl","tcl","awk","sed","vue","svelte","astro","gitignore","dockerignore","editorconfig","env","cfg","conf","ini","log","txt"],a=["md","markdown"],u=["json"],f=["xml"],h=["html","htm"],p=["css","scss","sass","less"],g=["csv","tsv"],v=["yaml","yml"];return s.includes(i)?"text/plain":a.includes(i)?"text/markdown":u.includes(i)?"application/json":f.includes(i)?"application/xml":h.includes(i)?"text/html":p.includes(i)?"text/css":g.includes(i)?"text/csv":v.includes(i)?"text/yaml":i==="pdf"?"application/pdf":i==="doc"?"application/msword":i==="docx"?"application/vnd.openxmlformats-officedocument.wordprocessingml.document":e.type||"application/octet-stream"},_o={getKnowledgeDocuments:async(e,n)=>{const i=new URLSearchParams;i.append("agentId",e),n?.limit&&i.append("limit",n.limit.toString()),n?.before&&i.append("before",n.before.toString()),n?.includeEmbedding&&i.append("includeEmbedding","true");const s=await fetch(`/api/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;i.append("agentId",e),n?.limit&&i.append("limit",n.limit.toString()),n?.before&&i.append("before",n.before.toString()),n?.documentId&&i.append("documentId",n.documentId),n?.documentsOnly&&i.append("documentsOnly","true");const s=await fetch(`/api/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=new URLSearchParams;i.append("agentId",e);const s=await fetch(`/api/documents/${n}?${i.toString()}`,{method:"DELETE"});if(!s.ok){const a=await s.text();throw new Error(`Failed to delete knowledge document: ${s.status} ${a}`)}if(s.status!==204)return await s.json()},uploadKnowledge:async(e,n)=>{const i=new FormData;for(const a of n){const u=gm(a),f=new Blob([a],{type:u});i.append("files",f,a.name)}i.append("agentId",e);const s=await fetch("/api/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()},searchKnowledge:async(e,n,i=.5,s=20)=>{const a=new URLSearchParams;a.append("agentId",e),a.append("q",n),a.append("threshold",i.toString()),a.append("limit",s.toString());const u=await fetch(`/api/search?${a.toString()}`);if(!u.ok){const f=await u.text();throw new Error(`Failed to search knowledge: ${u.status} ${f}`)}return await u.json()}},ob=(e,n=!0,i=!1)=>Ou({queryKey:["agents",e,"knowledge","documents",{includeEmbedding:i}],queryFn:async()=>(await _o.getKnowledgeDocuments(e,{includeEmbedding:i})).data.memories||[],enabled:n}),sb=(e,n=!0,i)=>{const{data:s=[],isLoading:a,error:u}=Ou({queryKey:["agents",e,"knowledge","documents-graph"],queryFn:async()=>(await _o.getKnowledgeChunks(e,{documentsOnly:!0,limit:1e3})).data.chunks||[],enabled:n&&!i}),{data:f=[],isLoading:h,error:p}=Ou({queryKey:["agents",e,"knowledge","document-fragments",i],queryFn:async()=>i?(await _o.getKnowledgeChunks(e,{documentId:i})).data.chunks||[]:[],enabled:n&&!!i}),g=i?f:s,v=a||h,m=u||p;return console.log(`Graph data - Mode: ${i?"Document+Fragments":"Documents only"}, Total nodes: ${g.length}`),{data:g,isLoading:v,error:m,documents:i?s:g,fragments:i?f.filter(x=>x.metadata?.type==="fragment"):[],mode:i?"document-fragments":"documents-only"}},lb=e=>{const n=gl();return By({mutationFn:async({knowledgeId:i})=>{await _o.deleteKnowledgeDocument(e,i)},onSuccess:()=>{n.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})}})};function ab({agentId:e}){const[n,i]=le.useState(null),[s,a]=le.useState(!1),[u,f]=le.useState(Gs),[h,p]=le.useState(!1),[g,v]=le.useState("list"),[m,x]=le.useState(null),[w,b]=le.useState(1),[C,S]=le.useState(!1),[k,O]=le.useState(""),[D,P]=le.useState(!1),[T,z]=le.useState(null),[A,L]=le.useState([]),[W,X]=le.useState(!1),[Z,oe]=le.useState(""),[de,F]=le.useState(.5),[ee,B]=le.useState([]),[te,V]=le.useState(!1),[Y,Q]=le.useState(null),[j,q]=le.useState(void 0),ae=le.useRef(null),ce=le.useRef(null),{toast:ve}=ib(),we=gl(),{data:be=[],isLoading:ke,error:Pe}=ob(e,g==="list"&&!W,!1),{data:nt=[],isLoading:nr,error:Eo}=sb(e,g==="graph"&&!W,j),Pr=g==="list"?ke:nr,Tr=g==="list"?Pe:Eo,Ut=g==="list"?be:nt,{mutate:No}=lb(e),rr=le.useCallback(()=>{if(!ce.current||h||u>=Ut.length)return;const{scrollTop:ie,scrollHeight:Se,clientHeight:xe}=ce.current;ie+xe>=Se-100&&(p(!0),setTimeout(()=>{f(pt=>Math.min(pt+Gs,Ut.length)),p(!1)},300))},[h,u,Ut.length]);if(le.useEffect(()=>{f(Gs)},[]),le.useEffect(()=>{const ie=ce.current;if(ie)return ie.addEventListener("scroll",rr),()=>ie.removeEventListener("scroll",rr)},[rr]),Pr&&(!Ut||Ut.length===0)&&!W)return N.jsx("div",{className:"flex items-center justify-center h-40",children:"Loading knowledge documents..."});if(Tr&&!W)return N.jsxs("div",{className:"flex items-center justify-center h-40 text-destructive",children:["Error loading knowledge documents: ",Tr.message]});const Po=ie=>{const Se=new Date(ie);return`${Se.toLocaleDateString()} ${Se.toLocaleTimeString()}`},ai=ie=>{switch(ie.split(".").pop()?.toLowerCase()){case"md":return N.jsx(du,{className:"h-4 w-4 text-blue-500"});case"js":case"ts":case"jsx":case"tsx":return N.jsx(du,{className:"h-4 w-4 text-yellow-500"});case"json":return N.jsx(du,{className:"h-4 w-4 text-green-500"});case"pdf":return N.jsx(Sd,{className:"h-4 w-4 text-red-500"});default:return N.jsx(Sd,{className:"h-4 w-4 text-gray-500"})}},ir=ie=>{ie&&window.confirm("Are you sure you want to delete this document?")&&(No({knowledgeId:ie}),i(null))},pn=()=>{ae.current&&ae.current.click()},ui=()=>{S(!0),O(""),L([]),z(null)},ci=()=>{try{if(!new URL(k).protocol.startsWith("http")){z("URL must start with http:// or https://");return}if(A.includes(k)){z("This URL is already in the list");return}L([...A,k]),O(""),z(null)}catch{z("Invalid URL")}},To=ie=>{L(A.filter(Se=>Se!==ie))},fi=async()=>{if(!Z.trim()){Q("Please enter a search query");return}V(!0),Q(null),B([]);try{const ie=await _o.searchKnowledge(e,Z,de);B(ie.data.results||[]),ie.data.results.length===0&&Q("No results found. Try adjusting your search query or lowering the similarity threshold.")}catch(ie){Q(ie.message||"Failed to search knowledge"),B([])}finally{V(!1)}},jo=async()=>{if(k.trim())try{new URL(k).protocol.startsWith("http")&&!A.includes(k)&&L([...A,k])}catch{}if(A.length===0){z("Please add at least one valid URL");return}P(!0),z(null);try{const ie=await fetch("/api/documents",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileUrls:A,agentId:e})});if(!ie.ok){const xe=await ie.text();throw new Error(xe)}const Se=await ie.json();Se.success?(ve({title:"URLs imported",description:`Successfully imported ${A.length} document(s)`}),S(!1),we.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]})):z(Se.error?.message||"Error importing documents from URLs")}catch(ie){z(ie.message||"Error importing documents from URLs"),ve({title:"Error",description:"Failed to import documents from URLs",variant:"destructive"})}finally{P(!1)}},hi=async ie=>{const Se=ie.target.files;if(!(!Se||Se.length===0)){a(!0);try{const xe=Array.from(Se),dt=new FormData;for(const Ze of xe){const gt=gm(Ze),qt=new Blob([Ze],{type:gt});dt.append("files",qt,Ze.name)}dt.append("agentId",e);const pt=await fetch("/api/documents",{method:"POST",body:dt});if(!pt.ok)throw new Error(`Upload failed: ${pt.statusText}`);const Ht=(await pt.json()).data||[];if(Array.isArray(Ht)&&Ht.every(Ze=>Ze.status==="success"))ve({title:"Knowledge Uploaded",description:`Successfully uploaded ${xe.length} file(s)`}),we.invalidateQueries({queryKey:["agents",e,"knowledge","documents"]});else{const Ze=Ht.filter(qt=>qt.status==="success").length,gt=xe.length-Ze;ve({title:gt>0?"Upload Partially Failed":"Upload Issues",description:`Uploaded ${Ze} file(s). ${gt} file(s) failed. Check console for details.`,variant:gt>0?"destructive":"default"}),console.error("Upload results:",Ht)}}catch(xe){ve({title:"Upload Failed",description:xe instanceof Error?xe.message:"Failed to upload knowledge files",variant:"destructive"}),console.error("Upload error:",xe)}finally{a(!1),ae.current&&(ae.current.value="")}}},jr=Ut.slice(0,u),Mo=u<Ut.length,or=()=>N.jsx("div",{className:"flex justify-center p-4",children:h?N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(Jr,{className:"h-4 w-4 animate-spin"}),N.jsx("span",{className:"text-sm text-muted-foreground",children:"Loading more..."})]}):N.jsx(Ye,{variant:"ghost",size:"sm",onClick:()=>f(ie=>ie+Gs),className:"text-xs",children:"Show more"})}),sr=()=>N.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:[N.jsx(nv,{className:"h-12 w-12 text-muted-foreground opacity-20"}),N.jsx("h3",{className:"text-lg font-medium",children:"No Knowledge Documents"}),N.jsx("p",{className:"max-w-md text-sm",children:"No Knowledge Documents found."}),N.jsxs(Ye,{variant:"outline",onClick:pn,children:[N.jsx(bd,{className:"h-4 w-4 mr-2"}),"Upload Documents"]})]}),Sl=({memory:ie,index:Se})=>{const xe=ie.metadata||{},dt=()=>xe.title?xe.title:xe.filename?xe.filename:xe.originalFilename?xe.originalFilename:xe.path?xe.path.split("/").pop()||xe.path:ie.id?`Document ${ie.id.substring(0,8)}`:`Document ${Se+1}`,pt=()=>xe.fileExt?xe.fileExt.toLowerCase():(xe.filename||xe.originalFilename||xe.path||"").split(".").pop()?.toLowerCase()||"doc",On=()=>xe.path?xe.path:xe.filename?xe.filename:xe.originalFilename?xe.originalFilename:xe.source?`Source: ${xe.source}`:"Knowledge Document",Ht=dt(),Ze=On(),gt=pt();return N.jsx("button",{type:"button",className:"w-full text-left",onClick:()=>i(ie),children:N.jsxs(av,{className:"hover:bg-accent/10 transition-colors relative group",children:[N.jsx("div",{className:"absolute top-3 left-3 opacity-70",children:ai(Ht)}),N.jsxs(uv,{className:"p-3 pb-2 pl-10",children:[N.jsx("div",{className:"text-xs text-muted-foreground mb-1 line-clamp-1",children:Ze}),N.jsxs("div",{className:"mb-2",children:[N.jsx("div",{className:"text-sm font-medium mb-1",children:Ht}),xe.description&&N.jsx("div",{className:"text-xs text-muted-foreground line-clamp-2",children:xe.description})]})]}),N.jsx(cv,{className:"p-2 border-t bg-muted/30 text-xs text-muted-foreground",children:N.jsxs("div",{className:"flex justify-between items-center w-full",children:[N.jsxs("div",{className:"flex items-center",children:[N.jsx(rv,{className:"h-3 w-3 mr-1.5"}),N.jsx("span",{children:new Date(ie.createdAt||0).toLocaleString(void 0,{month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"})})]}),N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(Cd,{variant:"outline",className:"px-1.5 py-0 h-5",children:gt||"doc"}),ie.id&&N.jsx(Ye,{variant:"ghost",size:"icon",className:"size-6 opacity-0 group-hover:opacity-100 transition-opacity",onClick:qt=>{qt&&(qt.stopPropagation(),qt.preventDefault()),ir(ie.id||"")},title:"Delete knowledge",children:N.jsx(lv,{className:"h-3.5 w-3.5 text-destructive"})})]})]})})]})},ie.id||Se)},Oo=({memory:ie})=>{const Se=ie.metadata,xe=Se?.type==="fragment";return Se?.type,N.jsxs("div",{className:"border-t border-border bg-card text-card-foreground h-full flex flex-col",children:[N.jsxs("div",{className:"p-4 flex justify-between items-start flex-shrink-0",children:[N.jsxs("div",{className:"space-y-1",children:[N.jsxs("h3",{className:"text-sm font-medium flex items-center gap-2",children:[xe?N.jsxs("span",{className:"flex items-center",children:[N.jsx("div",{className:"h-3 w-3 rounded-full bg-accent mr-1.5"}),"Fragment"]}):N.jsxs("span",{className:"flex items-center",children:[N.jsx("div",{className:"h-3 w-3 rounded-full bg-primary mr-1.5"}),"Document"]}),N.jsx("span",{className:"text-muted-foreground ml-2",children:Se?.title||ie.id?.substring(0,8)})]}),N.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[N.jsxs("div",{className:"col-span-2",children:["ID: ",N.jsx("span",{className:"font-mono",children:ie.id})]}),xe&&Se.documentId&&N.jsxs("div",{className:"col-span-2",children:["Parent Document: ",N.jsx("span",{className:"font-mono text-primary/80",children:Se.documentId})]}),xe&&Se.position!==void 0&&N.jsxs("div",{children:["Position: ",Se.position]}),Se.source&&N.jsxs("div",{children:["Source: ",Se.source]}),N.jsxs("div",{children:["Created on: ",Po(ie.createdAt||0)]})]})]}),N.jsx(Ye,{variant:"ghost",size:"sm",onClick:()=>x(null),className:"text-xs h-7 px-2",children:"Close"})]}),N.jsxs("div",{className:"px-4 pb-4 flex-1 flex flex-col",children:[N.jsx("div",{className:"bg-background rounded border border-border p-3 text-sm overflow-auto flex-1",children:N.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs h-full",children:ie.content?.text||"No content available"})}),ie.embedding&&N.jsxs("div",{className:"mt-2 flex items-center text-xs text-muted-foreground flex-shrink-0",children:[N.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"}),N.jsxs("span",{children:["Vector with ",ie.embedding.length," dimensions"]})]})]})]})};return N.jsxs("div",{className:"flex flex-col h-full",children:[N.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between p-4 border-b gap-3",children:[N.jsxs("div",{className:"flex flex-col gap-1",children:[N.jsx("h2",{className:"text-lg font-semibold",children:"Knowledge"}),N.jsx("p",{className:"text-xs text-muted-foreground",children:W?"Searching knowledge fragments":g==="list"?"Viewing documents only":"Viewing documents and their fragments"})]}),N.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[N.jsx(Ye,{variant:"outline",size:"sm",onClick:()=>v(g==="list"?"graph":"list"),className:"flex-shrink-0",title:g==="list"?"Switch to Graph view to see documents and fragments":"Switch to List view to see documents only",disabled:W,children:g==="list"?N.jsxs(N.Fragment,{children:[N.jsx(sv,{className:"h-4 w-4 mr-2"}),N.jsx("span",{className:"hidden md:inline",children:"Graph View"}),N.jsx("span",{className:"md:hidden",children:"Graph"})]}):N.jsxs(N.Fragment,{children:[N.jsx(ov,{className:"h-4 w-4 mr-2"}),N.jsx("span",{className:"hidden md:inline",children:"List View"}),N.jsx("span",{className:"md:hidden",children:"List"})]})}),g==="graph"&&j&&!W&&N.jsxs(Ye,{variant:"outline",size:"sm",onClick:()=>{q(void 0),x(null)},className:"flex-shrink-0",children:[N.jsx(tv,{className:"h-4 w-4 mr-2"}),N.jsx("span",{className:"hidden sm:inline",children:"Back to All Documents"}),N.jsx("span",{className:"sm:hidden",children:"Back"})]}),N.jsxs("div",{className:"flex gap-2 ml-auto sm:ml-0",children:[N.jsxs(Ye,{variant:W?"default":"outline",onClick:()=>{X(!W),W&&(oe(""),B([]),Q(null))},size:"sm",className:"flex-shrink-0",children:[N.jsx(pu,{className:"h-4 w-4 sm:mr-2"}),N.jsx("span",{className:"hidden sm:inline",children:"Search"})]}),N.jsxs(Ye,{variant:"outline",onClick:ui,size:"sm",className:"flex-shrink-0",disabled:W,children:[N.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:[N.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"}),N.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"})]}),N.jsx("span",{className:"hidden sm:inline",children:"URL"})]}),N.jsxs(Ye,{onClick:pn,disabled:s||W,size:"sm",className:"flex-shrink-0",children:[s?N.jsx(Jr,{className:"h-4 w-4 animate-spin sm:mr-2"}):N.jsx(bd,{className:"h-4 w-4 sm:mr-2"}),N.jsx("span",{className:"hidden sm:inline",children:"Upload"})]})]})]})]}),W&&N.jsx("div",{className:"border-b border-border bg-muted/30 p-4",children:N.jsxs("div",{className:"space-y-4",children:[N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(iv,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),N.jsx("p",{className:"text-sm text-muted-foreground",children:"Search your knowledge base using semantic vector search. Adjust the similarity threshold to control how closely results must match your query."})]}),N.jsxs("div",{className:"space-y-3",children:[N.jsxs("div",{className:"flex gap-2",children:[N.jsx(Ed,{placeholder:"Enter your search query...",value:Z,onChange:ie=>oe(ie.target.value),onKeyDown:ie=>{ie.key==="Enter"&&Z.trim()&&(ie.preventDefault(),fi())},className:"flex-1"}),N.jsx(Ye,{onClick:fi,disabled:te||!Z.trim(),size:"sm",className:"px-6",children:te?N.jsx(Jr,{className:"h-4 w-4 animate-spin"}):N.jsx(pu,{className:"h-4 w-4"})})]}),N.jsxs("div",{className:"space-y-2",children:[N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsx("label",{className:"text-sm font-medium",children:"Similarity Threshold"}),N.jsxs("span",{className:"text-sm text-muted-foreground",children:[de.toFixed(2)," (",Math.round(de*100),"% match)"]})]}),N.jsx("input",{type:"range",min:"0",max:"1",step:"0.05",value:de,onChange:ie=>F(parseFloat(ie.target.value)),className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"}),N.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[N.jsx("span",{children:"0% (least similar)"}),N.jsx("span",{children:"100% (exact match)"})]})]})]})]})}),C&&N.jsx(Dp,{open:C,onOpenChange:S,children:N.jsxs(Ip,{className:"max-w-md w-full",children:[N.jsxs(Lp,{children:[N.jsx(Fp,{className:"text-xl font-bold",children:"Import from URL"}),N.jsx($p,{children:"Enter one or more URLs of PDF, text, or other files to import into the knowledge base."})]}),N.jsxs("div",{className:"mt-6 space-y-4",children:[N.jsxs("div",{className:"flex gap-2",children:[N.jsx(Ed,{placeholder:"https://example.com/document.pdf",value:k,onChange:ie=>O(ie.target.value),disabled:D,className:"flex-1",onKeyDown:ie=>{ie.key==="Enter"&&k.trim()&&(ie.preventDefault(),ci())}}),N.jsx(Ye,{variant:"outline",size:"sm",onClick:ci,disabled:D||!k.trim(),children:"Add"})]}),T&&N.jsx("div",{className:"text-sm text-destructive bg-destructive/10 p-2 rounded-md",children:T}),A.length>0&&N.jsxs("div",{className:"border border-border rounded-md bg-card/50 p-3 mt-2",children:[N.jsxs("h4",{className:"text-sm font-medium mb-2",children:["URLs to import (",A.length,")"]}),N.jsx("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:A.map((ie,Se)=>N.jsxs("div",{className:"flex items-center justify-between text-sm bg-background p-2 rounded border border-border",children:[N.jsx("span",{className:"truncate flex-1",children:ie}),N.jsx(Ye,{variant:"ghost",size:"icon",className:"h-6 w-6 hover:bg-destructive/10 hover:text-destructive",onClick:()=>To(ie),disabled:D,children:N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:N.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},Se))})]})]}),N.jsxs(Up,{className:"mt-6 pt-4 border-t border-border",children:[N.jsx(Ye,{variant:"outline",onClick:()=>S(!1),disabled:D,children:"Cancel"}),N.jsx(Ye,{onClick:jo,disabled:D||A.length===0&&!k.trim(),children:D?N.jsxs(N.Fragment,{children:[N.jsx(Jr,{className:"h-4 w-4 animate-spin mr-2"}),"Importing..."]}):"Import"})]})]})}),N.jsx("input",{ref:ae,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:hi,className:"hidden"}),N.jsx("div",{className:"flex-1 overflow-hidden",children:W?N.jsxs("div",{className:"h-full overflow-y-auto p-4",children:[te&&N.jsx("div",{className:"flex items-center justify-center h-full",children:N.jsx(Jr,{className:"h-8 w-8 animate-spin text-muted-foreground"})}),Y&&!te&&N.jsx("div",{className:"flex items-center justify-center h-full text-center",children:N.jsx("div",{className:"p-4 bg-destructive/10 text-destructive rounded-md",children:Y})}),ee.length>0&&!te&&N.jsxs("div",{className:"space-y-3",children:[N.jsxs("h3",{className:"text-sm font-medium",children:["Found ",ee.length," result",ee.length!==1?"s":""]}),N.jsx("div",{className:"space-y-2",children:ee.map((ie,Se)=>N.jsxs("div",{className:"border border-border rounded-md p-3 bg-card hover:bg-accent/10 transition-colors cursor-pointer",onClick:()=>i(ie),children:[N.jsx("div",{className:"flex items-start justify-between mb-2",children:N.jsx("div",{className:"flex items-center gap-2",children:N.jsxs(Cd,{variant:"outline",className:"text-xs",children:[(ie.similarity*100).toFixed(1),"% match"]})})}),N.jsx("p",{className:"text-sm line-clamp-4 mb-2",children:ie.content?.text||"No content"}),N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsx("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:ie.metadata?.position!==void 0&&N.jsxs("span",{children:["Fragment #",ie.metadata.position]})}),N.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[N.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[N.jsx("path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"}),N.jsx("path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"})]}),N.jsx("span",{children:"Read more"})]})]})]},ie.id||Se))})]}),!te&&ee.length===0&&!Y&&N.jsx("div",{className:"flex items-center justify-center h-full text-center text-muted-foreground",children:N.jsxs("div",{className:"flex flex-col items-center gap-2",children:[N.jsx(pu,{className:"h-10 w-10 opacity-30"}),N.jsx("p",{children:"Enter a query to search your knowledge base."})]})})]}):Ut.length===0?N.jsx(sr,{}):g==="graph"?N.jsxs("div",{className:"flex flex-col h-full",children:[N.jsxs("div",{className:`p-4 overflow-hidden ${m?"h-1/3":"flex-1"} transition-all duration-300`,children:[N.jsx(rb,{memories:nt,onNodeClick:ie=>{x(ie),ie.metadata?.type==="document"&&q(ie.id)},selectedMemoryId:m?.id}),j&&N.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:N.jsxs("span",{className:"text-xs text-muted-foreground flex items-center",children:[N.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:N.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),"Viewing document and fragments: ",N.jsxs("span",{className:"font-mono ml-1",children:[j.substring(0,8),"..."]})]})}),g==="graph"&&nr&&j&&N.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-card/90 backdrop-blur-sm p-4 rounded-lg shadow-lg border border-border",children:N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(Jr,{className:"h-5 w-5 animate-spin"}),N.jsx("span",{children:"Loading document fragments..."})]})})]}),m&&N.jsx("div",{className:"h-2/3 overflow-hidden flex-1 transition-all duration-300",children:N.jsx(Oo,{memory:m})})]}):N.jsxs("div",{ref:ce,className:"h-full overflow-y-auto p-4",children:[N.jsx("div",{className:"grid gap-3",children:jr.map((ie,Se)=>N.jsx(Sl,{memory:ie,index:Se},ie.id||Se))}),Mo&&N.jsx(or,{})]})}),n&&N.jsx(Dp,{open:!!n,onOpenChange:()=>i(null),children:N.jsxs(Ip,{className:"max-w-[95vw] w-full max-h-[95vh] h-full overflow-hidden flex flex-col p-0",children:[N.jsx(Lp,{className:"flex-shrink-0 p-6 pb-2",children:N.jsxs("div",{className:"flex items-center justify-between",children:[N.jsxs("div",{children:[N.jsx(Fp,{className:"text-xl",children:n.metadata?.title||"Document Content"}),N.jsx($p,{children:n.metadata?.filename||"Knowledge document"})]}),(()=>{const ie=n.metadata,Se=ie?.contentType||"",xe=ie?.fileExt?.toLowerCase()||"";return Se==="application/pdf"||xe==="pdf"?N.jsxs("div",{className:"flex items-center gap-2",children:[N.jsx(Ye,{variant:"outline",size:"sm",onClick:()=>b(Math.max(.5,w-.25)),disabled:w<=.5,children:N.jsx("span",{className:"text-lg",children:"−"})}),N.jsxs("span",{className:"text-sm font-medium min-w-[60px] text-center",children:[Math.round(w*100),"%"]}),N.jsx(Ye,{variant:"outline",size:"sm",onClick:()=>b(Math.min(3,w+.25)),disabled:w>=3,children:N.jsx("span",{className:"text-lg",children:"+"})}),N.jsx(Ye,{variant:"outline",size:"sm",onClick:()=>b(1),children:"Reset"})]}):null})()]})}),N.jsx("div",{className:"flex-1 overflow-auto px-6 pb-2",children:(()=>{const ie=n.metadata,Se=ie?.contentType||"",xe=ie?.fileExt?.toLowerCase()||"",dt=Se==="application/pdf"||xe==="pdf";if(dt&&n.content?.text){const pt=n.content.text.trim();if(!pt)return N.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6 flex items-center justify-center",children:N.jsxs("div",{className:"text-center text-muted-foreground",children:[N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-12 w-12 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:N.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.314 18.5c-.77.833.192 2.5 1.732 2.5z"})}),N.jsx("p",{className:"text-lg font-medium",children:"PDF Content Unavailable"}),N.jsx("p",{className:"text-sm",children:"The PDF content could not be loaded."})]})});const On=`data:application/pdf;base64,${pt}`;return N.jsx("div",{className:"w-full h-full rounded-lg overflow-auto bg-card border border-border",children:N.jsx("div",{className:"min-w-full flex items-center justify-center p-4",style:{minHeight:"100%",transform:`scale(${w})`,transformOrigin:"top center",width:w>1?`${100/w}%`:"100%"},children:N.jsx("iframe",{src:On,className:"w-full border-0 shadow-md",style:{height:"90vh",maxWidth:"1200px",backgroundColor:"var(--background)"},title:"PDF Document",onError:()=>{console.error("Failed to load PDF in iframe")}})})})}else return dt&&!n.content?.text?N.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6 flex items-center justify-center",children:N.jsxs("div",{className:"text-center text-muted-foreground",children:[N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-12 w-12 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:N.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),N.jsx("p",{className:"text-lg font-medium",children:"PDF Not Available"}),N.jsx("p",{className:"text-sm",children:"This PDF document has no content to display."})]})}):N.jsx("div",{className:"h-full w-full bg-background rounded-lg border border-border p-6",children:N.jsx("pre",{className:"whitespace-pre-wrap text-sm font-mono leading-relaxed text-foreground",children:n.content?.text||"No content available"})})})()}),N.jsx(Up,{className:"flex-shrink-0 p-6 pt-4 border-t border-border",children:N.jsx(Ye,{variant:"outline",onClick:()=>{i(null),b(1)},children:"Close"})})]})})]})}const ub=new Py;function cb(){const n=window.ELIZA_CONFIG?.agentId;return eg.useEffect(()=>{document.documentElement.classList.add("dark")},[]),n?N.jsx(fb,{agentId:n}):N.jsxs("div",{className:"p-4 text-center",children:[N.jsx("div",{className:"text-red-600 font-medium",children:"Error: Agent ID not found"}),N.jsx("div",{className:"text-sm text-gray-600 mt-2",children:"The server should inject the agent ID configuration."})]})}function fb({agentId:e}){return N.jsx(Ry,{client:ub,children:N.jsx(ab,{agentId:e})})}const Hp=document.getElementById("root");Hp&&Yy.createRoot(Hp).render(N.jsx(cb,{}));