nextclaw 0.4.13 → 0.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var Hf=r=>{throw TypeError(r)};var du=(r,o,i)=>o.has(r)||Hf("Cannot "+i);var w=(r,o,i)=>(du(r,o,"read from private field"),i?i.call(r):o.get(r)),ie=(r,o,i)=>o.has(r)?Hf("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,i),q=(r,o,i,l)=>(du(r,o,"write to private field"),l?l.call(r,i):o.set(r,i),i),ge=(r,o,i)=>(du(r,o,"access private method"),i);var ua=(r,o,i,l)=>({set _(c){q(r,o,c,i)},get _(){return w(r,o,l)}});function iy(r,o){for(var i=0;i<o.length;i++){const l=o[i];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in r)){const d=Object.getOwnPropertyDescriptor(l,c);d&&Object.defineProperty(r,c,d.get?d:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&l(m)}).observe(document,{childList:!0,subtree:!0});function i(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(c){if(c.ep)return;c.ep=!0;const d=i(c);fetch(c.href,d)}})();function Xp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var fu={exports:{}},_s={},pu={exports:{}},we={};/**
1
+ var Hf=r=>{throw TypeError(r)};var du=(r,o,i)=>o.has(r)||Hf("Cannot "+i);var w=(r,o,i)=>(du(r,o,"read from private field"),i?i.call(r):o.get(r)),ie=(r,o,i)=>o.has(r)?Hf("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,i),q=(r,o,i,l)=>(du(r,o,"write to private field"),l?l.call(r,i):o.set(r,i),i),ge=(r,o,i)=>(du(r,o,"access private method"),i);var ua=(r,o,i,l)=>({set _(c){q(r,o,c,i)},get _(){return w(r,o,l)}});function ay(r,o){for(var i=0;i<o.length;i++){const l=o[i];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in r)){const d=Object.getOwnPropertyDescriptor(l,c);d&&Object.defineProperty(r,c,d.get?d:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&l(m)}).observe(document,{childList:!0,subtree:!0});function i(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function l(c){if(c.ep)return;c.ep=!0;const d=i(c);fetch(c.href,d)}})();function Xp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var fu={exports:{}},zs={},pu={exports:{}},we={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var Hf=r=>{throw TypeError(r)};var du=(r,o,i)=>o.has(r)||Hf("Cannot "+i);var w=(
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Kf;function ay(){if(Kf)return we;Kf=1;var r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),P=Symbol.iterator;function T(N){return N===null||typeof N!="object"?null:(N=P&&N[P]||N["@@iterator"],typeof N=="function"?N:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,b={};function R(N,_,te){this.props=N,this.context=_,this.refs=b,this.updater=te||v}R.prototype.isReactComponent={},R.prototype.setState=function(N,_){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,_,"setState")},R.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function D(){}D.prototype=R.prototype;function F(N,_,te){this.props=N,this.context=_,this.refs=b,this.updater=te||v}var B=F.prototype=new D;B.constructor=F,I(B,R.prototype),B.isPureReactComponent=!0;var z=Array.isArray,G=Object.prototype.hasOwnProperty,ee={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function X(N,_,te){var oe,de={},ve=null,ce=null;if(_!=null)for(oe in _.ref!==void 0&&(ce=_.ref),_.key!==void 0&&(ve=""+_.key),_)G.call(_,oe)&&!$.hasOwnProperty(oe)&&(de[oe]=_[oe]);var be=arguments.length-2;if(be===1)de.children=te;else if(1<be){for(var je=Array(be),Ze=0;Ze<be;Ze++)je[Ze]=arguments[Ze+2];de.children=je}if(N&&N.defaultProps)for(oe in be=N.defaultProps,be)de[oe]===void 0&&(de[oe]=be[oe]);return{$$typeof:r,type:N,key:ve,ref:ce,props:de,_owner:ee.current}}function he(N,_){return{$$typeof:r,type:N.type,key:_,ref:N.ref,props:N.props,_owner:N._owner}}function ye(N){return typeof N=="object"&&N!==null&&N.$$typeof===r}function Pe(N){var _={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(te){return _[te]})}var ae=/\/+/g;function De(N,_){return typeof N=="object"&&N!==null&&N.key!=null?Pe(""+N.key):_.toString(36)}function Te(N,_,te,oe,de){var ve=typeof N;(ve==="undefined"||ve==="boolean")&&(N=null);var ce=!1;if(N===null)ce=!0;else switch(ve){case"string":case"number":ce=!0;break;case"object":switch(N.$$typeof){case r:case o:ce=!0}}if(ce)return ce=N,de=de(ce),N=oe===""?"."+De(ce,0):oe,z(de)?(te="",N!=null&&(te=N.replace(ae,"$&/")+"/"),Te(de,_,te,"",function(Ze){return Ze})):de!=null&&(ye(de)&&(de=he(de,te+(!de.key||ce&&ce.key===de.key?"":(""+de.key).replace(ae,"$&/")+"/")+N)),_.push(de)),1;if(ce=0,oe=oe===""?".":oe+":",z(N))for(var be=0;be<N.length;be++){ve=N[be];var je=oe+De(ve,be);ce+=Te(ve,_,te,je,de)}else if(je=T(N),typeof je=="function")for(N=je.call(N),be=0;!(ve=N.next()).done;)ve=ve.value,je=oe+De(ve,be++),ce+=Te(ve,_,te,je,de);else if(ve==="object")throw _=String(N),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.");return ce}function Be(N,_,te){if(N==null)return N;var oe=[],de=0;return Te(N,oe,"","",function(ve){return _.call(te,ve,de++)}),oe}function Oe(N){if(N._status===-1){var _=N._result;_=_(),_.then(function(te){(N._status===0||N._status===-1)&&(N._status=1,N._result=te)},function(te){(N._status===0||N._status===-1)&&(N._status=2,N._result=te)}),N._status===-1&&(N._status=0,N._result=_)}if(N._status===1)return N._result.default;throw N._result}var xe={current:null},H={transition:null},W={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:H,ReactCurrentOwner:ee};function Q(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:Be,forEach:function(N,_,te){Be(N,function(){_.apply(this,arguments)},te)},count:function(N){var _=0;return Be(N,function(){_++}),_},toArray:function(N){return Be(N,function(_){return _})||[]},only:function(N){if(!ye(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},we.Component=R,we.Fragment=i,we.Profiler=c,we.PureComponent=F,we.StrictMode=l,we.Suspense=x,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,we.act=Q,we.cloneElement=function(N,_,te){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var oe=I({},N.props),de=N.key,ve=N.ref,ce=N._owner;if(_!=null){if(_.ref!==void 0&&(ve=_.ref,ce=ee.current),_.key!==void 0&&(de=""+_.key),N.type&&N.type.defaultProps)var be=N.type.defaultProps;for(je in _)G.call(_,je)&&!$.hasOwnProperty(je)&&(oe[je]=_[je]===void 0&&be!==void 0?be[je]:_[je])}var je=arguments.length-2;if(je===1)oe.children=te;else if(1<je){be=Array(je);for(var Ze=0;Ze<je;Ze++)be[Ze]=arguments[Ze+2];oe.children=be}return{$$typeof:r,type:N.type,key:de,ref:ve,props:oe,_owner:ce}},we.createContext=function(N){return N={$$typeof:m,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},N.Provider={$$typeof:d,_context:N},N.Consumer=N},we.createElement=X,we.createFactory=function(N){var _=X.bind(null,N);return _.type=N,_},we.createRef=function(){return{current:null}},we.forwardRef=function(N){return{$$typeof:p,render:N}},we.isValidElement=ye,we.lazy=function(N){return{$$typeof:E,_payload:{_status:-1,_result:N},_init:Oe}},we.memo=function(N,_){return{$$typeof:g,type:N,compare:_===void 0?null:_}},we.startTransition=function(N){var _=H.transition;H.transition={};try{N()}finally{H.transition=_}},we.unstable_act=Q,we.useCallback=function(N,_){return xe.current.useCallback(N,_)},we.useContext=function(N){return xe.current.useContext(N)},we.useDebugValue=function(){},we.useDeferredValue=function(N){return xe.current.useDeferredValue(N)},we.useEffect=function(N,_){return xe.current.useEffect(N,_)},we.useId=function(){return xe.current.useId()},we.useImperativeHandle=function(N,_,te){return xe.current.useImperativeHandle(N,_,te)},we.useInsertionEffect=function(N,_){return xe.current.useInsertionEffect(N,_)},we.useLayoutEffect=function(N,_){return xe.current.useLayoutEffect(N,_)},we.useMemo=function(N,_){return xe.current.useMemo(N,_)},we.useReducer=function(N,_,te){return xe.current.useReducer(N,_,te)},we.useRef=function(N){return xe.current.useRef(N)},we.useState=function(N){return xe.current.useState(N)},we.useSyncExternalStore=function(N,_,te){return xe.current.useSyncExternalStore(N,_,te)},we.useTransition=function(){return xe.current.useTransition()},we.version="18.3.1",we}var Gf;function Gu(){return Gf||(Gf=1,pu.exports=ay()),pu.exports}/**
9
+ */var Kf;function ly(){if(Kf)return we;Kf=1;var r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),P=Symbol.iterator;function T(N){return N===null||typeof N!="object"?null:(N=P&&N[P]||N["@@iterator"],typeof N=="function"?N:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,b={};function R(N,z,te){this.props=N,this.context=z,this.refs=b,this.updater=te||v}R.prototype.isReactComponent={},R.prototype.setState=function(N,z){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,z,"setState")},R.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function D(){}D.prototype=R.prototype;function F(N,z,te){this.props=N,this.context=z,this.refs=b,this.updater=te||v}var B=F.prototype=new D;B.constructor=F,I(B,R.prototype),B.isPureReactComponent=!0;var _=Array.isArray,G=Object.prototype.hasOwnProperty,ee={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function X(N,z,te){var oe,de={},ve=null,ce=null;if(z!=null)for(oe in z.ref!==void 0&&(ce=z.ref),z.key!==void 0&&(ve=""+z.key),z)G.call(z,oe)&&!$.hasOwnProperty(oe)&&(de[oe]=z[oe]);var be=arguments.length-2;if(be===1)de.children=te;else if(1<be){for(var je=Array(be),Ze=0;Ze<be;Ze++)je[Ze]=arguments[Ze+2];de.children=je}if(N&&N.defaultProps)for(oe in be=N.defaultProps,be)de[oe]===void 0&&(de[oe]=be[oe]);return{$$typeof:r,type:N,key:ve,ref:ce,props:de,_owner:ee.current}}function he(N,z){return{$$typeof:r,type:N.type,key:z,ref:N.ref,props:N.props,_owner:N._owner}}function ye(N){return typeof N=="object"&&N!==null&&N.$$typeof===r}function Pe(N){var z={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(te){return z[te]})}var ae=/\/+/g;function Fe(N,z){return typeof N=="object"&&N!==null&&N.key!=null?Pe(""+N.key):z.toString(36)}function Te(N,z,te,oe,de){var ve=typeof N;(ve==="undefined"||ve==="boolean")&&(N=null);var ce=!1;if(N===null)ce=!0;else switch(ve){case"string":case"number":ce=!0;break;case"object":switch(N.$$typeof){case r:case o:ce=!0}}if(ce)return ce=N,de=de(ce),N=oe===""?"."+Fe(ce,0):oe,_(de)?(te="",N!=null&&(te=N.replace(ae,"$&/")+"/"),Te(de,z,te,"",function(Ze){return Ze})):de!=null&&(ye(de)&&(de=he(de,te+(!de.key||ce&&ce.key===de.key?"":(""+de.key).replace(ae,"$&/")+"/")+N)),z.push(de)),1;if(ce=0,oe=oe===""?".":oe+":",_(N))for(var be=0;be<N.length;be++){ve=N[be];var je=oe+Fe(ve,be);ce+=Te(ve,z,te,je,de)}else if(je=T(N),typeof je=="function")for(N=je.call(N),be=0;!(ve=N.next()).done;)ve=ve.value,je=oe+Fe(ve,be++),ce+=Te(ve,z,te,je,de);else if(ve==="object")throw z=String(N),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return ce}function Be(N,z,te){if(N==null)return N;var oe=[],de=0;return Te(N,oe,"","",function(ve){return z.call(te,ve,de++)}),oe}function Oe(N){if(N._status===-1){var z=N._result;z=z(),z.then(function(te){(N._status===0||N._status===-1)&&(N._status=1,N._result=te)},function(te){(N._status===0||N._status===-1)&&(N._status=2,N._result=te)}),N._status===-1&&(N._status=0,N._result=z)}if(N._status===1)return N._result.default;throw N._result}var xe={current:null},H={transition:null},W={ReactCurrentDispatcher:xe,ReactCurrentBatchConfig:H,ReactCurrentOwner:ee};function Q(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:Be,forEach:function(N,z,te){Be(N,function(){z.apply(this,arguments)},te)},count:function(N){var z=0;return Be(N,function(){z++}),z},toArray:function(N){return Be(N,function(z){return z})||[]},only:function(N){if(!ye(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},we.Component=R,we.Fragment=i,we.Profiler=c,we.PureComponent=F,we.StrictMode=l,we.Suspense=x,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,we.act=Q,we.cloneElement=function(N,z,te){if(N==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+N+".");var oe=I({},N.props),de=N.key,ve=N.ref,ce=N._owner;if(z!=null){if(z.ref!==void 0&&(ve=z.ref,ce=ee.current),z.key!==void 0&&(de=""+z.key),N.type&&N.type.defaultProps)var be=N.type.defaultProps;for(je in z)G.call(z,je)&&!$.hasOwnProperty(je)&&(oe[je]=z[je]===void 0&&be!==void 0?be[je]:z[je])}var je=arguments.length-2;if(je===1)oe.children=te;else if(1<je){be=Array(je);for(var Ze=0;Ze<je;Ze++)be[Ze]=arguments[Ze+2];oe.children=be}return{$$typeof:r,type:N.type,key:de,ref:ve,props:oe,_owner:ce}},we.createContext=function(N){return N={$$typeof:m,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},N.Provider={$$typeof:d,_context:N},N.Consumer=N},we.createElement=X,we.createFactory=function(N){var z=X.bind(null,N);return z.type=N,z},we.createRef=function(){return{current:null}},we.forwardRef=function(N){return{$$typeof:p,render:N}},we.isValidElement=ye,we.lazy=function(N){return{$$typeof:E,_payload:{_status:-1,_result:N},_init:Oe}},we.memo=function(N,z){return{$$typeof:g,type:N,compare:z===void 0?null:z}},we.startTransition=function(N){var z=H.transition;H.transition={};try{N()}finally{H.transition=z}},we.unstable_act=Q,we.useCallback=function(N,z){return xe.current.useCallback(N,z)},we.useContext=function(N){return xe.current.useContext(N)},we.useDebugValue=function(){},we.useDeferredValue=function(N){return xe.current.useDeferredValue(N)},we.useEffect=function(N,z){return xe.current.useEffect(N,z)},we.useId=function(){return xe.current.useId()},we.useImperativeHandle=function(N,z,te){return xe.current.useImperativeHandle(N,z,te)},we.useInsertionEffect=function(N,z){return xe.current.useInsertionEffect(N,z)},we.useLayoutEffect=function(N,z){return xe.current.useLayoutEffect(N,z)},we.useMemo=function(N,z){return xe.current.useMemo(N,z)},we.useReducer=function(N,z,te){return xe.current.useReducer(N,z,te)},we.useRef=function(N){return xe.current.useRef(N)},we.useState=function(N){return xe.current.useState(N)},we.useSyncExternalStore=function(N,z,te){return xe.current.useSyncExternalStore(N,z,te)},we.useTransition=function(){return xe.current.useTransition()},we.version="18.3.1",we}var Gf;function Gu(){return Gf||(Gf=1,pu.exports=ly()),pu.exports}/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var Hf=r=>{throw TypeError(r)};var du=(r,o,i)=>o.has(r)||Hf("Cannot "+i);var w=(
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var qf;function ly(){if(qf)return _s;qf=1;var r=Gu(),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function m(p,x,g){var E,P={},T=null,v=null;g!==void 0&&(T=""+g),x.key!==void 0&&(T=""+x.key),x.ref!==void 0&&(v=x.ref);for(E in x)l.call(x,E)&&!d.hasOwnProperty(E)&&(P[E]=x[E]);if(p&&p.defaultProps)for(E in x=p.defaultProps,x)P[E]===void 0&&(P[E]=x[E]);return{$$typeof:o,type:p,key:T,ref:v,props:P,_owner:c.current}}return _s.Fragment=i,_s.jsx=m,_s.jsxs=m,_s}var Yf;function uy(){return Yf||(Yf=1,fu.exports=ly()),fu.exports}var h=uy(),k=Gu();const K=Xp(k),Zp=iy({__proto__:null,default:K},[k]);var ca={},hu={exports:{}},Ct={},mu={exports:{}},gu={};/**
17
+ */var qf;function uy(){if(qf)return zs;qf=1;var r=Gu(),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function m(p,x,g){var E,P={},T=null,v=null;g!==void 0&&(T=""+g),x.key!==void 0&&(T=""+x.key),x.ref!==void 0&&(v=x.ref);for(E in x)l.call(x,E)&&!d.hasOwnProperty(E)&&(P[E]=x[E]);if(p&&p.defaultProps)for(E in x=p.defaultProps,x)P[E]===void 0&&(P[E]=x[E]);return{$$typeof:o,type:p,key:T,ref:v,props:P,_owner:c.current}}return zs.Fragment=i,zs.jsx=m,zs.jsxs=m,zs}var Yf;function cy(){return Yf||(Yf=1,fu.exports=uy()),fu.exports}var h=cy(),k=Gu();const K=Xp(k),Zp=ay({__proto__:null,default:K},[k]);var ca={},hu={exports:{}},Ct={},mu={exports:{}},gu={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var Hf=r=>{throw TypeError(r)};var du=(r,o,i)=>o.has(r)||Hf("Cannot "+i);var w=(
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Xf;function cy(){return Xf||(Xf=1,(function(r){function o(H,W){var Q=H.length;H.push(W);e:for(;0<Q;){var N=Q-1>>>1,_=H[N];if(0<c(_,W))H[N]=W,H[Q]=_,Q=N;else break e}}function i(H){return H.length===0?null:H[0]}function l(H){if(H.length===0)return null;var W=H[0],Q=H.pop();if(Q!==W){H[0]=Q;e:for(var N=0,_=H.length,te=_>>>1;N<te;){var oe=2*(N+1)-1,de=H[oe],ve=oe+1,ce=H[ve];if(0>c(de,Q))ve<_&&0>c(ce,de)?(H[N]=ce,H[ve]=Q,N=ve):(H[N]=de,H[oe]=Q,N=oe);else if(ve<_&&0>c(ce,Q))H[N]=ce,H[ve]=Q,N=ve;else break e}}return W}function c(H,W){var Q=H.sortIndex-W.sortIndex;return Q!==0?Q:H.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var m=Date,p=m.now();r.unstable_now=function(){return m.now()-p}}var x=[],g=[],E=1,P=null,T=3,v=!1,I=!1,b=!1,R=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(H){for(var W=i(g);W!==null;){if(W.callback===null)l(g);else if(W.startTime<=H)l(g),W.sortIndex=W.expirationTime,o(x,W);else break;W=i(g)}}function z(H){if(b=!1,B(H),!I)if(i(x)!==null)I=!0,Oe(G);else{var W=i(g);W!==null&&xe(z,W.startTime-H)}}function G(H,W){I=!1,b&&(b=!1,D(X),X=-1),v=!0;var Q=T;try{for(B(W),P=i(x);P!==null&&(!(P.expirationTime>W)||H&&!Pe());){var N=P.callback;if(typeof N=="function"){P.callback=null,T=P.priorityLevel;var _=N(P.expirationTime<=W);W=r.unstable_now(),typeof _=="function"?P.callback=_:P===i(x)&&l(x),B(W)}else l(x);P=i(x)}if(P!==null)var te=!0;else{var oe=i(g);oe!==null&&xe(z,oe.startTime-W),te=!1}return te}finally{P=null,T=Q,v=!1}}var ee=!1,$=null,X=-1,he=5,ye=-1;function Pe(){return!(r.unstable_now()-ye<he)}function ae(){if($!==null){var H=r.unstable_now();ye=H;var W=!0;try{W=$(!0,H)}finally{W?De():(ee=!1,$=null)}}else ee=!1}var De;if(typeof F=="function")De=function(){F(ae)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Be=Te.port2;Te.port1.onmessage=ae,De=function(){Be.postMessage(null)}}else De=function(){R(ae,0)};function Oe(H){$=H,ee||(ee=!0,De())}function xe(H,W){X=R(function(){H(r.unstable_now())},W)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(H){H.callback=null},r.unstable_continueExecution=function(){I||v||(I=!0,Oe(G))},r.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<H?Math.floor(1e3/H):5},r.unstable_getCurrentPriorityLevel=function(){return T},r.unstable_getFirstCallbackNode=function(){return i(x)},r.unstable_next=function(H){switch(T){case 1:case 2:case 3:var W=3;break;default:W=T}var Q=T;T=W;try{return H()}finally{T=Q}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(H,W){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var Q=T;T=H;try{return W()}finally{T=Q}},r.unstable_scheduleCallback=function(H,W,Q){var N=r.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?N+Q:N):Q=N,H){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=Q+_,H={id:E++,callback:W,priorityLevel:H,startTime:Q,expirationTime:_,sortIndex:-1},Q>N?(H.sortIndex=Q,o(g,H),i(x)===null&&H===i(g)&&(b?(D(X),X=-1):b=!0,xe(z,Q-N))):(H.sortIndex=_,o(x,H),I||v||(I=!0,Oe(G))),H},r.unstable_shouldYield=Pe,r.unstable_wrapCallback=function(H){var W=T;return function(){var Q=T;T=W;try{return H.apply(this,arguments)}finally{T=Q}}}})(gu)),gu}var Zf;function dy(){return Zf||(Zf=1,mu.exports=cy()),mu.exports}/**
25
+ */var Xf;function dy(){return Xf||(Xf=1,(function(r){function o(H,W){var Q=H.length;H.push(W);e:for(;0<Q;){var N=Q-1>>>1,z=H[N];if(0<c(z,W))H[N]=W,H[Q]=z,Q=N;else break e}}function i(H){return H.length===0?null:H[0]}function l(H){if(H.length===0)return null;var W=H[0],Q=H.pop();if(Q!==W){H[0]=Q;e:for(var N=0,z=H.length,te=z>>>1;N<te;){var oe=2*(N+1)-1,de=H[oe],ve=oe+1,ce=H[ve];if(0>c(de,Q))ve<z&&0>c(ce,de)?(H[N]=ce,H[ve]=Q,N=ve):(H[N]=de,H[oe]=Q,N=oe);else if(ve<z&&0>c(ce,Q))H[N]=ce,H[ve]=Q,N=ve;else break e}}return W}function c(H,W){var Q=H.sortIndex-W.sortIndex;return Q!==0?Q:H.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;r.unstable_now=function(){return d.now()}}else{var m=Date,p=m.now();r.unstable_now=function(){return m.now()-p}}var x=[],g=[],E=1,P=null,T=3,v=!1,I=!1,b=!1,R=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(H){for(var W=i(g);W!==null;){if(W.callback===null)l(g);else if(W.startTime<=H)l(g),W.sortIndex=W.expirationTime,o(x,W);else break;W=i(g)}}function _(H){if(b=!1,B(H),!I)if(i(x)!==null)I=!0,Oe(G);else{var W=i(g);W!==null&&xe(_,W.startTime-H)}}function G(H,W){I=!1,b&&(b=!1,D(X),X=-1),v=!0;var Q=T;try{for(B(W),P=i(x);P!==null&&(!(P.expirationTime>W)||H&&!Pe());){var N=P.callback;if(typeof N=="function"){P.callback=null,T=P.priorityLevel;var z=N(P.expirationTime<=W);W=r.unstable_now(),typeof z=="function"?P.callback=z:P===i(x)&&l(x),B(W)}else l(x);P=i(x)}if(P!==null)var te=!0;else{var oe=i(g);oe!==null&&xe(_,oe.startTime-W),te=!1}return te}finally{P=null,T=Q,v=!1}}var ee=!1,$=null,X=-1,he=5,ye=-1;function Pe(){return!(r.unstable_now()-ye<he)}function ae(){if($!==null){var H=r.unstable_now();ye=H;var W=!0;try{W=$(!0,H)}finally{W?Fe():(ee=!1,$=null)}}else ee=!1}var Fe;if(typeof F=="function")Fe=function(){F(ae)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Be=Te.port2;Te.port1.onmessage=ae,Fe=function(){Be.postMessage(null)}}else Fe=function(){R(ae,0)};function Oe(H){$=H,ee||(ee=!0,Fe())}function xe(H,W){X=R(function(){H(r.unstable_now())},W)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(H){H.callback=null},r.unstable_continueExecution=function(){I||v||(I=!0,Oe(G))},r.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<H?Math.floor(1e3/H):5},r.unstable_getCurrentPriorityLevel=function(){return T},r.unstable_getFirstCallbackNode=function(){return i(x)},r.unstable_next=function(H){switch(T){case 1:case 2:case 3:var W=3;break;default:W=T}var Q=T;T=W;try{return H()}finally{T=Q}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(H,W){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var Q=T;T=H;try{return W()}finally{T=Q}},r.unstable_scheduleCallback=function(H,W,Q){var N=r.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?N+Q:N):Q=N,H){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=Q+z,H={id:E++,callback:W,priorityLevel:H,startTime:Q,expirationTime:z,sortIndex:-1},Q>N?(H.sortIndex=Q,o(g,H),i(x)===null&&H===i(g)&&(b?(D(X),X=-1):b=!0,xe(_,Q-N))):(H.sortIndex=z,o(x,H),I||v||(I=!0,Oe(G))),H},r.unstable_shouldYield=Pe,r.unstable_wrapCallback=function(H){var W=T;return function(){var Q=T;T=W;try{return H.apply(this,arguments)}finally{T=Q}}}})(gu)),gu}var Zf;function fy(){return Zf||(Zf=1,mu.exports=dy()),mu.exports}/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var Hf=r=>{throw TypeError(r)};var du=(r,o,i)=>o.has(r)||Hf("Cannot "+i);var w=(
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Jf;function fy(){if(Jf)return Ct;Jf=1;var r=Gu(),o=dy();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,c={};function d(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x=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]*$/,E={},P={};function T(e){return x.call(P,e)?!0:x.call(E,e)?!1:g.test(e)?P[e]=!0:(E[e]=!0,!1)}function v(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function I(e,t,n,s){if(t===null||typeof t>"u"||v(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function b(e,t,n,s,a,u,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=f}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){R[e]=new b(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];R[t]=new b(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){R[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){R[e]=new b(e,2,!1,e,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(e){R[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){R[e]=new b(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){R[e]=new b(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){R[e]=new b(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){R[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function F(e){return e[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(e){var t=e.replace(D,F);R[t]=new b(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(D,F);R[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(D,F);R[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){R[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),R.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){R[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});function B(e,t,n,s){var a=R.hasOwnProperty(t)?R[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(I(t,n,a,s)&&(n=null),s||a===null?T(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,s=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,G=Symbol.for("react.element"),ee=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),ye=Symbol.for("react.provider"),Pe=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),Oe=Symbol.for("react.lazy"),xe=Symbol.for("react.offscreen"),H=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,N;function _(e){if(N===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return`
33
+ */var Jf;function py(){if(Jf)return Ct;Jf=1;var r=Gu(),o=fy();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,c={};function d(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(c[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x=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]*$/,E={},P={};function T(e){return x.call(P,e)?!0:x.call(E,e)?!1:g.test(e)?P[e]=!0:(E[e]=!0,!1)}function v(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function I(e,t,n,s){if(t===null||typeof t>"u"||v(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function b(e,t,n,s,a,u,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=f}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){R[e]=new b(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];R[t]=new b(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){R[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){R[e]=new b(e,2,!1,e,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(e){R[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){R[e]=new b(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){R[e]=new b(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){R[e]=new b(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){R[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function F(e){return e[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(e){var t=e.replace(D,F);R[t]=new b(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(D,F);R[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(D,F);R[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){R[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),R.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){R[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});function B(e,t,n,s){var a=R.hasOwnProperty(t)?R[t]:null;(a!==null?a.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(I(t,n,a,s)&&(n=null),s||a===null?T(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,s=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,G=Symbol.for("react.element"),ee=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),ye=Symbol.for("react.provider"),Pe=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),Fe=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),Be=Symbol.for("react.memo"),Oe=Symbol.for("react.lazy"),xe=Symbol.for("react.offscreen"),H=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,N;function z(e){if(N===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return`
34
34
  `+N+e}var te=!1;function oe(e,t){if(!e||te)return"";te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(O){var s=O}Reflect.construct(e,[],t)}else{try{t.call()}catch(O){s=O}e.call(t.prototype)}else{try{throw Error()}catch(O){s=O}e()}}catch(O){if(O&&s&&typeof O.stack=="string"){for(var a=O.stack.split(`
35
35
  `),u=s.stack.split(`
36
36
  `),f=a.length-1,y=u.length-1;1<=f&&0<=y&&a[f]!==u[y];)y--;for(;1<=f&&0<=y;f--,y--)if(a[f]!==u[y]){if(f!==1||y!==1)do if(f--,y--,0>y||a[f]!==u[y]){var S=`
37
- `+a[f].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=f&&0<=y);break}}}finally{te=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function de(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return e=oe(e.type,!1),e;case 11:return e=oe(e.type.render,!1),e;case 1:return e=oe(e.type,!0),e;default:return""}}function ve(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case ee:return"Portal";case he:return"Profiler";case X:return"StrictMode";case De:return"Suspense";case Te:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pe:return(e.displayName||"Context")+".Consumer";case ye:return(e._context.displayName||"Context")+".Provider";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Be:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case Oe:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function ce(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(t);case 8:return t===X?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function be(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function je(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=je(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(f){s=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(f){s=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rn(e){e._valueTracker||(e._valueTracker=Ze(e))}function Jr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=je(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function br(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Go(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qs(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=be(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qo(e,t){t=t.checked,t!=null&&B(e,"checked",t,!1)}function Yo(e,t){qo(e,t);var n=be(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xo(e,t.type,be(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xo(e,t,n){(t!=="number"||br(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fn=Array.isArray;function zt(e,t,n,s){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&s&&(e[n].defaultSelected=!0)}else{for(n=""+be(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,s&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function to(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function on(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(Fn(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:be(n)}}function Ys(e,t){var n=be(t.value),s=be(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Xs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dt(e){switch(e){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 sn(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var no,Zs=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(no=no||document.createElement("div"),no.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=no.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function an(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={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},Js=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){Js.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function ro(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function bn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=ro(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var ei=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 ln(e,t){if(t){if(ei[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Zo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 Jo=null;function oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var so=null,Un=null,un=null;function Qt(e){if(e=ws(e)){if(typeof so!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Ci(t),so(e.stateNode,e.type,t))}}function ti(e){Un?un?un.push(e):un=[e]:Un=e}function pe(){if(Un){var e=Un,t=un;if(un=Un=null,Qt(e),t)for(e=0;e<t.length;e++)Qt(t[e])}}function Ne(e,t){return e(t)}function ze(){}var ft=!1;function yt(e,t,n){if(ft)return e(t,n);ft=!0;try{return Ne(e,t,n)}finally{ft=!1,(Un!==null||un!==null)&&(ze(),pe())}}function vt(e,t){var n=e.stateNode;if(n===null)return null;var s=Ci(n);if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var $t=!1;if(p)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){$t=!0}}),window.addEventListener("test",rt,rt),window.removeEventListener("test",rt,rt)}catch{$t=!1}function cn(e,t,n,s,a,u,f,y,S){var O=Array.prototype.slice.call(arguments,3);try{t.apply(n,O)}catch(L){this.onError(L)}}var es=!1,ni=null,ri=!1,Ma=null,pm={onError:function(e){es=!0,ni=e}};function hm(e,t,n,s,a,u,f,y,S){es=!1,ni=null,cn.apply(pm,arguments)}function mm(e,t,n,s,a,u,f,y,S){if(hm.apply(this,arguments),es){if(es){var O=ni;es=!1,ni=null}else throw Error(i(198));ri||(ri=!0,Ma=O)}}function Cr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function hc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function mc(e){if(Cr(e)!==e)throw Error(i(188))}function gm(e){var t=e.alternate;if(!t){if(t=Cr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,s=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(s=a.return,s!==null){n=s;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return mc(a),e;if(u===s)return mc(a),t;u=u.sibling}throw Error(i(188))}if(n.return!==s.return)n=a,s=u;else{for(var f=!1,y=a.child;y;){if(y===n){f=!0,n=a,s=u;break}if(y===s){f=!0,s=a,n=u;break}y=y.sibling}if(!f){for(y=u.child;y;){if(y===n){f=!0,n=u,s=a;break}if(y===s){f=!0,s=u,n=a;break}y=y.sibling}if(!f)throw Error(i(189))}}if(n.alternate!==s)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function gc(e){return e=gm(e),e!==null?yc(e):null}function yc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=yc(e);if(t!==null)return t;e=e.sibling}return null}var vc=o.unstable_scheduleCallback,wc=o.unstable_cancelCallback,ym=o.unstable_shouldYield,vm=o.unstable_requestPaint,He=o.unstable_now,wm=o.unstable_getCurrentPriorityLevel,Ta=o.unstable_ImmediatePriority,xc=o.unstable_UserBlockingPriority,oi=o.unstable_NormalPriority,xm=o.unstable_LowPriority,Sc=o.unstable_IdlePriority,si=null,dn=null;function Sm(e){if(dn&&typeof dn.onCommitFiberRoot=="function")try{dn.onCommitFiberRoot(si,e,void 0,(e.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:Cm,bm=Math.log,km=Math.LN2;function Cm(e){return e>>>=0,e===0?32:31-(bm(e)/km|0)|0}var ii=64,ai=4194304;function ts(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function li(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,a=e.suspendedLanes,u=e.pingedLanes,f=n&268435455;if(f!==0){var y=f&~a;y!==0?s=ts(y):(u&=f,u!==0&&(s=ts(u)))}else f=n&~a,f!==0?s=ts(f):u!==0&&(s=ts(u));if(s===0)return 0;if(t!==0&&t!==s&&(t&a)===0&&(a=s&-s,u=t&-t,a>=u||a===16&&(u&4194240)!==0))return t;if((s&4)!==0&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-Ht(t),a=1<<n,s|=e[n],t&=~a;return s}function Em(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 Nm(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var f=31-Ht(u),y=1<<f,S=a[f];S===-1?((y&n)===0||(y&s)!==0)&&(a[f]=Em(y,t)):S<=t&&(e.expiredLanes|=y),u&=~y}}function Oa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bc(){var e=ii;return ii<<=1,(ii&4194240)===0&&(ii=64),e}function za(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ns(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ht(t),e[t]=n}function Pm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-Ht(n),u=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~u}}function _a(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Ht(n),a=1<<s;a&t|e[s]&t&&(e[s]|=t),n&=~a}}var Me=0;function kc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Cc,Ia,Ec,Nc,Pc,Aa=!1,ui=[],Bn=null,Wn=null,Vn=null,rs=new Map,os=new Map,Qn=[],jm="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 jc(e,t){switch(e){case"focusin":case"focusout":Bn=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":os.delete(t.pointerId)}}function ss(e,t,n,s,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[a]},t!==null&&(t=ws(t),t!==null&&Ia(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Rm(e,t,n,s,a){switch(t){case"focusin":return Bn=ss(Bn,e,t,n,s,a),!0;case"dragenter":return Wn=ss(Wn,e,t,n,s,a),!0;case"mouseover":return Vn=ss(Vn,e,t,n,s,a),!0;case"pointerover":var u=a.pointerId;return rs.set(u,ss(rs.get(u)||null,e,t,n,s,a)),!0;case"gotpointercapture":return u=a.pointerId,os.set(u,ss(os.get(u)||null,e,t,n,s,a)),!0}return!1}function Rc(e){var t=Er(e.target);if(t!==null){var n=Cr(t);if(n!==null){if(t=n.tag,t===13){if(t=hc(n),t!==null){e.blockedOn=t,Pc(e.priority,function(){Ec(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Da(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Jo=s,n.target.dispatchEvent(s),Jo=null}else return t=ws(n),t!==null&&Ia(t),e.blockedOn=n,!1;t.shift()}return!0}function Mc(e,t,n){ci(e)&&n.delete(t)}function Mm(){Aa=!1,Bn!==null&&ci(Bn)&&(Bn=null),Wn!==null&&ci(Wn)&&(Wn=null),Vn!==null&&ci(Vn)&&(Vn=null),rs.forEach(Mc),os.forEach(Mc)}function is(e,t){e.blockedOn===t&&(e.blockedOn=null,Aa||(Aa=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Mm)))}function as(e){function t(a){return is(a,e)}if(0<ui.length){is(ui[0],e);for(var n=1;n<ui.length;n++){var s=ui[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Bn!==null&&is(Bn,e),Wn!==null&&is(Wn,e),Vn!==null&&is(Vn,e),rs.forEach(t),os.forEach(t),n=0;n<Qn.length;n++)s=Qn[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Qn.length&&(n=Qn[0],n.blockedOn===null);)Rc(n),n.blockedOn===null&&Qn.shift()}var io=z.ReactCurrentBatchConfig,di=!0;function Tm(e,t,n,s){var a=Me,u=io.transition;io.transition=null;try{Me=1,La(e,t,n,s)}finally{Me=a,io.transition=u}}function Om(e,t,n,s){var a=Me,u=io.transition;io.transition=null;try{Me=4,La(e,t,n,s)}finally{Me=a,io.transition=u}}function La(e,t,n,s){if(di){var a=Da(e,t,n,s);if(a===null)tl(e,t,s,fi,n),jc(e,s);else if(Rm(a,e,t,n,s))s.stopPropagation();else if(jc(e,s),t&4&&-1<jm.indexOf(e)){for(;a!==null;){var u=ws(a);if(u!==null&&Cc(u),u=Da(e,t,n,s),u===null&&tl(e,t,s,fi,n),u===a)break;a=u}a!==null&&s.stopPropagation()}else tl(e,t,s,null,n)}}var fi=null;function Da(e,t,n,s){if(fi=null,e=oo(s),e=Er(e),e!==null)if(t=Cr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=hc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return fi=e,null}function Tc(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(wm()){case Ta:return 1;case xc:return 4;case oi:case xm:return 16;case Sc:return 536870912;default:return 16}default:return 16}}var $n=null,Fa=null,pi=null;function Oc(){if(pi)return pi;var e,t=Fa,n=t.length,s,a="value"in $n?$n.value:$n.textContent,u=a.length;for(e=0;e<n&&t[e]===a[e];e++);var f=n-e;for(s=1;s<=f&&t[n-s]===a[u-s];s++);return pi=a.slice(e,1<s?1-s:void 0)}function hi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mi(){return!0}function zc(){return!1}function jt(e){function t(n,s,a,u,f){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?mi:zc,this.isPropagationStopped=zc,this}return Q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var ao={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ua=jt(ao),ls=Q({},ao,{view:0,detail:0}),zm=jt(ls),Ba,Wa,us,gi=Q({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==us&&(us&&e.type==="mousemove"?(Ba=e.screenX-us.screenX,Wa=e.screenY-us.screenY):Wa=Ba=0,us=e),Ba)},movementY:function(e){return"movementY"in e?e.movementY:Wa}}),_c=jt(gi),_m=Q({},gi,{dataTransfer:0}),Im=jt(_m),Am=Q({},ls,{relatedTarget:0}),Va=jt(Am),Lm=Q({},ao,{animationName:0,elapsedTime:0,pseudoElement:0}),Dm=jt(Lm),Fm=Q({},ao,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Um=jt(Fm),Bm=Q({},ao,{data:0}),Ic=jt(Bm),Wm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vm={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"},Qm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $m(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qm[e])?!!t[e]:!1}function Qa(){return $m}var Hm=Q({},ls,{key:function(e){if(e.key){var t=Wm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qa,charCode:function(e){return e.type==="keypress"?hi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Km=jt(Hm),Gm=Q({},gi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ac=jt(Gm),qm=Q({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qa}),Ym=jt(qm),Xm=Q({},ao,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zm=jt(Xm),Jm=Q({},gi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eg=jt(Jm),tg=[9,13,27,32],$a=p&&"CompositionEvent"in window,cs=null;p&&"documentMode"in document&&(cs=document.documentMode);var ng=p&&"TextEvent"in window&&!cs,Lc=p&&(!$a||cs&&8<cs&&11>=cs),Dc=" ",Fc=!1;function Uc(e,t){switch(e){case"keyup":return tg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lo=!1;function rg(e,t){switch(e){case"compositionend":return Bc(t);case"keypress":return t.which!==32?null:(Fc=!0,Dc);case"textInput":return e=t.data,e===Dc&&Fc?null:e;default:return null}}function og(e,t){if(lo)return e==="compositionend"||!$a&&Uc(e,t)?(e=Oc(),pi=Fa=$n=null,lo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lc&&t.locale!=="ko"?null:t.data;default:return null}}var sg={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 Wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sg[e.type]:t==="textarea"}function Vc(e,t,n,s){ti(s),t=Si(t,"onChange"),0<t.length&&(n=new Ua("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var ds=null,fs=null;function ig(e){ad(e,0)}function yi(e){var t=ho(e);if(Jr(t))return e}function ag(e,t){if(e==="change")return t}var Qc=!1;if(p){var Ha;if(p){var Ka="oninput"in document;if(!Ka){var $c=document.createElement("div");$c.setAttribute("oninput","return;"),Ka=typeof $c.oninput=="function"}Ha=Ka}else Ha=!1;Qc=Ha&&(!document.documentMode||9<document.documentMode)}function Hc(){ds&&(ds.detachEvent("onpropertychange",Kc),fs=ds=null)}function Kc(e){if(e.propertyName==="value"&&yi(fs)){var t=[];Vc(t,fs,e,oo(e)),yt(ig,t)}}function lg(e,t,n){e==="focusin"?(Hc(),ds=t,fs=n,ds.attachEvent("onpropertychange",Kc)):e==="focusout"&&Hc()}function ug(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yi(fs)}function cg(e,t){if(e==="click")return yi(t)}function dg(e,t){if(e==="input"||e==="change")return yi(t)}function fg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:fg;function ps(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var a=n[s];if(!x.call(t,a)||!Kt(e[a],t[a]))return!1}return!0}function Gc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qc(e,t){var n=Gc(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gc(n)}}function Yc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xc(){for(var e=window,t=br();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=br(e.document)}return t}function Ga(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function pg(e){var t=Xc(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yc(n.ownerDocument.documentElement,n)){if(s!==null&&Ga(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,u=Math.min(s.start,a);s=s.end===void 0?u:Math.min(s.end,a),!e.extend&&u>s&&(a=s,s=u,u=a),a=qc(n,u);var f=qc(n,s);a&&f&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hg=p&&"documentMode"in document&&11>=document.documentMode,uo=null,qa=null,hs=null,Ya=!1;function Zc(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ya||uo==null||uo!==br(s)||(s=uo,"selectionStart"in s&&Ga(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),hs&&ps(hs,s)||(hs=s,s=Si(qa,"onSelect"),0<s.length&&(t=new Ua("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=uo)))}function vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var co={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionend:vi("Transition","TransitionEnd")},Xa={},Jc={};p&&(Jc=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function wi(e){if(Xa[e])return Xa[e];if(!co[e])return e;var t=co[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jc)return Xa[e]=t[n];return e}var ed=wi("animationend"),td=wi("animationiteration"),nd=wi("animationstart"),rd=wi("transitionend"),od=new Map,sd="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 Hn(e,t){od.set(e,t),d(t,[e])}for(var Za=0;Za<sd.length;Za++){var Ja=sd[Za],mg=Ja.toLowerCase(),gg=Ja[0].toUpperCase()+Ja.slice(1);Hn(mg,"on"+gg)}Hn(ed,"onAnimationEnd"),Hn(td,"onAnimationIteration"),Hn(nd,"onAnimationStart"),Hn("dblclick","onDoubleClick"),Hn("focusin","onFocus"),Hn("focusout","onBlur"),Hn(rd,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="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(" "),yg=new Set("cancel close invalid load scroll toggle".split(" ").concat(ms));function id(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,mm(s,t,void 0,e),e.currentTarget=null}function ad(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],a=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var f=s.length-1;0<=f;f--){var y=s[f],S=y.instance,O=y.currentTarget;if(y=y.listener,S!==u&&a.isPropagationStopped())break e;id(a,y,O),u=S}else for(f=0;f<s.length;f++){if(y=s[f],S=y.instance,O=y.currentTarget,y=y.listener,S!==u&&a.isPropagationStopped())break e;id(a,y,O),u=S}}}if(ri)throw e=Ma,ri=!1,Ma=null,e}function Ie(e,t){var n=t[al];n===void 0&&(n=t[al]=new Set);var s=e+"__bubble";n.has(s)||(ld(t,e,2,!1),n.add(s))}function el(e,t,n){var s=0;t&&(s|=4),ld(n,e,s,t)}var xi="_reactListening"+Math.random().toString(36).slice(2);function gs(e){if(!e[xi]){e[xi]=!0,l.forEach(function(n){n!=="selectionchange"&&(yg.has(n)||el(n,!1,e),el(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xi]||(t[xi]=!0,el("selectionchange",!1,t))}}function ld(e,t,n,s){switch(Tc(t)){case 1:var a=Tm;break;case 4:a=Om;break;default:a=La}n=a.bind(null,t,n,e),a=void 0,!$t||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),s?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function tl(e,t,n,s,a){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var f=s.tag;if(f===3||f===4){var y=s.stateNode.containerInfo;if(y===a||y.nodeType===8&&y.parentNode===a)break;if(f===4)for(f=s.return;f!==null;){var S=f.tag;if((S===3||S===4)&&(S=f.stateNode.containerInfo,S===a||S.nodeType===8&&S.parentNode===a))return;f=f.return}for(;y!==null;){if(f=Er(y),f===null)return;if(S=f.tag,S===5||S===6){s=u=f;continue e}y=y.parentNode}}s=s.return}yt(function(){var O=u,L=oo(n),U=[];e:{var A=od.get(e);if(A!==void 0){var Z=Ua,ne=e;switch(e){case"keypress":if(hi(n)===0)break e;case"keydown":case"keyup":Z=Km;break;case"focusin":ne="focus",Z=Va;break;case"focusout":ne="blur",Z=Va;break;case"beforeblur":case"afterblur":Z=Va;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=_c;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Im;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=Ym;break;case ed:case td:case nd:Z=Dm;break;case rd:Z=Zm;break;case"scroll":Z=zm;break;case"wheel":Z=eg;break;case"copy":case"cut":case"paste":Z=Um;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=Ac}var re=(t&4)!==0,Ke=!re&&e==="scroll",j=re?A!==null?A+"Capture":null:A;re=[];for(var C=O,M;C!==null;){M=C;var V=M.stateNode;if(M.tag===5&&V!==null&&(M=V,j!==null&&(V=vt(C,j),V!=null&&re.push(ys(C,V,M)))),Ke)break;C=C.return}0<re.length&&(A=new Z(A,ne,null,n,L),U.push({event:A,listeners:re}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",A&&n!==Jo&&(ne=n.relatedTarget||n.fromElement)&&(Er(ne)||ne[kn]))break e;if((Z||A)&&(A=L.window===L?L:(A=L.ownerDocument)?A.defaultView||A.parentWindow:window,Z?(ne=n.relatedTarget||n.toElement,Z=O,ne=ne?Er(ne):null,ne!==null&&(Ke=Cr(ne),ne!==Ke||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(Z=null,ne=O),Z!==ne)){if(re=_c,V="onMouseLeave",j="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(re=Ac,V="onPointerLeave",j="onPointerEnter",C="pointer"),Ke=Z==null?A:ho(Z),M=ne==null?A:ho(ne),A=new re(V,C+"leave",Z,n,L),A.target=Ke,A.relatedTarget=M,V=null,Er(L)===O&&(re=new re(j,C+"enter",ne,n,L),re.target=M,re.relatedTarget=Ke,V=re),Ke=V,Z&&ne)t:{for(re=Z,j=ne,C=0,M=re;M;M=fo(M))C++;for(M=0,V=j;V;V=fo(V))M++;for(;0<C-M;)re=fo(re),C--;for(;0<M-C;)j=fo(j),M--;for(;C--;){if(re===j||j!==null&&re===j.alternate)break t;re=fo(re),j=fo(j)}re=null}else re=null;Z!==null&&ud(U,A,Z,re,!1),ne!==null&&Ke!==null&&ud(U,Ke,ne,re,!0)}}e:{if(A=O?ho(O):window,Z=A.nodeName&&A.nodeName.toLowerCase(),Z==="select"||Z==="input"&&A.type==="file")var se=ag;else if(Wc(A))if(Qc)se=dg;else{se=ug;var le=lg}else(Z=A.nodeName)&&Z.toLowerCase()==="input"&&(A.type==="checkbox"||A.type==="radio")&&(se=cg);if(se&&(se=se(e,O))){Vc(U,se,n,L);break e}le&&le(e,A,O),e==="focusout"&&(le=A._wrapperState)&&le.controlled&&A.type==="number"&&Xo(A,"number",A.value)}switch(le=O?ho(O):window,e){case"focusin":(Wc(le)||le.contentEditable==="true")&&(uo=le,qa=O,hs=null);break;case"focusout":hs=qa=uo=null;break;case"mousedown":Ya=!0;break;case"contextmenu":case"mouseup":case"dragend":Ya=!1,Zc(U,n,L);break;case"selectionchange":if(hg)break;case"keydown":case"keyup":Zc(U,n,L)}var ue;if($a)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else lo?Uc(e,n)&&(fe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(fe="onCompositionStart");fe&&(Lc&&n.locale!=="ko"&&(lo||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&lo&&(ue=Oc()):($n=L,Fa="value"in $n?$n.value:$n.textContent,lo=!0)),le=Si(O,fe),0<le.length&&(fe=new Ic(fe,e,null,n,L),U.push({event:fe,listeners:le}),ue?fe.data=ue:(ue=Bc(n),ue!==null&&(fe.data=ue)))),(ue=ng?rg(e,n):og(e,n))&&(O=Si(O,"onBeforeInput"),0<O.length&&(L=new Ic("onBeforeInput","beforeinput",null,n,L),U.push({event:L,listeners:O}),L.data=ue))}ad(U,t)})}function ys(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Si(e,t){for(var n=t+"Capture",s=[];e!==null;){var a=e,u=a.stateNode;a.tag===5&&u!==null&&(a=u,u=vt(e,n),u!=null&&s.unshift(ys(e,u,a)),u=vt(e,t),u!=null&&s.push(ys(e,u,a))),e=e.return}return s}function fo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ud(e,t,n,s,a){for(var u=t._reactName,f=[];n!==null&&n!==s;){var y=n,S=y.alternate,O=y.stateNode;if(S!==null&&S===s)break;y.tag===5&&O!==null&&(y=O,a?(S=vt(n,u),S!=null&&f.unshift(ys(n,S,y))):a||(S=vt(n,u),S!=null&&f.push(ys(n,S,y)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var vg=/\r\n?/g,wg=/\u0000|\uFFFD/g;function cd(e){return(typeof e=="string"?e:""+e).replace(vg,`
38
- `).replace(wg,"")}function bi(e,t,n){if(t=cd(t),cd(e)!==t&&n)throw Error(i(425))}function ki(){}var nl=null,rl=null;function ol(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sl=typeof setTimeout=="function"?setTimeout:void 0,xg=typeof clearTimeout=="function"?clearTimeout:void 0,dd=typeof Promise=="function"?Promise:void 0,Sg=typeof queueMicrotask=="function"?queueMicrotask:typeof dd<"u"?function(e){return dd.resolve(null).then(e).catch(bg)}:sl;function bg(e){setTimeout(function(){throw e})}function il(e,t){var n=t,s=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(s===0){e.removeChild(a),as(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);as(t)}function Kn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function fd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fn="__reactFiber$"+po,vs="__reactProps$"+po,kn="__reactContainer$"+po,al="__reactEvents$"+po,kg="__reactListeners$"+po,Cg="__reactHandles$"+po;function Er(e){var t=e[fn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kn]||n[fn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fd(e);e!==null;){if(n=e[fn])return n;e=fd(e)}return t}e=n,n=e.parentNode}return null}function ws(e){return e=e[fn]||e[kn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ho(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Ci(e){return e[vs]||null}var ll=[],mo=-1;function Gn(e){return{current:e}}function Ae(e){0>mo||(e.current=ll[mo],ll[mo]=null,mo--)}function _e(e,t){mo++,ll[mo]=e.current,e.current=t}var qn={},it=Gn(qn),wt=Gn(!1),Nr=qn;function go(e,t){var n=e.type.contextTypes;if(!n)return qn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},u;for(u in n)a[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function xt(e){return e=e.childContextTypes,e!=null}function Ei(){Ae(wt),Ae(it)}function pd(e,t,n){if(it.current!==qn)throw Error(i(168));_e(it,t),_e(wt,n)}function hd(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var a in s)if(!(a in t))throw Error(i(108,ce(e)||"Unknown",a));return Q({},n,s)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qn,Nr=it.current,_e(it,e),_e(wt,wt.current),!0}function md(e,t,n){var s=e.stateNode;if(!s)throw Error(i(169));n?(e=hd(e,t,Nr),s.__reactInternalMemoizedMergedChildContext=e,Ae(wt),Ae(it),_e(it,e)):Ae(wt),_e(wt,n)}var Cn=null,Pi=!1,ul=!1;function gd(e){Cn===null?Cn=[e]:Cn.push(e)}function Eg(e){Pi=!0,gd(e)}function Yn(){if(!ul&&Cn!==null){ul=!0;var e=0,t=Me;try{var n=Cn;for(Me=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}Cn=null,Pi=!1}catch(a){throw Cn!==null&&(Cn=Cn.slice(e+1)),vc(Ta,Yn),a}finally{Me=t,ul=!1}}return null}var yo=[],vo=0,ji=null,Ri=0,_t=[],It=0,Pr=null,En=1,Nn="";function jr(e,t){yo[vo++]=Ri,yo[vo++]=ji,ji=e,Ri=t}function yd(e,t,n){_t[It++]=En,_t[It++]=Nn,_t[It++]=Pr,Pr=e;var s=En;e=Nn;var a=32-Ht(s)-1;s&=~(1<<a),n+=1;var u=32-Ht(t)+a;if(30<u){var f=a-a%5;u=(s&(1<<f)-1).toString(32),s>>=f,a-=f,En=1<<32-Ht(t)+a|n<<a|s,Nn=u+e}else En=1<<u|n<<a|s,Nn=e}function cl(e){e.return!==null&&(jr(e,1),yd(e,1,0))}function dl(e){for(;e===ji;)ji=yo[--vo],yo[vo]=null,Ri=yo[--vo],yo[vo]=null;for(;e===Pr;)Pr=_t[--It],_t[It]=null,Nn=_t[--It],_t[It]=null,En=_t[--It],_t[It]=null}var Rt=null,Mt=null,Fe=!1,Gt=null;function vd(e,t){var n=Ft(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function wd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Rt=e,Mt=Kn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,Mt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pr!==null?{id:En,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,Mt=null,!0):!1;default:return!1}}function fl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function pl(e){if(Fe){var t=Mt;if(t){var n=t;if(!wd(e,t)){if(fl(e))throw Error(i(418));t=Kn(n.nextSibling);var s=Rt;t&&wd(e,t)?vd(s,n):(e.flags=e.flags&-4097|2,Fe=!1,Rt=e)}}else{if(fl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Fe=!1,Rt=e}}}function xd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function Mi(e){if(e!==Rt)return!1;if(!Fe)return xd(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ol(e.type,e.memoizedProps)),t&&(t=Mt)){if(fl(e))throw Sd(),Error(i(418));for(;t;)vd(e,t),t=Kn(t.nextSibling)}if(xd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Mt=Kn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mt=null}}else Mt=Rt?Kn(e.stateNode.nextSibling):null;return!0}function Sd(){for(var e=Mt;e;)e=Kn(e.nextSibling)}function wo(){Mt=Rt=null,Fe=!1}function hl(e){Gt===null?Gt=[e]:Gt.push(e)}var Ng=z.ReactCurrentBatchConfig;function xs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(i(309));var s=n.stateNode}if(!s)throw Error(i(147,e));var a=s,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(f){var y=a.refs;f===null?delete y[u]:y[u]=f},t._stringRef=u,t)}if(typeof e!="string")throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ti(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bd(e){var t=e._init;return t(e._payload)}function kd(e){function t(j,C){if(e){var M=j.deletions;M===null?(j.deletions=[C],j.flags|=16):M.push(C)}}function n(j,C){if(!e)return null;for(;C!==null;)t(j,C),C=C.sibling;return null}function s(j,C){for(j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function a(j,C){return j=or(j,C),j.index=0,j.sibling=null,j}function u(j,C,M){return j.index=M,e?(M=j.alternate,M!==null?(M=M.index,M<C?(j.flags|=2,C):M):(j.flags|=2,C)):(j.flags|=1048576,C)}function f(j){return e&&j.alternate===null&&(j.flags|=2),j}function y(j,C,M,V){return C===null||C.tag!==6?(C=su(M,j.mode,V),C.return=j,C):(C=a(C,M),C.return=j,C)}function S(j,C,M,V){var se=M.type;return se===$?L(j,C,M.props.children,V,M.key):C!==null&&(C.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===Oe&&bd(se)===C.type)?(V=a(C,M.props),V.ref=xs(j,C,M),V.return=j,V):(V=ta(M.type,M.key,M.props,null,j.mode,V),V.ref=xs(j,C,M),V.return=j,V)}function O(j,C,M,V){return C===null||C.tag!==4||C.stateNode.containerInfo!==M.containerInfo||C.stateNode.implementation!==M.implementation?(C=iu(M,j.mode,V),C.return=j,C):(C=a(C,M.children||[]),C.return=j,C)}function L(j,C,M,V,se){return C===null||C.tag!==7?(C=Ar(M,j.mode,V,se),C.return=j,C):(C=a(C,M),C.return=j,C)}function U(j,C,M){if(typeof C=="string"&&C!==""||typeof C=="number")return C=su(""+C,j.mode,M),C.return=j,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case G:return M=ta(C.type,C.key,C.props,null,j.mode,M),M.ref=xs(j,null,C),M.return=j,M;case ee:return C=iu(C,j.mode,M),C.return=j,C;case Oe:var V=C._init;return U(j,V(C._payload),M)}if(Fn(C)||W(C))return C=Ar(C,j.mode,M,null),C.return=j,C;Ti(j,C)}return null}function A(j,C,M,V){var se=C!==null?C.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return se!==null?null:y(j,C,""+M,V);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case G:return M.key===se?S(j,C,M,V):null;case ee:return M.key===se?O(j,C,M,V):null;case Oe:return se=M._init,A(j,C,se(M._payload),V)}if(Fn(M)||W(M))return se!==null?null:L(j,C,M,V,null);Ti(j,M)}return null}function Z(j,C,M,V,se){if(typeof V=="string"&&V!==""||typeof V=="number")return j=j.get(M)||null,y(C,j,""+V,se);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case G:return j=j.get(V.key===null?M:V.key)||null,S(C,j,V,se);case ee:return j=j.get(V.key===null?M:V.key)||null,O(C,j,V,se);case Oe:var le=V._init;return Z(j,C,M,le(V._payload),se)}if(Fn(V)||W(V))return j=j.get(M)||null,L(C,j,V,se,null);Ti(C,V)}return null}function ne(j,C,M,V){for(var se=null,le=null,ue=C,fe=C=0,tt=null;ue!==null&&fe<M.length;fe++){ue.index>fe?(tt=ue,ue=null):tt=ue.sibling;var Ce=A(j,ue,M[fe],V);if(Ce===null){ue===null&&(ue=tt);break}e&&ue&&Ce.alternate===null&&t(j,ue),C=u(Ce,C,fe),le===null?se=Ce:le.sibling=Ce,le=Ce,ue=tt}if(fe===M.length)return n(j,ue),Fe&&jr(j,fe),se;if(ue===null){for(;fe<M.length;fe++)ue=U(j,M[fe],V),ue!==null&&(C=u(ue,C,fe),le===null?se=ue:le.sibling=ue,le=ue);return Fe&&jr(j,fe),se}for(ue=s(j,ue);fe<M.length;fe++)tt=Z(ue,j,fe,M[fe],V),tt!==null&&(e&&tt.alternate!==null&&ue.delete(tt.key===null?fe:tt.key),C=u(tt,C,fe),le===null?se=tt:le.sibling=tt,le=tt);return e&&ue.forEach(function(sr){return t(j,sr)}),Fe&&jr(j,fe),se}function re(j,C,M,V){var se=W(M);if(typeof se!="function")throw Error(i(150));if(M=se.call(M),M==null)throw Error(i(151));for(var le=se=null,ue=C,fe=C=0,tt=null,Ce=M.next();ue!==null&&!Ce.done;fe++,Ce=M.next()){ue.index>fe?(tt=ue,ue=null):tt=ue.sibling;var sr=A(j,ue,Ce.value,V);if(sr===null){ue===null&&(ue=tt);break}e&&ue&&sr.alternate===null&&t(j,ue),C=u(sr,C,fe),le===null?se=sr:le.sibling=sr,le=sr,ue=tt}if(Ce.done)return n(j,ue),Fe&&jr(j,fe),se;if(ue===null){for(;!Ce.done;fe++,Ce=M.next())Ce=U(j,Ce.value,V),Ce!==null&&(C=u(Ce,C,fe),le===null?se=Ce:le.sibling=Ce,le=Ce);return Fe&&jr(j,fe),se}for(ue=s(j,ue);!Ce.done;fe++,Ce=M.next())Ce=Z(ue,j,fe,Ce.value,V),Ce!==null&&(e&&Ce.alternate!==null&&ue.delete(Ce.key===null?fe:Ce.key),C=u(Ce,C,fe),le===null?se=Ce:le.sibling=Ce,le=Ce);return e&&ue.forEach(function(sy){return t(j,sy)}),Fe&&jr(j,fe),se}function Ke(j,C,M,V){if(typeof M=="object"&&M!==null&&M.type===$&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case G:e:{for(var se=M.key,le=C;le!==null;){if(le.key===se){if(se=M.type,se===$){if(le.tag===7){n(j,le.sibling),C=a(le,M.props.children),C.return=j,j=C;break e}}else if(le.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===Oe&&bd(se)===le.type){n(j,le.sibling),C=a(le,M.props),C.ref=xs(j,le,M),C.return=j,j=C;break e}n(j,le);break}else t(j,le);le=le.sibling}M.type===$?(C=Ar(M.props.children,j.mode,V,M.key),C.return=j,j=C):(V=ta(M.type,M.key,M.props,null,j.mode,V),V.ref=xs(j,C,M),V.return=j,j=V)}return f(j);case ee:e:{for(le=M.key;C!==null;){if(C.key===le)if(C.tag===4&&C.stateNode.containerInfo===M.containerInfo&&C.stateNode.implementation===M.implementation){n(j,C.sibling),C=a(C,M.children||[]),C.return=j,j=C;break e}else{n(j,C);break}else t(j,C);C=C.sibling}C=iu(M,j.mode,V),C.return=j,j=C}return f(j);case Oe:return le=M._init,Ke(j,C,le(M._payload),V)}if(Fn(M))return ne(j,C,M,V);if(W(M))return re(j,C,M,V);Ti(j,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,C!==null&&C.tag===6?(n(j,C.sibling),C=a(C,M),C.return=j,j=C):(n(j,C),C=su(M,j.mode,V),C.return=j,j=C),f(j)):n(j,C)}return Ke}var xo=kd(!0),Cd=kd(!1),Oi=Gn(null),zi=null,So=null,ml=null;function gl(){ml=So=zi=null}function yl(e){var t=Oi.current;Ae(Oi),e._currentValue=t}function vl(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function bo(e,t){zi=e,ml=So=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(St=!0),e.firstContext=null)}function At(e){var t=e._currentValue;if(ml!==e)if(e={context:e,memoizedValue:t,next:null},So===null){if(zi===null)throw Error(i(308));So=e,zi.dependencies={lanes:0,firstContext:e}}else So=So.next=e;return t}var Rr=null;function wl(e){Rr===null?Rr=[e]:Rr.push(e)}function Ed(e,t,n,s){var a=t.interleaved;return a===null?(n.next=n,wl(t)):(n.next=a.next,a.next=n),t.interleaved=n,Pn(e,s)}function Pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xn=!1;function xl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Nd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ke&2)!==0){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,Pn(e,n)}return a=s.interleaved,a===null?(t.next=t,wl(s)):(t.next=a.next,a.next=t),s.interleaved=t,Pn(e,n)}function _i(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,_a(e,n)}}function Pd(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?a=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?a=u=t:u=u.next=t}else a=u=t;n={baseState:s.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ii(e,t,n,s){var a=e.updateQueue;Xn=!1;var u=a.firstBaseUpdate,f=a.lastBaseUpdate,y=a.shared.pending;if(y!==null){a.shared.pending=null;var S=y,O=S.next;S.next=null,f===null?u=O:f.next=O,f=S;var L=e.alternate;L!==null&&(L=L.updateQueue,y=L.lastBaseUpdate,y!==f&&(y===null?L.firstBaseUpdate=O:y.next=O,L.lastBaseUpdate=S))}if(u!==null){var U=a.baseState;f=0,L=O=S=null,y=u;do{var A=y.lane,Z=y.eventTime;if((s&A)===A){L!==null&&(L=L.next={eventTime:Z,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var ne=e,re=y;switch(A=t,Z=n,re.tag){case 1:if(ne=re.payload,typeof ne=="function"){U=ne.call(Z,U,A);break e}U=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=re.payload,A=typeof ne=="function"?ne.call(Z,U,A):ne,A==null)break e;U=Q({},U,A);break e;case 2:Xn=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,A=a.effects,A===null?a.effects=[y]:A.push(y))}else Z={eventTime:Z,lane:A,tag:y.tag,payload:y.payload,callback:y.callback,next:null},L===null?(O=L=Z,S=U):L=L.next=Z,f|=A;if(y=y.next,y===null){if(y=a.shared.pending,y===null)break;A=y,y=A.next,A.next=null,a.lastBaseUpdate=A,a.shared.pending=null}}while(!0);if(L===null&&(S=U),a.baseState=S,a.firstBaseUpdate=O,a.lastBaseUpdate=L,t=a.shared.interleaved,t!==null){a=t;do f|=a.lane,a=a.next;while(a!==t)}else u===null&&(a.shared.lanes=0);Or|=f,e.lanes=f,e.memoizedState=U}}function jd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],a=s.callback;if(a!==null){if(s.callback=null,s=n,typeof a!="function")throw Error(i(191,a));a.call(s)}}}var Ss={},pn=Gn(Ss),bs=Gn(Ss),ks=Gn(Ss);function Mr(e){if(e===Ss)throw Error(i(174));return e}function Sl(e,t){switch(_e(ks,t),_e(bs,e),_e(pn,Ss),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sn(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sn(t,e)}Ae(pn),_e(pn,t)}function ko(){Ae(pn),Ae(bs),Ae(ks)}function Rd(e){Mr(ks.current);var t=Mr(pn.current),n=sn(t,e.type);t!==n&&(_e(bs,e),_e(pn,n))}function bl(e){bs.current===e&&(Ae(pn),Ae(bs))}var We=Gn(0);function Ai(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kl=[];function Cl(){for(var e=0;e<kl.length;e++)kl[e]._workInProgressVersionPrimary=null;kl.length=0}var Li=z.ReactCurrentDispatcher,El=z.ReactCurrentBatchConfig,Tr=0,Ve=null,qe=null,Je=null,Di=!1,Cs=!1,Es=0,Pg=0;function at(){throw Error(i(321))}function Nl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kt(e[n],t[n]))return!1;return!0}function Pl(e,t,n,s,a,u){if(Tr=u,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Li.current=e===null||e.memoizedState===null?Tg:Og,e=n(s,a),Cs){u=0;do{if(Cs=!1,Es=0,25<=u)throw Error(i(301));u+=1,Je=qe=null,t.updateQueue=null,Li.current=zg,e=n(s,a)}while(Cs)}if(Li.current=Bi,t=qe!==null&&qe.next!==null,Tr=0,Je=qe=Ve=null,Di=!1,t)throw Error(i(300));return e}function jl(){var e=Es!==0;return Es=0,e}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Ve.memoizedState=Je=e:Je=Je.next=e,Je}function Lt(){if(qe===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Je===null?Ve.memoizedState:Je.next;if(t!==null)Je=t,qe=e;else{if(e===null)throw Error(i(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Je===null?Ve.memoizedState=Je=e:Je=Je.next=e}return Je}function Ns(e,t){return typeof t=="function"?t(e):t}function Rl(e){var t=Lt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var s=qe,a=s.baseQueue,u=n.pending;if(u!==null){if(a!==null){var f=a.next;a.next=u.next,u.next=f}s.baseQueue=a=u,n.pending=null}if(a!==null){u=a.next,s=s.baseState;var y=f=null,S=null,O=u;do{var L=O.lane;if((Tr&L)===L)S!==null&&(S=S.next={lane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),s=O.hasEagerState?O.eagerState:e(s,O.action);else{var U={lane:L,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null};S===null?(y=S=U,f=s):S=S.next=U,Ve.lanes|=L,Or|=L}O=O.next}while(O!==null&&O!==u);S===null?f=s:S.next=y,Kt(s,t.memoizedState)||(St=!0),t.memoizedState=s,t.baseState=f,t.baseQueue=S,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do u=a.lane,Ve.lanes|=u,Or|=u,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ml(e){var t=Lt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var s=n.dispatch,a=n.pending,u=t.memoizedState;if(a!==null){n.pending=null;var f=a=a.next;do u=e(u,f.action),f=f.next;while(f!==a);Kt(u,t.memoizedState)||(St=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function Md(){}function Td(e,t){var n=Ve,s=Lt(),a=t(),u=!Kt(s.memoizedState,a);if(u&&(s.memoizedState=a,St=!0),s=s.queue,Tl(_d.bind(null,n,s,e),[e]),s.getSnapshot!==t||u||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,Ps(9,zd.bind(null,n,s,a,t),void 0,null),et===null)throw Error(i(349));(Tr&30)!==0||Od(n,t,a)}return a}function Od(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zd(e,t,n,s){t.value=n,t.getSnapshot=s,Id(t)&&Ad(e)}function _d(e,t,n){return n(function(){Id(t)&&Ad(e)})}function Id(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch{return!0}}function Ad(e){var t=Pn(e,1);t!==null&&Zt(t,e,1,-1)}function Ld(e){var t=hn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ns,lastRenderedState:e},t.queue=e,e=e.dispatch=Mg.bind(null,Ve,e),[t.memoizedState,e]}function Ps(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function Dd(){return Lt().memoizedState}function Fi(e,t,n,s){var a=hn();Ve.flags|=e,a.memoizedState=Ps(1|t,n,void 0,s===void 0?null:s)}function Ui(e,t,n,s){var a=Lt();s=s===void 0?null:s;var u=void 0;if(qe!==null){var f=qe.memoizedState;if(u=f.destroy,s!==null&&Nl(s,f.deps)){a.memoizedState=Ps(t,n,u,s);return}}Ve.flags|=e,a.memoizedState=Ps(1|t,n,u,s)}function Fd(e,t){return Fi(8390656,8,e,t)}function Tl(e,t){return Ui(2048,8,e,t)}function Ud(e,t){return Ui(4,2,e,t)}function Bd(e,t){return Ui(4,4,e,t)}function Wd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vd(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4,4,Wd.bind(null,t,e),n)}function Ol(){}function Qd(e,t){var n=Lt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Nl(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function $d(e,t){var n=Lt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Nl(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Hd(e,t,n){return(Tr&21)===0?(e.baseState&&(e.baseState=!1,St=!0),e.memoizedState=n):(Kt(n,t)||(n=bc(),Ve.lanes|=n,Or|=n,e.baseState=!0),t)}function jg(e,t){var n=Me;Me=n!==0&&4>n?n:4,e(!0);var s=El.transition;El.transition={};try{e(!1),t()}finally{Me=n,El.transition=s}}function Kd(){return Lt().memoizedState}function Rg(e,t,n){var s=nr(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Gd(e))qd(t,n);else if(n=Ed(e,t,n,s),n!==null){var a=ht();Zt(n,e,s,a),Yd(n,t,s)}}function Mg(e,t,n){var s=nr(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gd(e))qd(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,y=u(f,n);if(a.hasEagerState=!0,a.eagerState=y,Kt(y,f)){var S=t.interleaved;S===null?(a.next=a,wl(t)):(a.next=S.next,S.next=a),t.interleaved=a;return}}catch{}finally{}n=Ed(e,t,a,s),n!==null&&(a=ht(),Zt(n,e,s,a),Yd(n,t,s))}}function Gd(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function qd(e,t){Cs=Di=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yd(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,_a(e,n)}}var Bi={readContext:At,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},Tg={readContext:At,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:Fd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,Wd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=hn();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=Rg.bind(null,Ve,e),[s.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:Ld,useDebugValue:Ol,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=Ld(!1),t=e[0];return e=jg.bind(null,e[1]),hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ve,a=hn();if(Fe){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),et===null)throw Error(i(349));(Tr&30)!==0||Od(s,t,n)}a.memoizedState=n;var u={value:n,getSnapshot:t};return a.queue=u,Fd(_d.bind(null,s,u,e),[e]),s.flags|=2048,Ps(9,zd.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=hn(),t=et.identifierPrefix;if(Fe){var n=Nn,s=En;n=(s&~(1<<32-Ht(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Es++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Pg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Og={readContext:At,useCallback:Qd,useContext:At,useEffect:Tl,useImperativeHandle:Vd,useInsertionEffect:Ud,useLayoutEffect:Bd,useMemo:$d,useReducer:Rl,useRef:Dd,useState:function(){return Rl(Ns)},useDebugValue:Ol,useDeferredValue:function(e){var t=Lt();return Hd(t,qe.memoizedState,e)},useTransition:function(){var e=Rl(Ns)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Md,useSyncExternalStore:Td,useId:Kd,unstable_isNewReconciler:!1},zg={readContext:At,useCallback:Qd,useContext:At,useEffect:Tl,useImperativeHandle:Vd,useInsertionEffect:Ud,useLayoutEffect:Bd,useMemo:$d,useReducer:Ml,useRef:Dd,useState:function(){return Ml(Ns)},useDebugValue:Ol,useDeferredValue:function(e){var t=Lt();return qe===null?t.memoizedState=e:Hd(t,qe.memoizedState,e)},useTransition:function(){var e=Ml(Ns)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Md,useSyncExternalStore:Td,useId:Kd,unstable_isNewReconciler:!1};function qt(e,t){if(e&&e.defaultProps){t=Q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function zl(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:Q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return(e=e._reactInternals)?Cr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=ht(),a=nr(e),u=jn(s,a);u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,a),t!==null&&(Zt(t,e,a,s),_i(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=ht(),a=nr(e),u=jn(s,a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,a),t!==null&&(Zt(t,e,a,s),_i(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ht(),s=nr(e),a=jn(n,s);a.tag=2,t!=null&&(a.callback=t),t=Zn(e,a,s),t!==null&&(Zt(t,e,s,n),_i(t,e,s))}};function Xd(e,t,n,s,a,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,f):t.prototype&&t.prototype.isPureReactComponent?!ps(n,s)||!ps(a,u):!0}function Zd(e,t,n){var s=!1,a=qn,u=t.contextType;return typeof u=="object"&&u!==null?u=At(u):(a=xt(t)?Nr:it.current,s=t.contextTypes,u=(s=s!=null)?go(e,a):qn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=u),t}function Jd(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&Wi.enqueueReplaceState(t,t.state,null)}function _l(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},xl(e);var u=t.contextType;typeof u=="object"&&u!==null?a.context=At(u):(u=xt(t)?Nr:it.current,a.context=go(e,u)),a.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(zl(e,t,u,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Wi.enqueueReplaceState(a,a.state,null),Ii(e,n,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Co(e,t){try{var n="",s=t;do n+=de(s),s=s.return;while(s);var a=n}catch(u){a=`
37
+ `+a[f].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=f&&0<=y);break}}}finally{te=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function de(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=oe(e.type,!1),e;case 11:return e=oe(e.type.render,!1),e;case 1:return e=oe(e.type,!0),e;default:return""}}function ve(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $:return"Fragment";case ee:return"Portal";case he:return"Profiler";case X:return"StrictMode";case Fe:return"Suspense";case Te:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pe:return(e.displayName||"Context")+".Consumer";case ye:return(e._context.displayName||"Context")+".Provider";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Be:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case Oe:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function ce(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(t);case 8:return t===X?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function be(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function je(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ze(e){var t=je(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(f){s=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(f){s=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nn(e){e._valueTracker||(e._valueTracker=Ze(e))}function Jr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=je(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function br(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Go(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qs(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=be(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qo(e,t){t=t.checked,t!=null&&B(e,"checked",t,!1)}function Yo(e,t){qo(e,t);var n=be(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xo(e,t.type,be(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xo(e,t,n){(t!=="number"||br(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fn=Array.isArray;function _t(e,t,n,s){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&s&&(e[n].defaultSelected=!0)}else{for(n=""+be(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,s&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function to(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function rn(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(Fn(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:be(n)}}function Ys(e,t){var n=be(t.value),s=be(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Xs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function dt(e){switch(e){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 on(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var no,Zs=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(no=no||document.createElement("div"),no.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=no.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={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},Js=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){Js.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function ro(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function bn(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=ro(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var ei=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 an(e,t){if(t){if(ei[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Zo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 Jo=null;function oo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var so=null,Un=null,ln=null;function Vt(e){if(e=ws(e)){if(typeof so!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Ci(t),so(e.stateNode,e.type,t))}}function ti(e){Un?ln?ln.push(e):ln=[e]:Un=e}function pe(){if(Un){var e=Un,t=ln;if(ln=Un=null,Vt(e),t)for(e=0;e<t.length;e++)Vt(t[e])}}function Ne(e,t){return e(t)}function _e(){}var ft=!1;function yt(e,t,n){if(ft)return e(t,n);ft=!0;try{return Ne(e,t,n)}finally{ft=!1,(Un!==null||ln!==null)&&(_e(),pe())}}function vt(e,t){var n=e.stateNode;if(n===null)return null;var s=Ci(n);if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var Qt=!1;if(p)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){Qt=!0}}),window.addEventListener("test",rt,rt),window.removeEventListener("test",rt,rt)}catch{Qt=!1}function un(e,t,n,s,a,u,f,y,S){var O=Array.prototype.slice.call(arguments,3);try{t.apply(n,O)}catch(L){this.onError(L)}}var es=!1,ni=null,ri=!1,Ma=null,hm={onError:function(e){es=!0,ni=e}};function mm(e,t,n,s,a,u,f,y,S){es=!1,ni=null,un.apply(hm,arguments)}function gm(e,t,n,s,a,u,f,y,S){if(mm.apply(this,arguments),es){if(es){var O=ni;es=!1,ni=null}else throw Error(i(198));ri||(ri=!0,Ma=O)}}function Cr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function hc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function mc(e){if(Cr(e)!==e)throw Error(i(188))}function ym(e){var t=e.alternate;if(!t){if(t=Cr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,s=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(s=a.return,s!==null){n=s;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return mc(a),e;if(u===s)return mc(a),t;u=u.sibling}throw Error(i(188))}if(n.return!==s.return)n=a,s=u;else{for(var f=!1,y=a.child;y;){if(y===n){f=!0,n=a,s=u;break}if(y===s){f=!0,s=a,n=u;break}y=y.sibling}if(!f){for(y=u.child;y;){if(y===n){f=!0,n=u,s=a;break}if(y===s){f=!0,s=u,n=a;break}y=y.sibling}if(!f)throw Error(i(189))}}if(n.alternate!==s)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function gc(e){return e=ym(e),e!==null?yc(e):null}function yc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=yc(e);if(t!==null)return t;e=e.sibling}return null}var vc=o.unstable_scheduleCallback,wc=o.unstable_cancelCallback,vm=o.unstable_shouldYield,wm=o.unstable_requestPaint,He=o.unstable_now,xm=o.unstable_getCurrentPriorityLevel,Ta=o.unstable_ImmediatePriority,xc=o.unstable_UserBlockingPriority,oi=o.unstable_NormalPriority,Sm=o.unstable_LowPriority,Sc=o.unstable_IdlePriority,si=null,cn=null;function bm(e){if(cn&&typeof cn.onCommitFiberRoot=="function")try{cn.onCommitFiberRoot(si,e,void 0,(e.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:Em,km=Math.log,Cm=Math.LN2;function Em(e){return e>>>=0,e===0?32:31-(km(e)/Cm|0)|0}var ii=64,ai=4194304;function ts(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function li(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,a=e.suspendedLanes,u=e.pingedLanes,f=n&268435455;if(f!==0){var y=f&~a;y!==0?s=ts(y):(u&=f,u!==0&&(s=ts(u)))}else f=n&~a,f!==0?s=ts(f):u!==0&&(s=ts(u));if(s===0)return 0;if(t!==0&&t!==s&&(t&a)===0&&(a=s&-s,u=t&-t,a>=u||a===16&&(u&4194240)!==0))return t;if((s&4)!==0&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-$t(t),a=1<<n,s|=e[n],t&=~a;return s}function Nm(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 Pm(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var f=31-$t(u),y=1<<f,S=a[f];S===-1?((y&n)===0||(y&s)!==0)&&(a[f]=Nm(y,t)):S<=t&&(e.expiredLanes|=y),u&=~y}}function Oa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bc(){var e=ii;return ii<<=1,(ii&4194240)===0&&(ii=64),e}function _a(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ns(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$t(t),e[t]=n}function jm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-$t(n),u=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~u}}function za(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-$t(n),a=1<<s;a&t|e[s]&t&&(e[s]|=t),n&=~a}}var Me=0;function kc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Cc,Ia,Ec,Nc,Pc,Aa=!1,ui=[],Bn=null,Wn=null,Vn=null,rs=new Map,os=new Map,Qn=[],Rm="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 jc(e,t){switch(e){case"focusin":case"focusout":Bn=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":rs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":os.delete(t.pointerId)}}function ss(e,t,n,s,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[a]},t!==null&&(t=ws(t),t!==null&&Ia(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Mm(e,t,n,s,a){switch(t){case"focusin":return Bn=ss(Bn,e,t,n,s,a),!0;case"dragenter":return Wn=ss(Wn,e,t,n,s,a),!0;case"mouseover":return Vn=ss(Vn,e,t,n,s,a),!0;case"pointerover":var u=a.pointerId;return rs.set(u,ss(rs.get(u)||null,e,t,n,s,a)),!0;case"gotpointercapture":return u=a.pointerId,os.set(u,ss(os.get(u)||null,e,t,n,s,a)),!0}return!1}function Rc(e){var t=Er(e.target);if(t!==null){var n=Cr(t);if(n!==null){if(t=n.tag,t===13){if(t=hc(n),t!==null){e.blockedOn=t,Pc(e.priority,function(){Ec(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ci(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Da(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Jo=s,n.target.dispatchEvent(s),Jo=null}else return t=ws(n),t!==null&&Ia(t),e.blockedOn=n,!1;t.shift()}return!0}function Mc(e,t,n){ci(e)&&n.delete(t)}function Tm(){Aa=!1,Bn!==null&&ci(Bn)&&(Bn=null),Wn!==null&&ci(Wn)&&(Wn=null),Vn!==null&&ci(Vn)&&(Vn=null),rs.forEach(Mc),os.forEach(Mc)}function is(e,t){e.blockedOn===t&&(e.blockedOn=null,Aa||(Aa=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Tm)))}function as(e){function t(a){return is(a,e)}if(0<ui.length){is(ui[0],e);for(var n=1;n<ui.length;n++){var s=ui[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Bn!==null&&is(Bn,e),Wn!==null&&is(Wn,e),Vn!==null&&is(Vn,e),rs.forEach(t),os.forEach(t),n=0;n<Qn.length;n++)s=Qn[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Qn.length&&(n=Qn[0],n.blockedOn===null);)Rc(n),n.blockedOn===null&&Qn.shift()}var io=_.ReactCurrentBatchConfig,di=!0;function Om(e,t,n,s){var a=Me,u=io.transition;io.transition=null;try{Me=1,La(e,t,n,s)}finally{Me=a,io.transition=u}}function _m(e,t,n,s){var a=Me,u=io.transition;io.transition=null;try{Me=4,La(e,t,n,s)}finally{Me=a,io.transition=u}}function La(e,t,n,s){if(di){var a=Da(e,t,n,s);if(a===null)tl(e,t,s,fi,n),jc(e,s);else if(Mm(a,e,t,n,s))s.stopPropagation();else if(jc(e,s),t&4&&-1<Rm.indexOf(e)){for(;a!==null;){var u=ws(a);if(u!==null&&Cc(u),u=Da(e,t,n,s),u===null&&tl(e,t,s,fi,n),u===a)break;a=u}a!==null&&s.stopPropagation()}else tl(e,t,s,null,n)}}var fi=null;function Da(e,t,n,s){if(fi=null,e=oo(s),e=Er(e),e!==null)if(t=Cr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=hc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return fi=e,null}function Tc(e){switch(e){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(xm()){case Ta:return 1;case xc:return 4;case oi:case Sm:return 16;case Sc:return 536870912;default:return 16}default:return 16}}var $n=null,Fa=null,pi=null;function Oc(){if(pi)return pi;var e,t=Fa,n=t.length,s,a="value"in $n?$n.value:$n.textContent,u=a.length;for(e=0;e<n&&t[e]===a[e];e++);var f=n-e;for(s=1;s<=f&&t[n-s]===a[u-s];s++);return pi=a.slice(e,1<s?1-s:void 0)}function hi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mi(){return!0}function _c(){return!1}function jt(e){function t(n,s,a,u,f){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?mi:_c,this.isPropagationStopped=_c,this}return Q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mi)},persist:function(){},isPersistent:mi}),t}var ao={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ua=jt(ao),ls=Q({},ao,{view:0,detail:0}),zm=jt(ls),Ba,Wa,us,gi=Q({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==us&&(us&&e.type==="mousemove"?(Ba=e.screenX-us.screenX,Wa=e.screenY-us.screenY):Wa=Ba=0,us=e),Ba)},movementY:function(e){return"movementY"in e?e.movementY:Wa}}),zc=jt(gi),Im=Q({},gi,{dataTransfer:0}),Am=jt(Im),Lm=Q({},ls,{relatedTarget:0}),Va=jt(Lm),Dm=Q({},ao,{animationName:0,elapsedTime:0,pseudoElement:0}),Fm=jt(Dm),Um=Q({},ao,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bm=jt(Um),Wm=Q({},ao,{data:0}),Ic=jt(Wm),Vm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qm={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"},$m={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$m[e])?!!t[e]:!1}function Qa(){return Hm}var Km=Q({},ls,{key:function(e){if(e.key){var t=Vm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qa,charCode:function(e){return e.type==="keypress"?hi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gm=jt(Km),qm=Q({},gi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ac=jt(qm),Ym=Q({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qa}),Xm=jt(Ym),Zm=Q({},ao,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jm=jt(Zm),eg=Q({},gi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),tg=jt(eg),ng=[9,13,27,32],$a=p&&"CompositionEvent"in window,cs=null;p&&"documentMode"in document&&(cs=document.documentMode);var rg=p&&"TextEvent"in window&&!cs,Lc=p&&(!$a||cs&&8<cs&&11>=cs),Dc=" ",Fc=!1;function Uc(e,t){switch(e){case"keyup":return ng.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lo=!1;function og(e,t){switch(e){case"compositionend":return Bc(t);case"keypress":return t.which!==32?null:(Fc=!0,Dc);case"textInput":return e=t.data,e===Dc&&Fc?null:e;default:return null}}function sg(e,t){if(lo)return e==="compositionend"||!$a&&Uc(e,t)?(e=Oc(),pi=Fa=$n=null,lo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lc&&t.locale!=="ko"?null:t.data;default:return null}}var ig={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 Wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ig[e.type]:t==="textarea"}function Vc(e,t,n,s){ti(s),t=Si(t,"onChange"),0<t.length&&(n=new Ua("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var ds=null,fs=null;function ag(e){ad(e,0)}function yi(e){var t=ho(e);if(Jr(t))return e}function lg(e,t){if(e==="change")return t}var Qc=!1;if(p){var Ha;if(p){var Ka="oninput"in document;if(!Ka){var $c=document.createElement("div");$c.setAttribute("oninput","return;"),Ka=typeof $c.oninput=="function"}Ha=Ka}else Ha=!1;Qc=Ha&&(!document.documentMode||9<document.documentMode)}function Hc(){ds&&(ds.detachEvent("onpropertychange",Kc),fs=ds=null)}function Kc(e){if(e.propertyName==="value"&&yi(fs)){var t=[];Vc(t,fs,e,oo(e)),yt(ag,t)}}function ug(e,t,n){e==="focusin"?(Hc(),ds=t,fs=n,ds.attachEvent("onpropertychange",Kc)):e==="focusout"&&Hc()}function cg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yi(fs)}function dg(e,t){if(e==="click")return yi(t)}function fg(e,t){if(e==="input"||e==="change")return yi(t)}function pg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:pg;function ps(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var a=n[s];if(!x.call(t,a)||!Ht(e[a],t[a]))return!1}return!0}function Gc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qc(e,t){var n=Gc(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gc(n)}}function Yc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xc(){for(var e=window,t=br();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=br(e.document)}return t}function Ga(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hg(e){var t=Xc(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yc(n.ownerDocument.documentElement,n)){if(s!==null&&Ga(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,u=Math.min(s.start,a);s=s.end===void 0?u:Math.min(s.end,a),!e.extend&&u>s&&(a=s,s=u,u=a),a=qc(n,u);var f=qc(n,s);a&&f&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),u>s?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mg=p&&"documentMode"in document&&11>=document.documentMode,uo=null,qa=null,hs=null,Ya=!1;function Zc(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ya||uo==null||uo!==br(s)||(s=uo,"selectionStart"in s&&Ga(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),hs&&ps(hs,s)||(hs=s,s=Si(qa,"onSelect"),0<s.length&&(t=new Ua("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=uo)))}function vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var co={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionend:vi("Transition","TransitionEnd")},Xa={},Jc={};p&&(Jc=document.createElement("div").style,"AnimationEvent"in window||(delete co.animationend.animation,delete co.animationiteration.animation,delete co.animationstart.animation),"TransitionEvent"in window||delete co.transitionend.transition);function wi(e){if(Xa[e])return Xa[e];if(!co[e])return e;var t=co[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jc)return Xa[e]=t[n];return e}var ed=wi("animationend"),td=wi("animationiteration"),nd=wi("animationstart"),rd=wi("transitionend"),od=new Map,sd="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 Hn(e,t){od.set(e,t),d(t,[e])}for(var Za=0;Za<sd.length;Za++){var Ja=sd[Za],gg=Ja.toLowerCase(),yg=Ja[0].toUpperCase()+Ja.slice(1);Hn(gg,"on"+yg)}Hn(ed,"onAnimationEnd"),Hn(td,"onAnimationIteration"),Hn(nd,"onAnimationStart"),Hn("dblclick","onDoubleClick"),Hn("focusin","onFocus"),Hn("focusout","onBlur"),Hn(rd,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="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(" "),vg=new Set("cancel close invalid load scroll toggle".split(" ").concat(ms));function id(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,gm(s,t,void 0,e),e.currentTarget=null}function ad(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],a=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var f=s.length-1;0<=f;f--){var y=s[f],S=y.instance,O=y.currentTarget;if(y=y.listener,S!==u&&a.isPropagationStopped())break e;id(a,y,O),u=S}else for(f=0;f<s.length;f++){if(y=s[f],S=y.instance,O=y.currentTarget,y=y.listener,S!==u&&a.isPropagationStopped())break e;id(a,y,O),u=S}}}if(ri)throw e=Ma,ri=!1,Ma=null,e}function Ie(e,t){var n=t[al];n===void 0&&(n=t[al]=new Set);var s=e+"__bubble";n.has(s)||(ld(t,e,2,!1),n.add(s))}function el(e,t,n){var s=0;t&&(s|=4),ld(n,e,s,t)}var xi="_reactListening"+Math.random().toString(36).slice(2);function gs(e){if(!e[xi]){e[xi]=!0,l.forEach(function(n){n!=="selectionchange"&&(vg.has(n)||el(n,!1,e),el(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xi]||(t[xi]=!0,el("selectionchange",!1,t))}}function ld(e,t,n,s){switch(Tc(t)){case 1:var a=Om;break;case 4:a=_m;break;default:a=La}n=a.bind(null,t,n,e),a=void 0,!Qt||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),s?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function tl(e,t,n,s,a){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var f=s.tag;if(f===3||f===4){var y=s.stateNode.containerInfo;if(y===a||y.nodeType===8&&y.parentNode===a)break;if(f===4)for(f=s.return;f!==null;){var S=f.tag;if((S===3||S===4)&&(S=f.stateNode.containerInfo,S===a||S.nodeType===8&&S.parentNode===a))return;f=f.return}for(;y!==null;){if(f=Er(y),f===null)return;if(S=f.tag,S===5||S===6){s=u=f;continue e}y=y.parentNode}}s=s.return}yt(function(){var O=u,L=oo(n),U=[];e:{var A=od.get(e);if(A!==void 0){var Z=Ua,ne=e;switch(e){case"keypress":if(hi(n)===0)break e;case"keydown":case"keyup":Z=Gm;break;case"focusin":ne="focus",Z=Va;break;case"focusout":ne="blur",Z=Va;break;case"beforeblur":case"afterblur":Z=Va;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=zc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Am;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=Xm;break;case ed:case td:case nd:Z=Fm;break;case rd:Z=Jm;break;case"scroll":Z=zm;break;case"wheel":Z=tg;break;case"copy":case"cut":case"paste":Z=Bm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=Ac}var re=(t&4)!==0,Ke=!re&&e==="scroll",j=re?A!==null?A+"Capture":null:A;re=[];for(var C=O,M;C!==null;){M=C;var V=M.stateNode;if(M.tag===5&&V!==null&&(M=V,j!==null&&(V=vt(C,j),V!=null&&re.push(ys(C,V,M)))),Ke)break;C=C.return}0<re.length&&(A=new Z(A,ne,null,n,L),U.push({event:A,listeners:re}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",A&&n!==Jo&&(ne=n.relatedTarget||n.fromElement)&&(Er(ne)||ne[kn]))break e;if((Z||A)&&(A=L.window===L?L:(A=L.ownerDocument)?A.defaultView||A.parentWindow:window,Z?(ne=n.relatedTarget||n.toElement,Z=O,ne=ne?Er(ne):null,ne!==null&&(Ke=Cr(ne),ne!==Ke||ne.tag!==5&&ne.tag!==6)&&(ne=null)):(Z=null,ne=O),Z!==ne)){if(re=zc,V="onMouseLeave",j="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(re=Ac,V="onPointerLeave",j="onPointerEnter",C="pointer"),Ke=Z==null?A:ho(Z),M=ne==null?A:ho(ne),A=new re(V,C+"leave",Z,n,L),A.target=Ke,A.relatedTarget=M,V=null,Er(L)===O&&(re=new re(j,C+"enter",ne,n,L),re.target=M,re.relatedTarget=Ke,V=re),Ke=V,Z&&ne)t:{for(re=Z,j=ne,C=0,M=re;M;M=fo(M))C++;for(M=0,V=j;V;V=fo(V))M++;for(;0<C-M;)re=fo(re),C--;for(;0<M-C;)j=fo(j),M--;for(;C--;){if(re===j||j!==null&&re===j.alternate)break t;re=fo(re),j=fo(j)}re=null}else re=null;Z!==null&&ud(U,A,Z,re,!1),ne!==null&&Ke!==null&&ud(U,Ke,ne,re,!0)}}e:{if(A=O?ho(O):window,Z=A.nodeName&&A.nodeName.toLowerCase(),Z==="select"||Z==="input"&&A.type==="file")var se=lg;else if(Wc(A))if(Qc)se=fg;else{se=cg;var le=ug}else(Z=A.nodeName)&&Z.toLowerCase()==="input"&&(A.type==="checkbox"||A.type==="radio")&&(se=dg);if(se&&(se=se(e,O))){Vc(U,se,n,L);break e}le&&le(e,A,O),e==="focusout"&&(le=A._wrapperState)&&le.controlled&&A.type==="number"&&Xo(A,"number",A.value)}switch(le=O?ho(O):window,e){case"focusin":(Wc(le)||le.contentEditable==="true")&&(uo=le,qa=O,hs=null);break;case"focusout":hs=qa=uo=null;break;case"mousedown":Ya=!0;break;case"contextmenu":case"mouseup":case"dragend":Ya=!1,Zc(U,n,L);break;case"selectionchange":if(mg)break;case"keydown":case"keyup":Zc(U,n,L)}var ue;if($a)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else lo?Uc(e,n)&&(fe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(fe="onCompositionStart");fe&&(Lc&&n.locale!=="ko"&&(lo||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&lo&&(ue=Oc()):($n=L,Fa="value"in $n?$n.value:$n.textContent,lo=!0)),le=Si(O,fe),0<le.length&&(fe=new Ic(fe,e,null,n,L),U.push({event:fe,listeners:le}),ue?fe.data=ue:(ue=Bc(n),ue!==null&&(fe.data=ue)))),(ue=rg?og(e,n):sg(e,n))&&(O=Si(O,"onBeforeInput"),0<O.length&&(L=new Ic("onBeforeInput","beforeinput",null,n,L),U.push({event:L,listeners:O}),L.data=ue))}ad(U,t)})}function ys(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Si(e,t){for(var n=t+"Capture",s=[];e!==null;){var a=e,u=a.stateNode;a.tag===5&&u!==null&&(a=u,u=vt(e,n),u!=null&&s.unshift(ys(e,u,a)),u=vt(e,t),u!=null&&s.push(ys(e,u,a))),e=e.return}return s}function fo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ud(e,t,n,s,a){for(var u=t._reactName,f=[];n!==null&&n!==s;){var y=n,S=y.alternate,O=y.stateNode;if(S!==null&&S===s)break;y.tag===5&&O!==null&&(y=O,a?(S=vt(n,u),S!=null&&f.unshift(ys(n,S,y))):a||(S=vt(n,u),S!=null&&f.push(ys(n,S,y)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var wg=/\r\n?/g,xg=/\u0000|\uFFFD/g;function cd(e){return(typeof e=="string"?e:""+e).replace(wg,`
38
+ `).replace(xg,"")}function bi(e,t,n){if(t=cd(t),cd(e)!==t&&n)throw Error(i(425))}function ki(){}var nl=null,rl=null;function ol(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sl=typeof setTimeout=="function"?setTimeout:void 0,Sg=typeof clearTimeout=="function"?clearTimeout:void 0,dd=typeof Promise=="function"?Promise:void 0,bg=typeof queueMicrotask=="function"?queueMicrotask:typeof dd<"u"?function(e){return dd.resolve(null).then(e).catch(kg)}:sl;function kg(e){setTimeout(function(){throw e})}function il(e,t){var n=t,s=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(s===0){e.removeChild(a),as(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);as(t)}function Kn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function fd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),dn="__reactFiber$"+po,vs="__reactProps$"+po,kn="__reactContainer$"+po,al="__reactEvents$"+po,Cg="__reactListeners$"+po,Eg="__reactHandles$"+po;function Er(e){var t=e[dn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kn]||n[dn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fd(e);e!==null;){if(n=e[dn])return n;e=fd(e)}return t}e=n,n=e.parentNode}return null}function ws(e){return e=e[dn]||e[kn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ho(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Ci(e){return e[vs]||null}var ll=[],mo=-1;function Gn(e){return{current:e}}function Ae(e){0>mo||(e.current=ll[mo],ll[mo]=null,mo--)}function ze(e,t){mo++,ll[mo]=e.current,e.current=t}var qn={},it=Gn(qn),wt=Gn(!1),Nr=qn;function go(e,t){var n=e.type.contextTypes;if(!n)return qn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},u;for(u in n)a[u]=t[u];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function xt(e){return e=e.childContextTypes,e!=null}function Ei(){Ae(wt),Ae(it)}function pd(e,t,n){if(it.current!==qn)throw Error(i(168));ze(it,t),ze(wt,n)}function hd(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var a in s)if(!(a in t))throw Error(i(108,ce(e)||"Unknown",a));return Q({},n,s)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qn,Nr=it.current,ze(it,e),ze(wt,wt.current),!0}function md(e,t,n){var s=e.stateNode;if(!s)throw Error(i(169));n?(e=hd(e,t,Nr),s.__reactInternalMemoizedMergedChildContext=e,Ae(wt),Ae(it),ze(it,e)):Ae(wt),ze(wt,n)}var Cn=null,Pi=!1,ul=!1;function gd(e){Cn===null?Cn=[e]:Cn.push(e)}function Ng(e){Pi=!0,gd(e)}function Yn(){if(!ul&&Cn!==null){ul=!0;var e=0,t=Me;try{var n=Cn;for(Me=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}Cn=null,Pi=!1}catch(a){throw Cn!==null&&(Cn=Cn.slice(e+1)),vc(Ta,Yn),a}finally{Me=t,ul=!1}}return null}var yo=[],vo=0,ji=null,Ri=0,zt=[],It=0,Pr=null,En=1,Nn="";function jr(e,t){yo[vo++]=Ri,yo[vo++]=ji,ji=e,Ri=t}function yd(e,t,n){zt[It++]=En,zt[It++]=Nn,zt[It++]=Pr,Pr=e;var s=En;e=Nn;var a=32-$t(s)-1;s&=~(1<<a),n+=1;var u=32-$t(t)+a;if(30<u){var f=a-a%5;u=(s&(1<<f)-1).toString(32),s>>=f,a-=f,En=1<<32-$t(t)+a|n<<a|s,Nn=u+e}else En=1<<u|n<<a|s,Nn=e}function cl(e){e.return!==null&&(jr(e,1),yd(e,1,0))}function dl(e){for(;e===ji;)ji=yo[--vo],yo[vo]=null,Ri=yo[--vo],yo[vo]=null;for(;e===Pr;)Pr=zt[--It],zt[It]=null,Nn=zt[--It],zt[It]=null,En=zt[--It],zt[It]=null}var Rt=null,Mt=null,Ue=!1,Kt=null;function vd(e,t){var n=Ft(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function wd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Rt=e,Mt=Kn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Rt=e,Mt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pr!==null?{id:En,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Rt=e,Mt=null,!0):!1;default:return!1}}function fl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function pl(e){if(Ue){var t=Mt;if(t){var n=t;if(!wd(e,t)){if(fl(e))throw Error(i(418));t=Kn(n.nextSibling);var s=Rt;t&&wd(e,t)?vd(s,n):(e.flags=e.flags&-4097|2,Ue=!1,Rt=e)}}else{if(fl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ue=!1,Rt=e}}}function xd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Rt=e}function Mi(e){if(e!==Rt)return!1;if(!Ue)return xd(e),Ue=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ol(e.type,e.memoizedProps)),t&&(t=Mt)){if(fl(e))throw Sd(),Error(i(418));for(;t;)vd(e,t),t=Kn(t.nextSibling)}if(xd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Mt=Kn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Mt=null}}else Mt=Rt?Kn(e.stateNode.nextSibling):null;return!0}function Sd(){for(var e=Mt;e;)e=Kn(e.nextSibling)}function wo(){Mt=Rt=null,Ue=!1}function hl(e){Kt===null?Kt=[e]:Kt.push(e)}var Pg=_.ReactCurrentBatchConfig;function xs(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(i(309));var s=n.stateNode}if(!s)throw Error(i(147,e));var a=s,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(f){var y=a.refs;f===null?delete y[u]:y[u]=f},t._stringRef=u,t)}if(typeof e!="string")throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ti(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bd(e){var t=e._init;return t(e._payload)}function kd(e){function t(j,C){if(e){var M=j.deletions;M===null?(j.deletions=[C],j.flags|=16):M.push(C)}}function n(j,C){if(!e)return null;for(;C!==null;)t(j,C),C=C.sibling;return null}function s(j,C){for(j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function a(j,C){return j=or(j,C),j.index=0,j.sibling=null,j}function u(j,C,M){return j.index=M,e?(M=j.alternate,M!==null?(M=M.index,M<C?(j.flags|=2,C):M):(j.flags|=2,C)):(j.flags|=1048576,C)}function f(j){return e&&j.alternate===null&&(j.flags|=2),j}function y(j,C,M,V){return C===null||C.tag!==6?(C=su(M,j.mode,V),C.return=j,C):(C=a(C,M),C.return=j,C)}function S(j,C,M,V){var se=M.type;return se===$?L(j,C,M.props.children,V,M.key):C!==null&&(C.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===Oe&&bd(se)===C.type)?(V=a(C,M.props),V.ref=xs(j,C,M),V.return=j,V):(V=ta(M.type,M.key,M.props,null,j.mode,V),V.ref=xs(j,C,M),V.return=j,V)}function O(j,C,M,V){return C===null||C.tag!==4||C.stateNode.containerInfo!==M.containerInfo||C.stateNode.implementation!==M.implementation?(C=iu(M,j.mode,V),C.return=j,C):(C=a(C,M.children||[]),C.return=j,C)}function L(j,C,M,V,se){return C===null||C.tag!==7?(C=Ar(M,j.mode,V,se),C.return=j,C):(C=a(C,M),C.return=j,C)}function U(j,C,M){if(typeof C=="string"&&C!==""||typeof C=="number")return C=su(""+C,j.mode,M),C.return=j,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case G:return M=ta(C.type,C.key,C.props,null,j.mode,M),M.ref=xs(j,null,C),M.return=j,M;case ee:return C=iu(C,j.mode,M),C.return=j,C;case Oe:var V=C._init;return U(j,V(C._payload),M)}if(Fn(C)||W(C))return C=Ar(C,j.mode,M,null),C.return=j,C;Ti(j,C)}return null}function A(j,C,M,V){var se=C!==null?C.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return se!==null?null:y(j,C,""+M,V);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case G:return M.key===se?S(j,C,M,V):null;case ee:return M.key===se?O(j,C,M,V):null;case Oe:return se=M._init,A(j,C,se(M._payload),V)}if(Fn(M)||W(M))return se!==null?null:L(j,C,M,V,null);Ti(j,M)}return null}function Z(j,C,M,V,se){if(typeof V=="string"&&V!==""||typeof V=="number")return j=j.get(M)||null,y(C,j,""+V,se);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case G:return j=j.get(V.key===null?M:V.key)||null,S(C,j,V,se);case ee:return j=j.get(V.key===null?M:V.key)||null,O(C,j,V,se);case Oe:var le=V._init;return Z(j,C,M,le(V._payload),se)}if(Fn(V)||W(V))return j=j.get(M)||null,L(C,j,V,se,null);Ti(C,V)}return null}function ne(j,C,M,V){for(var se=null,le=null,ue=C,fe=C=0,tt=null;ue!==null&&fe<M.length;fe++){ue.index>fe?(tt=ue,ue=null):tt=ue.sibling;var Ce=A(j,ue,M[fe],V);if(Ce===null){ue===null&&(ue=tt);break}e&&ue&&Ce.alternate===null&&t(j,ue),C=u(Ce,C,fe),le===null?se=Ce:le.sibling=Ce,le=Ce,ue=tt}if(fe===M.length)return n(j,ue),Ue&&jr(j,fe),se;if(ue===null){for(;fe<M.length;fe++)ue=U(j,M[fe],V),ue!==null&&(C=u(ue,C,fe),le===null?se=ue:le.sibling=ue,le=ue);return Ue&&jr(j,fe),se}for(ue=s(j,ue);fe<M.length;fe++)tt=Z(ue,j,fe,M[fe],V),tt!==null&&(e&&tt.alternate!==null&&ue.delete(tt.key===null?fe:tt.key),C=u(tt,C,fe),le===null?se=tt:le.sibling=tt,le=tt);return e&&ue.forEach(function(sr){return t(j,sr)}),Ue&&jr(j,fe),se}function re(j,C,M,V){var se=W(M);if(typeof se!="function")throw Error(i(150));if(M=se.call(M),M==null)throw Error(i(151));for(var le=se=null,ue=C,fe=C=0,tt=null,Ce=M.next();ue!==null&&!Ce.done;fe++,Ce=M.next()){ue.index>fe?(tt=ue,ue=null):tt=ue.sibling;var sr=A(j,ue,Ce.value,V);if(sr===null){ue===null&&(ue=tt);break}e&&ue&&sr.alternate===null&&t(j,ue),C=u(sr,C,fe),le===null?se=sr:le.sibling=sr,le=sr,ue=tt}if(Ce.done)return n(j,ue),Ue&&jr(j,fe),se;if(ue===null){for(;!Ce.done;fe++,Ce=M.next())Ce=U(j,Ce.value,V),Ce!==null&&(C=u(Ce,C,fe),le===null?se=Ce:le.sibling=Ce,le=Ce);return Ue&&jr(j,fe),se}for(ue=s(j,ue);!Ce.done;fe++,Ce=M.next())Ce=Z(ue,j,fe,Ce.value,V),Ce!==null&&(e&&Ce.alternate!==null&&ue.delete(Ce.key===null?fe:Ce.key),C=u(Ce,C,fe),le===null?se=Ce:le.sibling=Ce,le=Ce);return e&&ue.forEach(function(iy){return t(j,iy)}),Ue&&jr(j,fe),se}function Ke(j,C,M,V){if(typeof M=="object"&&M!==null&&M.type===$&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case G:e:{for(var se=M.key,le=C;le!==null;){if(le.key===se){if(se=M.type,se===$){if(le.tag===7){n(j,le.sibling),C=a(le,M.props.children),C.return=j,j=C;break e}}else if(le.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===Oe&&bd(se)===le.type){n(j,le.sibling),C=a(le,M.props),C.ref=xs(j,le,M),C.return=j,j=C;break e}n(j,le);break}else t(j,le);le=le.sibling}M.type===$?(C=Ar(M.props.children,j.mode,V,M.key),C.return=j,j=C):(V=ta(M.type,M.key,M.props,null,j.mode,V),V.ref=xs(j,C,M),V.return=j,j=V)}return f(j);case ee:e:{for(le=M.key;C!==null;){if(C.key===le)if(C.tag===4&&C.stateNode.containerInfo===M.containerInfo&&C.stateNode.implementation===M.implementation){n(j,C.sibling),C=a(C,M.children||[]),C.return=j,j=C;break e}else{n(j,C);break}else t(j,C);C=C.sibling}C=iu(M,j.mode,V),C.return=j,j=C}return f(j);case Oe:return le=M._init,Ke(j,C,le(M._payload),V)}if(Fn(M))return ne(j,C,M,V);if(W(M))return re(j,C,M,V);Ti(j,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,C!==null&&C.tag===6?(n(j,C.sibling),C=a(C,M),C.return=j,j=C):(n(j,C),C=su(M,j.mode,V),C.return=j,j=C),f(j)):n(j,C)}return Ke}var xo=kd(!0),Cd=kd(!1),Oi=Gn(null),_i=null,So=null,ml=null;function gl(){ml=So=_i=null}function yl(e){var t=Oi.current;Ae(Oi),e._currentValue=t}function vl(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function bo(e,t){_i=e,ml=So=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(St=!0),e.firstContext=null)}function At(e){var t=e._currentValue;if(ml!==e)if(e={context:e,memoizedValue:t,next:null},So===null){if(_i===null)throw Error(i(308));So=e,_i.dependencies={lanes:0,firstContext:e}}else So=So.next=e;return t}var Rr=null;function wl(e){Rr===null?Rr=[e]:Rr.push(e)}function Ed(e,t,n,s){var a=t.interleaved;return a===null?(n.next=n,wl(t)):(n.next=a.next,a.next=n),t.interleaved=n,Pn(e,s)}function Pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xn=!1;function xl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Nd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ke&2)!==0){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,Pn(e,n)}return a=s.interleaved,a===null?(t.next=t,wl(s)):(t.next=a.next,a.next=t),s.interleaved=t,Pn(e,n)}function zi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,za(e,n)}}function Pd(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?a=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?a=u=t:u=u.next=t}else a=u=t;n={baseState:s.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ii(e,t,n,s){var a=e.updateQueue;Xn=!1;var u=a.firstBaseUpdate,f=a.lastBaseUpdate,y=a.shared.pending;if(y!==null){a.shared.pending=null;var S=y,O=S.next;S.next=null,f===null?u=O:f.next=O,f=S;var L=e.alternate;L!==null&&(L=L.updateQueue,y=L.lastBaseUpdate,y!==f&&(y===null?L.firstBaseUpdate=O:y.next=O,L.lastBaseUpdate=S))}if(u!==null){var U=a.baseState;f=0,L=O=S=null,y=u;do{var A=y.lane,Z=y.eventTime;if((s&A)===A){L!==null&&(L=L.next={eventTime:Z,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var ne=e,re=y;switch(A=t,Z=n,re.tag){case 1:if(ne=re.payload,typeof ne=="function"){U=ne.call(Z,U,A);break e}U=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=re.payload,A=typeof ne=="function"?ne.call(Z,U,A):ne,A==null)break e;U=Q({},U,A);break e;case 2:Xn=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,A=a.effects,A===null?a.effects=[y]:A.push(y))}else Z={eventTime:Z,lane:A,tag:y.tag,payload:y.payload,callback:y.callback,next:null},L===null?(O=L=Z,S=U):L=L.next=Z,f|=A;if(y=y.next,y===null){if(y=a.shared.pending,y===null)break;A=y,y=A.next,A.next=null,a.lastBaseUpdate=A,a.shared.pending=null}}while(!0);if(L===null&&(S=U),a.baseState=S,a.firstBaseUpdate=O,a.lastBaseUpdate=L,t=a.shared.interleaved,t!==null){a=t;do f|=a.lane,a=a.next;while(a!==t)}else u===null&&(a.shared.lanes=0);Or|=f,e.lanes=f,e.memoizedState=U}}function jd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],a=s.callback;if(a!==null){if(s.callback=null,s=n,typeof a!="function")throw Error(i(191,a));a.call(s)}}}var Ss={},fn=Gn(Ss),bs=Gn(Ss),ks=Gn(Ss);function Mr(e){if(e===Ss)throw Error(i(174));return e}function Sl(e,t){switch(ze(ks,t),ze(bs,e),ze(fn,Ss),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:on(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=on(t,e)}Ae(fn),ze(fn,t)}function ko(){Ae(fn),Ae(bs),Ae(ks)}function Rd(e){Mr(ks.current);var t=Mr(fn.current),n=on(t,e.type);t!==n&&(ze(bs,e),ze(fn,n))}function bl(e){bs.current===e&&(Ae(fn),Ae(bs))}var We=Gn(0);function Ai(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kl=[];function Cl(){for(var e=0;e<kl.length;e++)kl[e]._workInProgressVersionPrimary=null;kl.length=0}var Li=_.ReactCurrentDispatcher,El=_.ReactCurrentBatchConfig,Tr=0,Ve=null,qe=null,Je=null,Di=!1,Cs=!1,Es=0,jg=0;function at(){throw Error(i(321))}function Nl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Pl(e,t,n,s,a,u){if(Tr=u,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Li.current=e===null||e.memoizedState===null?Og:_g,e=n(s,a),Cs){u=0;do{if(Cs=!1,Es=0,25<=u)throw Error(i(301));u+=1,Je=qe=null,t.updateQueue=null,Li.current=zg,e=n(s,a)}while(Cs)}if(Li.current=Bi,t=qe!==null&&qe.next!==null,Tr=0,Je=qe=Ve=null,Di=!1,t)throw Error(i(300));return e}function jl(){var e=Es!==0;return Es=0,e}function pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Ve.memoizedState=Je=e:Je=Je.next=e,Je}function Lt(){if(qe===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Je===null?Ve.memoizedState:Je.next;if(t!==null)Je=t,qe=e;else{if(e===null)throw Error(i(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Je===null?Ve.memoizedState=Je=e:Je=Je.next=e}return Je}function Ns(e,t){return typeof t=="function"?t(e):t}function Rl(e){var t=Lt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var s=qe,a=s.baseQueue,u=n.pending;if(u!==null){if(a!==null){var f=a.next;a.next=u.next,u.next=f}s.baseQueue=a=u,n.pending=null}if(a!==null){u=a.next,s=s.baseState;var y=f=null,S=null,O=u;do{var L=O.lane;if((Tr&L)===L)S!==null&&(S=S.next={lane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),s=O.hasEagerState?O.eagerState:e(s,O.action);else{var U={lane:L,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null};S===null?(y=S=U,f=s):S=S.next=U,Ve.lanes|=L,Or|=L}O=O.next}while(O!==null&&O!==u);S===null?f=s:S.next=y,Ht(s,t.memoizedState)||(St=!0),t.memoizedState=s,t.baseState=f,t.baseQueue=S,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do u=a.lane,Ve.lanes|=u,Or|=u,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ml(e){var t=Lt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var s=n.dispatch,a=n.pending,u=t.memoizedState;if(a!==null){n.pending=null;var f=a=a.next;do u=e(u,f.action),f=f.next;while(f!==a);Ht(u,t.memoizedState)||(St=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function Md(){}function Td(e,t){var n=Ve,s=Lt(),a=t(),u=!Ht(s.memoizedState,a);if(u&&(s.memoizedState=a,St=!0),s=s.queue,Tl(zd.bind(null,n,s,e),[e]),s.getSnapshot!==t||u||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,Ps(9,_d.bind(null,n,s,a,t),void 0,null),et===null)throw Error(i(349));(Tr&30)!==0||Od(n,t,a)}return a}function Od(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _d(e,t,n,s){t.value=n,t.getSnapshot=s,Id(t)&&Ad(e)}function zd(e,t,n){return n(function(){Id(t)&&Ad(e)})}function Id(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function Ad(e){var t=Pn(e,1);t!==null&&Xt(t,e,1,-1)}function Ld(e){var t=pn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ns,lastRenderedState:e},t.queue=e,e=e.dispatch=Tg.bind(null,Ve,e),[t.memoizedState,e]}function Ps(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function Dd(){return Lt().memoizedState}function Fi(e,t,n,s){var a=pn();Ve.flags|=e,a.memoizedState=Ps(1|t,n,void 0,s===void 0?null:s)}function Ui(e,t,n,s){var a=Lt();s=s===void 0?null:s;var u=void 0;if(qe!==null){var f=qe.memoizedState;if(u=f.destroy,s!==null&&Nl(s,f.deps)){a.memoizedState=Ps(t,n,u,s);return}}Ve.flags|=e,a.memoizedState=Ps(1|t,n,u,s)}function Fd(e,t){return Fi(8390656,8,e,t)}function Tl(e,t){return Ui(2048,8,e,t)}function Ud(e,t){return Ui(4,2,e,t)}function Bd(e,t){return Ui(4,4,e,t)}function Wd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vd(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4,4,Wd.bind(null,t,e),n)}function Ol(){}function Qd(e,t){var n=Lt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Nl(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function $d(e,t){var n=Lt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Nl(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Hd(e,t,n){return(Tr&21)===0?(e.baseState&&(e.baseState=!1,St=!0),e.memoizedState=n):(Ht(n,t)||(n=bc(),Ve.lanes|=n,Or|=n,e.baseState=!0),t)}function Rg(e,t){var n=Me;Me=n!==0&&4>n?n:4,e(!0);var s=El.transition;El.transition={};try{e(!1),t()}finally{Me=n,El.transition=s}}function Kd(){return Lt().memoizedState}function Mg(e,t,n){var s=nr(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Gd(e))qd(t,n);else if(n=Ed(e,t,n,s),n!==null){var a=ht();Xt(n,e,s,a),Yd(n,t,s)}}function Tg(e,t,n){var s=nr(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gd(e))qd(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,y=u(f,n);if(a.hasEagerState=!0,a.eagerState=y,Ht(y,f)){var S=t.interleaved;S===null?(a.next=a,wl(t)):(a.next=S.next,S.next=a),t.interleaved=a;return}}catch{}finally{}n=Ed(e,t,a,s),n!==null&&(a=ht(),Xt(n,e,s,a),Yd(n,t,s))}}function Gd(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function qd(e,t){Cs=Di=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yd(e,t,n){if((n&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,za(e,n)}}var Bi={readContext:At,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},Og={readContext:At,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:Fd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,Wd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=pn();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=Mg.bind(null,Ve,e),[s.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:Ld,useDebugValue:Ol,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=Ld(!1),t=e[0];return e=Rg.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=Ve,a=pn();if(Ue){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),et===null)throw Error(i(349));(Tr&30)!==0||Od(s,t,n)}a.memoizedState=n;var u={value:n,getSnapshot:t};return a.queue=u,Fd(zd.bind(null,s,u,e),[e]),s.flags|=2048,Ps(9,_d.bind(null,s,u,n,t),void 0,null),n},useId:function(){var e=pn(),t=et.identifierPrefix;if(Ue){var n=Nn,s=En;n=(s&~(1<<32-$t(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=Es++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=jg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},_g={readContext:At,useCallback:Qd,useContext:At,useEffect:Tl,useImperativeHandle:Vd,useInsertionEffect:Ud,useLayoutEffect:Bd,useMemo:$d,useReducer:Rl,useRef:Dd,useState:function(){return Rl(Ns)},useDebugValue:Ol,useDeferredValue:function(e){var t=Lt();return Hd(t,qe.memoizedState,e)},useTransition:function(){var e=Rl(Ns)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Md,useSyncExternalStore:Td,useId:Kd,unstable_isNewReconciler:!1},zg={readContext:At,useCallback:Qd,useContext:At,useEffect:Tl,useImperativeHandle:Vd,useInsertionEffect:Ud,useLayoutEffect:Bd,useMemo:$d,useReducer:Ml,useRef:Dd,useState:function(){return Ml(Ns)},useDebugValue:Ol,useDeferredValue:function(e){var t=Lt();return qe===null?t.memoizedState=e:Hd(t,qe.memoizedState,e)},useTransition:function(){var e=Ml(Ns)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:Md,useSyncExternalStore:Td,useId:Kd,unstable_isNewReconciler:!1};function Gt(e,t){if(e&&e.defaultProps){t=Q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _l(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:Q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return(e=e._reactInternals)?Cr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=ht(),a=nr(e),u=jn(s,a);u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,a),t!==null&&(Xt(t,e,a,s),zi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=ht(),a=nr(e),u=jn(s,a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,a),t!==null&&(Xt(t,e,a,s),zi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ht(),s=nr(e),a=jn(n,s);a.tag=2,t!=null&&(a.callback=t),t=Zn(e,a,s),t!==null&&(Xt(t,e,s,n),zi(t,e,s))}};function Xd(e,t,n,s,a,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,f):t.prototype&&t.prototype.isPureReactComponent?!ps(n,s)||!ps(a,u):!0}function Zd(e,t,n){var s=!1,a=qn,u=t.contextType;return typeof u=="object"&&u!==null?u=At(u):(a=xt(t)?Nr:it.current,s=t.contextTypes,u=(s=s!=null)?go(e,a):qn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=u),t}function Jd(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&Wi.enqueueReplaceState(t,t.state,null)}function zl(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},xl(e);var u=t.contextType;typeof u=="object"&&u!==null?a.context=At(u):(u=xt(t)?Nr:it.current,a.context=go(e,u)),a.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(_l(e,t,u,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Wi.enqueueReplaceState(a,a.state,null),Ii(e,n,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Co(e,t){try{var n="",s=t;do n+=de(s),s=s.return;while(s);var a=n}catch(u){a=`
39
39
  Error generating stack: `+u.message+`
40
- `+u.stack}return{value:e,source:t,stack:a,digest:null}}function Il(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Al(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _g=typeof WeakMap=="function"?WeakMap:Map;function ef(e,t,n){n=jn(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){qi||(qi=!0,Xl=s),Al(e,t)},n}function tf(e,t,n){n=jn(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var a=t.value;n.payload=function(){return s(a)},n.callback=function(){Al(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Al(e,t),typeof s!="function"&&(er===null?er=new Set([this]):er.add(this));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),n}function nf(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new _g;var a=new Set;s.set(t,a)}else a=s.get(t),a===void 0&&(a=new Set,s.set(t,a));a.has(n)||(a.add(n),e=Gg.bind(null,e,t,n),t.then(e,e))}function rf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function of(e,t,n,s,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=jn(-1,1),t.tag=2,Zn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Ig=z.ReactCurrentOwner,St=!1;function pt(e,t,n,s){t.child=e===null?Cd(t,null,n,s):xo(t,e.child,n,s)}function sf(e,t,n,s,a){n=n.render;var u=t.ref;return bo(t,a),s=Pl(e,t,n,s,u,a),n=jl(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Fe&&n&&cl(t),t.flags|=1,pt(e,t,s,a),t.child)}function af(e,t,n,s,a){if(e===null){var u=n.type;return typeof u=="function"&&!ou(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,lf(e,t,u,s,a)):(e=ta(n.type,null,s,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&a)===0){var f=u.memoizedProps;if(n=n.compare,n=n!==null?n:ps,n(f,s)&&e.ref===t.ref)return Rn(e,t,a)}return t.flags|=1,e=or(u,s),e.ref=t.ref,e.return=t,t.child=e}function lf(e,t,n,s,a){if(e!==null){var u=e.memoizedProps;if(ps(u,s)&&e.ref===t.ref)if(St=!1,t.pendingProps=s=u,(e.lanes&a)!==0)(e.flags&131072)!==0&&(St=!0);else return t.lanes=e.lanes,Rn(e,t,a)}return Ll(e,t,n,s,a)}function uf(e,t,n){var s=t.pendingProps,a=s.children,u=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(No,Tt),Tt|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(No,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=u!==null?u.baseLanes:n,_e(No,Tt),Tt|=s}else u!==null?(s=u.baseLanes|n,t.memoizedState=null):s=n,_e(No,Tt),Tt|=s;return pt(e,t,a,n),t.child}function cf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ll(e,t,n,s,a){var u=xt(n)?Nr:it.current;return u=go(t,u),bo(t,a),n=Pl(e,t,n,s,u,a),s=jl(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Fe&&s&&cl(t),t.flags|=1,pt(e,t,n,a),t.child)}function df(e,t,n,s,a){if(xt(n)){var u=!0;Ni(t)}else u=!1;if(bo(t,a),t.stateNode===null)Qi(e,t),Zd(t,n,s),_l(t,n,s,a),s=!0;else if(e===null){var f=t.stateNode,y=t.memoizedProps;f.props=y;var S=f.context,O=n.contextType;typeof O=="object"&&O!==null?O=At(O):(O=xt(n)?Nr:it.current,O=go(t,O));var L=n.getDerivedStateFromProps,U=typeof L=="function"||typeof f.getSnapshotBeforeUpdate=="function";U||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==s||S!==O)&&Jd(t,f,s,O),Xn=!1;var A=t.memoizedState;f.state=A,Ii(t,s,f,a),S=t.memoizedState,y!==s||A!==S||wt.current||Xn?(typeof L=="function"&&(zl(t,n,L,s),S=t.memoizedState),(y=Xn||Xd(t,n,y,s,A,S,O))?(U||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=S),f.props=s,f.state=S,f.context=O,s=y):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,Nd(e,t),y=t.memoizedProps,O=t.type===t.elementType?y:qt(t.type,y),f.props=O,U=t.pendingProps,A=f.context,S=n.contextType,typeof S=="object"&&S!==null?S=At(S):(S=xt(n)?Nr:it.current,S=go(t,S));var Z=n.getDerivedStateFromProps;(L=typeof Z=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==U||A!==S)&&Jd(t,f,s,S),Xn=!1,A=t.memoizedState,f.state=A,Ii(t,s,f,a);var ne=t.memoizedState;y!==U||A!==ne||wt.current||Xn?(typeof Z=="function"&&(zl(t,n,Z,s),ne=t.memoizedState),(O=Xn||Xd(t,n,O,s,A,ne,S)||!1)?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,ne,S),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,ne,S)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=ne),f.props=s,f.state=ne,f.context=S,s=O):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),s=!1)}return Dl(e,t,n,s,u,a)}function Dl(e,t,n,s,a,u){cf(e,t);var f=(t.flags&128)!==0;if(!s&&!f)return a&&md(t,n,!1),Rn(e,t,u);s=t.stateNode,Ig.current=t;var y=f&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&f?(t.child=xo(t,e.child,null,u),t.child=xo(t,null,y,u)):pt(e,t,y,u),t.memoizedState=s.state,a&&md(t,n,!0),t.child}function ff(e){var t=e.stateNode;t.pendingContext?pd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pd(e,t.context,!1),Sl(e,t.containerInfo)}function pf(e,t,n,s,a){return wo(),hl(a),t.flags|=256,pt(e,t,n,s),t.child}var Fl={dehydrated:null,treeContext:null,retryLane:0};function Ul(e){return{baseLanes:e,cachePool:null,transitions:null}}function hf(e,t,n){var s=t.pendingProps,a=We.current,u=!1,f=(t.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:(a&2)!==0),y?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),_e(We,a&1),e===null)return pl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(f=s.children,e=s.fallback,u?(s=t.mode,u=t.child,f={mode:"hidden",children:f},(s&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=f):u=na(f,s,0,null),e=Ar(e,s,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Ul(n),t.memoizedState=Fl,e):Bl(t,f));if(a=e.memoizedState,a!==null&&(y=a.dehydrated,y!==null))return Ag(e,t,f,s,y,a,n);if(u){u=s.fallback,f=t.mode,a=e.child,y=a.sibling;var S={mode:"hidden",children:s.children};return(f&1)===0&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=S,t.deletions=null):(s=or(a,S),s.subtreeFlags=a.subtreeFlags&14680064),y!==null?u=or(y,u):(u=Ar(u,f,n,null),u.flags|=2),u.return=t,s.return=t,s.sibling=u,t.child=s,s=u,u=t.child,f=e.child.memoizedState,f=f===null?Ul(n):{baseLanes:f.baseLanes|n,cachePool:null,transitions:f.transitions},u.memoizedState=f,u.childLanes=e.childLanes&~n,t.memoizedState=Fl,s}return u=e.child,e=u.sibling,s=or(u,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Bl(e,t){return t=na({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vi(e,t,n,s){return s!==null&&hl(s),xo(t,e.child,null,n),e=Bl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ag(e,t,n,s,a,u,f){if(n)return t.flags&256?(t.flags&=-257,s=Il(Error(i(422))),Vi(e,t,f,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=s.fallback,a=t.mode,s=na({mode:"visible",children:s.children},a,0,null),u=Ar(u,a,f,null),u.flags|=2,s.return=t,u.return=t,s.sibling=u,t.child=s,(t.mode&1)!==0&&xo(t,e.child,null,f),t.child.memoizedState=Ul(f),t.memoizedState=Fl,u);if((t.mode&1)===0)return Vi(e,t,f,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var y=s.dgst;return s=y,u=Error(i(419)),s=Il(u,s,void 0),Vi(e,t,f,s)}if(y=(f&e.childLanes)!==0,St||y){if(s=et,s!==null){switch(f&-f){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(s.suspendedLanes|f))!==0?0:a,a!==0&&a!==u.retryLane&&(u.retryLane=a,Pn(e,a),Zt(s,e,a,-1))}return ru(),s=Il(Error(i(421))),Vi(e,t,f,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=qg.bind(null,e),a._reactRetry=t,null):(e=u.treeContext,Mt=Kn(a.nextSibling),Rt=t,Fe=!0,Gt=null,e!==null&&(_t[It++]=En,_t[It++]=Nn,_t[It++]=Pr,En=e.id,Nn=e.overflow,Pr=t),t=Bl(t,s.children),t.flags|=4096,t)}function mf(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),vl(e.return,t,n)}function Wl(e,t,n,s,a){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:a}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=s,u.tail=n,u.tailMode=a)}function gf(e,t,n){var s=t.pendingProps,a=s.revealOrder,u=s.tail;if(pt(e,t,s.children,n),s=We.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mf(e,n,t);else if(e.tag===19)mf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(_e(We,s),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Ai(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Wl(t,!1,a,n,u);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Ai(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Wl(t,!0,n,null,u);break;case"together":Wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Or|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Lg(e,t,n){switch(t.tag){case 3:ff(t),wo();break;case 5:Rd(t);break;case 1:xt(t.type)&&Ni(t);break;case 4:Sl(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;_e(Oi,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(_e(We,We.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?hf(e,t,n):(_e(We,We.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);_e(We,We.current&1);break;case 19:if(s=(n&t.childLanes)!==0,(e.flags&128)!==0){if(s)return gf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),_e(We,We.current),s)break;return null;case 22:case 23:return t.lanes=0,uf(e,t,n)}return Rn(e,t,n)}var yf,Vl,vf,wf;yf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Vl=function(){},vf=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Mr(pn.current);var u=null;switch(n){case"input":a=Go(e,a),s=Go(e,s),u=[];break;case"select":a=Q({},a,{value:void 0}),s=Q({},s,{value:void 0}),u=[];break;case"textarea":a=to(e,a),s=to(e,s),u=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=ki)}ln(n,s);var f;n=null;for(O in a)if(!s.hasOwnProperty(O)&&a.hasOwnProperty(O)&&a[O]!=null)if(O==="style"){var y=a[O];for(f in y)y.hasOwnProperty(f)&&(n||(n={}),n[f]="")}else O!=="dangerouslySetInnerHTML"&&O!=="children"&&O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(c.hasOwnProperty(O)?u||(u=[]):(u=u||[]).push(O,null));for(O in s){var S=s[O];if(y=a!=null?a[O]:void 0,s.hasOwnProperty(O)&&S!==y&&(S!=null||y!=null))if(O==="style")if(y){for(f in y)!y.hasOwnProperty(f)||S&&S.hasOwnProperty(f)||(n||(n={}),n[f]="");for(f in S)S.hasOwnProperty(f)&&y[f]!==S[f]&&(n||(n={}),n[f]=S[f])}else n||(u||(u=[]),u.push(O,n)),n=S;else O==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,y=y?y.__html:void 0,S!=null&&y!==S&&(u=u||[]).push(O,S)):O==="children"?typeof S!="string"&&typeof S!="number"||(u=u||[]).push(O,""+S):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&(c.hasOwnProperty(O)?(S!=null&&O==="onScroll"&&Ie("scroll",e),u||y===S||(u=[])):(u=u||[]).push(O,S))}n&&(u=u||[]).push("style",n);var O=u;(t.updateQueue=O)&&(t.flags|=4)}},wf=function(e,t,n,s){n!==s&&(t.flags|=4)};function js(e,t){if(!Fe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags&14680064,s|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Dg(e,t,n){var s=t.pendingProps;switch(dl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return xt(t.type)&&Ei(),lt(t),null;case 3:return s=t.stateNode,ko(),Ae(wt),Ae(it),Cl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Mi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Gt!==null&&(eu(Gt),Gt=null))),Vl(e,t),lt(t),null;case 5:bl(t);var a=Mr(ks.current);if(n=t.type,e!==null&&t.stateNode!=null)vf(e,t,n,s,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(i(166));return lt(t),null}if(e=Mr(pn.current),Mi(t)){s=t.stateNode,n=t.type;var u=t.memoizedProps;switch(s[fn]=t,s[vs]=u,e=(t.mode&1)!==0,n){case"dialog":Ie("cancel",s),Ie("close",s);break;case"iframe":case"object":case"embed":Ie("load",s);break;case"video":case"audio":for(a=0;a<ms.length;a++)Ie(ms[a],s);break;case"source":Ie("error",s);break;case"img":case"image":case"link":Ie("error",s),Ie("load",s);break;case"details":Ie("toggle",s);break;case"input":qs(s,u),Ie("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!u.multiple},Ie("invalid",s);break;case"textarea":on(s,u),Ie("invalid",s)}ln(n,u),a=null;for(var f in u)if(u.hasOwnProperty(f)){var y=u[f];f==="children"?typeof y=="string"?s.textContent!==y&&(u.suppressHydrationWarning!==!0&&bi(s.textContent,y,e),a=["children",y]):typeof y=="number"&&s.textContent!==""+y&&(u.suppressHydrationWarning!==!0&&bi(s.textContent,y,e),a=["children",""+y]):c.hasOwnProperty(f)&&y!=null&&f==="onScroll"&&Ie("scroll",s)}switch(n){case"input":rn(s),eo(s,u,!0);break;case"textarea":rn(s),Xs(s);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(s.onclick=ki)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{f=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=dt(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=f.createElement(n,{is:s.is}):(e=f.createElement(n),n==="select"&&(f=e,s.multiple?f.multiple=!0:s.size&&(f.size=s.size))):e=f.createElementNS(e,n),e[fn]=t,e[vs]=s,yf(e,t,!1,!1),t.stateNode=e;e:{switch(f=Zo(n,s),n){case"dialog":Ie("cancel",e),Ie("close",e),a=s;break;case"iframe":case"object":case"embed":Ie("load",e),a=s;break;case"video":case"audio":for(a=0;a<ms.length;a++)Ie(ms[a],e);a=s;break;case"source":Ie("error",e),a=s;break;case"img":case"image":case"link":Ie("error",e),Ie("load",e),a=s;break;case"details":Ie("toggle",e),a=s;break;case"input":qs(e,s),a=Go(e,s),Ie("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=Q({},s,{value:void 0}),Ie("invalid",e);break;case"textarea":on(e,s),a=to(e,s),Ie("invalid",e);break;default:a=s}ln(n,a),y=a;for(u in y)if(y.hasOwnProperty(u)){var S=y[u];u==="style"?bn(e,S):u==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&Zs(e,S)):u==="children"?typeof S=="string"?(n!=="textarea"||S!=="")&&an(e,S):typeof S=="number"&&an(e,""+S):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?S!=null&&u==="onScroll"&&Ie("scroll",e):S!=null&&B(e,u,S,f))}switch(n){case"input":rn(e),eo(e,s,!1);break;case"textarea":rn(e),Xs(e);break;case"option":s.value!=null&&e.setAttribute("value",""+be(s.value));break;case"select":e.multiple=!!s.multiple,u=s.value,u!=null?zt(e,!!s.multiple,u,!1):s.defaultValue!=null&&zt(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=ki)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return lt(t),null;case 6:if(e&&t.stateNode!=null)wf(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(n=Mr(ks.current),Mr(pn.current),Mi(t)){if(s=t.stateNode,n=t.memoizedProps,s[fn]=t,(u=s.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:bi(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&bi(s.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[fn]=t,t.stateNode=s}return lt(t),null;case 13:if(Ae(We),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&Mt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Sd(),wo(),t.flags|=98560,u=!1;else if(u=Mi(t),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[fn]=t}else wo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),u=!1}else Gt!==null&&(eu(Gt),Gt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(We.current&1)!==0?Ye===0&&(Ye=3):ru())),t.updateQueue!==null&&(t.flags|=4),lt(t),null);case 4:return ko(),Vl(e,t),e===null&&gs(t.stateNode.containerInfo),lt(t),null;case 10:return yl(t.type._context),lt(t),null;case 17:return xt(t.type)&&Ei(),lt(t),null;case 19:if(Ae(We),u=t.memoizedState,u===null)return lt(t),null;if(s=(t.flags&128)!==0,f=u.rendering,f===null)if(s)js(u,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Ai(e),f!==null){for(t.flags|=128,js(u,!1),s=f.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)u=n,e=s,u.flags&=14680066,f=u.alternate,f===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=f.childLanes,u.lanes=f.lanes,u.child=f.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=f.memoizedProps,u.memoizedState=f.memoizedState,u.updateQueue=f.updateQueue,u.type=f.type,e=f.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _e(We,We.current&1|2),t.child}e=e.sibling}u.tail!==null&&He()>Po&&(t.flags|=128,s=!0,js(u,!1),t.lanes=4194304)}else{if(!s)if(e=Ai(f),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),js(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Fe)return lt(t),null}else 2*He()-u.renderingStartTime>Po&&n!==1073741824&&(t.flags|=128,s=!0,js(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(n=u.last,n!==null?n.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=He(),t.sibling=null,n=We.current,_e(We,s?n&1|2:n&1),t):(lt(t),null);case 22:case 23:return nu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(Tt&1073741824)!==0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Fg(e,t){switch(dl(t),t.tag){case 1:return xt(t.type)&&Ei(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ko(),Ae(wt),Ae(it),Cl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return bl(t),null;case 13:if(Ae(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(We),null;case 4:return ko(),null;case 10:return yl(t.type._context),null;case 22:case 23:return nu(),null;case 24:return null;default:return null}}var $i=!1,ut=!1,Ug=typeof WeakSet=="function"?WeakSet:Set,J=null;function Eo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Qe(e,t,s)}else n.current=null}function Ql(e,t,n){try{n()}catch(s){Qe(e,t,s)}}var xf=!1;function Bg(e,t){if(nl=di,e=Xc(),Ga(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var a=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var f=0,y=-1,S=-1,O=0,L=0,U=e,A=null;t:for(;;){for(var Z;U!==n||a!==0&&U.nodeType!==3||(y=f+a),U!==u||s!==0&&U.nodeType!==3||(S=f+s),U.nodeType===3&&(f+=U.nodeValue.length),(Z=U.firstChild)!==null;)A=U,U=Z;for(;;){if(U===e)break t;if(A===n&&++O===a&&(y=f),A===u&&++L===s&&(S=f),(Z=U.nextSibling)!==null)break;U=A,A=U.parentNode}U=Z}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(rl={focusedElem:e,selectionRange:n},di=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var ne=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ne!==null){var re=ne.memoizedProps,Ke=ne.memoizedState,j=t.stateNode,C=j.getSnapshotBeforeUpdate(t.elementType===t.type?re:qt(t.type,re),Ke);j.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var M=t.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(V){Qe(t,t.return,V)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return ne=xf,xf=!1,ne}function Rs(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&e)===e){var u=a.destroy;a.destroy=void 0,u!==void 0&&Ql(t,n,u)}a=a.next}while(a!==s)}}function Hi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function $l(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Sf(e){var t=e.alternate;t!==null&&(e.alternate=null,Sf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fn],delete t[vs],delete t[al],delete t[kg],delete t[Cg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bf(e){return e.tag===5||e.tag===3||e.tag===4}function kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hl(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ki));else if(s!==4&&(e=e.child,e!==null))for(Hl(e,t,n),e=e.sibling;e!==null;)Hl(e,t,n),e=e.sibling}function Kl(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Kl(e,t,n),e=e.sibling;e!==null;)Kl(e,t,n),e=e.sibling}var ot=null,Yt=!1;function Jn(e,t,n){for(n=n.child;n!==null;)Cf(e,t,n),n=n.sibling}function Cf(e,t,n){if(dn&&typeof dn.onCommitFiberUnmount=="function")try{dn.onCommitFiberUnmount(si,n)}catch{}switch(n.tag){case 5:ut||Eo(n,t);case 6:var s=ot,a=Yt;ot=null,Jn(e,t,n),ot=s,Yt=a,ot!==null&&(Yt?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(Yt?(e=ot,n=n.stateNode,e.nodeType===8?il(e.parentNode,n):e.nodeType===1&&il(e,n),as(e)):il(ot,n.stateNode));break;case 4:s=ot,a=Yt,ot=n.stateNode.containerInfo,Yt=!0,Jn(e,t,n),ot=s,Yt=a;break;case 0:case 11:case 14:case 15:if(!ut&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var u=a,f=u.destroy;u=u.tag,f!==void 0&&((u&2)!==0||(u&4)!==0)&&Ql(n,t,f),a=a.next}while(a!==s)}Jn(e,t,n);break;case 1:if(!ut&&(Eo(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(y){Qe(n,t,y)}Jn(e,t,n);break;case 21:Jn(e,t,n);break;case 22:n.mode&1?(ut=(s=ut)||n.memoizedState!==null,Jn(e,t,n),ut=s):Jn(e,t,n);break;default:Jn(e,t,n)}}function Ef(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ug),t.forEach(function(s){var a=Yg.bind(null,e,s);n.has(s)||(n.add(s),s.then(a,a))})}}function Xt(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var a=n[s];try{var u=e,f=t,y=f;e:for(;y!==null;){switch(y.tag){case 5:ot=y.stateNode,Yt=!1;break e;case 3:ot=y.stateNode.containerInfo,Yt=!0;break e;case 4:ot=y.stateNode.containerInfo,Yt=!0;break e}y=y.return}if(ot===null)throw Error(i(160));Cf(u,f,a),ot=null,Yt=!1;var S=a.alternate;S!==null&&(S.return=null),a.return=null}catch(O){Qe(a,t,O)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Nf(t,e),t=t.sibling}function Nf(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Xt(t,e),mn(e),s&4){try{Rs(3,e,e.return),Hi(3,e)}catch(re){Qe(e,e.return,re)}try{Rs(5,e,e.return)}catch(re){Qe(e,e.return,re)}}break;case 1:Xt(t,e),mn(e),s&512&&n!==null&&Eo(n,n.return);break;case 5:if(Xt(t,e),mn(e),s&512&&n!==null&&Eo(n,n.return),e.flags&32){var a=e.stateNode;try{an(a,"")}catch(re){Qe(e,e.return,re)}}if(s&4&&(a=e.stateNode,a!=null)){var u=e.memoizedProps,f=n!==null?n.memoizedProps:u,y=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{y==="input"&&u.type==="radio"&&u.name!=null&&qo(a,u),Zo(y,f);var O=Zo(y,u);for(f=0;f<S.length;f+=2){var L=S[f],U=S[f+1];L==="style"?bn(a,U):L==="dangerouslySetInnerHTML"?Zs(a,U):L==="children"?an(a,U):B(a,L,U,O)}switch(y){case"input":Yo(a,u);break;case"textarea":Ys(a,u);break;case"select":var A=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!u.multiple;var Z=u.value;Z!=null?zt(a,!!u.multiple,Z,!1):A!==!!u.multiple&&(u.defaultValue!=null?zt(a,!!u.multiple,u.defaultValue,!0):zt(a,!!u.multiple,u.multiple?[]:"",!1))}a[vs]=u}catch(re){Qe(e,e.return,re)}}break;case 6:if(Xt(t,e),mn(e),s&4){if(e.stateNode===null)throw Error(i(162));a=e.stateNode,u=e.memoizedProps;try{a.nodeValue=u}catch(re){Qe(e,e.return,re)}}break;case 3:if(Xt(t,e),mn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{as(t.containerInfo)}catch(re){Qe(e,e.return,re)}break;case 4:Xt(t,e),mn(e);break;case 13:Xt(t,e),mn(e),a=e.child,a.flags&8192&&(u=a.memoizedState!==null,a.stateNode.isHidden=u,!u||a.alternate!==null&&a.alternate.memoizedState!==null||(Yl=He())),s&4&&Ef(e);break;case 22:if(L=n!==null&&n.memoizedState!==null,e.mode&1?(ut=(O=ut)||L,Xt(t,e),ut=O):Xt(t,e),mn(e),s&8192){if(O=e.memoizedState!==null,(e.stateNode.isHidden=O)&&!L&&(e.mode&1)!==0)for(J=e,L=e.child;L!==null;){for(U=J=L;J!==null;){switch(A=J,Z=A.child,A.tag){case 0:case 11:case 14:case 15:Rs(4,A,A.return);break;case 1:Eo(A,A.return);var ne=A.stateNode;if(typeof ne.componentWillUnmount=="function"){s=A,n=A.return;try{t=s,ne.props=t.memoizedProps,ne.state=t.memoizedState,ne.componentWillUnmount()}catch(re){Qe(s,n,re)}}break;case 5:Eo(A,A.return);break;case 22:if(A.memoizedState!==null){Rf(U);continue}}Z!==null?(Z.return=A,J=Z):Rf(U)}L=L.sibling}e:for(L=null,U=e;;){if(U.tag===5){if(L===null){L=U;try{a=U.stateNode,O?(u=a.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(y=U.stateNode,S=U.memoizedProps.style,f=S!=null&&S.hasOwnProperty("display")?S.display:null,y.style.display=ro("display",f))}catch(re){Qe(e,e.return,re)}}}else if(U.tag===6){if(L===null)try{U.stateNode.nodeValue=O?"":U.memoizedProps}catch(re){Qe(e,e.return,re)}}else if((U.tag!==22&&U.tag!==23||U.memoizedState===null||U===e)&&U.child!==null){U.child.return=U,U=U.child;continue}if(U===e)break e;for(;U.sibling===null;){if(U.return===null||U.return===e)break e;L===U&&(L=null),U=U.return}L===U&&(L=null),U.sibling.return=U.return,U=U.sibling}}break;case 19:Xt(t,e),mn(e),s&4&&Ef(e);break;case 21:break;default:Xt(t,e),mn(e)}}function mn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bf(n)){var s=n;break e}n=n.return}throw Error(i(160))}switch(s.tag){case 5:var a=s.stateNode;s.flags&32&&(an(a,""),s.flags&=-33);var u=kf(e);Kl(e,u,a);break;case 3:case 4:var f=s.stateNode.containerInfo,y=kf(e);Hl(e,y,f);break;default:throw Error(i(161))}}catch(S){Qe(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wg(e,t,n){J=e,Pf(e)}function Pf(e,t,n){for(var s=(e.mode&1)!==0;J!==null;){var a=J,u=a.child;if(a.tag===22&&s){var f=a.memoizedState!==null||$i;if(!f){var y=a.alternate,S=y!==null&&y.memoizedState!==null||ut;y=$i;var O=ut;if($i=f,(ut=S)&&!O)for(J=a;J!==null;)f=J,S=f.child,f.tag===22&&f.memoizedState!==null?Mf(a):S!==null?(S.return=f,J=S):Mf(a);for(;u!==null;)J=u,Pf(u),u=u.sibling;J=a,$i=y,ut=O}jf(e)}else(a.subtreeFlags&8772)!==0&&u!==null?(u.return=a,J=u):jf(e)}}function jf(e){for(;J!==null;){var t=J;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ut||Hi(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!ut)if(n===null)s.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:qt(t.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&jd(t,u,s);break;case 3:var f=t.updateQueue;if(f!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}jd(t,f,n)}break;case 5:var y=t.stateNode;if(n===null&&t.flags&4){n=y;var S=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&n.focus();break;case"img":S.src&&(n.src=S.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var O=t.alternate;if(O!==null){var L=O.memoizedState;if(L!==null){var U=L.dehydrated;U!==null&&as(U)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||t.flags&512&&$l(t)}catch(A){Qe(t,t.return,A)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function Rf(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function Mf(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hi(4,t)}catch(S){Qe(t,n,S)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(S){Qe(t,a,S)}}var u=t.return;try{$l(t)}catch(S){Qe(t,u,S)}break;case 5:var f=t.return;try{$l(t)}catch(S){Qe(t,f,S)}}}catch(S){Qe(t,t.return,S)}if(t===e){J=null;break}var y=t.sibling;if(y!==null){y.return=t.return,J=y;break}J=t.return}}var Vg=Math.ceil,Ki=z.ReactCurrentDispatcher,Gl=z.ReactCurrentOwner,Dt=z.ReactCurrentBatchConfig,ke=0,et=null,Ge=null,st=0,Tt=0,No=Gn(0),Ye=0,Ms=null,Or=0,Gi=0,ql=0,Ts=null,bt=null,Yl=0,Po=1/0,Mn=null,qi=!1,Xl=null,er=null,Yi=!1,tr=null,Xi=0,Os=0,Zl=null,Zi=-1,Ji=0;function ht(){return(ke&6)!==0?He():Zi!==-1?Zi:Zi=He()}function nr(e){return(e.mode&1)===0?1:(ke&2)!==0&&st!==0?st&-st:Ng.transition!==null?(Ji===0&&(Ji=bc()),Ji):(e=Me,e!==0||(e=window.event,e=e===void 0?16:Tc(e.type)),e)}function Zt(e,t,n,s){if(50<Os)throw Os=0,Zl=null,Error(i(185));ns(e,n,s),((ke&2)===0||e!==et)&&(e===et&&((ke&2)===0&&(Gi|=n),Ye===4&&rr(e,st)),kt(e,s),n===1&&ke===0&&(t.mode&1)===0&&(Po=He()+500,Pi&&Yn()))}function kt(e,t){var n=e.callbackNode;Nm(e,t);var s=li(e,e===et?st:0);if(s===0)n!==null&&wc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&wc(n),t===1)e.tag===0?Eg(Of.bind(null,e)):gd(Of.bind(null,e)),Sg(function(){(ke&6)===0&&Yn()}),n=null;else{switch(kc(s)){case 1:n=Ta;break;case 4:n=xc;break;case 16:n=oi;break;case 536870912:n=Sc;break;default:n=oi}n=Uf(n,Tf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Tf(e,t){if(Zi=-1,Ji=0,(ke&6)!==0)throw Error(i(327));var n=e.callbackNode;if(jo()&&e.callbackNode!==n)return null;var s=li(e,e===et?st:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=ea(e,s);else{t=s;var a=ke;ke|=2;var u=_f();(et!==e||st!==t)&&(Mn=null,Po=He()+500,_r(e,t));do try{Hg();break}catch(y){zf(e,y)}while(!0);gl(),Ki.current=u,ke=a,Ge!==null?t=0:(et=null,st=0,t=Ye)}if(t!==0){if(t===2&&(a=Oa(e),a!==0&&(s=a,t=Jl(e,a))),t===1)throw n=Ms,_r(e,0),rr(e,s),kt(e,He()),n;if(t===6)rr(e,s);else{if(a=e.current.alternate,(s&30)===0&&!Qg(a)&&(t=ea(e,s),t===2&&(u=Oa(e),u!==0&&(s=u,t=Jl(e,u))),t===1))throw n=Ms,_r(e,0),rr(e,s),kt(e,He()),n;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:Ir(e,bt,Mn);break;case 3:if(rr(e,s),(s&130023424)===s&&(t=Yl+500-He(),10<t)){if(li(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){ht(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=sl(Ir.bind(null,e,bt,Mn),t);break}Ir(e,bt,Mn);break;case 4:if(rr(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var f=31-Ht(s);u=1<<f,f=t[f],f>a&&(a=f),s&=~u}if(s=a,s=He()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Vg(s/1960))-s,10<s){e.timeoutHandle=sl(Ir.bind(null,e,bt,Mn),s);break}Ir(e,bt,Mn);break;case 5:Ir(e,bt,Mn);break;default:throw Error(i(329))}}}return kt(e,He()),e.callbackNode===n?Tf.bind(null,e):null}function Jl(e,t){var n=Ts;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=ea(e,t),e!==2&&(t=bt,bt=n,t!==null&&eu(t)),e}function eu(e){bt===null?bt=e:bt.push.apply(bt,e)}function Qg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var a=n[s],u=a.getSnapshot;a=a.value;try{if(!Kt(u(),a))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rr(e,t){for(t&=~ql,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),s=1<<n;e[n]=-1,t&=~s}}function Of(e){if((ke&6)!==0)throw Error(i(327));jo();var t=li(e,0);if((t&1)===0)return kt(e,He()),null;var n=ea(e,t);if(e.tag!==0&&n===2){var s=Oa(e);s!==0&&(t=s,n=Jl(e,s))}if(n===1)throw n=Ms,_r(e,0),rr(e,t),kt(e,He()),n;if(n===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ir(e,bt,Mn),kt(e,He()),null}function tu(e,t){var n=ke;ke|=1;try{return e(t)}finally{ke=n,ke===0&&(Po=He()+500,Pi&&Yn())}}function zr(e){tr!==null&&tr.tag===0&&(ke&6)===0&&jo();var t=ke;ke|=1;var n=Dt.transition,s=Me;try{if(Dt.transition=null,Me=1,e)return e()}finally{Me=s,Dt.transition=n,ke=t,(ke&6)===0&&Yn()}}function nu(){Tt=No.current,Ae(No)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,xg(n)),Ge!==null)for(n=Ge.return;n!==null;){var s=n;switch(dl(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Ei();break;case 3:ko(),Ae(wt),Ae(it),Cl();break;case 5:bl(s);break;case 4:ko();break;case 13:Ae(We);break;case 19:Ae(We);break;case 10:yl(s.type._context);break;case 22:case 23:nu()}n=n.return}if(et=e,Ge=e=or(e.current,null),st=Tt=t,Ye=0,Ms=null,ql=Gi=Or=0,bt=Ts=null,Rr!==null){for(t=0;t<Rr.length;t++)if(n=Rr[t],s=n.interleaved,s!==null){n.interleaved=null;var a=s.next,u=n.pending;if(u!==null){var f=u.next;u.next=a,s.next=f}n.pending=s}Rr=null}return e}function zf(e,t){do{var n=Ge;try{if(gl(),Li.current=Bi,Di){for(var s=Ve.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Di=!1}if(Tr=0,Je=qe=Ve=null,Cs=!1,Es=0,Gl.current=null,n===null||n.return===null){Ye=1,Ms=t,Ge=null;break}e:{var u=e,f=n.return,y=n,S=t;if(t=st,y.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var O=S,L=y,U=L.tag;if((L.mode&1)===0&&(U===0||U===11||U===15)){var A=L.alternate;A?(L.updateQueue=A.updateQueue,L.memoizedState=A.memoizedState,L.lanes=A.lanes):(L.updateQueue=null,L.memoizedState=null)}var Z=rf(f);if(Z!==null){Z.flags&=-257,of(Z,f,y,u,t),Z.mode&1&&nf(u,O,t),t=Z,S=O;var ne=t.updateQueue;if(ne===null){var re=new Set;re.add(S),t.updateQueue=re}else ne.add(S);break e}else{if((t&1)===0){nf(u,O,t),ru();break e}S=Error(i(426))}}else if(Fe&&y.mode&1){var Ke=rf(f);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),of(Ke,f,y,u,t),hl(Co(S,y));break e}}u=S=Co(S,y),Ye!==4&&(Ye=2),Ts===null?Ts=[u]:Ts.push(u),u=f;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var j=ef(u,S,t);Pd(u,j);break e;case 1:y=S;var C=u.type,M=u.stateNode;if((u.flags&128)===0&&(typeof C.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(er===null||!er.has(M)))){u.flags|=65536,t&=-t,u.lanes|=t;var V=tf(u,y,t);Pd(u,V);break e}}u=u.return}while(u!==null)}Af(n)}catch(se){t=se,Ge===n&&n!==null&&(Ge=n=n.return);continue}break}while(!0)}function _f(){var e=Ki.current;return Ki.current=Bi,e===null?Bi:e}function ru(){(Ye===0||Ye===3||Ye===2)&&(Ye=4),et===null||(Or&268435455)===0&&(Gi&268435455)===0||rr(et,st)}function ea(e,t){var n=ke;ke|=2;var s=_f();(et!==e||st!==t)&&(Mn=null,_r(e,t));do try{$g();break}catch(a){zf(e,a)}while(!0);if(gl(),ke=n,Ki.current=s,Ge!==null)throw Error(i(261));return et=null,st=0,Ye}function $g(){for(;Ge!==null;)If(Ge)}function Hg(){for(;Ge!==null&&!ym();)If(Ge)}function If(e){var t=Ff(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?Af(e):Ge=t,Gl.current=null}function Af(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Dg(n,t,Tt),n!==null){Ge=n;return}}else{if(n=Fg(n,t),n!==null){n.flags&=32767,Ge=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ye=6,Ge=null;return}}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);Ye===0&&(Ye=5)}function Ir(e,t,n){var s=Me,a=Dt.transition;try{Dt.transition=null,Me=1,Kg(e,t,n,s)}finally{Dt.transition=a,Me=s}return null}function Kg(e,t,n,s){do jo();while(tr!==null);if((ke&6)!==0)throw Error(i(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(Pm(e,u),e===et&&(Ge=et=null,st=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Yi||(Yi=!0,Uf(oi,function(){return jo(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=Dt.transition,Dt.transition=null;var f=Me;Me=1;var y=ke;ke|=4,Gl.current=null,Bg(e,n),Nf(n,e),pg(rl),di=!!nl,rl=nl=null,e.current=n,Wg(n),vm(),ke=y,Me=f,Dt.transition=u}else e.current=n;if(Yi&&(Yi=!1,tr=e,Xi=a),u=e.pendingLanes,u===0&&(er=null),Sm(n.stateNode),kt(e,He()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],s(a.value,{componentStack:a.stack,digest:a.digest});if(qi)throw qi=!1,e=Xl,Xl=null,e;return(Xi&1)!==0&&e.tag!==0&&jo(),u=e.pendingLanes,(u&1)!==0?e===Zl?Os++:(Os=0,Zl=e):Os=0,Yn(),null}function jo(){if(tr!==null){var e=kc(Xi),t=Dt.transition,n=Me;try{if(Dt.transition=null,Me=16>e?16:e,tr===null)var s=!1;else{if(e=tr,tr=null,Xi=0,(ke&6)!==0)throw Error(i(331));var a=ke;for(ke|=4,J=e.current;J!==null;){var u=J,f=u.child;if((J.flags&16)!==0){var y=u.deletions;if(y!==null){for(var S=0;S<y.length;S++){var O=y[S];for(J=O;J!==null;){var L=J;switch(L.tag){case 0:case 11:case 15:Rs(8,L,u)}var U=L.child;if(U!==null)U.return=L,J=U;else for(;J!==null;){L=J;var A=L.sibling,Z=L.return;if(Sf(L),L===O){J=null;break}if(A!==null){A.return=Z,J=A;break}J=Z}}}var ne=u.alternate;if(ne!==null){var re=ne.child;if(re!==null){ne.child=null;do{var Ke=re.sibling;re.sibling=null,re=Ke}while(re!==null)}}J=u}}if((u.subtreeFlags&2064)!==0&&f!==null)f.return=u,J=f;else e:for(;J!==null;){if(u=J,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Rs(9,u,u.return)}var j=u.sibling;if(j!==null){j.return=u.return,J=j;break e}J=u.return}}var C=e.current;for(J=C;J!==null;){f=J;var M=f.child;if((f.subtreeFlags&2064)!==0&&M!==null)M.return=f,J=M;else e:for(f=C;J!==null;){if(y=J,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:Hi(9,y)}}catch(se){Qe(y,y.return,se)}if(y===f){J=null;break e}var V=y.sibling;if(V!==null){V.return=y.return,J=V;break e}J=y.return}}if(ke=a,Yn(),dn&&typeof dn.onPostCommitFiberRoot=="function")try{dn.onPostCommitFiberRoot(si,e)}catch{}s=!0}return s}finally{Me=n,Dt.transition=t}}return!1}function Lf(e,t,n){t=Co(n,t),t=ef(e,t,1),e=Zn(e,t,1),t=ht(),e!==null&&(ns(e,1,t),kt(e,t))}function Qe(e,t,n){if(e.tag===3)Lf(e,e,n);else for(;t!==null;){if(t.tag===3){Lf(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(er===null||!er.has(s))){e=Co(n,e),e=tf(t,e,1),t=Zn(t,e,1),e=ht(),t!==null&&(ns(t,1,e),kt(t,e));break}}t=t.return}}function Gg(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=ht(),e.pingedLanes|=e.suspendedLanes&n,et===e&&(st&n)===n&&(Ye===4||Ye===3&&(st&130023424)===st&&500>He()-Yl?_r(e,0):ql|=n),kt(e,t)}function Df(e,t){t===0&&((e.mode&1)===0?t=1:(t=ai,ai<<=1,(ai&130023424)===0&&(ai=4194304)));var n=ht();e=Pn(e,t),e!==null&&(ns(e,t,n),kt(e,n))}function qg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Df(e,n)}function Yg(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(t),Df(e,n)}var Ff;Ff=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)St=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return St=!1,Lg(e,t,n);St=(e.flags&131072)!==0}else St=!1,Fe&&(t.flags&1048576)!==0&&yd(t,Ri,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Qi(e,t),e=t.pendingProps;var a=go(t,it.current);bo(t,n),a=Pl(null,t,s,e,a,n);var u=jl();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xt(s)?(u=!0,Ni(t)):u=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,xl(t),a.updater=Wi,t.stateNode=a,a._reactInternals=t,_l(t,s,e,n),t=Dl(null,t,s,!0,u,n)):(t.tag=0,Fe&&u&&cl(t),pt(null,t,a,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Qi(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=Zg(s),e=qt(s,e),a){case 0:t=Ll(null,t,s,e,n);break e;case 1:t=df(null,t,s,e,n);break e;case 11:t=sf(null,t,s,e,n);break e;case 14:t=af(null,t,s,qt(s.type,e),n);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:qt(s,a),Ll(e,t,s,a,n);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:qt(s,a),df(e,t,s,a,n);case 3:e:{if(ff(t),e===null)throw Error(i(387));s=t.pendingProps,u=t.memoizedState,a=u.element,Nd(e,t),Ii(t,s,null,n);var f=t.memoizedState;if(s=f.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){a=Co(Error(i(423)),t),t=pf(e,t,s,n,a);break e}else if(s!==a){a=Co(Error(i(424)),t),t=pf(e,t,s,n,a);break e}else for(Mt=Kn(t.stateNode.containerInfo.firstChild),Rt=t,Fe=!0,Gt=null,n=Cd(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wo(),s===a){t=Rn(e,t,n);break e}pt(e,t,s,n)}t=t.child}return t;case 5:return Rd(t),e===null&&pl(t),s=t.type,a=t.pendingProps,u=e!==null?e.memoizedProps:null,f=a.children,ol(s,a)?f=null:u!==null&&ol(s,u)&&(t.flags|=32),cf(e,t),pt(e,t,f,n),t.child;case 6:return e===null&&pl(t),null;case 13:return hf(e,t,n);case 4:return Sl(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=xo(t,null,s,n):pt(e,t,s,n),t.child;case 11:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:qt(s,a),sf(e,t,s,a,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,a=t.pendingProps,u=t.memoizedProps,f=a.value,_e(Oi,s._currentValue),s._currentValue=f,u!==null)if(Kt(u.value,f)){if(u.children===a.children&&!wt.current){t=Rn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var y=u.dependencies;if(y!==null){f=u.child;for(var S=y.firstContext;S!==null;){if(S.context===s){if(u.tag===1){S=jn(-1,n&-n),S.tag=2;var O=u.updateQueue;if(O!==null){O=O.shared;var L=O.pending;L===null?S.next=S:(S.next=L.next,L.next=S),O.pending=S}}u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),vl(u.return,n,t),y.lanes|=n;break}S=S.next}}else if(u.tag===10)f=u.type===t.type?null:u.child;else if(u.tag===18){if(f=u.return,f===null)throw Error(i(341));f.lanes|=n,y=f.alternate,y!==null&&(y.lanes|=n),vl(f,n,t),f=u.sibling}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}pt(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,bo(t,n),a=At(a),s=s(a),t.flags|=1,pt(e,t,s,n),t.child;case 14:return s=t.type,a=qt(s,t.pendingProps),a=qt(s.type,a),af(e,t,s,a,n);case 15:return lf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:qt(s,a),Qi(e,t),t.tag=1,xt(s)?(e=!0,Ni(t)):e=!1,bo(t,n),Zd(t,s,a),_l(t,s,a,n),Dl(null,t,s,!0,e,n);case 19:return gf(e,t,n);case 22:return uf(e,t,n)}throw Error(i(156,t.tag))};function Uf(e,t){return vc(e,t)}function Xg(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,t,n,s){return new Xg(e,t,n,s)}function ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zg(e){if(typeof e=="function")return ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ae)return 11;if(e===Be)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ta(e,t,n,s,a,u){var f=2;if(s=e,typeof e=="function")ou(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case $:return Ar(n.children,a,u,t);case X:f=8,a|=8;break;case he:return e=Ft(12,n,t,a|2),e.elementType=he,e.lanes=u,e;case De:return e=Ft(13,n,t,a),e.elementType=De,e.lanes=u,e;case Te:return e=Ft(19,n,t,a),e.elementType=Te,e.lanes=u,e;case xe:return na(n,a,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:f=10;break e;case Pe:f=9;break e;case ae:f=11;break e;case Be:f=14;break e;case Oe:f=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Ft(f,n,t,a),t.elementType=e,t.type=s,t.lanes=u,t}function Ar(e,t,n,s){return e=Ft(7,e,s,t),e.lanes=n,e}function na(e,t,n,s){return e=Ft(22,e,s,t),e.elementType=xe,e.lanes=n,e.stateNode={isHidden:!1},e}function su(e,t,n){return e=Ft(6,e,null,t),e.lanes=n,e}function iu(e,t,n){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jg(e,t,n,s,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=za(0),this.expirationTimes=za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=za(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function au(e,t,n,s,a,u,f,y,S){return e=new Jg(e,t,n,y,S),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Ft(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xl(u),e}function ey(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ee,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Bf(e){if(!e)return qn;e=e._reactInternals;e:{if(Cr(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var n=e.type;if(xt(n))return hd(e,n,t)}return t}function Wf(e,t,n,s,a,u,f,y,S){return e=au(n,s,!0,e,a,u,f,y,S),e.context=Bf(null),n=e.current,s=ht(),a=nr(n),u=jn(s,a),u.callback=t??null,Zn(n,u,a),e.current.lanes=a,ns(e,a,s),kt(e,s),e}function ra(e,t,n,s){var a=t.current,u=ht(),f=nr(a);return n=Bf(n),t.context===null?t.context=n:t.pendingContext=n,t=jn(u,f),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Zn(a,t,f),e!==null&&(Zt(e,a,f,u),_i(e,a,f)),f}function oa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Vf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){Vf(e,t),(e=e.alternate)&&Vf(e,t)}function ty(){return null}var Qf=typeof reportError=="function"?reportError:function(e){console.error(e)};function uu(e){this._internalRoot=e}sa.prototype.render=uu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));ra(e,t,null,null)},sa.prototype.unmount=uu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zr(function(){ra(null,e,null,null)}),t[kn]=null}};function sa(e){this._internalRoot=e}sa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qn.length&&t!==0&&t<Qn[n].priority;n++);Qn.splice(n,0,e),n===0&&Rc(e)}};function cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $f(){}function ny(e,t,n,s,a){if(a){if(typeof s=="function"){var u=s;s=function(){var O=oa(f);u.call(O)}}var f=Wf(t,s,e,0,null,!1,!1,"",$f);return e._reactRootContainer=f,e[kn]=f.current,gs(e.nodeType===8?e.parentNode:e),zr(),f}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var y=s;s=function(){var O=oa(S);y.call(O)}}var S=au(e,0,!1,null,null,!1,!1,"",$f);return e._reactRootContainer=S,e[kn]=S.current,gs(e.nodeType===8?e.parentNode:e),zr(function(){ra(t,S,n,s)}),S}function aa(e,t,n,s,a){var u=n._reactRootContainer;if(u){var f=u;if(typeof a=="function"){var y=a;a=function(){var S=oa(f);y.call(S)}}ra(t,f,e,a)}else f=ny(n,t,e,a,s);return oa(f)}Cc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ts(t.pendingLanes);n!==0&&(_a(t,n|1),kt(t,He()),(ke&6)===0&&(Po=He()+500,Yn()))}break;case 13:zr(function(){var s=Pn(e,1);if(s!==null){var a=ht();Zt(s,e,1,a)}}),lu(e,1)}},Ia=function(e){if(e.tag===13){var t=Pn(e,134217728);if(t!==null){var n=ht();Zt(t,e,134217728,n)}lu(e,134217728)}},Ec=function(e){if(e.tag===13){var t=nr(e),n=Pn(e,t);if(n!==null){var s=ht();Zt(n,e,t,s)}lu(e,t)}},Nc=function(){return Me},Pc=function(e,t){var n=Me;try{return Me=e,t()}finally{Me=n}},so=function(e,t,n){switch(t){case"input":if(Yo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var a=Ci(s);if(!a)throw Error(i(90));Jr(s),Yo(s,a)}}}break;case"textarea":Ys(e,n);break;case"select":t=n.value,t!=null&&zt(e,!!n.multiple,t,!1)}},Ne=tu,ze=zr;var ry={usingClientEntryPoint:!1,Events:[ws,ho,Ci,ti,pe,tu]},zs={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},oy={bundleType:zs.bundleType,version:zs.version,rendererPackageName:zs.rendererPackageName,rendererConfig:zs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:z.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gc(e),e===null?null:e.stateNode},findFiberByHostInstance:zs.findFiberByHostInstance||ty,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 la=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!la.isDisabled&&la.supportsFiber)try{si=la.inject(oy),dn=la}catch{}}return Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ry,Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cu(t))throw Error(i(200));return ey(e,t,null,n)},Ct.createRoot=function(e,t){if(!cu(e))throw Error(i(299));var n=!1,s="",a=Qf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=au(e,1,!1,null,null,n,!1,s,a),e[kn]=t.current,gs(e.nodeType===8?e.parentNode:e),new uu(t)},Ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=gc(t),e=e===null?null:e.stateNode,e},Ct.flushSync=function(e){return zr(e)},Ct.hydrate=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!0,n)},Ct.hydrateRoot=function(e,t,n){if(!cu(e))throw Error(i(405));var s=n!=null&&n.hydratedSources||null,a=!1,u="",f=Qf;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),t=Wf(t,null,e,1,n??null,a,!1,u,f),e[kn]=t.current,gs(e),s)for(e=0;e<s.length;e++)n=s[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new sa(t)},Ct.render=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!1,n)},Ct.unmountComponentAtNode=function(e){if(!ia(e))throw Error(i(40));return e._reactRootContainer?(zr(function(){aa(null,null,e,!1,function(){e._reactRootContainer=null,e[kn]=null})}),!0):!1},Ct.unstable_batchedUpdates=tu,Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!ia(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return aa(e,t,n,!1,s)},Ct.version="18.3.1-next-f1338f8080-20240426",Ct}var ep;function Jp(){if(ep)return hu.exports;ep=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(o){console.error(o)}}return r(),hu.exports=fy(),hu.exports}var tp;function py(){if(tp)return ca;tp=1;var r=Jp();return ca.createRoot=r.createRoot,ca.hydrateRoot=r.hydrateRoot,ca}var hy=py(),Ho=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},my={setTimeout:(r,o)=>setTimeout(r,o),clearTimeout:r=>clearTimeout(r),setInterval:(r,o)=>setInterval(r,o),clearInterval:r=>clearInterval(r)},cr,Ku,Up,gy=(Up=class{constructor(){ie(this,cr,my);ie(this,Ku,!1)}setTimeoutProvider(r){q(this,cr,r)}setTimeout(r,o){return w(this,cr).setTimeout(r,o)}clearTimeout(r){w(this,cr).clearTimeout(r)}setInterval(r,o){return w(this,cr).setInterval(r,o)}clearInterval(r){w(this,cr).clearInterval(r)}},cr=new WeakMap,Ku=new WeakMap,Up),Lr=new gy;function yy(r){setTimeout(r,0)}var Kr=typeof window>"u"||"Deno"in globalThis;function gt(){}function vy(r,o){return typeof r=="function"?r(o):r}function Pu(r){return typeof r=="number"&&r>=0&&r!==1/0}function eh(r,o){return Math.max(r+(o||0)-Date.now(),0)}function wr(r,o){return typeof r=="function"?r(o):r}function Bt(r,o){return typeof r=="function"?r(o):r}function np(r,o){const{type:i="all",exact:l,fetchStatus:c,predicate:d,queryKey:m,stale:p}=r;if(m){if(l){if(o.queryHash!==qu(m,o.options))return!1}else if(!Ds(o.queryKey,m))return!1}if(i!=="all"){const x=o.isActive();if(i==="active"&&!x||i==="inactive"&&x)return!1}return!(typeof p=="boolean"&&o.isStale()!==p||c&&c!==o.state.fetchStatus||d&&!d(o))}function rp(r,o){const{exact:i,status:l,predicate:c,mutationKey:d}=r;if(d){if(!o.options.mutationKey)return!1;if(i){if(Gr(o.options.mutationKey)!==Gr(d))return!1}else if(!Ds(o.options.mutationKey,d))return!1}return!(l&&o.state.status!==l||c&&!c(o))}function qu(r,o){return((o==null?void 0:o.queryKeyHashFn)||Gr)(r)}function Gr(r){return JSON.stringify(r,(o,i)=>ju(i)?Object.keys(i).sort().reduce((l,c)=>(l[c]=i[c],l),{}):i)}function Ds(r,o){return r===o?!0:typeof r!=typeof o?!1:r&&o&&typeof r=="object"&&typeof o=="object"?Object.keys(o).every(i=>Ds(r[i],o[i])):!1}var wy=Object.prototype.hasOwnProperty;function th(r,o,i=0){if(r===o)return r;if(i>500)return o;const l=op(r)&&op(o);if(!l&&!(ju(r)&&ju(o)))return o;const d=(l?r:Object.keys(r)).length,m=l?o:Object.keys(o),p=m.length,x=l?new Array(p):{};let g=0;for(let E=0;E<p;E++){const P=l?E:m[E],T=r[P],v=o[P];if(T===v){x[P]=T,(l?E<d:wy.call(r,P))&&g++;continue}if(T===null||v===null||typeof T!="object"||typeof v!="object"){x[P]=v;continue}const I=th(T,v,i+1);x[P]=I,I===T&&g++}return d===p&&g===d?r:x}function ka(r,o){if(!o||Object.keys(r).length!==Object.keys(o).length)return!1;for(const i in r)if(r[i]!==o[i])return!1;return!0}function op(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function ju(r){if(!sp(r))return!1;const o=r.constructor;if(o===void 0)return!0;const i=o.prototype;return!(!sp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function sp(r){return Object.prototype.toString.call(r)==="[object Object]"}function xy(r){return new Promise(o=>{Lr.setTimeout(o,r)})}function Ru(r,o,i){return typeof i.structuralSharing=="function"?i.structuralSharing(r,o):i.structuralSharing!==!1?th(r,o):o}function Sy(r,o,i=0){const l=[...r,o];return i&&l.length>i?l.slice(1):l}function by(r,o,i=0){const l=[o,...r];return i&&l.length>i?l.slice(0,-1):l}var Yu=Symbol();function nh(r,o){return!r.queryFn&&(o!=null&&o.initialPromise)?()=>o.initialPromise:!r.queryFn||r.queryFn===Yu?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function Xu(r,o){return typeof r=="function"?r(...o):!!r}function ky(r,o,i){let l=!1,c;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(c??(c=o()),l||(l=!0,c.aborted?i():c.addEventListener("abort",i,{once:!0})),c)}),r}var Dr,dr,_o,Bp,Cy=(Bp=class extends Ho{constructor(){super();ie(this,Dr);ie(this,dr);ie(this,_o);q(this,_o,o=>{if(!Kr&&window.addEventListener){const i=()=>o();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){w(this,dr)||this.setEventListener(w(this,_o))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,dr))==null||o.call(this),q(this,dr,void 0))}setEventListener(o){var i;q(this,_o,o),(i=w(this,dr))==null||i.call(this),q(this,dr,o(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(o){w(this,Dr)!==o&&(q(this,Dr,o),this.onFocus())}onFocus(){const o=this.isFocused();this.listeners.forEach(i=>{i(o)})}isFocused(){var o;return typeof w(this,Dr)=="boolean"?w(this,Dr):((o=globalThis.document)==null?void 0:o.visibilityState)!=="hidden"}},Dr=new WeakMap,dr=new WeakMap,_o=new WeakMap,Bp),Zu=new Cy;function Mu(){let r,o;const i=new Promise((c,d)=>{r=c,o=d});i.status="pending",i.catch(()=>{});function l(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{l({status:"fulfilled",value:c}),r(c)},i.reject=c=>{l({status:"rejected",reason:c}),o(c)},i}var Ey=yy;function Ny(){let r=[],o=0,i=p=>{p()},l=p=>{p()},c=Ey;const d=p=>{o?r.push(p):c(()=>{i(p)})},m=()=>{const p=r;r=[],p.length&&c(()=>{l(()=>{p.forEach(x=>{i(x)})})})};return{batch:p=>{let x;o++;try{x=p()}finally{o--,o||m()}return x},batchCalls:p=>(...x)=>{d(()=>{p(...x)})},schedule:d,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{l=p},setScheduler:p=>{c=p}}}var Xe=Ny(),Io,fr,Ao,Wp,Py=(Wp=class extends Ho{constructor(){super();ie(this,Io,!0);ie(this,fr);ie(this,Ao);q(this,Ao,o=>{if(!Kr&&window.addEventListener){const i=()=>o(!0),l=()=>o(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}})}onSubscribe(){w(this,fr)||this.setEventListener(w(this,Ao))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,fr))==null||o.call(this),q(this,fr,void 0))}setEventListener(o){var i;q(this,Ao,o),(i=w(this,fr))==null||i.call(this),q(this,fr,o(this.setOnline.bind(this)))}setOnline(o){w(this,Io)!==o&&(q(this,Io,o),this.listeners.forEach(l=>{l(o)}))}isOnline(){return w(this,Io)}},Io=new WeakMap,fr=new WeakMap,Ao=new WeakMap,Wp),Ca=new Py;function jy(r){return Math.min(1e3*2**r,3e4)}function rh(r){return(r??"online")==="online"?Ca.isOnline():!0}var Tu=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function oh(r){let o=!1,i=0,l;const c=Mu(),d=()=>c.status!=="pending",m=b=>{var R;if(!d()){const D=new Tu(b);T(D),(R=r.onCancel)==null||R.call(r,D)}},p=()=>{o=!0},x=()=>{o=!1},g=()=>Zu.isFocused()&&(r.networkMode==="always"||Ca.isOnline())&&r.canRun(),E=()=>rh(r.networkMode)&&r.canRun(),P=b=>{d()||(l==null||l(),c.resolve(b))},T=b=>{d()||(l==null||l(),c.reject(b))},v=()=>new Promise(b=>{var R;l=D=>{(d()||g())&&b(D)},(R=r.onPause)==null||R.call(r)}).then(()=>{var b;l=void 0,d()||(b=r.onContinue)==null||b.call(r)}),I=()=>{if(d())return;let b;const R=i===0?r.initialPromise:void 0;try{b=R??r.fn()}catch(D){b=Promise.reject(D)}Promise.resolve(b).then(P).catch(D=>{var ee;if(d())return;const F=r.retry??(Kr?0:3),B=r.retryDelay??jy,z=typeof B=="function"?B(i,D):B,G=F===!0||typeof F=="number"&&i<F||typeof F=="function"&&F(i,D);if(o||!G){T(D);return}i++,(ee=r.onFail)==null||ee.call(r,i,D),xy(z).then(()=>g()?void 0:v()).then(()=>{o?T(D):I()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(l==null||l(),c),cancelRetry:p,continueRetry:x,canStart:E,start:()=>(E()?I():v().then(I),c)}}var Fr,Vp,sh=(Vp=class{constructor(){ie(this,Fr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pu(this.gcTime)&&q(this,Fr,Lr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(Kr?1/0:300*1e3))}clearGcTimeout(){w(this,Fr)&&(Lr.clearTimeout(w(this,Fr)),q(this,Fr,void 0))}},Fr=new WeakMap,Vp),Ur,Lo,Ut,Br,nt,Bs,Wr,en,On,Qp,Ry=(Qp=class extends sh{constructor(o){super();ie(this,en);ie(this,Ur);ie(this,Lo);ie(this,Ut);ie(this,Br);ie(this,nt);ie(this,Bs);ie(this,Wr);q(this,Wr,!1),q(this,Bs,o.defaultOptions),this.setOptions(o.options),this.observers=[],q(this,Br,o.client),q(this,Ut,w(this,Br).getQueryCache()),this.queryKey=o.queryKey,this.queryHash=o.queryHash,q(this,Ur,ap(this.options)),this.state=o.state??w(this,Ur),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var o;return(o=w(this,nt))==null?void 0:o.promise}setOptions(o){if(this.options={...w(this,Bs),...o},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=ap(this.options);i.data!==void 0&&(this.setState(ip(i.data,i.dataUpdatedAt)),q(this,Ur,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&w(this,Ut).remove(this)}setData(o,i){const l=Ru(this.state.data,o,this.options);return ge(this,en,On).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(o,i){ge(this,en,On).call(this,{type:"setState",state:o,setStateOptions:i})}cancel(o){var l,c;const i=(l=w(this,nt))==null?void 0:l.promise;return(c=w(this,nt))==null||c.cancel(o),i?i.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(w(this,Ur))}isActive(){return this.observers.some(o=>Bt(o.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(o=>wr(o.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(o=>o.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(o=0){return this.state.data===void 0?!0:o==="static"?!1:this.state.isInvalidated?!0:!eh(this.state.dataUpdatedAt,o)}onFocus(){var i;const o=this.observers.find(l=>l.shouldFetchOnWindowFocus());o==null||o.refetch({cancelRefetch:!1}),(i=w(this,nt))==null||i.continue()}onOnline(){var i;const o=this.observers.find(l=>l.shouldFetchOnReconnect());o==null||o.refetch({cancelRefetch:!1}),(i=w(this,nt))==null||i.continue()}addObserver(o){this.observers.includes(o)||(this.observers.push(o),this.clearGcTimeout(),w(this,Ut).notify({type:"observerAdded",query:this,observer:o}))}removeObserver(o){this.observers.includes(o)&&(this.observers=this.observers.filter(i=>i!==o),this.observers.length||(w(this,nt)&&(w(this,Wr)?w(this,nt).cancel({revert:!0}):w(this,nt).cancelRetry()),this.scheduleGc()),w(this,Ut).notify({type:"observerRemoved",query:this,observer:o}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ge(this,en,On).call(this,{type:"invalidate"})}async fetch(o,i){var x,g,E,P,T,v,I,b,R,D,F,B;if(this.state.fetchStatus!=="idle"&&((x=w(this,nt))==null?void 0:x.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(w(this,nt))return w(this,nt).continueRetry(),w(this,nt).promise}if(o&&this.setOptions(o),!this.options.queryFn){const z=this.observers.find(G=>G.options.queryFn);z&&this.setOptions(z.options)}const l=new AbortController,c=z=>{Object.defineProperty(z,"signal",{enumerable:!0,get:()=>(q(this,Wr,!0),l.signal)})},d=()=>{const z=nh(this.options,i),ee=(()=>{const $={client:w(this,Br),queryKey:this.queryKey,meta:this.meta};return c($),$})();return q(this,Wr,!1),this.options.persister?this.options.persister(z,ee,this):z(ee)},p=(()=>{const z={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:w(this,Br),state:this.state,fetchFn:d};return c(z),z})();(g=this.options.behavior)==null||g.onFetch(p,this),q(this,Lo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((E=p.fetchOptions)==null?void 0:E.meta))&&ge(this,en,On).call(this,{type:"fetch",meta:(P=p.fetchOptions)==null?void 0:P.meta}),q(this,nt,oh({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:z=>{z instanceof Tu&&z.revert&&this.setState({...w(this,Lo),fetchStatus:"idle"}),l.abort()},onFail:(z,G)=>{ge(this,en,On).call(this,{type:"failed",failureCount:z,error:G})},onPause:()=>{ge(this,en,On).call(this,{type:"pause"})},onContinue:()=>{ge(this,en,On).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const z=await w(this,nt).start();if(z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(z),(v=(T=w(this,Ut).config).onSuccess)==null||v.call(T,z,this),(b=(I=w(this,Ut).config).onSettled)==null||b.call(I,z,this.state.error,this),z}catch(z){if(z instanceof Tu){if(z.silent)return w(this,nt).promise;if(z.revert){if(this.state.data===void 0)throw z;return this.state.data}}throw ge(this,en,On).call(this,{type:"error",error:z}),(D=(R=w(this,Ut).config).onError)==null||D.call(R,z,this),(B=(F=w(this,Ut).config).onSettled)==null||B.call(F,this.state.data,z,this),z}finally{this.scheduleGc()}}},Ur=new WeakMap,Lo=new WeakMap,Ut=new WeakMap,Br=new WeakMap,nt=new WeakMap,Bs=new WeakMap,Wr=new WeakMap,en=new WeakSet,On=function(o){const i=l=>{switch(o.type){case"failed":return{...l,fetchFailureCount:o.failureCount,fetchFailureReason:o.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...ih(l.data,this.options),fetchMeta:o.meta??null};case"success":const c={...l,...ip(o.data,o.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!o.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Lo,o.manual?c:void 0),c;case"error":const d=o.error;return{...l,error:d,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...o.state}}};this.state=i(this.state),Xe.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),w(this,Ut).notify({query:this,type:"updated",action:o})})},Qp);function ih(r,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rh(o.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function ip(r,o){return{data:r,dataUpdatedAt:o??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ap(r){const o=typeof r.initialData=="function"?r.initialData():r.initialData,i=o!==void 0,l=i?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:i?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Et,Se,Ws,mt,Vr,Do,zn,pr,Vs,Fo,Uo,Qr,$r,hr,Bo,Re,Ls,Ou,zu,_u,Iu,Au,Lu,Du,ah,$p,My=($p=class extends Ho{constructor(o,i){super();ie(this,Re);ie(this,Et);ie(this,Se);ie(this,Ws);ie(this,mt);ie(this,Vr);ie(this,Do);ie(this,zn);ie(this,pr);ie(this,Vs);ie(this,Fo);ie(this,Uo);ie(this,Qr);ie(this,$r);ie(this,hr);ie(this,Bo,new Set);this.options=i,q(this,Et,o),q(this,pr,null),q(this,zn,Mu()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(w(this,Se).addObserver(this),lp(w(this,Se),this.options)?ge(this,Re,Ls).call(this):this.updateResult(),ge(this,Re,Iu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fu(w(this,Se),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fu(w(this,Se),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ge(this,Re,Au).call(this),ge(this,Re,Lu).call(this),w(this,Se).removeObserver(this)}setOptions(o){const i=this.options,l=w(this,Se);if(this.options=w(this,Et).defaultQueryOptions(o),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Bt(this.options.enabled,w(this,Se))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ge(this,Re,Du).call(this),w(this,Se).setOptions(this.options),i._defaulted&&!ka(this.options,i)&&w(this,Et).getQueryCache().notify({type:"observerOptionsUpdated",query:w(this,Se),observer:this});const c=this.hasListeners();c&&up(w(this,Se),l,this.options,i)&&ge(this,Re,Ls).call(this),this.updateResult(),c&&(w(this,Se)!==l||Bt(this.options.enabled,w(this,Se))!==Bt(i.enabled,w(this,Se))||wr(this.options.staleTime,w(this,Se))!==wr(i.staleTime,w(this,Se)))&&ge(this,Re,Ou).call(this);const d=ge(this,Re,zu).call(this);c&&(w(this,Se)!==l||Bt(this.options.enabled,w(this,Se))!==Bt(i.enabled,w(this,Se))||d!==w(this,hr))&&ge(this,Re,_u).call(this,d)}getOptimisticResult(o){const i=w(this,Et).getQueryCache().build(w(this,Et),o),l=this.createResult(i,o);return Oy(this,l)&&(q(this,mt,l),q(this,Do,this.options),q(this,Vr,w(this,Se).state)),l}getCurrentResult(){return w(this,mt)}trackResult(o,i){return new Proxy(o,{get:(l,c)=>(this.trackProp(c),i==null||i(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&w(this,zn).status==="pending"&&w(this,zn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(o){w(this,Bo).add(o)}getCurrentQuery(){return w(this,Se)}refetch({...o}={}){return this.fetch({...o})}fetchOptimistic(o){const i=w(this,Et).defaultQueryOptions(o),l=w(this,Et).getQueryCache().build(w(this,Et),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(o){return ge(this,Re,Ls).call(this,{...o,cancelRefetch:o.cancelRefetch??!0}).then(()=>(this.updateResult(),w(this,mt)))}createResult(o,i){var he;const l=w(this,Se),c=this.options,d=w(this,mt),m=w(this,Vr),p=w(this,Do),g=o!==l?o.state:w(this,Ws),{state:E}=o;let P={...E},T=!1,v;if(i._optimisticResults){const ye=this.hasListeners(),Pe=!ye&&lp(o,i),ae=ye&&up(o,l,i,c);(Pe||ae)&&(P={...P,...ih(E.data,o.options)}),i._optimisticResults==="isRestoring"&&(P.fetchStatus="idle")}let{error:I,errorUpdatedAt:b,status:R}=P;v=P.data;let D=!1;if(i.placeholderData!==void 0&&v===void 0&&R==="pending"){let ye;d!=null&&d.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(ye=d.data,D=!0):ye=typeof i.placeholderData=="function"?i.placeholderData((he=w(this,Uo))==null?void 0:he.state.data,w(this,Uo)):i.placeholderData,ye!==void 0&&(R="success",v=Ru(d==null?void 0:d.data,ye,i),T=!0)}if(i.select&&v!==void 0&&!D)if(d&&v===(m==null?void 0:m.data)&&i.select===w(this,Vs))v=w(this,Fo);else try{q(this,Vs,i.select),v=i.select(v),v=Ru(d==null?void 0:d.data,v,i),q(this,Fo,v),q(this,pr,null)}catch(ye){q(this,pr,ye)}w(this,pr)&&(I=w(this,pr),v=w(this,Fo),b=Date.now(),R="error");const F=P.fetchStatus==="fetching",B=R==="pending",z=R==="error",G=B&&F,ee=v!==void 0,X={status:R,fetchStatus:P.fetchStatus,isPending:B,isSuccess:R==="success",isError:z,isInitialLoading:G,isLoading:G,data:v,dataUpdatedAt:P.dataUpdatedAt,error:I,errorUpdatedAt:b,failureCount:P.fetchFailureCount,failureReason:P.fetchFailureReason,errorUpdateCount:P.errorUpdateCount,isFetched:P.dataUpdateCount>0||P.errorUpdateCount>0,isFetchedAfterMount:P.dataUpdateCount>g.dataUpdateCount||P.errorUpdateCount>g.errorUpdateCount,isFetching:F,isRefetching:F&&!B,isLoadingError:z&&!ee,isPaused:P.fetchStatus==="paused",isPlaceholderData:T,isRefetchError:z&&ee,isStale:Ju(o,i),refetch:this.refetch,promise:w(this,zn),isEnabled:Bt(i.enabled,o)!==!1};if(this.options.experimental_prefetchInRender){const ye=X.data!==void 0,Pe=X.status==="error"&&!ye,ae=Be=>{Pe?Be.reject(X.error):ye&&Be.resolve(X.data)},De=()=>{const Be=q(this,zn,X.promise=Mu());ae(Be)},Te=w(this,zn);switch(Te.status){case"pending":o.queryHash===l.queryHash&&ae(Te);break;case"fulfilled":(Pe||X.data!==Te.value)&&De();break;case"rejected":(!Pe||X.error!==Te.reason)&&De();break}}return X}updateResult(){const o=w(this,mt),i=this.createResult(w(this,Se),this.options);if(q(this,Vr,w(this,Se).state),q(this,Do,this.options),w(this,Vr).data!==void 0&&q(this,Uo,w(this,Se)),ka(i,o))return;q(this,mt,i);const l=()=>{if(!o)return!0;const{notifyOnChangeProps:c}=this.options,d=typeof c=="function"?c():c;if(d==="all"||!d&&!w(this,Bo).size)return!0;const m=new Set(d??w(this,Bo));return this.options.throwOnError&&m.add("error"),Object.keys(w(this,mt)).some(p=>{const x=p;return w(this,mt)[x]!==o[x]&&m.has(x)})};ge(this,Re,ah).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ge(this,Re,Iu).call(this)}},Et=new WeakMap,Se=new WeakMap,Ws=new WeakMap,mt=new WeakMap,Vr=new WeakMap,Do=new WeakMap,zn=new WeakMap,pr=new WeakMap,Vs=new WeakMap,Fo=new WeakMap,Uo=new WeakMap,Qr=new WeakMap,$r=new WeakMap,hr=new WeakMap,Bo=new WeakMap,Re=new WeakSet,Ls=function(o){ge(this,Re,Du).call(this);let i=w(this,Se).fetch(this.options,o);return o!=null&&o.throwOnError||(i=i.catch(gt)),i},Ou=function(){ge(this,Re,Au).call(this);const o=wr(this.options.staleTime,w(this,Se));if(Kr||w(this,mt).isStale||!Pu(o))return;const l=eh(w(this,mt).dataUpdatedAt,o)+1;q(this,Qr,Lr.setTimeout(()=>{w(this,mt).isStale||this.updateResult()},l))},zu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(w(this,Se)):this.options.refetchInterval)??!1},_u=function(o){ge(this,Re,Lu).call(this),q(this,hr,o),!(Kr||Bt(this.options.enabled,w(this,Se))===!1||!Pu(w(this,hr))||w(this,hr)===0)&&q(this,$r,Lr.setInterval(()=>{(this.options.refetchIntervalInBackground||Zu.isFocused())&&ge(this,Re,Ls).call(this)},w(this,hr)))},Iu=function(){ge(this,Re,Ou).call(this),ge(this,Re,_u).call(this,ge(this,Re,zu).call(this))},Au=function(){w(this,Qr)&&(Lr.clearTimeout(w(this,Qr)),q(this,Qr,void 0))},Lu=function(){w(this,$r)&&(Lr.clearInterval(w(this,$r)),q(this,$r,void 0))},Du=function(){const o=w(this,Et).getQueryCache().build(w(this,Et),this.options);if(o===w(this,Se))return;const i=w(this,Se);q(this,Se,o),q(this,Ws,o.state),this.hasListeners()&&(i==null||i.removeObserver(this),o.addObserver(this))},ah=function(o){Xe.batch(()=>{o.listeners&&this.listeners.forEach(i=>{i(w(this,mt))}),w(this,Et).getQueryCache().notify({query:w(this,Se),type:"observerResultsUpdated"})})},$p);function Ty(r,o){return Bt(o.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&o.retryOnMount===!1)}function lp(r,o){return Ty(r,o)||r.state.data!==void 0&&Fu(r,o,o.refetchOnMount)}function Fu(r,o,i){if(Bt(o.enabled,r)!==!1&&wr(o.staleTime,r)!=="static"){const l=typeof i=="function"?i(r):i;return l==="always"||l!==!1&&Ju(r,o)}return!1}function up(r,o,i,l){return(r!==o||Bt(l.enabled,r)===!1)&&(!i.suspense||r.state.status!=="error")&&Ju(r,i)}function Ju(r,o){return Bt(o.enabled,r)!==!1&&r.isStaleByTime(wr(o.staleTime,r))}function Oy(r,o){return!ka(r.getCurrentResult(),o)}function cp(r){return{onFetch:(o,i)=>{var E,P,T,v,I;const l=o.options,c=(T=(P=(E=o.fetchOptions)==null?void 0:E.meta)==null?void 0:P.fetchMore)==null?void 0:T.direction,d=((v=o.state.data)==null?void 0:v.pages)||[],m=((I=o.state.data)==null?void 0:I.pageParams)||[];let p={pages:[],pageParams:[]},x=0;const g=async()=>{let b=!1;const R=B=>{ky(B,()=>o.signal,()=>b=!0)},D=nh(o.options,o.fetchOptions),F=async(B,z,G)=>{if(b)return Promise.reject();if(z==null&&B.pages.length)return Promise.resolve(B);const $=(()=>{const Pe={client:o.client,queryKey:o.queryKey,pageParam:z,direction:G?"backward":"forward",meta:o.options.meta};return R(Pe),Pe})(),X=await D($),{maxPages:he}=o.options,ye=G?by:Sy;return{pages:ye(B.pages,X,he),pageParams:ye(B.pageParams,z,he)}};if(c&&d.length){const B=c==="backward",z=B?zy:dp,G={pages:d,pageParams:m},ee=z(l,G);p=await F(G,ee,B)}else{const B=r??d.length;do{const z=x===0?m[0]??l.initialPageParam:dp(l,p);if(x>0&&z==null)break;p=await F(p,z),x++}while(x<B)}return p};o.options.persister?o.fetchFn=()=>{var b,R;return(R=(b=o.options).persister)==null?void 0:R.call(b,g,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},i)}:o.fetchFn=g}}}function dp(r,{pages:o,pageParams:i}){const l=o.length-1;return o.length>0?r.getNextPageParam(o[l],o,i[l],i):void 0}function zy(r,{pages:o,pageParams:i}){var l;return o.length>0?(l=r.getPreviousPageParam)==null?void 0:l.call(r,o[0],o,i[0],i):void 0}var Qs,gn,ct,Hr,yn,lr,Hp,_y=(Hp=class extends sh{constructor(o){super();ie(this,yn);ie(this,Qs);ie(this,gn);ie(this,ct);ie(this,Hr);q(this,Qs,o.client),this.mutationId=o.mutationId,q(this,ct,o.mutationCache),q(this,gn,[]),this.state=o.state||lh(),this.setOptions(o.options),this.scheduleGc()}setOptions(o){this.options=o,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(o){w(this,gn).includes(o)||(w(this,gn).push(o),this.clearGcTimeout(),w(this,ct).notify({type:"observerAdded",mutation:this,observer:o}))}removeObserver(o){q(this,gn,w(this,gn).filter(i=>i!==o)),this.scheduleGc(),w(this,ct).notify({type:"observerRemoved",mutation:this,observer:o})}optionalRemove(){w(this,gn).length||(this.state.status==="pending"?this.scheduleGc():w(this,ct).remove(this))}continue(){var o;return((o=w(this,Hr))==null?void 0:o.continue())??this.execute(this.state.variables)}async execute(o){var m,p,x,g,E,P,T,v,I,b,R,D,F,B,z,G,ee,$;const i=()=>{ge(this,yn,lr).call(this,{type:"continue"})},l={client:w(this,Qs),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,Hr,oh({fn:()=>this.options.mutationFn?this.options.mutationFn(o,l):Promise.reject(new Error("No mutationFn found")),onFail:(X,he)=>{ge(this,yn,lr).call(this,{type:"failed",failureCount:X,error:he})},onPause:()=>{ge(this,yn,lr).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>w(this,ct).canRun(this)}));const c=this.state.status==="pending",d=!w(this,Hr).canStart();try{if(c)i();else{ge(this,yn,lr).call(this,{type:"pending",variables:o,isPaused:d}),w(this,ct).config.onMutate&&await w(this,ct).config.onMutate(o,this,l);const he=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,o,l));he!==this.state.context&&ge(this,yn,lr).call(this,{type:"pending",context:he,variables:o,isPaused:d})}const X=await w(this,Hr).start();return await((g=(x=w(this,ct).config).onSuccess)==null?void 0:g.call(x,X,o,this.state.context,this,l)),await((P=(E=this.options).onSuccess)==null?void 0:P.call(E,X,o,this.state.context,l)),await((v=(T=w(this,ct).config).onSettled)==null?void 0:v.call(T,X,null,this.state.variables,this.state.context,this,l)),await((b=(I=this.options).onSettled)==null?void 0:b.call(I,X,null,o,this.state.context,l)),ge(this,yn,lr).call(this,{type:"success",data:X}),X}catch(X){try{await((D=(R=w(this,ct).config).onError)==null?void 0:D.call(R,X,o,this.state.context,this,l))}catch(he){Promise.reject(he)}try{await((B=(F=this.options).onError)==null?void 0:B.call(F,X,o,this.state.context,l))}catch(he){Promise.reject(he)}try{await((G=(z=w(this,ct).config).onSettled)==null?void 0:G.call(z,void 0,X,this.state.variables,this.state.context,this,l))}catch(he){Promise.reject(he)}try{await(($=(ee=this.options).onSettled)==null?void 0:$.call(ee,void 0,X,o,this.state.context,l))}catch(he){Promise.reject(he)}throw ge(this,yn,lr).call(this,{type:"error",error:X}),X}finally{w(this,ct).runNext(this)}}},Qs=new WeakMap,gn=new WeakMap,ct=new WeakMap,Hr=new WeakMap,yn=new WeakSet,lr=function(o){const i=l=>{switch(o.type){case"failed":return{...l,failureCount:o.failureCount,failureReason:o.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:o.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:o.isPaused,status:"pending",variables:o.variables,submittedAt:Date.now()};case"success":return{...l,data:o.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:o.error,failureCount:l.failureCount+1,failureReason:o.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Xe.batch(()=>{w(this,gn).forEach(l=>{l.onMutationUpdate(o)}),w(this,ct).notify({mutation:this,type:"updated",action:o})})},Hp);function lh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _n,tn,$s,Kp,Iy=(Kp=class extends Ho{constructor(o={}){super();ie(this,_n);ie(this,tn);ie(this,$s);this.config=o,q(this,_n,new Set),q(this,tn,new Map),q(this,$s,0)}build(o,i,l){const c=new _y({client:o,mutationCache:this,mutationId:++ua(this,$s)._,options:o.defaultMutationOptions(i),state:l});return this.add(c),c}add(o){w(this,_n).add(o);const i=da(o);if(typeof i=="string"){const l=w(this,tn).get(i);l?l.push(o):w(this,tn).set(i,[o])}this.notify({type:"added",mutation:o})}remove(o){if(w(this,_n).delete(o)){const i=da(o);if(typeof i=="string"){const l=w(this,tn).get(i);if(l)if(l.length>1){const c=l.indexOf(o);c!==-1&&l.splice(c,1)}else l[0]===o&&w(this,tn).delete(i)}}this.notify({type:"removed",mutation:o})}canRun(o){const i=da(o);if(typeof i=="string"){const l=w(this,tn).get(i),c=l==null?void 0:l.find(d=>d.state.status==="pending");return!c||c===o}else return!0}runNext(o){var l;const i=da(o);if(typeof i=="string"){const c=(l=w(this,tn).get(i))==null?void 0:l.find(d=>d!==o&&d.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Xe.batch(()=>{w(this,_n).forEach(o=>{this.notify({type:"removed",mutation:o})}),w(this,_n).clear(),w(this,tn).clear()})}getAll(){return Array.from(w(this,_n))}find(o){const i={exact:!0,...o};return this.getAll().find(l=>rp(i,l))}findAll(o={}){return this.getAll().filter(i=>rp(o,i))}notify(o){Xe.batch(()=>{this.listeners.forEach(i=>{i(o)})})}resumePausedMutations(){const o=this.getAll().filter(i=>i.state.isPaused);return Xe.batch(()=>Promise.all(o.map(i=>i.continue().catch(gt))))}},_n=new WeakMap,tn=new WeakMap,$s=new WeakMap,Kp);function da(r){var o;return(o=r.options.scope)==null?void 0:o.id}var In,mr,Nt,An,Ln,va,Uu,Gp,Ay=(Gp=class extends Ho{constructor(i,l){super();ie(this,Ln);ie(this,In);ie(this,mr);ie(this,Nt);ie(this,An);q(this,In,i),this.setOptions(l),this.bindMethods(),ge(this,Ln,va).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var c;const l=this.options;this.options=w(this,In).defaultMutationOptions(i),ka(this.options,l)||w(this,In).getMutationCache().notify({type:"observerOptionsUpdated",mutation:w(this,Nt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&Gr(l.mutationKey)!==Gr(this.options.mutationKey)?this.reset():((c=w(this,Nt))==null?void 0:c.state.status)==="pending"&&w(this,Nt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=w(this,Nt))==null||i.removeObserver(this)}onMutationUpdate(i){ge(this,Ln,va).call(this),ge(this,Ln,Uu).call(this,i)}getCurrentResult(){return w(this,mr)}reset(){var i;(i=w(this,Nt))==null||i.removeObserver(this),q(this,Nt,void 0),ge(this,Ln,va).call(this),ge(this,Ln,Uu).call(this)}mutate(i,l){var c;return q(this,An,l),(c=w(this,Nt))==null||c.removeObserver(this),q(this,Nt,w(this,In).getMutationCache().build(w(this,In),this.options)),w(this,Nt).addObserver(this),w(this,Nt).execute(i)}},In=new WeakMap,mr=new WeakMap,Nt=new WeakMap,An=new WeakMap,Ln=new WeakSet,va=function(){var l;const i=((l=w(this,Nt))==null?void 0:l.state)??lh();q(this,mr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Uu=function(i){Xe.batch(()=>{var l,c,d,m,p,x,g,E;if(w(this,An)&&this.hasListeners()){const P=w(this,mr).variables,T=w(this,mr).context,v={client:w(this,In),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(c=(l=w(this,An)).onSuccess)==null||c.call(l,i.data,P,T,v)}catch(I){Promise.reject(I)}try{(m=(d=w(this,An)).onSettled)==null||m.call(d,i.data,null,P,T,v)}catch(I){Promise.reject(I)}}else if((i==null?void 0:i.type)==="error"){try{(x=(p=w(this,An)).onError)==null||x.call(p,i.error,P,T,v)}catch(I){Promise.reject(I)}try{(E=(g=w(this,An)).onSettled)==null||E.call(g,void 0,i.error,P,T,v)}catch(I){Promise.reject(I)}}}this.listeners.forEach(P=>{P(w(this,mr))})})},Gp),vn,qp,Ly=(qp=class extends Ho{constructor(o={}){super();ie(this,vn);this.config=o,q(this,vn,new Map)}build(o,i,l){const c=i.queryKey,d=i.queryHash??qu(c,i);let m=this.get(d);return m||(m=new Ry({client:o,queryKey:c,queryHash:d,options:o.defaultQueryOptions(i),state:l,defaultOptions:o.getQueryDefaults(c)}),this.add(m)),m}add(o){w(this,vn).has(o.queryHash)||(w(this,vn).set(o.queryHash,o),this.notify({type:"added",query:o}))}remove(o){const i=w(this,vn).get(o.queryHash);i&&(o.destroy(),i===o&&w(this,vn).delete(o.queryHash),this.notify({type:"removed",query:o}))}clear(){Xe.batch(()=>{this.getAll().forEach(o=>{this.remove(o)})})}get(o){return w(this,vn).get(o)}getAll(){return[...w(this,vn).values()]}find(o){const i={exact:!0,...o};return this.getAll().find(l=>np(i,l))}findAll(o={}){const i=this.getAll();return Object.keys(o).length>0?i.filter(l=>np(o,l)):i}notify(o){Xe.batch(()=>{this.listeners.forEach(i=>{i(o)})})}onFocus(){Xe.batch(()=>{this.getAll().forEach(o=>{o.onFocus()})})}onOnline(){Xe.batch(()=>{this.getAll().forEach(o=>{o.onOnline()})})}},vn=new WeakMap,qp),$e,gr,yr,Wo,Vo,vr,Qo,$o,Yp,Dy=(Yp=class{constructor(r={}){ie(this,$e);ie(this,gr);ie(this,yr);ie(this,Wo);ie(this,Vo);ie(this,vr);ie(this,Qo);ie(this,$o);q(this,$e,r.queryCache||new Ly),q(this,gr,r.mutationCache||new Iy),q(this,yr,r.defaultOptions||{}),q(this,Wo,new Map),q(this,Vo,new Map),q(this,vr,0)}mount(){ua(this,vr)._++,w(this,vr)===1&&(q(this,Qo,Zu.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,$e).onFocus())})),q(this,$o,Ca.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,$e).onOnline())})))}unmount(){var r,o;ua(this,vr)._--,w(this,vr)===0&&((r=w(this,Qo))==null||r.call(this),q(this,Qo,void 0),(o=w(this,$o))==null||o.call(this),q(this,$o,void 0))}isFetching(r){return w(this,$e).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return w(this,gr).findAll({...r,status:"pending"}).length}getQueryData(r){var i;const o=this.defaultQueryOptions({queryKey:r});return(i=w(this,$e).get(o.queryHash))==null?void 0:i.state.data}ensureQueryData(r){const o=this.defaultQueryOptions(r),i=w(this,$e).build(this,o),l=i.state.data;return l===void 0?this.fetchQuery(r):(r.revalidateIfStale&&i.isStaleByTime(wr(o.staleTime,i))&&this.prefetchQuery(o),Promise.resolve(l))}getQueriesData(r){return w(this,$e).findAll(r).map(({queryKey:o,state:i})=>{const l=i.data;return[o,l]})}setQueryData(r,o,i){const l=this.defaultQueryOptions({queryKey:r}),c=w(this,$e).get(l.queryHash),d=c==null?void 0:c.state.data,m=vy(o,d);if(m!==void 0)return w(this,$e).build(this,l).setData(m,{...i,manual:!0})}setQueriesData(r,o,i){return Xe.batch(()=>w(this,$e).findAll(r).map(({queryKey:l})=>[l,this.setQueryData(l,o,i)]))}getQueryState(r){var i;const o=this.defaultQueryOptions({queryKey:r});return(i=w(this,$e).get(o.queryHash))==null?void 0:i.state}removeQueries(r){const o=w(this,$e);Xe.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(r,o){const i=w(this,$e);return Xe.batch(()=>(i.findAll(r).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...r},o)))}cancelQueries(r,o={}){const i={revert:!0,...o},l=Xe.batch(()=>w(this,$e).findAll(r).map(c=>c.cancel(i)));return Promise.all(l).then(gt).catch(gt)}invalidateQueries(r,o={}){return Xe.batch(()=>(w(this,$e).findAll(r).forEach(i=>{i.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},o)))}refetchQueries(r,o={}){const i={...o,cancelRefetch:o.cancelRefetch??!0},l=Xe.batch(()=>w(this,$e).findAll(r).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let d=c.fetch(void 0,i);return i.throwOnError||(d=d.catch(gt)),c.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(l).then(gt)}fetchQuery(r){const o=this.defaultQueryOptions(r);o.retry===void 0&&(o.retry=!1);const i=w(this,$e).build(this,o);return i.isStaleByTime(wr(o.staleTime,i))?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(gt).catch(gt)}fetchInfiniteQuery(r){return r.behavior=cp(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(gt).catch(gt)}ensureInfiniteQueryData(r){return r.behavior=cp(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return Ca.isOnline()?w(this,gr).resumePausedMutations():Promise.resolve()}getQueryCache(){return w(this,$e)}getMutationCache(){return w(this,gr)}getDefaultOptions(){return w(this,yr)}setDefaultOptions(r){q(this,yr,r)}setQueryDefaults(r,o){w(this,Wo).set(Gr(r),{queryKey:r,defaultOptions:o})}getQueryDefaults(r){const o=[...w(this,Wo).values()],i={};return o.forEach(l=>{Ds(r,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(r,o){w(this,Vo).set(Gr(r),{mutationKey:r,defaultOptions:o})}getMutationDefaults(r){const o=[...w(this,Vo).values()],i={};return o.forEach(l=>{Ds(r,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(r){if(r._defaulted)return r;const o={...w(this,yr).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return o.queryHash||(o.queryHash=qu(o.queryKey,o)),o.refetchOnReconnect===void 0&&(o.refetchOnReconnect=o.networkMode!=="always"),o.throwOnError===void 0&&(o.throwOnError=!!o.suspense),!o.networkMode&&o.persister&&(o.networkMode="offlineFirst"),o.queryFn===Yu&&(o.enabled=!1),o}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...w(this,yr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){w(this,$e).clear(),w(this,gr).clear()}},$e=new WeakMap,gr=new WeakMap,yr=new WeakMap,Wo=new WeakMap,Vo=new WeakMap,vr=new WeakMap,Qo=new WeakMap,$o=new WeakMap,Yp),uh=k.createContext(void 0),Hs=r=>{const o=k.useContext(uh);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},Fy=({client:r,children:o})=>(k.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),h.jsx(uh.Provider,{value:r,children:o})),ch=k.createContext(!1),Uy=()=>k.useContext(ch);ch.Provider;function By(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var Wy=k.createContext(By()),Vy=()=>k.useContext(Wy),Qy=(r,o,i)=>{const l=i!=null&&i.state.error&&typeof r.throwOnError=="function"?Xu(r.throwOnError,[i.state.error,i]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||l)&&(o.isReset()||(r.retryOnMount=!1))},$y=r=>{k.useEffect(()=>{r.clearReset()},[r])},Hy=({result:r,errorResetBoundary:o,throwOnError:i,query:l,suspense:c})=>r.isError&&!o.isReset()&&!r.isFetching&&l&&(c&&r.data===void 0||Xu(i,[r.error,l])),Ky=r=>{if(r.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),l=r.staleTime;r.staleTime=typeof l=="function"?(...c)=>i(l(...c)):i(l),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},Gy=(r,o)=>r.isLoading&&r.isFetching&&!o,qy=(r,o)=>(r==null?void 0:r.suspense)&&o.isPending,fp=(r,o,i)=>o.fetchOptimistic(r).catch(()=>{i.clearReset()});function Yy(r,o,i){var T,v,I,b;const l=Uy(),c=Vy(),d=Hs(),m=d.defaultQueryOptions(r);(v=(T=d.getDefaultOptions().queries)==null?void 0:T._experimental_beforeQuery)==null||v.call(T,m);const p=d.getQueryCache().get(m.queryHash);m._optimisticResults=l?"isRestoring":"optimistic",Ky(m),Qy(m,c,p),$y(c);const x=!d.getQueryCache().get(m.queryHash),[g]=k.useState(()=>new o(d,m)),E=g.getOptimisticResult(m),P=!l&&r.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(R=>{const D=P?g.subscribe(Xe.batchCalls(R)):gt;return g.updateResult(),D},[g,P]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),k.useEffect(()=>{g.setOptions(m)},[m,g]),qy(m,E))throw fp(m,g,c);if(Hy({result:E,errorResetBoundary:c,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw E.error;if((b=(I=d.getDefaultOptions().queries)==null?void 0:I._experimental_afterQuery)==null||b.call(I,m,E),m.experimental_prefetchInRender&&!Kr&&Gy(E,l)){const R=x?fp(m,g,c):p==null?void 0:p.promise;R==null||R.catch(gt).finally(()=>{g.updateResult()})}return m.notifyOnChangeProps?E:g.trackResult(E)}function ec(r,o){return Yy(r,My)}function tc(r,o){const i=Hs(),[l]=k.useState(()=>new Ay(i,r));k.useEffect(()=>{l.setOptions(r)},[l,r]);const c=k.useSyncExternalStore(k.useCallback(m=>l.subscribe(Xe.batchCalls(m)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),d=k.useCallback((m,p)=>{l.mutate(m,p).catch(gt)},[l]);if(c.error&&Xu(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:d,mutateAsync:c.mutate}}const pp=r=>{let o;const i=new Set,l=(g,E)=>{const P=typeof g=="function"?g(o):g;if(!Object.is(P,o)){const T=o;o=E??(typeof P!="object"||P===null)?P:Object.assign({},o,P),i.forEach(v=>v(o,T))}},c=()=>o,p={setState:l,getState:c,getInitialState:()=>x,subscribe:g=>(i.add(g),()=>i.delete(g))},x=o=r(l,c,p);return p},Xy=(r=>r?pp(r):pp),Zy=r=>r;function Jy(r,o=Zy){const i=K.useSyncExternalStore(r.subscribe,K.useCallback(()=>o(r.getState()),[r,o]),K.useCallback(()=>o(r.getInitialState()),[r,o]));return K.useDebugValue(i),i}const hp=r=>{const o=Xy(r),i=l=>Jy(o,l);return Object.assign(i,o),i},ev=(r=>r?hp(r):hp),Yr=ev(r=>({activeTab:"model",setActiveTab:o=>r({activeTab:o}),connectionStatus:"disconnected",setConnectionStatus:o=>r({connectionStatus:o}),providerModal:{open:!1},openProviderModal:o=>r({providerModal:{open:!0,provider:o}}),closeProviderModal:()=>r({providerModal:{open:!1}}),channelModal:{open:!1},openChannelModal:o=>r({channelModal:{open:!0,channel:o}}),closeChannelModal:()=>r({channelModal:{open:!1}})}));function dh(r){var o,i,l="";if(typeof r=="string"||typeof r=="number")l+=r;else if(typeof r=="object")if(Array.isArray(r)){var c=r.length;for(o=0;o<c;o++)r[o]&&(i=dh(r[o]))&&(l&&(l+=" "),l+=i)}else for(i in r)r[i]&&(l&&(l+=" "),l+=i);return l}function fh(){for(var r,o,i=0,l="",c=arguments.length;i<c;i++)(r=arguments[i])&&(o=dh(r))&&(l&&(l+=" "),l+=o);return l}const nc="-",tv=r=>{const o=rv(r),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=r;return{getClassGroupId:m=>{const p=m.split(nc);return p[0]===""&&p.length!==1&&p.shift(),ph(p,o)||nv(m)},getConflictingClassGroupIds:(m,p)=>{const x=i[m]||[];return p&&l[m]?[...x,...l[m]]:x}}},ph=(r,o)=>{var m;if(r.length===0)return o.classGroupId;const i=r[0],l=o.nextPart.get(i),c=l?ph(r.slice(1),l):void 0;if(c)return c;if(o.validators.length===0)return;const d=r.join(nc);return(m=o.validators.find(({validator:p})=>p(d)))==null?void 0:m.classGroupId},mp=/^\[(.+)\]$/,nv=r=>{if(mp.test(r)){const o=mp.exec(r)[1],i=o==null?void 0:o.substring(0,o.indexOf(":"));if(i)return"arbitrary.."+i}},rv=r=>{const{theme:o,prefix:i}=r,l={nextPart:new Map,validators:[]};return sv(Object.entries(r.classGroups),i).forEach(([d,m])=>{Bu(m,l,d,o)}),l},Bu=(r,o,i,l)=>{r.forEach(c=>{if(typeof c=="string"){const d=c===""?o:gp(o,c);d.classGroupId=i;return}if(typeof c=="function"){if(ov(c)){Bu(c(l),o,i,l);return}o.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([d,m])=>{Bu(m,gp(o,d),i,l)})})},gp=(r,o)=>{let i=r;return o.split(nc).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},ov=r=>r.isThemeGetter,sv=(r,o)=>o?r.map(([i,l])=>{const c=l.map(d=>typeof d=="string"?o+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([m,p])=>[o+m,p])):d);return[i,c]}):r,iv=r=>{if(r<1)return{get:()=>{},set:()=>{}};let o=0,i=new Map,l=new Map;const c=(d,m)=>{i.set(d,m),o++,o>r&&(o=0,l=i,i=new Map)};return{get(d){let m=i.get(d);if(m!==void 0)return m;if((m=l.get(d))!==void 0)return c(d,m),m},set(d,m){i.has(d)?i.set(d,m):c(d,m)}}},hh="!",av=r=>{const{separator:o,experimentalParseClassName:i}=r,l=o.length===1,c=o[0],d=o.length,m=p=>{const x=[];let g=0,E=0,P;for(let R=0;R<p.length;R++){let D=p[R];if(g===0){if(D===c&&(l||p.slice(R,R+d)===o)){x.push(p.slice(E,R)),E=R+d;continue}if(D==="/"){P=R;continue}}D==="["?g++:D==="]"&&g--}const T=x.length===0?p:p.substring(E),v=T.startsWith(hh),I=v?T.substring(1):T,b=P&&P>E?P-E:void 0;return{modifiers:x,hasImportantModifier:v,baseClassName:I,maybePostfixModifierPosition:b}};return i?p=>i({className:p,parseClassName:m}):m},lv=r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(l=>{l[0]==="["?(o.push(...i.sort(),l),i=[]):i.push(l)}),o.push(...i.sort()),o},uv=r=>({cache:iv(r.cacheSize),parseClassName:av(r),...tv(r)}),cv=/\s+/,dv=(r,o)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:c}=o,d=[],m=r.trim().split(cv);let p="";for(let x=m.length-1;x>=0;x-=1){const g=m[x],{modifiers:E,hasImportantModifier:P,baseClassName:T,maybePostfixModifierPosition:v}=i(g);let I=!!v,b=l(I?T.substring(0,v):T);if(!b){if(!I){p=g+(p.length>0?" "+p:p);continue}if(b=l(T),!b){p=g+(p.length>0?" "+p:p);continue}I=!1}const R=lv(E).join(":"),D=P?R+hh:R,F=D+b;if(d.includes(F))continue;d.push(F);const B=c(b,I);for(let z=0;z<B.length;++z){const G=B[z];d.push(D+G)}p=g+(p.length>0?" "+p:p)}return p};function fv(){let r=0,o,i,l="";for(;r<arguments.length;)(o=arguments[r++])&&(i=mh(o))&&(l&&(l+=" "),l+=i);return l}const mh=r=>{if(typeof r=="string")return r;let o,i="";for(let l=0;l<r.length;l++)r[l]&&(o=mh(r[l]))&&(i&&(i+=" "),i+=o);return i};function pv(r,...o){let i,l,c,d=m;function m(x){const g=o.reduce((E,P)=>P(E),r());return i=uv(g),l=i.cache.get,c=i.cache.set,d=p,p(x)}function p(x){const g=l(x);if(g)return g;const E=dv(x,i);return c(x,E),E}return function(){return d(fv.apply(null,arguments))}}const Le=r=>{const o=i=>i[r]||[];return o.isThemeGetter=!0,o},gh=/^\[(?:([a-z-]+):)?(.+)\]$/i,hv=/^\d+\/\d+$/,mv=new Set(["px","full","screen"]),gv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yv=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=r=>Oo(r)||mv.has(r)||hv.test(r),ir=r=>Ko(r,"length",jv),Oo=r=>!!r&&!Number.isNaN(Number(r)),yu=r=>Ko(r,"number",Oo),Is=r=>!!r&&Number.isInteger(Number(r)),Sv=r=>r.endsWith("%")&&Oo(r.slice(0,-1)),me=r=>gh.test(r),ar=r=>gv.test(r),bv=new Set(["length","size","percentage"]),kv=r=>Ko(r,bv,yh),Cv=r=>Ko(r,"position",yh),Ev=new Set(["image","url"]),Nv=r=>Ko(r,Ev,Mv),Pv=r=>Ko(r,"",Rv),As=()=>!0,Ko=(r,o,i)=>{const l=gh.exec(r);return l?l[1]?typeof o=="string"?l[1]===o:o.has(l[1]):i(l[2]):!1},jv=r=>yv.test(r)&&!vv.test(r),yh=()=>!1,Rv=r=>wv.test(r),Mv=r=>xv.test(r),Tv=()=>{const r=Le("colors"),o=Le("spacing"),i=Le("blur"),l=Le("brightness"),c=Le("borderColor"),d=Le("borderRadius"),m=Le("borderSpacing"),p=Le("borderWidth"),x=Le("contrast"),g=Le("grayscale"),E=Le("hueRotate"),P=Le("invert"),T=Le("gap"),v=Le("gradientColorStops"),I=Le("gradientColorStopPositions"),b=Le("inset"),R=Le("margin"),D=Le("opacity"),F=Le("padding"),B=Le("saturate"),z=Le("scale"),G=Le("sepia"),ee=Le("skew"),$=Le("space"),X=Le("translate"),he=()=>["auto","contain","none"],ye=()=>["auto","hidden","clip","visible","scroll"],Pe=()=>["auto",me,o],ae=()=>[me,o],De=()=>["",Tn,ir],Te=()=>["auto",Oo,me],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Oe=()=>["solid","dashed","dotted","double","none"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",me],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[Oo,me];return{cacheSize:500,separator:":",theme:{colors:[As],spacing:[Tn,ir],blur:["none","",ar,me],brightness:N(),borderColor:[r],borderRadius:["none","","full",ar,me],borderSpacing:ae(),borderWidth:De(),contrast:N(),grayscale:W(),hueRotate:N(),invert:W(),gap:ae(),gradientColorStops:[r],gradientColorStopPositions:[Sv,ir],inset:Pe(),margin:Pe(),opacity:N(),padding:ae(),saturate:N(),scale:N(),sepia:W(),skew:N(),space:ae(),translate:ae()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[ar]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Be(),me]}],overflow:[{overflow:ye()}],"overflow-x":[{"overflow-x":ye()}],"overflow-y":[{"overflow-y":ye()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Is,me]}],basis:[{basis:Pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",Is,me]}],"grid-cols":[{"grid-cols":[As]}],"col-start-end":[{col:["auto",{span:["full",Is,me]},me]}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":[As]}],"row-start-end":[{row:["auto",{span:[Is,me]},me]}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[F]}],px:[{px:[F]}],py:[{py:[F]}],ps:[{ps:[F]}],pe:[{pe:[F]}],pt:[{pt:[F]}],pr:[{pr:[F]}],pb:[{pb:[F]}],pl:[{pl:[F]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,o]}],"min-w":[{"min-w":[me,o,"min","max","fit"]}],"max-w":[{"max-w":[me,o,"none","full","min","max","fit","prose",{screen:[ar]},ar]}],h:[{h:[me,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,o,"auto","min","max","fit"]}],"font-size":[{text:["base",ar,ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yu]}],"font-family":[{font:[As]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",me]}],"line-clamp":[{"line-clamp":["none",Oo,yu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[D]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,ir]}],"underline-offset":[{"underline-offset":["auto",Tn,me]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ae()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[D]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Be(),Cv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",kv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Nv]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[I]}],"gradient-via-pos":[{via:[I]}],"gradient-to-pos":[{to:[I]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[D]}],"border-style":[{border:[...Oe(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[D]}],"divide-style":[{divide:Oe()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...Oe()]}],"outline-offset":[{"outline-offset":[Tn,me]}],"outline-w":[{outline:[Tn,ir]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:De()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[D]}],"ring-offset-w":[{"ring-offset":[Tn,ir]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",ar,Pv]}],"shadow-color":[{shadow:[As]}],opacity:[{opacity:[D]}],"mix-blend":[{"mix-blend":[...xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[x]}],"drop-shadow":[{"drop-shadow":["","none",ar,me]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[E]}],invert:[{invert:[P]}],saturate:[{saturate:[B]}],sepia:[{sepia:[G]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[x]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E]}],"backdrop-invert":[{"backdrop-invert":[P]}],"backdrop-opacity":[{"backdrop-opacity":[D]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[Is,me]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[ee]}],"skew-y":[{"skew-y":[ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ae()}],"scroll-mx":[{"scroll-mx":ae()}],"scroll-my":[{"scroll-my":ae()}],"scroll-ms":[{"scroll-ms":ae()}],"scroll-me":[{"scroll-me":ae()}],"scroll-mt":[{"scroll-mt":ae()}],"scroll-mr":[{"scroll-mr":ae()}],"scroll-mb":[{"scroll-mb":ae()}],"scroll-ml":[{"scroll-ml":ae()}],"scroll-p":[{"scroll-p":ae()}],"scroll-px":[{"scroll-px":ae()}],"scroll-py":[{"scroll-py":ae()}],"scroll-ps":[{"scroll-ps":ae()}],"scroll-pe":[{"scroll-pe":ae()}],"scroll-pt":[{"scroll-pt":ae()}],"scroll-pr":[{"scroll-pr":ae()}],"scroll-pb":[{"scroll-pb":ae()}],"scroll-pl":[{"scroll-pl":ae()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Tn,ir,yu]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Ov=pv(Tv);function Ee(...r){return Ov(fh(r))}/**
40
+ `+u.stack}return{value:e,source:t,stack:a,digest:null}}function Il(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Al(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Ig=typeof WeakMap=="function"?WeakMap:Map;function ef(e,t,n){n=jn(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){qi||(qi=!0,Xl=s),Al(e,t)},n}function tf(e,t,n){n=jn(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var a=t.value;n.payload=function(){return s(a)},n.callback=function(){Al(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Al(e,t),typeof s!="function"&&(er===null?er=new Set([this]):er.add(this));var f=t.stack;this.componentDidCatch(t.value,{componentStack:f!==null?f:""})}),n}function nf(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Ig;var a=new Set;s.set(t,a)}else a=s.get(t),a===void 0&&(a=new Set,s.set(t,a));a.has(n)||(a.add(n),e=qg.bind(null,e,t,n),t.then(e,e))}function rf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function of(e,t,n,s,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=jn(-1,1),t.tag=2,Zn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Ag=_.ReactCurrentOwner,St=!1;function pt(e,t,n,s){t.child=e===null?Cd(t,null,n,s):xo(t,e.child,n,s)}function sf(e,t,n,s,a){n=n.render;var u=t.ref;return bo(t,a),s=Pl(e,t,n,s,u,a),n=jl(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Ue&&n&&cl(t),t.flags|=1,pt(e,t,s,a),t.child)}function af(e,t,n,s,a){if(e===null){var u=n.type;return typeof u=="function"&&!ou(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,lf(e,t,u,s,a)):(e=ta(n.type,null,s,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&a)===0){var f=u.memoizedProps;if(n=n.compare,n=n!==null?n:ps,n(f,s)&&e.ref===t.ref)return Rn(e,t,a)}return t.flags|=1,e=or(u,s),e.ref=t.ref,e.return=t,t.child=e}function lf(e,t,n,s,a){if(e!==null){var u=e.memoizedProps;if(ps(u,s)&&e.ref===t.ref)if(St=!1,t.pendingProps=s=u,(e.lanes&a)!==0)(e.flags&131072)!==0&&(St=!0);else return t.lanes=e.lanes,Rn(e,t,a)}return Ll(e,t,n,s,a)}function uf(e,t,n){var s=t.pendingProps,a=s.children,u=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(No,Tt),Tt|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ze(No,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=u!==null?u.baseLanes:n,ze(No,Tt),Tt|=s}else u!==null?(s=u.baseLanes|n,t.memoizedState=null):s=n,ze(No,Tt),Tt|=s;return pt(e,t,a,n),t.child}function cf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ll(e,t,n,s,a){var u=xt(n)?Nr:it.current;return u=go(t,u),bo(t,a),n=Pl(e,t,n,s,u,a),s=jl(),e!==null&&!St?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Rn(e,t,a)):(Ue&&s&&cl(t),t.flags|=1,pt(e,t,n,a),t.child)}function df(e,t,n,s,a){if(xt(n)){var u=!0;Ni(t)}else u=!1;if(bo(t,a),t.stateNode===null)Qi(e,t),Zd(t,n,s),zl(t,n,s,a),s=!0;else if(e===null){var f=t.stateNode,y=t.memoizedProps;f.props=y;var S=f.context,O=n.contextType;typeof O=="object"&&O!==null?O=At(O):(O=xt(n)?Nr:it.current,O=go(t,O));var L=n.getDerivedStateFromProps,U=typeof L=="function"||typeof f.getSnapshotBeforeUpdate=="function";U||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==s||S!==O)&&Jd(t,f,s,O),Xn=!1;var A=t.memoizedState;f.state=A,Ii(t,s,f,a),S=t.memoizedState,y!==s||A!==S||wt.current||Xn?(typeof L=="function"&&(_l(t,n,L,s),S=t.memoizedState),(y=Xn||Xd(t,n,y,s,A,S,O))?(U||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=S),f.props=s,f.state=S,f.context=O,s=y):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,Nd(e,t),y=t.memoizedProps,O=t.type===t.elementType?y:Gt(t.type,y),f.props=O,U=t.pendingProps,A=f.context,S=n.contextType,typeof S=="object"&&S!==null?S=At(S):(S=xt(n)?Nr:it.current,S=go(t,S));var Z=n.getDerivedStateFromProps;(L=typeof Z=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==U||A!==S)&&Jd(t,f,s,S),Xn=!1,A=t.memoizedState,f.state=A,Ii(t,s,f,a);var ne=t.memoizedState;y!==U||A!==ne||wt.current||Xn?(typeof Z=="function"&&(_l(t,n,Z,s),ne=t.memoizedState),(O=Xn||Xd(t,n,O,s,A,ne,S)||!1)?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,ne,S),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,ne,S)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=ne),f.props=s,f.state=ne,f.context=S,s=O):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),s=!1)}return Dl(e,t,n,s,u,a)}function Dl(e,t,n,s,a,u){cf(e,t);var f=(t.flags&128)!==0;if(!s&&!f)return a&&md(t,n,!1),Rn(e,t,u);s=t.stateNode,Ag.current=t;var y=f&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&f?(t.child=xo(t,e.child,null,u),t.child=xo(t,null,y,u)):pt(e,t,y,u),t.memoizedState=s.state,a&&md(t,n,!0),t.child}function ff(e){var t=e.stateNode;t.pendingContext?pd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pd(e,t.context,!1),Sl(e,t.containerInfo)}function pf(e,t,n,s,a){return wo(),hl(a),t.flags|=256,pt(e,t,n,s),t.child}var Fl={dehydrated:null,treeContext:null,retryLane:0};function Ul(e){return{baseLanes:e,cachePool:null,transitions:null}}function hf(e,t,n){var s=t.pendingProps,a=We.current,u=!1,f=(t.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:(a&2)!==0),y?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),ze(We,a&1),e===null)return pl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(f=s.children,e=s.fallback,u?(s=t.mode,u=t.child,f={mode:"hidden",children:f},(s&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=f):u=na(f,s,0,null),e=Ar(e,s,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Ul(n),t.memoizedState=Fl,e):Bl(t,f));if(a=e.memoizedState,a!==null&&(y=a.dehydrated,y!==null))return Lg(e,t,f,s,y,a,n);if(u){u=s.fallback,f=t.mode,a=e.child,y=a.sibling;var S={mode:"hidden",children:s.children};return(f&1)===0&&t.child!==a?(s=t.child,s.childLanes=0,s.pendingProps=S,t.deletions=null):(s=or(a,S),s.subtreeFlags=a.subtreeFlags&14680064),y!==null?u=or(y,u):(u=Ar(u,f,n,null),u.flags|=2),u.return=t,s.return=t,s.sibling=u,t.child=s,s=u,u=t.child,f=e.child.memoizedState,f=f===null?Ul(n):{baseLanes:f.baseLanes|n,cachePool:null,transitions:f.transitions},u.memoizedState=f,u.childLanes=e.childLanes&~n,t.memoizedState=Fl,s}return u=e.child,e=u.sibling,s=or(u,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Bl(e,t){return t=na({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vi(e,t,n,s){return s!==null&&hl(s),xo(t,e.child,null,n),e=Bl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lg(e,t,n,s,a,u,f){if(n)return t.flags&256?(t.flags&=-257,s=Il(Error(i(422))),Vi(e,t,f,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=s.fallback,a=t.mode,s=na({mode:"visible",children:s.children},a,0,null),u=Ar(u,a,f,null),u.flags|=2,s.return=t,u.return=t,s.sibling=u,t.child=s,(t.mode&1)!==0&&xo(t,e.child,null,f),t.child.memoizedState=Ul(f),t.memoizedState=Fl,u);if((t.mode&1)===0)return Vi(e,t,f,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var y=s.dgst;return s=y,u=Error(i(419)),s=Il(u,s,void 0),Vi(e,t,f,s)}if(y=(f&e.childLanes)!==0,St||y){if(s=et,s!==null){switch(f&-f){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(s.suspendedLanes|f))!==0?0:a,a!==0&&a!==u.retryLane&&(u.retryLane=a,Pn(e,a),Xt(s,e,a,-1))}return ru(),s=Il(Error(i(421))),Vi(e,t,f,s)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=Yg.bind(null,e),a._reactRetry=t,null):(e=u.treeContext,Mt=Kn(a.nextSibling),Rt=t,Ue=!0,Kt=null,e!==null&&(zt[It++]=En,zt[It++]=Nn,zt[It++]=Pr,En=e.id,Nn=e.overflow,Pr=t),t=Bl(t,s.children),t.flags|=4096,t)}function mf(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),vl(e.return,t,n)}function Wl(e,t,n,s,a){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:a}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=s,u.tail=n,u.tailMode=a)}function gf(e,t,n){var s=t.pendingProps,a=s.revealOrder,u=s.tail;if(pt(e,t,s.children,n),s=We.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mf(e,n,t);else if(e.tag===19)mf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(ze(We,s),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Ai(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Wl(t,!1,a,n,u);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Ai(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Wl(t,!0,n,null,u);break;case"together":Wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Or|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dg(e,t,n){switch(t.tag){case 3:ff(t),wo();break;case 5:Rd(t);break;case 1:xt(t.type)&&Ni(t);break;case 4:Sl(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;ze(Oi,s._currentValue),s._currentValue=a;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(ze(We,We.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?hf(e,t,n):(ze(We,We.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);ze(We,We.current&1);break;case 19:if(s=(n&t.childLanes)!==0,(e.flags&128)!==0){if(s)return gf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ze(We,We.current),s)break;return null;case 22:case 23:return t.lanes=0,uf(e,t,n)}return Rn(e,t,n)}var yf,Vl,vf,wf;yf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Vl=function(){},vf=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Mr(fn.current);var u=null;switch(n){case"input":a=Go(e,a),s=Go(e,s),u=[];break;case"select":a=Q({},a,{value:void 0}),s=Q({},s,{value:void 0}),u=[];break;case"textarea":a=to(e,a),s=to(e,s),u=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=ki)}an(n,s);var f;n=null;for(O in a)if(!s.hasOwnProperty(O)&&a.hasOwnProperty(O)&&a[O]!=null)if(O==="style"){var y=a[O];for(f in y)y.hasOwnProperty(f)&&(n||(n={}),n[f]="")}else O!=="dangerouslySetInnerHTML"&&O!=="children"&&O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(c.hasOwnProperty(O)?u||(u=[]):(u=u||[]).push(O,null));for(O in s){var S=s[O];if(y=a!=null?a[O]:void 0,s.hasOwnProperty(O)&&S!==y&&(S!=null||y!=null))if(O==="style")if(y){for(f in y)!y.hasOwnProperty(f)||S&&S.hasOwnProperty(f)||(n||(n={}),n[f]="");for(f in S)S.hasOwnProperty(f)&&y[f]!==S[f]&&(n||(n={}),n[f]=S[f])}else n||(u||(u=[]),u.push(O,n)),n=S;else O==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,y=y?y.__html:void 0,S!=null&&y!==S&&(u=u||[]).push(O,S)):O==="children"?typeof S!="string"&&typeof S!="number"||(u=u||[]).push(O,""+S):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&(c.hasOwnProperty(O)?(S!=null&&O==="onScroll"&&Ie("scroll",e),u||y===S||(u=[])):(u=u||[]).push(O,S))}n&&(u=u||[]).push("style",n);var O=u;(t.updateQueue=O)&&(t.flags|=4)}},wf=function(e,t,n,s){n!==s&&(t.flags|=4)};function js(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags&14680064,s|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Fg(e,t,n){var s=t.pendingProps;switch(dl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return xt(t.type)&&Ei(),lt(t),null;case 3:return s=t.stateNode,ko(),Ae(wt),Ae(it),Cl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Mi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Kt!==null&&(eu(Kt),Kt=null))),Vl(e,t),lt(t),null;case 5:bl(t);var a=Mr(ks.current);if(n=t.type,e!==null&&t.stateNode!=null)vf(e,t,n,s,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(i(166));return lt(t),null}if(e=Mr(fn.current),Mi(t)){s=t.stateNode,n=t.type;var u=t.memoizedProps;switch(s[dn]=t,s[vs]=u,e=(t.mode&1)!==0,n){case"dialog":Ie("cancel",s),Ie("close",s);break;case"iframe":case"object":case"embed":Ie("load",s);break;case"video":case"audio":for(a=0;a<ms.length;a++)Ie(ms[a],s);break;case"source":Ie("error",s);break;case"img":case"image":case"link":Ie("error",s),Ie("load",s);break;case"details":Ie("toggle",s);break;case"input":qs(s,u),Ie("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!u.multiple},Ie("invalid",s);break;case"textarea":rn(s,u),Ie("invalid",s)}an(n,u),a=null;for(var f in u)if(u.hasOwnProperty(f)){var y=u[f];f==="children"?typeof y=="string"?s.textContent!==y&&(u.suppressHydrationWarning!==!0&&bi(s.textContent,y,e),a=["children",y]):typeof y=="number"&&s.textContent!==""+y&&(u.suppressHydrationWarning!==!0&&bi(s.textContent,y,e),a=["children",""+y]):c.hasOwnProperty(f)&&y!=null&&f==="onScroll"&&Ie("scroll",s)}switch(n){case"input":nn(s),eo(s,u,!0);break;case"textarea":nn(s),Xs(s);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(s.onclick=ki)}s=a,t.updateQueue=s,s!==null&&(t.flags|=4)}else{f=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=dt(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=f.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=f.createElement(n,{is:s.is}):(e=f.createElement(n),n==="select"&&(f=e,s.multiple?f.multiple=!0:s.size&&(f.size=s.size))):e=f.createElementNS(e,n),e[dn]=t,e[vs]=s,yf(e,t,!1,!1),t.stateNode=e;e:{switch(f=Zo(n,s),n){case"dialog":Ie("cancel",e),Ie("close",e),a=s;break;case"iframe":case"object":case"embed":Ie("load",e),a=s;break;case"video":case"audio":for(a=0;a<ms.length;a++)Ie(ms[a],e);a=s;break;case"source":Ie("error",e),a=s;break;case"img":case"image":case"link":Ie("error",e),Ie("load",e),a=s;break;case"details":Ie("toggle",e),a=s;break;case"input":qs(e,s),a=Go(e,s),Ie("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=Q({},s,{value:void 0}),Ie("invalid",e);break;case"textarea":rn(e,s),a=to(e,s),Ie("invalid",e);break;default:a=s}an(n,a),y=a;for(u in y)if(y.hasOwnProperty(u)){var S=y[u];u==="style"?bn(e,S):u==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&Zs(e,S)):u==="children"?typeof S=="string"?(n!=="textarea"||S!=="")&&sn(e,S):typeof S=="number"&&sn(e,""+S):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?S!=null&&u==="onScroll"&&Ie("scroll",e):S!=null&&B(e,u,S,f))}switch(n){case"input":nn(e),eo(e,s,!1);break;case"textarea":nn(e),Xs(e);break;case"option":s.value!=null&&e.setAttribute("value",""+be(s.value));break;case"select":e.multiple=!!s.multiple,u=s.value,u!=null?_t(e,!!s.multiple,u,!1):s.defaultValue!=null&&_t(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=ki)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return lt(t),null;case 6:if(e&&t.stateNode!=null)wf(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(n=Mr(ks.current),Mr(fn.current),Mi(t)){if(s=t.stateNode,n=t.memoizedProps,s[dn]=t,(u=s.nodeValue!==n)&&(e=Rt,e!==null))switch(e.tag){case 3:bi(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&bi(s.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[dn]=t,t.stateNode=s}return lt(t),null;case 13:if(Ae(We),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ue&&Mt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Sd(),wo(),t.flags|=98560,u=!1;else if(u=Mi(t),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[dn]=t}else wo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),u=!1}else Kt!==null&&(eu(Kt),Kt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(We.current&1)!==0?Ye===0&&(Ye=3):ru())),t.updateQueue!==null&&(t.flags|=4),lt(t),null);case 4:return ko(),Vl(e,t),e===null&&gs(t.stateNode.containerInfo),lt(t),null;case 10:return yl(t.type._context),lt(t),null;case 17:return xt(t.type)&&Ei(),lt(t),null;case 19:if(Ae(We),u=t.memoizedState,u===null)return lt(t),null;if(s=(t.flags&128)!==0,f=u.rendering,f===null)if(s)js(u,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Ai(e),f!==null){for(t.flags|=128,js(u,!1),s=f.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)u=n,e=s,u.flags&=14680066,f=u.alternate,f===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=f.childLanes,u.lanes=f.lanes,u.child=f.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=f.memoizedProps,u.memoizedState=f.memoizedState,u.updateQueue=f.updateQueue,u.type=f.type,e=f.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ze(We,We.current&1|2),t.child}e=e.sibling}u.tail!==null&&He()>Po&&(t.flags|=128,s=!0,js(u,!1),t.lanes=4194304)}else{if(!s)if(e=Ai(f),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),js(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Ue)return lt(t),null}else 2*He()-u.renderingStartTime>Po&&n!==1073741824&&(t.flags|=128,s=!0,js(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(n=u.last,n!==null?n.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=He(),t.sibling=null,n=We.current,ze(We,s?n&1|2:n&1),t):(lt(t),null);case 22:case 23:return nu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(Tt&1073741824)!==0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Ug(e,t){switch(dl(t),t.tag){case 1:return xt(t.type)&&Ei(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ko(),Ae(wt),Ae(it),Cl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return bl(t),null;case 13:if(Ae(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(We),null;case 4:return ko(),null;case 10:return yl(t.type._context),null;case 22:case 23:return nu(),null;case 24:return null;default:return null}}var $i=!1,ut=!1,Bg=typeof WeakSet=="function"?WeakSet:Set,J=null;function Eo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Qe(e,t,s)}else n.current=null}function Ql(e,t,n){try{n()}catch(s){Qe(e,t,s)}}var xf=!1;function Wg(e,t){if(nl=di,e=Xc(),Ga(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var a=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var f=0,y=-1,S=-1,O=0,L=0,U=e,A=null;t:for(;;){for(var Z;U!==n||a!==0&&U.nodeType!==3||(y=f+a),U!==u||s!==0&&U.nodeType!==3||(S=f+s),U.nodeType===3&&(f+=U.nodeValue.length),(Z=U.firstChild)!==null;)A=U,U=Z;for(;;){if(U===e)break t;if(A===n&&++O===a&&(y=f),A===u&&++L===s&&(S=f),(Z=U.nextSibling)!==null)break;U=A,A=U.parentNode}U=Z}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(rl={focusedElem:e,selectionRange:n},di=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var ne=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ne!==null){var re=ne.memoizedProps,Ke=ne.memoizedState,j=t.stateNode,C=j.getSnapshotBeforeUpdate(t.elementType===t.type?re:Gt(t.type,re),Ke);j.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var M=t.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(V){Qe(t,t.return,V)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return ne=xf,xf=!1,ne}function Rs(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&e)===e){var u=a.destroy;a.destroy=void 0,u!==void 0&&Ql(t,n,u)}a=a.next}while(a!==s)}}function Hi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function $l(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Sf(e){var t=e.alternate;t!==null&&(e.alternate=null,Sf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[vs],delete t[al],delete t[Cg],delete t[Eg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bf(e){return e.tag===5||e.tag===3||e.tag===4}function kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hl(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ki));else if(s!==4&&(e=e.child,e!==null))for(Hl(e,t,n),e=e.sibling;e!==null;)Hl(e,t,n),e=e.sibling}function Kl(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Kl(e,t,n),e=e.sibling;e!==null;)Kl(e,t,n),e=e.sibling}var ot=null,qt=!1;function Jn(e,t,n){for(n=n.child;n!==null;)Cf(e,t,n),n=n.sibling}function Cf(e,t,n){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(si,n)}catch{}switch(n.tag){case 5:ut||Eo(n,t);case 6:var s=ot,a=qt;ot=null,Jn(e,t,n),ot=s,qt=a,ot!==null&&(qt?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(qt?(e=ot,n=n.stateNode,e.nodeType===8?il(e.parentNode,n):e.nodeType===1&&il(e,n),as(e)):il(ot,n.stateNode));break;case 4:s=ot,a=qt,ot=n.stateNode.containerInfo,qt=!0,Jn(e,t,n),ot=s,qt=a;break;case 0:case 11:case 14:case 15:if(!ut&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var u=a,f=u.destroy;u=u.tag,f!==void 0&&((u&2)!==0||(u&4)!==0)&&Ql(n,t,f),a=a.next}while(a!==s)}Jn(e,t,n);break;case 1:if(!ut&&(Eo(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(y){Qe(n,t,y)}Jn(e,t,n);break;case 21:Jn(e,t,n);break;case 22:n.mode&1?(ut=(s=ut)||n.memoizedState!==null,Jn(e,t,n),ut=s):Jn(e,t,n);break;default:Jn(e,t,n)}}function Ef(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Bg),t.forEach(function(s){var a=Xg.bind(null,e,s);n.has(s)||(n.add(s),s.then(a,a))})}}function Yt(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var a=n[s];try{var u=e,f=t,y=f;e:for(;y!==null;){switch(y.tag){case 5:ot=y.stateNode,qt=!1;break e;case 3:ot=y.stateNode.containerInfo,qt=!0;break e;case 4:ot=y.stateNode.containerInfo,qt=!0;break e}y=y.return}if(ot===null)throw Error(i(160));Cf(u,f,a),ot=null,qt=!1;var S=a.alternate;S!==null&&(S.return=null),a.return=null}catch(O){Qe(a,t,O)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Nf(t,e),t=t.sibling}function Nf(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yt(t,e),hn(e),s&4){try{Rs(3,e,e.return),Hi(3,e)}catch(re){Qe(e,e.return,re)}try{Rs(5,e,e.return)}catch(re){Qe(e,e.return,re)}}break;case 1:Yt(t,e),hn(e),s&512&&n!==null&&Eo(n,n.return);break;case 5:if(Yt(t,e),hn(e),s&512&&n!==null&&Eo(n,n.return),e.flags&32){var a=e.stateNode;try{sn(a,"")}catch(re){Qe(e,e.return,re)}}if(s&4&&(a=e.stateNode,a!=null)){var u=e.memoizedProps,f=n!==null?n.memoizedProps:u,y=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{y==="input"&&u.type==="radio"&&u.name!=null&&qo(a,u),Zo(y,f);var O=Zo(y,u);for(f=0;f<S.length;f+=2){var L=S[f],U=S[f+1];L==="style"?bn(a,U):L==="dangerouslySetInnerHTML"?Zs(a,U):L==="children"?sn(a,U):B(a,L,U,O)}switch(y){case"input":Yo(a,u);break;case"textarea":Ys(a,u);break;case"select":var A=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!u.multiple;var Z=u.value;Z!=null?_t(a,!!u.multiple,Z,!1):A!==!!u.multiple&&(u.defaultValue!=null?_t(a,!!u.multiple,u.defaultValue,!0):_t(a,!!u.multiple,u.multiple?[]:"",!1))}a[vs]=u}catch(re){Qe(e,e.return,re)}}break;case 6:if(Yt(t,e),hn(e),s&4){if(e.stateNode===null)throw Error(i(162));a=e.stateNode,u=e.memoizedProps;try{a.nodeValue=u}catch(re){Qe(e,e.return,re)}}break;case 3:if(Yt(t,e),hn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{as(t.containerInfo)}catch(re){Qe(e,e.return,re)}break;case 4:Yt(t,e),hn(e);break;case 13:Yt(t,e),hn(e),a=e.child,a.flags&8192&&(u=a.memoizedState!==null,a.stateNode.isHidden=u,!u||a.alternate!==null&&a.alternate.memoizedState!==null||(Yl=He())),s&4&&Ef(e);break;case 22:if(L=n!==null&&n.memoizedState!==null,e.mode&1?(ut=(O=ut)||L,Yt(t,e),ut=O):Yt(t,e),hn(e),s&8192){if(O=e.memoizedState!==null,(e.stateNode.isHidden=O)&&!L&&(e.mode&1)!==0)for(J=e,L=e.child;L!==null;){for(U=J=L;J!==null;){switch(A=J,Z=A.child,A.tag){case 0:case 11:case 14:case 15:Rs(4,A,A.return);break;case 1:Eo(A,A.return);var ne=A.stateNode;if(typeof ne.componentWillUnmount=="function"){s=A,n=A.return;try{t=s,ne.props=t.memoizedProps,ne.state=t.memoizedState,ne.componentWillUnmount()}catch(re){Qe(s,n,re)}}break;case 5:Eo(A,A.return);break;case 22:if(A.memoizedState!==null){Rf(U);continue}}Z!==null?(Z.return=A,J=Z):Rf(U)}L=L.sibling}e:for(L=null,U=e;;){if(U.tag===5){if(L===null){L=U;try{a=U.stateNode,O?(u=a.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(y=U.stateNode,S=U.memoizedProps.style,f=S!=null&&S.hasOwnProperty("display")?S.display:null,y.style.display=ro("display",f))}catch(re){Qe(e,e.return,re)}}}else if(U.tag===6){if(L===null)try{U.stateNode.nodeValue=O?"":U.memoizedProps}catch(re){Qe(e,e.return,re)}}else if((U.tag!==22&&U.tag!==23||U.memoizedState===null||U===e)&&U.child!==null){U.child.return=U,U=U.child;continue}if(U===e)break e;for(;U.sibling===null;){if(U.return===null||U.return===e)break e;L===U&&(L=null),U=U.return}L===U&&(L=null),U.sibling.return=U.return,U=U.sibling}}break;case 19:Yt(t,e),hn(e),s&4&&Ef(e);break;case 21:break;default:Yt(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(bf(n)){var s=n;break e}n=n.return}throw Error(i(160))}switch(s.tag){case 5:var a=s.stateNode;s.flags&32&&(sn(a,""),s.flags&=-33);var u=kf(e);Kl(e,u,a);break;case 3:case 4:var f=s.stateNode.containerInfo,y=kf(e);Hl(e,y,f);break;default:throw Error(i(161))}}catch(S){Qe(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vg(e,t,n){J=e,Pf(e)}function Pf(e,t,n){for(var s=(e.mode&1)!==0;J!==null;){var a=J,u=a.child;if(a.tag===22&&s){var f=a.memoizedState!==null||$i;if(!f){var y=a.alternate,S=y!==null&&y.memoizedState!==null||ut;y=$i;var O=ut;if($i=f,(ut=S)&&!O)for(J=a;J!==null;)f=J,S=f.child,f.tag===22&&f.memoizedState!==null?Mf(a):S!==null?(S.return=f,J=S):Mf(a);for(;u!==null;)J=u,Pf(u),u=u.sibling;J=a,$i=y,ut=O}jf(e)}else(a.subtreeFlags&8772)!==0&&u!==null?(u.return=a,J=u):jf(e)}}function jf(e){for(;J!==null;){var t=J;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:ut||Hi(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!ut)if(n===null)s.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Gt(t.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&jd(t,u,s);break;case 3:var f=t.updateQueue;if(f!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}jd(t,f,n)}break;case 5:var y=t.stateNode;if(n===null&&t.flags&4){n=y;var S=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&n.focus();break;case"img":S.src&&(n.src=S.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var O=t.alternate;if(O!==null){var L=O.memoizedState;if(L!==null){var U=L.dehydrated;U!==null&&as(U)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||t.flags&512&&$l(t)}catch(A){Qe(t,t.return,A)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function Rf(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function Mf(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Hi(4,t)}catch(S){Qe(t,n,S)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var a=t.return;try{s.componentDidMount()}catch(S){Qe(t,a,S)}}var u=t.return;try{$l(t)}catch(S){Qe(t,u,S)}break;case 5:var f=t.return;try{$l(t)}catch(S){Qe(t,f,S)}}}catch(S){Qe(t,t.return,S)}if(t===e){J=null;break}var y=t.sibling;if(y!==null){y.return=t.return,J=y;break}J=t.return}}var Qg=Math.ceil,Ki=_.ReactCurrentDispatcher,Gl=_.ReactCurrentOwner,Dt=_.ReactCurrentBatchConfig,ke=0,et=null,Ge=null,st=0,Tt=0,No=Gn(0),Ye=0,Ms=null,Or=0,Gi=0,ql=0,Ts=null,bt=null,Yl=0,Po=1/0,Mn=null,qi=!1,Xl=null,er=null,Yi=!1,tr=null,Xi=0,Os=0,Zl=null,Zi=-1,Ji=0;function ht(){return(ke&6)!==0?He():Zi!==-1?Zi:Zi=He()}function nr(e){return(e.mode&1)===0?1:(ke&2)!==0&&st!==0?st&-st:Pg.transition!==null?(Ji===0&&(Ji=bc()),Ji):(e=Me,e!==0||(e=window.event,e=e===void 0?16:Tc(e.type)),e)}function Xt(e,t,n,s){if(50<Os)throw Os=0,Zl=null,Error(i(185));ns(e,n,s),((ke&2)===0||e!==et)&&(e===et&&((ke&2)===0&&(Gi|=n),Ye===4&&rr(e,st)),kt(e,s),n===1&&ke===0&&(t.mode&1)===0&&(Po=He()+500,Pi&&Yn()))}function kt(e,t){var n=e.callbackNode;Pm(e,t);var s=li(e,e===et?st:0);if(s===0)n!==null&&wc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&wc(n),t===1)e.tag===0?Ng(Of.bind(null,e)):gd(Of.bind(null,e)),bg(function(){(ke&6)===0&&Yn()}),n=null;else{switch(kc(s)){case 1:n=Ta;break;case 4:n=xc;break;case 16:n=oi;break;case 536870912:n=Sc;break;default:n=oi}n=Uf(n,Tf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Tf(e,t){if(Zi=-1,Ji=0,(ke&6)!==0)throw Error(i(327));var n=e.callbackNode;if(jo()&&e.callbackNode!==n)return null;var s=li(e,e===et?st:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=ea(e,s);else{t=s;var a=ke;ke|=2;var u=zf();(et!==e||st!==t)&&(Mn=null,Po=He()+500,zr(e,t));do try{Kg();break}catch(y){_f(e,y)}while(!0);gl(),Ki.current=u,ke=a,Ge!==null?t=0:(et=null,st=0,t=Ye)}if(t!==0){if(t===2&&(a=Oa(e),a!==0&&(s=a,t=Jl(e,a))),t===1)throw n=Ms,zr(e,0),rr(e,s),kt(e,He()),n;if(t===6)rr(e,s);else{if(a=e.current.alternate,(s&30)===0&&!$g(a)&&(t=ea(e,s),t===2&&(u=Oa(e),u!==0&&(s=u,t=Jl(e,u))),t===1))throw n=Ms,zr(e,0),rr(e,s),kt(e,He()),n;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:Ir(e,bt,Mn);break;case 3:if(rr(e,s),(s&130023424)===s&&(t=Yl+500-He(),10<t)){if(li(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){ht(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=sl(Ir.bind(null,e,bt,Mn),t);break}Ir(e,bt,Mn);break;case 4:if(rr(e,s),(s&4194240)===s)break;for(t=e.eventTimes,a=-1;0<s;){var f=31-$t(s);u=1<<f,f=t[f],f>a&&(a=f),s&=~u}if(s=a,s=He()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Qg(s/1960))-s,10<s){e.timeoutHandle=sl(Ir.bind(null,e,bt,Mn),s);break}Ir(e,bt,Mn);break;case 5:Ir(e,bt,Mn);break;default:throw Error(i(329))}}}return kt(e,He()),e.callbackNode===n?Tf.bind(null,e):null}function Jl(e,t){var n=Ts;return e.current.memoizedState.isDehydrated&&(zr(e,t).flags|=256),e=ea(e,t),e!==2&&(t=bt,bt=n,t!==null&&eu(t)),e}function eu(e){bt===null?bt=e:bt.push.apply(bt,e)}function $g(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var a=n[s],u=a.getSnapshot;a=a.value;try{if(!Ht(u(),a))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rr(e,t){for(t&=~ql,t&=~Gi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$t(t),s=1<<n;e[n]=-1,t&=~s}}function Of(e){if((ke&6)!==0)throw Error(i(327));jo();var t=li(e,0);if((t&1)===0)return kt(e,He()),null;var n=ea(e,t);if(e.tag!==0&&n===2){var s=Oa(e);s!==0&&(t=s,n=Jl(e,s))}if(n===1)throw n=Ms,zr(e,0),rr(e,t),kt(e,He()),n;if(n===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ir(e,bt,Mn),kt(e,He()),null}function tu(e,t){var n=ke;ke|=1;try{return e(t)}finally{ke=n,ke===0&&(Po=He()+500,Pi&&Yn())}}function _r(e){tr!==null&&tr.tag===0&&(ke&6)===0&&jo();var t=ke;ke|=1;var n=Dt.transition,s=Me;try{if(Dt.transition=null,Me=1,e)return e()}finally{Me=s,Dt.transition=n,ke=t,(ke&6)===0&&Yn()}}function nu(){Tt=No.current,Ae(No)}function zr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Sg(n)),Ge!==null)for(n=Ge.return;n!==null;){var s=n;switch(dl(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Ei();break;case 3:ko(),Ae(wt),Ae(it),Cl();break;case 5:bl(s);break;case 4:ko();break;case 13:Ae(We);break;case 19:Ae(We);break;case 10:yl(s.type._context);break;case 22:case 23:nu()}n=n.return}if(et=e,Ge=e=or(e.current,null),st=Tt=t,Ye=0,Ms=null,ql=Gi=Or=0,bt=Ts=null,Rr!==null){for(t=0;t<Rr.length;t++)if(n=Rr[t],s=n.interleaved,s!==null){n.interleaved=null;var a=s.next,u=n.pending;if(u!==null){var f=u.next;u.next=a,s.next=f}n.pending=s}Rr=null}return e}function _f(e,t){do{var n=Ge;try{if(gl(),Li.current=Bi,Di){for(var s=Ve.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Di=!1}if(Tr=0,Je=qe=Ve=null,Cs=!1,Es=0,Gl.current=null,n===null||n.return===null){Ye=1,Ms=t,Ge=null;break}e:{var u=e,f=n.return,y=n,S=t;if(t=st,y.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var O=S,L=y,U=L.tag;if((L.mode&1)===0&&(U===0||U===11||U===15)){var A=L.alternate;A?(L.updateQueue=A.updateQueue,L.memoizedState=A.memoizedState,L.lanes=A.lanes):(L.updateQueue=null,L.memoizedState=null)}var Z=rf(f);if(Z!==null){Z.flags&=-257,of(Z,f,y,u,t),Z.mode&1&&nf(u,O,t),t=Z,S=O;var ne=t.updateQueue;if(ne===null){var re=new Set;re.add(S),t.updateQueue=re}else ne.add(S);break e}else{if((t&1)===0){nf(u,O,t),ru();break e}S=Error(i(426))}}else if(Ue&&y.mode&1){var Ke=rf(f);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),of(Ke,f,y,u,t),hl(Co(S,y));break e}}u=S=Co(S,y),Ye!==4&&(Ye=2),Ts===null?Ts=[u]:Ts.push(u),u=f;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var j=ef(u,S,t);Pd(u,j);break e;case 1:y=S;var C=u.type,M=u.stateNode;if((u.flags&128)===0&&(typeof C.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(er===null||!er.has(M)))){u.flags|=65536,t&=-t,u.lanes|=t;var V=tf(u,y,t);Pd(u,V);break e}}u=u.return}while(u!==null)}Af(n)}catch(se){t=se,Ge===n&&n!==null&&(Ge=n=n.return);continue}break}while(!0)}function zf(){var e=Ki.current;return Ki.current=Bi,e===null?Bi:e}function ru(){(Ye===0||Ye===3||Ye===2)&&(Ye=4),et===null||(Or&268435455)===0&&(Gi&268435455)===0||rr(et,st)}function ea(e,t){var n=ke;ke|=2;var s=zf();(et!==e||st!==t)&&(Mn=null,zr(e,t));do try{Hg();break}catch(a){_f(e,a)}while(!0);if(gl(),ke=n,Ki.current=s,Ge!==null)throw Error(i(261));return et=null,st=0,Ye}function Hg(){for(;Ge!==null;)If(Ge)}function Kg(){for(;Ge!==null&&!vm();)If(Ge)}function If(e){var t=Ff(e.alternate,e,Tt);e.memoizedProps=e.pendingProps,t===null?Af(e):Ge=t,Gl.current=null}function Af(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=Fg(n,t,Tt),n!==null){Ge=n;return}}else{if(n=Ug(n,t),n!==null){n.flags&=32767,Ge=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ye=6,Ge=null;return}}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);Ye===0&&(Ye=5)}function Ir(e,t,n){var s=Me,a=Dt.transition;try{Dt.transition=null,Me=1,Gg(e,t,n,s)}finally{Dt.transition=a,Me=s}return null}function Gg(e,t,n,s){do jo();while(tr!==null);if((ke&6)!==0)throw Error(i(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(jm(e,u),e===et&&(Ge=et=null,st=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Yi||(Yi=!0,Uf(oi,function(){return jo(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=Dt.transition,Dt.transition=null;var f=Me;Me=1;var y=ke;ke|=4,Gl.current=null,Wg(e,n),Nf(n,e),hg(rl),di=!!nl,rl=nl=null,e.current=n,Vg(n),wm(),ke=y,Me=f,Dt.transition=u}else e.current=n;if(Yi&&(Yi=!1,tr=e,Xi=a),u=e.pendingLanes,u===0&&(er=null),bm(n.stateNode),kt(e,He()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],s(a.value,{componentStack:a.stack,digest:a.digest});if(qi)throw qi=!1,e=Xl,Xl=null,e;return(Xi&1)!==0&&e.tag!==0&&jo(),u=e.pendingLanes,(u&1)!==0?e===Zl?Os++:(Os=0,Zl=e):Os=0,Yn(),null}function jo(){if(tr!==null){var e=kc(Xi),t=Dt.transition,n=Me;try{if(Dt.transition=null,Me=16>e?16:e,tr===null)var s=!1;else{if(e=tr,tr=null,Xi=0,(ke&6)!==0)throw Error(i(331));var a=ke;for(ke|=4,J=e.current;J!==null;){var u=J,f=u.child;if((J.flags&16)!==0){var y=u.deletions;if(y!==null){for(var S=0;S<y.length;S++){var O=y[S];for(J=O;J!==null;){var L=J;switch(L.tag){case 0:case 11:case 15:Rs(8,L,u)}var U=L.child;if(U!==null)U.return=L,J=U;else for(;J!==null;){L=J;var A=L.sibling,Z=L.return;if(Sf(L),L===O){J=null;break}if(A!==null){A.return=Z,J=A;break}J=Z}}}var ne=u.alternate;if(ne!==null){var re=ne.child;if(re!==null){ne.child=null;do{var Ke=re.sibling;re.sibling=null,re=Ke}while(re!==null)}}J=u}}if((u.subtreeFlags&2064)!==0&&f!==null)f.return=u,J=f;else e:for(;J!==null;){if(u=J,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Rs(9,u,u.return)}var j=u.sibling;if(j!==null){j.return=u.return,J=j;break e}J=u.return}}var C=e.current;for(J=C;J!==null;){f=J;var M=f.child;if((f.subtreeFlags&2064)!==0&&M!==null)M.return=f,J=M;else e:for(f=C;J!==null;){if(y=J,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:Hi(9,y)}}catch(se){Qe(y,y.return,se)}if(y===f){J=null;break e}var V=y.sibling;if(V!==null){V.return=y.return,J=V;break e}J=y.return}}if(ke=a,Yn(),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(si,e)}catch{}s=!0}return s}finally{Me=n,Dt.transition=t}}return!1}function Lf(e,t,n){t=Co(n,t),t=ef(e,t,1),e=Zn(e,t,1),t=ht(),e!==null&&(ns(e,1,t),kt(e,t))}function Qe(e,t,n){if(e.tag===3)Lf(e,e,n);else for(;t!==null;){if(t.tag===3){Lf(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(er===null||!er.has(s))){e=Co(n,e),e=tf(t,e,1),t=Zn(t,e,1),e=ht(),t!==null&&(ns(t,1,e),kt(t,e));break}}t=t.return}}function qg(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=ht(),e.pingedLanes|=e.suspendedLanes&n,et===e&&(st&n)===n&&(Ye===4||Ye===3&&(st&130023424)===st&&500>He()-Yl?zr(e,0):ql|=n),kt(e,t)}function Df(e,t){t===0&&((e.mode&1)===0?t=1:(t=ai,ai<<=1,(ai&130023424)===0&&(ai=4194304)));var n=ht();e=Pn(e,t),e!==null&&(ns(e,t,n),kt(e,n))}function Yg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Df(e,n)}function Xg(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(t),Df(e,n)}var Ff;Ff=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)St=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return St=!1,Dg(e,t,n);St=(e.flags&131072)!==0}else St=!1,Ue&&(t.flags&1048576)!==0&&yd(t,Ri,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Qi(e,t),e=t.pendingProps;var a=go(t,it.current);bo(t,n),a=Pl(null,t,s,e,a,n);var u=jl();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xt(s)?(u=!0,Ni(t)):u=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,xl(t),a.updater=Wi,t.stateNode=a,a._reactInternals=t,zl(t,s,e,n),t=Dl(null,t,s,!0,u,n)):(t.tag=0,Ue&&u&&cl(t),pt(null,t,a,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Qi(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=Jg(s),e=Gt(s,e),a){case 0:t=Ll(null,t,s,e,n);break e;case 1:t=df(null,t,s,e,n);break e;case 11:t=sf(null,t,s,e,n);break e;case 14:t=af(null,t,s,Gt(s.type,e),n);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),Ll(e,t,s,a,n);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),df(e,t,s,a,n);case 3:e:{if(ff(t),e===null)throw Error(i(387));s=t.pendingProps,u=t.memoizedState,a=u.element,Nd(e,t),Ii(t,s,null,n);var f=t.memoizedState;if(s=f.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){a=Co(Error(i(423)),t),t=pf(e,t,s,n,a);break e}else if(s!==a){a=Co(Error(i(424)),t),t=pf(e,t,s,n,a);break e}else for(Mt=Kn(t.stateNode.containerInfo.firstChild),Rt=t,Ue=!0,Kt=null,n=Cd(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wo(),s===a){t=Rn(e,t,n);break e}pt(e,t,s,n)}t=t.child}return t;case 5:return Rd(t),e===null&&pl(t),s=t.type,a=t.pendingProps,u=e!==null?e.memoizedProps:null,f=a.children,ol(s,a)?f=null:u!==null&&ol(s,u)&&(t.flags|=32),cf(e,t),pt(e,t,f,n),t.child;case 6:return e===null&&pl(t),null;case 13:return hf(e,t,n);case 4:return Sl(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=xo(t,null,s,n):pt(e,t,s,n),t.child;case 11:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),sf(e,t,s,a,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,a=t.pendingProps,u=t.memoizedProps,f=a.value,ze(Oi,s._currentValue),s._currentValue=f,u!==null)if(Ht(u.value,f)){if(u.children===a.children&&!wt.current){t=Rn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var y=u.dependencies;if(y!==null){f=u.child;for(var S=y.firstContext;S!==null;){if(S.context===s){if(u.tag===1){S=jn(-1,n&-n),S.tag=2;var O=u.updateQueue;if(O!==null){O=O.shared;var L=O.pending;L===null?S.next=S:(S.next=L.next,L.next=S),O.pending=S}}u.lanes|=n,S=u.alternate,S!==null&&(S.lanes|=n),vl(u.return,n,t),y.lanes|=n;break}S=S.next}}else if(u.tag===10)f=u.type===t.type?null:u.child;else if(u.tag===18){if(f=u.return,f===null)throw Error(i(341));f.lanes|=n,y=f.alternate,y!==null&&(y.lanes|=n),vl(f,n,t),f=u.sibling}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}pt(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,bo(t,n),a=At(a),s=s(a),t.flags|=1,pt(e,t,s,n),t.child;case 14:return s=t.type,a=Gt(s,t.pendingProps),a=Gt(s.type,a),af(e,t,s,a,n);case 15:return lf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Gt(s,a),Qi(e,t),t.tag=1,xt(s)?(e=!0,Ni(t)):e=!1,bo(t,n),Zd(t,s,a),zl(t,s,a,n),Dl(null,t,s,!0,e,n);case 19:return gf(e,t,n);case 22:return uf(e,t,n)}throw Error(i(156,t.tag))};function Uf(e,t){return vc(e,t)}function Zg(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,t,n,s){return new Zg(e,t,n,s)}function ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jg(e){if(typeof e=="function")return ou(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ae)return 11;if(e===Be)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ta(e,t,n,s,a,u){var f=2;if(s=e,typeof e=="function")ou(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case $:return Ar(n.children,a,u,t);case X:f=8,a|=8;break;case he:return e=Ft(12,n,t,a|2),e.elementType=he,e.lanes=u,e;case Fe:return e=Ft(13,n,t,a),e.elementType=Fe,e.lanes=u,e;case Te:return e=Ft(19,n,t,a),e.elementType=Te,e.lanes=u,e;case xe:return na(n,a,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:f=10;break e;case Pe:f=9;break e;case ae:f=11;break e;case Be:f=14;break e;case Oe:f=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Ft(f,n,t,a),t.elementType=e,t.type=s,t.lanes=u,t}function Ar(e,t,n,s){return e=Ft(7,e,s,t),e.lanes=n,e}function na(e,t,n,s){return e=Ft(22,e,s,t),e.elementType=xe,e.lanes=n,e.stateNode={isHidden:!1},e}function su(e,t,n){return e=Ft(6,e,null,t),e.lanes=n,e}function iu(e,t,n){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ey(e,t,n,s,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_a(0),this.expirationTimes=_a(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_a(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function au(e,t,n,s,a,u,f,y,S){return e=new ey(e,t,n,y,S),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Ft(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xl(u),e}function ty(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ee,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Bf(e){if(!e)return qn;e=e._reactInternals;e:{if(Cr(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var n=e.type;if(xt(n))return hd(e,n,t)}return t}function Wf(e,t,n,s,a,u,f,y,S){return e=au(n,s,!0,e,a,u,f,y,S),e.context=Bf(null),n=e.current,s=ht(),a=nr(n),u=jn(s,a),u.callback=t??null,Zn(n,u,a),e.current.lanes=a,ns(e,a,s),kt(e,s),e}function ra(e,t,n,s){var a=t.current,u=ht(),f=nr(a);return n=Bf(n),t.context===null?t.context=n:t.pendingContext=n,t=jn(u,f),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Zn(a,t,f),e!==null&&(Xt(e,a,f,u),zi(e,a,f)),f}function oa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Vf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function lu(e,t){Vf(e,t),(e=e.alternate)&&Vf(e,t)}function ny(){return null}var Qf=typeof reportError=="function"?reportError:function(e){console.error(e)};function uu(e){this._internalRoot=e}sa.prototype.render=uu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));ra(e,t,null,null)},sa.prototype.unmount=uu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_r(function(){ra(null,e,null,null)}),t[kn]=null}};function sa(e){this._internalRoot=e}sa.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qn.length&&t!==0&&t<Qn[n].priority;n++);Qn.splice(n,0,e),n===0&&Rc(e)}};function cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $f(){}function ry(e,t,n,s,a){if(a){if(typeof s=="function"){var u=s;s=function(){var O=oa(f);u.call(O)}}var f=Wf(t,s,e,0,null,!1,!1,"",$f);return e._reactRootContainer=f,e[kn]=f.current,gs(e.nodeType===8?e.parentNode:e),_r(),f}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var y=s;s=function(){var O=oa(S);y.call(O)}}var S=au(e,0,!1,null,null,!1,!1,"",$f);return e._reactRootContainer=S,e[kn]=S.current,gs(e.nodeType===8?e.parentNode:e),_r(function(){ra(t,S,n,s)}),S}function aa(e,t,n,s,a){var u=n._reactRootContainer;if(u){var f=u;if(typeof a=="function"){var y=a;a=function(){var S=oa(f);y.call(S)}}ra(t,f,e,a)}else f=ry(n,t,e,a,s);return oa(f)}Cc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ts(t.pendingLanes);n!==0&&(za(t,n|1),kt(t,He()),(ke&6)===0&&(Po=He()+500,Yn()))}break;case 13:_r(function(){var s=Pn(e,1);if(s!==null){var a=ht();Xt(s,e,1,a)}}),lu(e,1)}},Ia=function(e){if(e.tag===13){var t=Pn(e,134217728);if(t!==null){var n=ht();Xt(t,e,134217728,n)}lu(e,134217728)}},Ec=function(e){if(e.tag===13){var t=nr(e),n=Pn(e,t);if(n!==null){var s=ht();Xt(n,e,t,s)}lu(e,t)}},Nc=function(){return Me},Pc=function(e,t){var n=Me;try{return Me=e,t()}finally{Me=n}},so=function(e,t,n){switch(t){case"input":if(Yo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var a=Ci(s);if(!a)throw Error(i(90));Jr(s),Yo(s,a)}}}break;case"textarea":Ys(e,n);break;case"select":t=n.value,t!=null&&_t(e,!!n.multiple,t,!1)}},Ne=tu,_e=_r;var oy={usingClientEntryPoint:!1,Events:[ws,ho,Ci,ti,pe,tu]},_s={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},sy={bundleType:_s.bundleType,version:_s.version,rendererPackageName:_s.rendererPackageName,rendererConfig:_s.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gc(e),e===null?null:e.stateNode},findFiberByHostInstance:_s.findFiberByHostInstance||ny,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 la=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!la.isDisabled&&la.supportsFiber)try{si=la.inject(sy),cn=la}catch{}}return Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oy,Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cu(t))throw Error(i(200));return ty(e,t,null,n)},Ct.createRoot=function(e,t){if(!cu(e))throw Error(i(299));var n=!1,s="",a=Qf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=au(e,1,!1,null,null,n,!1,s,a),e[kn]=t.current,gs(e.nodeType===8?e.parentNode:e),new uu(t)},Ct.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=gc(t),e=e===null?null:e.stateNode,e},Ct.flushSync=function(e){return _r(e)},Ct.hydrate=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!0,n)},Ct.hydrateRoot=function(e,t,n){if(!cu(e))throw Error(i(405));var s=n!=null&&n.hydratedSources||null,a=!1,u="",f=Qf;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(f=n.onRecoverableError)),t=Wf(t,null,e,1,n??null,a,!1,u,f),e[kn]=t.current,gs(e),s)for(e=0;e<s.length;e++)n=s[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new sa(t)},Ct.render=function(e,t,n){if(!ia(t))throw Error(i(200));return aa(null,e,t,!1,n)},Ct.unmountComponentAtNode=function(e){if(!ia(e))throw Error(i(40));return e._reactRootContainer?(_r(function(){aa(null,null,e,!1,function(){e._reactRootContainer=null,e[kn]=null})}),!0):!1},Ct.unstable_batchedUpdates=tu,Ct.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!ia(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return aa(e,t,n,!1,s)},Ct.version="18.3.1-next-f1338f8080-20240426",Ct}var ep;function Jp(){if(ep)return hu.exports;ep=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(o){console.error(o)}}return r(),hu.exports=py(),hu.exports}var tp;function hy(){if(tp)return ca;tp=1;var r=Jp();return ca.createRoot=r.createRoot,ca.hydrateRoot=r.hydrateRoot,ca}var my=hy(),Ho=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},gy={setTimeout:(r,o)=>setTimeout(r,o),clearTimeout:r=>clearTimeout(r),setInterval:(r,o)=>setInterval(r,o),clearInterval:r=>clearInterval(r)},cr,Ku,Up,yy=(Up=class{constructor(){ie(this,cr,gy);ie(this,Ku,!1)}setTimeoutProvider(r){q(this,cr,r)}setTimeout(r,o){return w(this,cr).setTimeout(r,o)}clearTimeout(r){w(this,cr).clearTimeout(r)}setInterval(r,o){return w(this,cr).setInterval(r,o)}clearInterval(r){w(this,cr).clearInterval(r)}},cr=new WeakMap,Ku=new WeakMap,Up),Lr=new yy;function vy(r){setTimeout(r,0)}var Kr=typeof window>"u"||"Deno"in globalThis;function gt(){}function wy(r,o){return typeof r=="function"?r(o):r}function Pu(r){return typeof r=="number"&&r>=0&&r!==1/0}function eh(r,o){return Math.max(r+(o||0)-Date.now(),0)}function wr(r,o){return typeof r=="function"?r(o):r}function Bt(r,o){return typeof r=="function"?r(o):r}function np(r,o){const{type:i="all",exact:l,fetchStatus:c,predicate:d,queryKey:m,stale:p}=r;if(m){if(l){if(o.queryHash!==qu(m,o.options))return!1}else if(!Ds(o.queryKey,m))return!1}if(i!=="all"){const x=o.isActive();if(i==="active"&&!x||i==="inactive"&&x)return!1}return!(typeof p=="boolean"&&o.isStale()!==p||c&&c!==o.state.fetchStatus||d&&!d(o))}function rp(r,o){const{exact:i,status:l,predicate:c,mutationKey:d}=r;if(d){if(!o.options.mutationKey)return!1;if(i){if(Gr(o.options.mutationKey)!==Gr(d))return!1}else if(!Ds(o.options.mutationKey,d))return!1}return!(l&&o.state.status!==l||c&&!c(o))}function qu(r,o){return((o==null?void 0:o.queryKeyHashFn)||Gr)(r)}function Gr(r){return JSON.stringify(r,(o,i)=>ju(i)?Object.keys(i).sort().reduce((l,c)=>(l[c]=i[c],l),{}):i)}function Ds(r,o){return r===o?!0:typeof r!=typeof o?!1:r&&o&&typeof r=="object"&&typeof o=="object"?Object.keys(o).every(i=>Ds(r[i],o[i])):!1}var xy=Object.prototype.hasOwnProperty;function th(r,o,i=0){if(r===o)return r;if(i>500)return o;const l=op(r)&&op(o);if(!l&&!(ju(r)&&ju(o)))return o;const d=(l?r:Object.keys(r)).length,m=l?o:Object.keys(o),p=m.length,x=l?new Array(p):{};let g=0;for(let E=0;E<p;E++){const P=l?E:m[E],T=r[P],v=o[P];if(T===v){x[P]=T,(l?E<d:xy.call(r,P))&&g++;continue}if(T===null||v===null||typeof T!="object"||typeof v!="object"){x[P]=v;continue}const I=th(T,v,i+1);x[P]=I,I===T&&g++}return d===p&&g===d?r:x}function ka(r,o){if(!o||Object.keys(r).length!==Object.keys(o).length)return!1;for(const i in r)if(r[i]!==o[i])return!1;return!0}function op(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function ju(r){if(!sp(r))return!1;const o=r.constructor;if(o===void 0)return!0;const i=o.prototype;return!(!sp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(r)!==Object.prototype)}function sp(r){return Object.prototype.toString.call(r)==="[object Object]"}function Sy(r){return new Promise(o=>{Lr.setTimeout(o,r)})}function Ru(r,o,i){return typeof i.structuralSharing=="function"?i.structuralSharing(r,o):i.structuralSharing!==!1?th(r,o):o}function by(r,o,i=0){const l=[...r,o];return i&&l.length>i?l.slice(1):l}function ky(r,o,i=0){const l=[o,...r];return i&&l.length>i?l.slice(0,-1):l}var Yu=Symbol();function nh(r,o){return!r.queryFn&&(o!=null&&o.initialPromise)?()=>o.initialPromise:!r.queryFn||r.queryFn===Yu?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function Xu(r,o){return typeof r=="function"?r(...o):!!r}function Cy(r,o,i){let l=!1,c;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(c??(c=o()),l||(l=!0,c.aborted?i():c.addEventListener("abort",i,{once:!0})),c)}),r}var Dr,dr,zo,Bp,Ey=(Bp=class extends Ho{constructor(){super();ie(this,Dr);ie(this,dr);ie(this,zo);q(this,zo,o=>{if(!Kr&&window.addEventListener){const i=()=>o();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){w(this,dr)||this.setEventListener(w(this,zo))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,dr))==null||o.call(this),q(this,dr,void 0))}setEventListener(o){var i;q(this,zo,o),(i=w(this,dr))==null||i.call(this),q(this,dr,o(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(o){w(this,Dr)!==o&&(q(this,Dr,o),this.onFocus())}onFocus(){const o=this.isFocused();this.listeners.forEach(i=>{i(o)})}isFocused(){var o;return typeof w(this,Dr)=="boolean"?w(this,Dr):((o=globalThis.document)==null?void 0:o.visibilityState)!=="hidden"}},Dr=new WeakMap,dr=new WeakMap,zo=new WeakMap,Bp),Zu=new Ey;function Mu(){let r,o;const i=new Promise((c,d)=>{r=c,o=d});i.status="pending",i.catch(()=>{});function l(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{l({status:"fulfilled",value:c}),r(c)},i.reject=c=>{l({status:"rejected",reason:c}),o(c)},i}var Ny=vy;function Py(){let r=[],o=0,i=p=>{p()},l=p=>{p()},c=Ny;const d=p=>{o?r.push(p):c(()=>{i(p)})},m=()=>{const p=r;r=[],p.length&&c(()=>{l(()=>{p.forEach(x=>{i(x)})})})};return{batch:p=>{let x;o++;try{x=p()}finally{o--,o||m()}return x},batchCalls:p=>(...x)=>{d(()=>{p(...x)})},schedule:d,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{l=p},setScheduler:p=>{c=p}}}var Xe=Py(),Io,fr,Ao,Wp,jy=(Wp=class extends Ho{constructor(){super();ie(this,Io,!0);ie(this,fr);ie(this,Ao);q(this,Ao,o=>{if(!Kr&&window.addEventListener){const i=()=>o(!0),l=()=>o(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}})}onSubscribe(){w(this,fr)||this.setEventListener(w(this,Ao))}onUnsubscribe(){var o;this.hasListeners()||((o=w(this,fr))==null||o.call(this),q(this,fr,void 0))}setEventListener(o){var i;q(this,Ao,o),(i=w(this,fr))==null||i.call(this),q(this,fr,o(this.setOnline.bind(this)))}setOnline(o){w(this,Io)!==o&&(q(this,Io,o),this.listeners.forEach(l=>{l(o)}))}isOnline(){return w(this,Io)}},Io=new WeakMap,fr=new WeakMap,Ao=new WeakMap,Wp),Ca=new jy;function Ry(r){return Math.min(1e3*2**r,3e4)}function rh(r){return(r??"online")==="online"?Ca.isOnline():!0}var Tu=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function oh(r){let o=!1,i=0,l;const c=Mu(),d=()=>c.status!=="pending",m=b=>{var R;if(!d()){const D=new Tu(b);T(D),(R=r.onCancel)==null||R.call(r,D)}},p=()=>{o=!0},x=()=>{o=!1},g=()=>Zu.isFocused()&&(r.networkMode==="always"||Ca.isOnline())&&r.canRun(),E=()=>rh(r.networkMode)&&r.canRun(),P=b=>{d()||(l==null||l(),c.resolve(b))},T=b=>{d()||(l==null||l(),c.reject(b))},v=()=>new Promise(b=>{var R;l=D=>{(d()||g())&&b(D)},(R=r.onPause)==null||R.call(r)}).then(()=>{var b;l=void 0,d()||(b=r.onContinue)==null||b.call(r)}),I=()=>{if(d())return;let b;const R=i===0?r.initialPromise:void 0;try{b=R??r.fn()}catch(D){b=Promise.reject(D)}Promise.resolve(b).then(P).catch(D=>{var ee;if(d())return;const F=r.retry??(Kr?0:3),B=r.retryDelay??Ry,_=typeof B=="function"?B(i,D):B,G=F===!0||typeof F=="number"&&i<F||typeof F=="function"&&F(i,D);if(o||!G){T(D);return}i++,(ee=r.onFail)==null||ee.call(r,i,D),Sy(_).then(()=>g()?void 0:v()).then(()=>{o?T(D):I()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(l==null||l(),c),cancelRetry:p,continueRetry:x,canStart:E,start:()=>(E()?I():v().then(I),c)}}var Fr,Vp,sh=(Vp=class{constructor(){ie(this,Fr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pu(this.gcTime)&&q(this,Fr,Lr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(Kr?1/0:300*1e3))}clearGcTimeout(){w(this,Fr)&&(Lr.clearTimeout(w(this,Fr)),q(this,Fr,void 0))}},Fr=new WeakMap,Vp),Ur,Lo,Ut,Br,nt,Bs,Wr,Jt,On,Qp,My=(Qp=class extends sh{constructor(o){super();ie(this,Jt);ie(this,Ur);ie(this,Lo);ie(this,Ut);ie(this,Br);ie(this,nt);ie(this,Bs);ie(this,Wr);q(this,Wr,!1),q(this,Bs,o.defaultOptions),this.setOptions(o.options),this.observers=[],q(this,Br,o.client),q(this,Ut,w(this,Br).getQueryCache()),this.queryKey=o.queryKey,this.queryHash=o.queryHash,q(this,Ur,ap(this.options)),this.state=o.state??w(this,Ur),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var o;return(o=w(this,nt))==null?void 0:o.promise}setOptions(o){if(this.options={...w(this,Bs),...o},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=ap(this.options);i.data!==void 0&&(this.setState(ip(i.data,i.dataUpdatedAt)),q(this,Ur,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&w(this,Ut).remove(this)}setData(o,i){const l=Ru(this.state.data,o,this.options);return ge(this,Jt,On).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(o,i){ge(this,Jt,On).call(this,{type:"setState",state:o,setStateOptions:i})}cancel(o){var l,c;const i=(l=w(this,nt))==null?void 0:l.promise;return(c=w(this,nt))==null||c.cancel(o),i?i.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(w(this,Ur))}isActive(){return this.observers.some(o=>Bt(o.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(o=>wr(o.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(o=>o.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(o=0){return this.state.data===void 0?!0:o==="static"?!1:this.state.isInvalidated?!0:!eh(this.state.dataUpdatedAt,o)}onFocus(){var i;const o=this.observers.find(l=>l.shouldFetchOnWindowFocus());o==null||o.refetch({cancelRefetch:!1}),(i=w(this,nt))==null||i.continue()}onOnline(){var i;const o=this.observers.find(l=>l.shouldFetchOnReconnect());o==null||o.refetch({cancelRefetch:!1}),(i=w(this,nt))==null||i.continue()}addObserver(o){this.observers.includes(o)||(this.observers.push(o),this.clearGcTimeout(),w(this,Ut).notify({type:"observerAdded",query:this,observer:o}))}removeObserver(o){this.observers.includes(o)&&(this.observers=this.observers.filter(i=>i!==o),this.observers.length||(w(this,nt)&&(w(this,Wr)?w(this,nt).cancel({revert:!0}):w(this,nt).cancelRetry()),this.scheduleGc()),w(this,Ut).notify({type:"observerRemoved",query:this,observer:o}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ge(this,Jt,On).call(this,{type:"invalidate"})}async fetch(o,i){var x,g,E,P,T,v,I,b,R,D,F,B;if(this.state.fetchStatus!=="idle"&&((x=w(this,nt))==null?void 0:x.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(w(this,nt))return w(this,nt).continueRetry(),w(this,nt).promise}if(o&&this.setOptions(o),!this.options.queryFn){const _=this.observers.find(G=>G.options.queryFn);_&&this.setOptions(_.options)}const l=new AbortController,c=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(q(this,Wr,!0),l.signal)})},d=()=>{const _=nh(this.options,i),ee=(()=>{const $={client:w(this,Br),queryKey:this.queryKey,meta:this.meta};return c($),$})();return q(this,Wr,!1),this.options.persister?this.options.persister(_,ee,this):_(ee)},p=(()=>{const _={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:w(this,Br),state:this.state,fetchFn:d};return c(_),_})();(g=this.options.behavior)==null||g.onFetch(p,this),q(this,Lo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((E=p.fetchOptions)==null?void 0:E.meta))&&ge(this,Jt,On).call(this,{type:"fetch",meta:(P=p.fetchOptions)==null?void 0:P.meta}),q(this,nt,oh({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:_=>{_ instanceof Tu&&_.revert&&this.setState({...w(this,Lo),fetchStatus:"idle"}),l.abort()},onFail:(_,G)=>{ge(this,Jt,On).call(this,{type:"failed",failureCount:_,error:G})},onPause:()=>{ge(this,Jt,On).call(this,{type:"pause"})},onContinue:()=>{ge(this,Jt,On).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const _=await w(this,nt).start();if(_===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(_),(v=(T=w(this,Ut).config).onSuccess)==null||v.call(T,_,this),(b=(I=w(this,Ut).config).onSettled)==null||b.call(I,_,this.state.error,this),_}catch(_){if(_ instanceof Tu){if(_.silent)return w(this,nt).promise;if(_.revert){if(this.state.data===void 0)throw _;return this.state.data}}throw ge(this,Jt,On).call(this,{type:"error",error:_}),(D=(R=w(this,Ut).config).onError)==null||D.call(R,_,this),(B=(F=w(this,Ut).config).onSettled)==null||B.call(F,this.state.data,_,this),_}finally{this.scheduleGc()}}},Ur=new WeakMap,Lo=new WeakMap,Ut=new WeakMap,Br=new WeakMap,nt=new WeakMap,Bs=new WeakMap,Wr=new WeakMap,Jt=new WeakSet,On=function(o){const i=l=>{switch(o.type){case"failed":return{...l,fetchFailureCount:o.failureCount,fetchFailureReason:o.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...ih(l.data,this.options),fetchMeta:o.meta??null};case"success":const c={...l,...ip(o.data,o.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!o.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Lo,o.manual?c:void 0),c;case"error":const d=o.error;return{...l,error:d,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...o.state}}};this.state=i(this.state),Xe.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),w(this,Ut).notify({query:this,type:"updated",action:o})})},Qp);function ih(r,o){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rh(o.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function ip(r,o){return{data:r,dataUpdatedAt:o??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ap(r){const o=typeof r.initialData=="function"?r.initialData():r.initialData,i=o!==void 0,l=i?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:i?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Et,Se,Ws,mt,Vr,Do,_n,pr,Vs,Fo,Uo,Qr,$r,hr,Bo,Re,Ls,Ou,_u,zu,Iu,Au,Lu,Du,ah,$p,Ty=($p=class extends Ho{constructor(o,i){super();ie(this,Re);ie(this,Et);ie(this,Se);ie(this,Ws);ie(this,mt);ie(this,Vr);ie(this,Do);ie(this,_n);ie(this,pr);ie(this,Vs);ie(this,Fo);ie(this,Uo);ie(this,Qr);ie(this,$r);ie(this,hr);ie(this,Bo,new Set);this.options=i,q(this,Et,o),q(this,pr,null),q(this,_n,Mu()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(w(this,Se).addObserver(this),lp(w(this,Se),this.options)?ge(this,Re,Ls).call(this):this.updateResult(),ge(this,Re,Iu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fu(w(this,Se),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fu(w(this,Se),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ge(this,Re,Au).call(this),ge(this,Re,Lu).call(this),w(this,Se).removeObserver(this)}setOptions(o){const i=this.options,l=w(this,Se);if(this.options=w(this,Et).defaultQueryOptions(o),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Bt(this.options.enabled,w(this,Se))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ge(this,Re,Du).call(this),w(this,Se).setOptions(this.options),i._defaulted&&!ka(this.options,i)&&w(this,Et).getQueryCache().notify({type:"observerOptionsUpdated",query:w(this,Se),observer:this});const c=this.hasListeners();c&&up(w(this,Se),l,this.options,i)&&ge(this,Re,Ls).call(this),this.updateResult(),c&&(w(this,Se)!==l||Bt(this.options.enabled,w(this,Se))!==Bt(i.enabled,w(this,Se))||wr(this.options.staleTime,w(this,Se))!==wr(i.staleTime,w(this,Se)))&&ge(this,Re,Ou).call(this);const d=ge(this,Re,_u).call(this);c&&(w(this,Se)!==l||Bt(this.options.enabled,w(this,Se))!==Bt(i.enabled,w(this,Se))||d!==w(this,hr))&&ge(this,Re,zu).call(this,d)}getOptimisticResult(o){const i=w(this,Et).getQueryCache().build(w(this,Et),o),l=this.createResult(i,o);return _y(this,l)&&(q(this,mt,l),q(this,Do,this.options),q(this,Vr,w(this,Se).state)),l}getCurrentResult(){return w(this,mt)}trackResult(o,i){return new Proxy(o,{get:(l,c)=>(this.trackProp(c),i==null||i(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&w(this,_n).status==="pending"&&w(this,_n).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(o){w(this,Bo).add(o)}getCurrentQuery(){return w(this,Se)}refetch({...o}={}){return this.fetch({...o})}fetchOptimistic(o){const i=w(this,Et).defaultQueryOptions(o),l=w(this,Et).getQueryCache().build(w(this,Et),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(o){return ge(this,Re,Ls).call(this,{...o,cancelRefetch:o.cancelRefetch??!0}).then(()=>(this.updateResult(),w(this,mt)))}createResult(o,i){var he;const l=w(this,Se),c=this.options,d=w(this,mt),m=w(this,Vr),p=w(this,Do),g=o!==l?o.state:w(this,Ws),{state:E}=o;let P={...E},T=!1,v;if(i._optimisticResults){const ye=this.hasListeners(),Pe=!ye&&lp(o,i),ae=ye&&up(o,l,i,c);(Pe||ae)&&(P={...P,...ih(E.data,o.options)}),i._optimisticResults==="isRestoring"&&(P.fetchStatus="idle")}let{error:I,errorUpdatedAt:b,status:R}=P;v=P.data;let D=!1;if(i.placeholderData!==void 0&&v===void 0&&R==="pending"){let ye;d!=null&&d.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(ye=d.data,D=!0):ye=typeof i.placeholderData=="function"?i.placeholderData((he=w(this,Uo))==null?void 0:he.state.data,w(this,Uo)):i.placeholderData,ye!==void 0&&(R="success",v=Ru(d==null?void 0:d.data,ye,i),T=!0)}if(i.select&&v!==void 0&&!D)if(d&&v===(m==null?void 0:m.data)&&i.select===w(this,Vs))v=w(this,Fo);else try{q(this,Vs,i.select),v=i.select(v),v=Ru(d==null?void 0:d.data,v,i),q(this,Fo,v),q(this,pr,null)}catch(ye){q(this,pr,ye)}w(this,pr)&&(I=w(this,pr),v=w(this,Fo),b=Date.now(),R="error");const F=P.fetchStatus==="fetching",B=R==="pending",_=R==="error",G=B&&F,ee=v!==void 0,X={status:R,fetchStatus:P.fetchStatus,isPending:B,isSuccess:R==="success",isError:_,isInitialLoading:G,isLoading:G,data:v,dataUpdatedAt:P.dataUpdatedAt,error:I,errorUpdatedAt:b,failureCount:P.fetchFailureCount,failureReason:P.fetchFailureReason,errorUpdateCount:P.errorUpdateCount,isFetched:P.dataUpdateCount>0||P.errorUpdateCount>0,isFetchedAfterMount:P.dataUpdateCount>g.dataUpdateCount||P.errorUpdateCount>g.errorUpdateCount,isFetching:F,isRefetching:F&&!B,isLoadingError:_&&!ee,isPaused:P.fetchStatus==="paused",isPlaceholderData:T,isRefetchError:_&&ee,isStale:Ju(o,i),refetch:this.refetch,promise:w(this,_n),isEnabled:Bt(i.enabled,o)!==!1};if(this.options.experimental_prefetchInRender){const ye=X.data!==void 0,Pe=X.status==="error"&&!ye,ae=Be=>{Pe?Be.reject(X.error):ye&&Be.resolve(X.data)},Fe=()=>{const Be=q(this,_n,X.promise=Mu());ae(Be)},Te=w(this,_n);switch(Te.status){case"pending":o.queryHash===l.queryHash&&ae(Te);break;case"fulfilled":(Pe||X.data!==Te.value)&&Fe();break;case"rejected":(!Pe||X.error!==Te.reason)&&Fe();break}}return X}updateResult(){const o=w(this,mt),i=this.createResult(w(this,Se),this.options);if(q(this,Vr,w(this,Se).state),q(this,Do,this.options),w(this,Vr).data!==void 0&&q(this,Uo,w(this,Se)),ka(i,o))return;q(this,mt,i);const l=()=>{if(!o)return!0;const{notifyOnChangeProps:c}=this.options,d=typeof c=="function"?c():c;if(d==="all"||!d&&!w(this,Bo).size)return!0;const m=new Set(d??w(this,Bo));return this.options.throwOnError&&m.add("error"),Object.keys(w(this,mt)).some(p=>{const x=p;return w(this,mt)[x]!==o[x]&&m.has(x)})};ge(this,Re,ah).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ge(this,Re,Iu).call(this)}},Et=new WeakMap,Se=new WeakMap,Ws=new WeakMap,mt=new WeakMap,Vr=new WeakMap,Do=new WeakMap,_n=new WeakMap,pr=new WeakMap,Vs=new WeakMap,Fo=new WeakMap,Uo=new WeakMap,Qr=new WeakMap,$r=new WeakMap,hr=new WeakMap,Bo=new WeakMap,Re=new WeakSet,Ls=function(o){ge(this,Re,Du).call(this);let i=w(this,Se).fetch(this.options,o);return o!=null&&o.throwOnError||(i=i.catch(gt)),i},Ou=function(){ge(this,Re,Au).call(this);const o=wr(this.options.staleTime,w(this,Se));if(Kr||w(this,mt).isStale||!Pu(o))return;const l=eh(w(this,mt).dataUpdatedAt,o)+1;q(this,Qr,Lr.setTimeout(()=>{w(this,mt).isStale||this.updateResult()},l))},_u=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(w(this,Se)):this.options.refetchInterval)??!1},zu=function(o){ge(this,Re,Lu).call(this),q(this,hr,o),!(Kr||Bt(this.options.enabled,w(this,Se))===!1||!Pu(w(this,hr))||w(this,hr)===0)&&q(this,$r,Lr.setInterval(()=>{(this.options.refetchIntervalInBackground||Zu.isFocused())&&ge(this,Re,Ls).call(this)},w(this,hr)))},Iu=function(){ge(this,Re,Ou).call(this),ge(this,Re,zu).call(this,ge(this,Re,_u).call(this))},Au=function(){w(this,Qr)&&(Lr.clearTimeout(w(this,Qr)),q(this,Qr,void 0))},Lu=function(){w(this,$r)&&(Lr.clearInterval(w(this,$r)),q(this,$r,void 0))},Du=function(){const o=w(this,Et).getQueryCache().build(w(this,Et),this.options);if(o===w(this,Se))return;const i=w(this,Se);q(this,Se,o),q(this,Ws,o.state),this.hasListeners()&&(i==null||i.removeObserver(this),o.addObserver(this))},ah=function(o){Xe.batch(()=>{o.listeners&&this.listeners.forEach(i=>{i(w(this,mt))}),w(this,Et).getQueryCache().notify({query:w(this,Se),type:"observerResultsUpdated"})})},$p);function Oy(r,o){return Bt(o.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&o.retryOnMount===!1)}function lp(r,o){return Oy(r,o)||r.state.data!==void 0&&Fu(r,o,o.refetchOnMount)}function Fu(r,o,i){if(Bt(o.enabled,r)!==!1&&wr(o.staleTime,r)!=="static"){const l=typeof i=="function"?i(r):i;return l==="always"||l!==!1&&Ju(r,o)}return!1}function up(r,o,i,l){return(r!==o||Bt(l.enabled,r)===!1)&&(!i.suspense||r.state.status!=="error")&&Ju(r,i)}function Ju(r,o){return Bt(o.enabled,r)!==!1&&r.isStaleByTime(wr(o.staleTime,r))}function _y(r,o){return!ka(r.getCurrentResult(),o)}function cp(r){return{onFetch:(o,i)=>{var E,P,T,v,I;const l=o.options,c=(T=(P=(E=o.fetchOptions)==null?void 0:E.meta)==null?void 0:P.fetchMore)==null?void 0:T.direction,d=((v=o.state.data)==null?void 0:v.pages)||[],m=((I=o.state.data)==null?void 0:I.pageParams)||[];let p={pages:[],pageParams:[]},x=0;const g=async()=>{let b=!1;const R=B=>{Cy(B,()=>o.signal,()=>b=!0)},D=nh(o.options,o.fetchOptions),F=async(B,_,G)=>{if(b)return Promise.reject();if(_==null&&B.pages.length)return Promise.resolve(B);const $=(()=>{const Pe={client:o.client,queryKey:o.queryKey,pageParam:_,direction:G?"backward":"forward",meta:o.options.meta};return R(Pe),Pe})(),X=await D($),{maxPages:he}=o.options,ye=G?ky:by;return{pages:ye(B.pages,X,he),pageParams:ye(B.pageParams,_,he)}};if(c&&d.length){const B=c==="backward",_=B?zy:dp,G={pages:d,pageParams:m},ee=_(l,G);p=await F(G,ee,B)}else{const B=r??d.length;do{const _=x===0?m[0]??l.initialPageParam:dp(l,p);if(x>0&&_==null)break;p=await F(p,_),x++}while(x<B)}return p};o.options.persister?o.fetchFn=()=>{var b,R;return(R=(b=o.options).persister)==null?void 0:R.call(b,g,{client:o.client,queryKey:o.queryKey,meta:o.options.meta,signal:o.signal},i)}:o.fetchFn=g}}}function dp(r,{pages:o,pageParams:i}){const l=o.length-1;return o.length>0?r.getNextPageParam(o[l],o,i[l],i):void 0}function zy(r,{pages:o,pageParams:i}){var l;return o.length>0?(l=r.getPreviousPageParam)==null?void 0:l.call(r,o[0],o,i[0],i):void 0}var Qs,mn,ct,Hr,gn,lr,Hp,Iy=(Hp=class extends sh{constructor(o){super();ie(this,gn);ie(this,Qs);ie(this,mn);ie(this,ct);ie(this,Hr);q(this,Qs,o.client),this.mutationId=o.mutationId,q(this,ct,o.mutationCache),q(this,mn,[]),this.state=o.state||lh(),this.setOptions(o.options),this.scheduleGc()}setOptions(o){this.options=o,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(o){w(this,mn).includes(o)||(w(this,mn).push(o),this.clearGcTimeout(),w(this,ct).notify({type:"observerAdded",mutation:this,observer:o}))}removeObserver(o){q(this,mn,w(this,mn).filter(i=>i!==o)),this.scheduleGc(),w(this,ct).notify({type:"observerRemoved",mutation:this,observer:o})}optionalRemove(){w(this,mn).length||(this.state.status==="pending"?this.scheduleGc():w(this,ct).remove(this))}continue(){var o;return((o=w(this,Hr))==null?void 0:o.continue())??this.execute(this.state.variables)}async execute(o){var m,p,x,g,E,P,T,v,I,b,R,D,F,B,_,G,ee,$;const i=()=>{ge(this,gn,lr).call(this,{type:"continue"})},l={client:w(this,Qs),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,Hr,oh({fn:()=>this.options.mutationFn?this.options.mutationFn(o,l):Promise.reject(new Error("No mutationFn found")),onFail:(X,he)=>{ge(this,gn,lr).call(this,{type:"failed",failureCount:X,error:he})},onPause:()=>{ge(this,gn,lr).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>w(this,ct).canRun(this)}));const c=this.state.status==="pending",d=!w(this,Hr).canStart();try{if(c)i();else{ge(this,gn,lr).call(this,{type:"pending",variables:o,isPaused:d}),w(this,ct).config.onMutate&&await w(this,ct).config.onMutate(o,this,l);const he=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,o,l));he!==this.state.context&&ge(this,gn,lr).call(this,{type:"pending",context:he,variables:o,isPaused:d})}const X=await w(this,Hr).start();return await((g=(x=w(this,ct).config).onSuccess)==null?void 0:g.call(x,X,o,this.state.context,this,l)),await((P=(E=this.options).onSuccess)==null?void 0:P.call(E,X,o,this.state.context,l)),await((v=(T=w(this,ct).config).onSettled)==null?void 0:v.call(T,X,null,this.state.variables,this.state.context,this,l)),await((b=(I=this.options).onSettled)==null?void 0:b.call(I,X,null,o,this.state.context,l)),ge(this,gn,lr).call(this,{type:"success",data:X}),X}catch(X){try{await((D=(R=w(this,ct).config).onError)==null?void 0:D.call(R,X,o,this.state.context,this,l))}catch(he){Promise.reject(he)}try{await((B=(F=this.options).onError)==null?void 0:B.call(F,X,o,this.state.context,l))}catch(he){Promise.reject(he)}try{await((G=(_=w(this,ct).config).onSettled)==null?void 0:G.call(_,void 0,X,this.state.variables,this.state.context,this,l))}catch(he){Promise.reject(he)}try{await(($=(ee=this.options).onSettled)==null?void 0:$.call(ee,void 0,X,o,this.state.context,l))}catch(he){Promise.reject(he)}throw ge(this,gn,lr).call(this,{type:"error",error:X}),X}finally{w(this,ct).runNext(this)}}},Qs=new WeakMap,mn=new WeakMap,ct=new WeakMap,Hr=new WeakMap,gn=new WeakSet,lr=function(o){const i=l=>{switch(o.type){case"failed":return{...l,failureCount:o.failureCount,failureReason:o.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:o.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:o.isPaused,status:"pending",variables:o.variables,submittedAt:Date.now()};case"success":return{...l,data:o.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:o.error,failureCount:l.failureCount+1,failureReason:o.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Xe.batch(()=>{w(this,mn).forEach(l=>{l.onMutationUpdate(o)}),w(this,ct).notify({mutation:this,type:"updated",action:o})})},Hp);function lh(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zn,en,$s,Kp,Ay=(Kp=class extends Ho{constructor(o={}){super();ie(this,zn);ie(this,en);ie(this,$s);this.config=o,q(this,zn,new Set),q(this,en,new Map),q(this,$s,0)}build(o,i,l){const c=new Iy({client:o,mutationCache:this,mutationId:++ua(this,$s)._,options:o.defaultMutationOptions(i),state:l});return this.add(c),c}add(o){w(this,zn).add(o);const i=da(o);if(typeof i=="string"){const l=w(this,en).get(i);l?l.push(o):w(this,en).set(i,[o])}this.notify({type:"added",mutation:o})}remove(o){if(w(this,zn).delete(o)){const i=da(o);if(typeof i=="string"){const l=w(this,en).get(i);if(l)if(l.length>1){const c=l.indexOf(o);c!==-1&&l.splice(c,1)}else l[0]===o&&w(this,en).delete(i)}}this.notify({type:"removed",mutation:o})}canRun(o){const i=da(o);if(typeof i=="string"){const l=w(this,en).get(i),c=l==null?void 0:l.find(d=>d.state.status==="pending");return!c||c===o}else return!0}runNext(o){var l;const i=da(o);if(typeof i=="string"){const c=(l=w(this,en).get(i))==null?void 0:l.find(d=>d!==o&&d.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Xe.batch(()=>{w(this,zn).forEach(o=>{this.notify({type:"removed",mutation:o})}),w(this,zn).clear(),w(this,en).clear()})}getAll(){return Array.from(w(this,zn))}find(o){const i={exact:!0,...o};return this.getAll().find(l=>rp(i,l))}findAll(o={}){return this.getAll().filter(i=>rp(o,i))}notify(o){Xe.batch(()=>{this.listeners.forEach(i=>{i(o)})})}resumePausedMutations(){const o=this.getAll().filter(i=>i.state.isPaused);return Xe.batch(()=>Promise.all(o.map(i=>i.continue().catch(gt))))}},zn=new WeakMap,en=new WeakMap,$s=new WeakMap,Kp);function da(r){var o;return(o=r.options.scope)==null?void 0:o.id}var In,mr,Nt,An,Ln,va,Uu,Gp,Ly=(Gp=class extends Ho{constructor(i,l){super();ie(this,Ln);ie(this,In);ie(this,mr);ie(this,Nt);ie(this,An);q(this,In,i),this.setOptions(l),this.bindMethods(),ge(this,Ln,va).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var c;const l=this.options;this.options=w(this,In).defaultMutationOptions(i),ka(this.options,l)||w(this,In).getMutationCache().notify({type:"observerOptionsUpdated",mutation:w(this,Nt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&Gr(l.mutationKey)!==Gr(this.options.mutationKey)?this.reset():((c=w(this,Nt))==null?void 0:c.state.status)==="pending"&&w(this,Nt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=w(this,Nt))==null||i.removeObserver(this)}onMutationUpdate(i){ge(this,Ln,va).call(this),ge(this,Ln,Uu).call(this,i)}getCurrentResult(){return w(this,mr)}reset(){var i;(i=w(this,Nt))==null||i.removeObserver(this),q(this,Nt,void 0),ge(this,Ln,va).call(this),ge(this,Ln,Uu).call(this)}mutate(i,l){var c;return q(this,An,l),(c=w(this,Nt))==null||c.removeObserver(this),q(this,Nt,w(this,In).getMutationCache().build(w(this,In),this.options)),w(this,Nt).addObserver(this),w(this,Nt).execute(i)}},In=new WeakMap,mr=new WeakMap,Nt=new WeakMap,An=new WeakMap,Ln=new WeakSet,va=function(){var l;const i=((l=w(this,Nt))==null?void 0:l.state)??lh();q(this,mr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Uu=function(i){Xe.batch(()=>{var l,c,d,m,p,x,g,E;if(w(this,An)&&this.hasListeners()){const P=w(this,mr).variables,T=w(this,mr).context,v={client:w(this,In),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(c=(l=w(this,An)).onSuccess)==null||c.call(l,i.data,P,T,v)}catch(I){Promise.reject(I)}try{(m=(d=w(this,An)).onSettled)==null||m.call(d,i.data,null,P,T,v)}catch(I){Promise.reject(I)}}else if((i==null?void 0:i.type)==="error"){try{(x=(p=w(this,An)).onError)==null||x.call(p,i.error,P,T,v)}catch(I){Promise.reject(I)}try{(E=(g=w(this,An)).onSettled)==null||E.call(g,void 0,i.error,P,T,v)}catch(I){Promise.reject(I)}}}this.listeners.forEach(P=>{P(w(this,mr))})})},Gp),yn,qp,Dy=(qp=class extends Ho{constructor(o={}){super();ie(this,yn);this.config=o,q(this,yn,new Map)}build(o,i,l){const c=i.queryKey,d=i.queryHash??qu(c,i);let m=this.get(d);return m||(m=new My({client:o,queryKey:c,queryHash:d,options:o.defaultQueryOptions(i),state:l,defaultOptions:o.getQueryDefaults(c)}),this.add(m)),m}add(o){w(this,yn).has(o.queryHash)||(w(this,yn).set(o.queryHash,o),this.notify({type:"added",query:o}))}remove(o){const i=w(this,yn).get(o.queryHash);i&&(o.destroy(),i===o&&w(this,yn).delete(o.queryHash),this.notify({type:"removed",query:o}))}clear(){Xe.batch(()=>{this.getAll().forEach(o=>{this.remove(o)})})}get(o){return w(this,yn).get(o)}getAll(){return[...w(this,yn).values()]}find(o){const i={exact:!0,...o};return this.getAll().find(l=>np(i,l))}findAll(o={}){const i=this.getAll();return Object.keys(o).length>0?i.filter(l=>np(o,l)):i}notify(o){Xe.batch(()=>{this.listeners.forEach(i=>{i(o)})})}onFocus(){Xe.batch(()=>{this.getAll().forEach(o=>{o.onFocus()})})}onOnline(){Xe.batch(()=>{this.getAll().forEach(o=>{o.onOnline()})})}},yn=new WeakMap,qp),$e,gr,yr,Wo,Vo,vr,Qo,$o,Yp,Fy=(Yp=class{constructor(r={}){ie(this,$e);ie(this,gr);ie(this,yr);ie(this,Wo);ie(this,Vo);ie(this,vr);ie(this,Qo);ie(this,$o);q(this,$e,r.queryCache||new Dy),q(this,gr,r.mutationCache||new Ay),q(this,yr,r.defaultOptions||{}),q(this,Wo,new Map),q(this,Vo,new Map),q(this,vr,0)}mount(){ua(this,vr)._++,w(this,vr)===1&&(q(this,Qo,Zu.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,$e).onFocus())})),q(this,$o,Ca.subscribe(async r=>{r&&(await this.resumePausedMutations(),w(this,$e).onOnline())})))}unmount(){var r,o;ua(this,vr)._--,w(this,vr)===0&&((r=w(this,Qo))==null||r.call(this),q(this,Qo,void 0),(o=w(this,$o))==null||o.call(this),q(this,$o,void 0))}isFetching(r){return w(this,$e).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return w(this,gr).findAll({...r,status:"pending"}).length}getQueryData(r){var i;const o=this.defaultQueryOptions({queryKey:r});return(i=w(this,$e).get(o.queryHash))==null?void 0:i.state.data}ensureQueryData(r){const o=this.defaultQueryOptions(r),i=w(this,$e).build(this,o),l=i.state.data;return l===void 0?this.fetchQuery(r):(r.revalidateIfStale&&i.isStaleByTime(wr(o.staleTime,i))&&this.prefetchQuery(o),Promise.resolve(l))}getQueriesData(r){return w(this,$e).findAll(r).map(({queryKey:o,state:i})=>{const l=i.data;return[o,l]})}setQueryData(r,o,i){const l=this.defaultQueryOptions({queryKey:r}),c=w(this,$e).get(l.queryHash),d=c==null?void 0:c.state.data,m=wy(o,d);if(m!==void 0)return w(this,$e).build(this,l).setData(m,{...i,manual:!0})}setQueriesData(r,o,i){return Xe.batch(()=>w(this,$e).findAll(r).map(({queryKey:l})=>[l,this.setQueryData(l,o,i)]))}getQueryState(r){var i;const o=this.defaultQueryOptions({queryKey:r});return(i=w(this,$e).get(o.queryHash))==null?void 0:i.state}removeQueries(r){const o=w(this,$e);Xe.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(r,o){const i=w(this,$e);return Xe.batch(()=>(i.findAll(r).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...r},o)))}cancelQueries(r,o={}){const i={revert:!0,...o},l=Xe.batch(()=>w(this,$e).findAll(r).map(c=>c.cancel(i)));return Promise.all(l).then(gt).catch(gt)}invalidateQueries(r,o={}){return Xe.batch(()=>(w(this,$e).findAll(r).forEach(i=>{i.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},o)))}refetchQueries(r,o={}){const i={...o,cancelRefetch:o.cancelRefetch??!0},l=Xe.batch(()=>w(this,$e).findAll(r).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let d=c.fetch(void 0,i);return i.throwOnError||(d=d.catch(gt)),c.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(l).then(gt)}fetchQuery(r){const o=this.defaultQueryOptions(r);o.retry===void 0&&(o.retry=!1);const i=w(this,$e).build(this,o);return i.isStaleByTime(wr(o.staleTime,i))?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(gt).catch(gt)}fetchInfiniteQuery(r){return r.behavior=cp(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(gt).catch(gt)}ensureInfiniteQueryData(r){return r.behavior=cp(r.pages),this.ensureQueryData(r)}resumePausedMutations(){return Ca.isOnline()?w(this,gr).resumePausedMutations():Promise.resolve()}getQueryCache(){return w(this,$e)}getMutationCache(){return w(this,gr)}getDefaultOptions(){return w(this,yr)}setDefaultOptions(r){q(this,yr,r)}setQueryDefaults(r,o){w(this,Wo).set(Gr(r),{queryKey:r,defaultOptions:o})}getQueryDefaults(r){const o=[...w(this,Wo).values()],i={};return o.forEach(l=>{Ds(r,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(r,o){w(this,Vo).set(Gr(r),{mutationKey:r,defaultOptions:o})}getMutationDefaults(r){const o=[...w(this,Vo).values()],i={};return o.forEach(l=>{Ds(r,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(r){if(r._defaulted)return r;const o={...w(this,yr).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return o.queryHash||(o.queryHash=qu(o.queryKey,o)),o.refetchOnReconnect===void 0&&(o.refetchOnReconnect=o.networkMode!=="always"),o.throwOnError===void 0&&(o.throwOnError=!!o.suspense),!o.networkMode&&o.persister&&(o.networkMode="offlineFirst"),o.queryFn===Yu&&(o.enabled=!1),o}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...w(this,yr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){w(this,$e).clear(),w(this,gr).clear()}},$e=new WeakMap,gr=new WeakMap,yr=new WeakMap,Wo=new WeakMap,Vo=new WeakMap,vr=new WeakMap,Qo=new WeakMap,$o=new WeakMap,Yp),uh=k.createContext(void 0),Hs=r=>{const o=k.useContext(uh);if(!o)throw new Error("No QueryClient set, use QueryClientProvider to set one");return o},Uy=({client:r,children:o})=>(k.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),h.jsx(uh.Provider,{value:r,children:o})),ch=k.createContext(!1),By=()=>k.useContext(ch);ch.Provider;function Wy(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var Vy=k.createContext(Wy()),Qy=()=>k.useContext(Vy),$y=(r,o,i)=>{const l=i!=null&&i.state.error&&typeof r.throwOnError=="function"?Xu(r.throwOnError,[i.state.error,i]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||l)&&(o.isReset()||(r.retryOnMount=!1))},Hy=r=>{k.useEffect(()=>{r.clearReset()},[r])},Ky=({result:r,errorResetBoundary:o,throwOnError:i,query:l,suspense:c})=>r.isError&&!o.isReset()&&!r.isFetching&&l&&(c&&r.data===void 0||Xu(i,[r.error,l])),Gy=r=>{if(r.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),l=r.staleTime;r.staleTime=typeof l=="function"?(...c)=>i(l(...c)):i(l),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},qy=(r,o)=>r.isLoading&&r.isFetching&&!o,Yy=(r,o)=>(r==null?void 0:r.suspense)&&o.isPending,fp=(r,o,i)=>o.fetchOptimistic(r).catch(()=>{i.clearReset()});function Xy(r,o,i){var T,v,I,b;const l=By(),c=Qy(),d=Hs(),m=d.defaultQueryOptions(r);(v=(T=d.getDefaultOptions().queries)==null?void 0:T._experimental_beforeQuery)==null||v.call(T,m);const p=d.getQueryCache().get(m.queryHash);m._optimisticResults=l?"isRestoring":"optimistic",Gy(m),$y(m,c,p),Hy(c);const x=!d.getQueryCache().get(m.queryHash),[g]=k.useState(()=>new o(d,m)),E=g.getOptimisticResult(m),P=!l&&r.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(R=>{const D=P?g.subscribe(Xe.batchCalls(R)):gt;return g.updateResult(),D},[g,P]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),k.useEffect(()=>{g.setOptions(m)},[m,g]),Yy(m,E))throw fp(m,g,c);if(Ky({result:E,errorResetBoundary:c,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw E.error;if((b=(I=d.getDefaultOptions().queries)==null?void 0:I._experimental_afterQuery)==null||b.call(I,m,E),m.experimental_prefetchInRender&&!Kr&&qy(E,l)){const R=x?fp(m,g,c):p==null?void 0:p.promise;R==null||R.catch(gt).finally(()=>{g.updateResult()})}return m.notifyOnChangeProps?E:g.trackResult(E)}function ec(r,o){return Xy(r,Ty)}function tc(r,o){const i=Hs(),[l]=k.useState(()=>new Ly(i,r));k.useEffect(()=>{l.setOptions(r)},[l,r]);const c=k.useSyncExternalStore(k.useCallback(m=>l.subscribe(Xe.batchCalls(m)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),d=k.useCallback((m,p)=>{l.mutate(m,p).catch(gt)},[l]);if(c.error&&Xu(l.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:d,mutateAsync:c.mutate}}const pp=r=>{let o;const i=new Set,l=(g,E)=>{const P=typeof g=="function"?g(o):g;if(!Object.is(P,o)){const T=o;o=E??(typeof P!="object"||P===null)?P:Object.assign({},o,P),i.forEach(v=>v(o,T))}},c=()=>o,p={setState:l,getState:c,getInitialState:()=>x,subscribe:g=>(i.add(g),()=>i.delete(g))},x=o=r(l,c,p);return p},Zy=(r=>r?pp(r):pp),Jy=r=>r;function ev(r,o=Jy){const i=K.useSyncExternalStore(r.subscribe,K.useCallback(()=>o(r.getState()),[r,o]),K.useCallback(()=>o(r.getInitialState()),[r,o]));return K.useDebugValue(i),i}const hp=r=>{const o=Zy(r),i=l=>ev(o,l);return Object.assign(i,o),i},tv=(r=>r?hp(r):hp),Yr=tv(r=>({activeTab:"model",setActiveTab:o=>r({activeTab:o}),connectionStatus:"disconnected",setConnectionStatus:o=>r({connectionStatus:o}),providerModal:{open:!1},openProviderModal:o=>r({providerModal:{open:!0,provider:o}}),closeProviderModal:()=>r({providerModal:{open:!1}}),channelModal:{open:!1},openChannelModal:o=>r({channelModal:{open:!0,channel:o}}),closeChannelModal:()=>r({channelModal:{open:!1}})}));function dh(r){var o,i,l="";if(typeof r=="string"||typeof r=="number")l+=r;else if(typeof r=="object")if(Array.isArray(r)){var c=r.length;for(o=0;o<c;o++)r[o]&&(i=dh(r[o]))&&(l&&(l+=" "),l+=i)}else for(i in r)r[i]&&(l&&(l+=" "),l+=i);return l}function fh(){for(var r,o,i=0,l="",c=arguments.length;i<c;i++)(r=arguments[i])&&(o=dh(r))&&(l&&(l+=" "),l+=o);return l}const nc="-",nv=r=>{const o=ov(r),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=r;return{getClassGroupId:m=>{const p=m.split(nc);return p[0]===""&&p.length!==1&&p.shift(),ph(p,o)||rv(m)},getConflictingClassGroupIds:(m,p)=>{const x=i[m]||[];return p&&l[m]?[...x,...l[m]]:x}}},ph=(r,o)=>{var m;if(r.length===0)return o.classGroupId;const i=r[0],l=o.nextPart.get(i),c=l?ph(r.slice(1),l):void 0;if(c)return c;if(o.validators.length===0)return;const d=r.join(nc);return(m=o.validators.find(({validator:p})=>p(d)))==null?void 0:m.classGroupId},mp=/^\[(.+)\]$/,rv=r=>{if(mp.test(r)){const o=mp.exec(r)[1],i=o==null?void 0:o.substring(0,o.indexOf(":"));if(i)return"arbitrary.."+i}},ov=r=>{const{theme:o,prefix:i}=r,l={nextPart:new Map,validators:[]};return iv(Object.entries(r.classGroups),i).forEach(([d,m])=>{Bu(m,l,d,o)}),l},Bu=(r,o,i,l)=>{r.forEach(c=>{if(typeof c=="string"){const d=c===""?o:gp(o,c);d.classGroupId=i;return}if(typeof c=="function"){if(sv(c)){Bu(c(l),o,i,l);return}o.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([d,m])=>{Bu(m,gp(o,d),i,l)})})},gp=(r,o)=>{let i=r;return o.split(nc).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},sv=r=>r.isThemeGetter,iv=(r,o)=>o?r.map(([i,l])=>{const c=l.map(d=>typeof d=="string"?o+d:typeof d=="object"?Object.fromEntries(Object.entries(d).map(([m,p])=>[o+m,p])):d);return[i,c]}):r,av=r=>{if(r<1)return{get:()=>{},set:()=>{}};let o=0,i=new Map,l=new Map;const c=(d,m)=>{i.set(d,m),o++,o>r&&(o=0,l=i,i=new Map)};return{get(d){let m=i.get(d);if(m!==void 0)return m;if((m=l.get(d))!==void 0)return c(d,m),m},set(d,m){i.has(d)?i.set(d,m):c(d,m)}}},hh="!",lv=r=>{const{separator:o,experimentalParseClassName:i}=r,l=o.length===1,c=o[0],d=o.length,m=p=>{const x=[];let g=0,E=0,P;for(let R=0;R<p.length;R++){let D=p[R];if(g===0){if(D===c&&(l||p.slice(R,R+d)===o)){x.push(p.slice(E,R)),E=R+d;continue}if(D==="/"){P=R;continue}}D==="["?g++:D==="]"&&g--}const T=x.length===0?p:p.substring(E),v=T.startsWith(hh),I=v?T.substring(1):T,b=P&&P>E?P-E:void 0;return{modifiers:x,hasImportantModifier:v,baseClassName:I,maybePostfixModifierPosition:b}};return i?p=>i({className:p,parseClassName:m}):m},uv=r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(l=>{l[0]==="["?(o.push(...i.sort(),l),i=[]):i.push(l)}),o.push(...i.sort()),o},cv=r=>({cache:av(r.cacheSize),parseClassName:lv(r),...nv(r)}),dv=/\s+/,fv=(r,o)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:c}=o,d=[],m=r.trim().split(dv);let p="";for(let x=m.length-1;x>=0;x-=1){const g=m[x],{modifiers:E,hasImportantModifier:P,baseClassName:T,maybePostfixModifierPosition:v}=i(g);let I=!!v,b=l(I?T.substring(0,v):T);if(!b){if(!I){p=g+(p.length>0?" "+p:p);continue}if(b=l(T),!b){p=g+(p.length>0?" "+p:p);continue}I=!1}const R=uv(E).join(":"),D=P?R+hh:R,F=D+b;if(d.includes(F))continue;d.push(F);const B=c(b,I);for(let _=0;_<B.length;++_){const G=B[_];d.push(D+G)}p=g+(p.length>0?" "+p:p)}return p};function pv(){let r=0,o,i,l="";for(;r<arguments.length;)(o=arguments[r++])&&(i=mh(o))&&(l&&(l+=" "),l+=i);return l}const mh=r=>{if(typeof r=="string")return r;let o,i="";for(let l=0;l<r.length;l++)r[l]&&(o=mh(r[l]))&&(i&&(i+=" "),i+=o);return i};function hv(r,...o){let i,l,c,d=m;function m(x){const g=o.reduce((E,P)=>P(E),r());return i=cv(g),l=i.cache.get,c=i.cache.set,d=p,p(x)}function p(x){const g=l(x);if(g)return g;const E=fv(x,i);return c(x,E),E}return function(){return d(pv.apply(null,arguments))}}const Le=r=>{const o=i=>i[r]||[];return o.isThemeGetter=!0,o},gh=/^\[(?:([a-z-]+):)?(.+)\]$/i,mv=/^\d+\/\d+$/,gv=new Set(["px","full","screen"]),yv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vv=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=r=>Oo(r)||gv.has(r)||mv.test(r),ir=r=>Ko(r,"length",Rv),Oo=r=>!!r&&!Number.isNaN(Number(r)),yu=r=>Ko(r,"number",Oo),Is=r=>!!r&&Number.isInteger(Number(r)),bv=r=>r.endsWith("%")&&Oo(r.slice(0,-1)),me=r=>gh.test(r),ar=r=>yv.test(r),kv=new Set(["length","size","percentage"]),Cv=r=>Ko(r,kv,yh),Ev=r=>Ko(r,"position",yh),Nv=new Set(["image","url"]),Pv=r=>Ko(r,Nv,Tv),jv=r=>Ko(r,"",Mv),As=()=>!0,Ko=(r,o,i)=>{const l=gh.exec(r);return l?l[1]?typeof o=="string"?l[1]===o:o.has(l[1]):i(l[2]):!1},Rv=r=>vv.test(r)&&!wv.test(r),yh=()=>!1,Mv=r=>xv.test(r),Tv=r=>Sv.test(r),Ov=()=>{const r=Le("colors"),o=Le("spacing"),i=Le("blur"),l=Le("brightness"),c=Le("borderColor"),d=Le("borderRadius"),m=Le("borderSpacing"),p=Le("borderWidth"),x=Le("contrast"),g=Le("grayscale"),E=Le("hueRotate"),P=Le("invert"),T=Le("gap"),v=Le("gradientColorStops"),I=Le("gradientColorStopPositions"),b=Le("inset"),R=Le("margin"),D=Le("opacity"),F=Le("padding"),B=Le("saturate"),_=Le("scale"),G=Le("sepia"),ee=Le("skew"),$=Le("space"),X=Le("translate"),he=()=>["auto","contain","none"],ye=()=>["auto","hidden","clip","visible","scroll"],Pe=()=>["auto",me,o],ae=()=>[me,o],Fe=()=>["",Tn,ir],Te=()=>["auto",Oo,me],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Oe=()=>["solid","dashed","dotted","double","none"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",me],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[Oo,me];return{cacheSize:500,separator:":",theme:{colors:[As],spacing:[Tn,ir],blur:["none","",ar,me],brightness:N(),borderColor:[r],borderRadius:["none","","full",ar,me],borderSpacing:ae(),borderWidth:Fe(),contrast:N(),grayscale:W(),hueRotate:N(),invert:W(),gap:ae(),gradientColorStops:[r],gradientColorStopPositions:[bv,ir],inset:Pe(),margin:Pe(),opacity:N(),padding:ae(),saturate:N(),scale:N(),sepia:W(),skew:N(),space:ae(),translate:ae()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[ar]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Be(),me]}],overflow:[{overflow:ye()}],"overflow-x":[{"overflow-x":ye()}],"overflow-y":[{"overflow-y":ye()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Is,me]}],basis:[{basis:Pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",Is,me]}],"grid-cols":[{"grid-cols":[As]}],"col-start-end":[{col:["auto",{span:["full",Is,me]},me]}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":[As]}],"row-start-end":[{row:["auto",{span:[Is,me]},me]}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[F]}],px:[{px:[F]}],py:[{py:[F]}],ps:[{ps:[F]}],pe:[{pe:[F]}],pt:[{pt:[F]}],pr:[{pr:[F]}],pb:[{pb:[F]}],pl:[{pl:[F]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,o]}],"min-w":[{"min-w":[me,o,"min","max","fit"]}],"max-w":[{"max-w":[me,o,"none","full","min","max","fit","prose",{screen:[ar]},ar]}],h:[{h:[me,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,o,"auto","min","max","fit"]}],"font-size":[{text:["base",ar,ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yu]}],"font-family":[{font:[As]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",me]}],"line-clamp":[{"line-clamp":["none",Oo,yu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[D]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,ir]}],"underline-offset":[{"underline-offset":["auto",Tn,me]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ae()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[D]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Be(),Ev]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Cv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Pv]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[I]}],"gradient-via-pos":[{via:[I]}],"gradient-to-pos":[{to:[I]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[d]}],"rounded-s":[{"rounded-s":[d]}],"rounded-e":[{"rounded-e":[d]}],"rounded-t":[{"rounded-t":[d]}],"rounded-r":[{"rounded-r":[d]}],"rounded-b":[{"rounded-b":[d]}],"rounded-l":[{"rounded-l":[d]}],"rounded-ss":[{"rounded-ss":[d]}],"rounded-se":[{"rounded-se":[d]}],"rounded-ee":[{"rounded-ee":[d]}],"rounded-es":[{"rounded-es":[d]}],"rounded-tl":[{"rounded-tl":[d]}],"rounded-tr":[{"rounded-tr":[d]}],"rounded-br":[{"rounded-br":[d]}],"rounded-bl":[{"rounded-bl":[d]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[D]}],"border-style":[{border:[...Oe(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[D]}],"divide-style":[{divide:Oe()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...Oe()]}],"outline-offset":[{"outline-offset":[Tn,me]}],"outline-w":[{outline:[Tn,ir]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:Fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[D]}],"ring-offset-w":[{"ring-offset":[Tn,ir]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",ar,jv]}],"shadow-color":[{shadow:[As]}],opacity:[{opacity:[D]}],"mix-blend":[{"mix-blend":[...xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[x]}],"drop-shadow":[{"drop-shadow":["","none",ar,me]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[E]}],invert:[{invert:[P]}],saturate:[{saturate:[B]}],sepia:[{sepia:[G]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[x]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E]}],"backdrop-invert":[{"backdrop-invert":[P]}],"backdrop-opacity":[{"backdrop-opacity":[D]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",me]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Is,me]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[ee]}],"skew-y":[{"skew-y":[ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",me]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ae()}],"scroll-mx":[{"scroll-mx":ae()}],"scroll-my":[{"scroll-my":ae()}],"scroll-ms":[{"scroll-ms":ae()}],"scroll-me":[{"scroll-me":ae()}],"scroll-mt":[{"scroll-mt":ae()}],"scroll-mr":[{"scroll-mr":ae()}],"scroll-mb":[{"scroll-mb":ae()}],"scroll-ml":[{"scroll-ml":ae()}],"scroll-p":[{"scroll-p":ae()}],"scroll-px":[{"scroll-px":ae()}],"scroll-py":[{"scroll-py":ae()}],"scroll-ps":[{"scroll-ps":ae()}],"scroll-pe":[{"scroll-pe":ae()}],"scroll-pt":[{"scroll-pt":ae()}],"scroll-pr":[{"scroll-pr":ae()}],"scroll-pb":[{"scroll-pb":ae()}],"scroll-pl":[{"scroll-pl":ae()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Tn,ir,yu]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},_v=hv(Ov);function Ee(...r){return _v(fh(r))}/**
41
41
  * @license lucide-react v0.462.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
@@ -47,143 +47,148 @@ Error generating stack: `+u.message+`
47
47
  *
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
- */var _v={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"};/**
50
+ */var Iv={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
51
  * @license lucide-react v0.462.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const Iv=k.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:m,...p},x)=>k.createElement("svg",{ref:x,..._v,width:o,height:o,stroke:r,strokeWidth:l?Number(i)*24/Number(o):i,className:vh("lucide",c),...p},[...m.map(([g,E])=>k.createElement(g,E)),...Array.isArray(d)?d:[d]]));/**
55
+ */const Av=k.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:m,...p},x)=>k.createElement("svg",{ref:x,...Iv,width:o,height:o,stroke:r,strokeWidth:l?Number(i)*24/Number(o):i,className:vh("lucide",c),...p},[...m.map(([g,E])=>k.createElement(g,E)),...Array.isArray(d)?d:[d]]));/**
56
56
  * @license lucide-react v0.462.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const Ue=(r,o)=>{const i=k.forwardRef(({className:l,...c},d)=>k.createElement(Iv,{ref:d,iconNode:o,className:vh(`lucide-${zv(r)}`,l),...c}));return i.displayName=`${r}`,i};/**
60
+ */const De=(r,o)=>{const i=k.forwardRef(({className:l,...c},d)=>k.createElement(Av,{ref:d,iconNode:o,className:vh(`lucide-${zv(r)}`,l),...c}));return i.displayName=`${r}`,i};/**
61
61
  * @license lucide-react v0.462.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
- */const Av=Ue("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
65
+ */const wh=De("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
66
66
  * @license lucide-react v0.462.0 - ISC
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const Lv=Ue("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
70
+ */const Lv=De("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
71
71
  * @license lucide-react v0.462.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const Dv=Ue("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
75
+ */const Dv=De("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
76
76
  * @license lucide-react v0.462.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
- */const Fv=Ue("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
80
+ */const Fv=De("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
81
81
  * @license lucide-react v0.462.0 - ISC
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const Uv=Ue("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
85
+ */const Uv=De("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
86
86
  * @license lucide-react v0.462.0 - ISC
87
87
  *
88
88
  * This source code is licensed under the ISC license.
89
89
  * See the LICENSE file in the root directory of this source tree.
90
- */const Bv=Ue("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
90
+ */const Bv=De("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
91
91
  * @license lucide-react v0.462.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
- */const Wv=Ue("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
95
+ */const Wv=De("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
96
96
  * @license lucide-react v0.462.0 - ISC
97
97
  *
98
98
  * This source code is licensed under the ISC license.
99
99
  * See the LICENSE file in the root directory of this source tree.
100
- */const wh=Ue("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
100
+ */const Vv=De("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
101
101
  * @license lucide-react v0.462.0 - ISC
102
102
  *
103
103
  * This source code is licensed under the ISC license.
104
104
  * See the LICENSE file in the root directory of this source tree.
105
- */const Wu=Ue("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
105
+ */const xh=De("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
106
106
  * @license lucide-react v0.462.0 - ISC
107
107
  *
108
108
  * This source code is licensed under the ISC license.
109
109
  * See the LICENSE file in the root directory of this source tree.
110
- */const Ea=Ue("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
110
+ */const Wu=De("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
111
111
  * @license lucide-react v0.462.0 - ISC
112
112
  *
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
- */const Vv=Ue("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
115
+ */const Ea=De("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
116
116
  * @license lucide-react v0.462.0 - ISC
117
117
  *
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
- */const rc=Ue("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
120
+ */const Qv=De("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
121
121
  * @license lucide-react v0.462.0 - ISC
122
122
  *
123
123
  * This source code is licensed under the ISC license.
124
124
  * See the LICENSE file in the root directory of this source tree.
125
- */const wa=Ue("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
125
+ */const rc=De("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
126
126
  * @license lucide-react v0.462.0 - ISC
127
127
  *
128
128
  * This source code is licensed under the ISC license.
129
129
  * See the LICENSE file in the root directory of this source tree.
130
- */const oc=Ue("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
130
+ */const wa=De("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
131
131
  * @license lucide-react v0.462.0 - ISC
132
132
  *
133
133
  * This source code is licensed under the ISC license.
134
134
  * See the LICENSE file in the root directory of this source tree.
135
- */const Qv=Ue("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
135
+ */const oc=De("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
136
136
  * @license lucide-react v0.462.0 - ISC
137
137
  *
138
138
  * This source code is licensed under the ISC license.
139
139
  * See the LICENSE file in the root directory of this source tree.
140
- */const $v=Ue("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
140
+ */const $v=De("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
141
141
  * @license lucide-react v0.462.0 - ISC
142
142
  *
143
143
  * This source code is licensed under the ISC license.
144
144
  * See the LICENSE file in the root directory of this source tree.
145
- */const xh=Ue("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
145
+ */const Hv=De("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
146
146
  * @license lucide-react v0.462.0 - ISC
147
147
  *
148
148
  * This source code is licensed under the ISC license.
149
149
  * See the LICENSE file in the root directory of this source tree.
150
- */const Hv=Ue("Slack",[["rect",{width:"3",height:"8",x:"13",y:"2",rx:"1.5",key:"diqz80"}],["path",{d:"M19 8.5V10h1.5A1.5 1.5 0 1 0 19 8.5",key:"183iwg"}],["rect",{width:"3",height:"8",x:"8",y:"14",rx:"1.5",key:"hqg7r1"}],["path",{d:"M5 15.5V14H3.5A1.5 1.5 0 1 0 5 15.5",key:"76g71w"}],["rect",{width:"8",height:"3",x:"14",y:"13",rx:"1.5",key:"1kmz0a"}],["path",{d:"M15.5 19H14v1.5a1.5 1.5 0 1 0 1.5-1.5",key:"jc4sz0"}],["rect",{width:"8",height:"3",x:"2",y:"8",rx:"1.5",key:"1omvl4"}],["path",{d:"M8.5 5H10V3.5A1.5 1.5 0 1 0 8.5 5",key:"16f3cl"}]]);/**
150
+ */const Sh=De("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
151
151
  * @license lucide-react v0.462.0 - ISC
152
152
  *
153
153
  * This source code is licensed under the ISC license.
154
154
  * See the LICENSE file in the root directory of this source tree.
155
- */const Kv=Ue("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
155
+ */const Kv=De("Slack",[["rect",{width:"3",height:"8",x:"13",y:"2",rx:"1.5",key:"diqz80"}],["path",{d:"M19 8.5V10h1.5A1.5 1.5 0 1 0 19 8.5",key:"183iwg"}],["rect",{width:"3",height:"8",x:"8",y:"14",rx:"1.5",key:"hqg7r1"}],["path",{d:"M5 15.5V14H3.5A1.5 1.5 0 1 0 5 15.5",key:"76g71w"}],["rect",{width:"8",height:"3",x:"14",y:"13",rx:"1.5",key:"1kmz0a"}],["path",{d:"M15.5 19H14v1.5a1.5 1.5 0 1 0 1.5-1.5",key:"jc4sz0"}],["rect",{width:"8",height:"3",x:"2",y:"8",rx:"1.5",key:"1omvl4"}],["path",{d:"M8.5 5H10V3.5A1.5 1.5 0 1 0 8.5 5",key:"16f3cl"}]]);/**
156
156
  * @license lucide-react v0.462.0 - ISC
157
157
  *
158
158
  * This source code is licensed under the ISC license.
159
159
  * See the LICENSE file in the root directory of this source tree.
160
- */const Sh=Ue("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
160
+ */const Gv=De("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
161
161
  * @license lucide-react v0.462.0 - ISC
162
162
  *
163
163
  * This source code is licensed under the ISC license.
164
164
  * See the LICENSE file in the root directory of this source tree.
165
- */const Gv=Ue("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
165
+ */const bh=De("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
166
166
  * @license lucide-react v0.462.0 - ISC
167
167
  *
168
168
  * This source code is licensed under the ISC license.
169
169
  * See the LICENSE file in the root directory of this source tree.
170
- */const qv=Ue("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"}]]);/**
170
+ */const qv=De("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
171
171
  * @license lucide-react v0.462.0 - ISC
172
172
  *
173
173
  * This source code is licensed under the ISC license.
174
174
  * See the LICENSE file in the root directory of this source tree.
175
- */const bh=Ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
175
+ */const Yv=De("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"}]]);/**
176
176
  * @license lucide-react v0.462.0 - ISC
177
177
  *
178
178
  * This source code is licensed under the ISC license.
179
179
  * See the LICENSE file in the root directory of this source tree.
180
- */const Yv=Ue("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Xv=[{id:"model",label:"Models",icon:Dv},{id:"providers",label:"Providers",icon:Sh},{id:"channels",label:"Channels",icon:oc}];function Zv(){const{activeTab:r,setActiveTab:o}=Yr();return h.jsxs("aside",{className:"w-[240px] bg-transparent flex flex-col h-full py-6 px-4",children:[h.jsx("div",{className:"px-3 mb-8",children:h.jsxs("div",{className:"flex items-center gap-2 group cursor-pointer",children:[h.jsx("div",{className:"h-7 w-7 rounded-lg overflow-hidden flex items-center justify-center transition-transform duration-fast group-hover:scale-110",children:h.jsx("img",{src:"/logo.svg",alt:"NextClaw Logo",className:"h-full w-full object-contain"})}),h.jsx("h1",{className:"text-lg font-bold text-gray-900 tracking-tight",children:"nextclaw"})]})}),h.jsx("nav",{className:"flex-1",children:h.jsx("ul",{className:"space-y-1",children:Xv.map(i=>{const l=i.icon,c=r===i.id;return h.jsx("li",{children:h.jsxs("button",{onClick:()=>o(i.id),className:Ee("group w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-all duration-fast",c?"bg-primary-100 text-primary-700":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"),children:[h.jsx(l,{className:Ee("h-4 w-4 transition-transform duration-fast group-hover:scale-110",c?"text-primary":"text-gray-500")}),h.jsx("span",{className:"flex-1 text-left",children:i.label})]})},i.id)})})})]})}function Jv({children:r}){return h.jsxs("div",{className:"h-screen flex bg-[hsl(40,20%,98%)] p-2",children:[h.jsx(Zv,{}),h.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-white rounded-[2rem] shadow-sm overflow-hidden border border-[hsl(40,10%,94%)]",children:h.jsx("main",{className:"flex-1 overflow-auto custom-scrollbar p-8",children:h.jsx("div",{className:"max-w-6xl mx-auto animate-fade-in h-full",children:r})})})]})}const yp=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,vp=fh,e0=(r,o)=>i=>{var l;if((o==null?void 0:o.variants)==null)return vp(r,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:d}=o,m=Object.keys(c).map(g=>{const E=i==null?void 0:i[g],P=d==null?void 0:d[g];if(E===null)return null;const T=yp(E)||yp(P);return c[g][T]}),p=i&&Object.entries(i).reduce((g,E)=>{let[P,T]=E;return T===void 0||(g[P]=T),g},{}),x=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((g,E)=>{let{class:P,className:T,...v}=E;return Object.entries(v).every(I=>{let[b,R]=I;return Array.isArray(R)?R.includes({...d,...p}[b]):{...d,...p}[b]===R})?[...g,P,T]:g},[]);return vp(r,m,x,i==null?void 0:i.class,i==null?void 0:i.className)},t0=e0("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-all duration-fast focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-600 active:bg-primary-700 shadow-sm",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-gray-200",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground hover:bg-primary-600 active:bg-primary-700 shadow-sm",subtle:"bg-secondary text-secondary-foreground hover:bg-gray-200","primary-outline":"border-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground"},size:{default:"h-10 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-12 rounded-xl px-6 text-base",xl:"h-14 rounded-xl px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Vt=k.forwardRef(({className:r,variant:o,size:i,...l},c)=>h.jsx("button",{className:Ee(t0({variant:o,size:i,className:r})),ref:c,...l}));Vt.displayName="Button";const Vu=k.forwardRef(({className:r,hover:o=!0,...i},l)=>h.jsx("div",{ref:l,className:Ee("rounded-xl border border-gray-200 bg-white text-card-foreground shadow-card transition-all duration-base",o&&"hover:shadow-card-hover hover:border-gray-300",r),...i}));Vu.displayName="Card";const n0=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("flex flex-col space-y-2 p-6",r),...o}));n0.displayName="CardHeader";const r0=k.forwardRef(({className:r,...o},i)=>h.jsx("h3",{ref:i,className:Ee("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));r0.displayName="CardTitle";const o0=k.forwardRef(({className:r,...o},i)=>h.jsx("p",{ref:i,className:Ee("text-sm text-gray-500 leading-relaxed",r),...o}));o0.displayName="CardDescription";const s0=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("p-6 pt-0",r),...o}));s0.displayName="CardContent";const i0=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("flex items-center justify-between p-6 pt-0",r),...o}));i0.displayName="CardFooter";const Sn=k.forwardRef(({className:r,type:o,...i},l)=>h.jsx("input",{type:o,className:Ee("flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",r),ref:l,...i}));Sn.displayName="Input";const xn=k.forwardRef(({className:r,...o},i)=>h.jsx("label",{ref:i,className:Ee("text-sm font-medium leading-none text-gray-700 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),...o}));xn.displayName="Label";function Ot({className:r,...o}){return h.jsx("div",{className:Ee("animate-pulse rounded-md bg-slate-200",r),...o})}const a0="http://127.0.0.1:18791",xa=(()=>{var r;return typeof window<"u"&&((r=window.location)!=null&&r.origin)?window.location.origin:a0})();async function vu(r,o={}){const i=`${xa}${r}`,l=await fetch(i,{headers:{"Content-Type":"application/json",...o.headers},...o}),c=await l.text();let d=null;if(c)try{d=JSON.parse(c)}catch{}if(!d){const m=c?c.slice(0,200):"";return{ok:!1,error:{code:"INVALID_RESPONSE",message:`Non-JSON response (${l.status} ${l.statusText})${m?`: ${m}`:""}`}}}return l.ok,d}const Xr={get:r=>vu(r,{method:"GET"}),put:(r,o)=>vu(r,{method:"PUT",body:JSON.stringify(o)}),post:(r,o)=>vu(r,{method:"POST",body:JSON.stringify(o)})};async function l0(){const r=await Xr.get("/api/config");if(!r.ok)throw new Error(r.error.message);return r.data}async function u0(){const r=await Xr.get("/api/config/meta");if(!r.ok)throw new Error(r.error.message);return r.data}async function c0(){const r=await Xr.get("/api/config/schema");if(!r.ok)throw new Error(r.error.message);return r.data}async function d0(r){const o=await Xr.put("/api/config/model",r);if(!o.ok)throw new Error(o.error.message);return o.data}async function f0(r,o){const i=await Xr.put(`/api/config/providers/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function p0(r,o){const i=await Xr.put(`/api/config/channels/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function h0(){const r=await Xr.post("/api/channels/feishu/probe",{});if(!r.ok)throw new Error(r.error.message);return r.data}var kh=Jp();const Ch=Xp(kh);var m0=r=>{switch(r){case"success":return v0;case"info":return x0;case"warning":return w0;case"error":return S0;default:return null}},g0=Array(12).fill(0),y0=({visible:r,className:o})=>K.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":r},K.createElement("div",{className:"sonner-spinner"},g0.map((i,l)=>K.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),v0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),w0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),x0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),S0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),b0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},K.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),k0=()=>{let[r,o]=K.useState(document.hidden);return K.useEffect(()=>{let i=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),r},Qu=1,C0=class{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{let o=this.subscribers.indexOf(r);this.subscribers.splice(o,1)}),this.publish=r=>{this.subscribers.forEach(o=>o(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var o;let{message:i,...l}=r,c=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:Qu++,d=this.toasts.find(p=>p.id===c),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...r,id:c,title:i}),{...p,...r,id:c,dismissible:m,title:i}):p):this.addToast({title:i,...l,dismissible:m,id:c}),c},this.dismiss=r=>(this.dismissedToasts.add(r),r||this.toasts.forEach(o=>{this.subscribers.forEach(i=>i({id:o.id,dismiss:!0}))}),this.subscribers.forEach(o=>o({id:r,dismiss:!0})),r),this.message=(r,o)=>this.create({...o,message:r}),this.error=(r,o)=>this.create({...o,message:r,type:"error"}),this.success=(r,o)=>this.create({...o,type:"success",message:r}),this.info=(r,o)=>this.create({...o,type:"info",message:r}),this.warning=(r,o)=>this.create({...o,type:"warning",message:r}),this.loading=(r,o)=>this.create({...o,type:"loading",message:r}),this.promise=(r,o)=>{if(!o)return;let i;o.loading!==void 0&&(i=this.create({...o,promise:r,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));let l=r instanceof Promise?r:r(),c=i!==void 0,d,m=l.then(async x=>{if(d=["resolve",x],K.isValidElement(x))c=!1,this.create({id:i,type:"default",message:x});else if(N0(x)&&!x.ok){c=!1;let g=typeof o.error=="function"?await o.error(`HTTP error! status: ${x.status}`):o.error,E=typeof o.description=="function"?await o.description(`HTTP error! status: ${x.status}`):o.description;this.create({id:i,type:"error",message:g,description:E})}else if(o.success!==void 0){c=!1;let g=typeof o.success=="function"?await o.success(x):o.success,E=typeof o.description=="function"?await o.description(x):o.description;this.create({id:i,type:"success",message:g,description:E})}}).catch(async x=>{if(d=["reject",x],o.error!==void 0){c=!1;let g=typeof o.error=="function"?await o.error(x):o.error,E=typeof o.description=="function"?await o.description(x):o.description;this.create({id:i,type:"error",message:g,description:E})}}).finally(()=>{var x;c&&(this.dismiss(i),i=void 0),(x=o.finally)==null||x.call(o)}),p=()=>new Promise((x,g)=>m.then(()=>d[0]==="reject"?g(d[1]):x(d[1])).catch(g));return typeof i!="string"&&typeof i!="number"?{unwrap:p}:Object.assign(i,{unwrap:p})},this.custom=(r,o)=>{let i=(o==null?void 0:o.id)||Qu++;return this.create({jsx:r(i),id:i,...o}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Pt=new C0,E0=(r,o)=>{let i=(o==null?void 0:o.id)||Qu++;return Pt.addToast({title:r,...o,id:i}),i},N0=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",P0=E0,j0=()=>Pt.toasts,R0=()=>Pt.getActiveToasts(),Sr=Object.assign(P0,{success:Pt.success,info:Pt.info,warning:Pt.warning,error:Pt.error,custom:Pt.custom,message:Pt.message,promise:Pt.promise,dismiss:Pt.dismiss,loading:Pt.loading},{getHistory:j0,getToasts:R0});function M0(r,{insertAt:o}={}){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",o==="top"&&i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}M0(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
181
- `);function fa(r){return r.label!==void 0}var T0=3,O0="32px",z0="16px",wp=4e3,_0=356,I0=14,A0=20,L0=200;function Jt(...r){return r.filter(Boolean).join(" ")}function D0(r){let[o,i]=r.split("-"),l=[];return o&&l.push(o),i&&l.push(i),l}var F0=r=>{var o,i,l,c,d,m,p,x,g,E,P;let{invert:T,toast:v,unstyled:I,interacting:b,setHeights:R,visibleToasts:D,heights:F,index:B,toasts:z,expanded:G,removeToast:ee,defaultRichColors:$,closeButton:X,style:he,cancelButtonStyle:ye,actionButtonStyle:Pe,className:ae="",descriptionClassName:De="",duration:Te,position:Be,gap:Oe,loadingIcon:xe,expandByDefault:H,classNames:W,icons:Q,closeButtonAriaLabel:N="Close toast",pauseWhenPageIsHidden:_}=r,[te,oe]=K.useState(null),[de,ve]=K.useState(null),[ce,be]=K.useState(!1),[je,Ze]=K.useState(!1),[rn,Jr]=K.useState(!1),[br,Go]=K.useState(!1),[qs,qo]=K.useState(!1),[Yo,eo]=K.useState(0),[Xo,Fn]=K.useState(0),zt=K.useRef(v.duration||Te||wp),to=K.useRef(null),on=K.useRef(null),Ys=B===0,Xs=B+1<=D,dt=v.type,sn=v.dismissible!==!1,no=v.className||"",Zs=v.descriptionClassName||"",an=K.useMemo(()=>F.findIndex(pe=>pe.toastId===v.id)||0,[F,v.id]),kr=K.useMemo(()=>{var pe;return(pe=v.closeButton)!=null?pe:X},[v.closeButton,X]),Js=K.useMemo(()=>v.duration||Te||wp,[v.duration,Te]),ro=K.useRef(0),bn=K.useRef(0),ei=K.useRef(0),ln=K.useRef(null),[Zo,Jo]=Be.split("-"),oo=K.useMemo(()=>F.reduce((pe,Ne,ze)=>ze>=an?pe:pe+Ne.height,0),[F,an]),so=k0(),Un=v.invert||T,un=dt==="loading";bn.current=K.useMemo(()=>an*Oe+oo,[an,oo]),K.useEffect(()=>{zt.current=Js},[Js]),K.useEffect(()=>{be(!0)},[]),K.useEffect(()=>{let pe=on.current;if(pe){let Ne=pe.getBoundingClientRect().height;return Fn(Ne),R(ze=>[{toastId:v.id,height:Ne,position:v.position},...ze]),()=>R(ze=>ze.filter(ft=>ft.toastId!==v.id))}},[R,v.id]),K.useLayoutEffect(()=>{if(!ce)return;let pe=on.current,Ne=pe.style.height;pe.style.height="auto";let ze=pe.getBoundingClientRect().height;pe.style.height=Ne,Fn(ze),R(ft=>ft.find(yt=>yt.toastId===v.id)?ft.map(yt=>yt.toastId===v.id?{...yt,height:ze}:yt):[{toastId:v.id,height:ze,position:v.position},...ft])},[ce,v.title,v.description,R,v.id]);let Qt=K.useCallback(()=>{Ze(!0),eo(bn.current),R(pe=>pe.filter(Ne=>Ne.toastId!==v.id)),setTimeout(()=>{ee(v)},L0)},[v,ee,R,bn]);K.useEffect(()=>{if(v.promise&&dt==="loading"||v.duration===1/0||v.type==="loading")return;let pe;return G||b||_&&so?(()=>{if(ei.current<ro.current){let Ne=new Date().getTime()-ro.current;zt.current=zt.current-Ne}ei.current=new Date().getTime()})():zt.current!==1/0&&(ro.current=new Date().getTime(),pe=setTimeout(()=>{var Ne;(Ne=v.onAutoClose)==null||Ne.call(v,v),Qt()},zt.current)),()=>clearTimeout(pe)},[G,b,v,dt,_,so,Qt]),K.useEffect(()=>{v.delete&&Qt()},[Qt,v.delete]);function ti(){var pe,Ne,ze;return Q!=null&&Q.loading?K.createElement("div",{className:Jt(W==null?void 0:W.loader,(pe=v==null?void 0:v.classNames)==null?void 0:pe.loader,"sonner-loader"),"data-visible":dt==="loading"},Q.loading):xe?K.createElement("div",{className:Jt(W==null?void 0:W.loader,(Ne=v==null?void 0:v.classNames)==null?void 0:Ne.loader,"sonner-loader"),"data-visible":dt==="loading"},xe):K.createElement(y0,{className:Jt(W==null?void 0:W.loader,(ze=v==null?void 0:v.classNames)==null?void 0:ze.loader),visible:dt==="loading"})}return K.createElement("li",{tabIndex:0,ref:on,className:Jt(ae,no,W==null?void 0:W.toast,(o=v==null?void 0:v.classNames)==null?void 0:o.toast,W==null?void 0:W.default,W==null?void 0:W[dt],(i=v==null?void 0:v.classNames)==null?void 0:i[dt]),"data-sonner-toast":"","data-rich-colors":(l=v.richColors)!=null?l:$,"data-styled":!(v.jsx||v.unstyled||I),"data-mounted":ce,"data-promise":!!v.promise,"data-swiped":qs,"data-removed":je,"data-visible":Xs,"data-y-position":Zo,"data-x-position":Jo,"data-index":B,"data-front":Ys,"data-swiping":rn,"data-dismissible":sn,"data-type":dt,"data-invert":Un,"data-swipe-out":br,"data-swipe-direction":de,"data-expanded":!!(G||H&&ce),style:{"--index":B,"--toasts-before":B,"--z-index":z.length-B,"--offset":`${je?Yo:bn.current}px`,"--initial-height":H?"auto":`${Xo}px`,...he,...v.style},onDragEnd:()=>{Jr(!1),oe(null),ln.current=null},onPointerDown:pe=>{un||!sn||(to.current=new Date,eo(bn.current),pe.target.setPointerCapture(pe.pointerId),pe.target.tagName!=="BUTTON"&&(Jr(!0),ln.current={x:pe.clientX,y:pe.clientY}))},onPointerUp:()=>{var pe,Ne,ze,ft;if(br||!sn)return;ln.current=null;let yt=Number(((pe=on.current)==null?void 0:pe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vt=Number(((Ne=on.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),$t=new Date().getTime()-((ze=to.current)==null?void 0:ze.getTime()),rt=te==="x"?yt:vt,cn=Math.abs(rt)/$t;if(Math.abs(rt)>=A0||cn>.11){eo(bn.current),(ft=v.onDismiss)==null||ft.call(v,v),ve(te==="x"?yt>0?"right":"left":vt>0?"down":"up"),Qt(),Go(!0),qo(!1);return}Jr(!1),oe(null)},onPointerMove:pe=>{var Ne,ze,ft,yt;if(!ln.current||!sn||((Ne=window.getSelection())==null?void 0:Ne.toString().length)>0)return;let vt=pe.clientY-ln.current.y,$t=pe.clientX-ln.current.x,rt=(ze=r.swipeDirections)!=null?ze:D0(Be);!te&&(Math.abs($t)>1||Math.abs(vt)>1)&&oe(Math.abs($t)>Math.abs(vt)?"x":"y");let cn={x:0,y:0};te==="y"?(rt.includes("top")||rt.includes("bottom"))&&(rt.includes("top")&&vt<0||rt.includes("bottom")&&vt>0)&&(cn.y=vt):te==="x"&&(rt.includes("left")||rt.includes("right"))&&(rt.includes("left")&&$t<0||rt.includes("right")&&$t>0)&&(cn.x=$t),(Math.abs(cn.x)>0||Math.abs(cn.y)>0)&&qo(!0),(ft=on.current)==null||ft.style.setProperty("--swipe-amount-x",`${cn.x}px`),(yt=on.current)==null||yt.style.setProperty("--swipe-amount-y",`${cn.y}px`)}},kr&&!v.jsx?K.createElement("button",{"aria-label":N,"data-disabled":un,"data-close-button":!0,onClick:un||!sn?()=>{}:()=>{var pe;Qt(),(pe=v.onDismiss)==null||pe.call(v,v)},className:Jt(W==null?void 0:W.closeButton,(c=v==null?void 0:v.classNames)==null?void 0:c.closeButton)},(d=Q==null?void 0:Q.close)!=null?d:b0):null,v.jsx||k.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:K.createElement(K.Fragment,null,dt||v.icon||v.promise?K.createElement("div",{"data-icon":"",className:Jt(W==null?void 0:W.icon,(m=v==null?void 0:v.classNames)==null?void 0:m.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||ti():null,v.type!=="loading"?v.icon||(Q==null?void 0:Q[dt])||m0(dt):null):null,K.createElement("div",{"data-content":"",className:Jt(W==null?void 0:W.content,(p=v==null?void 0:v.classNames)==null?void 0:p.content)},K.createElement("div",{"data-title":"",className:Jt(W==null?void 0:W.title,(x=v==null?void 0:v.classNames)==null?void 0:x.title)},typeof v.title=="function"?v.title():v.title),v.description?K.createElement("div",{"data-description":"",className:Jt(De,Zs,W==null?void 0:W.description,(g=v==null?void 0:v.classNames)==null?void 0:g.description)},typeof v.description=="function"?v.description():v.description):null),k.isValidElement(v.cancel)?v.cancel:v.cancel&&fa(v.cancel)?K.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||ye,onClick:pe=>{var Ne,ze;fa(v.cancel)&&sn&&((ze=(Ne=v.cancel).onClick)==null||ze.call(Ne,pe),Qt())},className:Jt(W==null?void 0:W.cancelButton,(E=v==null?void 0:v.classNames)==null?void 0:E.cancelButton)},v.cancel.label):null,k.isValidElement(v.action)?v.action:v.action&&fa(v.action)?K.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||Pe,onClick:pe=>{var Ne,ze;fa(v.action)&&((ze=(Ne=v.action).onClick)==null||ze.call(Ne,pe),!pe.defaultPrevented&&Qt())},className:Jt(W==null?void 0:W.actionButton,(P=v==null?void 0:v.classNames)==null?void 0:P.actionButton)},v.action.label):null))};function xp(){if(typeof window>"u"||typeof document>"u")return"ltr";let r=document.documentElement.getAttribute("dir");return r==="auto"||!r?window.getComputedStyle(document.documentElement).direction:r}function U0(r,o){let i={};return[r,o].forEach((l,c)=>{let d=c===1,m=d?"--mobile-offset":"--offset",p=d?z0:O0;function x(g){["top","right","bottom","left"].forEach(E=>{i[`${m}-${E}`]=typeof g=="number"?`${g}px`:g})}typeof l=="number"||typeof l=="string"?x(l):typeof l=="object"?["top","right","bottom","left"].forEach(g=>{l[g]===void 0?i[`${m}-${g}`]=p:i[`${m}-${g}`]=typeof l[g]=="number"?`${l[g]}px`:l[g]}):x(p)}),i}var B0=k.forwardRef(function(r,o){let{invert:i,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:m,className:p,offset:x,mobileOffset:g,theme:E="light",richColors:P,duration:T,style:v,visibleToasts:I=T0,toastOptions:b,dir:R=xp(),gap:D=I0,loadingIcon:F,icons:B,containerAriaLabel:z="Notifications",pauseWhenPageIsHidden:G}=r,[ee,$]=K.useState([]),X=K.useMemo(()=>Array.from(new Set([l].concat(ee.filter(_=>_.position).map(_=>_.position)))),[ee,l]),[he,ye]=K.useState([]),[Pe,ae]=K.useState(!1),[De,Te]=K.useState(!1),[Be,Oe]=K.useState(E!=="system"?E:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),xe=K.useRef(null),H=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),W=K.useRef(null),Q=K.useRef(!1),N=K.useCallback(_=>{$(te=>{var oe;return(oe=te.find(de=>de.id===_.id))!=null&&oe.delete||Pt.dismiss(_.id),te.filter(({id:de})=>de!==_.id)})},[]);return K.useEffect(()=>Pt.subscribe(_=>{if(_.dismiss){$(te=>te.map(oe=>oe.id===_.id?{...oe,delete:!0}:oe));return}setTimeout(()=>{Ch.flushSync(()=>{$(te=>{let oe=te.findIndex(de=>de.id===_.id);return oe!==-1?[...te.slice(0,oe),{...te[oe],..._},...te.slice(oe+1)]:[_,...te]})})})}),[]),K.useEffect(()=>{if(E!=="system"){Oe(E);return}if(E==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Oe("dark"):Oe("light")),typeof window>"u")return;let _=window.matchMedia("(prefers-color-scheme: dark)");try{_.addEventListener("change",({matches:te})=>{Oe(te?"dark":"light")})}catch{_.addListener(({matches:oe})=>{try{Oe(oe?"dark":"light")}catch(de){console.error(de)}})}},[E]),K.useEffect(()=>{ee.length<=1&&ae(!1)},[ee]),K.useEffect(()=>{let _=te=>{var oe,de;c.every(ve=>te[ve]||te.code===ve)&&(ae(!0),(oe=xe.current)==null||oe.focus()),te.code==="Escape"&&(document.activeElement===xe.current||(de=xe.current)!=null&&de.contains(document.activeElement))&&ae(!1)};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[c]),K.useEffect(()=>{if(xe.current)return()=>{W.current&&(W.current.focus({preventScroll:!0}),W.current=null,Q.current=!1)}},[xe.current]),K.createElement("section",{ref:o,"aria-label":`${z} ${H}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},X.map((_,te)=>{var oe;let[de,ve]=_.split("-");return ee.length?K.createElement("ol",{key:_,dir:R==="auto"?xp():R,tabIndex:-1,ref:xe,className:p,"data-sonner-toaster":!0,"data-theme":Be,"data-y-position":de,"data-lifted":Pe&&ee.length>1&&!d,"data-x-position":ve,style:{"--front-toast-height":`${((oe=he[0])==null?void 0:oe.height)||0}px`,"--width":`${_0}px`,"--gap":`${D}px`,...v,...U0(x,g)},onBlur:ce=>{Q.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(Q.current=!1,W.current&&(W.current.focus({preventScroll:!0}),W.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||Q.current||(Q.current=!0,W.current=ce.relatedTarget)},onMouseEnter:()=>ae(!0),onMouseMove:()=>ae(!0),onMouseLeave:()=>{De||ae(!1)},onDragEnd:()=>ae(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||Te(!0)},onPointerUp:()=>Te(!1)},ee.filter(ce=>!ce.position&&te===0||ce.position===_).map((ce,be)=>{var je,Ze;return K.createElement(F0,{key:ce.id,icons:B,index:be,toast:ce,defaultRichColors:P,duration:(je=b==null?void 0:b.duration)!=null?je:T,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:i,visibleToasts:I,closeButton:(Ze=b==null?void 0:b.closeButton)!=null?Ze:m,interacting:De,position:_,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,removeToast:N,toasts:ee.filter(rn=>rn.position==ce.position),heights:he.filter(rn=>rn.position==ce.position),setHeights:ye,expandByDefault:d,gap:D,loadingIcon:F,expanded:Pe,pauseWhenPageIsHidden:G,swipeDirections:r.swipeDirections})})):null}))});const Sp={model:{zh:"模型",en:"Model"},providers:{zh:"提供商",en:"Providers"},channels:{zh:"渠道",en:"Channels"},enabled:{zh:"启用",en:"Enabled"},disabled:{zh:"禁用",en:"Disabled"},save:{zh:"保存",en:"Save"},cancel:{zh:"取消",en:"Cancel"},delete:{zh:"删除",en:"Delete"},add:{zh:"添加",en:"Add"},edit:{zh:"编辑",en:"Edit"},loading:{zh:"加载中...",en:"Loading..."},success:{zh:"成功",en:"Success"},error:{zh:"错误",en:"Error"},modelName:{zh:"模型",en:"Model"},workspace:{zh:"工作空间",en:"Workspace"},maxTokens:{zh:"最大 Token 数",en:"Max Tokens"},temperature:{zh:"温度",en:"Temperature"},maxToolIterations:{zh:"最大工具迭代次数",en:"Max Tool Iterations"},apiKey:{zh:"API 密钥",en:"API Key"},apiBase:{zh:"API Base",en:"API Base"},extraHeaders:{zh:"额外请求头",en:"Extra Headers"},wireApi:{zh:"请求接口",en:"Wire API"},wireApiAuto:{zh:"自动(优先 Chat,必要时 Responses)",en:"Auto (Chat with fallback)"},wireApiChat:{zh:"Chat Completions",en:"Chat Completions"},wireApiResponses:{zh:"Responses",en:"Responses"},apiKeySet:{zh:"已设置",en:"Set"},apiKeyNotSet:{zh:"未设置",en:"Not Set"},showKey:{zh:"显示密钥",en:"Show Key"},hideKey:{zh:"隐藏密钥",en:"Hide Key"},allowFrom:{zh:"允许来源",en:"Allow From"},token:{zh:"Token",en:"Token"},botToken:{zh:"Bot Token",en:"Bot Token"},appToken:{zh:"App Token",en:"App Token"},appId:{zh:"App ID",en:"App ID"},appSecret:{zh:"App Secret",en:"App Secret"},markdownSupport:{zh:"Markdown 支持",en:"Markdown Support"},clientId:{zh:"Client ID",en:"Client ID"},clientSecret:{zh:"Client Secret",en:"Client Secret"},encryptKey:{zh:"加密密钥",en:"Encrypt Key"},verificationToken:{zh:"验证令牌",en:"Verification Token"},bridgeUrl:{zh:"桥接 URL",en:"Bridge URL"},gatewayUrl:{zh:"网关 URL",en:"Gateway URL"},proxy:{zh:"代理",en:"Proxy"},intents:{zh:"Intents",en:"Intents"},mode:{zh:"模式",en:"Mode"},webhookPath:{zh:"Webhook 路径",en:"Webhook Path"},groupPolicy:{zh:"群组策略",en:"Group Policy"},consentGranted:{zh:"同意条款",en:"Consent Granted"},imapHost:{zh:"IMAP 服务器",en:"IMAP Host"},imapPort:{zh:"IMAP 端口",en:"IMAP Port"},imapUsername:{zh:"IMAP 用户名",en:"IMAP Username"},imapPassword:{zh:"IMAP 密码",en:"IMAP Password"},imapMailbox:{zh:"IMAP 邮箱",en:"IMAP Mailbox"},imapUseSsl:{zh:"IMAP 使用 SSL",en:"IMAP Use SSL"},smtpHost:{zh:"SMTP 服务器",en:"SMTP Host"},smtpPort:{zh:"SMTP 端口",en:"SMTP Port"},smtpUsername:{zh:"SMTP 用户名",en:"SMTP Username"},smtpPassword:{zh:"SMTP 密码",en:"SMTP Password"},smtpUseTls:{zh:"SMTP 使用 TLS",en:"SMTP Use TLS"},smtpUseSsl:{zh:"SMTP 使用 SSL",en:"SMTP Use SSL"},fromAddress:{zh:"发件地址",en:"From Address"},autoReplyEnabled:{zh:"自动回复已启用",en:"Auto Reply Enabled"},pollIntervalSeconds:{zh:"轮询间隔(秒)",en:"Poll Interval (s)"},markSeen:{zh:"标记为已读",en:"Mark Seen"},maxBodyChars:{zh:"最大正文字符数",en:"Max Body Chars"},subjectPrefix:{zh:"主题前缀",en:"Subject Prefix"},baseUrl:{zh:"Base URL",en:"Base URL"},socketUrl:{zh:"Socket URL",en:"Socket URL"},socketPath:{zh:"Socket 路径",en:"Socket Path"},socketDisableMsgpack:{zh:"禁用 Msgpack",en:"Disable Msgpack"},socketReconnectDelayMs:{zh:"重连延迟(ms)",en:"Reconnect Delay (ms)"},socketMaxReconnectDelayMs:{zh:"最大重连延迟(ms)",en:"Max Reconnect Delay (ms)"},socketConnectTimeoutMs:{zh:"连接超时(ms)",en:"Connect Timeout (ms)"},refreshIntervalMs:{zh:"刷新间隔(ms)",en:"Refresh Interval (ms)"},watchTimeoutMs:{zh:"监视超时(ms)",en:"Watch Timeout (ms)"},watchLimit:{zh:"监视限制",en:"Watch Limit"},retryDelayMs:{zh:"重试延迟(ms)",en:"Retry Delay (ms)"},maxRetryAttempts:{zh:"最大重试次数",en:"Max Retry Attempts"},clawToken:{zh:"Claw Token",en:"Claw Token"},agentUserId:{zh:"代理用户ID",en:"Agent User ID"},sessions:{zh:"会话",en:"Sessions"},panels:{zh:"面板",en:"Panels"},mentionRequireInGroups:{zh:"群组中需要@",en:"Require Mention in Groups"},groups:{zh:"群组",en:"Groups"},replyDelayMode:{zh:"回复延迟模式",en:"Reply Delay Mode"},replyDelayMs:{zh:"回复延迟(ms)",en:"Reply Delay (ms)"},secret:{zh:"密钥",en:"Secret"},saveVerifyConnect:{zh:"保存并验证 / 连接",en:"Save & Verify / Connect"},connected:{zh:"已连接",en:"Connected"},disconnected:{zh:"未连接",en:"Disconnected"},connecting:{zh:"连接中...",en:"Connecting..."},feishuConnecting:{zh:"验证 / 连接中...",en:"Verifying / connecting..."},configSaved:{zh:"配置已保存",en:"Configuration saved"},configSavedApplied:{zh:"配置已保存并已应用",en:"Configuration saved and applied"},configSaveFailed:{zh:"保存配置失败",en:"Failed to save configuration"},configReloaded:{zh:"配置已重载",en:"Configuration reloaded"},configReloadFailed:{zh:"重载配置失败",en:"Failed to reload configuration"},feishuVerifySuccess:{zh:"验证成功,请到飞书开放平台完成事件订阅与发布后再开始使用。",en:"Verified. Please finish Feishu event subscription and app publishing before using."},feishuVerifyFailed:{zh:"验证失败",en:"Verification failed"},enterTag:{zh:"输入后按回车...",en:"Type and press Enter..."},headerName:{zh:"Header 名称",en:"Header Name"},headerValue:{zh:"Header 值",en:"Header Value"}};function Y(r,o="en"){var i,l;return((i=Sp[r])==null?void 0:i[o])||((l=Sp[r])==null?void 0:l.en)||r}function Ks(){return ec({queryKey:["config"],queryFn:l0,staleTime:3e4,refetchOnWindowFocus:!0})}function sc(){return ec({queryKey:["config-meta"],queryFn:u0,staleTime:1/0})}function Gs(){return ec({queryKey:["config-schema"],queryFn:c0,staleTime:1/0})}function W0(){const r=Hs();return tc({mutationFn:d0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sr.success(Y("configSaved"))},onError:o=>{Sr.error(Y("configSaveFailed")+": "+o.message)}})}function V0(){const r=Hs();return tc({mutationFn:({provider:o,data:i})=>f0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sr.success(Y("configSaved"))},onError:o=>{Sr.error(Y("configSaveFailed")+": "+o.message)}})}function Q0(){const r=Hs();return tc({mutationFn:({channel:o,data:i})=>p0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sr.success(Y("configSavedApplied"))},onError:o=>{Sr.error(Y("configSaveFailed")+": "+o.message)}})}function $0(r){return Array.isArray(r)?r.filter(o=>typeof o=="string").join("."):r}function Wt(r,o){if(!o)return;const i=$0(r),l=o[i];if(l)return l;const c=i.split(".");for(const[d,m]of Object.entries(o)){if(!d.includes("*"))continue;const p=d.split(".");if(p.length!==c.length)continue;let x=!0;for(let g=0;g<c.length;g+=1)if(p[g]!=="*"&&p[g]!==c[g]){x=!1;break}if(x)return m}}function bp(){const{data:r,isLoading:o}=Ks(),{data:i}=Gs(),l=W0(),[c,d]=k.useState(""),[m,p]=k.useState(""),[x,g]=k.useState(8192),[E,P]=k.useState(.7),T=i==null?void 0:i.uiHints,v=Wt("agents.defaults.model",T),I=Wt("agents.defaults.workspace",T),b=Wt("agents.defaults.maxTokens",T),R=Wt("agents.defaults.temperature",T);k.useEffect(()=>{var F;(F=r==null?void 0:r.agents)!=null&&F.defaults&&(d(r.agents.defaults.model||""),p(r.agents.defaults.workspace||""),g(r.agents.defaults.maxTokens||8192),P(r.agents.defaults.temperature||.7))},[r]);const D=F=>{F.preventDefault(),l.mutate({model:c})};return o?h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(Ot,{className:"h-8 w-32"}),h.jsx(Ot,{className:"h-4 w-48"})]}),h.jsxs(Vu,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx(Ot,{className:"h-12 w-12 rounded-xl"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(Ot,{className:"h-5 w-24"}),h.jsx(Ot,{className:"h-3 w-32"})]})]}),h.jsx(Ot,{className:"h-4 w-20 mb-2"}),h.jsx(Ot,{className:"h-10 w-full rounded-xl"})]}),h.jsxs(Vu,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsx(Ot,{className:"h-5 w-24 mb-2"}),h.jsx(Ot,{className:"h-3 w-40 mb-6"}),h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx(Ot,{className:"h-4 w-28 mb-3"}),h.jsx(Ot,{className:"h-2 w-full rounded-full"})]}),h.jsxs("div",{children:[h.jsx(Ot,{className:"h-4 w-32 mb-3"}),h.jsx(Ot,{className:"h-2 w-full rounded-full"})]})]})]})]}):h.jsxs("div",{className:"max-w-4xl animate-fade-in pb-20",children:[h.jsxs("div",{className:"mb-10",children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Model Configuration"}),h.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Configure default AI model and behavior parameters"})]}),h.jsxs("form",{onSubmit:D,className:"space-y-8",children:[h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[h.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(Sh,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Default Model"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(xn,{htmlFor:"model",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(v==null?void 0:v.label)??"Model Name"}),h.jsx(Sn,{id:"model",value:c,onChange:F=>d(F.target.value),placeholder:(v==null?void 0:v.placeholder)??"minimax/MiniMax-M2.1",className:"h-12 px-4 rounded-xl"}),h.jsx("p",{className:"text-xs text-gray-400",children:(v==null?void 0:v.help)??"Examples: minimax/MiniMax-M2.1 · anthropic/claude-opus-4-5"})]})]}),h.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(Wv,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Workspace"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(xn,{htmlFor:"workspace",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(I==null?void 0:I.label)??"Default Path"}),h.jsx(Sn,{id:"workspace",value:m,onChange:F=>p(F.target.value),placeholder:(I==null?void 0:I.placeholder)??"/path/to/workspace",className:"h-12 px-4 rounded-xl"})]})]})]}),h.jsxs("div",{className:"p-8 rounded-2xl bg-white border border-gray-200 shadow-card",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-10",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(Kv,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Generation Parameters"})]}),h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12",children:[h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx(xn,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(b==null?void 0:b.label)??"Max Tokens"}),h.jsx("span",{className:"text-sm font-semibold text-gray-900",children:x.toLocaleString()})]}),h.jsx("input",{type:"range",min:"1000",max:"32000",step:"1000",value:x,onChange:F=>g(parseInt(F.target.value)),className:"w-full h-1 bg-gray-200 rounded-full appearance-none cursor-pointer accent-primary"})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx(xn,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(R==null?void 0:R.label)??"Temperature"}),h.jsx("span",{className:"text-sm font-semibold text-gray-900",children:E})]}),h.jsx("input",{type:"range",min:"0",max:"2",step:"0.1",value:E,onChange:F=>P(parseFloat(F.target.value)),className:"w-full h-1 bg-gray-200 rounded-full appearance-none cursor-pointer accent-primary"})]})]})]}),h.jsx("div",{className:"flex justify-end pt-4",children:h.jsx(Vt,{type:"submit",disabled:l.isPending,size:"lg",children:l.isPending?h.jsx(Vv,{className:"h-5 w-5 animate-spin"}):"Save Changes"})})]})]})}function xr(r,o,{checkForDefaultPrevented:i=!0}={}){return function(c){if(r==null||r(c),i===!1||!c.defaultPrevented)return o==null?void 0:o(c)}}function kp(r,o){if(typeof r=="function")return r(o);r!=null&&(r.current=o)}function Eh(...r){return o=>{let i=!1;const l=r.map(c=>{const d=kp(c,o);return!i&&typeof d=="function"&&(i=!0),d});if(i)return()=>{for(let c=0;c<l.length;c++){const d=l[c];typeof d=="function"?d():kp(r[c],null)}}}}function Zr(...r){return k.useCallback(Eh(...r),r)}function H0(r,o){const i=k.createContext(o),l=d=>{const{children:m,...p}=d,x=k.useMemo(()=>p,Object.values(p));return h.jsx(i.Provider,{value:x,children:m})};l.displayName=r+"Provider";function c(d){const m=k.useContext(i);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[l,c]}function K0(r,o=[]){let i=[];function l(d,m){const p=k.createContext(m),x=i.length;i=[...i,m];const g=P=>{var D;const{scope:T,children:v,...I}=P,b=((D=T==null?void 0:T[r])==null?void 0:D[x])||p,R=k.useMemo(()=>I,Object.values(I));return h.jsx(b.Provider,{value:R,children:v})};g.displayName=d+"Provider";function E(P,T){var b;const v=((b=T==null?void 0:T[r])==null?void 0:b[x])||p,I=k.useContext(v);if(I)return I;if(m!==void 0)return m;throw new Error(`\`${P}\` must be used within \`${d}\``)}return[g,E]}const c=()=>{const d=i.map(m=>k.createContext(m));return function(p){const x=(p==null?void 0:p[r])||d;return k.useMemo(()=>({[`__scope${r}`]:{...p,[r]:x}}),[p,x])}};return c.scopeName=r,[l,G0(c,...o)]}function G0(...r){const o=r[0];if(r.length===1)return o;const i=()=>{const l=r.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const m=l.reduce((p,{useScope:x,scopeName:g})=>{const P=x(d)[`__scope${g}`];return{...p,...P}},{});return k.useMemo(()=>({[`__scope${o.scopeName}`]:m}),[m])}};return i.scopeName=o.scopeName,i}var Fs=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},q0=Zp[" useId ".trim().toString()]||(()=>{}),Y0=0;function wu(r){const[o,i]=k.useState(q0());return Fs(()=>{i(l=>l??String(Y0++))},[r]),r||(o?`radix-${o}`:"")}var X0=Zp[" useInsertionEffect ".trim().toString()]||Fs;function Z0({prop:r,defaultProp:o,onChange:i=()=>{},caller:l}){const[c,d,m]=J0({defaultProp:o,onChange:i}),p=r!==void 0,x=p?r:c;{const E=k.useRef(r!==void 0);k.useEffect(()=>{const P=E.current;P!==p&&console.warn(`${l} is changing from ${P?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),E.current=p},[p,l])}const g=k.useCallback(E=>{var P;if(p){const T=e1(E)?E(r):E;T!==r&&((P=m.current)==null||P.call(m,T))}else d(E)},[p,r,d,m]);return[x,g]}function J0({defaultProp:r,onChange:o}){const[i,l]=k.useState(r),c=k.useRef(i),d=k.useRef(o);return X0(()=>{d.current=o},[o]),k.useEffect(()=>{var m;c.current!==i&&((m=d.current)==null||m.call(d,i),c.current=i)},[i,c]),[i,l,d]}function e1(r){return typeof r=="function"}function Nh(r){const o=t1(r),i=k.forwardRef((l,c)=>{const{children:d,...m}=l,p=k.Children.toArray(d),x=p.find(r1);if(x){const g=x.props.children,E=p.map(P=>P===x?k.Children.count(g)>1?k.Children.only(null):k.isValidElement(g)?g.props.children:null:P);return h.jsx(o,{...m,ref:c,children:k.isValidElement(g)?k.cloneElement(g,void 0,E):null})}return h.jsx(o,{...m,ref:c,children:d})});return i.displayName=`${r}.Slot`,i}function t1(r){const o=k.forwardRef((i,l)=>{const{children:c,...d}=i;if(k.isValidElement(c)){const m=s1(c),p=o1(d,c.props);return c.type!==k.Fragment&&(p.ref=l?Eh(l,m):m),k.cloneElement(c,p)}return k.Children.count(c)>1?k.Children.only(null):null});return o.displayName=`${r}.SlotClone`,o}var n1=Symbol("radix.slottable");function r1(r){return k.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===n1}function o1(r,o){const i={...o};for(const l in o){const c=r[l],d=o[l];/^on[A-Z]/.test(l)?c&&d?i[l]=(...p)=>{const x=d(...p);return c(...p),x}:c&&(i[l]=c):l==="style"?i[l]={...c,...d}:l==="className"&&(i[l]=[c,d].filter(Boolean).join(" "))}return{...r,...i}}function s1(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var i1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Dn=i1.reduce((r,o)=>{const i=Nh(`Primitive.${o}`),l=k.forwardRef((c,d)=>{const{asChild:m,...p}=c,x=m?i:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(x,{...p,ref:d})});return l.displayName=`Primitive.${o}`,{...r,[o]:l}},{});function a1(r,o){r&&kh.flushSync(()=>r.dispatchEvent(o))}function Us(r){const o=k.useRef(r);return k.useEffect(()=>{o.current=r}),k.useMemo(()=>(...i)=>{var l;return(l=o.current)==null?void 0:l.call(o,...i)},[])}function l1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r);k.useEffect(()=>{const l=c=>{c.key==="Escape"&&i(c)};return o.addEventListener("keydown",l,{capture:!0}),()=>o.removeEventListener("keydown",l,{capture:!0})},[i,o])}var u1="DismissableLayer",$u="dismissableLayer.update",c1="dismissableLayer.pointerDownOutside",d1="dismissableLayer.focusOutside",Cp,Ph=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jh=k.forwardRef((r,o)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:p,...x}=r,g=k.useContext(Ph),[E,P]=k.useState(null),T=(E==null?void 0:E.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=k.useState({}),I=Zr(o,$=>P($)),b=Array.from(g.layers),[R]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),D=b.indexOf(R),F=E?b.indexOf(E):-1,B=g.layersWithOutsidePointerEventsDisabled.size>0,z=F>=D,G=h1($=>{const X=$.target,he=[...g.branches].some(ye=>ye.contains(X));!z||he||(c==null||c($),m==null||m($),$.defaultPrevented||p==null||p())},T),ee=m1($=>{const X=$.target;[...g.branches].some(ye=>ye.contains(X))||(d==null||d($),m==null||m($),$.defaultPrevented||p==null||p())},T);return l1($=>{F===g.layers.size-1&&(l==null||l($),!$.defaultPrevented&&p&&($.preventDefault(),p()))},T),k.useEffect(()=>{if(E)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Cp=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(E)),g.layers.add(E),Ep(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(T.body.style.pointerEvents=Cp)}},[E,T,i,g]),k.useEffect(()=>()=>{E&&(g.layers.delete(E),g.layersWithOutsidePointerEventsDisabled.delete(E),Ep())},[E,g]),k.useEffect(()=>{const $=()=>v({});return document.addEventListener($u,$),()=>document.removeEventListener($u,$)},[]),h.jsx(Dn.div,{...x,ref:I,style:{pointerEvents:B?z?"auto":"none":void 0,...r.style},onFocusCapture:xr(r.onFocusCapture,ee.onFocusCapture),onBlurCapture:xr(r.onBlurCapture,ee.onBlurCapture),onPointerDownCapture:xr(r.onPointerDownCapture,G.onPointerDownCapture)})});jh.displayName=u1;var f1="DismissableLayerBranch",p1=k.forwardRef((r,o)=>{const i=k.useContext(Ph),l=k.useRef(null),c=Zr(o,l);return k.useEffect(()=>{const d=l.current;if(d)return i.branches.add(d),()=>{i.branches.delete(d)}},[i.branches]),h.jsx(Dn.div,{...r,ref:c})});p1.displayName=f1;function h1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r),l=k.useRef(!1),c=k.useRef(()=>{});return k.useEffect(()=>{const d=p=>{if(p.target&&!l.current){let x=function(){Rh(c1,i,g,{discrete:!0})};const g={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",c.current),c.current=x,o.addEventListener("click",c.current,{once:!0})):x()}else o.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),o.removeEventListener("pointerdown",d),o.removeEventListener("click",c.current)}},[o,i]),{onPointerDownCapture:()=>l.current=!0}}function m1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r),l=k.useRef(!1);return k.useEffect(()=>{const c=d=>{d.target&&!l.current&&Rh(d1,i,{originalEvent:d},{discrete:!1})};return o.addEventListener("focusin",c),()=>o.removeEventListener("focusin",c)},[o,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Ep(){const r=new CustomEvent($u);document.dispatchEvent(r)}function Rh(r,o,i,{discrete:l}){const c=i.originalEvent.target,d=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:i});o&&c.addEventListener(r,o,{once:!0}),l?a1(c,d):c.dispatchEvent(d)}var xu="focusScope.autoFocusOnMount",Su="focusScope.autoFocusOnUnmount",Np={bubbles:!1,cancelable:!0},g1="FocusScope",Mh=k.forwardRef((r,o)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=r,[p,x]=k.useState(null),g=Us(c),E=Us(d),P=k.useRef(null),T=Zr(o,b=>x(b)),v=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(l){let b=function(B){if(v.paused||!p)return;const z=B.target;p.contains(z)?P.current=z:ur(P.current,{select:!0})},R=function(B){if(v.paused||!p)return;const z=B.relatedTarget;z!==null&&(p.contains(z)||ur(P.current,{select:!0}))},D=function(B){if(document.activeElement===document.body)for(const G of B)G.removedNodes.length>0&&ur(p)};document.addEventListener("focusin",b),document.addEventListener("focusout",R);const F=new MutationObserver(D);return p&&F.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",R),F.disconnect()}}},[l,p,v.paused]),k.useEffect(()=>{if(p){jp.add(v);const b=document.activeElement;if(!p.contains(b)){const D=new CustomEvent(xu,Np);p.addEventListener(xu,g),p.dispatchEvent(D),D.defaultPrevented||(y1(b1(Th(p)),{select:!0}),document.activeElement===b&&ur(p))}return()=>{p.removeEventListener(xu,g),setTimeout(()=>{const D=new CustomEvent(Su,Np);p.addEventListener(Su,E),p.dispatchEvent(D),D.defaultPrevented||ur(b??document.body,{select:!0}),p.removeEventListener(Su,E),jp.remove(v)},0)}}},[p,g,E,v]);const I=k.useCallback(b=>{if(!i&&!l||v.paused)return;const R=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,D=document.activeElement;if(R&&D){const F=b.currentTarget,[B,z]=v1(F);B&&z?!b.shiftKey&&D===z?(b.preventDefault(),i&&ur(B,{select:!0})):b.shiftKey&&D===B&&(b.preventDefault(),i&&ur(z,{select:!0})):D===F&&b.preventDefault()}},[i,l,v.paused]);return h.jsx(Dn.div,{tabIndex:-1,...m,ref:T,onKeyDown:I})});Mh.displayName=g1;function y1(r,{select:o=!1}={}){const i=document.activeElement;for(const l of r)if(ur(l,{select:o}),document.activeElement!==i)return}function v1(r){const o=Th(r),i=Pp(o,r),l=Pp(o.reverse(),r);return[i,l]}function Th(r){const o=[],i=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const c=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||c?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)o.push(i.currentNode);return o}function Pp(r,o){for(const i of r)if(!w1(i,{upTo:o}))return i}function w1(r,{upTo:o}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(o!==void 0&&r===o)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function x1(r){return r instanceof HTMLInputElement&&"select"in r}function ur(r,{select:o=!1}={}){if(r&&r.focus){const i=document.activeElement;r.focus({preventScroll:!0}),r!==i&&x1(r)&&o&&r.select()}}var jp=S1();function S1(){let r=[];return{add(o){const i=r[0];o!==i&&(i==null||i.pause()),r=Rp(r,o),r.unshift(o)},remove(o){var i;r=Rp(r,o),(i=r[0])==null||i.resume()}}}function Rp(r,o){const i=[...r],l=i.indexOf(o);return l!==-1&&i.splice(l,1),i}function b1(r){return r.filter(o=>o.tagName!=="A")}var k1="Portal",Oh=k.forwardRef((r,o)=>{var p;const{container:i,...l}=r,[c,d]=k.useState(!1);Fs(()=>d(!0),[]);const m=i||c&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return m?Ch.createPortal(h.jsx(Dn.div,{...l,ref:o}),m):null});Oh.displayName=k1;function C1(r,o){return k.useReducer((i,l)=>o[i][l]??i,r)}var Pa=r=>{const{present:o,children:i}=r,l=E1(o),c=typeof i=="function"?i({present:l.isPresent}):k.Children.only(i),d=Zr(l.ref,N1(c));return typeof i=="function"||l.isPresent?k.cloneElement(c,{ref:d}):null};Pa.displayName="Presence";function E1(r){const[o,i]=k.useState(),l=k.useRef(null),c=k.useRef(r),d=k.useRef("none"),m=r?"mounted":"unmounted",[p,x]=C1(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const g=pa(l.current);d.current=p==="mounted"?g:"none"},[p]),Fs(()=>{const g=l.current,E=c.current;if(E!==r){const T=d.current,v=pa(g);r?x("MOUNT"):v==="none"||(g==null?void 0:g.display)==="none"?x("UNMOUNT"):x(E&&T!==v?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,x]),Fs(()=>{if(o){let g;const E=o.ownerDocument.defaultView??window,P=v=>{const b=pa(l.current).includes(CSS.escape(v.animationName));if(v.target===o&&b&&(x("ANIMATION_END"),!c.current)){const R=o.style.animationFillMode;o.style.animationFillMode="forwards",g=E.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=R)})}},T=v=>{v.target===o&&(d.current=pa(l.current))};return o.addEventListener("animationstart",T),o.addEventListener("animationcancel",P),o.addEventListener("animationend",P),()=>{E.clearTimeout(g),o.removeEventListener("animationstart",T),o.removeEventListener("animationcancel",P),o.removeEventListener("animationend",P)}}else x("ANIMATION_END")},[o,x]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:k.useCallback(g=>{l.current=g?getComputedStyle(g):null,i(g)},[])}}function pa(r){return(r==null?void 0:r.animationName)||"none"}function N1(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var bu=0;function P1(){k.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Mp()),document.body.insertAdjacentElement("beforeend",r[1]??Mp()),bu++,()=>{bu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),bu--}},[])}function Mp(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}var wn=function(){return wn=Object.assign||function(o){for(var i,l=1,c=arguments.length;l<c;l++){i=arguments[l];for(var d in i)Object.prototype.hasOwnProperty.call(i,d)&&(o[d]=i[d])}return o},wn.apply(this,arguments)};function zh(r,o){var i={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&o.indexOf(l)<0&&(i[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(r);c<l.length;c++)o.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(r,l[c])&&(i[l[c]]=r[l[c]]);return i}function j1(r,o,i){if(i||arguments.length===2)for(var l=0,c=o.length,d;l<c;l++)(d||!(l in o))&&(d||(d=Array.prototype.slice.call(o,0,l)),d[l]=o[l]);return r.concat(d||Array.prototype.slice.call(o))}var Sa="right-scroll-bar-position",ba="width-before-scroll-bar",R1="with-scroll-bars-hidden",M1="--removed-body-scroll-bar-size";function ku(r,o){return typeof r=="function"?r(o):r&&(r.current=o),r}function T1(r,o){var i=k.useState(function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(l){var c=i.value;c!==l&&(i.value=l,i.callback(l,c))}}}})[0];return i.callback=o,i.facade}var O1=typeof window<"u"?k.useLayoutEffect:k.useEffect,Tp=new WeakMap;function z1(r,o){var i=T1(null,function(l){return r.forEach(function(c){return ku(c,l)})});return O1(function(){var l=Tp.get(i);if(l){var c=new Set(l),d=new Set(r),m=i.current;c.forEach(function(p){d.has(p)||ku(p,null)}),d.forEach(function(p){c.has(p)||ku(p,m)})}Tp.set(i,r)},[r]),i}function _1(r){return r}function I1(r,o){o===void 0&&(o=_1);var i=[],l=!1,c={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:r},useMedium:function(d){var m=o(d,l);return i.push(m),function(){i=i.filter(function(p){return p!==m})}},assignSyncMedium:function(d){for(l=!0;i.length;){var m=i;i=[],m.forEach(d)}i={push:function(p){return d(p)},filter:function(){return i}}},assignMedium:function(d){l=!0;var m=[];if(i.length){var p=i;i=[],p.forEach(d),m=i}var x=function(){var E=m;m=[],E.forEach(d)},g=function(){return Promise.resolve().then(x)};g(),i={push:function(E){m.push(E),g()},filter:function(E){return m=m.filter(E),i}}}};return c}function A1(r){r===void 0&&(r={});var o=I1(null);return o.options=wn({async:!0,ssr:!1},r),o}var _h=function(r){var o=r.sideCar,i=zh(r,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=o.read();if(!l)throw new Error("Sidecar medium not found");return k.createElement(l,wn({},i))};_h.isSideCarExport=!0;function L1(r,o){return r.useMedium(o),_h}var Ih=A1(),Cu=function(){},ja=k.forwardRef(function(r,o){var i=k.useRef(null),l=k.useState({onScrollCapture:Cu,onWheelCapture:Cu,onTouchMoveCapture:Cu}),c=l[0],d=l[1],m=r.forwardProps,p=r.children,x=r.className,g=r.removeScrollBar,E=r.enabled,P=r.shards,T=r.sideCar,v=r.noRelative,I=r.noIsolation,b=r.inert,R=r.allowPinchZoom,D=r.as,F=D===void 0?"div":D,B=r.gapMode,z=zh(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=T,ee=z1([i,o]),$=wn(wn({},z),c);return k.createElement(k.Fragment,null,E&&k.createElement(G,{sideCar:Ih,removeScrollBar:g,shards:P,noRelative:v,noIsolation:I,inert:b,setCallbacks:d,allowPinchZoom:!!R,lockRef:i,gapMode:B}),m?k.cloneElement(k.Children.only(p),wn(wn({},$),{ref:ee})):k.createElement(F,wn({},$,{className:x,ref:ee}),p))});ja.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ja.classNames={fullWidth:ba,zeroRight:Sa};var D1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function F1(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var o=D1();return o&&r.setAttribute("nonce",o),r}function U1(r,o){r.styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o))}function B1(r){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(r)}var W1=function(){var r=0,o=null;return{add:function(i){r==0&&(o=F1())&&(U1(o,i),B1(o)),r++},remove:function(){r--,!r&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},V1=function(){var r=W1();return function(o,i){k.useEffect(function(){return r.add(o),function(){r.remove()}},[o&&i])}},Ah=function(){var r=V1(),o=function(i){var l=i.styles,c=i.dynamic;return r(l,c),null};return o},Q1={left:0,top:0,right:0,gap:0},Eu=function(r){return parseInt(r||"",10)||0},$1=function(r){var o=window.getComputedStyle(document.body),i=o[r==="padding"?"paddingLeft":"marginLeft"],l=o[r==="padding"?"paddingTop":"marginTop"],c=o[r==="padding"?"paddingRight":"marginRight"];return[Eu(i),Eu(l),Eu(c)]},H1=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return Q1;var o=$1(r),i=document.documentElement.clientWidth,l=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,l-i+o[2]-o[0])}},K1=Ah(),zo="data-scroll-locked",G1=function(r,o,i,l){var c=r.left,d=r.top,m=r.right,p=r.gap;return i===void 0&&(i="margin"),`
182
- .`.concat(R1,` {
180
+ */const kh=De("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
181
+ * @license lucide-react v0.462.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const Xv=De("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Zv=[{id:"model",label:"Models",icon:Fv},{id:"providers",label:"Providers",icon:bh},{id:"channels",label:"Channels",icon:oc}];function Jv(){const{activeTab:r,setActiveTab:o}=Yr();return h.jsxs("aside",{className:"w-[240px] bg-transparent flex flex-col h-full py-6 px-4",children:[h.jsx("div",{className:"px-3 mb-8",children:h.jsxs("div",{className:"flex items-center gap-2 group cursor-pointer",children:[h.jsx("div",{className:"h-7 w-7 rounded-lg overflow-hidden flex items-center justify-center transition-transform duration-fast group-hover:scale-110",children:h.jsx("img",{src:"/logo.svg",alt:"NextClaw Logo",className:"h-full w-full object-contain"})}),h.jsx("h1",{className:"text-lg font-bold text-gray-900 tracking-tight",children:"nextclaw"})]})}),h.jsx("nav",{className:"flex-1",children:h.jsx("ul",{className:"space-y-1",children:Zv.map(i=>{const l=i.icon,c=r===i.id;return h.jsx("li",{children:h.jsxs("button",{onClick:()=>o(i.id),className:Ee("group w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-all duration-fast",c?"bg-primary-100 text-primary-700":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"),children:[h.jsx(l,{className:Ee("h-4 w-4 transition-transform duration-fast group-hover:scale-110",c?"text-primary":"text-gray-500")}),h.jsx("span",{className:"flex-1 text-left",children:i.label})]})},i.id)})})})]})}function e0({children:r}){return h.jsxs("div",{className:"h-screen flex bg-[hsl(40,20%,98%)] p-2",children:[h.jsx(Jv,{}),h.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-white rounded-[2rem] shadow-sm overflow-hidden border border-[hsl(40,10%,94%)]",children:h.jsx("main",{className:"flex-1 overflow-auto custom-scrollbar p-8",children:h.jsx("div",{className:"max-w-6xl mx-auto animate-fade-in h-full",children:r})})})]})}const yp=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,vp=fh,t0=(r,o)=>i=>{var l;if((o==null?void 0:o.variants)==null)return vp(r,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:d}=o,m=Object.keys(c).map(g=>{const E=i==null?void 0:i[g],P=d==null?void 0:d[g];if(E===null)return null;const T=yp(E)||yp(P);return c[g][T]}),p=i&&Object.entries(i).reduce((g,E)=>{let[P,T]=E;return T===void 0||(g[P]=T),g},{}),x=o==null||(l=o.compoundVariants)===null||l===void 0?void 0:l.reduce((g,E)=>{let{class:P,className:T,...v}=E;return Object.entries(v).every(I=>{let[b,R]=I;return Array.isArray(R)?R.includes({...d,...p}[b]):{...d,...p}[b]===R})?[...g,P,T]:g},[]);return vp(r,m,x,i==null?void 0:i.class,i==null?void 0:i.className)},n0=t0("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium ring-offset-background transition-all duration-fast focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-600 active:bg-primary-700 shadow-sm",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-gray-200",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline",primary:"bg-primary text-primary-foreground hover:bg-primary-600 active:bg-primary-700 shadow-sm",subtle:"bg-secondary text-secondary-foreground hover:bg-gray-200","primary-outline":"border-2 border-primary text-primary hover:bg-primary hover:text-primary-foreground"},size:{default:"h-10 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-12 rounded-xl px-6 text-base",xl:"h-14 rounded-xl px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),xn=k.forwardRef(({className:r,variant:o,size:i,...l},c)=>h.jsx("button",{className:Ee(n0({variant:o,size:i,className:r})),ref:c,...l}));xn.displayName="Button";const Vu=k.forwardRef(({className:r,hover:o=!0,...i},l)=>h.jsx("div",{ref:l,className:Ee("rounded-xl border border-gray-200 bg-white text-card-foreground shadow-card transition-all duration-base",o&&"hover:shadow-card-hover hover:border-gray-300",r),...i}));Vu.displayName="Card";const r0=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("flex flex-col space-y-2 p-6",r),...o}));r0.displayName="CardHeader";const o0=k.forwardRef(({className:r,...o},i)=>h.jsx("h3",{ref:i,className:Ee("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));o0.displayName="CardTitle";const s0=k.forwardRef(({className:r,...o},i)=>h.jsx("p",{ref:i,className:Ee("text-sm text-gray-500 leading-relaxed",r),...o}));s0.displayName="CardDescription";const i0=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("p-6 pt-0",r),...o}));i0.displayName="CardContent";const a0=k.forwardRef(({className:r,...o},i)=>h.jsx("div",{ref:i,className:Ee("flex items-center justify-between p-6 pt-0",r),...o}));a0.displayName="CardFooter";const Sn=k.forwardRef(({className:r,type:o,...i},l)=>h.jsx("input",{type:o,className:Ee("flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",r),ref:l,...i}));Sn.displayName="Input";const wn=k.forwardRef(({className:r,...o},i)=>h.jsx("label",{ref:i,className:Ee("text-sm font-medium leading-none text-gray-700 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),...o}));wn.displayName="Label";function Ot({className:r,...o}){return h.jsx("div",{className:Ee("animate-pulse rounded-md bg-slate-200",r),...o})}const l0="http://127.0.0.1:18791",xa=(()=>{var r;return typeof window<"u"&&((r=window.location)!=null&&r.origin)?window.location.origin:l0})();async function vu(r,o={}){const i=`${xa}${r}`,l=await fetch(i,{headers:{"Content-Type":"application/json",...o.headers},...o}),c=await l.text();let d=null;if(c)try{d=JSON.parse(c)}catch{}if(!d){const m=c?c.slice(0,200):"";return{ok:!1,error:{code:"INVALID_RESPONSE",message:`Non-JSON response (${l.status} ${l.statusText})${m?`: ${m}`:""}`}}}return l.ok,d}const Xr={get:r=>vu(r,{method:"GET"}),put:(r,o)=>vu(r,{method:"PUT",body:JSON.stringify(o)}),post:(r,o)=>vu(r,{method:"POST",body:JSON.stringify(o)})};async function u0(){const r=await Xr.get("/api/config");if(!r.ok)throw new Error(r.error.message);return r.data}async function c0(){const r=await Xr.get("/api/config/meta");if(!r.ok)throw new Error(r.error.message);return r.data}async function d0(){const r=await Xr.get("/api/config/schema");if(!r.ok)throw new Error(r.error.message);return r.data}async function f0(r){const o=await Xr.put("/api/config/model",r);if(!o.ok)throw new Error(o.error.message);return o.data}async function p0(r,o){const i=await Xr.put(`/api/config/providers/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function h0(r,o){const i=await Xr.put(`/api/config/channels/${r}`,o);if(!i.ok)throw new Error(i.error.message);return i.data}async function m0(){const r=await Xr.post("/api/channels/feishu/probe",{});if(!r.ok)throw new Error(r.error.message);return r.data}var Ch=Jp();const Eh=Xp(Ch);var g0=r=>{switch(r){case"success":return w0;case"info":return S0;case"warning":return x0;case"error":return b0;default:return null}},y0=Array(12).fill(0),v0=({visible:r,className:o})=>K.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":r},K.createElement("div",{className:"sonner-spinner"},y0.map((i,l)=>K.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),w0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),x0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),S0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),b0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),k0=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},K.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),C0=()=>{let[r,o]=K.useState(document.hidden);return K.useEffect(()=>{let i=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),r},Qu=1,E0=class{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{let o=this.subscribers.indexOf(r);this.subscribers.splice(o,1)}),this.publish=r=>{this.subscribers.forEach(o=>o(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var o;let{message:i,...l}=r,c=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.length)>0?r.id:Qu++,d=this.toasts.find(p=>p.id===c),m=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(p=>p.id===c?(this.publish({...p,...r,id:c,title:i}),{...p,...r,id:c,dismissible:m,title:i}):p):this.addToast({title:i,...l,dismissible:m,id:c}),c},this.dismiss=r=>(this.dismissedToasts.add(r),r||this.toasts.forEach(o=>{this.subscribers.forEach(i=>i({id:o.id,dismiss:!0}))}),this.subscribers.forEach(o=>o({id:r,dismiss:!0})),r),this.message=(r,o)=>this.create({...o,message:r}),this.error=(r,o)=>this.create({...o,message:r,type:"error"}),this.success=(r,o)=>this.create({...o,type:"success",message:r}),this.info=(r,o)=>this.create({...o,type:"info",message:r}),this.warning=(r,o)=>this.create({...o,type:"warning",message:r}),this.loading=(r,o)=>this.create({...o,type:"loading",message:r}),this.promise=(r,o)=>{if(!o)return;let i;o.loading!==void 0&&(i=this.create({...o,promise:r,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));let l=r instanceof Promise?r:r(),c=i!==void 0,d,m=l.then(async x=>{if(d=["resolve",x],K.isValidElement(x))c=!1,this.create({id:i,type:"default",message:x});else if(P0(x)&&!x.ok){c=!1;let g=typeof o.error=="function"?await o.error(`HTTP error! status: ${x.status}`):o.error,E=typeof o.description=="function"?await o.description(`HTTP error! status: ${x.status}`):o.description;this.create({id:i,type:"error",message:g,description:E})}else if(o.success!==void 0){c=!1;let g=typeof o.success=="function"?await o.success(x):o.success,E=typeof o.description=="function"?await o.description(x):o.description;this.create({id:i,type:"success",message:g,description:E})}}).catch(async x=>{if(d=["reject",x],o.error!==void 0){c=!1;let g=typeof o.error=="function"?await o.error(x):o.error,E=typeof o.description=="function"?await o.description(x):o.description;this.create({id:i,type:"error",message:g,description:E})}}).finally(()=>{var x;c&&(this.dismiss(i),i=void 0),(x=o.finally)==null||x.call(o)}),p=()=>new Promise((x,g)=>m.then(()=>d[0]==="reject"?g(d[1]):x(d[1])).catch(g));return typeof i!="string"&&typeof i!="number"?{unwrap:p}:Object.assign(i,{unwrap:p})},this.custom=(r,o)=>{let i=(o==null?void 0:o.id)||Qu++;return this.create({jsx:r(i),id:i,...o}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Pt=new E0,N0=(r,o)=>{let i=(o==null?void 0:o.id)||Qu++;return Pt.addToast({title:r,...o,id:i}),i},P0=r=>r&&typeof r=="object"&&"ok"in r&&typeof r.ok=="boolean"&&"status"in r&&typeof r.status=="number",j0=N0,R0=()=>Pt.toasts,M0=()=>Pt.getActiveToasts(),Sr=Object.assign(j0,{success:Pt.success,info:Pt.info,warning:Pt.warning,error:Pt.error,custom:Pt.custom,message:Pt.message,promise:Pt.promise,dismiss:Pt.dismiss,loading:Pt.loading},{getHistory:R0,getToasts:M0});function T0(r,{insertAt:o}={}){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",o==="top"&&i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}T0(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
186
+ `);function fa(r){return r.label!==void 0}var O0=3,_0="32px",z0="16px",wp=4e3,I0=356,A0=14,L0=20,D0=200;function Zt(...r){return r.filter(Boolean).join(" ")}function F0(r){let[o,i]=r.split("-"),l=[];return o&&l.push(o),i&&l.push(i),l}var U0=r=>{var o,i,l,c,d,m,p,x,g,E,P;let{invert:T,toast:v,unstyled:I,interacting:b,setHeights:R,visibleToasts:D,heights:F,index:B,toasts:_,expanded:G,removeToast:ee,defaultRichColors:$,closeButton:X,style:he,cancelButtonStyle:ye,actionButtonStyle:Pe,className:ae="",descriptionClassName:Fe="",duration:Te,position:Be,gap:Oe,loadingIcon:xe,expandByDefault:H,classNames:W,icons:Q,closeButtonAriaLabel:N="Close toast",pauseWhenPageIsHidden:z}=r,[te,oe]=K.useState(null),[de,ve]=K.useState(null),[ce,be]=K.useState(!1),[je,Ze]=K.useState(!1),[nn,Jr]=K.useState(!1),[br,Go]=K.useState(!1),[qs,qo]=K.useState(!1),[Yo,eo]=K.useState(0),[Xo,Fn]=K.useState(0),_t=K.useRef(v.duration||Te||wp),to=K.useRef(null),rn=K.useRef(null),Ys=B===0,Xs=B+1<=D,dt=v.type,on=v.dismissible!==!1,no=v.className||"",Zs=v.descriptionClassName||"",sn=K.useMemo(()=>F.findIndex(pe=>pe.toastId===v.id)||0,[F,v.id]),kr=K.useMemo(()=>{var pe;return(pe=v.closeButton)!=null?pe:X},[v.closeButton,X]),Js=K.useMemo(()=>v.duration||Te||wp,[v.duration,Te]),ro=K.useRef(0),bn=K.useRef(0),ei=K.useRef(0),an=K.useRef(null),[Zo,Jo]=Be.split("-"),oo=K.useMemo(()=>F.reduce((pe,Ne,_e)=>_e>=sn?pe:pe+Ne.height,0),[F,sn]),so=C0(),Un=v.invert||T,ln=dt==="loading";bn.current=K.useMemo(()=>sn*Oe+oo,[sn,oo]),K.useEffect(()=>{_t.current=Js},[Js]),K.useEffect(()=>{be(!0)},[]),K.useEffect(()=>{let pe=rn.current;if(pe){let Ne=pe.getBoundingClientRect().height;return Fn(Ne),R(_e=>[{toastId:v.id,height:Ne,position:v.position},..._e]),()=>R(_e=>_e.filter(ft=>ft.toastId!==v.id))}},[R,v.id]),K.useLayoutEffect(()=>{if(!ce)return;let pe=rn.current,Ne=pe.style.height;pe.style.height="auto";let _e=pe.getBoundingClientRect().height;pe.style.height=Ne,Fn(_e),R(ft=>ft.find(yt=>yt.toastId===v.id)?ft.map(yt=>yt.toastId===v.id?{...yt,height:_e}:yt):[{toastId:v.id,height:_e,position:v.position},...ft])},[ce,v.title,v.description,R,v.id]);let Vt=K.useCallback(()=>{Ze(!0),eo(bn.current),R(pe=>pe.filter(Ne=>Ne.toastId!==v.id)),setTimeout(()=>{ee(v)},D0)},[v,ee,R,bn]);K.useEffect(()=>{if(v.promise&&dt==="loading"||v.duration===1/0||v.type==="loading")return;let pe;return G||b||z&&so?(()=>{if(ei.current<ro.current){let Ne=new Date().getTime()-ro.current;_t.current=_t.current-Ne}ei.current=new Date().getTime()})():_t.current!==1/0&&(ro.current=new Date().getTime(),pe=setTimeout(()=>{var Ne;(Ne=v.onAutoClose)==null||Ne.call(v,v),Vt()},_t.current)),()=>clearTimeout(pe)},[G,b,v,dt,z,so,Vt]),K.useEffect(()=>{v.delete&&Vt()},[Vt,v.delete]);function ti(){var pe,Ne,_e;return Q!=null&&Q.loading?K.createElement("div",{className:Zt(W==null?void 0:W.loader,(pe=v==null?void 0:v.classNames)==null?void 0:pe.loader,"sonner-loader"),"data-visible":dt==="loading"},Q.loading):xe?K.createElement("div",{className:Zt(W==null?void 0:W.loader,(Ne=v==null?void 0:v.classNames)==null?void 0:Ne.loader,"sonner-loader"),"data-visible":dt==="loading"},xe):K.createElement(v0,{className:Zt(W==null?void 0:W.loader,(_e=v==null?void 0:v.classNames)==null?void 0:_e.loader),visible:dt==="loading"})}return K.createElement("li",{tabIndex:0,ref:rn,className:Zt(ae,no,W==null?void 0:W.toast,(o=v==null?void 0:v.classNames)==null?void 0:o.toast,W==null?void 0:W.default,W==null?void 0:W[dt],(i=v==null?void 0:v.classNames)==null?void 0:i[dt]),"data-sonner-toast":"","data-rich-colors":(l=v.richColors)!=null?l:$,"data-styled":!(v.jsx||v.unstyled||I),"data-mounted":ce,"data-promise":!!v.promise,"data-swiped":qs,"data-removed":je,"data-visible":Xs,"data-y-position":Zo,"data-x-position":Jo,"data-index":B,"data-front":Ys,"data-swiping":nn,"data-dismissible":on,"data-type":dt,"data-invert":Un,"data-swipe-out":br,"data-swipe-direction":de,"data-expanded":!!(G||H&&ce),style:{"--index":B,"--toasts-before":B,"--z-index":_.length-B,"--offset":`${je?Yo:bn.current}px`,"--initial-height":H?"auto":`${Xo}px`,...he,...v.style},onDragEnd:()=>{Jr(!1),oe(null),an.current=null},onPointerDown:pe=>{ln||!on||(to.current=new Date,eo(bn.current),pe.target.setPointerCapture(pe.pointerId),pe.target.tagName!=="BUTTON"&&(Jr(!0),an.current={x:pe.clientX,y:pe.clientY}))},onPointerUp:()=>{var pe,Ne,_e,ft;if(br||!on)return;an.current=null;let yt=Number(((pe=rn.current)==null?void 0:pe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vt=Number(((Ne=rn.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Qt=new Date().getTime()-((_e=to.current)==null?void 0:_e.getTime()),rt=te==="x"?yt:vt,un=Math.abs(rt)/Qt;if(Math.abs(rt)>=L0||un>.11){eo(bn.current),(ft=v.onDismiss)==null||ft.call(v,v),ve(te==="x"?yt>0?"right":"left":vt>0?"down":"up"),Vt(),Go(!0),qo(!1);return}Jr(!1),oe(null)},onPointerMove:pe=>{var Ne,_e,ft,yt;if(!an.current||!on||((Ne=window.getSelection())==null?void 0:Ne.toString().length)>0)return;let vt=pe.clientY-an.current.y,Qt=pe.clientX-an.current.x,rt=(_e=r.swipeDirections)!=null?_e:F0(Be);!te&&(Math.abs(Qt)>1||Math.abs(vt)>1)&&oe(Math.abs(Qt)>Math.abs(vt)?"x":"y");let un={x:0,y:0};te==="y"?(rt.includes("top")||rt.includes("bottom"))&&(rt.includes("top")&&vt<0||rt.includes("bottom")&&vt>0)&&(un.y=vt):te==="x"&&(rt.includes("left")||rt.includes("right"))&&(rt.includes("left")&&Qt<0||rt.includes("right")&&Qt>0)&&(un.x=Qt),(Math.abs(un.x)>0||Math.abs(un.y)>0)&&qo(!0),(ft=rn.current)==null||ft.style.setProperty("--swipe-amount-x",`${un.x}px`),(yt=rn.current)==null||yt.style.setProperty("--swipe-amount-y",`${un.y}px`)}},kr&&!v.jsx?K.createElement("button",{"aria-label":N,"data-disabled":ln,"data-close-button":!0,onClick:ln||!on?()=>{}:()=>{var pe;Vt(),(pe=v.onDismiss)==null||pe.call(v,v)},className:Zt(W==null?void 0:W.closeButton,(c=v==null?void 0:v.classNames)==null?void 0:c.closeButton)},(d=Q==null?void 0:Q.close)!=null?d:k0):null,v.jsx||k.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:K.createElement(K.Fragment,null,dt||v.icon||v.promise?K.createElement("div",{"data-icon":"",className:Zt(W==null?void 0:W.icon,(m=v==null?void 0:v.classNames)==null?void 0:m.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||ti():null,v.type!=="loading"?v.icon||(Q==null?void 0:Q[dt])||g0(dt):null):null,K.createElement("div",{"data-content":"",className:Zt(W==null?void 0:W.content,(p=v==null?void 0:v.classNames)==null?void 0:p.content)},K.createElement("div",{"data-title":"",className:Zt(W==null?void 0:W.title,(x=v==null?void 0:v.classNames)==null?void 0:x.title)},typeof v.title=="function"?v.title():v.title),v.description?K.createElement("div",{"data-description":"",className:Zt(Fe,Zs,W==null?void 0:W.description,(g=v==null?void 0:v.classNames)==null?void 0:g.description)},typeof v.description=="function"?v.description():v.description):null),k.isValidElement(v.cancel)?v.cancel:v.cancel&&fa(v.cancel)?K.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||ye,onClick:pe=>{var Ne,_e;fa(v.cancel)&&on&&((_e=(Ne=v.cancel).onClick)==null||_e.call(Ne,pe),Vt())},className:Zt(W==null?void 0:W.cancelButton,(E=v==null?void 0:v.classNames)==null?void 0:E.cancelButton)},v.cancel.label):null,k.isValidElement(v.action)?v.action:v.action&&fa(v.action)?K.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||Pe,onClick:pe=>{var Ne,_e;fa(v.action)&&((_e=(Ne=v.action).onClick)==null||_e.call(Ne,pe),!pe.defaultPrevented&&Vt())},className:Zt(W==null?void 0:W.actionButton,(P=v==null?void 0:v.classNames)==null?void 0:P.actionButton)},v.action.label):null))};function xp(){if(typeof window>"u"||typeof document>"u")return"ltr";let r=document.documentElement.getAttribute("dir");return r==="auto"||!r?window.getComputedStyle(document.documentElement).direction:r}function B0(r,o){let i={};return[r,o].forEach((l,c)=>{let d=c===1,m=d?"--mobile-offset":"--offset",p=d?z0:_0;function x(g){["top","right","bottom","left"].forEach(E=>{i[`${m}-${E}`]=typeof g=="number"?`${g}px`:g})}typeof l=="number"||typeof l=="string"?x(l):typeof l=="object"?["top","right","bottom","left"].forEach(g=>{l[g]===void 0?i[`${m}-${g}`]=p:i[`${m}-${g}`]=typeof l[g]=="number"?`${l[g]}px`:l[g]}):x(p)}),i}var W0=k.forwardRef(function(r,o){let{invert:i,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:d,closeButton:m,className:p,offset:x,mobileOffset:g,theme:E="light",richColors:P,duration:T,style:v,visibleToasts:I=O0,toastOptions:b,dir:R=xp(),gap:D=A0,loadingIcon:F,icons:B,containerAriaLabel:_="Notifications",pauseWhenPageIsHidden:G}=r,[ee,$]=K.useState([]),X=K.useMemo(()=>Array.from(new Set([l].concat(ee.filter(z=>z.position).map(z=>z.position)))),[ee,l]),[he,ye]=K.useState([]),[Pe,ae]=K.useState(!1),[Fe,Te]=K.useState(!1),[Be,Oe]=K.useState(E!=="system"?E:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),xe=K.useRef(null),H=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),W=K.useRef(null),Q=K.useRef(!1),N=K.useCallback(z=>{$(te=>{var oe;return(oe=te.find(de=>de.id===z.id))!=null&&oe.delete||Pt.dismiss(z.id),te.filter(({id:de})=>de!==z.id)})},[]);return K.useEffect(()=>Pt.subscribe(z=>{if(z.dismiss){$(te=>te.map(oe=>oe.id===z.id?{...oe,delete:!0}:oe));return}setTimeout(()=>{Eh.flushSync(()=>{$(te=>{let oe=te.findIndex(de=>de.id===z.id);return oe!==-1?[...te.slice(0,oe),{...te[oe],...z},...te.slice(oe+1)]:[z,...te]})})})}),[]),K.useEffect(()=>{if(E!=="system"){Oe(E);return}if(E==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Oe("dark"):Oe("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:te})=>{Oe(te?"dark":"light")})}catch{z.addListener(({matches:oe})=>{try{Oe(oe?"dark":"light")}catch(de){console.error(de)}})}},[E]),K.useEffect(()=>{ee.length<=1&&ae(!1)},[ee]),K.useEffect(()=>{let z=te=>{var oe,de;c.every(ve=>te[ve]||te.code===ve)&&(ae(!0),(oe=xe.current)==null||oe.focus()),te.code==="Escape"&&(document.activeElement===xe.current||(de=xe.current)!=null&&de.contains(document.activeElement))&&ae(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[c]),K.useEffect(()=>{if(xe.current)return()=>{W.current&&(W.current.focus({preventScroll:!0}),W.current=null,Q.current=!1)}},[xe.current]),K.createElement("section",{ref:o,"aria-label":`${_} ${H}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},X.map((z,te)=>{var oe;let[de,ve]=z.split("-");return ee.length?K.createElement("ol",{key:z,dir:R==="auto"?xp():R,tabIndex:-1,ref:xe,className:p,"data-sonner-toaster":!0,"data-theme":Be,"data-y-position":de,"data-lifted":Pe&&ee.length>1&&!d,"data-x-position":ve,style:{"--front-toast-height":`${((oe=he[0])==null?void 0:oe.height)||0}px`,"--width":`${I0}px`,"--gap":`${D}px`,...v,...B0(x,g)},onBlur:ce=>{Q.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(Q.current=!1,W.current&&(W.current.focus({preventScroll:!0}),W.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||Q.current||(Q.current=!0,W.current=ce.relatedTarget)},onMouseEnter:()=>ae(!0),onMouseMove:()=>ae(!0),onMouseLeave:()=>{Fe||ae(!1)},onDragEnd:()=>ae(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||Te(!0)},onPointerUp:()=>Te(!1)},ee.filter(ce=>!ce.position&&te===0||ce.position===z).map((ce,be)=>{var je,Ze;return K.createElement(U0,{key:ce.id,icons:B,index:be,toast:ce,defaultRichColors:P,duration:(je=b==null?void 0:b.duration)!=null?je:T,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:i,visibleToasts:I,closeButton:(Ze=b==null?void 0:b.closeButton)!=null?Ze:m,interacting:Fe,position:z,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,removeToast:N,toasts:ee.filter(nn=>nn.position==ce.position),heights:he.filter(nn=>nn.position==ce.position),setHeights:ye,expandByDefault:d,gap:D,loadingIcon:F,expanded:Pe,pauseWhenPageIsHidden:G,swipeDirections:r.swipeDirections})})):null}))});const Sp={model:{zh:"模型",en:"Model"},providers:{zh:"提供商",en:"Providers"},channels:{zh:"渠道",en:"Channels"},enabled:{zh:"启用",en:"Enabled"},disabled:{zh:"禁用",en:"Disabled"},save:{zh:"保存",en:"Save"},cancel:{zh:"取消",en:"Cancel"},delete:{zh:"删除",en:"Delete"},add:{zh:"添加",en:"Add"},edit:{zh:"编辑",en:"Edit"},loading:{zh:"加载中...",en:"Loading..."},success:{zh:"成功",en:"Success"},error:{zh:"错误",en:"Error"},modelName:{zh:"模型",en:"Model"},workspace:{zh:"工作空间",en:"Workspace"},maxTokens:{zh:"最大 Token 数",en:"Max Tokens"},temperature:{zh:"温度",en:"Temperature"},maxToolIterations:{zh:"最大工具迭代次数",en:"Max Tool Iterations"},apiKey:{zh:"API 密钥",en:"API Key"},apiBase:{zh:"API Base",en:"API Base"},extraHeaders:{zh:"额外请求头",en:"Extra Headers"},wireApi:{zh:"请求接口",en:"Wire API"},wireApiAuto:{zh:"自动(优先 Chat,必要时 Responses)",en:"Auto (Chat with fallback)"},wireApiChat:{zh:"Chat Completions",en:"Chat Completions"},wireApiResponses:{zh:"Responses",en:"Responses"},apiKeySet:{zh:"已设置",en:"Set"},apiKeyNotSet:{zh:"未设置",en:"Not Set"},showKey:{zh:"显示密钥",en:"Show Key"},hideKey:{zh:"隐藏密钥",en:"Hide Key"},allowFrom:{zh:"允许来源",en:"Allow From"},token:{zh:"Token",en:"Token"},botToken:{zh:"Bot Token",en:"Bot Token"},appToken:{zh:"App Token",en:"App Token"},appId:{zh:"App ID",en:"App ID"},appSecret:{zh:"App Secret",en:"App Secret"},markdownSupport:{zh:"Markdown 支持",en:"Markdown Support"},clientId:{zh:"Client ID",en:"Client ID"},clientSecret:{zh:"Client Secret",en:"Client Secret"},encryptKey:{zh:"加密密钥",en:"Encrypt Key"},verificationToken:{zh:"验证令牌",en:"Verification Token"},bridgeUrl:{zh:"桥接 URL",en:"Bridge URL"},gatewayUrl:{zh:"网关 URL",en:"Gateway URL"},proxy:{zh:"代理",en:"Proxy"},intents:{zh:"Intents",en:"Intents"},mode:{zh:"模式",en:"Mode"},webhookPath:{zh:"Webhook 路径",en:"Webhook Path"},groupPolicy:{zh:"群组策略",en:"Group Policy"},consentGranted:{zh:"同意条款",en:"Consent Granted"},imapHost:{zh:"IMAP 服务器",en:"IMAP Host"},imapPort:{zh:"IMAP 端口",en:"IMAP Port"},imapUsername:{zh:"IMAP 用户名",en:"IMAP Username"},imapPassword:{zh:"IMAP 密码",en:"IMAP Password"},imapMailbox:{zh:"IMAP 邮箱",en:"IMAP Mailbox"},imapUseSsl:{zh:"IMAP 使用 SSL",en:"IMAP Use SSL"},smtpHost:{zh:"SMTP 服务器",en:"SMTP Host"},smtpPort:{zh:"SMTP 端口",en:"SMTP Port"},smtpUsername:{zh:"SMTP 用户名",en:"SMTP Username"},smtpPassword:{zh:"SMTP 密码",en:"SMTP Password"},smtpUseTls:{zh:"SMTP 使用 TLS",en:"SMTP Use TLS"},smtpUseSsl:{zh:"SMTP 使用 SSL",en:"SMTP Use SSL"},fromAddress:{zh:"发件地址",en:"From Address"},autoReplyEnabled:{zh:"自动回复已启用",en:"Auto Reply Enabled"},pollIntervalSeconds:{zh:"轮询间隔(秒)",en:"Poll Interval (s)"},markSeen:{zh:"标记为已读",en:"Mark Seen"},maxBodyChars:{zh:"最大正文字符数",en:"Max Body Chars"},subjectPrefix:{zh:"主题前缀",en:"Subject Prefix"},baseUrl:{zh:"Base URL",en:"Base URL"},socketUrl:{zh:"Socket URL",en:"Socket URL"},socketPath:{zh:"Socket 路径",en:"Socket Path"},socketDisableMsgpack:{zh:"禁用 Msgpack",en:"Disable Msgpack"},socketReconnectDelayMs:{zh:"重连延迟(ms)",en:"Reconnect Delay (ms)"},socketMaxReconnectDelayMs:{zh:"最大重连延迟(ms)",en:"Max Reconnect Delay (ms)"},socketConnectTimeoutMs:{zh:"连接超时(ms)",en:"Connect Timeout (ms)"},refreshIntervalMs:{zh:"刷新间隔(ms)",en:"Refresh Interval (ms)"},watchTimeoutMs:{zh:"监视超时(ms)",en:"Watch Timeout (ms)"},watchLimit:{zh:"监视限制",en:"Watch Limit"},retryDelayMs:{zh:"重试延迟(ms)",en:"Retry Delay (ms)"},maxRetryAttempts:{zh:"最大重试次数",en:"Max Retry Attempts"},clawToken:{zh:"Claw Token",en:"Claw Token"},agentUserId:{zh:"代理用户ID",en:"Agent User ID"},sessions:{zh:"会话",en:"Sessions"},panels:{zh:"面板",en:"Panels"},mentionRequireInGroups:{zh:"群组中需要@",en:"Require Mention in Groups"},groups:{zh:"群组",en:"Groups"},replyDelayMode:{zh:"回复延迟模式",en:"Reply Delay Mode"},replyDelayMs:{zh:"回复延迟(ms)",en:"Reply Delay (ms)"},secret:{zh:"密钥",en:"Secret"},saveVerifyConnect:{zh:"保存并验证 / 连接",en:"Save & Verify / Connect"},connected:{zh:"已连接",en:"Connected"},disconnected:{zh:"未连接",en:"Disconnected"},connecting:{zh:"连接中...",en:"Connecting..."},feishuConnecting:{zh:"验证 / 连接中...",en:"Verifying / connecting..."},configSaved:{zh:"配置已保存",en:"Configuration saved"},configSavedApplied:{zh:"配置已保存并已应用",en:"Configuration saved and applied"},configSaveFailed:{zh:"保存配置失败",en:"Failed to save configuration"},configReloaded:{zh:"配置已重载",en:"Configuration reloaded"},configReloadFailed:{zh:"重载配置失败",en:"Failed to reload configuration"},feishuVerifySuccess:{zh:"验证成功,请到飞书开放平台完成事件订阅与发布后再开始使用。",en:"Verified. Please finish Feishu event subscription and app publishing before using."},feishuVerifyFailed:{zh:"验证失败",en:"Verification failed"},enterTag:{zh:"输入后按回车...",en:"Type and press Enter..."},headerName:{zh:"Header 名称",en:"Header Name"},headerValue:{zh:"Header 值",en:"Header Value"}};function Y(r,o="en"){var i,l;return((i=Sp[r])==null?void 0:i[o])||((l=Sp[r])==null?void 0:l.en)||r}function Ks(){return ec({queryKey:["config"],queryFn:u0,staleTime:3e4,refetchOnWindowFocus:!0})}function sc(){return ec({queryKey:["config-meta"],queryFn:c0,staleTime:1/0})}function Gs(){return ec({queryKey:["config-schema"],queryFn:d0,staleTime:1/0})}function V0(){const r=Hs();return tc({mutationFn:f0,onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sr.success(Y("configSaved"))},onError:o=>{Sr.error(Y("configSaveFailed")+": "+o.message)}})}function Q0(){const r=Hs();return tc({mutationFn:({provider:o,data:i})=>p0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sr.success(Y("configSaved"))},onError:o=>{Sr.error(Y("configSaveFailed")+": "+o.message)}})}function $0(){const r=Hs();return tc({mutationFn:({channel:o,data:i})=>h0(o,i),onSuccess:()=>{r.invalidateQueries({queryKey:["config"]}),Sr.success(Y("configSavedApplied"))},onError:o=>{Sr.error(Y("configSaveFailed")+": "+o.message)}})}function H0(r){return Array.isArray(r)?r.filter(o=>typeof o=="string").join("."):r}function Wt(r,o){if(!o)return;const i=H0(r),l=o[i];if(l)return l;const c=i.split(".");for(const[d,m]of Object.entries(o)){if(!d.includes("*"))continue;const p=d.split(".");if(p.length!==c.length)continue;let x=!0;for(let g=0;g<c.length;g+=1)if(p[g]!=="*"&&p[g]!==c[g]){x=!1;break}if(x)return m}}function bp(){const{data:r,isLoading:o}=Ks(),{data:i}=Gs(),l=V0(),[c,d]=k.useState(""),[m,p]=k.useState(""),[x,g]=k.useState(8192),[E,P]=k.useState(.7),T=i==null?void 0:i.uiHints,v=Wt("agents.defaults.model",T),I=Wt("agents.defaults.workspace",T),b=Wt("agents.defaults.maxTokens",T),R=Wt("agents.defaults.temperature",T);k.useEffect(()=>{var F;(F=r==null?void 0:r.agents)!=null&&F.defaults&&(d(r.agents.defaults.model||""),p(r.agents.defaults.workspace||""),g(r.agents.defaults.maxTokens||8192),P(r.agents.defaults.temperature||.7))},[r]);const D=F=>{F.preventDefault(),l.mutate({model:c})};return o?h.jsxs("div",{className:"max-w-2xl space-y-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx(Ot,{className:"h-8 w-32"}),h.jsx(Ot,{className:"h-4 w-48"})]}),h.jsxs(Vu,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[h.jsx(Ot,{className:"h-12 w-12 rounded-xl"}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(Ot,{className:"h-5 w-24"}),h.jsx(Ot,{className:"h-3 w-32"})]})]}),h.jsx(Ot,{className:"h-4 w-20 mb-2"}),h.jsx(Ot,{className:"h-10 w-full rounded-xl"})]}),h.jsxs(Vu,{className:"rounded-2xl border-gray-200 p-6",children:[h.jsx(Ot,{className:"h-5 w-24 mb-2"}),h.jsx(Ot,{className:"h-3 w-40 mb-6"}),h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx(Ot,{className:"h-4 w-28 mb-3"}),h.jsx(Ot,{className:"h-2 w-full rounded-full"})]}),h.jsxs("div",{children:[h.jsx(Ot,{className:"h-4 w-32 mb-3"}),h.jsx(Ot,{className:"h-2 w-full rounded-full"})]})]})]})]}):h.jsxs("div",{className:"max-w-4xl animate-fade-in pb-20",children:[h.jsxs("div",{className:"mb-10",children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Model Configuration"}),h.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Configure default AI model and behavior parameters"})]}),h.jsxs("form",{onSubmit:D,className:"space-y-8",children:[h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[h.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(bh,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Default Model"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(wn,{htmlFor:"model",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(v==null?void 0:v.label)??"Model Name"}),h.jsx(Sn,{id:"model",value:c,onChange:F=>d(F.target.value),placeholder:(v==null?void 0:v.placeholder)??"minimax/MiniMax-M2.1",className:"h-12 px-4 rounded-xl"}),h.jsx("p",{className:"text-xs text-gray-400",children:(v==null?void 0:v.help)??"Examples: minimax/MiniMax-M2.1 · anthropic/claude-opus-4-5"})]})]}),h.jsxs("div",{className:"p-8 rounded-2xl bg-gray-50 border border-gray-200",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(Vv,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Workspace"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx(wn,{htmlFor:"workspace",className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(I==null?void 0:I.label)??"Default Path"}),h.jsx(Sn,{id:"workspace",value:m,onChange:F=>p(F.target.value),placeholder:(I==null?void 0:I.placeholder)??"/path/to/workspace",className:"h-12 px-4 rounded-xl"})]})]})]}),h.jsxs("div",{className:"p-8 rounded-2xl bg-white border border-gray-200 shadow-card",children:[h.jsxs("div",{className:"flex items-center gap-4 mb-10",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center text-white",children:h.jsx(Gv,{className:"h-5 w-5"})}),h.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Generation Parameters"})]}),h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12",children:[h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx(wn,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(b==null?void 0:b.label)??"Max Tokens"}),h.jsx("span",{className:"text-sm font-semibold text-gray-900",children:x.toLocaleString()})]}),h.jsx("input",{type:"range",min:"1000",max:"32000",step:"1000",value:x,onChange:F=>g(parseInt(F.target.value)),className:"w-full h-1 bg-gray-200 rounded-full appearance-none cursor-pointer accent-primary"})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx(wn,{className:"text-xs font-semibold text-gray-500 uppercase tracking-wider",children:(R==null?void 0:R.label)??"Temperature"}),h.jsx("span",{className:"text-sm font-semibold text-gray-900",children:E})]}),h.jsx("input",{type:"range",min:"0",max:"2",step:"0.1",value:E,onChange:F=>P(parseFloat(F.target.value)),className:"w-full h-1 bg-gray-200 rounded-full appearance-none cursor-pointer accent-primary"})]})]})]}),h.jsx("div",{className:"flex justify-end pt-4",children:h.jsx(xn,{type:"submit",disabled:l.isPending,size:"lg",children:l.isPending?h.jsx(Qv,{className:"h-5 w-5 animate-spin"}):"Save Changes"})})]})]})}function xr(r,o,{checkForDefaultPrevented:i=!0}={}){return function(c){if(r==null||r(c),i===!1||!c.defaultPrevented)return o==null?void 0:o(c)}}function kp(r,o){if(typeof r=="function")return r(o);r!=null&&(r.current=o)}function Nh(...r){return o=>{let i=!1;const l=r.map(c=>{const d=kp(c,o);return!i&&typeof d=="function"&&(i=!0),d});if(i)return()=>{for(let c=0;c<l.length;c++){const d=l[c];typeof d=="function"?d():kp(r[c],null)}}}}function Zr(...r){return k.useCallback(Nh(...r),r)}function K0(r,o){const i=k.createContext(o),l=d=>{const{children:m,...p}=d,x=k.useMemo(()=>p,Object.values(p));return h.jsx(i.Provider,{value:x,children:m})};l.displayName=r+"Provider";function c(d){const m=k.useContext(i);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[l,c]}function G0(r,o=[]){let i=[];function l(d,m){const p=k.createContext(m),x=i.length;i=[...i,m];const g=P=>{var D;const{scope:T,children:v,...I}=P,b=((D=T==null?void 0:T[r])==null?void 0:D[x])||p,R=k.useMemo(()=>I,Object.values(I));return h.jsx(b.Provider,{value:R,children:v})};g.displayName=d+"Provider";function E(P,T){var b;const v=((b=T==null?void 0:T[r])==null?void 0:b[x])||p,I=k.useContext(v);if(I)return I;if(m!==void 0)return m;throw new Error(`\`${P}\` must be used within \`${d}\``)}return[g,E]}const c=()=>{const d=i.map(m=>k.createContext(m));return function(p){const x=(p==null?void 0:p[r])||d;return k.useMemo(()=>({[`__scope${r}`]:{...p,[r]:x}}),[p,x])}};return c.scopeName=r,[l,q0(c,...o)]}function q0(...r){const o=r[0];if(r.length===1)return o;const i=()=>{const l=r.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const m=l.reduce((p,{useScope:x,scopeName:g})=>{const P=x(d)[`__scope${g}`];return{...p,...P}},{});return k.useMemo(()=>({[`__scope${o.scopeName}`]:m}),[m])}};return i.scopeName=o.scopeName,i}var Fs=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},Y0=Zp[" useId ".trim().toString()]||(()=>{}),X0=0;function wu(r){const[o,i]=k.useState(Y0());return Fs(()=>{i(l=>l??String(X0++))},[r]),r||(o?`radix-${o}`:"")}var Z0=Zp[" useInsertionEffect ".trim().toString()]||Fs;function J0({prop:r,defaultProp:o,onChange:i=()=>{},caller:l}){const[c,d,m]=e1({defaultProp:o,onChange:i}),p=r!==void 0,x=p?r:c;{const E=k.useRef(r!==void 0);k.useEffect(()=>{const P=E.current;P!==p&&console.warn(`${l} is changing from ${P?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),E.current=p},[p,l])}const g=k.useCallback(E=>{var P;if(p){const T=t1(E)?E(r):E;T!==r&&((P=m.current)==null||P.call(m,T))}else d(E)},[p,r,d,m]);return[x,g]}function e1({defaultProp:r,onChange:o}){const[i,l]=k.useState(r),c=k.useRef(i),d=k.useRef(o);return Z0(()=>{d.current=o},[o]),k.useEffect(()=>{var m;c.current!==i&&((m=d.current)==null||m.call(d,i),c.current=i)},[i,c]),[i,l,d]}function t1(r){return typeof r=="function"}function Ph(r){const o=n1(r),i=k.forwardRef((l,c)=>{const{children:d,...m}=l,p=k.Children.toArray(d),x=p.find(o1);if(x){const g=x.props.children,E=p.map(P=>P===x?k.Children.count(g)>1?k.Children.only(null):k.isValidElement(g)?g.props.children:null:P);return h.jsx(o,{...m,ref:c,children:k.isValidElement(g)?k.cloneElement(g,void 0,E):null})}return h.jsx(o,{...m,ref:c,children:d})});return i.displayName=`${r}.Slot`,i}function n1(r){const o=k.forwardRef((i,l)=>{const{children:c,...d}=i;if(k.isValidElement(c)){const m=i1(c),p=s1(d,c.props);return c.type!==k.Fragment&&(p.ref=l?Nh(l,m):m),k.cloneElement(c,p)}return k.Children.count(c)>1?k.Children.only(null):null});return o.displayName=`${r}.SlotClone`,o}var r1=Symbol("radix.slottable");function o1(r){return k.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===r1}function s1(r,o){const i={...o};for(const l in o){const c=r[l],d=o[l];/^on[A-Z]/.test(l)?c&&d?i[l]=(...p)=>{const x=d(...p);return c(...p),x}:c&&(i[l]=c):l==="style"?i[l]={...c,...d}:l==="className"&&(i[l]=[c,d].filter(Boolean).join(" "))}return{...r,...i}}function i1(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var a1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Dn=a1.reduce((r,o)=>{const i=Ph(`Primitive.${o}`),l=k.forwardRef((c,d)=>{const{asChild:m,...p}=c,x=m?i:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(x,{...p,ref:d})});return l.displayName=`Primitive.${o}`,{...r,[o]:l}},{});function l1(r,o){r&&Ch.flushSync(()=>r.dispatchEvent(o))}function Us(r){const o=k.useRef(r);return k.useEffect(()=>{o.current=r}),k.useMemo(()=>(...i)=>{var l;return(l=o.current)==null?void 0:l.call(o,...i)},[])}function u1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r);k.useEffect(()=>{const l=c=>{c.key==="Escape"&&i(c)};return o.addEventListener("keydown",l,{capture:!0}),()=>o.removeEventListener("keydown",l,{capture:!0})},[i,o])}var c1="DismissableLayer",$u="dismissableLayer.update",d1="dismissableLayer.pointerDownOutside",f1="dismissableLayer.focusOutside",Cp,jh=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rh=k.forwardRef((r,o)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:p,...x}=r,g=k.useContext(jh),[E,P]=k.useState(null),T=(E==null?void 0:E.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=k.useState({}),I=Zr(o,$=>P($)),b=Array.from(g.layers),[R]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),D=b.indexOf(R),F=E?b.indexOf(E):-1,B=g.layersWithOutsidePointerEventsDisabled.size>0,_=F>=D,G=m1($=>{const X=$.target,he=[...g.branches].some(ye=>ye.contains(X));!_||he||(c==null||c($),m==null||m($),$.defaultPrevented||p==null||p())},T),ee=g1($=>{const X=$.target;[...g.branches].some(ye=>ye.contains(X))||(d==null||d($),m==null||m($),$.defaultPrevented||p==null||p())},T);return u1($=>{F===g.layers.size-1&&(l==null||l($),!$.defaultPrevented&&p&&($.preventDefault(),p()))},T),k.useEffect(()=>{if(E)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Cp=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(E)),g.layers.add(E),Ep(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(T.body.style.pointerEvents=Cp)}},[E,T,i,g]),k.useEffect(()=>()=>{E&&(g.layers.delete(E),g.layersWithOutsidePointerEventsDisabled.delete(E),Ep())},[E,g]),k.useEffect(()=>{const $=()=>v({});return document.addEventListener($u,$),()=>document.removeEventListener($u,$)},[]),h.jsx(Dn.div,{...x,ref:I,style:{pointerEvents:B?_?"auto":"none":void 0,...r.style},onFocusCapture:xr(r.onFocusCapture,ee.onFocusCapture),onBlurCapture:xr(r.onBlurCapture,ee.onBlurCapture),onPointerDownCapture:xr(r.onPointerDownCapture,G.onPointerDownCapture)})});Rh.displayName=c1;var p1="DismissableLayerBranch",h1=k.forwardRef((r,o)=>{const i=k.useContext(jh),l=k.useRef(null),c=Zr(o,l);return k.useEffect(()=>{const d=l.current;if(d)return i.branches.add(d),()=>{i.branches.delete(d)}},[i.branches]),h.jsx(Dn.div,{...r,ref:c})});h1.displayName=p1;function m1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r),l=k.useRef(!1),c=k.useRef(()=>{});return k.useEffect(()=>{const d=p=>{if(p.target&&!l.current){let x=function(){Mh(d1,i,g,{discrete:!0})};const g={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",c.current),c.current=x,o.addEventListener("click",c.current,{once:!0})):x()}else o.removeEventListener("click",c.current);l.current=!1},m=window.setTimeout(()=>{o.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),o.removeEventListener("pointerdown",d),o.removeEventListener("click",c.current)}},[o,i]),{onPointerDownCapture:()=>l.current=!0}}function g1(r,o=globalThis==null?void 0:globalThis.document){const i=Us(r),l=k.useRef(!1);return k.useEffect(()=>{const c=d=>{d.target&&!l.current&&Mh(f1,i,{originalEvent:d},{discrete:!1})};return o.addEventListener("focusin",c),()=>o.removeEventListener("focusin",c)},[o,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Ep(){const r=new CustomEvent($u);document.dispatchEvent(r)}function Mh(r,o,i,{discrete:l}){const c=i.originalEvent.target,d=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:i});o&&c.addEventListener(r,o,{once:!0}),l?l1(c,d):c.dispatchEvent(d)}var xu="focusScope.autoFocusOnMount",Su="focusScope.autoFocusOnUnmount",Np={bubbles:!1,cancelable:!0},y1="FocusScope",Th=k.forwardRef((r,o)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=r,[p,x]=k.useState(null),g=Us(c),E=Us(d),P=k.useRef(null),T=Zr(o,b=>x(b)),v=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(l){let b=function(B){if(v.paused||!p)return;const _=B.target;p.contains(_)?P.current=_:ur(P.current,{select:!0})},R=function(B){if(v.paused||!p)return;const _=B.relatedTarget;_!==null&&(p.contains(_)||ur(P.current,{select:!0}))},D=function(B){if(document.activeElement===document.body)for(const G of B)G.removedNodes.length>0&&ur(p)};document.addEventListener("focusin",b),document.addEventListener("focusout",R);const F=new MutationObserver(D);return p&&F.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",R),F.disconnect()}}},[l,p,v.paused]),k.useEffect(()=>{if(p){jp.add(v);const b=document.activeElement;if(!p.contains(b)){const D=new CustomEvent(xu,Np);p.addEventListener(xu,g),p.dispatchEvent(D),D.defaultPrevented||(v1(k1(Oh(p)),{select:!0}),document.activeElement===b&&ur(p))}return()=>{p.removeEventListener(xu,g),setTimeout(()=>{const D=new CustomEvent(Su,Np);p.addEventListener(Su,E),p.dispatchEvent(D),D.defaultPrevented||ur(b??document.body,{select:!0}),p.removeEventListener(Su,E),jp.remove(v)},0)}}},[p,g,E,v]);const I=k.useCallback(b=>{if(!i&&!l||v.paused)return;const R=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,D=document.activeElement;if(R&&D){const F=b.currentTarget,[B,_]=w1(F);B&&_?!b.shiftKey&&D===_?(b.preventDefault(),i&&ur(B,{select:!0})):b.shiftKey&&D===B&&(b.preventDefault(),i&&ur(_,{select:!0})):D===F&&b.preventDefault()}},[i,l,v.paused]);return h.jsx(Dn.div,{tabIndex:-1,...m,ref:T,onKeyDown:I})});Th.displayName=y1;function v1(r,{select:o=!1}={}){const i=document.activeElement;for(const l of r)if(ur(l,{select:o}),document.activeElement!==i)return}function w1(r){const o=Oh(r),i=Pp(o,r),l=Pp(o.reverse(),r);return[i,l]}function Oh(r){const o=[],i=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const c=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||c?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)o.push(i.currentNode);return o}function Pp(r,o){for(const i of r)if(!x1(i,{upTo:o}))return i}function x1(r,{upTo:o}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(o!==void 0&&r===o)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function S1(r){return r instanceof HTMLInputElement&&"select"in r}function ur(r,{select:o=!1}={}){if(r&&r.focus){const i=document.activeElement;r.focus({preventScroll:!0}),r!==i&&S1(r)&&o&&r.select()}}var jp=b1();function b1(){let r=[];return{add(o){const i=r[0];o!==i&&(i==null||i.pause()),r=Rp(r,o),r.unshift(o)},remove(o){var i;r=Rp(r,o),(i=r[0])==null||i.resume()}}}function Rp(r,o){const i=[...r],l=i.indexOf(o);return l!==-1&&i.splice(l,1),i}function k1(r){return r.filter(o=>o.tagName!=="A")}var C1="Portal",_h=k.forwardRef((r,o)=>{var p;const{container:i,...l}=r,[c,d]=k.useState(!1);Fs(()=>d(!0),[]);const m=i||c&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return m?Eh.createPortal(h.jsx(Dn.div,{...l,ref:o}),m):null});_h.displayName=C1;function E1(r,o){return k.useReducer((i,l)=>o[i][l]??i,r)}var Pa=r=>{const{present:o,children:i}=r,l=N1(o),c=typeof i=="function"?i({present:l.isPresent}):k.Children.only(i),d=Zr(l.ref,P1(c));return typeof i=="function"||l.isPresent?k.cloneElement(c,{ref:d}):null};Pa.displayName="Presence";function N1(r){const[o,i]=k.useState(),l=k.useRef(null),c=k.useRef(r),d=k.useRef("none"),m=r?"mounted":"unmounted",[p,x]=E1(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const g=pa(l.current);d.current=p==="mounted"?g:"none"},[p]),Fs(()=>{const g=l.current,E=c.current;if(E!==r){const T=d.current,v=pa(g);r?x("MOUNT"):v==="none"||(g==null?void 0:g.display)==="none"?x("UNMOUNT"):x(E&&T!==v?"ANIMATION_OUT":"UNMOUNT"),c.current=r}},[r,x]),Fs(()=>{if(o){let g;const E=o.ownerDocument.defaultView??window,P=v=>{const b=pa(l.current).includes(CSS.escape(v.animationName));if(v.target===o&&b&&(x("ANIMATION_END"),!c.current)){const R=o.style.animationFillMode;o.style.animationFillMode="forwards",g=E.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=R)})}},T=v=>{v.target===o&&(d.current=pa(l.current))};return o.addEventListener("animationstart",T),o.addEventListener("animationcancel",P),o.addEventListener("animationend",P),()=>{E.clearTimeout(g),o.removeEventListener("animationstart",T),o.removeEventListener("animationcancel",P),o.removeEventListener("animationend",P)}}else x("ANIMATION_END")},[o,x]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:k.useCallback(g=>{l.current=g?getComputedStyle(g):null,i(g)},[])}}function pa(r){return(r==null?void 0:r.animationName)||"none"}function P1(r){var l,c;let o=(l=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:l.get,i=o&&"isReactWarning"in o&&o.isReactWarning;return i?r.ref:(o=(c=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:c.get,i=o&&"isReactWarning"in o&&o.isReactWarning,i?r.props.ref:r.props.ref||r.ref)}var bu=0;function j1(){k.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Mp()),document.body.insertAdjacentElement("beforeend",r[1]??Mp()),bu++,()=>{bu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),bu--}},[])}function Mp(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}var vn=function(){return vn=Object.assign||function(o){for(var i,l=1,c=arguments.length;l<c;l++){i=arguments[l];for(var d in i)Object.prototype.hasOwnProperty.call(i,d)&&(o[d]=i[d])}return o},vn.apply(this,arguments)};function zh(r,o){var i={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&o.indexOf(l)<0&&(i[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(r);c<l.length;c++)o.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(r,l[c])&&(i[l[c]]=r[l[c]]);return i}function R1(r,o,i){if(i||arguments.length===2)for(var l=0,c=o.length,d;l<c;l++)(d||!(l in o))&&(d||(d=Array.prototype.slice.call(o,0,l)),d[l]=o[l]);return r.concat(d||Array.prototype.slice.call(o))}var Sa="right-scroll-bar-position",ba="width-before-scroll-bar",M1="with-scroll-bars-hidden",T1="--removed-body-scroll-bar-size";function ku(r,o){return typeof r=="function"?r(o):r&&(r.current=o),r}function O1(r,o){var i=k.useState(function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(l){var c=i.value;c!==l&&(i.value=l,i.callback(l,c))}}}})[0];return i.callback=o,i.facade}var _1=typeof window<"u"?k.useLayoutEffect:k.useEffect,Tp=new WeakMap;function z1(r,o){var i=O1(null,function(l){return r.forEach(function(c){return ku(c,l)})});return _1(function(){var l=Tp.get(i);if(l){var c=new Set(l),d=new Set(r),m=i.current;c.forEach(function(p){d.has(p)||ku(p,null)}),d.forEach(function(p){c.has(p)||ku(p,m)})}Tp.set(i,r)},[r]),i}function I1(r){return r}function A1(r,o){o===void 0&&(o=I1);var i=[],l=!1,c={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:r},useMedium:function(d){var m=o(d,l);return i.push(m),function(){i=i.filter(function(p){return p!==m})}},assignSyncMedium:function(d){for(l=!0;i.length;){var m=i;i=[],m.forEach(d)}i={push:function(p){return d(p)},filter:function(){return i}}},assignMedium:function(d){l=!0;var m=[];if(i.length){var p=i;i=[],p.forEach(d),m=i}var x=function(){var E=m;m=[],E.forEach(d)},g=function(){return Promise.resolve().then(x)};g(),i={push:function(E){m.push(E),g()},filter:function(E){return m=m.filter(E),i}}}};return c}function L1(r){r===void 0&&(r={});var o=A1(null);return o.options=vn({async:!0,ssr:!1},r),o}var Ih=function(r){var o=r.sideCar,i=zh(r,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=o.read();if(!l)throw new Error("Sidecar medium not found");return k.createElement(l,vn({},i))};Ih.isSideCarExport=!0;function D1(r,o){return r.useMedium(o),Ih}var Ah=L1(),Cu=function(){},ja=k.forwardRef(function(r,o){var i=k.useRef(null),l=k.useState({onScrollCapture:Cu,onWheelCapture:Cu,onTouchMoveCapture:Cu}),c=l[0],d=l[1],m=r.forwardProps,p=r.children,x=r.className,g=r.removeScrollBar,E=r.enabled,P=r.shards,T=r.sideCar,v=r.noRelative,I=r.noIsolation,b=r.inert,R=r.allowPinchZoom,D=r.as,F=D===void 0?"div":D,B=r.gapMode,_=zh(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=T,ee=z1([i,o]),$=vn(vn({},_),c);return k.createElement(k.Fragment,null,E&&k.createElement(G,{sideCar:Ah,removeScrollBar:g,shards:P,noRelative:v,noIsolation:I,inert:b,setCallbacks:d,allowPinchZoom:!!R,lockRef:i,gapMode:B}),m?k.cloneElement(k.Children.only(p),vn(vn({},$),{ref:ee})):k.createElement(F,vn({},$,{className:x,ref:ee}),p))});ja.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ja.classNames={fullWidth:ba,zeroRight:Sa};var F1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function U1(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var o=F1();return o&&r.setAttribute("nonce",o),r}function B1(r,o){r.styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o))}function W1(r){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(r)}var V1=function(){var r=0,o=null;return{add:function(i){r==0&&(o=U1())&&(B1(o,i),W1(o)),r++},remove:function(){r--,!r&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},Q1=function(){var r=V1();return function(o,i){k.useEffect(function(){return r.add(o),function(){r.remove()}},[o&&i])}},Lh=function(){var r=Q1(),o=function(i){var l=i.styles,c=i.dynamic;return r(l,c),null};return o},$1={left:0,top:0,right:0,gap:0},Eu=function(r){return parseInt(r||"",10)||0},H1=function(r){var o=window.getComputedStyle(document.body),i=o[r==="padding"?"paddingLeft":"marginLeft"],l=o[r==="padding"?"paddingTop":"marginTop"],c=o[r==="padding"?"paddingRight":"marginRight"];return[Eu(i),Eu(l),Eu(c)]},K1=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return $1;var o=H1(r),i=document.documentElement.clientWidth,l=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,l-i+o[2]-o[0])}},G1=Lh(),_o="data-scroll-locked",q1=function(r,o,i,l){var c=r.left,d=r.top,m=r.right,p=r.gap;return i===void 0&&(i="margin"),`
187
+ .`.concat(M1,` {
183
188
  overflow: hidden `).concat(l,`;
184
189
  padding-right: `).concat(p,"px ").concat(l,`;
185
190
  }
186
- body[`).concat(zo,`] {
191
+ body[`).concat(_o,`] {
187
192
  overflow: hidden `).concat(l,`;
188
193
  overscroll-behavior: contain;
189
194
  `).concat([o&&"position: relative ".concat(l,";"),i==="margin"&&`
@@ -212,14 +217,14 @@ Error generating stack: `+u.message+`
212
217
  margin-right: 0 `).concat(l,`;
213
218
  }
214
219
 
215
- body[`).concat(zo,`] {
216
- `).concat(M1,": ").concat(p,`px;
220
+ body[`).concat(_o,`] {
221
+ `).concat(T1,": ").concat(p,`px;
217
222
  }
218
- `)},Op=function(){var r=parseInt(document.body.getAttribute(zo)||"0",10);return isFinite(r)?r:0},q1=function(){k.useEffect(function(){return document.body.setAttribute(zo,(Op()+1).toString()),function(){var r=Op()-1;r<=0?document.body.removeAttribute(zo):document.body.setAttribute(zo,r.toString())}},[])},Y1=function(r){var o=r.noRelative,i=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;q1();var d=k.useMemo(function(){return H1(c)},[c]);return k.createElement(K1,{styles:G1(d,!o,c,i?"":"!important")})},Hu=!1;if(typeof window<"u")try{var ha=Object.defineProperty({},"passive",{get:function(){return Hu=!0,!0}});window.addEventListener("test",ha,ha),window.removeEventListener("test",ha,ha)}catch{Hu=!1}var Ro=Hu?{passive:!1}:!1,X1=function(r){return r.tagName==="TEXTAREA"},Lh=function(r,o){if(!(r instanceof Element))return!1;var i=window.getComputedStyle(r);return i[o]!=="hidden"&&!(i.overflowY===i.overflowX&&!X1(r)&&i[o]==="visible")},Z1=function(r){return Lh(r,"overflowY")},J1=function(r){return Lh(r,"overflowX")},zp=function(r,o){var i=o.ownerDocument,l=o;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Dh(r,l);if(c){var d=Fh(r,l),m=d[1],p=d[2];if(m>p)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},ew=function(r){var o=r.scrollTop,i=r.scrollHeight,l=r.clientHeight;return[o,i,l]},tw=function(r){var o=r.scrollLeft,i=r.scrollWidth,l=r.clientWidth;return[o,i,l]},Dh=function(r,o){return r==="v"?Z1(o):J1(o)},Fh=function(r,o){return r==="v"?ew(o):tw(o)},nw=function(r,o){return r==="h"&&o==="rtl"?-1:1},rw=function(r,o,i,l,c){var d=nw(r,window.getComputedStyle(o).direction),m=d*l,p=i.target,x=o.contains(p),g=!1,E=m>0,P=0,T=0;do{if(!p)break;var v=Fh(r,p),I=v[0],b=v[1],R=v[2],D=b-R-d*I;(I||D)&&Dh(r,p)&&(P+=D,T+=I);var F=p.parentNode;p=F&&F.nodeType===Node.DOCUMENT_FRAGMENT_NODE?F.host:F}while(!x&&p!==document.body||x&&(o.contains(p)||o===p));return(E&&Math.abs(P)<1||!E&&Math.abs(T)<1)&&(g=!0),g},ma=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},_p=function(r){return[r.deltaX,r.deltaY]},Ip=function(r){return r&&"current"in r?r.current:r},ow=function(r,o){return r[0]===o[0]&&r[1]===o[1]},sw=function(r){return`
223
+ `)},Op=function(){var r=parseInt(document.body.getAttribute(_o)||"0",10);return isFinite(r)?r:0},Y1=function(){k.useEffect(function(){return document.body.setAttribute(_o,(Op()+1).toString()),function(){var r=Op()-1;r<=0?document.body.removeAttribute(_o):document.body.setAttribute(_o,r.toString())}},[])},X1=function(r){var o=r.noRelative,i=r.noImportant,l=r.gapMode,c=l===void 0?"margin":l;Y1();var d=k.useMemo(function(){return K1(c)},[c]);return k.createElement(G1,{styles:q1(d,!o,c,i?"":"!important")})},Hu=!1;if(typeof window<"u")try{var ha=Object.defineProperty({},"passive",{get:function(){return Hu=!0,!0}});window.addEventListener("test",ha,ha),window.removeEventListener("test",ha,ha)}catch{Hu=!1}var Ro=Hu?{passive:!1}:!1,Z1=function(r){return r.tagName==="TEXTAREA"},Dh=function(r,o){if(!(r instanceof Element))return!1;var i=window.getComputedStyle(r);return i[o]!=="hidden"&&!(i.overflowY===i.overflowX&&!Z1(r)&&i[o]==="visible")},J1=function(r){return Dh(r,"overflowY")},ew=function(r){return Dh(r,"overflowX")},_p=function(r,o){var i=o.ownerDocument,l=o;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var c=Fh(r,l);if(c){var d=Uh(r,l),m=d[1],p=d[2];if(m>p)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},tw=function(r){var o=r.scrollTop,i=r.scrollHeight,l=r.clientHeight;return[o,i,l]},nw=function(r){var o=r.scrollLeft,i=r.scrollWidth,l=r.clientWidth;return[o,i,l]},Fh=function(r,o){return r==="v"?J1(o):ew(o)},Uh=function(r,o){return r==="v"?tw(o):nw(o)},rw=function(r,o){return r==="h"&&o==="rtl"?-1:1},ow=function(r,o,i,l,c){var d=rw(r,window.getComputedStyle(o).direction),m=d*l,p=i.target,x=o.contains(p),g=!1,E=m>0,P=0,T=0;do{if(!p)break;var v=Uh(r,p),I=v[0],b=v[1],R=v[2],D=b-R-d*I;(I||D)&&Fh(r,p)&&(P+=D,T+=I);var F=p.parentNode;p=F&&F.nodeType===Node.DOCUMENT_FRAGMENT_NODE?F.host:F}while(!x&&p!==document.body||x&&(o.contains(p)||o===p));return(E&&Math.abs(P)<1||!E&&Math.abs(T)<1)&&(g=!0),g},ma=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},zp=function(r){return[r.deltaX,r.deltaY]},Ip=function(r){return r&&"current"in r?r.current:r},sw=function(r,o){return r[0]===o[0]&&r[1]===o[1]},iw=function(r){return`
219
224
  .block-interactivity-`.concat(r,` {pointer-events: none;}
220
225
  .allow-interactivity-`).concat(r,` {pointer-events: all;}
221
- `)},iw=0,Mo=[];function aw(r){var o=k.useRef([]),i=k.useRef([0,0]),l=k.useRef(),c=k.useState(iw++)[0],d=k.useState(Ah)[0],m=k.useRef(r);k.useEffect(function(){m.current=r},[r]),k.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var b=j1([r.lockRef.current],(r.shards||[]).map(Ip),!0).filter(Boolean);return b.forEach(function(R){return R.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),b.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var p=k.useCallback(function(b,R){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!m.current.allowPinchZoom;var D=ma(b),F=i.current,B="deltaX"in b?b.deltaX:F[0]-D[0],z="deltaY"in b?b.deltaY:F[1]-D[1],G,ee=b.target,$=Math.abs(B)>Math.abs(z)?"h":"v";if("touches"in b&&$==="h"&&ee.type==="range")return!1;var X=window.getSelection(),he=X&&X.anchorNode,ye=he?he===ee||he.contains(ee):!1;if(ye)return!1;var Pe=zp($,ee);if(!Pe)return!0;if(Pe?G=$:(G=$==="v"?"h":"v",Pe=zp($,ee)),!Pe)return!1;if(!l.current&&"changedTouches"in b&&(B||z)&&(l.current=G),!G)return!0;var ae=l.current||G;return rw(ae,R,b,ae==="h"?B:z)},[]),x=k.useCallback(function(b){var R=b;if(!(!Mo.length||Mo[Mo.length-1]!==d)){var D="deltaY"in R?_p(R):ma(R),F=o.current.filter(function(G){return G.name===R.type&&(G.target===R.target||R.target===G.shadowParent)&&ow(G.delta,D)})[0];if(F&&F.should){R.cancelable&&R.preventDefault();return}if(!F){var B=(m.current.shards||[]).map(Ip).filter(Boolean).filter(function(G){return G.contains(R.target)}),z=B.length>0?p(R,B[0]):!m.current.noIsolation;z&&R.cancelable&&R.preventDefault()}}},[]),g=k.useCallback(function(b,R,D,F){var B={name:b,delta:R,target:D,should:F,shadowParent:lw(D)};o.current.push(B),setTimeout(function(){o.current=o.current.filter(function(z){return z!==B})},1)},[]),E=k.useCallback(function(b){i.current=ma(b),l.current=void 0},[]),P=k.useCallback(function(b){g(b.type,_p(b),b.target,p(b,r.lockRef.current))},[]),T=k.useCallback(function(b){g(b.type,ma(b),b.target,p(b,r.lockRef.current))},[]);k.useEffect(function(){return Mo.push(d),r.setCallbacks({onScrollCapture:P,onWheelCapture:P,onTouchMoveCapture:T}),document.addEventListener("wheel",x,Ro),document.addEventListener("touchmove",x,Ro),document.addEventListener("touchstart",E,Ro),function(){Mo=Mo.filter(function(b){return b!==d}),document.removeEventListener("wheel",x,Ro),document.removeEventListener("touchmove",x,Ro),document.removeEventListener("touchstart",E,Ro)}},[]);var v=r.removeScrollBar,I=r.inert;return k.createElement(k.Fragment,null,I?k.createElement(d,{styles:sw(c)}):null,v?k.createElement(Y1,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function lw(r){for(var o=null;r!==null;)r instanceof ShadowRoot&&(o=r.host,r=r.host),r=r.parentNode;return o}const uw=L1(Ih,aw);var Uh=k.forwardRef(function(r,o){return k.createElement(ja,wn({},r,{ref:o,sideCar:uw}))});Uh.classNames=ja.classNames;var cw=function(r){if(typeof document>"u")return null;var o=Array.isArray(r)?r[0]:r;return o.ownerDocument.body},To=new WeakMap,ga=new WeakMap,ya={},Nu=0,Bh=function(r){return r&&(r.host||Bh(r.parentNode))},dw=function(r,o){return o.map(function(i){if(r.contains(i))return i;var l=Bh(i);return l&&r.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",r,". Doing nothing"),null)}).filter(function(i){return!!i})},fw=function(r,o,i,l){var c=dw(o,Array.isArray(r)?r:[r]);ya[i]||(ya[i]=new WeakMap);var d=ya[i],m=[],p=new Set,x=new Set(c),g=function(P){!P||p.has(P)||(p.add(P),g(P.parentNode))};c.forEach(g);var E=function(P){!P||x.has(P)||Array.prototype.forEach.call(P.children,function(T){if(p.has(T))E(T);else try{var v=T.getAttribute(l),I=v!==null&&v!=="false",b=(To.get(T)||0)+1,R=(d.get(T)||0)+1;To.set(T,b),d.set(T,R),m.push(T),b===1&&I&&ga.set(T,!0),R===1&&T.setAttribute(i,"true"),I||T.setAttribute(l,"true")}catch(D){console.error("aria-hidden: cannot operate on ",T,D)}})};return E(o),p.clear(),Nu++,function(){m.forEach(function(P){var T=To.get(P)-1,v=d.get(P)-1;To.set(P,T),d.set(P,v),T||(ga.has(P)||P.removeAttribute(l),ga.delete(P)),v||P.removeAttribute(i)}),Nu--,Nu||(To=new WeakMap,To=new WeakMap,ga=new WeakMap,ya={})}},pw=function(r,o,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(r)?r:[r]),c=cw(r);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),fw(l,c,i,"aria-hidden")):function(){return null}},Ra="Dialog",[Wh]=K0(Ra),[hw,nn]=Wh(Ra),Vh=r=>{const{__scopeDialog:o,children:i,open:l,defaultOpen:c,onOpenChange:d,modal:m=!0}=r,p=k.useRef(null),x=k.useRef(null),[g,E]=Z0({prop:l,defaultProp:c??!1,onChange:d,caller:Ra});return h.jsx(hw,{scope:o,triggerRef:p,contentRef:x,contentId:wu(),titleId:wu(),descriptionId:wu(),open:g,onOpenChange:E,onOpenToggle:k.useCallback(()=>E(P=>!P),[E]),modal:m,children:i})};Vh.displayName=Ra;var Qh="DialogTrigger",mw=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=nn(Qh,i),d=Zr(o,c.triggerRef);return h.jsx(Dn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":lc(c.open),...l,ref:d,onClick:xr(r.onClick,c.onOpenToggle)})});mw.displayName=Qh;var ic="DialogPortal",[gw,$h]=Wh(ic,{forceMount:void 0}),Hh=r=>{const{__scopeDialog:o,forceMount:i,children:l,container:c}=r,d=nn(ic,o);return h.jsx(gw,{scope:o,forceMount:i,children:k.Children.map(l,m=>h.jsx(Pa,{present:i||d.open,children:h.jsx(Oh,{asChild:!0,container:c,children:m})}))})};Hh.displayName=ic;var Na="DialogOverlay",Kh=k.forwardRef((r,o)=>{const i=$h(Na,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,d=nn(Na,r.__scopeDialog);return d.modal?h.jsx(Pa,{present:l||d.open,children:h.jsx(vw,{...c,ref:o})}):null});Kh.displayName=Na;var yw=Nh("DialogOverlay.RemoveScroll"),vw=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=nn(Na,i);return h.jsx(Uh,{as:yw,allowPinchZoom:!0,shards:[c.contentRef],children:h.jsx(Dn.div,{"data-state":lc(c.open),...l,ref:o,style:{pointerEvents:"auto",...l.style}})})}),qr="DialogContent",Gh=k.forwardRef((r,o)=>{const i=$h(qr,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,d=nn(qr,r.__scopeDialog);return h.jsx(Pa,{present:l||d.open,children:d.modal?h.jsx(ww,{...c,ref:o}):h.jsx(xw,{...c,ref:o})})});Gh.displayName=qr;var ww=k.forwardRef((r,o)=>{const i=nn(qr,r.__scopeDialog),l=k.useRef(null),c=Zr(o,i.contentRef,l);return k.useEffect(()=>{const d=l.current;if(d)return pw(d)},[]),h.jsx(qh,{...r,ref:c,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xr(r.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=i.triggerRef.current)==null||m.focus()}),onPointerDownOutside:xr(r.onPointerDownOutside,d=>{const m=d.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0;(m.button===2||p)&&d.preventDefault()}),onFocusOutside:xr(r.onFocusOutside,d=>d.preventDefault())})}),xw=k.forwardRef((r,o)=>{const i=nn(qr,r.__scopeDialog),l=k.useRef(!1),c=k.useRef(!1);return h.jsx(qh,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,p;(m=r.onCloseAutoFocus)==null||m.call(r,d),d.defaultPrevented||(l.current||(p=i.triggerRef.current)==null||p.focus(),d.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:d=>{var x,g;(x=r.onInteractOutside)==null||x.call(r,d),d.defaultPrevented||(l.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=d.target;((g=i.triggerRef.current)==null?void 0:g.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),qh=k.forwardRef((r,o)=>{const{__scopeDialog:i,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:d,...m}=r,p=nn(qr,i),x=k.useRef(null),g=Zr(o,x);return P1(),h.jsxs(h.Fragment,{children:[h.jsx(Mh,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:d,children:h.jsx(jh,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":lc(p.open),...m,ref:g,onDismiss:()=>p.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(Sw,{titleId:p.titleId}),h.jsx(kw,{contentRef:x,descriptionId:p.descriptionId})]})]})}),ac="DialogTitle",Yh=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=nn(ac,i);return h.jsx(Dn.h2,{id:c.titleId,...l,ref:o})});Yh.displayName=ac;var Xh="DialogDescription",Zh=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=nn(Xh,i);return h.jsx(Dn.p,{id:c.descriptionId,...l,ref:o})});Zh.displayName=Xh;var Jh="DialogClose",em=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=nn(Jh,i);return h.jsx(Dn.button,{type:"button",...l,ref:o,onClick:xr(r.onClick,()=>c.onOpenChange(!1))})});em.displayName=Jh;function lc(r){return r?"open":"closed"}var tm="DialogTitleWarning",[Kw,nm]=H0(tm,{contentName:qr,titleName:ac,docsSlug:"dialog"}),Sw=({titleId:r})=>{const o=nm(tm),i=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
226
+ `)},aw=0,Mo=[];function lw(r){var o=k.useRef([]),i=k.useRef([0,0]),l=k.useRef(),c=k.useState(aw++)[0],d=k.useState(Lh)[0],m=k.useRef(r);k.useEffect(function(){m.current=r},[r]),k.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(c));var b=R1([r.lockRef.current],(r.shards||[]).map(Ip),!0).filter(Boolean);return b.forEach(function(R){return R.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),b.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(c))})}}},[r.inert,r.lockRef.current,r.shards]);var p=k.useCallback(function(b,R){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!m.current.allowPinchZoom;var D=ma(b),F=i.current,B="deltaX"in b?b.deltaX:F[0]-D[0],_="deltaY"in b?b.deltaY:F[1]-D[1],G,ee=b.target,$=Math.abs(B)>Math.abs(_)?"h":"v";if("touches"in b&&$==="h"&&ee.type==="range")return!1;var X=window.getSelection(),he=X&&X.anchorNode,ye=he?he===ee||he.contains(ee):!1;if(ye)return!1;var Pe=_p($,ee);if(!Pe)return!0;if(Pe?G=$:(G=$==="v"?"h":"v",Pe=_p($,ee)),!Pe)return!1;if(!l.current&&"changedTouches"in b&&(B||_)&&(l.current=G),!G)return!0;var ae=l.current||G;return ow(ae,R,b,ae==="h"?B:_)},[]),x=k.useCallback(function(b){var R=b;if(!(!Mo.length||Mo[Mo.length-1]!==d)){var D="deltaY"in R?zp(R):ma(R),F=o.current.filter(function(G){return G.name===R.type&&(G.target===R.target||R.target===G.shadowParent)&&sw(G.delta,D)})[0];if(F&&F.should){R.cancelable&&R.preventDefault();return}if(!F){var B=(m.current.shards||[]).map(Ip).filter(Boolean).filter(function(G){return G.contains(R.target)}),_=B.length>0?p(R,B[0]):!m.current.noIsolation;_&&R.cancelable&&R.preventDefault()}}},[]),g=k.useCallback(function(b,R,D,F){var B={name:b,delta:R,target:D,should:F,shadowParent:uw(D)};o.current.push(B),setTimeout(function(){o.current=o.current.filter(function(_){return _!==B})},1)},[]),E=k.useCallback(function(b){i.current=ma(b),l.current=void 0},[]),P=k.useCallback(function(b){g(b.type,zp(b),b.target,p(b,r.lockRef.current))},[]),T=k.useCallback(function(b){g(b.type,ma(b),b.target,p(b,r.lockRef.current))},[]);k.useEffect(function(){return Mo.push(d),r.setCallbacks({onScrollCapture:P,onWheelCapture:P,onTouchMoveCapture:T}),document.addEventListener("wheel",x,Ro),document.addEventListener("touchmove",x,Ro),document.addEventListener("touchstart",E,Ro),function(){Mo=Mo.filter(function(b){return b!==d}),document.removeEventListener("wheel",x,Ro),document.removeEventListener("touchmove",x,Ro),document.removeEventListener("touchstart",E,Ro)}},[]);var v=r.removeScrollBar,I=r.inert;return k.createElement(k.Fragment,null,I?k.createElement(d,{styles:iw(c)}):null,v?k.createElement(X1,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function uw(r){for(var o=null;r!==null;)r instanceof ShadowRoot&&(o=r.host,r=r.host),r=r.parentNode;return o}const cw=D1(Ah,lw);var Bh=k.forwardRef(function(r,o){return k.createElement(ja,vn({},r,{ref:o,sideCar:cw}))});Bh.classNames=ja.classNames;var dw=function(r){if(typeof document>"u")return null;var o=Array.isArray(r)?r[0]:r;return o.ownerDocument.body},To=new WeakMap,ga=new WeakMap,ya={},Nu=0,Wh=function(r){return r&&(r.host||Wh(r.parentNode))},fw=function(r,o){return o.map(function(i){if(r.contains(i))return i;var l=Wh(i);return l&&r.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",r,". Doing nothing"),null)}).filter(function(i){return!!i})},pw=function(r,o,i,l){var c=fw(o,Array.isArray(r)?r:[r]);ya[i]||(ya[i]=new WeakMap);var d=ya[i],m=[],p=new Set,x=new Set(c),g=function(P){!P||p.has(P)||(p.add(P),g(P.parentNode))};c.forEach(g);var E=function(P){!P||x.has(P)||Array.prototype.forEach.call(P.children,function(T){if(p.has(T))E(T);else try{var v=T.getAttribute(l),I=v!==null&&v!=="false",b=(To.get(T)||0)+1,R=(d.get(T)||0)+1;To.set(T,b),d.set(T,R),m.push(T),b===1&&I&&ga.set(T,!0),R===1&&T.setAttribute(i,"true"),I||T.setAttribute(l,"true")}catch(D){console.error("aria-hidden: cannot operate on ",T,D)}})};return E(o),p.clear(),Nu++,function(){m.forEach(function(P){var T=To.get(P)-1,v=d.get(P)-1;To.set(P,T),d.set(P,v),T||(ga.has(P)||P.removeAttribute(l),ga.delete(P)),v||P.removeAttribute(i)}),Nu--,Nu||(To=new WeakMap,To=new WeakMap,ga=new WeakMap,ya={})}},hw=function(r,o,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(r)?r:[r]),c=dw(r);return c?(l.push.apply(l,Array.from(c.querySelectorAll("[aria-live], script"))),pw(l,c,i,"aria-hidden")):function(){return null}},Ra="Dialog",[Vh]=G0(Ra),[mw,tn]=Vh(Ra),Qh=r=>{const{__scopeDialog:o,children:i,open:l,defaultOpen:c,onOpenChange:d,modal:m=!0}=r,p=k.useRef(null),x=k.useRef(null),[g,E]=J0({prop:l,defaultProp:c??!1,onChange:d,caller:Ra});return h.jsx(mw,{scope:o,triggerRef:p,contentRef:x,contentId:wu(),titleId:wu(),descriptionId:wu(),open:g,onOpenChange:E,onOpenToggle:k.useCallback(()=>E(P=>!P),[E]),modal:m,children:i})};Qh.displayName=Ra;var $h="DialogTrigger",gw=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn($h,i),d=Zr(o,c.triggerRef);return h.jsx(Dn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":lc(c.open),...l,ref:d,onClick:xr(r.onClick,c.onOpenToggle)})});gw.displayName=$h;var ic="DialogPortal",[yw,Hh]=Vh(ic,{forceMount:void 0}),Kh=r=>{const{__scopeDialog:o,forceMount:i,children:l,container:c}=r,d=tn(ic,o);return h.jsx(yw,{scope:o,forceMount:i,children:k.Children.map(l,m=>h.jsx(Pa,{present:i||d.open,children:h.jsx(_h,{asChild:!0,container:c,children:m})}))})};Kh.displayName=ic;var Na="DialogOverlay",Gh=k.forwardRef((r,o)=>{const i=Hh(Na,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,d=tn(Na,r.__scopeDialog);return d.modal?h.jsx(Pa,{present:l||d.open,children:h.jsx(ww,{...c,ref:o})}):null});Gh.displayName=Na;var vw=Ph("DialogOverlay.RemoveScroll"),ww=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Na,i);return h.jsx(Bh,{as:vw,allowPinchZoom:!0,shards:[c.contentRef],children:h.jsx(Dn.div,{"data-state":lc(c.open),...l,ref:o,style:{pointerEvents:"auto",...l.style}})})}),qr="DialogContent",qh=k.forwardRef((r,o)=>{const i=Hh(qr,r.__scopeDialog),{forceMount:l=i.forceMount,...c}=r,d=tn(qr,r.__scopeDialog);return h.jsx(Pa,{present:l||d.open,children:d.modal?h.jsx(xw,{...c,ref:o}):h.jsx(Sw,{...c,ref:o})})});qh.displayName=qr;var xw=k.forwardRef((r,o)=>{const i=tn(qr,r.__scopeDialog),l=k.useRef(null),c=Zr(o,i.contentRef,l);return k.useEffect(()=>{const d=l.current;if(d)return hw(d)},[]),h.jsx(Yh,{...r,ref:c,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xr(r.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=i.triggerRef.current)==null||m.focus()}),onPointerDownOutside:xr(r.onPointerDownOutside,d=>{const m=d.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0;(m.button===2||p)&&d.preventDefault()}),onFocusOutside:xr(r.onFocusOutside,d=>d.preventDefault())})}),Sw=k.forwardRef((r,o)=>{const i=tn(qr,r.__scopeDialog),l=k.useRef(!1),c=k.useRef(!1);return h.jsx(Yh,{...r,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,p;(m=r.onCloseAutoFocus)==null||m.call(r,d),d.defaultPrevented||(l.current||(p=i.triggerRef.current)==null||p.focus(),d.preventDefault()),l.current=!1,c.current=!1},onInteractOutside:d=>{var x,g;(x=r.onInteractOutside)==null||x.call(r,d),d.defaultPrevented||(l.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=d.target;((g=i.triggerRef.current)==null?void 0:g.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),Yh=k.forwardRef((r,o)=>{const{__scopeDialog:i,trapFocus:l,onOpenAutoFocus:c,onCloseAutoFocus:d,...m}=r,p=tn(qr,i),x=k.useRef(null),g=Zr(o,x);return j1(),h.jsxs(h.Fragment,{children:[h.jsx(Th,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:c,onUnmountAutoFocus:d,children:h.jsx(Rh,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":lc(p.open),...m,ref:g,onDismiss:()=>p.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(bw,{titleId:p.titleId}),h.jsx(Cw,{contentRef:x,descriptionId:p.descriptionId})]})]})}),ac="DialogTitle",Xh=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(ac,i);return h.jsx(Dn.h2,{id:c.titleId,...l,ref:o})});Xh.displayName=ac;var Zh="DialogDescription",Jh=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(Zh,i);return h.jsx(Dn.p,{id:c.descriptionId,...l,ref:o})});Jh.displayName=Zh;var em="DialogClose",tm=k.forwardRef((r,o)=>{const{__scopeDialog:i,...l}=r,c=tn(em,i);return h.jsx(Dn.button,{type:"button",...l,ref:o,onClick:xr(r.onClick,()=>c.onOpenChange(!1))})});tm.displayName=em;function lc(r){return r?"open":"closed"}var nm="DialogTitleWarning",[Gw,rm]=K0(nm,{contentName:qr,titleName:ac,docsSlug:"dialog"}),bw=({titleId:r})=>{const o=rm(nm),i=`\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
222
227
 
223
228
  If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
224
229
 
225
- For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return k.useEffect(()=>{r&&(document.getElementById(r)||console.error(i))},[i,r]),null},bw="DialogDescriptionWarning",kw=({contentRef:r,descriptionId:o})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nm(bw).contentName}}.`;return k.useEffect(()=>{var d;const c=(d=r.current)==null?void 0:d.getAttribute("aria-describedby");o&&c&&(document.getElementById(o)||console.warn(l))},[l,r,o]),null},Cw=Vh,Ew=Hh,rm=Kh,om=Gh,sm=Yh,im=Zh,Nw=em;const am=Cw,Pw=Ew,lm=k.forwardRef(({className:r,...o},i)=>h.jsx(rm,{ref:i,className:Ee("fixed inset-0 z-50 bg-black/40 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...o}));lm.displayName=rm.displayName;const uc=k.forwardRef(({className:r,children:o,...i},l)=>h.jsxs(Pw,{children:[h.jsx(lm,{}),h.jsxs(om,{ref:l,className:Ee("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-gray-200 bg-white p-6 shadow-xl duration-base data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",r),...i,children:[o,h.jsxs(Nw,{className:"absolute right-4 top-4 rounded-lg p-1 opacity-70 ring-offset-white transition-all duration-fast hover:opacity-100 hover:bg-gray-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none",children:[h.jsx(bh,{className:"h-4 w-4 text-gray-500"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));uc.displayName=om.displayName;const cc=({className:r,...o})=>h.jsx("div",{className:Ee("flex flex-col space-y-2 text-center sm:text-left",r),...o});cc.displayName="DialogHeader";const dc=({className:r,...o})=>h.jsx("div",{className:Ee("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",r),...o});dc.displayName="DialogFooter";const fc=k.forwardRef(({className:r,...o},i)=>h.jsx(sm,{ref:i,className:Ee("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));fc.displayName=sm.displayName;const pc=k.forwardRef(({className:r,...o},i)=>h.jsx(im,{ref:i,className:Ee("text-sm text-gray-500 leading-relaxed",r),...o}));pc.displayName=im.displayName;function jw({maskedValue:r,isSet:o,className:i,...l}){const[c,d]=k.useState(!1);return h.jsxs("div",{className:"relative",children:[h.jsx(Sn,{type:c?"text":"password",className:Ee("pr-20",i),placeholder:o?`${Y("apiKeySet")} (Unchanged)`:"",...l}),h.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex gap-1",children:(o||r)&&h.jsx(Vt,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>d(!c),children:c?h.jsx(Uv,{className:"h-4 w-4"}):h.jsx(Bv,{className:"h-4 w-4"})})})]})}function Rw({value:r,onChange:o,className:i}){const l=r?Object.entries(r):[],c=(p,x,g)=>{const E=[...l];E[p]=[x,g],o(Object.fromEntries(E))},d=()=>{o({...r,"":""})},m=p=>{const x=l.filter((g,E)=>E!==p);o(Object.fromEntries(x))};return h.jsxs("div",{className:Ee("space-y-2",i),children:[l.map(([p,x],g)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsx(Sn,{type:"text",value:p,onChange:E=>c(g,E.target.value,x),placeholder:Y("headerName"),className:"flex-1"}),h.jsx(Sn,{type:"text",value:x,onChange:E=>c(g,p,E.target.value),placeholder:Y("headerValue"),className:"flex-1"}),h.jsx(Vt,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(g),children:h.jsx(qv,{className:"h-4 w-4 text-red-500"})})]},g)),h.jsxs(Vt,{type:"button",variant:"outline",size:"sm",onClick:d,children:[h.jsx(Qv,{className:"h-4 w-4 mr-2"}),Y("add")]})]})}function Mw(){const{providerModal:r,closeProviderModal:o}=Yr(),{data:i}=Ks(),{data:l}=sc(),{data:c}=Gs(),d=V0(),[m,p]=k.useState(""),[x,g]=k.useState(""),[E,P]=k.useState(null),[T,v]=k.useState("auto"),I=r.provider,b=l==null?void 0:l.providers.find($=>$.name===I),R=I?i==null?void 0:i.providers[I]:null,D=c==null?void 0:c.uiHints,F=I?Wt(`providers.${I}.apiKey`,D):void 0,B=I?Wt(`providers.${I}.apiBase`,D):void 0,z=I?Wt(`providers.${I}.extraHeaders`,D):void 0,G=I?Wt(`providers.${I}.wireApi`,D):void 0;k.useEffect(()=>{if(R){g(R.apiBase||(b==null?void 0:b.defaultApiBase)||""),P(R.extraHeaders||null),p("");const $=R.wireApi||(b==null?void 0:b.defaultWireApi)||"auto";v($)}},[R,b]);const ee=$=>{$.preventDefault();const X={};if(m!==""&&(X.apiKey=m),x&&x!==(b==null?void 0:b.defaultApiBase)&&(X.apiBase=x),E&&Object.keys(E).length>0&&(X.extraHeaders=E),b!=null&&b.supportsWireApi){const he=(R==null?void 0:R.wireApi)||b.defaultWireApi||"auto";T!==he&&(X.wireApi=T)}I&&d.mutate({provider:I,data:X},{onSuccess:()=>o()})};return h.jsx(am,{open:r.open,onOpenChange:o,children:h.jsxs(uc,{className:"sm:max-w-[500px]",children:[h.jsx(cc,{children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center",children:h.jsx(Ea,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(fc,{children:(b==null?void 0:b.displayName)||I}),h.jsx(pc,{children:"Configure API keys and parameters for AI provider"})]})]})}),h.jsxs("form",{onSubmit:ee,className:"space-y-5 pt-2",children:[h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(xn,{htmlFor:"apiKey",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Ea,{className:"h-3.5 w-3.5 text-gray-500"}),(F==null?void 0:F.label)??Y("apiKey")]}),h.jsx(jw,{id:"apiKey",value:m,isSet:R==null?void 0:R.apiKeySet,onChange:$=>p($.target.value),placeholder:R!=null&&R.apiKeySet?Y("apiKeySet"):(F==null?void 0:F.placeholder)??"Enter API Key",className:"rounded-xl"})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(xn,{htmlFor:"apiBase",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(wh,{className:"h-3.5 w-3.5 text-gray-500"}),(B==null?void 0:B.label)??Y("apiBase")]}),h.jsx(Sn,{id:"apiBase",type:"text",value:x,onChange:$=>g($.target.value),placeholder:(b==null?void 0:b.defaultApiBase)||(B==null?void 0:B.placeholder)||"https://api.example.com",className:"rounded-xl"}),(B==null?void 0:B.help)&&h.jsx("p",{className:"text-xs text-gray-500",children:B.help})]}),(b==null?void 0:b.supportsWireApi)&&h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(xn,{htmlFor:"wireApi",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Wu,{className:"h-3.5 w-3.5 text-gray-500"}),(G==null?void 0:G.label)??Y("wireApi")]}),h.jsx("select",{id:"wireApi",value:T,onChange:$=>v($.target.value),className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",children:(b.wireApiOptions||["auto","chat","responses"]).map($=>h.jsx("option",{value:$,children:Y($==="chat"?"wireApiChat":$==="responses"?"wireApiResponses":"wireApiAuto")},$))})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(xn,{className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Wu,{className:"h-3.5 w-3.5 text-gray-500"}),(z==null?void 0:z.label)??Y("extraHeaders")]}),h.jsx(Rw,{value:E,onChange:P})]}),h.jsxs(dc,{className:"pt-4",children:[h.jsx(Vt,{type:"button",variant:"outline",onClick:o,children:Y("cancel")}),h.jsx(Vt,{type:"submit",disabled:d.isPending,children:d.isPending?"Saving...":Y("save")})]})]})]})})}function um({tabs:r,activeTab:o,onChange:i,className:l}){return h.jsx("div",{className:Ee("flex items-center gap-8 border-b border-gray-200 mb-8",l),children:r.map(c=>{const d=o===c.id;return h.jsxs("button",{onClick:()=>i(c.id),className:Ee("relative pb-4 text-[15px] font-semibold transition-all duration-fast flex items-center gap-2",d?"text-primary":"text-gray-500 hover:text-gray-700"),children:[c.label,c.count!==void 0&&h.jsx("span",{className:"text-[11px] font-medium text-gray-400",children:c.count.toLocaleString()}),d&&h.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-primary animate-in fade-in slide-in-from-left-2 duration-300"})]},c.id)})})}function cm({name:r,src:o,className:i,imgClassName:l,fallback:c}){const[d,m]=k.useState(!1),p=!!o&&!d;return h.jsx("div",{className:Ee("flex items-center justify-center",i),children:p?h.jsx("img",{src:o,alt:`${r} logo`,className:Ee("h-6 w-6 object-contain",l),onError:()=>m(!0),draggable:!1}):c??h.jsx("span",{className:"text-lg font-bold uppercase",children:r.slice(0,1)})})}const Tw={openrouter:"openrouter.svg",aihubmix:"aihubmix.png",anthropic:"anthropic.svg",openai:"openai.svg",gemini:"gemini.svg",deepseek:"deepseek.png",zhipu:"zhipu.svg",dashscope:"dashscope.png",moonshot:"moonshot.png",minimax:"minimax.svg",vllm:"vllm.svg",groq:"groq.svg"},Ow={telegram:"telegram.svg",slack:"slack.svg",discord:"discord.svg",whatsapp:"whatsapp.svg",qq:"qq.svg",feishu:"feishu.svg",dingtalk:"dingtalk.svg",mochat:"mochat.svg",email:"email.svg"};function dm(r,o){const i=o.toLowerCase(),l=r[i];return l?`/logos/${l}`:null}function zw(r){return dm(Tw,r)}function _w(r){return dm(Ow,r)}function Iw(){const{data:r}=Ks(),{data:o}=sc(),{data:i}=Gs(),{openProviderModal:l}=Yr(),[c,d]=k.useState("installed"),m=i==null?void 0:i.uiHints;if(!r||!o)return h.jsx("div",{className:"p-8",children:"Loading..."});const p=[{id:"installed",label:"Configured",count:r.providers?Object.keys(r.providers).filter(g=>r.providers[g].apiKeySet).length:0},{id:"all",label:"All Providers"}],x=c==="installed"?o.providers.filter(g=>{var E;return(E=r.providers[g.name])==null?void 0:E.apiKeySet}):o.providers;return h.jsxs("div",{className:"animate-fade-in pb-20",children:[h.jsx("div",{className:"flex items-center justify-between mb-8",children:h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"AI Providers"})}),h.jsx(um,{tabs:p,activeTab:c,onChange:d}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:x.map(g=>{const E=r.providers[g.name],P=E==null?void 0:E.apiKeySet,T=Wt(`providers.${g.name}`,m),v=(T==null?void 0:T.help)||"Configure AI services for your agents";return h.jsxs("div",{className:Ee("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",P?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(g.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(cm,{name:g.name,src:zw(g.name),className:Ee("h-12 w-12 rounded-xl border transition-all",P?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-7 w-7",fallback:h.jsx("span",{className:Ee("text-lg font-bold uppercase",P?"text-gray-900":"text-gray-500"),children:g.name[0]})}),P?h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[h.jsx(Lv,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Ready"})]}):h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[h.jsx(xh,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Setup"})]})]}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:g.displayName||g.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:v})]}),h.jsx("div",{className:"mt-4 pt-4 border-t border-gray-100",children:h.jsx(Vt,{variant:P?"ghost":"default",size:"sm",className:"w-full rounded-xl text-xs font-semibold h-9",onClick:I=>{I.stopPropagation(),l(g.name)},children:P?"Configure":"Add Provider"})})]},g.name)})}),x.length===0&&h.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[h.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:h.jsx(Ea,{className:"h-8 w-8 text-gray-400"})}),h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No providers configured"}),h.jsx("p",{className:"text-[13px] text-gray-500 max-w-sm",children:"Add an AI provider to start using the platform. Click on any provider to configure it."})]}),h.jsx(Mw,{})]})}const fm=k.forwardRef(({className:r,checked:o=!1,onCheckedChange:i,...l},c)=>h.jsx("button",{type:"button",role:"switch","aria-checked":o,ref:c,className:Ee("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-fast focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50",o?"bg-primary":"bg-gray-200 hover:bg-gray-300",r),onClick:()=>i==null?void 0:i(!o),...l,children:h.jsx("span",{className:Ee("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-md ring-0 transition-transform duration-fast",o?"translate-x-5":"translate-x-0")})}));fm.displayName="Switch";function Aw({value:r,onChange:o,className:i,placeholder:l="Type and press Enter..."}){const[c,d]=k.useState(""),m=x=>{x.key==="Enter"&&c.trim()?(x.preventDefault(),o([...r,c.trim()]),d("")):x.key==="Backspace"&&!c&&r.length>0&&o(r.slice(0,-1))},p=x=>{o(r.filter((g,E)=>E!==x))};return h.jsxs("div",{className:Ee("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",i),children:[r.map((x,g)=>h.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[x,h.jsx("button",{type:"button",onClick:()=>p(g),className:"hover:text-red-300 transition-colors",children:h.jsx(bh,{className:"h-3 w-3"})})]},g)),h.jsx("input",{type:"text",value:c,onChange:x=>d(x.target.value),onKeyDown:m,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:l})]})}const Lw=r=>r.includes("token")||r.includes("secret")||r.includes("password")?h.jsx(Ea,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("url")||r.includes("host")?h.jsx(wh,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("email")||r.includes("mail")?h.jsx(rc,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("id")||r.includes("from")?h.jsx(Wu,{className:"h-3.5 w-3.5 text-gray-500"}):r==="enabled"||r==="consentGranted"?h.jsx(Gv,{className:"h-3.5 w-3.5 text-gray-500"}):h.jsx(xh,{className:"h-3.5 w-3.5 text-gray-500"}),Dw={telegram:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"token",type:"password",label:Y("botToken")},{name:"allowFrom",type:"tags",label:Y("allowFrom")},{name:"proxy",type:"text",label:Y("proxy")}],discord:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"token",type:"password",label:Y("botToken")},{name:"allowFrom",type:"tags",label:Y("allowFrom")},{name:"gatewayUrl",type:"text",label:Y("gatewayUrl")},{name:"intents",type:"number",label:Y("intents")}],whatsapp:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"bridgeUrl",type:"text",label:Y("bridgeUrl")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"appId",type:"text",label:Y("appId")},{name:"appSecret",type:"password",label:Y("appSecret")},{name:"encryptKey",type:"password",label:Y("encryptKey")},{name:"verificationToken",type:"password",label:Y("verificationToken")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"clientId",type:"text",label:Y("clientId")},{name:"clientSecret",type:"password",label:Y("clientSecret")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"mode",type:"text",label:Y("mode")},{name:"webhookPath",type:"text",label:Y("webhookPath")},{name:"botToken",type:"password",label:Y("botToken")},{name:"appToken",type:"password",label:Y("appToken")}],email:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"consentGranted",type:"boolean",label:Y("consentGranted")},{name:"imapHost",type:"text",label:Y("imapHost")},{name:"imapPort",type:"number",label:Y("imapPort")},{name:"imapUsername",type:"text",label:Y("imapUsername")},{name:"imapPassword",type:"password",label:Y("imapPassword")},{name:"fromAddress",type:"email",label:Y("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"baseUrl",type:"text",label:Y("baseUrl")},{name:"clawToken",type:"password",label:Y("clawToken")},{name:"agentUserId",type:"text",label:Y("agentUserId")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"appId",type:"text",label:Y("appId")},{name:"secret",type:"password",label:Y("appSecret")},{name:"markdownSupport",type:"boolean",label:Y("markdownSupport")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}]},Ap={telegram:wa,slack:wa,email:rc,default:wa},Lp={telegram:"from-sky-400 to-blue-500",slack:"from-purple-400 to-indigo-500",email:"from-rose-400 to-pink-500",default:"from-slate-400 to-gray-500"};function Fw(){var B;const{channelModal:r,closeChannelModal:o}=Yr(),{data:i}=Ks(),{data:l}=Gs(),c=Q0(),[d,m]=k.useState({}),[p,x]=k.useState(!1),g=r.channel,E=g?i==null?void 0:i.channels[g]:null,P=g?Dw[g]:[],T=l==null?void 0:l.uiHints,v=g&&(((B=Wt(`channels.${g}`,T))==null?void 0:B.label)??g);k.useEffect(()=>{m(E?{...E}:{})},[E,g]);const I=(z,G)=>{m(ee=>({...ee,[z]:G}))},b=z=>{z.preventDefault(),g&&c.mutate({channel:g,data:d},{onSuccess:()=>o()})},R=async()=>{if(!(!g||g!=="feishu")){x(!0);try{const z={...d,enabled:!0};d.enabled||m(z),await c.mutateAsync({channel:g,data:z});const G=await h0(),ee=G.botName?` (${G.botName})`:"";Sr.success(Y("feishuVerifySuccess")+ee)}catch(z){const G=z instanceof Error?z.message:String(z);Sr.error(`${Y("feishuVerifyFailed")}: ${G}`)}finally{x(!1)}}},D=Ap[g||""]||Ap.default,F=Lp[g||""]||Lp.default;return h.jsx(am,{open:r.open,onOpenChange:o,children:h.jsxs(uc,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[h.jsx(cc,{children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:`h-10 w-10 rounded-xl bg-gradient-to-br ${F} flex items-center justify-center`,children:h.jsx(D,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(fc,{className:"capitalize",children:v}),h.jsx(pc,{children:"Configure message channel parameters"})]})]})}),h.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2",children:h.jsxs("form",{onSubmit:b,className:"space-y-5 pr-2",children:[P.map(z=>{const G=g?Wt(`channels.${g}.${z.name}`,T):void 0,ee=(G==null?void 0:G.label)??z.label,$=G==null?void 0:G.placeholder;return h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(xn,{htmlFor:z.name,className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[Lw(z.name),ee]}),z.type==="boolean"&&h.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-gray-50",children:[h.jsx("span",{className:"text-sm text-gray-500",children:d[z.name]?Y("enabled"):Y("disabled")}),h.jsx(fm,{id:z.name,checked:d[z.name]||!1,onCheckedChange:X=>I(z.name,X),className:"data-[state=checked]:bg-emerald-500"})]}),(z.type==="text"||z.type==="email")&&h.jsx(Sn,{id:z.name,type:z.type,value:d[z.name]||"",onChange:X=>I(z.name,X.target.value),placeholder:$,className:"rounded-xl"}),z.type==="password"&&h.jsx(Sn,{id:z.name,type:"password",value:d[z.name]||"",onChange:X=>I(z.name,X.target.value),placeholder:$??"Leave blank to keep unchanged",className:"rounded-xl"}),z.type==="number"&&h.jsx(Sn,{id:z.name,type:"number",value:d[z.name]||0,onChange:X=>I(z.name,parseInt(X.target.value)||0),placeholder:$,className:"rounded-xl"}),z.type==="tags"&&h.jsx(Aw,{value:d[z.name]||[],onChange:X=>I(z.name,X)})]},z.name)}),h.jsxs(dc,{className:"pt-4",children:[h.jsx(Vt,{type:"button",variant:"outline",onClick:o,children:Y("cancel")}),h.jsx(Vt,{type:"submit",disabled:c.isPending||p,children:c.isPending?"Saving...":Y("save")}),g==="feishu"&&h.jsx(Vt,{type:"button",onClick:R,disabled:c.isPending||p,variant:"secondary",children:Y(p?"feishuConnecting":"saveVerifyConnect")})]})]})})]})})}const Dp={telegram:wa,slack:Hv,email:rc,webhook:Av,default:oc},Uw={telegram:"Connect with Telegram bots for instant messaging",slack:"Integrate with Slack workspaces for team collaboration",email:"Send and receive messages via email protocols",webhook:"Receive HTTP webhooks for custom integrations",discord:"Connect Discord bots to your community servers",feishu:"Enterprise messaging and collaboration platform"};function Bw(){const{data:r}=Ks(),{data:o}=sc(),{data:i}=Gs(),{openChannelModal:l}=Yr(),[c,d]=k.useState("active"),m=i==null?void 0:i.uiHints;if(!r||!o)return h.jsx("div",{className:"p-8 text-gray-400",children:"Loading channels..."});const p=[{id:"active",label:"Enabled",count:o.channels.filter(g=>{var E;return(E=r.channels[g.name])==null?void 0:E.enabled}).length},{id:"all",label:"All Channels",count:o.channels.length}],x=o.channels.filter(g=>{var P;const E=((P=r.channels[g.name])==null?void 0:P.enabled)||!1;return c==="all"||E});return h.jsxs("div",{className:"animate-fade-in pb-20",children:[h.jsx("div",{className:"flex items-center justify-between mb-8",children:h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Message Channels"})}),h.jsx(um,{tabs:p,activeTab:c,onChange:d}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:x.map(g=>{const E=r.channels[g.name],P=(E==null?void 0:E.enabled)||!1,T=Dp[g.name]||Dp.default,v=Wt(`channels.${g.name}`,m),I=(v==null?void 0:v.help)||Uw[g.name]||"Configure this communication channel";return h.jsxs("div",{className:Ee("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",P?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(g.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(cm,{name:g.name,src:_w(g.name),className:Ee("h-12 w-12 rounded-xl border transition-all",P?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-6 w-6",fallback:h.jsx(T,{className:"h-6 w-6"})}),P?h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[h.jsx(Yv,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Active"})]}):h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[h.jsx($v,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Inactive"})]})]}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:g.displayName||g.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:I})]}),h.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-100 flex items-center gap-2",children:[g.tutorialUrl&&h.jsx("a",{href:g.tutorialUrl,target:"_blank",rel:"noreferrer",onClick:b=>b.stopPropagation(),className:"flex items-center justify-center h-9 w-9 rounded-xl bg-gray-100 hover:bg-gray-200 text-gray-600 transition-colors",title:"View Guide",children:h.jsx(Fv,{className:"h-4 w-4"})}),h.jsx(Vt,{variant:P?"ghost":"default",size:"sm",className:"flex-1 rounded-xl text-xs font-semibold h-9",onClick:b=>{b.stopPropagation(),l(g.name)},children:P?"Configure":"Enable"})]})]},g.name)})}),x.length===0&&h.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[h.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:h.jsx(oc,{className:"h-8 w-8 text-gray-400"})}),h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No channels enabled"}),h.jsx("p",{className:"text-[13px] text-gray-500 max-w-sm",children:"Enable a messaging channel to start receiving messages. Click on any channel to configure it."})]}),h.jsx(Fw,{})]})}class Ww{constructor(o){this.url=o,this.ws=null,this.handlers=new Map,this.reconnectTimer=null,this.manualClose=!1}connect(){this.manualClose=!1,this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("WebSocket connected"),this.emit({type:"connection.open",payload:{}})},this.ws.onmessage=o=>{try{const i=JSON.parse(o.data);this.emit(i)}catch(i){console.error("Failed to parse WebSocket message:",i)}},this.ws.onclose=()=>{console.log("WebSocket disconnected"),this.manualClose||this.scheduleReconnect()},this.ws.onerror=o=>{console.error("WebSocket error:",o)}}on(o,i){this.handlers.has(o)||this.handlers.set(o,new Set),this.handlers.get(o).add(i)}off(o,i){var l;(l=this.handlers.get(o))==null||l.delete(i)}emit(o){const i=this.handlers.get(o.type);i==null||i.forEach(l=>l(o))}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.connect()},3e3))}disconnect(){var o;this.manualClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(o=this.ws)==null||o.close(),this.ws=null}}function Vw(r){const[o,i]=k.useState(null),{setConnectionStatus:l}=Yr();return k.useEffect(()=>{const c=(()=>{const m=xa==null?void 0:xa.replace(/\/$/,"");if(!m)return"ws://127.0.0.1:18791/ws";try{const p=new URL(m,window.location.origin);return`${p.protocol==="https:"?"wss:":p.protocol==="http:"?"ws:":p.protocol}//${p.host}/ws`}catch{return m.startsWith("wss://")||m.startsWith("ws://")?`${m}/ws`:m.startsWith("https://")?`${m.replace(/^https:/,"wss:")}/ws`:m.startsWith("http://")?`${m.replace(/^http:/,"ws:")}/ws`:`${m}/ws`}})(),d=new Ww(c);return d.on("connection.open",()=>{l("connected")}),d.on("config.updated",()=>{r&&r.invalidateQueries({queryKey:["config"]})}),d.on("error",m=>{m.type==="error"&&console.error("WebSocket error:",m.payload.message)}),d.connect(),i(d),()=>d.disconnect()},[l,r]),o}const Fp=new Dy({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});function Qw(){const{activeTab:r}=Yr();Vw(Fp);const o=()=>{switch(r){case"model":return h.jsx(bp,{});case"providers":return h.jsx(Iw,{});case"channels":return h.jsx(Bw,{});default:return h.jsx(bp,{})}};return h.jsxs(Fy,{client:Fp,children:[h.jsx(Jv,{children:h.jsx("div",{className:"animate-fade-in",children:o()},r)}),h.jsx(B0,{position:"top-right",richColors:!0})]})}hy.createRoot(document.getElementById("root")).render(h.jsx(k.StrictMode,{children:h.jsx(Qw,{})}));
230
+ For more information, see https://radix-ui.com/primitives/docs/components/${o.docsSlug}`;return k.useEffect(()=>{r&&(document.getElementById(r)||console.error(i))},[i,r]),null},kw="DialogDescriptionWarning",Cw=({contentRef:r,descriptionId:o})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${rm(kw).contentName}}.`;return k.useEffect(()=>{var d;const c=(d=r.current)==null?void 0:d.getAttribute("aria-describedby");o&&c&&(document.getElementById(o)||console.warn(l))},[l,r,o]),null},Ew=Qh,Nw=Kh,om=Gh,sm=qh,im=Xh,am=Jh,Pw=tm;const lm=Ew,jw=Nw,um=k.forwardRef(({className:r,...o},i)=>h.jsx(om,{ref:i,className:Ee("fixed inset-0 z-50 bg-black/40 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...o}));um.displayName=om.displayName;const uc=k.forwardRef(({className:r,children:o,...i},l)=>h.jsxs(jw,{children:[h.jsx(um,{}),h.jsxs(sm,{ref:l,className:Ee("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-gray-200 bg-white p-6 shadow-xl duration-base data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",r),...i,children:[o,h.jsxs(Pw,{className:"absolute right-4 top-4 rounded-lg p-1 opacity-70 ring-offset-white transition-all duration-fast hover:opacity-100 hover:bg-gray-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:pointer-events-none",children:[h.jsx(kh,{className:"h-4 w-4 text-gray-500"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));uc.displayName=sm.displayName;const cc=({className:r,...o})=>h.jsx("div",{className:Ee("flex flex-col space-y-2 text-center sm:text-left",r),...o});cc.displayName="DialogHeader";const dc=({className:r,...o})=>h.jsx("div",{className:Ee("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-3",r),...o});dc.displayName="DialogFooter";const fc=k.forwardRef(({className:r,...o},i)=>h.jsx(im,{ref:i,className:Ee("text-lg font-semibold leading-tight tracking-tight text-gray-900",r),...o}));fc.displayName=im.displayName;const pc=k.forwardRef(({className:r,...o},i)=>h.jsx(am,{ref:i,className:Ee("text-sm text-gray-500 leading-relaxed",r),...o}));pc.displayName=am.displayName;function Rw({maskedValue:r,isSet:o,className:i,...l}){const[c,d]=k.useState(!1);return h.jsxs("div",{className:"relative",children:[h.jsx(Sn,{type:c?"text":"password",className:Ee("pr-20",i),placeholder:o?`${Y("apiKeySet")} (Unchanged)`:"",...l}),h.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex gap-1",children:(o||r)&&h.jsx(xn,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>d(!c),children:c?h.jsx(Bv,{className:"h-4 w-4"}):h.jsx(Wv,{className:"h-4 w-4"})})})]})}function Mw({value:r,onChange:o,className:i}){const l=r?Object.entries(r):[],c=(p,x,g)=>{const E=[...l];E[p]=[x,g],o(Object.fromEntries(E))},d=()=>{o({...r,"":""})},m=p=>{const x=l.filter((g,E)=>E!==p);o(Object.fromEntries(x))};return h.jsxs("div",{className:Ee("space-y-2",i),children:[l.map(([p,x],g)=>h.jsxs("div",{className:"flex gap-2",children:[h.jsx(Sn,{type:"text",value:p,onChange:E=>c(g,E.target.value,x),placeholder:Y("headerName"),className:"flex-1"}),h.jsx(Sn,{type:"text",value:x,onChange:E=>c(g,p,E.target.value),placeholder:Y("headerValue"),className:"flex-1"}),h.jsx(xn,{type:"button",variant:"ghost",size:"icon",onClick:()=>m(g),children:h.jsx(Yv,{className:"h-4 w-4 text-red-500"})})]},g)),h.jsxs(xn,{type:"button",variant:"outline",size:"sm",onClick:d,children:[h.jsx($v,{className:"h-4 w-4 mr-2"}),Y("add")]})]})}function Tw(){const{providerModal:r,closeProviderModal:o}=Yr(),{data:i}=Ks(),{data:l}=sc(),{data:c}=Gs(),d=Q0(),[m,p]=k.useState(""),[x,g]=k.useState(""),[E,P]=k.useState(null),[T,v]=k.useState("auto"),I=r.provider,b=l==null?void 0:l.providers.find($=>$.name===I),R=I?i==null?void 0:i.providers[I]:null,D=c==null?void 0:c.uiHints,F=I?Wt(`providers.${I}.apiKey`,D):void 0,B=I?Wt(`providers.${I}.apiBase`,D):void 0,_=I?Wt(`providers.${I}.extraHeaders`,D):void 0,G=I?Wt(`providers.${I}.wireApi`,D):void 0;k.useEffect(()=>{if(R){g(R.apiBase||(b==null?void 0:b.defaultApiBase)||""),P(R.extraHeaders||null),p("");const $=R.wireApi||(b==null?void 0:b.defaultWireApi)||"auto";v($)}},[R,b]);const ee=$=>{$.preventDefault();const X={};if(m!==""&&(X.apiKey=m),x&&x!==(b==null?void 0:b.defaultApiBase)&&(X.apiBase=x),E&&Object.keys(E).length>0&&(X.extraHeaders=E),b!=null&&b.supportsWireApi){const he=(R==null?void 0:R.wireApi)||b.defaultWireApi||"auto";T!==he&&(X.wireApi=T)}I&&d.mutate({provider:I,data:X},{onSuccess:()=>o()})};return h.jsx(lm,{open:r.open,onOpenChange:o,children:h.jsxs(uc,{className:"sm:max-w-[500px]",children:[h.jsx(cc,{children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"h-10 w-10 rounded-xl bg-primary flex items-center justify-center",children:h.jsx(Ea,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(fc,{children:(b==null?void 0:b.displayName)||I}),h.jsx(pc,{children:"Configure API keys and parameters for AI provider"})]})]})}),h.jsxs("form",{onSubmit:ee,className:"space-y-5 pt-2",children:[h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(wn,{htmlFor:"apiKey",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Ea,{className:"h-3.5 w-3.5 text-gray-500"}),(F==null?void 0:F.label)??Y("apiKey")]}),h.jsx(Rw,{id:"apiKey",value:m,isSet:R==null?void 0:R.apiKeySet,onChange:$=>p($.target.value),placeholder:R!=null&&R.apiKeySet?Y("apiKeySet"):(F==null?void 0:F.placeholder)??"Enter API Key",className:"rounded-xl"})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(wn,{htmlFor:"apiBase",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(xh,{className:"h-3.5 w-3.5 text-gray-500"}),(B==null?void 0:B.label)??Y("apiBase")]}),h.jsx(Sn,{id:"apiBase",type:"text",value:x,onChange:$=>g($.target.value),placeholder:(b==null?void 0:b.defaultApiBase)||(B==null?void 0:B.placeholder)||"https://api.example.com",className:"rounded-xl"}),(B==null?void 0:B.help)&&h.jsx("p",{className:"text-xs text-gray-500",children:B.help})]}),(b==null?void 0:b.supportsWireApi)&&h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(wn,{htmlFor:"wireApi",className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Wu,{className:"h-3.5 w-3.5 text-gray-500"}),(G==null?void 0:G.label)??Y("wireApi")]}),h.jsx("select",{id:"wireApi",value:T,onChange:$=>v($.target.value),className:"flex h-10 w-full rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",children:(b.wireApiOptions||["auto","chat","responses"]).map($=>h.jsx("option",{value:$,children:Y($==="chat"?"wireApiChat":$==="responses"?"wireApiResponses":"wireApiAuto")},$))})]}),h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(wn,{className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[h.jsx(Wu,{className:"h-3.5 w-3.5 text-gray-500"}),(_==null?void 0:_.label)??Y("extraHeaders")]}),h.jsx(Mw,{value:E,onChange:P})]}),h.jsxs(dc,{className:"pt-4",children:[h.jsx(xn,{type:"button",variant:"outline",onClick:o,children:Y("cancel")}),h.jsx(xn,{type:"submit",disabled:d.isPending,children:d.isPending?"Saving...":Y("save")})]})]})]})})}function cm({tabs:r,activeTab:o,onChange:i,className:l}){return h.jsx("div",{className:Ee("flex items-center gap-8 border-b border-gray-200 mb-8",l),children:r.map(c=>{const d=o===c.id;return h.jsxs("button",{onClick:()=>i(c.id),className:Ee("relative pb-4 text-[15px] font-semibold transition-all duration-fast flex items-center gap-2",d?"text-primary":"text-gray-500 hover:text-gray-700"),children:[c.label,c.count!==void 0&&h.jsx("span",{className:"text-[11px] font-medium text-gray-400",children:c.count.toLocaleString()}),d&&h.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-primary animate-in fade-in slide-in-from-left-2 duration-300"})]},c.id)})})}function dm({name:r,src:o,className:i,imgClassName:l,fallback:c}){const[d,m]=k.useState(!1),p=!!o&&!d;return h.jsx("div",{className:Ee("flex items-center justify-center",i),children:p?h.jsx("img",{src:o,alt:`${r} logo`,className:Ee("h-6 w-6 object-contain",l),onError:()=>m(!0),draggable:!1}):c??h.jsx("span",{className:"text-lg font-bold uppercase",children:r.slice(0,1)})})}const Ow={openrouter:"openrouter.svg",aihubmix:"aihubmix.png",anthropic:"anthropic.svg",openai:"openai.svg",gemini:"gemini.svg",deepseek:"deepseek.png",zhipu:"zhipu.svg",dashscope:"dashscope.png",moonshot:"moonshot.png",minimax:"minimax.svg",vllm:"vllm.svg",groq:"groq.svg"},_w={telegram:"telegram.svg",slack:"slack.svg",discord:"discord.svg",whatsapp:"whatsapp.svg",qq:"qq.svg",feishu:"feishu.svg",dingtalk:"dingtalk.svg",mochat:"mochat.svg",email:"email.svg"};function fm(r,o){const i=o.toLowerCase(),l=r[i];return l?`/logos/${l}`:null}function zw(r){return fm(Ow,r)}function Iw(r){return fm(_w,r)}function Aw(){const{data:r}=Ks(),{data:o}=sc(),{data:i}=Gs(),{openProviderModal:l}=Yr(),[c,d]=k.useState("installed"),m=i==null?void 0:i.uiHints;if(!r||!o)return h.jsx("div",{className:"p-8",children:"Loading..."});const p=[{id:"installed",label:"Configured",count:r.providers?Object.keys(r.providers).filter(g=>r.providers[g].apiKeySet).length:0},{id:"all",label:"All Providers"}],x=c==="installed"?o.providers.filter(g=>{var E;return(E=r.providers[g.name])==null?void 0:E.apiKeySet}):o.providers;return h.jsxs("div",{className:"animate-fade-in pb-20",children:[h.jsx("div",{className:"flex items-center justify-between mb-8",children:h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"AI Providers"})}),h.jsx(cm,{tabs:p,activeTab:c,onChange:d}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:x.map(g=>{const E=r.providers[g.name],P=E==null?void 0:E.apiKeySet,T=Wt(`providers.${g.name}`,m),v=(T==null?void 0:T.help)||"Configure AI services for your agents";return h.jsxs("div",{className:Ee("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",P?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(g.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(dm,{name:g.name,src:zw(g.name),className:Ee("h-12 w-12 rounded-xl border transition-all",P?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-7 w-7",fallback:h.jsx("span",{className:Ee("text-lg font-bold uppercase",P?"text-gray-900":"text-gray-500"),children:g.name[0]})}),P?h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[h.jsx(Dv,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Ready"})]}):h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[h.jsx(Sh,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Setup"})]})]}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:g.displayName||g.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:v})]}),h.jsx("div",{className:"mt-4 pt-3",children:h.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] font-semibold text-gray-600 group-hover:text-primary transition-colors cursor-pointer",children:[P?"Configure":"Add Provider",h.jsx(wh,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})})]},g.name)})}),x.length===0&&h.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[h.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:h.jsx(Ea,{className:"h-8 w-8 text-gray-400"})}),h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No providers configured"}),h.jsx("p",{className:"text-[13px] text-gray-500 max-w-sm",children:"Add an AI provider to start using the platform. Click on any provider to configure it."})]}),h.jsx(Tw,{})]})}const pm=k.forwardRef(({className:r,checked:o=!1,onCheckedChange:i,...l},c)=>h.jsx("button",{type:"button",role:"switch","aria-checked":o,ref:c,className:Ee("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-fast focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:cursor-not-allowed disabled:opacity-50",o?"bg-primary":"bg-gray-200 hover:bg-gray-300",r),onClick:()=>i==null?void 0:i(!o),...l,children:h.jsx("span",{className:Ee("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-md ring-0 transition-transform duration-fast",o?"translate-x-5":"translate-x-0")})}));pm.displayName="Switch";function Lw({value:r,onChange:o,className:i,placeholder:l="Type and press Enter..."}){const[c,d]=k.useState(""),m=x=>{x.key==="Enter"&&c.trim()?(x.preventDefault(),o([...r,c.trim()]),d("")):x.key==="Backspace"&&!c&&r.length>0&&o(r.slice(0,-1))},p=x=>{o(r.filter((g,E)=>E!==x))};return h.jsxs("div",{className:Ee("flex flex-wrap gap-2 p-2 border rounded-md min-h-[42px]",i),children:[r.map((x,g)=>h.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary text-primary-foreground rounded text-sm",children:[x,h.jsx("button",{type:"button",onClick:()=>p(g),className:"hover:text-red-300 transition-colors",children:h.jsx(kh,{className:"h-3 w-3"})})]},g)),h.jsx("input",{type:"text",value:c,onChange:x=>d(x.target.value),onKeyDown:m,className:"flex-1 outline-none min-w-[100px] bg-transparent text-sm",placeholder:l})]})}const Dw=r=>r.includes("token")||r.includes("secret")||r.includes("password")?h.jsx(Ea,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("url")||r.includes("host")?h.jsx(xh,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("email")||r.includes("mail")?h.jsx(rc,{className:"h-3.5 w-3.5 text-gray-500"}):r.includes("id")||r.includes("from")?h.jsx(Wu,{className:"h-3.5 w-3.5 text-gray-500"}):r==="enabled"||r==="consentGranted"?h.jsx(qv,{className:"h-3.5 w-3.5 text-gray-500"}):h.jsx(Sh,{className:"h-3.5 w-3.5 text-gray-500"}),Fw={telegram:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"token",type:"password",label:Y("botToken")},{name:"allowFrom",type:"tags",label:Y("allowFrom")},{name:"proxy",type:"text",label:Y("proxy")}],discord:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"token",type:"password",label:Y("botToken")},{name:"allowFrom",type:"tags",label:Y("allowFrom")},{name:"gatewayUrl",type:"text",label:Y("gatewayUrl")},{name:"intents",type:"number",label:Y("intents")}],whatsapp:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"bridgeUrl",type:"text",label:Y("bridgeUrl")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],feishu:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"appId",type:"text",label:Y("appId")},{name:"appSecret",type:"password",label:Y("appSecret")},{name:"encryptKey",type:"password",label:Y("encryptKey")},{name:"verificationToken",type:"password",label:Y("verificationToken")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],dingtalk:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"clientId",type:"text",label:Y("clientId")},{name:"clientSecret",type:"password",label:Y("clientSecret")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],slack:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"mode",type:"text",label:Y("mode")},{name:"webhookPath",type:"text",label:Y("webhookPath")},{name:"botToken",type:"password",label:Y("botToken")},{name:"appToken",type:"password",label:Y("appToken")}],email:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"consentGranted",type:"boolean",label:Y("consentGranted")},{name:"imapHost",type:"text",label:Y("imapHost")},{name:"imapPort",type:"number",label:Y("imapPort")},{name:"imapUsername",type:"text",label:Y("imapUsername")},{name:"imapPassword",type:"password",label:Y("imapPassword")},{name:"fromAddress",type:"email",label:Y("fromAddress")}],mochat:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"baseUrl",type:"text",label:Y("baseUrl")},{name:"clawToken",type:"password",label:Y("clawToken")},{name:"agentUserId",type:"text",label:Y("agentUserId")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}],qq:[{name:"enabled",type:"boolean",label:Y("enabled")},{name:"appId",type:"text",label:Y("appId")},{name:"secret",type:"password",label:Y("appSecret")},{name:"markdownSupport",type:"boolean",label:Y("markdownSupport")},{name:"allowFrom",type:"tags",label:Y("allowFrom")}]},Ap={telegram:wa,slack:wa,email:rc,default:wa},Lp={telegram:"from-sky-400 to-blue-500",slack:"from-purple-400 to-indigo-500",email:"from-rose-400 to-pink-500",default:"from-slate-400 to-gray-500"};function Uw(){var B;const{channelModal:r,closeChannelModal:o}=Yr(),{data:i}=Ks(),{data:l}=Gs(),c=$0(),[d,m]=k.useState({}),[p,x]=k.useState(!1),g=r.channel,E=g?i==null?void 0:i.channels[g]:null,P=g?Fw[g]:[],T=l==null?void 0:l.uiHints,v=g&&(((B=Wt(`channels.${g}`,T))==null?void 0:B.label)??g);k.useEffect(()=>{m(E?{...E}:{})},[E,g]);const I=(_,G)=>{m(ee=>({...ee,[_]:G}))},b=_=>{_.preventDefault(),g&&c.mutate({channel:g,data:d},{onSuccess:()=>o()})},R=async()=>{if(!(!g||g!=="feishu")){x(!0);try{const _={...d,enabled:!0};d.enabled||m(_),await c.mutateAsync({channel:g,data:_});const G=await m0(),ee=G.botName?` (${G.botName})`:"";Sr.success(Y("feishuVerifySuccess")+ee)}catch(_){const G=_ instanceof Error?_.message:String(_);Sr.error(`${Y("feishuVerifyFailed")}: ${G}`)}finally{x(!1)}}},D=Ap[g||""]||Ap.default,F=Lp[g||""]||Lp.default;return h.jsx(lm,{open:r.open,onOpenChange:o,children:h.jsxs(uc,{className:"sm:max-w-[550px] max-h-[85vh] overflow-hidden flex flex-col",children:[h.jsx(cc,{children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:`h-10 w-10 rounded-xl bg-gradient-to-br ${F} flex items-center justify-center`,children:h.jsx(D,{className:"h-5 w-5 text-white"})}),h.jsxs("div",{children:[h.jsx(fc,{className:"capitalize",children:v}),h.jsx(pc,{children:"Configure message channel parameters"})]})]})}),h.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar py-2",children:h.jsxs("form",{onSubmit:b,className:"space-y-5 pr-2",children:[P.map(_=>{const G=g?Wt(`channels.${g}.${_.name}`,T):void 0,ee=(G==null?void 0:G.label)??_.label,$=G==null?void 0:G.placeholder;return h.jsxs("div",{className:"space-y-2.5",children:[h.jsxs(wn,{htmlFor:_.name,className:"text-sm font-medium text-gray-900 flex items-center gap-2",children:[Dw(_.name),ee]}),_.type==="boolean"&&h.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-gray-50",children:[h.jsx("span",{className:"text-sm text-gray-500",children:d[_.name]?Y("enabled"):Y("disabled")}),h.jsx(pm,{id:_.name,checked:d[_.name]||!1,onCheckedChange:X=>I(_.name,X),className:"data-[state=checked]:bg-emerald-500"})]}),(_.type==="text"||_.type==="email")&&h.jsx(Sn,{id:_.name,type:_.type,value:d[_.name]||"",onChange:X=>I(_.name,X.target.value),placeholder:$,className:"rounded-xl"}),_.type==="password"&&h.jsx(Sn,{id:_.name,type:"password",value:d[_.name]||"",onChange:X=>I(_.name,X.target.value),placeholder:$??"Leave blank to keep unchanged",className:"rounded-xl"}),_.type==="number"&&h.jsx(Sn,{id:_.name,type:"number",value:d[_.name]||0,onChange:X=>I(_.name,parseInt(X.target.value)||0),placeholder:$,className:"rounded-xl"}),_.type==="tags"&&h.jsx(Lw,{value:d[_.name]||[],onChange:X=>I(_.name,X)})]},_.name)}),h.jsxs(dc,{className:"pt-4",children:[h.jsx(xn,{type:"button",variant:"outline",onClick:o,children:Y("cancel")}),h.jsx(xn,{type:"submit",disabled:c.isPending||p,children:c.isPending?"Saving...":Y("save")}),g==="feishu"&&h.jsx(xn,{type:"button",onClick:R,disabled:c.isPending||p,variant:"secondary",children:Y(p?"feishuConnecting":"saveVerifyConnect")})]})]})})]})})}const Dp={telegram:wa,slack:Kv,email:rc,webhook:Lv,default:oc},Bw={telegram:"Connect with Telegram bots for instant messaging",slack:"Integrate with Slack workspaces for team collaboration",email:"Send and receive messages via email protocols",webhook:"Receive HTTP webhooks for custom integrations",discord:"Connect Discord bots to your community servers",feishu:"Enterprise messaging and collaboration platform"};function Ww(){const{data:r}=Ks(),{data:o}=sc(),{data:i}=Gs(),{openChannelModal:l}=Yr(),[c,d]=k.useState("active"),m=i==null?void 0:i.uiHints;if(!r||!o)return h.jsx("div",{className:"p-8 text-gray-400",children:"Loading channels..."});const p=[{id:"active",label:"Enabled",count:o.channels.filter(g=>{var E;return(E=r.channels[g.name])==null?void 0:E.enabled}).length},{id:"all",label:"All Channels",count:o.channels.length}],x=o.channels.filter(g=>{var P;const E=((P=r.channels[g.name])==null?void 0:P.enabled)||!1;return c==="all"||E});return h.jsxs("div",{className:"animate-fade-in pb-20",children:[h.jsx("div",{className:"flex items-center justify-between mb-8",children:h.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Message Channels"})}),h.jsx(cm,{tabs:p,activeTab:c,onChange:d}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:x.map(g=>{const E=r.channels[g.name],P=(E==null?void 0:E.enabled)||!1,T=Dp[g.name]||Dp.default,v=Wt(`channels.${g.name}`,m),I=(v==null?void 0:v.help)||Bw[g.name]||"Configure this communication channel";return h.jsxs("div",{className:Ee("group relative flex flex-col p-5 rounded-2xl border transition-all duration-base cursor-pointer","hover:shadow-card-hover hover:-translate-y-0.5",P?"bg-white border-gray-200 hover:border-gray-300":"bg-gray-50 border-gray-200 hover:border-gray-300 hover:bg-white"),onClick:()=>l(g.name),children:[h.jsxs("div",{className:"flex items-start justify-between mb-4",children:[h.jsx(dm,{name:g.name,src:Iw(g.name),className:Ee("h-12 w-12 rounded-xl border transition-all",P?"bg-white border-primary":"bg-white border-gray-200 group-hover:border-gray-300"),imgClassName:"h-6 w-6",fallback:h.jsx(T,{className:"h-6 w-6"})}),P?h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-50 text-emerald-600",children:[h.jsx(Xv,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Active"})]}):h.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-gray-100 text-gray-500",children:[h.jsx(Hv,{className:"h-3.5 w-3.5"}),h.jsx("span",{className:"text-[11px] font-bold",children:"Inactive"})]})]}),h.jsxs("div",{className:"flex-1",children:[h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-1",children:g.displayName||g.name}),h.jsx("p",{className:"text-[12px] text-gray-500 leading-relaxed line-clamp-2",children:I})]}),h.jsxs("div",{className:"mt-4 pt-3 flex items-center justify-between",children:[h.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] font-semibold text-gray-600 group-hover:text-primary transition-colors cursor-pointer",children:[P?"Configure":"Enable",h.jsx(wh,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}),g.tutorialUrl&&h.jsx("a",{href:g.tutorialUrl,target:"_blank",rel:"noreferrer",onClick:b=>b.stopPropagation(),className:"flex items-center justify-center h-7 w-7 rounded-lg text-gray-400 hover:text-gray-600 hover:bg-gray-100 transition-colors",title:"View Guide",children:h.jsx(Uv,{className:"h-3.5 w-3.5"})})]})]},g.name)})}),x.length===0&&h.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[h.jsx("div",{className:"h-16 w-16 flex items-center justify-center rounded-2xl bg-gray-100 mb-4",children:h.jsx(oc,{className:"h-8 w-8 text-gray-400"})}),h.jsx("h3",{className:"text-[15px] font-bold text-gray-900 mb-2",children:"No channels enabled"}),h.jsx("p",{className:"text-[13px] text-gray-500 max-w-sm",children:"Enable a messaging channel to start receiving messages. Click on any channel to configure it."})]}),h.jsx(Uw,{})]})}class Vw{constructor(o){this.url=o,this.ws=null,this.handlers=new Map,this.reconnectTimer=null,this.manualClose=!1}connect(){this.manualClose=!1,this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("WebSocket connected"),this.emit({type:"connection.open",payload:{}})},this.ws.onmessage=o=>{try{const i=JSON.parse(o.data);this.emit(i)}catch(i){console.error("Failed to parse WebSocket message:",i)}},this.ws.onclose=()=>{console.log("WebSocket disconnected"),this.manualClose||this.scheduleReconnect()},this.ws.onerror=o=>{console.error("WebSocket error:",o)}}on(o,i){this.handlers.has(o)||this.handlers.set(o,new Set),this.handlers.get(o).add(i)}off(o,i){var l;(l=this.handlers.get(o))==null||l.delete(i)}emit(o){const i=this.handlers.get(o.type);i==null||i.forEach(l=>l(o))}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.connect()},3e3))}disconnect(){var o;this.manualClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(o=this.ws)==null||o.close(),this.ws=null}}function Qw(r){const[o,i]=k.useState(null),{setConnectionStatus:l}=Yr();return k.useEffect(()=>{const c=(()=>{const m=xa==null?void 0:xa.replace(/\/$/,"");if(!m)return"ws://127.0.0.1:18791/ws";try{const p=new URL(m,window.location.origin);return`${p.protocol==="https:"?"wss:":p.protocol==="http:"?"ws:":p.protocol}//${p.host}/ws`}catch{return m.startsWith("wss://")||m.startsWith("ws://")?`${m}/ws`:m.startsWith("https://")?`${m.replace(/^https:/,"wss:")}/ws`:m.startsWith("http://")?`${m.replace(/^http:/,"ws:")}/ws`:`${m}/ws`}})(),d=new Vw(c);return d.on("connection.open",()=>{l("connected")}),d.on("config.updated",()=>{r&&r.invalidateQueries({queryKey:["config"]})}),d.on("error",m=>{m.type==="error"&&console.error("WebSocket error:",m.payload.message)}),d.connect(),i(d),()=>d.disconnect()},[l,r]),o}const Fp=new Fy({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!0}}});function $w(){const{activeTab:r}=Yr();Qw(Fp);const o=()=>{switch(r){case"model":return h.jsx(bp,{});case"providers":return h.jsx(Aw,{});case"channels":return h.jsx(Ww,{});default:return h.jsx(bp,{})}};return h.jsxs(Uy,{client:Fp,children:[h.jsx(e0,{children:h.jsx("div",{className:"animate-fade-in",children:o()},r)}),h.jsx(W0,{position:"top-right",richColors:!0})]})}my.createRoot(document.getElementById("root")).render(h.jsx(k.StrictMode,{children:h.jsx($w,{})}));