@nextclaw/ui 0.6.11 → 0.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/assets/ChannelsList-CXLzowHj.js +1 -0
  3. package/dist/assets/ChatPage-CvtonrzM.js +36 -0
  4. package/dist/assets/DocBrowser-4NK6-Q_u.js +1 -0
  5. package/dist/assets/LogoBadge-NI7KQCLa.js +1 -0
  6. package/dist/assets/{MarketplacePage-BOzko5s9.js → MarketplacePage-n7y-pif2.js} +2 -2
  7. package/dist/assets/ModelConfig-DztCs0mA.js +1 -0
  8. package/dist/assets/ProvidersList-hSzfE0pG.js +1 -0
  9. package/dist/assets/{RuntimeConfig-Dt9pLB9P.js → RuntimeConfig-CKFGVus7.js} +1 -1
  10. package/dist/assets/SearchConfig-Cxs1744q.js +1 -0
  11. package/dist/assets/{SecretsConfig-C1PU0Yy8.js → SecretsConfig-C90UckNB.js} +2 -2
  12. package/dist/assets/SessionsConfig-CRor418P.js +2 -0
  13. package/dist/assets/{card-C7Gtw2Vs.js → card-BQiPUGaa.js} +1 -1
  14. package/dist/assets/config-layout-BHnOoweL.js +1 -0
  15. package/dist/assets/index-BCfS4UY1.css +1 -0
  16. package/dist/assets/index-CB5eJOGS.js +8 -0
  17. package/dist/assets/index-CkqvHQAt.js +1 -0
  18. package/dist/assets/{input-oBvxsnV9.js → input-DmFFMdAk.js} +1 -1
  19. package/dist/assets/{label-C7F8lMpQ.js → label-BHvlZoIz.js} +1 -1
  20. package/dist/assets/{page-layout-DO8BlScF.js → page-layout-COPE9JyG.js} +1 -1
  21. package/dist/assets/popover-gcypYeec.js +1 -0
  22. package/dist/assets/provider-models-D3B_xWXx.js +1 -0
  23. package/dist/assets/{session-run-status-Kg0FwAPn.js → session-run-status-BgNvd_-a.js} +1 -1
  24. package/dist/assets/{switch-C6a5GyZB.js → switch-BampMwqT.js} +1 -1
  25. package/dist/assets/{tabs-custom-BatFap5k.js → tabs-custom-DSQeYaKd.js} +1 -1
  26. package/dist/assets/useConfirmDialog-DZUn23Li.js +5 -0
  27. package/dist/assets/{vendor-TlME1INH.js → vendor-BKtTvQYU.js} +69 -64
  28. package/dist/index.html +3 -3
  29. package/package.json +1 -1
  30. package/src/App.tsx +2 -0
  31. package/src/api/config.ts +13 -0
  32. package/src/api/types.ts +61 -0
  33. package/src/components/chat/ChatPage.tsx +16 -0
  34. package/src/components/chat/chat-input/ChatInputBottomToolbar.tsx +12 -0
  35. package/src/components/chat/chat-input/components/ChatInputSlashPanelSection.tsx +3 -3
  36. package/src/components/chat/chat-input/components/bottom-toolbar/ChatInputThinkingSelector.tsx +74 -0
  37. package/src/components/chat/chat-input/useChatInputBarController.ts +11 -2
  38. package/src/components/chat/chat-input.types.ts +8 -0
  39. package/src/components/chat/chat-page-data.ts +40 -3
  40. package/src/components/chat/chat-stream/transport.ts +3 -0
  41. package/src/components/chat/chat-stream/types.ts +3 -1
  42. package/src/components/chat/managers/chat-input.manager.ts +51 -0
  43. package/src/components/chat/stores/chat-input.store.ts +5 -1
  44. package/src/components/common/SearchableModelInput.tsx +22 -5
  45. package/src/components/config/ModelConfig.tsx +13 -12
  46. package/src/components/config/ProviderForm.tsx +292 -19
  47. package/src/components/config/SearchConfig.tsx +297 -0
  48. package/src/components/layout/Sidebar.tsx +6 -1
  49. package/src/hooks/useConfig.ts +17 -0
  50. package/src/lib/i18n.ts +37 -0
  51. package/src/lib/provider-models.ts +91 -3
  52. package/dist/assets/ChannelsList-C49JQ-Zt.js +0 -1
  53. package/dist/assets/ChatPage-DIx05c6s.js +0 -36
  54. package/dist/assets/DocBrowser-CpOosDEI.js +0 -1
  55. package/dist/assets/LogoBadge-CL_8ZPXU.js +0 -1
  56. package/dist/assets/ModelConfig-BZ4ZfaQB.js +0 -1
  57. package/dist/assets/ProvidersList-fPpJ5gl6.js +0 -1
  58. package/dist/assets/SessionsConfig-EskBOofQ.js +0 -2
  59. package/dist/assets/index-Cn6_2To7.js +0 -8
  60. package/dist/assets/index-nEYGCJTC.css +0 -1
  61. package/dist/assets/provider-models-y4mUDcGF.js +0 -1
  62. package/dist/assets/useConfirmDialog-zJzVKMdu.js +0 -5
@@ -1,4 +1,4 @@
1
- var qp=n=>{throw TypeError(n)};var Xu=(n,r,i)=>r.has(n)||qp("Cannot "+i);var b=(n,r,i)=>(Xu(n,r,"read from private field"),i?i.call(n):r.get(n)),me=(n,r,i)=>r.has(n)?qp("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,i),J=(n,r,i,l)=>(Xu(n,r,"write to private field"),l?l.call(n,i):r.set(n,i),i),Pe=(n,r,i)=>(Xu(n,r,"access private method"),i);var Al=(n,r,i,l)=>({set _(a){J(n,r,a,i)},get _(){return b(n,r,l)}});function l0(n,r){for(var i=0;i<r.length;i++){const l=r[i];if(typeof l!="string"&&!Array.isArray(l)){for(const a in l)if(a!=="default"&&!(a in n)){const c=Object.getOwnPropertyDescriptor(l,a);c&&Object.defineProperty(n,a,c.get?c:{enumerable:!0,get:()=>l[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function dm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Zu={exports:{}},os={},Ju={exports:{}},Me={};/**
1
+ var Yp=n=>{throw TypeError(n)};var Xu=(n,r,i)=>r.has(n)||Yp("Cannot "+i);var b=(n,r,i)=>(Xu(n,r,"read from private field"),i?i.call(n):r.get(n)),me=(n,r,i)=>r.has(n)?Yp("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,i),J=(n,r,i,l)=>(Xu(n,r,"write to private field"),l?l.call(n,i):r.set(n,i),i),Pe=(n,r,i)=>(Xu(n,r,"access private method"),i);var Il=(n,r,i,l)=>({set _(a){J(n,r,a,i)},get _(){return b(n,r,l)}});function l0(n,r){for(var i=0;i<r.length;i++){const l=r[i];if(typeof l!="string"&&!Array.isArray(l)){for(const a in l)if(a!=="default"&&!(a in n)){const c=Object.getOwnPropertyDescriptor(l,a);c&&Object.defineProperty(n,a,c.get?c:{enumerable:!0,get:()=>l[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function dm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Zu={exports:{}},os={},Ju={exports:{}},Te={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var qp=n=>{throw TypeError(n)};var Xu=(n,r,i)=>r.has(n)||qp("Cannot "+i);var b=(
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 Gp;function a0(){if(Gp)return Me;Gp=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),x=Symbol.iterator;function E(_){return _===null||typeof _!="object"?null:(_=x&&_[x]||_["@@iterator"],typeof _=="function"?_:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,S={};function C(_,F,ne){this.props=_,this.context=F,this.refs=S,this.updater=ne||y}C.prototype.isReactComponent={},C.prototype.setState=function(_,F){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,F,"setState")},C.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function P(){}P.prototype=C.prototype;function M(_,F,ne){this.props=_,this.context=F,this.refs=S,this.updater=ne||y}var R=M.prototype=new P;R.constructor=M,O(R,C.prototype),R.isPureReactComponent=!0;var L=Array.isArray,z=Object.prototype.hasOwnProperty,U={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function Y(_,F,ne){var re,ve={},Se=null,K=null;if(F!=null)for(re in F.ref!==void 0&&(K=F.ref),F.key!==void 0&&(Se=""+F.key),F)z.call(F,re)&&!H.hasOwnProperty(re)&&(ve[re]=F[re]);var fe=arguments.length-2;if(fe===1)ve.children=ne;else if(1<fe){for(var Ce=Array(fe),be=0;be<fe;be++)Ce[be]=arguments[be+2];ve.children=Ce}if(_&&_.defaultProps)for(re in fe=_.defaultProps,fe)ve[re]===void 0&&(ve[re]=fe[re]);return{$$typeof:n,type:_,key:Se,ref:K,props:ve,_owner:U.current}}function Z(_,F){return{$$typeof:n,type:_.type,key:F,ref:_.ref,props:_.props,_owner:_._owner}}function te(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function he(_){var F={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(ne){return F[ne]})}var X=/\/+/g;function ye(_,F){return typeof _=="object"&&_!==null&&_.key!=null?he(""+_.key):F.toString(36)}function ce(_,F,ne,re,ve){var Se=typeof _;(Se==="undefined"||Se==="boolean")&&(_=null);var K=!1;if(_===null)K=!0;else switch(Se){case"string":case"number":K=!0;break;case"object":switch(_.$$typeof){case n:case r:K=!0}}if(K)return K=_,ve=ve(K),_=re===""?"."+ye(K,0):re,L(ve)?(ne="",_!=null&&(ne=_.replace(X,"$&/")+"/"),ce(ve,F,ne,"",function(be){return be})):ve!=null&&(te(ve)&&(ve=Z(ve,ne+(!ve.key||K&&K.key===ve.key?"":(""+ve.key).replace(X,"$&/")+"/")+_)),F.push(ve)),1;if(K=0,re=re===""?".":re+":",L(_))for(var fe=0;fe<_.length;fe++){Se=_[fe];var Ce=re+ye(Se,fe);K+=ce(Se,F,ne,Ce,ve)}else if(Ce=E(_),typeof Ce=="function")for(_=Ce.call(_),fe=0;!(Se=_.next()).done;)Se=Se.value,Ce=re+ye(Se,fe++),K+=ce(Se,F,ne,Ce,ve);else if(Se==="object")throw F=String(_),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return K}function xe(_,F,ne){if(_==null)return _;var re=[],ve=0;return ce(_,re,"","",function(Se){return F.call(ne,Se,ve++)}),re}function ae(_){if(_._status===-1){var F=_._result;F=F(),F.then(function(ne){(_._status===0||_._status===-1)&&(_._status=1,_._result=ne)},function(ne){(_._status===0||_._status===-1)&&(_._status=2,_._result=ne)}),_._status===-1&&(_._status=0,_._result=F)}if(_._status===1)return _._result.default;throw _._result}var ie={current:null},j={transition:null},B={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:j,ReactCurrentOwner:U};function V(){throw Error("act(...) is not supported in production builds of React.")}return Me.Children={map:xe,forEach:function(_,F,ne){xe(_,function(){F.apply(this,arguments)},ne)},count:function(_){var F=0;return xe(_,function(){F++}),F},toArray:function(_){return xe(_,function(F){return F})||[]},only:function(_){if(!te(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Me.Component=C,Me.Fragment=i,Me.Profiler=a,Me.PureComponent=M,Me.StrictMode=l,Me.Suspense=h,Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,Me.act=V,Me.cloneElement=function(_,F,ne){if(_==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_+".");var re=O({},_.props),ve=_.key,Se=_.ref,K=_._owner;if(F!=null){if(F.ref!==void 0&&(Se=F.ref,K=U.current),F.key!==void 0&&(ve=""+F.key),_.type&&_.type.defaultProps)var fe=_.type.defaultProps;for(Ce in F)z.call(F,Ce)&&!H.hasOwnProperty(Ce)&&(re[Ce]=F[Ce]===void 0&&fe!==void 0?fe[Ce]:F[Ce])}var Ce=arguments.length-2;if(Ce===1)re.children=ne;else if(1<Ce){fe=Array(Ce);for(var be=0;be<Ce;be++)fe[be]=arguments[be+2];re.children=fe}return{$$typeof:n,type:_.type,key:ve,ref:Se,props:re,_owner:K}},Me.createContext=function(_){return _={$$typeof:f,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_.Provider={$$typeof:c,_context:_},_.Consumer=_},Me.createElement=Y,Me.createFactory=function(_){var F=Y.bind(null,_);return F.type=_,F},Me.createRef=function(){return{current:null}},Me.forwardRef=function(_){return{$$typeof:p,render:_}},Me.isValidElement=te,Me.lazy=function(_){return{$$typeof:w,_payload:{_status:-1,_result:_},_init:ae}},Me.memo=function(_,F){return{$$typeof:v,type:_,compare:F===void 0?null:F}},Me.startTransition=function(_){var F=j.transition;j.transition={};try{_()}finally{j.transition=F}},Me.unstable_act=V,Me.useCallback=function(_,F){return ie.current.useCallback(_,F)},Me.useContext=function(_){return ie.current.useContext(_)},Me.useDebugValue=function(){},Me.useDeferredValue=function(_){return ie.current.useDeferredValue(_)},Me.useEffect=function(_,F){return ie.current.useEffect(_,F)},Me.useId=function(){return ie.current.useId()},Me.useImperativeHandle=function(_,F,ne){return ie.current.useImperativeHandle(_,F,ne)},Me.useInsertionEffect=function(_,F){return ie.current.useInsertionEffect(_,F)},Me.useLayoutEffect=function(_,F){return ie.current.useLayoutEffect(_,F)},Me.useMemo=function(_,F){return ie.current.useMemo(_,F)},Me.useReducer=function(_,F,ne){return ie.current.useReducer(_,F,ne)},Me.useRef=function(_){return ie.current.useRef(_)},Me.useState=function(_){return ie.current.useState(_)},Me.useSyncExternalStore=function(_,F,ne){return ie.current.useSyncExternalStore(_,F,ne)},Me.useTransition=function(){return ie.current.useTransition()},Me.version="18.3.1",Me}var Xp;function Qc(){return Xp||(Xp=1,Ju.exports=a0()),Ju.exports}/**
9
+ */var Gp;function a0(){if(Gp)return Te;Gp=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),x=Symbol.iterator;function E(_){return _===null||typeof _!="object"?null:(_=x&&_[x]||_["@@iterator"],typeof _=="function"?_:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,S={};function C(_,F,ne){this.props=_,this.context=F,this.refs=S,this.updater=ne||v}C.prototype.isReactComponent={},C.prototype.setState=function(_,F){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,F,"setState")},C.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function P(){}P.prototype=C.prototype;function T(_,F,ne){this.props=_,this.context=F,this.refs=S,this.updater=ne||v}var R=T.prototype=new P;R.constructor=T,O(R,C.prototype),R.isPureReactComponent=!0;var L=Array.isArray,z=Object.prototype.hasOwnProperty,U={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function q(_,F,ne){var re,ye={},Se=null,K=null;if(F!=null)for(re in F.ref!==void 0&&(K=F.ref),F.key!==void 0&&(Se=""+F.key),F)z.call(F,re)&&!H.hasOwnProperty(re)&&(ye[re]=F[re]);var fe=arguments.length-2;if(fe===1)ye.children=ne;else if(1<fe){for(var Ce=Array(fe),be=0;be<fe;be++)Ce[be]=arguments[be+2];ye.children=Ce}if(_&&_.defaultProps)for(re in fe=_.defaultProps,fe)ye[re]===void 0&&(ye[re]=fe[re]);return{$$typeof:n,type:_,key:Se,ref:K,props:ye,_owner:U.current}}function Z(_,F){return{$$typeof:n,type:_.type,key:F,ref:_.ref,props:_.props,_owner:_._owner}}function te(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function he(_){var F={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(ne){return F[ne]})}var X=/\/+/g;function ve(_,F){return typeof _=="object"&&_!==null&&_.key!=null?he(""+_.key):F.toString(36)}function ce(_,F,ne,re,ye){var Se=typeof _;(Se==="undefined"||Se==="boolean")&&(_=null);var K=!1;if(_===null)K=!0;else switch(Se){case"string":case"number":K=!0;break;case"object":switch(_.$$typeof){case n:case r:K=!0}}if(K)return K=_,ye=ye(K),_=re===""?"."+ve(K,0):re,L(ye)?(ne="",_!=null&&(ne=_.replace(X,"$&/")+"/"),ce(ye,F,ne,"",function(be){return be})):ye!=null&&(te(ye)&&(ye=Z(ye,ne+(!ye.key||K&&K.key===ye.key?"":(""+ye.key).replace(X,"$&/")+"/")+_)),F.push(ye)),1;if(K=0,re=re===""?".":re+":",L(_))for(var fe=0;fe<_.length;fe++){Se=_[fe];var Ce=re+ve(Se,fe);K+=ce(Se,F,ne,Ce,ye)}else if(Ce=E(_),typeof Ce=="function")for(_=Ce.call(_),fe=0;!(Se=_.next()).done;)Se=Se.value,Ce=re+ve(Se,fe++),K+=ce(Se,F,ne,Ce,ye);else if(Se==="object")throw F=String(_),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return K}function xe(_,F,ne){if(_==null)return _;var re=[],ye=0;return ce(_,re,"","",function(Se){return F.call(ne,Se,ye++)}),re}function ae(_){if(_._status===-1){var F=_._result;F=F(),F.then(function(ne){(_._status===0||_._status===-1)&&(_._status=1,_._result=ne)},function(ne){(_._status===0||_._status===-1)&&(_._status=2,_._result=ne)}),_._status===-1&&(_._status=0,_._result=F)}if(_._status===1)return _._result.default;throw _._result}var ie={current:null},j={transition:null},B={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:j,ReactCurrentOwner:U};function V(){throw Error("act(...) is not supported in production builds of React.")}return Te.Children={map:xe,forEach:function(_,F,ne){xe(_,function(){F.apply(this,arguments)},ne)},count:function(_){var F=0;return xe(_,function(){F++}),F},toArray:function(_){return xe(_,function(F){return F})||[]},only:function(_){if(!te(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},Te.Component=C,Te.Fragment=i,Te.Profiler=a,Te.PureComponent=T,Te.StrictMode=l,Te.Suspense=h,Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,Te.act=V,Te.cloneElement=function(_,F,ne){if(_==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_+".");var re=O({},_.props),ye=_.key,Se=_.ref,K=_._owner;if(F!=null){if(F.ref!==void 0&&(Se=F.ref,K=U.current),F.key!==void 0&&(ye=""+F.key),_.type&&_.type.defaultProps)var fe=_.type.defaultProps;for(Ce in F)z.call(F,Ce)&&!H.hasOwnProperty(Ce)&&(re[Ce]=F[Ce]===void 0&&fe!==void 0?fe[Ce]:F[Ce])}var Ce=arguments.length-2;if(Ce===1)re.children=ne;else if(1<Ce){fe=Array(Ce);for(var be=0;be<Ce;be++)fe[be]=arguments[be+2];re.children=fe}return{$$typeof:n,type:_.type,key:ye,ref:Se,props:re,_owner:K}},Te.createContext=function(_){return _={$$typeof:f,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_.Provider={$$typeof:c,_context:_},_.Consumer=_},Te.createElement=q,Te.createFactory=function(_){var F=q.bind(null,_);return F.type=_,F},Te.createRef=function(){return{current:null}},Te.forwardRef=function(_){return{$$typeof:p,render:_}},Te.isValidElement=te,Te.lazy=function(_){return{$$typeof:w,_payload:{_status:-1,_result:_},_init:ae}},Te.memo=function(_,F){return{$$typeof:y,type:_,compare:F===void 0?null:F}},Te.startTransition=function(_){var F=j.transition;j.transition={};try{_()}finally{j.transition=F}},Te.unstable_act=V,Te.useCallback=function(_,F){return ie.current.useCallback(_,F)},Te.useContext=function(_){return ie.current.useContext(_)},Te.useDebugValue=function(){},Te.useDeferredValue=function(_){return ie.current.useDeferredValue(_)},Te.useEffect=function(_,F){return ie.current.useEffect(_,F)},Te.useId=function(){return ie.current.useId()},Te.useImperativeHandle=function(_,F,ne){return ie.current.useImperativeHandle(_,F,ne)},Te.useInsertionEffect=function(_,F){return ie.current.useInsertionEffect(_,F)},Te.useLayoutEffect=function(_,F){return ie.current.useLayoutEffect(_,F)},Te.useMemo=function(_,F){return ie.current.useMemo(_,F)},Te.useReducer=function(_,F,ne){return ie.current.useReducer(_,F,ne)},Te.useRef=function(_){return ie.current.useRef(_)},Te.useState=function(_){return ie.current.useState(_)},Te.useSyncExternalStore=function(_,F,ne){return ie.current.useSyncExternalStore(_,F,ne)},Te.useTransition=function(){return ie.current.useTransition()},Te.version="18.3.1",Te}var Xp;function Qc(){return Xp||(Xp=1,Ju.exports=a0()),Ju.exports}/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var qp=n=>{throw TypeError(n)};var Xu=(n,r,i)=>r.has(n)||qp("Cannot "+i);var b=(
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 Zp;function u0(){if(Zp)return os;Zp=1;var n=Qc(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function f(p,h,v){var w,x={},E=null,y=null;v!==void 0&&(E=""+v),h.key!==void 0&&(E=""+h.key),h.ref!==void 0&&(y=h.ref);for(w in h)l.call(h,w)&&!c.hasOwnProperty(w)&&(x[w]=h[w]);if(p&&p.defaultProps)for(w in h=p.defaultProps,h)x[w]===void 0&&(x[w]=h[w]);return{$$typeof:r,type:p,key:E,ref:y,props:x,_owner:a.current}}return os.Fragment=i,os.jsx=f,os.jsxs=f,os}var Jp;function c0(){return Jp||(Jp=1,Zu.exports=u0()),Zu.exports}var ee=c0(),g=Qc();const G=dm(g),fm=l0({__proto__:null,default:G},[g]);var Dl={},ec={exports:{}},Ot={},tc={exports:{}},nc={};/**
17
+ */var Zp;function u0(){if(Zp)return os;Zp=1;var n=Qc(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function f(p,h,y){var w,x={},E=null,v=null;y!==void 0&&(E=""+y),h.key!==void 0&&(E=""+h.key),h.ref!==void 0&&(v=h.ref);for(w in h)l.call(h,w)&&!c.hasOwnProperty(w)&&(x[w]=h[w]);if(p&&p.defaultProps)for(w in h=p.defaultProps,h)x[w]===void 0&&(x[w]=h[w]);return{$$typeof:r,type:p,key:E,ref:v,props:x,_owner:a.current}}return os.Fragment=i,os.jsx=f,os.jsxs=f,os}var Jp;function c0(){return Jp||(Jp=1,Zu.exports=u0()),Zu.exports}var ee=c0(),g=Qc();const G=dm(g),fm=l0({__proto__:null,default:G},[g]);var Dl={},ec={exports:{}},Ot={},tc={exports:{}},nc={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var qp=n=>{throw TypeError(n)};var Xu=(n,r,i)=>r.has(n)||qp("Cannot "+i);var b=(
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 eh;function d0(){return eh||(eh=1,(function(n){function r(j,B){var V=j.length;j.push(B);e:for(;0<V;){var _=V-1>>>1,F=j[_];if(0<a(F,B))j[_]=B,j[V]=F,V=_;else break e}}function i(j){return j.length===0?null:j[0]}function l(j){if(j.length===0)return null;var B=j[0],V=j.pop();if(V!==B){j[0]=V;e:for(var _=0,F=j.length,ne=F>>>1;_<ne;){var re=2*(_+1)-1,ve=j[re],Se=re+1,K=j[Se];if(0>a(ve,V))Se<F&&0>a(K,ve)?(j[_]=K,j[Se]=V,_=Se):(j[_]=ve,j[re]=V,_=re);else if(Se<F&&0>a(K,V))j[_]=K,j[Se]=V,_=Se;else break e}}return B}function a(j,B){var V=j.sortIndex-B.sortIndex;return V!==0?V:j.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var h=[],v=[],w=1,x=null,E=3,y=!1,O=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(j){for(var B=i(v);B!==null;){if(B.callback===null)l(v);else if(B.startTime<=j)l(v),B.sortIndex=B.expirationTime,r(h,B);else break;B=i(v)}}function L(j){if(S=!1,R(j),!O)if(i(h)!==null)O=!0,ae(z);else{var B=i(v);B!==null&&ie(L,B.startTime-j)}}function z(j,B){O=!1,S&&(S=!1,P(Y),Y=-1),y=!0;var V=E;try{for(R(B),x=i(h);x!==null&&(!(x.expirationTime>B)||j&&!he());){var _=x.callback;if(typeof _=="function"){x.callback=null,E=x.priorityLevel;var F=_(x.expirationTime<=B);B=n.unstable_now(),typeof F=="function"?x.callback=F:x===i(h)&&l(h),R(B)}else l(h);x=i(h)}if(x!==null)var ne=!0;else{var re=i(v);re!==null&&ie(L,re.startTime-B),ne=!1}return ne}finally{x=null,E=V,y=!1}}var U=!1,H=null,Y=-1,Z=5,te=-1;function he(){return!(n.unstable_now()-te<Z)}function X(){if(H!==null){var j=n.unstable_now();te=j;var B=!0;try{B=H(!0,j)}finally{B?ye():(U=!1,H=null)}}else U=!1}var ye;if(typeof M=="function")ye=function(){M(X)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,xe=ce.port2;ce.port1.onmessage=X,ye=function(){xe.postMessage(null)}}else ye=function(){C(X,0)};function ae(j){H=j,U||(U=!0,ye())}function ie(j,B){Y=C(function(){j(n.unstable_now())},B)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_continueExecution=function(){O||y||(O=!0,ae(z))},n.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<j?Math.floor(1e3/j):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_getFirstCallbackNode=function(){return i(h)},n.unstable_next=function(j){switch(E){case 1:case 2:case 3:var B=3;break;default:B=E}var V=E;E=B;try{return j()}finally{E=V}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(j,B){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var V=E;E=j;try{return B()}finally{E=V}},n.unstable_scheduleCallback=function(j,B,V){var _=n.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?_+V:_):V=_,j){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=V+F,j={id:w++,callback:B,priorityLevel:j,startTime:V,expirationTime:F,sortIndex:-1},V>_?(j.sortIndex=V,r(v,j),i(h)===null&&j===i(v)&&(S?(P(Y),Y=-1):S=!0,ie(L,V-_))):(j.sortIndex=F,r(h,j),O||y||(O=!0,ae(z))),j},n.unstable_shouldYield=he,n.unstable_wrapCallback=function(j){var B=E;return function(){var V=E;E=B;try{return j.apply(this,arguments)}finally{E=V}}}})(nc)),nc}var th;function f0(){return th||(th=1,tc.exports=d0()),tc.exports}/**
25
+ */var eh;function d0(){return eh||(eh=1,(function(n){function r(j,B){var V=j.length;j.push(B);e:for(;0<V;){var _=V-1>>>1,F=j[_];if(0<a(F,B))j[_]=B,j[V]=F,V=_;else break e}}function i(j){return j.length===0?null:j[0]}function l(j){if(j.length===0)return null;var B=j[0],V=j.pop();if(V!==B){j[0]=V;e:for(var _=0,F=j.length,ne=F>>>1;_<ne;){var re=2*(_+1)-1,ye=j[re],Se=re+1,K=j[Se];if(0>a(ye,V))Se<F&&0>a(K,ye)?(j[_]=K,j[Se]=V,_=Se):(j[_]=ye,j[re]=V,_=re);else if(Se<F&&0>a(K,V))j[_]=K,j[Se]=V,_=Se;else break e}}return B}function a(j,B){var V=j.sortIndex-B.sortIndex;return V!==0?V:j.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var h=[],y=[],w=1,x=null,E=3,v=!1,O=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(j){for(var B=i(y);B!==null;){if(B.callback===null)l(y);else if(B.startTime<=j)l(y),B.sortIndex=B.expirationTime,r(h,B);else break;B=i(y)}}function L(j){if(S=!1,R(j),!O)if(i(h)!==null)O=!0,ae(z);else{var B=i(y);B!==null&&ie(L,B.startTime-j)}}function z(j,B){O=!1,S&&(S=!1,P(q),q=-1),v=!0;var V=E;try{for(R(B),x=i(h);x!==null&&(!(x.expirationTime>B)||j&&!he());){var _=x.callback;if(typeof _=="function"){x.callback=null,E=x.priorityLevel;var F=_(x.expirationTime<=B);B=n.unstable_now(),typeof F=="function"?x.callback=F:x===i(h)&&l(h),R(B)}else l(h);x=i(h)}if(x!==null)var ne=!0;else{var re=i(y);re!==null&&ie(L,re.startTime-B),ne=!1}return ne}finally{x=null,E=V,v=!1}}var U=!1,H=null,q=-1,Z=5,te=-1;function he(){return!(n.unstable_now()-te<Z)}function X(){if(H!==null){var j=n.unstable_now();te=j;var B=!0;try{B=H(!0,j)}finally{B?ve():(U=!1,H=null)}}else U=!1}var ve;if(typeof T=="function")ve=function(){T(X)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,xe=ce.port2;ce.port1.onmessage=X,ve=function(){xe.postMessage(null)}}else ve=function(){C(X,0)};function ae(j){H=j,U||(U=!0,ve())}function ie(j,B){q=C(function(){j(n.unstable_now())},B)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_continueExecution=function(){O||v||(O=!0,ae(z))},n.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<j?Math.floor(1e3/j):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_getFirstCallbackNode=function(){return i(h)},n.unstable_next=function(j){switch(E){case 1:case 2:case 3:var B=3;break;default:B=E}var V=E;E=B;try{return j()}finally{E=V}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(j,B){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var V=E;E=j;try{return B()}finally{E=V}},n.unstable_scheduleCallback=function(j,B,V){var _=n.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?_+V:_):V=_,j){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=V+F,j={id:w++,callback:B,priorityLevel:j,startTime:V,expirationTime:F,sortIndex:-1},V>_?(j.sortIndex=V,r(y,j),i(h)===null&&j===i(y)&&(S?(P(q),q=-1):S=!0,ie(L,V-_))):(j.sortIndex=F,r(h,j),O||v||(O=!0,ae(z))),j},n.unstable_shouldYield=he,n.unstable_wrapCallback=function(j){var B=E;return function(){var V=E;E=B;try{return j.apply(this,arguments)}finally{E=V}}}})(nc)),nc}var th;function f0(){return th||(th=1,tc.exports=d0()),tc.exports}/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var qp=n=>{throw TypeError(n)};var Xu=(n,r,i)=>r.has(n)||qp("Cannot "+i);var b=(
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 nh;function p0(){if(nh)return Ot;nh=1;var n=Qc(),r=f0();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);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,a={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(a[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"),h=Object.prototype.hasOwnProperty,v=/^[: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]*$/,w={},x={};function E(e){return h.call(x,e)?!0:h.call(w,e)?!1:v.test(e)?x[e]=!0:(w[e]=!0,!1)}function y(e,t,o,s){if(o!==null&&o.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function O(e,t,o,s){if(t===null||typeof t>"u"||y(e,t,o,s))return!0;if(s)return!1;if(o!==null)switch(o.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 S(e,t,o,s,u,d,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=u,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=m}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new S(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new S(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new S(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new S(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){C[e]=new S(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new S(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new S(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new S(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new S(e,5,!1,e.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function M(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(P,M);C[t]=new S(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(P,M);C[t]=new S(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(P,M);C[t]=new S(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!0,!0)});function R(e,t,o,s){var u=C.hasOwnProperty(t)?C[t]:null;(u!==null?u.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(O(t,o,u,s)&&(o=null),s||u===null?E(t)&&(o===null?e.removeAttribute(t):e.setAttribute(t,""+o)):u.mustUseProperty?e[u.propertyName]=o===null?u.type===3?!1:"":o:(t=u.attributeName,s=u.attributeNamespace,o===null?e.removeAttribute(t):(u=u.type,o=u===3||u===4&&o===!0?"":""+o,s?e.setAttributeNS(s,t,o):e.setAttribute(t,o))))}var L=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),U=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),he=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),xe=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),j=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=j&&e[j]||e["@@iterator"],typeof e=="function"?e:null)}var V=Object.assign,_;function F(e){if(_===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);_=t&&t[1]||""}return`
33
+ */var nh;function p0(){if(nh)return Ot;nh=1;var n=Qc(),r=f0();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);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,a={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(a[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"),h=Object.prototype.hasOwnProperty,y=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w={},x={};function E(e){return h.call(x,e)?!0:h.call(w,e)?!1:y.test(e)?x[e]=!0:(w[e]=!0,!1)}function v(e,t,o,s){if(o!==null&&o.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function O(e,t,o,s){if(t===null||typeof t>"u"||v(e,t,o,s))return!0;if(s)return!1;if(o!==null)switch(o.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 S(e,t,o,s,u,d,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=u,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=m}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new S(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new S(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new S(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new S(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){C[e]=new S(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new S(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new S(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new S(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new S(e,5,!1,e.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function T(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(P,T);C[t]=new S(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(P,T);C[t]=new S(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(P,T);C[t]=new S(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new S(e,1,!1,e.toLowerCase(),null,!0,!0)});function R(e,t,o,s){var u=C.hasOwnProperty(t)?C[t]:null;(u!==null?u.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(O(t,o,u,s)&&(o=null),s||u===null?E(t)&&(o===null?e.removeAttribute(t):e.setAttribute(t,""+o)):u.mustUseProperty?e[u.propertyName]=o===null?u.type===3?!1:"":o:(t=u.attributeName,s=u.attributeNamespace,o===null?e.removeAttribute(t):(u=u.type,o=u===3||u===4&&o===!0?"":""+o,s?e.setAttributeNS(s,t,o):e.setAttribute(t,o))))}var L=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),U=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),he=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),ve=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),xe=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),j=Symbol.iterator;function B(e){return e===null||typeof e!="object"?null:(e=j&&e[j]||e["@@iterator"],typeof e=="function"?e:null)}var V=Object.assign,_;function F(e){if(_===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);_=t&&t[1]||""}return`
34
34
  `+_+e}var ne=!1;function re(e,t){if(!e||ne)return"";ne=!0;var o=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(D){var s=D}Reflect.construct(e,[],t)}else{try{t.call()}catch(D){s=D}e.call(t.prototype)}else{try{throw Error()}catch(D){s=D}e()}}catch(D){if(D&&s&&typeof D.stack=="string"){for(var u=D.stack.split(`
35
35
  `),d=s.stack.split(`
36
- `),m=u.length-1,k=d.length-1;1<=m&&0<=k&&u[m]!==d[k];)k--;for(;1<=m&&0<=k;m--,k--)if(u[m]!==d[k]){if(m!==1||k!==1)do if(m--,k--,0>k||u[m]!==d[k]){var T=`
37
- `+u[m].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),T}while(1<=m&&0<=k);break}}}finally{ne=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?F(e):""}function ve(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function Se(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 H:return"Fragment";case U:return"Portal";case Z:return"Profiler";case Y:return"StrictMode";case ye:return"Suspense";case ce:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case he:return(e.displayName||"Context")+".Consumer";case te:return(e._context.displayName||"Context")+".Provider";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xe:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}function K(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 Se(t);case 8:return t===Y?"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 fe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function be(e){var t=Ce(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,d=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){s=""+m,d.call(this,m)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(m){s=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Te(e){e._valueTracker||(e._valueTracker=be(e))}function Oe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),s="";return e&&(s=Ce(e)?e.checked?"true":"false":e.value),e=s,e!==o?(t.setValue(e),!0):!1}function Ye(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 dt(e,t){var o=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function yn(e,t){var o=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;o=fe(t.value!=null?t.value:o),e._wrapperState={initialChecked:s,initialValue:o,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xt(e,t){t=t.checked,t!=null&&R(e,"checked",t,!1)}function Zt(e,t){Xt(e,t);var o=fe(t.value),s=t.type;if(o!=null)s==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gn(e,t.type,o):t.hasOwnProperty("defaultValue")&&gn(e,t.type,fe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function or(e,t,o){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,o||t===e.value||(e.value=t),e.defaultValue=t}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function gn(e,t,o){(t!=="number"||Ye(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var ir=Array.isArray;function Ht(e,t,o,s){if(e=e.options,t){t={};for(var u=0;u<o.length;u++)t["$"+o[u]]=!0;for(o=0;o<e.length;o++)u=t.hasOwnProperty("$"+e[o].value),e[o].selected!==u&&(e[o].selected=u),u&&s&&(e[o].defaultSelected=!0)}else{for(o=""+fe(o),t=null,u=0;u<e.length;u++){if(e[u].value===o){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Co(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wn(e,t){var o=t.value;if(o==null){if(o=t.children,t=t.defaultValue,o!=null){if(t!=null)throw Error(i(92));if(ir(o)){if(1<o.length)throw Error(i(93));o=o[0]}t=o}t==null&&(t=""),o=t}e._wrapperState={initialValue:fe(o)}}function Cs(e,t){var o=fe(t.value),s=fe(t.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),t.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),s!=null&&(e.defaultValue=""+s)}function Es(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function yt(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 xn(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?yt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Eo,ks=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,o,s,u){MSApp.execUnsafeLocalFunction(function(){return e(t,o,s,u)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Eo=Eo||document.createElement("div"),Eo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Eo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sn(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var Vr={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},bs=["Webkit","ms","Moz","O"];Object.keys(Vr).forEach(function(e){bs.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vr[t]=Vr[e]})});function ko(e,t,o){return t==null||typeof t=="boolean"||t===""?"":o||typeof t!="number"||t===0||Vr.hasOwnProperty(e)&&Vr[e]?(""+t).trim():t+"px"}function zn(e,t){e=e.style;for(var o in t)if(t.hasOwnProperty(o)){var s=o.indexOf("--")===0,u=ko(o,t[o],s);o==="float"&&(o="cssFloat"),s?e.setProperty(o,u):e[o]=u}}var Rs=V({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 Cn(e,t){if(t){if(Rs[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 Ci(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 Ei=null;function bo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ro=null,sr=null,En=null;function Jt(e){if(e=$i(e)){if(typeof Ro!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Gs(t),Ro(e.stateNode,e.type,t))}}function Ps(e){sr?En?En.push(e):En=[e]:sr=e}function ke(){if(sr){var e=sr,t=En;if(En=sr=null,Jt(e),t)for(e=0;e<t.length;e++)Jt(t[e])}}function Ie(e,t){return e(t)}function Fe(){}var gt=!1;function Et(e,t,o){if(gt)return e(t,o);gt=!0;try{return Ie(e,t,o)}finally{gt=!1,(sr!==null||En!==null)&&(Fe(),ke())}}function kt(e,t){var o=e.stateNode;if(o===null)return null;var s=Gs(o);if(s===null)return null;o=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(o&&typeof o!="function")throw Error(i(231,t,typeof o));return o}var en=!1;if(p)try{var lt={};Object.defineProperty(lt,"passive",{get:function(){en=!0}}),window.addEventListener("test",lt,lt),window.removeEventListener("test",lt,lt)}catch{en=!1}function kn(e,t,o,s,u,d,m,k,T){var D=Array.prototype.slice.call(arguments,3);try{t.apply(o,D)}catch(W){this.onError(W)}}var ki=!1,Ts=null,Ms=!1,va=null,hy={onError:function(e){ki=!0,Ts=e}};function my(e,t,o,s,u,d,m,k,T){ki=!1,Ts=null,kn.apply(hy,arguments)}function vy(e,t,o,s,u,d,m,k,T){if(my.apply(this,arguments),ki){if(ki){var D=Ts;ki=!1,Ts=null}else throw Error(i(198));Ms||(Ms=!0,va=D)}}function Qr(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function yd(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 gd(e){if(Qr(e)!==e)throw Error(i(188))}function yy(e){var t=e.alternate;if(!t){if(t=Qr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var o=e,s=t;;){var u=o.return;if(u===null)break;var d=u.alternate;if(d===null){if(s=u.return,s!==null){o=s;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===o)return gd(u),e;if(d===s)return gd(u),t;d=d.sibling}throw Error(i(188))}if(o.return!==s.return)o=u,s=d;else{for(var m=!1,k=u.child;k;){if(k===o){m=!0,o=u,s=d;break}if(k===s){m=!0,s=u,o=d;break}k=k.sibling}if(!m){for(k=d.child;k;){if(k===o){m=!0,o=d,s=u;break}if(k===s){m=!0,s=d,o=u;break}k=k.sibling}if(!m)throw Error(i(189))}}if(o.alternate!==s)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:t}function wd(e){return e=yy(e),e!==null?xd(e):null}function xd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xd(e);if(t!==null)return t;e=e.sibling}return null}var Sd=r.unstable_scheduleCallback,Cd=r.unstable_cancelCallback,gy=r.unstable_shouldYield,wy=r.unstable_requestPaint,qe=r.unstable_now,xy=r.unstable_getCurrentPriorityLevel,ya=r.unstable_ImmediatePriority,Ed=r.unstable_UserBlockingPriority,Os=r.unstable_NormalPriority,Sy=r.unstable_LowPriority,kd=r.unstable_IdlePriority,_s=null,bn=null;function Cy(e){if(bn&&typeof bn.onCommitFiberRoot=="function")try{bn.onCommitFiberRoot(_s,e,void 0,(e.current.flags&128)===128)}catch{}}var tn=Math.clz32?Math.clz32:by,Ey=Math.log,ky=Math.LN2;function by(e){return e>>>=0,e===0?32:31-(Ey(e)/ky|0)|0}var Ns=64,Ls=4194304;function bi(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 Is(e,t){var o=e.pendingLanes;if(o===0)return 0;var s=0,u=e.suspendedLanes,d=e.pingedLanes,m=o&268435455;if(m!==0){var k=m&~u;k!==0?s=bi(k):(d&=m,d!==0&&(s=bi(d)))}else m=o&~u,m!==0?s=bi(m):d!==0&&(s=bi(d));if(s===0)return 0;if(t!==0&&t!==s&&(t&u)===0&&(u=s&-s,d=t&-t,u>=d||u===16&&(d&4194240)!==0))return t;if((s&4)!==0&&(s|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)o=31-tn(t),u=1<<o,s|=e[o],t&=~u;return s}function Ry(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 Py(e,t){for(var o=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes;0<d;){var m=31-tn(d),k=1<<m,T=u[m];T===-1?((k&o)===0||(k&s)!==0)&&(u[m]=Ry(k,t)):T<=t&&(e.expiredLanes|=k),d&=~k}}function ga(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bd(){var e=Ns;return Ns<<=1,(Ns&4194240)===0&&(Ns=64),e}function wa(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function Ri(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-tn(t),e[t]=o}function Ty(e,t){var o=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<o;){var u=31-tn(o),d=1<<u;t[u]=0,s[u]=-1,e[u]=-1,o&=~d}}function xa(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var s=31-tn(o),u=1<<s;u&t|e[s]&t&&(e[s]|=t),o&=~u}}var De=0;function Rd(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Pd,Sa,Td,Md,Od,Ca=!1,As=[],lr=null,ar=null,ur=null,Pi=new Map,Ti=new Map,cr=[],My="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 _d(e,t){switch(e){case"focusin":case"focusout":lr=null;break;case"dragenter":case"dragleave":ar=null;break;case"mouseover":case"mouseout":ur=null;break;case"pointerover":case"pointerout":Pi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ti.delete(t.pointerId)}}function Mi(e,t,o,s,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:o,eventSystemFlags:s,nativeEvent:d,targetContainers:[u]},t!==null&&(t=$i(t),t!==null&&Sa(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Oy(e,t,o,s,u){switch(t){case"focusin":return lr=Mi(lr,e,t,o,s,u),!0;case"dragenter":return ar=Mi(ar,e,t,o,s,u),!0;case"mouseover":return ur=Mi(ur,e,t,o,s,u),!0;case"pointerover":var d=u.pointerId;return Pi.set(d,Mi(Pi.get(d)||null,e,t,o,s,u)),!0;case"gotpointercapture":return d=u.pointerId,Ti.set(d,Mi(Ti.get(d)||null,e,t,o,s,u)),!0}return!1}function Nd(e){var t=Kr(e.target);if(t!==null){var o=Qr(t);if(o!==null){if(t=o.tag,t===13){if(t=yd(o),t!==null){e.blockedOn=t,Od(e.priority,function(){Td(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ds(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=ka(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var s=new o.constructor(o.type,o);Ei=s,o.target.dispatchEvent(s),Ei=null}else return t=$i(o),t!==null&&Sa(t),e.blockedOn=o,!1;t.shift()}return!0}function Ld(e,t,o){Ds(e)&&o.delete(t)}function _y(){Ca=!1,lr!==null&&Ds(lr)&&(lr=null),ar!==null&&Ds(ar)&&(ar=null),ur!==null&&Ds(ur)&&(ur=null),Pi.forEach(Ld),Ti.forEach(Ld)}function Oi(e,t){e.blockedOn===t&&(e.blockedOn=null,Ca||(Ca=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,_y)))}function _i(e){function t(u){return Oi(u,e)}if(0<As.length){Oi(As[0],e);for(var o=1;o<As.length;o++){var s=As[o];s.blockedOn===e&&(s.blockedOn=null)}}for(lr!==null&&Oi(lr,e),ar!==null&&Oi(ar,e),ur!==null&&Oi(ur,e),Pi.forEach(t),Ti.forEach(t),o=0;o<cr.length;o++)s=cr[o],s.blockedOn===e&&(s.blockedOn=null);for(;0<cr.length&&(o=cr[0],o.blockedOn===null);)Nd(o),o.blockedOn===null&&cr.shift()}var Po=L.ReactCurrentBatchConfig,Fs=!0;function Ny(e,t,o,s){var u=De,d=Po.transition;Po.transition=null;try{De=1,Ea(e,t,o,s)}finally{De=u,Po.transition=d}}function Ly(e,t,o,s){var u=De,d=Po.transition;Po.transition=null;try{De=4,Ea(e,t,o,s)}finally{De=u,Po.transition=d}}function Ea(e,t,o,s){if(Fs){var u=ka(e,t,o,s);if(u===null)Ua(e,t,s,zs,o),_d(e,s);else if(Oy(u,e,t,o,s))s.stopPropagation();else if(_d(e,s),t&4&&-1<My.indexOf(e)){for(;u!==null;){var d=$i(u);if(d!==null&&Pd(d),d=ka(e,t,o,s),d===null&&Ua(e,t,s,zs,o),d===u)break;u=d}u!==null&&s.stopPropagation()}else Ua(e,t,s,null,o)}}var zs=null;function ka(e,t,o,s){if(zs=null,e=bo(s),e=Kr(e),e!==null)if(t=Qr(e),t===null)e=null;else if(o=t.tag,o===13){if(e=yd(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return zs=e,null}function Id(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(xy()){case ya:return 1;case Ed:return 4;case Os:case Sy:return 16;case kd:return 536870912;default:return 16}default:return 16}}var dr=null,ba=null,js=null;function Ad(){if(js)return js;var e,t=ba,o=t.length,s,u="value"in dr?dr.value:dr.textContent,d=u.length;for(e=0;e<o&&t[e]===u[e];e++);var m=o-e;for(s=1;s<=m&&t[o-s]===u[d-s];s++);return js=u.slice(e,1<s?1-s:void 0)}function Bs(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 Us(){return!0}function Dd(){return!1}function At(e){function t(o,s,u,d,m){this._reactName=o,this._targetInst=u,this.type=s,this.nativeEvent=d,this.target=m,this.currentTarget=null;for(var k in e)e.hasOwnProperty(k)&&(o=e[k],this[k]=o?o(d):d[k]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Us:Dd,this.isPropagationStopped=Dd,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Us)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Us)},persist:function(){},isPersistent:Us}),t}var To={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ra=At(To),Ni=V({},To,{view:0,detail:0}),Iy=At(Ni),Pa,Ta,Li,Hs=V({},Ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oa,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!==Li&&(Li&&e.type==="mousemove"?(Pa=e.screenX-Li.screenX,Ta=e.screenY-Li.screenY):Ta=Pa=0,Li=e),Pa)},movementY:function(e){return"movementY"in e?e.movementY:Ta}}),Fd=At(Hs),Ay=V({},Hs,{dataTransfer:0}),Dy=At(Ay),Fy=V({},Ni,{relatedTarget:0}),Ma=At(Fy),zy=V({},To,{animationName:0,elapsedTime:0,pseudoElement:0}),jy=At(zy),By=V({},To,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uy=At(By),Hy=V({},To,{data:0}),zd=At(Hy),$y={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Vy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vy[e])?!!t[e]:!1}function Oa(){return Qy}var Ky=V({},Ni,{key:function(e){if(e.key){var t=$y[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oa,charCode:function(e){return e.type==="keypress"?Bs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yy=At(Ky),qy=V({},Hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jd=At(qy),Gy=V({},Ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oa}),Xy=At(Gy),Zy=V({},To,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jy=At(Zy),eg=V({},Hs,{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=At(eg),ng=[9,13,27,32],_a=p&&"CompositionEvent"in window,Ii=null;p&&"documentMode"in document&&(Ii=document.documentMode);var rg=p&&"TextEvent"in window&&!Ii,Bd=p&&(!_a||Ii&&8<Ii&&11>=Ii),Ud=" ",Hd=!1;function $d(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 Wd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mo=!1;function og(e,t){switch(e){case"compositionend":return Wd(t);case"keypress":return t.which!==32?null:(Hd=!0,Ud);case"textInput":return e=t.data,e===Ud&&Hd?null:e;default:return null}}function ig(e,t){if(Mo)return e==="compositionend"||!_a&&$d(e,t)?(e=Ad(),js=ba=dr=null,Mo=!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 Bd&&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 Vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sg[e.type]:t==="textarea"}function Qd(e,t,o,s){Ps(s),t=Ks(t,"onChange"),0<t.length&&(o=new Ra("onChange","change",null,o,s),e.push({event:o,listeners:t}))}var Ai=null,Di=null;function lg(e){df(e,0)}function $s(e){var t=Io(e);if(Oe(t))return e}function ag(e,t){if(e==="change")return t}var Kd=!1;if(p){var Na;if(p){var La="oninput"in document;if(!La){var Yd=document.createElement("div");Yd.setAttribute("oninput","return;"),La=typeof Yd.oninput=="function"}Na=La}else Na=!1;Kd=Na&&(!document.documentMode||9<document.documentMode)}function qd(){Ai&&(Ai.detachEvent("onpropertychange",Gd),Di=Ai=null)}function Gd(e){if(e.propertyName==="value"&&$s(Di)){var t=[];Qd(t,Di,e,bo(e)),Et(lg,t)}}function ug(e,t,o){e==="focusin"?(qd(),Ai=t,Di=o,Ai.attachEvent("onpropertychange",Gd)):e==="focusout"&&qd()}function cg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $s(Di)}function dg(e,t){if(e==="click")return $s(t)}function fg(e,t){if(e==="input"||e==="change")return $s(t)}function pg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:pg;function Fi(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var u=o[s];if(!h.call(t,u)||!nn(e[u],t[u]))return!1}return!0}function Xd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zd(e,t){var o=Xd(e);e=0;for(var s;o;){if(o.nodeType===3){if(s=e+o.textContent.length,e<=t&&s>=t)return{node:o,offset:t-e};e=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Xd(o)}}function Jd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ef(){for(var e=window,t=Ye();t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch{o=!1}if(o)e=t.contentWindow;else break;t=Ye(e.document)}return t}function Ia(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=ef(),o=e.focusedElem,s=e.selectionRange;if(t!==o&&o&&o.ownerDocument&&Jd(o.ownerDocument.documentElement,o)){if(s!==null&&Ia(o)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in o)o.selectionStart=t,o.selectionEnd=Math.min(e,o.value.length);else if(e=(t=o.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=o.textContent.length,d=Math.min(s.start,u);s=s.end===void 0?d:Math.min(s.end,u),!e.extend&&d>s&&(u=s,s=d,d=u),u=Zd(o,d);var m=Zd(o,s);u&&m&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),d>s?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=o;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<t.length;o++)e=t[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mg=p&&"documentMode"in document&&11>=document.documentMode,Oo=null,Aa=null,zi=null,Da=!1;function tf(e,t,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Da||Oo==null||Oo!==Ye(s)||(s=Oo,"selectionStart"in s&&Ia(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}),zi&&Fi(zi,s)||(zi=s,s=Ks(Aa,"onSelect"),0<s.length&&(t=new Ra("onSelect","select",null,t,o),e.push({event:t,listeners:s}),t.target=Oo)))}function Ws(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var _o={animationend:Ws("Animation","AnimationEnd"),animationiteration:Ws("Animation","AnimationIteration"),animationstart:Ws("Animation","AnimationStart"),transitionend:Ws("Transition","TransitionEnd")},Fa={},nf={};p&&(nf=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function Vs(e){if(Fa[e])return Fa[e];if(!_o[e])return e;var t=_o[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in nf)return Fa[e]=t[o];return e}var rf=Vs("animationend"),of=Vs("animationiteration"),sf=Vs("animationstart"),lf=Vs("transitionend"),af=new Map,uf="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 fr(e,t){af.set(e,t),c(t,[e])}for(var za=0;za<uf.length;za++){var ja=uf[za],vg=ja.toLowerCase(),yg=ja[0].toUpperCase()+ja.slice(1);fr(vg,"on"+yg)}fr(rf,"onAnimationEnd"),fr(of,"onAnimationIteration"),fr(sf,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(lf,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ji="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gg=new Set("cancel close invalid load scroll toggle".split(" ").concat(ji));function cf(e,t,o){var s=e.type||"unknown-event";e.currentTarget=o,vy(s,t,void 0,e),e.currentTarget=null}function df(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var s=e[o],u=s.event;s=s.listeners;e:{var d=void 0;if(t)for(var m=s.length-1;0<=m;m--){var k=s[m],T=k.instance,D=k.currentTarget;if(k=k.listener,T!==d&&u.isPropagationStopped())break e;cf(u,k,D),d=T}else for(m=0;m<s.length;m++){if(k=s[m],T=k.instance,D=k.currentTarget,k=k.listener,T!==d&&u.isPropagationStopped())break e;cf(u,k,D),d=T}}}if(Ms)throw e=va,Ms=!1,va=null,e}function je(e,t){var o=t[Ka];o===void 0&&(o=t[Ka]=new Set);var s=e+"__bubble";o.has(s)||(ff(t,e,2,!1),o.add(s))}function Ba(e,t,o){var s=0;t&&(s|=4),ff(o,e,s,t)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function Bi(e){if(!e[Qs]){e[Qs]=!0,l.forEach(function(o){o!=="selectionchange"&&(gg.has(o)||Ba(o,!1,e),Ba(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qs]||(t[Qs]=!0,Ba("selectionchange",!1,t))}}function ff(e,t,o,s){switch(Id(t)){case 1:var u=Ny;break;case 4:u=Ly;break;default:u=Ea}o=u.bind(null,t,o,e),u=void 0,!en||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(t,o,{capture:!0,passive:u}):e.addEventListener(t,o,!0):u!==void 0?e.addEventListener(t,o,{passive:u}):e.addEventListener(t,o,!1)}function Ua(e,t,o,s,u){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var k=s.stateNode.containerInfo;if(k===u||k.nodeType===8&&k.parentNode===u)break;if(m===4)for(m=s.return;m!==null;){var T=m.tag;if((T===3||T===4)&&(T=m.stateNode.containerInfo,T===u||T.nodeType===8&&T.parentNode===u))return;m=m.return}for(;k!==null;){if(m=Kr(k),m===null)return;if(T=m.tag,T===5||T===6){s=d=m;continue e}k=k.parentNode}}s=s.return}Et(function(){var D=d,W=bo(o),Q=[];e:{var $=af.get(e);if($!==void 0){var oe=Ra,le=e;switch(e){case"keypress":if(Bs(o)===0)break e;case"keydown":case"keyup":oe=Yy;break;case"focusin":le="focus",oe=Ma;break;case"focusout":le="blur",oe=Ma;break;case"beforeblur":case"afterblur":oe=Ma;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=Fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=Dy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=Xy;break;case rf:case of:case sf:oe=jy;break;case lf:oe=Jy;break;case"scroll":oe=Iy;break;case"wheel":oe=tg;break;case"copy":case"cut":case"paste":oe=Uy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=jd}var ue=(t&4)!==0,Ge=!ue&&e==="scroll",I=ue?$!==null?$+"Capture":null:$;ue=[];for(var N=D,A;N!==null;){A=N;var q=A.stateNode;if(A.tag===5&&q!==null&&(A=q,I!==null&&(q=kt(N,I),q!=null&&ue.push(Ui(N,q,A)))),Ge)break;N=N.return}0<ue.length&&($=new oe($,le,null,o,W),Q.push({event:$,listeners:ue}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",oe=e==="mouseout"||e==="pointerout",$&&o!==Ei&&(le=o.relatedTarget||o.fromElement)&&(Kr(le)||le[jn]))break e;if((oe||$)&&($=W.window===W?W:($=W.ownerDocument)?$.defaultView||$.parentWindow:window,oe?(le=o.relatedTarget||o.toElement,oe=D,le=le?Kr(le):null,le!==null&&(Ge=Qr(le),le!==Ge||le.tag!==5&&le.tag!==6)&&(le=null)):(oe=null,le=D),oe!==le)){if(ue=Fd,q="onMouseLeave",I="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ue=jd,q="onPointerLeave",I="onPointerEnter",N="pointer"),Ge=oe==null?$:Io(oe),A=le==null?$:Io(le),$=new ue(q,N+"leave",oe,o,W),$.target=Ge,$.relatedTarget=A,q=null,Kr(W)===D&&(ue=new ue(I,N+"enter",le,o,W),ue.target=A,ue.relatedTarget=Ge,q=ue),Ge=q,oe&&le)t:{for(ue=oe,I=le,N=0,A=ue;A;A=No(A))N++;for(A=0,q=I;q;q=No(q))A++;for(;0<N-A;)ue=No(ue),N--;for(;0<A-N;)I=No(I),A--;for(;N--;){if(ue===I||I!==null&&ue===I.alternate)break t;ue=No(ue),I=No(I)}ue=null}else ue=null;oe!==null&&pf(Q,$,oe,ue,!1),le!==null&&Ge!==null&&pf(Q,Ge,le,ue,!0)}}e:{if($=D?Io(D):window,oe=$.nodeName&&$.nodeName.toLowerCase(),oe==="select"||oe==="input"&&$.type==="file")var de=ag;else if(Vd($))if(Kd)de=fg;else{de=cg;var ge=ug}else(oe=$.nodeName)&&oe.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(de=dg);if(de&&(de=de(e,D))){Qd(Q,de,o,W);break e}ge&&ge(e,$,D),e==="focusout"&&(ge=$._wrapperState)&&ge.controlled&&$.type==="number"&&gn($,"number",$.value)}switch(ge=D?Io(D):window,e){case"focusin":(Vd(ge)||ge.contentEditable==="true")&&(Oo=ge,Aa=D,zi=null);break;case"focusout":zi=Aa=Oo=null;break;case"mousedown":Da=!0;break;case"contextmenu":case"mouseup":case"dragend":Da=!1,tf(Q,o,W);break;case"selectionchange":if(mg)break;case"keydown":case"keyup":tf(Q,o,W)}var we;if(_a)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else Mo?$d(e,o)&&(Ee="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Ee="onCompositionStart");Ee&&(Bd&&o.locale!=="ko"&&(Mo||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&Mo&&(we=Ad()):(dr=W,ba="value"in dr?dr.value:dr.textContent,Mo=!0)),ge=Ks(D,Ee),0<ge.length&&(Ee=new zd(Ee,e,null,o,W),Q.push({event:Ee,listeners:ge}),we?Ee.data=we:(we=Wd(o),we!==null&&(Ee.data=we)))),(we=rg?og(e,o):ig(e,o))&&(D=Ks(D,"onBeforeInput"),0<D.length&&(W=new zd("onBeforeInput","beforeinput",null,o,W),Q.push({event:W,listeners:D}),W.data=we))}df(Q,t)})}function Ui(e,t,o){return{instance:e,listener:t,currentTarget:o}}function Ks(e,t){for(var o=t+"Capture",s=[];e!==null;){var u=e,d=u.stateNode;u.tag===5&&d!==null&&(u=d,d=kt(e,o),d!=null&&s.unshift(Ui(e,d,u)),d=kt(e,t),d!=null&&s.push(Ui(e,d,u))),e=e.return}return s}function No(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pf(e,t,o,s,u){for(var d=t._reactName,m=[];o!==null&&o!==s;){var k=o,T=k.alternate,D=k.stateNode;if(T!==null&&T===s)break;k.tag===5&&D!==null&&(k=D,u?(T=kt(o,d),T!=null&&m.unshift(Ui(o,T,k))):u||(T=kt(o,d),T!=null&&m.push(Ui(o,T,k)))),o=o.return}m.length!==0&&e.push({event:t,listeners:m})}var wg=/\r\n?/g,xg=/\u0000|\uFFFD/g;function hf(e){return(typeof e=="string"?e:""+e).replace(wg,`
38
- `).replace(xg,"")}function Ys(e,t,o){if(t=hf(t),hf(e)!==t&&o)throw Error(i(425))}function qs(){}var Ha=null,$a=null;function Wa(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 Va=typeof setTimeout=="function"?setTimeout:void 0,Sg=typeof clearTimeout=="function"?clearTimeout:void 0,mf=typeof Promise=="function"?Promise:void 0,Cg=typeof queueMicrotask=="function"?queueMicrotask:typeof mf<"u"?function(e){return mf.resolve(null).then(e).catch(Eg)}:Va;function Eg(e){setTimeout(function(){throw e})}function Qa(e,t){var o=t,s=0;do{var u=o.nextSibling;if(e.removeChild(o),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(s===0){e.removeChild(u),_i(t);return}s--}else o!=="$"&&o!=="$?"&&o!=="$!"||s++;o=u}while(o);_i(t)}function pr(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 vf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(t===0)return e;t--}else o==="/$"&&t++}e=e.previousSibling}return null}var Lo=Math.random().toString(36).slice(2),Rn="__reactFiber$"+Lo,Hi="__reactProps$"+Lo,jn="__reactContainer$"+Lo,Ka="__reactEvents$"+Lo,kg="__reactListeners$"+Lo,bg="__reactHandles$"+Lo;function Kr(e){var t=e[Rn];if(t)return t;for(var o=e.parentNode;o;){if(t=o[jn]||o[Rn]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=vf(e);e!==null;){if(o=e[Rn])return o;e=vf(e)}return t}e=o,o=e.parentNode}return null}function $i(e){return e=e[Rn]||e[jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Io(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Gs(e){return e[Hi]||null}var Ya=[],Ao=-1;function hr(e){return{current:e}}function Be(e){0>Ao||(e.current=Ya[Ao],Ya[Ao]=null,Ao--)}function ze(e,t){Ao++,Ya[Ao]=e.current,e.current=t}var mr={},ft=hr(mr),bt=hr(!1),Yr=mr;function Do(e,t){var o=e.type.contextTypes;if(!o)return mr;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var u={},d;for(d in o)u[d]=t[d];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function Rt(e){return e=e.childContextTypes,e!=null}function Xs(){Be(bt),Be(ft)}function yf(e,t,o){if(ft.current!==mr)throw Error(i(168));ze(ft,t),ze(bt,o)}function gf(e,t,o){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return o;s=s.getChildContext();for(var u in s)if(!(u in t))throw Error(i(108,K(e)||"Unknown",u));return V({},o,s)}function Zs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mr,Yr=ft.current,ze(ft,e),ze(bt,bt.current),!0}function wf(e,t,o){var s=e.stateNode;if(!s)throw Error(i(169));o?(e=gf(e,t,Yr),s.__reactInternalMemoizedMergedChildContext=e,Be(bt),Be(ft),ze(ft,e)):Be(bt),ze(bt,o)}var Bn=null,Js=!1,qa=!1;function xf(e){Bn===null?Bn=[e]:Bn.push(e)}function Rg(e){Js=!0,xf(e)}function vr(){if(!qa&&Bn!==null){qa=!0;var e=0,t=De;try{var o=Bn;for(De=1;e<o.length;e++){var s=o[e];do s=s(!0);while(s!==null)}Bn=null,Js=!1}catch(u){throw Bn!==null&&(Bn=Bn.slice(e+1)),Sd(ya,vr),u}finally{De=t,qa=!1}}return null}var Fo=[],zo=0,el=null,tl=0,$t=[],Wt=0,qr=null,Un=1,Hn="";function Gr(e,t){Fo[zo++]=tl,Fo[zo++]=el,el=e,tl=t}function Sf(e,t,o){$t[Wt++]=Un,$t[Wt++]=Hn,$t[Wt++]=qr,qr=e;var s=Un;e=Hn;var u=32-tn(s)-1;s&=~(1<<u),o+=1;var d=32-tn(t)+u;if(30<d){var m=u-u%5;d=(s&(1<<m)-1).toString(32),s>>=m,u-=m,Un=1<<32-tn(t)+u|o<<u|s,Hn=d+e}else Un=1<<d|o<<u|s,Hn=e}function Ga(e){e.return!==null&&(Gr(e,1),Sf(e,1,0))}function Xa(e){for(;e===el;)el=Fo[--zo],Fo[zo]=null,tl=Fo[--zo],Fo[zo]=null;for(;e===qr;)qr=$t[--Wt],$t[Wt]=null,Hn=$t[--Wt],$t[Wt]=null,Un=$t[--Wt],$t[Wt]=null}var Dt=null,Ft=null,He=!1,rn=null;function Cf(e,t){var o=Yt(5,null,null,0);o.elementType="DELETED",o.stateNode=t,o.return=e,t=e.deletions,t===null?(e.deletions=[o],e.flags|=16):t.push(o)}function Ef(e,t){switch(e.tag){case 5:var o=e.type;return t=t.nodeType!==1||o.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Dt=e,Ft=pr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(o=qr!==null?{id:Un,overflow:Hn}:null,e.memoizedState={dehydrated:t,treeContext:o,retryLane:1073741824},o=Yt(18,null,null,0),o.stateNode=t,o.return=e,e.child=o,Dt=e,Ft=null,!0):!1;default:return!1}}function Za(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ja(e){if(He){var t=Ft;if(t){var o=t;if(!Ef(e,t)){if(Za(e))throw Error(i(418));t=pr(o.nextSibling);var s=Dt;t&&Ef(e,t)?Cf(s,o):(e.flags=e.flags&-4097|2,He=!1,Dt=e)}}else{if(Za(e))throw Error(i(418));e.flags=e.flags&-4097|2,He=!1,Dt=e}}}function kf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dt=e}function nl(e){if(e!==Dt)return!1;if(!He)return kf(e),He=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wa(e.type,e.memoizedProps)),t&&(t=Ft)){if(Za(e))throw bf(),Error(i(418));for(;t;)Cf(e,t),t=pr(t.nextSibling)}if(kf(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 o=e.data;if(o==="/$"){if(t===0){Ft=pr(e.nextSibling);break e}t--}else o!=="$"&&o!=="$!"&&o!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=Dt?pr(e.stateNode.nextSibling):null;return!0}function bf(){for(var e=Ft;e;)e=pr(e.nextSibling)}function jo(){Ft=Dt=null,He=!1}function eu(e){rn===null?rn=[e]:rn.push(e)}var Pg=L.ReactCurrentBatchConfig;function Wi(e,t,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var s=o.stateNode}if(!s)throw Error(i(147,e));var u=s,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(m){var k=u.refs;m===null?delete k[d]:k[d]=m},t._stringRef=d,t)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function rl(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Rf(e){var t=e._init;return t(e._payload)}function Pf(e){function t(I,N){if(e){var A=I.deletions;A===null?(I.deletions=[N],I.flags|=16):A.push(N)}}function o(I,N){if(!e)return null;for(;N!==null;)t(I,N),N=N.sibling;return null}function s(I,N){for(I=new Map;N!==null;)N.key!==null?I.set(N.key,N):I.set(N.index,N),N=N.sibling;return I}function u(I,N){return I=kr(I,N),I.index=0,I.sibling=null,I}function d(I,N,A){return I.index=A,e?(A=I.alternate,A!==null?(A=A.index,A<N?(I.flags|=2,N):A):(I.flags|=2,N)):(I.flags|=1048576,N)}function m(I){return e&&I.alternate===null&&(I.flags|=2),I}function k(I,N,A,q){return N===null||N.tag!==6?(N=Vu(A,I.mode,q),N.return=I,N):(N=u(N,A),N.return=I,N)}function T(I,N,A,q){var de=A.type;return de===H?W(I,N,A.props.children,q,A.key):N!==null&&(N.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ae&&Rf(de)===N.type)?(q=u(N,A.props),q.ref=Wi(I,N,A),q.return=I,q):(q=Pl(A.type,A.key,A.props,null,I.mode,q),q.ref=Wi(I,N,A),q.return=I,q)}function D(I,N,A,q){return N===null||N.tag!==4||N.stateNode.containerInfo!==A.containerInfo||N.stateNode.implementation!==A.implementation?(N=Qu(A,I.mode,q),N.return=I,N):(N=u(N,A.children||[]),N.return=I,N)}function W(I,N,A,q,de){return N===null||N.tag!==7?(N=oo(A,I.mode,q,de),N.return=I,N):(N=u(N,A),N.return=I,N)}function Q(I,N,A){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Vu(""+N,I.mode,A),N.return=I,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case z:return A=Pl(N.type,N.key,N.props,null,I.mode,A),A.ref=Wi(I,null,N),A.return=I,A;case U:return N=Qu(N,I.mode,A),N.return=I,N;case ae:var q=N._init;return Q(I,q(N._payload),A)}if(ir(N)||B(N))return N=oo(N,I.mode,A,null),N.return=I,N;rl(I,N)}return null}function $(I,N,A,q){var de=N!==null?N.key:null;if(typeof A=="string"&&A!==""||typeof A=="number")return de!==null?null:k(I,N,""+A,q);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case z:return A.key===de?T(I,N,A,q):null;case U:return A.key===de?D(I,N,A,q):null;case ae:return de=A._init,$(I,N,de(A._payload),q)}if(ir(A)||B(A))return de!==null?null:W(I,N,A,q,null);rl(I,A)}return null}function oe(I,N,A,q,de){if(typeof q=="string"&&q!==""||typeof q=="number")return I=I.get(A)||null,k(N,I,""+q,de);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case z:return I=I.get(q.key===null?A:q.key)||null,T(N,I,q,de);case U:return I=I.get(q.key===null?A:q.key)||null,D(N,I,q,de);case ae:var ge=q._init;return oe(I,N,A,ge(q._payload),de)}if(ir(q)||B(q))return I=I.get(A)||null,W(N,I,q,de,null);rl(N,q)}return null}function le(I,N,A,q){for(var de=null,ge=null,we=N,Ee=N=0,it=null;we!==null&&Ee<A.length;Ee++){we.index>Ee?(it=we,we=null):it=we.sibling;var Le=$(I,we,A[Ee],q);if(Le===null){we===null&&(we=it);break}e&&we&&Le.alternate===null&&t(I,we),N=d(Le,N,Ee),ge===null?de=Le:ge.sibling=Le,ge=Le,we=it}if(Ee===A.length)return o(I,we),He&&Gr(I,Ee),de;if(we===null){for(;Ee<A.length;Ee++)we=Q(I,A[Ee],q),we!==null&&(N=d(we,N,Ee),ge===null?de=we:ge.sibling=we,ge=we);return He&&Gr(I,Ee),de}for(we=s(I,we);Ee<A.length;Ee++)it=oe(we,I,Ee,A[Ee],q),it!==null&&(e&&it.alternate!==null&&we.delete(it.key===null?Ee:it.key),N=d(it,N,Ee),ge===null?de=it:ge.sibling=it,ge=it);return e&&we.forEach(function(br){return t(I,br)}),He&&Gr(I,Ee),de}function ue(I,N,A,q){var de=B(A);if(typeof de!="function")throw Error(i(150));if(A=de.call(A),A==null)throw Error(i(151));for(var ge=de=null,we=N,Ee=N=0,it=null,Le=A.next();we!==null&&!Le.done;Ee++,Le=A.next()){we.index>Ee?(it=we,we=null):it=we.sibling;var br=$(I,we,Le.value,q);if(br===null){we===null&&(we=it);break}e&&we&&br.alternate===null&&t(I,we),N=d(br,N,Ee),ge===null?de=br:ge.sibling=br,ge=br,we=it}if(Le.done)return o(I,we),He&&Gr(I,Ee),de;if(we===null){for(;!Le.done;Ee++,Le=A.next())Le=Q(I,Le.value,q),Le!==null&&(N=d(Le,N,Ee),ge===null?de=Le:ge.sibling=Le,ge=Le);return He&&Gr(I,Ee),de}for(we=s(I,we);!Le.done;Ee++,Le=A.next())Le=oe(we,I,Ee,Le.value,q),Le!==null&&(e&&Le.alternate!==null&&we.delete(Le.key===null?Ee:Le.key),N=d(Le,N,Ee),ge===null?de=Le:ge.sibling=Le,ge=Le);return e&&we.forEach(function(s0){return t(I,s0)}),He&&Gr(I,Ee),de}function Ge(I,N,A,q){if(typeof A=="object"&&A!==null&&A.type===H&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case z:e:{for(var de=A.key,ge=N;ge!==null;){if(ge.key===de){if(de=A.type,de===H){if(ge.tag===7){o(I,ge.sibling),N=u(ge,A.props.children),N.return=I,I=N;break e}}else if(ge.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ae&&Rf(de)===ge.type){o(I,ge.sibling),N=u(ge,A.props),N.ref=Wi(I,ge,A),N.return=I,I=N;break e}o(I,ge);break}else t(I,ge);ge=ge.sibling}A.type===H?(N=oo(A.props.children,I.mode,q,A.key),N.return=I,I=N):(q=Pl(A.type,A.key,A.props,null,I.mode,q),q.ref=Wi(I,N,A),q.return=I,I=q)}return m(I);case U:e:{for(ge=A.key;N!==null;){if(N.key===ge)if(N.tag===4&&N.stateNode.containerInfo===A.containerInfo&&N.stateNode.implementation===A.implementation){o(I,N.sibling),N=u(N,A.children||[]),N.return=I,I=N;break e}else{o(I,N);break}else t(I,N);N=N.sibling}N=Qu(A,I.mode,q),N.return=I,I=N}return m(I);case ae:return ge=A._init,Ge(I,N,ge(A._payload),q)}if(ir(A))return le(I,N,A,q);if(B(A))return ue(I,N,A,q);rl(I,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,N!==null&&N.tag===6?(o(I,N.sibling),N=u(N,A),N.return=I,I=N):(o(I,N),N=Vu(A,I.mode,q),N.return=I,I=N),m(I)):o(I,N)}return Ge}var Bo=Pf(!0),Tf=Pf(!1),ol=hr(null),il=null,Uo=null,tu=null;function nu(){tu=Uo=il=null}function ru(e){var t=ol.current;Be(ol),e._currentValue=t}function ou(e,t,o){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===o)break;e=e.return}}function Ho(e,t){il=e,tu=Uo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Pt=!0),e.firstContext=null)}function Vt(e){var t=e._currentValue;if(tu!==e)if(e={context:e,memoizedValue:t,next:null},Uo===null){if(il===null)throw Error(i(308));Uo=e,il.dependencies={lanes:0,firstContext:e}}else Uo=Uo.next=e;return t}var Xr=null;function iu(e){Xr===null?Xr=[e]:Xr.push(e)}function Mf(e,t,o,s){var u=t.interleaved;return u===null?(o.next=o,iu(t)):(o.next=u.next,u.next=o),t.interleaved=o,$n(e,s)}function $n(e,t){e.lanes|=t;var o=e.alternate;for(o!==null&&(o.lanes|=t),o=e,e=e.return;e!==null;)e.childLanes|=t,o=e.alternate,o!==null&&(o.childLanes|=t),o=e,e=e.return;return o.tag===3?o.stateNode:null}var yr=!1;function su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Of(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 Wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gr(e,t,o){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ne&2)!==0){var u=s.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),s.pending=t,$n(e,o)}return u=s.interleaved,u===null?(t.next=t,iu(s)):(t.next=u.next,u.next=t),s.interleaved=t,$n(e,o)}function sl(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,o|=s,t.lanes=o,xa(e,o)}}function _f(e,t){var o=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var u=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var m={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};d===null?u=d=m:d=d.next=m,o=o.next}while(o!==null);d===null?u=d=t:d=d.next=t}else u=d=t;o={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:s.shared,effects:s.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function ll(e,t,o,s){var u=e.updateQueue;yr=!1;var d=u.firstBaseUpdate,m=u.lastBaseUpdate,k=u.shared.pending;if(k!==null){u.shared.pending=null;var T=k,D=T.next;T.next=null,m===null?d=D:m.next=D,m=T;var W=e.alternate;W!==null&&(W=W.updateQueue,k=W.lastBaseUpdate,k!==m&&(k===null?W.firstBaseUpdate=D:k.next=D,W.lastBaseUpdate=T))}if(d!==null){var Q=u.baseState;m=0,W=D=T=null,k=d;do{var $=k.lane,oe=k.eventTime;if((s&$)===$){W!==null&&(W=W.next={eventTime:oe,lane:0,tag:k.tag,payload:k.payload,callback:k.callback,next:null});e:{var le=e,ue=k;switch($=t,oe=o,ue.tag){case 1:if(le=ue.payload,typeof le=="function"){Q=le.call(oe,Q,$);break e}Q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ue.payload,$=typeof le=="function"?le.call(oe,Q,$):le,$==null)break e;Q=V({},Q,$);break e;case 2:yr=!0}}k.callback!==null&&k.lane!==0&&(e.flags|=64,$=u.effects,$===null?u.effects=[k]:$.push(k))}else oe={eventTime:oe,lane:$,tag:k.tag,payload:k.payload,callback:k.callback,next:null},W===null?(D=W=oe,T=Q):W=W.next=oe,m|=$;if(k=k.next,k===null){if(k=u.shared.pending,k===null)break;$=k,k=$.next,$.next=null,u.lastBaseUpdate=$,u.shared.pending=null}}while(!0);if(W===null&&(T=Q),u.baseState=T,u.firstBaseUpdate=D,u.lastBaseUpdate=W,t=u.shared.interleaved,t!==null){u=t;do m|=u.lane,u=u.next;while(u!==t)}else d===null&&(u.shared.lanes=0);eo|=m,e.lanes=m,e.memoizedState=Q}}function Nf(e,t,o){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],u=s.callback;if(u!==null){if(s.callback=null,s=o,typeof u!="function")throw Error(i(191,u));u.call(s)}}}var Vi={},Pn=hr(Vi),Qi=hr(Vi),Ki=hr(Vi);function Zr(e){if(e===Vi)throw Error(i(174));return e}function lu(e,t){switch(ze(Ki,t),ze(Qi,e),ze(Pn,Vi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xn(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xn(t,e)}Be(Pn),ze(Pn,t)}function $o(){Be(Pn),Be(Qi),Be(Ki)}function Lf(e){Zr(Ki.current);var t=Zr(Pn.current),o=xn(t,e.type);t!==o&&(ze(Qi,e),ze(Pn,o))}function au(e){Qi.current===e&&(Be(Pn),Be(Qi))}var We=hr(0);function al(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.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 uu=[];function cu(){for(var e=0;e<uu.length;e++)uu[e]._workInProgressVersionPrimary=null;uu.length=0}var ul=L.ReactCurrentDispatcher,du=L.ReactCurrentBatchConfig,Jr=0,Ve=null,et=null,rt=null,cl=!1,Yi=!1,qi=0,Tg=0;function pt(){throw Error(i(321))}function fu(e,t){if(t===null)return!1;for(var o=0;o<t.length&&o<e.length;o++)if(!nn(e[o],t[o]))return!1;return!0}function pu(e,t,o,s,u,d){if(Jr=d,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ul.current=e===null||e.memoizedState===null?Ng:Lg,e=o(s,u),Yi){d=0;do{if(Yi=!1,qi=0,25<=d)throw Error(i(301));d+=1,rt=et=null,t.updateQueue=null,ul.current=Ig,e=o(s,u)}while(Yi)}if(ul.current=pl,t=et!==null&&et.next!==null,Jr=0,rt=et=Ve=null,cl=!1,t)throw Error(i(300));return e}function hu(){var e=qi!==0;return qi=0,e}function Tn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?Ve.memoizedState=rt=e:rt=rt.next=e,rt}function Qt(){if(et===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=rt===null?Ve.memoizedState:rt.next;if(t!==null)rt=t,et=e;else{if(e===null)throw Error(i(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},rt===null?Ve.memoizedState=rt=e:rt=rt.next=e}return rt}function Gi(e,t){return typeof t=="function"?t(e):t}function mu(e){var t=Qt(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=et,u=s.baseQueue,d=o.pending;if(d!==null){if(u!==null){var m=u.next;u.next=d.next,d.next=m}s.baseQueue=u=d,o.pending=null}if(u!==null){d=u.next,s=s.baseState;var k=m=null,T=null,D=d;do{var W=D.lane;if((Jr&W)===W)T!==null&&(T=T.next={lane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),s=D.hasEagerState?D.eagerState:e(s,D.action);else{var Q={lane:W,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null};T===null?(k=T=Q,m=s):T=T.next=Q,Ve.lanes|=W,eo|=W}D=D.next}while(D!==null&&D!==d);T===null?m=s:T.next=k,nn(s,t.memoizedState)||(Pt=!0),t.memoizedState=s,t.baseState=m,t.baseQueue=T,o.lastRenderedState=s}if(e=o.interleaved,e!==null){u=e;do d=u.lane,Ve.lanes|=d,eo|=d,u=u.next;while(u!==e)}else u===null&&(o.lanes=0);return[t.memoizedState,o.dispatch]}function vu(e){var t=Qt(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=o.dispatch,u=o.pending,d=t.memoizedState;if(u!==null){o.pending=null;var m=u=u.next;do d=e(d,m.action),m=m.next;while(m!==u);nn(d,t.memoizedState)||(Pt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),o.lastRenderedState=d}return[d,s]}function If(){}function Af(e,t){var o=Ve,s=Qt(),u=t(),d=!nn(s.memoizedState,u);if(d&&(s.memoizedState=u,Pt=!0),s=s.queue,yu(zf.bind(null,o,s,e),[e]),s.getSnapshot!==t||d||rt!==null&&rt.memoizedState.tag&1){if(o.flags|=2048,Xi(9,Ff.bind(null,o,s,u,t),void 0,null),ot===null)throw Error(i(349));(Jr&30)!==0||Df(o,t,u)}return u}function Df(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function Ff(e,t,o,s){t.value=o,t.getSnapshot=s,jf(t)&&Bf(e)}function zf(e,t,o){return o(function(){jf(t)&&Bf(e)})}function jf(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!nn(e,o)}catch{return!0}}function Bf(e){var t=$n(e,1);t!==null&&an(t,e,1,-1)}function Uf(e){var t=Tn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gi,lastRenderedState:e},t.queue=e,e=e.dispatch=_g.bind(null,Ve,e),[t.memoizedState,e]}function Xi(e,t,o,s){return e={tag:e,create:t,destroy:o,deps:s,next:null},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.lastEffect=e.next=e):(o=t.lastEffect,o===null?t.lastEffect=e.next=e:(s=o.next,o.next=e,e.next=s,t.lastEffect=e)),e}function Hf(){return Qt().memoizedState}function dl(e,t,o,s){var u=Tn();Ve.flags|=e,u.memoizedState=Xi(1|t,o,void 0,s===void 0?null:s)}function fl(e,t,o,s){var u=Qt();s=s===void 0?null:s;var d=void 0;if(et!==null){var m=et.memoizedState;if(d=m.destroy,s!==null&&fu(s,m.deps)){u.memoizedState=Xi(t,o,d,s);return}}Ve.flags|=e,u.memoizedState=Xi(1|t,o,d,s)}function $f(e,t){return dl(8390656,8,e,t)}function yu(e,t){return fl(2048,8,e,t)}function Wf(e,t){return fl(4,2,e,t)}function Vf(e,t){return fl(4,4,e,t)}function Qf(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 Kf(e,t,o){return o=o!=null?o.concat([e]):null,fl(4,4,Qf.bind(null,t,e),o)}function gu(){}function Yf(e,t){var o=Qt();t=t===void 0?null:t;var s=o.memoizedState;return s!==null&&t!==null&&fu(t,s[1])?s[0]:(o.memoizedState=[e,t],e)}function qf(e,t){var o=Qt();t=t===void 0?null:t;var s=o.memoizedState;return s!==null&&t!==null&&fu(t,s[1])?s[0]:(e=e(),o.memoizedState=[e,t],e)}function Gf(e,t,o){return(Jr&21)===0?(e.baseState&&(e.baseState=!1,Pt=!0),e.memoizedState=o):(nn(o,t)||(o=bd(),Ve.lanes|=o,eo|=o,e.baseState=!0),t)}function Mg(e,t){var o=De;De=o!==0&&4>o?o:4,e(!0);var s=du.transition;du.transition={};try{e(!1),t()}finally{De=o,du.transition=s}}function Xf(){return Qt().memoizedState}function Og(e,t,o){var s=Cr(e);if(o={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null},Zf(e))Jf(t,o);else if(o=Mf(e,t,o,s),o!==null){var u=xt();an(o,e,s,u),ep(o,t,s)}}function _g(e,t,o){var s=Cr(e),u={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(Zf(e))Jf(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var m=t.lastRenderedState,k=d(m,o);if(u.hasEagerState=!0,u.eagerState=k,nn(k,m)){var T=t.interleaved;T===null?(u.next=u,iu(t)):(u.next=T.next,T.next=u),t.interleaved=u;return}}catch{}finally{}o=Mf(e,t,u,s),o!==null&&(u=xt(),an(o,e,s,u),ep(o,t,s))}}function Zf(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Jf(e,t){Yi=cl=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function ep(e,t,o){if((o&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,o|=s,t.lanes=o,xa(e,o)}}var pl={readContext:Vt,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},Ng={readContext:Vt,useCallback:function(e,t){return Tn().memoizedState=[e,t===void 0?null:t],e},useContext:Vt,useEffect:$f,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,dl(4194308,4,Qf.bind(null,t,e),o)},useLayoutEffect:function(e,t){return dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return dl(4,2,e,t)},useMemo:function(e,t){var o=Tn();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var s=Tn();return t=o!==void 0?o(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=Og.bind(null,Ve,e),[s.memoizedState,e]},useRef:function(e){var t=Tn();return e={current:e},t.memoizedState=e},useState:Uf,useDebugValue:gu,useDeferredValue:function(e){return Tn().memoizedState=e},useTransition:function(){var e=Uf(!1),t=e[0];return e=Mg.bind(null,e[1]),Tn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var s=Ve,u=Tn();if(He){if(o===void 0)throw Error(i(407));o=o()}else{if(o=t(),ot===null)throw Error(i(349));(Jr&30)!==0||Df(s,t,o)}u.memoizedState=o;var d={value:o,getSnapshot:t};return u.queue=d,$f(zf.bind(null,s,d,e),[e]),s.flags|=2048,Xi(9,Ff.bind(null,s,d,o,t),void 0,null),o},useId:function(){var e=Tn(),t=ot.identifierPrefix;if(He){var o=Hn,s=Un;o=(s&~(1<<32-tn(s)-1)).toString(32)+o,t=":"+t+"R"+o,o=qi++,0<o&&(t+="H"+o.toString(32)),t+=":"}else o=Tg++,t=":"+t+"r"+o.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Lg={readContext:Vt,useCallback:Yf,useContext:Vt,useEffect:yu,useImperativeHandle:Kf,useInsertionEffect:Wf,useLayoutEffect:Vf,useMemo:qf,useReducer:mu,useRef:Hf,useState:function(){return mu(Gi)},useDebugValue:gu,useDeferredValue:function(e){var t=Qt();return Gf(t,et.memoizedState,e)},useTransition:function(){var e=mu(Gi)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:If,useSyncExternalStore:Af,useId:Xf,unstable_isNewReconciler:!1},Ig={readContext:Vt,useCallback:Yf,useContext:Vt,useEffect:yu,useImperativeHandle:Kf,useInsertionEffect:Wf,useLayoutEffect:Vf,useMemo:qf,useReducer:vu,useRef:Hf,useState:function(){return vu(Gi)},useDebugValue:gu,useDeferredValue:function(e){var t=Qt();return et===null?t.memoizedState=e:Gf(t,et.memoizedState,e)},useTransition:function(){var e=vu(Gi)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:If,useSyncExternalStore:Af,useId:Xf,unstable_isNewReconciler:!1};function on(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var o in e)t[o]===void 0&&(t[o]=e[o]);return t}return t}function wu(e,t,o,s){t=e.memoizedState,o=o(s,t),o=o==null?t:V({},t,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var hl={isMounted:function(e){return(e=e._reactInternals)?Qr(e)===e:!1},enqueueSetState:function(e,t,o){e=e._reactInternals;var s=xt(),u=Cr(e),d=Wn(s,u);d.payload=t,o!=null&&(d.callback=o),t=gr(e,d,u),t!==null&&(an(t,e,u,s),sl(t,e,u))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var s=xt(),u=Cr(e),d=Wn(s,u);d.tag=1,d.payload=t,o!=null&&(d.callback=o),t=gr(e,d,u),t!==null&&(an(t,e,u,s),sl(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=xt(),s=Cr(e),u=Wn(o,s);u.tag=2,t!=null&&(u.callback=t),t=gr(e,u,s),t!==null&&(an(t,e,s,o),sl(t,e,s))}};function tp(e,t,o,s,u,d,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,m):t.prototype&&t.prototype.isPureReactComponent?!Fi(o,s)||!Fi(u,d):!0}function np(e,t,o){var s=!1,u=mr,d=t.contextType;return typeof d=="object"&&d!==null?d=Vt(d):(u=Rt(t)?Yr:ft.current,s=t.contextTypes,d=(s=s!=null)?Do(e,u):mr),t=new t(o,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=hl,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=d),t}function rp(e,t,o,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(o,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(o,s),t.state!==e&&hl.enqueueReplaceState(t,t.state,null)}function xu(e,t,o,s){var u=e.stateNode;u.props=o,u.state=e.memoizedState,u.refs={},su(e);var d=t.contextType;typeof d=="object"&&d!==null?u.context=Vt(d):(d=Rt(t)?Yr:ft.current,u.context=Do(e,d)),u.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(wu(e,t,d,o),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&hl.enqueueReplaceState(u,u.state,null),ll(e,o,u,s),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function Wo(e,t){try{var o="",s=t;do o+=ve(s),s=s.return;while(s);var u=o}catch(d){u=`
36
+ `),m=u.length-1,k=d.length-1;1<=m&&0<=k&&u[m]!==d[k];)k--;for(;1<=m&&0<=k;m--,k--)if(u[m]!==d[k]){if(m!==1||k!==1)do if(m--,k--,0>k||u[m]!==d[k]){var M=`
37
+ `+u[m].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=m&&0<=k);break}}}finally{ne=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?F(e):""}function ye(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=re(e.type,!1),e;case 11:return e=re(e.type.render,!1),e;case 1:return e=re(e.type,!0),e;default:return""}}function Se(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 H:return"Fragment";case U:return"Portal";case Z:return"Profiler";case q:return"StrictMode";case ve:return"Suspense";case ce:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case he:return(e.displayName||"Context")+".Consumer";case te:return(e._context.displayName||"Context")+".Provider";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xe:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}function K(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 Se(t);case 8:return t===q?"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 fe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function be(e){var t=Ce(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,d=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){s=""+m,d.call(this,m)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(m){s=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Me(e){e._valueTracker||(e._valueTracker=be(e))}function Oe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),s="";return e&&(s=Ce(e)?e.checked?"true":"false":e.value),e=s,e!==o?(t.setValue(e),!0):!1}function qe(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 dt(e,t){var o=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function vn(e,t){var o=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;o=fe(t.value!=null?t.value:o),e._wrapperState={initialChecked:s,initialValue:o,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xt(e,t){t=t.checked,t!=null&&R(e,"checked",t,!1)}function Zt(e,t){Xt(e,t);var o=fe(t.value),s=t.type;if(o!=null)s==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gn(e,t.type,o):t.hasOwnProperty("defaultValue")&&gn(e,t.type,fe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function or(e,t,o){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,o||t===e.value||(e.value=t),e.defaultValue=t}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function gn(e,t,o){(t!=="number"||qe(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var ir=Array.isArray;function Ht(e,t,o,s){if(e=e.options,t){t={};for(var u=0;u<o.length;u++)t["$"+o[u]]=!0;for(o=0;o<e.length;o++)u=t.hasOwnProperty("$"+e[o].value),e[o].selected!==u&&(e[o].selected=u),u&&s&&(e[o].defaultSelected=!0)}else{for(o=""+fe(o),t=null,u=0;u<e.length;u++){if(e[u].value===o){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Co(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wn(e,t){var o=t.value;if(o==null){if(o=t.children,t=t.defaultValue,o!=null){if(t!=null)throw Error(i(92));if(ir(o)){if(1<o.length)throw Error(i(93));o=o[0]}t=o}t==null&&(t=""),o=t}e._wrapperState={initialValue:fe(o)}}function Cs(e,t){var o=fe(t.value),s=fe(t.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),t.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),s!=null&&(e.defaultValue=""+s)}function Es(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vt(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 xn(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vt(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Eo,ks=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,o,s,u){MSApp.execUnsafeLocalFunction(function(){return e(t,o,s,u)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Eo=Eo||document.createElement("div"),Eo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Eo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sn(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var Vr={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},bs=["Webkit","ms","Moz","O"];Object.keys(Vr).forEach(function(e){bs.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vr[t]=Vr[e]})});function ko(e,t,o){return t==null||typeof t=="boolean"||t===""?"":o||typeof t!="number"||t===0||Vr.hasOwnProperty(e)&&Vr[e]?(""+t).trim():t+"px"}function zn(e,t){e=e.style;for(var o in t)if(t.hasOwnProperty(o)){var s=o.indexOf("--")===0,u=ko(o,t[o],s);o==="float"&&(o="cssFloat"),s?e.setProperty(o,u):e[o]=u}}var Rs=V({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 Cn(e,t){if(t){if(Rs[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 Ci(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 Ei=null;function bo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ro=null,sr=null,En=null;function Jt(e){if(e=$i(e)){if(typeof Ro!="function")throw Error(i(280));var t=e.stateNode;t&&(t=Gs(t),Ro(e.stateNode,e.type,t))}}function Ps(e){sr?En?En.push(e):En=[e]:sr=e}function ke(){if(sr){var e=sr,t=En;if(En=sr=null,Jt(e),t)for(e=0;e<t.length;e++)Jt(t[e])}}function Ae(e,t){return e(t)}function Fe(){}var gt=!1;function Et(e,t,o){if(gt)return e(t,o);gt=!0;try{return Ae(e,t,o)}finally{gt=!1,(sr!==null||En!==null)&&(Fe(),ke())}}function kt(e,t){var o=e.stateNode;if(o===null)return null;var s=Gs(o);if(s===null)return null;o=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(o&&typeof o!="function")throw Error(i(231,t,typeof o));return o}var en=!1;if(p)try{var lt={};Object.defineProperty(lt,"passive",{get:function(){en=!0}}),window.addEventListener("test",lt,lt),window.removeEventListener("test",lt,lt)}catch{en=!1}function kn(e,t,o,s,u,d,m,k,M){var D=Array.prototype.slice.call(arguments,3);try{t.apply(o,D)}catch(W){this.onError(W)}}var ki=!1,Ms=null,Ts=!1,ya=null,hv={onError:function(e){ki=!0,Ms=e}};function mv(e,t,o,s,u,d,m,k,M){ki=!1,Ms=null,kn.apply(hv,arguments)}function yv(e,t,o,s,u,d,m,k,M){if(mv.apply(this,arguments),ki){if(ki){var D=Ms;ki=!1,Ms=null}else throw Error(i(198));Ts||(Ts=!0,ya=D)}}function Qr(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function vd(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 gd(e){if(Qr(e)!==e)throw Error(i(188))}function vv(e){var t=e.alternate;if(!t){if(t=Qr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var o=e,s=t;;){var u=o.return;if(u===null)break;var d=u.alternate;if(d===null){if(s=u.return,s!==null){o=s;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===o)return gd(u),e;if(d===s)return gd(u),t;d=d.sibling}throw Error(i(188))}if(o.return!==s.return)o=u,s=d;else{for(var m=!1,k=u.child;k;){if(k===o){m=!0,o=u,s=d;break}if(k===s){m=!0,s=u,o=d;break}k=k.sibling}if(!m){for(k=d.child;k;){if(k===o){m=!0,o=d,s=u;break}if(k===s){m=!0,s=d,o=u;break}k=k.sibling}if(!m)throw Error(i(189))}}if(o.alternate!==s)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:t}function wd(e){return e=vv(e),e!==null?xd(e):null}function xd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xd(e);if(t!==null)return t;e=e.sibling}return null}var Sd=r.unstable_scheduleCallback,Cd=r.unstable_cancelCallback,gv=r.unstable_shouldYield,wv=r.unstable_requestPaint,Ye=r.unstable_now,xv=r.unstable_getCurrentPriorityLevel,va=r.unstable_ImmediatePriority,Ed=r.unstable_UserBlockingPriority,Os=r.unstable_NormalPriority,Sv=r.unstable_LowPriority,kd=r.unstable_IdlePriority,_s=null,bn=null;function Cv(e){if(bn&&typeof bn.onCommitFiberRoot=="function")try{bn.onCommitFiberRoot(_s,e,void 0,(e.current.flags&128)===128)}catch{}}var tn=Math.clz32?Math.clz32:bv,Ev=Math.log,kv=Math.LN2;function bv(e){return e>>>=0,e===0?32:31-(Ev(e)/kv|0)|0}var Ns=64,Ls=4194304;function bi(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 As(e,t){var o=e.pendingLanes;if(o===0)return 0;var s=0,u=e.suspendedLanes,d=e.pingedLanes,m=o&268435455;if(m!==0){var k=m&~u;k!==0?s=bi(k):(d&=m,d!==0&&(s=bi(d)))}else m=o&~u,m!==0?s=bi(m):d!==0&&(s=bi(d));if(s===0)return 0;if(t!==0&&t!==s&&(t&u)===0&&(u=s&-s,d=t&-t,u>=d||u===16&&(d&4194240)!==0))return t;if((s&4)!==0&&(s|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)o=31-tn(t),u=1<<o,s|=e[o],t&=~u;return s}function Rv(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 Pv(e,t){for(var o=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes;0<d;){var m=31-tn(d),k=1<<m,M=u[m];M===-1?((k&o)===0||(k&s)!==0)&&(u[m]=Rv(k,t)):M<=t&&(e.expiredLanes|=k),d&=~k}}function ga(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bd(){var e=Ns;return Ns<<=1,(Ns&4194240)===0&&(Ns=64),e}function wa(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function Ri(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-tn(t),e[t]=o}function Mv(e,t){var o=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<o;){var u=31-tn(o),d=1<<u;t[u]=0,s[u]=-1,e[u]=-1,o&=~d}}function xa(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var s=31-tn(o),u=1<<s;u&t|e[s]&t&&(e[s]|=t),o&=~u}}var De=0;function Rd(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Pd,Sa,Md,Td,Od,Ca=!1,Is=[],lr=null,ar=null,ur=null,Pi=new Map,Mi=new Map,cr=[],Tv="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 _d(e,t){switch(e){case"focusin":case"focusout":lr=null;break;case"dragenter":case"dragleave":ar=null;break;case"mouseover":case"mouseout":ur=null;break;case"pointerover":case"pointerout":Pi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mi.delete(t.pointerId)}}function Ti(e,t,o,s,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:o,eventSystemFlags:s,nativeEvent:d,targetContainers:[u]},t!==null&&(t=$i(t),t!==null&&Sa(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Ov(e,t,o,s,u){switch(t){case"focusin":return lr=Ti(lr,e,t,o,s,u),!0;case"dragenter":return ar=Ti(ar,e,t,o,s,u),!0;case"mouseover":return ur=Ti(ur,e,t,o,s,u),!0;case"pointerover":var d=u.pointerId;return Pi.set(d,Ti(Pi.get(d)||null,e,t,o,s,u)),!0;case"gotpointercapture":return d=u.pointerId,Mi.set(d,Ti(Mi.get(d)||null,e,t,o,s,u)),!0}return!1}function Nd(e){var t=Kr(e.target);if(t!==null){var o=Qr(t);if(o!==null){if(t=o.tag,t===13){if(t=vd(o),t!==null){e.blockedOn=t,Od(e.priority,function(){Md(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ds(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=ka(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var s=new o.constructor(o.type,o);Ei=s,o.target.dispatchEvent(s),Ei=null}else return t=$i(o),t!==null&&Sa(t),e.blockedOn=o,!1;t.shift()}return!0}function Ld(e,t,o){Ds(e)&&o.delete(t)}function _v(){Ca=!1,lr!==null&&Ds(lr)&&(lr=null),ar!==null&&Ds(ar)&&(ar=null),ur!==null&&Ds(ur)&&(ur=null),Pi.forEach(Ld),Mi.forEach(Ld)}function Oi(e,t){e.blockedOn===t&&(e.blockedOn=null,Ca||(Ca=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,_v)))}function _i(e){function t(u){return Oi(u,e)}if(0<Is.length){Oi(Is[0],e);for(var o=1;o<Is.length;o++){var s=Is[o];s.blockedOn===e&&(s.blockedOn=null)}}for(lr!==null&&Oi(lr,e),ar!==null&&Oi(ar,e),ur!==null&&Oi(ur,e),Pi.forEach(t),Mi.forEach(t),o=0;o<cr.length;o++)s=cr[o],s.blockedOn===e&&(s.blockedOn=null);for(;0<cr.length&&(o=cr[0],o.blockedOn===null);)Nd(o),o.blockedOn===null&&cr.shift()}var Po=L.ReactCurrentBatchConfig,Fs=!0;function Nv(e,t,o,s){var u=De,d=Po.transition;Po.transition=null;try{De=1,Ea(e,t,o,s)}finally{De=u,Po.transition=d}}function Lv(e,t,o,s){var u=De,d=Po.transition;Po.transition=null;try{De=4,Ea(e,t,o,s)}finally{De=u,Po.transition=d}}function Ea(e,t,o,s){if(Fs){var u=ka(e,t,o,s);if(u===null)Ua(e,t,s,zs,o),_d(e,s);else if(Ov(u,e,t,o,s))s.stopPropagation();else if(_d(e,s),t&4&&-1<Tv.indexOf(e)){for(;u!==null;){var d=$i(u);if(d!==null&&Pd(d),d=ka(e,t,o,s),d===null&&Ua(e,t,s,zs,o),d===u)break;u=d}u!==null&&s.stopPropagation()}else Ua(e,t,s,null,o)}}var zs=null;function ka(e,t,o,s){if(zs=null,e=bo(s),e=Kr(e),e!==null)if(t=Qr(e),t===null)e=null;else if(o=t.tag,o===13){if(e=vd(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return zs=e,null}function Ad(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(xv()){case va:return 1;case Ed:return 4;case Os:case Sv:return 16;case kd:return 536870912;default:return 16}default:return 16}}var dr=null,ba=null,js=null;function Id(){if(js)return js;var e,t=ba,o=t.length,s,u="value"in dr?dr.value:dr.textContent,d=u.length;for(e=0;e<o&&t[e]===u[e];e++);var m=o-e;for(s=1;s<=m&&t[o-s]===u[d-s];s++);return js=u.slice(e,1<s?1-s:void 0)}function Bs(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 Us(){return!0}function Dd(){return!1}function It(e){function t(o,s,u,d,m){this._reactName=o,this._targetInst=u,this.type=s,this.nativeEvent=d,this.target=m,this.currentTarget=null;for(var k in e)e.hasOwnProperty(k)&&(o=e[k],this[k]=o?o(d):d[k]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Us:Dd,this.isPropagationStopped=Dd,this}return V(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Us)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Us)},persist:function(){},isPersistent:Us}),t}var Mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ra=It(Mo),Ni=V({},Mo,{view:0,detail:0}),Av=It(Ni),Pa,Ma,Li,Hs=V({},Ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oa,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!==Li&&(Li&&e.type==="mousemove"?(Pa=e.screenX-Li.screenX,Ma=e.screenY-Li.screenY):Ma=Pa=0,Li=e),Pa)},movementY:function(e){return"movementY"in e?e.movementY:Ma}}),Fd=It(Hs),Iv=V({},Hs,{dataTransfer:0}),Dv=It(Iv),Fv=V({},Ni,{relatedTarget:0}),Ta=It(Fv),zv=V({},Mo,{animationName:0,elapsedTime:0,pseudoElement:0}),jv=It(zv),Bv=V({},Mo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uv=It(Bv),Hv=V({},Mo,{data:0}),zd=It(Hv),$v={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wv={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"},Vv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vv[e])?!!t[e]:!1}function Oa(){return Qv}var Kv=V({},Ni,{key:function(e){if(e.key){var t=$v[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oa,charCode:function(e){return e.type==="keypress"?Bs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qv=It(Kv),Yv=V({},Hs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jd=It(Yv),Gv=V({},Ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oa}),Xv=It(Gv),Zv=V({},Mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jv=It(Zv),eg=V({},Hs,{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=It(eg),ng=[9,13,27,32],_a=p&&"CompositionEvent"in window,Ai=null;p&&"documentMode"in document&&(Ai=document.documentMode);var rg=p&&"TextEvent"in window&&!Ai,Bd=p&&(!_a||Ai&&8<Ai&&11>=Ai),Ud=" ",Hd=!1;function $d(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 Wd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var To=!1;function og(e,t){switch(e){case"compositionend":return Wd(t);case"keypress":return t.which!==32?null:(Hd=!0,Ud);case"textInput":return e=t.data,e===Ud&&Hd?null:e;default:return null}}function ig(e,t){if(To)return e==="compositionend"||!_a&&$d(e,t)?(e=Id(),js=ba=dr=null,To=!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 Bd&&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 Vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sg[e.type]:t==="textarea"}function Qd(e,t,o,s){Ps(s),t=Ks(t,"onChange"),0<t.length&&(o=new Ra("onChange","change",null,o,s),e.push({event:o,listeners:t}))}var Ii=null,Di=null;function lg(e){df(e,0)}function $s(e){var t=Ao(e);if(Oe(t))return e}function ag(e,t){if(e==="change")return t}var Kd=!1;if(p){var Na;if(p){var La="oninput"in document;if(!La){var qd=document.createElement("div");qd.setAttribute("oninput","return;"),La=typeof qd.oninput=="function"}Na=La}else Na=!1;Kd=Na&&(!document.documentMode||9<document.documentMode)}function Yd(){Ii&&(Ii.detachEvent("onpropertychange",Gd),Di=Ii=null)}function Gd(e){if(e.propertyName==="value"&&$s(Di)){var t=[];Qd(t,Di,e,bo(e)),Et(lg,t)}}function ug(e,t,o){e==="focusin"?(Yd(),Ii=t,Di=o,Ii.attachEvent("onpropertychange",Gd)):e==="focusout"&&Yd()}function cg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $s(Di)}function dg(e,t){if(e==="click")return $s(t)}function fg(e,t){if(e==="input"||e==="change")return $s(t)}function pg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:pg;function Fi(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var u=o[s];if(!h.call(t,u)||!nn(e[u],t[u]))return!1}return!0}function Xd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zd(e,t){var o=Xd(e);e=0;for(var s;o;){if(o.nodeType===3){if(s=e+o.textContent.length,e<=t&&s>=t)return{node:o,offset:t-e};e=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Xd(o)}}function Jd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ef(){for(var e=window,t=qe();t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch{o=!1}if(o)e=t.contentWindow;else break;t=qe(e.document)}return t}function Aa(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=ef(),o=e.focusedElem,s=e.selectionRange;if(t!==o&&o&&o.ownerDocument&&Jd(o.ownerDocument.documentElement,o)){if(s!==null&&Aa(o)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in o)o.selectionStart=t,o.selectionEnd=Math.min(e,o.value.length);else if(e=(t=o.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=o.textContent.length,d=Math.min(s.start,u);s=s.end===void 0?d:Math.min(s.end,u),!e.extend&&d>s&&(u=s,s=d,d=u),u=Zd(o,d);var m=Zd(o,s);u&&m&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),d>s?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=o;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<t.length;o++)e=t[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mg=p&&"documentMode"in document&&11>=document.documentMode,Oo=null,Ia=null,zi=null,Da=!1;function tf(e,t,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Da||Oo==null||Oo!==qe(s)||(s=Oo,"selectionStart"in s&&Aa(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}),zi&&Fi(zi,s)||(zi=s,s=Ks(Ia,"onSelect"),0<s.length&&(t=new Ra("onSelect","select",null,t,o),e.push({event:t,listeners:s}),t.target=Oo)))}function Ws(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var _o={animationend:Ws("Animation","AnimationEnd"),animationiteration:Ws("Animation","AnimationIteration"),animationstart:Ws("Animation","AnimationStart"),transitionend:Ws("Transition","TransitionEnd")},Fa={},nf={};p&&(nf=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function Vs(e){if(Fa[e])return Fa[e];if(!_o[e])return e;var t=_o[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in nf)return Fa[e]=t[o];return e}var rf=Vs("animationend"),of=Vs("animationiteration"),sf=Vs("animationstart"),lf=Vs("transitionend"),af=new Map,uf="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 fr(e,t){af.set(e,t),c(t,[e])}for(var za=0;za<uf.length;za++){var ja=uf[za],yg=ja.toLowerCase(),vg=ja[0].toUpperCase()+ja.slice(1);fr(yg,"on"+vg)}fr(rf,"onAnimationEnd"),fr(of,"onAnimationIteration"),fr(sf,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(lf,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ji="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gg=new Set("cancel close invalid load scroll toggle".split(" ").concat(ji));function cf(e,t,o){var s=e.type||"unknown-event";e.currentTarget=o,yv(s,t,void 0,e),e.currentTarget=null}function df(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var s=e[o],u=s.event;s=s.listeners;e:{var d=void 0;if(t)for(var m=s.length-1;0<=m;m--){var k=s[m],M=k.instance,D=k.currentTarget;if(k=k.listener,M!==d&&u.isPropagationStopped())break e;cf(u,k,D),d=M}else for(m=0;m<s.length;m++){if(k=s[m],M=k.instance,D=k.currentTarget,k=k.listener,M!==d&&u.isPropagationStopped())break e;cf(u,k,D),d=M}}}if(Ts)throw e=ya,Ts=!1,ya=null,e}function je(e,t){var o=t[Ka];o===void 0&&(o=t[Ka]=new Set);var s=e+"__bubble";o.has(s)||(ff(t,e,2,!1),o.add(s))}function Ba(e,t,o){var s=0;t&&(s|=4),ff(o,e,s,t)}var Qs="_reactListening"+Math.random().toString(36).slice(2);function Bi(e){if(!e[Qs]){e[Qs]=!0,l.forEach(function(o){o!=="selectionchange"&&(gg.has(o)||Ba(o,!1,e),Ba(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qs]||(t[Qs]=!0,Ba("selectionchange",!1,t))}}function ff(e,t,o,s){switch(Ad(t)){case 1:var u=Nv;break;case 4:u=Lv;break;default:u=Ea}o=u.bind(null,t,o,e),u=void 0,!en||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(t,o,{capture:!0,passive:u}):e.addEventListener(t,o,!0):u!==void 0?e.addEventListener(t,o,{passive:u}):e.addEventListener(t,o,!1)}function Ua(e,t,o,s,u){var d=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var k=s.stateNode.containerInfo;if(k===u||k.nodeType===8&&k.parentNode===u)break;if(m===4)for(m=s.return;m!==null;){var M=m.tag;if((M===3||M===4)&&(M=m.stateNode.containerInfo,M===u||M.nodeType===8&&M.parentNode===u))return;m=m.return}for(;k!==null;){if(m=Kr(k),m===null)return;if(M=m.tag,M===5||M===6){s=d=m;continue e}k=k.parentNode}}s=s.return}Et(function(){var D=d,W=bo(o),Q=[];e:{var $=af.get(e);if($!==void 0){var oe=Ra,le=e;switch(e){case"keypress":if(Bs(o)===0)break e;case"keydown":case"keyup":oe=qv;break;case"focusin":le="focus",oe=Ta;break;case"focusout":le="blur",oe=Ta;break;case"beforeblur":case"afterblur":oe=Ta;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=Fd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=Dv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=Xv;break;case rf:case of:case sf:oe=jv;break;case lf:oe=Jv;break;case"scroll":oe=Av;break;case"wheel":oe=tg;break;case"copy":case"cut":case"paste":oe=Uv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=jd}var ue=(t&4)!==0,Ge=!ue&&e==="scroll",A=ue?$!==null?$+"Capture":null:$;ue=[];for(var N=D,I;N!==null;){I=N;var Y=I.stateNode;if(I.tag===5&&Y!==null&&(I=Y,A!==null&&(Y=kt(N,A),Y!=null&&ue.push(Ui(N,Y,I)))),Ge)break;N=N.return}0<ue.length&&($=new oe($,le,null,o,W),Q.push({event:$,listeners:ue}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",oe=e==="mouseout"||e==="pointerout",$&&o!==Ei&&(le=o.relatedTarget||o.fromElement)&&(Kr(le)||le[jn]))break e;if((oe||$)&&($=W.window===W?W:($=W.ownerDocument)?$.defaultView||$.parentWindow:window,oe?(le=o.relatedTarget||o.toElement,oe=D,le=le?Kr(le):null,le!==null&&(Ge=Qr(le),le!==Ge||le.tag!==5&&le.tag!==6)&&(le=null)):(oe=null,le=D),oe!==le)){if(ue=Fd,Y="onMouseLeave",A="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ue=jd,Y="onPointerLeave",A="onPointerEnter",N="pointer"),Ge=oe==null?$:Ao(oe),I=le==null?$:Ao(le),$=new ue(Y,N+"leave",oe,o,W),$.target=Ge,$.relatedTarget=I,Y=null,Kr(W)===D&&(ue=new ue(A,N+"enter",le,o,W),ue.target=I,ue.relatedTarget=Ge,Y=ue),Ge=Y,oe&&le)t:{for(ue=oe,A=le,N=0,I=ue;I;I=No(I))N++;for(I=0,Y=A;Y;Y=No(Y))I++;for(;0<N-I;)ue=No(ue),N--;for(;0<I-N;)A=No(A),I--;for(;N--;){if(ue===A||A!==null&&ue===A.alternate)break t;ue=No(ue),A=No(A)}ue=null}else ue=null;oe!==null&&pf(Q,$,oe,ue,!1),le!==null&&Ge!==null&&pf(Q,Ge,le,ue,!0)}}e:{if($=D?Ao(D):window,oe=$.nodeName&&$.nodeName.toLowerCase(),oe==="select"||oe==="input"&&$.type==="file")var de=ag;else if(Vd($))if(Kd)de=fg;else{de=cg;var ge=ug}else(oe=$.nodeName)&&oe.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(de=dg);if(de&&(de=de(e,D))){Qd(Q,de,o,W);break e}ge&&ge(e,$,D),e==="focusout"&&(ge=$._wrapperState)&&ge.controlled&&$.type==="number"&&gn($,"number",$.value)}switch(ge=D?Ao(D):window,e){case"focusin":(Vd(ge)||ge.contentEditable==="true")&&(Oo=ge,Ia=D,zi=null);break;case"focusout":zi=Ia=Oo=null;break;case"mousedown":Da=!0;break;case"contextmenu":case"mouseup":case"dragend":Da=!1,tf(Q,o,W);break;case"selectionchange":if(mg)break;case"keydown":case"keyup":tf(Q,o,W)}var we;if(_a)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else To?$d(e,o)&&(Ee="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Ee="onCompositionStart");Ee&&(Bd&&o.locale!=="ko"&&(To||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&To&&(we=Id()):(dr=W,ba="value"in dr?dr.value:dr.textContent,To=!0)),ge=Ks(D,Ee),0<ge.length&&(Ee=new zd(Ee,e,null,o,W),Q.push({event:Ee,listeners:ge}),we?Ee.data=we:(we=Wd(o),we!==null&&(Ee.data=we)))),(we=rg?og(e,o):ig(e,o))&&(D=Ks(D,"onBeforeInput"),0<D.length&&(W=new zd("onBeforeInput","beforeinput",null,o,W),Q.push({event:W,listeners:D}),W.data=we))}df(Q,t)})}function Ui(e,t,o){return{instance:e,listener:t,currentTarget:o}}function Ks(e,t){for(var o=t+"Capture",s=[];e!==null;){var u=e,d=u.stateNode;u.tag===5&&d!==null&&(u=d,d=kt(e,o),d!=null&&s.unshift(Ui(e,d,u)),d=kt(e,t),d!=null&&s.push(Ui(e,d,u))),e=e.return}return s}function No(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pf(e,t,o,s,u){for(var d=t._reactName,m=[];o!==null&&o!==s;){var k=o,M=k.alternate,D=k.stateNode;if(M!==null&&M===s)break;k.tag===5&&D!==null&&(k=D,u?(M=kt(o,d),M!=null&&m.unshift(Ui(o,M,k))):u||(M=kt(o,d),M!=null&&m.push(Ui(o,M,k)))),o=o.return}m.length!==0&&e.push({event:t,listeners:m})}var wg=/\r\n?/g,xg=/\u0000|\uFFFD/g;function hf(e){return(typeof e=="string"?e:""+e).replace(wg,`
38
+ `).replace(xg,"")}function qs(e,t,o){if(t=hf(t),hf(e)!==t&&o)throw Error(i(425))}function Ys(){}var Ha=null,$a=null;function Wa(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 Va=typeof setTimeout=="function"?setTimeout:void 0,Sg=typeof clearTimeout=="function"?clearTimeout:void 0,mf=typeof Promise=="function"?Promise:void 0,Cg=typeof queueMicrotask=="function"?queueMicrotask:typeof mf<"u"?function(e){return mf.resolve(null).then(e).catch(Eg)}:Va;function Eg(e){setTimeout(function(){throw e})}function Qa(e,t){var o=t,s=0;do{var u=o.nextSibling;if(e.removeChild(o),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(s===0){e.removeChild(u),_i(t);return}s--}else o!=="$"&&o!=="$?"&&o!=="$!"||s++;o=u}while(o);_i(t)}function pr(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 yf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(t===0)return e;t--}else o==="/$"&&t++}e=e.previousSibling}return null}var Lo=Math.random().toString(36).slice(2),Rn="__reactFiber$"+Lo,Hi="__reactProps$"+Lo,jn="__reactContainer$"+Lo,Ka="__reactEvents$"+Lo,kg="__reactListeners$"+Lo,bg="__reactHandles$"+Lo;function Kr(e){var t=e[Rn];if(t)return t;for(var o=e.parentNode;o;){if(t=o[jn]||o[Rn]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=yf(e);e!==null;){if(o=e[Rn])return o;e=yf(e)}return t}e=o,o=e.parentNode}return null}function $i(e){return e=e[Rn]||e[jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ao(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Gs(e){return e[Hi]||null}var qa=[],Io=-1;function hr(e){return{current:e}}function Be(e){0>Io||(e.current=qa[Io],qa[Io]=null,Io--)}function ze(e,t){Io++,qa[Io]=e.current,e.current=t}var mr={},ft=hr(mr),bt=hr(!1),qr=mr;function Do(e,t){var o=e.type.contextTypes;if(!o)return mr;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var u={},d;for(d in o)u[d]=t[d];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function Rt(e){return e=e.childContextTypes,e!=null}function Xs(){Be(bt),Be(ft)}function vf(e,t,o){if(ft.current!==mr)throw Error(i(168));ze(ft,t),ze(bt,o)}function gf(e,t,o){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return o;s=s.getChildContext();for(var u in s)if(!(u in t))throw Error(i(108,K(e)||"Unknown",u));return V({},o,s)}function Zs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mr,qr=ft.current,ze(ft,e),ze(bt,bt.current),!0}function wf(e,t,o){var s=e.stateNode;if(!s)throw Error(i(169));o?(e=gf(e,t,qr),s.__reactInternalMemoizedMergedChildContext=e,Be(bt),Be(ft),ze(ft,e)):Be(bt),ze(bt,o)}var Bn=null,Js=!1,Ya=!1;function xf(e){Bn===null?Bn=[e]:Bn.push(e)}function Rg(e){Js=!0,xf(e)}function yr(){if(!Ya&&Bn!==null){Ya=!0;var e=0,t=De;try{var o=Bn;for(De=1;e<o.length;e++){var s=o[e];do s=s(!0);while(s!==null)}Bn=null,Js=!1}catch(u){throw Bn!==null&&(Bn=Bn.slice(e+1)),Sd(va,yr),u}finally{De=t,Ya=!1}}return null}var Fo=[],zo=0,el=null,tl=0,$t=[],Wt=0,Yr=null,Un=1,Hn="";function Gr(e,t){Fo[zo++]=tl,Fo[zo++]=el,el=e,tl=t}function Sf(e,t,o){$t[Wt++]=Un,$t[Wt++]=Hn,$t[Wt++]=Yr,Yr=e;var s=Un;e=Hn;var u=32-tn(s)-1;s&=~(1<<u),o+=1;var d=32-tn(t)+u;if(30<d){var m=u-u%5;d=(s&(1<<m)-1).toString(32),s>>=m,u-=m,Un=1<<32-tn(t)+u|o<<u|s,Hn=d+e}else Un=1<<d|o<<u|s,Hn=e}function Ga(e){e.return!==null&&(Gr(e,1),Sf(e,1,0))}function Xa(e){for(;e===el;)el=Fo[--zo],Fo[zo]=null,tl=Fo[--zo],Fo[zo]=null;for(;e===Yr;)Yr=$t[--Wt],$t[Wt]=null,Hn=$t[--Wt],$t[Wt]=null,Un=$t[--Wt],$t[Wt]=null}var Dt=null,Ft=null,He=!1,rn=null;function Cf(e,t){var o=qt(5,null,null,0);o.elementType="DELETED",o.stateNode=t,o.return=e,t=e.deletions,t===null?(e.deletions=[o],e.flags|=16):t.push(o)}function Ef(e,t){switch(e.tag){case 5:var o=e.type;return t=t.nodeType!==1||o.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Dt=e,Ft=pr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(o=Yr!==null?{id:Un,overflow:Hn}:null,e.memoizedState={dehydrated:t,treeContext:o,retryLane:1073741824},o=qt(18,null,null,0),o.stateNode=t,o.return=e,e.child=o,Dt=e,Ft=null,!0):!1;default:return!1}}function Za(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ja(e){if(He){var t=Ft;if(t){var o=t;if(!Ef(e,t)){if(Za(e))throw Error(i(418));t=pr(o.nextSibling);var s=Dt;t&&Ef(e,t)?Cf(s,o):(e.flags=e.flags&-4097|2,He=!1,Dt=e)}}else{if(Za(e))throw Error(i(418));e.flags=e.flags&-4097|2,He=!1,Dt=e}}}function kf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dt=e}function nl(e){if(e!==Dt)return!1;if(!He)return kf(e),He=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wa(e.type,e.memoizedProps)),t&&(t=Ft)){if(Za(e))throw bf(),Error(i(418));for(;t;)Cf(e,t),t=pr(t.nextSibling)}if(kf(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 o=e.data;if(o==="/$"){if(t===0){Ft=pr(e.nextSibling);break e}t--}else o!=="$"&&o!=="$!"&&o!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=Dt?pr(e.stateNode.nextSibling):null;return!0}function bf(){for(var e=Ft;e;)e=pr(e.nextSibling)}function jo(){Ft=Dt=null,He=!1}function eu(e){rn===null?rn=[e]:rn.push(e)}var Pg=L.ReactCurrentBatchConfig;function Wi(e,t,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var s=o.stateNode}if(!s)throw Error(i(147,e));var u=s,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(m){var k=u.refs;m===null?delete k[d]:k[d]=m},t._stringRef=d,t)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function rl(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Rf(e){var t=e._init;return t(e._payload)}function Pf(e){function t(A,N){if(e){var I=A.deletions;I===null?(A.deletions=[N],A.flags|=16):I.push(N)}}function o(A,N){if(!e)return null;for(;N!==null;)t(A,N),N=N.sibling;return null}function s(A,N){for(A=new Map;N!==null;)N.key!==null?A.set(N.key,N):A.set(N.index,N),N=N.sibling;return A}function u(A,N){return A=kr(A,N),A.index=0,A.sibling=null,A}function d(A,N,I){return A.index=I,e?(I=A.alternate,I!==null?(I=I.index,I<N?(A.flags|=2,N):I):(A.flags|=2,N)):(A.flags|=1048576,N)}function m(A){return e&&A.alternate===null&&(A.flags|=2),A}function k(A,N,I,Y){return N===null||N.tag!==6?(N=Vu(I,A.mode,Y),N.return=A,N):(N=u(N,I),N.return=A,N)}function M(A,N,I,Y){var de=I.type;return de===H?W(A,N,I.props.children,Y,I.key):N!==null&&(N.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ae&&Rf(de)===N.type)?(Y=u(N,I.props),Y.ref=Wi(A,N,I),Y.return=A,Y):(Y=Pl(I.type,I.key,I.props,null,A.mode,Y),Y.ref=Wi(A,N,I),Y.return=A,Y)}function D(A,N,I,Y){return N===null||N.tag!==4||N.stateNode.containerInfo!==I.containerInfo||N.stateNode.implementation!==I.implementation?(N=Qu(I,A.mode,Y),N.return=A,N):(N=u(N,I.children||[]),N.return=A,N)}function W(A,N,I,Y,de){return N===null||N.tag!==7?(N=oo(I,A.mode,Y,de),N.return=A,N):(N=u(N,I),N.return=A,N)}function Q(A,N,I){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Vu(""+N,A.mode,I),N.return=A,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case z:return I=Pl(N.type,N.key,N.props,null,A.mode,I),I.ref=Wi(A,null,N),I.return=A,I;case U:return N=Qu(N,A.mode,I),N.return=A,N;case ae:var Y=N._init;return Q(A,Y(N._payload),I)}if(ir(N)||B(N))return N=oo(N,A.mode,I,null),N.return=A,N;rl(A,N)}return null}function $(A,N,I,Y){var de=N!==null?N.key:null;if(typeof I=="string"&&I!==""||typeof I=="number")return de!==null?null:k(A,N,""+I,Y);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case z:return I.key===de?M(A,N,I,Y):null;case U:return I.key===de?D(A,N,I,Y):null;case ae:return de=I._init,$(A,N,de(I._payload),Y)}if(ir(I)||B(I))return de!==null?null:W(A,N,I,Y,null);rl(A,I)}return null}function oe(A,N,I,Y,de){if(typeof Y=="string"&&Y!==""||typeof Y=="number")return A=A.get(I)||null,k(N,A,""+Y,de);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case z:return A=A.get(Y.key===null?I:Y.key)||null,M(N,A,Y,de);case U:return A=A.get(Y.key===null?I:Y.key)||null,D(N,A,Y,de);case ae:var ge=Y._init;return oe(A,N,I,ge(Y._payload),de)}if(ir(Y)||B(Y))return A=A.get(I)||null,W(N,A,Y,de,null);rl(N,Y)}return null}function le(A,N,I,Y){for(var de=null,ge=null,we=N,Ee=N=0,it=null;we!==null&&Ee<I.length;Ee++){we.index>Ee?(it=we,we=null):it=we.sibling;var Le=$(A,we,I[Ee],Y);if(Le===null){we===null&&(we=it);break}e&&we&&Le.alternate===null&&t(A,we),N=d(Le,N,Ee),ge===null?de=Le:ge.sibling=Le,ge=Le,we=it}if(Ee===I.length)return o(A,we),He&&Gr(A,Ee),de;if(we===null){for(;Ee<I.length;Ee++)we=Q(A,I[Ee],Y),we!==null&&(N=d(we,N,Ee),ge===null?de=we:ge.sibling=we,ge=we);return He&&Gr(A,Ee),de}for(we=s(A,we);Ee<I.length;Ee++)it=oe(we,A,Ee,I[Ee],Y),it!==null&&(e&&it.alternate!==null&&we.delete(it.key===null?Ee:it.key),N=d(it,N,Ee),ge===null?de=it:ge.sibling=it,ge=it);return e&&we.forEach(function(br){return t(A,br)}),He&&Gr(A,Ee),de}function ue(A,N,I,Y){var de=B(I);if(typeof de!="function")throw Error(i(150));if(I=de.call(I),I==null)throw Error(i(151));for(var ge=de=null,we=N,Ee=N=0,it=null,Le=I.next();we!==null&&!Le.done;Ee++,Le=I.next()){we.index>Ee?(it=we,we=null):it=we.sibling;var br=$(A,we,Le.value,Y);if(br===null){we===null&&(we=it);break}e&&we&&br.alternate===null&&t(A,we),N=d(br,N,Ee),ge===null?de=br:ge.sibling=br,ge=br,we=it}if(Le.done)return o(A,we),He&&Gr(A,Ee),de;if(we===null){for(;!Le.done;Ee++,Le=I.next())Le=Q(A,Le.value,Y),Le!==null&&(N=d(Le,N,Ee),ge===null?de=Le:ge.sibling=Le,ge=Le);return He&&Gr(A,Ee),de}for(we=s(A,we);!Le.done;Ee++,Le=I.next())Le=oe(we,A,Ee,Le.value,Y),Le!==null&&(e&&Le.alternate!==null&&we.delete(Le.key===null?Ee:Le.key),N=d(Le,N,Ee),ge===null?de=Le:ge.sibling=Le,ge=Le);return e&&we.forEach(function(s0){return t(A,s0)}),He&&Gr(A,Ee),de}function Ge(A,N,I,Y){if(typeof I=="object"&&I!==null&&I.type===H&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case z:e:{for(var de=I.key,ge=N;ge!==null;){if(ge.key===de){if(de=I.type,de===H){if(ge.tag===7){o(A,ge.sibling),N=u(ge,I.props.children),N.return=A,A=N;break e}}else if(ge.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ae&&Rf(de)===ge.type){o(A,ge.sibling),N=u(ge,I.props),N.ref=Wi(A,ge,I),N.return=A,A=N;break e}o(A,ge);break}else t(A,ge);ge=ge.sibling}I.type===H?(N=oo(I.props.children,A.mode,Y,I.key),N.return=A,A=N):(Y=Pl(I.type,I.key,I.props,null,A.mode,Y),Y.ref=Wi(A,N,I),Y.return=A,A=Y)}return m(A);case U:e:{for(ge=I.key;N!==null;){if(N.key===ge)if(N.tag===4&&N.stateNode.containerInfo===I.containerInfo&&N.stateNode.implementation===I.implementation){o(A,N.sibling),N=u(N,I.children||[]),N.return=A,A=N;break e}else{o(A,N);break}else t(A,N);N=N.sibling}N=Qu(I,A.mode,Y),N.return=A,A=N}return m(A);case ae:return ge=I._init,Ge(A,N,ge(I._payload),Y)}if(ir(I))return le(A,N,I,Y);if(B(I))return ue(A,N,I,Y);rl(A,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,N!==null&&N.tag===6?(o(A,N.sibling),N=u(N,I),N.return=A,A=N):(o(A,N),N=Vu(I,A.mode,Y),N.return=A,A=N),m(A)):o(A,N)}return Ge}var Bo=Pf(!0),Mf=Pf(!1),ol=hr(null),il=null,Uo=null,tu=null;function nu(){tu=Uo=il=null}function ru(e){var t=ol.current;Be(ol),e._currentValue=t}function ou(e,t,o){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===o)break;e=e.return}}function Ho(e,t){il=e,tu=Uo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Pt=!0),e.firstContext=null)}function Vt(e){var t=e._currentValue;if(tu!==e)if(e={context:e,memoizedValue:t,next:null},Uo===null){if(il===null)throw Error(i(308));Uo=e,il.dependencies={lanes:0,firstContext:e}}else Uo=Uo.next=e;return t}var Xr=null;function iu(e){Xr===null?Xr=[e]:Xr.push(e)}function Tf(e,t,o,s){var u=t.interleaved;return u===null?(o.next=o,iu(t)):(o.next=u.next,u.next=o),t.interleaved=o,$n(e,s)}function $n(e,t){e.lanes|=t;var o=e.alternate;for(o!==null&&(o.lanes|=t),o=e,e=e.return;e!==null;)e.childLanes|=t,o=e.alternate,o!==null&&(o.childLanes|=t),o=e,e=e.return;return o.tag===3?o.stateNode:null}var vr=!1;function su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Of(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 Wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gr(e,t,o){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ne&2)!==0){var u=s.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),s.pending=t,$n(e,o)}return u=s.interleaved,u===null?(t.next=t,iu(s)):(t.next=u.next,u.next=t),s.interleaved=t,$n(e,o)}function sl(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,o|=s,t.lanes=o,xa(e,o)}}function _f(e,t){var o=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var u=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var m={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};d===null?u=d=m:d=d.next=m,o=o.next}while(o!==null);d===null?u=d=t:d=d.next=t}else u=d=t;o={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:s.shared,effects:s.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function ll(e,t,o,s){var u=e.updateQueue;vr=!1;var d=u.firstBaseUpdate,m=u.lastBaseUpdate,k=u.shared.pending;if(k!==null){u.shared.pending=null;var M=k,D=M.next;M.next=null,m===null?d=D:m.next=D,m=M;var W=e.alternate;W!==null&&(W=W.updateQueue,k=W.lastBaseUpdate,k!==m&&(k===null?W.firstBaseUpdate=D:k.next=D,W.lastBaseUpdate=M))}if(d!==null){var Q=u.baseState;m=0,W=D=M=null,k=d;do{var $=k.lane,oe=k.eventTime;if((s&$)===$){W!==null&&(W=W.next={eventTime:oe,lane:0,tag:k.tag,payload:k.payload,callback:k.callback,next:null});e:{var le=e,ue=k;switch($=t,oe=o,ue.tag){case 1:if(le=ue.payload,typeof le=="function"){Q=le.call(oe,Q,$);break e}Q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=ue.payload,$=typeof le=="function"?le.call(oe,Q,$):le,$==null)break e;Q=V({},Q,$);break e;case 2:vr=!0}}k.callback!==null&&k.lane!==0&&(e.flags|=64,$=u.effects,$===null?u.effects=[k]:$.push(k))}else oe={eventTime:oe,lane:$,tag:k.tag,payload:k.payload,callback:k.callback,next:null},W===null?(D=W=oe,M=Q):W=W.next=oe,m|=$;if(k=k.next,k===null){if(k=u.shared.pending,k===null)break;$=k,k=$.next,$.next=null,u.lastBaseUpdate=$,u.shared.pending=null}}while(!0);if(W===null&&(M=Q),u.baseState=M,u.firstBaseUpdate=D,u.lastBaseUpdate=W,t=u.shared.interleaved,t!==null){u=t;do m|=u.lane,u=u.next;while(u!==t)}else d===null&&(u.shared.lanes=0);eo|=m,e.lanes=m,e.memoizedState=Q}}function Nf(e,t,o){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],u=s.callback;if(u!==null){if(s.callback=null,s=o,typeof u!="function")throw Error(i(191,u));u.call(s)}}}var Vi={},Pn=hr(Vi),Qi=hr(Vi),Ki=hr(Vi);function Zr(e){if(e===Vi)throw Error(i(174));return e}function lu(e,t){switch(ze(Ki,t),ze(Qi,e),ze(Pn,Vi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xn(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xn(t,e)}Be(Pn),ze(Pn,t)}function $o(){Be(Pn),Be(Qi),Be(Ki)}function Lf(e){Zr(Ki.current);var t=Zr(Pn.current),o=xn(t,e.type);t!==o&&(ze(Qi,e),ze(Pn,o))}function au(e){Qi.current===e&&(Be(Pn),Be(Qi))}var We=hr(0);function al(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.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 uu=[];function cu(){for(var e=0;e<uu.length;e++)uu[e]._workInProgressVersionPrimary=null;uu.length=0}var ul=L.ReactCurrentDispatcher,du=L.ReactCurrentBatchConfig,Jr=0,Ve=null,et=null,rt=null,cl=!1,qi=!1,Yi=0,Mg=0;function pt(){throw Error(i(321))}function fu(e,t){if(t===null)return!1;for(var o=0;o<t.length&&o<e.length;o++)if(!nn(e[o],t[o]))return!1;return!0}function pu(e,t,o,s,u,d){if(Jr=d,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ul.current=e===null||e.memoizedState===null?Ng:Lg,e=o(s,u),qi){d=0;do{if(qi=!1,Yi=0,25<=d)throw Error(i(301));d+=1,rt=et=null,t.updateQueue=null,ul.current=Ag,e=o(s,u)}while(qi)}if(ul.current=pl,t=et!==null&&et.next!==null,Jr=0,rt=et=Ve=null,cl=!1,t)throw Error(i(300));return e}function hu(){var e=Yi!==0;return Yi=0,e}function Mn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?Ve.memoizedState=rt=e:rt=rt.next=e,rt}function Qt(){if(et===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=rt===null?Ve.memoizedState:rt.next;if(t!==null)rt=t,et=e;else{if(e===null)throw Error(i(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},rt===null?Ve.memoizedState=rt=e:rt=rt.next=e}return rt}function Gi(e,t){return typeof t=="function"?t(e):t}function mu(e){var t=Qt(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=et,u=s.baseQueue,d=o.pending;if(d!==null){if(u!==null){var m=u.next;u.next=d.next,d.next=m}s.baseQueue=u=d,o.pending=null}if(u!==null){d=u.next,s=s.baseState;var k=m=null,M=null,D=d;do{var W=D.lane;if((Jr&W)===W)M!==null&&(M=M.next={lane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),s=D.hasEagerState?D.eagerState:e(s,D.action);else{var Q={lane:W,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null};M===null?(k=M=Q,m=s):M=M.next=Q,Ve.lanes|=W,eo|=W}D=D.next}while(D!==null&&D!==d);M===null?m=s:M.next=k,nn(s,t.memoizedState)||(Pt=!0),t.memoizedState=s,t.baseState=m,t.baseQueue=M,o.lastRenderedState=s}if(e=o.interleaved,e!==null){u=e;do d=u.lane,Ve.lanes|=d,eo|=d,u=u.next;while(u!==e)}else u===null&&(o.lanes=0);return[t.memoizedState,o.dispatch]}function yu(e){var t=Qt(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=o.dispatch,u=o.pending,d=t.memoizedState;if(u!==null){o.pending=null;var m=u=u.next;do d=e(d,m.action),m=m.next;while(m!==u);nn(d,t.memoizedState)||(Pt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),o.lastRenderedState=d}return[d,s]}function Af(){}function If(e,t){var o=Ve,s=Qt(),u=t(),d=!nn(s.memoizedState,u);if(d&&(s.memoizedState=u,Pt=!0),s=s.queue,vu(zf.bind(null,o,s,e),[e]),s.getSnapshot!==t||d||rt!==null&&rt.memoizedState.tag&1){if(o.flags|=2048,Xi(9,Ff.bind(null,o,s,u,t),void 0,null),ot===null)throw Error(i(349));(Jr&30)!==0||Df(o,t,u)}return u}function Df(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function Ff(e,t,o,s){t.value=o,t.getSnapshot=s,jf(t)&&Bf(e)}function zf(e,t,o){return o(function(){jf(t)&&Bf(e)})}function jf(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!nn(e,o)}catch{return!0}}function Bf(e){var t=$n(e,1);t!==null&&an(t,e,1,-1)}function Uf(e){var t=Mn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gi,lastRenderedState:e},t.queue=e,e=e.dispatch=_g.bind(null,Ve,e),[t.memoizedState,e]}function Xi(e,t,o,s){return e={tag:e,create:t,destroy:o,deps:s,next:null},t=Ve.updateQueue,t===null?(t={lastEffect:null,stores:null},Ve.updateQueue=t,t.lastEffect=e.next=e):(o=t.lastEffect,o===null?t.lastEffect=e.next=e:(s=o.next,o.next=e,e.next=s,t.lastEffect=e)),e}function Hf(){return Qt().memoizedState}function dl(e,t,o,s){var u=Mn();Ve.flags|=e,u.memoizedState=Xi(1|t,o,void 0,s===void 0?null:s)}function fl(e,t,o,s){var u=Qt();s=s===void 0?null:s;var d=void 0;if(et!==null){var m=et.memoizedState;if(d=m.destroy,s!==null&&fu(s,m.deps)){u.memoizedState=Xi(t,o,d,s);return}}Ve.flags|=e,u.memoizedState=Xi(1|t,o,d,s)}function $f(e,t){return dl(8390656,8,e,t)}function vu(e,t){return fl(2048,8,e,t)}function Wf(e,t){return fl(4,2,e,t)}function Vf(e,t){return fl(4,4,e,t)}function Qf(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 Kf(e,t,o){return o=o!=null?o.concat([e]):null,fl(4,4,Qf.bind(null,t,e),o)}function gu(){}function qf(e,t){var o=Qt();t=t===void 0?null:t;var s=o.memoizedState;return s!==null&&t!==null&&fu(t,s[1])?s[0]:(o.memoizedState=[e,t],e)}function Yf(e,t){var o=Qt();t=t===void 0?null:t;var s=o.memoizedState;return s!==null&&t!==null&&fu(t,s[1])?s[0]:(e=e(),o.memoizedState=[e,t],e)}function Gf(e,t,o){return(Jr&21)===0?(e.baseState&&(e.baseState=!1,Pt=!0),e.memoizedState=o):(nn(o,t)||(o=bd(),Ve.lanes|=o,eo|=o,e.baseState=!0),t)}function Tg(e,t){var o=De;De=o!==0&&4>o?o:4,e(!0);var s=du.transition;du.transition={};try{e(!1),t()}finally{De=o,du.transition=s}}function Xf(){return Qt().memoizedState}function Og(e,t,o){var s=Cr(e);if(o={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null},Zf(e))Jf(t,o);else if(o=Tf(e,t,o,s),o!==null){var u=xt();an(o,e,s,u),ep(o,t,s)}}function _g(e,t,o){var s=Cr(e),u={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(Zf(e))Jf(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var m=t.lastRenderedState,k=d(m,o);if(u.hasEagerState=!0,u.eagerState=k,nn(k,m)){var M=t.interleaved;M===null?(u.next=u,iu(t)):(u.next=M.next,M.next=u),t.interleaved=u;return}}catch{}finally{}o=Tf(e,t,u,s),o!==null&&(u=xt(),an(o,e,s,u),ep(o,t,s))}}function Zf(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Jf(e,t){qi=cl=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function ep(e,t,o){if((o&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,o|=s,t.lanes=o,xa(e,o)}}var pl={readContext:Vt,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},Ng={readContext:Vt,useCallback:function(e,t){return Mn().memoizedState=[e,t===void 0?null:t],e},useContext:Vt,useEffect:$f,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,dl(4194308,4,Qf.bind(null,t,e),o)},useLayoutEffect:function(e,t){return dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return dl(4,2,e,t)},useMemo:function(e,t){var o=Mn();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var s=Mn();return t=o!==void 0?o(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=Og.bind(null,Ve,e),[s.memoizedState,e]},useRef:function(e){var t=Mn();return e={current:e},t.memoizedState=e},useState:Uf,useDebugValue:gu,useDeferredValue:function(e){return Mn().memoizedState=e},useTransition:function(){var e=Uf(!1),t=e[0];return e=Tg.bind(null,e[1]),Mn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var s=Ve,u=Mn();if(He){if(o===void 0)throw Error(i(407));o=o()}else{if(o=t(),ot===null)throw Error(i(349));(Jr&30)!==0||Df(s,t,o)}u.memoizedState=o;var d={value:o,getSnapshot:t};return u.queue=d,$f(zf.bind(null,s,d,e),[e]),s.flags|=2048,Xi(9,Ff.bind(null,s,d,o,t),void 0,null),o},useId:function(){var e=Mn(),t=ot.identifierPrefix;if(He){var o=Hn,s=Un;o=(s&~(1<<32-tn(s)-1)).toString(32)+o,t=":"+t+"R"+o,o=Yi++,0<o&&(t+="H"+o.toString(32)),t+=":"}else o=Mg++,t=":"+t+"r"+o.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Lg={readContext:Vt,useCallback:qf,useContext:Vt,useEffect:vu,useImperativeHandle:Kf,useInsertionEffect:Wf,useLayoutEffect:Vf,useMemo:Yf,useReducer:mu,useRef:Hf,useState:function(){return mu(Gi)},useDebugValue:gu,useDeferredValue:function(e){var t=Qt();return Gf(t,et.memoizedState,e)},useTransition:function(){var e=mu(Gi)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:Af,useSyncExternalStore:If,useId:Xf,unstable_isNewReconciler:!1},Ag={readContext:Vt,useCallback:qf,useContext:Vt,useEffect:vu,useImperativeHandle:Kf,useInsertionEffect:Wf,useLayoutEffect:Vf,useMemo:Yf,useReducer:yu,useRef:Hf,useState:function(){return yu(Gi)},useDebugValue:gu,useDeferredValue:function(e){var t=Qt();return et===null?t.memoizedState=e:Gf(t,et.memoizedState,e)},useTransition:function(){var e=yu(Gi)[0],t=Qt().memoizedState;return[e,t]},useMutableSource:Af,useSyncExternalStore:If,useId:Xf,unstable_isNewReconciler:!1};function on(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var o in e)t[o]===void 0&&(t[o]=e[o]);return t}return t}function wu(e,t,o,s){t=e.memoizedState,o=o(s,t),o=o==null?t:V({},t,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var hl={isMounted:function(e){return(e=e._reactInternals)?Qr(e)===e:!1},enqueueSetState:function(e,t,o){e=e._reactInternals;var s=xt(),u=Cr(e),d=Wn(s,u);d.payload=t,o!=null&&(d.callback=o),t=gr(e,d,u),t!==null&&(an(t,e,u,s),sl(t,e,u))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var s=xt(),u=Cr(e),d=Wn(s,u);d.tag=1,d.payload=t,o!=null&&(d.callback=o),t=gr(e,d,u),t!==null&&(an(t,e,u,s),sl(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=xt(),s=Cr(e),u=Wn(o,s);u.tag=2,t!=null&&(u.callback=t),t=gr(e,u,s),t!==null&&(an(t,e,s,o),sl(t,e,s))}};function tp(e,t,o,s,u,d,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,m):t.prototype&&t.prototype.isPureReactComponent?!Fi(o,s)||!Fi(u,d):!0}function np(e,t,o){var s=!1,u=mr,d=t.contextType;return typeof d=="object"&&d!==null?d=Vt(d):(u=Rt(t)?qr:ft.current,s=t.contextTypes,d=(s=s!=null)?Do(e,u):mr),t=new t(o,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=hl,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=d),t}function rp(e,t,o,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(o,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(o,s),t.state!==e&&hl.enqueueReplaceState(t,t.state,null)}function xu(e,t,o,s){var u=e.stateNode;u.props=o,u.state=e.memoizedState,u.refs={},su(e);var d=t.contextType;typeof d=="object"&&d!==null?u.context=Vt(d):(d=Rt(t)?qr:ft.current,u.context=Do(e,d)),u.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(wu(e,t,d,o),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&hl.enqueueReplaceState(u,u.state,null),ll(e,o,u,s),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function Wo(e,t){try{var o="",s=t;do o+=ye(s),s=s.return;while(s);var u=o}catch(d){u=`
39
39
  Error generating stack: `+d.message+`
40
- `+d.stack}return{value:e,source:t,stack:u,digest:null}}function Su(e,t,o){return{value:e,source:null,stack:o??null,digest:t??null}}function Cu(e,t){try{console.error(t.value)}catch(o){setTimeout(function(){throw o})}}var Ag=typeof WeakMap=="function"?WeakMap:Map;function op(e,t,o){o=Wn(-1,o),o.tag=3,o.payload={element:null};var s=t.value;return o.callback=function(){Sl||(Sl=!0,Fu=s),Cu(e,t)},o}function ip(e,t,o){o=Wn(-1,o),o.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var u=t.value;o.payload=function(){return s(u)},o.callback=function(){Cu(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(o.callback=function(){Cu(e,t),typeof s!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var m=t.stack;this.componentDidCatch(t.value,{componentStack:m!==null?m:""})}),o}function sp(e,t,o){var s=e.pingCache;if(s===null){s=e.pingCache=new Ag;var u=new Set;s.set(t,u)}else u=s.get(t),u===void 0&&(u=new Set,s.set(t,u));u.has(o)||(u.add(o),e=qg.bind(null,e,t,o),t.then(e,e))}function lp(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 ap(e,t,o,s,u){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(t=Wn(-1,1),t.tag=2,gr(o,t,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=u,e)}var Dg=L.ReactCurrentOwner,Pt=!1;function wt(e,t,o,s){t.child=e===null?Tf(t,null,o,s):Bo(t,e.child,o,s)}function up(e,t,o,s,u){o=o.render;var d=t.ref;return Ho(t,u),s=pu(e,t,o,s,d,u),o=hu(),e!==null&&!Pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,Vn(e,t,u)):(He&&o&&Ga(t),t.flags|=1,wt(e,t,s,u),t.child)}function cp(e,t,o,s,u){if(e===null){var d=o.type;return typeof d=="function"&&!Wu(d)&&d.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=d,dp(e,t,d,s,u)):(e=Pl(o.type,null,s,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,(e.lanes&u)===0){var m=d.memoizedProps;if(o=o.compare,o=o!==null?o:Fi,o(m,s)&&e.ref===t.ref)return Vn(e,t,u)}return t.flags|=1,e=kr(d,s),e.ref=t.ref,e.return=t,t.child=e}function dp(e,t,o,s,u){if(e!==null){var d=e.memoizedProps;if(Fi(d,s)&&e.ref===t.ref)if(Pt=!1,t.pendingProps=s=d,(e.lanes&u)!==0)(e.flags&131072)!==0&&(Pt=!0);else return t.lanes=e.lanes,Vn(e,t,u)}return Eu(e,t,o,s,u)}function fp(e,t,o){var s=t.pendingProps,u=s.children,d=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(Qo,zt),zt|=o;else{if((o&1073741824)===0)return e=d!==null?d.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ze(Qo,zt),zt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=d!==null?d.baseLanes:o,ze(Qo,zt),zt|=s}else d!==null?(s=d.baseLanes|o,t.memoizedState=null):s=o,ze(Qo,zt),zt|=s;return wt(e,t,u,o),t.child}function pp(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function Eu(e,t,o,s,u){var d=Rt(o)?Yr:ft.current;return d=Do(t,d),Ho(t,u),o=pu(e,t,o,s,d,u),s=hu(),e!==null&&!Pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,Vn(e,t,u)):(He&&s&&Ga(t),t.flags|=1,wt(e,t,o,u),t.child)}function hp(e,t,o,s,u){if(Rt(o)){var d=!0;Zs(t)}else d=!1;if(Ho(t,u),t.stateNode===null)vl(e,t),np(t,o,s),xu(t,o,s,u),s=!0;else if(e===null){var m=t.stateNode,k=t.memoizedProps;m.props=k;var T=m.context,D=o.contextType;typeof D=="object"&&D!==null?D=Vt(D):(D=Rt(o)?Yr:ft.current,D=Do(t,D));var W=o.getDerivedStateFromProps,Q=typeof W=="function"||typeof m.getSnapshotBeforeUpdate=="function";Q||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(k!==s||T!==D)&&rp(t,m,s,D),yr=!1;var $=t.memoizedState;m.state=$,ll(t,s,m,u),T=t.memoizedState,k!==s||$!==T||bt.current||yr?(typeof W=="function"&&(wu(t,o,W,s),T=t.memoizedState),(k=yr||tp(t,o,k,s,$,T,D))?(Q||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=T),m.props=s,m.state=T,m.context=D,s=k):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{m=t.stateNode,Of(e,t),k=t.memoizedProps,D=t.type===t.elementType?k:on(t.type,k),m.props=D,Q=t.pendingProps,$=m.context,T=o.contextType,typeof T=="object"&&T!==null?T=Vt(T):(T=Rt(o)?Yr:ft.current,T=Do(t,T));var oe=o.getDerivedStateFromProps;(W=typeof oe=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(k!==Q||$!==T)&&rp(t,m,s,T),yr=!1,$=t.memoizedState,m.state=$,ll(t,s,m,u);var le=t.memoizedState;k!==Q||$!==le||bt.current||yr?(typeof oe=="function"&&(wu(t,o,oe,s),le=t.memoizedState),(D=yr||tp(t,o,D,s,$,le,T)||!1)?(W||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,le,T),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,le,T)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||k===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||k===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=le),m.props=s,m.state=le,m.context=T,s=D):(typeof m.componentDidUpdate!="function"||k===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||k===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),s=!1)}return ku(e,t,o,s,d,u)}function ku(e,t,o,s,u,d){pp(e,t);var m=(t.flags&128)!==0;if(!s&&!m)return u&&wf(t,o,!1),Vn(e,t,d);s=t.stateNode,Dg.current=t;var k=m&&typeof o.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&m?(t.child=Bo(t,e.child,null,d),t.child=Bo(t,null,k,d)):wt(e,t,k,d),t.memoizedState=s.state,u&&wf(t,o,!0),t.child}function mp(e){var t=e.stateNode;t.pendingContext?yf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yf(e,t.context,!1),lu(e,t.containerInfo)}function vp(e,t,o,s,u){return jo(),eu(u),t.flags|=256,wt(e,t,o,s),t.child}var bu={dehydrated:null,treeContext:null,retryLane:0};function Ru(e){return{baseLanes:e,cachePool:null,transitions:null}}function yp(e,t,o){var s=t.pendingProps,u=We.current,d=!1,m=(t.flags&128)!==0,k;if((k=m)||(k=e!==null&&e.memoizedState===null?!1:(u&2)!==0),k?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),ze(We,u&1),e===null)return Ja(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):(m=s.children,e=s.fallback,d?(s=t.mode,d=t.child,m={mode:"hidden",children:m},(s&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=m):d=Tl(m,s,0,null),e=oo(e,s,o,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=Ru(o),t.memoizedState=bu,e):Pu(t,m));if(u=e.memoizedState,u!==null&&(k=u.dehydrated,k!==null))return Fg(e,t,m,s,k,u,o);if(d){d=s.fallback,m=t.mode,u=e.child,k=u.sibling;var T={mode:"hidden",children:s.children};return(m&1)===0&&t.child!==u?(s=t.child,s.childLanes=0,s.pendingProps=T,t.deletions=null):(s=kr(u,T),s.subtreeFlags=u.subtreeFlags&14680064),k!==null?d=kr(k,d):(d=oo(d,m,o,null),d.flags|=2),d.return=t,s.return=t,s.sibling=d,t.child=s,s=d,d=t.child,m=e.child.memoizedState,m=m===null?Ru(o):{baseLanes:m.baseLanes|o,cachePool:null,transitions:m.transitions},d.memoizedState=m,d.childLanes=e.childLanes&~o,t.memoizedState=bu,s}return d=e.child,e=d.sibling,s=kr(d,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=o),s.return=t,s.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=s,t.memoizedState=null,s}function Pu(e,t){return t=Tl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ml(e,t,o,s){return s!==null&&eu(s),Bo(t,e.child,null,o),e=Pu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fg(e,t,o,s,u,d,m){if(o)return t.flags&256?(t.flags&=-257,s=Su(Error(i(422))),ml(e,t,m,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=s.fallback,u=t.mode,s=Tl({mode:"visible",children:s.children},u,0,null),d=oo(d,u,m,null),d.flags|=2,s.return=t,d.return=t,s.sibling=d,t.child=s,(t.mode&1)!==0&&Bo(t,e.child,null,m),t.child.memoizedState=Ru(m),t.memoizedState=bu,d);if((t.mode&1)===0)return ml(e,t,m,null);if(u.data==="$!"){if(s=u.nextSibling&&u.nextSibling.dataset,s)var k=s.dgst;return s=k,d=Error(i(419)),s=Su(d,s,void 0),ml(e,t,m,s)}if(k=(m&e.childLanes)!==0,Pt||k){if(s=ot,s!==null){switch(m&-m){case 4:u=2;break;case 16:u=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:u=32;break;case 536870912:u=268435456;break;default:u=0}u=(u&(s.suspendedLanes|m))!==0?0:u,u!==0&&u!==d.retryLane&&(d.retryLane=u,$n(e,u),an(s,e,u,-1))}return $u(),s=Su(Error(i(421))),ml(e,t,m,s)}return u.data==="$?"?(t.flags|=128,t.child=e.child,t=Gg.bind(null,e),u._reactRetry=t,null):(e=d.treeContext,Ft=pr(u.nextSibling),Dt=t,He=!0,rn=null,e!==null&&($t[Wt++]=Un,$t[Wt++]=Hn,$t[Wt++]=qr,Un=e.id,Hn=e.overflow,qr=t),t=Pu(t,s.children),t.flags|=4096,t)}function gp(e,t,o){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),ou(e.return,t,o)}function Tu(e,t,o,s,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=o,d.tailMode=u)}function wp(e,t,o){var s=t.pendingProps,u=s.revealOrder,d=s.tail;if(wt(e,t,s.children,o),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&&gp(e,o,t);else if(e.tag===19)gp(e,o,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(u){case"forwards":for(o=t.child,u=null;o!==null;)e=o.alternate,e!==null&&al(e)===null&&(u=o),o=o.sibling;o=u,o===null?(u=t.child,t.child=null):(u=o.sibling,o.sibling=null),Tu(t,!1,u,o,d);break;case"backwards":for(o=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&al(e)===null){t.child=u;break}e=u.sibling,u.sibling=o,o=u,u=e}Tu(t,!0,o,null,d);break;case"together":Tu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vn(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),eo|=t.lanes,(o&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,o=kr(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=kr(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function zg(e,t,o){switch(t.tag){case 3:mp(t),jo();break;case 5:Lf(t);break;case 1:Rt(t.type)&&Zs(t);break;case 4:lu(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,u=t.memoizedProps.value;ze(ol,s._currentValue),s._currentValue=u;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(ze(We,We.current&1),t.flags|=128,null):(o&t.child.childLanes)!==0?yp(e,t,o):(ze(We,We.current&1),e=Vn(e,t,o),e!==null?e.sibling:null);ze(We,We.current&1);break;case 19:if(s=(o&t.childLanes)!==0,(e.flags&128)!==0){if(s)return wp(e,t,o);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ze(We,We.current),s)break;return null;case 22:case 23:return t.lanes=0,fp(e,t,o)}return Vn(e,t,o)}var xp,Mu,Sp,Cp;xp=function(e,t){for(var o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Mu=function(){},Sp=function(e,t,o,s){var u=e.memoizedProps;if(u!==s){e=t.stateNode,Zr(Pn.current);var d=null;switch(o){case"input":u=dt(e,u),s=dt(e,s),d=[];break;case"select":u=V({},u,{value:void 0}),s=V({},s,{value:void 0}),d=[];break;case"textarea":u=Co(e,u),s=Co(e,s),d=[];break;default:typeof u.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=qs)}Cn(o,s);var m;o=null;for(D in u)if(!s.hasOwnProperty(D)&&u.hasOwnProperty(D)&&u[D]!=null)if(D==="style"){var k=u[D];for(m in k)k.hasOwnProperty(m)&&(o||(o={}),o[m]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(a.hasOwnProperty(D)?d||(d=[]):(d=d||[]).push(D,null));for(D in s){var T=s[D];if(k=u!=null?u[D]:void 0,s.hasOwnProperty(D)&&T!==k&&(T!=null||k!=null))if(D==="style")if(k){for(m in k)!k.hasOwnProperty(m)||T&&T.hasOwnProperty(m)||(o||(o={}),o[m]="");for(m in T)T.hasOwnProperty(m)&&k[m]!==T[m]&&(o||(o={}),o[m]=T[m])}else o||(d||(d=[]),d.push(D,o)),o=T;else D==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,k=k?k.__html:void 0,T!=null&&k!==T&&(d=d||[]).push(D,T)):D==="children"?typeof T!="string"&&typeof T!="number"||(d=d||[]).push(D,""+T):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(a.hasOwnProperty(D)?(T!=null&&D==="onScroll"&&je("scroll",e),d||k===T||(d=[])):(d=d||[]).push(D,T))}o&&(d=d||[]).push("style",o);var D=d;(t.updateQueue=D)&&(t.flags|=4)}},Cp=function(e,t,o,s){o!==s&&(t.flags|=4)};function Zi(e,t){if(!He)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,s=0;if(t)for(var u=e.child;u!==null;)o|=u.lanes|u.childLanes,s|=u.subtreeFlags&14680064,s|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=s,e.childLanes=o,t}function jg(e,t,o){var s=t.pendingProps;switch(Xa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return Rt(t.type)&&Xs(),ht(t),null;case 3:return s=t.stateNode,$o(),Be(bt),Be(ft),cu(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(nl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rn!==null&&(Bu(rn),rn=null))),Mu(e,t),ht(t),null;case 5:au(t);var u=Zr(Ki.current);if(o=t.type,e!==null&&t.stateNode!=null)Sp(e,t,o,s,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(i(166));return ht(t),null}if(e=Zr(Pn.current),nl(t)){s=t.stateNode,o=t.type;var d=t.memoizedProps;switch(s[Rn]=t,s[Hi]=d,e=(t.mode&1)!==0,o){case"dialog":je("cancel",s),je("close",s);break;case"iframe":case"object":case"embed":je("load",s);break;case"video":case"audio":for(u=0;u<ji.length;u++)je(ji[u],s);break;case"source":je("error",s);break;case"img":case"image":case"link":je("error",s),je("load",s);break;case"details":je("toggle",s);break;case"input":yn(s,d),je("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!d.multiple},je("invalid",s);break;case"textarea":wn(s,d),je("invalid",s)}Cn(o,d),u=null;for(var m in d)if(d.hasOwnProperty(m)){var k=d[m];m==="children"?typeof k=="string"?s.textContent!==k&&(d.suppressHydrationWarning!==!0&&Ys(s.textContent,k,e),u=["children",k]):typeof k=="number"&&s.textContent!==""+k&&(d.suppressHydrationWarning!==!0&&Ys(s.textContent,k,e),u=["children",""+k]):a.hasOwnProperty(m)&&k!=null&&m==="onScroll"&&je("scroll",s)}switch(o){case"input":Te(s),or(s,d,!0);break;case"textarea":Te(s),Es(s);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(s.onclick=qs)}s=u,t.updateQueue=s,s!==null&&(t.flags|=4)}else{m=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=yt(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=m.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=m.createElement(o,{is:s.is}):(e=m.createElement(o),o==="select"&&(m=e,s.multiple?m.multiple=!0:s.size&&(m.size=s.size))):e=m.createElementNS(e,o),e[Rn]=t,e[Hi]=s,xp(e,t,!1,!1),t.stateNode=e;e:{switch(m=Ci(o,s),o){case"dialog":je("cancel",e),je("close",e),u=s;break;case"iframe":case"object":case"embed":je("load",e),u=s;break;case"video":case"audio":for(u=0;u<ji.length;u++)je(ji[u],e);u=s;break;case"source":je("error",e),u=s;break;case"img":case"image":case"link":je("error",e),je("load",e),u=s;break;case"details":je("toggle",e),u=s;break;case"input":yn(e,s),u=dt(e,s),je("invalid",e);break;case"option":u=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},u=V({},s,{value:void 0}),je("invalid",e);break;case"textarea":wn(e,s),u=Co(e,s),je("invalid",e);break;default:u=s}Cn(o,u),k=u;for(d in k)if(k.hasOwnProperty(d)){var T=k[d];d==="style"?zn(e,T):d==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&ks(e,T)):d==="children"?typeof T=="string"?(o!=="textarea"||T!=="")&&Sn(e,T):typeof T=="number"&&Sn(e,""+T):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(a.hasOwnProperty(d)?T!=null&&d==="onScroll"&&je("scroll",e):T!=null&&R(e,d,T,m))}switch(o){case"input":Te(e),or(e,s,!1);break;case"textarea":Te(e),Es(e);break;case"option":s.value!=null&&e.setAttribute("value",""+fe(s.value));break;case"select":e.multiple=!!s.multiple,d=s.value,d!=null?Ht(e,!!s.multiple,d,!1):s.defaultValue!=null&&Ht(e,!!s.multiple,s.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=qs)}switch(o){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 ht(t),null;case 6:if(e&&t.stateNode!=null)Cp(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(o=Zr(Ki.current),Zr(Pn.current),nl(t)){if(s=t.stateNode,o=t.memoizedProps,s[Rn]=t,(d=s.nodeValue!==o)&&(e=Dt,e!==null))switch(e.tag){case 3:Ys(s.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ys(s.nodeValue,o,(e.mode&1)!==0)}d&&(t.flags|=4)}else s=(o.nodeType===9?o:o.ownerDocument).createTextNode(s),s[Rn]=t,t.stateNode=s}return ht(t),null;case 13:if(Be(We),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(He&&Ft!==null&&(t.mode&1)!==0&&(t.flags&128)===0)bf(),jo(),t.flags|=98560,d=!1;else if(d=nl(t),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[Rn]=t}else jo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ht(t),d=!1}else rn!==null&&(Bu(rn),rn=null),d=!0;if(!d)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=o,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?tt===0&&(tt=3):$u())),t.updateQueue!==null&&(t.flags|=4),ht(t),null);case 4:return $o(),Mu(e,t),e===null&&Bi(t.stateNode.containerInfo),ht(t),null;case 10:return ru(t.type._context),ht(t),null;case 17:return Rt(t.type)&&Xs(),ht(t),null;case 19:if(Be(We),d=t.memoizedState,d===null)return ht(t),null;if(s=(t.flags&128)!==0,m=d.rendering,m===null)if(s)Zi(d,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=al(e),m!==null){for(t.flags|=128,Zi(d,!1),s=m.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=o,o=t.child;o!==null;)d=o,e=s,d.flags&=14680066,m=d.alternate,m===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=m.childLanes,d.lanes=m.lanes,d.child=m.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=m.memoizedProps,d.memoizedState=m.memoizedState,d.updateQueue=m.updateQueue,d.type=m.type,e=m.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return ze(We,We.current&1|2),t.child}e=e.sibling}d.tail!==null&&qe()>Ko&&(t.flags|=128,s=!0,Zi(d,!1),t.lanes=4194304)}else{if(!s)if(e=al(m),e!==null){if(t.flags|=128,s=!0,o=e.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),Zi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!m.alternate&&!He)return ht(t),null}else 2*qe()-d.renderingStartTime>Ko&&o!==1073741824&&(t.flags|=128,s=!0,Zi(d,!1),t.lanes=4194304);d.isBackwards?(m.sibling=t.child,t.child=m):(o=d.last,o!==null?o.sibling=m:t.child=m,d.last=m)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=qe(),t.sibling=null,o=We.current,ze(We,s?o&1|2:o&1),t):(ht(t),null);case 22:case 23:return Hu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(zt&1073741824)!==0&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Bg(e,t){switch(Xa(t),t.tag){case 1:return Rt(t.type)&&Xs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $o(),Be(bt),Be(ft),cu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return au(t),null;case 13:if(Be(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Be(We),null;case 4:return $o(),null;case 10:return ru(t.type._context),null;case 22:case 23:return Hu(),null;case 24:return null;default:return null}}var yl=!1,mt=!1,Ug=typeof WeakSet=="function"?WeakSet:Set,se=null;function Vo(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(s){Qe(e,t,s)}else o.current=null}function Ou(e,t,o){try{o()}catch(s){Qe(e,t,s)}}var Ep=!1;function Hg(e,t){if(Ha=Fs,e=ef(),Ia(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var u=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{o.nodeType,d.nodeType}catch{o=null;break e}var m=0,k=-1,T=-1,D=0,W=0,Q=e,$=null;t:for(;;){for(var oe;Q!==o||u!==0&&Q.nodeType!==3||(k=m+u),Q!==d||s!==0&&Q.nodeType!==3||(T=m+s),Q.nodeType===3&&(m+=Q.nodeValue.length),(oe=Q.firstChild)!==null;)$=Q,Q=oe;for(;;){if(Q===e)break t;if($===o&&++D===u&&(k=m),$===d&&++W===s&&(T=m),(oe=Q.nextSibling)!==null)break;Q=$,$=Q.parentNode}Q=oe}o=k===-1||T===-1?null:{start:k,end:T}}else o=null}o=o||{start:0,end:0}}else o=null;for($a={focusedElem:e,selectionRange:o},Fs=!1,se=t;se!==null;)if(t=se,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,se=e;else for(;se!==null;){t=se;try{var le=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(le!==null){var ue=le.memoizedProps,Ge=le.memoizedState,I=t.stateNode,N=I.getSnapshotBeforeUpdate(t.elementType===t.type?ue:on(t.type,ue),Ge);I.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var A=t.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(q){Qe(t,t.return,q)}if(e=t.sibling,e!==null){e.return=t.return,se=e;break}se=t.return}return le=Ep,Ep=!1,le}function Ji(e,t,o){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var u=s=s.next;do{if((u.tag&e)===e){var d=u.destroy;u.destroy=void 0,d!==void 0&&Ou(t,o,d)}u=u.next}while(u!==s)}}function gl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var s=o.create;o.destroy=s()}o=o.next}while(o!==t)}}function _u(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof t=="function"?t(e):t.current=e}}function kp(e){var t=e.alternate;t!==null&&(e.alternate=null,kp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rn],delete t[Hi],delete t[Ka],delete t[kg],delete t[bg])),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 bp(e){return e.tag===5||e.tag===3||e.tag===4}function Rp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bp(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 Nu(e,t,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?o.nodeType===8?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(o.nodeType===8?(t=o.parentNode,t.insertBefore(e,o)):(t=o,t.appendChild(e)),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=qs));else if(s!==4&&(e=e.child,e!==null))for(Nu(e,t,o),e=e.sibling;e!==null;)Nu(e,t,o),e=e.sibling}function Lu(e,t,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Lu(e,t,o),e=e.sibling;e!==null;)Lu(e,t,o),e=e.sibling}var at=null,sn=!1;function wr(e,t,o){for(o=o.child;o!==null;)Pp(e,t,o),o=o.sibling}function Pp(e,t,o){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(_s,o)}catch{}switch(o.tag){case 5:mt||Vo(o,t);case 6:var s=at,u=sn;at=null,wr(e,t,o),at=s,sn=u,at!==null&&(sn?(e=at,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):at.removeChild(o.stateNode));break;case 18:at!==null&&(sn?(e=at,o=o.stateNode,e.nodeType===8?Qa(e.parentNode,o):e.nodeType===1&&Qa(e,o),_i(e)):Qa(at,o.stateNode));break;case 4:s=at,u=sn,at=o.stateNode.containerInfo,sn=!0,wr(e,t,o),at=s,sn=u;break;case 0:case 11:case 14:case 15:if(!mt&&(s=o.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){u=s=s.next;do{var d=u,m=d.destroy;d=d.tag,m!==void 0&&((d&2)!==0||(d&4)!==0)&&Ou(o,t,m),u=u.next}while(u!==s)}wr(e,t,o);break;case 1:if(!mt&&(Vo(o,t),s=o.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=o.memoizedProps,s.state=o.memoizedState,s.componentWillUnmount()}catch(k){Qe(o,t,k)}wr(e,t,o);break;case 21:wr(e,t,o);break;case 22:o.mode&1?(mt=(s=mt)||o.memoizedState!==null,wr(e,t,o),mt=s):wr(e,t,o);break;default:wr(e,t,o)}}function Tp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Ug),t.forEach(function(s){var u=Xg.bind(null,e,s);o.has(s)||(o.add(s),s.then(u,u))})}}function ln(e,t){var o=t.deletions;if(o!==null)for(var s=0;s<o.length;s++){var u=o[s];try{var d=e,m=t,k=m;e:for(;k!==null;){switch(k.tag){case 5:at=k.stateNode,sn=!1;break e;case 3:at=k.stateNode.containerInfo,sn=!0;break e;case 4:at=k.stateNode.containerInfo,sn=!0;break e}k=k.return}if(at===null)throw Error(i(160));Pp(d,m,u),at=null,sn=!1;var T=u.alternate;T!==null&&(T.return=null),u.return=null}catch(D){Qe(u,t,D)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mp(t,e),t=t.sibling}function Mp(e,t){var o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ln(t,e),Mn(e),s&4){try{Ji(3,e,e.return),gl(3,e)}catch(ue){Qe(e,e.return,ue)}try{Ji(5,e,e.return)}catch(ue){Qe(e,e.return,ue)}}break;case 1:ln(t,e),Mn(e),s&512&&o!==null&&Vo(o,o.return);break;case 5:if(ln(t,e),Mn(e),s&512&&o!==null&&Vo(o,o.return),e.flags&32){var u=e.stateNode;try{Sn(u,"")}catch(ue){Qe(e,e.return,ue)}}if(s&4&&(u=e.stateNode,u!=null)){var d=e.memoizedProps,m=o!==null?o.memoizedProps:d,k=e.type,T=e.updateQueue;if(e.updateQueue=null,T!==null)try{k==="input"&&d.type==="radio"&&d.name!=null&&Xt(u,d),Ci(k,m);var D=Ci(k,d);for(m=0;m<T.length;m+=2){var W=T[m],Q=T[m+1];W==="style"?zn(u,Q):W==="dangerouslySetInnerHTML"?ks(u,Q):W==="children"?Sn(u,Q):R(u,W,Q,D)}switch(k){case"input":Zt(u,d);break;case"textarea":Cs(u,d);break;case"select":var $=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!d.multiple;var oe=d.value;oe!=null?Ht(u,!!d.multiple,oe,!1):$!==!!d.multiple&&(d.defaultValue!=null?Ht(u,!!d.multiple,d.defaultValue,!0):Ht(u,!!d.multiple,d.multiple?[]:"",!1))}u[Hi]=d}catch(ue){Qe(e,e.return,ue)}}break;case 6:if(ln(t,e),Mn(e),s&4){if(e.stateNode===null)throw Error(i(162));u=e.stateNode,d=e.memoizedProps;try{u.nodeValue=d}catch(ue){Qe(e,e.return,ue)}}break;case 3:if(ln(t,e),Mn(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{_i(t.containerInfo)}catch(ue){Qe(e,e.return,ue)}break;case 4:ln(t,e),Mn(e);break;case 13:ln(t,e),Mn(e),u=e.child,u.flags&8192&&(d=u.memoizedState!==null,u.stateNode.isHidden=d,!d||u.alternate!==null&&u.alternate.memoizedState!==null||(Du=qe())),s&4&&Tp(e);break;case 22:if(W=o!==null&&o.memoizedState!==null,e.mode&1?(mt=(D=mt)||W,ln(t,e),mt=D):ln(t,e),Mn(e),s&8192){if(D=e.memoizedState!==null,(e.stateNode.isHidden=D)&&!W&&(e.mode&1)!==0)for(se=e,W=e.child;W!==null;){for(Q=se=W;se!==null;){switch($=se,oe=$.child,$.tag){case 0:case 11:case 14:case 15:Ji(4,$,$.return);break;case 1:Vo($,$.return);var le=$.stateNode;if(typeof le.componentWillUnmount=="function"){s=$,o=$.return;try{t=s,le.props=t.memoizedProps,le.state=t.memoizedState,le.componentWillUnmount()}catch(ue){Qe(s,o,ue)}}break;case 5:Vo($,$.return);break;case 22:if($.memoizedState!==null){Np(Q);continue}}oe!==null?(oe.return=$,se=oe):Np(Q)}W=W.sibling}e:for(W=null,Q=e;;){if(Q.tag===5){if(W===null){W=Q;try{u=Q.stateNode,D?(d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(k=Q.stateNode,T=Q.memoizedProps.style,m=T!=null&&T.hasOwnProperty("display")?T.display:null,k.style.display=ko("display",m))}catch(ue){Qe(e,e.return,ue)}}}else if(Q.tag===6){if(W===null)try{Q.stateNode.nodeValue=D?"":Q.memoizedProps}catch(ue){Qe(e,e.return,ue)}}else if((Q.tag!==22&&Q.tag!==23||Q.memoizedState===null||Q===e)&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===e)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===e)break e;W===Q&&(W=null),Q=Q.return}W===Q&&(W=null),Q.sibling.return=Q.return,Q=Q.sibling}}break;case 19:ln(t,e),Mn(e),s&4&&Tp(e);break;case 21:break;default:ln(t,e),Mn(e)}}function Mn(e){var t=e.flags;if(t&2){try{e:{for(var o=e.return;o!==null;){if(bp(o)){var s=o;break e}o=o.return}throw Error(i(160))}switch(s.tag){case 5:var u=s.stateNode;s.flags&32&&(Sn(u,""),s.flags&=-33);var d=Rp(e);Lu(e,d,u);break;case 3:case 4:var m=s.stateNode.containerInfo,k=Rp(e);Nu(e,k,m);break;default:throw Error(i(161))}}catch(T){Qe(e,e.return,T)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $g(e,t,o){se=e,Op(e)}function Op(e,t,o){for(var s=(e.mode&1)!==0;se!==null;){var u=se,d=u.child;if(u.tag===22&&s){var m=u.memoizedState!==null||yl;if(!m){var k=u.alternate,T=k!==null&&k.memoizedState!==null||mt;k=yl;var D=mt;if(yl=m,(mt=T)&&!D)for(se=u;se!==null;)m=se,T=m.child,m.tag===22&&m.memoizedState!==null?Lp(u):T!==null?(T.return=m,se=T):Lp(u);for(;d!==null;)se=d,Op(d),d=d.sibling;se=u,yl=k,mt=D}_p(e)}else(u.subtreeFlags&8772)!==0&&d!==null?(d.return=u,se=d):_p(e)}}function _p(e){for(;se!==null;){var t=se;if((t.flags&8772)!==0){var o=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:mt||gl(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!mt)if(o===null)s.componentDidMount();else{var u=t.elementType===t.type?o.memoizedProps:on(t.type,o.memoizedProps);s.componentDidUpdate(u,o.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&Nf(t,d,s);break;case 3:var m=t.updateQueue;if(m!==null){if(o=null,t.child!==null)switch(t.child.tag){case 5:o=t.child.stateNode;break;case 1:o=t.child.stateNode}Nf(t,m,o)}break;case 5:var k=t.stateNode;if(o===null&&t.flags&4){o=k;var T=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&o.focus();break;case"img":T.src&&(o.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var D=t.alternate;if(D!==null){var W=D.memoizedState;if(W!==null){var Q=W.dehydrated;Q!==null&&_i(Q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}mt||t.flags&512&&_u(t)}catch($){Qe(t,t.return,$)}}if(t===e){se=null;break}if(o=t.sibling,o!==null){o.return=t.return,se=o;break}se=t.return}}function Np(e){for(;se!==null;){var t=se;if(t===e){se=null;break}var o=t.sibling;if(o!==null){o.return=t.return,se=o;break}se=t.return}}function Lp(e){for(;se!==null;){var t=se;try{switch(t.tag){case 0:case 11:case 15:var o=t.return;try{gl(4,t)}catch(T){Qe(t,o,T)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var u=t.return;try{s.componentDidMount()}catch(T){Qe(t,u,T)}}var d=t.return;try{_u(t)}catch(T){Qe(t,d,T)}break;case 5:var m=t.return;try{_u(t)}catch(T){Qe(t,m,T)}}}catch(T){Qe(t,t.return,T)}if(t===e){se=null;break}var k=t.sibling;if(k!==null){k.return=t.return,se=k;break}se=t.return}}var Wg=Math.ceil,wl=L.ReactCurrentDispatcher,Iu=L.ReactCurrentOwner,Kt=L.ReactCurrentBatchConfig,Ne=0,ot=null,Ze=null,ut=0,zt=0,Qo=hr(0),tt=0,es=null,eo=0,xl=0,Au=0,ts=null,Tt=null,Du=0,Ko=1/0,Qn=null,Sl=!1,Fu=null,xr=null,Cl=!1,Sr=null,El=0,ns=0,zu=null,kl=-1,bl=0;function xt(){return(Ne&6)!==0?qe():kl!==-1?kl:kl=qe()}function Cr(e){return(e.mode&1)===0?1:(Ne&2)!==0&&ut!==0?ut&-ut:Pg.transition!==null?(bl===0&&(bl=bd()),bl):(e=De,e!==0||(e=window.event,e=e===void 0?16:Id(e.type)),e)}function an(e,t,o,s){if(50<ns)throw ns=0,zu=null,Error(i(185));Ri(e,o,s),((Ne&2)===0||e!==ot)&&(e===ot&&((Ne&2)===0&&(xl|=o),tt===4&&Er(e,ut)),Mt(e,s),o===1&&Ne===0&&(t.mode&1)===0&&(Ko=qe()+500,Js&&vr()))}function Mt(e,t){var o=e.callbackNode;Py(e,t);var s=Is(e,e===ot?ut:0);if(s===0)o!==null&&Cd(o),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(o!=null&&Cd(o),t===1)e.tag===0?Rg(Ap.bind(null,e)):xf(Ap.bind(null,e)),Cg(function(){(Ne&6)===0&&vr()}),o=null;else{switch(Rd(s)){case 1:o=ya;break;case 4:o=Ed;break;case 16:o=Os;break;case 536870912:o=kd;break;default:o=Os}o=$p(o,Ip.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function Ip(e,t){if(kl=-1,bl=0,(Ne&6)!==0)throw Error(i(327));var o=e.callbackNode;if(Yo()&&e.callbackNode!==o)return null;var s=Is(e,e===ot?ut:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=Rl(e,s);else{t=s;var u=Ne;Ne|=2;var d=Fp();(ot!==e||ut!==t)&&(Qn=null,Ko=qe()+500,no(e,t));do try{Kg();break}catch(k){Dp(e,k)}while(!0);nu(),wl.current=d,Ne=u,Ze!==null?t=0:(ot=null,ut=0,t=tt)}if(t!==0){if(t===2&&(u=ga(e),u!==0&&(s=u,t=ju(e,u))),t===1)throw o=es,no(e,0),Er(e,s),Mt(e,qe()),o;if(t===6)Er(e,s);else{if(u=e.current.alternate,(s&30)===0&&!Vg(u)&&(t=Rl(e,s),t===2&&(d=ga(e),d!==0&&(s=d,t=ju(e,d))),t===1))throw o=es,no(e,0),Er(e,s),Mt(e,qe()),o;switch(e.finishedWork=u,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:ro(e,Tt,Qn);break;case 3:if(Er(e,s),(s&130023424)===s&&(t=Du+500-qe(),10<t)){if(Is(e,0)!==0)break;if(u=e.suspendedLanes,(u&s)!==s){xt(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=Va(ro.bind(null,e,Tt,Qn),t);break}ro(e,Tt,Qn);break;case 4:if(Er(e,s),(s&4194240)===s)break;for(t=e.eventTimes,u=-1;0<s;){var m=31-tn(s);d=1<<m,m=t[m],m>u&&(u=m),s&=~d}if(s=u,s=qe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Wg(s/1960))-s,10<s){e.timeoutHandle=Va(ro.bind(null,e,Tt,Qn),s);break}ro(e,Tt,Qn);break;case 5:ro(e,Tt,Qn);break;default:throw Error(i(329))}}}return Mt(e,qe()),e.callbackNode===o?Ip.bind(null,e):null}function ju(e,t){var o=ts;return e.current.memoizedState.isDehydrated&&(no(e,t).flags|=256),e=Rl(e,t),e!==2&&(t=Tt,Tt=o,t!==null&&Bu(t)),e}function Bu(e){Tt===null?Tt=e:Tt.push.apply(Tt,e)}function Vg(e){for(var t=e;;){if(t.flags&16384){var o=t.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var s=0;s<o.length;s++){var u=o[s],d=u.getSnapshot;u=u.value;try{if(!nn(d(),u))return!1}catch{return!1}}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;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 Er(e,t){for(t&=~Au,t&=~xl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var o=31-tn(t),s=1<<o;e[o]=-1,t&=~s}}function Ap(e){if((Ne&6)!==0)throw Error(i(327));Yo();var t=Is(e,0);if((t&1)===0)return Mt(e,qe()),null;var o=Rl(e,t);if(e.tag!==0&&o===2){var s=ga(e);s!==0&&(t=s,o=ju(e,s))}if(o===1)throw o=es,no(e,0),Er(e,t),Mt(e,qe()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ro(e,Tt,Qn),Mt(e,qe()),null}function Uu(e,t){var o=Ne;Ne|=1;try{return e(t)}finally{Ne=o,Ne===0&&(Ko=qe()+500,Js&&vr())}}function to(e){Sr!==null&&Sr.tag===0&&(Ne&6)===0&&Yo();var t=Ne;Ne|=1;var o=Kt.transition,s=De;try{if(Kt.transition=null,De=1,e)return e()}finally{De=s,Kt.transition=o,Ne=t,(Ne&6)===0&&vr()}}function Hu(){zt=Qo.current,Be(Qo)}function no(e,t){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Sg(o)),Ze!==null)for(o=Ze.return;o!==null;){var s=o;switch(Xa(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Xs();break;case 3:$o(),Be(bt),Be(ft),cu();break;case 5:au(s);break;case 4:$o();break;case 13:Be(We);break;case 19:Be(We);break;case 10:ru(s.type._context);break;case 22:case 23:Hu()}o=o.return}if(ot=e,Ze=e=kr(e.current,null),ut=zt=t,tt=0,es=null,Au=xl=eo=0,Tt=ts=null,Xr!==null){for(t=0;t<Xr.length;t++)if(o=Xr[t],s=o.interleaved,s!==null){o.interleaved=null;var u=s.next,d=o.pending;if(d!==null){var m=d.next;d.next=u,s.next=m}o.pending=s}Xr=null}return e}function Dp(e,t){do{var o=Ze;try{if(nu(),ul.current=pl,cl){for(var s=Ve.memoizedState;s!==null;){var u=s.queue;u!==null&&(u.pending=null),s=s.next}cl=!1}if(Jr=0,rt=et=Ve=null,Yi=!1,qi=0,Iu.current=null,o===null||o.return===null){tt=1,es=t,Ze=null;break}e:{var d=e,m=o.return,k=o,T=t;if(t=ut,k.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var D=T,W=k,Q=W.tag;if((W.mode&1)===0&&(Q===0||Q===11||Q===15)){var $=W.alternate;$?(W.updateQueue=$.updateQueue,W.memoizedState=$.memoizedState,W.lanes=$.lanes):(W.updateQueue=null,W.memoizedState=null)}var oe=lp(m);if(oe!==null){oe.flags&=-257,ap(oe,m,k,d,t),oe.mode&1&&sp(d,D,t),t=oe,T=D;var le=t.updateQueue;if(le===null){var ue=new Set;ue.add(T),t.updateQueue=ue}else le.add(T);break e}else{if((t&1)===0){sp(d,D,t),$u();break e}T=Error(i(426))}}else if(He&&k.mode&1){var Ge=lp(m);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),ap(Ge,m,k,d,t),eu(Wo(T,k));break e}}d=T=Wo(T,k),tt!==4&&(tt=2),ts===null?ts=[d]:ts.push(d),d=m;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var I=op(d,T,t);_f(d,I);break e;case 1:k=T;var N=d.type,A=d.stateNode;if((d.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(xr===null||!xr.has(A)))){d.flags|=65536,t&=-t,d.lanes|=t;var q=ip(d,k,t);_f(d,q);break e}}d=d.return}while(d!==null)}jp(o)}catch(de){t=de,Ze===o&&o!==null&&(Ze=o=o.return);continue}break}while(!0)}function Fp(){var e=wl.current;return wl.current=pl,e===null?pl:e}function $u(){(tt===0||tt===3||tt===2)&&(tt=4),ot===null||(eo&268435455)===0&&(xl&268435455)===0||Er(ot,ut)}function Rl(e,t){var o=Ne;Ne|=2;var s=Fp();(ot!==e||ut!==t)&&(Qn=null,no(e,t));do try{Qg();break}catch(u){Dp(e,u)}while(!0);if(nu(),Ne=o,wl.current=s,Ze!==null)throw Error(i(261));return ot=null,ut=0,tt}function Qg(){for(;Ze!==null;)zp(Ze)}function Kg(){for(;Ze!==null&&!gy();)zp(Ze)}function zp(e){var t=Hp(e.alternate,e,zt);e.memoizedProps=e.pendingProps,t===null?jp(e):Ze=t,Iu.current=null}function jp(e){var t=e;do{var o=t.alternate;if(e=t.return,(t.flags&32768)===0){if(o=jg(o,t,zt),o!==null){Ze=o;return}}else{if(o=Bg(o,t),o!==null){o.flags&=32767,Ze=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{tt=6,Ze=null;return}}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);tt===0&&(tt=5)}function ro(e,t,o){var s=De,u=Kt.transition;try{Kt.transition=null,De=1,Yg(e,t,o,s)}finally{Kt.transition=u,De=s}return null}function Yg(e,t,o,s){do Yo();while(Sr!==null);if((Ne&6)!==0)throw Error(i(327));o=e.finishedWork;var u=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var d=o.lanes|o.childLanes;if(Ty(e,d),e===ot&&(Ze=ot=null,ut=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Cl||(Cl=!0,$p(Os,function(){return Yo(),null})),d=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||d){d=Kt.transition,Kt.transition=null;var m=De;De=1;var k=Ne;Ne|=4,Iu.current=null,Hg(e,o),Mp(o,e),hg($a),Fs=!!Ha,$a=Ha=null,e.current=o,$g(o),wy(),Ne=k,De=m,Kt.transition=d}else e.current=o;if(Cl&&(Cl=!1,Sr=e,El=u),d=e.pendingLanes,d===0&&(xr=null),Cy(o.stateNode),Mt(e,qe()),t!==null)for(s=e.onRecoverableError,o=0;o<t.length;o++)u=t[o],s(u.value,{componentStack:u.stack,digest:u.digest});if(Sl)throw Sl=!1,e=Fu,Fu=null,e;return(El&1)!==0&&e.tag!==0&&Yo(),d=e.pendingLanes,(d&1)!==0?e===zu?ns++:(ns=0,zu=e):ns=0,vr(),null}function Yo(){if(Sr!==null){var e=Rd(El),t=Kt.transition,o=De;try{if(Kt.transition=null,De=16>e?16:e,Sr===null)var s=!1;else{if(e=Sr,Sr=null,El=0,(Ne&6)!==0)throw Error(i(331));var u=Ne;for(Ne|=4,se=e.current;se!==null;){var d=se,m=d.child;if((se.flags&16)!==0){var k=d.deletions;if(k!==null){for(var T=0;T<k.length;T++){var D=k[T];for(se=D;se!==null;){var W=se;switch(W.tag){case 0:case 11:case 15:Ji(8,W,d)}var Q=W.child;if(Q!==null)Q.return=W,se=Q;else for(;se!==null;){W=se;var $=W.sibling,oe=W.return;if(kp(W),W===D){se=null;break}if($!==null){$.return=oe,se=$;break}se=oe}}}var le=d.alternate;if(le!==null){var ue=le.child;if(ue!==null){le.child=null;do{var Ge=ue.sibling;ue.sibling=null,ue=Ge}while(ue!==null)}}se=d}}if((d.subtreeFlags&2064)!==0&&m!==null)m.return=d,se=m;else e:for(;se!==null;){if(d=se,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:Ji(9,d,d.return)}var I=d.sibling;if(I!==null){I.return=d.return,se=I;break e}se=d.return}}var N=e.current;for(se=N;se!==null;){m=se;var A=m.child;if((m.subtreeFlags&2064)!==0&&A!==null)A.return=m,se=A;else e:for(m=N;se!==null;){if(k=se,(k.flags&2048)!==0)try{switch(k.tag){case 0:case 11:case 15:gl(9,k)}}catch(de){Qe(k,k.return,de)}if(k===m){se=null;break e}var q=k.sibling;if(q!==null){q.return=k.return,se=q;break e}se=k.return}}if(Ne=u,vr(),bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(_s,e)}catch{}s=!0}return s}finally{De=o,Kt.transition=t}}return!1}function Bp(e,t,o){t=Wo(o,t),t=op(e,t,1),e=gr(e,t,1),t=xt(),e!==null&&(Ri(e,1,t),Mt(e,t))}function Qe(e,t,o){if(e.tag===3)Bp(e,e,o);else for(;t!==null;){if(t.tag===3){Bp(t,e,o);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(xr===null||!xr.has(s))){e=Wo(o,e),e=ip(t,e,1),t=gr(t,e,1),e=xt(),t!==null&&(Ri(t,1,e),Mt(t,e));break}}t=t.return}}function qg(e,t,o){var s=e.pingCache;s!==null&&s.delete(t),t=xt(),e.pingedLanes|=e.suspendedLanes&o,ot===e&&(ut&o)===o&&(tt===4||tt===3&&(ut&130023424)===ut&&500>qe()-Du?no(e,0):Au|=o),Mt(e,t)}function Up(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ls,Ls<<=1,(Ls&130023424)===0&&(Ls=4194304)));var o=xt();e=$n(e,t),e!==null&&(Ri(e,t,o),Mt(e,o))}function Gg(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),Up(e,o)}function Xg(e,t){var o=0;switch(e.tag){case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(o=u.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(t),Up(e,o)}var Hp;Hp=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)Pt=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return Pt=!1,zg(e,t,o);Pt=(e.flags&131072)!==0}else Pt=!1,He&&(t.flags&1048576)!==0&&Sf(t,tl,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;vl(e,t),e=t.pendingProps;var u=Do(t,ft.current);Ho(t,o),u=pu(null,t,s,e,u,o);var d=hu();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rt(s)?(d=!0,Zs(t)):d=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,su(t),u.updater=hl,t.stateNode=u,u._reactInternals=t,xu(t,s,e,o),t=ku(null,t,s,!0,d,o)):(t.tag=0,He&&d&&Ga(t),wt(null,t,u,o),t=t.child),t;case 16:s=t.elementType;e:{switch(vl(e,t),e=t.pendingProps,u=s._init,s=u(s._payload),t.type=s,u=t.tag=Jg(s),e=on(s,e),u){case 0:t=Eu(null,t,s,e,o);break e;case 1:t=hp(null,t,s,e,o);break e;case 11:t=up(null,t,s,e,o);break e;case 14:t=cp(null,t,s,on(s.type,e),o);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:on(s,u),Eu(e,t,s,u,o);case 1:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:on(s,u),hp(e,t,s,u,o);case 3:e:{if(mp(t),e===null)throw Error(i(387));s=t.pendingProps,d=t.memoizedState,u=d.element,Of(e,t),ll(t,s,null,o);var m=t.memoizedState;if(s=m.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){u=Wo(Error(i(423)),t),t=vp(e,t,s,o,u);break e}else if(s!==u){u=Wo(Error(i(424)),t),t=vp(e,t,s,o,u);break e}else for(Ft=pr(t.stateNode.containerInfo.firstChild),Dt=t,He=!0,rn=null,o=Tf(t,null,s,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(jo(),s===u){t=Vn(e,t,o);break e}wt(e,t,s,o)}t=t.child}return t;case 5:return Lf(t),e===null&&Ja(t),s=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,m=u.children,Wa(s,u)?m=null:d!==null&&Wa(s,d)&&(t.flags|=32),pp(e,t),wt(e,t,m,o),t.child;case 6:return e===null&&Ja(t),null;case 13:return yp(e,t,o);case 4:return lu(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Bo(t,null,s,o):wt(e,t,s,o),t.child;case 11:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:on(s,u),up(e,t,s,u,o);case 7:return wt(e,t,t.pendingProps,o),t.child;case 8:return wt(e,t,t.pendingProps.children,o),t.child;case 12:return wt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(s=t.type._context,u=t.pendingProps,d=t.memoizedProps,m=u.value,ze(ol,s._currentValue),s._currentValue=m,d!==null)if(nn(d.value,m)){if(d.children===u.children&&!bt.current){t=Vn(e,t,o);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var k=d.dependencies;if(k!==null){m=d.child;for(var T=k.firstContext;T!==null;){if(T.context===s){if(d.tag===1){T=Wn(-1,o&-o),T.tag=2;var D=d.updateQueue;if(D!==null){D=D.shared;var W=D.pending;W===null?T.next=T:(T.next=W.next,W.next=T),D.pending=T}}d.lanes|=o,T=d.alternate,T!==null&&(T.lanes|=o),ou(d.return,o,t),k.lanes|=o;break}T=T.next}}else if(d.tag===10)m=d.type===t.type?null:d.child;else if(d.tag===18){if(m=d.return,m===null)throw Error(i(341));m.lanes|=o,k=m.alternate,k!==null&&(k.lanes|=o),ou(m,o,t),m=d.sibling}else m=d.child;if(m!==null)m.return=d;else for(m=d;m!==null;){if(m===t){m=null;break}if(d=m.sibling,d!==null){d.return=m.return,m=d;break}m=m.return}d=m}wt(e,t,u.children,o),t=t.child}return t;case 9:return u=t.type,s=t.pendingProps.children,Ho(t,o),u=Vt(u),s=s(u),t.flags|=1,wt(e,t,s,o),t.child;case 14:return s=t.type,u=on(s,t.pendingProps),u=on(s.type,u),cp(e,t,s,u,o);case 15:return dp(e,t,t.type,t.pendingProps,o);case 17:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:on(s,u),vl(e,t),t.tag=1,Rt(s)?(e=!0,Zs(t)):e=!1,Ho(t,o),np(t,s,u),xu(t,s,u,o),ku(null,t,s,!0,e,o);case 19:return wp(e,t,o);case 22:return fp(e,t,o)}throw Error(i(156,t.tag))};function $p(e,t){return Sd(e,t)}function Zg(e,t,o,s){this.tag=e,this.key=o,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 Yt(e,t,o,s){return new Zg(e,t,o,s)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jg(e){if(typeof e=="function")return Wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===X)return 11;if(e===xe)return 14}return 2}function kr(e,t){var o=e.alternate;return o===null?(o=Yt(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Pl(e,t,o,s,u,d){var m=2;if(s=e,typeof e=="function")Wu(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case H:return oo(o.children,u,d,t);case Y:m=8,u|=8;break;case Z:return e=Yt(12,o,t,u|2),e.elementType=Z,e.lanes=d,e;case ye:return e=Yt(13,o,t,u),e.elementType=ye,e.lanes=d,e;case ce:return e=Yt(19,o,t,u),e.elementType=ce,e.lanes=d,e;case ie:return Tl(o,u,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case te:m=10;break e;case he:m=9;break e;case X:m=11;break e;case xe:m=14;break e;case ae:m=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Yt(m,o,t,u),t.elementType=e,t.type=s,t.lanes=d,t}function oo(e,t,o,s){return e=Yt(7,e,s,t),e.lanes=o,e}function Tl(e,t,o,s){return e=Yt(22,e,s,t),e.elementType=ie,e.lanes=o,e.stateNode={isHidden:!1},e}function Vu(e,t,o){return e=Yt(6,e,null,t),e.lanes=o,e}function Qu(e,t,o){return t=Yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function e0(e,t,o,s,u){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=wa(0),this.expirationTimes=wa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wa(0),this.identifierPrefix=s,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function Ku(e,t,o,s,u,d,m,k,T){return e=new e0(e,t,o,k,T),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Yt(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:s,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},su(d),e}function t0(e,t,o){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:s==null?null:""+s,children:e,containerInfo:t,implementation:o}}function Wp(e){if(!e)return mr;e=e._reactInternals;e:{if(Qr(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(Rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(Rt(o))return gf(e,o,t)}return t}function Vp(e,t,o,s,u,d,m,k,T){return e=Ku(o,s,!0,e,u,d,m,k,T),e.context=Wp(null),o=e.current,s=xt(),u=Cr(o),d=Wn(s,u),d.callback=t??null,gr(o,d,u),e.current.lanes=u,Ri(e,u,s),Mt(e,s),e}function Ml(e,t,o,s){var u=t.current,d=xt(),m=Cr(u);return o=Wp(o),t.context===null?t.context=o:t.pendingContext=o,t=Wn(d,m),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=gr(u,t,m),e!==null&&(an(e,u,m,d),sl(e,u,m)),m}function Ol(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 Qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function Yu(e,t){Qp(e,t),(e=e.alternate)&&Qp(e,t)}function n0(){return null}var Kp=typeof reportError=="function"?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}_l.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Ml(e,t,null,null)},_l.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;to(function(){Ml(null,e,null,null)}),t[jn]=null}};function _l(e){this._internalRoot=e}_l.prototype.unstable_scheduleHydration=function(e){if(e){var t=Md();e={blockedOn:null,target:e,priority:t};for(var o=0;o<cr.length&&t!==0&&t<cr[o].priority;o++);cr.splice(o,0,e),o===0&&Nd(e)}};function Gu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Yp(){}function r0(e,t,o,s,u){if(u){if(typeof s=="function"){var d=s;s=function(){var D=Ol(m);d.call(D)}}var m=Vp(t,s,e,0,null,!1,!1,"",Yp);return e._reactRootContainer=m,e[jn]=m.current,Bi(e.nodeType===8?e.parentNode:e),to(),m}for(;u=e.lastChild;)e.removeChild(u);if(typeof s=="function"){var k=s;s=function(){var D=Ol(T);k.call(D)}}var T=Ku(e,0,!1,null,null,!1,!1,"",Yp);return e._reactRootContainer=T,e[jn]=T.current,Bi(e.nodeType===8?e.parentNode:e),to(function(){Ml(t,T,o,s)}),T}function Ll(e,t,o,s,u){var d=o._reactRootContainer;if(d){var m=d;if(typeof u=="function"){var k=u;u=function(){var T=Ol(m);k.call(T)}}Ml(t,m,e,u)}else m=r0(o,t,e,u,s);return Ol(m)}Pd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var o=bi(t.pendingLanes);o!==0&&(xa(t,o|1),Mt(t,qe()),(Ne&6)===0&&(Ko=qe()+500,vr()))}break;case 13:to(function(){var s=$n(e,1);if(s!==null){var u=xt();an(s,e,1,u)}}),Yu(e,1)}},Sa=function(e){if(e.tag===13){var t=$n(e,134217728);if(t!==null){var o=xt();an(t,e,134217728,o)}Yu(e,134217728)}},Td=function(e){if(e.tag===13){var t=Cr(e),o=$n(e,t);if(o!==null){var s=xt();an(o,e,t,s)}Yu(e,t)}},Md=function(){return De},Od=function(e,t){var o=De;try{return De=e,t()}finally{De=o}},Ro=function(e,t,o){switch(t){case"input":if(Zt(e,o),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<o.length;t++){var s=o[t];if(s!==e&&s.form===e.form){var u=Gs(s);if(!u)throw Error(i(90));Oe(s),Zt(s,u)}}}break;case"textarea":Cs(e,o);break;case"select":t=o.value,t!=null&&Ht(e,!!o.multiple,t,!1)}},Ie=Uu,Fe=to;var o0={usingClientEntryPoint:!1,Events:[$i,Io,Gs,Ps,ke,Uu]},rs={findFiberByHostInstance:Kr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},i0={bundleType:rs.bundleType,version:rs.version,rendererPackageName:rs.rendererPackageName,rendererConfig:rs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wd(e),e===null?null:e.stateNode},findFiberByHostInstance:rs.findFiberByHostInstance||n0,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 Il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Il.isDisabled&&Il.supportsFiber)try{_s=Il.inject(i0),bn=Il}catch{}}return Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o0,Ot.createPortal=function(e,t){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gu(t))throw Error(i(200));return t0(e,t,null,o)},Ot.createRoot=function(e,t){if(!Gu(e))throw Error(i(299));var o=!1,s="",u=Kp;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=Ku(e,1,!1,null,null,o,!1,s,u),e[jn]=t.current,Bi(e.nodeType===8?e.parentNode:e),new qu(t)},Ot.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=wd(t),e=e===null?null:e.stateNode,e},Ot.flushSync=function(e){return to(e)},Ot.hydrate=function(e,t,o){if(!Nl(t))throw Error(i(200));return Ll(null,e,t,!0,o)},Ot.hydrateRoot=function(e,t,o){if(!Gu(e))throw Error(i(405));var s=o!=null&&o.hydratedSources||null,u=!1,d="",m=Kp;if(o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(m=o.onRecoverableError)),t=Vp(t,null,e,1,o??null,u,!1,d,m),e[jn]=t.current,Bi(e),s)for(e=0;e<s.length;e++)o=s[e],u=o._getVersion,u=u(o._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[o,u]:t.mutableSourceEagerHydrationData.push(o,u);return new _l(t)},Ot.render=function(e,t,o){if(!Nl(t))throw Error(i(200));return Ll(null,e,t,!1,o)},Ot.unmountComponentAtNode=function(e){if(!Nl(e))throw Error(i(40));return e._reactRootContainer?(to(function(){Ll(null,null,e,!1,function(){e._reactRootContainer=null,e[jn]=null})}),!0):!1},Ot.unstable_batchedUpdates=Uu,Ot.unstable_renderSubtreeIntoContainer=function(e,t,o,s){if(!Nl(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Ll(e,t,o,!1,s)},Ot.version="18.3.1-next-f1338f8080-20240426",Ot}var rh;function pm(){if(rh)return ec.exports;rh=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),ec.exports=p0(),ec.exports}var oh;function h0(){if(oh)return Dl;oh=1;var n=pm();return Dl.createRoot=n.createRoot,Dl.hydrateRoot=n.hydrateRoot,Dl}var VC=h0();/**
40
+ `+d.stack}return{value:e,source:t,stack:u,digest:null}}function Su(e,t,o){return{value:e,source:null,stack:o??null,digest:t??null}}function Cu(e,t){try{console.error(t.value)}catch(o){setTimeout(function(){throw o})}}var Ig=typeof WeakMap=="function"?WeakMap:Map;function op(e,t,o){o=Wn(-1,o),o.tag=3,o.payload={element:null};var s=t.value;return o.callback=function(){Sl||(Sl=!0,Fu=s),Cu(e,t)},o}function ip(e,t,o){o=Wn(-1,o),o.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var u=t.value;o.payload=function(){return s(u)},o.callback=function(){Cu(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(o.callback=function(){Cu(e,t),typeof s!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var m=t.stack;this.componentDidCatch(t.value,{componentStack:m!==null?m:""})}),o}function sp(e,t,o){var s=e.pingCache;if(s===null){s=e.pingCache=new Ig;var u=new Set;s.set(t,u)}else u=s.get(t),u===void 0&&(u=new Set,s.set(t,u));u.has(o)||(u.add(o),e=Yg.bind(null,e,t,o),t.then(e,e))}function lp(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 ap(e,t,o,s,u){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(t=Wn(-1,1),t.tag=2,gr(o,t,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=u,e)}var Dg=L.ReactCurrentOwner,Pt=!1;function wt(e,t,o,s){t.child=e===null?Mf(t,null,o,s):Bo(t,e.child,o,s)}function up(e,t,o,s,u){o=o.render;var d=t.ref;return Ho(t,u),s=pu(e,t,o,s,d,u),o=hu(),e!==null&&!Pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,Vn(e,t,u)):(He&&o&&Ga(t),t.flags|=1,wt(e,t,s,u),t.child)}function cp(e,t,o,s,u){if(e===null){var d=o.type;return typeof d=="function"&&!Wu(d)&&d.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=d,dp(e,t,d,s,u)):(e=Pl(o.type,null,s,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,(e.lanes&u)===0){var m=d.memoizedProps;if(o=o.compare,o=o!==null?o:Fi,o(m,s)&&e.ref===t.ref)return Vn(e,t,u)}return t.flags|=1,e=kr(d,s),e.ref=t.ref,e.return=t,t.child=e}function dp(e,t,o,s,u){if(e!==null){var d=e.memoizedProps;if(Fi(d,s)&&e.ref===t.ref)if(Pt=!1,t.pendingProps=s=d,(e.lanes&u)!==0)(e.flags&131072)!==0&&(Pt=!0);else return t.lanes=e.lanes,Vn(e,t,u)}return Eu(e,t,o,s,u)}function fp(e,t,o){var s=t.pendingProps,u=s.children,d=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ze(Qo,zt),zt|=o;else{if((o&1073741824)===0)return e=d!==null?d.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ze(Qo,zt),zt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=d!==null?d.baseLanes:o,ze(Qo,zt),zt|=s}else d!==null?(s=d.baseLanes|o,t.memoizedState=null):s=o,ze(Qo,zt),zt|=s;return wt(e,t,u,o),t.child}function pp(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function Eu(e,t,o,s,u){var d=Rt(o)?qr:ft.current;return d=Do(t,d),Ho(t,u),o=pu(e,t,o,s,d,u),s=hu(),e!==null&&!Pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,Vn(e,t,u)):(He&&s&&Ga(t),t.flags|=1,wt(e,t,o,u),t.child)}function hp(e,t,o,s,u){if(Rt(o)){var d=!0;Zs(t)}else d=!1;if(Ho(t,u),t.stateNode===null)yl(e,t),np(t,o,s),xu(t,o,s,u),s=!0;else if(e===null){var m=t.stateNode,k=t.memoizedProps;m.props=k;var M=m.context,D=o.contextType;typeof D=="object"&&D!==null?D=Vt(D):(D=Rt(o)?qr:ft.current,D=Do(t,D));var W=o.getDerivedStateFromProps,Q=typeof W=="function"||typeof m.getSnapshotBeforeUpdate=="function";Q||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(k!==s||M!==D)&&rp(t,m,s,D),vr=!1;var $=t.memoizedState;m.state=$,ll(t,s,m,u),M=t.memoizedState,k!==s||$!==M||bt.current||vr?(typeof W=="function"&&(wu(t,o,W,s),M=t.memoizedState),(k=vr||tp(t,o,k,s,$,M,D))?(Q||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=M),m.props=s,m.state=M,m.context=D,s=k):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{m=t.stateNode,Of(e,t),k=t.memoizedProps,D=t.type===t.elementType?k:on(t.type,k),m.props=D,Q=t.pendingProps,$=m.context,M=o.contextType,typeof M=="object"&&M!==null?M=Vt(M):(M=Rt(o)?qr:ft.current,M=Do(t,M));var oe=o.getDerivedStateFromProps;(W=typeof oe=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(k!==Q||$!==M)&&rp(t,m,s,M),vr=!1,$=t.memoizedState,m.state=$,ll(t,s,m,u);var le=t.memoizedState;k!==Q||$!==le||bt.current||vr?(typeof oe=="function"&&(wu(t,o,oe,s),le=t.memoizedState),(D=vr||tp(t,o,D,s,$,le,M)||!1)?(W||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,le,M),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,le,M)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||k===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||k===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=le),m.props=s,m.state=le,m.context=M,s=D):(typeof m.componentDidUpdate!="function"||k===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||k===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),s=!1)}return ku(e,t,o,s,d,u)}function ku(e,t,o,s,u,d){pp(e,t);var m=(t.flags&128)!==0;if(!s&&!m)return u&&wf(t,o,!1),Vn(e,t,d);s=t.stateNode,Dg.current=t;var k=m&&typeof o.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&m?(t.child=Bo(t,e.child,null,d),t.child=Bo(t,null,k,d)):wt(e,t,k,d),t.memoizedState=s.state,u&&wf(t,o,!0),t.child}function mp(e){var t=e.stateNode;t.pendingContext?vf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vf(e,t.context,!1),lu(e,t.containerInfo)}function yp(e,t,o,s,u){return jo(),eu(u),t.flags|=256,wt(e,t,o,s),t.child}var bu={dehydrated:null,treeContext:null,retryLane:0};function Ru(e){return{baseLanes:e,cachePool:null,transitions:null}}function vp(e,t,o){var s=t.pendingProps,u=We.current,d=!1,m=(t.flags&128)!==0,k;if((k=m)||(k=e!==null&&e.memoizedState===null?!1:(u&2)!==0),k?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),ze(We,u&1),e===null)return Ja(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):(m=s.children,e=s.fallback,d?(s=t.mode,d=t.child,m={mode:"hidden",children:m},(s&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=m):d=Ml(m,s,0,null),e=oo(e,s,o,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=Ru(o),t.memoizedState=bu,e):Pu(t,m));if(u=e.memoizedState,u!==null&&(k=u.dehydrated,k!==null))return Fg(e,t,m,s,k,u,o);if(d){d=s.fallback,m=t.mode,u=e.child,k=u.sibling;var M={mode:"hidden",children:s.children};return(m&1)===0&&t.child!==u?(s=t.child,s.childLanes=0,s.pendingProps=M,t.deletions=null):(s=kr(u,M),s.subtreeFlags=u.subtreeFlags&14680064),k!==null?d=kr(k,d):(d=oo(d,m,o,null),d.flags|=2),d.return=t,s.return=t,s.sibling=d,t.child=s,s=d,d=t.child,m=e.child.memoizedState,m=m===null?Ru(o):{baseLanes:m.baseLanes|o,cachePool:null,transitions:m.transitions},d.memoizedState=m,d.childLanes=e.childLanes&~o,t.memoizedState=bu,s}return d=e.child,e=d.sibling,s=kr(d,{mode:"visible",children:s.children}),(t.mode&1)===0&&(s.lanes=o),s.return=t,s.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=s,t.memoizedState=null,s}function Pu(e,t){return t=Ml({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ml(e,t,o,s){return s!==null&&eu(s),Bo(t,e.child,null,o),e=Pu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fg(e,t,o,s,u,d,m){if(o)return t.flags&256?(t.flags&=-257,s=Su(Error(i(422))),ml(e,t,m,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=s.fallback,u=t.mode,s=Ml({mode:"visible",children:s.children},u,0,null),d=oo(d,u,m,null),d.flags|=2,s.return=t,d.return=t,s.sibling=d,t.child=s,(t.mode&1)!==0&&Bo(t,e.child,null,m),t.child.memoizedState=Ru(m),t.memoizedState=bu,d);if((t.mode&1)===0)return ml(e,t,m,null);if(u.data==="$!"){if(s=u.nextSibling&&u.nextSibling.dataset,s)var k=s.dgst;return s=k,d=Error(i(419)),s=Su(d,s,void 0),ml(e,t,m,s)}if(k=(m&e.childLanes)!==0,Pt||k){if(s=ot,s!==null){switch(m&-m){case 4:u=2;break;case 16:u=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:u=32;break;case 536870912:u=268435456;break;default:u=0}u=(u&(s.suspendedLanes|m))!==0?0:u,u!==0&&u!==d.retryLane&&(d.retryLane=u,$n(e,u),an(s,e,u,-1))}return $u(),s=Su(Error(i(421))),ml(e,t,m,s)}return u.data==="$?"?(t.flags|=128,t.child=e.child,t=Gg.bind(null,e),u._reactRetry=t,null):(e=d.treeContext,Ft=pr(u.nextSibling),Dt=t,He=!0,rn=null,e!==null&&($t[Wt++]=Un,$t[Wt++]=Hn,$t[Wt++]=Yr,Un=e.id,Hn=e.overflow,Yr=t),t=Pu(t,s.children),t.flags|=4096,t)}function gp(e,t,o){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),ou(e.return,t,o)}function Mu(e,t,o,s,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=o,d.tailMode=u)}function wp(e,t,o){var s=t.pendingProps,u=s.revealOrder,d=s.tail;if(wt(e,t,s.children,o),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&&gp(e,o,t);else if(e.tag===19)gp(e,o,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(u){case"forwards":for(o=t.child,u=null;o!==null;)e=o.alternate,e!==null&&al(e)===null&&(u=o),o=o.sibling;o=u,o===null?(u=t.child,t.child=null):(u=o.sibling,o.sibling=null),Mu(t,!1,u,o,d);break;case"backwards":for(o=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&al(e)===null){t.child=u;break}e=u.sibling,u.sibling=o,o=u,u=e}Mu(t,!0,o,null,d);break;case"together":Mu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function yl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vn(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),eo|=t.lanes,(o&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,o=kr(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=kr(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function zg(e,t,o){switch(t.tag){case 3:mp(t),jo();break;case 5:Lf(t);break;case 1:Rt(t.type)&&Zs(t);break;case 4:lu(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,u=t.memoizedProps.value;ze(ol,s._currentValue),s._currentValue=u;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(ze(We,We.current&1),t.flags|=128,null):(o&t.child.childLanes)!==0?vp(e,t,o):(ze(We,We.current&1),e=Vn(e,t,o),e!==null?e.sibling:null);ze(We,We.current&1);break;case 19:if(s=(o&t.childLanes)!==0,(e.flags&128)!==0){if(s)return wp(e,t,o);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ze(We,We.current),s)break;return null;case 22:case 23:return t.lanes=0,fp(e,t,o)}return Vn(e,t,o)}var xp,Tu,Sp,Cp;xp=function(e,t){for(var o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Tu=function(){},Sp=function(e,t,o,s){var u=e.memoizedProps;if(u!==s){e=t.stateNode,Zr(Pn.current);var d=null;switch(o){case"input":u=dt(e,u),s=dt(e,s),d=[];break;case"select":u=V({},u,{value:void 0}),s=V({},s,{value:void 0}),d=[];break;case"textarea":u=Co(e,u),s=Co(e,s),d=[];break;default:typeof u.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Ys)}Cn(o,s);var m;o=null;for(D in u)if(!s.hasOwnProperty(D)&&u.hasOwnProperty(D)&&u[D]!=null)if(D==="style"){var k=u[D];for(m in k)k.hasOwnProperty(m)&&(o||(o={}),o[m]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(a.hasOwnProperty(D)?d||(d=[]):(d=d||[]).push(D,null));for(D in s){var M=s[D];if(k=u!=null?u[D]:void 0,s.hasOwnProperty(D)&&M!==k&&(M!=null||k!=null))if(D==="style")if(k){for(m in k)!k.hasOwnProperty(m)||M&&M.hasOwnProperty(m)||(o||(o={}),o[m]="");for(m in M)M.hasOwnProperty(m)&&k[m]!==M[m]&&(o||(o={}),o[m]=M[m])}else o||(d||(d=[]),d.push(D,o)),o=M;else D==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,k=k?k.__html:void 0,M!=null&&k!==M&&(d=d||[]).push(D,M)):D==="children"?typeof M!="string"&&typeof M!="number"||(d=d||[]).push(D,""+M):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(a.hasOwnProperty(D)?(M!=null&&D==="onScroll"&&je("scroll",e),d||k===M||(d=[])):(d=d||[]).push(D,M))}o&&(d=d||[]).push("style",o);var D=d;(t.updateQueue=D)&&(t.flags|=4)}},Cp=function(e,t,o,s){o!==s&&(t.flags|=4)};function Zi(e,t){if(!He)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,s=0;if(t)for(var u=e.child;u!==null;)o|=u.lanes|u.childLanes,s|=u.subtreeFlags&14680064,s|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=s,e.childLanes=o,t}function jg(e,t,o){var s=t.pendingProps;switch(Xa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return Rt(t.type)&&Xs(),ht(t),null;case 3:return s=t.stateNode,$o(),Be(bt),Be(ft),cu(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(nl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rn!==null&&(Bu(rn),rn=null))),Tu(e,t),ht(t),null;case 5:au(t);var u=Zr(Ki.current);if(o=t.type,e!==null&&t.stateNode!=null)Sp(e,t,o,s,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(i(166));return ht(t),null}if(e=Zr(Pn.current),nl(t)){s=t.stateNode,o=t.type;var d=t.memoizedProps;switch(s[Rn]=t,s[Hi]=d,e=(t.mode&1)!==0,o){case"dialog":je("cancel",s),je("close",s);break;case"iframe":case"object":case"embed":je("load",s);break;case"video":case"audio":for(u=0;u<ji.length;u++)je(ji[u],s);break;case"source":je("error",s);break;case"img":case"image":case"link":je("error",s),je("load",s);break;case"details":je("toggle",s);break;case"input":vn(s,d),je("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!d.multiple},je("invalid",s);break;case"textarea":wn(s,d),je("invalid",s)}Cn(o,d),u=null;for(var m in d)if(d.hasOwnProperty(m)){var k=d[m];m==="children"?typeof k=="string"?s.textContent!==k&&(d.suppressHydrationWarning!==!0&&qs(s.textContent,k,e),u=["children",k]):typeof k=="number"&&s.textContent!==""+k&&(d.suppressHydrationWarning!==!0&&qs(s.textContent,k,e),u=["children",""+k]):a.hasOwnProperty(m)&&k!=null&&m==="onScroll"&&je("scroll",s)}switch(o){case"input":Me(s),or(s,d,!0);break;case"textarea":Me(s),Es(s);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(s.onclick=Ys)}s=u,t.updateQueue=s,s!==null&&(t.flags|=4)}else{m=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vt(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=m.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=m.createElement(o,{is:s.is}):(e=m.createElement(o),o==="select"&&(m=e,s.multiple?m.multiple=!0:s.size&&(m.size=s.size))):e=m.createElementNS(e,o),e[Rn]=t,e[Hi]=s,xp(e,t,!1,!1),t.stateNode=e;e:{switch(m=Ci(o,s),o){case"dialog":je("cancel",e),je("close",e),u=s;break;case"iframe":case"object":case"embed":je("load",e),u=s;break;case"video":case"audio":for(u=0;u<ji.length;u++)je(ji[u],e);u=s;break;case"source":je("error",e),u=s;break;case"img":case"image":case"link":je("error",e),je("load",e),u=s;break;case"details":je("toggle",e),u=s;break;case"input":vn(e,s),u=dt(e,s),je("invalid",e);break;case"option":u=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},u=V({},s,{value:void 0}),je("invalid",e);break;case"textarea":wn(e,s),u=Co(e,s),je("invalid",e);break;default:u=s}Cn(o,u),k=u;for(d in k)if(k.hasOwnProperty(d)){var M=k[d];d==="style"?zn(e,M):d==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&ks(e,M)):d==="children"?typeof M=="string"?(o!=="textarea"||M!=="")&&Sn(e,M):typeof M=="number"&&Sn(e,""+M):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(a.hasOwnProperty(d)?M!=null&&d==="onScroll"&&je("scroll",e):M!=null&&R(e,d,M,m))}switch(o){case"input":Me(e),or(e,s,!1);break;case"textarea":Me(e),Es(e);break;case"option":s.value!=null&&e.setAttribute("value",""+fe(s.value));break;case"select":e.multiple=!!s.multiple,d=s.value,d!=null?Ht(e,!!s.multiple,d,!1):s.defaultValue!=null&&Ht(e,!!s.multiple,s.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=Ys)}switch(o){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 ht(t),null;case 6:if(e&&t.stateNode!=null)Cp(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(o=Zr(Ki.current),Zr(Pn.current),nl(t)){if(s=t.stateNode,o=t.memoizedProps,s[Rn]=t,(d=s.nodeValue!==o)&&(e=Dt,e!==null))switch(e.tag){case 3:qs(s.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qs(s.nodeValue,o,(e.mode&1)!==0)}d&&(t.flags|=4)}else s=(o.nodeType===9?o:o.ownerDocument).createTextNode(s),s[Rn]=t,t.stateNode=s}return ht(t),null;case 13:if(Be(We),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(He&&Ft!==null&&(t.mode&1)!==0&&(t.flags&128)===0)bf(),jo(),t.flags|=98560,d=!1;else if(d=nl(t),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[Rn]=t}else jo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ht(t),d=!1}else rn!==null&&(Bu(rn),rn=null),d=!0;if(!d)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=o,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?tt===0&&(tt=3):$u())),t.updateQueue!==null&&(t.flags|=4),ht(t),null);case 4:return $o(),Tu(e,t),e===null&&Bi(t.stateNode.containerInfo),ht(t),null;case 10:return ru(t.type._context),ht(t),null;case 17:return Rt(t.type)&&Xs(),ht(t),null;case 19:if(Be(We),d=t.memoizedState,d===null)return ht(t),null;if(s=(t.flags&128)!==0,m=d.rendering,m===null)if(s)Zi(d,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=al(e),m!==null){for(t.flags|=128,Zi(d,!1),s=m.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=o,o=t.child;o!==null;)d=o,e=s,d.flags&=14680066,m=d.alternate,m===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=m.childLanes,d.lanes=m.lanes,d.child=m.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=m.memoizedProps,d.memoizedState=m.memoizedState,d.updateQueue=m.updateQueue,d.type=m.type,e=m.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return ze(We,We.current&1|2),t.child}e=e.sibling}d.tail!==null&&Ye()>Ko&&(t.flags|=128,s=!0,Zi(d,!1),t.lanes=4194304)}else{if(!s)if(e=al(m),e!==null){if(t.flags|=128,s=!0,o=e.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),Zi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!m.alternate&&!He)return ht(t),null}else 2*Ye()-d.renderingStartTime>Ko&&o!==1073741824&&(t.flags|=128,s=!0,Zi(d,!1),t.lanes=4194304);d.isBackwards?(m.sibling=t.child,t.child=m):(o=d.last,o!==null?o.sibling=m:t.child=m,d.last=m)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Ye(),t.sibling=null,o=We.current,ze(We,s?o&1|2:o&1),t):(ht(t),null);case 22:case 23:return Hu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&(t.mode&1)!==0?(zt&1073741824)!==0&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Bg(e,t){switch(Xa(t),t.tag){case 1:return Rt(t.type)&&Xs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $o(),Be(bt),Be(ft),cu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return au(t),null;case 13:if(Be(We),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Be(We),null;case 4:return $o(),null;case 10:return ru(t.type._context),null;case 22:case 23:return Hu(),null;case 24:return null;default:return null}}var vl=!1,mt=!1,Ug=typeof WeakSet=="function"?WeakSet:Set,se=null;function Vo(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(s){Qe(e,t,s)}else o.current=null}function Ou(e,t,o){try{o()}catch(s){Qe(e,t,s)}}var Ep=!1;function Hg(e,t){if(Ha=Fs,e=ef(),Aa(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var u=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{o.nodeType,d.nodeType}catch{o=null;break e}var m=0,k=-1,M=-1,D=0,W=0,Q=e,$=null;t:for(;;){for(var oe;Q!==o||u!==0&&Q.nodeType!==3||(k=m+u),Q!==d||s!==0&&Q.nodeType!==3||(M=m+s),Q.nodeType===3&&(m+=Q.nodeValue.length),(oe=Q.firstChild)!==null;)$=Q,Q=oe;for(;;){if(Q===e)break t;if($===o&&++D===u&&(k=m),$===d&&++W===s&&(M=m),(oe=Q.nextSibling)!==null)break;Q=$,$=Q.parentNode}Q=oe}o=k===-1||M===-1?null:{start:k,end:M}}else o=null}o=o||{start:0,end:0}}else o=null;for($a={focusedElem:e,selectionRange:o},Fs=!1,se=t;se!==null;)if(t=se,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,se=e;else for(;se!==null;){t=se;try{var le=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(le!==null){var ue=le.memoizedProps,Ge=le.memoizedState,A=t.stateNode,N=A.getSnapshotBeforeUpdate(t.elementType===t.type?ue:on(t.type,ue),Ge);A.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var I=t.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Y){Qe(t,t.return,Y)}if(e=t.sibling,e!==null){e.return=t.return,se=e;break}se=t.return}return le=Ep,Ep=!1,le}function Ji(e,t,o){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var u=s=s.next;do{if((u.tag&e)===e){var d=u.destroy;u.destroy=void 0,d!==void 0&&Ou(t,o,d)}u=u.next}while(u!==s)}}function gl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var s=o.create;o.destroy=s()}o=o.next}while(o!==t)}}function _u(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof t=="function"?t(e):t.current=e}}function kp(e){var t=e.alternate;t!==null&&(e.alternate=null,kp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rn],delete t[Hi],delete t[Ka],delete t[kg],delete t[bg])),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 bp(e){return e.tag===5||e.tag===3||e.tag===4}function Rp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bp(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 Nu(e,t,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?o.nodeType===8?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(o.nodeType===8?(t=o.parentNode,t.insertBefore(e,o)):(t=o,t.appendChild(e)),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=Ys));else if(s!==4&&(e=e.child,e!==null))for(Nu(e,t,o),e=e.sibling;e!==null;)Nu(e,t,o),e=e.sibling}function Lu(e,t,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Lu(e,t,o),e=e.sibling;e!==null;)Lu(e,t,o),e=e.sibling}var at=null,sn=!1;function wr(e,t,o){for(o=o.child;o!==null;)Pp(e,t,o),o=o.sibling}function Pp(e,t,o){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(_s,o)}catch{}switch(o.tag){case 5:mt||Vo(o,t);case 6:var s=at,u=sn;at=null,wr(e,t,o),at=s,sn=u,at!==null&&(sn?(e=at,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):at.removeChild(o.stateNode));break;case 18:at!==null&&(sn?(e=at,o=o.stateNode,e.nodeType===8?Qa(e.parentNode,o):e.nodeType===1&&Qa(e,o),_i(e)):Qa(at,o.stateNode));break;case 4:s=at,u=sn,at=o.stateNode.containerInfo,sn=!0,wr(e,t,o),at=s,sn=u;break;case 0:case 11:case 14:case 15:if(!mt&&(s=o.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){u=s=s.next;do{var d=u,m=d.destroy;d=d.tag,m!==void 0&&((d&2)!==0||(d&4)!==0)&&Ou(o,t,m),u=u.next}while(u!==s)}wr(e,t,o);break;case 1:if(!mt&&(Vo(o,t),s=o.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=o.memoizedProps,s.state=o.memoizedState,s.componentWillUnmount()}catch(k){Qe(o,t,k)}wr(e,t,o);break;case 21:wr(e,t,o);break;case 22:o.mode&1?(mt=(s=mt)||o.memoizedState!==null,wr(e,t,o),mt=s):wr(e,t,o);break;default:wr(e,t,o)}}function Mp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Ug),t.forEach(function(s){var u=Xg.bind(null,e,s);o.has(s)||(o.add(s),s.then(u,u))})}}function ln(e,t){var o=t.deletions;if(o!==null)for(var s=0;s<o.length;s++){var u=o[s];try{var d=e,m=t,k=m;e:for(;k!==null;){switch(k.tag){case 5:at=k.stateNode,sn=!1;break e;case 3:at=k.stateNode.containerInfo,sn=!0;break e;case 4:at=k.stateNode.containerInfo,sn=!0;break e}k=k.return}if(at===null)throw Error(i(160));Pp(d,m,u),at=null,sn=!1;var M=u.alternate;M!==null&&(M.return=null),u.return=null}catch(D){Qe(u,t,D)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Tp(t,e),t=t.sibling}function Tp(e,t){var o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ln(t,e),Tn(e),s&4){try{Ji(3,e,e.return),gl(3,e)}catch(ue){Qe(e,e.return,ue)}try{Ji(5,e,e.return)}catch(ue){Qe(e,e.return,ue)}}break;case 1:ln(t,e),Tn(e),s&512&&o!==null&&Vo(o,o.return);break;case 5:if(ln(t,e),Tn(e),s&512&&o!==null&&Vo(o,o.return),e.flags&32){var u=e.stateNode;try{Sn(u,"")}catch(ue){Qe(e,e.return,ue)}}if(s&4&&(u=e.stateNode,u!=null)){var d=e.memoizedProps,m=o!==null?o.memoizedProps:d,k=e.type,M=e.updateQueue;if(e.updateQueue=null,M!==null)try{k==="input"&&d.type==="radio"&&d.name!=null&&Xt(u,d),Ci(k,m);var D=Ci(k,d);for(m=0;m<M.length;m+=2){var W=M[m],Q=M[m+1];W==="style"?zn(u,Q):W==="dangerouslySetInnerHTML"?ks(u,Q):W==="children"?Sn(u,Q):R(u,W,Q,D)}switch(k){case"input":Zt(u,d);break;case"textarea":Cs(u,d);break;case"select":var $=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!d.multiple;var oe=d.value;oe!=null?Ht(u,!!d.multiple,oe,!1):$!==!!d.multiple&&(d.defaultValue!=null?Ht(u,!!d.multiple,d.defaultValue,!0):Ht(u,!!d.multiple,d.multiple?[]:"",!1))}u[Hi]=d}catch(ue){Qe(e,e.return,ue)}}break;case 6:if(ln(t,e),Tn(e),s&4){if(e.stateNode===null)throw Error(i(162));u=e.stateNode,d=e.memoizedProps;try{u.nodeValue=d}catch(ue){Qe(e,e.return,ue)}}break;case 3:if(ln(t,e),Tn(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{_i(t.containerInfo)}catch(ue){Qe(e,e.return,ue)}break;case 4:ln(t,e),Tn(e);break;case 13:ln(t,e),Tn(e),u=e.child,u.flags&8192&&(d=u.memoizedState!==null,u.stateNode.isHidden=d,!d||u.alternate!==null&&u.alternate.memoizedState!==null||(Du=Ye())),s&4&&Mp(e);break;case 22:if(W=o!==null&&o.memoizedState!==null,e.mode&1?(mt=(D=mt)||W,ln(t,e),mt=D):ln(t,e),Tn(e),s&8192){if(D=e.memoizedState!==null,(e.stateNode.isHidden=D)&&!W&&(e.mode&1)!==0)for(se=e,W=e.child;W!==null;){for(Q=se=W;se!==null;){switch($=se,oe=$.child,$.tag){case 0:case 11:case 14:case 15:Ji(4,$,$.return);break;case 1:Vo($,$.return);var le=$.stateNode;if(typeof le.componentWillUnmount=="function"){s=$,o=$.return;try{t=s,le.props=t.memoizedProps,le.state=t.memoizedState,le.componentWillUnmount()}catch(ue){Qe(s,o,ue)}}break;case 5:Vo($,$.return);break;case 22:if($.memoizedState!==null){Np(Q);continue}}oe!==null?(oe.return=$,se=oe):Np(Q)}W=W.sibling}e:for(W=null,Q=e;;){if(Q.tag===5){if(W===null){W=Q;try{u=Q.stateNode,D?(d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(k=Q.stateNode,M=Q.memoizedProps.style,m=M!=null&&M.hasOwnProperty("display")?M.display:null,k.style.display=ko("display",m))}catch(ue){Qe(e,e.return,ue)}}}else if(Q.tag===6){if(W===null)try{Q.stateNode.nodeValue=D?"":Q.memoizedProps}catch(ue){Qe(e,e.return,ue)}}else if((Q.tag!==22&&Q.tag!==23||Q.memoizedState===null||Q===e)&&Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===e)break e;for(;Q.sibling===null;){if(Q.return===null||Q.return===e)break e;W===Q&&(W=null),Q=Q.return}W===Q&&(W=null),Q.sibling.return=Q.return,Q=Q.sibling}}break;case 19:ln(t,e),Tn(e),s&4&&Mp(e);break;case 21:break;default:ln(t,e),Tn(e)}}function Tn(e){var t=e.flags;if(t&2){try{e:{for(var o=e.return;o!==null;){if(bp(o)){var s=o;break e}o=o.return}throw Error(i(160))}switch(s.tag){case 5:var u=s.stateNode;s.flags&32&&(Sn(u,""),s.flags&=-33);var d=Rp(e);Lu(e,d,u);break;case 3:case 4:var m=s.stateNode.containerInfo,k=Rp(e);Nu(e,k,m);break;default:throw Error(i(161))}}catch(M){Qe(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $g(e,t,o){se=e,Op(e)}function Op(e,t,o){for(var s=(e.mode&1)!==0;se!==null;){var u=se,d=u.child;if(u.tag===22&&s){var m=u.memoizedState!==null||vl;if(!m){var k=u.alternate,M=k!==null&&k.memoizedState!==null||mt;k=vl;var D=mt;if(vl=m,(mt=M)&&!D)for(se=u;se!==null;)m=se,M=m.child,m.tag===22&&m.memoizedState!==null?Lp(u):M!==null?(M.return=m,se=M):Lp(u);for(;d!==null;)se=d,Op(d),d=d.sibling;se=u,vl=k,mt=D}_p(e)}else(u.subtreeFlags&8772)!==0&&d!==null?(d.return=u,se=d):_p(e)}}function _p(e){for(;se!==null;){var t=se;if((t.flags&8772)!==0){var o=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:mt||gl(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!mt)if(o===null)s.componentDidMount();else{var u=t.elementType===t.type?o.memoizedProps:on(t.type,o.memoizedProps);s.componentDidUpdate(u,o.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&Nf(t,d,s);break;case 3:var m=t.updateQueue;if(m!==null){if(o=null,t.child!==null)switch(t.child.tag){case 5:o=t.child.stateNode;break;case 1:o=t.child.stateNode}Nf(t,m,o)}break;case 5:var k=t.stateNode;if(o===null&&t.flags&4){o=k;var M=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&o.focus();break;case"img":M.src&&(o.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var D=t.alternate;if(D!==null){var W=D.memoizedState;if(W!==null){var Q=W.dehydrated;Q!==null&&_i(Q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}mt||t.flags&512&&_u(t)}catch($){Qe(t,t.return,$)}}if(t===e){se=null;break}if(o=t.sibling,o!==null){o.return=t.return,se=o;break}se=t.return}}function Np(e){for(;se!==null;){var t=se;if(t===e){se=null;break}var o=t.sibling;if(o!==null){o.return=t.return,se=o;break}se=t.return}}function Lp(e){for(;se!==null;){var t=se;try{switch(t.tag){case 0:case 11:case 15:var o=t.return;try{gl(4,t)}catch(M){Qe(t,o,M)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var u=t.return;try{s.componentDidMount()}catch(M){Qe(t,u,M)}}var d=t.return;try{_u(t)}catch(M){Qe(t,d,M)}break;case 5:var m=t.return;try{_u(t)}catch(M){Qe(t,m,M)}}}catch(M){Qe(t,t.return,M)}if(t===e){se=null;break}var k=t.sibling;if(k!==null){k.return=t.return,se=k;break}se=t.return}}var Wg=Math.ceil,wl=L.ReactCurrentDispatcher,Au=L.ReactCurrentOwner,Kt=L.ReactCurrentBatchConfig,Ne=0,ot=null,Ze=null,ut=0,zt=0,Qo=hr(0),tt=0,es=null,eo=0,xl=0,Iu=0,ts=null,Mt=null,Du=0,Ko=1/0,Qn=null,Sl=!1,Fu=null,xr=null,Cl=!1,Sr=null,El=0,ns=0,zu=null,kl=-1,bl=0;function xt(){return(Ne&6)!==0?Ye():kl!==-1?kl:kl=Ye()}function Cr(e){return(e.mode&1)===0?1:(Ne&2)!==0&&ut!==0?ut&-ut:Pg.transition!==null?(bl===0&&(bl=bd()),bl):(e=De,e!==0||(e=window.event,e=e===void 0?16:Ad(e.type)),e)}function an(e,t,o,s){if(50<ns)throw ns=0,zu=null,Error(i(185));Ri(e,o,s),((Ne&2)===0||e!==ot)&&(e===ot&&((Ne&2)===0&&(xl|=o),tt===4&&Er(e,ut)),Tt(e,s),o===1&&Ne===0&&(t.mode&1)===0&&(Ko=Ye()+500,Js&&yr()))}function Tt(e,t){var o=e.callbackNode;Pv(e,t);var s=As(e,e===ot?ut:0);if(s===0)o!==null&&Cd(o),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(o!=null&&Cd(o),t===1)e.tag===0?Rg(Ip.bind(null,e)):xf(Ip.bind(null,e)),Cg(function(){(Ne&6)===0&&yr()}),o=null;else{switch(Rd(s)){case 1:o=va;break;case 4:o=Ed;break;case 16:o=Os;break;case 536870912:o=kd;break;default:o=Os}o=$p(o,Ap.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function Ap(e,t){if(kl=-1,bl=0,(Ne&6)!==0)throw Error(i(327));var o=e.callbackNode;if(qo()&&e.callbackNode!==o)return null;var s=As(e,e===ot?ut:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||t)t=Rl(e,s);else{t=s;var u=Ne;Ne|=2;var d=Fp();(ot!==e||ut!==t)&&(Qn=null,Ko=Ye()+500,no(e,t));do try{Kg();break}catch(k){Dp(e,k)}while(!0);nu(),wl.current=d,Ne=u,Ze!==null?t=0:(ot=null,ut=0,t=tt)}if(t!==0){if(t===2&&(u=ga(e),u!==0&&(s=u,t=ju(e,u))),t===1)throw o=es,no(e,0),Er(e,s),Tt(e,Ye()),o;if(t===6)Er(e,s);else{if(u=e.current.alternate,(s&30)===0&&!Vg(u)&&(t=Rl(e,s),t===2&&(d=ga(e),d!==0&&(s=d,t=ju(e,d))),t===1))throw o=es,no(e,0),Er(e,s),Tt(e,Ye()),o;switch(e.finishedWork=u,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:ro(e,Mt,Qn);break;case 3:if(Er(e,s),(s&130023424)===s&&(t=Du+500-Ye(),10<t)){if(As(e,0)!==0)break;if(u=e.suspendedLanes,(u&s)!==s){xt(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=Va(ro.bind(null,e,Mt,Qn),t);break}ro(e,Mt,Qn);break;case 4:if(Er(e,s),(s&4194240)===s)break;for(t=e.eventTimes,u=-1;0<s;){var m=31-tn(s);d=1<<m,m=t[m],m>u&&(u=m),s&=~d}if(s=u,s=Ye()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Wg(s/1960))-s,10<s){e.timeoutHandle=Va(ro.bind(null,e,Mt,Qn),s);break}ro(e,Mt,Qn);break;case 5:ro(e,Mt,Qn);break;default:throw Error(i(329))}}}return Tt(e,Ye()),e.callbackNode===o?Ap.bind(null,e):null}function ju(e,t){var o=ts;return e.current.memoizedState.isDehydrated&&(no(e,t).flags|=256),e=Rl(e,t),e!==2&&(t=Mt,Mt=o,t!==null&&Bu(t)),e}function Bu(e){Mt===null?Mt=e:Mt.push.apply(Mt,e)}function Vg(e){for(var t=e;;){if(t.flags&16384){var o=t.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var s=0;s<o.length;s++){var u=o[s],d=u.getSnapshot;u=u.value;try{if(!nn(d(),u))return!1}catch{return!1}}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;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 Er(e,t){for(t&=~Iu,t&=~xl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var o=31-tn(t),s=1<<o;e[o]=-1,t&=~s}}function Ip(e){if((Ne&6)!==0)throw Error(i(327));qo();var t=As(e,0);if((t&1)===0)return Tt(e,Ye()),null;var o=Rl(e,t);if(e.tag!==0&&o===2){var s=ga(e);s!==0&&(t=s,o=ju(e,s))}if(o===1)throw o=es,no(e,0),Er(e,t),Tt(e,Ye()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ro(e,Mt,Qn),Tt(e,Ye()),null}function Uu(e,t){var o=Ne;Ne|=1;try{return e(t)}finally{Ne=o,Ne===0&&(Ko=Ye()+500,Js&&yr())}}function to(e){Sr!==null&&Sr.tag===0&&(Ne&6)===0&&qo();var t=Ne;Ne|=1;var o=Kt.transition,s=De;try{if(Kt.transition=null,De=1,e)return e()}finally{De=s,Kt.transition=o,Ne=t,(Ne&6)===0&&yr()}}function Hu(){zt=Qo.current,Be(Qo)}function no(e,t){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Sg(o)),Ze!==null)for(o=Ze.return;o!==null;){var s=o;switch(Xa(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Xs();break;case 3:$o(),Be(bt),Be(ft),cu();break;case 5:au(s);break;case 4:$o();break;case 13:Be(We);break;case 19:Be(We);break;case 10:ru(s.type._context);break;case 22:case 23:Hu()}o=o.return}if(ot=e,Ze=e=kr(e.current,null),ut=zt=t,tt=0,es=null,Iu=xl=eo=0,Mt=ts=null,Xr!==null){for(t=0;t<Xr.length;t++)if(o=Xr[t],s=o.interleaved,s!==null){o.interleaved=null;var u=s.next,d=o.pending;if(d!==null){var m=d.next;d.next=u,s.next=m}o.pending=s}Xr=null}return e}function Dp(e,t){do{var o=Ze;try{if(nu(),ul.current=pl,cl){for(var s=Ve.memoizedState;s!==null;){var u=s.queue;u!==null&&(u.pending=null),s=s.next}cl=!1}if(Jr=0,rt=et=Ve=null,qi=!1,Yi=0,Au.current=null,o===null||o.return===null){tt=1,es=t,Ze=null;break}e:{var d=e,m=o.return,k=o,M=t;if(t=ut,k.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var D=M,W=k,Q=W.tag;if((W.mode&1)===0&&(Q===0||Q===11||Q===15)){var $=W.alternate;$?(W.updateQueue=$.updateQueue,W.memoizedState=$.memoizedState,W.lanes=$.lanes):(W.updateQueue=null,W.memoizedState=null)}var oe=lp(m);if(oe!==null){oe.flags&=-257,ap(oe,m,k,d,t),oe.mode&1&&sp(d,D,t),t=oe,M=D;var le=t.updateQueue;if(le===null){var ue=new Set;ue.add(M),t.updateQueue=ue}else le.add(M);break e}else{if((t&1)===0){sp(d,D,t),$u();break e}M=Error(i(426))}}else if(He&&k.mode&1){var Ge=lp(m);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),ap(Ge,m,k,d,t),eu(Wo(M,k));break e}}d=M=Wo(M,k),tt!==4&&(tt=2),ts===null?ts=[d]:ts.push(d),d=m;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var A=op(d,M,t);_f(d,A);break e;case 1:k=M;var N=d.type,I=d.stateNode;if((d.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(xr===null||!xr.has(I)))){d.flags|=65536,t&=-t,d.lanes|=t;var Y=ip(d,k,t);_f(d,Y);break e}}d=d.return}while(d!==null)}jp(o)}catch(de){t=de,Ze===o&&o!==null&&(Ze=o=o.return);continue}break}while(!0)}function Fp(){var e=wl.current;return wl.current=pl,e===null?pl:e}function $u(){(tt===0||tt===3||tt===2)&&(tt=4),ot===null||(eo&268435455)===0&&(xl&268435455)===0||Er(ot,ut)}function Rl(e,t){var o=Ne;Ne|=2;var s=Fp();(ot!==e||ut!==t)&&(Qn=null,no(e,t));do try{Qg();break}catch(u){Dp(e,u)}while(!0);if(nu(),Ne=o,wl.current=s,Ze!==null)throw Error(i(261));return ot=null,ut=0,tt}function Qg(){for(;Ze!==null;)zp(Ze)}function Kg(){for(;Ze!==null&&!gv();)zp(Ze)}function zp(e){var t=Hp(e.alternate,e,zt);e.memoizedProps=e.pendingProps,t===null?jp(e):Ze=t,Au.current=null}function jp(e){var t=e;do{var o=t.alternate;if(e=t.return,(t.flags&32768)===0){if(o=jg(o,t,zt),o!==null){Ze=o;return}}else{if(o=Bg(o,t),o!==null){o.flags&=32767,Ze=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{tt=6,Ze=null;return}}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);tt===0&&(tt=5)}function ro(e,t,o){var s=De,u=Kt.transition;try{Kt.transition=null,De=1,qg(e,t,o,s)}finally{Kt.transition=u,De=s}return null}function qg(e,t,o,s){do qo();while(Sr!==null);if((Ne&6)!==0)throw Error(i(327));o=e.finishedWork;var u=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var d=o.lanes|o.childLanes;if(Mv(e,d),e===ot&&(Ze=ot=null,ut=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Cl||(Cl=!0,$p(Os,function(){return qo(),null})),d=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||d){d=Kt.transition,Kt.transition=null;var m=De;De=1;var k=Ne;Ne|=4,Au.current=null,Hg(e,o),Tp(o,e),hg($a),Fs=!!Ha,$a=Ha=null,e.current=o,$g(o),wv(),Ne=k,De=m,Kt.transition=d}else e.current=o;if(Cl&&(Cl=!1,Sr=e,El=u),d=e.pendingLanes,d===0&&(xr=null),Cv(o.stateNode),Tt(e,Ye()),t!==null)for(s=e.onRecoverableError,o=0;o<t.length;o++)u=t[o],s(u.value,{componentStack:u.stack,digest:u.digest});if(Sl)throw Sl=!1,e=Fu,Fu=null,e;return(El&1)!==0&&e.tag!==0&&qo(),d=e.pendingLanes,(d&1)!==0?e===zu?ns++:(ns=0,zu=e):ns=0,yr(),null}function qo(){if(Sr!==null){var e=Rd(El),t=Kt.transition,o=De;try{if(Kt.transition=null,De=16>e?16:e,Sr===null)var s=!1;else{if(e=Sr,Sr=null,El=0,(Ne&6)!==0)throw Error(i(331));var u=Ne;for(Ne|=4,se=e.current;se!==null;){var d=se,m=d.child;if((se.flags&16)!==0){var k=d.deletions;if(k!==null){for(var M=0;M<k.length;M++){var D=k[M];for(se=D;se!==null;){var W=se;switch(W.tag){case 0:case 11:case 15:Ji(8,W,d)}var Q=W.child;if(Q!==null)Q.return=W,se=Q;else for(;se!==null;){W=se;var $=W.sibling,oe=W.return;if(kp(W),W===D){se=null;break}if($!==null){$.return=oe,se=$;break}se=oe}}}var le=d.alternate;if(le!==null){var ue=le.child;if(ue!==null){le.child=null;do{var Ge=ue.sibling;ue.sibling=null,ue=Ge}while(ue!==null)}}se=d}}if((d.subtreeFlags&2064)!==0&&m!==null)m.return=d,se=m;else e:for(;se!==null;){if(d=se,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:Ji(9,d,d.return)}var A=d.sibling;if(A!==null){A.return=d.return,se=A;break e}se=d.return}}var N=e.current;for(se=N;se!==null;){m=se;var I=m.child;if((m.subtreeFlags&2064)!==0&&I!==null)I.return=m,se=I;else e:for(m=N;se!==null;){if(k=se,(k.flags&2048)!==0)try{switch(k.tag){case 0:case 11:case 15:gl(9,k)}}catch(de){Qe(k,k.return,de)}if(k===m){se=null;break e}var Y=k.sibling;if(Y!==null){Y.return=k.return,se=Y;break e}se=k.return}}if(Ne=u,yr(),bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(_s,e)}catch{}s=!0}return s}finally{De=o,Kt.transition=t}}return!1}function Bp(e,t,o){t=Wo(o,t),t=op(e,t,1),e=gr(e,t,1),t=xt(),e!==null&&(Ri(e,1,t),Tt(e,t))}function Qe(e,t,o){if(e.tag===3)Bp(e,e,o);else for(;t!==null;){if(t.tag===3){Bp(t,e,o);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(xr===null||!xr.has(s))){e=Wo(o,e),e=ip(t,e,1),t=gr(t,e,1),e=xt(),t!==null&&(Ri(t,1,e),Tt(t,e));break}}t=t.return}}function Yg(e,t,o){var s=e.pingCache;s!==null&&s.delete(t),t=xt(),e.pingedLanes|=e.suspendedLanes&o,ot===e&&(ut&o)===o&&(tt===4||tt===3&&(ut&130023424)===ut&&500>Ye()-Du?no(e,0):Iu|=o),Tt(e,t)}function Up(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ls,Ls<<=1,(Ls&130023424)===0&&(Ls=4194304)));var o=xt();e=$n(e,t),e!==null&&(Ri(e,t,o),Tt(e,o))}function Gg(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),Up(e,o)}function Xg(e,t){var o=0;switch(e.tag){case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(o=u.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(t),Up(e,o)}var Hp;Hp=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)Pt=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return Pt=!1,zg(e,t,o);Pt=(e.flags&131072)!==0}else Pt=!1,He&&(t.flags&1048576)!==0&&Sf(t,tl,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;yl(e,t),e=t.pendingProps;var u=Do(t,ft.current);Ho(t,o),u=pu(null,t,s,e,u,o);var d=hu();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rt(s)?(d=!0,Zs(t)):d=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,su(t),u.updater=hl,t.stateNode=u,u._reactInternals=t,xu(t,s,e,o),t=ku(null,t,s,!0,d,o)):(t.tag=0,He&&d&&Ga(t),wt(null,t,u,o),t=t.child),t;case 16:s=t.elementType;e:{switch(yl(e,t),e=t.pendingProps,u=s._init,s=u(s._payload),t.type=s,u=t.tag=Jg(s),e=on(s,e),u){case 0:t=Eu(null,t,s,e,o);break e;case 1:t=hp(null,t,s,e,o);break e;case 11:t=up(null,t,s,e,o);break e;case 14:t=cp(null,t,s,on(s.type,e),o);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:on(s,u),Eu(e,t,s,u,o);case 1:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:on(s,u),hp(e,t,s,u,o);case 3:e:{if(mp(t),e===null)throw Error(i(387));s=t.pendingProps,d=t.memoizedState,u=d.element,Of(e,t),ll(t,s,null,o);var m=t.memoizedState;if(s=m.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){u=Wo(Error(i(423)),t),t=yp(e,t,s,o,u);break e}else if(s!==u){u=Wo(Error(i(424)),t),t=yp(e,t,s,o,u);break e}else for(Ft=pr(t.stateNode.containerInfo.firstChild),Dt=t,He=!0,rn=null,o=Mf(t,null,s,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(jo(),s===u){t=Vn(e,t,o);break e}wt(e,t,s,o)}t=t.child}return t;case 5:return Lf(t),e===null&&Ja(t),s=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,m=u.children,Wa(s,u)?m=null:d!==null&&Wa(s,d)&&(t.flags|=32),pp(e,t),wt(e,t,m,o),t.child;case 6:return e===null&&Ja(t),null;case 13:return vp(e,t,o);case 4:return lu(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Bo(t,null,s,o):wt(e,t,s,o),t.child;case 11:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:on(s,u),up(e,t,s,u,o);case 7:return wt(e,t,t.pendingProps,o),t.child;case 8:return wt(e,t,t.pendingProps.children,o),t.child;case 12:return wt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(s=t.type._context,u=t.pendingProps,d=t.memoizedProps,m=u.value,ze(ol,s._currentValue),s._currentValue=m,d!==null)if(nn(d.value,m)){if(d.children===u.children&&!bt.current){t=Vn(e,t,o);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var k=d.dependencies;if(k!==null){m=d.child;for(var M=k.firstContext;M!==null;){if(M.context===s){if(d.tag===1){M=Wn(-1,o&-o),M.tag=2;var D=d.updateQueue;if(D!==null){D=D.shared;var W=D.pending;W===null?M.next=M:(M.next=W.next,W.next=M),D.pending=M}}d.lanes|=o,M=d.alternate,M!==null&&(M.lanes|=o),ou(d.return,o,t),k.lanes|=o;break}M=M.next}}else if(d.tag===10)m=d.type===t.type?null:d.child;else if(d.tag===18){if(m=d.return,m===null)throw Error(i(341));m.lanes|=o,k=m.alternate,k!==null&&(k.lanes|=o),ou(m,o,t),m=d.sibling}else m=d.child;if(m!==null)m.return=d;else for(m=d;m!==null;){if(m===t){m=null;break}if(d=m.sibling,d!==null){d.return=m.return,m=d;break}m=m.return}d=m}wt(e,t,u.children,o),t=t.child}return t;case 9:return u=t.type,s=t.pendingProps.children,Ho(t,o),u=Vt(u),s=s(u),t.flags|=1,wt(e,t,s,o),t.child;case 14:return s=t.type,u=on(s,t.pendingProps),u=on(s.type,u),cp(e,t,s,u,o);case 15:return dp(e,t,t.type,t.pendingProps,o);case 17:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:on(s,u),yl(e,t),t.tag=1,Rt(s)?(e=!0,Zs(t)):e=!1,Ho(t,o),np(t,s,u),xu(t,s,u,o),ku(null,t,s,!0,e,o);case 19:return wp(e,t,o);case 22:return fp(e,t,o)}throw Error(i(156,t.tag))};function $p(e,t){return Sd(e,t)}function Zg(e,t,o,s){this.tag=e,this.key=o,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 qt(e,t,o,s){return new Zg(e,t,o,s)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jg(e){if(typeof e=="function")return Wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===X)return 11;if(e===xe)return 14}return 2}function kr(e,t){var o=e.alternate;return o===null?(o=qt(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Pl(e,t,o,s,u,d){var m=2;if(s=e,typeof e=="function")Wu(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case H:return oo(o.children,u,d,t);case q:m=8,u|=8;break;case Z:return e=qt(12,o,t,u|2),e.elementType=Z,e.lanes=d,e;case ve:return e=qt(13,o,t,u),e.elementType=ve,e.lanes=d,e;case ce:return e=qt(19,o,t,u),e.elementType=ce,e.lanes=d,e;case ie:return Ml(o,u,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case te:m=10;break e;case he:m=9;break e;case X:m=11;break e;case xe:m=14;break e;case ae:m=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=qt(m,o,t,u),t.elementType=e,t.type=s,t.lanes=d,t}function oo(e,t,o,s){return e=qt(7,e,s,t),e.lanes=o,e}function Ml(e,t,o,s){return e=qt(22,e,s,t),e.elementType=ie,e.lanes=o,e.stateNode={isHidden:!1},e}function Vu(e,t,o){return e=qt(6,e,null,t),e.lanes=o,e}function Qu(e,t,o){return t=qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function e0(e,t,o,s,u){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=wa(0),this.expirationTimes=wa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wa(0),this.identifierPrefix=s,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function Ku(e,t,o,s,u,d,m,k,M){return e=new e0(e,t,o,k,M),t===1?(t=1,d===!0&&(t|=8)):t=0,d=qt(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:s,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},su(d),e}function t0(e,t,o){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:s==null?null:""+s,children:e,containerInfo:t,implementation:o}}function Wp(e){if(!e)return mr;e=e._reactInternals;e:{if(Qr(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(Rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(Rt(o))return gf(e,o,t)}return t}function Vp(e,t,o,s,u,d,m,k,M){return e=Ku(o,s,!0,e,u,d,m,k,M),e.context=Wp(null),o=e.current,s=xt(),u=Cr(o),d=Wn(s,u),d.callback=t??null,gr(o,d,u),e.current.lanes=u,Ri(e,u,s),Tt(e,s),e}function Tl(e,t,o,s){var u=t.current,d=xt(),m=Cr(u);return o=Wp(o),t.context===null?t.context=o:t.pendingContext=o,t=Wn(d,m),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=gr(u,t,m),e!==null&&(an(e,u,m,d),sl(e,u,m)),m}function Ol(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 Qp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function qu(e,t){Qp(e,t),(e=e.alternate)&&Qp(e,t)}function n0(){return null}var Kp=typeof reportError=="function"?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}_l.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Tl(e,t,null,null)},_l.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;to(function(){Tl(null,e,null,null)}),t[jn]=null}};function _l(e){this._internalRoot=e}_l.prototype.unstable_scheduleHydration=function(e){if(e){var t=Td();e={blockedOn:null,target:e,priority:t};for(var o=0;o<cr.length&&t!==0&&t<cr[o].priority;o++);cr.splice(o,0,e),o===0&&Nd(e)}};function Gu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qp(){}function r0(e,t,o,s,u){if(u){if(typeof s=="function"){var d=s;s=function(){var D=Ol(m);d.call(D)}}var m=Vp(t,s,e,0,null,!1,!1,"",qp);return e._reactRootContainer=m,e[jn]=m.current,Bi(e.nodeType===8?e.parentNode:e),to(),m}for(;u=e.lastChild;)e.removeChild(u);if(typeof s=="function"){var k=s;s=function(){var D=Ol(M);k.call(D)}}var M=Ku(e,0,!1,null,null,!1,!1,"",qp);return e._reactRootContainer=M,e[jn]=M.current,Bi(e.nodeType===8?e.parentNode:e),to(function(){Tl(t,M,o,s)}),M}function Ll(e,t,o,s,u){var d=o._reactRootContainer;if(d){var m=d;if(typeof u=="function"){var k=u;u=function(){var M=Ol(m);k.call(M)}}Tl(t,m,e,u)}else m=r0(o,t,e,u,s);return Ol(m)}Pd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var o=bi(t.pendingLanes);o!==0&&(xa(t,o|1),Tt(t,Ye()),(Ne&6)===0&&(Ko=Ye()+500,yr()))}break;case 13:to(function(){var s=$n(e,1);if(s!==null){var u=xt();an(s,e,1,u)}}),qu(e,1)}},Sa=function(e){if(e.tag===13){var t=$n(e,134217728);if(t!==null){var o=xt();an(t,e,134217728,o)}qu(e,134217728)}},Md=function(e){if(e.tag===13){var t=Cr(e),o=$n(e,t);if(o!==null){var s=xt();an(o,e,t,s)}qu(e,t)}},Td=function(){return De},Od=function(e,t){var o=De;try{return De=e,t()}finally{De=o}},Ro=function(e,t,o){switch(t){case"input":if(Zt(e,o),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<o.length;t++){var s=o[t];if(s!==e&&s.form===e.form){var u=Gs(s);if(!u)throw Error(i(90));Oe(s),Zt(s,u)}}}break;case"textarea":Cs(e,o);break;case"select":t=o.value,t!=null&&Ht(e,!!o.multiple,t,!1)}},Ae=Uu,Fe=to;var o0={usingClientEntryPoint:!1,Events:[$i,Ao,Gs,Ps,ke,Uu]},rs={findFiberByHostInstance:Kr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},i0={bundleType:rs.bundleType,version:rs.version,rendererPackageName:rs.rendererPackageName,rendererConfig:rs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:L.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wd(e),e===null?null:e.stateNode},findFiberByHostInstance:rs.findFiberByHostInstance||n0,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 Al=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Al.isDisabled&&Al.supportsFiber)try{_s=Al.inject(i0),bn=Al}catch{}}return Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o0,Ot.createPortal=function(e,t){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gu(t))throw Error(i(200));return t0(e,t,null,o)},Ot.createRoot=function(e,t){if(!Gu(e))throw Error(i(299));var o=!1,s="",u=Kp;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=Ku(e,1,!1,null,null,o,!1,s,u),e[jn]=t.current,Bi(e.nodeType===8?e.parentNode:e),new Yu(t)},Ot.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=wd(t),e=e===null?null:e.stateNode,e},Ot.flushSync=function(e){return to(e)},Ot.hydrate=function(e,t,o){if(!Nl(t))throw Error(i(200));return Ll(null,e,t,!0,o)},Ot.hydrateRoot=function(e,t,o){if(!Gu(e))throw Error(i(405));var s=o!=null&&o.hydratedSources||null,u=!1,d="",m=Kp;if(o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(m=o.onRecoverableError)),t=Vp(t,null,e,1,o??null,u,!1,d,m),e[jn]=t.current,Bi(e),s)for(e=0;e<s.length;e++)o=s[e],u=o._getVersion,u=u(o._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[o,u]:t.mutableSourceEagerHydrationData.push(o,u);return new _l(t)},Ot.render=function(e,t,o){if(!Nl(t))throw Error(i(200));return Ll(null,e,t,!1,o)},Ot.unmountComponentAtNode=function(e){if(!Nl(e))throw Error(i(40));return e._reactRootContainer?(to(function(){Ll(null,null,e,!1,function(){e._reactRootContainer=null,e[jn]=null})}),!0):!1},Ot.unstable_batchedUpdates=Uu,Ot.unstable_renderSubtreeIntoContainer=function(e,t,o,s){if(!Nl(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Ll(e,t,o,!1,s)},Ot.version="18.3.1-next-f1338f8080-20240426",Ot}var rh;function pm(){if(rh)return ec.exports;rh=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),ec.exports=p0(),ec.exports}var oh;function h0(){if(oh)return Dl;oh=1;var n=pm();return Dl.createRoot=n.createRoot,Dl.hydrateRoot=n.hydrateRoot,Dl}var VC=h0();/**
41
41
  * react-router v7.13.0
42
42
  *
43
43
  * Copyright (c) Remix Software Inc.
@@ -46,9 +46,9 @@ Error generating stack: `+d.message+`
46
46
  * LICENSE.md file in the root directory of this source tree.
47
47
  *
48
48
  * @license MIT
49
- */var ih="popstate";function m0(n={}){function r(l,a){let{pathname:c,search:f,hash:p}=l.location;return vc("",{pathname:c,search:f,hash:p},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function i(l,a){return typeof a=="string"?a:cs(a)}return y0(r,i,null,n)}function $e(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function pn(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function v0(){return Math.random().toString(36).substring(2,10)}function sh(n,r){return{usr:n.state,key:n.key,idx:r}}function vc(n,r,i=null,l){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?hi(r):r,state:i,key:r&&r.key||l||v0()}}function cs({pathname:n="/",search:r="",hash:i=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function hi(n){let r={};if(n){let i=n.indexOf("#");i>=0&&(r.hash=n.substring(i),n=n.substring(0,i));let l=n.indexOf("?");l>=0&&(r.search=n.substring(l),n=n.substring(0,l)),n&&(r.pathname=n)}return r}function y0(n,r,i,l={}){let{window:a=document.defaultView,v5Compat:c=!1}=l,f=a.history,p="POP",h=null,v=w();v==null&&(v=0,f.replaceState({...f.state,idx:v},""));function w(){return(f.state||{idx:null}).idx}function x(){p="POP";let C=w(),P=C==null?null:C-v;v=C,h&&h({action:p,location:S.location,delta:P})}function E(C,P){p="PUSH";let M=vc(S.location,C,P);v=w()+1;let R=sh(M,v),L=S.createHref(M);try{f.pushState(R,"",L)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;a.location.assign(L)}c&&h&&h({action:p,location:S.location,delta:1})}function y(C,P){p="REPLACE";let M=vc(S.location,C,P);v=w();let R=sh(M,v),L=S.createHref(M);f.replaceState(R,"",L),c&&h&&h({action:p,location:S.location,delta:0})}function O(C){return g0(C)}let S={get action(){return p},get location(){return n(a,f)},listen(C){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(ih,x),h=C,()=>{a.removeEventListener(ih,x),h=null}},createHref(C){return r(a,C)},createURL:O,encodeLocation(C){let P=O(C);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:E,replace:y,go(C){return f.go(C)}};return S}function g0(n,r=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),$e(i,"No window.location.(origin|href) available to create URL");let l=typeof n=="string"?n:cs(n);return l=l.replace(/ $/,"%20"),!r&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function hm(n,r,i="/"){return w0(n,r,i,!1)}function w0(n,r,i,l){let a=typeof r=="string"?hi(r):r,c=tr(a.pathname||"/",i);if(c==null)return null;let f=mm(n);x0(f);let p=null;for(let h=0;p==null&&h<f.length;++h){let v=_0(c);p=M0(f[h],v,l)}return p}function mm(n,r=[],i=[],l="",a=!1){let c=(f,p,h=a,v)=>{let w={relativePath:v===void 0?f.path||"":v,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};if(w.relativePath.startsWith("/")){if(!w.relativePath.startsWith(l)&&h)return;$e(w.relativePath.startsWith(l),`Absolute route path "${w.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),w.relativePath=w.relativePath.slice(l.length)}let x=Jn([l,w.relativePath]),E=i.concat(w);f.children&&f.children.length>0&&($e(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),mm(f.children,r,E,x,h)),!(f.path==null&&!f.index)&&r.push({path:x,score:P0(x,f.index),routesMeta:E})};return n.forEach((f,p)=>{var h;if(f.path===""||!((h=f.path)!=null&&h.includes("?")))c(f,p);else for(let v of vm(f.path))c(f,p,!0,v)}),r}function vm(n){let r=n.split("/");if(r.length===0)return[];let[i,...l]=r,a=i.endsWith("?"),c=i.replace(/\?$/,"");if(l.length===0)return a?[c,""]:[c];let f=vm(l.join("/")),p=[];return p.push(...f.map(h=>h===""?c:[c,h].join("/"))),a&&p.push(...f),p.map(h=>n.startsWith("/")&&h===""?"/":h)}function x0(n){n.sort((r,i)=>r.score!==i.score?i.score-r.score:T0(r.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var S0=/^:[\w-]+$/,C0=3,E0=2,k0=1,b0=10,R0=-2,lh=n=>n==="*";function P0(n,r){let i=n.split("/"),l=i.length;return i.some(lh)&&(l+=R0),r&&(l+=E0),i.filter(a=>!lh(a)).reduce((a,c)=>a+(S0.test(c)?C0:c===""?k0:b0),l)}function T0(n,r){return n.length===r.length&&n.slice(0,-1).every((l,a)=>l===r[a])?n[n.length-1]-r[r.length-1]:0}function M0(n,r,i=!1){let{routesMeta:l}=n,a={},c="/",f=[];for(let p=0;p<l.length;++p){let h=l[p],v=p===l.length-1,w=c==="/"?r:r.slice(c.length)||"/",x=Xl({path:h.relativePath,caseSensitive:h.caseSensitive,end:v},w),E=h.route;if(!x&&v&&i&&!l[l.length-1].route.index&&(x=Xl({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},w)),!x)return null;Object.assign(a,x.params),f.push({params:a,pathname:Jn([c,x.pathname]),pathnameBase:A0(Jn([c,x.pathnameBase])),route:E}),x.pathnameBase!=="/"&&(c=Jn([c,x.pathnameBase]))}return f}function Xl(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[i,l]=O0(n.path,n.caseSensitive,n.end),a=r.match(i);if(!a)return null;let c=a[0],f=c.replace(/(.)\/+$/,"$1"),p=a.slice(1);return{params:l.reduce((v,{paramName:w,isOptional:x},E)=>{if(w==="*"){let O=p[E]||"";f=c.slice(0,c.length-O.length).replace(/(.)\/+$/,"$1")}const y=p[E];return x&&!y?v[w]=void 0:v[w]=(y||"").replace(/%2F/g,"/"),v},{}),pathname:c,pathnameBase:f,pattern:n}}function O0(n,r=!1,i=!0){pn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let l=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,h)=>(l.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(l.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,r?void 0:"i"),l]}function _0(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return pn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function tr(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,l=n.charAt(i);return l&&l!=="/"?null:n.slice(i)||"/"}var N0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function L0(n,r="/"){let{pathname:i,search:l="",hash:a=""}=typeof n=="string"?hi(n):n,c;return i?(i=i.replace(/\/\/+/g,"/"),i.startsWith("/")?c=ah(i.substring(1),"/"):c=ah(i,r)):c=r,{pathname:c,search:D0(l),hash:F0(a)}}function ah(n,r){let i=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?i.length>1&&i.pop():a!=="."&&i.push(a)}),i.length>1?i.join("/"):"/"}function rc(n,r,i,l){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function I0(n){return n.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function Kc(n){let r=I0(n);return r.map((i,l)=>l===r.length-1?i.pathname:i.pathnameBase)}function Yc(n,r,i,l=!1){let a;typeof n=="string"?a=hi(n):(a={...n},$e(!a.pathname||!a.pathname.includes("?"),rc("?","pathname","search",a)),$e(!a.pathname||!a.pathname.includes("#"),rc("#","pathname","hash",a)),$e(!a.search||!a.search.includes("#"),rc("#","search","hash",a)));let c=n===""||a.pathname==="",f=c?"/":a.pathname,p;if(f==null)p=i;else{let x=r.length-1;if(!l&&f.startsWith("..")){let E=f.split("/");for(;E[0]==="..";)E.shift(),x-=1;a.pathname=E.join("/")}p=x>=0?r[x]:"/"}let h=L0(a,p),v=f&&f!=="/"&&f.endsWith("/"),w=(c||f===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(v||w)&&(h.pathname+="/"),h}var Jn=n=>n.join("/").replace(/\/\/+/g,"/"),A0=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),D0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,F0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,z0=class{constructor(n,r,i,l=!1){this.status=n,this.statusText=r||"",this.internal=l,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function j0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function B0(n){return n.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ym=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function gm(n,r){let i=n;if(typeof i!="string"||!N0.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let l=i,a=!1;if(ym)try{let c=new URL(window.location.href),f=i.startsWith("//")?new URL(c.protocol+i):new URL(i),p=tr(f.pathname,r);f.origin===c.origin&&p!=null?i=p+f.search+f.hash:a=!0}catch{pn(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:a,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wm=["POST","PUT","PATCH","DELETE"];new Set(wm);var U0=["GET",...wm];new Set(U0);var mi=g.createContext(null);mi.displayName="DataRouter";var sa=g.createContext(null);sa.displayName="DataRouterState";var H0=g.createContext(!1),xm=g.createContext({isTransitioning:!1});xm.displayName="ViewTransition";var $0=g.createContext(new Map);$0.displayName="Fetchers";var W0=g.createContext(null);W0.displayName="Await";var Ut=g.createContext(null);Ut.displayName="Navigation";var gs=g.createContext(null);gs.displayName="Location";var vn=g.createContext({outlet:null,matches:[],isDataRoute:!1});vn.displayName="Route";var qc=g.createContext(null);qc.displayName="RouteError";var Sm="REACT_ROUTER_ERROR",V0="REDIRECT",Q0="ROUTE_ERROR_RESPONSE";function K0(n){if(n.startsWith(`${Sm}:${V0}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function Y0(n){if(n.startsWith(`${Sm}:${Q0}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new z0(r.status,r.statusText,r.data)}catch{}}function q0(n,{relative:r}={}){$e(vi(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=g.useContext(Ut),{hash:a,pathname:c,search:f}=ws(n,{relative:r}),p=c;return i!=="/"&&(p=c==="/"?i:Jn([i,c])),l.createHref({pathname:p,search:f,hash:a})}function vi(){return g.useContext(gs)!=null}function Hr(){return $e(vi(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(gs).location}var Cm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Em(n){g.useContext(Ut).static||g.useLayoutEffect(n)}function km(){let{isDataRoute:n}=g.useContext(vn);return n?a1():G0()}function G0(){$e(vi(),"useNavigate() may be used only in the context of a <Router> component.");let n=g.useContext(mi),{basename:r,navigator:i}=g.useContext(Ut),{matches:l}=g.useContext(vn),{pathname:a}=Hr(),c=JSON.stringify(Kc(l)),f=g.useRef(!1);return Em(()=>{f.current=!0}),g.useCallback((h,v={})=>{if(pn(f.current,Cm),!f.current)return;if(typeof h=="number"){i.go(h);return}let w=Yc(h,JSON.parse(c),a,v.relative==="path");n==null&&r!=="/"&&(w.pathname=w.pathname==="/"?r:Jn([r,w.pathname])),(v.replace?i.replace:i.push)(w,v.state,v)},[r,i,c,a,n])}g.createContext(null);function QC(){let{matches:n}=g.useContext(vn),r=n[n.length-1];return r?r.params:{}}function ws(n,{relative:r}={}){let{matches:i}=g.useContext(vn),{pathname:l}=Hr(),a=JSON.stringify(Kc(i));return g.useMemo(()=>Yc(n,JSON.parse(a),l,r==="path"),[n,a,l,r])}function X0(n,r){return bm(n,r)}function bm(n,r,i,l,a){var M;$e(vi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=g.useContext(Ut),{matches:f}=g.useContext(vn),p=f[f.length-1],h=p?p.params:{},v=p?p.pathname:"/",w=p?p.pathnameBase:"/",x=p&&p.route;{let R=x&&x.path||"";Pm(v,!x||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
49
+ */var ih="popstate";function m0(n={}){function r(l,a){let{pathname:c,search:f,hash:p}=l.location;return yc("",{pathname:c,search:f,hash:p},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function i(l,a){return typeof a=="string"?a:cs(a)}return v0(r,i,null,n)}function $e(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function pn(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function y0(){return Math.random().toString(36).substring(2,10)}function sh(n,r){return{usr:n.state,key:n.key,idx:r}}function yc(n,r,i=null,l){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?hi(r):r,state:i,key:r&&r.key||l||y0()}}function cs({pathname:n="/",search:r="",hash:i=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function hi(n){let r={};if(n){let i=n.indexOf("#");i>=0&&(r.hash=n.substring(i),n=n.substring(0,i));let l=n.indexOf("?");l>=0&&(r.search=n.substring(l),n=n.substring(0,l)),n&&(r.pathname=n)}return r}function v0(n,r,i,l={}){let{window:a=document.defaultView,v5Compat:c=!1}=l,f=a.history,p="POP",h=null,y=w();y==null&&(y=0,f.replaceState({...f.state,idx:y},""));function w(){return(f.state||{idx:null}).idx}function x(){p="POP";let C=w(),P=C==null?null:C-y;y=C,h&&h({action:p,location:S.location,delta:P})}function E(C,P){p="PUSH";let T=yc(S.location,C,P);y=w()+1;let R=sh(T,y),L=S.createHref(T);try{f.pushState(R,"",L)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;a.location.assign(L)}c&&h&&h({action:p,location:S.location,delta:1})}function v(C,P){p="REPLACE";let T=yc(S.location,C,P);y=w();let R=sh(T,y),L=S.createHref(T);f.replaceState(R,"",L),c&&h&&h({action:p,location:S.location,delta:0})}function O(C){return g0(C)}let S={get action(){return p},get location(){return n(a,f)},listen(C){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(ih,x),h=C,()=>{a.removeEventListener(ih,x),h=null}},createHref(C){return r(a,C)},createURL:O,encodeLocation(C){let P=O(C);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:E,replace:v,go(C){return f.go(C)}};return S}function g0(n,r=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),$e(i,"No window.location.(origin|href) available to create URL");let l=typeof n=="string"?n:cs(n);return l=l.replace(/ $/,"%20"),!r&&l.startsWith("//")&&(l=i+l),new URL(l,i)}function hm(n,r,i="/"){return w0(n,r,i,!1)}function w0(n,r,i,l){let a=typeof r=="string"?hi(r):r,c=tr(a.pathname||"/",i);if(c==null)return null;let f=mm(n);x0(f);let p=null;for(let h=0;p==null&&h<f.length;++h){let y=_0(c);p=T0(f[h],y,l)}return p}function mm(n,r=[],i=[],l="",a=!1){let c=(f,p,h=a,y)=>{let w={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:p,route:f};if(w.relativePath.startsWith("/")){if(!w.relativePath.startsWith(l)&&h)return;$e(w.relativePath.startsWith(l),`Absolute route path "${w.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),w.relativePath=w.relativePath.slice(l.length)}let x=Jn([l,w.relativePath]),E=i.concat(w);f.children&&f.children.length>0&&($e(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),mm(f.children,r,E,x,h)),!(f.path==null&&!f.index)&&r.push({path:x,score:P0(x,f.index),routesMeta:E})};return n.forEach((f,p)=>{var h;if(f.path===""||!((h=f.path)!=null&&h.includes("?")))c(f,p);else for(let y of ym(f.path))c(f,p,!0,y)}),r}function ym(n){let r=n.split("/");if(r.length===0)return[];let[i,...l]=r,a=i.endsWith("?"),c=i.replace(/\?$/,"");if(l.length===0)return a?[c,""]:[c];let f=ym(l.join("/")),p=[];return p.push(...f.map(h=>h===""?c:[c,h].join("/"))),a&&p.push(...f),p.map(h=>n.startsWith("/")&&h===""?"/":h)}function x0(n){n.sort((r,i)=>r.score!==i.score?i.score-r.score:M0(r.routesMeta.map(l=>l.childrenIndex),i.routesMeta.map(l=>l.childrenIndex)))}var S0=/^:[\w-]+$/,C0=3,E0=2,k0=1,b0=10,R0=-2,lh=n=>n==="*";function P0(n,r){let i=n.split("/"),l=i.length;return i.some(lh)&&(l+=R0),r&&(l+=E0),i.filter(a=>!lh(a)).reduce((a,c)=>a+(S0.test(c)?C0:c===""?k0:b0),l)}function M0(n,r){return n.length===r.length&&n.slice(0,-1).every((l,a)=>l===r[a])?n[n.length-1]-r[r.length-1]:0}function T0(n,r,i=!1){let{routesMeta:l}=n,a={},c="/",f=[];for(let p=0;p<l.length;++p){let h=l[p],y=p===l.length-1,w=c==="/"?r:r.slice(c.length)||"/",x=Xl({path:h.relativePath,caseSensitive:h.caseSensitive,end:y},w),E=h.route;if(!x&&y&&i&&!l[l.length-1].route.index&&(x=Xl({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},w)),!x)return null;Object.assign(a,x.params),f.push({params:a,pathname:Jn([c,x.pathname]),pathnameBase:I0(Jn([c,x.pathnameBase])),route:E}),x.pathnameBase!=="/"&&(c=Jn([c,x.pathnameBase]))}return f}function Xl(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[i,l]=O0(n.path,n.caseSensitive,n.end),a=r.match(i);if(!a)return null;let c=a[0],f=c.replace(/(.)\/+$/,"$1"),p=a.slice(1);return{params:l.reduce((y,{paramName:w,isOptional:x},E)=>{if(w==="*"){let O=p[E]||"";f=c.slice(0,c.length-O.length).replace(/(.)\/+$/,"$1")}const v=p[E];return x&&!v?y[w]=void 0:y[w]=(v||"").replace(/%2F/g,"/"),y},{}),pathname:c,pathnameBase:f,pattern:n}}function O0(n,r=!1,i=!0){pn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let l=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,h)=>(l.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(l.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,r?void 0:"i"),l]}function _0(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return pn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function tr(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,l=n.charAt(i);return l&&l!=="/"?null:n.slice(i)||"/"}var N0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function L0(n,r="/"){let{pathname:i,search:l="",hash:a=""}=typeof n=="string"?hi(n):n,c;return i?(i=i.replace(/\/\/+/g,"/"),i.startsWith("/")?c=ah(i.substring(1),"/"):c=ah(i,r)):c=r,{pathname:c,search:D0(l),hash:F0(a)}}function ah(n,r){let i=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?i.length>1&&i.pop():a!=="."&&i.push(a)}),i.length>1?i.join("/"):"/"}function rc(n,r,i,l){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function A0(n){return n.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function Kc(n){let r=A0(n);return r.map((i,l)=>l===r.length-1?i.pathname:i.pathnameBase)}function qc(n,r,i,l=!1){let a;typeof n=="string"?a=hi(n):(a={...n},$e(!a.pathname||!a.pathname.includes("?"),rc("?","pathname","search",a)),$e(!a.pathname||!a.pathname.includes("#"),rc("#","pathname","hash",a)),$e(!a.search||!a.search.includes("#"),rc("#","search","hash",a)));let c=n===""||a.pathname==="",f=c?"/":a.pathname,p;if(f==null)p=i;else{let x=r.length-1;if(!l&&f.startsWith("..")){let E=f.split("/");for(;E[0]==="..";)E.shift(),x-=1;a.pathname=E.join("/")}p=x>=0?r[x]:"/"}let h=L0(a,p),y=f&&f!=="/"&&f.endsWith("/"),w=(c||f===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(y||w)&&(h.pathname+="/"),h}var Jn=n=>n.join("/").replace(/\/\/+/g,"/"),I0=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),D0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,F0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,z0=class{constructor(n,r,i,l=!1){this.status=n,this.statusText=r||"",this.internal=l,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function j0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function B0(n){return n.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var vm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function gm(n,r){let i=n;if(typeof i!="string"||!N0.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let l=i,a=!1;if(vm)try{let c=new URL(window.location.href),f=i.startsWith("//")?new URL(c.protocol+i):new URL(i),p=tr(f.pathname,r);f.origin===c.origin&&p!=null?i=p+f.search+f.hash:a=!0}catch{pn(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:a,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wm=["POST","PUT","PATCH","DELETE"];new Set(wm);var U0=["GET",...wm];new Set(U0);var mi=g.createContext(null);mi.displayName="DataRouter";var sa=g.createContext(null);sa.displayName="DataRouterState";var H0=g.createContext(!1),xm=g.createContext({isTransitioning:!1});xm.displayName="ViewTransition";var $0=g.createContext(new Map);$0.displayName="Fetchers";var W0=g.createContext(null);W0.displayName="Await";var Ut=g.createContext(null);Ut.displayName="Navigation";var gs=g.createContext(null);gs.displayName="Location";var yn=g.createContext({outlet:null,matches:[],isDataRoute:!1});yn.displayName="Route";var Yc=g.createContext(null);Yc.displayName="RouteError";var Sm="REACT_ROUTER_ERROR",V0="REDIRECT",Q0="ROUTE_ERROR_RESPONSE";function K0(n){if(n.startsWith(`${Sm}:${V0}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function q0(n){if(n.startsWith(`${Sm}:${Q0}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new z0(r.status,r.statusText,r.data)}catch{}}function Y0(n,{relative:r}={}){$e(yi(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:l}=g.useContext(Ut),{hash:a,pathname:c,search:f}=ws(n,{relative:r}),p=c;return i!=="/"&&(p=c==="/"?i:Jn([i,c])),l.createHref({pathname:p,search:f,hash:a})}function yi(){return g.useContext(gs)!=null}function Hr(){return $e(yi(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(gs).location}var Cm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Em(n){g.useContext(Ut).static||g.useLayoutEffect(n)}function km(){let{isDataRoute:n}=g.useContext(yn);return n?a1():G0()}function G0(){$e(yi(),"useNavigate() may be used only in the context of a <Router> component.");let n=g.useContext(mi),{basename:r,navigator:i}=g.useContext(Ut),{matches:l}=g.useContext(yn),{pathname:a}=Hr(),c=JSON.stringify(Kc(l)),f=g.useRef(!1);return Em(()=>{f.current=!0}),g.useCallback((h,y={})=>{if(pn(f.current,Cm),!f.current)return;if(typeof h=="number"){i.go(h);return}let w=qc(h,JSON.parse(c),a,y.relative==="path");n==null&&r!=="/"&&(w.pathname=w.pathname==="/"?r:Jn([r,w.pathname])),(y.replace?i.replace:i.push)(w,y.state,y)},[r,i,c,a,n])}g.createContext(null);function QC(){let{matches:n}=g.useContext(yn),r=n[n.length-1];return r?r.params:{}}function ws(n,{relative:r}={}){let{matches:i}=g.useContext(yn),{pathname:l}=Hr(),a=JSON.stringify(Kc(i));return g.useMemo(()=>qc(n,JSON.parse(a),l,r==="path"),[n,a,l,r])}function X0(n,r){return bm(n,r)}function bm(n,r,i,l,a){var T;$e(yi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=g.useContext(Ut),{matches:f}=g.useContext(yn),p=f[f.length-1],h=p?p.params:{},y=p?p.pathname:"/",w=p?p.pathnameBase:"/",x=p&&p.route;{let R=x&&x.path||"";Pm(y,!x||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
50
50
 
51
- Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let E=Hr(),y;if(r){let R=typeof r=="string"?hi(r):r;$e(w==="/"||((M=R.pathname)==null?void 0:M.startsWith(w)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${w}" but pathname "${R.pathname}" was given in the \`location\` prop.`),y=R}else y=E;let O=y.pathname||"/",S=O;if(w!=="/"){let R=w.replace(/^\//,"").split("/");S="/"+O.replace(/^\//,"").split("/").slice(R.length).join("/")}let C=hm(n,{pathname:S});pn(x||C!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),pn(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let P=n1(C&&C.map(R=>Object.assign({},R,{params:Object.assign({},h,R.params),pathname:Jn([w,c.encodeLocation?c.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?w:Jn([w,c.encodeLocation?c.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),f,i,l,a);return r&&P?g.createElement(gs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},P):P}function Z0(){let n=l1(),r=j0(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,l="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:l},c={padding:"2px 4px",backgroundColor:l},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:c},"ErrorBoundary")," or"," ",g.createElement("code",{style:c},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},r),i?g.createElement("pre",{style:a},i):null,f)}var J0=g.createElement(Z0,null),Rm=class extends g.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.onError?this.props.onError(n,r):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const i=Y0(n.digest);i&&(n=i)}let r=n!==void 0?g.createElement(vn.Provider,{value:this.props.routeContext},g.createElement(qc.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?g.createElement(e1,{error:n},r):r}};Rm.contextType=H0;var oc=new WeakMap;function e1({children:n,error:r}){let{basename:i}=g.useContext(Ut);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let l=K0(r.digest);if(l){let a=oc.get(r);if(a)throw a;let c=gm(l.location,i);if(ym&&!oc.get(r))if(c.isExternal||l.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:l.replace}));throw oc.set(r,f),f}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return n}function t1({routeContext:n,match:r,children:i}){let l=g.useContext(mi);return l&&l.static&&l.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(vn.Provider,{value:n},i)}function n1(n,r=[],i=null,l=null,a=null){if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let c=n,f=i==null?void 0:i.errors;if(f!=null){let w=c.findIndex(x=>x.route.id&&(f==null?void 0:f[x.route.id])!==void 0);$e(w>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,w+1))}let p=!1,h=-1;if(i)for(let w=0;w<c.length;w++){let x=c[w];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(h=w),x.route.id){let{loaderData:E,errors:y}=i,O=x.route.loader&&!E.hasOwnProperty(x.route.id)&&(!y||y[x.route.id]===void 0);if(x.route.lazy||O){p=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}let v=i&&l?(w,x)=>{var E,y;l(w,{location:i.location,params:((y=(E=i.matches)==null?void 0:E[0])==null?void 0:y.params)??{},unstable_pattern:B0(i.matches),errorInfo:x})}:void 0;return c.reduceRight((w,x,E)=>{let y,O=!1,S=null,C=null;i&&(y=f&&x.route.id?f[x.route.id]:void 0,S=x.route.errorElement||J0,p&&(h<0&&E===0?(Pm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,C=null):h===E&&(O=!0,C=x.route.hydrateFallbackElement||null)));let P=r.concat(c.slice(0,E+1)),M=()=>{let R;return y?R=S:O?R=C:x.route.Component?R=g.createElement(x.route.Component,null):x.route.element?R=x.route.element:R=w,g.createElement(t1,{match:x,routeContext:{outlet:w,matches:P,isDataRoute:i!=null},children:R})};return i&&(x.route.ErrorBoundary||x.route.errorElement||E===0)?g.createElement(Rm,{location:i.location,revalidation:i.revalidation,component:S,error:y,children:M(),routeContext:{outlet:null,matches:P,isDataRoute:!0},onError:v}):M()},null)}function Gc(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function r1(n){let r=g.useContext(mi);return $e(r,Gc(n)),r}function o1(n){let r=g.useContext(sa);return $e(r,Gc(n)),r}function i1(n){let r=g.useContext(vn);return $e(r,Gc(n)),r}function Xc(n){let r=i1(n),i=r.matches[r.matches.length-1];return $e(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function s1(){return Xc("useRouteId")}function l1(){var l;let n=g.useContext(qc),r=o1("useRouteError"),i=Xc("useRouteError");return n!==void 0?n:(l=r.errors)==null?void 0:l[i]}function a1(){let{router:n}=r1("useNavigate"),r=Xc("useNavigate"),i=g.useRef(!1);return Em(()=>{i.current=!0}),g.useCallback(async(a,c={})=>{pn(i.current,Cm),i.current&&(typeof a=="number"?await n.navigate(a):await n.navigate(a,{fromRouteId:r,...c}))},[n,r])}var uh={};function Pm(n,r,i){!r&&!uh[n]&&(uh[n]=!0,pn(!1,i))}g.memo(u1);function u1({routes:n,future:r,state:i,onError:l}){return bm(n,void 0,i,l,r)}function KC({to:n,replace:r,state:i,relative:l}){$e(vi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=g.useContext(Ut);pn(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=g.useContext(vn),{pathname:f}=Hr(),p=km(),h=Yc(n,Kc(c),f,l==="path"),v=JSON.stringify(h);return g.useEffect(()=>{p(JSON.parse(v),{replace:r,state:i,relative:l})},[p,v,l,r,i]),null}function c1(n){$e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function d1({basename:n="/",children:r=null,location:i,navigationType:l="POP",navigator:a,static:c=!1,unstable_useTransitions:f}){$e(!vi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),h=g.useMemo(()=>({basename:p,navigator:a,static:c,unstable_useTransitions:f,future:{}}),[p,a,c,f]);typeof i=="string"&&(i=hi(i));let{pathname:v="/",search:w="",hash:x="",state:E=null,key:y="default"}=i,O=g.useMemo(()=>{let S=tr(v,p);return S==null?null:{location:{pathname:S,search:w,hash:x,state:E,key:y},navigationType:l}},[p,v,w,x,E,y,l]);return pn(O!=null,`<Router basename="${p}"> is not able to match the URL "${v}${w}${x}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:g.createElement(Ut.Provider,{value:h},g.createElement(gs.Provider,{children:r,value:O}))}function YC({children:n,location:r}){return X0(yc(n),r)}function yc(n,r=[]){let i=[];return g.Children.forEach(n,(l,a)=>{if(!g.isValidElement(l))return;let c=[...r,a];if(l.type===g.Fragment){i.push.apply(i,yc(l.props.children,c));return}$e(l.type===c1,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),$e(!l.props.index||!l.props.children,"An index route cannot have child routes.");let f={id:l.props.id||c.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(f.children=yc(l.props.children,c)),i.push(f)}),i}var Vl="get",Ql="application/x-www-form-urlencoded";function la(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function f1(n){return la(n)&&n.tagName.toLowerCase()==="button"}function p1(n){return la(n)&&n.tagName.toLowerCase()==="form"}function h1(n){return la(n)&&n.tagName.toLowerCase()==="input"}function m1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function v1(n,r){return n.button===0&&(!r||r==="_self")&&!m1(n)}var Fl=null;function y1(){if(Fl===null)try{new FormData(document.createElement("form"),0),Fl=!1}catch{Fl=!0}return Fl}var g1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ic(n){return n!=null&&!g1.has(n)?(pn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ql}"`),null):n}function w1(n,r){let i,l,a,c,f;if(p1(n)){let p=n.getAttribute("action");l=p?tr(p,r):null,i=n.getAttribute("method")||Vl,a=ic(n.getAttribute("enctype"))||Ql,c=new FormData(n)}else if(f1(n)||h1(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=n.getAttribute("formaction")||p.getAttribute("action");if(l=h?tr(h,r):null,i=n.getAttribute("formmethod")||p.getAttribute("method")||Vl,a=ic(n.getAttribute("formenctype"))||ic(p.getAttribute("enctype"))||Ql,c=new FormData(p,n),!y1()){let{name:v,type:w,value:x}=n;if(w==="image"){let E=v?`${v}.`:"";c.append(`${E}x`,"0"),c.append(`${E}y`,"0")}else v&&c.append(v,x)}}else{if(la(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Vl,l=null,a=Ql,f=n}return c&&a==="text/plain"&&(f=c,c=void 0),{action:l,method:i.toLowerCase(),encType:a,formData:c,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Zc(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function x1(n,r,i,l){let a=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return i?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${l}`:a.pathname=`${a.pathname}.${l}`:a.pathname==="/"?a.pathname=`_root.${l}`:r&&tr(a.pathname,r)==="/"?a.pathname=`${r.replace(/\/$/,"")}/_root.${l}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${l}`,a}async function S1(n,r){if(n.id in r)return r[n.id];try{let i=await import(n.module);return r[n.id]=i,i}catch(i){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function C1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function E1(n,r,i){let l=await Promise.all(n.map(async a=>{let c=r.routes[a.route.id];if(c){let f=await S1(c,i);return f.links?f.links():[]}return[]}));return P1(l.flat(1).filter(C1).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function ch(n,r,i,l,a,c){let f=(h,v)=>i[v]?h.route.id!==i[v].route.id:!0,p=(h,v)=>{var w;return i[v].pathname!==h.pathname||((w=i[v].route.path)==null?void 0:w.endsWith("*"))&&i[v].params["*"]!==h.params["*"]};return c==="assets"?r.filter((h,v)=>f(h,v)||p(h,v)):c==="data"?r.filter((h,v)=>{var x;let w=l.routes[h.route.id];if(!w||!w.hasLoader)return!1;if(f(h,v)||p(h,v))return!0;if(h.route.shouldRevalidate){let E=h.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((x=i[0])==null?void 0:x.params)||{},nextUrl:new URL(n,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function k1(n,r,{includeHydrateFallback:i}={}){return b1(n.map(l=>{let a=r.routes[l.route.id];if(!a)return[];let c=[a.module];return a.clientActionModule&&(c=c.concat(a.clientActionModule)),a.clientLoaderModule&&(c=c.concat(a.clientLoaderModule)),i&&a.hydrateFallbackModule&&(c=c.concat(a.hydrateFallbackModule)),a.imports&&(c=c.concat(a.imports)),c}).flat(1))}function b1(n){return[...new Set(n)]}function R1(n){let r={},i=Object.keys(n).sort();for(let l of i)r[l]=n[l];return r}function P1(n,r){let i=new Set;return new Set(r),n.reduce((l,a)=>{let c=JSON.stringify(R1(a));return i.has(c)||(i.add(c),l.push({key:c,link:a})),l},[])}function Tm(){let n=g.useContext(mi);return Zc(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function T1(){let n=g.useContext(sa);return Zc(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Jc=g.createContext(void 0);Jc.displayName="FrameworkContext";function Mm(){let n=g.useContext(Jc);return Zc(n,"You must render this element inside a <HydratedRouter> element"),n}function M1(n,r){let i=g.useContext(Jc),[l,a]=g.useState(!1),[c,f]=g.useState(!1),{onFocus:p,onBlur:h,onMouseEnter:v,onMouseLeave:w,onTouchStart:x}=r,E=g.useRef(null);g.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let S=P=>{P.forEach(M=>{f(M.isIntersecting)})},C=new IntersectionObserver(S,{threshold:.5});return E.current&&C.observe(E.current),()=>{C.disconnect()}}},[n]),g.useEffect(()=>{if(l){let S=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(S)}}},[l]);let y=()=>{a(!0)},O=()=>{a(!1),f(!1)};return i?n!=="intent"?[c,E,{}]:[c,E,{onFocus:is(p,y),onBlur:is(h,O),onMouseEnter:is(v,y),onMouseLeave:is(w,O),onTouchStart:is(x,y)}]:[!1,E,{}]}function is(n,r){return i=>{n&&n(i),i.defaultPrevented||r(i)}}function O1({page:n,...r}){let{router:i}=Tm(),l=g.useMemo(()=>hm(i.routes,n,i.basename),[i.routes,n,i.basename]);return l?g.createElement(N1,{page:n,matches:l,...r}):null}function _1(n){let{manifest:r,routeModules:i}=Mm(),[l,a]=g.useState([]);return g.useEffect(()=>{let c=!1;return E1(n,r,i).then(f=>{c||a(f)}),()=>{c=!0}},[n,r,i]),l}function N1({page:n,matches:r,...i}){let l=Hr(),{future:a,manifest:c,routeModules:f}=Mm(),{basename:p}=Tm(),{loaderData:h,matches:v}=T1(),w=g.useMemo(()=>ch(n,r,v,c,l,"data"),[n,r,v,c,l]),x=g.useMemo(()=>ch(n,r,v,c,l,"assets"),[n,r,v,c,l]),E=g.useMemo(()=>{if(n===l.pathname+l.search+l.hash)return[];let S=new Set,C=!1;if(r.forEach(M=>{var L;let R=c.routes[M.route.id];!R||!R.hasLoader||(!w.some(z=>z.route.id===M.route.id)&&M.route.id in h&&((L=f[M.route.id])!=null&&L.shouldRevalidate)||R.hasClientLoader?C=!0:S.add(M.route.id))}),S.size===0)return[];let P=x1(n,p,a.unstable_trailingSlashAwareDataRequests,"data");return C&&S.size>0&&P.searchParams.set("_routes",r.filter(M=>S.has(M.route.id)).map(M=>M.route.id).join(",")),[P.pathname+P.search]},[p,a.unstable_trailingSlashAwareDataRequests,h,l,c,w,r,n,f]),y=g.useMemo(()=>k1(x,c),[x,c]),O=_1(x);return g.createElement(g.Fragment,null,E.map(S=>g.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...i})),y.map(S=>g.createElement("link",{key:S,rel:"modulepreload",href:S,...i})),O.map(({key:S,link:C})=>g.createElement("link",{key:S,nonce:i.nonce,...C,crossOrigin:C.crossOrigin??i.crossOrigin})))}function L1(...n){return r=>{n.forEach(i=>{typeof i=="function"?i(r):i!=null&&(i.current=r)})}}var I1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{I1&&(window.__reactRouterVersion="7.13.0")}catch{}function qC({basename:n,children:r,unstable_useTransitions:i,window:l}){let a=g.useRef();a.current==null&&(a.current=m0({window:l,v5Compat:!0}));let c=a.current,[f,p]=g.useState({action:c.action,location:c.location}),h=g.useCallback(v=>{i===!1?p(v):g.startTransition(()=>p(v))},[i]);return g.useLayoutEffect(()=>c.listen(h),[c,h]),g.createElement(d1,{basename:n,children:r,location:f.location,navigationType:f.action,navigator:c,unstable_useTransitions:i})}var Om=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_m=g.forwardRef(function({onClick:r,discover:i="render",prefetch:l="none",relative:a,reloadDocument:c,replace:f,state:p,target:h,to:v,preventScrollReset:w,viewTransition:x,unstable_defaultShouldRevalidate:E,...y},O){let{basename:S,unstable_useTransitions:C}=g.useContext(Ut),P=typeof v=="string"&&Om.test(v),M=gm(v,S);v=M.to;let R=q0(v,{relative:a}),[L,z,U]=M1(l,y),H=z1(v,{replace:f,state:p,target:h,preventScrollReset:w,relative:a,viewTransition:x,unstable_defaultShouldRevalidate:E,unstable_useTransitions:C});function Y(te){r&&r(te),te.defaultPrevented||H(te)}let Z=g.createElement("a",{...y,...U,href:M.absoluteURL||R,onClick:M.isExternal||c?r:Y,ref:L1(O,z),target:h,"data-discover":!P&&i==="render"?"true":void 0});return L&&!P?g.createElement(g.Fragment,null,Z,g.createElement(O1,{page:R})):Z});_m.displayName="Link";var A1=g.forwardRef(function({"aria-current":r="page",caseSensitive:i=!1,className:l="",end:a=!1,style:c,to:f,viewTransition:p,children:h,...v},w){let x=ws(f,{relative:v.relative}),E=Hr(),y=g.useContext(sa),{navigator:O,basename:S}=g.useContext(Ut),C=y!=null&&$1(x)&&p===!0,P=O.encodeLocation?O.encodeLocation(x).pathname:x.pathname,M=E.pathname,R=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(M=M.toLowerCase(),R=R?R.toLowerCase():null,P=P.toLowerCase()),R&&S&&(R=tr(R,S)||R);const L=P!=="/"&&P.endsWith("/")?P.length-1:P.length;let z=M===P||!a&&M.startsWith(P)&&M.charAt(L)==="/",U=R!=null&&(R===P||!a&&R.startsWith(P)&&R.charAt(P.length)==="/"),H={isActive:z,isPending:U,isTransitioning:C},Y=z?r:void 0,Z;typeof l=="function"?Z=l(H):Z=[l,z?"active":null,U?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let te=typeof c=="function"?c(H):c;return g.createElement(_m,{...v,"aria-current":Y,className:Z,ref:w,style:te,to:f,viewTransition:p},typeof h=="function"?h(H):h)});A1.displayName="NavLink";var D1=g.forwardRef(({discover:n="render",fetcherKey:r,navigate:i,reloadDocument:l,replace:a,state:c,method:f=Vl,action:p,onSubmit:h,relative:v,preventScrollReset:w,viewTransition:x,unstable_defaultShouldRevalidate:E,...y},O)=>{let{unstable_useTransitions:S}=g.useContext(Ut),C=U1(),P=H1(p,{relative:v}),M=f.toLowerCase()==="get"?"get":"post",R=typeof p=="string"&&Om.test(p),L=z=>{if(h&&h(z),z.defaultPrevented)return;z.preventDefault();let U=z.nativeEvent.submitter,H=(U==null?void 0:U.getAttribute("formmethod"))||f,Y=()=>C(U||z.currentTarget,{fetcherKey:r,method:H,navigate:i,replace:a,state:c,relative:v,preventScrollReset:w,viewTransition:x,unstable_defaultShouldRevalidate:E});S&&i!==!1?g.startTransition(()=>Y()):Y()};return g.createElement("form",{ref:O,method:M,action:P,onSubmit:l?h:L,...y,"data-discover":!R&&n==="render"?"true":void 0})});D1.displayName="Form";function F1(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nm(n){let r=g.useContext(mi);return $e(r,F1(n)),r}function z1(n,{target:r,replace:i,state:l,preventScrollReset:a,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:p,unstable_useTransitions:h}={}){let v=km(),w=Hr(),x=ws(n,{relative:c});return g.useCallback(E=>{if(v1(E,r)){E.preventDefault();let y=i!==void 0?i:cs(w)===cs(x),O=()=>v(n,{replace:y,state:l,preventScrollReset:a,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:p});h?g.startTransition(()=>O()):O()}},[w,v,x,i,l,r,n,a,c,f,p,h])}var j1=0,B1=()=>`__${String(++j1)}__`;function U1(){let{router:n}=Nm("useSubmit"),{basename:r}=g.useContext(Ut),i=s1(),l=n.fetch,a=n.navigate;return g.useCallback(async(c,f={})=>{let{action:p,method:h,encType:v,formData:w,body:x}=w1(c,r);if(f.navigate===!1){let E=f.fetcherKey||B1();await l(E,i,f.action||p,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:w,body:x,formMethod:f.method||h,formEncType:f.encType||v,flushSync:f.flushSync})}else await a(f.action||p,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:w,body:x,formMethod:f.method||h,formEncType:f.encType||v,replace:f.replace,state:f.state,fromRouteId:i,flushSync:f.flushSync,viewTransition:f.viewTransition})},[l,a,r,i])}function H1(n,{relative:r}={}){let{basename:i}=g.useContext(Ut),l=g.useContext(vn);$e(l,"useFormAction must be used inside a RouteContext");let[a]=l.matches.slice(-1),c={...ws(n||".",{relative:r})},f=Hr();if(n==null){c.search=f.search;let p=new URLSearchParams(c.search),h=p.getAll("index");if(h.some(w=>w==="")){p.delete("index"),h.filter(x=>x).forEach(x=>p.append("index",x));let w=p.toString();c.search=w?`?${w}`:""}}return(!n||n===".")&&a.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:Jn([i,c.pathname])),cs(c)}function $1(n,{relative:r}={}){let i=g.useContext(xm);$e(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=Nm("useViewTransitionState"),a=ws(n,{relative:r});if(!i.isTransitioning)return!1;let c=tr(i.currentLocation.pathname,l)||i.currentLocation.pathname,f=tr(i.nextLocation.pathname,l)||i.nextLocation.pathname;return Xl(a.pathname,f)!=null||Xl(a.pathname,c)!=null}var xs=pm();const Lm=dm(xs);var yi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},W1={setTimeout:(n,r)=>setTimeout(n,r),clearTimeout:n=>clearTimeout(n),setInterval:(n,r)=>setInterval(n,r),clearInterval:n=>clearInterval(n)},Or,Vc,em,V1=(em=class{constructor(){me(this,Or,W1);me(this,Vc,!1)}setTimeoutProvider(n){J(this,Or,n)}setTimeout(n,r){return b(this,Or).setTimeout(n,r)}clearTimeout(n){b(this,Or).clearTimeout(n)}setInterval(n,r){return b(this,Or).setInterval(n,r)}clearInterval(n){b(this,Or).clearInterval(n)}},Or=new WeakMap,Vc=new WeakMap,em),io=new V1;function Q1(n){setTimeout(n,0)}var vo=typeof window>"u"||"Deno"in globalThis;function Ct(){}function K1(n,r){return typeof n=="function"?n(r):n}function gc(n){return typeof n=="number"&&n>=0&&n!==1/0}function Im(n,r){return Math.max(n+(r||0)-Date.now(),0)}function jr(n,r){return typeof n=="function"?n(r):n}function Gt(n,r){return typeof n=="function"?n(r):n}function dh(n,r){const{type:i="all",exact:l,fetchStatus:a,predicate:c,queryKey:f,stale:p}=n;if(f){if(l){if(r.queryHash!==ed(f,r.options))return!1}else if(!ds(r.queryKey,f))return!1}if(i!=="all"){const h=r.isActive();if(i==="active"&&!h||i==="inactive"&&h)return!1}return!(typeof p=="boolean"&&r.isStale()!==p||a&&a!==r.state.fetchStatus||c&&!c(r))}function fh(n,r){const{exact:i,status:l,predicate:a,mutationKey:c}=n;if(c){if(!r.options.mutationKey)return!1;if(i){if(yo(r.options.mutationKey)!==yo(c))return!1}else if(!ds(r.options.mutationKey,c))return!1}return!(l&&r.state.status!==l||a&&!a(r))}function ed(n,r){return((r==null?void 0:r.queryKeyHashFn)||yo)(n)}function yo(n){return JSON.stringify(n,(r,i)=>wc(i)?Object.keys(i).sort().reduce((l,a)=>(l[a]=i[a],l),{}):i)}function ds(n,r){return n===r?!0:typeof n!=typeof r?!1:n&&r&&typeof n=="object"&&typeof r=="object"?Object.keys(r).every(i=>ds(n[i],r[i])):!1}var Y1=Object.prototype.hasOwnProperty;function Am(n,r,i=0){if(n===r)return n;if(i>500)return r;const l=ph(n)&&ph(r);if(!l&&!(wc(n)&&wc(r)))return r;const c=(l?n:Object.keys(n)).length,f=l?r:Object.keys(r),p=f.length,h=l?new Array(p):{};let v=0;for(let w=0;w<p;w++){const x=l?w:f[w],E=n[x],y=r[x];if(E===y){h[x]=E,(l?w<c:Y1.call(n,x))&&v++;continue}if(E===null||y===null||typeof E!="object"||typeof y!="object"){h[x]=y;continue}const O=Am(E,y,i+1);h[x]=O,O===E&&v++}return c===p&&v===c?n:h}function Zl(n,r){if(!r||Object.keys(n).length!==Object.keys(r).length)return!1;for(const i in n)if(n[i]!==r[i])return!1;return!0}function ph(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function wc(n){if(!hh(n))return!1;const r=n.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!hh(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function hh(n){return Object.prototype.toString.call(n)==="[object Object]"}function q1(n){return new Promise(r=>{io.setTimeout(r,n)})}function xc(n,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,r):i.structuralSharing!==!1?Am(n,r):r}function G1(n,r,i=0){const l=[...n,r];return i&&l.length>i?l.slice(1):l}function X1(n,r,i=0){const l=[r,...n];return i&&l.length>i?l.slice(0,-1):l}var td=Symbol();function Dm(n,r){return!n.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!n.queryFn||n.queryFn===td?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function nd(n,r){return typeof n=="function"?n(...r):!!n}function Z1(n,r,i){let l=!1,a;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(a??(a=r()),l||(l=!0,a.aborted?i():a.addEventListener("abort",i,{once:!0})),a)}),n}var so,_r,ti,tm,J1=(tm=class extends yi{constructor(){super();me(this,so);me(this,_r);me(this,ti);J(this,ti,r=>{if(!vo&&window.addEventListener){const i=()=>r();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){b(this,_r)||this.setEventListener(b(this,ti))}onUnsubscribe(){var r;this.hasListeners()||((r=b(this,_r))==null||r.call(this),J(this,_r,void 0))}setEventListener(r){var i;J(this,ti,r),(i=b(this,_r))==null||i.call(this),J(this,_r,r(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(r){b(this,so)!==r&&(J(this,so,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof b(this,so)=="boolean"?b(this,so):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},so=new WeakMap,_r=new WeakMap,ti=new WeakMap,tm),rd=new J1;function Sc(){let n,r;const i=new Promise((a,c)=>{n=a,r=c});i.status="pending",i.catch(()=>{});function l(a){Object.assign(i,a),delete i.resolve,delete i.reject}return i.resolve=a=>{l({status:"fulfilled",value:a}),n(a)},i.reject=a=>{l({status:"rejected",reason:a}),r(a)},i}var ew=Q1;function tw(){let n=[],r=0,i=p=>{p()},l=p=>{p()},a=ew;const c=p=>{r?n.push(p):a(()=>{i(p)})},f=()=>{const p=n;n=[],p.length&&a(()=>{l(()=>{p.forEach(h=>{i(h)})})})};return{batch:p=>{let h;r++;try{h=p()}finally{r--,r||f()}return h},batchCalls:p=>(...h)=>{c(()=>{p(...h)})},schedule:c,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{l=p},setScheduler:p=>{a=p}}}var nt=tw(),ni,Nr,ri,nm,nw=(nm=class extends yi{constructor(){super();me(this,ni,!0);me(this,Nr);me(this,ri);J(this,ri,r=>{if(!vo&&window.addEventListener){const i=()=>r(!0),l=()=>r(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}})}onSubscribe(){b(this,Nr)||this.setEventListener(b(this,ri))}onUnsubscribe(){var r;this.hasListeners()||((r=b(this,Nr))==null||r.call(this),J(this,Nr,void 0))}setEventListener(r){var i;J(this,ri,r),(i=b(this,Nr))==null||i.call(this),J(this,Nr,r(this.setOnline.bind(this)))}setOnline(r){b(this,ni)!==r&&(J(this,ni,r),this.listeners.forEach(l=>{l(r)}))}isOnline(){return b(this,ni)}},ni=new WeakMap,Nr=new WeakMap,ri=new WeakMap,nm),Jl=new nw;function rw(n){return Math.min(1e3*2**n,3e4)}function Fm(n){return(n??"online")==="online"?Jl.isOnline():!0}var Cc=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function zm(n){let r=!1,i=0,l;const a=Sc(),c=()=>a.status!=="pending",f=S=>{var C;if(!c()){const P=new Cc(S);E(P),(C=n.onCancel)==null||C.call(n,P)}},p=()=>{r=!0},h=()=>{r=!1},v=()=>rd.isFocused()&&(n.networkMode==="always"||Jl.isOnline())&&n.canRun(),w=()=>Fm(n.networkMode)&&n.canRun(),x=S=>{c()||(l==null||l(),a.resolve(S))},E=S=>{c()||(l==null||l(),a.reject(S))},y=()=>new Promise(S=>{var C;l=P=>{(c()||v())&&S(P)},(C=n.onPause)==null||C.call(n)}).then(()=>{var S;l=void 0,c()||(S=n.onContinue)==null||S.call(n)}),O=()=>{if(c())return;let S;const C=i===0?n.initialPromise:void 0;try{S=C??n.fn()}catch(P){S=Promise.reject(P)}Promise.resolve(S).then(x).catch(P=>{var U;if(c())return;const M=n.retry??(vo?0:3),R=n.retryDelay??rw,L=typeof R=="function"?R(i,P):R,z=M===!0||typeof M=="number"&&i<M||typeof M=="function"&&M(i,P);if(r||!z){E(P);return}i++,(U=n.onFail)==null||U.call(n,i,P),q1(L).then(()=>v()?void 0:y()).then(()=>{r?E(P):O()})})};return{promise:a,status:()=>a.status,cancel:f,continue:()=>(l==null||l(),a),cancelRetry:p,continueRetry:h,canStart:w,start:()=>(w()?O():y().then(O),a)}}var lo,rm,jm=(rm=class{constructor(){me(this,lo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gc(this.gcTime)&&J(this,lo,io.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(vo?1/0:300*1e3))}clearGcTimeout(){b(this,lo)&&(io.clearTimeout(b(this,lo)),J(this,lo,void 0))}},lo=new WeakMap,rm),ao,oi,qt,uo,st,ps,co,dn,Yn,om,ow=(om=class extends jm{constructor(r){super();me(this,dn);me(this,ao);me(this,oi);me(this,qt);me(this,uo);me(this,st);me(this,ps);me(this,co);J(this,co,!1),J(this,ps,r.defaultOptions),this.setOptions(r.options),this.observers=[],J(this,uo,r.client),J(this,qt,b(this,uo).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,J(this,ao,vh(this.options)),this.state=r.state??b(this,ao),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=b(this,st))==null?void 0:r.promise}setOptions(r){if(this.options={...b(this,ps),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=vh(this.options);i.data!==void 0&&(this.setState(mh(i.data,i.dataUpdatedAt)),J(this,ao,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,qt).remove(this)}setData(r,i){const l=xc(this.state.data,r,this.options);return Pe(this,dn,Yn).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(r,i){Pe(this,dn,Yn).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var l,a;const i=(l=b(this,st))==null?void 0:l.promise;return(a=b(this,st))==null||a.cancel(r),i?i.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,ao))}isActive(){return this.observers.some(r=>Gt(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===td||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>jr(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!Im(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(l=>l.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=b(this,st))==null||i.continue()}onOnline(){var i;const r=this.observers.find(l=>l.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=b(this,st))==null||i.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),b(this,qt).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(i=>i!==r),this.observers.length||(b(this,st)&&(b(this,co)?b(this,st).cancel({revert:!0}):b(this,st).cancelRetry()),this.scheduleGc()),b(this,qt).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,dn,Yn).call(this,{type:"invalidate"})}async fetch(r,i){var h,v,w,x,E,y,O,S,C,P,M,R;if(this.state.fetchStatus!=="idle"&&((h=b(this,st))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(b(this,st))return b(this,st).continueRetry(),b(this,st).promise}if(r&&this.setOptions(r),!this.options.queryFn){const L=this.observers.find(z=>z.options.queryFn);L&&this.setOptions(L.options)}const l=new AbortController,a=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(J(this,co,!0),l.signal)})},c=()=>{const L=Dm(this.options,i),U=(()=>{const H={client:b(this,uo),queryKey:this.queryKey,meta:this.meta};return a(H),H})();return J(this,co,!1),this.options.persister?this.options.persister(L,U,this):L(U)},p=(()=>{const L={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:b(this,uo),state:this.state,fetchFn:c};return a(L),L})();(v=this.options.behavior)==null||v.onFetch(p,this),J(this,oi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=p.fetchOptions)==null?void 0:w.meta))&&Pe(this,dn,Yn).call(this,{type:"fetch",meta:(x=p.fetchOptions)==null?void 0:x.meta}),J(this,st,zm({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:L=>{L instanceof Cc&&L.revert&&this.setState({...b(this,oi),fetchStatus:"idle"}),l.abort()},onFail:(L,z)=>{Pe(this,dn,Yn).call(this,{type:"failed",failureCount:L,error:z})},onPause:()=>{Pe(this,dn,Yn).call(this,{type:"pause"})},onContinue:()=>{Pe(this,dn,Yn).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const L=await b(this,st).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(y=(E=b(this,qt).config).onSuccess)==null||y.call(E,L,this),(S=(O=b(this,qt).config).onSettled)==null||S.call(O,L,this.state.error,this),L}catch(L){if(L instanceof Cc){if(L.silent)return b(this,st).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw Pe(this,dn,Yn).call(this,{type:"error",error:L}),(P=(C=b(this,qt).config).onError)==null||P.call(C,L,this),(R=(M=b(this,qt).config).onSettled)==null||R.call(M,this.state.data,L,this),L}finally{this.scheduleGc()}}},ao=new WeakMap,oi=new WeakMap,qt=new WeakMap,uo=new WeakMap,st=new WeakMap,ps=new WeakMap,co=new WeakMap,dn=new WeakSet,Yn=function(r){const i=l=>{switch(r.type){case"failed":return{...l,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...Bm(l.data,this.options),fetchMeta:r.meta??null};case"success":const a={...l,...mh(r.data,r.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,oi,r.manual?a:void 0),a;case"error":const c=r.error;return{...l,error:c,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...r.state}}};this.state=i(this.state),nt.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),b(this,qt).notify({query:this,type:"updated",action:r})})},om);function Bm(n,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Fm(r.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function mh(n,r){return{data:n,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function vh(n){const r=typeof n.initialData=="function"?n.initialData():n.initialData,i=r!==void 0,l=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:r,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 _t,_e,hs,St,fo,ii,qn,Lr,ms,si,li,po,ho,Ir,ai,Ae,as,Ec,kc,bc,Rc,Pc,Tc,Mc,Um,im,iw=(im=class extends yi{constructor(r,i){super();me(this,Ae);me(this,_t);me(this,_e);me(this,hs);me(this,St);me(this,fo);me(this,ii);me(this,qn);me(this,Lr);me(this,ms);me(this,si);me(this,li);me(this,po);me(this,ho);me(this,Ir);me(this,ai,new Set);this.options=i,J(this,_t,r),J(this,Lr,null),J(this,qn,Sc()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,_e).addObserver(this),yh(b(this,_e),this.options)?Pe(this,Ae,as).call(this):this.updateResult(),Pe(this,Ae,Rc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oc(b(this,_e),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oc(b(this,_e),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Pe(this,Ae,Pc).call(this),Pe(this,Ae,Tc).call(this),b(this,_e).removeObserver(this)}setOptions(r){const i=this.options,l=b(this,_e);if(this.options=b(this,_t).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Gt(this.options.enabled,b(this,_e))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Pe(this,Ae,Mc).call(this),b(this,_e).setOptions(this.options),i._defaulted&&!Zl(this.options,i)&&b(this,_t).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,_e),observer:this});const a=this.hasListeners();a&&gh(b(this,_e),l,this.options,i)&&Pe(this,Ae,as).call(this),this.updateResult(),a&&(b(this,_e)!==l||Gt(this.options.enabled,b(this,_e))!==Gt(i.enabled,b(this,_e))||jr(this.options.staleTime,b(this,_e))!==jr(i.staleTime,b(this,_e)))&&Pe(this,Ae,Ec).call(this);const c=Pe(this,Ae,kc).call(this);a&&(b(this,_e)!==l||Gt(this.options.enabled,b(this,_e))!==Gt(i.enabled,b(this,_e))||c!==b(this,Ir))&&Pe(this,Ae,bc).call(this,c)}getOptimisticResult(r){const i=b(this,_t).getQueryCache().build(b(this,_t),r),l=this.createResult(i,r);return lw(this,l)&&(J(this,St,l),J(this,ii,this.options),J(this,fo,b(this,_e).state)),l}getCurrentResult(){return b(this,St)}trackResult(r,i){return new Proxy(r,{get:(l,a)=>(this.trackProp(a),i==null||i(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&b(this,qn).status==="pending"&&b(this,qn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,a))})}trackProp(r){b(this,ai).add(r)}getCurrentQuery(){return b(this,_e)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=b(this,_t).defaultQueryOptions(r),l=b(this,_t).getQueryCache().build(b(this,_t),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(r){return Pe(this,Ae,as).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,St)))}createResult(r,i){var Z;const l=b(this,_e),a=this.options,c=b(this,St),f=b(this,fo),p=b(this,ii),v=r!==l?r.state:b(this,hs),{state:w}=r;let x={...w},E=!1,y;if(i._optimisticResults){const te=this.hasListeners(),he=!te&&yh(r,i),X=te&&gh(r,l,i,a);(he||X)&&(x={...x,...Bm(w.data,r.options)}),i._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:O,errorUpdatedAt:S,status:C}=x;y=x.data;let P=!1;if(i.placeholderData!==void 0&&y===void 0&&C==="pending"){let te;c!=null&&c.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(te=c.data,P=!0):te=typeof i.placeholderData=="function"?i.placeholderData((Z=b(this,li))==null?void 0:Z.state.data,b(this,li)):i.placeholderData,te!==void 0&&(C="success",y=xc(c==null?void 0:c.data,te,i),E=!0)}if(i.select&&y!==void 0&&!P)if(c&&y===(f==null?void 0:f.data)&&i.select===b(this,ms))y=b(this,si);else try{J(this,ms,i.select),y=i.select(y),y=xc(c==null?void 0:c.data,y,i),J(this,si,y),J(this,Lr,null)}catch(te){J(this,Lr,te)}b(this,Lr)&&(O=b(this,Lr),y=b(this,si),S=Date.now(),C="error");const M=x.fetchStatus==="fetching",R=C==="pending",L=C==="error",z=R&&M,U=y!==void 0,Y={status:C,fetchStatus:x.fetchStatus,isPending:R,isSuccess:C==="success",isError:L,isInitialLoading:z,isLoading:z,data:y,dataUpdatedAt:x.dataUpdatedAt,error:O,errorUpdatedAt:S,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>v.dataUpdateCount||x.errorUpdateCount>v.errorUpdateCount,isFetching:M,isRefetching:M&&!R,isLoadingError:L&&!U,isPaused:x.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:L&&U,isStale:od(r,i),refetch:this.refetch,promise:b(this,qn),isEnabled:Gt(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const te=Y.data!==void 0,he=Y.status==="error"&&!te,X=xe=>{he?xe.reject(Y.error):te&&xe.resolve(Y.data)},ye=()=>{const xe=J(this,qn,Y.promise=Sc());X(xe)},ce=b(this,qn);switch(ce.status){case"pending":r.queryHash===l.queryHash&&X(ce);break;case"fulfilled":(he||Y.data!==ce.value)&&ye();break;case"rejected":(!he||Y.error!==ce.reason)&&ye();break}}return Y}updateResult(){const r=b(this,St),i=this.createResult(b(this,_e),this.options);if(J(this,fo,b(this,_e).state),J(this,ii,this.options),b(this,fo).data!==void 0&&J(this,li,b(this,_e)),Zl(i,r))return;J(this,St,i);const l=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,c=typeof a=="function"?a():a;if(c==="all"||!c&&!b(this,ai).size)return!0;const f=new Set(c??b(this,ai));return this.options.throwOnError&&f.add("error"),Object.keys(b(this,St)).some(p=>{const h=p;return b(this,St)[h]!==r[h]&&f.has(h)})};Pe(this,Ae,Um).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Pe(this,Ae,Rc).call(this)}},_t=new WeakMap,_e=new WeakMap,hs=new WeakMap,St=new WeakMap,fo=new WeakMap,ii=new WeakMap,qn=new WeakMap,Lr=new WeakMap,ms=new WeakMap,si=new WeakMap,li=new WeakMap,po=new WeakMap,ho=new WeakMap,Ir=new WeakMap,ai=new WeakMap,Ae=new WeakSet,as=function(r){Pe(this,Ae,Mc).call(this);let i=b(this,_e).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(Ct)),i},Ec=function(){Pe(this,Ae,Pc).call(this);const r=jr(this.options.staleTime,b(this,_e));if(vo||b(this,St).isStale||!gc(r))return;const l=Im(b(this,St).dataUpdatedAt,r)+1;J(this,po,io.setTimeout(()=>{b(this,St).isStale||this.updateResult()},l))},kc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,_e)):this.options.refetchInterval)??!1},bc=function(r){Pe(this,Ae,Tc).call(this),J(this,Ir,r),!(vo||Gt(this.options.enabled,b(this,_e))===!1||!gc(b(this,Ir))||b(this,Ir)===0)&&J(this,ho,io.setInterval(()=>{(this.options.refetchIntervalInBackground||rd.isFocused())&&Pe(this,Ae,as).call(this)},b(this,Ir)))},Rc=function(){Pe(this,Ae,Ec).call(this),Pe(this,Ae,bc).call(this,Pe(this,Ae,kc).call(this))},Pc=function(){b(this,po)&&(io.clearTimeout(b(this,po)),J(this,po,void 0))},Tc=function(){b(this,ho)&&(io.clearInterval(b(this,ho)),J(this,ho,void 0))},Mc=function(){const r=b(this,_t).getQueryCache().build(b(this,_t),this.options);if(r===b(this,_e))return;const i=b(this,_e);J(this,_e,r),J(this,hs,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},Um=function(r){nt.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(b(this,St))}),b(this,_t).getQueryCache().notify({query:b(this,_e),type:"observerResultsUpdated"})})},im);function sw(n,r){return Gt(r.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&r.retryOnMount===!1)}function yh(n,r){return sw(n,r)||n.state.data!==void 0&&Oc(n,r,r.refetchOnMount)}function Oc(n,r,i){if(Gt(r.enabled,n)!==!1&&jr(r.staleTime,n)!=="static"){const l=typeof i=="function"?i(n):i;return l==="always"||l!==!1&&od(n,r)}return!1}function gh(n,r,i,l){return(n!==r||Gt(l.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&od(n,i)}function od(n,r){return Gt(r.enabled,n)!==!1&&n.isStaleByTime(jr(r.staleTime,n))}function lw(n,r){return!Zl(n.getCurrentResult(),r)}function wh(n){return{onFetch:(r,i)=>{var w,x,E,y,O;const l=r.options,a=(E=(x=(w=r.fetchOptions)==null?void 0:w.meta)==null?void 0:x.fetchMore)==null?void 0:E.direction,c=((y=r.state.data)==null?void 0:y.pages)||[],f=((O=r.state.data)==null?void 0:O.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const v=async()=>{let S=!1;const C=R=>{Z1(R,()=>r.signal,()=>S=!0)},P=Dm(r.options,r.fetchOptions),M=async(R,L,z)=>{if(S)return Promise.reject();if(L==null&&R.pages.length)return Promise.resolve(R);const H=(()=>{const he={client:r.client,queryKey:r.queryKey,pageParam:L,direction:z?"backward":"forward",meta:r.options.meta};return C(he),he})(),Y=await P(H),{maxPages:Z}=r.options,te=z?X1:G1;return{pages:te(R.pages,Y,Z),pageParams:te(R.pageParams,L,Z)}};if(a&&c.length){const R=a==="backward",L=R?aw:xh,z={pages:c,pageParams:f},U=L(l,z);p=await M(z,U,R)}else{const R=n??c.length;do{const L=h===0?f[0]??l.initialPageParam:xh(l,p);if(h>0&&L==null)break;p=await M(p,L),h++}while(h<R)}return p};r.options.persister?r.fetchFn=()=>{var S,C;return(C=(S=r.options).persister)==null?void 0:C.call(S,v,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=v}}}function xh(n,{pages:r,pageParams:i}){const l=r.length-1;return r.length>0?n.getNextPageParam(r[l],r,i[l],i):void 0}function aw(n,{pages:r,pageParams:i}){var l;return r.length>0?(l=n.getPreviousPageParam)==null?void 0:l.call(n,r[0],r,i[0],i):void 0}var vs,On,vt,mo,_n,Tr,sm,uw=(sm=class extends jm{constructor(r){super();me(this,_n);me(this,vs);me(this,On);me(this,vt);me(this,mo);J(this,vs,r.client),this.mutationId=r.mutationId,J(this,vt,r.mutationCache),J(this,On,[]),this.state=r.state||Hm(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){b(this,On).includes(r)||(b(this,On).push(r),this.clearGcTimeout(),b(this,vt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){J(this,On,b(this,On).filter(i=>i!==r)),this.scheduleGc(),b(this,vt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){b(this,On).length||(this.state.status==="pending"?this.scheduleGc():b(this,vt).remove(this))}continue(){var r;return((r=b(this,mo))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var f,p,h,v,w,x,E,y,O,S,C,P,M,R,L,z,U,H;const i=()=>{Pe(this,_n,Tr).call(this,{type:"continue"})},l={client:b(this,vs),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,mo,zm({fn:()=>this.options.mutationFn?this.options.mutationFn(r,l):Promise.reject(new Error("No mutationFn found")),onFail:(Y,Z)=>{Pe(this,_n,Tr).call(this,{type:"failed",failureCount:Y,error:Z})},onPause:()=>{Pe(this,_n,Tr).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,vt).canRun(this)}));const a=this.state.status==="pending",c=!b(this,mo).canStart();try{if(a)i();else{Pe(this,_n,Tr).call(this,{type:"pending",variables:r,isPaused:c}),b(this,vt).config.onMutate&&await b(this,vt).config.onMutate(r,this,l);const Z=await((p=(f=this.options).onMutate)==null?void 0:p.call(f,r,l));Z!==this.state.context&&Pe(this,_n,Tr).call(this,{type:"pending",context:Z,variables:r,isPaused:c})}const Y=await b(this,mo).start();return await((v=(h=b(this,vt).config).onSuccess)==null?void 0:v.call(h,Y,r,this.state.context,this,l)),await((x=(w=this.options).onSuccess)==null?void 0:x.call(w,Y,r,this.state.context,l)),await((y=(E=b(this,vt).config).onSettled)==null?void 0:y.call(E,Y,null,this.state.variables,this.state.context,this,l)),await((S=(O=this.options).onSettled)==null?void 0:S.call(O,Y,null,r,this.state.context,l)),Pe(this,_n,Tr).call(this,{type:"success",data:Y}),Y}catch(Y){try{await((P=(C=b(this,vt).config).onError)==null?void 0:P.call(C,Y,r,this.state.context,this,l))}catch(Z){Promise.reject(Z)}try{await((R=(M=this.options).onError)==null?void 0:R.call(M,Y,r,this.state.context,l))}catch(Z){Promise.reject(Z)}try{await((z=(L=b(this,vt).config).onSettled)==null?void 0:z.call(L,void 0,Y,this.state.variables,this.state.context,this,l))}catch(Z){Promise.reject(Z)}try{await((H=(U=this.options).onSettled)==null?void 0:H.call(U,void 0,Y,r,this.state.context,l))}catch(Z){Promise.reject(Z)}throw Pe(this,_n,Tr).call(this,{type:"error",error:Y}),Y}finally{b(this,vt).runNext(this)}}},vs=new WeakMap,On=new WeakMap,vt=new WeakMap,mo=new WeakMap,_n=new WeakSet,Tr=function(r){const i=l=>{switch(r.type){case"failed":return{...l,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...l,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:r.error,failureCount:l.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=i(this.state),nt.batch(()=>{b(this,On).forEach(l=>{l.onMutationUpdate(r)}),b(this,vt).notify({mutation:this,type:"updated",action:r})})},sm);function Hm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gn,fn,ys,lm,cw=(lm=class extends yi{constructor(r={}){super();me(this,Gn);me(this,fn);me(this,ys);this.config=r,J(this,Gn,new Set),J(this,fn,new Map),J(this,ys,0)}build(r,i,l){const a=new uw({client:r,mutationCache:this,mutationId:++Al(this,ys)._,options:r.defaultMutationOptions(i),state:l});return this.add(a),a}add(r){b(this,Gn).add(r);const i=zl(r);if(typeof i=="string"){const l=b(this,fn).get(i);l?l.push(r):b(this,fn).set(i,[r])}this.notify({type:"added",mutation:r})}remove(r){if(b(this,Gn).delete(r)){const i=zl(r);if(typeof i=="string"){const l=b(this,fn).get(i);if(l)if(l.length>1){const a=l.indexOf(r);a!==-1&&l.splice(a,1)}else l[0]===r&&b(this,fn).delete(i)}}this.notify({type:"removed",mutation:r})}canRun(r){const i=zl(r);if(typeof i=="string"){const l=b(this,fn).get(i),a=l==null?void 0:l.find(c=>c.state.status==="pending");return!a||a===r}else return!0}runNext(r){var l;const i=zl(r);if(typeof i=="string"){const a=(l=b(this,fn).get(i))==null?void 0:l.find(c=>c!==r&&c.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){nt.batch(()=>{b(this,Gn).forEach(r=>{this.notify({type:"removed",mutation:r})}),b(this,Gn).clear(),b(this,fn).clear()})}getAll(){return Array.from(b(this,Gn))}find(r){const i={exact:!0,...r};return this.getAll().find(l=>fh(i,l))}findAll(r={}){return this.getAll().filter(i=>fh(r,i))}notify(r){nt.batch(()=>{this.listeners.forEach(i=>{i(r)})})}resumePausedMutations(){const r=this.getAll().filter(i=>i.state.isPaused);return nt.batch(()=>Promise.all(r.map(i=>i.continue().catch(Ct))))}},Gn=new WeakMap,fn=new WeakMap,ys=new WeakMap,lm);function zl(n){var r;return(r=n.options.scope)==null?void 0:r.id}var Xn,Ar,Nt,Zn,er,Kl,_c,am,dw=(am=class extends yi{constructor(i,l){super();me(this,er);me(this,Xn);me(this,Ar);me(this,Nt);me(this,Zn);J(this,Xn,i),this.setOptions(l),this.bindMethods(),Pe(this,er,Kl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var a;const l=this.options;this.options=b(this,Xn).defaultMutationOptions(i),Zl(this.options,l)||b(this,Xn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,Nt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&yo(l.mutationKey)!==yo(this.options.mutationKey)?this.reset():((a=b(this,Nt))==null?void 0:a.state.status)==="pending"&&b(this,Nt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=b(this,Nt))==null||i.removeObserver(this)}onMutationUpdate(i){Pe(this,er,Kl).call(this),Pe(this,er,_c).call(this,i)}getCurrentResult(){return b(this,Ar)}reset(){var i;(i=b(this,Nt))==null||i.removeObserver(this),J(this,Nt,void 0),Pe(this,er,Kl).call(this),Pe(this,er,_c).call(this)}mutate(i,l){var a;return J(this,Zn,l),(a=b(this,Nt))==null||a.removeObserver(this),J(this,Nt,b(this,Xn).getMutationCache().build(b(this,Xn),this.options)),b(this,Nt).addObserver(this),b(this,Nt).execute(i)}},Xn=new WeakMap,Ar=new WeakMap,Nt=new WeakMap,Zn=new WeakMap,er=new WeakSet,Kl=function(){var l;const i=((l=b(this,Nt))==null?void 0:l.state)??Hm();J(this,Ar,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},_c=function(i){nt.batch(()=>{var l,a,c,f,p,h,v,w;if(b(this,Zn)&&this.hasListeners()){const x=b(this,Ar).variables,E=b(this,Ar).context,y={client:b(this,Xn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(a=(l=b(this,Zn)).onSuccess)==null||a.call(l,i.data,x,E,y)}catch(O){Promise.reject(O)}try{(f=(c=b(this,Zn)).onSettled)==null||f.call(c,i.data,null,x,E,y)}catch(O){Promise.reject(O)}}else if((i==null?void 0:i.type)==="error"){try{(h=(p=b(this,Zn)).onError)==null||h.call(p,i.error,x,E,y)}catch(O){Promise.reject(O)}try{(w=(v=b(this,Zn)).onSettled)==null||w.call(v,void 0,i.error,x,E,y)}catch(O){Promise.reject(O)}}}this.listeners.forEach(x=>{x(b(this,Ar))})})},am),Nn,um,fw=(um=class extends yi{constructor(r={}){super();me(this,Nn);this.config=r,J(this,Nn,new Map)}build(r,i,l){const a=i.queryKey,c=i.queryHash??ed(a,i);let f=this.get(c);return f||(f=new ow({client:r,queryKey:a,queryHash:c,options:r.defaultQueryOptions(i),state:l,defaultOptions:r.getQueryDefaults(a)}),this.add(f)),f}add(r){b(this,Nn).has(r.queryHash)||(b(this,Nn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const i=b(this,Nn).get(r.queryHash);i&&(r.destroy(),i===r&&b(this,Nn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){nt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return b(this,Nn).get(r)}getAll(){return[...b(this,Nn).values()]}find(r){const i={exact:!0,...r};return this.getAll().find(l=>dh(i,l))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(l=>dh(r,l)):i}notify(r){nt.batch(()=>{this.listeners.forEach(i=>{i(r)})})}onFocus(){nt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){nt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Nn=new WeakMap,um),Ke,Dr,Fr,ui,ci,zr,di,fi,cm,XC=(cm=class{constructor(n={}){me(this,Ke);me(this,Dr);me(this,Fr);me(this,ui);me(this,ci);me(this,zr);me(this,di);me(this,fi);J(this,Ke,n.queryCache||new fw),J(this,Dr,n.mutationCache||new cw),J(this,Fr,n.defaultOptions||{}),J(this,ui,new Map),J(this,ci,new Map),J(this,zr,0)}mount(){Al(this,zr)._++,b(this,zr)===1&&(J(this,di,rd.subscribe(async n=>{n&&(await this.resumePausedMutations(),b(this,Ke).onFocus())})),J(this,fi,Jl.subscribe(async n=>{n&&(await this.resumePausedMutations(),b(this,Ke).onOnline())})))}unmount(){var n,r;Al(this,zr)._--,b(this,zr)===0&&((n=b(this,di))==null||n.call(this),J(this,di,void 0),(r=b(this,fi))==null||r.call(this),J(this,fi,void 0))}isFetching(n){return b(this,Ke).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return b(this,Dr).findAll({...n,status:"pending"}).length}getQueryData(n){var i;const r=this.defaultQueryOptions({queryKey:n});return(i=b(this,Ke).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(n){const r=this.defaultQueryOptions(n),i=b(this,Ke).build(this,r),l=i.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(jr(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(l))}getQueriesData(n){return b(this,Ke).findAll(n).map(({queryKey:r,state:i})=>{const l=i.data;return[r,l]})}setQueryData(n,r,i){const l=this.defaultQueryOptions({queryKey:n}),a=b(this,Ke).get(l.queryHash),c=a==null?void 0:a.state.data,f=K1(r,c);if(f!==void 0)return b(this,Ke).build(this,l).setData(f,{...i,manual:!0})}setQueriesData(n,r,i){return nt.batch(()=>b(this,Ke).findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,r,i)]))}getQueryState(n){var i;const r=this.defaultQueryOptions({queryKey:n});return(i=b(this,Ke).get(r.queryHash))==null?void 0:i.state}removeQueries(n){const r=b(this,Ke);nt.batch(()=>{r.findAll(n).forEach(i=>{r.remove(i)})})}resetQueries(n,r){const i=b(this,Ke);return nt.batch(()=>(i.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},r)))}cancelQueries(n,r={}){const i={revert:!0,...r},l=nt.batch(()=>b(this,Ke).findAll(n).map(a=>a.cancel(i)));return Promise.all(l).then(Ct).catch(Ct)}invalidateQueries(n,r={}){return nt.batch(()=>(b(this,Ke).findAll(n).forEach(i=>{i.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},r)))}refetchQueries(n,r={}){const i={...r,cancelRefetch:r.cancelRefetch??!0},l=nt.batch(()=>b(this,Ke).findAll(n).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let c=a.fetch(void 0,i);return i.throwOnError||(c=c.catch(Ct)),a.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(l).then(Ct)}fetchQuery(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const i=b(this,Ke).build(this,r);return i.isStaleByTime(jr(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Ct).catch(Ct)}fetchInfiniteQuery(n){return n.behavior=wh(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Ct).catch(Ct)}ensureInfiniteQueryData(n){return n.behavior=wh(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Jl.isOnline()?b(this,Dr).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,Ke)}getMutationCache(){return b(this,Dr)}getDefaultOptions(){return b(this,Fr)}setDefaultOptions(n){J(this,Fr,n)}setQueryDefaults(n,r){b(this,ui).set(yo(n),{queryKey:n,defaultOptions:r})}getQueryDefaults(n){const r=[...b(this,ui).values()],i={};return r.forEach(l=>{ds(n,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(n,r){b(this,ci).set(yo(n),{mutationKey:n,defaultOptions:r})}getMutationDefaults(n){const r=[...b(this,ci).values()],i={};return r.forEach(l=>{ds(n,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const r={...b(this,Fr).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return r.queryHash||(r.queryHash=ed(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===td&&(r.enabled=!1),r}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...b(this,Fr).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){b(this,Ke).clear(),b(this,Dr).clear()}},Ke=new WeakMap,Dr=new WeakMap,Fr=new WeakMap,ui=new WeakMap,ci=new WeakMap,zr=new WeakMap,di=new WeakMap,fi=new WeakMap,cm),$m=g.createContext(void 0),Wm=n=>{const r=g.useContext($m);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},ZC=({client:n,children:r})=>(g.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),ee.jsx($m.Provider,{value:n,children:r})),Vm=g.createContext(!1),pw=()=>g.useContext(Vm);Vm.Provider;function hw(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var mw=g.createContext(hw()),vw=()=>g.useContext(mw),yw=(n,r,i)=>{const l=i!=null&&i.state.error&&typeof n.throwOnError=="function"?nd(n.throwOnError,[i.state.error,i]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||l)&&(r.isReset()||(n.retryOnMount=!1))},gw=n=>{g.useEffect(()=>{n.clearReset()},[n])},ww=({result:n,errorResetBoundary:r,throwOnError:i,query:l,suspense:a})=>n.isError&&!r.isReset()&&!n.isFetching&&l&&(a&&n.data===void 0||nd(i,[n.error,l])),xw=n=>{if(n.suspense){const i=a=>a==="static"?a:Math.max(a??1e3,1e3),l=n.staleTime;n.staleTime=typeof l=="function"?(...a)=>i(l(...a)):i(l),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Sw=(n,r)=>n.isLoading&&n.isFetching&&!r,Cw=(n,r)=>(n==null?void 0:n.suspense)&&r.isPending,Sh=(n,r,i)=>r.fetchOptimistic(n).catch(()=>{i.clearReset()});function Ew(n,r,i){var E,y,O,S;const l=pw(),a=vw(),c=Wm(),f=c.defaultQueryOptions(n);(y=(E=c.getDefaultOptions().queries)==null?void 0:E._experimental_beforeQuery)==null||y.call(E,f);const p=c.getQueryCache().get(f.queryHash);f._optimisticResults=l?"isRestoring":"optimistic",xw(f),yw(f,a,p),gw(a);const h=!c.getQueryCache().get(f.queryHash),[v]=g.useState(()=>new r(c,f)),w=v.getOptimisticResult(f),x=!l&&n.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(C=>{const P=x?v.subscribe(nt.batchCalls(C)):Ct;return v.updateResult(),P},[v,x]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),g.useEffect(()=>{v.setOptions(f)},[f,v]),Cw(f,w))throw Sh(f,v,a);if(ww({result:w,errorResetBoundary:a,throwOnError:f.throwOnError,query:p,suspense:f.suspense}))throw w.error;if((S=(O=c.getDefaultOptions().queries)==null?void 0:O._experimental_afterQuery)==null||S.call(O,f,w),f.experimental_prefetchInRender&&!vo&&Sw(w,l)){const C=h?Sh(f,v,a):p==null?void 0:p.promise;C==null||C.catch(Ct).finally(()=>{v.updateResult()})}return f.notifyOnChangeProps?w:v.trackResult(w)}function JC(n,r){return Ew(n,iw)}function eE(n,r){const i=Wm(),[l]=g.useState(()=>new dw(i,n));g.useEffect(()=>{l.setOptions(n)},[l,n]);const a=g.useSyncExternalStore(g.useCallback(f=>l.subscribe(nt.batchCalls(f)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c=g.useCallback((f,p)=>{l.mutate(f,p).catch(Ct)},[l]);if(a.error&&nd(l.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:c,mutateAsync:a.mutate}}function Qm(n){var r,i,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(r=0;r<a;r++)n[r]&&(i=Qm(n[r]))&&(l&&(l+=" "),l+=i)}else for(i in n)n[i]&&(l&&(l+=" "),l+=i);return l}function tE(){for(var n,r,i=0,l="",a=arguments.length;i<a;i++)(n=arguments[i])&&(r=Qm(n))&&(l&&(l+=" "),l+=r);return l}const id="-",kw=n=>{const r=Rw(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:f=>{const p=f.split(id);return p[0]===""&&p.length!==1&&p.shift(),Km(p,r)||bw(f)},getConflictingClassGroupIds:(f,p)=>{const h=i[f]||[];return p&&l[f]?[...h,...l[f]]:h}}},Km=(n,r)=>{var f;if(n.length===0)return r.classGroupId;const i=n[0],l=r.nextPart.get(i),a=l?Km(n.slice(1),l):void 0;if(a)return a;if(r.validators.length===0)return;const c=n.join(id);return(f=r.validators.find(({validator:p})=>p(c)))==null?void 0:f.classGroupId},Ch=/^\[(.+)\]$/,bw=n=>{if(Ch.test(n)){const r=Ch.exec(n)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},Rw=n=>{const{theme:r,prefix:i}=n,l={nextPart:new Map,validators:[]};return Tw(Object.entries(n.classGroups),i).forEach(([c,f])=>{Nc(f,l,c,r)}),l},Nc=(n,r,i,l)=>{n.forEach(a=>{if(typeof a=="string"){const c=a===""?r:Eh(r,a);c.classGroupId=i;return}if(typeof a=="function"){if(Pw(a)){Nc(a(l),r,i,l);return}r.validators.push({validator:a,classGroupId:i});return}Object.entries(a).forEach(([c,f])=>{Nc(f,Eh(r,c),i,l)})})},Eh=(n,r)=>{let i=n;return r.split(id).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},Pw=n=>n.isThemeGetter,Tw=(n,r)=>r?n.map(([i,l])=>{const a=l.map(c=>typeof c=="string"?r+c:typeof c=="object"?Object.fromEntries(Object.entries(c).map(([f,p])=>[r+f,p])):c);return[i,a]}):n,Mw=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,l=new Map;const a=(c,f)=>{i.set(c,f),r++,r>n&&(r=0,l=i,i=new Map)};return{get(c){let f=i.get(c);if(f!==void 0)return f;if((f=l.get(c))!==void 0)return a(c,f),f},set(c,f){i.has(c)?i.set(c,f):a(c,f)}}},Ym="!",Ow=n=>{const{separator:r,experimentalParseClassName:i}=n,l=r.length===1,a=r[0],c=r.length,f=p=>{const h=[];let v=0,w=0,x;for(let C=0;C<p.length;C++){let P=p[C];if(v===0){if(P===a&&(l||p.slice(C,C+c)===r)){h.push(p.slice(w,C)),w=C+c;continue}if(P==="/"){x=C;continue}}P==="["?v++:P==="]"&&v--}const E=h.length===0?p:p.substring(w),y=E.startsWith(Ym),O=y?E.substring(1):E,S=x&&x>w?x-w:void 0;return{modifiers:h,hasImportantModifier:y,baseClassName:O,maybePostfixModifierPosition:S}};return i?p=>i({className:p,parseClassName:f}):f},_w=n=>{if(n.length<=1)return n;const r=[];let i=[];return n.forEach(l=>{l[0]==="["?(r.push(...i.sort(),l),i=[]):i.push(l)}),r.push(...i.sort()),r},Nw=n=>({cache:Mw(n.cacheSize),parseClassName:Ow(n),...kw(n)}),Lw=/\s+/,Iw=(n,r)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:a}=r,c=[],f=n.trim().split(Lw);let p="";for(let h=f.length-1;h>=0;h-=1){const v=f[h],{modifiers:w,hasImportantModifier:x,baseClassName:E,maybePostfixModifierPosition:y}=i(v);let O=!!y,S=l(O?E.substring(0,y):E);if(!S){if(!O){p=v+(p.length>0?" "+p:p);continue}if(S=l(E),!S){p=v+(p.length>0?" "+p:p);continue}O=!1}const C=_w(w).join(":"),P=x?C+Ym:C,M=P+S;if(c.includes(M))continue;c.push(M);const R=a(S,O);for(let L=0;L<R.length;++L){const z=R[L];c.push(P+z)}p=v+(p.length>0?" "+p:p)}return p};function Aw(){let n=0,r,i,l="";for(;n<arguments.length;)(r=arguments[n++])&&(i=qm(r))&&(l&&(l+=" "),l+=i);return l}const qm=n=>{if(typeof n=="string")return n;let r,i="";for(let l=0;l<n.length;l++)n[l]&&(r=qm(n[l]))&&(i&&(i+=" "),i+=r);return i};function Dw(n,...r){let i,l,a,c=f;function f(h){const v=r.reduce((w,x)=>x(w),n());return i=Nw(v),l=i.cache.get,a=i.cache.set,c=p,p(h)}function p(h){const v=l(h);if(v)return v;const w=Iw(h,i);return a(h,w),w}return function(){return c(Aw.apply(null,arguments))}}const Ue=n=>{const r=i=>i[n]||[];return r.isThemeGetter=!0,r},Gm=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fw=/^\d+\/\d+$/,zw=new Set(["px","full","screen"]),jw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bw=/\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$/,Uw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Hw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$w=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kn=n=>Zo(n)||zw.has(n)||Fw.test(n),Rr=n=>gi(n,"length",Xw),Zo=n=>!!n&&!Number.isNaN(Number(n)),sc=n=>gi(n,"number",Zo),ss=n=>!!n&&Number.isInteger(Number(n)),Ww=n=>n.endsWith("%")&&Zo(n.slice(0,-1)),Re=n=>Gm.test(n),Pr=n=>jw.test(n),Vw=new Set(["length","size","percentage"]),Qw=n=>gi(n,Vw,Xm),Kw=n=>gi(n,"position",Xm),Yw=new Set(["image","url"]),qw=n=>gi(n,Yw,Jw),Gw=n=>gi(n,"",Zw),ls=()=>!0,gi=(n,r,i)=>{const l=Gm.exec(n);return l?l[1]?typeof r=="string"?l[1]===r:r.has(l[1]):i(l[2]):!1},Xw=n=>Bw.test(n)&&!Uw.test(n),Xm=()=>!1,Zw=n=>Hw.test(n),Jw=n=>$w.test(n),ex=()=>{const n=Ue("colors"),r=Ue("spacing"),i=Ue("blur"),l=Ue("brightness"),a=Ue("borderColor"),c=Ue("borderRadius"),f=Ue("borderSpacing"),p=Ue("borderWidth"),h=Ue("contrast"),v=Ue("grayscale"),w=Ue("hueRotate"),x=Ue("invert"),E=Ue("gap"),y=Ue("gradientColorStops"),O=Ue("gradientColorStopPositions"),S=Ue("inset"),C=Ue("margin"),P=Ue("opacity"),M=Ue("padding"),R=Ue("saturate"),L=Ue("scale"),z=Ue("sepia"),U=Ue("skew"),H=Ue("space"),Y=Ue("translate"),Z=()=>["auto","contain","none"],te=()=>["auto","hidden","clip","visible","scroll"],he=()=>["auto",Re,r],X=()=>[Re,r],ye=()=>["",Kn,Rr],ce=()=>["auto",Zo,Re],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ae=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",Re],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>[Zo,Re];return{cacheSize:500,separator:":",theme:{colors:[ls],spacing:[Kn,Rr],blur:["none","",Pr,Re],brightness:_(),borderColor:[n],borderRadius:["none","","full",Pr,Re],borderSpacing:X(),borderWidth:ye(),contrast:_(),grayscale:B(),hueRotate:_(),invert:B(),gap:X(),gradientColorStops:[n],gradientColorStopPositions:[Ww,Rr],inset:he(),margin:he(),opacity:_(),padding:X(),saturate:_(),scale:_(),sepia:B(),skew:_(),space:X(),translate:X()},classGroups:{aspect:[{aspect:["auto","square","video",Re]}],container:["container"],columns:[{columns:[Pr]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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:[...xe(),Re]}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ss,Re]}],basis:[{basis:he()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Re]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",ss,Re]}],"grid-cols":[{"grid-cols":[ls]}],"col-start-end":[{col:["auto",{span:["full",ss,Re]},Re]}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":[ls]}],"row-start-end":[{row:["auto",{span:[ss,Re]},Re]}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Re]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Re,r]}],"min-w":[{"min-w":[Re,r,"min","max","fit"]}],"max-w":[{"max-w":[Re,r,"none","full","min","max","fit","prose",{screen:[Pr]},Pr]}],h:[{h:[Re,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Re,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Re,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Re,r,"auto","min","max","fit"]}],"font-size":[{text:["base",Pr,Rr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sc]}],"font-family":[{font:[ls]}],"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",Re]}],"line-clamp":[{"line-clamp":["none",Zo,sc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Kn,Re]}],"list-image":[{"list-image":["none",Re]}],"list-style-type":[{list:["none","disc","decimal",Re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Kn,Rr]}],"underline-offset":[{"underline-offset":["auto",Kn,Re]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Re]}],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",Re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),Kw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qw]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[O]}],"gradient-via-pos":[{via:[O]}],"gradient-to-pos":[{to:[O]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[c]}],"rounded-s":[{"rounded-s":[c]}],"rounded-e":[{"rounded-e":[c]}],"rounded-t":[{"rounded-t":[c]}],"rounded-r":[{"rounded-r":[c]}],"rounded-b":[{"rounded-b":[c]}],"rounded-l":[{"rounded-l":[c]}],"rounded-ss":[{"rounded-ss":[c]}],"rounded-se":[{"rounded-se":[c]}],"rounded-ee":[{"rounded-ee":[c]}],"rounded-es":[{"rounded-es":[c]}],"rounded-tl":[{"rounded-tl":[c]}],"rounded-tr":[{"rounded-tr":[c]}],"rounded-br":[{"rounded-br":[c]}],"rounded-bl":[{"rounded-bl":[c]}],"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":[P]}],"border-style":[{border:[...ae(),"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":[P]}],"divide-style":[{divide:ae()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...ae()]}],"outline-offset":[{"outline-offset":[Kn,Re]}],"outline-w":[{outline:[Kn,Rr]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[Kn,Rr]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",Pr,Gw]}],"shadow-color":[{shadow:[ls]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",Pr,Re]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[x]}],saturate:[{saturate:[R]}],sepia:[{sepia:[z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[f]}],"border-spacing-x":[{"border-spacing-x":[f]}],"border-spacing-y":[{"border-spacing-y":[f]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Re]}],duration:[{duration:_()}],ease:[{ease:["linear","in","out","in-out",Re]}],delay:[{delay:_()}],animate:[{animate:["none","spin","ping","pulse","bounce",Re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[ss,Re]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Re]}],accent:[{accent:["auto",n]}],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",Re]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"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",Re]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[Kn,Rr,sc]}],stroke:[{stroke:[n,"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"]}}},nE=Dw(ex);/**
51
+ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let E=Hr(),v;if(r){let R=typeof r=="string"?hi(r):r;$e(w==="/"||((T=R.pathname)==null?void 0:T.startsWith(w)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${w}" but pathname "${R.pathname}" was given in the \`location\` prop.`),v=R}else v=E;let O=v.pathname||"/",S=O;if(w!=="/"){let R=w.replace(/^\//,"").split("/");S="/"+O.replace(/^\//,"").split("/").slice(R.length).join("/")}let C=hm(n,{pathname:S});pn(x||C!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),pn(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let P=n1(C&&C.map(R=>Object.assign({},R,{params:Object.assign({},h,R.params),pathname:Jn([w,c.encodeLocation?c.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?w:Jn([w,c.encodeLocation?c.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),f,i,l,a);return r&&P?g.createElement(gs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},P):P}function Z0(){let n=l1(),r=j0(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,l="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:l},c={padding:"2px 4px",backgroundColor:l},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:c},"ErrorBoundary")," or"," ",g.createElement("code",{style:c},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},r),i?g.createElement("pre",{style:a},i):null,f)}var J0=g.createElement(Z0,null),Rm=class extends g.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.onError?this.props.onError(n,r):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const i=q0(n.digest);i&&(n=i)}let r=n!==void 0?g.createElement(yn.Provider,{value:this.props.routeContext},g.createElement(Yc.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?g.createElement(e1,{error:n},r):r}};Rm.contextType=H0;var oc=new WeakMap;function e1({children:n,error:r}){let{basename:i}=g.useContext(Ut);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let l=K0(r.digest);if(l){let a=oc.get(r);if(a)throw a;let c=gm(l.location,i);if(vm&&!oc.get(r))if(c.isExternal||l.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:l.replace}));throw oc.set(r,f),f}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return n}function t1({routeContext:n,match:r,children:i}){let l=g.useContext(mi);return l&&l.static&&l.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=r.route.id),g.createElement(yn.Provider,{value:n},i)}function n1(n,r=[],i=null,l=null,a=null){if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let c=n,f=i==null?void 0:i.errors;if(f!=null){let w=c.findIndex(x=>x.route.id&&(f==null?void 0:f[x.route.id])!==void 0);$e(w>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,w+1))}let p=!1,h=-1;if(i)for(let w=0;w<c.length;w++){let x=c[w];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(h=w),x.route.id){let{loaderData:E,errors:v}=i,O=x.route.loader&&!E.hasOwnProperty(x.route.id)&&(!v||v[x.route.id]===void 0);if(x.route.lazy||O){p=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}let y=i&&l?(w,x)=>{var E,v;l(w,{location:i.location,params:((v=(E=i.matches)==null?void 0:E[0])==null?void 0:v.params)??{},unstable_pattern:B0(i.matches),errorInfo:x})}:void 0;return c.reduceRight((w,x,E)=>{let v,O=!1,S=null,C=null;i&&(v=f&&x.route.id?f[x.route.id]:void 0,S=x.route.errorElement||J0,p&&(h<0&&E===0?(Pm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,C=null):h===E&&(O=!0,C=x.route.hydrateFallbackElement||null)));let P=r.concat(c.slice(0,E+1)),T=()=>{let R;return v?R=S:O?R=C:x.route.Component?R=g.createElement(x.route.Component,null):x.route.element?R=x.route.element:R=w,g.createElement(t1,{match:x,routeContext:{outlet:w,matches:P,isDataRoute:i!=null},children:R})};return i&&(x.route.ErrorBoundary||x.route.errorElement||E===0)?g.createElement(Rm,{location:i.location,revalidation:i.revalidation,component:S,error:v,children:T(),routeContext:{outlet:null,matches:P,isDataRoute:!0},onError:y}):T()},null)}function Gc(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function r1(n){let r=g.useContext(mi);return $e(r,Gc(n)),r}function o1(n){let r=g.useContext(sa);return $e(r,Gc(n)),r}function i1(n){let r=g.useContext(yn);return $e(r,Gc(n)),r}function Xc(n){let r=i1(n),i=r.matches[r.matches.length-1];return $e(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function s1(){return Xc("useRouteId")}function l1(){var l;let n=g.useContext(Yc),r=o1("useRouteError"),i=Xc("useRouteError");return n!==void 0?n:(l=r.errors)==null?void 0:l[i]}function a1(){let{router:n}=r1("useNavigate"),r=Xc("useNavigate"),i=g.useRef(!1);return Em(()=>{i.current=!0}),g.useCallback(async(a,c={})=>{pn(i.current,Cm),i.current&&(typeof a=="number"?await n.navigate(a):await n.navigate(a,{fromRouteId:r,...c}))},[n,r])}var uh={};function Pm(n,r,i){!r&&!uh[n]&&(uh[n]=!0,pn(!1,i))}g.memo(u1);function u1({routes:n,future:r,state:i,onError:l}){return bm(n,void 0,i,l,r)}function KC({to:n,replace:r,state:i,relative:l}){$e(yi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=g.useContext(Ut);pn(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=g.useContext(yn),{pathname:f}=Hr(),p=km(),h=qc(n,Kc(c),f,l==="path"),y=JSON.stringify(h);return g.useEffect(()=>{p(JSON.parse(y),{replace:r,state:i,relative:l})},[p,y,l,r,i]),null}function c1(n){$e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function d1({basename:n="/",children:r=null,location:i,navigationType:l="POP",navigator:a,static:c=!1,unstable_useTransitions:f}){$e(!yi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),h=g.useMemo(()=>({basename:p,navigator:a,static:c,unstable_useTransitions:f,future:{}}),[p,a,c,f]);typeof i=="string"&&(i=hi(i));let{pathname:y="/",search:w="",hash:x="",state:E=null,key:v="default"}=i,O=g.useMemo(()=>{let S=tr(y,p);return S==null?null:{location:{pathname:S,search:w,hash:x,state:E,key:v},navigationType:l}},[p,y,w,x,E,v,l]);return pn(O!=null,`<Router basename="${p}"> is not able to match the URL "${y}${w}${x}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:g.createElement(Ut.Provider,{value:h},g.createElement(gs.Provider,{children:r,value:O}))}function qC({children:n,location:r}){return X0(vc(n),r)}function vc(n,r=[]){let i=[];return g.Children.forEach(n,(l,a)=>{if(!g.isValidElement(l))return;let c=[...r,a];if(l.type===g.Fragment){i.push.apply(i,vc(l.props.children,c));return}$e(l.type===c1,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),$e(!l.props.index||!l.props.children,"An index route cannot have child routes.");let f={id:l.props.id||c.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(f.children=vc(l.props.children,c)),i.push(f)}),i}var Vl="get",Ql="application/x-www-form-urlencoded";function la(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function f1(n){return la(n)&&n.tagName.toLowerCase()==="button"}function p1(n){return la(n)&&n.tagName.toLowerCase()==="form"}function h1(n){return la(n)&&n.tagName.toLowerCase()==="input"}function m1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function y1(n,r){return n.button===0&&(!r||r==="_self")&&!m1(n)}var Fl=null;function v1(){if(Fl===null)try{new FormData(document.createElement("form"),0),Fl=!1}catch{Fl=!0}return Fl}var g1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ic(n){return n!=null&&!g1.has(n)?(pn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ql}"`),null):n}function w1(n,r){let i,l,a,c,f;if(p1(n)){let p=n.getAttribute("action");l=p?tr(p,r):null,i=n.getAttribute("method")||Vl,a=ic(n.getAttribute("enctype"))||Ql,c=new FormData(n)}else if(f1(n)||h1(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=n.getAttribute("formaction")||p.getAttribute("action");if(l=h?tr(h,r):null,i=n.getAttribute("formmethod")||p.getAttribute("method")||Vl,a=ic(n.getAttribute("formenctype"))||ic(p.getAttribute("enctype"))||Ql,c=new FormData(p,n),!v1()){let{name:y,type:w,value:x}=n;if(w==="image"){let E=y?`${y}.`:"";c.append(`${E}x`,"0"),c.append(`${E}y`,"0")}else y&&c.append(y,x)}}else{if(la(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Vl,l=null,a=Ql,f=n}return c&&a==="text/plain"&&(f=c,c=void 0),{action:l,method:i.toLowerCase(),encType:a,formData:c,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Zc(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function x1(n,r,i,l){let a=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return i?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${l}`:a.pathname=`${a.pathname}.${l}`:a.pathname==="/"?a.pathname=`_root.${l}`:r&&tr(a.pathname,r)==="/"?a.pathname=`${r.replace(/\/$/,"")}/_root.${l}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${l}`,a}async function S1(n,r){if(n.id in r)return r[n.id];try{let i=await import(n.module);return r[n.id]=i,i}catch(i){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function C1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function E1(n,r,i){let l=await Promise.all(n.map(async a=>{let c=r.routes[a.route.id];if(c){let f=await S1(c,i);return f.links?f.links():[]}return[]}));return P1(l.flat(1).filter(C1).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function ch(n,r,i,l,a,c){let f=(h,y)=>i[y]?h.route.id!==i[y].route.id:!0,p=(h,y)=>{var w;return i[y].pathname!==h.pathname||((w=i[y].route.path)==null?void 0:w.endsWith("*"))&&i[y].params["*"]!==h.params["*"]};return c==="assets"?r.filter((h,y)=>f(h,y)||p(h,y)):c==="data"?r.filter((h,y)=>{var x;let w=l.routes[h.route.id];if(!w||!w.hasLoader)return!1;if(f(h,y)||p(h,y))return!0;if(h.route.shouldRevalidate){let E=h.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((x=i[0])==null?void 0:x.params)||{},nextUrl:new URL(n,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function k1(n,r,{includeHydrateFallback:i}={}){return b1(n.map(l=>{let a=r.routes[l.route.id];if(!a)return[];let c=[a.module];return a.clientActionModule&&(c=c.concat(a.clientActionModule)),a.clientLoaderModule&&(c=c.concat(a.clientLoaderModule)),i&&a.hydrateFallbackModule&&(c=c.concat(a.hydrateFallbackModule)),a.imports&&(c=c.concat(a.imports)),c}).flat(1))}function b1(n){return[...new Set(n)]}function R1(n){let r={},i=Object.keys(n).sort();for(let l of i)r[l]=n[l];return r}function P1(n,r){let i=new Set;return new Set(r),n.reduce((l,a)=>{let c=JSON.stringify(R1(a));return i.has(c)||(i.add(c),l.push({key:c,link:a})),l},[])}function Mm(){let n=g.useContext(mi);return Zc(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function M1(){let n=g.useContext(sa);return Zc(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Jc=g.createContext(void 0);Jc.displayName="FrameworkContext";function Tm(){let n=g.useContext(Jc);return Zc(n,"You must render this element inside a <HydratedRouter> element"),n}function T1(n,r){let i=g.useContext(Jc),[l,a]=g.useState(!1),[c,f]=g.useState(!1),{onFocus:p,onBlur:h,onMouseEnter:y,onMouseLeave:w,onTouchStart:x}=r,E=g.useRef(null);g.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let S=P=>{P.forEach(T=>{f(T.isIntersecting)})},C=new IntersectionObserver(S,{threshold:.5});return E.current&&C.observe(E.current),()=>{C.disconnect()}}},[n]),g.useEffect(()=>{if(l){let S=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(S)}}},[l]);let v=()=>{a(!0)},O=()=>{a(!1),f(!1)};return i?n!=="intent"?[c,E,{}]:[c,E,{onFocus:is(p,v),onBlur:is(h,O),onMouseEnter:is(y,v),onMouseLeave:is(w,O),onTouchStart:is(x,v)}]:[!1,E,{}]}function is(n,r){return i=>{n&&n(i),i.defaultPrevented||r(i)}}function O1({page:n,...r}){let{router:i}=Mm(),l=g.useMemo(()=>hm(i.routes,n,i.basename),[i.routes,n,i.basename]);return l?g.createElement(N1,{page:n,matches:l,...r}):null}function _1(n){let{manifest:r,routeModules:i}=Tm(),[l,a]=g.useState([]);return g.useEffect(()=>{let c=!1;return E1(n,r,i).then(f=>{c||a(f)}),()=>{c=!0}},[n,r,i]),l}function N1({page:n,matches:r,...i}){let l=Hr(),{future:a,manifest:c,routeModules:f}=Tm(),{basename:p}=Mm(),{loaderData:h,matches:y}=M1(),w=g.useMemo(()=>ch(n,r,y,c,l,"data"),[n,r,y,c,l]),x=g.useMemo(()=>ch(n,r,y,c,l,"assets"),[n,r,y,c,l]),E=g.useMemo(()=>{if(n===l.pathname+l.search+l.hash)return[];let S=new Set,C=!1;if(r.forEach(T=>{var L;let R=c.routes[T.route.id];!R||!R.hasLoader||(!w.some(z=>z.route.id===T.route.id)&&T.route.id in h&&((L=f[T.route.id])!=null&&L.shouldRevalidate)||R.hasClientLoader?C=!0:S.add(T.route.id))}),S.size===0)return[];let P=x1(n,p,a.unstable_trailingSlashAwareDataRequests,"data");return C&&S.size>0&&P.searchParams.set("_routes",r.filter(T=>S.has(T.route.id)).map(T=>T.route.id).join(",")),[P.pathname+P.search]},[p,a.unstable_trailingSlashAwareDataRequests,h,l,c,w,r,n,f]),v=g.useMemo(()=>k1(x,c),[x,c]),O=_1(x);return g.createElement(g.Fragment,null,E.map(S=>g.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...i})),v.map(S=>g.createElement("link",{key:S,rel:"modulepreload",href:S,...i})),O.map(({key:S,link:C})=>g.createElement("link",{key:S,nonce:i.nonce,...C,crossOrigin:C.crossOrigin??i.crossOrigin})))}function L1(...n){return r=>{n.forEach(i=>{typeof i=="function"?i(r):i!=null&&(i.current=r)})}}var A1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{A1&&(window.__reactRouterVersion="7.13.0")}catch{}function YC({basename:n,children:r,unstable_useTransitions:i,window:l}){let a=g.useRef();a.current==null&&(a.current=m0({window:l,v5Compat:!0}));let c=a.current,[f,p]=g.useState({action:c.action,location:c.location}),h=g.useCallback(y=>{i===!1?p(y):g.startTransition(()=>p(y))},[i]);return g.useLayoutEffect(()=>c.listen(h),[c,h]),g.createElement(d1,{basename:n,children:r,location:f.location,navigationType:f.action,navigator:c,unstable_useTransitions:i})}var Om=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_m=g.forwardRef(function({onClick:r,discover:i="render",prefetch:l="none",relative:a,reloadDocument:c,replace:f,state:p,target:h,to:y,preventScrollReset:w,viewTransition:x,unstable_defaultShouldRevalidate:E,...v},O){let{basename:S,unstable_useTransitions:C}=g.useContext(Ut),P=typeof y=="string"&&Om.test(y),T=gm(y,S);y=T.to;let R=Y0(y,{relative:a}),[L,z,U]=T1(l,v),H=z1(y,{replace:f,state:p,target:h,preventScrollReset:w,relative:a,viewTransition:x,unstable_defaultShouldRevalidate:E,unstable_useTransitions:C});function q(te){r&&r(te),te.defaultPrevented||H(te)}let Z=g.createElement("a",{...v,...U,href:T.absoluteURL||R,onClick:T.isExternal||c?r:q,ref:L1(O,z),target:h,"data-discover":!P&&i==="render"?"true":void 0});return L&&!P?g.createElement(g.Fragment,null,Z,g.createElement(O1,{page:R})):Z});_m.displayName="Link";var I1=g.forwardRef(function({"aria-current":r="page",caseSensitive:i=!1,className:l="",end:a=!1,style:c,to:f,viewTransition:p,children:h,...y},w){let x=ws(f,{relative:y.relative}),E=Hr(),v=g.useContext(sa),{navigator:O,basename:S}=g.useContext(Ut),C=v!=null&&$1(x)&&p===!0,P=O.encodeLocation?O.encodeLocation(x).pathname:x.pathname,T=E.pathname,R=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(T=T.toLowerCase(),R=R?R.toLowerCase():null,P=P.toLowerCase()),R&&S&&(R=tr(R,S)||R);const L=P!=="/"&&P.endsWith("/")?P.length-1:P.length;let z=T===P||!a&&T.startsWith(P)&&T.charAt(L)==="/",U=R!=null&&(R===P||!a&&R.startsWith(P)&&R.charAt(P.length)==="/"),H={isActive:z,isPending:U,isTransitioning:C},q=z?r:void 0,Z;typeof l=="function"?Z=l(H):Z=[l,z?"active":null,U?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let te=typeof c=="function"?c(H):c;return g.createElement(_m,{...y,"aria-current":q,className:Z,ref:w,style:te,to:f,viewTransition:p},typeof h=="function"?h(H):h)});I1.displayName="NavLink";var D1=g.forwardRef(({discover:n="render",fetcherKey:r,navigate:i,reloadDocument:l,replace:a,state:c,method:f=Vl,action:p,onSubmit:h,relative:y,preventScrollReset:w,viewTransition:x,unstable_defaultShouldRevalidate:E,...v},O)=>{let{unstable_useTransitions:S}=g.useContext(Ut),C=U1(),P=H1(p,{relative:y}),T=f.toLowerCase()==="get"?"get":"post",R=typeof p=="string"&&Om.test(p),L=z=>{if(h&&h(z),z.defaultPrevented)return;z.preventDefault();let U=z.nativeEvent.submitter,H=(U==null?void 0:U.getAttribute("formmethod"))||f,q=()=>C(U||z.currentTarget,{fetcherKey:r,method:H,navigate:i,replace:a,state:c,relative:y,preventScrollReset:w,viewTransition:x,unstable_defaultShouldRevalidate:E});S&&i!==!1?g.startTransition(()=>q()):q()};return g.createElement("form",{ref:O,method:T,action:P,onSubmit:l?h:L,...v,"data-discover":!R&&n==="render"?"true":void 0})});D1.displayName="Form";function F1(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nm(n){let r=g.useContext(mi);return $e(r,F1(n)),r}function z1(n,{target:r,replace:i,state:l,preventScrollReset:a,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:p,unstable_useTransitions:h}={}){let y=km(),w=Hr(),x=ws(n,{relative:c});return g.useCallback(E=>{if(y1(E,r)){E.preventDefault();let v=i!==void 0?i:cs(w)===cs(x),O=()=>y(n,{replace:v,state:l,preventScrollReset:a,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:p});h?g.startTransition(()=>O()):O()}},[w,y,x,i,l,r,n,a,c,f,p,h])}var j1=0,B1=()=>`__${String(++j1)}__`;function U1(){let{router:n}=Nm("useSubmit"),{basename:r}=g.useContext(Ut),i=s1(),l=n.fetch,a=n.navigate;return g.useCallback(async(c,f={})=>{let{action:p,method:h,encType:y,formData:w,body:x}=w1(c,r);if(f.navigate===!1){let E=f.fetcherKey||B1();await l(E,i,f.action||p,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:w,body:x,formMethod:f.method||h,formEncType:f.encType||y,flushSync:f.flushSync})}else await a(f.action||p,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:w,body:x,formMethod:f.method||h,formEncType:f.encType||y,replace:f.replace,state:f.state,fromRouteId:i,flushSync:f.flushSync,viewTransition:f.viewTransition})},[l,a,r,i])}function H1(n,{relative:r}={}){let{basename:i}=g.useContext(Ut),l=g.useContext(yn);$e(l,"useFormAction must be used inside a RouteContext");let[a]=l.matches.slice(-1),c={...ws(n||".",{relative:r})},f=Hr();if(n==null){c.search=f.search;let p=new URLSearchParams(c.search),h=p.getAll("index");if(h.some(w=>w==="")){p.delete("index"),h.filter(x=>x).forEach(x=>p.append("index",x));let w=p.toString();c.search=w?`?${w}`:""}}return(!n||n===".")&&a.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:Jn([i,c.pathname])),cs(c)}function $1(n,{relative:r}={}){let i=g.useContext(xm);$e(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=Nm("useViewTransitionState"),a=ws(n,{relative:r});if(!i.isTransitioning)return!1;let c=tr(i.currentLocation.pathname,l)||i.currentLocation.pathname,f=tr(i.nextLocation.pathname,l)||i.nextLocation.pathname;return Xl(a.pathname,f)!=null||Xl(a.pathname,c)!=null}var xs=pm();const Lm=dm(xs);var vi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},W1={setTimeout:(n,r)=>setTimeout(n,r),clearTimeout:n=>clearTimeout(n),setInterval:(n,r)=>setInterval(n,r),clearInterval:n=>clearInterval(n)},Or,Vc,em,V1=(em=class{constructor(){me(this,Or,W1);me(this,Vc,!1)}setTimeoutProvider(n){J(this,Or,n)}setTimeout(n,r){return b(this,Or).setTimeout(n,r)}clearTimeout(n){b(this,Or).clearTimeout(n)}setInterval(n,r){return b(this,Or).setInterval(n,r)}clearInterval(n){b(this,Or).clearInterval(n)}},Or=new WeakMap,Vc=new WeakMap,em),io=new V1;function Q1(n){setTimeout(n,0)}var yo=typeof window>"u"||"Deno"in globalThis;function Ct(){}function K1(n,r){return typeof n=="function"?n(r):n}function gc(n){return typeof n=="number"&&n>=0&&n!==1/0}function Am(n,r){return Math.max(n+(r||0)-Date.now(),0)}function jr(n,r){return typeof n=="function"?n(r):n}function Gt(n,r){return typeof n=="function"?n(r):n}function dh(n,r){const{type:i="all",exact:l,fetchStatus:a,predicate:c,queryKey:f,stale:p}=n;if(f){if(l){if(r.queryHash!==ed(f,r.options))return!1}else if(!ds(r.queryKey,f))return!1}if(i!=="all"){const h=r.isActive();if(i==="active"&&!h||i==="inactive"&&h)return!1}return!(typeof p=="boolean"&&r.isStale()!==p||a&&a!==r.state.fetchStatus||c&&!c(r))}function fh(n,r){const{exact:i,status:l,predicate:a,mutationKey:c}=n;if(c){if(!r.options.mutationKey)return!1;if(i){if(vo(r.options.mutationKey)!==vo(c))return!1}else if(!ds(r.options.mutationKey,c))return!1}return!(l&&r.state.status!==l||a&&!a(r))}function ed(n,r){return((r==null?void 0:r.queryKeyHashFn)||vo)(n)}function vo(n){return JSON.stringify(n,(r,i)=>wc(i)?Object.keys(i).sort().reduce((l,a)=>(l[a]=i[a],l),{}):i)}function ds(n,r){return n===r?!0:typeof n!=typeof r?!1:n&&r&&typeof n=="object"&&typeof r=="object"?Object.keys(r).every(i=>ds(n[i],r[i])):!1}var q1=Object.prototype.hasOwnProperty;function Im(n,r,i=0){if(n===r)return n;if(i>500)return r;const l=ph(n)&&ph(r);if(!l&&!(wc(n)&&wc(r)))return r;const c=(l?n:Object.keys(n)).length,f=l?r:Object.keys(r),p=f.length,h=l?new Array(p):{};let y=0;for(let w=0;w<p;w++){const x=l?w:f[w],E=n[x],v=r[x];if(E===v){h[x]=E,(l?w<c:q1.call(n,x))&&y++;continue}if(E===null||v===null||typeof E!="object"||typeof v!="object"){h[x]=v;continue}const O=Im(E,v,i+1);h[x]=O,O===E&&y++}return c===p&&y===c?n:h}function Zl(n,r){if(!r||Object.keys(n).length!==Object.keys(r).length)return!1;for(const i in n)if(n[i]!==r[i])return!1;return!0}function ph(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function wc(n){if(!hh(n))return!1;const r=n.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!hh(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function hh(n){return Object.prototype.toString.call(n)==="[object Object]"}function Y1(n){return new Promise(r=>{io.setTimeout(r,n)})}function xc(n,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,r):i.structuralSharing!==!1?Im(n,r):r}function G1(n,r,i=0){const l=[...n,r];return i&&l.length>i?l.slice(1):l}function X1(n,r,i=0){const l=[r,...n];return i&&l.length>i?l.slice(0,-1):l}var td=Symbol();function Dm(n,r){return!n.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!n.queryFn||n.queryFn===td?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function nd(n,r){return typeof n=="function"?n(...r):!!n}function Z1(n,r,i){let l=!1,a;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(a??(a=r()),l||(l=!0,a.aborted?i():a.addEventListener("abort",i,{once:!0})),a)}),n}var so,_r,ti,tm,J1=(tm=class extends vi{constructor(){super();me(this,so);me(this,_r);me(this,ti);J(this,ti,r=>{if(!yo&&window.addEventListener){const i=()=>r();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){b(this,_r)||this.setEventListener(b(this,ti))}onUnsubscribe(){var r;this.hasListeners()||((r=b(this,_r))==null||r.call(this),J(this,_r,void 0))}setEventListener(r){var i;J(this,ti,r),(i=b(this,_r))==null||i.call(this),J(this,_r,r(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(r){b(this,so)!==r&&(J(this,so,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof b(this,so)=="boolean"?b(this,so):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},so=new WeakMap,_r=new WeakMap,ti=new WeakMap,tm),rd=new J1;function Sc(){let n,r;const i=new Promise((a,c)=>{n=a,r=c});i.status="pending",i.catch(()=>{});function l(a){Object.assign(i,a),delete i.resolve,delete i.reject}return i.resolve=a=>{l({status:"fulfilled",value:a}),n(a)},i.reject=a=>{l({status:"rejected",reason:a}),r(a)},i}var ew=Q1;function tw(){let n=[],r=0,i=p=>{p()},l=p=>{p()},a=ew;const c=p=>{r?n.push(p):a(()=>{i(p)})},f=()=>{const p=n;n=[],p.length&&a(()=>{l(()=>{p.forEach(h=>{i(h)})})})};return{batch:p=>{let h;r++;try{h=p()}finally{r--,r||f()}return h},batchCalls:p=>(...h)=>{c(()=>{p(...h)})},schedule:c,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{l=p},setScheduler:p=>{a=p}}}var nt=tw(),ni,Nr,ri,nm,nw=(nm=class extends vi{constructor(){super();me(this,ni,!0);me(this,Nr);me(this,ri);J(this,ri,r=>{if(!yo&&window.addEventListener){const i=()=>r(!0),l=()=>r(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}})}onSubscribe(){b(this,Nr)||this.setEventListener(b(this,ri))}onUnsubscribe(){var r;this.hasListeners()||((r=b(this,Nr))==null||r.call(this),J(this,Nr,void 0))}setEventListener(r){var i;J(this,ri,r),(i=b(this,Nr))==null||i.call(this),J(this,Nr,r(this.setOnline.bind(this)))}setOnline(r){b(this,ni)!==r&&(J(this,ni,r),this.listeners.forEach(l=>{l(r)}))}isOnline(){return b(this,ni)}},ni=new WeakMap,Nr=new WeakMap,ri=new WeakMap,nm),Jl=new nw;function rw(n){return Math.min(1e3*2**n,3e4)}function Fm(n){return(n??"online")==="online"?Jl.isOnline():!0}var Cc=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function zm(n){let r=!1,i=0,l;const a=Sc(),c=()=>a.status!=="pending",f=S=>{var C;if(!c()){const P=new Cc(S);E(P),(C=n.onCancel)==null||C.call(n,P)}},p=()=>{r=!0},h=()=>{r=!1},y=()=>rd.isFocused()&&(n.networkMode==="always"||Jl.isOnline())&&n.canRun(),w=()=>Fm(n.networkMode)&&n.canRun(),x=S=>{c()||(l==null||l(),a.resolve(S))},E=S=>{c()||(l==null||l(),a.reject(S))},v=()=>new Promise(S=>{var C;l=P=>{(c()||y())&&S(P)},(C=n.onPause)==null||C.call(n)}).then(()=>{var S;l=void 0,c()||(S=n.onContinue)==null||S.call(n)}),O=()=>{if(c())return;let S;const C=i===0?n.initialPromise:void 0;try{S=C??n.fn()}catch(P){S=Promise.reject(P)}Promise.resolve(S).then(x).catch(P=>{var U;if(c())return;const T=n.retry??(yo?0:3),R=n.retryDelay??rw,L=typeof R=="function"?R(i,P):R,z=T===!0||typeof T=="number"&&i<T||typeof T=="function"&&T(i,P);if(r||!z){E(P);return}i++,(U=n.onFail)==null||U.call(n,i,P),Y1(L).then(()=>y()?void 0:v()).then(()=>{r?E(P):O()})})};return{promise:a,status:()=>a.status,cancel:f,continue:()=>(l==null||l(),a),cancelRetry:p,continueRetry:h,canStart:w,start:()=>(w()?O():v().then(O),a)}}var lo,rm,jm=(rm=class{constructor(){me(this,lo)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gc(this.gcTime)&&J(this,lo,io.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(yo?1/0:300*1e3))}clearGcTimeout(){b(this,lo)&&(io.clearTimeout(b(this,lo)),J(this,lo,void 0))}},lo=new WeakMap,rm),ao,oi,Yt,uo,st,ps,co,dn,qn,om,ow=(om=class extends jm{constructor(r){super();me(this,dn);me(this,ao);me(this,oi);me(this,Yt);me(this,uo);me(this,st);me(this,ps);me(this,co);J(this,co,!1),J(this,ps,r.defaultOptions),this.setOptions(r.options),this.observers=[],J(this,uo,r.client),J(this,Yt,b(this,uo).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,J(this,ao,yh(this.options)),this.state=r.state??b(this,ao),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=b(this,st))==null?void 0:r.promise}setOptions(r){if(this.options={...b(this,ps),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=yh(this.options);i.data!==void 0&&(this.setState(mh(i.data,i.dataUpdatedAt)),J(this,ao,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Yt).remove(this)}setData(r,i){const l=xc(this.state.data,r,this.options);return Pe(this,dn,qn).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(r,i){Pe(this,dn,qn).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var l,a;const i=(l=b(this,st))==null?void 0:l.promise;return(a=b(this,st))==null||a.cancel(r),i?i.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,ao))}isActive(){return this.observers.some(r=>Gt(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===td||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>jr(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!Am(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(l=>l.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=b(this,st))==null||i.continue()}onOnline(){var i;const r=this.observers.find(l=>l.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=b(this,st))==null||i.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),b(this,Yt).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(i=>i!==r),this.observers.length||(b(this,st)&&(b(this,co)?b(this,st).cancel({revert:!0}):b(this,st).cancelRetry()),this.scheduleGc()),b(this,Yt).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Pe(this,dn,qn).call(this,{type:"invalidate"})}async fetch(r,i){var h,y,w,x,E,v,O,S,C,P,T,R;if(this.state.fetchStatus!=="idle"&&((h=b(this,st))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(b(this,st))return b(this,st).continueRetry(),b(this,st).promise}if(r&&this.setOptions(r),!this.options.queryFn){const L=this.observers.find(z=>z.options.queryFn);L&&this.setOptions(L.options)}const l=new AbortController,a=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(J(this,co,!0),l.signal)})},c=()=>{const L=Dm(this.options,i),U=(()=>{const H={client:b(this,uo),queryKey:this.queryKey,meta:this.meta};return a(H),H})();return J(this,co,!1),this.options.persister?this.options.persister(L,U,this):L(U)},p=(()=>{const L={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:b(this,uo),state:this.state,fetchFn:c};return a(L),L})();(y=this.options.behavior)==null||y.onFetch(p,this),J(this,oi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=p.fetchOptions)==null?void 0:w.meta))&&Pe(this,dn,qn).call(this,{type:"fetch",meta:(x=p.fetchOptions)==null?void 0:x.meta}),J(this,st,zm({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:L=>{L instanceof Cc&&L.revert&&this.setState({...b(this,oi),fetchStatus:"idle"}),l.abort()},onFail:(L,z)=>{Pe(this,dn,qn).call(this,{type:"failed",failureCount:L,error:z})},onPause:()=>{Pe(this,dn,qn).call(this,{type:"pause"})},onContinue:()=>{Pe(this,dn,qn).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const L=await b(this,st).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(v=(E=b(this,Yt).config).onSuccess)==null||v.call(E,L,this),(S=(O=b(this,Yt).config).onSettled)==null||S.call(O,L,this.state.error,this),L}catch(L){if(L instanceof Cc){if(L.silent)return b(this,st).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw Pe(this,dn,qn).call(this,{type:"error",error:L}),(P=(C=b(this,Yt).config).onError)==null||P.call(C,L,this),(R=(T=b(this,Yt).config).onSettled)==null||R.call(T,this.state.data,L,this),L}finally{this.scheduleGc()}}},ao=new WeakMap,oi=new WeakMap,Yt=new WeakMap,uo=new WeakMap,st=new WeakMap,ps=new WeakMap,co=new WeakMap,dn=new WeakSet,qn=function(r){const i=l=>{switch(r.type){case"failed":return{...l,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...Bm(l.data,this.options),fetchMeta:r.meta??null};case"success":const a={...l,...mh(r.data,r.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,oi,r.manual?a:void 0),a;case"error":const c=r.error;return{...l,error:c,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...r.state}}};this.state=i(this.state),nt.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),b(this,Yt).notify({query:this,type:"updated",action:r})})},om);function Bm(n,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Fm(r.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function mh(n,r){return{data:n,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function yh(n){const r=typeof n.initialData=="function"?n.initialData():n.initialData,i=r!==void 0,l=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:r,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 _t,_e,hs,St,fo,ii,Yn,Lr,ms,si,li,po,ho,Ar,ai,Ie,as,Ec,kc,bc,Rc,Pc,Mc,Tc,Um,im,iw=(im=class extends vi{constructor(r,i){super();me(this,Ie);me(this,_t);me(this,_e);me(this,hs);me(this,St);me(this,fo);me(this,ii);me(this,Yn);me(this,Lr);me(this,ms);me(this,si);me(this,li);me(this,po);me(this,ho);me(this,Ar);me(this,ai,new Set);this.options=i,J(this,_t,r),J(this,Lr,null),J(this,Yn,Sc()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,_e).addObserver(this),vh(b(this,_e),this.options)?Pe(this,Ie,as).call(this):this.updateResult(),Pe(this,Ie,Rc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oc(b(this,_e),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oc(b(this,_e),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Pe(this,Ie,Pc).call(this),Pe(this,Ie,Mc).call(this),b(this,_e).removeObserver(this)}setOptions(r){const i=this.options,l=b(this,_e);if(this.options=b(this,_t).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Gt(this.options.enabled,b(this,_e))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Pe(this,Ie,Tc).call(this),b(this,_e).setOptions(this.options),i._defaulted&&!Zl(this.options,i)&&b(this,_t).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,_e),observer:this});const a=this.hasListeners();a&&gh(b(this,_e),l,this.options,i)&&Pe(this,Ie,as).call(this),this.updateResult(),a&&(b(this,_e)!==l||Gt(this.options.enabled,b(this,_e))!==Gt(i.enabled,b(this,_e))||jr(this.options.staleTime,b(this,_e))!==jr(i.staleTime,b(this,_e)))&&Pe(this,Ie,Ec).call(this);const c=Pe(this,Ie,kc).call(this);a&&(b(this,_e)!==l||Gt(this.options.enabled,b(this,_e))!==Gt(i.enabled,b(this,_e))||c!==b(this,Ar))&&Pe(this,Ie,bc).call(this,c)}getOptimisticResult(r){const i=b(this,_t).getQueryCache().build(b(this,_t),r),l=this.createResult(i,r);return lw(this,l)&&(J(this,St,l),J(this,ii,this.options),J(this,fo,b(this,_e).state)),l}getCurrentResult(){return b(this,St)}trackResult(r,i){return new Proxy(r,{get:(l,a)=>(this.trackProp(a),i==null||i(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&b(this,Yn).status==="pending"&&b(this,Yn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,a))})}trackProp(r){b(this,ai).add(r)}getCurrentQuery(){return b(this,_e)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=b(this,_t).defaultQueryOptions(r),l=b(this,_t).getQueryCache().build(b(this,_t),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(r){return Pe(this,Ie,as).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,St)))}createResult(r,i){var Z;const l=b(this,_e),a=this.options,c=b(this,St),f=b(this,fo),p=b(this,ii),y=r!==l?r.state:b(this,hs),{state:w}=r;let x={...w},E=!1,v;if(i._optimisticResults){const te=this.hasListeners(),he=!te&&vh(r,i),X=te&&gh(r,l,i,a);(he||X)&&(x={...x,...Bm(w.data,r.options)}),i._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:O,errorUpdatedAt:S,status:C}=x;v=x.data;let P=!1;if(i.placeholderData!==void 0&&v===void 0&&C==="pending"){let te;c!=null&&c.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(te=c.data,P=!0):te=typeof i.placeholderData=="function"?i.placeholderData((Z=b(this,li))==null?void 0:Z.state.data,b(this,li)):i.placeholderData,te!==void 0&&(C="success",v=xc(c==null?void 0:c.data,te,i),E=!0)}if(i.select&&v!==void 0&&!P)if(c&&v===(f==null?void 0:f.data)&&i.select===b(this,ms))v=b(this,si);else try{J(this,ms,i.select),v=i.select(v),v=xc(c==null?void 0:c.data,v,i),J(this,si,v),J(this,Lr,null)}catch(te){J(this,Lr,te)}b(this,Lr)&&(O=b(this,Lr),v=b(this,si),S=Date.now(),C="error");const T=x.fetchStatus==="fetching",R=C==="pending",L=C==="error",z=R&&T,U=v!==void 0,q={status:C,fetchStatus:x.fetchStatus,isPending:R,isSuccess:C==="success",isError:L,isInitialLoading:z,isLoading:z,data:v,dataUpdatedAt:x.dataUpdatedAt,error:O,errorUpdatedAt:S,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>y.dataUpdateCount||x.errorUpdateCount>y.errorUpdateCount,isFetching:T,isRefetching:T&&!R,isLoadingError:L&&!U,isPaused:x.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:L&&U,isStale:od(r,i),refetch:this.refetch,promise:b(this,Yn),isEnabled:Gt(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const te=q.data!==void 0,he=q.status==="error"&&!te,X=xe=>{he?xe.reject(q.error):te&&xe.resolve(q.data)},ve=()=>{const xe=J(this,Yn,q.promise=Sc());X(xe)},ce=b(this,Yn);switch(ce.status){case"pending":r.queryHash===l.queryHash&&X(ce);break;case"fulfilled":(he||q.data!==ce.value)&&ve();break;case"rejected":(!he||q.error!==ce.reason)&&ve();break}}return q}updateResult(){const r=b(this,St),i=this.createResult(b(this,_e),this.options);if(J(this,fo,b(this,_e).state),J(this,ii,this.options),b(this,fo).data!==void 0&&J(this,li,b(this,_e)),Zl(i,r))return;J(this,St,i);const l=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,c=typeof a=="function"?a():a;if(c==="all"||!c&&!b(this,ai).size)return!0;const f=new Set(c??b(this,ai));return this.options.throwOnError&&f.add("error"),Object.keys(b(this,St)).some(p=>{const h=p;return b(this,St)[h]!==r[h]&&f.has(h)})};Pe(this,Ie,Um).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Pe(this,Ie,Rc).call(this)}},_t=new WeakMap,_e=new WeakMap,hs=new WeakMap,St=new WeakMap,fo=new WeakMap,ii=new WeakMap,Yn=new WeakMap,Lr=new WeakMap,ms=new WeakMap,si=new WeakMap,li=new WeakMap,po=new WeakMap,ho=new WeakMap,Ar=new WeakMap,ai=new WeakMap,Ie=new WeakSet,as=function(r){Pe(this,Ie,Tc).call(this);let i=b(this,_e).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(Ct)),i},Ec=function(){Pe(this,Ie,Pc).call(this);const r=jr(this.options.staleTime,b(this,_e));if(yo||b(this,St).isStale||!gc(r))return;const l=Am(b(this,St).dataUpdatedAt,r)+1;J(this,po,io.setTimeout(()=>{b(this,St).isStale||this.updateResult()},l))},kc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,_e)):this.options.refetchInterval)??!1},bc=function(r){Pe(this,Ie,Mc).call(this),J(this,Ar,r),!(yo||Gt(this.options.enabled,b(this,_e))===!1||!gc(b(this,Ar))||b(this,Ar)===0)&&J(this,ho,io.setInterval(()=>{(this.options.refetchIntervalInBackground||rd.isFocused())&&Pe(this,Ie,as).call(this)},b(this,Ar)))},Rc=function(){Pe(this,Ie,Ec).call(this),Pe(this,Ie,bc).call(this,Pe(this,Ie,kc).call(this))},Pc=function(){b(this,po)&&(io.clearTimeout(b(this,po)),J(this,po,void 0))},Mc=function(){b(this,ho)&&(io.clearInterval(b(this,ho)),J(this,ho,void 0))},Tc=function(){const r=b(this,_t).getQueryCache().build(b(this,_t),this.options);if(r===b(this,_e))return;const i=b(this,_e);J(this,_e,r),J(this,hs,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},Um=function(r){nt.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(b(this,St))}),b(this,_t).getQueryCache().notify({query:b(this,_e),type:"observerResultsUpdated"})})},im);function sw(n,r){return Gt(r.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&r.retryOnMount===!1)}function vh(n,r){return sw(n,r)||n.state.data!==void 0&&Oc(n,r,r.refetchOnMount)}function Oc(n,r,i){if(Gt(r.enabled,n)!==!1&&jr(r.staleTime,n)!=="static"){const l=typeof i=="function"?i(n):i;return l==="always"||l!==!1&&od(n,r)}return!1}function gh(n,r,i,l){return(n!==r||Gt(l.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&od(n,i)}function od(n,r){return Gt(r.enabled,n)!==!1&&n.isStaleByTime(jr(r.staleTime,n))}function lw(n,r){return!Zl(n.getCurrentResult(),r)}function wh(n){return{onFetch:(r,i)=>{var w,x,E,v,O;const l=r.options,a=(E=(x=(w=r.fetchOptions)==null?void 0:w.meta)==null?void 0:x.fetchMore)==null?void 0:E.direction,c=((v=r.state.data)==null?void 0:v.pages)||[],f=((O=r.state.data)==null?void 0:O.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const y=async()=>{let S=!1;const C=R=>{Z1(R,()=>r.signal,()=>S=!0)},P=Dm(r.options,r.fetchOptions),T=async(R,L,z)=>{if(S)return Promise.reject();if(L==null&&R.pages.length)return Promise.resolve(R);const H=(()=>{const he={client:r.client,queryKey:r.queryKey,pageParam:L,direction:z?"backward":"forward",meta:r.options.meta};return C(he),he})(),q=await P(H),{maxPages:Z}=r.options,te=z?X1:G1;return{pages:te(R.pages,q,Z),pageParams:te(R.pageParams,L,Z)}};if(a&&c.length){const R=a==="backward",L=R?aw:xh,z={pages:c,pageParams:f},U=L(l,z);p=await T(z,U,R)}else{const R=n??c.length;do{const L=h===0?f[0]??l.initialPageParam:xh(l,p);if(h>0&&L==null)break;p=await T(p,L),h++}while(h<R)}return p};r.options.persister?r.fetchFn=()=>{var S,C;return(C=(S=r.options).persister)==null?void 0:C.call(S,y,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=y}}}function xh(n,{pages:r,pageParams:i}){const l=r.length-1;return r.length>0?n.getNextPageParam(r[l],r,i[l],i):void 0}function aw(n,{pages:r,pageParams:i}){var l;return r.length>0?(l=n.getPreviousPageParam)==null?void 0:l.call(n,r[0],r,i[0],i):void 0}var ys,On,yt,mo,_n,Mr,sm,uw=(sm=class extends jm{constructor(r){super();me(this,_n);me(this,ys);me(this,On);me(this,yt);me(this,mo);J(this,ys,r.client),this.mutationId=r.mutationId,J(this,yt,r.mutationCache),J(this,On,[]),this.state=r.state||Hm(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){b(this,On).includes(r)||(b(this,On).push(r),this.clearGcTimeout(),b(this,yt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){J(this,On,b(this,On).filter(i=>i!==r)),this.scheduleGc(),b(this,yt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){b(this,On).length||(this.state.status==="pending"?this.scheduleGc():b(this,yt).remove(this))}continue(){var r;return((r=b(this,mo))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var f,p,h,y,w,x,E,v,O,S,C,P,T,R,L,z,U,H;const i=()=>{Pe(this,_n,Mr).call(this,{type:"continue"})},l={client:b(this,ys),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,mo,zm({fn:()=>this.options.mutationFn?this.options.mutationFn(r,l):Promise.reject(new Error("No mutationFn found")),onFail:(q,Z)=>{Pe(this,_n,Mr).call(this,{type:"failed",failureCount:q,error:Z})},onPause:()=>{Pe(this,_n,Mr).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,yt).canRun(this)}));const a=this.state.status==="pending",c=!b(this,mo).canStart();try{if(a)i();else{Pe(this,_n,Mr).call(this,{type:"pending",variables:r,isPaused:c}),b(this,yt).config.onMutate&&await b(this,yt).config.onMutate(r,this,l);const Z=await((p=(f=this.options).onMutate)==null?void 0:p.call(f,r,l));Z!==this.state.context&&Pe(this,_n,Mr).call(this,{type:"pending",context:Z,variables:r,isPaused:c})}const q=await b(this,mo).start();return await((y=(h=b(this,yt).config).onSuccess)==null?void 0:y.call(h,q,r,this.state.context,this,l)),await((x=(w=this.options).onSuccess)==null?void 0:x.call(w,q,r,this.state.context,l)),await((v=(E=b(this,yt).config).onSettled)==null?void 0:v.call(E,q,null,this.state.variables,this.state.context,this,l)),await((S=(O=this.options).onSettled)==null?void 0:S.call(O,q,null,r,this.state.context,l)),Pe(this,_n,Mr).call(this,{type:"success",data:q}),q}catch(q){try{await((P=(C=b(this,yt).config).onError)==null?void 0:P.call(C,q,r,this.state.context,this,l))}catch(Z){Promise.reject(Z)}try{await((R=(T=this.options).onError)==null?void 0:R.call(T,q,r,this.state.context,l))}catch(Z){Promise.reject(Z)}try{await((z=(L=b(this,yt).config).onSettled)==null?void 0:z.call(L,void 0,q,this.state.variables,this.state.context,this,l))}catch(Z){Promise.reject(Z)}try{await((H=(U=this.options).onSettled)==null?void 0:H.call(U,void 0,q,r,this.state.context,l))}catch(Z){Promise.reject(Z)}throw Pe(this,_n,Mr).call(this,{type:"error",error:q}),q}finally{b(this,yt).runNext(this)}}},ys=new WeakMap,On=new WeakMap,yt=new WeakMap,mo=new WeakMap,_n=new WeakSet,Mr=function(r){const i=l=>{switch(r.type){case"failed":return{...l,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...l,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:r.error,failureCount:l.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=i(this.state),nt.batch(()=>{b(this,On).forEach(l=>{l.onMutationUpdate(r)}),b(this,yt).notify({mutation:this,type:"updated",action:r})})},sm);function Hm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gn,fn,vs,lm,cw=(lm=class extends vi{constructor(r={}){super();me(this,Gn);me(this,fn);me(this,vs);this.config=r,J(this,Gn,new Set),J(this,fn,new Map),J(this,vs,0)}build(r,i,l){const a=new uw({client:r,mutationCache:this,mutationId:++Il(this,vs)._,options:r.defaultMutationOptions(i),state:l});return this.add(a),a}add(r){b(this,Gn).add(r);const i=zl(r);if(typeof i=="string"){const l=b(this,fn).get(i);l?l.push(r):b(this,fn).set(i,[r])}this.notify({type:"added",mutation:r})}remove(r){if(b(this,Gn).delete(r)){const i=zl(r);if(typeof i=="string"){const l=b(this,fn).get(i);if(l)if(l.length>1){const a=l.indexOf(r);a!==-1&&l.splice(a,1)}else l[0]===r&&b(this,fn).delete(i)}}this.notify({type:"removed",mutation:r})}canRun(r){const i=zl(r);if(typeof i=="string"){const l=b(this,fn).get(i),a=l==null?void 0:l.find(c=>c.state.status==="pending");return!a||a===r}else return!0}runNext(r){var l;const i=zl(r);if(typeof i=="string"){const a=(l=b(this,fn).get(i))==null?void 0:l.find(c=>c!==r&&c.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){nt.batch(()=>{b(this,Gn).forEach(r=>{this.notify({type:"removed",mutation:r})}),b(this,Gn).clear(),b(this,fn).clear()})}getAll(){return Array.from(b(this,Gn))}find(r){const i={exact:!0,...r};return this.getAll().find(l=>fh(i,l))}findAll(r={}){return this.getAll().filter(i=>fh(r,i))}notify(r){nt.batch(()=>{this.listeners.forEach(i=>{i(r)})})}resumePausedMutations(){const r=this.getAll().filter(i=>i.state.isPaused);return nt.batch(()=>Promise.all(r.map(i=>i.continue().catch(Ct))))}},Gn=new WeakMap,fn=new WeakMap,vs=new WeakMap,lm);function zl(n){var r;return(r=n.options.scope)==null?void 0:r.id}var Xn,Ir,Nt,Zn,er,Kl,_c,am,dw=(am=class extends vi{constructor(i,l){super();me(this,er);me(this,Xn);me(this,Ir);me(this,Nt);me(this,Zn);J(this,Xn,i),this.setOptions(l),this.bindMethods(),Pe(this,er,Kl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var a;const l=this.options;this.options=b(this,Xn).defaultMutationOptions(i),Zl(this.options,l)||b(this,Xn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:b(this,Nt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&vo(l.mutationKey)!==vo(this.options.mutationKey)?this.reset():((a=b(this,Nt))==null?void 0:a.state.status)==="pending"&&b(this,Nt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=b(this,Nt))==null||i.removeObserver(this)}onMutationUpdate(i){Pe(this,er,Kl).call(this),Pe(this,er,_c).call(this,i)}getCurrentResult(){return b(this,Ir)}reset(){var i;(i=b(this,Nt))==null||i.removeObserver(this),J(this,Nt,void 0),Pe(this,er,Kl).call(this),Pe(this,er,_c).call(this)}mutate(i,l){var a;return J(this,Zn,l),(a=b(this,Nt))==null||a.removeObserver(this),J(this,Nt,b(this,Xn).getMutationCache().build(b(this,Xn),this.options)),b(this,Nt).addObserver(this),b(this,Nt).execute(i)}},Xn=new WeakMap,Ir=new WeakMap,Nt=new WeakMap,Zn=new WeakMap,er=new WeakSet,Kl=function(){var l;const i=((l=b(this,Nt))==null?void 0:l.state)??Hm();J(this,Ir,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},_c=function(i){nt.batch(()=>{var l,a,c,f,p,h,y,w;if(b(this,Zn)&&this.hasListeners()){const x=b(this,Ir).variables,E=b(this,Ir).context,v={client:b(this,Xn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(a=(l=b(this,Zn)).onSuccess)==null||a.call(l,i.data,x,E,v)}catch(O){Promise.reject(O)}try{(f=(c=b(this,Zn)).onSettled)==null||f.call(c,i.data,null,x,E,v)}catch(O){Promise.reject(O)}}else if((i==null?void 0:i.type)==="error"){try{(h=(p=b(this,Zn)).onError)==null||h.call(p,i.error,x,E,v)}catch(O){Promise.reject(O)}try{(w=(y=b(this,Zn)).onSettled)==null||w.call(y,void 0,i.error,x,E,v)}catch(O){Promise.reject(O)}}}this.listeners.forEach(x=>{x(b(this,Ir))})})},am),Nn,um,fw=(um=class extends vi{constructor(r={}){super();me(this,Nn);this.config=r,J(this,Nn,new Map)}build(r,i,l){const a=i.queryKey,c=i.queryHash??ed(a,i);let f=this.get(c);return f||(f=new ow({client:r,queryKey:a,queryHash:c,options:r.defaultQueryOptions(i),state:l,defaultOptions:r.getQueryDefaults(a)}),this.add(f)),f}add(r){b(this,Nn).has(r.queryHash)||(b(this,Nn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const i=b(this,Nn).get(r.queryHash);i&&(r.destroy(),i===r&&b(this,Nn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){nt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return b(this,Nn).get(r)}getAll(){return[...b(this,Nn).values()]}find(r){const i={exact:!0,...r};return this.getAll().find(l=>dh(i,l))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(l=>dh(r,l)):i}notify(r){nt.batch(()=>{this.listeners.forEach(i=>{i(r)})})}onFocus(){nt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){nt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Nn=new WeakMap,um),Ke,Dr,Fr,ui,ci,zr,di,fi,cm,XC=(cm=class{constructor(n={}){me(this,Ke);me(this,Dr);me(this,Fr);me(this,ui);me(this,ci);me(this,zr);me(this,di);me(this,fi);J(this,Ke,n.queryCache||new fw),J(this,Dr,n.mutationCache||new cw),J(this,Fr,n.defaultOptions||{}),J(this,ui,new Map),J(this,ci,new Map),J(this,zr,0)}mount(){Il(this,zr)._++,b(this,zr)===1&&(J(this,di,rd.subscribe(async n=>{n&&(await this.resumePausedMutations(),b(this,Ke).onFocus())})),J(this,fi,Jl.subscribe(async n=>{n&&(await this.resumePausedMutations(),b(this,Ke).onOnline())})))}unmount(){var n,r;Il(this,zr)._--,b(this,zr)===0&&((n=b(this,di))==null||n.call(this),J(this,di,void 0),(r=b(this,fi))==null||r.call(this),J(this,fi,void 0))}isFetching(n){return b(this,Ke).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return b(this,Dr).findAll({...n,status:"pending"}).length}getQueryData(n){var i;const r=this.defaultQueryOptions({queryKey:n});return(i=b(this,Ke).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(n){const r=this.defaultQueryOptions(n),i=b(this,Ke).build(this,r),l=i.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(jr(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(l))}getQueriesData(n){return b(this,Ke).findAll(n).map(({queryKey:r,state:i})=>{const l=i.data;return[r,l]})}setQueryData(n,r,i){const l=this.defaultQueryOptions({queryKey:n}),a=b(this,Ke).get(l.queryHash),c=a==null?void 0:a.state.data,f=K1(r,c);if(f!==void 0)return b(this,Ke).build(this,l).setData(f,{...i,manual:!0})}setQueriesData(n,r,i){return nt.batch(()=>b(this,Ke).findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,r,i)]))}getQueryState(n){var i;const r=this.defaultQueryOptions({queryKey:n});return(i=b(this,Ke).get(r.queryHash))==null?void 0:i.state}removeQueries(n){const r=b(this,Ke);nt.batch(()=>{r.findAll(n).forEach(i=>{r.remove(i)})})}resetQueries(n,r){const i=b(this,Ke);return nt.batch(()=>(i.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},r)))}cancelQueries(n,r={}){const i={revert:!0,...r},l=nt.batch(()=>b(this,Ke).findAll(n).map(a=>a.cancel(i)));return Promise.all(l).then(Ct).catch(Ct)}invalidateQueries(n,r={}){return nt.batch(()=>(b(this,Ke).findAll(n).forEach(i=>{i.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},r)))}refetchQueries(n,r={}){const i={...r,cancelRefetch:r.cancelRefetch??!0},l=nt.batch(()=>b(this,Ke).findAll(n).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let c=a.fetch(void 0,i);return i.throwOnError||(c=c.catch(Ct)),a.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(l).then(Ct)}fetchQuery(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const i=b(this,Ke).build(this,r);return i.isStaleByTime(jr(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Ct).catch(Ct)}fetchInfiniteQuery(n){return n.behavior=wh(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Ct).catch(Ct)}ensureInfiniteQueryData(n){return n.behavior=wh(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Jl.isOnline()?b(this,Dr).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,Ke)}getMutationCache(){return b(this,Dr)}getDefaultOptions(){return b(this,Fr)}setDefaultOptions(n){J(this,Fr,n)}setQueryDefaults(n,r){b(this,ui).set(vo(n),{queryKey:n,defaultOptions:r})}getQueryDefaults(n){const r=[...b(this,ui).values()],i={};return r.forEach(l=>{ds(n,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(n,r){b(this,ci).set(vo(n),{mutationKey:n,defaultOptions:r})}getMutationDefaults(n){const r=[...b(this,ci).values()],i={};return r.forEach(l=>{ds(n,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const r={...b(this,Fr).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return r.queryHash||(r.queryHash=ed(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===td&&(r.enabled=!1),r}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...b(this,Fr).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){b(this,Ke).clear(),b(this,Dr).clear()}},Ke=new WeakMap,Dr=new WeakMap,Fr=new WeakMap,ui=new WeakMap,ci=new WeakMap,zr=new WeakMap,di=new WeakMap,fi=new WeakMap,cm),$m=g.createContext(void 0),Wm=n=>{const r=g.useContext($m);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},ZC=({client:n,children:r})=>(g.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),ee.jsx($m.Provider,{value:n,children:r})),Vm=g.createContext(!1),pw=()=>g.useContext(Vm);Vm.Provider;function hw(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var mw=g.createContext(hw()),yw=()=>g.useContext(mw),vw=(n,r,i)=>{const l=i!=null&&i.state.error&&typeof n.throwOnError=="function"?nd(n.throwOnError,[i.state.error,i]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||l)&&(r.isReset()||(n.retryOnMount=!1))},gw=n=>{g.useEffect(()=>{n.clearReset()},[n])},ww=({result:n,errorResetBoundary:r,throwOnError:i,query:l,suspense:a})=>n.isError&&!r.isReset()&&!n.isFetching&&l&&(a&&n.data===void 0||nd(i,[n.error,l])),xw=n=>{if(n.suspense){const i=a=>a==="static"?a:Math.max(a??1e3,1e3),l=n.staleTime;n.staleTime=typeof l=="function"?(...a)=>i(l(...a)):i(l),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Sw=(n,r)=>n.isLoading&&n.isFetching&&!r,Cw=(n,r)=>(n==null?void 0:n.suspense)&&r.isPending,Sh=(n,r,i)=>r.fetchOptimistic(n).catch(()=>{i.clearReset()});function Ew(n,r,i){var E,v,O,S;const l=pw(),a=yw(),c=Wm(),f=c.defaultQueryOptions(n);(v=(E=c.getDefaultOptions().queries)==null?void 0:E._experimental_beforeQuery)==null||v.call(E,f);const p=c.getQueryCache().get(f.queryHash);f._optimisticResults=l?"isRestoring":"optimistic",xw(f),vw(f,a,p),gw(a);const h=!c.getQueryCache().get(f.queryHash),[y]=g.useState(()=>new r(c,f)),w=y.getOptimisticResult(f),x=!l&&n.subscribed!==!1;if(g.useSyncExternalStore(g.useCallback(C=>{const P=x?y.subscribe(nt.batchCalls(C)):Ct;return y.updateResult(),P},[y,x]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),g.useEffect(()=>{y.setOptions(f)},[f,y]),Cw(f,w))throw Sh(f,y,a);if(ww({result:w,errorResetBoundary:a,throwOnError:f.throwOnError,query:p,suspense:f.suspense}))throw w.error;if((S=(O=c.getDefaultOptions().queries)==null?void 0:O._experimental_afterQuery)==null||S.call(O,f,w),f.experimental_prefetchInRender&&!yo&&Sw(w,l)){const C=h?Sh(f,y,a):p==null?void 0:p.promise;C==null||C.catch(Ct).finally(()=>{y.updateResult()})}return f.notifyOnChangeProps?w:y.trackResult(w)}function JC(n,r){return Ew(n,iw)}function eE(n,r){const i=Wm(),[l]=g.useState(()=>new dw(i,n));g.useEffect(()=>{l.setOptions(n)},[l,n]);const a=g.useSyncExternalStore(g.useCallback(f=>l.subscribe(nt.batchCalls(f)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c=g.useCallback((f,p)=>{l.mutate(f,p).catch(Ct)},[l]);if(a.error&&nd(l.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:c,mutateAsync:a.mutate}}function Qm(n){var r,i,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(r=0;r<a;r++)n[r]&&(i=Qm(n[r]))&&(l&&(l+=" "),l+=i)}else for(i in n)n[i]&&(l&&(l+=" "),l+=i);return l}function tE(){for(var n,r,i=0,l="",a=arguments.length;i<a;i++)(n=arguments[i])&&(r=Qm(n))&&(l&&(l+=" "),l+=r);return l}const id="-",kw=n=>{const r=Rw(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:f=>{const p=f.split(id);return p[0]===""&&p.length!==1&&p.shift(),Km(p,r)||bw(f)},getConflictingClassGroupIds:(f,p)=>{const h=i[f]||[];return p&&l[f]?[...h,...l[f]]:h}}},Km=(n,r)=>{var f;if(n.length===0)return r.classGroupId;const i=n[0],l=r.nextPart.get(i),a=l?Km(n.slice(1),l):void 0;if(a)return a;if(r.validators.length===0)return;const c=n.join(id);return(f=r.validators.find(({validator:p})=>p(c)))==null?void 0:f.classGroupId},Ch=/^\[(.+)\]$/,bw=n=>{if(Ch.test(n)){const r=Ch.exec(n)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},Rw=n=>{const{theme:r,prefix:i}=n,l={nextPart:new Map,validators:[]};return Mw(Object.entries(n.classGroups),i).forEach(([c,f])=>{Nc(f,l,c,r)}),l},Nc=(n,r,i,l)=>{n.forEach(a=>{if(typeof a=="string"){const c=a===""?r:Eh(r,a);c.classGroupId=i;return}if(typeof a=="function"){if(Pw(a)){Nc(a(l),r,i,l);return}r.validators.push({validator:a,classGroupId:i});return}Object.entries(a).forEach(([c,f])=>{Nc(f,Eh(r,c),i,l)})})},Eh=(n,r)=>{let i=n;return r.split(id).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},Pw=n=>n.isThemeGetter,Mw=(n,r)=>r?n.map(([i,l])=>{const a=l.map(c=>typeof c=="string"?r+c:typeof c=="object"?Object.fromEntries(Object.entries(c).map(([f,p])=>[r+f,p])):c);return[i,a]}):n,Tw=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,l=new Map;const a=(c,f)=>{i.set(c,f),r++,r>n&&(r=0,l=i,i=new Map)};return{get(c){let f=i.get(c);if(f!==void 0)return f;if((f=l.get(c))!==void 0)return a(c,f),f},set(c,f){i.has(c)?i.set(c,f):a(c,f)}}},qm="!",Ow=n=>{const{separator:r,experimentalParseClassName:i}=n,l=r.length===1,a=r[0],c=r.length,f=p=>{const h=[];let y=0,w=0,x;for(let C=0;C<p.length;C++){let P=p[C];if(y===0){if(P===a&&(l||p.slice(C,C+c)===r)){h.push(p.slice(w,C)),w=C+c;continue}if(P==="/"){x=C;continue}}P==="["?y++:P==="]"&&y--}const E=h.length===0?p:p.substring(w),v=E.startsWith(qm),O=v?E.substring(1):E,S=x&&x>w?x-w:void 0;return{modifiers:h,hasImportantModifier:v,baseClassName:O,maybePostfixModifierPosition:S}};return i?p=>i({className:p,parseClassName:f}):f},_w=n=>{if(n.length<=1)return n;const r=[];let i=[];return n.forEach(l=>{l[0]==="["?(r.push(...i.sort(),l),i=[]):i.push(l)}),r.push(...i.sort()),r},Nw=n=>({cache:Tw(n.cacheSize),parseClassName:Ow(n),...kw(n)}),Lw=/\s+/,Aw=(n,r)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:a}=r,c=[],f=n.trim().split(Lw);let p="";for(let h=f.length-1;h>=0;h-=1){const y=f[h],{modifiers:w,hasImportantModifier:x,baseClassName:E,maybePostfixModifierPosition:v}=i(y);let O=!!v,S=l(O?E.substring(0,v):E);if(!S){if(!O){p=y+(p.length>0?" "+p:p);continue}if(S=l(E),!S){p=y+(p.length>0?" "+p:p);continue}O=!1}const C=_w(w).join(":"),P=x?C+qm:C,T=P+S;if(c.includes(T))continue;c.push(T);const R=a(S,O);for(let L=0;L<R.length;++L){const z=R[L];c.push(P+z)}p=y+(p.length>0?" "+p:p)}return p};function Iw(){let n=0,r,i,l="";for(;n<arguments.length;)(r=arguments[n++])&&(i=Ym(r))&&(l&&(l+=" "),l+=i);return l}const Ym=n=>{if(typeof n=="string")return n;let r,i="";for(let l=0;l<n.length;l++)n[l]&&(r=Ym(n[l]))&&(i&&(i+=" "),i+=r);return i};function Dw(n,...r){let i,l,a,c=f;function f(h){const y=r.reduce((w,x)=>x(w),n());return i=Nw(y),l=i.cache.get,a=i.cache.set,c=p,p(h)}function p(h){const y=l(h);if(y)return y;const w=Aw(h,i);return a(h,w),w}return function(){return c(Iw.apply(null,arguments))}}const Ue=n=>{const r=i=>i[n]||[];return r.isThemeGetter=!0,r},Gm=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fw=/^\d+\/\d+$/,zw=new Set(["px","full","screen"]),jw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bw=/\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$/,Uw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Hw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$w=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kn=n=>Zo(n)||zw.has(n)||Fw.test(n),Rr=n=>gi(n,"length",Xw),Zo=n=>!!n&&!Number.isNaN(Number(n)),sc=n=>gi(n,"number",Zo),ss=n=>!!n&&Number.isInteger(Number(n)),Ww=n=>n.endsWith("%")&&Zo(n.slice(0,-1)),Re=n=>Gm.test(n),Pr=n=>jw.test(n),Vw=new Set(["length","size","percentage"]),Qw=n=>gi(n,Vw,Xm),Kw=n=>gi(n,"position",Xm),qw=new Set(["image","url"]),Yw=n=>gi(n,qw,Jw),Gw=n=>gi(n,"",Zw),ls=()=>!0,gi=(n,r,i)=>{const l=Gm.exec(n);return l?l[1]?typeof r=="string"?l[1]===r:r.has(l[1]):i(l[2]):!1},Xw=n=>Bw.test(n)&&!Uw.test(n),Xm=()=>!1,Zw=n=>Hw.test(n),Jw=n=>$w.test(n),ex=()=>{const n=Ue("colors"),r=Ue("spacing"),i=Ue("blur"),l=Ue("brightness"),a=Ue("borderColor"),c=Ue("borderRadius"),f=Ue("borderSpacing"),p=Ue("borderWidth"),h=Ue("contrast"),y=Ue("grayscale"),w=Ue("hueRotate"),x=Ue("invert"),E=Ue("gap"),v=Ue("gradientColorStops"),O=Ue("gradientColorStopPositions"),S=Ue("inset"),C=Ue("margin"),P=Ue("opacity"),T=Ue("padding"),R=Ue("saturate"),L=Ue("scale"),z=Ue("sepia"),U=Ue("skew"),H=Ue("space"),q=Ue("translate"),Z=()=>["auto","contain","none"],te=()=>["auto","hidden","clip","visible","scroll"],he=()=>["auto",Re,r],X=()=>[Re,r],ve=()=>["",Kn,Rr],ce=()=>["auto",Zo,Re],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ae=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",Re],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>[Zo,Re];return{cacheSize:500,separator:":",theme:{colors:[ls],spacing:[Kn,Rr],blur:["none","",Pr,Re],brightness:_(),borderColor:[n],borderRadius:["none","","full",Pr,Re],borderSpacing:X(),borderWidth:ve(),contrast:_(),grayscale:B(),hueRotate:_(),invert:B(),gap:X(),gradientColorStops:[n],gradientColorStopPositions:[Ww,Rr],inset:he(),margin:he(),opacity:_(),padding:X(),saturate:_(),scale:_(),sepia:B(),skew:_(),space:X(),translate:X()},classGroups:{aspect:[{aspect:["auto","square","video",Re]}],container:["container"],columns:[{columns:[Pr]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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:[...xe(),Re]}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ss,Re]}],basis:[{basis:he()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Re]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",ss,Re]}],"grid-cols":[{"grid-cols":[ls]}],"col-start-end":[{col:["auto",{span:["full",ss,Re]},Re]}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":[ls]}],"row-start-end":[{row:["auto",{span:[ss,Re]},Re]}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Re]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Re,r]}],"min-w":[{"min-w":[Re,r,"min","max","fit"]}],"max-w":[{"max-w":[Re,r,"none","full","min","max","fit","prose",{screen:[Pr]},Pr]}],h:[{h:[Re,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Re,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Re,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Re,r,"auto","min","max","fit"]}],"font-size":[{text:["base",Pr,Rr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sc]}],"font-family":[{font:[ls]}],"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",Re]}],"line-clamp":[{"line-clamp":["none",Zo,sc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Kn,Re]}],"list-image":[{"list-image":["none",Re]}],"list-style-type":[{list:["none","disc","decimal",Re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Kn,Rr]}],"underline-offset":[{"underline-offset":["auto",Kn,Re]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Re]}],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",Re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),Kw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Yw]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[O]}],"gradient-via-pos":[{via:[O]}],"gradient-to-pos":[{to:[O]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[c]}],"rounded-s":[{"rounded-s":[c]}],"rounded-e":[{"rounded-e":[c]}],"rounded-t":[{"rounded-t":[c]}],"rounded-r":[{"rounded-r":[c]}],"rounded-b":[{"rounded-b":[c]}],"rounded-l":[{"rounded-l":[c]}],"rounded-ss":[{"rounded-ss":[c]}],"rounded-se":[{"rounded-se":[c]}],"rounded-ee":[{"rounded-ee":[c]}],"rounded-es":[{"rounded-es":[c]}],"rounded-tl":[{"rounded-tl":[c]}],"rounded-tr":[{"rounded-tr":[c]}],"rounded-br":[{"rounded-br":[c]}],"rounded-bl":[{"rounded-bl":[c]}],"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":[P]}],"border-style":[{border:[...ae(),"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":[P]}],"divide-style":[{divide:ae()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...ae()]}],"outline-offset":[{"outline-offset":[Kn,Re]}],"outline-w":[{outline:[Kn,Rr]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[Kn,Rr]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",Pr,Gw]}],"shadow-color":[{shadow:[ls]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...ie(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[l]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",Pr,Re]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[x]}],saturate:[{saturate:[R]}],sepia:[{sepia:[z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[l]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[f]}],"border-spacing-x":[{"border-spacing-x":[f]}],"border-spacing-y":[{"border-spacing-y":[f]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Re]}],duration:[{duration:_()}],ease:[{ease:["linear","in","out","in-out",Re]}],delay:[{delay:_()}],animate:[{animate:["none","spin","ping","pulse","bounce",Re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[ss,Re]}],"translate-x":[{"translate-x":[q]}],"translate-y":[{"translate-y":[q]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Re]}],accent:[{accent:["auto",n]}],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",Re]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"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",Re]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[Kn,Rr,sc]}],stroke:[{stroke:[n,"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"]}}},nE=Dw(ex);/**
52
52
  * @license lucide-react v0.462.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
@@ -63,7 +63,7 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
- */const rx=g.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:a="",children:c,iconNode:f,...p},h)=>g.createElement("svg",{ref:h,...nx,width:r,height:r,stroke:n,strokeWidth:l?Number(i)*24/Number(r):i,className:Zm("lucide",a),...p},[...f.map(([v,w])=>g.createElement(v,w)),...Array.isArray(c)?c:[c]]));/**
66
+ */const rx=g.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:a="",children:c,iconNode:f,...p},h)=>g.createElement("svg",{ref:h,...nx,width:r,height:r,stroke:n,strokeWidth:l?Number(i)*24/Number(r):i,className:Zm("lucide",a),...p},[...f.map(([y,w])=>g.createElement(y,w)),...Array.isArray(c)?c:[c]]));/**
67
67
  * @license lucide-react v0.462.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
@@ -108,32 +108,37 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const cE=pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
111
+ */const cE=pe("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
112
112
  * @license lucide-react v0.462.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const dE=pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
116
+ */const dE=pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
117
117
  * @license lucide-react v0.462.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const fE=pe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
121
+ */const fE=pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
122
122
  * @license lucide-react v0.462.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const pE=pe("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
126
+ */const pE=pe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
127
127
  * @license lucide-react v0.462.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const hE=pe("CircleDotDashed",[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
131
+ */const hE=pe("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
132
132
  * @license lucide-react v0.462.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const mE=pe("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/**
136
+ */const mE=pe("CircleDotDashed",[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
137
+ * @license lucide-react v0.462.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const yE=pe("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/**
137
142
  * @license lucide-react v0.462.0 - ISC
138
143
  *
139
144
  * This source code is licensed under the ISC license.
@@ -143,57 +148,57 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
143
148
  *
144
149
  * This source code is licensed under the ISC license.
145
150
  * See the LICENSE file in the root directory of this source tree.
146
- */const yE=pe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
151
+ */const gE=pe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
147
152
  * @license lucide-react v0.462.0 - ISC
148
153
  *
149
154
  * This source code is licensed under the ISC license.
150
155
  * See the LICENSE file in the root directory of this source tree.
151
- */const gE=pe("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"}]]);/**
156
+ */const wE=pe("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"}]]);/**
152
157
  * @license lucide-react v0.462.0 - ISC
153
158
  *
154
159
  * This source code is licensed under the ISC license.
155
160
  * See the LICENSE file in the root directory of this source tree.
156
- */const wE=pe("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"}]]);/**
161
+ */const xE=pe("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"}]]);/**
157
162
  * @license lucide-react v0.462.0 - ISC
158
163
  *
159
164
  * This source code is licensed under the ISC license.
160
165
  * See the LICENSE file in the root directory of this source tree.
161
- */const xE=pe("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"}]]);/**
166
+ */const SE=pe("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"}]]);/**
162
167
  * @license lucide-react v0.462.0 - ISC
163
168
  *
164
169
  * This source code is licensed under the ISC license.
165
170
  * See the LICENSE file in the root directory of this source tree.
166
- */const SE=pe("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"}]]);/**
171
+ */const CE=pe("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"}]]);/**
167
172
  * @license lucide-react v0.462.0 - ISC
168
173
  *
169
174
  * This source code is licensed under the ISC license.
170
175
  * See the LICENSE file in the root directory of this source tree.
171
- */const CE=pe("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
176
+ */const EE=pe("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
172
177
  * @license lucide-react v0.462.0 - ISC
173
178
  *
174
179
  * This source code is licensed under the ISC license.
175
180
  * See the LICENSE file in the root directory of this source tree.
176
- */const EE=pe("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"}]]);/**
181
+ */const kE=pe("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"}]]);/**
177
182
  * @license lucide-react v0.462.0 - ISC
178
183
  *
179
184
  * This source code is licensed under the ISC license.
180
185
  * See the LICENSE file in the root directory of this source tree.
181
- */const kE=pe("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
186
+ */const bE=pe("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
182
187
  * @license lucide-react v0.462.0 - ISC
183
188
  *
184
189
  * This source code is licensed under the ISC license.
185
190
  * See the LICENSE file in the root directory of this source tree.
186
- */const bE=pe("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"}]]);/**
191
+ */const RE=pe("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"}]]);/**
187
192
  * @license lucide-react v0.462.0 - ISC
188
193
  *
189
194
  * This source code is licensed under the ISC license.
190
195
  * See the LICENSE file in the root directory of this source tree.
191
- */const RE=pe("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
196
+ */const PE=pe("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
192
197
  * @license lucide-react v0.462.0 - ISC
193
198
  *
194
199
  * This source code is licensed under the ISC license.
195
200
  * See the LICENSE file in the root directory of this source tree.
196
- */const PE=pe("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"}]]);/**
201
+ */const ME=pe("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"}]]);/**
197
202
  * @license lucide-react v0.462.0 - ISC
198
203
  *
199
204
  * This source code is licensed under the ISC license.
@@ -203,27 +208,27 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
203
208
  *
204
209
  * This source code is licensed under the ISC license.
205
210
  * See the LICENSE file in the root directory of this source tree.
206
- */const ME=pe("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
211
+ */const OE=pe("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
207
212
  * @license lucide-react v0.462.0 - ISC
208
213
  *
209
214
  * This source code is licensed under the ISC license.
210
215
  * See the LICENSE file in the root directory of this source tree.
211
- */const OE=pe("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"}]]);/**
216
+ */const _E=pe("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"}]]);/**
212
217
  * @license lucide-react v0.462.0 - ISC
213
218
  *
214
219
  * This source code is licensed under the ISC license.
215
220
  * See the LICENSE file in the root directory of this source tree.
216
- */const _E=pe("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
221
+ */const NE=pe("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
217
222
  * @license lucide-react v0.462.0 - ISC
218
223
  *
219
224
  * This source code is licensed under the ISC license.
220
225
  * See the LICENSE file in the root directory of this source tree.
221
- */const NE=pe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
226
+ */const LE=pe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
222
227
  * @license lucide-react v0.462.0 - ISC
223
228
  *
224
229
  * This source code is licensed under the ISC license.
225
230
  * See the LICENSE file in the root directory of this source tree.
226
- */const LE=pe("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"}]]);/**
231
+ */const AE=pe("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"}]]);/**
227
232
  * @license lucide-react v0.462.0 - ISC
228
233
  *
229
234
  * This source code is licensed under the ISC license.
@@ -233,67 +238,67 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
233
238
  *
234
239
  * This source code is licensed under the ISC license.
235
240
  * See the LICENSE file in the root directory of this source tree.
236
- */const AE=pe("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
241
+ */const DE=pe("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
237
242
  * @license lucide-react v0.462.0 - ISC
238
243
  *
239
244
  * This source code is licensed under the ISC license.
240
245
  * See the LICENSE file in the root directory of this source tree.
241
- */const DE=pe("MessageSquareText",[["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"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);/**
246
+ */const FE=pe("MessageSquareText",[["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"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);/**
242
247
  * @license lucide-react v0.462.0 - ISC
243
248
  *
244
249
  * This source code is licensed under the ISC license.
245
250
  * See the LICENSE file in the root directory of this source tree.
246
- */const FE=pe("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"}]]);/**
251
+ */const zE=pe("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"}]]);/**
247
252
  * @license lucide-react v0.462.0 - ISC
248
253
  *
249
254
  * This source code is licensed under the ISC license.
250
255
  * See the LICENSE file in the root directory of this source tree.
251
- */const zE=pe("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]);/**
256
+ */const jE=pe("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]);/**
252
257
  * @license lucide-react v0.462.0 - ISC
253
258
  *
254
259
  * This source code is licensed under the ISC license.
255
260
  * See the LICENSE file in the root directory of this source tree.
256
- */const jE=pe("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
261
+ */const BE=pe("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
257
262
  * @license lucide-react v0.462.0 - ISC
258
263
  *
259
264
  * This source code is licensed under the ISC license.
260
265
  * See the LICENSE file in the root directory of this source tree.
261
- */const BE=pe("PanelRightOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]]);/**
266
+ */const UE=pe("PanelRightOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]]);/**
262
267
  * @license lucide-react v0.462.0 - ISC
263
268
  *
264
269
  * This source code is licensed under the ISC license.
265
270
  * See the LICENSE file in the root directory of this source tree.
266
- */const UE=pe("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
271
+ */const HE=pe("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
267
272
  * @license lucide-react v0.462.0 - ISC
268
273
  *
269
274
  * This source code is licensed under the ISC license.
270
275
  * See the LICENSE file in the root directory of this source tree.
271
- */const HE=pe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
276
+ */const $E=pe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
272
277
  * @license lucide-react v0.462.0 - ISC
273
278
  *
274
279
  * This source code is licensed under the ISC license.
275
280
  * See the LICENSE file in the root directory of this source tree.
276
- */const $E=pe("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
281
+ */const WE=pe("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
277
282
  * @license lucide-react v0.462.0 - ISC
278
283
  *
279
284
  * This source code is licensed under the ISC license.
280
285
  * See the LICENSE file in the root directory of this source tree.
281
- */const WE=pe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
286
+ */const VE=pe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
282
287
  * @license lucide-react v0.462.0 - ISC
283
288
  *
284
289
  * This source code is licensed under the ISC license.
285
290
  * See the LICENSE file in the root directory of this source tree.
286
- */const VE=pe("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
291
+ */const QE=pe("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
287
292
  * @license lucide-react v0.462.0 - ISC
288
293
  *
289
294
  * This source code is licensed under the ISC license.
290
295
  * See the LICENSE file in the root directory of this source tree.
291
- */const QE=pe("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
296
+ */const KE=pe("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
292
297
  * @license lucide-react v0.462.0 - ISC
293
298
  *
294
299
  * This source code is licensed under the ISC license.
295
300
  * See the LICENSE file in the root directory of this source tree.
296
- */const KE=pe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
301
+ */const qE=pe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
297
302
  * @license lucide-react v0.462.0 - ISC
298
303
  *
299
304
  * This source code is licensed under the ISC license.
@@ -303,63 +308,63 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
303
308
  *
304
309
  * This source code is licensed under the ISC license.
305
310
  * See the LICENSE file in the root directory of this source tree.
306
- */const qE=pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
311
+ */const GE=pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
307
312
  * @license lucide-react v0.462.0 - ISC
308
313
  *
309
314
  * This source code is licensed under the ISC license.
310
315
  * See the LICENSE file in the root directory of this source tree.
311
- */const GE=pe("SendHorizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);/**
316
+ */const XE=pe("SendHorizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);/**
312
317
  * @license lucide-react v0.462.0 - ISC
313
318
  *
314
319
  * This source code is licensed under the ISC license.
315
320
  * See the LICENSE file in the root directory of this source tree.
316
- */const XE=pe("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
321
+ */const ZE=pe("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
317
322
  * @license lucide-react v0.462.0 - ISC
318
323
  *
319
324
  * This source code is licensed under the ISC license.
320
325
  * See the LICENSE file in the root directory of this source tree.
321
- */const ZE=pe("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"}]]);/**
326
+ */const JE=pe("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"}]]);/**
322
327
  * @license lucide-react v0.462.0 - ISC
323
328
  *
324
329
  * This source code is licensed under the ISC license.
325
330
  * See the LICENSE file in the root directory of this source tree.
326
- */const JE=pe("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"}]]);/**
331
+ */const ek=pe("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"}]]);/**
327
332
  * @license lucide-react v0.462.0 - ISC
328
333
  *
329
334
  * This source code is licensed under the ISC license.
330
335
  * See the LICENSE file in the root directory of this source tree.
331
- */const ek=pe("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
336
+ */const tk=pe("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
332
337
  * @license lucide-react v0.462.0 - ISC
333
338
  *
334
339
  * This source code is licensed under the ISC license.
335
340
  * See the LICENSE file in the root directory of this source tree.
336
- */const tk=pe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
341
+ */const nk=pe("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
337
342
  * @license lucide-react v0.462.0 - ISC
338
343
  *
339
344
  * This source code is licensed under the ISC license.
340
345
  * See the LICENSE file in the root directory of this source tree.
341
- */const nk=pe("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"}]]);/**
346
+ */const rk=pe("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"}]]);/**
342
347
  * @license lucide-react v0.462.0 - ISC
343
348
  *
344
349
  * This source code is licensed under the ISC license.
345
350
  * See the LICENSE file in the root directory of this source tree.
346
- */const rk=pe("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"}]]);/**
351
+ */const ok=pe("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"}]]);/**
347
352
  * @license lucide-react v0.462.0 - ISC
348
353
  *
349
354
  * This source code is licensed under the ISC license.
350
355
  * See the LICENSE file in the root directory of this source tree.
351
- */const ok=pe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
356
+ */const ik=pe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
352
357
  * @license lucide-react v0.462.0 - ISC
353
358
  *
354
359
  * This source code is licensed under the ISC license.
355
360
  * See the LICENSE file in the root directory of this source tree.
356
- */const ik=pe("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
361
+ */const sk=pe("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
357
362
  * @license lucide-react v0.462.0 - ISC
358
363
  *
359
364
  * This source code is licensed under the ISC license.
360
365
  * See the LICENSE file in the root directory of this source tree.
361
- */const sk=pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ox=n=>{switch(n){case"success":return lx;case"info":return ux;case"warning":return ax;case"error":return cx;default:return null}},ix=Array(12).fill(0),sx=({visible:n,className:r})=>G.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},G.createElement("div",{className:"sonner-spinner"},ix.map((i,l)=>G.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),lx=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),ax=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},G.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"})),ux=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),cx=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),dx=G.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"},G.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),G.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),fx=()=>{let[n,r]=G.useState(document.hidden);return G.useEffect(()=>{let i=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),n},Lc=1,px=class{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{let r=this.subscribers.indexOf(n);this.subscribers.splice(r,1)}),this.publish=n=>{this.subscribers.forEach(r=>r(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var r;let{message:i,...l}=n,a=typeof(n==null?void 0:n.id)=="number"||((r=n.id)==null?void 0:r.length)>0?n.id:Lc++,c=this.toasts.find(p=>p.id===a),f=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(p=>p.id===a?(this.publish({...p,...n,id:a,title:i}),{...p,...n,id:a,dismissible:f,title:i}):p):this.addToast({title:i,...l,dismissible:f,id:a}),a},this.dismiss=n=>(this.dismissedToasts.add(n),n||this.toasts.forEach(r=>{this.subscribers.forEach(i=>i({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:n,dismiss:!0})),n),this.message=(n,r)=>this.create({...r,message:n}),this.error=(n,r)=>this.create({...r,message:n,type:"error"}),this.success=(n,r)=>this.create({...r,type:"success",message:n}),this.info=(n,r)=>this.create({...r,type:"info",message:n}),this.warning=(n,r)=>this.create({...r,type:"warning",message:n}),this.loading=(n,r)=>this.create({...r,type:"loading",message:n}),this.promise=(n,r)=>{if(!r)return;let i;r.loading!==void 0&&(i=this.create({...r,promise:n,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let l=n instanceof Promise?n:n(),a=i!==void 0,c,f=l.then(async h=>{if(c=["resolve",h],G.isValidElement(h))a=!1,this.create({id:i,type:"default",message:h});else if(mx(h)&&!h.ok){a=!1;let v=typeof r.error=="function"?await r.error(`HTTP error! status: ${h.status}`):r.error,w=typeof r.description=="function"?await r.description(`HTTP error! status: ${h.status}`):r.description;this.create({id:i,type:"error",message:v,description:w})}else if(r.success!==void 0){a=!1;let v=typeof r.success=="function"?await r.success(h):r.success,w=typeof r.description=="function"?await r.description(h):r.description;this.create({id:i,type:"success",message:v,description:w})}}).catch(async h=>{if(c=["reject",h],r.error!==void 0){a=!1;let v=typeof r.error=="function"?await r.error(h):r.error,w=typeof r.description=="function"?await r.description(h):r.description;this.create({id:i,type:"error",message:v,description:w})}}).finally(()=>{var h;a&&(this.dismiss(i),i=void 0),(h=r.finally)==null||h.call(r)}),p=()=>new Promise((h,v)=>f.then(()=>c[0]==="reject"?v(c[1]):h(c[1])).catch(v));return typeof i!="string"&&typeof i!="number"?{unwrap:p}:Object.assign(i,{unwrap:p})},this.custom=(n,r)=>{let i=(r==null?void 0:r.id)||Lc++;return this.create({jsx:n(i),id:i,...r}),i},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Lt=new px,hx=(n,r)=>{let i=(r==null?void 0:r.id)||Lc++;return Lt.addToast({title:n,...r,id:i}),i},mx=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",vx=hx,yx=()=>Lt.toasts,gx=()=>Lt.getActiveToasts(),lk=Object.assign(vx,{success:Lt.success,info:Lt.info,warning:Lt.warning,error:Lt.error,custom:Lt.custom,message:Lt.message,promise:Lt.promise,dismiss:Lt.dismiss,loading:Lt.loading},{getHistory:yx,getToasts:gx});function wx(n,{insertAt:r}={}){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",r==="top"&&i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),l.styleSheet?l.styleSheet.cssText=n:l.appendChild(document.createTextNode(n))}wx(`: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%)}
362
- `);function jl(n){return n.label!==void 0}var xx=3,Sx="32px",Cx="16px",kh=4e3,Ex=356,kx=14,bx=20,Rx=200;function un(...n){return n.filter(Boolean).join(" ")}function Px(n){let[r,i]=n.split("-"),l=[];return r&&l.push(r),i&&l.push(i),l}var Tx=n=>{var r,i,l,a,c,f,p,h,v,w,x;let{invert:E,toast:y,unstyled:O,interacting:S,setHeights:C,visibleToasts:P,heights:M,index:R,toasts:L,expanded:z,removeToast:U,defaultRichColors:H,closeButton:Y,style:Z,cancelButtonStyle:te,actionButtonStyle:he,className:X="",descriptionClassName:ye="",duration:ce,position:xe,gap:ae,loadingIcon:ie,expandByDefault:j,classNames:B,icons:V,closeButtonAriaLabel:_="Close toast",pauseWhenPageIsHidden:F}=n,[ne,re]=G.useState(null),[ve,Se]=G.useState(null),[K,fe]=G.useState(!1),[Ce,be]=G.useState(!1),[Te,Oe]=G.useState(!1),[Ye,dt]=G.useState(!1),[yn,Xt]=G.useState(!1),[Zt,or]=G.useState(0),[gn,ir]=G.useState(0),Ht=G.useRef(y.duration||ce||kh),Co=G.useRef(null),wn=G.useRef(null),Cs=R===0,Es=R+1<=P,yt=y.type,xn=y.dismissible!==!1,Eo=y.className||"",ks=y.descriptionClassName||"",Sn=G.useMemo(()=>M.findIndex(ke=>ke.toastId===y.id)||0,[M,y.id]),Vr=G.useMemo(()=>{var ke;return(ke=y.closeButton)!=null?ke:Y},[y.closeButton,Y]),bs=G.useMemo(()=>y.duration||ce||kh,[y.duration,ce]),ko=G.useRef(0),zn=G.useRef(0),Rs=G.useRef(0),Cn=G.useRef(null),[Ci,Ei]=xe.split("-"),bo=G.useMemo(()=>M.reduce((ke,Ie,Fe)=>Fe>=Sn?ke:ke+Ie.height,0),[M,Sn]),Ro=fx(),sr=y.invert||E,En=yt==="loading";zn.current=G.useMemo(()=>Sn*ae+bo,[Sn,bo]),G.useEffect(()=>{Ht.current=bs},[bs]),G.useEffect(()=>{fe(!0)},[]),G.useEffect(()=>{let ke=wn.current;if(ke){let Ie=ke.getBoundingClientRect().height;return ir(Ie),C(Fe=>[{toastId:y.id,height:Ie,position:y.position},...Fe]),()=>C(Fe=>Fe.filter(gt=>gt.toastId!==y.id))}},[C,y.id]),G.useLayoutEffect(()=>{if(!K)return;let ke=wn.current,Ie=ke.style.height;ke.style.height="auto";let Fe=ke.getBoundingClientRect().height;ke.style.height=Ie,ir(Fe),C(gt=>gt.find(Et=>Et.toastId===y.id)?gt.map(Et=>Et.toastId===y.id?{...Et,height:Fe}:Et):[{toastId:y.id,height:Fe,position:y.position},...gt])},[K,y.title,y.description,C,y.id]);let Jt=G.useCallback(()=>{be(!0),or(zn.current),C(ke=>ke.filter(Ie=>Ie.toastId!==y.id)),setTimeout(()=>{U(y)},Rx)},[y,U,C,zn]);G.useEffect(()=>{if(y.promise&&yt==="loading"||y.duration===1/0||y.type==="loading")return;let ke;return z||S||F&&Ro?(()=>{if(Rs.current<ko.current){let Ie=new Date().getTime()-ko.current;Ht.current=Ht.current-Ie}Rs.current=new Date().getTime()})():Ht.current!==1/0&&(ko.current=new Date().getTime(),ke=setTimeout(()=>{var Ie;(Ie=y.onAutoClose)==null||Ie.call(y,y),Jt()},Ht.current)),()=>clearTimeout(ke)},[z,S,y,yt,F,Ro,Jt]),G.useEffect(()=>{y.delete&&Jt()},[Jt,y.delete]);function Ps(){var ke,Ie,Fe;return V!=null&&V.loading?G.createElement("div",{className:un(B==null?void 0:B.loader,(ke=y==null?void 0:y.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":yt==="loading"},V.loading):ie?G.createElement("div",{className:un(B==null?void 0:B.loader,(Ie=y==null?void 0:y.classNames)==null?void 0:Ie.loader,"sonner-loader"),"data-visible":yt==="loading"},ie):G.createElement(sx,{className:un(B==null?void 0:B.loader,(Fe=y==null?void 0:y.classNames)==null?void 0:Fe.loader),visible:yt==="loading"})}return G.createElement("li",{tabIndex:0,ref:wn,className:un(X,Eo,B==null?void 0:B.toast,(r=y==null?void 0:y.classNames)==null?void 0:r.toast,B==null?void 0:B.default,B==null?void 0:B[yt],(i=y==null?void 0:y.classNames)==null?void 0:i[yt]),"data-sonner-toast":"","data-rich-colors":(l=y.richColors)!=null?l:H,"data-styled":!(y.jsx||y.unstyled||O),"data-mounted":K,"data-promise":!!y.promise,"data-swiped":yn,"data-removed":Ce,"data-visible":Es,"data-y-position":Ci,"data-x-position":Ei,"data-index":R,"data-front":Cs,"data-swiping":Te,"data-dismissible":xn,"data-type":yt,"data-invert":sr,"data-swipe-out":Ye,"data-swipe-direction":ve,"data-expanded":!!(z||j&&K),style:{"--index":R,"--toasts-before":R,"--z-index":L.length-R,"--offset":`${Ce?Zt:zn.current}px`,"--initial-height":j?"auto":`${gn}px`,...Z,...y.style},onDragEnd:()=>{Oe(!1),re(null),Cn.current=null},onPointerDown:ke=>{En||!xn||(Co.current=new Date,or(zn.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(Oe(!0),Cn.current={x:ke.clientX,y:ke.clientY}))},onPointerUp:()=>{var ke,Ie,Fe,gt;if(Ye||!xn)return;Cn.current=null;let Et=Number(((ke=wn.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),kt=Number(((Ie=wn.current)==null?void 0:Ie.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),en=new Date().getTime()-((Fe=Co.current)==null?void 0:Fe.getTime()),lt=ne==="x"?Et:kt,kn=Math.abs(lt)/en;if(Math.abs(lt)>=bx||kn>.11){or(zn.current),(gt=y.onDismiss)==null||gt.call(y,y),Se(ne==="x"?Et>0?"right":"left":kt>0?"down":"up"),Jt(),dt(!0),Xt(!1);return}Oe(!1),re(null)},onPointerMove:ke=>{var Ie,Fe,gt,Et;if(!Cn.current||!xn||((Ie=window.getSelection())==null?void 0:Ie.toString().length)>0)return;let kt=ke.clientY-Cn.current.y,en=ke.clientX-Cn.current.x,lt=(Fe=n.swipeDirections)!=null?Fe:Px(xe);!ne&&(Math.abs(en)>1||Math.abs(kt)>1)&&re(Math.abs(en)>Math.abs(kt)?"x":"y");let kn={x:0,y:0};ne==="y"?(lt.includes("top")||lt.includes("bottom"))&&(lt.includes("top")&&kt<0||lt.includes("bottom")&&kt>0)&&(kn.y=kt):ne==="x"&&(lt.includes("left")||lt.includes("right"))&&(lt.includes("left")&&en<0||lt.includes("right")&&en>0)&&(kn.x=en),(Math.abs(kn.x)>0||Math.abs(kn.y)>0)&&Xt(!0),(gt=wn.current)==null||gt.style.setProperty("--swipe-amount-x",`${kn.x}px`),(Et=wn.current)==null||Et.style.setProperty("--swipe-amount-y",`${kn.y}px`)}},Vr&&!y.jsx?G.createElement("button",{"aria-label":_,"data-disabled":En,"data-close-button":!0,onClick:En||!xn?()=>{}:()=>{var ke;Jt(),(ke=y.onDismiss)==null||ke.call(y,y)},className:un(B==null?void 0:B.closeButton,(a=y==null?void 0:y.classNames)==null?void 0:a.closeButton)},(c=V==null?void 0:V.close)!=null?c:dx):null,y.jsx||g.isValidElement(y.title)?y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title:G.createElement(G.Fragment,null,yt||y.icon||y.promise?G.createElement("div",{"data-icon":"",className:un(B==null?void 0:B.icon,(f=y==null?void 0:y.classNames)==null?void 0:f.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Ps():null,y.type!=="loading"?y.icon||(V==null?void 0:V[yt])||ox(yt):null):null,G.createElement("div",{"data-content":"",className:un(B==null?void 0:B.content,(p=y==null?void 0:y.classNames)==null?void 0:p.content)},G.createElement("div",{"data-title":"",className:un(B==null?void 0:B.title,(h=y==null?void 0:y.classNames)==null?void 0:h.title)},typeof y.title=="function"?y.title():y.title),y.description?G.createElement("div",{"data-description":"",className:un(ye,ks,B==null?void 0:B.description,(v=y==null?void 0:y.classNames)==null?void 0:v.description)},typeof y.description=="function"?y.description():y.description):null),g.isValidElement(y.cancel)?y.cancel:y.cancel&&jl(y.cancel)?G.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||te,onClick:ke=>{var Ie,Fe;jl(y.cancel)&&xn&&((Fe=(Ie=y.cancel).onClick)==null||Fe.call(Ie,ke),Jt())},className:un(B==null?void 0:B.cancelButton,(w=y==null?void 0:y.classNames)==null?void 0:w.cancelButton)},y.cancel.label):null,g.isValidElement(y.action)?y.action:y.action&&jl(y.action)?G.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||he,onClick:ke=>{var Ie,Fe;jl(y.action)&&((Fe=(Ie=y.action).onClick)==null||Fe.call(Ie,ke),!ke.defaultPrevented&&Jt())},className:un(B==null?void 0:B.actionButton,(x=y==null?void 0:y.classNames)==null?void 0:x.actionButton)},y.action.label):null))};function bh(){if(typeof window>"u"||typeof document>"u")return"ltr";let n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function Mx(n,r){let i={};return[n,r].forEach((l,a)=>{let c=a===1,f=c?"--mobile-offset":"--offset",p=c?Cx:Sx;function h(v){["top","right","bottom","left"].forEach(w=>{i[`${f}-${w}`]=typeof v=="number"?`${v}px`:v})}typeof l=="number"||typeof l=="string"?h(l):typeof l=="object"?["top","right","bottom","left"].forEach(v=>{l[v]===void 0?i[`${f}-${v}`]=p:i[`${f}-${v}`]=typeof l[v]=="number"?`${l[v]}px`:l[v]}):h(p)}),i}var ak=g.forwardRef(function(n,r){let{invert:i,position:l="bottom-right",hotkey:a=["altKey","KeyT"],expand:c,closeButton:f,className:p,offset:h,mobileOffset:v,theme:w="light",richColors:x,duration:E,style:y,visibleToasts:O=xx,toastOptions:S,dir:C=bh(),gap:P=kx,loadingIcon:M,icons:R,containerAriaLabel:L="Notifications",pauseWhenPageIsHidden:z}=n,[U,H]=G.useState([]),Y=G.useMemo(()=>Array.from(new Set([l].concat(U.filter(F=>F.position).map(F=>F.position)))),[U,l]),[Z,te]=G.useState([]),[he,X]=G.useState(!1),[ye,ce]=G.useState(!1),[xe,ae]=G.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ie=G.useRef(null),j=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=G.useRef(null),V=G.useRef(!1),_=G.useCallback(F=>{H(ne=>{var re;return(re=ne.find(ve=>ve.id===F.id))!=null&&re.delete||Lt.dismiss(F.id),ne.filter(({id:ve})=>ve!==F.id)})},[]);return G.useEffect(()=>Lt.subscribe(F=>{if(F.dismiss){H(ne=>ne.map(re=>re.id===F.id?{...re,delete:!0}:re));return}setTimeout(()=>{Lm.flushSync(()=>{H(ne=>{let re=ne.findIndex(ve=>ve.id===F.id);return re!==-1?[...ne.slice(0,re),{...ne[re],...F},...ne.slice(re+1)]:[F,...ne]})})})}),[]),G.useEffect(()=>{if(w!=="system"){ae(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ae("dark"):ae("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:ne})=>{ae(ne?"dark":"light")})}catch{F.addListener(({matches:re})=>{try{ae(re?"dark":"light")}catch(ve){console.error(ve)}})}},[w]),G.useEffect(()=>{U.length<=1&&X(!1)},[U]),G.useEffect(()=>{let F=ne=>{var re,ve;a.every(Se=>ne[Se]||ne.code===Se)&&(X(!0),(re=ie.current)==null||re.focus()),ne.code==="Escape"&&(document.activeElement===ie.current||(ve=ie.current)!=null&&ve.contains(document.activeElement))&&X(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[a]),G.useEffect(()=>{if(ie.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,V.current=!1)}},[ie.current]),G.createElement("section",{ref:r,"aria-label":`${L} ${j}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},Y.map((F,ne)=>{var re;let[ve,Se]=F.split("-");return U.length?G.createElement("ol",{key:F,dir:C==="auto"?bh():C,tabIndex:-1,ref:ie,className:p,"data-sonner-toaster":!0,"data-theme":xe,"data-y-position":ve,"data-lifted":he&&U.length>1&&!c,"data-x-position":Se,style:{"--front-toast-height":`${((re=Z[0])==null?void 0:re.height)||0}px`,"--width":`${Ex}px`,"--gap":`${P}px`,...y,...Mx(h,v)},onBlur:K=>{V.current&&!K.currentTarget.contains(K.relatedTarget)&&(V.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||V.current||(V.current=!0,B.current=K.relatedTarget)},onMouseEnter:()=>X(!0),onMouseMove:()=>X(!0),onMouseLeave:()=>{ye||X(!1)},onDragEnd:()=>X(!1),onPointerDown:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||ce(!0)},onPointerUp:()=>ce(!1)},U.filter(K=>!K.position&&ne===0||K.position===F).map((K,fe)=>{var Ce,be;return G.createElement(Tx,{key:K.id,icons:R,index:fe,toast:K,defaultRichColors:x,duration:(Ce=S==null?void 0:S.duration)!=null?Ce:E,className:S==null?void 0:S.className,descriptionClassName:S==null?void 0:S.descriptionClassName,invert:i,visibleToasts:O,closeButton:(be=S==null?void 0:S.closeButton)!=null?be:f,interacting:ye,position:F,style:S==null?void 0:S.style,unstyled:S==null?void 0:S.unstyled,classNames:S==null?void 0:S.classNames,cancelButtonStyle:S==null?void 0:S.cancelButtonStyle,actionButtonStyle:S==null?void 0:S.actionButtonStyle,removeToast:_,toasts:U.filter(Te=>Te.position==K.position),heights:Z.filter(Te=>Te.position==K.position),setHeights:te,expandByDefault:c,gap:P,loadingIcon:M,expanded:he,pauseWhenPageIsHidden:z,swipeDirections:n.swipeDirections})})):null}))});function Rh(n,[r,i]){return Math.min(i,Math.max(r,n))}function Je(n,r,{checkForDefaultPrevented:i=!0}={}){return function(a){if(n==null||n(a),i===!1||!a.defaultPrevented)return r==null?void 0:r(a)}}function uk(n,r){const i=g.createContext(r),l=c=>{const{children:f,...p}=c,h=g.useMemo(()=>p,Object.values(p));return ee.jsx(i.Provider,{value:h,children:f})};l.displayName=n+"Provider";function a(c){const f=g.useContext(i);if(f)return f;if(r!==void 0)return r;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[l,a]}function sd(n,r=[]){let i=[];function l(c,f){const p=g.createContext(f),h=i.length;i=[...i,f];const v=x=>{var P;const{scope:E,children:y,...O}=x,S=((P=E==null?void 0:E[n])==null?void 0:P[h])||p,C=g.useMemo(()=>O,Object.values(O));return ee.jsx(S.Provider,{value:C,children:y})};v.displayName=c+"Provider";function w(x,E){var S;const y=((S=E==null?void 0:E[n])==null?void 0:S[h])||p,O=g.useContext(y);if(O)return O;if(f!==void 0)return f;throw new Error(`\`${x}\` must be used within \`${c}\``)}return[v,w]}const a=()=>{const c=i.map(f=>g.createContext(f));return function(p){const h=(p==null?void 0:p[n])||c;return g.useMemo(()=>({[`__scope${n}`]:{...p,[n]:h}}),[p,h])}};return a.scopeName=n,[l,Ox(a,...r)]}function Ox(...n){const r=n[0];if(n.length===1)return r;const i=()=>{const l=n.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(c){const f=l.reduce((p,{useScope:h,scopeName:v})=>{const x=h(c)[`__scope${v}`];return{...p,...x}},{});return g.useMemo(()=>({[`__scope${r.scopeName}`]:f}),[f])}};return i.scopeName=r.scopeName,i}function Ph(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function Jm(...n){return r=>{let i=!1;const l=n.map(a=>{const c=Ph(a,r);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let a=0;a<l.length;a++){const c=l[a];typeof c=="function"?c():Ph(n[a],null)}}}}function ct(...n){return g.useCallback(Jm(...n),n)}function ea(n){const r=_x(n),i=g.forwardRef((l,a)=>{const{children:c,...f}=l,p=g.Children.toArray(c),h=p.find(Nx);if(h){const v=h.props.children,w=p.map(x=>x===h?g.Children.count(v)>1?g.Children.only(null):g.isValidElement(v)?v.props.children:null:x);return ee.jsx(r,{...f,ref:a,children:g.isValidElement(v)?g.cloneElement(v,void 0,w):null})}return ee.jsx(r,{...f,ref:a,children:c})});return i.displayName=`${n}.Slot`,i}function _x(n){const r=g.forwardRef((i,l)=>{const{children:a,...c}=i;if(g.isValidElement(a)){const f=Ix(a),p=Lx(c,a.props);return a.type!==g.Fragment&&(p.ref=l?Jm(l,f):f),g.cloneElement(a,p)}return g.Children.count(a)>1?g.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var ev=Symbol("radix.slottable");function ck(n){const r=({children:i})=>ee.jsx(ee.Fragment,{children:i});return r.displayName=`${n}.Slottable`,r.__radixId=ev,r}function Nx(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===ev}function Lx(n,r){const i={...r};for(const l in r){const a=n[l],c=r[l];/^on[A-Z]/.test(l)?a&&c?i[l]=(...p)=>{const h=c(...p);return a(...p),h}:a&&(i[l]=a):l==="style"?i[l]={...a,...c}:l==="className"&&(i[l]=[a,c].filter(Boolean).join(" "))}return{...n,...i}}function Ix(n){var l,a;let r=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}function Ax(n){const r=n+"CollectionProvider",[i,l]=sd(r),[a,c]=i(r,{collectionRef:{current:null},itemMap:new Map}),f=S=>{const{scope:C,children:P}=S,M=G.useRef(null),R=G.useRef(new Map).current;return ee.jsx(a,{scope:C,itemMap:R,collectionRef:M,children:P})};f.displayName=r;const p=n+"CollectionSlot",h=ea(p),v=G.forwardRef((S,C)=>{const{scope:P,children:M}=S,R=c(p,P),L=ct(C,R.collectionRef);return ee.jsx(h,{ref:L,children:M})});v.displayName=p;const w=n+"CollectionItemSlot",x="data-radix-collection-item",E=ea(w),y=G.forwardRef((S,C)=>{const{scope:P,children:M,...R}=S,L=G.useRef(null),z=ct(C,L),U=c(w,P);return G.useEffect(()=>(U.itemMap.set(L,{ref:L,...R}),()=>void U.itemMap.delete(L))),ee.jsx(E,{[x]:"",ref:z,children:M})});y.displayName=w;function O(S){const C=c(n+"CollectionConsumer",S);return G.useCallback(()=>{const M=C.collectionRef.current;if(!M)return[];const R=Array.from(M.querySelectorAll(`[${x}]`));return Array.from(C.itemMap.values()).sort((U,H)=>R.indexOf(U.ref.current)-R.indexOf(H.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:f,Slot:v,ItemSlot:y},O,l]}var Dx=g.createContext(void 0);function Fx(n){const r=g.useContext(Dx);return n||r||"ltr"}var zx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Xe=zx.reduce((n,r)=>{const i=ea(`Primitive.${r}`),l=g.forwardRef((a,c)=>{const{asChild:f,...p}=a,h=f?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ee.jsx(h,{...p,ref:c})});return l.displayName=`Primitive.${r}`,{...n,[r]:l}},{});function jx(n,r){n&&xs.flushSync(()=>n.dispatchEvent(r))}function go(n){const r=g.useRef(n);return g.useEffect(()=>{r.current=n}),g.useMemo(()=>(...i)=>{var l;return(l=r.current)==null?void 0:l.call(r,...i)},[])}function Bx(n,r=globalThis==null?void 0:globalThis.document){const i=go(n);g.useEffect(()=>{const l=a=>{a.key==="Escape"&&i(a)};return r.addEventListener("keydown",l,{capture:!0}),()=>r.removeEventListener("keydown",l,{capture:!0})},[i,r])}var Ux="DismissableLayer",Ic="dismissableLayer.update",Hx="dismissableLayer.pointerDownOutside",$x="dismissableLayer.focusOutside",Th,tv=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nv=g.forwardRef((n,r)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:f,onDismiss:p,...h}=n,v=g.useContext(tv),[w,x]=g.useState(null),E=(w==null?void 0:w.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=g.useState({}),O=ct(r,H=>x(H)),S=Array.from(v.layers),[C]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),P=S.indexOf(C),M=w?S.indexOf(w):-1,R=v.layersWithOutsidePointerEventsDisabled.size>0,L=M>=P,z=Qx(H=>{const Y=H.target,Z=[...v.branches].some(te=>te.contains(Y));!L||Z||(a==null||a(H),f==null||f(H),H.defaultPrevented||p==null||p())},E),U=Kx(H=>{const Y=H.target;[...v.branches].some(te=>te.contains(Y))||(c==null||c(H),f==null||f(H),H.defaultPrevented||p==null||p())},E);return Bx(H=>{M===v.layers.size-1&&(l==null||l(H),!H.defaultPrevented&&p&&(H.preventDefault(),p()))},E),g.useEffect(()=>{if(w)return i&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Th=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(w)),v.layers.add(w),Mh(),()=>{i&&v.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=Th)}},[w,E,i,v]),g.useEffect(()=>()=>{w&&(v.layers.delete(w),v.layersWithOutsidePointerEventsDisabled.delete(w),Mh())},[w,v]),g.useEffect(()=>{const H=()=>y({});return document.addEventListener(Ic,H),()=>document.removeEventListener(Ic,H)},[]),ee.jsx(Xe.div,{...h,ref:O,style:{pointerEvents:R?L?"auto":"none":void 0,...n.style},onFocusCapture:Je(n.onFocusCapture,U.onFocusCapture),onBlurCapture:Je(n.onBlurCapture,U.onBlurCapture),onPointerDownCapture:Je(n.onPointerDownCapture,z.onPointerDownCapture)})});nv.displayName=Ux;var Wx="DismissableLayerBranch",Vx=g.forwardRef((n,r)=>{const i=g.useContext(tv),l=g.useRef(null),a=ct(r,l);return g.useEffect(()=>{const c=l.current;if(c)return i.branches.add(c),()=>{i.branches.delete(c)}},[i.branches]),ee.jsx(Xe.div,{...n,ref:a})});Vx.displayName=Wx;function Qx(n,r=globalThis==null?void 0:globalThis.document){const i=go(n),l=g.useRef(!1),a=g.useRef(()=>{});return g.useEffect(()=>{const c=p=>{if(p.target&&!l.current){let h=function(){rv(Hx,i,v,{discrete:!0})};const v={originalEvent:p};p.pointerType==="touch"?(r.removeEventListener("click",a.current),a.current=h,r.addEventListener("click",a.current,{once:!0})):h()}else r.removeEventListener("click",a.current);l.current=!1},f=window.setTimeout(()=>{r.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),r.removeEventListener("pointerdown",c),r.removeEventListener("click",a.current)}},[r,i]),{onPointerDownCapture:()=>l.current=!0}}function Kx(n,r=globalThis==null?void 0:globalThis.document){const i=go(n),l=g.useRef(!1);return g.useEffect(()=>{const a=c=>{c.target&&!l.current&&rv($x,i,{originalEvent:c},{discrete:!1})};return r.addEventListener("focusin",a),()=>r.removeEventListener("focusin",a)},[r,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Mh(){const n=new CustomEvent(Ic);document.dispatchEvent(n)}function rv(n,r,i,{discrete:l}){const a=i.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});r&&a.addEventListener(n,r,{once:!0}),l?jx(a,c):a.dispatchEvent(c)}var lc=0;function Yx(){g.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Oh()),document.body.insertAdjacentElement("beforeend",n[1]??Oh()),lc++,()=>{lc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),lc--}},[])}function Oh(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var ac="focusScope.autoFocusOnMount",uc="focusScope.autoFocusOnUnmount",_h={bubbles:!1,cancelable:!0},qx="FocusScope",ov=g.forwardRef((n,r)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:a,onUnmountAutoFocus:c,...f}=n,[p,h]=g.useState(null),v=go(a),w=go(c),x=g.useRef(null),E=ct(r,S=>h(S)),y=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(l){let S=function(R){if(y.paused||!p)return;const L=R.target;p.contains(L)?x.current=L:Mr(x.current,{select:!0})},C=function(R){if(y.paused||!p)return;const L=R.relatedTarget;L!==null&&(p.contains(L)||Mr(x.current,{select:!0}))},P=function(R){if(document.activeElement===document.body)for(const z of R)z.removedNodes.length>0&&Mr(p)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const M=new MutationObserver(P);return p&&M.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),M.disconnect()}}},[l,p,y.paused]),g.useEffect(()=>{if(p){Lh.add(y);const S=document.activeElement;if(!p.contains(S)){const P=new CustomEvent(ac,_h);p.addEventListener(ac,v),p.dispatchEvent(P),P.defaultPrevented||(Gx(tS(iv(p)),{select:!0}),document.activeElement===S&&Mr(p))}return()=>{p.removeEventListener(ac,v),setTimeout(()=>{const P=new CustomEvent(uc,_h);p.addEventListener(uc,w),p.dispatchEvent(P),P.defaultPrevented||Mr(S??document.body,{select:!0}),p.removeEventListener(uc,w),Lh.remove(y)},0)}}},[p,v,w,y]);const O=g.useCallback(S=>{if(!i&&!l||y.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,P=document.activeElement;if(C&&P){const M=S.currentTarget,[R,L]=Xx(M);R&&L?!S.shiftKey&&P===L?(S.preventDefault(),i&&Mr(R,{select:!0})):S.shiftKey&&P===R&&(S.preventDefault(),i&&Mr(L,{select:!0})):P===M&&S.preventDefault()}},[i,l,y.paused]);return ee.jsx(Xe.div,{tabIndex:-1,...f,ref:E,onKeyDown:O})});ov.displayName=qx;function Gx(n,{select:r=!1}={}){const i=document.activeElement;for(const l of n)if(Mr(l,{select:r}),document.activeElement!==i)return}function Xx(n){const r=iv(n),i=Nh(r,n),l=Nh(r.reverse(),n);return[i,l]}function iv(n){const r=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const a=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||a?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)r.push(i.currentNode);return r}function Nh(n,r){for(const i of n)if(!Zx(i,{upTo:r}))return i}function Zx(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Jx(n){return n instanceof HTMLInputElement&&"select"in n}function Mr(n,{select:r=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&Jx(n)&&r&&n.select()}}var Lh=eS();function eS(){let n=[];return{add(r){const i=n[0];r!==i&&(i==null||i.pause()),n=Ih(n,r),n.unshift(r)},remove(r){var i;n=Ih(n,r),(i=n[0])==null||i.resume()}}}function Ih(n,r){const i=[...n],l=i.indexOf(r);return l!==-1&&i.splice(l,1),i}function tS(n){return n.filter(r=>r.tagName!=="A")}var It=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},nS=fm[" useId ".trim().toString()]||(()=>{}),rS=0;function ld(n){const[r,i]=g.useState(nS());return It(()=>{i(l=>l??String(rS++))},[n]),r?`radix-${r}`:""}const oS=["top","right","bottom","left"],Br=Math.min,jt=Math.max,ta=Math.round,Bl=Math.floor,An=n=>({x:n,y:n}),iS={left:"right",right:"left",bottom:"top",top:"bottom"},sS={start:"end",end:"start"};function Ac(n,r,i){return jt(n,Br(r,i))}function nr(n,r){return typeof n=="function"?n(r):n}function rr(n){return n.split("-")[0]}function wi(n){return n.split("-")[1]}function ad(n){return n==="x"?"y":"x"}function ud(n){return n==="y"?"height":"width"}const lS=new Set(["top","bottom"]);function In(n){return lS.has(rr(n))?"y":"x"}function cd(n){return ad(In(n))}function aS(n,r,i){i===void 0&&(i=!1);const l=wi(n),a=cd(n),c=ud(a);let f=a==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return r.reference[c]>r.floating[c]&&(f=na(f)),[f,na(f)]}function uS(n){const r=na(n);return[Dc(n),r,Dc(r)]}function Dc(n){return n.replace(/start|end/g,r=>sS[r])}const Ah=["left","right"],Dh=["right","left"],cS=["top","bottom"],dS=["bottom","top"];function fS(n,r,i){switch(n){case"top":case"bottom":return i?r?Dh:Ah:r?Ah:Dh;case"left":case"right":return r?cS:dS;default:return[]}}function pS(n,r,i,l){const a=wi(n);let c=fS(rr(n),i==="start",l);return a&&(c=c.map(f=>f+"-"+a),r&&(c=c.concat(c.map(Dc)))),c}function na(n){return n.replace(/left|right|bottom|top/g,r=>iS[r])}function hS(n){return{top:0,right:0,bottom:0,left:0,...n}}function sv(n){return typeof n!="number"?hS(n):{top:n,right:n,bottom:n,left:n}}function ra(n){const{x:r,y:i,width:l,height:a}=n;return{width:l,height:a,top:i,left:r,right:r+l,bottom:i+a,x:r,y:i}}function Fh(n,r,i){let{reference:l,floating:a}=n;const c=In(r),f=cd(r),p=ud(f),h=rr(r),v=c==="y",w=l.x+l.width/2-a.width/2,x=l.y+l.height/2-a.height/2,E=l[p]/2-a[p]/2;let y;switch(h){case"top":y={x:w,y:l.y-a.height};break;case"bottom":y={x:w,y:l.y+l.height};break;case"right":y={x:l.x+l.width,y:x};break;case"left":y={x:l.x-a.width,y:x};break;default:y={x:l.x,y:l.y}}switch(wi(r)){case"start":y[f]-=E*(i&&v?-1:1);break;case"end":y[f]+=E*(i&&v?-1:1);break}return y}async function mS(n,r){var i;r===void 0&&(r={});const{x:l,y:a,platform:c,rects:f,elements:p,strategy:h}=n,{boundary:v="clippingAncestors",rootBoundary:w="viewport",elementContext:x="floating",altBoundary:E=!1,padding:y=0}=nr(r,n),O=sv(y),C=p[E?x==="floating"?"reference":"floating":x],P=ra(await c.getClippingRect({element:(i=await(c.isElement==null?void 0:c.isElement(C)))==null||i?C:C.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:v,rootBoundary:w,strategy:h})),M=x==="floating"?{x:l,y:a,width:f.floating.width,height:f.floating.height}:f.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),L=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},z=ra(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:M,offsetParent:R,strategy:h}):M);return{top:(P.top-z.top+O.top)/L.y,bottom:(z.bottom-P.bottom+O.bottom)/L.y,left:(P.left-z.left+O.left)/L.x,right:(z.right-P.right+O.right)/L.x}}const vS=async(n,r,i)=>{const{placement:l="bottom",strategy:a="absolute",middleware:c=[],platform:f}=i,p=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(r));let v=await f.getElementRects({reference:n,floating:r,strategy:a}),{x:w,y:x}=Fh(v,l,h),E=l,y={},O=0;for(let C=0;C<p.length;C++){var S;const{name:P,fn:M}=p[C],{x:R,y:L,data:z,reset:U}=await M({x:w,y:x,initialPlacement:l,placement:E,strategy:a,middlewareData:y,rects:v,platform:{...f,detectOverflow:(S=f.detectOverflow)!=null?S:mS},elements:{reference:n,floating:r}});w=R??w,x=L??x,y={...y,[P]:{...y[P],...z}},U&&O<=50&&(O++,typeof U=="object"&&(U.placement&&(E=U.placement),U.rects&&(v=U.rects===!0?await f.getElementRects({reference:n,floating:r,strategy:a}):U.rects),{x:w,y:x}=Fh(v,E,h)),C=-1)}return{x:w,y:x,placement:E,strategy:a,middlewareData:y}},yS=n=>({name:"arrow",options:n,async fn(r){const{x:i,y:l,placement:a,rects:c,platform:f,elements:p,middlewareData:h}=r,{element:v,padding:w=0}=nr(n,r)||{};if(v==null)return{};const x=sv(w),E={x:i,y:l},y=cd(a),O=ud(y),S=await f.getDimensions(v),C=y==="y",P=C?"top":"left",M=C?"bottom":"right",R=C?"clientHeight":"clientWidth",L=c.reference[O]+c.reference[y]-E[y]-c.floating[O],z=E[y]-c.reference[y],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(v));let H=U?U[R]:0;(!H||!await(f.isElement==null?void 0:f.isElement(U)))&&(H=p.floating[R]||c.floating[O]);const Y=L/2-z/2,Z=H/2-S[O]/2-1,te=Br(x[P],Z),he=Br(x[M],Z),X=te,ye=H-S[O]-he,ce=H/2-S[O]/2+Y,xe=Ac(X,ce,ye),ae=!h.arrow&&wi(a)!=null&&ce!==xe&&c.reference[O]/2-(ce<X?te:he)-S[O]/2<0,ie=ae?ce<X?ce-X:ce-ye:0;return{[y]:E[y]+ie,data:{[y]:xe,centerOffset:ce-xe-ie,...ae&&{alignmentOffset:ie}},reset:ae}}}),gS=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var i,l;const{placement:a,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:v}=r,{mainAxis:w=!0,crossAxis:x=!0,fallbackPlacements:E,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:S=!0,...C}=nr(n,r);if((i=c.arrow)!=null&&i.alignmentOffset)return{};const P=rr(a),M=In(p),R=rr(p)===p,L=await(h.isRTL==null?void 0:h.isRTL(v.floating)),z=E||(R||!S?[na(p)]:uS(p)),U=O!=="none";!E&&U&&z.push(...pS(p,S,O,L));const H=[p,...z],Y=await h.detectOverflow(r,C),Z=[];let te=((l=c.flip)==null?void 0:l.overflows)||[];if(w&&Z.push(Y[P]),x){const ce=aS(a,f,L);Z.push(Y[ce[0]],Y[ce[1]])}if(te=[...te,{placement:a,overflows:Z}],!Z.every(ce=>ce<=0)){var he,X;const ce=(((he=c.flip)==null?void 0:he.index)||0)+1,xe=H[ce];if(xe&&(!(x==="alignment"?M!==In(xe):!1)||te.every(j=>In(j.placement)===M?j.overflows[0]>0:!0)))return{data:{index:ce,overflows:te},reset:{placement:xe}};let ae=(X=te.filter(ie=>ie.overflows[0]<=0).sort((ie,j)=>ie.overflows[1]-j.overflows[1])[0])==null?void 0:X.placement;if(!ae)switch(y){case"bestFit":{var ye;const ie=(ye=te.filter(j=>{if(U){const B=In(j.placement);return B===M||B==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(B=>B>0).reduce((B,V)=>B+V,0)]).sort((j,B)=>j[1]-B[1])[0])==null?void 0:ye[0];ie&&(ae=ie);break}case"initialPlacement":ae=p;break}if(a!==ae)return{reset:{placement:ae}}}return{}}}};function zh(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function jh(n){return oS.some(r=>n[r]>=0)}const wS=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:i,platform:l}=r,{strategy:a="referenceHidden",...c}=nr(n,r);switch(a){case"referenceHidden":{const f=await l.detectOverflow(r,{...c,elementContext:"reference"}),p=zh(f,i.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:jh(p)}}}case"escaped":{const f=await l.detectOverflow(r,{...c,altBoundary:!0}),p=zh(f,i.floating);return{data:{escapedOffsets:p,escaped:jh(p)}}}default:return{}}}}},lv=new Set(["left","top"]);async function xS(n,r){const{placement:i,platform:l,elements:a}=n,c=await(l.isRTL==null?void 0:l.isRTL(a.floating)),f=rr(i),p=wi(i),h=In(i)==="y",v=lv.has(f)?-1:1,w=c&&h?-1:1,x=nr(r,n);let{mainAxis:E,crossAxis:y,alignmentAxis:O}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return p&&typeof O=="number"&&(y=p==="end"?O*-1:O),h?{x:y*w,y:E*v}:{x:E*v,y:y*w}}const SS=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var i,l;const{x:a,y:c,placement:f,middlewareData:p}=r,h=await xS(r,n);return f===((i=p.offset)==null?void 0:i.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:a+h.x,y:c+h.y,data:{...h,placement:f}}}}},CS=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:i,y:l,placement:a,platform:c}=r,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:P=>{let{x:M,y:R}=P;return{x:M,y:R}}},...v}=nr(n,r),w={x:i,y:l},x=await c.detectOverflow(r,v),E=In(rr(a)),y=ad(E);let O=w[y],S=w[E];if(f){const P=y==="y"?"top":"left",M=y==="y"?"bottom":"right",R=O+x[P],L=O-x[M];O=Ac(R,O,L)}if(p){const P=E==="y"?"top":"left",M=E==="y"?"bottom":"right",R=S+x[P],L=S-x[M];S=Ac(R,S,L)}const C=h.fn({...r,[y]:O,[E]:S});return{...C,data:{x:C.x-i,y:C.y-l,enabled:{[y]:f,[E]:p}}}}}},ES=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:i,y:l,placement:a,rects:c,middlewareData:f}=r,{offset:p=0,mainAxis:h=!0,crossAxis:v=!0}=nr(n,r),w={x:i,y:l},x=In(a),E=ad(x);let y=w[E],O=w[x];const S=nr(p,r),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const R=E==="y"?"height":"width",L=c.reference[E]-c.floating[R]+C.mainAxis,z=c.reference[E]+c.reference[R]-C.mainAxis;y<L?y=L:y>z&&(y=z)}if(v){var P,M;const R=E==="y"?"width":"height",L=lv.has(rr(a)),z=c.reference[x]-c.floating[R]+(L&&((P=f.offset)==null?void 0:P[x])||0)+(L?0:C.crossAxis),U=c.reference[x]+c.reference[R]+(L?0:((M=f.offset)==null?void 0:M[x])||0)-(L?C.crossAxis:0);O<z?O=z:O>U&&(O=U)}return{[E]:y,[x]:O}}}},kS=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var i,l;const{placement:a,rects:c,platform:f,elements:p}=r,{apply:h=()=>{},...v}=nr(n,r),w=await f.detectOverflow(r,v),x=rr(a),E=wi(a),y=In(a)==="y",{width:O,height:S}=c.floating;let C,P;x==="top"||x==="bottom"?(C=x,P=E===(await(f.isRTL==null?void 0:f.isRTL(p.floating))?"start":"end")?"left":"right"):(P=x,C=E==="end"?"top":"bottom");const M=S-w.top-w.bottom,R=O-w.left-w.right,L=Br(S-w[C],M),z=Br(O-w[P],R),U=!r.middlewareData.shift;let H=L,Y=z;if((i=r.middlewareData.shift)!=null&&i.enabled.x&&(Y=R),(l=r.middlewareData.shift)!=null&&l.enabled.y&&(H=M),U&&!E){const te=jt(w.left,0),he=jt(w.right,0),X=jt(w.top,0),ye=jt(w.bottom,0);y?Y=O-2*(te!==0||he!==0?te+he:jt(w.left,w.right)):H=S-2*(X!==0||ye!==0?X+ye:jt(w.top,w.bottom))}await h({...r,availableWidth:Y,availableHeight:H});const Z=await f.getDimensions(p.floating);return O!==Z.width||S!==Z.height?{reset:{rects:!0}}:{}}}};function aa(){return typeof window<"u"}function xi(n){return av(n)?(n.nodeName||"").toLowerCase():"#document"}function Bt(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Fn(n){var r;return(r=(av(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function av(n){return aa()?n instanceof Node||n instanceof Bt(n).Node:!1}function hn(n){return aa()?n instanceof Element||n instanceof Bt(n).Element:!1}function Dn(n){return aa()?n instanceof HTMLElement||n instanceof Bt(n).HTMLElement:!1}function Bh(n){return!aa()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Bt(n).ShadowRoot}const bS=new Set(["inline","contents"]);function Ss(n){const{overflow:r,overflowX:i,overflowY:l,display:a}=mn(n);return/auto|scroll|overlay|hidden|clip/.test(r+l+i)&&!bS.has(a)}const RS=new Set(["table","td","th"]);function PS(n){return RS.has(xi(n))}const TS=[":popover-open",":modal"];function ua(n){return TS.some(r=>{try{return n.matches(r)}catch{return!1}})}const MS=["transform","translate","scale","rotate","perspective"],OS=["transform","translate","scale","rotate","perspective","filter"],_S=["paint","layout","strict","content"];function dd(n){const r=fd(),i=hn(n)?mn(n):n;return MS.some(l=>i[l]?i[l]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!r&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!r&&(i.filter?i.filter!=="none":!1)||OS.some(l=>(i.willChange||"").includes(l))||_S.some(l=>(i.contain||"").includes(l))}function NS(n){let r=Ur(n);for(;Dn(r)&&!pi(r);){if(dd(r))return r;if(ua(r))return null;r=Ur(r)}return null}function fd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const LS=new Set(["html","body","#document"]);function pi(n){return LS.has(xi(n))}function mn(n){return Bt(n).getComputedStyle(n)}function ca(n){return hn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ur(n){if(xi(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Bh(n)&&n.host||Fn(n);return Bh(r)?r.host:r}function uv(n){const r=Ur(n);return pi(r)?n.ownerDocument?n.ownerDocument.body:n.body:Dn(r)&&Ss(r)?r:uv(r)}function fs(n,r,i){var l;r===void 0&&(r=[]),i===void 0&&(i=!0);const a=uv(n),c=a===((l=n.ownerDocument)==null?void 0:l.body),f=Bt(a);if(c){const p=Fc(f);return r.concat(f,f.visualViewport||[],Ss(a)?a:[],p&&i?fs(p):[])}return r.concat(a,fs(a,[],i))}function Fc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function cv(n){const r=mn(n);let i=parseFloat(r.width)||0,l=parseFloat(r.height)||0;const a=Dn(n),c=a?n.offsetWidth:i,f=a?n.offsetHeight:l,p=ta(i)!==c||ta(l)!==f;return p&&(i=c,l=f),{width:i,height:l,$:p}}function pd(n){return hn(n)?n:n.contextElement}function Jo(n){const r=pd(n);if(!Dn(r))return An(1);const i=r.getBoundingClientRect(),{width:l,height:a,$:c}=cv(r);let f=(c?ta(i.width):i.width)/l,p=(c?ta(i.height):i.height)/a;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const IS=An(0);function dv(n){const r=Bt(n);return!fd()||!r.visualViewport?IS:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function AS(n,r,i){return r===void 0&&(r=!1),!i||r&&i!==Bt(n)?!1:r}function wo(n,r,i,l){r===void 0&&(r=!1),i===void 0&&(i=!1);const a=n.getBoundingClientRect(),c=pd(n);let f=An(1);r&&(l?hn(l)&&(f=Jo(l)):f=Jo(n));const p=AS(c,i,l)?dv(c):An(0);let h=(a.left+p.x)/f.x,v=(a.top+p.y)/f.y,w=a.width/f.x,x=a.height/f.y;if(c){const E=Bt(c),y=l&&hn(l)?Bt(l):l;let O=E,S=Fc(O);for(;S&&l&&y!==O;){const C=Jo(S),P=S.getBoundingClientRect(),M=mn(S),R=P.left+(S.clientLeft+parseFloat(M.paddingLeft))*C.x,L=P.top+(S.clientTop+parseFloat(M.paddingTop))*C.y;h*=C.x,v*=C.y,w*=C.x,x*=C.y,h+=R,v+=L,O=Bt(S),S=Fc(O)}}return ra({width:w,height:x,x:h,y:v})}function da(n,r){const i=ca(n).scrollLeft;return r?r.left+i:wo(Fn(n)).left+i}function fv(n,r){const i=n.getBoundingClientRect(),l=i.left+r.scrollLeft-da(n,i),a=i.top+r.scrollTop;return{x:l,y:a}}function DS(n){let{elements:r,rect:i,offsetParent:l,strategy:a}=n;const c=a==="fixed",f=Fn(l),p=r?ua(r.floating):!1;if(l===f||p&&c)return i;let h={scrollLeft:0,scrollTop:0},v=An(1);const w=An(0),x=Dn(l);if((x||!x&&!c)&&((xi(l)!=="body"||Ss(f))&&(h=ca(l)),Dn(l))){const y=wo(l);v=Jo(l),w.x=y.x+l.clientLeft,w.y=y.y+l.clientTop}const E=f&&!x&&!c?fv(f,h):An(0);return{width:i.width*v.x,height:i.height*v.y,x:i.x*v.x-h.scrollLeft*v.x+w.x+E.x,y:i.y*v.y-h.scrollTop*v.y+w.y+E.y}}function FS(n){return Array.from(n.getClientRects())}function zS(n){const r=Fn(n),i=ca(n),l=n.ownerDocument.body,a=jt(r.scrollWidth,r.clientWidth,l.scrollWidth,l.clientWidth),c=jt(r.scrollHeight,r.clientHeight,l.scrollHeight,l.clientHeight);let f=-i.scrollLeft+da(n);const p=-i.scrollTop;return mn(l).direction==="rtl"&&(f+=jt(r.clientWidth,l.clientWidth)-a),{width:a,height:c,x:f,y:p}}const Uh=25;function jS(n,r){const i=Bt(n),l=Fn(n),a=i.visualViewport;let c=l.clientWidth,f=l.clientHeight,p=0,h=0;if(a){c=a.width,f=a.height;const w=fd();(!w||w&&r==="fixed")&&(p=a.offsetLeft,h=a.offsetTop)}const v=da(l);if(v<=0){const w=l.ownerDocument,x=w.body,E=getComputedStyle(x),y=w.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,O=Math.abs(l.clientWidth-x.clientWidth-y);O<=Uh&&(c-=O)}else v<=Uh&&(c+=v);return{width:c,height:f,x:p,y:h}}const BS=new Set(["absolute","fixed"]);function US(n,r){const i=wo(n,!0,r==="fixed"),l=i.top+n.clientTop,a=i.left+n.clientLeft,c=Dn(n)?Jo(n):An(1),f=n.clientWidth*c.x,p=n.clientHeight*c.y,h=a*c.x,v=l*c.y;return{width:f,height:p,x:h,y:v}}function Hh(n,r,i){let l;if(r==="viewport")l=jS(n,i);else if(r==="document")l=zS(Fn(n));else if(hn(r))l=US(r,i);else{const a=dv(n);l={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return ra(l)}function pv(n,r){const i=Ur(n);return i===r||!hn(i)||pi(i)?!1:mn(i).position==="fixed"||pv(i,r)}function HS(n,r){const i=r.get(n);if(i)return i;let l=fs(n,[],!1).filter(p=>hn(p)&&xi(p)!=="body"),a=null;const c=mn(n).position==="fixed";let f=c?Ur(n):n;for(;hn(f)&&!pi(f);){const p=mn(f),h=dd(f);!h&&p.position==="fixed"&&(a=null),(c?!h&&!a:!h&&p.position==="static"&&!!a&&BS.has(a.position)||Ss(f)&&!h&&pv(n,f))?l=l.filter(w=>w!==f):a=p,f=Ur(f)}return r.set(n,l),l}function $S(n){let{element:r,boundary:i,rootBoundary:l,strategy:a}=n;const f=[...i==="clippingAncestors"?ua(r)?[]:HS(r,this._c):[].concat(i),l],p=f[0],h=f.reduce((v,w)=>{const x=Hh(r,w,a);return v.top=jt(x.top,v.top),v.right=Br(x.right,v.right),v.bottom=Br(x.bottom,v.bottom),v.left=jt(x.left,v.left),v},Hh(r,p,a));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function WS(n){const{width:r,height:i}=cv(n);return{width:r,height:i}}function VS(n,r,i){const l=Dn(r),a=Fn(r),c=i==="fixed",f=wo(n,!0,c,r);let p={scrollLeft:0,scrollTop:0};const h=An(0);function v(){h.x=da(a)}if(l||!l&&!c)if((xi(r)!=="body"||Ss(a))&&(p=ca(r)),l){const y=wo(r,!0,c,r);h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}else a&&v();c&&!l&&a&&v();const w=a&&!l&&!c?fv(a,p):An(0),x=f.left+p.scrollLeft-h.x-w.x,E=f.top+p.scrollTop-h.y-w.y;return{x,y:E,width:f.width,height:f.height}}function cc(n){return mn(n).position==="static"}function $h(n,r){if(!Dn(n)||mn(n).position==="fixed")return null;if(r)return r(n);let i=n.offsetParent;return Fn(n)===i&&(i=i.ownerDocument.body),i}function hv(n,r){const i=Bt(n);if(ua(n))return i;if(!Dn(n)){let a=Ur(n);for(;a&&!pi(a);){if(hn(a)&&!cc(a))return a;a=Ur(a)}return i}let l=$h(n,r);for(;l&&PS(l)&&cc(l);)l=$h(l,r);return l&&pi(l)&&cc(l)&&!dd(l)?i:l||NS(n)||i}const QS=async function(n){const r=this.getOffsetParent||hv,i=this.getDimensions,l=await i(n.floating);return{reference:VS(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function KS(n){return mn(n).direction==="rtl"}const YS={convertOffsetParentRelativeRectToViewportRelativeRect:DS,getDocumentElement:Fn,getClippingRect:$S,getOffsetParent:hv,getElementRects:QS,getClientRects:FS,getDimensions:WS,getScale:Jo,isElement:hn,isRTL:KS};function mv(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function qS(n,r){let i=null,l;const a=Fn(n);function c(){var p;clearTimeout(l),(p=i)==null||p.disconnect(),i=null}function f(p,h){p===void 0&&(p=!1),h===void 0&&(h=1),c();const v=n.getBoundingClientRect(),{left:w,top:x,width:E,height:y}=v;if(p||r(),!E||!y)return;const O=Bl(x),S=Bl(a.clientWidth-(w+E)),C=Bl(a.clientHeight-(x+y)),P=Bl(w),R={rootMargin:-O+"px "+-S+"px "+-C+"px "+-P+"px",threshold:jt(0,Br(1,h))||1};let L=!0;function z(U){const H=U[0].intersectionRatio;if(H!==h){if(!L)return f();H?f(!1,H):l=setTimeout(()=>{f(!1,1e-7)},1e3)}H===1&&!mv(v,n.getBoundingClientRect())&&f(),L=!1}try{i=new IntersectionObserver(z,{...R,root:a.ownerDocument})}catch{i=new IntersectionObserver(z,R)}i.observe(n)}return f(!0),c}function GS(n,r,i,l){l===void 0&&(l={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=l,v=pd(n),w=a||c?[...v?fs(v):[],...fs(r)]:[];w.forEach(P=>{a&&P.addEventListener("scroll",i,{passive:!0}),c&&P.addEventListener("resize",i)});const x=v&&p?qS(v,i):null;let E=-1,y=null;f&&(y=new ResizeObserver(P=>{let[M]=P;M&&M.target===v&&y&&(y.unobserve(r),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var R;(R=y)==null||R.observe(r)})),i()}),v&&!h&&y.observe(v),y.observe(r));let O,S=h?wo(n):null;h&&C();function C(){const P=wo(n);S&&!mv(S,P)&&i(),S=P,O=requestAnimationFrame(C)}return i(),()=>{var P;w.forEach(M=>{a&&M.removeEventListener("scroll",i),c&&M.removeEventListener("resize",i)}),x==null||x(),(P=y)==null||P.disconnect(),y=null,h&&cancelAnimationFrame(O)}}const XS=SS,ZS=CS,JS=gS,e2=kS,t2=wS,Wh=yS,n2=ES,r2=(n,r,i)=>{const l=new Map,a={platform:YS,...i},c={...a.platform,_c:l};return vS(n,r,{...a,platform:c})};var o2=typeof document<"u",i2=function(){},Yl=o2?g.useLayoutEffect:i2;function oa(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let i,l,a;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==r.length)return!1;for(l=i;l--!==0;)if(!oa(n[l],r[l]))return!1;return!0}if(a=Object.keys(n),i=a.length,i!==Object.keys(r).length)return!1;for(l=i;l--!==0;)if(!{}.hasOwnProperty.call(r,a[l]))return!1;for(l=i;l--!==0;){const c=a[l];if(!(c==="_owner"&&n.$$typeof)&&!oa(n[c],r[c]))return!1}return!0}return n!==n&&r!==r}function vv(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Vh(n,r){const i=vv(n);return Math.round(r*i)/i}function dc(n){const r=g.useRef(n);return Yl(()=>{r.current=n}),r}function s2(n){n===void 0&&(n={});const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:a,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:v}=n,[w,x]=g.useState({x:0,y:0,strategy:i,placement:r,middlewareData:{},isPositioned:!1}),[E,y]=g.useState(l);oa(E,l)||y(l);const[O,S]=g.useState(null),[C,P]=g.useState(null),M=g.useCallback(j=>{j!==U.current&&(U.current=j,S(j))},[]),R=g.useCallback(j=>{j!==H.current&&(H.current=j,P(j))},[]),L=c||O,z=f||C,U=g.useRef(null),H=g.useRef(null),Y=g.useRef(w),Z=h!=null,te=dc(h),he=dc(a),X=dc(v),ye=g.useCallback(()=>{if(!U.current||!H.current)return;const j={placement:r,strategy:i,middleware:E};he.current&&(j.platform=he.current),r2(U.current,H.current,j).then(B=>{const V={...B,isPositioned:X.current!==!1};ce.current&&!oa(Y.current,V)&&(Y.current=V,xs.flushSync(()=>{x(V)}))})},[E,r,i,he,X]);Yl(()=>{v===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,x(j=>({...j,isPositioned:!1})))},[v]);const ce=g.useRef(!1);Yl(()=>(ce.current=!0,()=>{ce.current=!1}),[]),Yl(()=>{if(L&&(U.current=L),z&&(H.current=z),L&&z){if(te.current)return te.current(L,z,ye);ye()}},[L,z,ye,te,Z]);const xe=g.useMemo(()=>({reference:U,floating:H,setReference:M,setFloating:R}),[M,R]),ae=g.useMemo(()=>({reference:L,floating:z}),[L,z]),ie=g.useMemo(()=>{const j={position:i,left:0,top:0};if(!ae.floating)return j;const B=Vh(ae.floating,w.x),V=Vh(ae.floating,w.y);return p?{...j,transform:"translate("+B+"px, "+V+"px)",...vv(ae.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:B,top:V}},[i,p,ae.floating,w.x,w.y]);return g.useMemo(()=>({...w,update:ye,refs:xe,elements:ae,floatingStyles:ie}),[w,ye,xe,ae,ie])}const l2=n=>{function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:l,padding:a}=typeof n=="function"?n(i):n;return l&&r(l)?l.current!=null?Wh({element:l.current,padding:a}).fn(i):{}:l?Wh({element:l,padding:a}).fn(i):{}}}},a2=(n,r)=>({...XS(n),options:[n,r]}),u2=(n,r)=>({...ZS(n),options:[n,r]}),c2=(n,r)=>({...n2(n),options:[n,r]}),d2=(n,r)=>({...JS(n),options:[n,r]}),f2=(n,r)=>({...e2(n),options:[n,r]}),p2=(n,r)=>({...t2(n),options:[n,r]}),h2=(n,r)=>({...l2(n),options:[n,r]});var m2="Arrow",yv=g.forwardRef((n,r)=>{const{children:i,width:l=10,height:a=5,...c}=n;return ee.jsx(Xe.svg,{...c,ref:r,width:l,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:ee.jsx("polygon",{points:"0,0 30,0 15,10"})})});yv.displayName=m2;var v2=yv;function y2(n){const[r,i]=g.useState(void 0);return It(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const l=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const c=a[0];let f,p;if("borderBoxSize"in c){const h=c.borderBoxSize,v=Array.isArray(h)?h[0]:h;f=v.inlineSize,p=v.blockSize}else f=n.offsetWidth,p=n.offsetHeight;i({width:f,height:p})});return l.observe(n,{box:"border-box"}),()=>l.unobserve(n)}else i(void 0)},[n]),r}var hd="Popper",[gv,wv]=sd(hd),[g2,xv]=gv(hd),Sv=n=>{const{__scopePopper:r,children:i}=n,[l,a]=g.useState(null);return ee.jsx(g2,{scope:r,anchor:l,onAnchorChange:a,children:i})};Sv.displayName=hd;var Cv="PopperAnchor",Ev=g.forwardRef((n,r)=>{const{__scopePopper:i,virtualRef:l,...a}=n,c=xv(Cv,i),f=g.useRef(null),p=ct(r,f),h=g.useRef(null);return g.useEffect(()=>{const v=h.current;h.current=(l==null?void 0:l.current)||f.current,v!==h.current&&c.onAnchorChange(h.current)}),l?null:ee.jsx(Xe.div,{...a,ref:p})});Ev.displayName=Cv;var md="PopperContent",[w2,x2]=gv(md),kv=g.forwardRef((n,r)=>{var K,fe,Ce,be,Te,Oe;const{__scopePopper:i,side:l="bottom",sideOffset:a=0,align:c="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:h=!0,collisionBoundary:v=[],collisionPadding:w=0,sticky:x="partial",hideWhenDetached:E=!1,updatePositionStrategy:y="optimized",onPlaced:O,...S}=n,C=xv(md,i),[P,M]=g.useState(null),R=ct(r,Ye=>M(Ye)),[L,z]=g.useState(null),U=y2(L),H=(U==null?void 0:U.width)??0,Y=(U==null?void 0:U.height)??0,Z=l+(c!=="center"?"-"+c:""),te=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},he=Array.isArray(v)?v:[v],X=he.length>0,ye={padding:te,boundary:he.filter(C2),altBoundary:X},{refs:ce,floatingStyles:xe,placement:ae,isPositioned:ie,middlewareData:j}=s2({strategy:"fixed",placement:Z,whileElementsMounted:(...Ye)=>GS(...Ye,{animationFrame:y==="always"}),elements:{reference:C.anchor},middleware:[a2({mainAxis:a+Y,alignmentAxis:f}),h&&u2({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?c2():void 0,...ye}),h&&d2({...ye}),f2({...ye,apply:({elements:Ye,rects:dt,availableWidth:yn,availableHeight:Xt})=>{const{width:Zt,height:or}=dt.reference,gn=Ye.floating.style;gn.setProperty("--radix-popper-available-width",`${yn}px`),gn.setProperty("--radix-popper-available-height",`${Xt}px`),gn.setProperty("--radix-popper-anchor-width",`${Zt}px`),gn.setProperty("--radix-popper-anchor-height",`${or}px`)}}),L&&h2({element:L,padding:p}),E2({arrowWidth:H,arrowHeight:Y}),E&&p2({strategy:"referenceHidden",...ye})]}),[B,V]=Pv(ae),_=go(O);It(()=>{ie&&(_==null||_())},[ie,_]);const F=(K=j.arrow)==null?void 0:K.x,ne=(fe=j.arrow)==null?void 0:fe.y,re=((Ce=j.arrow)==null?void 0:Ce.centerOffset)!==0,[ve,Se]=g.useState();return It(()=>{P&&Se(window.getComputedStyle(P).zIndex)},[P]),ee.jsx("div",{ref:ce.setFloating,"data-radix-popper-content-wrapper":"",style:{...xe,transform:ie?xe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[(be=j.transformOrigin)==null?void 0:be.x,(Te=j.transformOrigin)==null?void 0:Te.y].join(" "),...((Oe=j.hide)==null?void 0:Oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:ee.jsx(w2,{scope:i,placedSide:B,onArrowChange:z,arrowX:F,arrowY:ne,shouldHideArrow:re,children:ee.jsx(Xe.div,{"data-side":B,"data-align":V,...S,ref:R,style:{...S.style,animation:ie?void 0:"none"}})})})});kv.displayName=md;var bv="PopperArrow",S2={top:"bottom",right:"left",bottom:"top",left:"right"},Rv=g.forwardRef(function(r,i){const{__scopePopper:l,...a}=r,c=x2(bv,l),f=S2[c.placedSide];return ee.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:ee.jsx(v2,{...a,ref:i,style:{...a.style,display:"block"}})})});Rv.displayName=bv;function C2(n){return n!==null}var E2=n=>({name:"transformOrigin",options:n,fn(r){var C,P,M;const{placement:i,rects:l,middlewareData:a}=r,f=((C=a.arrow)==null?void 0:C.centerOffset)!==0,p=f?0:n.arrowWidth,h=f?0:n.arrowHeight,[v,w]=Pv(i),x={start:"0%",center:"50%",end:"100%"}[w],E=(((P=a.arrow)==null?void 0:P.x)??0)+p/2,y=(((M=a.arrow)==null?void 0:M.y)??0)+h/2;let O="",S="";return v==="bottom"?(O=f?x:`${E}px`,S=`${-h}px`):v==="top"?(O=f?x:`${E}px`,S=`${l.floating.height+h}px`):v==="right"?(O=`${-h}px`,S=f?x:`${y}px`):v==="left"&&(O=`${l.floating.width+h}px`,S=f?x:`${y}px`),{data:{x:O,y:S}}}});function Pv(n){const[r,i="center"]=n.split("-");return[r,i]}var k2=Sv,b2=Ev,R2=kv,P2=Rv,T2="Portal",Tv=g.forwardRef((n,r)=>{var p;const{container:i,...l}=n,[a,c]=g.useState(!1);It(()=>c(!0),[]);const f=i||a&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return f?Lm.createPortal(ee.jsx(Xe.div,{...l,ref:r}),f):null});Tv.displayName=T2;var M2=fm[" useInsertionEffect ".trim().toString()]||It;function Qh({prop:n,defaultProp:r,onChange:i=()=>{},caller:l}){const[a,c,f]=O2({defaultProp:r,onChange:i}),p=n!==void 0,h=p?n:a;{const w=g.useRef(n!==void 0);g.useEffect(()=>{const x=w.current;x!==p&&console.warn(`${l} is changing from ${x?"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.`),w.current=p},[p,l])}const v=g.useCallback(w=>{var x;if(p){const E=_2(w)?w(n):w;E!==n&&((x=f.current)==null||x.call(f,E))}else c(w)},[p,n,c,f]);return[h,v]}function O2({defaultProp:n,onChange:r}){const[i,l]=g.useState(n),a=g.useRef(i),c=g.useRef(r);return M2(()=>{c.current=r},[r]),g.useEffect(()=>{var f;a.current!==i&&((f=c.current)==null||f.call(c,i),a.current=i)},[i,a]),[i,l,c]}function _2(n){return typeof n=="function"}function N2(n){const r=g.useRef({value:n,previous:n});return g.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}var Mv=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),L2="VisuallyHidden",Ov=g.forwardRef((n,r)=>ee.jsx(Xe.span,{...n,ref:r,style:{...Mv,...n.style}}));Ov.displayName=L2;var dk=Ov,I2=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},qo=new WeakMap,Ul=new WeakMap,Hl={},fc=0,_v=function(n){return n&&(n.host||_v(n.parentNode))},A2=function(n,r){return r.map(function(i){if(n.contains(i))return i;var l=_v(i);return l&&n.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},D2=function(n,r,i,l){var a=A2(r,Array.isArray(n)?n:[n]);Hl[i]||(Hl[i]=new WeakMap);var c=Hl[i],f=[],p=new Set,h=new Set(a),v=function(x){!x||p.has(x)||(p.add(x),v(x.parentNode))};a.forEach(v);var w=function(x){!x||h.has(x)||Array.prototype.forEach.call(x.children,function(E){if(p.has(E))w(E);else try{var y=E.getAttribute(l),O=y!==null&&y!=="false",S=(qo.get(E)||0)+1,C=(c.get(E)||0)+1;qo.set(E,S),c.set(E,C),f.push(E),S===1&&O&&Ul.set(E,!0),C===1&&E.setAttribute(i,"true"),O||E.setAttribute(l,"true")}catch(P){console.error("aria-hidden: cannot operate on ",E,P)}})};return w(r),p.clear(),fc++,function(){f.forEach(function(x){var E=qo.get(x)-1,y=c.get(x)-1;qo.set(x,E),c.set(x,y),E||(Ul.has(x)||x.removeAttribute(l),Ul.delete(x)),y||x.removeAttribute(i)}),fc--,fc||(qo=new WeakMap,qo=new WeakMap,Ul=new WeakMap,Hl={})}},F2=function(n,r,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(n)?n:[n]),a=I2(n);return a?(l.push.apply(l,Array.from(a.querySelectorAll("[aria-live], script"))),D2(l,a,i,"aria-hidden")):function(){return null}},zc=function(n,r){return zc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(i[a]=l[a])},zc(n,r)};function fk(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");zc(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var Ln=function(){return Ln=Object.assign||function(r){for(var i,l=1,a=arguments.length;l<a;l++){i=arguments[l];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},Ln.apply(this,arguments)};function Nv(n,r){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&r.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,l=Object.getOwnPropertySymbols(n);a<l.length;a++)r.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(n,l[a])&&(i[l[a]]=n[l[a]]);return i}function pk(n){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&n[r],l=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&l>=n.length&&(n=void 0),{value:n&&n[l++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function hk(n,r){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var l=i.call(n),a,c=[],f;try{for(;(r===void 0||r-- >0)&&!(a=l.next()).done;)c.push(a.value)}catch(p){f={error:p}}finally{try{a&&!a.done&&(i=l.return)&&i.call(l)}finally{if(f)throw f.error}}return c}function z2(n,r,i){if(i||arguments.length===2)for(var l=0,a=r.length,c;l<a;l++)(c||!(l in r))&&(c||(c=Array.prototype.slice.call(r,0,l)),c[l]=r[l]);return n.concat(c||Array.prototype.slice.call(r))}var ql="right-scroll-bar-position",Gl="width-before-scroll-bar",j2="with-scroll-bars-hidden",B2="--removed-body-scroll-bar-size";function pc(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function U2(n,r){var i=g.useState(function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(l){var a=i.value;a!==l&&(i.value=l,i.callback(l,a))}}}})[0];return i.callback=r,i.facade}var H2=typeof window<"u"?g.useLayoutEffect:g.useEffect,Kh=new WeakMap;function $2(n,r){var i=U2(null,function(l){return n.forEach(function(a){return pc(a,l)})});return H2(function(){var l=Kh.get(i);if(l){var a=new Set(l),c=new Set(n),f=i.current;a.forEach(function(p){c.has(p)||pc(p,null)}),c.forEach(function(p){a.has(p)||pc(p,f)})}Kh.set(i,n)},[n]),i}function W2(n){return n}function V2(n,r){r===void 0&&(r=W2);var i=[],l=!1,a={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]:n},useMedium:function(c){var f=r(c,l);return i.push(f),function(){i=i.filter(function(p){return p!==f})}},assignSyncMedium:function(c){for(l=!0;i.length;){var f=i;i=[],f.forEach(c)}i={push:function(p){return c(p)},filter:function(){return i}}},assignMedium:function(c){l=!0;var f=[];if(i.length){var p=i;i=[],p.forEach(c),f=i}var h=function(){var w=f;f=[],w.forEach(c)},v=function(){return Promise.resolve().then(h)};v(),i={push:function(w){f.push(w),v()},filter:function(w){return f=f.filter(w),i}}}};return a}function Q2(n){n===void 0&&(n={});var r=V2(null);return r.options=Ln({async:!0,ssr:!1},n),r}var Lv=function(n){var r=n.sideCar,i=Nv(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=r.read();if(!l)throw new Error("Sidecar medium not found");return g.createElement(l,Ln({},i))};Lv.isSideCarExport=!0;function K2(n,r){return n.useMedium(r),Lv}var Iv=Q2(),hc=function(){},fa=g.forwardRef(function(n,r){var i=g.useRef(null),l=g.useState({onScrollCapture:hc,onWheelCapture:hc,onTouchMoveCapture:hc}),a=l[0],c=l[1],f=n.forwardProps,p=n.children,h=n.className,v=n.removeScrollBar,w=n.enabled,x=n.shards,E=n.sideCar,y=n.noRelative,O=n.noIsolation,S=n.inert,C=n.allowPinchZoom,P=n.as,M=P===void 0?"div":P,R=n.gapMode,L=Nv(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=E,U=$2([i,r]),H=Ln(Ln({},L),a);return g.createElement(g.Fragment,null,w&&g.createElement(z,{sideCar:Iv,removeScrollBar:v,shards:x,noRelative:y,noIsolation:O,inert:S,setCallbacks:c,allowPinchZoom:!!C,lockRef:i,gapMode:R}),f?g.cloneElement(g.Children.only(p),Ln(Ln({},H),{ref:U})):g.createElement(M,Ln({},H,{className:h,ref:U}),p))});fa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fa.classNames={fullWidth:Gl,zeroRight:ql};var Y2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function q2(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=Y2();return r&&n.setAttribute("nonce",r),n}function G2(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function X2(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var Z2=function(){var n=0,r=null;return{add:function(i){n==0&&(r=q2())&&(G2(r,i),X2(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},J2=function(){var n=Z2();return function(r,i){g.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&i])}},Av=function(){var n=J2(),r=function(i){var l=i.styles,a=i.dynamic;return n(l,a),null};return r},eC={left:0,top:0,right:0,gap:0},mc=function(n){return parseInt(n||"",10)||0},tC=function(n){var r=window.getComputedStyle(document.body),i=r[n==="padding"?"paddingLeft":"marginLeft"],l=r[n==="padding"?"paddingTop":"marginTop"],a=r[n==="padding"?"paddingRight":"marginRight"];return[mc(i),mc(l),mc(a)]},nC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return eC;var r=tC(n),i=document.documentElement.clientWidth,l=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,l-i+r[2]-r[0])}},rC=Av(),ei="data-scroll-locked",oC=function(n,r,i,l){var a=n.left,c=n.top,f=n.right,p=n.gap;return i===void 0&&(i="margin"),`
366
+ */const lk=pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ox=n=>{switch(n){case"success":return lx;case"info":return ux;case"warning":return ax;case"error":return cx;default:return null}},ix=Array(12).fill(0),sx=({visible:n,className:r})=>G.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},G.createElement("div",{className:"sonner-spinner"},ix.map((i,l)=>G.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),lx=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),ax=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},G.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"})),ux=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),cx=G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},G.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"})),dx=G.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"},G.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),G.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),fx=()=>{let[n,r]=G.useState(document.hidden);return G.useEffect(()=>{let i=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),n},Lc=1,px=class{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{let r=this.subscribers.indexOf(n);this.subscribers.splice(r,1)}),this.publish=n=>{this.subscribers.forEach(r=>r(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var r;let{message:i,...l}=n,a=typeof(n==null?void 0:n.id)=="number"||((r=n.id)==null?void 0:r.length)>0?n.id:Lc++,c=this.toasts.find(p=>p.id===a),f=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(p=>p.id===a?(this.publish({...p,...n,id:a,title:i}),{...p,...n,id:a,dismissible:f,title:i}):p):this.addToast({title:i,...l,dismissible:f,id:a}),a},this.dismiss=n=>(this.dismissedToasts.add(n),n||this.toasts.forEach(r=>{this.subscribers.forEach(i=>i({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:n,dismiss:!0})),n),this.message=(n,r)=>this.create({...r,message:n}),this.error=(n,r)=>this.create({...r,message:n,type:"error"}),this.success=(n,r)=>this.create({...r,type:"success",message:n}),this.info=(n,r)=>this.create({...r,type:"info",message:n}),this.warning=(n,r)=>this.create({...r,type:"warning",message:n}),this.loading=(n,r)=>this.create({...r,type:"loading",message:n}),this.promise=(n,r)=>{if(!r)return;let i;r.loading!==void 0&&(i=this.create({...r,promise:n,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let l=n instanceof Promise?n:n(),a=i!==void 0,c,f=l.then(async h=>{if(c=["resolve",h],G.isValidElement(h))a=!1,this.create({id:i,type:"default",message:h});else if(mx(h)&&!h.ok){a=!1;let y=typeof r.error=="function"?await r.error(`HTTP error! status: ${h.status}`):r.error,w=typeof r.description=="function"?await r.description(`HTTP error! status: ${h.status}`):r.description;this.create({id:i,type:"error",message:y,description:w})}else if(r.success!==void 0){a=!1;let y=typeof r.success=="function"?await r.success(h):r.success,w=typeof r.description=="function"?await r.description(h):r.description;this.create({id:i,type:"success",message:y,description:w})}}).catch(async h=>{if(c=["reject",h],r.error!==void 0){a=!1;let y=typeof r.error=="function"?await r.error(h):r.error,w=typeof r.description=="function"?await r.description(h):r.description;this.create({id:i,type:"error",message:y,description:w})}}).finally(()=>{var h;a&&(this.dismiss(i),i=void 0),(h=r.finally)==null||h.call(r)}),p=()=>new Promise((h,y)=>f.then(()=>c[0]==="reject"?y(c[1]):h(c[1])).catch(y));return typeof i!="string"&&typeof i!="number"?{unwrap:p}:Object.assign(i,{unwrap:p})},this.custom=(n,r)=>{let i=(r==null?void 0:r.id)||Lc++;return this.create({jsx:n(i),id:i,...r}),i},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Lt=new px,hx=(n,r)=>{let i=(r==null?void 0:r.id)||Lc++;return Lt.addToast({title:n,...r,id:i}),i},mx=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",yx=hx,vx=()=>Lt.toasts,gx=()=>Lt.getActiveToasts(),ak=Object.assign(yx,{success:Lt.success,info:Lt.info,warning:Lt.warning,error:Lt.error,custom:Lt.custom,message:Lt.message,promise:Lt.promise,dismiss:Lt.dismiss,loading:Lt.loading},{getHistory:vx,getToasts:gx});function wx(n,{insertAt:r}={}){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",r==="top"&&i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),l.styleSheet?l.styleSheet.cssText=n:l.appendChild(document.createTextNode(n))}wx(`: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%)}
367
+ `);function jl(n){return n.label!==void 0}var xx=3,Sx="32px",Cx="16px",kh=4e3,Ex=356,kx=14,bx=20,Rx=200;function un(...n){return n.filter(Boolean).join(" ")}function Px(n){let[r,i]=n.split("-"),l=[];return r&&l.push(r),i&&l.push(i),l}var Mx=n=>{var r,i,l,a,c,f,p,h,y,w,x;let{invert:E,toast:v,unstyled:O,interacting:S,setHeights:C,visibleToasts:P,heights:T,index:R,toasts:L,expanded:z,removeToast:U,defaultRichColors:H,closeButton:q,style:Z,cancelButtonStyle:te,actionButtonStyle:he,className:X="",descriptionClassName:ve="",duration:ce,position:xe,gap:ae,loadingIcon:ie,expandByDefault:j,classNames:B,icons:V,closeButtonAriaLabel:_="Close toast",pauseWhenPageIsHidden:F}=n,[ne,re]=G.useState(null),[ye,Se]=G.useState(null),[K,fe]=G.useState(!1),[Ce,be]=G.useState(!1),[Me,Oe]=G.useState(!1),[qe,dt]=G.useState(!1),[vn,Xt]=G.useState(!1),[Zt,or]=G.useState(0),[gn,ir]=G.useState(0),Ht=G.useRef(v.duration||ce||kh),Co=G.useRef(null),wn=G.useRef(null),Cs=R===0,Es=R+1<=P,vt=v.type,xn=v.dismissible!==!1,Eo=v.className||"",ks=v.descriptionClassName||"",Sn=G.useMemo(()=>T.findIndex(ke=>ke.toastId===v.id)||0,[T,v.id]),Vr=G.useMemo(()=>{var ke;return(ke=v.closeButton)!=null?ke:q},[v.closeButton,q]),bs=G.useMemo(()=>v.duration||ce||kh,[v.duration,ce]),ko=G.useRef(0),zn=G.useRef(0),Rs=G.useRef(0),Cn=G.useRef(null),[Ci,Ei]=xe.split("-"),bo=G.useMemo(()=>T.reduce((ke,Ae,Fe)=>Fe>=Sn?ke:ke+Ae.height,0),[T,Sn]),Ro=fx(),sr=v.invert||E,En=vt==="loading";zn.current=G.useMemo(()=>Sn*ae+bo,[Sn,bo]),G.useEffect(()=>{Ht.current=bs},[bs]),G.useEffect(()=>{fe(!0)},[]),G.useEffect(()=>{let ke=wn.current;if(ke){let Ae=ke.getBoundingClientRect().height;return ir(Ae),C(Fe=>[{toastId:v.id,height:Ae,position:v.position},...Fe]),()=>C(Fe=>Fe.filter(gt=>gt.toastId!==v.id))}},[C,v.id]),G.useLayoutEffect(()=>{if(!K)return;let ke=wn.current,Ae=ke.style.height;ke.style.height="auto";let Fe=ke.getBoundingClientRect().height;ke.style.height=Ae,ir(Fe),C(gt=>gt.find(Et=>Et.toastId===v.id)?gt.map(Et=>Et.toastId===v.id?{...Et,height:Fe}:Et):[{toastId:v.id,height:Fe,position:v.position},...gt])},[K,v.title,v.description,C,v.id]);let Jt=G.useCallback(()=>{be(!0),or(zn.current),C(ke=>ke.filter(Ae=>Ae.toastId!==v.id)),setTimeout(()=>{U(v)},Rx)},[v,U,C,zn]);G.useEffect(()=>{if(v.promise&&vt==="loading"||v.duration===1/0||v.type==="loading")return;let ke;return z||S||F&&Ro?(()=>{if(Rs.current<ko.current){let Ae=new Date().getTime()-ko.current;Ht.current=Ht.current-Ae}Rs.current=new Date().getTime()})():Ht.current!==1/0&&(ko.current=new Date().getTime(),ke=setTimeout(()=>{var Ae;(Ae=v.onAutoClose)==null||Ae.call(v,v),Jt()},Ht.current)),()=>clearTimeout(ke)},[z,S,v,vt,F,Ro,Jt]),G.useEffect(()=>{v.delete&&Jt()},[Jt,v.delete]);function Ps(){var ke,Ae,Fe;return V!=null&&V.loading?G.createElement("div",{className:un(B==null?void 0:B.loader,(ke=v==null?void 0:v.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":vt==="loading"},V.loading):ie?G.createElement("div",{className:un(B==null?void 0:B.loader,(Ae=v==null?void 0:v.classNames)==null?void 0:Ae.loader,"sonner-loader"),"data-visible":vt==="loading"},ie):G.createElement(sx,{className:un(B==null?void 0:B.loader,(Fe=v==null?void 0:v.classNames)==null?void 0:Fe.loader),visible:vt==="loading"})}return G.createElement("li",{tabIndex:0,ref:wn,className:un(X,Eo,B==null?void 0:B.toast,(r=v==null?void 0:v.classNames)==null?void 0:r.toast,B==null?void 0:B.default,B==null?void 0:B[vt],(i=v==null?void 0:v.classNames)==null?void 0:i[vt]),"data-sonner-toast":"","data-rich-colors":(l=v.richColors)!=null?l:H,"data-styled":!(v.jsx||v.unstyled||O),"data-mounted":K,"data-promise":!!v.promise,"data-swiped":vn,"data-removed":Ce,"data-visible":Es,"data-y-position":Ci,"data-x-position":Ei,"data-index":R,"data-front":Cs,"data-swiping":Me,"data-dismissible":xn,"data-type":vt,"data-invert":sr,"data-swipe-out":qe,"data-swipe-direction":ye,"data-expanded":!!(z||j&&K),style:{"--index":R,"--toasts-before":R,"--z-index":L.length-R,"--offset":`${Ce?Zt:zn.current}px`,"--initial-height":j?"auto":`${gn}px`,...Z,...v.style},onDragEnd:()=>{Oe(!1),re(null),Cn.current=null},onPointerDown:ke=>{En||!xn||(Co.current=new Date,or(zn.current),ke.target.setPointerCapture(ke.pointerId),ke.target.tagName!=="BUTTON"&&(Oe(!0),Cn.current={x:ke.clientX,y:ke.clientY}))},onPointerUp:()=>{var ke,Ae,Fe,gt;if(qe||!xn)return;Cn.current=null;let Et=Number(((ke=wn.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),kt=Number(((Ae=wn.current)==null?void 0:Ae.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),en=new Date().getTime()-((Fe=Co.current)==null?void 0:Fe.getTime()),lt=ne==="x"?Et:kt,kn=Math.abs(lt)/en;if(Math.abs(lt)>=bx||kn>.11){or(zn.current),(gt=v.onDismiss)==null||gt.call(v,v),Se(ne==="x"?Et>0?"right":"left":kt>0?"down":"up"),Jt(),dt(!0),Xt(!1);return}Oe(!1),re(null)},onPointerMove:ke=>{var Ae,Fe,gt,Et;if(!Cn.current||!xn||((Ae=window.getSelection())==null?void 0:Ae.toString().length)>0)return;let kt=ke.clientY-Cn.current.y,en=ke.clientX-Cn.current.x,lt=(Fe=n.swipeDirections)!=null?Fe:Px(xe);!ne&&(Math.abs(en)>1||Math.abs(kt)>1)&&re(Math.abs(en)>Math.abs(kt)?"x":"y");let kn={x:0,y:0};ne==="y"?(lt.includes("top")||lt.includes("bottom"))&&(lt.includes("top")&&kt<0||lt.includes("bottom")&&kt>0)&&(kn.y=kt):ne==="x"&&(lt.includes("left")||lt.includes("right"))&&(lt.includes("left")&&en<0||lt.includes("right")&&en>0)&&(kn.x=en),(Math.abs(kn.x)>0||Math.abs(kn.y)>0)&&Xt(!0),(gt=wn.current)==null||gt.style.setProperty("--swipe-amount-x",`${kn.x}px`),(Et=wn.current)==null||Et.style.setProperty("--swipe-amount-y",`${kn.y}px`)}},Vr&&!v.jsx?G.createElement("button",{"aria-label":_,"data-disabled":En,"data-close-button":!0,onClick:En||!xn?()=>{}:()=>{var ke;Jt(),(ke=v.onDismiss)==null||ke.call(v,v)},className:un(B==null?void 0:B.closeButton,(a=v==null?void 0:v.classNames)==null?void 0:a.closeButton)},(c=V==null?void 0:V.close)!=null?c:dx):null,v.jsx||g.isValidElement(v.title)?v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title:G.createElement(G.Fragment,null,vt||v.icon||v.promise?G.createElement("div",{"data-icon":"",className:un(B==null?void 0:B.icon,(f=v==null?void 0:v.classNames)==null?void 0:f.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||Ps():null,v.type!=="loading"?v.icon||(V==null?void 0:V[vt])||ox(vt):null):null,G.createElement("div",{"data-content":"",className:un(B==null?void 0:B.content,(p=v==null?void 0:v.classNames)==null?void 0:p.content)},G.createElement("div",{"data-title":"",className:un(B==null?void 0:B.title,(h=v==null?void 0:v.classNames)==null?void 0:h.title)},typeof v.title=="function"?v.title():v.title),v.description?G.createElement("div",{"data-description":"",className:un(ve,ks,B==null?void 0:B.description,(y=v==null?void 0:v.classNames)==null?void 0:y.description)},typeof v.description=="function"?v.description():v.description):null),g.isValidElement(v.cancel)?v.cancel:v.cancel&&jl(v.cancel)?G.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||te,onClick:ke=>{var Ae,Fe;jl(v.cancel)&&xn&&((Fe=(Ae=v.cancel).onClick)==null||Fe.call(Ae,ke),Jt())},className:un(B==null?void 0:B.cancelButton,(w=v==null?void 0:v.classNames)==null?void 0:w.cancelButton)},v.cancel.label):null,g.isValidElement(v.action)?v.action:v.action&&jl(v.action)?G.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||he,onClick:ke=>{var Ae,Fe;jl(v.action)&&((Fe=(Ae=v.action).onClick)==null||Fe.call(Ae,ke),!ke.defaultPrevented&&Jt())},className:un(B==null?void 0:B.actionButton,(x=v==null?void 0:v.classNames)==null?void 0:x.actionButton)},v.action.label):null))};function bh(){if(typeof window>"u"||typeof document>"u")return"ltr";let n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function Tx(n,r){let i={};return[n,r].forEach((l,a)=>{let c=a===1,f=c?"--mobile-offset":"--offset",p=c?Cx:Sx;function h(y){["top","right","bottom","left"].forEach(w=>{i[`${f}-${w}`]=typeof y=="number"?`${y}px`:y})}typeof l=="number"||typeof l=="string"?h(l):typeof l=="object"?["top","right","bottom","left"].forEach(y=>{l[y]===void 0?i[`${f}-${y}`]=p:i[`${f}-${y}`]=typeof l[y]=="number"?`${l[y]}px`:l[y]}):h(p)}),i}var uk=g.forwardRef(function(n,r){let{invert:i,position:l="bottom-right",hotkey:a=["altKey","KeyT"],expand:c,closeButton:f,className:p,offset:h,mobileOffset:y,theme:w="light",richColors:x,duration:E,style:v,visibleToasts:O=xx,toastOptions:S,dir:C=bh(),gap:P=kx,loadingIcon:T,icons:R,containerAriaLabel:L="Notifications",pauseWhenPageIsHidden:z}=n,[U,H]=G.useState([]),q=G.useMemo(()=>Array.from(new Set([l].concat(U.filter(F=>F.position).map(F=>F.position)))),[U,l]),[Z,te]=G.useState([]),[he,X]=G.useState(!1),[ve,ce]=G.useState(!1),[xe,ae]=G.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ie=G.useRef(null),j=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=G.useRef(null),V=G.useRef(!1),_=G.useCallback(F=>{H(ne=>{var re;return(re=ne.find(ye=>ye.id===F.id))!=null&&re.delete||Lt.dismiss(F.id),ne.filter(({id:ye})=>ye!==F.id)})},[]);return G.useEffect(()=>Lt.subscribe(F=>{if(F.dismiss){H(ne=>ne.map(re=>re.id===F.id?{...re,delete:!0}:re));return}setTimeout(()=>{Lm.flushSync(()=>{H(ne=>{let re=ne.findIndex(ye=>ye.id===F.id);return re!==-1?[...ne.slice(0,re),{...ne[re],...F},...ne.slice(re+1)]:[F,...ne]})})})}),[]),G.useEffect(()=>{if(w!=="system"){ae(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ae("dark"):ae("light")),typeof window>"u")return;let F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:ne})=>{ae(ne?"dark":"light")})}catch{F.addListener(({matches:re})=>{try{ae(re?"dark":"light")}catch(ye){console.error(ye)}})}},[w]),G.useEffect(()=>{U.length<=1&&X(!1)},[U]),G.useEffect(()=>{let F=ne=>{var re,ye;a.every(Se=>ne[Se]||ne.code===Se)&&(X(!0),(re=ie.current)==null||re.focus()),ne.code==="Escape"&&(document.activeElement===ie.current||(ye=ie.current)!=null&&ye.contains(document.activeElement))&&X(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[a]),G.useEffect(()=>{if(ie.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,V.current=!1)}},[ie.current]),G.createElement("section",{ref:r,"aria-label":`${L} ${j}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},q.map((F,ne)=>{var re;let[ye,Se]=F.split("-");return U.length?G.createElement("ol",{key:F,dir:C==="auto"?bh():C,tabIndex:-1,ref:ie,className:p,"data-sonner-toaster":!0,"data-theme":xe,"data-y-position":ye,"data-lifted":he&&U.length>1&&!c,"data-x-position":Se,style:{"--front-toast-height":`${((re=Z[0])==null?void 0:re.height)||0}px`,"--width":`${Ex}px`,"--gap":`${P}px`,...v,...Tx(h,y)},onBlur:K=>{V.current&&!K.currentTarget.contains(K.relatedTarget)&&(V.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||V.current||(V.current=!0,B.current=K.relatedTarget)},onMouseEnter:()=>X(!0),onMouseMove:()=>X(!0),onMouseLeave:()=>{ve||X(!1)},onDragEnd:()=>X(!1),onPointerDown:K=>{K.target instanceof HTMLElement&&K.target.dataset.dismissible==="false"||ce(!0)},onPointerUp:()=>ce(!1)},U.filter(K=>!K.position&&ne===0||K.position===F).map((K,fe)=>{var Ce,be;return G.createElement(Mx,{key:K.id,icons:R,index:fe,toast:K,defaultRichColors:x,duration:(Ce=S==null?void 0:S.duration)!=null?Ce:E,className:S==null?void 0:S.className,descriptionClassName:S==null?void 0:S.descriptionClassName,invert:i,visibleToasts:O,closeButton:(be=S==null?void 0:S.closeButton)!=null?be:f,interacting:ve,position:F,style:S==null?void 0:S.style,unstyled:S==null?void 0:S.unstyled,classNames:S==null?void 0:S.classNames,cancelButtonStyle:S==null?void 0:S.cancelButtonStyle,actionButtonStyle:S==null?void 0:S.actionButtonStyle,removeToast:_,toasts:U.filter(Me=>Me.position==K.position),heights:Z.filter(Me=>Me.position==K.position),setHeights:te,expandByDefault:c,gap:P,loadingIcon:T,expanded:he,pauseWhenPageIsHidden:z,swipeDirections:n.swipeDirections})})):null}))});function Rh(n,[r,i]){return Math.min(i,Math.max(r,n))}function Je(n,r,{checkForDefaultPrevented:i=!0}={}){return function(a){if(n==null||n(a),i===!1||!a.defaultPrevented)return r==null?void 0:r(a)}}function ck(n,r){const i=g.createContext(r),l=c=>{const{children:f,...p}=c,h=g.useMemo(()=>p,Object.values(p));return ee.jsx(i.Provider,{value:h,children:f})};l.displayName=n+"Provider";function a(c){const f=g.useContext(i);if(f)return f;if(r!==void 0)return r;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[l,a]}function sd(n,r=[]){let i=[];function l(c,f){const p=g.createContext(f),h=i.length;i=[...i,f];const y=x=>{var P;const{scope:E,children:v,...O}=x,S=((P=E==null?void 0:E[n])==null?void 0:P[h])||p,C=g.useMemo(()=>O,Object.values(O));return ee.jsx(S.Provider,{value:C,children:v})};y.displayName=c+"Provider";function w(x,E){var S;const v=((S=E==null?void 0:E[n])==null?void 0:S[h])||p,O=g.useContext(v);if(O)return O;if(f!==void 0)return f;throw new Error(`\`${x}\` must be used within \`${c}\``)}return[y,w]}const a=()=>{const c=i.map(f=>g.createContext(f));return function(p){const h=(p==null?void 0:p[n])||c;return g.useMemo(()=>({[`__scope${n}`]:{...p,[n]:h}}),[p,h])}};return a.scopeName=n,[l,Ox(a,...r)]}function Ox(...n){const r=n[0];if(n.length===1)return r;const i=()=>{const l=n.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(c){const f=l.reduce((p,{useScope:h,scopeName:y})=>{const x=h(c)[`__scope${y}`];return{...p,...x}},{});return g.useMemo(()=>({[`__scope${r.scopeName}`]:f}),[f])}};return i.scopeName=r.scopeName,i}function Ph(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function Jm(...n){return r=>{let i=!1;const l=n.map(a=>{const c=Ph(a,r);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let a=0;a<l.length;a++){const c=l[a];typeof c=="function"?c():Ph(n[a],null)}}}}function ct(...n){return g.useCallback(Jm(...n),n)}function ea(n){const r=_x(n),i=g.forwardRef((l,a)=>{const{children:c,...f}=l,p=g.Children.toArray(c),h=p.find(Nx);if(h){const y=h.props.children,w=p.map(x=>x===h?g.Children.count(y)>1?g.Children.only(null):g.isValidElement(y)?y.props.children:null:x);return ee.jsx(r,{...f,ref:a,children:g.isValidElement(y)?g.cloneElement(y,void 0,w):null})}return ee.jsx(r,{...f,ref:a,children:c})});return i.displayName=`${n}.Slot`,i}function _x(n){const r=g.forwardRef((i,l)=>{const{children:a,...c}=i;if(g.isValidElement(a)){const f=Ax(a),p=Lx(c,a.props);return a.type!==g.Fragment&&(p.ref=l?Jm(l,f):f),g.cloneElement(a,p)}return g.Children.count(a)>1?g.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var ey=Symbol("radix.slottable");function dk(n){const r=({children:i})=>ee.jsx(ee.Fragment,{children:i});return r.displayName=`${n}.Slottable`,r.__radixId=ey,r}function Nx(n){return g.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===ey}function Lx(n,r){const i={...r};for(const l in r){const a=n[l],c=r[l];/^on[A-Z]/.test(l)?a&&c?i[l]=(...p)=>{const h=c(...p);return a(...p),h}:a&&(i[l]=a):l==="style"?i[l]={...a,...c}:l==="className"&&(i[l]=[a,c].filter(Boolean).join(" "))}return{...n,...i}}function Ax(n){var l,a;let r=(l=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:l.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?n.ref:(r=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}function Ix(n){const r=n+"CollectionProvider",[i,l]=sd(r),[a,c]=i(r,{collectionRef:{current:null},itemMap:new Map}),f=S=>{const{scope:C,children:P}=S,T=G.useRef(null),R=G.useRef(new Map).current;return ee.jsx(a,{scope:C,itemMap:R,collectionRef:T,children:P})};f.displayName=r;const p=n+"CollectionSlot",h=ea(p),y=G.forwardRef((S,C)=>{const{scope:P,children:T}=S,R=c(p,P),L=ct(C,R.collectionRef);return ee.jsx(h,{ref:L,children:T})});y.displayName=p;const w=n+"CollectionItemSlot",x="data-radix-collection-item",E=ea(w),v=G.forwardRef((S,C)=>{const{scope:P,children:T,...R}=S,L=G.useRef(null),z=ct(C,L),U=c(w,P);return G.useEffect(()=>(U.itemMap.set(L,{ref:L,...R}),()=>void U.itemMap.delete(L))),ee.jsx(E,{[x]:"",ref:z,children:T})});v.displayName=w;function O(S){const C=c(n+"CollectionConsumer",S);return G.useCallback(()=>{const T=C.collectionRef.current;if(!T)return[];const R=Array.from(T.querySelectorAll(`[${x}]`));return Array.from(C.itemMap.values()).sort((U,H)=>R.indexOf(U.ref.current)-R.indexOf(H.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:f,Slot:y,ItemSlot:v},O,l]}var Dx=g.createContext(void 0);function Fx(n){const r=g.useContext(Dx);return n||r||"ltr"}var zx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Xe=zx.reduce((n,r)=>{const i=ea(`Primitive.${r}`),l=g.forwardRef((a,c)=>{const{asChild:f,...p}=a,h=f?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ee.jsx(h,{...p,ref:c})});return l.displayName=`Primitive.${r}`,{...n,[r]:l}},{});function jx(n,r){n&&xs.flushSync(()=>n.dispatchEvent(r))}function go(n){const r=g.useRef(n);return g.useEffect(()=>{r.current=n}),g.useMemo(()=>(...i)=>{var l;return(l=r.current)==null?void 0:l.call(r,...i)},[])}function Bx(n,r=globalThis==null?void 0:globalThis.document){const i=go(n);g.useEffect(()=>{const l=a=>{a.key==="Escape"&&i(a)};return r.addEventListener("keydown",l,{capture:!0}),()=>r.removeEventListener("keydown",l,{capture:!0})},[i,r])}var Ux="DismissableLayer",Ac="dismissableLayer.update",Hx="dismissableLayer.pointerDownOutside",$x="dismissableLayer.focusOutside",Mh,ty=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ny=g.forwardRef((n,r)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:f,onDismiss:p,...h}=n,y=g.useContext(ty),[w,x]=g.useState(null),E=(w==null?void 0:w.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=g.useState({}),O=ct(r,H=>x(H)),S=Array.from(y.layers),[C]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),P=S.indexOf(C),T=w?S.indexOf(w):-1,R=y.layersWithOutsidePointerEventsDisabled.size>0,L=T>=P,z=Qx(H=>{const q=H.target,Z=[...y.branches].some(te=>te.contains(q));!L||Z||(a==null||a(H),f==null||f(H),H.defaultPrevented||p==null||p())},E),U=Kx(H=>{const q=H.target;[...y.branches].some(te=>te.contains(q))||(c==null||c(H),f==null||f(H),H.defaultPrevented||p==null||p())},E);return Bx(H=>{T===y.layers.size-1&&(l==null||l(H),!H.defaultPrevented&&p&&(H.preventDefault(),p()))},E),g.useEffect(()=>{if(w)return i&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Mh=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(w)),y.layers.add(w),Th(),()=>{i&&y.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=Mh)}},[w,E,i,y]),g.useEffect(()=>()=>{w&&(y.layers.delete(w),y.layersWithOutsidePointerEventsDisabled.delete(w),Th())},[w,y]),g.useEffect(()=>{const H=()=>v({});return document.addEventListener(Ac,H),()=>document.removeEventListener(Ac,H)},[]),ee.jsx(Xe.div,{...h,ref:O,style:{pointerEvents:R?L?"auto":"none":void 0,...n.style},onFocusCapture:Je(n.onFocusCapture,U.onFocusCapture),onBlurCapture:Je(n.onBlurCapture,U.onBlurCapture),onPointerDownCapture:Je(n.onPointerDownCapture,z.onPointerDownCapture)})});ny.displayName=Ux;var Wx="DismissableLayerBranch",Vx=g.forwardRef((n,r)=>{const i=g.useContext(ty),l=g.useRef(null),a=ct(r,l);return g.useEffect(()=>{const c=l.current;if(c)return i.branches.add(c),()=>{i.branches.delete(c)}},[i.branches]),ee.jsx(Xe.div,{...n,ref:a})});Vx.displayName=Wx;function Qx(n,r=globalThis==null?void 0:globalThis.document){const i=go(n),l=g.useRef(!1),a=g.useRef(()=>{});return g.useEffect(()=>{const c=p=>{if(p.target&&!l.current){let h=function(){ry(Hx,i,y,{discrete:!0})};const y={originalEvent:p};p.pointerType==="touch"?(r.removeEventListener("click",a.current),a.current=h,r.addEventListener("click",a.current,{once:!0})):h()}else r.removeEventListener("click",a.current);l.current=!1},f=window.setTimeout(()=>{r.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),r.removeEventListener("pointerdown",c),r.removeEventListener("click",a.current)}},[r,i]),{onPointerDownCapture:()=>l.current=!0}}function Kx(n,r=globalThis==null?void 0:globalThis.document){const i=go(n),l=g.useRef(!1);return g.useEffect(()=>{const a=c=>{c.target&&!l.current&&ry($x,i,{originalEvent:c},{discrete:!1})};return r.addEventListener("focusin",a),()=>r.removeEventListener("focusin",a)},[r,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Th(){const n=new CustomEvent(Ac);document.dispatchEvent(n)}function ry(n,r,i,{discrete:l}){const a=i.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});r&&a.addEventListener(n,r,{once:!0}),l?jx(a,c):a.dispatchEvent(c)}var lc=0;function qx(){g.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Oh()),document.body.insertAdjacentElement("beforeend",n[1]??Oh()),lc++,()=>{lc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),lc--}},[])}function Oh(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var ac="focusScope.autoFocusOnMount",uc="focusScope.autoFocusOnUnmount",_h={bubbles:!1,cancelable:!0},Yx="FocusScope",oy=g.forwardRef((n,r)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:a,onUnmountAutoFocus:c,...f}=n,[p,h]=g.useState(null),y=go(a),w=go(c),x=g.useRef(null),E=ct(r,S=>h(S)),v=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(l){let S=function(R){if(v.paused||!p)return;const L=R.target;p.contains(L)?x.current=L:Tr(x.current,{select:!0})},C=function(R){if(v.paused||!p)return;const L=R.relatedTarget;L!==null&&(p.contains(L)||Tr(x.current,{select:!0}))},P=function(R){if(document.activeElement===document.body)for(const z of R)z.removedNodes.length>0&&Tr(p)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const T=new MutationObserver(P);return p&&T.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),T.disconnect()}}},[l,p,v.paused]),g.useEffect(()=>{if(p){Lh.add(v);const S=document.activeElement;if(!p.contains(S)){const P=new CustomEvent(ac,_h);p.addEventListener(ac,y),p.dispatchEvent(P),P.defaultPrevented||(Gx(tS(iy(p)),{select:!0}),document.activeElement===S&&Tr(p))}return()=>{p.removeEventListener(ac,y),setTimeout(()=>{const P=new CustomEvent(uc,_h);p.addEventListener(uc,w),p.dispatchEvent(P),P.defaultPrevented||Tr(S??document.body,{select:!0}),p.removeEventListener(uc,w),Lh.remove(v)},0)}}},[p,y,w,v]);const O=g.useCallback(S=>{if(!i&&!l||v.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,P=document.activeElement;if(C&&P){const T=S.currentTarget,[R,L]=Xx(T);R&&L?!S.shiftKey&&P===L?(S.preventDefault(),i&&Tr(R,{select:!0})):S.shiftKey&&P===R&&(S.preventDefault(),i&&Tr(L,{select:!0})):P===T&&S.preventDefault()}},[i,l,v.paused]);return ee.jsx(Xe.div,{tabIndex:-1,...f,ref:E,onKeyDown:O})});oy.displayName=Yx;function Gx(n,{select:r=!1}={}){const i=document.activeElement;for(const l of n)if(Tr(l,{select:r}),document.activeElement!==i)return}function Xx(n){const r=iy(n),i=Nh(r,n),l=Nh(r.reverse(),n);return[i,l]}function iy(n){const r=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const a=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||a?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)r.push(i.currentNode);return r}function Nh(n,r){for(const i of n)if(!Zx(i,{upTo:r}))return i}function Zx(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Jx(n){return n instanceof HTMLInputElement&&"select"in n}function Tr(n,{select:r=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&Jx(n)&&r&&n.select()}}var Lh=eS();function eS(){let n=[];return{add(r){const i=n[0];r!==i&&(i==null||i.pause()),n=Ah(n,r),n.unshift(r)},remove(r){var i;n=Ah(n,r),(i=n[0])==null||i.resume()}}}function Ah(n,r){const i=[...n],l=i.indexOf(r);return l!==-1&&i.splice(l,1),i}function tS(n){return n.filter(r=>r.tagName!=="A")}var At=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},nS=fm[" useId ".trim().toString()]||(()=>{}),rS=0;function ld(n){const[r,i]=g.useState(nS());return At(()=>{i(l=>l??String(rS++))},[n]),r?`radix-${r}`:""}const oS=["top","right","bottom","left"],Br=Math.min,jt=Math.max,ta=Math.round,Bl=Math.floor,In=n=>({x:n,y:n}),iS={left:"right",right:"left",bottom:"top",top:"bottom"},sS={start:"end",end:"start"};function Ic(n,r,i){return jt(n,Br(r,i))}function nr(n,r){return typeof n=="function"?n(r):n}function rr(n){return n.split("-")[0]}function wi(n){return n.split("-")[1]}function ad(n){return n==="x"?"y":"x"}function ud(n){return n==="y"?"height":"width"}const lS=new Set(["top","bottom"]);function An(n){return lS.has(rr(n))?"y":"x"}function cd(n){return ad(An(n))}function aS(n,r,i){i===void 0&&(i=!1);const l=wi(n),a=cd(n),c=ud(a);let f=a==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return r.reference[c]>r.floating[c]&&(f=na(f)),[f,na(f)]}function uS(n){const r=na(n);return[Dc(n),r,Dc(r)]}function Dc(n){return n.replace(/start|end/g,r=>sS[r])}const Ih=["left","right"],Dh=["right","left"],cS=["top","bottom"],dS=["bottom","top"];function fS(n,r,i){switch(n){case"top":case"bottom":return i?r?Dh:Ih:r?Ih:Dh;case"left":case"right":return r?cS:dS;default:return[]}}function pS(n,r,i,l){const a=wi(n);let c=fS(rr(n),i==="start",l);return a&&(c=c.map(f=>f+"-"+a),r&&(c=c.concat(c.map(Dc)))),c}function na(n){return n.replace(/left|right|bottom|top/g,r=>iS[r])}function hS(n){return{top:0,right:0,bottom:0,left:0,...n}}function sy(n){return typeof n!="number"?hS(n):{top:n,right:n,bottom:n,left:n}}function ra(n){const{x:r,y:i,width:l,height:a}=n;return{width:l,height:a,top:i,left:r,right:r+l,bottom:i+a,x:r,y:i}}function Fh(n,r,i){let{reference:l,floating:a}=n;const c=An(r),f=cd(r),p=ud(f),h=rr(r),y=c==="y",w=l.x+l.width/2-a.width/2,x=l.y+l.height/2-a.height/2,E=l[p]/2-a[p]/2;let v;switch(h){case"top":v={x:w,y:l.y-a.height};break;case"bottom":v={x:w,y:l.y+l.height};break;case"right":v={x:l.x+l.width,y:x};break;case"left":v={x:l.x-a.width,y:x};break;default:v={x:l.x,y:l.y}}switch(wi(r)){case"start":v[f]-=E*(i&&y?-1:1);break;case"end":v[f]+=E*(i&&y?-1:1);break}return v}async function mS(n,r){var i;r===void 0&&(r={});const{x:l,y:a,platform:c,rects:f,elements:p,strategy:h}=n,{boundary:y="clippingAncestors",rootBoundary:w="viewport",elementContext:x="floating",altBoundary:E=!1,padding:v=0}=nr(r,n),O=sy(v),C=p[E?x==="floating"?"reference":"floating":x],P=ra(await c.getClippingRect({element:(i=await(c.isElement==null?void 0:c.isElement(C)))==null||i?C:C.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:y,rootBoundary:w,strategy:h})),T=x==="floating"?{x:l,y:a,width:f.floating.width,height:f.floating.height}:f.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),L=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},z=ra(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:T,offsetParent:R,strategy:h}):T);return{top:(P.top-z.top+O.top)/L.y,bottom:(z.bottom-P.bottom+O.bottom)/L.y,left:(P.left-z.left+O.left)/L.x,right:(z.right-P.right+O.right)/L.x}}const yS=async(n,r,i)=>{const{placement:l="bottom",strategy:a="absolute",middleware:c=[],platform:f}=i,p=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(r));let y=await f.getElementRects({reference:n,floating:r,strategy:a}),{x:w,y:x}=Fh(y,l,h),E=l,v={},O=0;for(let C=0;C<p.length;C++){var S;const{name:P,fn:T}=p[C],{x:R,y:L,data:z,reset:U}=await T({x:w,y:x,initialPlacement:l,placement:E,strategy:a,middlewareData:v,rects:y,platform:{...f,detectOverflow:(S=f.detectOverflow)!=null?S:mS},elements:{reference:n,floating:r}});w=R??w,x=L??x,v={...v,[P]:{...v[P],...z}},U&&O<=50&&(O++,typeof U=="object"&&(U.placement&&(E=U.placement),U.rects&&(y=U.rects===!0?await f.getElementRects({reference:n,floating:r,strategy:a}):U.rects),{x:w,y:x}=Fh(y,E,h)),C=-1)}return{x:w,y:x,placement:E,strategy:a,middlewareData:v}},vS=n=>({name:"arrow",options:n,async fn(r){const{x:i,y:l,placement:a,rects:c,platform:f,elements:p,middlewareData:h}=r,{element:y,padding:w=0}=nr(n,r)||{};if(y==null)return{};const x=sy(w),E={x:i,y:l},v=cd(a),O=ud(v),S=await f.getDimensions(y),C=v==="y",P=C?"top":"left",T=C?"bottom":"right",R=C?"clientHeight":"clientWidth",L=c.reference[O]+c.reference[v]-E[v]-c.floating[O],z=E[v]-c.reference[v],U=await(f.getOffsetParent==null?void 0:f.getOffsetParent(y));let H=U?U[R]:0;(!H||!await(f.isElement==null?void 0:f.isElement(U)))&&(H=p.floating[R]||c.floating[O]);const q=L/2-z/2,Z=H/2-S[O]/2-1,te=Br(x[P],Z),he=Br(x[T],Z),X=te,ve=H-S[O]-he,ce=H/2-S[O]/2+q,xe=Ic(X,ce,ve),ae=!h.arrow&&wi(a)!=null&&ce!==xe&&c.reference[O]/2-(ce<X?te:he)-S[O]/2<0,ie=ae?ce<X?ce-X:ce-ve:0;return{[v]:E[v]+ie,data:{[v]:xe,centerOffset:ce-xe-ie,...ae&&{alignmentOffset:ie}},reset:ae}}}),gS=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var i,l;const{placement:a,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:y}=r,{mainAxis:w=!0,crossAxis:x=!0,fallbackPlacements:E,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:S=!0,...C}=nr(n,r);if((i=c.arrow)!=null&&i.alignmentOffset)return{};const P=rr(a),T=An(p),R=rr(p)===p,L=await(h.isRTL==null?void 0:h.isRTL(y.floating)),z=E||(R||!S?[na(p)]:uS(p)),U=O!=="none";!E&&U&&z.push(...pS(p,S,O,L));const H=[p,...z],q=await h.detectOverflow(r,C),Z=[];let te=((l=c.flip)==null?void 0:l.overflows)||[];if(w&&Z.push(q[P]),x){const ce=aS(a,f,L);Z.push(q[ce[0]],q[ce[1]])}if(te=[...te,{placement:a,overflows:Z}],!Z.every(ce=>ce<=0)){var he,X;const ce=(((he=c.flip)==null?void 0:he.index)||0)+1,xe=H[ce];if(xe&&(!(x==="alignment"?T!==An(xe):!1)||te.every(j=>An(j.placement)===T?j.overflows[0]>0:!0)))return{data:{index:ce,overflows:te},reset:{placement:xe}};let ae=(X=te.filter(ie=>ie.overflows[0]<=0).sort((ie,j)=>ie.overflows[1]-j.overflows[1])[0])==null?void 0:X.placement;if(!ae)switch(v){case"bestFit":{var ve;const ie=(ve=te.filter(j=>{if(U){const B=An(j.placement);return B===T||B==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(B=>B>0).reduce((B,V)=>B+V,0)]).sort((j,B)=>j[1]-B[1])[0])==null?void 0:ve[0];ie&&(ae=ie);break}case"initialPlacement":ae=p;break}if(a!==ae)return{reset:{placement:ae}}}return{}}}};function zh(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function jh(n){return oS.some(r=>n[r]>=0)}const wS=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:i,platform:l}=r,{strategy:a="referenceHidden",...c}=nr(n,r);switch(a){case"referenceHidden":{const f=await l.detectOverflow(r,{...c,elementContext:"reference"}),p=zh(f,i.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:jh(p)}}}case"escaped":{const f=await l.detectOverflow(r,{...c,altBoundary:!0}),p=zh(f,i.floating);return{data:{escapedOffsets:p,escaped:jh(p)}}}default:return{}}}}},ly=new Set(["left","top"]);async function xS(n,r){const{placement:i,platform:l,elements:a}=n,c=await(l.isRTL==null?void 0:l.isRTL(a.floating)),f=rr(i),p=wi(i),h=An(i)==="y",y=ly.has(f)?-1:1,w=c&&h?-1:1,x=nr(r,n);let{mainAxis:E,crossAxis:v,alignmentAxis:O}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return p&&typeof O=="number"&&(v=p==="end"?O*-1:O),h?{x:v*w,y:E*y}:{x:E*y,y:v*w}}const SS=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var i,l;const{x:a,y:c,placement:f,middlewareData:p}=r,h=await xS(r,n);return f===((i=p.offset)==null?void 0:i.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:a+h.x,y:c+h.y,data:{...h,placement:f}}}}},CS=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:i,y:l,placement:a,platform:c}=r,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:P=>{let{x:T,y:R}=P;return{x:T,y:R}}},...y}=nr(n,r),w={x:i,y:l},x=await c.detectOverflow(r,y),E=An(rr(a)),v=ad(E);let O=w[v],S=w[E];if(f){const P=v==="y"?"top":"left",T=v==="y"?"bottom":"right",R=O+x[P],L=O-x[T];O=Ic(R,O,L)}if(p){const P=E==="y"?"top":"left",T=E==="y"?"bottom":"right",R=S+x[P],L=S-x[T];S=Ic(R,S,L)}const C=h.fn({...r,[v]:O,[E]:S});return{...C,data:{x:C.x-i,y:C.y-l,enabled:{[v]:f,[E]:p}}}}}},ES=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:i,y:l,placement:a,rects:c,middlewareData:f}=r,{offset:p=0,mainAxis:h=!0,crossAxis:y=!0}=nr(n,r),w={x:i,y:l},x=An(a),E=ad(x);let v=w[E],O=w[x];const S=nr(p,r),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const R=E==="y"?"height":"width",L=c.reference[E]-c.floating[R]+C.mainAxis,z=c.reference[E]+c.reference[R]-C.mainAxis;v<L?v=L:v>z&&(v=z)}if(y){var P,T;const R=E==="y"?"width":"height",L=ly.has(rr(a)),z=c.reference[x]-c.floating[R]+(L&&((P=f.offset)==null?void 0:P[x])||0)+(L?0:C.crossAxis),U=c.reference[x]+c.reference[R]+(L?0:((T=f.offset)==null?void 0:T[x])||0)-(L?C.crossAxis:0);O<z?O=z:O>U&&(O=U)}return{[E]:v,[x]:O}}}},kS=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var i,l;const{placement:a,rects:c,platform:f,elements:p}=r,{apply:h=()=>{},...y}=nr(n,r),w=await f.detectOverflow(r,y),x=rr(a),E=wi(a),v=An(a)==="y",{width:O,height:S}=c.floating;let C,P;x==="top"||x==="bottom"?(C=x,P=E===(await(f.isRTL==null?void 0:f.isRTL(p.floating))?"start":"end")?"left":"right"):(P=x,C=E==="end"?"top":"bottom");const T=S-w.top-w.bottom,R=O-w.left-w.right,L=Br(S-w[C],T),z=Br(O-w[P],R),U=!r.middlewareData.shift;let H=L,q=z;if((i=r.middlewareData.shift)!=null&&i.enabled.x&&(q=R),(l=r.middlewareData.shift)!=null&&l.enabled.y&&(H=T),U&&!E){const te=jt(w.left,0),he=jt(w.right,0),X=jt(w.top,0),ve=jt(w.bottom,0);v?q=O-2*(te!==0||he!==0?te+he:jt(w.left,w.right)):H=S-2*(X!==0||ve!==0?X+ve:jt(w.top,w.bottom))}await h({...r,availableWidth:q,availableHeight:H});const Z=await f.getDimensions(p.floating);return O!==Z.width||S!==Z.height?{reset:{rects:!0}}:{}}}};function aa(){return typeof window<"u"}function xi(n){return ay(n)?(n.nodeName||"").toLowerCase():"#document"}function Bt(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Fn(n){var r;return(r=(ay(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function ay(n){return aa()?n instanceof Node||n instanceof Bt(n).Node:!1}function hn(n){return aa()?n instanceof Element||n instanceof Bt(n).Element:!1}function Dn(n){return aa()?n instanceof HTMLElement||n instanceof Bt(n).HTMLElement:!1}function Bh(n){return!aa()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Bt(n).ShadowRoot}const bS=new Set(["inline","contents"]);function Ss(n){const{overflow:r,overflowX:i,overflowY:l,display:a}=mn(n);return/auto|scroll|overlay|hidden|clip/.test(r+l+i)&&!bS.has(a)}const RS=new Set(["table","td","th"]);function PS(n){return RS.has(xi(n))}const MS=[":popover-open",":modal"];function ua(n){return MS.some(r=>{try{return n.matches(r)}catch{return!1}})}const TS=["transform","translate","scale","rotate","perspective"],OS=["transform","translate","scale","rotate","perspective","filter"],_S=["paint","layout","strict","content"];function dd(n){const r=fd(),i=hn(n)?mn(n):n;return TS.some(l=>i[l]?i[l]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!r&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!r&&(i.filter?i.filter!=="none":!1)||OS.some(l=>(i.willChange||"").includes(l))||_S.some(l=>(i.contain||"").includes(l))}function NS(n){let r=Ur(n);for(;Dn(r)&&!pi(r);){if(dd(r))return r;if(ua(r))return null;r=Ur(r)}return null}function fd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const LS=new Set(["html","body","#document"]);function pi(n){return LS.has(xi(n))}function mn(n){return Bt(n).getComputedStyle(n)}function ca(n){return hn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ur(n){if(xi(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Bh(n)&&n.host||Fn(n);return Bh(r)?r.host:r}function uy(n){const r=Ur(n);return pi(r)?n.ownerDocument?n.ownerDocument.body:n.body:Dn(r)&&Ss(r)?r:uy(r)}function fs(n,r,i){var l;r===void 0&&(r=[]),i===void 0&&(i=!0);const a=uy(n),c=a===((l=n.ownerDocument)==null?void 0:l.body),f=Bt(a);if(c){const p=Fc(f);return r.concat(f,f.visualViewport||[],Ss(a)?a:[],p&&i?fs(p):[])}return r.concat(a,fs(a,[],i))}function Fc(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function cy(n){const r=mn(n);let i=parseFloat(r.width)||0,l=parseFloat(r.height)||0;const a=Dn(n),c=a?n.offsetWidth:i,f=a?n.offsetHeight:l,p=ta(i)!==c||ta(l)!==f;return p&&(i=c,l=f),{width:i,height:l,$:p}}function pd(n){return hn(n)?n:n.contextElement}function Jo(n){const r=pd(n);if(!Dn(r))return In(1);const i=r.getBoundingClientRect(),{width:l,height:a,$:c}=cy(r);let f=(c?ta(i.width):i.width)/l,p=(c?ta(i.height):i.height)/a;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const AS=In(0);function dy(n){const r=Bt(n);return!fd()||!r.visualViewport?AS:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function IS(n,r,i){return r===void 0&&(r=!1),!i||r&&i!==Bt(n)?!1:r}function wo(n,r,i,l){r===void 0&&(r=!1),i===void 0&&(i=!1);const a=n.getBoundingClientRect(),c=pd(n);let f=In(1);r&&(l?hn(l)&&(f=Jo(l)):f=Jo(n));const p=IS(c,i,l)?dy(c):In(0);let h=(a.left+p.x)/f.x,y=(a.top+p.y)/f.y,w=a.width/f.x,x=a.height/f.y;if(c){const E=Bt(c),v=l&&hn(l)?Bt(l):l;let O=E,S=Fc(O);for(;S&&l&&v!==O;){const C=Jo(S),P=S.getBoundingClientRect(),T=mn(S),R=P.left+(S.clientLeft+parseFloat(T.paddingLeft))*C.x,L=P.top+(S.clientTop+parseFloat(T.paddingTop))*C.y;h*=C.x,y*=C.y,w*=C.x,x*=C.y,h+=R,y+=L,O=Bt(S),S=Fc(O)}}return ra({width:w,height:x,x:h,y})}function da(n,r){const i=ca(n).scrollLeft;return r?r.left+i:wo(Fn(n)).left+i}function fy(n,r){const i=n.getBoundingClientRect(),l=i.left+r.scrollLeft-da(n,i),a=i.top+r.scrollTop;return{x:l,y:a}}function DS(n){let{elements:r,rect:i,offsetParent:l,strategy:a}=n;const c=a==="fixed",f=Fn(l),p=r?ua(r.floating):!1;if(l===f||p&&c)return i;let h={scrollLeft:0,scrollTop:0},y=In(1);const w=In(0),x=Dn(l);if((x||!x&&!c)&&((xi(l)!=="body"||Ss(f))&&(h=ca(l)),Dn(l))){const v=wo(l);y=Jo(l),w.x=v.x+l.clientLeft,w.y=v.y+l.clientTop}const E=f&&!x&&!c?fy(f,h):In(0);return{width:i.width*y.x,height:i.height*y.y,x:i.x*y.x-h.scrollLeft*y.x+w.x+E.x,y:i.y*y.y-h.scrollTop*y.y+w.y+E.y}}function FS(n){return Array.from(n.getClientRects())}function zS(n){const r=Fn(n),i=ca(n),l=n.ownerDocument.body,a=jt(r.scrollWidth,r.clientWidth,l.scrollWidth,l.clientWidth),c=jt(r.scrollHeight,r.clientHeight,l.scrollHeight,l.clientHeight);let f=-i.scrollLeft+da(n);const p=-i.scrollTop;return mn(l).direction==="rtl"&&(f+=jt(r.clientWidth,l.clientWidth)-a),{width:a,height:c,x:f,y:p}}const Uh=25;function jS(n,r){const i=Bt(n),l=Fn(n),a=i.visualViewport;let c=l.clientWidth,f=l.clientHeight,p=0,h=0;if(a){c=a.width,f=a.height;const w=fd();(!w||w&&r==="fixed")&&(p=a.offsetLeft,h=a.offsetTop)}const y=da(l);if(y<=0){const w=l.ownerDocument,x=w.body,E=getComputedStyle(x),v=w.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,O=Math.abs(l.clientWidth-x.clientWidth-v);O<=Uh&&(c-=O)}else y<=Uh&&(c+=y);return{width:c,height:f,x:p,y:h}}const BS=new Set(["absolute","fixed"]);function US(n,r){const i=wo(n,!0,r==="fixed"),l=i.top+n.clientTop,a=i.left+n.clientLeft,c=Dn(n)?Jo(n):In(1),f=n.clientWidth*c.x,p=n.clientHeight*c.y,h=a*c.x,y=l*c.y;return{width:f,height:p,x:h,y}}function Hh(n,r,i){let l;if(r==="viewport")l=jS(n,i);else if(r==="document")l=zS(Fn(n));else if(hn(r))l=US(r,i);else{const a=dy(n);l={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return ra(l)}function py(n,r){const i=Ur(n);return i===r||!hn(i)||pi(i)?!1:mn(i).position==="fixed"||py(i,r)}function HS(n,r){const i=r.get(n);if(i)return i;let l=fs(n,[],!1).filter(p=>hn(p)&&xi(p)!=="body"),a=null;const c=mn(n).position==="fixed";let f=c?Ur(n):n;for(;hn(f)&&!pi(f);){const p=mn(f),h=dd(f);!h&&p.position==="fixed"&&(a=null),(c?!h&&!a:!h&&p.position==="static"&&!!a&&BS.has(a.position)||Ss(f)&&!h&&py(n,f))?l=l.filter(w=>w!==f):a=p,f=Ur(f)}return r.set(n,l),l}function $S(n){let{element:r,boundary:i,rootBoundary:l,strategy:a}=n;const f=[...i==="clippingAncestors"?ua(r)?[]:HS(r,this._c):[].concat(i),l],p=f[0],h=f.reduce((y,w)=>{const x=Hh(r,w,a);return y.top=jt(x.top,y.top),y.right=Br(x.right,y.right),y.bottom=Br(x.bottom,y.bottom),y.left=jt(x.left,y.left),y},Hh(r,p,a));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function WS(n){const{width:r,height:i}=cy(n);return{width:r,height:i}}function VS(n,r,i){const l=Dn(r),a=Fn(r),c=i==="fixed",f=wo(n,!0,c,r);let p={scrollLeft:0,scrollTop:0};const h=In(0);function y(){h.x=da(a)}if(l||!l&&!c)if((xi(r)!=="body"||Ss(a))&&(p=ca(r)),l){const v=wo(r,!0,c,r);h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}else a&&y();c&&!l&&a&&y();const w=a&&!l&&!c?fy(a,p):In(0),x=f.left+p.scrollLeft-h.x-w.x,E=f.top+p.scrollTop-h.y-w.y;return{x,y:E,width:f.width,height:f.height}}function cc(n){return mn(n).position==="static"}function $h(n,r){if(!Dn(n)||mn(n).position==="fixed")return null;if(r)return r(n);let i=n.offsetParent;return Fn(n)===i&&(i=i.ownerDocument.body),i}function hy(n,r){const i=Bt(n);if(ua(n))return i;if(!Dn(n)){let a=Ur(n);for(;a&&!pi(a);){if(hn(a)&&!cc(a))return a;a=Ur(a)}return i}let l=$h(n,r);for(;l&&PS(l)&&cc(l);)l=$h(l,r);return l&&pi(l)&&cc(l)&&!dd(l)?i:l||NS(n)||i}const QS=async function(n){const r=this.getOffsetParent||hy,i=this.getDimensions,l=await i(n.floating);return{reference:VS(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function KS(n){return mn(n).direction==="rtl"}const qS={convertOffsetParentRelativeRectToViewportRelativeRect:DS,getDocumentElement:Fn,getClippingRect:$S,getOffsetParent:hy,getElementRects:QS,getClientRects:FS,getDimensions:WS,getScale:Jo,isElement:hn,isRTL:KS};function my(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function YS(n,r){let i=null,l;const a=Fn(n);function c(){var p;clearTimeout(l),(p=i)==null||p.disconnect(),i=null}function f(p,h){p===void 0&&(p=!1),h===void 0&&(h=1),c();const y=n.getBoundingClientRect(),{left:w,top:x,width:E,height:v}=y;if(p||r(),!E||!v)return;const O=Bl(x),S=Bl(a.clientWidth-(w+E)),C=Bl(a.clientHeight-(x+v)),P=Bl(w),R={rootMargin:-O+"px "+-S+"px "+-C+"px "+-P+"px",threshold:jt(0,Br(1,h))||1};let L=!0;function z(U){const H=U[0].intersectionRatio;if(H!==h){if(!L)return f();H?f(!1,H):l=setTimeout(()=>{f(!1,1e-7)},1e3)}H===1&&!my(y,n.getBoundingClientRect())&&f(),L=!1}try{i=new IntersectionObserver(z,{...R,root:a.ownerDocument})}catch{i=new IntersectionObserver(z,R)}i.observe(n)}return f(!0),c}function GS(n,r,i,l){l===void 0&&(l={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=l,y=pd(n),w=a||c?[...y?fs(y):[],...fs(r)]:[];w.forEach(P=>{a&&P.addEventListener("scroll",i,{passive:!0}),c&&P.addEventListener("resize",i)});const x=y&&p?YS(y,i):null;let E=-1,v=null;f&&(v=new ResizeObserver(P=>{let[T]=P;T&&T.target===y&&v&&(v.unobserve(r),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(r)})),i()}),y&&!h&&v.observe(y),v.observe(r));let O,S=h?wo(n):null;h&&C();function C(){const P=wo(n);S&&!my(S,P)&&i(),S=P,O=requestAnimationFrame(C)}return i(),()=>{var P;w.forEach(T=>{a&&T.removeEventListener("scroll",i),c&&T.removeEventListener("resize",i)}),x==null||x(),(P=v)==null||P.disconnect(),v=null,h&&cancelAnimationFrame(O)}}const XS=SS,ZS=CS,JS=gS,e2=kS,t2=wS,Wh=vS,n2=ES,r2=(n,r,i)=>{const l=new Map,a={platform:qS,...i},c={...a.platform,_c:l};return yS(n,r,{...a,platform:c})};var o2=typeof document<"u",i2=function(){},ql=o2?g.useLayoutEffect:i2;function oa(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let i,l,a;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==r.length)return!1;for(l=i;l--!==0;)if(!oa(n[l],r[l]))return!1;return!0}if(a=Object.keys(n),i=a.length,i!==Object.keys(r).length)return!1;for(l=i;l--!==0;)if(!{}.hasOwnProperty.call(r,a[l]))return!1;for(l=i;l--!==0;){const c=a[l];if(!(c==="_owner"&&n.$$typeof)&&!oa(n[c],r[c]))return!1}return!0}return n!==n&&r!==r}function yy(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Vh(n,r){const i=yy(n);return Math.round(r*i)/i}function dc(n){const r=g.useRef(n);return ql(()=>{r.current=n}),r}function s2(n){n===void 0&&(n={});const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:a,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:y}=n,[w,x]=g.useState({x:0,y:0,strategy:i,placement:r,middlewareData:{},isPositioned:!1}),[E,v]=g.useState(l);oa(E,l)||v(l);const[O,S]=g.useState(null),[C,P]=g.useState(null),T=g.useCallback(j=>{j!==U.current&&(U.current=j,S(j))},[]),R=g.useCallback(j=>{j!==H.current&&(H.current=j,P(j))},[]),L=c||O,z=f||C,U=g.useRef(null),H=g.useRef(null),q=g.useRef(w),Z=h!=null,te=dc(h),he=dc(a),X=dc(y),ve=g.useCallback(()=>{if(!U.current||!H.current)return;const j={placement:r,strategy:i,middleware:E};he.current&&(j.platform=he.current),r2(U.current,H.current,j).then(B=>{const V={...B,isPositioned:X.current!==!1};ce.current&&!oa(q.current,V)&&(q.current=V,xs.flushSync(()=>{x(V)}))})},[E,r,i,he,X]);ql(()=>{y===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,x(j=>({...j,isPositioned:!1})))},[y]);const ce=g.useRef(!1);ql(()=>(ce.current=!0,()=>{ce.current=!1}),[]),ql(()=>{if(L&&(U.current=L),z&&(H.current=z),L&&z){if(te.current)return te.current(L,z,ve);ve()}},[L,z,ve,te,Z]);const xe=g.useMemo(()=>({reference:U,floating:H,setReference:T,setFloating:R}),[T,R]),ae=g.useMemo(()=>({reference:L,floating:z}),[L,z]),ie=g.useMemo(()=>{const j={position:i,left:0,top:0};if(!ae.floating)return j;const B=Vh(ae.floating,w.x),V=Vh(ae.floating,w.y);return p?{...j,transform:"translate("+B+"px, "+V+"px)",...yy(ae.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:B,top:V}},[i,p,ae.floating,w.x,w.y]);return g.useMemo(()=>({...w,update:ve,refs:xe,elements:ae,floatingStyles:ie}),[w,ve,xe,ae,ie])}const l2=n=>{function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:l,padding:a}=typeof n=="function"?n(i):n;return l&&r(l)?l.current!=null?Wh({element:l.current,padding:a}).fn(i):{}:l?Wh({element:l,padding:a}).fn(i):{}}}},a2=(n,r)=>({...XS(n),options:[n,r]}),u2=(n,r)=>({...ZS(n),options:[n,r]}),c2=(n,r)=>({...n2(n),options:[n,r]}),d2=(n,r)=>({...JS(n),options:[n,r]}),f2=(n,r)=>({...e2(n),options:[n,r]}),p2=(n,r)=>({...t2(n),options:[n,r]}),h2=(n,r)=>({...l2(n),options:[n,r]});var m2="Arrow",vy=g.forwardRef((n,r)=>{const{children:i,width:l=10,height:a=5,...c}=n;return ee.jsx(Xe.svg,{...c,ref:r,width:l,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:ee.jsx("polygon",{points:"0,0 30,0 15,10"})})});vy.displayName=m2;var y2=vy;function v2(n){const[r,i]=g.useState(void 0);return At(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const l=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const c=a[0];let f,p;if("borderBoxSize"in c){const h=c.borderBoxSize,y=Array.isArray(h)?h[0]:h;f=y.inlineSize,p=y.blockSize}else f=n.offsetWidth,p=n.offsetHeight;i({width:f,height:p})});return l.observe(n,{box:"border-box"}),()=>l.unobserve(n)}else i(void 0)},[n]),r}var hd="Popper",[gy,wy]=sd(hd),[g2,xy]=gy(hd),Sy=n=>{const{__scopePopper:r,children:i}=n,[l,a]=g.useState(null);return ee.jsx(g2,{scope:r,anchor:l,onAnchorChange:a,children:i})};Sy.displayName=hd;var Cy="PopperAnchor",Ey=g.forwardRef((n,r)=>{const{__scopePopper:i,virtualRef:l,...a}=n,c=xy(Cy,i),f=g.useRef(null),p=ct(r,f),h=g.useRef(null);return g.useEffect(()=>{const y=h.current;h.current=(l==null?void 0:l.current)||f.current,y!==h.current&&c.onAnchorChange(h.current)}),l?null:ee.jsx(Xe.div,{...a,ref:p})});Ey.displayName=Cy;var md="PopperContent",[w2,x2]=gy(md),ky=g.forwardRef((n,r)=>{var K,fe,Ce,be,Me,Oe;const{__scopePopper:i,side:l="bottom",sideOffset:a=0,align:c="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:h=!0,collisionBoundary:y=[],collisionPadding:w=0,sticky:x="partial",hideWhenDetached:E=!1,updatePositionStrategy:v="optimized",onPlaced:O,...S}=n,C=xy(md,i),[P,T]=g.useState(null),R=ct(r,qe=>T(qe)),[L,z]=g.useState(null),U=v2(L),H=(U==null?void 0:U.width)??0,q=(U==null?void 0:U.height)??0,Z=l+(c!=="center"?"-"+c:""),te=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},he=Array.isArray(y)?y:[y],X=he.length>0,ve={padding:te,boundary:he.filter(C2),altBoundary:X},{refs:ce,floatingStyles:xe,placement:ae,isPositioned:ie,middlewareData:j}=s2({strategy:"fixed",placement:Z,whileElementsMounted:(...qe)=>GS(...qe,{animationFrame:v==="always"}),elements:{reference:C.anchor},middleware:[a2({mainAxis:a+q,alignmentAxis:f}),h&&u2({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?c2():void 0,...ve}),h&&d2({...ve}),f2({...ve,apply:({elements:qe,rects:dt,availableWidth:vn,availableHeight:Xt})=>{const{width:Zt,height:or}=dt.reference,gn=qe.floating.style;gn.setProperty("--radix-popper-available-width",`${vn}px`),gn.setProperty("--radix-popper-available-height",`${Xt}px`),gn.setProperty("--radix-popper-anchor-width",`${Zt}px`),gn.setProperty("--radix-popper-anchor-height",`${or}px`)}}),L&&h2({element:L,padding:p}),E2({arrowWidth:H,arrowHeight:q}),E&&p2({strategy:"referenceHidden",...ve})]}),[B,V]=Py(ae),_=go(O);At(()=>{ie&&(_==null||_())},[ie,_]);const F=(K=j.arrow)==null?void 0:K.x,ne=(fe=j.arrow)==null?void 0:fe.y,re=((Ce=j.arrow)==null?void 0:Ce.centerOffset)!==0,[ye,Se]=g.useState();return At(()=>{P&&Se(window.getComputedStyle(P).zIndex)},[P]),ee.jsx("div",{ref:ce.setFloating,"data-radix-popper-content-wrapper":"",style:{...xe,transform:ie?xe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,"--radix-popper-transform-origin":[(be=j.transformOrigin)==null?void 0:be.x,(Me=j.transformOrigin)==null?void 0:Me.y].join(" "),...((Oe=j.hide)==null?void 0:Oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:ee.jsx(w2,{scope:i,placedSide:B,onArrowChange:z,arrowX:F,arrowY:ne,shouldHideArrow:re,children:ee.jsx(Xe.div,{"data-side":B,"data-align":V,...S,ref:R,style:{...S.style,animation:ie?void 0:"none"}})})})});ky.displayName=md;var by="PopperArrow",S2={top:"bottom",right:"left",bottom:"top",left:"right"},Ry=g.forwardRef(function(r,i){const{__scopePopper:l,...a}=r,c=x2(by,l),f=S2[c.placedSide];return ee.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:ee.jsx(y2,{...a,ref:i,style:{...a.style,display:"block"}})})});Ry.displayName=by;function C2(n){return n!==null}var E2=n=>({name:"transformOrigin",options:n,fn(r){var C,P,T;const{placement:i,rects:l,middlewareData:a}=r,f=((C=a.arrow)==null?void 0:C.centerOffset)!==0,p=f?0:n.arrowWidth,h=f?0:n.arrowHeight,[y,w]=Py(i),x={start:"0%",center:"50%",end:"100%"}[w],E=(((P=a.arrow)==null?void 0:P.x)??0)+p/2,v=(((T=a.arrow)==null?void 0:T.y)??0)+h/2;let O="",S="";return y==="bottom"?(O=f?x:`${E}px`,S=`${-h}px`):y==="top"?(O=f?x:`${E}px`,S=`${l.floating.height+h}px`):y==="right"?(O=`${-h}px`,S=f?x:`${v}px`):y==="left"&&(O=`${l.floating.width+h}px`,S=f?x:`${v}px`),{data:{x:O,y:S}}}});function Py(n){const[r,i="center"]=n.split("-");return[r,i]}var k2=Sy,b2=Ey,R2=ky,P2=Ry,M2="Portal",My=g.forwardRef((n,r)=>{var p;const{container:i,...l}=n,[a,c]=g.useState(!1);At(()=>c(!0),[]);const f=i||a&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return f?Lm.createPortal(ee.jsx(Xe.div,{...l,ref:r}),f):null});My.displayName=M2;var T2=fm[" useInsertionEffect ".trim().toString()]||At;function Qh({prop:n,defaultProp:r,onChange:i=()=>{},caller:l}){const[a,c,f]=O2({defaultProp:r,onChange:i}),p=n!==void 0,h=p?n:a;{const w=g.useRef(n!==void 0);g.useEffect(()=>{const x=w.current;x!==p&&console.warn(`${l} is changing from ${x?"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.`),w.current=p},[p,l])}const y=g.useCallback(w=>{var x;if(p){const E=_2(w)?w(n):w;E!==n&&((x=f.current)==null||x.call(f,E))}else c(w)},[p,n,c,f]);return[h,y]}function O2({defaultProp:n,onChange:r}){const[i,l]=g.useState(n),a=g.useRef(i),c=g.useRef(r);return T2(()=>{c.current=r},[r]),g.useEffect(()=>{var f;a.current!==i&&((f=c.current)==null||f.call(c,i),a.current=i)},[i,a]),[i,l,c]}function _2(n){return typeof n=="function"}function N2(n){const r=g.useRef({value:n,previous:n});return g.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}var Ty=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),L2="VisuallyHidden",Oy=g.forwardRef((n,r)=>ee.jsx(Xe.span,{...n,ref:r,style:{...Ty,...n.style}}));Oy.displayName=L2;var fk=Oy,A2=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},Yo=new WeakMap,Ul=new WeakMap,Hl={},fc=0,_y=function(n){return n&&(n.host||_y(n.parentNode))},I2=function(n,r){return r.map(function(i){if(n.contains(i))return i;var l=_y(i);return l&&n.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},D2=function(n,r,i,l){var a=I2(r,Array.isArray(n)?n:[n]);Hl[i]||(Hl[i]=new WeakMap);var c=Hl[i],f=[],p=new Set,h=new Set(a),y=function(x){!x||p.has(x)||(p.add(x),y(x.parentNode))};a.forEach(y);var w=function(x){!x||h.has(x)||Array.prototype.forEach.call(x.children,function(E){if(p.has(E))w(E);else try{var v=E.getAttribute(l),O=v!==null&&v!=="false",S=(Yo.get(E)||0)+1,C=(c.get(E)||0)+1;Yo.set(E,S),c.set(E,C),f.push(E),S===1&&O&&Ul.set(E,!0),C===1&&E.setAttribute(i,"true"),O||E.setAttribute(l,"true")}catch(P){console.error("aria-hidden: cannot operate on ",E,P)}})};return w(r),p.clear(),fc++,function(){f.forEach(function(x){var E=Yo.get(x)-1,v=c.get(x)-1;Yo.set(x,E),c.set(x,v),E||(Ul.has(x)||x.removeAttribute(l),Ul.delete(x)),v||x.removeAttribute(i)}),fc--,fc||(Yo=new WeakMap,Yo=new WeakMap,Ul=new WeakMap,Hl={})}},F2=function(n,r,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(n)?n:[n]),a=A2(n);return a?(l.push.apply(l,Array.from(a.querySelectorAll("[aria-live], script"))),D2(l,a,i,"aria-hidden")):function(){return null}},zc=function(n,r){return zc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(i[a]=l[a])},zc(n,r)};function pk(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");zc(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var Ln=function(){return Ln=Object.assign||function(r){for(var i,l=1,a=arguments.length;l<a;l++){i=arguments[l];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},Ln.apply(this,arguments)};function Ny(n,r){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&r.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,l=Object.getOwnPropertySymbols(n);a<l.length;a++)r.indexOf(l[a])<0&&Object.prototype.propertyIsEnumerable.call(n,l[a])&&(i[l[a]]=n[l[a]]);return i}function hk(n){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&n[r],l=0;if(i)return i.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&l>=n.length&&(n=void 0),{value:n&&n[l++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function mk(n,r){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var l=i.call(n),a,c=[],f;try{for(;(r===void 0||r-- >0)&&!(a=l.next()).done;)c.push(a.value)}catch(p){f={error:p}}finally{try{a&&!a.done&&(i=l.return)&&i.call(l)}finally{if(f)throw f.error}}return c}function z2(n,r,i){if(i||arguments.length===2)for(var l=0,a=r.length,c;l<a;l++)(c||!(l in r))&&(c||(c=Array.prototype.slice.call(r,0,l)),c[l]=r[l]);return n.concat(c||Array.prototype.slice.call(r))}var Yl="right-scroll-bar-position",Gl="width-before-scroll-bar",j2="with-scroll-bars-hidden",B2="--removed-body-scroll-bar-size";function pc(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function U2(n,r){var i=g.useState(function(){return{value:n,callback:r,facade:{get current(){return i.value},set current(l){var a=i.value;a!==l&&(i.value=l,i.callback(l,a))}}}})[0];return i.callback=r,i.facade}var H2=typeof window<"u"?g.useLayoutEffect:g.useEffect,Kh=new WeakMap;function $2(n,r){var i=U2(null,function(l){return n.forEach(function(a){return pc(a,l)})});return H2(function(){var l=Kh.get(i);if(l){var a=new Set(l),c=new Set(n),f=i.current;a.forEach(function(p){c.has(p)||pc(p,null)}),c.forEach(function(p){a.has(p)||pc(p,f)})}Kh.set(i,n)},[n]),i}function W2(n){return n}function V2(n,r){r===void 0&&(r=W2);var i=[],l=!1,a={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]:n},useMedium:function(c){var f=r(c,l);return i.push(f),function(){i=i.filter(function(p){return p!==f})}},assignSyncMedium:function(c){for(l=!0;i.length;){var f=i;i=[],f.forEach(c)}i={push:function(p){return c(p)},filter:function(){return i}}},assignMedium:function(c){l=!0;var f=[];if(i.length){var p=i;i=[],p.forEach(c),f=i}var h=function(){var w=f;f=[],w.forEach(c)},y=function(){return Promise.resolve().then(h)};y(),i={push:function(w){f.push(w),y()},filter:function(w){return f=f.filter(w),i}}}};return a}function Q2(n){n===void 0&&(n={});var r=V2(null);return r.options=Ln({async:!0,ssr:!1},n),r}var Ly=function(n){var r=n.sideCar,i=Ny(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=r.read();if(!l)throw new Error("Sidecar medium not found");return g.createElement(l,Ln({},i))};Ly.isSideCarExport=!0;function K2(n,r){return n.useMedium(r),Ly}var Ay=Q2(),hc=function(){},fa=g.forwardRef(function(n,r){var i=g.useRef(null),l=g.useState({onScrollCapture:hc,onWheelCapture:hc,onTouchMoveCapture:hc}),a=l[0],c=l[1],f=n.forwardProps,p=n.children,h=n.className,y=n.removeScrollBar,w=n.enabled,x=n.shards,E=n.sideCar,v=n.noRelative,O=n.noIsolation,S=n.inert,C=n.allowPinchZoom,P=n.as,T=P===void 0?"div":P,R=n.gapMode,L=Ny(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=E,U=$2([i,r]),H=Ln(Ln({},L),a);return g.createElement(g.Fragment,null,w&&g.createElement(z,{sideCar:Ay,removeScrollBar:y,shards:x,noRelative:v,noIsolation:O,inert:S,setCallbacks:c,allowPinchZoom:!!C,lockRef:i,gapMode:R}),f?g.cloneElement(g.Children.only(p),Ln(Ln({},H),{ref:U})):g.createElement(T,Ln({},H,{className:h,ref:U}),p))});fa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fa.classNames={fullWidth:Gl,zeroRight:Yl};var q2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Y2(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=q2();return r&&n.setAttribute("nonce",r),n}function G2(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function X2(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var Z2=function(){var n=0,r=null;return{add:function(i){n==0&&(r=Y2())&&(G2(r,i),X2(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},J2=function(){var n=Z2();return function(r,i){g.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&i])}},Iy=function(){var n=J2(),r=function(i){var l=i.styles,a=i.dynamic;return n(l,a),null};return r},eC={left:0,top:0,right:0,gap:0},mc=function(n){return parseInt(n||"",10)||0},tC=function(n){var r=window.getComputedStyle(document.body),i=r[n==="padding"?"paddingLeft":"marginLeft"],l=r[n==="padding"?"paddingTop":"marginTop"],a=r[n==="padding"?"paddingRight":"marginRight"];return[mc(i),mc(l),mc(a)]},nC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return eC;var r=tC(n),i=document.documentElement.clientWidth,l=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,l-i+r[2]-r[0])}},rC=Iy(),ei="data-scroll-locked",oC=function(n,r,i,l){var a=n.left,c=n.top,f=n.right,p=n.gap;return i===void 0&&(i="margin"),`
363
368
  .`.concat(j2,` {
364
369
  overflow: hidden `).concat(l,`;
365
370
  padding-right: `).concat(p,"px ").concat(l,`;
@@ -377,7 +382,7 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
377
382
  `),i==="padding"&&"padding-right: ".concat(p,"px ").concat(l,";")].filter(Boolean).join(""),`
378
383
  }
379
384
 
380
- .`).concat(ql,` {
385
+ .`).concat(Yl,` {
381
386
  right: `).concat(p,"px ").concat(l,`;
382
387
  }
383
388
 
@@ -385,7 +390,7 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
385
390
  margin-right: `).concat(p,"px ").concat(l,`;
386
391
  }
387
392
 
388
- .`).concat(ql," .").concat(ql,` {
393
+ .`).concat(Yl," .").concat(Yl,` {
389
394
  right: 0 `).concat(l,`;
390
395
  }
391
396
 
@@ -396,7 +401,7 @@ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}
396
401
  body[`).concat(ei,`] {
397
402
  `).concat(B2,": ").concat(p,`px;
398
403
  }
399
- `)},Yh=function(){var n=parseInt(document.body.getAttribute(ei)||"0",10);return isFinite(n)?n:0},iC=function(){g.useEffect(function(){return document.body.setAttribute(ei,(Yh()+1).toString()),function(){var n=Yh()-1;n<=0?document.body.removeAttribute(ei):document.body.setAttribute(ei,n.toString())}},[])},sC=function(n){var r=n.noRelative,i=n.noImportant,l=n.gapMode,a=l===void 0?"margin":l;iC();var c=g.useMemo(function(){return nC(a)},[a]);return g.createElement(rC,{styles:oC(c,!r,a,i?"":"!important")})},jc=!1;if(typeof window<"u")try{var $l=Object.defineProperty({},"passive",{get:function(){return jc=!0,!0}});window.addEventListener("test",$l,$l),window.removeEventListener("test",$l,$l)}catch{jc=!1}var Go=jc?{passive:!1}:!1,lC=function(n){return n.tagName==="TEXTAREA"},Dv=function(n,r){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!lC(n)&&i[r]==="visible")},aC=function(n){return Dv(n,"overflowY")},uC=function(n){return Dv(n,"overflowX")},qh=function(n,r){var i=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var a=Fv(n,l);if(a){var c=zv(n,l),f=c[1],p=c[2];if(f>p)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},cC=function(n){var r=n.scrollTop,i=n.scrollHeight,l=n.clientHeight;return[r,i,l]},dC=function(n){var r=n.scrollLeft,i=n.scrollWidth,l=n.clientWidth;return[r,i,l]},Fv=function(n,r){return n==="v"?aC(r):uC(r)},zv=function(n,r){return n==="v"?cC(r):dC(r)},fC=function(n,r){return n==="h"&&r==="rtl"?-1:1},pC=function(n,r,i,l,a){var c=fC(n,window.getComputedStyle(r).direction),f=c*l,p=i.target,h=r.contains(p),v=!1,w=f>0,x=0,E=0;do{if(!p)break;var y=zv(n,p),O=y[0],S=y[1],C=y[2],P=S-C-c*O;(O||P)&&Fv(n,p)&&(x+=P,E+=O);var M=p.parentNode;p=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!h&&p!==document.body||h&&(r.contains(p)||r===p));return(w&&Math.abs(x)<1||!w&&Math.abs(E)<1)&&(v=!0),v},Wl=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Gh=function(n){return[n.deltaX,n.deltaY]},Xh=function(n){return n&&"current"in n?n.current:n},hC=function(n,r){return n[0]===r[0]&&n[1]===r[1]},mC=function(n){return`
404
+ `)},qh=function(){var n=parseInt(document.body.getAttribute(ei)||"0",10);return isFinite(n)?n:0},iC=function(){g.useEffect(function(){return document.body.setAttribute(ei,(qh()+1).toString()),function(){var n=qh()-1;n<=0?document.body.removeAttribute(ei):document.body.setAttribute(ei,n.toString())}},[])},sC=function(n){var r=n.noRelative,i=n.noImportant,l=n.gapMode,a=l===void 0?"margin":l;iC();var c=g.useMemo(function(){return nC(a)},[a]);return g.createElement(rC,{styles:oC(c,!r,a,i?"":"!important")})},jc=!1;if(typeof window<"u")try{var $l=Object.defineProperty({},"passive",{get:function(){return jc=!0,!0}});window.addEventListener("test",$l,$l),window.removeEventListener("test",$l,$l)}catch{jc=!1}var Go=jc?{passive:!1}:!1,lC=function(n){return n.tagName==="TEXTAREA"},Dy=function(n,r){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!lC(n)&&i[r]==="visible")},aC=function(n){return Dy(n,"overflowY")},uC=function(n){return Dy(n,"overflowX")},Yh=function(n,r){var i=r.ownerDocument,l=r;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var a=Fy(n,l);if(a){var c=zy(n,l),f=c[1],p=c[2];if(f>p)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},cC=function(n){var r=n.scrollTop,i=n.scrollHeight,l=n.clientHeight;return[r,i,l]},dC=function(n){var r=n.scrollLeft,i=n.scrollWidth,l=n.clientWidth;return[r,i,l]},Fy=function(n,r){return n==="v"?aC(r):uC(r)},zy=function(n,r){return n==="v"?cC(r):dC(r)},fC=function(n,r){return n==="h"&&r==="rtl"?-1:1},pC=function(n,r,i,l,a){var c=fC(n,window.getComputedStyle(r).direction),f=c*l,p=i.target,h=r.contains(p),y=!1,w=f>0,x=0,E=0;do{if(!p)break;var v=zy(n,p),O=v[0],S=v[1],C=v[2],P=S-C-c*O;(O||P)&&Fy(n,p)&&(x+=P,E+=O);var T=p.parentNode;p=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!h&&p!==document.body||h&&(r.contains(p)||r===p));return(w&&Math.abs(x)<1||!w&&Math.abs(E)<1)&&(y=!0),y},Wl=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Gh=function(n){return[n.deltaX,n.deltaY]},Xh=function(n){return n&&"current"in n?n.current:n},hC=function(n,r){return n[0]===r[0]&&n[1]===r[1]},mC=function(n){return`
400
405
  .block-interactivity-`.concat(n,` {pointer-events: none;}
401
406
  .allow-interactivity-`).concat(n,` {pointer-events: all;}
402
- `)},vC=0,Xo=[];function yC(n){var r=g.useRef([]),i=g.useRef([0,0]),l=g.useRef(),a=g.useState(vC++)[0],c=g.useState(Av)[0],f=g.useRef(n);g.useEffect(function(){f.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(a));var S=z2([n.lockRef.current],(n.shards||[]).map(Xh),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(a))})}}},[n.inert,n.lockRef.current,n.shards]);var p=g.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!f.current.allowPinchZoom;var P=Wl(S),M=i.current,R="deltaX"in S?S.deltaX:M[0]-P[0],L="deltaY"in S?S.deltaY:M[1]-P[1],z,U=S.target,H=Math.abs(R)>Math.abs(L)?"h":"v";if("touches"in S&&H==="h"&&U.type==="range")return!1;var Y=window.getSelection(),Z=Y&&Y.anchorNode,te=Z?Z===U||Z.contains(U):!1;if(te)return!1;var he=qh(H,U);if(!he)return!0;if(he?z=H:(z=H==="v"?"h":"v",he=qh(H,U)),!he)return!1;if(!l.current&&"changedTouches"in S&&(R||L)&&(l.current=z),!z)return!0;var X=l.current||z;return pC(X,C,S,X==="h"?R:L)},[]),h=g.useCallback(function(S){var C=S;if(!(!Xo.length||Xo[Xo.length-1]!==c)){var P="deltaY"in C?Gh(C):Wl(C),M=r.current.filter(function(z){return z.name===C.type&&(z.target===C.target||C.target===z.shadowParent)&&hC(z.delta,P)})[0];if(M&&M.should){C.cancelable&&C.preventDefault();return}if(!M){var R=(f.current.shards||[]).map(Xh).filter(Boolean).filter(function(z){return z.contains(C.target)}),L=R.length>0?p(C,R[0]):!f.current.noIsolation;L&&C.cancelable&&C.preventDefault()}}},[]),v=g.useCallback(function(S,C,P,M){var R={name:S,delta:C,target:P,should:M,shadowParent:gC(P)};r.current.push(R),setTimeout(function(){r.current=r.current.filter(function(L){return L!==R})},1)},[]),w=g.useCallback(function(S){i.current=Wl(S),l.current=void 0},[]),x=g.useCallback(function(S){v(S.type,Gh(S),S.target,p(S,n.lockRef.current))},[]),E=g.useCallback(function(S){v(S.type,Wl(S),S.target,p(S,n.lockRef.current))},[]);g.useEffect(function(){return Xo.push(c),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:E}),document.addEventListener("wheel",h,Go),document.addEventListener("touchmove",h,Go),document.addEventListener("touchstart",w,Go),function(){Xo=Xo.filter(function(S){return S!==c}),document.removeEventListener("wheel",h,Go),document.removeEventListener("touchmove",h,Go),document.removeEventListener("touchstart",w,Go)}},[]);var y=n.removeScrollBar,O=n.inert;return g.createElement(g.Fragment,null,O?g.createElement(c,{styles:mC(a)}):null,y?g.createElement(sC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function gC(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const wC=K2(Iv,yC);var jv=g.forwardRef(function(n,r){return g.createElement(fa,Ln({},n,{ref:r,sideCar:wC}))});jv.classNames=fa.classNames;var xC=[" ","Enter","ArrowUp","ArrowDown"],SC=[" ","Enter"],xo="Select",[pa,ha,CC]=Ax(xo),[Si]=sd(xo,[CC,wv]),ma=wv(),[EC,$r]=Si(xo),[kC,bC]=Si(xo),Bv=n=>{const{__scopeSelect:r,children:i,open:l,defaultOpen:a,onOpenChange:c,value:f,defaultValue:p,onValueChange:h,dir:v,name:w,autoComplete:x,disabled:E,required:y,form:O}=n,S=ma(r),[C,P]=g.useState(null),[M,R]=g.useState(null),[L,z]=g.useState(!1),U=Fx(v),[H,Y]=Qh({prop:l,defaultProp:a??!1,onChange:c,caller:xo}),[Z,te]=Qh({prop:f,defaultProp:p,onChange:h,caller:xo}),he=g.useRef(null),X=C?O||!!C.closest("form"):!0,[ye,ce]=g.useState(new Set),xe=Array.from(ye).map(ae=>ae.props.value).join(";");return ee.jsx(k2,{...S,children:ee.jsxs(EC,{required:y,scope:r,trigger:C,onTriggerChange:P,valueNode:M,onValueNodeChange:R,valueNodeHasChildren:L,onValueNodeHasChildrenChange:z,contentId:ld(),value:Z,onValueChange:te,open:H,onOpenChange:Y,dir:U,triggerPointerDownPosRef:he,disabled:E,children:[ee.jsx(pa.Provider,{scope:r,children:ee.jsx(kC,{scope:n.__scopeSelect,onNativeOptionAdd:g.useCallback(ae=>{ce(ie=>new Set(ie).add(ae))},[]),onNativeOptionRemove:g.useCallback(ae=>{ce(ie=>{const j=new Set(ie);return j.delete(ae),j})},[]),children:i})}),X?ee.jsxs(cy,{"aria-hidden":!0,required:y,tabIndex:-1,name:w,autoComplete:x,value:Z,onChange:ae=>te(ae.target.value),disabled:E,form:O,children:[Z===void 0?ee.jsx("option",{value:""}):null,Array.from(ye)]},xe):null]})})};Bv.displayName=xo;var Uv="SelectTrigger",Hv=g.forwardRef((n,r)=>{const{__scopeSelect:i,disabled:l=!1,...a}=n,c=ma(i),f=$r(Uv,i),p=f.disabled||l,h=ct(r,f.onTriggerChange),v=ha(i),w=g.useRef("touch"),[x,E,y]=fy(S=>{const C=v().filter(R=>!R.disabled),P=C.find(R=>R.value===f.value),M=py(C,S,P);M!==void 0&&f.onValueChange(M.value)}),O=S=>{p||(f.onOpenChange(!0),y()),S&&(f.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return ee.jsx(b2,{asChild:!0,...c,children:ee.jsx(Xe.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":dy(f.value)?"":void 0,...a,ref:h,onClick:Je(a.onClick,S=>{S.currentTarget.focus(),w.current!=="mouse"&&O(S)}),onPointerDown:Je(a.onPointerDown,S=>{w.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(O(S),S.preventDefault())}),onKeyDown:Je(a.onKeyDown,S=>{const C=x.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&E(S.key),!(C&&S.key===" ")&&xC.includes(S.key)&&(O(),S.preventDefault())})})})});Hv.displayName=Uv;var $v="SelectValue",Wv=g.forwardRef((n,r)=>{const{__scopeSelect:i,className:l,style:a,children:c,placeholder:f="",...p}=n,h=$r($v,i),{onValueNodeHasChildrenChange:v}=h,w=c!==void 0,x=ct(r,h.onValueNodeChange);return It(()=>{v(w)},[v,w]),ee.jsx(Xe.span,{...p,ref:x,style:{pointerEvents:"none"},children:dy(h.value)?ee.jsx(ee.Fragment,{children:f}):c})});Wv.displayName=$v;var RC="SelectIcon",Vv=g.forwardRef((n,r)=>{const{__scopeSelect:i,children:l,...a}=n;return ee.jsx(Xe.span,{"aria-hidden":!0,...a,ref:r,children:l||"▼"})});Vv.displayName=RC;var PC="SelectPortal",Qv=n=>ee.jsx(Tv,{asChild:!0,...n});Qv.displayName=PC;var So="SelectContent",Kv=g.forwardRef((n,r)=>{const i=$r(So,n.__scopeSelect),[l,a]=g.useState();if(It(()=>{a(new DocumentFragment)},[]),!i.open){const c=l;return c?xs.createPortal(ee.jsx(Yv,{scope:n.__scopeSelect,children:ee.jsx(pa.Slot,{scope:n.__scopeSelect,children:ee.jsx("div",{children:n.children})})}),c):null}return ee.jsx(qv,{...n,ref:r})});Kv.displayName=So;var cn=10,[Yv,Wr]=Si(So),TC="SelectContentImpl",MC=ea("SelectContent.RemoveScroll"),qv=g.forwardRef((n,r)=>{const{__scopeSelect:i,position:l="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:c,onPointerDownOutside:f,side:p,sideOffset:h,align:v,alignOffset:w,arrowPadding:x,collisionBoundary:E,collisionPadding:y,sticky:O,hideWhenDetached:S,avoidCollisions:C,...P}=n,M=$r(So,i),[R,L]=g.useState(null),[z,U]=g.useState(null),H=ct(r,K=>L(K)),[Y,Z]=g.useState(null),[te,he]=g.useState(null),X=ha(i),[ye,ce]=g.useState(!1),xe=g.useRef(!1);g.useEffect(()=>{if(R)return F2(R)},[R]),Yx();const ae=g.useCallback(K=>{const[fe,...Ce]=X().map(Oe=>Oe.ref.current),[be]=Ce.slice(-1),Te=document.activeElement;for(const Oe of K)if(Oe===Te||(Oe==null||Oe.scrollIntoView({block:"nearest"}),Oe===fe&&z&&(z.scrollTop=0),Oe===be&&z&&(z.scrollTop=z.scrollHeight),Oe==null||Oe.focus(),document.activeElement!==Te))return},[X,z]),ie=g.useCallback(()=>ae([Y,R]),[ae,Y,R]);g.useEffect(()=>{ye&&ie()},[ye,ie]);const{onOpenChange:j,triggerPointerDownPosRef:B}=M;g.useEffect(()=>{if(R){let K={x:0,y:0};const fe=be=>{var Te,Oe;K={x:Math.abs(Math.round(be.pageX)-(((Te=B.current)==null?void 0:Te.x)??0)),y:Math.abs(Math.round(be.pageY)-(((Oe=B.current)==null?void 0:Oe.y)??0))}},Ce=be=>{K.x<=10&&K.y<=10?be.preventDefault():R.contains(be.target)||j(!1),document.removeEventListener("pointermove",fe),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",fe),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",fe),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[R,j,B]),g.useEffect(()=>{const K=()=>j(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[j]);const[V,_]=fy(K=>{const fe=X().filter(Te=>!Te.disabled),Ce=fe.find(Te=>Te.ref.current===document.activeElement),be=py(fe,K,Ce);be&&setTimeout(()=>be.ref.current.focus())}),F=g.useCallback((K,fe,Ce)=>{const be=!xe.current&&!Ce;(M.value!==void 0&&M.value===fe||be)&&(Z(K),be&&(xe.current=!0))},[M.value]),ne=g.useCallback(()=>R==null?void 0:R.focus(),[R]),re=g.useCallback((K,fe,Ce)=>{const be=!xe.current&&!Ce;(M.value!==void 0&&M.value===fe||be)&&he(K)},[M.value]),ve=l==="popper"?Bc:Gv,Se=ve===Bc?{side:p,sideOffset:h,align:v,alignOffset:w,arrowPadding:x,collisionBoundary:E,collisionPadding:y,sticky:O,hideWhenDetached:S,avoidCollisions:C}:{};return ee.jsx(Yv,{scope:i,content:R,viewport:z,onViewportChange:U,itemRefCallback:F,selectedItem:Y,onItemLeave:ne,itemTextRefCallback:re,focusSelectedItem:ie,selectedItemText:te,position:l,isPositioned:ye,searchRef:V,children:ee.jsx(jv,{as:MC,allowPinchZoom:!0,children:ee.jsx(ov,{asChild:!0,trapped:M.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:Je(a,K=>{var fe;(fe=M.trigger)==null||fe.focus({preventScroll:!0}),K.preventDefault()}),children:ee.jsx(nv,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>M.onOpenChange(!1),children:ee.jsx(ve,{role:"listbox",id:M.contentId,"data-state":M.open?"open":"closed",dir:M.dir,onContextMenu:K=>K.preventDefault(),...P,...Se,onPlaced:()=>ce(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:Je(P.onKeyDown,K=>{const fe=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!fe&&K.key.length===1&&_(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let be=X().filter(Te=>!Te.disabled).map(Te=>Te.ref.current);if(["ArrowUp","End"].includes(K.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const Te=K.target,Oe=be.indexOf(Te);be=be.slice(Oe+1)}setTimeout(()=>ae(be)),K.preventDefault()}})})})})})})});qv.displayName=TC;var OC="SelectItemAlignedPosition",Gv=g.forwardRef((n,r)=>{const{__scopeSelect:i,onPlaced:l,...a}=n,c=$r(So,i),f=Wr(So,i),[p,h]=g.useState(null),[v,w]=g.useState(null),x=ct(r,H=>w(H)),E=ha(i),y=g.useRef(!1),O=g.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:P,focusSelectedItem:M}=f,R=g.useCallback(()=>{if(c.trigger&&c.valueNode&&p&&v&&S&&C&&P){const H=c.trigger.getBoundingClientRect(),Y=v.getBoundingClientRect(),Z=c.valueNode.getBoundingClientRect(),te=P.getBoundingClientRect();if(c.dir!=="rtl"){const Te=te.left-Y.left,Oe=Z.left-Te,Ye=H.left-Oe,dt=H.width+Ye,yn=Math.max(dt,Y.width),Xt=window.innerWidth-cn,Zt=Rh(Oe,[cn,Math.max(cn,Xt-yn)]);p.style.minWidth=dt+"px",p.style.left=Zt+"px"}else{const Te=Y.right-te.right,Oe=window.innerWidth-Z.right-Te,Ye=window.innerWidth-H.right-Oe,dt=H.width+Ye,yn=Math.max(dt,Y.width),Xt=window.innerWidth-cn,Zt=Rh(Oe,[cn,Math.max(cn,Xt-yn)]);p.style.minWidth=dt+"px",p.style.right=Zt+"px"}const he=E(),X=window.innerHeight-cn*2,ye=S.scrollHeight,ce=window.getComputedStyle(v),xe=parseInt(ce.borderTopWidth,10),ae=parseInt(ce.paddingTop,10),ie=parseInt(ce.borderBottomWidth,10),j=parseInt(ce.paddingBottom,10),B=xe+ae+ye+j+ie,V=Math.min(C.offsetHeight*5,B),_=window.getComputedStyle(S),F=parseInt(_.paddingTop,10),ne=parseInt(_.paddingBottom,10),re=H.top+H.height/2-cn,ve=X-re,Se=C.offsetHeight/2,K=C.offsetTop+Se,fe=xe+ae+K,Ce=B-fe;if(fe<=re){const Te=he.length>0&&C===he[he.length-1].ref.current;p.style.bottom="0px";const Oe=v.clientHeight-S.offsetTop-S.offsetHeight,Ye=Math.max(ve,Se+(Te?ne:0)+Oe+ie),dt=fe+Ye;p.style.height=dt+"px"}else{const Te=he.length>0&&C===he[0].ref.current;p.style.top="0px";const Ye=Math.max(re,xe+S.offsetTop+(Te?F:0)+Se)+Ce;p.style.height=Ye+"px",S.scrollTop=fe-re+S.offsetTop}p.style.margin=`${cn}px 0`,p.style.minHeight=V+"px",p.style.maxHeight=X+"px",l==null||l(),requestAnimationFrame(()=>y.current=!0)}},[E,c.trigger,c.valueNode,p,v,S,C,P,c.dir,l]);It(()=>R(),[R]);const[L,z]=g.useState();It(()=>{v&&z(window.getComputedStyle(v).zIndex)},[v]);const U=g.useCallback(H=>{H&&O.current===!0&&(R(),M==null||M(),O.current=!1)},[R,M]);return ee.jsx(NC,{scope:i,contentWrapper:p,shouldExpandOnScrollRef:y,onScrollButtonChange:U,children:ee.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:ee.jsx(Xe.div,{...a,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Gv.displayName=OC;var _C="SelectPopperPosition",Bc=g.forwardRef((n,r)=>{const{__scopeSelect:i,align:l="start",collisionPadding:a=cn,...c}=n,f=ma(i);return ee.jsx(R2,{...f,...c,ref:r,align:l,collisionPadding:a,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Bc.displayName=_C;var[NC,vd]=Si(So,{}),Uc="SelectViewport",Xv=g.forwardRef((n,r)=>{const{__scopeSelect:i,nonce:l,...a}=n,c=Wr(Uc,i),f=vd(Uc,i),p=ct(r,c.onViewportChange),h=g.useRef(0);return ee.jsxs(ee.Fragment,{children:[ee.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),ee.jsx(pa.Slot,{scope:i,children:ee.jsx(Xe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Je(a.onScroll,v=>{const w=v.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:E}=f;if(E!=null&&E.current&&x){const y=Math.abs(h.current-w.scrollTop);if(y>0){const O=window.innerHeight-cn*2,S=parseFloat(x.style.minHeight),C=parseFloat(x.style.height),P=Math.max(S,C);if(P<O){const M=P+y,R=Math.min(O,M),L=M-R;x.style.height=R+"px",x.style.bottom==="0px"&&(w.scrollTop=L>0?L:0,x.style.justifyContent="flex-end")}}}h.current=w.scrollTop})})})]})});Xv.displayName=Uc;var Zv="SelectGroup",[LC,IC]=Si(Zv),AC=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=ld();return ee.jsx(LC,{scope:i,id:a,children:ee.jsx(Xe.div,{role:"group","aria-labelledby":a,...l,ref:r})})});AC.displayName=Zv;var Jv="SelectLabel",ey=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=IC(Jv,i);return ee.jsx(Xe.div,{id:a.id,...l,ref:r})});ey.displayName=Jv;var ia="SelectItem",[DC,ty]=Si(ia),ny=g.forwardRef((n,r)=>{const{__scopeSelect:i,value:l,disabled:a=!1,textValue:c,...f}=n,p=$r(ia,i),h=Wr(ia,i),v=p.value===l,[w,x]=g.useState(c??""),[E,y]=g.useState(!1),O=ct(r,M=>{var R;return(R=h.itemRefCallback)==null?void 0:R.call(h,M,l,a)}),S=ld(),C=g.useRef("touch"),P=()=>{a||(p.onValueChange(l),p.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return ee.jsx(DC,{scope:i,value:l,disabled:a,textId:S,isSelected:v,onItemTextChange:g.useCallback(M=>{x(R=>R||((M==null?void 0:M.textContent)??"").trim())},[]),children:ee.jsx(pa.ItemSlot,{scope:i,value:l,disabled:a,textValue:w,children:ee.jsx(Xe.div,{role:"option","aria-labelledby":S,"data-highlighted":E?"":void 0,"aria-selected":v&&E,"data-state":v?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...f,ref:O,onFocus:Je(f.onFocus,()=>y(!0)),onBlur:Je(f.onBlur,()=>y(!1)),onClick:Je(f.onClick,()=>{C.current!=="mouse"&&P()}),onPointerUp:Je(f.onPointerUp,()=>{C.current==="mouse"&&P()}),onPointerDown:Je(f.onPointerDown,M=>{C.current=M.pointerType}),onPointerMove:Je(f.onPointerMove,M=>{var R;C.current=M.pointerType,a?(R=h.onItemLeave)==null||R.call(h):C.current==="mouse"&&M.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(f.onPointerLeave,M=>{var R;M.currentTarget===document.activeElement&&((R=h.onItemLeave)==null||R.call(h))}),onKeyDown:Je(f.onKeyDown,M=>{var L;((L=h.searchRef)==null?void 0:L.current)!==""&&M.key===" "||(SC.includes(M.key)&&P(),M.key===" "&&M.preventDefault())})})})})});ny.displayName=ia;var us="SelectItemText",ry=g.forwardRef((n,r)=>{const{__scopeSelect:i,className:l,style:a,...c}=n,f=$r(us,i),p=Wr(us,i),h=ty(us,i),v=bC(us,i),[w,x]=g.useState(null),E=ct(r,P=>x(P),h.onItemTextChange,P=>{var M;return(M=p.itemTextRefCallback)==null?void 0:M.call(p,P,h.value,h.disabled)}),y=w==null?void 0:w.textContent,O=g.useMemo(()=>ee.jsx("option",{value:h.value,disabled:h.disabled,children:y},h.value),[h.disabled,h.value,y]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=v;return It(()=>(S(O),()=>C(O)),[S,C,O]),ee.jsxs(ee.Fragment,{children:[ee.jsx(Xe.span,{id:h.textId,...c,ref:E}),h.isSelected&&f.valueNode&&!f.valueNodeHasChildren?xs.createPortal(c.children,f.valueNode):null]})});ry.displayName=us;var oy="SelectItemIndicator",iy=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n;return ty(oy,i).isSelected?ee.jsx(Xe.span,{"aria-hidden":!0,...l,ref:r}):null});iy.displayName=oy;var Hc="SelectScrollUpButton",sy=g.forwardRef((n,r)=>{const i=Wr(Hc,n.__scopeSelect),l=vd(Hc,n.__scopeSelect),[a,c]=g.useState(!1),f=ct(r,l.onScrollButtonChange);return It(()=>{if(i.viewport&&i.isPositioned){let p=function(){const v=h.scrollTop>0;c(v)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),a?ee.jsx(ay,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop-h.offsetHeight)}}):null});sy.displayName=Hc;var $c="SelectScrollDownButton",ly=g.forwardRef((n,r)=>{const i=Wr($c,n.__scopeSelect),l=vd($c,n.__scopeSelect),[a,c]=g.useState(!1),f=ct(r,l.onScrollButtonChange);return It(()=>{if(i.viewport&&i.isPositioned){let p=function(){const v=h.scrollHeight-h.clientHeight,w=Math.ceil(h.scrollTop)<v;c(w)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),a?ee.jsx(ay,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop+h.offsetHeight)}}):null});ly.displayName=$c;var ay=g.forwardRef((n,r)=>{const{__scopeSelect:i,onAutoScroll:l,...a}=n,c=Wr("SelectScrollButton",i),f=g.useRef(null),p=ha(i),h=g.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return g.useEffect(()=>()=>h(),[h]),It(()=>{var w;const v=p().find(x=>x.ref.current===document.activeElement);(w=v==null?void 0:v.ref.current)==null||w.scrollIntoView({block:"nearest"})},[p]),ee.jsx(Xe.div,{"aria-hidden":!0,...a,ref:r,style:{flexShrink:0,...a.style},onPointerDown:Je(a.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(l,50))}),onPointerMove:Je(a.onPointerMove,()=>{var v;(v=c.onItemLeave)==null||v.call(c),f.current===null&&(f.current=window.setInterval(l,50))}),onPointerLeave:Je(a.onPointerLeave,()=>{h()})})}),FC="SelectSeparator",uy=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n;return ee.jsx(Xe.div,{"aria-hidden":!0,...l,ref:r})});uy.displayName=FC;var Wc="SelectArrow",zC=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=ma(i),c=$r(Wc,i),f=Wr(Wc,i);return c.open&&f.position==="popper"?ee.jsx(P2,{...a,...l,ref:r}):null});zC.displayName=Wc;var jC="SelectBubbleInput",cy=g.forwardRef(({__scopeSelect:n,value:r,...i},l)=>{const a=g.useRef(null),c=ct(l,a),f=N2(r);return g.useEffect(()=>{const p=a.current;if(!p)return;const h=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(h,"value").set;if(f!==r&&w){const x=new Event("change",{bubbles:!0});w.call(p,r),p.dispatchEvent(x)}},[f,r]),ee.jsx(Xe.select,{...i,style:{...Mv,...i.style},ref:c,defaultValue:r})});cy.displayName=jC;function dy(n){return n===""||n===void 0}function fy(n){const r=go(n),i=g.useRef(""),l=g.useRef(0),a=g.useCallback(f=>{const p=i.current+f;r(p),(function h(v){i.current=v,window.clearTimeout(l.current),v!==""&&(l.current=window.setTimeout(()=>h(""),1e3))})(p)},[r]),c=g.useCallback(()=>{i.current="",window.clearTimeout(l.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(l.current),[]),[i,a,c]}function py(n,r,i){const a=r.length>1&&Array.from(r).every(v=>v===r[0])?r[0]:r,c=i?n.indexOf(i):-1;let f=BC(n,Math.max(c,0));a.length===1&&(f=f.filter(v=>v!==i));const h=f.find(v=>v.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==i?h:void 0}function BC(n,r){return n.map((i,l)=>n[(r+l)%n.length])}var mk=Bv,vk=Hv,yk=Wv,gk=Vv,wk=Qv,xk=Kv,Sk=Xv,Ck=ey,Ek=ny,kk=ry,bk=iy,Rk=sy,Pk=ly,Tk=uy;const Zh=n=>{let r;const i=new Set,l=(v,w)=>{const x=typeof v=="function"?v(r):v;if(!Object.is(x,r)){const E=r;r=w??(typeof x!="object"||x===null)?x:Object.assign({},r,x),i.forEach(y=>y(r,E))}},a=()=>r,p={setState:l,getState:a,getInitialState:()=>h,subscribe:v=>(i.add(v),()=>i.delete(v))},h=r=n(l,a,p);return p},UC=(n=>n?Zh(n):Zh),HC=n=>n;function $C(n,r=HC){const i=G.useSyncExternalStore(n.subscribe,G.useCallback(()=>r(n.getState()),[n,r]),G.useCallback(()=>r(n.getInitialState()),[n,r]));return G.useDebugValue(i),i}const Jh=n=>{const r=UC(n),i=l=>$C(r,l);return Object.assign(i,r),i},Mk=(n=>n?Jh(n):Jh);export{ak as $,rE as A,uE as B,dE as C,Hr as D,Mk as E,ZC as F,kE as G,TE as H,gk as I,YC as J,OE as K,Ck as L,AE as M,A1 as N,c1 as O,wk as P,XC as Q,mk as R,Rk as S,vk as T,KC as U,Sk as V,VC as W,qC as X,pE as Y,EE as Z,NE as _,Wm as a,BE as a$,WE as a0,qE as a1,DE as a2,pk as a3,z2 as a4,hk as a5,fk as a6,dm as a7,ok as a8,aE as a9,wE as aA,UE as aB,ek as aC,sE as aD,sk as aE,rk as aF,KE as aG,HE as aH,VE as aI,km as aJ,QC as aK,xE as aL,SE as aM,XE as aN,hE as aO,LE as aP,PE as aQ,nk as aR,YE as aS,ME as aT,vE as aU,dk as aV,ck as aW,zE as aX,It as aY,uk as aZ,IE as a_,ik as aa,yE as ab,tk as ac,bE as ad,CE as ae,GE as af,mE as ag,Qh as ah,k2 as ai,ld as aj,b2 as ak,wv as al,Tv as am,ct as an,Xe as ao,Je as ap,sd as aq,F2 as ar,jv as as,ea as at,Yx as au,ov as av,nv as aw,R2 as ax,P2 as ay,QE as az,eE as b,iE as b0,RE as b1,tE as c,lk as d,fE as e,Pk as f,xk as g,Ek as h,bk as i,ee as j,cE as k,kk as l,Tk as m,yk as n,gE as o,JE as p,FE as q,g as r,$E as s,nE as t,JC as u,oE as v,ZE as w,jE as x,_E as y,lE as z};
407
+ `)},yC=0,Xo=[];function vC(n){var r=g.useRef([]),i=g.useRef([0,0]),l=g.useRef(),a=g.useState(yC++)[0],c=g.useState(Iy)[0],f=g.useRef(n);g.useEffect(function(){f.current=n},[n]),g.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(a));var S=z2([n.lockRef.current],(n.shards||[]).map(Xh),!0).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(a))})}}},[n.inert,n.lockRef.current,n.shards]);var p=g.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!f.current.allowPinchZoom;var P=Wl(S),T=i.current,R="deltaX"in S?S.deltaX:T[0]-P[0],L="deltaY"in S?S.deltaY:T[1]-P[1],z,U=S.target,H=Math.abs(R)>Math.abs(L)?"h":"v";if("touches"in S&&H==="h"&&U.type==="range")return!1;var q=window.getSelection(),Z=q&&q.anchorNode,te=Z?Z===U||Z.contains(U):!1;if(te)return!1;var he=Yh(H,U);if(!he)return!0;if(he?z=H:(z=H==="v"?"h":"v",he=Yh(H,U)),!he)return!1;if(!l.current&&"changedTouches"in S&&(R||L)&&(l.current=z),!z)return!0;var X=l.current||z;return pC(X,C,S,X==="h"?R:L)},[]),h=g.useCallback(function(S){var C=S;if(!(!Xo.length||Xo[Xo.length-1]!==c)){var P="deltaY"in C?Gh(C):Wl(C),T=r.current.filter(function(z){return z.name===C.type&&(z.target===C.target||C.target===z.shadowParent)&&hC(z.delta,P)})[0];if(T&&T.should){C.cancelable&&C.preventDefault();return}if(!T){var R=(f.current.shards||[]).map(Xh).filter(Boolean).filter(function(z){return z.contains(C.target)}),L=R.length>0?p(C,R[0]):!f.current.noIsolation;L&&C.cancelable&&C.preventDefault()}}},[]),y=g.useCallback(function(S,C,P,T){var R={name:S,delta:C,target:P,should:T,shadowParent:gC(P)};r.current.push(R),setTimeout(function(){r.current=r.current.filter(function(L){return L!==R})},1)},[]),w=g.useCallback(function(S){i.current=Wl(S),l.current=void 0},[]),x=g.useCallback(function(S){y(S.type,Gh(S),S.target,p(S,n.lockRef.current))},[]),E=g.useCallback(function(S){y(S.type,Wl(S),S.target,p(S,n.lockRef.current))},[]);g.useEffect(function(){return Xo.push(c),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:E}),document.addEventListener("wheel",h,Go),document.addEventListener("touchmove",h,Go),document.addEventListener("touchstart",w,Go),function(){Xo=Xo.filter(function(S){return S!==c}),document.removeEventListener("wheel",h,Go),document.removeEventListener("touchmove",h,Go),document.removeEventListener("touchstart",w,Go)}},[]);var v=n.removeScrollBar,O=n.inert;return g.createElement(g.Fragment,null,O?g.createElement(c,{styles:mC(a)}):null,v?g.createElement(sC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function gC(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const wC=K2(Ay,vC);var jy=g.forwardRef(function(n,r){return g.createElement(fa,Ln({},n,{ref:r,sideCar:wC}))});jy.classNames=fa.classNames;var xC=[" ","Enter","ArrowUp","ArrowDown"],SC=[" ","Enter"],xo="Select",[pa,ha,CC]=Ix(xo),[Si]=sd(xo,[CC,wy]),ma=wy(),[EC,$r]=Si(xo),[kC,bC]=Si(xo),By=n=>{const{__scopeSelect:r,children:i,open:l,defaultOpen:a,onOpenChange:c,value:f,defaultValue:p,onValueChange:h,dir:y,name:w,autoComplete:x,disabled:E,required:v,form:O}=n,S=ma(r),[C,P]=g.useState(null),[T,R]=g.useState(null),[L,z]=g.useState(!1),U=Fx(y),[H,q]=Qh({prop:l,defaultProp:a??!1,onChange:c,caller:xo}),[Z,te]=Qh({prop:f,defaultProp:p,onChange:h,caller:xo}),he=g.useRef(null),X=C?O||!!C.closest("form"):!0,[ve,ce]=g.useState(new Set),xe=Array.from(ve).map(ae=>ae.props.value).join(";");return ee.jsx(k2,{...S,children:ee.jsxs(EC,{required:v,scope:r,trigger:C,onTriggerChange:P,valueNode:T,onValueNodeChange:R,valueNodeHasChildren:L,onValueNodeHasChildrenChange:z,contentId:ld(),value:Z,onValueChange:te,open:H,onOpenChange:q,dir:U,triggerPointerDownPosRef:he,disabled:E,children:[ee.jsx(pa.Provider,{scope:r,children:ee.jsx(kC,{scope:n.__scopeSelect,onNativeOptionAdd:g.useCallback(ae=>{ce(ie=>new Set(ie).add(ae))},[]),onNativeOptionRemove:g.useCallback(ae=>{ce(ie=>{const j=new Set(ie);return j.delete(ae),j})},[]),children:i})}),X?ee.jsxs(cv,{"aria-hidden":!0,required:v,tabIndex:-1,name:w,autoComplete:x,value:Z,onChange:ae=>te(ae.target.value),disabled:E,form:O,children:[Z===void 0?ee.jsx("option",{value:""}):null,Array.from(ve)]},xe):null]})})};By.displayName=xo;var Uy="SelectTrigger",Hy=g.forwardRef((n,r)=>{const{__scopeSelect:i,disabled:l=!1,...a}=n,c=ma(i),f=$r(Uy,i),p=f.disabled||l,h=ct(r,f.onTriggerChange),y=ha(i),w=g.useRef("touch"),[x,E,v]=fv(S=>{const C=y().filter(R=>!R.disabled),P=C.find(R=>R.value===f.value),T=pv(C,S,P);T!==void 0&&f.onValueChange(T.value)}),O=S=>{p||(f.onOpenChange(!0),v()),S&&(f.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return ee.jsx(b2,{asChild:!0,...c,children:ee.jsx(Xe.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:p,"data-disabled":p?"":void 0,"data-placeholder":dv(f.value)?"":void 0,...a,ref:h,onClick:Je(a.onClick,S=>{S.currentTarget.focus(),w.current!=="mouse"&&O(S)}),onPointerDown:Je(a.onPointerDown,S=>{w.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(O(S),S.preventDefault())}),onKeyDown:Je(a.onKeyDown,S=>{const C=x.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&E(S.key),!(C&&S.key===" ")&&xC.includes(S.key)&&(O(),S.preventDefault())})})})});Hy.displayName=Uy;var $y="SelectValue",Wy=g.forwardRef((n,r)=>{const{__scopeSelect:i,className:l,style:a,children:c,placeholder:f="",...p}=n,h=$r($y,i),{onValueNodeHasChildrenChange:y}=h,w=c!==void 0,x=ct(r,h.onValueNodeChange);return At(()=>{y(w)},[y,w]),ee.jsx(Xe.span,{...p,ref:x,style:{pointerEvents:"none"},children:dv(h.value)?ee.jsx(ee.Fragment,{children:f}):c})});Wy.displayName=$y;var RC="SelectIcon",Vy=g.forwardRef((n,r)=>{const{__scopeSelect:i,children:l,...a}=n;return ee.jsx(Xe.span,{"aria-hidden":!0,...a,ref:r,children:l||"▼"})});Vy.displayName=RC;var PC="SelectPortal",Qy=n=>ee.jsx(My,{asChild:!0,...n});Qy.displayName=PC;var So="SelectContent",Ky=g.forwardRef((n,r)=>{const i=$r(So,n.__scopeSelect),[l,a]=g.useState();if(At(()=>{a(new DocumentFragment)},[]),!i.open){const c=l;return c?xs.createPortal(ee.jsx(qy,{scope:n.__scopeSelect,children:ee.jsx(pa.Slot,{scope:n.__scopeSelect,children:ee.jsx("div",{children:n.children})})}),c):null}return ee.jsx(Yy,{...n,ref:r})});Ky.displayName=So;var cn=10,[qy,Wr]=Si(So),MC="SelectContentImpl",TC=ea("SelectContent.RemoveScroll"),Yy=g.forwardRef((n,r)=>{const{__scopeSelect:i,position:l="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:c,onPointerDownOutside:f,side:p,sideOffset:h,align:y,alignOffset:w,arrowPadding:x,collisionBoundary:E,collisionPadding:v,sticky:O,hideWhenDetached:S,avoidCollisions:C,...P}=n,T=$r(So,i),[R,L]=g.useState(null),[z,U]=g.useState(null),H=ct(r,K=>L(K)),[q,Z]=g.useState(null),[te,he]=g.useState(null),X=ha(i),[ve,ce]=g.useState(!1),xe=g.useRef(!1);g.useEffect(()=>{if(R)return F2(R)},[R]),qx();const ae=g.useCallback(K=>{const[fe,...Ce]=X().map(Oe=>Oe.ref.current),[be]=Ce.slice(-1),Me=document.activeElement;for(const Oe of K)if(Oe===Me||(Oe==null||Oe.scrollIntoView({block:"nearest"}),Oe===fe&&z&&(z.scrollTop=0),Oe===be&&z&&(z.scrollTop=z.scrollHeight),Oe==null||Oe.focus(),document.activeElement!==Me))return},[X,z]),ie=g.useCallback(()=>ae([q,R]),[ae,q,R]);g.useEffect(()=>{ve&&ie()},[ve,ie]);const{onOpenChange:j,triggerPointerDownPosRef:B}=T;g.useEffect(()=>{if(R){let K={x:0,y:0};const fe=be=>{var Me,Oe;K={x:Math.abs(Math.round(be.pageX)-(((Me=B.current)==null?void 0:Me.x)??0)),y:Math.abs(Math.round(be.pageY)-(((Oe=B.current)==null?void 0:Oe.y)??0))}},Ce=be=>{K.x<=10&&K.y<=10?be.preventDefault():R.contains(be.target)||j(!1),document.removeEventListener("pointermove",fe),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",fe),document.addEventListener("pointerup",Ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",fe),document.removeEventListener("pointerup",Ce,{capture:!0})}}},[R,j,B]),g.useEffect(()=>{const K=()=>j(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[j]);const[V,_]=fv(K=>{const fe=X().filter(Me=>!Me.disabled),Ce=fe.find(Me=>Me.ref.current===document.activeElement),be=pv(fe,K,Ce);be&&setTimeout(()=>be.ref.current.focus())}),F=g.useCallback((K,fe,Ce)=>{const be=!xe.current&&!Ce;(T.value!==void 0&&T.value===fe||be)&&(Z(K),be&&(xe.current=!0))},[T.value]),ne=g.useCallback(()=>R==null?void 0:R.focus(),[R]),re=g.useCallback((K,fe,Ce)=>{const be=!xe.current&&!Ce;(T.value!==void 0&&T.value===fe||be)&&he(K)},[T.value]),ye=l==="popper"?Bc:Gy,Se=ye===Bc?{side:p,sideOffset:h,align:y,alignOffset:w,arrowPadding:x,collisionBoundary:E,collisionPadding:v,sticky:O,hideWhenDetached:S,avoidCollisions:C}:{};return ee.jsx(qy,{scope:i,content:R,viewport:z,onViewportChange:U,itemRefCallback:F,selectedItem:q,onItemLeave:ne,itemTextRefCallback:re,focusSelectedItem:ie,selectedItemText:te,position:l,isPositioned:ve,searchRef:V,children:ee.jsx(jy,{as:TC,allowPinchZoom:!0,children:ee.jsx(oy,{asChild:!0,trapped:T.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:Je(a,K=>{var fe;(fe=T.trigger)==null||fe.focus({preventScroll:!0}),K.preventDefault()}),children:ee.jsx(ny,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:ee.jsx(ye,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:K=>K.preventDefault(),...P,...Se,onPlaced:()=>ce(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:Je(P.onKeyDown,K=>{const fe=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!fe&&K.key.length===1&&_(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let be=X().filter(Me=>!Me.disabled).map(Me=>Me.ref.current);if(["ArrowUp","End"].includes(K.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const Me=K.target,Oe=be.indexOf(Me);be=be.slice(Oe+1)}setTimeout(()=>ae(be)),K.preventDefault()}})})})})})})});Yy.displayName=MC;var OC="SelectItemAlignedPosition",Gy=g.forwardRef((n,r)=>{const{__scopeSelect:i,onPlaced:l,...a}=n,c=$r(So,i),f=Wr(So,i),[p,h]=g.useState(null),[y,w]=g.useState(null),x=ct(r,H=>w(H)),E=ha(i),v=g.useRef(!1),O=g.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:P,focusSelectedItem:T}=f,R=g.useCallback(()=>{if(c.trigger&&c.valueNode&&p&&y&&S&&C&&P){const H=c.trigger.getBoundingClientRect(),q=y.getBoundingClientRect(),Z=c.valueNode.getBoundingClientRect(),te=P.getBoundingClientRect();if(c.dir!=="rtl"){const Me=te.left-q.left,Oe=Z.left-Me,qe=H.left-Oe,dt=H.width+qe,vn=Math.max(dt,q.width),Xt=window.innerWidth-cn,Zt=Rh(Oe,[cn,Math.max(cn,Xt-vn)]);p.style.minWidth=dt+"px",p.style.left=Zt+"px"}else{const Me=q.right-te.right,Oe=window.innerWidth-Z.right-Me,qe=window.innerWidth-H.right-Oe,dt=H.width+qe,vn=Math.max(dt,q.width),Xt=window.innerWidth-cn,Zt=Rh(Oe,[cn,Math.max(cn,Xt-vn)]);p.style.minWidth=dt+"px",p.style.right=Zt+"px"}const he=E(),X=window.innerHeight-cn*2,ve=S.scrollHeight,ce=window.getComputedStyle(y),xe=parseInt(ce.borderTopWidth,10),ae=parseInt(ce.paddingTop,10),ie=parseInt(ce.borderBottomWidth,10),j=parseInt(ce.paddingBottom,10),B=xe+ae+ve+j+ie,V=Math.min(C.offsetHeight*5,B),_=window.getComputedStyle(S),F=parseInt(_.paddingTop,10),ne=parseInt(_.paddingBottom,10),re=H.top+H.height/2-cn,ye=X-re,Se=C.offsetHeight/2,K=C.offsetTop+Se,fe=xe+ae+K,Ce=B-fe;if(fe<=re){const Me=he.length>0&&C===he[he.length-1].ref.current;p.style.bottom="0px";const Oe=y.clientHeight-S.offsetTop-S.offsetHeight,qe=Math.max(ye,Se+(Me?ne:0)+Oe+ie),dt=fe+qe;p.style.height=dt+"px"}else{const Me=he.length>0&&C===he[0].ref.current;p.style.top="0px";const qe=Math.max(re,xe+S.offsetTop+(Me?F:0)+Se)+Ce;p.style.height=qe+"px",S.scrollTop=fe-re+S.offsetTop}p.style.margin=`${cn}px 0`,p.style.minHeight=V+"px",p.style.maxHeight=X+"px",l==null||l(),requestAnimationFrame(()=>v.current=!0)}},[E,c.trigger,c.valueNode,p,y,S,C,P,c.dir,l]);At(()=>R(),[R]);const[L,z]=g.useState();At(()=>{y&&z(window.getComputedStyle(y).zIndex)},[y]);const U=g.useCallback(H=>{H&&O.current===!0&&(R(),T==null||T(),O.current=!1)},[R,T]);return ee.jsx(NC,{scope:i,contentWrapper:p,shouldExpandOnScrollRef:v,onScrollButtonChange:U,children:ee.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:ee.jsx(Xe.div,{...a,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Gy.displayName=OC;var _C="SelectPopperPosition",Bc=g.forwardRef((n,r)=>{const{__scopeSelect:i,align:l="start",collisionPadding:a=cn,...c}=n,f=ma(i);return ee.jsx(R2,{...f,...c,ref:r,align:l,collisionPadding:a,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Bc.displayName=_C;var[NC,yd]=Si(So,{}),Uc="SelectViewport",Xy=g.forwardRef((n,r)=>{const{__scopeSelect:i,nonce:l,...a}=n,c=Wr(Uc,i),f=yd(Uc,i),p=ct(r,c.onViewportChange),h=g.useRef(0);return ee.jsxs(ee.Fragment,{children:[ee.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),ee.jsx(pa.Slot,{scope:i,children:ee.jsx(Xe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:p,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Je(a.onScroll,y=>{const w=y.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:E}=f;if(E!=null&&E.current&&x){const v=Math.abs(h.current-w.scrollTop);if(v>0){const O=window.innerHeight-cn*2,S=parseFloat(x.style.minHeight),C=parseFloat(x.style.height),P=Math.max(S,C);if(P<O){const T=P+v,R=Math.min(O,T),L=T-R;x.style.height=R+"px",x.style.bottom==="0px"&&(w.scrollTop=L>0?L:0,x.style.justifyContent="flex-end")}}}h.current=w.scrollTop})})})]})});Xy.displayName=Uc;var Zy="SelectGroup",[LC,AC]=Si(Zy),IC=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=ld();return ee.jsx(LC,{scope:i,id:a,children:ee.jsx(Xe.div,{role:"group","aria-labelledby":a,...l,ref:r})})});IC.displayName=Zy;var Jy="SelectLabel",ev=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=AC(Jy,i);return ee.jsx(Xe.div,{id:a.id,...l,ref:r})});ev.displayName=Jy;var ia="SelectItem",[DC,tv]=Si(ia),nv=g.forwardRef((n,r)=>{const{__scopeSelect:i,value:l,disabled:a=!1,textValue:c,...f}=n,p=$r(ia,i),h=Wr(ia,i),y=p.value===l,[w,x]=g.useState(c??""),[E,v]=g.useState(!1),O=ct(r,T=>{var R;return(R=h.itemRefCallback)==null?void 0:R.call(h,T,l,a)}),S=ld(),C=g.useRef("touch"),P=()=>{a||(p.onValueChange(l),p.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return ee.jsx(DC,{scope:i,value:l,disabled:a,textId:S,isSelected:y,onItemTextChange:g.useCallback(T=>{x(R=>R||((T==null?void 0:T.textContent)??"").trim())},[]),children:ee.jsx(pa.ItemSlot,{scope:i,value:l,disabled:a,textValue:w,children:ee.jsx(Xe.div,{role:"option","aria-labelledby":S,"data-highlighted":E?"":void 0,"aria-selected":y&&E,"data-state":y?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...f,ref:O,onFocus:Je(f.onFocus,()=>v(!0)),onBlur:Je(f.onBlur,()=>v(!1)),onClick:Je(f.onClick,()=>{C.current!=="mouse"&&P()}),onPointerUp:Je(f.onPointerUp,()=>{C.current==="mouse"&&P()}),onPointerDown:Je(f.onPointerDown,T=>{C.current=T.pointerType}),onPointerMove:Je(f.onPointerMove,T=>{var R;C.current=T.pointerType,a?(R=h.onItemLeave)==null||R.call(h):C.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(f.onPointerLeave,T=>{var R;T.currentTarget===document.activeElement&&((R=h.onItemLeave)==null||R.call(h))}),onKeyDown:Je(f.onKeyDown,T=>{var L;((L=h.searchRef)==null?void 0:L.current)!==""&&T.key===" "||(SC.includes(T.key)&&P(),T.key===" "&&T.preventDefault())})})})})});nv.displayName=ia;var us="SelectItemText",rv=g.forwardRef((n,r)=>{const{__scopeSelect:i,className:l,style:a,...c}=n,f=$r(us,i),p=Wr(us,i),h=tv(us,i),y=bC(us,i),[w,x]=g.useState(null),E=ct(r,P=>x(P),h.onItemTextChange,P=>{var T;return(T=p.itemTextRefCallback)==null?void 0:T.call(p,P,h.value,h.disabled)}),v=w==null?void 0:w.textContent,O=g.useMemo(()=>ee.jsx("option",{value:h.value,disabled:h.disabled,children:v},h.value),[h.disabled,h.value,v]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=y;return At(()=>(S(O),()=>C(O)),[S,C,O]),ee.jsxs(ee.Fragment,{children:[ee.jsx(Xe.span,{id:h.textId,...c,ref:E}),h.isSelected&&f.valueNode&&!f.valueNodeHasChildren?xs.createPortal(c.children,f.valueNode):null]})});rv.displayName=us;var ov="SelectItemIndicator",iv=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n;return tv(ov,i).isSelected?ee.jsx(Xe.span,{"aria-hidden":!0,...l,ref:r}):null});iv.displayName=ov;var Hc="SelectScrollUpButton",sv=g.forwardRef((n,r)=>{const i=Wr(Hc,n.__scopeSelect),l=yd(Hc,n.__scopeSelect),[a,c]=g.useState(!1),f=ct(r,l.onScrollButtonChange);return At(()=>{if(i.viewport&&i.isPositioned){let p=function(){const y=h.scrollTop>0;c(y)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),a?ee.jsx(av,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop-h.offsetHeight)}}):null});sv.displayName=Hc;var $c="SelectScrollDownButton",lv=g.forwardRef((n,r)=>{const i=Wr($c,n.__scopeSelect),l=yd($c,n.__scopeSelect),[a,c]=g.useState(!1),f=ct(r,l.onScrollButtonChange);return At(()=>{if(i.viewport&&i.isPositioned){let p=function(){const y=h.scrollHeight-h.clientHeight,w=Math.ceil(h.scrollTop)<y;c(w)};const h=i.viewport;return p(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[i.viewport,i.isPositioned]),a?ee.jsx(av,{...n,ref:f,onAutoScroll:()=>{const{viewport:p,selectedItem:h}=i;p&&h&&(p.scrollTop=p.scrollTop+h.offsetHeight)}}):null});lv.displayName=$c;var av=g.forwardRef((n,r)=>{const{__scopeSelect:i,onAutoScroll:l,...a}=n,c=Wr("SelectScrollButton",i),f=g.useRef(null),p=ha(i),h=g.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return g.useEffect(()=>()=>h(),[h]),At(()=>{var w;const y=p().find(x=>x.ref.current===document.activeElement);(w=y==null?void 0:y.ref.current)==null||w.scrollIntoView({block:"nearest"})},[p]),ee.jsx(Xe.div,{"aria-hidden":!0,...a,ref:r,style:{flexShrink:0,...a.style},onPointerDown:Je(a.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(l,50))}),onPointerMove:Je(a.onPointerMove,()=>{var y;(y=c.onItemLeave)==null||y.call(c),f.current===null&&(f.current=window.setInterval(l,50))}),onPointerLeave:Je(a.onPointerLeave,()=>{h()})})}),FC="SelectSeparator",uv=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n;return ee.jsx(Xe.div,{"aria-hidden":!0,...l,ref:r})});uv.displayName=FC;var Wc="SelectArrow",zC=g.forwardRef((n,r)=>{const{__scopeSelect:i,...l}=n,a=ma(i),c=$r(Wc,i),f=Wr(Wc,i);return c.open&&f.position==="popper"?ee.jsx(P2,{...a,...l,ref:r}):null});zC.displayName=Wc;var jC="SelectBubbleInput",cv=g.forwardRef(({__scopeSelect:n,value:r,...i},l)=>{const a=g.useRef(null),c=ct(l,a),f=N2(r);return g.useEffect(()=>{const p=a.current;if(!p)return;const h=window.HTMLSelectElement.prototype,w=Object.getOwnPropertyDescriptor(h,"value").set;if(f!==r&&w){const x=new Event("change",{bubbles:!0});w.call(p,r),p.dispatchEvent(x)}},[f,r]),ee.jsx(Xe.select,{...i,style:{...Ty,...i.style},ref:c,defaultValue:r})});cv.displayName=jC;function dv(n){return n===""||n===void 0}function fv(n){const r=go(n),i=g.useRef(""),l=g.useRef(0),a=g.useCallback(f=>{const p=i.current+f;r(p),(function h(y){i.current=y,window.clearTimeout(l.current),y!==""&&(l.current=window.setTimeout(()=>h(""),1e3))})(p)},[r]),c=g.useCallback(()=>{i.current="",window.clearTimeout(l.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(l.current),[]),[i,a,c]}function pv(n,r,i){const a=r.length>1&&Array.from(r).every(y=>y===r[0])?r[0]:r,c=i?n.indexOf(i):-1;let f=BC(n,Math.max(c,0));a.length===1&&(f=f.filter(y=>y!==i));const h=f.find(y=>y.textValue.toLowerCase().startsWith(a.toLowerCase()));return h!==i?h:void 0}function BC(n,r){return n.map((i,l)=>n[(r+l)%n.length])}var yk=By,vk=Hy,gk=Wy,wk=Vy,xk=Qy,Sk=Ky,Ck=Xy,Ek=ev,kk=nv,bk=rv,Rk=iv,Pk=sv,Mk=lv,Tk=uv;const Zh=n=>{let r;const i=new Set,l=(y,w)=>{const x=typeof y=="function"?y(r):y;if(!Object.is(x,r)){const E=r;r=w??(typeof x!="object"||x===null)?x:Object.assign({},r,x),i.forEach(v=>v(r,E))}},a=()=>r,p={setState:l,getState:a,getInitialState:()=>h,subscribe:y=>(i.add(y),()=>i.delete(y))},h=r=n(l,a,p);return p},UC=(n=>n?Zh(n):Zh),HC=n=>n;function $C(n,r=HC){const i=G.useSyncExternalStore(n.subscribe,G.useCallback(()=>r(n.getState()),[n,r]),G.useCallback(()=>r(n.getInitialState()),[n,r]));return G.useDebugValue(i),i}const Jh=n=>{const r=UC(n),i=l=>$C(r,l);return Object.assign(i,r),i},Ok=(n=>n?Jh(n):Jh);export{uk as $,rE as A,uE as B,fE as C,lE as D,Hr as E,Ok as F,bE as G,TE as H,wk as I,ZC as J,_E as K,Ek as L,DE as M,I1 as N,qC as O,xk as P,XC as Q,yk as R,Pk as S,vk as T,c1 as U,Ck as V,KC as W,VC as X,YC as Y,hE as Z,kE as _,Wm as a,IE as a$,LE as a0,VE as a1,FE as a2,hk as a3,z2 as a4,mk as a5,pk as a6,dm as a7,ik as a8,aE as a9,ld as aA,ct as aB,Xe as aC,Je as aD,b2 as aE,wy as aF,My as aG,sd as aH,F2 as aI,jy as aJ,ea as aK,qx as aL,oy as aM,ny as aN,R2 as aO,P2 as aP,AE as aQ,ME as aR,rk as aS,YE as aT,OE as aU,vE as aV,fk as aW,dk as aX,jE as aY,ck as aZ,At as a_,sk as aa,gE as ab,nk as ac,RE as ad,EE as ae,XE as af,yE as ag,KE as ah,xE as ai,HE as aj,tk as ak,sE as al,cE as am,lk as an,ok as ao,qE as ap,$E as aq,QE as ar,km as as,QC as at,SE as au,CE as av,ZE as aw,mE as ax,Qh as ay,k2 as az,eE as b,UE as b0,iE as b1,PE as b2,tE as c,ak as d,pE as e,Mk as f,Sk as g,kk as h,Rk as i,ee as j,dE as k,bk as l,Tk as m,gk as n,wE as o,ek as p,GE as q,g as r,zE as s,nE as t,JC as u,WE as v,oE as w,JE as x,BE as y,NE as z};