@becomeopc/trendpublish 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dashboard/assets/-association-list-CpJphL0B.js +1 -0
- package/dashboard/assets/-channel-templates-COQosj8a.js +6 -0
- package/dashboard/assets/-content-package-preview-DeF-8PPH.js +1 -0
- package/dashboard/assets/-editor-page-BISl-fTZ.js +1 -0
- package/dashboard/assets/-run-detail-view-DMxo9b8x.js +12 -0
- package/dashboard/assets/{-run-presentation-e-aAMUOA.js → -run-presentation-Dhp1MLMP.js} +1 -1
- package/dashboard/assets/AnimatePresence-DzUloIx0.js +9 -0
- package/dashboard/assets/_app-rmP4sHWt.js +1 -0
- package/dashboard/assets/arrow-left-D5-ez4tP.js +1 -0
- package/dashboard/assets/arrow-right-BUTx8i5Q.js +1 -0
- package/dashboard/assets/articles-Bn3Z1siU.js +1 -0
- package/dashboard/assets/automations-DMZkw8g6.js +2 -0
- package/dashboard/assets/connections-Dfyth9tv.js +1 -0
- package/dashboard/assets/content-plans-me2sZDLU.js +1 -0
- package/dashboard/assets/content-plans_._planId.edit-7BHuv528.js +1 -0
- package/dashboard/assets/content-plans_.new-7BHuv528.js +1 -0
- package/dashboard/assets/copy-B-eZtbzt.js +1 -0
- package/dashboard/assets/dropdown-menu-DAjCMI6K.js +1 -0
- package/dashboard/assets/eye-BSHReAUR.js +1 -0
- package/dashboard/assets/file-text-CfJolIKb.js +1 -0
- package/dashboard/assets/fingerprint-pattern-ISviPnO_.js +1 -0
- package/dashboard/assets/identities-CIy7Q2wP.js +3 -0
- package/dashboard/assets/index-BoLpab45.css +2 -0
- package/dashboard/assets/index-DhKRJHPQ.js +51 -0
- package/dashboard/assets/jobs-CMViOJeL.js +1 -0
- package/dashboard/assets/jobs_._runId-CA8TTEqw.js +1 -0
- package/dashboard/assets/knowledge-DQcgNI2r.js +1 -0
- package/dashboard/assets/layers-CWm3FyHG.js +1 -0
- package/dashboard/assets/layout-template-yIjk7F-q.js +1 -0
- package/dashboard/assets/library-BUCfApCB.js +1 -0
- package/dashboard/assets/newspaper-DPOzKLbY.js +1 -0
- package/dashboard/assets/play-BstQsP-v.js +1 -0
- package/dashboard/assets/publication-destination-picker-CJuQVZ8Z.js +1 -0
- package/dashboard/assets/publishing-PmNqeFKZ.js +1 -0
- package/dashboard/assets/publishing_.styles-B3gViZHT.js +1 -0
- package/dashboard/assets/publishing_.templates-DyfaO52q.js +1 -0
- package/dashboard/assets/{publishing_.templates_.sessions._sessionId-BKbSHrpn.js → publishing_.templates_.sessions._sessionId-C32Beg6R.js} +1 -1
- package/dashboard/assets/radio-tower-lWqWRAVm.js +1 -0
- package/dashboard/assets/routes-BnBNI1ke.js +1 -0
- package/dashboard/assets/runs-CKnSOKv4.js +1 -0
- package/dashboard/assets/settings-COO33aq9.js +1 -0
- package/dashboard/assets/shield-check-BssN3Hif.js +1 -0
- package/dashboard/assets/sources-IjjBA3jh.js +1 -0
- package/dashboard/assets/{sse-_t5PeRmk.js → sse-pzRA-f9J.js} +1 -1
- package/dashboard/assets/tabs-BoQLEzMe.js +1 -0
- package/dashboard/assets/trash-2-CURppE4-.js +1 -0
- package/dashboard/assets/use-onboarding-CGXnn74b.js +1 -0
- package/dashboard/assets/use-workspace-snapshot-CQHMnuFv.js +1 -0
- package/dashboard/assets/workspace-BpJcl3Mc.js +1 -0
- package/dashboard/assets/wrench-DEPBG9g2.js +1 -0
- package/dashboard/index.html +2 -2
- package/dist/app.js +10161 -2490
- package/drizzle/0002_clumsy_loki.sql +33 -0
- package/drizzle/0003_bumpy_edwin_jarvis.sql +1 -0
- package/drizzle/meta/0002_snapshot.json +2510 -0
- package/drizzle/meta/0003_snapshot.json +2517 -0
- package/drizzle/meta/_journal.json +14 -0
- package/package.json +10 -1
- package/dashboard/assets/-association-list-CE--B0dM.js +0 -1
- package/dashboard/assets/-channel-templates-CdLCNDrC.js +0 -6
- package/dashboard/assets/-content-package-preview-DC4PLY9G.js +0 -1
- package/dashboard/assets/-editor-page-CS5uk_2L.js +0 -1
- package/dashboard/assets/-run-detail-view-Csh1ek6d.js +0 -12
- package/dashboard/assets/AnimatePresence-OeIRE0Xw.js +0 -9
- package/dashboard/assets/_app-Bci0KgUT.js +0 -1
- package/dashboard/assets/app-dialog-ChNc5zc0.js +0 -1
- package/dashboard/assets/arrow-left-BQWrTPzt.js +0 -1
- package/dashboard/assets/arrow-right-Da_6qwwr.js +0 -1
- package/dashboard/assets/articles-Bw-jie6T.js +0 -1
- package/dashboard/assets/automations-JF7dpk0H.js +0 -2
- package/dashboard/assets/check-C6hl-XsU.js +0 -1
- package/dashboard/assets/chevron-down-DXrCAjpz.js +0 -1
- package/dashboard/assets/chevron-right-okm7Mcup.js +0 -1
- package/dashboard/assets/connections-D_OfbK5O.js +0 -1
- package/dashboard/assets/content-plans-CmaGhnXT.js +0 -1
- package/dashboard/assets/content-plans_._planId.edit-BPCAxR7I.js +0 -1
- package/dashboard/assets/content-plans_.new-BPCAxR7I.js +0 -1
- package/dashboard/assets/copy-CWp2fj5q.js +0 -1
- package/dashboard/assets/dropdown-menu-BR9kBDP8.js +0 -1
- package/dashboard/assets/entity-list-C7fEITZj.js +0 -1
- package/dashboard/assets/eye-Drma9Anf.js +0 -1
- package/dashboard/assets/file-text-BSOvvVFv.js +0 -1
- package/dashboard/assets/fingerprint-pattern-C_dvDw0n.js +0 -1
- package/dashboard/assets/flask-conical-DpX8Ww6S.js +0 -1
- package/dashboard/assets/form-field-BbOl9sGR.js +0 -1
- package/dashboard/assets/identities-B2SMnjY3.js +0 -3
- package/dashboard/assets/index-DC7b8xgR.js +0 -51
- package/dashboard/assets/index-pqOc3FQv.css +0 -2
- package/dashboard/assets/input-D7j_2GhD.js +0 -1
- package/dashboard/assets/jobs-WwmifsK9.js +0 -1
- package/dashboard/assets/jobs_._runId-BZsBpBT-.js +0 -1
- package/dashboard/assets/knowledge-CnqdN8mY.js +0 -1
- package/dashboard/assets/layers-BHAmPdjS.js +0 -1
- package/dashboard/assets/layout-template-_-9A39QH.js +0 -1
- package/dashboard/assets/library-Bo-F96xG.js +0 -1
- package/dashboard/assets/newspaper-Dcqy9j6N.js +0 -1
- package/dashboard/assets/notifications-Dlx9WRAf.js +0 -1
- package/dashboard/assets/page-grid-x4teY0Qb.js +0 -1
- package/dashboard/assets/pagination-BIxivGX2.js +0 -1
- package/dashboard/assets/play-CqRcIakP.js +0 -1
- package/dashboard/assets/plus-Cgi-AlzH.js +0 -1
- package/dashboard/assets/publication-destination-picker-p0aE3sNP.js +0 -1
- package/dashboard/assets/publishing-DYavJU0X.js +0 -1
- package/dashboard/assets/publishing_.styles-DfbwPHCg.js +0 -1
- package/dashboard/assets/publishing_.templates-DoOVohr6.js +0 -1
- package/dashboard/assets/radio-tower-tBHGxqPI.js +0 -1
- package/dashboard/assets/react-ByivFozR.js +0 -1
- package/dashboard/assets/routes-zvPXw-Ia.js +0 -1
- package/dashboard/assets/runs-DiLk0fOQ.js +0 -1
- package/dashboard/assets/select-BUT5ahxS.js +0 -1
- package/dashboard/assets/settings-BZ3KUyq9.js +0 -1
- package/dashboard/assets/sources-DaQA2K6Y.js +0 -1
- package/dashboard/assets/sparkles-ws1IsiGt.js +0 -1
- package/dashboard/assets/src-DVp5YM1T.js +0 -1
- package/dashboard/assets/tabs-DT--ZcFL.js +0 -1
- package/dashboard/assets/textarea-B7N7g6fl.js +0 -1
- package/dashboard/assets/trash-2-C3dbRhyb.js +0 -1
- package/dashboard/assets/types-D57tnOAh.js +0 -1
- package/dashboard/assets/use-onboarding-muxucTEZ.js +0 -1
- package/dashboard/assets/use-workspace-snapshot-CZmWKC_d.js +0 -1
- package/dashboard/assets/useMutation-C221JCx3.js +0 -1
- package/dashboard/assets/useQuery-CH_PyDWC.js +0 -1
- package/dashboard/assets/workspace-DGt_GyLc.js +0 -1
- package/dashboard/assets/wrench-BHwKK2nB.js +0 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-BnBNI1ke.js","assets/rolldown-runtime-DoHqwKmD.js","assets/arrow-right-BUTx8i5Q.js","assets/play-BstQsP-v.js","assets/shield-check-BssN3Hif.js","assets/layers-CWm3FyHG.js","assets/radio-tower-lWqWRAVm.js","assets/_app-rmP4sHWt.js","assets/fingerprint-pattern-ISviPnO_.js","assets/layout-template-yIjk7F-q.js","assets/use-onboarding-CGXnn74b.js","assets/execution-Brd94hIY.js","assets/use-workspace-snapshot-CQHMnuFv.js","assets/newspaper-DPOzKLbY.js","assets/automations-DMZkw8g6.js","assets/content-plans-me2sZDLU.js","assets/copy-B-eZtbzt.js","assets/eye-BSHReAUR.js","assets/identities-CIy7Q2wP.js","assets/jobs-CMViOJeL.js","assets/runs-CKnSOKv4.js","assets/sse-pzRA-f9J.js","assets/-run-presentation-Dhp1MLMP.js","assets/knowledge-DQcgNI2r.js","assets/file-text-CfJolIKb.js","assets/library-BUCfApCB.js","assets/articles-Bn3Z1siU.js","assets/publication-destination-picker-CJuQVZ8Z.js","assets/-content-package-preview-DeF-8PPH.js","assets/publishing-PmNqeFKZ.js","assets/arrow-left-D5-ez4tP.js","assets/AnimatePresence-DzUloIx0.js","assets/-association-list-CpJphL0B.js","assets/trash-2-CURppE4-.js","assets/dropdown-menu-DAjCMI6K.js","assets/settings-COO33aq9.js","assets/sources-IjjBA3jh.js","assets/workspace-BpJcl3Mc.js","assets/content-plans_.new-7BHuv528.js","assets/-editor-page-BISl-fTZ.js","assets/tabs-BoQLEzMe.js","assets/-run-detail-view-DMxo9b8x.js","assets/wrench-DEPBG9g2.js","assets/jobs_._runId-CA8TTEqw.js","assets/publishing_.styles-B3gViZHT.js","assets/publishing_.templates-DyfaO52q.js","assets/-channel-templates-COQosj8a.js","assets/content-plans_._planId.edit-7BHuv528.js","assets/publishing_.templates_.sessions._sessionId-C32Beg6R.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e,i as t,n,r,t as i}from"./rolldown-runtime-DoHqwKmD.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var a=i((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function ne(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function A(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,A(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+te(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),A(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+te(a,u),c+=A(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+te(a,u++),c+=A(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return A(ne(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function re(e,t,n){if(e==null)return e;var r=[],i=0;return A(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var j=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},M={map:re,forEach:function(e,t,n){re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return re(e,function(){t++}),t},toArray:function(e){return re(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=M,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ie}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,j)}catch(e){j(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.6`})),o=i(((e,t)=>{t.exports=a()})),s=i((e=>{function t(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{e:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{t:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break t}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break e}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,k=ee.port2;ee.port1.onmessage=D,O=function(){k.postMessage(null)}}else O=function(){_(D,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=0x3fffffff;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),c=i(((e,t)=>{t.exports=s()})),l=i((e=>{var t=o();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=i.p;try{if(c.T=null,i.p=2,e)return e()}finally{c.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=l(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.6`})),u=i(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=l()})),d=i((e=>{var t=c(),n=o(),r=u();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function l(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 d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(s(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return f(a),e;if(o===r)return f(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var c=!1,l=a.child;l;){if(l===n){c=!0,n=a,r=o;break}if(l===r){c=!0,r=a,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=a;break}if(l===r){c=!0,r=o,n=a;break}l=l.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),k=Symbol.for(`react.memo_cache_sentinel`),te=Symbol.iterator;function ne(e){return typeof e!=`object`||!e?null:(e=te&&e[te]||e[`@@iterator`],typeof e==`function`?e:null)}var A=Symbol.for(`react.client.reference`);function re(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===A?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case ee:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?re(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ie=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},oe=[],se=-1;function ce(e){return{current:e}}function N(e){0>se||(e.current=oe[se],oe[se]=null,se--)}function le(e,t){se++,oe[se]=e.current,e.current=t}var ue=ce(null),de=ce(null),fe=ce(null),pe=ce(null);function me(e,t){switch(le(fe,t),le(de,e),le(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?tf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=tf(t),e=nf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}N(ue),le(ue,e)}function he(){N(ue),N(de),N(fe)}function ge(e){e.memoizedState!==null&&le(pe,e);var t=ue.current,n=nf(t,e.type);t!==n&&(le(de,e),le(ue,n))}function _e(e){de.current===e&&(N(ue),N(de)),pe.current===e&&(N(pe),fp._currentValue=ae)}var ve,ye;function be(e){if(ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||``,ye=-1<e.stack.indexOf(`
|
|
3
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
+
`+ve+e+ye}var xe=!1;function Se(e,t){if(!e||xe)return``;xe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
+
`),l=s.split(`
|
|
6
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{xe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?be(n):``}function Ce(e,t){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be(`Lazy`);case 13:return e.child!==t&&t!==null?be(`Suspense Fallback`):be(`Suspense`);case 19:return be(`SuspenseList`);case 0:case 15:return Se(e.type,!1);case 11:return Se(e.type.render,!1);case 1:return Se(e.type,!0);case 31:return be(`Activity`);default:return``}}function we(e){try{var t=``,n=null;do t+=Ce(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
+
Error generating stack: `+e.message+`
|
|
9
|
+
`+e.stack}}var Te=Object.prototype.hasOwnProperty,Ee=t.unstable_scheduleCallback,De=t.unstable_cancelCallback,Oe=t.unstable_shouldYield,ke=t.unstable_requestPaint,Ae=t.unstable_now,je=t.unstable_getCurrentPriorityLevel,Me=t.unstable_ImmediatePriority,Ne=t.unstable_UserBlockingPriority,Pe=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Le=t.log,Re=t.unstable_setDisableYieldValue,ze=null,Be=null;function Ve(e){if(typeof Le==`function`&&Re(e),Be&&typeof Be.setStrictMode==`function`)try{Be.setStrictMode(ze,e)}catch{}}var He=Math.clz32?Math.clz32:Ge,Ue=Math.log,We=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(Ue(e)/We|0)|0}var Ke=256,qe=262144,Je=4194304;function Ye(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 0x8000000:return 0x8000000;case 268435456:return 268435456;case 536870912:return 536870912;case 0x40000000:return 0;default:return e}}function Xe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&0x7ffffff;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ye(n))):i=Ye(o):i=Ye(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ye(n))):i=Ye(o)):i=Ye(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function $e(){var e=Je;return Je<<=1,!(Je&62914560)&&(Je=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-He(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&rt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function rt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-He(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|0x40000000|n&261930}function it(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-He(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function at(e,t){var n=t&-t;return n=n&42?1:ot(n),(n&(e.suspendedLanes|t))===0?n:0}function ot(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=0x8000000;break;default:e=0}return e}function st(e){return e&=-e,2<e?8<e?e&0x7ffffff?32:268435456:8:2}function ct(){var e=M.p;return e===0?(e=window.event,e===void 0?32:Op(e.type)):e}function lt(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}var ut=Math.random().toString(36).slice(2),dt=`__reactFiber$`+ut,ft=`__reactProps$`+ut,pt=`__reactContainer$`+ut,mt=`__reactEvents$`+ut,ht=`__reactListeners$`+ut,gt=`__reactHandles$`+ut,_t=`__reactResources$`+ut,vt=`__reactMarker$`+ut;function yt(e){delete e[dt],delete e[ft],delete e[mt],delete e[ht],delete e[gt]}function bt(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pt]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Tf(e);e!==null;){if(n=e[dt])return n;e=Tf(e)}return t}e=n,n=e.parentNode}return null}function xt(e){if(e=e[dt]||e[pt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function St(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ct(e){var t=e[_t];return t||=e[_t]={hoistableStyles:new Map,hoistableScripts:new Map},t}function wt(e){e[vt]=!0}var Tt=new Set,Et={};function Dt(e,t){Ot(e,t),Ot(e+`Capture`,t)}function Ot(e,t){for(Et[e]=t,e=0;e<t.length;e++)Tt.add(t[e])}var kt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),At={},jt={};function Mt(e){return Te.call(jt,e)?!0:Te.call(At,e)?!1:kt.test(e)?jt[e]=!0:(At[e]=!0,!1)}function Nt(e,t,n){if(Mt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function Pt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Ft(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function It(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:case`object`:return e;default:return``}}function Lt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Rt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zt(e){if(!e._valueTracker){var t=Lt(e)?`checked`:`value`;e._valueTracker=Rt(e,t,``+e[t])}}function Bt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Lt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Vt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ht=/[\n"\\]/g;function Ut(e){return e.replace(Ht,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Wt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+It(t)):e.value!==``+It(t)&&(e.value=``+It(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Kt(e,o,It(n)):Kt(e,o,It(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+It(s):e.removeAttribute(`name`)}function Gt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){zt(e);return}n=n==null?``:``+It(n),t=t==null?n:``+It(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),zt(e)}function Kt(e,t,n){t===`number`&&Vt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function qt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+It(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Jt(e,t,n){t!=null&&(t=``+It(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+It(n)}function Yt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ie(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=It(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),zt(e)}function Xt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Qt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Zt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function $t(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Qt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Qt(e,o,t[o])}function en(e){if(e.indexOf(`-`)===-1)return!1;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 tn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),nn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function rn(e){return nn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function an(){}var on=null;function sn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cn=null,ln=null;function un(e){var t=xt(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;switch(e=t.stateNode,t.type){case`input`:if(Wt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Ut(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ft]||null;if(!a)throw Error(i(90));Wt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Bt(r)}break;case`textarea`:Jt(e,n.value,n.defaultValue);break;case`select`:t=n.value,t!=null&&qt(e,!!n.multiple,t,!1)}}}var dn=!1;function fn(e,t,n){if(dn)return e(t,n);dn=!0;try{return e(t)}finally{if(dn=!1,(cn!==null||ln!==null)&&(Mu(),cn&&(t=cn,e=ln,ln=cn=null,un(t),e)))for(t=0;t<e.length;t++)un(e[t])}}function pn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ft]||null;if(r===null)return null;switch(n=r[t],t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var mn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,hn=!1;if(mn)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){hn=!0}}),window.addEventListener(`test`,gn,gn),window.removeEventListener(`test`,gn,gn)}catch{hn=!1}var _n=null,vn=null,yn=null;function bn(){if(yn)return yn;var e,t=vn,n=t.length,r,i=`value`in _n?_n.value:_n.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return yn=i.slice(e,1<r?1-r:void 0)}function xn(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 Sn(){return!0}function Cn(){return!1}function wn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Sn:Cn,this.isPropagationStopped=Cn,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Sn)},persist:function(){},isPersistent:Sn}),t}var Tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},En=wn(Tn),Dn=h({},Tn,{view:0,detail:0}),On=wn(Dn),kn,An,jn,Mn=h({},Dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hn,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!==jn&&(jn&&e.type===`mousemove`?(kn=e.screenX-jn.screenX,An=e.screenY-jn.screenY):An=kn=0,jn=e),kn)},movementY:function(e){return`movementY`in e?e.movementY:An}}),Nn=wn(Mn),Pn=wn(h({},Mn,{dataTransfer:0})),Fn=wn(h({},Dn,{relatedTarget:0})),In=wn(h({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0})),Ln=wn(h({},Tn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),P=wn(h({},Tn,{data:0})),Rn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},zn={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`},Bn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bn[e])?!!t[e]:!1}function Hn(){return Vn}var Un=wn(h({},Dn,{key:function(e){if(e.key){var t=Rn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=xn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?zn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hn,charCode:function(e){return e.type===`keypress`?xn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?xn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Wn=wn(h({},Mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Gn=wn(h({},Dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hn})),Kn=wn(h({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),qn=wn(h({},Mn,{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})),Jn=wn(h({},Tn,{newState:0,oldState:0})),Yn=[9,13,27,32],Xn=mn&&`CompositionEvent`in window,Zn=null;mn&&`documentMode`in document&&(Zn=document.documentMode);var Qn=mn&&`TextEvent`in window&&!Zn,$n=mn&&(!Xn||Zn&&8<Zn&&11>=Zn),er=` `,tr=!1;function nr(e,t){switch(e){case`keyup`:return Yn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function rr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ir=!1;function ar(e,t){switch(e){case`compositionend`:return rr(t);case`keypress`:return t.which===32?(tr=!0,er):null;case`textInput`:return e=t.data,e===er&&tr?null:e;default:return null}}function or(e,t){if(ir)return e===`compositionend`||!Xn&&nr(e,t)?(e=bn(),yn=vn=_n=null,ir=!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 $n&&t.locale!==`ko`?null:t.data;default:return null}}var sr={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 cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!sr[e.type]:t===`textarea`}function lr(e,t,n,r){cn?ln?ln.push(r):ln=[r]:cn=r,t=zd(t,`onChange`),0<t.length&&(n=new En(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ur=null,dr=null;function fr(e){Md(e,0)}function pr(e){if(Bt(St(e)))return e}function mr(e,t){if(e===`change`)return t}var hr=!1;if(mn){var gr;if(mn){var _r=`oninput`in document;if(!_r){var vr=document.createElement(`div`);vr.setAttribute(`oninput`,`return;`),_r=typeof vr.oninput==`function`}gr=_r}else gr=!1;hr=gr&&(!document.documentMode||9<document.documentMode)}function yr(){ur&&(ur.detachEvent(`onpropertychange`,br),dr=ur=null)}function br(e){if(e.propertyName===`value`&&pr(dr)){var t=[];lr(t,dr,e,sn(e)),fn(fr,t)}}function xr(e,t,n){e===`focusin`?(yr(),ur=t,dr=n,ur.attachEvent(`onpropertychange`,br)):e===`focusout`&&yr()}function Sr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return pr(dr)}function Cr(e,t){if(e===`click`)return pr(t)}function wr(e,t){if(e===`input`||e===`change`)return pr(t)}function Tr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Er=typeof Object.is==`function`?Object.is:Tr;function Dr(e,t){if(Er(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Te.call(t,i)||!Er(e[i],t[i]))return!1}return!0}function Or(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kr(e,t){var n=Or(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Or(n)}}function Ar(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ar(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vt(e.document)}return t}function Mr(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`)}var Nr=mn&&`documentMode`in document&&11>=document.documentMode,Pr=null,Fr=null,Ir=null,Lr=!1;function Rr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lr||Pr==null||Pr!==Vt(r)||(r=Pr,`selectionStart`in r&&Mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ir&&Dr(Ir,r)||(Ir=r,r=zd(Fr,`onSelect`),0<r.length&&(t=new En(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Pr)))}function zr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Br={animationend:zr(`Animation`,`AnimationEnd`),animationiteration:zr(`Animation`,`AnimationIteration`),animationstart:zr(`Animation`,`AnimationStart`),transitionrun:zr(`Transition`,`TransitionRun`),transitionstart:zr(`Transition`,`TransitionStart`),transitioncancel:zr(`Transition`,`TransitionCancel`),transitionend:zr(`Transition`,`TransitionEnd`)},Vr={},Hr={};mn&&(Hr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),`TransitionEvent`in window||delete Br.transitionend.transition);function Ur(e){if(Vr[e])return Vr[e];if(!Br[e])return e;var t=Br[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hr)return Vr[e]=t[n];return e}var Wr=Ur(`animationend`),Gr=Ur(`animationiteration`),Kr=Ur(`animationstart`),qr=Ur(`transitionrun`),Jr=Ur(`transitionstart`),Yr=Ur(`transitioncancel`),Xr=Ur(`transitionend`),Zr=new Map,Qr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Qr.push(`scrollEnd`);function $r(e,t){Zr.set(e,t),Dt(t,[e])}var ei=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ti=[],ni=0,ri=0;function ii(){for(var e=ni,t=ri=ni=0;t<e;){var n=ti[t];ti[t++]=null;var r=ti[t];ti[t++]=null;var i=ti[t];ti[t++]=null;var a=ti[t];if(ti[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ci(n,i,a)}}function ai(e,t,n,r){ti[ni++]=e,ti[ni++]=t,ti[ni++]=n,ti[ni++]=r,ri|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function oi(e,t,n,r){return ai(e,t,n,r),li(e)}function si(e,t){return ai(e,null,null,t),li(e)}function ci(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-He(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function li(e){if(50<Cu)throw Cu=0,wu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ui={};function di(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fi(e,t,n,r){return new di(e,t,n,r)}function pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mi(e,t){var n=e.alternate;return n===null?(n=fi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function hi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function gi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)pi(e)&&(s=1);else if(typeof e==`string`)s=rp(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else e:switch(e){case ee:return e=fi(31,n,t,a),e.elementType=ee,e.lanes=o,e;case y:return _i(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=fi(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=fi(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=fi(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break e;case S:s=9;break e;case w:s=11;break e;case D:s=14;break e;case O:s=16,r=null;break e}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=fi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function _i(e,t,n,r){return e=fi(7,e,r,t),e.lanes=n,e}function vi(e,t,n){return e=fi(6,e,null,t),e.lanes=n,e}function yi(e){var t=fi(18,null,null,0);return t.stateNode=e,t}function bi(e,t,n){return t=fi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xi=new WeakMap;function Si(e,t){if(typeof e==`object`&&e){var n=xi.get(e);return n===void 0?(t={value:e,source:t,stack:we(t)},xi.set(e,t),t):n}return{value:e,source:t,stack:we(t)}}var Ci=[],wi=0,Ti=null,Ei=0,Di=[],Oi=0,ki=null,Ai=1,ji=``;function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Ti,Ti=e,Ei=t}function Ni(e,t,n){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,ki=e;var r=Ai;e=ji;var i=32-He(r)-1;r&=~(1<<i),n+=1;var a=32-He(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ai=1<<32-He(t)+i|n<<i|r,ji=a+e}else Ai=1<<a|n<<i|r,ji=e}function Pi(e){e.return!==null&&(Mi(e,1),Ni(e,1,0))}function Fi(e){for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null;for(;e===ki;)ki=Di[--Oi],Di[Oi]=null,ji=Di[--Oi],Di[Oi]=null,Ai=Di[--Oi],Di[Oi]=null}function Ii(e,t){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,Ai=t.id,ji=t.overflow,ki=e}var Li=null,Ri=null,F=!1,zi=null,Bi=!1,Vi=Error(i(519));function Hi(e){throw Ji(Si(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Vi}function Ui(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[dt]=e,t[ft]=r,n){case`dialog`:z(`cancel`,t),z(`close`,t);break;case`iframe`:case`object`:case`embed`:z(`load`,t);break;case`video`:case`audio`:for(n=0;n<Ad.length;n++)z(Ad[n],t);break;case`source`:z(`error`,t);break;case`img`:case`image`:case`link`:z(`error`,t),z(`load`,t);break;case`details`:z(`toggle`,t);break;case`input`:z(`invalid`,t),Gt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:z(`invalid`,t);break;case`textarea`:z(`invalid`,t),Yt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Gd(t.textContent,n)?(r.popover!=null&&(z(`beforetoggle`,t),z(`toggle`,t)),r.onScroll!=null&&z(`scroll`,t),r.onScrollEnd!=null&&z(`scrollend`,t),r.onClick!=null&&(t.onclick=an),t=!0):t=!1,t||Hi(e,!0)}function Wi(e){for(Li=e.return;Li;)switch(Li.tag){case 5:case 31:case 13:Bi=!1;return;case 27:case 3:Bi=!0;return;default:Li=Li.return}}function Gi(e){if(e!==Li)return!1;if(!F)return Wi(e),F=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||rf(e.type,e.memoizedProps)),n=!n),n&&Ri&&Hi(e),Wi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ri=wf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ri=wf(e)}else t===27?(t=Ri,ff(e.type)?(e=Cf,Cf=null,Ri=e):Ri=t):Ri=Li?Sf(e.stateNode.nextSibling):null;return!0}function Ki(){Ri=Li=null,F=!1}function qi(){var e=zi;return e!==null&&(lu===null?lu=e:lu.push.apply(lu,e),zi=null),e}function Ji(e){zi===null?zi=[e]:zi.push(e)}var Yi=ce(null),Xi=null,Zi=null;function Qi(e,t,n){le(Yi,t._currentValue),t._currentValue=n}function $i(e){e._currentValue=Yi.current,N(Yi)}function ea(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ta(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;e:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ea(o.return,n,e),r||(s=null);break e}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ea(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function na(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Er(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===pe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[fp]:e.push(fp))}a=a.return}e!==null&&ta(t,e,n,r),t.flags|=262144}function ra(e){for(e=e.firstContext;e!==null;){if(!Er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ia(e){Xi=e,Zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function aa(e){return sa(Xi,e)}function oa(e,t){return Xi===null&&ia(e),sa(e,t)}function sa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Zi===null){if(e===null)throw Error(i(308));Zi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zi=Zi.next=t;return n}var ca=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},la=t.unstable_scheduleCallback,ua=t.unstable_NormalPriority,da={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fa(){return{controller:new ca,data:new Map,refCount:0}}function pa(e){e.refCount--,e.refCount===0&&la(ua,function(){e.controller.abort()})}var ma=null,ha=0,ga=0,_a=null;function va(e,t){if(ma===null){var n=ma=[];ha=0,ga=wd(),_a={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ha++,t.then(ya,ya),t}function ya(){if(--ha===0&&ma!==null){_a!==null&&(_a.status=`fulfilled`);var e=ma;ma=null,ga=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ba(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var xa=j.S;j.S=function(e,t){fu=Ae(),typeof t==`object`&&t&&typeof t.then==`function`&&va(e,t),xa!==null&&xa(e,t)};var Sa=ce(null);function Ca(){var e=Sa.current;return e===null?Yl.pooledCache:e}function wa(e,t){t===null?le(Sa,Sa.current):le(Sa,t.pool)}function Ta(){var e=Ca();return e===null?null:{parent:da._currentValue,pool:e}}var Ea=Error(i(460)),Da=Error(i(474)),Oa=Error(i(542)),ka={then:function(){}};function Aa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ja(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(an,an),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Fa(e),e;default:if(typeof t.status==`string`)t.then(an,an);else{if(e=Yl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Fa(e),e}throw Na=t,Ea}}function Ma(e){try{return(0,e._init)(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Na=e,Ea):e}}var Na=null;function Pa(){if(Na===null)throw Error(i(459));var e=Na;return Na=null,e}function Fa(e){if(e===Ea||e===Oa)throw Error(i(483))}var Ia=null,La=0;function Ra(e){var t=La;return La+=1,Ia===null&&(Ia=[]),ja(Ia,e,t)}function za(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ba(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Va(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=mi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=vi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Ma(i)===t.type)?(t=a(t,n.props),za(t,n),t.return=e,t):(t=gi(n.type,n.key,n.props,null,e.mode,r),za(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=bi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=_i(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=vi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=gi(t.type,t.key,t.props,null,e.mode,n),za(n,t),n.return=e,n;case v:return t=bi(t,e.mode,n),t.return=e,t;case O:return t=Ma(t),f(e,t,n)}if(ie(t)||ne(t))return t=_i(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ra(t),n);if(t.$$typeof===C)return f(e,oa(e,t),n);Ba(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Ma(n),p(e,t,n,r)}if(ie(n)||ne(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ra(n),r);if(n.$$typeof===C)return p(e,t,oa(e,n),r);Ba(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Ma(r),m(e,t,n,r,i)}if(ie(r)||ne(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ra(r),i);if(r.$$typeof===C)return m(e,t,n,oa(t,r),i);Ba(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),F&&Mi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return F&&Mi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),F&&Mi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),F&&Mi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return F&&Mi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),F&&Mi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:e:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break e}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Ma(l)===r.type){n(e,r.sibling),c=a(r,o.props),za(c,o),c.return=e,e=c;break e}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=_i(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=gi(o.type,o.key,o.props,null,e.mode,c),za(c,o),c.return=e,e=c)}return s(e);case v:e:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break e}n(e,r);break}t(e,r),r=r.sibling}c=bi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Ma(o),b(e,r,o,c)}if(ie(o))return h(e,r,o,c);if(ne(o)){if(l=ne(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ra(o),c);if(o.$$typeof===C)return b(e,r,oa(e,o),c);Ba(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=vi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{La=0;var i=b(e,t,n,r);return Ia=null,i}catch(t){if(t===Ea||t===Oa)throw t;var a=fi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ha=Va(!0),Ua=Va(!1),Wa=!1;function Ga(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ka(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ja(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Jl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=li(e),ci(e,null,n),t}return ai(e,r,t,n),li(e)}function Ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}function Xa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Za=!1;function Qa(){if(Za){var e=_a;if(e!==null)throw e}}function $a(e,t,n,r){Za=!1;var i=e.updateQueue;Wa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(R&f)===f:(r&f)===f){f!==0&&f===ga&&(Za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break e;d=h({},d,f);break e;case 2:Wa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ru|=o,e.lanes=o,e.memoizedState=d}}function eo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function to(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)eo(n[e],t)}var no=ce(null),ro=ce(0);function io(e,t){e=tu,le(ro,e),le(no,t),tu=e|t.baseLanes}function ao(){le(ro,tu),le(no,no.current)}function oo(){tu=ro.current,N(no),N(ro)}var so=ce(null),co=null;function lo(e){var t=e.alternate;le(ho,ho.current&1),le(so,e),co===null&&(t===null||no.current!==null||t.memoizedState!==null)&&(co=e)}function uo(e){le(ho,ho.current),le(so,e),co===null&&(co=e)}function fo(e){e.tag===22?(le(ho,ho.current),le(so,e),co===null&&(co=e)):po(e)}function po(){le(ho,ho.current),le(so,so.current)}function mo(e){N(so),co===e&&(co=null),N(ho)}var ho=ce(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||yf(n)||bf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)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 _o=0,I=null,vo=null,yo=null,bo=!1,xo=!1,So=!1,Co=0,wo=0,To=null,Eo=0;function Do(){throw Error(i(321))}function Oo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Er(e[n],t[n]))return!1;return!0}function ko(e,t,n,r,i,a){return _o=a,I=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Ks:qs,So=!1,a=n(r,i),So=!1,xo&&(a=jo(t,n,r,i)),Ao(e),a}function Ao(e){j.H=Gs;var t=vo!==null&&vo.next!==null;if(_o=0,yo=vo=I=null,bo=!1,wo=0,To=null,t)throw Error(i(300));e===null||uc||(e=e.dependencies,e!==null&&ra(e)&&(uc=!0))}function jo(e,t,n,r){I=e;var a=0;do{if(xo&&(To=null),wo=0,xo=!1,25<=a)throw Error(i(301));if(a+=1,yo=vo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=Js,o=t(n,r)}while(xo);return o}function Mo(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?zo(t):t,e=e.useState()[0],(vo===null?null:vo.memoizedState)!==e&&(I.flags|=1024),t}function No(){var e=Co!==0;return Co=0,e}function Po(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fo(e){if(bo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bo=!1}_o=0,yo=vo=I=null,xo=!1,wo=Co=0,To=null}function Io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yo===null?I.memoizedState=yo=e:yo=yo.next=e,yo}function Lo(){if(vo===null){var e=I.alternate;e=e===null?null:e.memoizedState}else e=vo.next;var t=yo===null?I.memoizedState:yo.next;if(t!==null)yo=t,vo=e;else{if(e===null)throw I.alternate===null?Error(i(467)):Error(i(310));vo=e,e={memoizedState:vo.memoizedState,baseState:vo.baseState,baseQueue:vo.baseQueue,queue:vo.queue,next:null},yo===null?I.memoizedState=yo=e:yo=yo.next=e}return yo}function Ro(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zo(e){var t=wo;return wo+=1,To===null&&(To=[]),e=ja(To,e,t),t=I,(yo===null?t.memoizedState:yo.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Ks:qs),e}function Bo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return zo(e);if(e.$$typeof===C)return aa(e)}throw Error(i(438,String(e)))}function Vo(e){var t=null,n=I.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=I.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Ro(),I.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=k;return t.index++,n}function Ho(e,t){return typeof t==`function`?t(e):t}function Uo(e){return Wo(Lo(),vo,e)}function Wo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(_o&f)===f:(R&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ga&&(d=!0);else if((_o&p)===p){u=u.next,p===ga&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,I.lanes|=p,ru|=p;f=u.action,So&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,I.lanes|=f,ru|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Er(o,e.memoizedState)&&(uc=!0,d&&(n=_a,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Go(e){var t=Lo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Er(o,t.memoizedState)||(uc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ko(e,t,n){var r=I,a=Lo(),o=F;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Er((vo||a).memoizedState,n);if(s&&(a.memoizedState=n,uc=!0),a=a.queue,_s(Yo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||yo!==null&&yo.memoizedState.tag&1){if(r.flags|=2048,fs(9,{destroy:void 0},Jo.bind(null,r,a,n,t),null),Yl===null)throw Error(i(349));o||_o&127||qo(r,t,n)}return n}function qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=I.updateQueue,t===null?(t=Ro(),I.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jo(e,t,n,r){t.value=n,t.getSnapshot=r,Xo(t)&&Zo(e)}function Yo(e,t,n){return n(function(){Xo(t)&&Zo(e)})}function Xo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Er(e,n)}catch{return!0}}function Zo(e){var t=si(e,2);t!==null&&Du(t,e,2)}function Qo(e){var t=Io();if(typeof e==`function`){var n=e;if(e=n(),So){Ve(!0);try{n()}finally{Ve(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:e},t}function $o(e,t,n,r){return e.baseState=n,Wo(e,vo,typeof r==`function`?r:Ho)}function es(e,t,n,r,a){if(Hs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};j.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ts(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ts(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=j.T,o={};j.T=o;try{var s=n(i,r),c=j.S;c!==null&&c(o,s),ns(e,t,s)}catch(n){is(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),ns(e,t,a)}catch(n){is(e,t,n)}}function ns(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){rs(e,t,n)},function(n){return is(e,t,n)}):rs(e,t,n)}function rs(e,t,n){t.status=`fulfilled`,t.value=n,as(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ts(e,n)))}function is(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,as(t),t=t.next;while(t!==r)}e.action=null}function as(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function os(e,t){return t}function ss(e,t){if(F){var n=Yl.formState;if(n!==null){e:{var r=I;if(F){if(Ri){t:{for(var i=Ri,a=Bi;i.nodeType!==8;)if(!a||(i=Sf(i.nextSibling),i===null)){i=null;break t}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ri=Sf(i.nextSibling),r=i.data===`F!`;break e}}Hi(r)}r=!1}r&&(t=n[0])}}return n=Io(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:t},n.queue=r,n=zs.bind(null,I,r),r.dispatch=n,r=Qo(!1),a=Vs.bind(null,I,!1,r.queue),r=Io(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=es.bind(null,I,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function cs(e){return ls(Lo(),vo,e)}function ls(e,t,n){if(t=Wo(e,t,os)[0],e=Uo(Ho)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=zo(t)}catch(e){throw e===Ea?Oa:e}else r=t;t=Lo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(I.flags|=2048,fs(9,{destroy:void 0},us.bind(null,i,n),null)),[r,a,e]}function us(e,t){e.action=t}function ds(e){var t=Lo(),n=vo;if(n!==null)return ls(t,n,e);Lo(),t=t.memoizedState,n=Lo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function fs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=I.updateQueue,t===null&&(t=Ro(),I.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ps(){return Lo().memoizedState}function ms(e,t,n,r){var i=Io();I.flags|=e,i.memoizedState=fs(1|t,{destroy:void 0},n,r===void 0?null:r)}function hs(e,t,n,r){var i=Lo();r=r===void 0?null:r;var a=i.memoizedState.inst;vo!==null&&r!==null&&Oo(r,vo.memoizedState.deps)?i.memoizedState=fs(t,a,n,r):(I.flags|=e,i.memoizedState=fs(1|t,a,n,r))}function gs(e,t){ms(8390656,8,e,t)}function _s(e,t){hs(2048,8,e,t)}function vs(e){I.flags|=4;var t=I.updateQueue;if(t===null)t=Ro(),I.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ys(e){var t=Lo().memoizedState;return vs({ref:t,nextImpl:e}),function(){if(Jl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function bs(e,t){return hs(4,2,e,t)}function xs(e,t){return hs(4,4,e,t)}function Ss(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Cs(e,t,n){n=n==null?null:n.concat([e]),hs(4,4,Ss.bind(null,t,e),n)}function ws(){}function Ts(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Oo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Es(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Oo(t,r[1]))return r[0];if(r=e(),So){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r}function Ds(e,t,n){return n===void 0||_o&0x40000000&&!(R&261930)?e.memoizedState=t:(e.memoizedState=n,e=Eu(),I.lanes|=e,ru|=e,n)}function Os(e,t,n,r){return Er(n,t)?n:no.current===null?!(_o&42)||_o&0x40000000&&!(R&261930)?(uc=!0,e.memoizedState=n):(e=Eu(),I.lanes|=e,ru|=e,t):(e=Ds(e,n,r),Er(e,t)||(uc=!0),e)}function ks(e,t,n,r,i){var a=M.p;M.p=a!==0&&8>a?a:8;var o=j.T,s={};j.T=s,Vs(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Bs(e,t,ba(c,r),Tu(e)):Bs(e,t,r,Tu(e))}catch(n){Bs(e,t,{then:function(){},status:`rejected`,reason:n},Tu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function As(){}function js(e,t,n,r){if(e.tag!==5)throw Error(i(476));ks(e,Ms(e).queue,t,ae,n===null?As:function(){return Ns(e),n(r)})}function Ms(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ns(e){var t=Ms(e);t.next===null&&(t=e.alternate.memoizedState),Bs(e,t.next.queue,{},Tu())}function Ps(){return aa(fp)}function Fs(){return Lo().memoizedState}function Is(){return Lo().memoizedState}function Ls(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Tu();e=qa(n);var r=Ja(t,e,n);r!==null&&(Du(r,t,n),Ya(r,t,n)),t={cache:fa()},e.payload=t;return}t=t.return}}function Rs(e,t,n){var r=Tu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Hs(e)?Us(t,n):(n=oi(e,t,n,r),n!==null&&(Du(n,e,r),Ws(n,t,r)))}function zs(e,t,n){Bs(e,t,n,Tu())}function Bs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hs(e))Us(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Er(s,o))return ai(e,t,i,0),Yl===null&&ii(),!1}catch{}if(n=oi(e,t,i,r),n!==null)return Du(n,e,r),Ws(n,t,r),!0}return!1}function Vs(e,t,n,r){if(r={lane:2,revertLane:wd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Hs(e)){if(t)throw Error(i(479))}else t=oi(e,n,r,2),t!==null&&Du(t,e,2)}function Hs(e){var t=e.alternate;return e===I||t!==null&&t===I}function Us(e,t){xo=bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ws(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}var Gs={readContext:aa,use:Bo,useCallback:Do,useContext:Do,useEffect:Do,useImperativeHandle:Do,useLayoutEffect:Do,useInsertionEffect:Do,useMemo:Do,useReducer:Do,useRef:Do,useState:Do,useDebugValue:Do,useDeferredValue:Do,useTransition:Do,useSyncExternalStore:Do,useId:Do,useHostTransitionStatus:Do,useFormState:Do,useActionState:Do,useOptimistic:Do,useMemoCache:Do,useCacheRefresh:Do};Gs.useEffectEvent=Do;var Ks={readContext:aa,use:Bo,useCallback:function(e,t){return Io().memoizedState=[e,t===void 0?null:t],e},useContext:aa,useEffect:gs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ms(4194308,4,Ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){ms(4,2,e,t)},useMemo:function(e,t){var n=Io();t=t===void 0?null:t;var r=e();if(So){Ve(!0);try{e()}finally{Ve(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Io();if(n!==void 0){var i=n(t);if(So){Ve(!0);try{n(t)}finally{Ve(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Rs.bind(null,I,e),[r.memoizedState,e]},useRef:function(e){var t=Io();return e={current:e},t.memoizedState=e},useState:function(e){e=Qo(e);var t=e.queue,n=zs.bind(null,I,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ws,useDeferredValue:function(e,t){return Ds(Io(),e,t)},useTransition:function(){var e=Qo(!1);return e=ks.bind(null,I,e.queue,!0,!1),Io().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=I,a=Io();if(F){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Yl===null)throw Error(i(349));R&127||qo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,gs(Yo.bind(null,r,o,e),[e]),r.flags|=2048,fs(9,{destroy:void 0},Jo.bind(null,r,o,n,t),null),n},useId:function(){var e=Io(),t=Yl.identifierPrefix;if(F){var n=ji,r=Ai;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Co++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Eo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ps,useFormState:ss,useActionState:ss,useOptimistic:function(e){var t=Io();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Vs.bind(null,I,!0,n),n.dispatch=t,[e,t]},useMemoCache:Vo,useCacheRefresh:function(){return Io().memoizedState=Ls.bind(null,I)},useEffectEvent:function(e){var t=Io(),n={impl:e};return t.memoizedState=n,function(){if(Jl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},qs={readContext:aa,use:Bo,useCallback:Ts,useContext:aa,useEffect:_s,useImperativeHandle:Cs,useInsertionEffect:bs,useLayoutEffect:xs,useMemo:Es,useReducer:Uo,useRef:ps,useState:function(){return Uo(Ho)},useDebugValue:ws,useDeferredValue:function(e,t){return Os(Lo(),vo.memoizedState,e,t)},useTransition:function(){var e=Uo(Ho)[0],t=Lo().memoizedState;return[typeof e==`boolean`?e:zo(e),t]},useSyncExternalStore:Ko,useId:Fs,useHostTransitionStatus:Ps,useFormState:cs,useActionState:cs,useOptimistic:function(e,t){return $o(Lo(),vo,e,t)},useMemoCache:Vo,useCacheRefresh:Is};qs.useEffectEvent=ys;var Js={readContext:aa,use:Bo,useCallback:Ts,useContext:aa,useEffect:_s,useImperativeHandle:Cs,useInsertionEffect:bs,useLayoutEffect:xs,useMemo:Es,useReducer:Go,useRef:ps,useState:function(){return Go(Ho)},useDebugValue:ws,useDeferredValue:function(e,t){var n=Lo();return vo===null?Ds(n,e,t):Os(n,vo.memoizedState,e,t)},useTransition:function(){var e=Go(Ho)[0],t=Lo().memoizedState;return[typeof e==`boolean`?e:zo(e),t]},useSyncExternalStore:Ko,useId:Fs,useHostTransitionStatus:Ps,useFormState:ds,useActionState:ds,useOptimistic:function(e,t){var n=Lo();return vo===null?(n.baseState=e,[e,n.queue.dispatch]):$o(n,vo,e,t)},useMemoCache:Vo,useCacheRefresh:Is};Js.useEffectEvent=ys;function Ys(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Tu(),i=qa(r);i.payload=t,n!=null&&(i.callback=n),t=Ja(e,i,r),t!==null&&(Du(t,e,r),Ya(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Tu(),i=qa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ja(e,i,r),t!==null&&(Du(t,e,r),Ya(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tu(),r=qa(n);r.tag=2,t!=null&&(r.callback=t),t=Ja(e,r,n),t!==null&&(Du(t,e,n),Ya(t,e,n))}};function Zs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Dr(n,r)||!Dr(i,a):!0}function Qs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xs.enqueueReplaceState(t,t.state,null)}function $s(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function ec(e){ei(e)}function tc(e){console.error(e)}function nc(e){ei(e)}function rc(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function ic(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ac(e,t,n){return n=qa(n),n.tag=3,n.payload={element:null},n.callback=function(){rc(e,t)},n}function oc(e){return e=qa(e),e.tag=3,e}function sc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){ic(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ic(t,n,r),typeof i!=`function`&&(hu===null?hu=new Set([this]):hu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function cc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&na(t,n,a,!0),n=so.current,n!==null){switch(n.tag){case 31:case 13:return co===null?zu():n.alternate===null&&nu===0&&(nu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),id(e,r,a)),!1;case 22:return n.flags|=65536,r===ka?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),id(e,r,a)),!1}throw Error(i(435,n.tag))}return id(e,r,a),zu(),!1}if(F)return t=so.current,t===null?(r!==Vi&&(t=Error(i(423),{cause:r}),Ji(Si(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Si(r,n),a=ac(e.stateNode,r,a),Xa(e,a),nu!==4&&(nu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Vi&&(e=Error(i(422),{cause:r}),Ji(Si(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Si(o,n),cu===null?cu=[o]:cu.push(o),nu!==4&&(nu=2),t===null)return!0;r=Si(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=ac(n.stateNode,r,e),Xa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(hu===null||!hu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=oc(a),sc(a,e,n,r),Xa(n,a),!1}n=n.return}while(n!==null);return!1}var lc=Error(i(461)),uc=!1;function dc(e,t,n,r){t.child=e===null?Ua(t,null,n,r):Ha(t,e.child,n,r)}function fc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ia(t),r=ko(e,t,n,o,a,i),s=No(),e!==null&&!uc?(Po(e,t,i),Ic(e,t,i)):(F&&s&&Pi(t),t.flags|=1,dc(e,t,r,i),t.child)}function pc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!pi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,mc(e,t,a,r,i)):(e=gi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Lc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Dr:n,n(o,r)&&e.ref===t.ref)return Ic(e,t,i)}return t.flags|=1,e=mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function mc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Dr(a,r)&&e.ref===t.ref){if(uc=!1,t.pendingProps=r=a,Lc(e,i))e.flags&131072&&(uc=!0);else return t.lanes=e.lanes,Ic(e,t,i)}}return Sc(e,t,n,r,i)}function hc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return _c(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wa(t,a===null?null:a.cachePool),a===null?ao():io(t,a),fo(t);else return r=t.lanes=536870912,_c(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&wa(t,null),ao(),po(t)):(wa(t,a.cachePool),io(t,a),po(t),t.memoizedState=null);return dc(e,t,i,n),t.child}function gc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function _c(e,t,n,r,i){var a=Ca();return a=a===null?null:{parent:da._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&wa(t,null),ao(),fo(t),e!==null&&na(e,t,r,!0),t.childLanes=i,null}function vc(e,t){return t=jc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yc(e,t,n){return Ha(t,e.child,null,n),e=vc(t,t.pendingProps),e.flags|=2,mo(t),t.memoizedState=null,e}function bc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(F){if(r.mode===`hidden`)return e=vc(t,r),t.lanes=536870912,gc(null,e);if(uo(t),(e=Ri)?(e=vf(e,Bi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Hi(t);return t.lanes=536870912,null}return vc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(uo(t),a){if(t.flags&256)t.flags&=-257,t=yc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(uc||na(e,t,n,!1),a=(n&e.childLanes)!==0,uc||a){if(r=Yl,r!==null&&(s=at(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,si(e,s),Du(r,e,s),lc;zu(),t=yc(e,t,n)}else e=o.treeContext,Ri=Sf(s.nextSibling),Li=t,F=!0,zi=null,Bi=!1,e!==null&&Ii(t,e),t=vc(t,r),t.flags|=4096;return t}return e=mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Sc(e,t,n,r,i){return ia(t),n=ko(e,t,n,r,void 0,i),r=No(),e!==null&&!uc?(Po(e,t,i),Ic(e,t,i)):(F&&r&&Pi(t),t.flags|=1,dc(e,t,n,i),t.child)}function Cc(e,t,n,r,i,a){return ia(t),t.updateQueue=null,n=jo(t,r,n,i),Ao(e),r=No(),e!==null&&!uc?(Po(e,t,a),Ic(e,t,a)):(F&&r&&Pi(t),t.flags|=1,dc(e,t,n,a),t.child)}function wc(e,t,n,r,i){if(ia(t),t.stateNode===null){var a=ui,o=n.contextType;typeof o==`object`&&o&&(a=aa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Xs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ga(t),o=n.contextType,a.context=typeof o==`object`&&o?aa(o):ui,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ys(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Xs.enqueueReplaceState(a,a.state,null),$a(t,r,a,i),Qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=$s(n,s);a.props=c;var l=a.context,u=n.contextType;o=ui,typeof u==`object`&&u&&(o=aa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Qs(t,a,r,o),Wa=!1;var f=t.memoizedState;a.state=f,$a(t,r,a,i),Qa(),l=t.memoizedState,s||f!==l||Wa?(typeof d==`function`&&(Ys(t,n,d,r),l=t.memoizedState),(c=Wa||Zs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ka(e,t),o=t.memoizedProps,u=$s(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ui,typeof l==`object`&&l&&(c=aa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Qs(t,a,r,c),Wa=!1,f=t.memoizedState,a.state=f,$a(t,r,a,i),Qa();var p=t.memoizedState;o!==d||f!==p||Wa||e!==null&&e.dependencies!==null&&ra(e.dependencies)?(typeof s==`function`&&(Ys(t,n,s,r),p=t.memoizedState),(u=Wa||Zs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ra(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,xc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ha(t,e.child,null,i),t.child=Ha(t,null,n,i)):dc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ic(e,t,i),e}function Tc(e,t,n,r){return Ki(),t.flags|=256,dc(e,t,n,r),t.child}var Ec={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dc(e){return{baseLanes:e,cachePool:Ta()}}function Oc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ou),e}function kc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(ho.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(F){if(a?lo(t):po(t),(e=Ri)?(e=vf(e,Bi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Hi(t);return bf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(po(t),a=t.mode,c=jc({mode:`hidden`,children:c},a),r=_i(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Dc(n),r.childLanes=Oc(e,s,n),t.memoizedState=Ec,gc(null,r)):(lo(t),Ac(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(lo(t),t.flags&=-257,t=Mc(e,t,n)):t.memoizedState===null?(po(t),c=r.fallback,a=t.mode,r=jc({mode:`visible`,children:r.children},a),c=_i(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ha(t,e.child,null,n),r=t.child,r.memoizedState=Dc(n),r.childLanes=Oc(e,s,n),t.memoizedState=Ec,t=gc(null,r)):(po(t),t.child=e.child,t.flags|=128,t=null);else if(lo(t),bf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ji({value:r,source:null,stack:null}),t=Mc(e,t,n)}else if(uc||na(e,t,n,!1),s=(n&e.childLanes)!==0,uc||s){if(s=Yl,s!==null&&(r=at(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,si(e,r),Du(s,e,r),lc;yf(c)||zu(),t=Mc(e,t,n)}else yf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ri=Sf(c.nextSibling),Li=t,F=!0,zi=null,Bi=!1,e!==null&&Ii(t,e),t=Ac(t,r.children),t.flags|=4096);return t}return a?(po(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=mi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=_i(c,a,n,null),c.flags|=2):c=mi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,gc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Dc(n):(a=c.cachePool,a===null?a=Ta():(l=da._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Oc(e,s,n),t.memoizedState=Ec,gc(e.child,r)):(lo(t),n=e.child,e=n.sibling,n=mi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Ac(e,t){return t=jc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function jc(e,t){return e=fi(22,e,null,t),e.lanes=0,e}function Mc(e,t,n){return Ha(t,e.child,null,n),e=Ac(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Nc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ea(e.return,t,n)}function Pc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Fc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ho.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,le(ho,o),dc(e,t,r,n),r=F?Ei:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nc(e,n,t);else if(e.tag===19)Nc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&go(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Pc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Pc(t,!0,n,null,a,r);break;case`together`:Pc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ic(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ru|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(na(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Lc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ra(e)))}function Rc(e,t,n){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Qi(t,da,e.memoizedState.cache),Ki();break;case 27:case 5:ge(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Qi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,uo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(lo(t),e=Ic(e,t,n),e===null?null:e.sibling):kc(e,t,n):(lo(t),t.flags|=128,null);lo(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(na(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Fc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(ho,ho.current),r)break;return null;case 22:return t.lanes=0,hc(e,t,n,t.pendingProps);case 24:Qi(t,da,e.memoizedState.cache)}return Ic(e,t,n)}function zc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)uc=!0;else{if(!Lc(e,n)&&!(t.flags&128))return uc=!1,Rc(e,t,n);uc=!!(e.flags&131072)}}else uc=!1,F&&t.flags&1048576&&Ni(t,Ei,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Ma(t.elementType),t.type=e,typeof e==`function`)pi(e)?(r=$s(e,r),t.tag=1,t=wc(null,t,e,r,n)):(t.tag=0,t=Sc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=fc(null,t,e,r,n);break e}if(a===D){t.tag=14,t=pc(null,t,e,r,n);break e}}throw t=re(e)||e,Error(i(306,t,``))}}return t;case 0:return Sc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=$s(r,t.pendingProps),wc(e,t,r,a,n);case 3:e:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ka(e,t),$a(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Qi(t,da,r),r!==o.cache&&ta(t,[da],n,!0),Qa(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Tc(e,t,r,n);break e}if(r!==a){a=Si(Error(i(424)),t),Ji(a),t=Tc(e,t,r,n);break e}for(e=t.stateNode.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,Ri=Sf(e.firstChild),Li=t,F=!0,zi=null,Bi=!0,n=Ua(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ki(),r===a){t=Ic(e,t,n);break e}dc(e,t,r,n)}t=t.child}return t;case 26:return xc(e,t),e===null?(n=Uf(t.type,null,t.pendingProps,null))?t.memoizedState=n:F||(n=t.type,e=t.pendingProps,r=ef(fe.current).createElement(n),r[dt]=t,r[ft]=e,Jd(r,n,e),wt(r),t.stateNode=r):t.memoizedState=Uf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ge(t),e===null&&F&&(r=t.stateNode=Ef(t.type,t.pendingProps,fe.current),Li=t,Bi=!0,a=Ri,ff(t.type)?(Cf=a,Ri=Sf(r.firstChild)):Ri=a),dc(e,t,t.pendingProps.children,n),xc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&F&&((a=r=Ri)&&(r=gf(r,t.type,t.pendingProps,Bi),r===null?a=!1:(t.stateNode=r,Li=t,Ri=Sf(r.firstChild),Bi=!1,a=!0)),a||Hi(t)),ge(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,rf(a,o)?r=null:s!==null&&rf(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=ko(e,t,Mo,null,null,n),fp._currentValue=a),xc(e,t),dc(e,t,r,n),t.child;case 6:return e===null&&F&&((e=n=Ri)&&(n=_f(n,t.pendingProps,Bi),n===null?e=!1:(t.stateNode=n,Li=t,Ri=null,e=!0)),e||Hi(t)),null;case 13:return kc(e,t,n);case 4:return me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ha(t,null,r,n):dc(e,t,r,n),t.child;case 11:return fc(e,t,t.type,t.pendingProps,n);case 7:return dc(e,t,t.pendingProps,n),t.child;case 8:case 12:return dc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Qi(t,t.type,r.value),dc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ia(t),a=aa(a),r=r(a),t.flags|=1,dc(e,t,r,n),t.child;case 14:return pc(e,t,t.type,t.pendingProps,n);case 15:return mc(e,t,t.type,t.pendingProps,n);case 19:return Fc(e,t,n);case 31:return bc(e,t,n);case 22:return hc(e,t,n,t.pendingProps);case 24:return ia(t),r=aa(da),e===null?(a=Ca(),a===null&&(a=Yl,o=fa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ga(t),Qi(t,da,a)):((e.lanes&n)!==0&&(Ka(e,t),$a(t,null,null,n),Qa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Qi(t,da,r),r!==a.cache&&ta(t,[da],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Qi(t,da,r))),dc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Bc(e){e.flags|=4}function Vc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Iu())e.flags|=8192;else throw Na=ka,Da}}else e.flags&=-16777217}function Hc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ip(t)){if(Iu())e.flags|=8192;else throw Na=ka,Da}}function Uc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:$e(),e.lanes|=t,su|=t)}function Wc(e,t){if(!F)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kc(e,t,n){var r=t.pendingProps;switch(Fi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return Gc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),$i(da),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?Bc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qi())),Gc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Bc(t),o===null?(Gc(t),Vc(t,a,null,r,n)):(Gc(t),Hc(t,o))):o?o===e.memoizedState?(Gc(t),t.flags&=-16777217):(Bc(t),Gc(t),Hc(t,o)):(e=e.memoizedProps,e!==r&&Bc(t),Gc(t),Vc(t,a,e,r,n)),null;case 27:if(_e(t),n=fe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Bc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Gc(t),null}e=ue.current,Gi(t)?Ui(t,e):(e=Ef(a,r,n),t.stateNode=e,Bc(t))}return Gc(t),null;case 5:if(_e(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Bc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Gc(t),null}if(o=ue.current,Gi(t))Ui(t,o);else{var s=ef(fe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[dt]=t,o[ft]=r;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(t.stateNode=o,Jd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break;case`img`:r=!0;break;default:r=!1}r&&Bc(t)}}return Gc(t),Vc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Bc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=fe.current,Gi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Li,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Gd(e.nodeValue,n)),e||Hi(t,!0)}else e=ef(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Gc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Gi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[dt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gc(t),e=!1}else n=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(mo(t),t):(mo(t),null);if(t.flags&128)throw Error(i(558))}return Gc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[dt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gc(t),a=!1}else a=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(mo(t),t):(mo(t),null)}return mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Uc(t,t.updateQueue),Gc(t),null);case 4:return he(),e===null&&Fd(t.stateNode.containerInfo),Gc(t),null;case 10:return $i(t.type),Gc(t),null;case 19:if(N(ho),r=t.memoizedState,r===null)return Gc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Wc(r,!1);else{if(nu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=go(e),o!==null){for(t.flags|=128,Wc(r,!1),e=o.updateQueue,t.updateQueue=e,Uc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hi(n,e),n=n.sibling;return le(ho,ho.current&1|2),F&&Mi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ae()>pu&&(t.flags|=128,a=!0,Wc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=go(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Uc(t,e),Wc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!F)return Gc(t),null}else 2*Ae()-r.renderingStartTime>pu&&n!==536870912&&(t.flags|=128,a=!0,Wc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Gc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ae(),e.sibling=null,n=ho.current,le(ho,a?n&1|2:n&1),F&&Mi(t,r.treeForkCount),e);case 22:case 23:return mo(t),oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Gc(t),t.subtreeFlags&6&&(t.flags|=8192)):Gc(t),n=t.updateQueue,n!==null&&Uc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&N(Sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),$i(da),Gc(t),null;case 25:case 30:return null}throw Error(i(156,t.tag))}function qc(e,t){switch(Fi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $i(da),he(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _e(t),null;case 31:if(t.memoizedState!==null){if(mo(t),t.alternate===null)throw Error(i(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return N(ho),null;case 4:return he(),null;case 10:return $i(t.type),null;case 22:case 23:return mo(t),oo(),e!==null&&N(Sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $i(da),null;default:return null}}function Jc(e,t){switch(Fi(t),t.tag){case 3:$i(da),he();break;case 26:case 27:case 5:_e(t);break;case 4:he();break;case 31:t.memoizedState!==null&&mo(t);break;case 13:mo(t);break;case 19:N(ho);break;case 10:$i(t.type);break;case 22:case 23:mo(t),oo(),e!==null&&N(Sa);break;case 24:$i(da)}}function Yc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){rd(t,t.return,e)}}function Xc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){rd(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){rd(t,t.return,e)}}function Zc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{to(t,n)}catch(t){rd(e,e.return,t)}}}function Qc(e,t,n){n.props=$s(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){rd(e,t,n)}}function $c(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){rd(e,t,n)}}function el(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){rd(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){rd(e,t,n)}else n.current=null}}function tl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){rd(e,e.return,t)}}function nl(e,t,n){try{var r=e.stateNode;Yd(r,e.type,n,t),r[ft]=t}catch(t){rd(e,e.return,t)}}function rl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ff(e.type)||e.tag===4}function il(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rl(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.tag===27&&ff(e.type)||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 al(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(r!==4&&(r===27&&ff(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(al(e,t,n),e=e.sibling;e!==null;)al(e,t,n),e=e.sibling}function ol(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ff(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ol(e,t,n),e=e.sibling;e!==null;)ol(e,t,n),e=e.sibling}function sl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Jd(t,r,n),t[dt]=e,t[ft]=n}catch(t){rd(e,e.return,t)}}var cl=!1,ll=!1,ul=!1,dl=typeof WeakSet==`function`?WeakSet:Set,fl=null;function pl(e,t){if(e=e.containerInfo,Qd=xp,e=jr(e),Mr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for($d={focusedElem:e,selectionRange:n},xp=!1,fl=t;fl!==null;)if(t=fl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,fl=e;else for(;fl!==null;){switch(t=fl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=$s(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){rd(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)hf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:hf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,fl=e;break}fl=t.return}}function ml(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:kl(e,n),r&4&&Yc(5,n);break;case 1:if(kl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){rd(n,n.return,e)}else{var i=$s(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){rd(n,n.return,e)}}}r&64&&Zc(n),r&512&&$c(n,n.return);break;case 3:if(kl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{to(e,t)}catch(e){rd(n,n.return,e)}}break;case 27:t===null&&r&4&&sl(n);case 26:case 5:kl(e,n),t===null&&r&4&&tl(n),r&512&&$c(n,n.return);break;case 12:kl(e,n);break;case 31:kl(e,n),r&4&&bl(e,n);break;case 13:kl(e,n),r&4&&xl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sd.bind(null,n),xf(e,n))));break;case 22:if(r=n.memoizedState!==null||cl,!r){t=t!==null&&t.memoizedState!==null||ll,i=cl;var a=ll;cl=r,(ll=t)&&!a?jl(e,n,!!(n.subtreeFlags&8772)):kl(e,n),cl=i,ll=a}break;case 30:break;default:kl(e,n)}}function hl(e){var t=e.alternate;t!==null&&(e.alternate=null,hl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var gl=null,_l=!1;function vl(e,t,n){for(n=n.child;n!==null;)yl(e,t,n),n=n.sibling}function yl(e,t,n){if(Be&&typeof Be.onCommitFiberUnmount==`function`)try{Be.onCommitFiberUnmount(ze,n)}catch{}switch(n.tag){case 26:ll||el(n,t),vl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ll||el(n,t);var r=gl,i=_l;ff(n.type)&&(gl=n.stateNode,_l=!1),vl(e,t,n),Df(n.stateNode),gl=r,_l=i;break;case 5:ll||el(n,t);case 6:if(r=gl,i=_l,gl=null,vl(e,t,n),gl=r,_l=i,gl!==null){if(_l)try{(gl.nodeType===9?gl.body:gl.nodeName===`HTML`?gl.ownerDocument.body:gl).removeChild(n.stateNode)}catch(e){rd(n,t,e)}else try{gl.removeChild(n.stateNode)}catch(e){rd(n,t,e)}}break;case 18:gl!==null&&(_l?(e=gl,pf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),qp(e)):pf(gl,n.stateNode));break;case 4:r=gl,i=_l,gl=n.stateNode.containerInfo,_l=!0,vl(e,t,n),gl=r,_l=i;break;case 0:case 11:case 14:case 15:Xc(2,n,t),ll||Xc(4,n,t),vl(e,t,n);break;case 1:ll||(el(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Qc(n,t,r)),vl(e,t,n);break;case 21:vl(e,t,n);break;case 22:ll=(r=ll)||n.memoizedState!==null,vl(e,t,n),ll=r;break;default:vl(e,t,n)}}function bl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qp(e)}catch(e){rd(t,t.return,e)}}}function xl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qp(e)}catch(e){rd(t,t.return,e)}}function Sl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dl),t;default:throw Error(i(435,e.tag))}}function Cl(e,t){var n=Sl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=cd.bind(null,e,t);t.then(r,r)}})}function wl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;e:for(;c!==null;){switch(c.tag){case 27:if(ff(c.type)){gl=c.stateNode,_l=!1;break e}break;case 5:gl=c.stateNode,_l=!1;break e;case 3:case 4:gl=c.stateNode.containerInfo,_l=!0;break e}c=c.return}if(gl===null)throw Error(i(160));yl(o,s,a),gl=null,_l=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)El(t,e),t=t.sibling}var Tl=null;function El(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wl(t,e),Dl(e),r&4&&(Xc(3,e,e.return),Yc(3,e),Xc(5,e,e.return));break;case 1:wl(t,e),Dl(e),r&512&&(ll||n===null||el(n,n.return)),r&64&&cl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Tl;if(wl(t,e),Dl(e),r&512&&(ll||n===null||el(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[vt]||o[dt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Jd(o,r,n),o[dt]=e,wt(o),r=o;break e;case`link`:var s=tp(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break t}}o=a.createElement(r),Jd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=tp(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break t}}o=a.createElement(r),Jd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[dt]=e,wt(o),r=o}e.stateNode=r}else np(a,e.type,e.stateNode)}else e.stateNode=Xf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&nl(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?np(a,e.type,e.stateNode):Xf(a,r,e.memoizedProps))}break;case 27:wl(t,e),Dl(e),r&512&&(ll||n===null||el(n,n.return)),n!==null&&r&4&&nl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(wl(t,e),Dl(e),r&512&&(ll||n===null||el(n,n.return)),e.flags&32){a=e.stateNode;try{Xt(a,``)}catch(t){rd(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,nl(e,a,n===null?a:n.memoizedProps)),r&1024&&(ul=!0);break;case 6:if(wl(t,e),Dl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){rd(e,e.return,t)}}break;case 3:if(ep=null,a=Tl,Tl=Af(t.containerInfo),wl(t,e),Tl=a,Dl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qp(t.containerInfo)}catch(t){rd(e,e.return,t)}ul&&(ul=!1,Ol(e));break;case 4:r=Tl,Tl=Af(e.stateNode.containerInfo),wl(t,e),Dl(e),Tl=r;break;case 12:wl(t,e),Dl(e);break;case 31:wl(t,e),Dl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cl(e,r)));break;case 13:wl(t,e),Dl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(du=Ae()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=cl,d=ll;if(cl=u||a,ll=d||l,wl(t,e),ll=d,cl=u,Dl(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||cl||ll||Al(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){rd(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){rd(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?mf(m,!0):mf(l.stateNode,!1)}catch(e){rd(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&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)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Cl(e,n))));break;case 19:wl(t,e),Dl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cl(e,r)));break;case 30:case 21:break;default:wl(t,e),Dl(e)}}function Dl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(rl(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;ol(e,il(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Xt(o,``),n.flags&=-33),ol(e,il(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;al(e,il(e),s);break;default:throw Error(i(161))}}catch(t){rd(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ol(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ol(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function kl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ml(e,t.alternate,t),t=t.sibling}function Al(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xc(4,t,t.return),Al(t);break;case 1:el(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Qc(t,t.return,n),Al(t);break;case 27:Df(t.stateNode);case 26:case 5:el(t,t.return),Al(t);break;case 22:t.memoizedState===null&&Al(t);break;default:Al(t)}e=e.sibling}}function jl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:jl(i,a,n),Yc(4,a);break;case 1:if(jl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){rd(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)eo(c[i],s)}catch(e){rd(r,r.return,e)}}n&&o&64&&Zc(a),$c(a,a.return);break;case 27:sl(a);case 26:case 5:jl(i,a,n),n&&r===null&&o&4&&tl(a),$c(a,a.return);break;case 12:jl(i,a,n);break;case 31:jl(i,a,n),n&&o&4&&bl(i,a);break;case 13:jl(i,a,n),n&&o&4&&xl(i,a);break;case 22:a.memoizedState===null&&jl(i,a,n),$c(a,a.return);break;case 30:break;default:jl(i,a,n)}t=t.sibling}}function Ml(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&pa(n))}function Nl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e))}function Pl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Fl(e,t,n,r),t=t.sibling}function Fl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Pl(e,t,n,r),i&2048&&Yc(9,t);break;case 1:Pl(e,t,n,r);break;case 3:Pl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pa(e)));break;case 12:if(i&2048){Pl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){rd(t,t.return,e)}}else Pl(e,t,n,r);break;case 31:case 13:Pl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Pl(e,t,n,r):(a._visibility|=2,Il(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Pl(e,t,n,r):Ll(e,t),i&2048&&Ml(o,t);break;case 24:Pl(e,t,n,r),i&2048&&Nl(t.alternate,t);break;default:Pl(e,t,n,r)}}function Il(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Il(a,o,s,c,i),Yc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Il(a,o,s,c,i)):u._visibility&2?Il(a,o,s,c,i):Ll(a,o),i&&l&2048&&Ml(o.alternate,o);break;case 24:Il(a,o,s,c,i),i&&l&2048&&Nl(o.alternate,o);break;default:Il(a,o,s,c,i)}t=t.sibling}}function Ll(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ll(n,r),i&2048&&Ml(r.alternate,r);break;case 24:Ll(n,r),i&2048&&Nl(r.alternate,r);break;default:Ll(n,r)}t=t.sibling}}var Rl=8192;function zl(e,t,n){if(e.subtreeFlags&Rl)for(e=e.child;e!==null;)Bl(e,t,n),e=e.sibling}function Bl(e,t,n){switch(e.tag){case 26:zl(e,t,n),e.flags&Rl&&e.memoizedState!==null&&ap(n,Tl,e.memoizedState,e.memoizedProps);break;case 5:zl(e,t,n);break;case 3:case 4:var r=Tl;Tl=Af(e.stateNode.containerInfo),zl(e,t,n),Tl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Rl,Rl=16777216,zl(e,t,n),Rl=r):zl(e,t,n));break;default:zl(e,t,n)}}function Vl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Hl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];fl=r,Gl(r,e)}Vl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ul(e),e=e.sibling}function Ul(e){switch(e.tag){case 0:case 11:case 15:Hl(e),e.flags&2048&&Xc(9,e,e.return);break;case 3:case 12:Hl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wl(e)):Hl(e);break;default:Hl(e)}}function Wl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];fl=r,Gl(r,e)}Vl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xc(8,t,t.return),Wl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Wl(t));break;default:Wl(t)}e=e.sibling}}function Gl(e,t){for(;fl!==null;){var n=fl;switch(n.tag){case 0:case 11:case 15:Xc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:pa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,fl=r;else for(n=e;fl!==null;){r=fl;var i=r.sibling,a=r.return;if(hl(r),r===n){fl=null;break}if(i!==null){i.return=a,fl=i;break}fl=a}}}var Kl={getCacheForType:function(e){var t=aa(da),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return aa(da).controller.signal}},ql=typeof WeakMap==`function`?WeakMap:Map,Jl=0,Yl=null,L=null,R=0,Xl=0,Zl=null,Ql=!1,$l=!1,eu=!1,tu=0,nu=0,ru=0,iu=0,au=0,ou=0,su=0,cu=null,lu=null,uu=!1,du=0,fu=0,pu=1/0,mu=null,hu=null,gu=0,_u=null,vu=null,yu=0,bu=0,xu=null,Su=null,Cu=0,wu=null;function Tu(){return Jl&2&&R!==0?R&-R:j.T===null?ct():wd()}function Eu(){if(ou===0){if(!(R&536870912)||F){var e=qe;qe<<=1,!(qe&3932160)&&(qe=262144),ou=e}else ou=536870912}return e=so.current,e!==null&&(e.flags|=32),ou}function Du(e,t,n){(e===Yl&&(Xl===2||Xl===9)||e.cancelPendingCommit!==null)&&(Pu(e,0),ju(e,R,ou,!1)),tt(e,n),Jl&2&&e===Yl||(e===Yl&&(!(Jl&2)&&(iu|=n),nu===4&&ju(e,R,ou,!1)),gd(e))}function Ou(e,t,n){if(Jl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ze(e,t),a=r?Hu(e,t):Bu(e,t,!0),o=r;do{if(a===0){$l&&!r&&ju(e,t,0,!1);break}if(n=e.current.alternate,o&&!Au(n))a=Bu(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;e:{var c=e;a=cu;var l=c.current.memoizedState.isDehydrated;if(l&&(Pu(c,s).flags|=256),s=Bu(c,s,!1),s!==2){if(eu&&!l){c.errorRecoveryDisabledLanes|=o,iu|=o,a=4;break e}o=lu,lu=a,o!==null&&(lu===null?lu=o:lu.push.apply(lu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Pu(e,0),ju(e,t,0,!0);break}e:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ju(r,t,ou,!Ql);break e;case 2:lu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=du+300-Ae(),10<a)){if(ju(r,t,ou,!Ql),Xe(r,0,!0)!==0)break e;yu=t,r.timeoutHandle=sf(ku.bind(null,r,n,lu,mu,uu,t,ou,iu,su,Ql,o,`Throttled`,-0,0),a);break e}ku(r,n,lu,mu,uu,t,ou,iu,su,Ql,o,null,-0,0)}break}}while(1);gd(e)}function ku(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:an},Bl(t,a,d);var m=(a&62914560)===a?du-Ae():(a&4194048)===a?fu-Ae():0;if(m=sp(d,m),m!==null){yu=a,e.cancelPendingCommit=m(Yu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),ju(e,a,o,!l);return}}Yu(e,t,a,n,r,i,o,s,c)}function Au(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Er(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ju(e,t,n,r){t&=~au,t&=~iu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-He(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&rt(e,n,t)}function Mu(){return Jl&6?!0:(_d(0,!1),!1)}function Nu(){if(L!==null){if(Xl===0)var e=L.return;else e=L,Zi=Xi=null,Fo(e),Ia=null,La=0,e=L;for(;e!==null;)Jc(e.alternate,e),e=e.return;L=null}}function Pu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,cf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yu=0,Nu(),Yl=e,L=n=mi(e.current,null),R=t,Xl=0,Zl=null,Ql=!1,$l=Ze(e,t),eu=!1,su=ou=au=iu=ru=nu=0,lu=cu=null,uu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-He(r),a=1<<i;t|=e[i],r&=~a}return tu=t,ii(),n}function Fu(e,t){I=null,j.H=Gs,t===Ea||t===Oa?(t=Pa(),Xl=3):t===Da?(t=Pa(),Xl=4):Xl=t===lc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Zl=t,L===null&&(nu=1,rc(e,Si(t,e.current)))}function Iu(){var e=so.current;return e===null?!0:(R&4194048)===R?co===null:(R&62914560)===R||R&536870912?e===co:!1}function Lu(){var e=j.H;return j.H=Gs,e===null?Gs:e}function Ru(){var e=j.A;return j.A=Kl,e}function zu(){nu=4,Ql||(R&4194048)!==R&&so.current!==null||($l=!0),!(ru&0x7ffffff)&&!(iu&0x7ffffff)||Yl===null||ju(Yl,R,ou,!1)}function Bu(e,t,n){var r=Jl;Jl|=2;var i=Lu(),a=Ru();(Yl!==e||R!==t)&&(mu=null,Pu(e,t)),t=!1;var o=nu;e:do try{if(Xl!==0&&L!==null){var s=L,c=Zl;switch(Xl){case 8:Nu(),o=6;break e;case 3:case 2:case 9:case 6:so.current===null&&(t=!0);var l=Xl;if(Xl=0,Zl=null,Ku(e,s,c,l),n&&$l){o=0;break e}break;default:l=Xl,Xl=0,Zl=null,Ku(e,s,c,l)}}Vu(),o=nu;break}catch(t){Fu(e,t)}while(1);return t&&e.shellSuspendCounter++,Zi=Xi=null,Jl=r,j.H=i,j.A=a,L===null&&(Yl=null,R=0,ii()),o}function Vu(){for(;L!==null;)Wu(L)}function Hu(e,t){var n=Jl;Jl|=2;var r=Lu(),a=Ru();Yl!==e||R!==t?(mu=null,pu=Ae()+500,Pu(e,t)):$l=Ze(e,t);e:do try{if(Xl!==0&&L!==null){t=L;var o=Zl;t:switch(Xl){case 1:Xl=0,Zl=null,Ku(e,t,o,1);break;case 2:case 9:if(Aa(o)){Xl=0,Zl=null,Gu(t);break}t=function(){Xl!==2&&Xl!==9||Yl!==e||(Xl=7),gd(e)},o.then(t,t);break e;case 3:Xl=7;break e;case 4:Xl=5;break e;case 7:Aa(o)?(Xl=0,Zl=null,Gu(t)):(Xl=0,Zl=null,Ku(e,t,o,7));break;case 5:var s=null;switch(L.tag){case 26:s=L.memoizedState;case 5:case 27:var c=L;if(s?ip(s):c.stateNode.complete){Xl=0,Zl=null;var l=c.sibling;if(l!==null)L=l;else{var u=c.return;u===null?L=null:(L=u,qu(u))}break t}}Xl=0,Zl=null,Ku(e,t,o,5);break;case 6:Xl=0,Zl=null,Ku(e,t,o,6);break;case 8:Nu(),nu=6;break e;default:throw Error(i(462))}}Uu();break}catch(t){Fu(e,t)}while(1);return Zi=Xi=null,j.H=r,j.A=a,Jl=n,L===null?(Yl=null,R=0,ii(),nu):0}function Uu(){for(;L!==null&&!Oe();)Wu(L)}function Wu(e){var t=zc(e.alternate,e,tu);e.memoizedProps=e.pendingProps,t===null?qu(e):L=t}function Gu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Cc(n,t,t.pendingProps,t.type,void 0,R);break;case 11:t=Cc(n,t,t.pendingProps,t.type.render,t.ref,R);break;case 5:Fo(t);default:Jc(n,t),t=L=hi(t,tu),t=zc(n,t,tu)}e.memoizedProps=e.pendingProps,t===null?qu(e):L=t}function Ku(e,t,n,r){Zi=Xi=null,Fo(t),Ia=null,La=0;var i=t.return;try{if(cc(e,i,t,n,R)){nu=1,rc(e,Si(n,e.current)),L=null;return}}catch(t){if(i!==null)throw L=i,t;nu=1,rc(e,Si(n,e.current)),L=null;return}t.flags&32768?(F||r===1?e=!0:$l||R&536870912?e=!1:(Ql=e=!0,(r===2||r===9||r===3||r===6)&&(r=so.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ju(t,e)):qu(t)}function qu(e){var t=e;do{if(t.flags&32768){Ju(t,Ql);return}e=t.return;var n=Kc(t.alternate,t,tu);if(n!==null){L=n;return}if(t=t.sibling,t!==null){L=t;return}L=t=e}while(t!==null);nu===0&&(nu=5)}function Ju(e,t){do{var n=qc(e.alternate,e);if(n!==null){n.flags&=32767,L=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){L=e;return}L=e=n}while(e!==null);nu=6,L=null}function Yu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do ed();while(gu!==0);if(Jl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ri,nt(e,n,o,s,c,l),e===Yl&&(L=Yl=null,R=0),vu=t,_u=e,yu=n,bu=o,xu=a,Su=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ld(Pe,function(){return td(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=j.T,j.T=null,a=M.p,M.p=2,s=Jl,Jl|=4;try{pl(e,t,n)}finally{Jl=s,M.p=a,j.T=r}}gu=1,Xu(),Zu(),Qu()}}function Xu(){if(gu===1){gu=0;var e=_u,t=vu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=Jl;Jl|=4;try{El(t,e);var a=$d,o=jr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Ar(s.ownerDocument.documentElement,s)){if(c!==null&&Mr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=kr(s,h),v=kr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}xp=!!Qd,$d=Qd=null}finally{Jl=i,M.p=r,j.T=n}}e.current=t,gu=2}}function Zu(){if(gu===2){gu=0;var e=_u,t=vu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=Jl;Jl|=4;try{ml(e,t.alternate,t)}finally{Jl=i,M.p=r,j.T=n}}gu=3}}function Qu(){if(gu===4||gu===3){gu=0,ke();var e=_u,t=vu,n=yu,r=Su;t.subtreeFlags&10256||t.flags&10256?gu=5:(gu=0,vu=_u=null,$u(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(hu=null),st(n),t=t.stateNode,Be&&typeof Be.onCommitFiberRoot==`function`)try{Be.onCommitFiberRoot(ze,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=j.T,i=M.p,M.p=2,j.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{j.T=t,M.p=i}}yu&3&&ed(),gd(e),i=e.pendingLanes,n&261930&&i&42?e===wu?Cu++:(Cu=0,wu=e):Cu=0,_d(0,!1)}}function $u(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pa(t)))}function ed(){return Xu(),Zu(),Qu(),td()}function td(){if(gu!==5)return!1;var e=_u,t=bu;bu=0;var n=st(yu),r=j.T,a=M.p;try{M.p=32>n?32:n,j.T=null,n=xu,xu=null;var o=_u,s=yu;if(gu=0,vu=_u=null,yu=0,Jl&6)throw Error(i(331));var c=Jl;if(Jl|=4,Ul(o.current),Fl(o,o.current,s,n),Jl=c,_d(0,!1),Be&&typeof Be.onPostCommitFiberRoot==`function`)try{Be.onPostCommitFiberRoot(ze,o)}catch{}return!0}finally{M.p=a,j.T=r,$u(e,t)}}function nd(e,t,n){t=Si(n,t),t=ac(e.stateNode,t,2),e=Ja(e,t,2),e!==null&&(tt(e,2),gd(e))}function rd(e,t,n){if(e.tag===3)nd(e,e,n);else for(;t!==null;){if(t.tag===3){nd(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(hu===null||!hu.has(r))){e=Si(n,e),n=oc(2),r=Ja(t,n,2),r!==null&&(sc(n,r,t,e),tt(r,2),gd(r));break}}t=t.return}}function id(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ql;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(eu=!0,i.add(n),e=ad.bind(null,e,t,n),t.then(e,e))}function ad(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Yl===e&&(R&n)===n&&(nu===4||nu===3&&(R&62914560)===R&&300>Ae()-du?!(Jl&2)&&Pu(e,0):au|=n,su===R&&(su=0)),gd(e)}function od(e,t){t===0&&(t=$e()),e=si(e,t),e!==null&&(tt(e,t),gd(e))}function sd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),od(e,n)}function cd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),od(e,n)}function ld(e,t){return Ee(e,t)}var ud=null,dd=null,fd=!1,pd=!1,md=!1,hd=0;function gd(e){e!==dd&&e.next===null&&(dd===null?ud=dd=e:dd=dd.next=e),pd=!0,fd||(fd=!0,Cd())}function _d(e,t){if(!md&&pd){md=!0;do for(var n=!1,r=ud;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-He(42|e)+1)-1,a&=i&~(o&~s),a=a&0xc000095?a&0xc000095|1:a?a|2:0}a!==0&&(n=!0,Sd(r,a))}else a=R,a=Xe(r,r===Yl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,Sd(r,a))}r=r.next}while(n);md=!1}}function vd(){yd()}function yd(){pd=fd=!1;var e=0;hd!==0&&of()&&(e=hd);for(var t=Ae(),n=null,r=ud;r!==null;){var i=r.next,a=bd(r,t);a===0?(r.next=null,n===null?ud=i:n.next=i,i===null&&(dd=n)):(n=r,(e!==0||a&3)&&(pd=!0)),r=i}gu!==0&&gu!==5||_d(e,!1),hd!==0&&(hd=0)}function bd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-He(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Yl,n=R,n=Xe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Xl===2||Xl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&De(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ze(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&De(r),st(n)){case 2:case 8:n=Ne;break;case 32:n=Pe;break;case 268435456:n=Ie;break;default:n=Pe}return r=xd.bind(null,e),n=Ee(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&De(r),e.callbackPriority=2,e.callbackNode=null,2}function xd(e,t){if(gu!==0&&gu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ed()&&e.callbackNode!==n)return null;var r=R;return r=Xe(e,e===Yl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Ou(e,r,t),bd(e,Ae()),e.callbackNode!=null&&e.callbackNode===n?xd.bind(null,e):null)}function Sd(e,t){if(ed())return null;Ou(e,t,!0)}function Cd(){uf(function(){Jl&6?Ee(Me,vd):yd()})}function wd(){if(hd===0){var e=ga;e===0&&(e=Ke,Ke<<=1,!(Ke&261888)&&(Ke=256)),hd=e}return hd}function Td(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:rn(``+e)}function Ed(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Dd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Td((i[ft]||null).action),o=r.submitter;o&&(t=(t=o[ft]||null)?Td(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new En(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(hd!==0){var e=o?Ed(i,o):new FormData(i);js(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Ed(i,o):new FormData(i),js(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Od=0;Od<Qr.length;Od++){var kd=Qr[Od];$r(kd.toLowerCase(),`on`+(kd[0].toUpperCase()+kd.slice(1)))}$r(Wr,`onAnimationEnd`),$r(Gr,`onAnimationIteration`),$r(Kr,`onAnimationStart`),$r(`dblclick`,`onDoubleClick`),$r(`focusin`,`onFocus`),$r(`focusout`,`onBlur`),$r(qr,`onTransitionRun`),$r(Jr,`onTransitionStart`),$r(Yr,`onTransitionCancel`),$r(Xr,`onTransitionEnd`),Ot(`onMouseEnter`,[`mouseout`,`mouseover`]),Ot(`onMouseLeave`,[`mouseout`,`mouseover`]),Ot(`onPointerEnter`,[`pointerout`,`pointerover`]),Ot(`onPointerLeave`,[`pointerout`,`pointerover`]),Dt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Dt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Dt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Dt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Dt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Dt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Ad=`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(` `),jd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Ad));function Md(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=l;try{a(i)}catch(e){ei(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=l;try{a(i)}catch(e){ei(e)}i.currentTarget=null,a=c}}}}function z(e,t){var n=t[mt];n===void 0&&(n=t[mt]=new Set);var r=e+`__bubble`;n.has(r)||(Id(t,e,2,!1),n.add(r))}function Nd(e,t,n){var r=0;t&&(r|=4),Id(n,e,r,t)}var Pd=`_reactListening`+Math.random().toString(36).slice(2);function Fd(e){if(!e[Pd]){e[Pd]=!0,Tt.forEach(function(t){t!==`selectionchange`&&(jd.has(t)||Nd(t,!1,e),Nd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pd]||(t[Pd]=!0,Nd(`selectionchange`,!1,t))}}function Id(e,t,n,r){switch(Op(t)){case 2:var i=Sp;break;case 8:i=Cp;break;default:i=wp}n=i.bind(null,t,n,e),i=void 0,!hn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ld(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=bt(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue e}c=c.parentNode}}r=r.return}fn(function(){var r=a,i=sn(n),o=[];e:{var c=Zr.get(e);if(c!==void 0){var l=En,u=e;switch(e){case`keypress`:if(xn(n)===0)break e;case`keydown`:case`keyup`:l=Un;break;case`focusin`:u=`focus`,l=Fn;break;case`focusout`:u=`blur`,l=Fn;break;case`beforeblur`:case`afterblur`:l=Fn;break;case`click`:if(n.button===2)break e;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Nn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Pn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Gn;break;case Wr:case Gr:case Kr:l=In;break;case Xr:l=Kn;break;case`scroll`:case`scrollend`:l=On;break;case`wheel`:l=qn;break;case`copy`:case`cut`:case`paste`:l=Ln;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Wn;break;case`toggle`:case`beforetoggle`:l=Jn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=pn(m,p),g!=null&&d.push(Rd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){e:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==on&&(u=n.relatedTarget||n.fromElement)&&(bt(u)||u[pt]))break e;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?bt(u):null,u!==null&&(f=s(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Nn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Wn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:St(l),h=u==null?c:St(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,bt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)t:{for(d=Bd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break t}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Vd(o,c,l,d,!1),u!==null&&f!==null&&Vd(o,f,u,d,!0)}}e:{if(c=r?St(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=mr;else if(cr(c)){if(hr)v=wr;else{v=Sr;var y=xr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&en(r.elementType)&&(v=mr):v=Cr;if(v&&=v(e,r)){lr(o,v,n,i);break e}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Kt(c,`number`,c.value)}switch(y=r?St(r):window,e){case`focusin`:(cr(y)||y.contentEditable===`true`)&&(Pr=y,Fr=r,Ir=null);break;case`focusout`:Ir=Fr=Pr=null;break;case`mousedown`:Lr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Lr=!1,Rr(o,n,i);break;case`selectionchange`:if(Nr)break;case`keydown`:case`keyup`:Rr(o,n,i)}var b;if(Xn)e:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break e;case`compositionend`:x=`onCompositionEnd`;break e;case`compositionupdate`:x=`onCompositionUpdate`;break e}x=void 0}else ir?nr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&($n&&n.locale!==`ko`&&(ir||x!==`onCompositionStart`?x===`onCompositionEnd`&&ir&&(b=bn()):(_n=i,vn=`value`in _n?_n.value:_n.textContent,ir=!0)),y=zd(r,x),0<y.length&&(x=new P(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=rr(n),b!==null&&(x.data=b)))),(b=Qn?ar(e,n):or(e,n))&&(x=zd(r,`onBeforeInput`),0<x.length&&(y=new P(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),Dd(o,e,r,n,i)}Md(o,t)})}function Rd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=pn(e,n),i!=null&&r.unshift(Rd(e,i,a)),i=pn(e,t),i!=null&&r.push(Rd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Bd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=pn(n,a),l!=null&&o.unshift(Rd(n,l,c))):i||(l=pn(n,a),l!=null&&o.push(Rd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Hd=/\r\n?/g,Ud=/\u0000|\uFFFD/g;function Wd(e){return(typeof e==`string`?e:``+e).replace(Hd,`
|
|
10
|
+
`).replace(Ud,``)}function Gd(e,t){return t=Wd(t),Wd(e)===t}function Kd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Xt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Xt(e,``+r);break;case`className`:Pt(e,`class`,r);break;case`tabIndex`:Pt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Pt(e,n,r);break;case`style`:$t(e,r,o);break;case`data`:if(t!==`object`){Pt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=rn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Kd(e,t,`name`,a.name,a,null),Kd(e,t,`formEncType`,a.formEncType,a,null),Kd(e,t,`formMethod`,a.formMethod,a,null),Kd(e,t,`formTarget`,a.formTarget,a,null)):(Kd(e,t,`encType`,a.encType,a,null),Kd(e,t,`method`,a.method,a,null),Kd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=rn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=an);break;case`onScroll`:r!=null&&z(`scroll`,e);break;case`onScrollEnd`:r!=null&&z(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=rn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:z(`beforetoggle`,e),z(`toggle`,e),Nt(e,`popover`,r);break;case`xlinkActuate`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ft(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ft(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Nt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=tn.get(n)||n,Nt(e,n,r))}}function qd(e,t,n,r,a,o){switch(n){case`style`:$t(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Xt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Xt(e,``+r);break;case`onScroll`:r!=null&&z(`scroll`,e);break;case`onScrollEnd`:r!=null&&z(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=an);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:case`innerText`:case`textContent`:break;default:if(!Et.hasOwnProperty(n))e:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ft]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Nt(e,n,r)}}}function Jd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:z(`error`,e),z(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Kd(e,t,o,s,n,null)}}a&&Kd(e,t,`srcSet`,n.srcSet,n,null),r&&Kd(e,t,`src`,n.src,n,null);return;case`input`:z(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Kd(e,t,r,d,n,null)}}Gt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in z(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Kd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&qt(e,!!r,n,!0):qt(e,!!r,t,!1);return;case`textarea`:for(s in z(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Kd(e,t,s,c,n,null)}Yt(e,r,a,o);return;case`option`:for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null)&&(l===`selected`?e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`:Kd(e,t,l,r,n,null));return;case`dialog`:z(`beforetoggle`,e),z(`toggle`,e),z(`cancel`,e),z(`close`,e);break;case`iframe`:case`object`:z(`load`,e);break;case`video`:case`audio`:for(r=0;r<Ad.length;r++)z(Ad[r],e);break;case`image`:z(`error`,e),z(`load`,e);break;case`details`:z(`toggle`,e);break;case`embed`:case`source`:case`link`:z(`error`,e),z(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Kd(e,t,u,r,n,null)}return;default:if(en(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&qd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Kd(e,t,c,r,n,null))}function Yd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Kd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Kd(e,t,p,m,r,f)}}Wt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Kd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Kd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?qt(e,!!n,n?[]:``,!1):qt(e,!!n,t,!0)):qt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:case`children`:break;default:Kd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Kd(e,t,s,a,r,o)}Jt(e,p,m);return;case`option`:for(var h in n)p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h)&&(h===`selected`?e.selected=!1:Kd(e,t,h,null,r,p));for(l in r)p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null)&&(l===`selected`?e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`:Kd(e,t,l,p,r,m));return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Kd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Kd(e,t,u,p,r,m)}return;default:if(en(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&qd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||qd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Kd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Kd(e,t,f,p,r,m)}function Xd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Zd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Xd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Xd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Qd=null,$d=null;function ef(e){return e.nodeType===9?e:e.ownerDocument}function tf(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function nf(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function rf(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var af=null;function of(){var e=window.event;return e&&e.type===`popstate`?e!==af&&(af=e,!0):(af=null,!1)}var sf=typeof setTimeout==`function`?setTimeout:void 0,cf=typeof clearTimeout==`function`?clearTimeout:void 0,lf=typeof Promise==`function`?Promise:void 0,uf=typeof queueMicrotask==`function`?queueMicrotask:lf===void 0?sf:function(e){return lf.resolve(null).then(e).catch(df)};function df(e){setTimeout(function(){throw e})}function ff(e){return e===`head`}function pf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),qp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Df(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Df(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[vt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Df(e.ownerDocument.body)}n=i}while(n);qp(t)}function mf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function hf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:hf(n),yt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function gf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[vt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=Sf(e.nextSibling),e===null)break}return null}function _f(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=Sf(e.nextSibling),e===null))return null;return e}function vf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=Sf(e.nextSibling),e===null))return null;return e}function yf(e){return e.data===`$?`||e.data===`$~`}function bf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function xf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function Sf(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===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var Cf=null;function wf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return Sf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function Tf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Ef(e,t,n){switch(t=ef(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Df(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yt(e)}var Of=new Map,kf=new Set;function Af(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jf=M.d;M.d={f:Mf,r:Nf,D:If,C:Lf,L:Rf,m:zf,X:Vf,S:Bf,M:Hf};function Mf(){var e=jf.f(),t=Mu();return e||t}function Nf(e){var t=xt(e);t!==null&&t.tag===5&&t.type===`form`?Ns(t):jf.r(e)}var Pf=typeof document>`u`?null:document;function Ff(e,t,n){var r=Pf;if(r&&typeof t==`string`&&t){var i=Ut(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),kf.has(i)||(kf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Jd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function If(e){jf.D(e),Ff(`dns-prefetch`,e,null)}function Lf(e,t){jf.C(e,t),Ff(`preconnect`,e,t)}function Rf(e,t,n){jf.L(e,t,n);var r=Pf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ut(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ut(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ut(n.imageSizes)+`"]`)):i+=`[href="`+Ut(e)+`"]`;var a=i;switch(t){case`style`:a=Wf(e);break;case`script`:a=Jf(e)}Of.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Of.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Gf(a))||t===`script`&&r.querySelector(Yf(a))||(t=r.createElement(`link`),Jd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function zf(e,t){jf.m(e,t);var n=Pf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ut(r)+`"][href="`+Ut(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Jf(e)}if(!Of.has(a)&&(e=h({rel:`modulepreload`,href:e},t),Of.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Yf(a)))return}r=n.createElement(`link`),Jd(r,`link`,e),wt(r),n.head.appendChild(r)}}}function Bf(e,t,n){jf.S(e,t,n);var r=Pf;if(r&&e){var i=Ct(r).hoistableStyles,a=Wf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Gf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Of.get(a))&&Qf(e,n);var c=o=r.createElement(`link`);wt(c),Jd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Vf(e,t){jf.X(e,t);var n=Pf;if(n&&e){var r=Ct(n).hoistableScripts,i=Jf(e),a=r.get(i);a||(a=n.querySelector(Yf(i)),a||(e=h({src:e,async:!0},t),(t=Of.get(i))&&$f(e,t),a=n.createElement(`script`),wt(a),Jd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Hf(e,t){jf.M(e,t);var n=Pf;if(n&&e){var r=Ct(n).hoistableScripts,i=Jf(e),a=r.get(i);a||(a=n.querySelector(Yf(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=Of.get(i))&&$f(e,t),a=n.createElement(`script`),wt(a),Jd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Uf(e,t,n,r){var a=(a=fe.current)?Af(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Wf(n.href),n=Ct(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Wf(n.href);var o=Ct(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Gf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Of.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Of.set(e,n),o||qf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Jf(n),n=Ct(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Wf(e){return`href="`+Ut(e)+`"`}function Gf(e){return`link[rel="stylesheet"][`+e+`]`}function Kf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function qf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Jd(t,`link`,n),wt(t),e.head.appendChild(t))}function Jf(e){return`[src="`+Ut(e)+`"]`}function Yf(e){return`script[async]`+e}function Xf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ut(n.href)+`"]`);if(r)return t.instance=r,wt(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),wt(r),Jd(r,`style`,a),Zf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Wf(n.href);var o=e.querySelector(Gf(a));if(o)return t.state.loading|=4,t.instance=o,wt(o),o;r=Kf(n),(a=Of.get(a))&&Qf(r,a),o=(e.ownerDocument||e).createElement(`link`),wt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Jd(o,`link`,r),t.state.loading|=4,Zf(o,n.precedence,e),t.instance=o;case`script`:return o=Jf(n.src),(a=e.querySelector(Yf(o)))?(t.instance=a,wt(a),a):(r=n,(a=Of.get(o))&&(r=h({},n),$f(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),wt(a),Jd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Zf(r,n.precedence,e));return t.instance}function Zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function $f(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var ep=null;function tp(e,t,n){if(ep===null){var r=new Map,i=ep=new Map;i.set(n,r)}else i=ep,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[vt]||a[dt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function np(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function rp(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;return t.rel!==`stylesheet`||(e=t.disabled,typeof t.precedence==`string`&&e==null);case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function ip(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ap(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Wf(r.href),a=t.querySelector(Gf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=cp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,wt(a);return}a=t.ownerDocument||t,r=Kf(r),(i=Of.get(i))&&Qf(r,i),a=a.createElement(`link`),wt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Jd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=cp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var op=0;function sp(e,t){return e.stylesheets&&e.count===0&&up(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&up(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&op===0&&(op=62500*Zd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&up(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>op?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function cp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)up(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lp=null;function up(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lp=new Map,t.forEach(dp,e),lp=null,cp.call(e))}function dp(e,t){if(!(t.state.loading&4)){var n=lp.get(e);if(n)var r=n.get(null);else{n=new Map,lp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=cp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var fp={$$typeof:C,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function pp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=et(0),this.hiddenUpdates=et(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function mp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new pp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=fi(3,null,null,t),e.current=a,a.stateNode=e,t=fa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ga(a),e}function hp(e){return e?(e=ui,e):ui}function gp(e,t,n,r,i,a){i=hp(i),r.context===null?r.context=i:r.pendingContext=i,r=qa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ja(e,r,t),n!==null&&(Du(n,e,t),Ya(n,e,t))}function _p(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vp(e,t){_p(e,t),(e=e.alternate)&&_p(e,t)}function yp(e){if(e.tag===13||e.tag===31){var t=si(e,67108864);t!==null&&Du(t,e,67108864),vp(e,67108864)}}function bp(e){if(e.tag===13||e.tag===31){var t=Tu();t=ot(t);var n=si(e,t);n!==null&&Du(n,e,t),vp(e,t)}}var xp=!0;function Sp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=2,wp(e,t,n,r)}finally{M.p=a,j.T=i}}function Cp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=8,wp(e,t,n,r)}finally{M.p=a,j.T=i}}function wp(e,t,n,r){if(xp){var i=Tp(r);if(i===null)Ld(e,t,r,Ep,n),Lp(e,r);else if(zp(i,e,t,n,r))r.stopPropagation();else if(Lp(e,r),t&4&&-1<Ip.indexOf(e)){for(;i!==null;){var a=xt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ye(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-He(o);s.entanglements[1]|=c,o&=~c}gd(a),!(Jl&6)&&(pu=Ae()+500,_d(0,!1))}}break;case 31:case 13:s=si(a,2),s!==null&&Du(s,a,2),Mu(),vp(a,2)}if(a=Tp(r),a===null&&Ld(e,t,r,Ep,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ld(e,t,r,null,n)}}function Tp(e){return e=sn(e),Dp(e)}var Ep=null;function Dp(e){if(Ep=null,e=bt(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=d(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ep=e,null}function Op(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(je()){case Me:return 2;case Ne:return 8;case Pe:case Fe:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var kp=!1,Ap=null,jp=null,Mp=null,Np=new Map,Pp=new Map,Fp=[],Ip=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Lp(e,t){switch(e){case`focusin`:case`focusout`:Ap=null;break;case`dragenter`:case`dragleave`:jp=null;break;case`mouseover`:case`mouseout`:Mp=null;break;case`pointerover`:case`pointerout`:Np.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Pp.delete(t.pointerId)}}function Rp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=xt(t),t!==null&&yp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function zp(e,t,n,r,i){switch(t){case`focusin`:return Ap=Rp(Ap,e,t,n,r,i),!0;case`dragenter`:return jp=Rp(jp,e,t,n,r,i),!0;case`mouseover`:return Mp=Rp(Mp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Np.set(a,Rp(Np.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Pp.set(a,Rp(Pp.get(a)||null,e,t,n,r,i)),!0}return!1}function Bp(e){var t=bt(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,lt(e.priority,function(){bp(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,lt(e.priority,function(){bp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Tp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);on=r,n.target.dispatchEvent(r),on=null}else return t=xt(n),t!==null&&yp(t),e.blockedOn=n,!1;t.shift()}return!0}function Hp(e,t,n){Vp(e)&&n.delete(t)}function Up(){kp=!1,Ap!==null&&Vp(Ap)&&(Ap=null),jp!==null&&Vp(jp)&&(jp=null),Mp!==null&&Vp(Mp)&&(Mp=null),Np.forEach(Hp),Pp.forEach(Hp)}function Wp(e,n){e.blockedOn===n&&(e.blockedOn=null,kp||(kp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Up)))}var Gp=null;function Kp(e){Gp!==e&&(Gp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Gp===e&&(Gp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Dp(r||n)===null)continue;break}var a=xt(n);a!==null&&(e.splice(t,3),t-=3,js(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function qp(e){function t(t){return Wp(t,e)}Ap!==null&&Wp(Ap,e),jp!==null&&Wp(jp,e),Mp!==null&&Wp(Mp,e),Np.forEach(t),Pp.forEach(t);for(var n=0;n<Fp.length;n++){var r=Fp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Fp.length&&(n=Fp[0],n.blockedOn===null);)Bp(n),n.blockedOn===null&&Fp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ft]||null;if(typeof a==`function`)o||Kp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ft]||null)s=o.formAction;else if(Dp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Kp(n)}}}function Jp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Yp(e){this._internalRoot=e}Xp.prototype.render=Yp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));gp(t.current,Tu(),e,t,null,null)},Xp.prototype.unmount=Yp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gp(e.current,2,null,e,null,null),Mu(),t[pt]=null}};function Xp(e){this._internalRoot=e}Xp.prototype.unstable_scheduleHydration=function(e){if(e){var t=ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Fp.length&&t!==0&&t<Fp[n].priority;n++);Fp.splice(n,0,e),n===0&&Bp(e)}};var Zp=n.version;if(Zp!==`19.2.6`)throw Error(i(527,Zp,`19.2.6`));M.findDOMNode=function(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=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var Qp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:j,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var $p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$p.isDisabled&&$p.supportsFiber)try{ze=$p.inject(Qp),Be=$p}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=ec,s=tc,c=nc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=mp(e,1,!1,null,null,n,r,null,o,s,c,Jp),e[pt]=t.current,Fd(e),new Yp(t)}})),f=i(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=d()})),p=e(o(),1),m=p.use,h=p.useLayoutEffect;function g(e){return e[e.length-1]}function _(e,t){return typeof e==`function`?e(t):e}var v=Object.prototype.hasOwnProperty;function y(e){for(let t in e)if(v.call(e,t))return!0;return!1}var b=()=>Object.create(null),x=(e,t)=>S(e,t,!0);function S(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(C(e)&&C(t)))return t;let a=Object.keys(e),o=a.length,s=Object.keys(t),c=s.length;if(i?o!==e.length||c!==t.length||o&&g(a)!==`${o-1}`||c&&g(s)!==`${c-1}`:o!==Object.getOwnPropertyNames(e).length||c!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let l=0,u,d,f;if(i){for(;l<c&&(f=l,d=e[f],u=t[f],u=d===u?d:typeof d==`object`?S(d,u,n,r):u,u===d);l++);if(l===c&&o===c)return e}else{let i=o===c,p=!0;for(;l<c;l++){f=s[l],d=e[f];let o=t[f];u=d===o?d:typeof d==`object`?S(d,o,n,r):o,i&&=u===d&&(a[l]===f||v.call(e,f)),p&&=Object.is(u,o),a[l]=u}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(p)return t}let p=i?s.fill(0):n?b():{};for(let o=0;o<c;o++)f=i?o:s[o],i?(d=e[f],o>l&&(u=t[f],u=d===u?d:typeof d==`object`?S(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function C(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function w(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!w(a,o,n,r))return!1}return!0}if(C(e)&&C(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!w(e[i],t[i],n,r))return!1;return!0}let i=0;if(r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!w(e[a],t[a],n,r)))return!1;return i===0}return!1}function T(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var E=/[\x00-\x1f\x7f"<>`{}]/g;function D(e){return e.replace(E,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function O(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return D(t)}var ee=[`http:`,`https:`,`mailto:`,`tel:`];function k(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var te=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function ne(e,t){if(!e)return!1;if(te.test(e))return!0;let n=k(e);return n?!t.has(n):!1}function A(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=O(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=O(r?e.slice(r):e)}return t}function re(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function ie(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function j(){throw Error(`Invariant failed`)}function M(e){return e.replace(/\/{2,}/g,`/`)}function ae(e){return e===`/`?e:e.replace(/^\/+/,``)}function oe(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function se(e){return oe(ae(e))}function ce(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function N(e,t,n=`never`,r){if(t.includes(`//`)&&(t=M(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=M(e)),o=e.split(`/`);o.length>1&&g(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(g(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?M(s):s)||`/`;return a&&r&&r.set(a,c),c}function le(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function ue(e){return e==null||e===``}function de(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function fe(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&ue(f)){if(c===`/`&&!d)continue;f=``}o+=c+de(s,f,r)+(d||``)}}return o+a||`/`}function pe(e){return e?.isNotFound===!0}function me(){try{return sessionStorage}catch{return}}var he=`tsr-scroll-restoration-v1_3`,ge=me();function _e(){try{return JSON.parse(ge?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var ve=_e(),ye=`data-scroll-restoration-id`,be=e=>e.state.__TSR_key||e.href;function xe(e){let t=e.getAttribute(ye);if(t)return`[${ye}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Se=!1,Ce=`window`;function we(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Te(e){let t=new Set;for(let n of e){if(n===Ce)continue;let e=we(n);e&&t.add(e)}return t}function Ee(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||be,a=new Set,o=e=>{let t=ve[e]||={};for(let e of a)e===document?t[Ce]={scrollX,scrollY}:e.isConnected&&(t[xe(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,Se=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Se||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{ge?.setItem(he,JSON.stringify(ve))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),r.r||(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=ve[d];if(e){let t=ve[u];for(let n in e){if(n===Ce){if(s)continue}else{let e=we(n);if(!e||s&&o&&(l??=Te(o),l.has(e)))continue}t||=ve[u]={},t[n]??=e[n]}}}Se=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Te(o));let t=e&&i&&c,s=r.e?ve[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Ce){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=we(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Se=!1}}))}function De(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function Oe(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ke(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Oe(r):Array.isArray(t)?t.push(Oe(r)):n[e]=[t,Oe(r)]}return n}var Ae=/^(?:\s|["[{\d-]|fa|nu|tr)/,je=Ne(JSON.parse),Me=Pe(JSON.stringify,JSON.parse);function Ne(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=ke(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!Ae.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function Pe(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!Ae.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=De(e,r);return t?`?${t}`:``}}var Fe=`__root__`;function Ie(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Le(e){return e instanceof Response&&!!e.options}function Re(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var ze=4,Be=5;function Ve(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function He(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function Ue(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,l=s.length,u=s.endsWith(`/`)?l-1:l,d=c?.caseSensitive??e,f=c?.params?.parse??c?.parseParams,p,m=a?n-1:0;if(!r||s.includes(`$`)){p=a?.slice()??[];let e=g(p);e&&typeof e!=`string`&&e[0]===2&&(p[p.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],m=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=He(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=Ge(r);c=n,t.set(e,n)}}else{let t=a[0],h=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),p&&m<n&&(m<e-1&&p.push(s.slice(m,e-1)),a[2]=`/`+h,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),p.push(a),m=n),!r)continue;let _=d&&!!(h||g);d||(h=h.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=Ge(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.slice(m,u));let h=p?.slice();if(!r)return h;if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=Ge(r,Be);(r.pathless??=[]).push(e),r=e}let _=(t.path||!t.children)&&!t.isRoot;if(_&&u<l){let e=Ge(r,ze);r.index=e,r=e}return r.parse=f??null,r.priority=c?.params?.priority??0,r.route||(r.data=h,_&&(r.route=t)),[r,o,h]}function We(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Ge(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Ke(e,t){let n=Ge(),r=[];function i(e,t,n,a){let[o,s,c]=Ue(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(We);t.masksTree=n,t.flatCache=Re(1e3)}function qe(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Ze(e,t.masksTree);return t.flatCache.set(e,r),r}function Je(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Ge(),Ue(t,{from:e},1,o),i.singleCache.set(a,o)),Ze(r,o,n)}function Ye(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Ze(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=$e(a.route)),t.matchCache.set(r,a),a}function Xe(e,t=!1){let n=Ge(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&j(),i[e.id]=e,o!==0&&e.path){let t=oe(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=Ue(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(We);return{processedTree:{segmentTree:n,singleCache:Re(1e3),matchCache:Re(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function Ze(e,t,n=!1){let r=e.split(`/`),i=tt(e,r,t,n);if(!i)return null;let[a]=Qe(e,r,i);return{route:i.node.route,rawParams:a}}function Qe(e,t,n){let r=et(n.node),i=n.node.data&&Ve(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===ze)break;if(u.kind===Be){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function $e(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function et(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function tt(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!g(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!at(l,n))continue;if(i.parse){if(!it(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==ze&&at(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===ze||i.kind===2)&&at(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(it(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&rt(f,o))return n;at(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+nt(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+nt(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+nt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+nt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function nt(e,t){return 2**(e-t-1)}function rt(e,t){return e===2**(t-1)-1}function it(e,t,n){let r,i;try{[r,i]=Qe(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function at(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===ze)>(e.node.kind===ze)||t.node.kind===ze==(e.node.kind===ze)&&t.node.depth>e.node.depth)))}function ot(e,t,n){let r=se(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=M(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>st(n,s.input({url:e})),output:({url:e})=>s.output({url:ct(n,e)})}:s}function st(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function ct(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function lt(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{ie(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var ut=`__TSR_index`,dt=`popstate`,ft=`beforeunload`,pt=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function mt(e){let t=pt.exec(e);return t?`/`+e.slice(t[0].length):e}function ht(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
11
|
+
\r`.includes(e)?``:encodeURIComponent(e))),mt(e)}function gt(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=yt(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{i=_t(t.state[ut]+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{i=_t(t.state[ut],i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[ut]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function _t(e,t){let n=bt();return{...t,key:n,__TSR_key:n,[ut]:e}}function vt(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>ht(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>yt(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=bt();t.history.replaceState({[ut]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=yt(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[ut]-l.state[ut],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=gt({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ft,x,{capture:!0}),t.removeEventListener(dt,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(ft,x,{capture:!0}),t.addEventListener(dt,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function yt(e,t){let n=ht(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=bt();t={[ut]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function bt(){return(Math.random()+1).toString(36).slice(7)}function xt(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function St(e){return e.pathname+e.search+e.hash}function Ct(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function wt(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Tt({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Et(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function Dt(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var Ot=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:vt()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&se(n)?ot(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=lt(this.latestLocation,e),Ee(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Xe(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&Ke(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:Re(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:A(e),external:!1,searchStr:o,search:x(t?.search,i),hash:A(r.slice(1)),state:S(t?.state,a)}}let o=st(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:A(mt(o.pathname)),external:!!this.rewrite&&xt(o,this.origin),searchStr:c,search:x(t?.search,s),hash:A(o.hash.slice(1)),state:S(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Ye(oe(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=yt(n.href,{});n={...n,to:st(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,c=N(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[oe(c)],u=c.includes(`$`),d;if(l)d=l._branch??=$e(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??Ue(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=Nt(n.params,e),!y(p))break;p===e&&(p=Object.assign(b(),p));try{Object.assign(p,t(p))}catch{}}}p??=Nt(n.params,Pt(n.params,f)?o()[3]:Ft);let m=e.leaveParams?c:mt(A(f?fe(c,f,p,this.pathParamsDecoder):c)),h=It(d,e._includeValidateSearch),g=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,Mt(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?Lt(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||Ft,v=this.options.stringifySearch(_),x=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,S=x?`#${x}`:``,C=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:Ft,w=`${m}${v}${S}`,T,E,D=!1;if(this.rewrite){let e=new URL(w,this.origin),t=e.origin,n=ct(this.rewrite,e);T=St(e),xt(n,t)?(E=n.href,D=!0):E=mt(St(n))}else T=re(w),E=T;return{publicHref:E,href:T,pathname:m,search:_,searchStr:v,state:C,hash:x??``,external:D,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=qe(r.pathname,this.processedTree);if(t){let i=Object.assign(b(),t.rawParams),{from:a,params:o,...s}=t.route,c=Nt(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return kt(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=oe(this.latestLocation.href)===oe(n.href)&&w(Tt(n.state),Tt(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?k(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return kt(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await jn(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(wt(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&Ct(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(te.test(n)||(r=k(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:xt(e,this.origin)||(n=St(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=Ht,this.preloadRoute=e=>Mn(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?N(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=Je(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!w(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?w(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=le(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Me,parseSearch:e.parseSearch??je,protocolAllowlist:e.protocolAllowlist??ee}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=Ue(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:oe(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Rt(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],l,f,p;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=Mt(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof At||(r=new At(e.message,{cause:e})),t?.throwOnError)throw r;l=n,f={},p=r}}let m=``,h=``;try{m=i.options.loaderDeps?.({search:l})??``,h=m&&JSON.stringify(m)||``}catch(e){if(t?.throwOnError)throw e;p??=e}let g=b(),_=i._interpolation?fe(i.fullPath,i._interpolation,r,this.pathParamsDecoder,g):i.fullPath,v=i.id+_+h,y=u(i,n),C=this._cache.get(v)??(y?.id===v?y:void 0);d=C?._strictParams??Object.assign(g,d);let w;if(!C)try{zt(i,d)}catch(e){if(w=pe(e)||Le(e)?e:new jt(e.message,{cause:e}),t?.throwOnError)throw w}let T=y?`stay`:`enter`,E;if(C)E={...C,cause:T,search:x(y?y.search:C.search,l),_strictSearch:f,searchError:p};else{let e=Ct(i)?`pending`:`success`;E={id:v,ssr:i.options.ssr,index:n,routeId:i.id,params:y?.params??d,_strictParams:d,pathname:_,updatedAt:Date.now(),search:y?x(y.search,l):l,_strictSearch:f,searchError:p,status:e,isFetching:!1,error:void 0,paramsError:w,context:{},abortController:t?._controller??new AbortController,cause:T,loaderDeps:y?S(y.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let D=s===i.id;E._notFound&&!D&&(E.error=void 0),E._notFound=D,c[n]=E}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?x(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=g(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=g(a),c={...e.search};for(let e of a)try{Object.assign(c,Mt(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=o;for(let t of a)try{zt(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function kt(e,t,{replace:n,ignoreBlocker:r}){if(!ne(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var At=class extends Error{},jt=class extends Error{};function Mt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new At(`Async validation not supported`);if(n.issues)throw new At(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function Nt(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function Pt(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!v.call(e,t[1]))}var Ft=Object.freeze({});function It(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=Mt(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function Lt(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=_(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function Rt(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Fe}function zt(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Bt(e,t){return e.options[t]?.preload?.()}function Vt(e,t){let n=Bt(e,`component`),r=Bt(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function Ht(e,t,n){let r=()=>t===!1?void 0:t?Bt(e,t):Vt(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function Ut(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Wt(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}var Gt=0,Kt=1,qt=2,Jt=3,Yt=[4];function Xt(e){return typeof e[0]==`number`}function Zt(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function Qt(e,t){return e.routesById[t.routeId]}function $t(e,t,n){return Le(e)?[Jt,e]:pe(e)?(e.routeId||=n,[qt,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[Kt,e]):[Gt,e]}function en(e,t){let n=$t(t,!0,e.id);if(n[0]!==Kt)return n;try{e.options.onError?.(n[1])}catch(t){n=$t(t,!0,e.id)}return n}function tn(e,t,n,r,i){return i[0].signal.aborted?Yt:vn(e,t,n,en(n,r),i)}async function nn(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=Qt(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return an(e,r),[i,tn(e,t,u,a,n)]}if(c.aborted)return[i,Yt];let p=r.paramsError??r.searchError;if(p!==void 0)return an(e,r),[i,tn(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{cn(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?Zt(a,c):a);if(c.aborted)return[i,Yt];let s=vn(e,t,u,$t(o,!1,u.id),n);if(s[0]!==Gt)return an(e,r),[i,s];r.context={...r.context,...o}}catch(a){return an(e,r),[i,tn(e,t,u,a,n)]}finally{r.status=h,cn(e,r,!1,n[0])}}i()}function rn(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function an(e,t){let n=t._flight;t._flight=void 0,rn(e,t,n)?.abort()}function on(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=rn(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function sn(e){for(let t of e){let e=t._flight;e&&e[2]++}}function cn(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function ln(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function un(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return Yt;if(!i)return[Gt,void 0];let l=n._flight;cn(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(ln(e,t,n,r,s,a,!!o[3]))).then(e=>$t(e,!1,r.id),e=>$t(e,!0,r.id)).then(t=>(t[0]!==Gt&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===Kt&&l[2]?en(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],vn(e,t,r,await Zt(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return an(e,n),Yt}finally{cn(e,n,!1,s)}}function dn(e,t,n){t[0]!==Jt&&(e.status=`success`,e.error=void 0,t[0]===Gt?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function fn(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&an(e,r)}function pn(e,t){return t[0]===Kt||t[0]===qt?{...e,status:t[0]===Kt?`error`:`notFound`,error:t[1],_flight:void 0}:e}function mn(e,t,n,r,i,a,o){let s=t[1][n],c=Qt(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(ln(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=Yt)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,an(e,s),p=tn(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,rn(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?un(e,t,s,c,g,i,a).then(t=>(dn(s,t,l),t[0]===Gt&&(m&&!a[0].signal.aborted&&fn(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[Gt,s.loaderData]),T=(async()=>{try{let e=Ht(c,void 0,C);e&&await Zt(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,tn(e,t,c,r,a)]}let r=await w;x&&r[0]===Gt&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>pn(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=un(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,dn(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>pn(E,e))}async function hn(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=Qt(e,t[n]);try{let e=Ht(i,!1);e&&await Zt(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function gn(e,t){t[2]&&=(on(e,t[2].map(e=>e[3])),void 0)}async function _n(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=Jt)throw[a,t];!i&&t[0]!==Gt&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===Jt)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function vn(e,t,n,r,i,a){for(;r[0]===Jt;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[Jt,t]:[Jt,t,a]}return[Jt,o,n]}catch(e){r=a?[Kt,e]:en(n,e),a=!0}}return r}async function yn(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===qt?hn(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=Jt)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==Gt&&t[0]<Jt&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=Jt){let n=s[1];if(n[0]!==Jt||n[1].options.reloadDocument||n[2])return gn(e,t),n;c=!0,s=[0,[Kt,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===Kt?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=Qt(e,u);try{await Zt(i?Promise.resolve().then(()=>Ht(m,l===Kt?`errorComponent`:`notFoundComponent`)):Promise.all([Ht(m),Ht(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return gn(e,t),Yt}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),gn(e,t),on(e,o),p()):u.status=`success`}return t}async function bn(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=Qt(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await Zt(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function xn(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await hn(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=mn(e,i,t,u,f,r,l)},m=await nn(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===qt){let t=await hn(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=Jt&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=yn(e,i,u,r[0],_n(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=_n(i[2],void 0,void 0,h.then(e=>Xt(e)?0:Ut(n).length,()=>0))),o=await h}catch(t){if(gn(e,i),t===a&&a.aborted)return Yt;throw t}return Xt(o)?o:bn(e,o,a,r[6]===n.length?r[6]:0)}function Sn(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=Qt(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>Sn(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function Cn(e,t){let n=e._pending;e._tx!==t&&e._tx?.[3].some(e=>e.id===n?.[1])||(clearTimeout(n?.[3]),e._pending=void 0)}async function wn(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Ut(t[3]).some(e=>e.id===n[1]))return;let i;try{await Zt(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Tn(e,t){e._committed=t,e.stores.setMatches(t)}function En(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=Ut(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=Qt(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=Et(n);Tn(e,n),on(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),Dt(e,i,n,a,l,t)}async function Dn(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function On(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function kn(e,t,n,r,i){let a=n.map(e=>({...e}));sn(a);for(let t of r)an(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await yn(e,o,r,t[0],i)}catch(t){throw on(e,a),t}if(Xt(s))on(e,a),s[0]===Jt&&e._tx===t&&e._committed===n&&await On(e,t,s);else if(await bn(e,s,t[0].signal),e._tx!==t||e._committed!==n)on(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),an(e,n))}Tn(e,a),on(e,n,a)}}async function An(e,t,n,r,i,a){let o=await xn(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Xt(o)){let n=o[0]===Jt&&e._tx===t;if((!n||o[1].options.reloadDocument)&&Cn(e,t),on(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Cn(e,t);return}await On(e,t,o);return}let s=o[1];if(e._tx===t&&await wn(e,t),e._tx!==t){Cn(e,t),on(e,s),gn(e,o);return}let c=t[2],l=wt(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await wn(e,t),e._tx!==t){Cn(e,t),on(e,s),gn(e,o);return}let n=await e.startTransition(()=>{Cn(e,t),En(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&kn(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)):gn(e,o)})}async function jn(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=wt(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await Dn(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});sn(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){on(e,m),await Dn(e,n);return}e._preflight=void 0;let g,_=()=>An(e,y,f,()=>Sn(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>Dn(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&cn(e,t,!1)}n[0].abort(),on(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&Sn(e,y),g?.(_()),await y[5]):(on(e,y[3]),y[3]=[],g?.(),await Dn(e,y))}async function Mn(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),sn(a),o=(e._preloads??=new Map).set(i,a),s=await xn(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),on(e,a)),i.abort()}if(!Xt(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){pe(e)||console.error(e);return}}}var Nn=`Error preloading route! ☝️`,Pn=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Fe:this.parentRoute||j();let r=n?Fe:t?.path;r&&r!==`/`&&(r=ae(r));let i=t?.id||r,a=n?Fe:M((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:M(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=oe(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Ie({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Fn=class extends Pn{constructor(e){super(e)}},In=i((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Ln=i(((e,t)=>{t.exports=In()})),P=Ln(),Rn=class extends p.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?p.createElement(this.props.errorComponent??zn,{error:e[0],reset:this.reset}):this.props.children}};function zn({error:e}){let[t,n]=p.useState(!1);return(0,P.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,P.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,P.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,P.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,P.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,P.jsx)(`div`,{children:(0,P.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,P.jsx)(`code`,{children:e.message}):null})}):null]})}var Bn=()=>!0,Vn=()=>!1;function Hn({children:e,fallback:t=null}){return(0,P.jsx)(p.Fragment,{children:Un()?e:t})}function Un(e=!0){return p.useSyncExternalStore(Wn,Bn,e?Vn:Bn)}function Wn(){return()=>{}}var Gn=p.createContext(null);function Kn(e){return p.useContext(Gn)}function qn(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{Wt(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var Jn=p.createContext(void 0),Yn=p.createContext(void 0);function Xn({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;e:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue e}break}}while(1)}function o(t,n){let r,i=0,a=!1;e:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue e}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Zn(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Qn=[],$n=0,{link:er,unlink:tr,propagate:nr,checkDirty:rr,shallowPropagate:ir}=Xn({update(e){return e._update()},notify(e){Qn[or++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,ur(e))}}),ar=0,or=0,sr,cr=0;function lr(e){try{++cr,e()}finally{--cr||dr()}}function ur(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=tr(n,e)}function dr(){if(!(cr>0)){for(;ar<or;){let e=Qn[ar];Qn[ar++]=void 0,e.notify()}ar=0,or=0}}function fr(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return sr!==void 0&&er(i,sr,$n),i._snapshot},subscribe(e){let t=Zn(e),n={current:!1},r=pr(()=>{i.get(),n.current?(sr=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=sr,o=t?.compare??Object.is;if(n)sr=i,++$n,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{sr=a,n&&(i.flags&=-5),ur(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&rr(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&ir(e)}}else e&32&&(i.flags=e&-33);return sr!==void 0&&er(i,sr,$n),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(nr(e),ir(e),dr())}},i}function pr(e){let t=()=>{let t=sr;sr=n,++$n,n.depsTail=void 0,n.flags=6;try{return e()}finally{sr=t,n.flags&=-5,ur(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&rr(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,ur(this)}};return t(),n}var mr=i((e=>{var t=o();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return s(function(){o.value=n,o.getSnapshot=t,u(o)&&l({inst:o})},[e,n,t]),a(function(){return u(o)&&l({inst:o}),e(function(){u(o)&&l({inst:o})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),hr=i(((e,t)=>{t.exports=mr()})),gr=i((e=>{var t=o(),n=hr();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!a){if(a=!0,s=e,e=r(e),o!==void 0&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,i(s,e))return t;var n=r(e);return o!==void 0&&o(t,n)?(s=e,t):(s=e,c=n)}var a=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,o]);var p=a(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),_r=i(((e,t)=>{t.exports=gr()}))();function vr(e,t){return e===t}function yr(e,t=e=>e,n){let r=n?.compare??vr,i=(0,p.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,p.useCallback)(()=>e.get(),[e]);return(0,_r.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var br={};function xr(e,t){let n=p.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=S(n.current,i):i}}function Sr(e){let t=Kn(),n=p.useContext(e.from?Yn:Jn),r=e.from??n,i=t.stores.getMatchStore(r),a=xr(e,t),o=yr(i,e=>e?a(e):br);if(o!==br)return o;(e.shouldThrow??!0)&&j()}function Cr(e){return Sr({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function wr(e){let{select:t,...n}=e;return Sr({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Tr(e){return Sr({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Er(e){return Sr({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Dr(e){let t=Kn();return p.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Or(e){let t=Kn(),n=Dr(),r=p.useRef(null);return h(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function kr(e){return Sr({...e,select:t=>e.select?e.select(t.context):t.context})}function Ar(...e){let t=p.useRef(e),n=t.current;return e.forEach((e,t)=>{w(n[t],e,!1,!0)||(n[t]=e)}),t.current}function jr(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(Nn)})}function Mr(e,t){let n=typeof e==`string`&&k(e);if(n)return t.has(n)?e:null}function Nr(e,t,n,r){let i=ce(e.pathname,r),a=ce(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!w(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function Pr(e,t,n){let r=Kn(),i=p.useRef(null),a=p.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:m,onFocus:h,onMouseEnter:g,onMouseLeave:_,onTouchStart:v}=e,[y,b,x]=Ar(e.search,e.params,o),S=p.useContext(Jn),C=(r.stores._linkScopes??={})[S]??=qn(r,S),[w,T,E]=p.useMemo(()=>{let t=Mr(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=C[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=Hr(t,r,u),s=u||o&&!k(o)?Nr(e,t,x,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,c,x?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,C,e.from,e.hash,e.href,s,y,b,e.state,e.mask,e.unsafeRelative,x,u]),[D,O]=p.useSyncExternalStore(C[1],T,E||T),ee=O===void 0&&D,te=u||D===void 0,ne=p.useRef(!1),A=e.reloadDocument||ee||te?!1:c??r.options.defaultPreload,re=l??r.options.defaultPreloadDelay??0,ie=p.useCallback(e=>{let t=e?.isIntersecting;t??A===`intent`?re?i.t??=setTimeout(()=>{i.t=void 0,jr(r,w)},re):jr(r,w):t===!1&&Br(i)},[r,w,i,A,re]);p.useEffect(()=>{if(!A)return;A===`render`&&!ne.current&&(ne.current=!0,jr(r,w));let e=!0,t;return A===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&ie(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),Br(i)}},[r,w,A,ie,i]);let j=Rr(e,n);if(j.ref=t?a:i,ee)return j.href=ee,j;let M=t=>{let n=d??t.currentTarget.getAttribute(`target`);te||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),Br(i),r.navigate({...e,_fromLocation:w._fromLocation}))},ae=()=>{A===`intent`&&jr(r,w)},oe=()=>{A===`intent`&&Br(i)};return j.onClick=Vr(f,M),j.onBlur=Vr(m,oe),j.onFocus=Vr(h,ie),j.onMouseEnter=Vr(g,ie),j.onMouseLeave=Vr(_,oe),j.onTouchStart=Vr(v,ae),zr(j,e,O,D,te,n)}var Fr={},Ir={className:`active`},Lr=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function Rr(e,t){let n={};for(let r in e)Lr.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function zr(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=_(n?o:s,{})??(n?Ir:Fr);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var Br=e=>{clearTimeout(e.t),e.t=void 0},Vr=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function Hr(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!ne(i,t.protocolAllowlist))return i}var Ur=p.memo(p.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Pr(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return p.createElement(n,r,i)}),Wr);function Wr(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!Lr.has(r)||!w(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var Gr=class extends Pn{constructor(e){super(e),this.useMatch=e=>Sr({...e,from:this.id}),this.useRouteContext=e=>kr({...e,from:this.id}),this.useSearch=e=>Er({...e,from:this.id}),this.useParams=e=>Tr({...e,from:this.id}),this.useLoaderDeps=e=>wr({...e,from:this.id}),this.useLoaderData=e=>Cr({...e,from:this.id}),this.useNavigate=()=>Dr({from:this.fullPath}),this.Link=p.forwardRef((e,t)=>(0,P.jsx)(Ur,{ref:t,from:this.fullPath,...e}))}};function Kr(e){return new Gr(e)}var qr=class extends Fn{constructor(e){super(e),this.useMatch=e=>Sr({...e,from:this.id}),this.useRouteContext=e=>kr({...e,from:this.id}),this.useSearch=e=>Er({...e,from:this.id}),this.useParams=e=>Tr({...e,from:this.id}),this.useLoaderDeps=e=>wr({...e,from:this.id}),this.useLoaderData=e=>Cr({...e,from:this.id}),this.useNavigate=()=>Dr({from:this.fullPath}),this.Link=p.forwardRef((e,t)=>(0,P.jsx)(Ur,{ref:t,from:this.fullPath,...e}))}};function Jr(e){return new qr(e)}function Yr(e){return e=>{let t=Kr(e);return t.isRoot=!1,t}}function Xr(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(T(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(m)m(a());else throw a()}return p.createElement(r,e)};return o.preload=a,o}function Zr(e){let t=Kn(),n=`not-found-${yr(t.stores.location,e=>e.pathname)}-${yr(t.stores.status)}`;return(0,P.jsx)(Rn,{getResetKey:()=>n,onCatch:(t,n)=>{if(pe(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(pe(t))return e.fallback?.(t);throw t},children:e.children})}function Qr(){return(0,P.jsx)(`p`,{children:`Not Found`})}function $r(e,t,n){return t.options.notFoundComponent?(0,P.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,P.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,P.jsx)(Qr,{})}function ei(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,P.jsx)(n,{}):null}var ti=(e,t)=>e[0]===t[0]&&e[1]===t[1],ni=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,ri=p.memo(function({routeId:e}){let t=Kn();return ii(t,yr(t.stores.getMatchStore(e)))});function ii(e,t){let n=e.routesById[t.routeId],r=ei(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=ni(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,P.jsx)(ai,{match:t});s&&(l=(0,P.jsx)(Hn,{fallback:r,children:l})),o&&(l=(0,P.jsx)(Zr,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return p.createElement(o,e)},children:l})),i&&(l=(0,P.jsx)(Rn,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(pe(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,P.jsx)(p.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,P.jsx)(Jn.Provider,{value:t.routeId,children:(0,P.jsxs)(u,{children:[l,null]})}):(0,P.jsxs)(Jn.Provider,{value:t.routeId,children:[l,null]})}var ai=p.memo(function({match:e}){let t=Kn(),n=e.routeId,r=t.routesById[n],i=p.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=p.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,P.jsx)(e,{},i):(0,P.jsx)(oi,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!ni(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return ei(t,r)}if(e.status===`notFound`)return $r(t,r,e.error);if(e.status===`error`)throw e.error;return a}),oi=p.memo(function(){let e=Kn(),t=p.useContext(Jn),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=yr(a,e=>[!!e._notFound,e.error],{compare:ti}),i=yr(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return $r(e,e.routesById[t],r);if(!i)return null;let a=(0,P.jsx)(ri,{routeId:i});return t===`__root__`?(0,P.jsx)(p.Suspense,{fallback:ei(e),children:a}):a});function si(e,t){let n=e[1];e.length=0,n?.(t)}function ci({t:e}){let t=Kn(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{si(n,!1),n.push(i,a),e(t),p.startTransition(r)}),h(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(oe(r.publicHref)!==oe(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...wt(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}function li(){let e=Kn(),t=ei(e,e.routesById[Fe]),n=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ci,{t:p.useState()[1]}),e.ssr?(0,P.jsx)(ui,{}):(0,P.jsx)(p.Suspense,{fallback:t,children:(0,P.jsx)(ui,{})})]});return e.options.InnerWrap?(0,P.jsx)(e.options.InnerWrap,{children:n}):n}function ui(){let e=Kn(),t=e._rendered,n=yr(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;h(()=>{t[0]===n&&si(t,!0)},[t,n]);let a=i?(0,P.jsx)(ri,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,P.jsx)(Rn,{getResetKey:()=>r,onCatch:void 0,children:a})}var di=e=>({createMutableStore:fr,createReadonlyStore:fr,batch:lr}),fi=e=>new pi(e),pi=class extends Ot{constructor(e){super(e,di)}};function mi({router:e,children:t,...n}){y(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,P.jsx)(Gn.Provider,{value:e,children:t});return e.options.Wrap?(0,P.jsx)(e.options.Wrap,{children:r}):r}function hi({router:e,...t}){return(0,P.jsx)(mi,{router:e,...t,children:(0,P.jsx)(li,{})})}var gi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_i={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},vi=new class{#e=_i;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function yi(e){setTimeout(e,0)}var bi=typeof window>`u`||`Deno`in globalThis;function xi(){}function Si(e,t){return typeof e==`function`?e(t):e}function Ci(e){return typeof e==`number`&&e>=0&&e!==1/0}function wi(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ti(e,t){return typeof e==`function`?e(t):e}function Ei(e,t){return typeof e==`function`?e(t):e}function Di(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ki(o,t.options))return!1}else if(!ji(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Oi(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ai(t.options.mutationKey)!==Ai(a))return!1}else if(!ji(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ki(e,t){return(t?.queryKeyHashFn||Ai)(e)}function Ai(e){return JSON.stringify(e,(e,t)=>Ii(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ji(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>ji(e[n],t[n])):!1}var Mi=Object.prototype.hasOwnProperty;function Ni(e,t){if(e===t)return e;let n=Fi(e)&&Fi(t);if(!n&&!(Ii(e)&&Ii(t)))return t;let r=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,o=n?Array(a):{},s=0;for(let c=0;c<a;c++){let a=n?c:i[c],l=e[a],u=t[a];if(l===u){o[a]=l,(n?c<r:Mi.call(e,a))&&s++;continue}if(l===null||u===null||typeof l!=`object`||typeof u!=`object`){o[a]=u;continue}let d=Ni(l,u);o[a]=d,d===l&&s++}return r===a&&s===r?e:o}function Pi(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function Fi(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ii(e){if(!Li(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Li(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Li(e){return Object.prototype.toString.call(e)===`[object Object]`}function Ri(e){return new Promise(t=>{vi.setTimeout(t,e)})}function F(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:Ni(e,t)}function zi(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Bi(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vi=Symbol();function Hi(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Vi?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ui(e,t){return typeof e==`function`?e(...t):!!e}var Wi=new class extends gi{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!bi&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}};function Gi(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Ki=yi;function qi(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Ki,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Ji=qi(),Yi=new class extends gi{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!bi&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Xi(e){return Math.min(1e3*2**e,3e4)}function Zi(e){return(e??`online`)!==`online`||Yi.isOnline()}var Qi=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function $i(e){let t=!1,n=0,r,i=Gi(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Qi(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Wi.isFocused()&&(e.networkMode===`always`||Yi.isOnline())&&e.canRun(),u=()=>Zi(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(bi?0:3),o=e.retryDelay??Xi,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);t||!c?f(r):(n++,e.onFail?.(n,r),Ri(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()}))})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var ea=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ci(this.gcTime)&&(this.#e=vi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bi?1/0:3e5))}clearGcTimeout(){this.#e&&=(vi.clearTimeout(this.#e),void 0)}},ta=class extends ea{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=ia(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ia(this.options);e.data!==void 0&&(this.setState(ra(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=F(this.state.data,e,this.options);return this.#s({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#s({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(xi).catch(xi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Ei(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vi||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>Ti(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!wi(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=Hi(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#s({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=$i({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Qi&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#s({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#s({type:`pause`})},onContinue:()=>{this.#s({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Qi){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#s({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...na(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...ra(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Ji.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function na(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zi(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function ra(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ia(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var aa=class extends gi{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=Gi(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),sa(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ca(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ca(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof Ei(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Pi(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&la(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||Ei(this.options.enabled,this.#t)!==Ei(t.enabled,this.#t)||Ti(this.options.staleTime,this.#t)!==Ti(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||Ei(this.options.enabled,this.#t)!==Ei(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return da(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(xi)),t}#g(){this.#b();let e=Ti(this.options.staleTime,this.#t);if(bi||this.#r.isStale||!Ci(e))return;let t=wi(this.#r.dataUpdatedAt,e)+1;this.#d=vi.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!bi&&Ei(this.options.enabled,this.#t)!==!1&&Ci(this.#p)&&this.#p!==0&&(this.#f=vi.setInterval(()=>{(this.options.refetchIntervalInBackground||Wi.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d&&=(vi.clearTimeout(this.#d),void 0)}#x(){this.#f&&=(vi.clearInterval(this.#f),void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&sa(e,t),o=i&&la(e,n,t,r);(a||o)&&(l={...l,...na(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=F(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=F(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:ua(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Ei(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=e=>{x.status===`error`?e.reject(x.error):x.data!==void 0&&e.resolve(x.data)},r=()=>{let e=this.#o=x.promise=Gi();t(e)},i=this.#o;switch(i.status){case`pending`:e.queryHash===n.queryHash&&t(i);break;case`fulfilled`:(x.status===`error`||x.data!==i.value)&&r();break;case`rejected`:(x.status!==`error`||x.error!==i.reason)&&r()}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),Pi(t,e)||(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){Ji.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function oa(e,t){return Ei(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||t.retryOnMount!==!1)}function sa(e,t){return oa(e,t)||e.state.data!==void 0&&ca(e,t,t.refetchOnMount)}function ca(e,t,n){if(Ei(t.enabled,e)!==!1&&Ti(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&ua(e,t)}return!1}function la(e,t,n,r){return(e!==t||Ei(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&ua(e,n)}function ua(e,t){return Ei(t.enabled,e)!==!1&&e.isStaleByTime(Ti(t.staleTime,e))}function da(e,t){return!Pi(e.getCurrentResult(),t)}function fa(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener(`abort`,()=>{n=!0}),t.signal)})},u=Hi(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Bi:zi;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?ma:pa,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:pa(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function pa(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ma(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var ha=class extends ea{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||ga(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=$i({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),await this.#n.config.onMutate?.(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{throw await this.#n.config.onError?.(t,e,this.state.context,this,n),await this.options.onError?.(t,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,t,e,this.state.context,n),t}finally{this.#i({type:`error`,error:t})}}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Ji.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function ga(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var _a=class extends gi{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new ha({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=va(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=va(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=va(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=va(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Ji.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Oi(t,e))}findAll(e={}){return this.getAll().filter(t=>Oi(e,t))}notify(e){Ji.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Ji.batch(()=>Promise.all(e.map(e=>e.continue().catch(xi))))}};function va(e){return e.options.scope?.id}var ya=class extends gi{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),Pi(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&Ai(t.mutationKey)!==Ai(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??ga();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){Ji.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type===`success`?(this.#r.onSuccess?.(e.data,t,n,r),this.#r.onSettled?.(e.data,null,t,n,r)):e?.type===`error`&&(this.#r.onError?.(e.error,t,n,r),this.#r.onSettled?.(void 0,e.error,t,n,r))}this.listeners.forEach(e=>{e(this.#t)})})}},ba=class extends gi{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ki(r,t),a=this.get(i);return a||(a=new ta({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Ji.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Di(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Di(e,t)):t}notify(e){Ji.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ji.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ji.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},xa=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new ba,this.#t=e.mutationCache||new _a,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Wi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Yi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ti(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=Si(t,this.#e.get(r.queryHash)?.state.data);if(i!==void 0)return this.#e.build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ji.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Ji.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Ji.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Ji.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(xi).catch(xi)}invalidateQueries(e,t={}){return Ji.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ji.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(xi)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(xi)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Ti(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xi).catch(xi)}fetchInfiniteQuery(e){return e.behavior=fa(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xi).catch(xi)}ensureInfiniteQueryData(e){return e.behavior=fa(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Yi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Ai(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ji(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(Ai(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ji(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ki(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Vi&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Sa=p.createContext(void 0),Ca=e=>{let t=p.useContext(Sa);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},wa=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,P.jsx)(Sa.Provider,{value:e,children:t})),Ta=p.createContext(!1),Ea=()=>p.useContext(Ta);Ta.Provider;function Da(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Oa=p.createContext(Da()),ka=()=>p.useContext(Oa),Aa=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},ja=e=>{p.useEffect(()=>{e.clearReset()},[e])},Ma=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Ui(n,[e.error,r])),Na=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Pa=(e,t)=>e.isLoading&&e.isFetching&&!t,Fa=(e,t)=>e?.suspense&&t.isPending,Ia=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function La(e,t,n){let r=Ea(),i=ka(),a=Ca(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=r?`isRestoring`:`optimistic`,Na(o),Aa(o,i),ja(i);let s=!a.getQueryCache().get(o.queryHash),[c]=p.useState(()=>new t(a,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(e=>{let t=u?c.subscribe(Ji.batchCalls(e)):xi;return c.updateResult(),t},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setOptions(o)},[o,c]),Fa(o,l))throw Ia(o,c,i);if(Ma({result:l,errorResetBoundary:i,throwOnError:o.throwOnError,query:a.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw l.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,l),o.experimental_prefetchInRender&&!bi&&Pa(l,r)&&(s?Ia(o,c,i):a.getQueryCache().get(o.queryHash)?.promise)?.catch(xi).finally(()=>{c.updateResult()}),o.notifyOnChangeProps?l:c.trackResult(l)}function Ra(e,t){return La(e,aa,t)}function za(e,t){let n=Ca(t),[r]=p.useState(()=>new ya(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);let i=p.useSyncExternalStore(p.useCallback(e=>r.subscribe(Ji.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=p.useCallback((e,t)=>{r.mutate(e,t).catch(xi)},[r]);if(i.error&&Ui(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var Ba=f(),Va=`trendpublish.dashboard.apiKey`,Ha=``;function Ua(e){if(!e)return``;try{return e.getItem(Va)??``}catch{return``}}function Wa(e,t){if(e)try{e.setItem(Va,t)}catch{}}function Ga(e){if(e)try{e.removeItem(Va)}catch{}}var Ka={read(){let e=typeof localStorage<`u`?Ua(localStorage):``;if(e)return e;let t=typeof sessionStorage<`u`?Ua(sessionStorage):``;return t?(typeof localStorage<`u`&&Wa(localStorage,t),t):Ha},write(e){Ha=e,typeof localStorage<`u`&&Wa(localStorage,e),typeof sessionStorage<`u`&&Ga(sessionStorage)},clear(){Ha=``,typeof localStorage<`u`&&Ga(localStorage),typeof sessionStorage<`u`&&Ga(sessionStorage)}},qa=(0,p.createContext)(null),Ja=!1;function Ya(){if(typeof window>`u`)return``;try{let e=new URL(window.location.href),t=e.searchParams.get(`token`)?.trim()??``;if(!t)return``;e.searchParams.delete(`token`);let n=`${e.pathname}${e.search}${e.hash}`;return window.history.replaceState(window.history.state,``,n),t}catch{return``}}function Xa(){let e=Ya();return e?(Ja=!0,Ka.write(e),e):Ka.read()}function Za({children:e}){let[t,n]=(0,p.useState)(Xa),r=(0,p.useMemo)(()=>({apiKey:t,isAuthenticated:!!t,login:e=>{let t=e.trim();t&&(Ja=!1,Ka.write(t),n(t))},logout:()=>{Ja=!1,Ka.clear(),n(``)},consumeAutoLoginRedirect:()=>Ja?(Ja=!1,!0):!1}),[t]);return(0,P.jsx)(qa.Provider,{value:r,children:e})}function Qa(){let e=(0,p.useContext)(qa);if(!e)throw Error(`useAuth must be used inside AuthProvider`);return e}var $a=Object.defineProperty,eo=(e,t)=>$a(e,`name`,{value:t,configurable:!0});function to(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}eo(to,`setRef`);function no(...e){return t=>{let n=!1,r=e.map(e=>{let r=to(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():to(e[t],null)}}}}eo(no,`composeRefs`);function ro(...e){return p.useCallback(no(...e),e)}eo(ro,`useComposedRefs`);var io=Object.defineProperty,ao=(e,t)=>io(e,`name`,{value:t,configurable:!0});function oo(e){let t=p.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=_o(r),p.Children.forEach(r,e=>{if(po(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;ho(n)&&typeof bo==`function`;)n=bo(n._payload);a=lo(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=p.cloneElement(a,void 0,s):!o&&p.Children.count(r)===1&&p.isValidElement(r)&&(a=r);let c=a?fo(a):void 0,l=ro(n,c);if(!a){if(r||r===0)throw Error(o?yo(e):vo(e));return r}let u=uo(i,a.props??{});return a.type!==p.Fragment&&(u.ref=n?l:c),p.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}ao(oo,`createSlot`);var so=Symbol.for(`radix.slottable`);function co(e){let t=ao(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=so,t}ao(co,`createSlottable`);var lo=ao((e,t)=>`child`in e.props?p.isValidElement(t)?p.cloneElement(t,void 0,e.props.children(t.props.children)):null:p.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function uo(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=I(a,i))}return{...e,...n}}ao(uo,`mergeProps`);function fo(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}ao(fo,`getElementRef`);function po(e){return p.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===so}ao(po,`isSlottable`);var mo=Symbol.for(`react.lazy`);function ho(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===mo&&`_payload`in e&&go(e._payload)}ao(ho,`isLazyComponent`);function go(e){return typeof e==`object`&&!!e&&`then`in e}ao(go,`isPromiseLike`);function _o(e){let t=e;for(;ho(t)&&typeof bo==`function`;)t=bo(t._payload);return t}ao(_o,`useUnwrappedLazy`);function I(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}ao(I,`concatAriaDescribedby`);var vo=ao(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),yo=ao(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),bo=p.use,xo=e(u(),1),So=Object.defineProperty,Co=(e,t)=>So(e,`name`,{value:t,configurable:!0}),wo=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=oo(`Primitive.${t}`),r=p.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,P.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function To(e,t){e&&xo.flushSync(()=>e.dispatchEvent(t))}Co(To,`dispatchDiscreteCustomEvent`);var Eo=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`}),Do=Object.defineProperty,Oo=(e,t)=>Do(e,`name`,{value:t,configurable:!0});function ko(e,t){let n=p.createContext(t);n.displayName=e+`Context`;let r=Oo(e=>{let{children:t,...r}=e,i=p.useMemo(()=>r,Object.values(r));return(0,P.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=p.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Oo(i,`useContext`),[r,i]}Oo(ko,`createContext`);function Ao(e,t=[]){let n=[];function r(t,r){let i=p.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Oo(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=p.useMemo(()=>o,Object.values(o));return(0,P.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=p.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Oo(s,`useContext`),[o,s]}Oo(r,`createContext`);let i=Oo(()=>{let t=n.map(e=>p.createContext(e));return Oo(function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,jo(i,...t)]}Oo(Ao,`createContextScope`);function jo(...e){let t=e[0];if(e.length===1)return t;let n=Oo(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Oo(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Oo(jo,`composeContextScopes`);var Mo=globalThis?.document?p.useLayoutEffect:()=>{},No=Object.defineProperty,Po=(e,t)=>No(e,`name`,{value:t,configurable:!0});function Fo(e){let t=e+`CollectionProvider`,[n,r]=Ao(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Po(e=>{let{scope:t,children:n}=e,r=p.useRef(null),a=p.useRef(new Map).current;return(0,P.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=oo(s),l=p.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ro(t,a(s,n).collectionRef);return(0,P.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=oo(u),m=p.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=p.useRef(null),s=ro(t,o),c=a(u,n);return p.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,P.jsx)(f,{[d]:``,ref:s,children:r})});m.displayName=u;function h(t){let n=a(e+`CollectionConsumer`,t);return p.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return Po(h,`useCollection`),[{Provider:o,Slot:l,ItemSlot:m},h,r]}Po(Fo,`createCollection`);var Io=new WeakMap,Lo=class e extends Map{static{Po(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],Io.set(this,!0)}set(e,t){return Io.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=Bo(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=Ro(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=Ro(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Ro(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function Ro(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=zo(e,t);return n===-1?void 0:e[n]}Po(Ro,`at`);function zo(e,t){let n=e.length,r=Bo(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Po(zo,`toSafeIndex`);function Bo(e){return e!==e||e===0?0:Math.trunc(e)}Po(Bo,`toSafeInteger`);function Vo(e){let t=e+`CollectionProvider`,[n,r]=Ao(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[o,s]=n(t);o.displayName=e+`CollectionStatefulContextProvider`;let c=Po(({state:e,...t})=>e?(0,P.jsx)(u,{...t,state:e}):(0,P.jsx)(l,{...t}),`CollectionProvider`);c.displayName=t;let l=Po(e=>{let t=v();return(0,P.jsx)(u,{...e,state:t})},`CollectionInit`);l.displayName=e+`CollectionInit`;let u=Po(e=>{let{scope:t,children:n,state:r}=e,a=p.useRef(null),[s,c]=p.useState(null),l=ro(a,c),[u,d]=r,f=p.useRef(new Lo),m=p.useCallback(()=>{let e=f.current;return Wo(e)||e.sort(Go),e},[]);return p.useEffect(()=>{if(!s)return;let e=Ko(()=>{d(e=>{let t=e.toSorted(Go);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s,d]),(0,P.jsx)(i,{scope:t,collectionElementRef:l,collectionElementRefObject:a,getCollection:m,setCollection:d,registryRef:f,children:(0,P.jsx)(o,{scope:t,collectionElement:s,collection:u,children:n})})},`CollectionProviderImpl`);u.displayName=e+`CollectionProviderImpl`;let d=e+`CollectionSlot`,f=oo(d),m=p.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ro(t,a(d,n).collectionElementRef);return(0,P.jsx)(f,{ref:i,children:r})});m.displayName=d;let h=e+`CollectionItemSlot`,g=oo(h),_=p.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=p.useRef(null),{setCollection:s,registryRef:c}=a(h,n),l=p.useRef(i);Ho(l.current,i)||(l.current=i);let u=l.current,d=ro(t,p.useCallback(e=>{let t=c.current;e?t.set(e,{...l.current,element:e}):o.current&&t.delete(o.current)},[c]),o);Mo(()=>{let e=o.current,t=c.current;e&&t.has(e)&&t.set(e,{...u,element:e})},[u,c]);let f=p.useRef(null);return p.useEffect(()=>{let e=o.current,t=f.current;((t?.element??null)!==e||e&&t?.itemData!==u)&&(f.current=e?{element:e,itemData:u}:null,s(n=>{let r=new Lo(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...u,element:e}),r.sort(Go)}))}),p.useEffect(()=>()=>{let e=f.current;f.current=null,e&&s(t=>{if(!t.has(e.element))return t;let n=new Lo(t);return n.delete(e.element),n})},[s]),(0,P.jsx)(g,{"data-radix-collection-item":``,ref:d,children:r})});_.displayName=h;function v(){return p.useState(new Lo)}Po(v,`useInitCollection`);function y(t){let{collection:n}=s(e+`CollectionConsumer`,t);return n}Po(y,`useCollection`);function b(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return Po(b,`useGetCollection`),[{Provider:c,Slot:m,ItemSlot:_},{createCollectionScope:r,useCollection:y,useGetCollection:b,useInitCollection:v}]}Po(Vo,`createCollection`);function Ho(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Po(Ho,`shallowEqual`);function Uo(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Po(Uo,`isElementPreceding`);function Wo(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}Po(Wo,`isInDocumentOrder`);function Go(e,t){return!e[1].element||!t[1].element?0:Uo(e[1].element,t[1].element)?-1:1}Po(Go,`sortByDocumentPosition`);function Ko(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Po(Ko,`getChildListObserver`);var qo=Object.defineProperty,Jo=(e,t)=>qo(e,`name`,{value:t,configurable:!0}),Yo=!!(typeof window<`u`&&window.document&&window.document.createElement);function Xo(e,t,{checkForDefaultPrevented:n=!0}={}){return Jo(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Jo(Xo,`composeEventHandlers`);function Zo(e){if(!Yo)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Jo(Zo,`getOwnerWindow`);function Qo(e){if(!Yo)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Jo(Qo,`getOwnerDocument`);function $o(e,t=!1){let{activeElement:n}=Qo(e);if(!n?.nodeName)return null;if(es(n)&&n.contentDocument)return $o(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Qo(n).getElementById(e);if(t)return t}}return n}Jo($o,`getActiveElement`);function es(e){return e.tagName===`IFRAME`}Jo(es,`isFrame`);var ts=Object.defineProperty,ns=(e,t)=>ts(e,`name`,{value:t,configurable:!0}),rs=p.useEffectEvent,is=p.useInsertionEffect;function as(e){if(typeof rs==`function`)return rs(e);let t=p.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof is==`function`?is(()=>{t.current=e}):Mo(()=>{t.current=e}),p.useMemo(()=>((...e)=>t.current?.(...e)),[])}ns(as,`useEffectEvent`);var os=Object.defineProperty,ss=(e,t)=>os(e,`name`,{value:t,configurable:!0}),cs=p.useInsertionEffect||Mo;function ls({prop:e,defaultProp:t,onChange:n=ss(()=>{},`onChange`),caller:r}){let[i,a,o]=us({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,p.useCallback(t=>{if(s){let n=ds(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}ss(ls,`useControllableState`);function us({defaultProp:e,onChange:t}){let[n,r]=p.useState(e),i=p.useRef(n),a=p.useRef(t);return cs(()=>{a.current=t},[t]),p.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}ss(us,`useUncontrolledState`);function ds(e){return typeof e==`function`}ss(ds,`isFunction`);var fs=Symbol(`RADIX:SYNC_STATE`);function ps(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=as(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=p.useReducer((t,n)=>{if(n.type===fs)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),m=d.state,h=p.useRef(m);p.useEffect(()=>{h.current!==m&&(h.current=m,c||l(m))},[m,h,c]);let g=p.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return p.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:fs,state:i})},[i,d.state,c]),[g,f]}ss(ps,`useControllableStateReducer`);var ms=Object.defineProperty,hs=(e,t)=>ms(e,`name`,{value:t,configurable:!0});function gs(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}hs(gs,`useStateMachine`);var _s=hs(e=>{let{present:t,children:n}=e,r=vs(t),i=typeof n==`function`?n({present:r.isPresent}):p.Children.only(n),a=bs(r.ref,Ss(i));return typeof n==`function`||r.isPresent?p.cloneElement(i,{ref:a}):null},`Presence`);function vs(e){let[t,n]=p.useState(),r=p.useRef(null),i=p.useRef(e),a=p.useRef(`none`),o=p.useRef(void 0),[s,c]=gs(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return p.useEffect(()=>{s===`mounted`?(a.current=o.current??xs(r.current),o.current=void 0):a.current=`none`},[s]),Mo(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=xs(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Mo(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=hs(a=>{let o=xs(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=hs(e=>{e.target===t&&(a.current=xs(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:p.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=xs(t)}else r.current=null;n(e)},[])}}hs(vs,`usePresence`);function ys(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}hs(ys,`setRef`);function bs(...e){let t=p.useRef(e);return t.current=e,p.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=ys(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():ys(n[e],null)}}},[])}hs(bs,`useStableComposedRefs`);function xs(e){return e?.animationName||`none`}hs(xs,`getAnimationName`);function Ss(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}hs(Ss,`getElementRef`);var Cs=Object.defineProperty,ws=(e,t)=>Cs(e,`name`,{value:t,configurable:!0}),Ts=p.useId||(()=>void 0),Es=0;function Ds(e){let[t,n]=p.useState(Ts());return Mo(()=>{e||n(e=>e??String(Es++))},[e]),e||(t?`radix-${t}`:``)}ws(Ds,`useId`);var Os=Object.defineProperty,ks=(e,t)=>Os(e,`name`,{value:t,configurable:!0}),As={LTR:`ltr`,RTL:`rtl`},js=p.createContext(void 0);function Ms(e){let t=p.useContext(js);return e||t||As.LTR}ks(Ms,`useDirection`);var Ns=Object.defineProperty,Ps=(e,t)=>Ns(e,`name`,{value:t,configurable:!0}),Fs=p.useInsertionEffect;function Is(e){let t=p.useRef(e);return typeof Fs==`function`?Fs(()=>{t.current=e}):Mo(()=>{t.current=e}),p.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ps(Is,`useCallbackRef`);var Ls=Object.defineProperty,Rs=(e,t)=>Ls(e,`name`,{value:t,configurable:!0}),zs=`dismissableLayer.update`,Bs=`dismissableLayer.pointerDownOutside`,Vs=`dismissableLayer.focusOutside`,Hs,Us=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Ws=p.forwardRef(Rs(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=p.useContext(Us),[d,f]=p.useState(null),m=d?.ownerDocument??globalThis?.document,[,h]=p.useState({}),g=ro(t,f),_=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v?_.indexOf(v):-1,b=d?_.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=p.useRef(!1),w=qs(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:p.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=Js(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},m),E=d?b===_.length-1:!1,D=Is(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return p.useEffect(()=>{if(E)return m.addEventListener(`keydown`,D,{capture:!0}),()=>m.removeEventListener(`keydown`,D,{capture:!0})},[m,E,D]),p.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Hs=m.body.style.pointerEvents,m.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ys(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Hs))}},[d,m,n,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ys())},[d,u]),p.useEffect(()=>{let e=Rs(()=>h({}),`handleUpdate`);return document.addEventListener(zs,e),()=>document.removeEventListener(zs,e)},[]),(0,P.jsx)(wo.div,{...l,ref:g,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:Xo(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Xo(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Xo(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function Gs(){let e=p.useContext(Us),[t,n]=p.useState(null);return p.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Rs(Gs,`useDismissableLayerSurface`);var Ks=Rs(()=>!0,`IS_TRUE`);function qs(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Ks}=t,s=Is(e),c=p.useRef(!1),l=p.useRef(!1),u=p.useRef(new Map),d=p.useRef(()=>{});return p.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}Rs(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}Rs(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}Rs(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}Rs(p,`handleInteractionBubble`);let m=Rs(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Xs(Bs,s,p,{discrete:!0})};if(Rs(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:Rs(()=>c.current=!0,`onPointerDownCapture`)}}Rs(qs,`usePointerDownOutside`);function Js(e,t=globalThis?.document){let n=Is(e),r=p.useRef(!1);return p.useEffect(()=>{let e=Rs(e=>{e.target&&!r.current&&Xs(Vs,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:Rs(()=>r.current=!0,`onFocusCapture`),onBlurCapture:Rs(()=>r.current=!1,`onBlurCapture`)}}Rs(Js,`useFocusOutside`);function Ys(){let e=new CustomEvent(zs);document.dispatchEvent(e)}Rs(Ys,`dispatchUpdate`);function Xs(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?To(i,a):i.dispatchEvent(a)}Rs(Xs,`handleAndDispatchCustomEvent`);var Zs=Object.defineProperty,Qs=(e,t)=>Zs(e,`name`,{value:t,configurable:!0}),$s=`focusScope.autoFocusOnMount`,ec=`focusScope.autoFocusOnUnmount`,tc={bubbles:!1,cancelable:!0},nc=p.forwardRef(Qs(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=p.useState(null),u=Is(a),d=Is(o),f=p.useRef(null),m=ro(t,l),h=p.useRef(i);p.useEffect(()=>{h.current=i});let g=p.useCallback(e=>e?c?.contains(e)?!0:!!h.current?.some(t=>t.contains(e)):!1,[c]),_=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(_.paused||!c)return;let t=e.target;g(t)?f.current=t:pc(f.current,{select:!0})},t=function(e){if(_.paused||!c)return;let t=e.relatedTarget;t!==null&&(g(t)||pc(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&pc(c)};Qs(e,`handleFocusIn`),Qs(t,`handleFocusOut`),Qs(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,_.paused,g]),p.useEffect(()=>{if(c){mc.add(_);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent($s,tc);c.addEventListener($s,u),c.dispatchEvent(t),t.defaultPrevented||(sc(_c(lc(c)),{select:!0}),document.activeElement===e&&pc(c))}return()=>{c.removeEventListener($s,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(ec,tc);c.addEventListener(ec,d),c.dispatchEvent(r),r.defaultPrevented||pc(e??t.body,{select:!0}),c.removeEventListener(ec,d),mc.remove(_)},0)}}},[c,u,d,_]);let v=p.useCallback(e=>{if(!n&&!r||_.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=cc(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&pc(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&pc(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,_.paused]);return(0,P.jsx)(wo.div,{tabIndex:-1,...s,ref:m,onKeyDown:v})},`FocusScope`)),rc=p.createContext(null);function ic({registry:e,children:t}){return e?(0,P.jsx)(rc.Provider,{value:e,children:t}):t}Qs(ic,`FocusScopeBranchProvider`);function ac(){let[e,t]=p.useState([]);return{nodes:e,registry:p.useMemo(()=>({add:Qs(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:Qs(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}Qs(ac,`useFocusScopeBranchRegistry`);function oc(e){let t=p.useContext(rc);p.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}Qs(oc,`useFocusScopeBranch`);function sc(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(pc(r,{select:t}),document.activeElement!==n)return}Qs(sc,`focusFirst`);function cc(e){let t=lc(e);return[uc(t,e),uc(t.reverse(),e)]}Qs(cc,`getTabbableEdges`);function lc(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Qs(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}Qs(lc,`getTabbableCandidates`);function uc(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):dc(r,{upTo:t})))return r}Qs(uc,`findVisible`);function dc(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}Qs(dc,`isHidden`);function fc(e){return e.tagName===`INPUT`&&typeof e.select==`function`}Qs(fc,`isSelectableInput`);function pc(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&fc(e)&&t&&e.select()}}Qs(pc,`focus`);var mc=hc();function hc(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=gc(e,t),e.unshift(t)},remove(t){e=gc(e,t),e[0]?.resume()}}}Qs(hc,`createFocusScopesStack`);function gc(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Qs(gc,`arrayRemove`);function _c(e){return e.filter(e=>e.tagName!==`A`)}Qs(_c,`removeLinks`);var vc=Object.defineProperty,yc=p.forwardRef(((e,t)=>vc(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=p.useState(!1);Mo(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?xo.createPortal((0,P.jsx)(wo.div,{...r,ref:t}),o):null},`Portal`)),bc=Object.defineProperty,xc=(e,t)=>bc(e,`name`,{value:t,configurable:!0}),Sc=0,Cc=null;function wc(e){return Tc(),e.children}xc(wc,`FocusGuards`);function Tc(){p.useEffect(()=>{Cc||={start:Ec(),end:Ec()};let{start:e,end:t}=Cc;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Sc++,()=>{Sc===1&&(Cc?.start.remove(),Cc?.end.remove(),Cc=null),Sc=Math.max(0,Sc-1)}},[])}xc(Tc,`useFocusGuards`);function Ec(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}xc(Ec,`createFocusGuard`);var Dc=function(){return Dc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Dc.apply(this,arguments)};function Oc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function kc(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ac=`right-scroll-bar-position`,jc=`width-before-scroll-bar`,Mc=`with-scroll-bars-hidden`,Nc=`--removed-body-scroll-bar-size`;function Pc(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Fc(e,t){var n=(0,p.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Ic=typeof window<`u`?p.useLayoutEffect:p.useEffect,Lc=new WeakMap;function Rc(e,t){var n=Fc(t||null,function(t){return e.forEach(function(e){return Pc(e,t)})});return Ic(function(){var t=Lc.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Pc(e,null)}),i.forEach(function(e){r.has(e)||Pc(e,a)})}Lc.set(n,e)},[e]),n}function zc(e){return e}function Bc(e,t){t===void 0&&(t=zc);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Vc(e){e===void 0&&(e={});var t=Bc(null);return t.options=Dc({async:!0,ssr:!1},e),t}var Hc=function(e){var t=e.sideCar,n=Oc(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return p.createElement(r,Dc({},n))};Hc.isSideCarExport=!0;function Uc(e,t){return e.useMedium(t),Hc}var Wc=Vc(),Gc=function(){},Kc=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:Gc,onWheelCapture:Gc,onTouchMoveCapture:Gc}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Oc(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Rc([n,t]),w=Dc(Dc({},x),i);return p.createElement(p.Fragment,null,u&&p.createElement(S,{sideCar:Wc,removeScrollBar:l,shards:d,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?p.cloneElement(p.Children.only(s),Dc(Dc({},w),{ref:C})):p.createElement(y,Dc({},w,{className:c,ref:C}),s))});Kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Kc.classNames={fullWidth:jc,zeroRight:Ac};var qc=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Jc(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=qc();return t&&e.setAttribute(`nonce`,t),e}function Yc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xc(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Zc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Jc())&&(Yc(t,n),Xc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qc=function(){var e=Zc();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$c=function(){var e=Qc();return function(t){return e(t.styles,t.dynamic),null}},el={left:0,top:0,right:0,gap:0},tl=function(e){return parseInt(e||``,10)||0},nl=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[tl(n),tl(r),tl(i)]},rl=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return el;var t=nl(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},il=$c(),al=`data-scroll-locked`,ol=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
12
|
+
.${Mc} {
|
|
13
|
+
overflow: hidden ${r};
|
|
14
|
+
padding-right: ${s}px ${r};
|
|
15
|
+
}
|
|
16
|
+
body[${al}] {
|
|
17
|
+
overflow: hidden ${r};
|
|
18
|
+
overscroll-behavior: contain;
|
|
19
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
20
|
+
padding-left: ${i}px;
|
|
21
|
+
padding-top: ${a}px;
|
|
22
|
+
padding-right: ${o}px;
|
|
23
|
+
margin-left:0;
|
|
24
|
+
margin-top:0;
|
|
25
|
+
margin-right: ${s}px ${r};
|
|
26
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.${Ac} {
|
|
30
|
+
right: ${s}px ${r};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.${jc} {
|
|
34
|
+
margin-right: ${s}px ${r};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.${Ac} .${Ac} {
|
|
38
|
+
right: 0 ${r};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.${jc} .${jc} {
|
|
42
|
+
margin-right: 0 ${r};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
body[${al}] {
|
|
46
|
+
${Nc}: ${s}px;
|
|
47
|
+
}
|
|
48
|
+
`},sl=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},cl=function(){p.useEffect(function(){return document.body.setAttribute(al,(sl()+1).toString()),function(){var e=sl()-1;e<=0?document.body.removeAttribute(al):document.body.setAttribute(al,e.toString())}},[])},ll=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;cl();var a=p.useMemo(function(){return rl(i)},[i]);return p.createElement(il,{styles:ol(a,!t,i,n?``:`!important`)})},ul=!1;if(typeof window<`u`)try{var dl=Object.defineProperty({},"passive",{get:function(){return ul=!0,!0}});window.addEventListener(`test`,dl,dl),window.removeEventListener(`test`,dl,dl)}catch{ul=!1}var fl=ul?{passive:!1}:!1,pl=function(e){return e.tagName===`TEXTAREA`},ml=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!pl(e)&&n[t]===`visible`)},hl=function(e){return ml(e,`overflowY`)},gl=function(e){return ml(e,`overflowX`)},_l=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),bl(e,r)){var i=xl(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},vl=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},yl=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},bl=function(e,t){return e===`v`?hl(t):gl(t)},xl=function(e,t){return e===`v`?vl(t):yl(t)},Sl=function(e,t){return e===`h`&&t===`rtl`?-1:1},Cl=function(e,t,n,r,i){var a=Sl(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=xl(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&bl(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},wl=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Tl=function(e){return[e.deltaX,e.deltaY]},El=function(e){return e&&`current`in e?e.current:e},Dl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ol=function(e){return`
|
|
49
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
50
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
51
|
+
`},kl=0,Al=[];function jl(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),i=p.useState(kl++)[0],a=p.useState($c)[0],o=p.useRef(e);p.useEffect(function(){o.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=kc([e.lockRef.current],(e.shards||[]).map(El),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=wl(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=_l(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=_l(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Cl(h,t,e,h===`h`?s:c,!0)},[]),c=p.useCallback(function(e){var n=e;if(Al.length&&Al[Al.length-1]===a){var r=`deltaY`in n?Tl(n):wl(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Dl(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(El).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=p.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ml(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=p.useCallback(function(e){n.current=wl(e),r.current=void 0},[]),d=p.useCallback(function(t){l(t.type,Tl(t),t.target,s(t,e.lockRef.current))},[]),f=p.useCallback(function(t){l(t.type,wl(t),t.target,s(t,e.lockRef.current))},[]);p.useEffect(function(){return Al.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,fl),document.addEventListener(`touchmove`,c,fl),document.addEventListener(`touchstart`,u,fl),function(){Al=Al.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,fl),document.removeEventListener(`touchmove`,c,fl),document.removeEventListener(`touchstart`,u,fl)}},[]);var m=e.removeScrollBar,h=e.inert;return p.createElement(p.Fragment,null,h?p.createElement(a,{styles:Ol(i)}):null,m?p.createElement(ll,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ml(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Nl=Uc(Wc,jl),Pl=p.forwardRef(function(e,t){return p.createElement(Kc,Dc({},e,{ref:t,sideCar:Nl}))});Pl.classNames=Kc.classNames;var Fl=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Il=new WeakMap,Ll=new WeakMap,Rl={},zl=0,Bl=function(e){return e&&(e.host||Bl(e.parentNode))},Vl=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Bl(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Hl=function(e,t,n,r){var i=Vl(t,Array.isArray(e)?e:[e]);Rl[n]||(Rl[n]=new WeakMap);var a=Rl[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Il.get(e)||0)+1,l=(a.get(e)||0)+1;Il.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ll.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),zl++,function(){o.forEach(function(e){var t=Il.get(e)-1,i=a.get(e)-1;Il.set(e,t),a.set(e,i),t||(Ll.has(e)||e.removeAttribute(r),Ll.delete(e)),i||e.removeAttribute(n)}),zl--,zl||(Il=new WeakMap,Il=new WeakMap,Ll=new WeakMap,Rl={})}},Ul=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Fl(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Hl(r,i,n,`aria-hidden`)):function(){return null}},Wl=Object.defineProperty,Gl=(e,t)=>Wl(e,`name`,{value:t,configurable:!0}),Kl=`Dialog`,[ql,Jl]=Ao(Kl),[Yl,L]=ql(Kl),R=Gl(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=p.useRef(null),c=p.useRef(null),{nodes:l,registry:u}=ac(),[d,f]=ls({prop:r,defaultProp:i??!1,onChange:a,caller:Kl}),[m,h]=p.useState(0),[g,_]=p.useState(0);return(0,P.jsx)(Yl,{scope:t,triggerRef:s,contentRef:c,contentId:Ds(),titleId:Ds(),descriptionId:Ds(),titlePresent:m>0,descriptionPresent:g>0,setTitleCount:h,setDescriptionCount:_,open:d,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(e=>!e),[f]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),Xl=`DialogTrigger`,Zl=p.forwardRef(Gl(function(e,t){let{__scopeDialog:n,...r}=e,i=L(Xl,n),a=ro(t,i.triggerRef);return(0,P.jsx)(wo.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":gu(i.open),...r,ref:a,onClick:Xo(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Ql=`DialogPortal`,[$l,eu]=ql(Ql,{forceMount:void 0}),tu=Gl(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=L(Ql,t);return(0,P.jsx)($l,{scope:t,forceMount:n,children:p.Children.map(r,e=>(0,P.jsx)(_s,{present:n||a.open,children:(0,P.jsx)(yc,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),nu=`DialogOverlay`,ru=p.forwardRef(Gl(function(e,t){let n=eu(nu,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=L(nu,e.__scopeDialog);return a.modal?(0,P.jsx)(_s,{present:r||a.open,children:(0,P.jsx)(au,{...i,ref:t})}):null},`DialogOverlay`)),iu=oo(`DialogOverlay.RemoveScroll`),au=p.forwardRef(Gl(function(e,t){let{__scopeDialog:n,...r}=e,i=L(nu,n),a=ro(t,Gs());return(0,P.jsx)(Pl,{as:iu,allowPinchZoom:!0,shards:p.useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,P.jsx)(wo.div,{"data-state":gu(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),ou=`DialogContent`,su=p.forwardRef(Gl(function(e,t){let n=eu(ou,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=L(ou,e.__scopeDialog);return(0,P.jsx)(_s,{present:r||a.open,children:a.modal?(0,P.jsx)(cu,{...i,ref:t}):(0,P.jsx)(lu,{...i,ref:t})})},`DialogContent`)),cu=p.forwardRef(Gl(function(e,t){let n=L(ou,e.__scopeDialog),r=p.useRef(null),i=ro(t,n.contentRef,r);return p.useEffect(()=>{let e=r.current;if(e)return Ul(e)},[]),(0,P.jsx)(uu,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Xo(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Xo(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Xo(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),lu=p.forwardRef(Gl(function(e,t){let n=L(ou,e.__scopeDialog),r=p.useRef(!1),i=p.useRef(!1);return(0,P.jsx)(uu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),uu=p.forwardRef(Gl(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=L(ou,n);return Tc(),(0,P.jsx)(ic,{registry:l.branchRegistry,children:(0,P.jsx)(nc,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,P.jsx)(Ws,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?hu(o,l.descriptionId):o,"data-state":gu(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),du=p.forwardRef(Gl(function(e,t){let{__scopeDialog:n,...r}=e,i=L(`DialogTitle`,n),{setTitleCount:a}=i;return Mo(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,P.jsx)(wo.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),fu=p.forwardRef(Gl(function(e,t){let{__scopeDialog:n,...r}=e,i=L(`DialogDescription`,n),{setDescriptionCount:a}=i;return Mo(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,P.jsx)(wo.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),pu=`DialogClose`,mu=p.forwardRef(Gl(function(e,t){let{__scopeDialog:n,...r}=e,i=L(pu,n);return(0,P.jsx)(wo.button,{type:`button`,...r,ref:t,onClick:Xo(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function hu(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Gl(hu,`concatAriaDescribedby`);function gu(e){return e?`open`:`closed`}Gl(gu,`getState`);var _u=Object.defineProperty,vu=(e,t)=>_u(e,`name`,{value:t,configurable:!0}),[yu,bu]=Ao(`AlertDialog`,[Jl]),xu=Jl(),Su=vu(e=>{let{__scopeAlertDialog:t,...n}=e,r=xu(t);return(0,P.jsx)(R,{...r,...n,modal:!0})},`AlertDialog`);p.forwardRef(vu(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=xu(n);return(0,P.jsx)(Zl,{...i,...r,ref:t})},`AlertDialogTrigger`));var Cu=vu(e=>{let{__scopeAlertDialog:t,...n}=e,r=xu(t);return(0,P.jsx)(tu,{...r,...n})},`AlertDialogPortal`),wu=p.forwardRef(vu(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=xu(n);return(0,P.jsx)(ru,{...i,...r,ref:t})},`AlertDialogOverlay`)),[Tu,Eu]=yu(`AlertDialogContent`),Du=p.forwardRef(vu(function(e,t){let{__scopeAlertDialog:n,children:r,...i}=e,a=xu(n),o=ro(t,p.useRef(null)),s=p.useRef(null);return(0,P.jsx)(Tu,{scope:n,cancelRef:s,children:(0,P.jsx)(su,{role:`alertdialog`,...a,...i,ref:o,onOpenAutoFocus:Xo(i.onOpenAutoFocus,e=>{e.preventDefault(),s.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:r})})},`AlertDialogContent`)),Ou=p.forwardRef(vu(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=xu(n);return(0,P.jsx)(du,{...i,...r,ref:t})},`AlertDialogTitle`)),ku=p.forwardRef(vu(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=xu(n);return(0,P.jsx)(fu,{...i,...r,ref:t})},`AlertDialogDescription`)),Au=p.forwardRef(vu(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=xu(n);return(0,P.jsx)(mu,{...i,...r,ref:t})},`AlertDialogAction`)),ju=`AlertDialogCancel`,Mu=p.forwardRef(vu(function(e,t){let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Eu(ju,n),a=xu(n),o=ro(t,i);return(0,P.jsx)(mu,{...a,...r,ref:o})},`AlertDialogCancel`)),Nu=Object.defineProperty,Pu=(e,t)=>Nu(e,`name`,{value:t,configurable:!0});function Fu(e){let[t,n]=p.useState(void 0);return Mo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}Pu(Fu,`useSize`);var Iu=[`top`,`right`,`bottom`,`left`],Lu=Math.min,Ru=Math.max,zu=Math.round,Bu=Math.floor,Vu=e=>({x:e,y:e}),Hu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Uu(e,t,n){return Ru(e,Lu(t,n))}function Wu(e,t){return typeof e==`function`?e(t):e}function Gu(e){return e.split(`-`)[0]}function Ku(e){return e.split(`-`)[1]}function qu(e){return e===`x`?`y`:`x`}function Ju(e){return e===`y`?`height`:`width`}function Yu(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Xu(e){return qu(Yu(e))}function Zu(e,t,n){n===void 0&&(n=!1);let r=Ku(e),i=Xu(e),a=Ju(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=od(o)),[o,od(o)]}function Qu(e){let t=od(e);return[$u(e),t,$u(t)]}function $u(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ed=[`left`,`right`],td=[`right`,`left`],nd=[`top`,`bottom`],rd=[`bottom`,`top`];function id(e,t,n){switch(e){case`top`:case`bottom`:return n?t?td:ed:t?ed:td;case`left`:case`right`:return t?nd:rd;default:return[]}}function ad(e,t,n,r){let i=Ku(e),a=id(Gu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map($u)))),a}function od(e){let t=Gu(e);return Hu[t]+e.slice(t.length)}function sd(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function cd(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:sd(e)}function ld(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ud(e,t,n){let{reference:r,floating:i}=e,a=Yu(t),o=Xu(t),s=Ju(o),c=Gu(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Ku(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function dd(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Wu(t,e),p=cd(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ld(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ld(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var fd=50,pd=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:dd},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ud(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<fd&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ud(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},md=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Wu(e,t)||{};if(l==null)return{};let d=cd(u),f={x:n,y:r},p=Xu(i),m=Ju(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Lu(d[_],T),D=Lu(d[v],T),O=C-h[m]-D,ee=C/2-h[m]/2+w,k=Uu(E,ee,O),te=!c.arrow&&Ku(i)!=null&&ee!==k&&a.reference[m]/2-(ee<E?E:D)-h[m]/2<0,ne=te?ee<E?ee-E:ee-O:0;return{[p]:f[p]+ne,data:{[p]:k,centerOffset:ee-k-ne,...te&&{alignmentOffset:ne}},reset:te}}}),hd=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Wu(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Gu(r),_=Yu(o),v=Gu(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[od(o)]:Qu(o)),x=p!==`none`;!d&&x&&b.push(...ad(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Zu(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Yu(t)||T.every(e=>Yu(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Yu(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function gd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _d(e){return Iu.some(t=>e[t]>=0)}var vd=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Wu(e,t);switch(i){case`referenceHidden`:{let e=gd(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_d(e)}}}case`escaped`:{let e=gd(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:_d(e)}}}default:return{}}}}},yd=new Set([`left`,`top`]);async function bd(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Gu(n),s=Ku(n),c=Yu(n)===`y`,l=yd.has(o)?-1:1,u=a&&c?-1:1,d=Wu(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var xd=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await bd(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Sd=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Wu(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Yu(i),p=qu(f),m=u[p],h=u[f],g=(e,t)=>Uu(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Cd=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Wu(e,t),u={x:n,y:r},d=Yu(i),f=qu(d),p=u[f],m=u[d],h=Wu(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=yd.has(Gu(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},wd=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Wu(e,t),c=await i.detectOverflow(t,s),l=Gu(n),u=Ku(n),d=Yu(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Lu(p-c[m],g),y=Lu(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Ru(c.left,c.right):S=p-2*Ru(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Td(){return typeof window<`u`}function Ed(e){return kd(e)?(e.nodeName||``).toLowerCase():`#document`}function Dd(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Od(e){return((kd(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function kd(e){return Td()?e instanceof Node||e instanceof Dd(e).Node:!1}function Ad(e){return Td()?e instanceof Element||e instanceof Dd(e).Element:!1}function jd(e){return Td()?e instanceof HTMLElement||e instanceof Dd(e).HTMLElement:!1}function Md(e){return!Td()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Dd(e).ShadowRoot}function z(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ud(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Nd(e){return/^(table|td|th)$/.test(Ed(e))}function Pd(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Fd=/transform|translate|scale|rotate|perspective|filter/,Id=/paint|layout|strict|content/,Ld=e=>!!e&&e!==`none`,Rd;function zd(e){let t=Ad(e)?Ud(e):e;return Ld(t.transform)||Ld(t.translate)||Ld(t.scale)||Ld(t.rotate)||Ld(t.perspective)||!Vd()&&(Ld(t.backdropFilter)||Ld(t.filter))||Fd.test(t.willChange||``)||Id.test(t.contain||``)}function Bd(e){let t=Gd(e);for(;jd(t)&&!Hd(t);){if(zd(t))return t;if(Pd(t))return null;t=Gd(t)}return null}function Vd(){return Rd??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Rd}function Hd(e){return/^(html|body|#document)$/.test(Ed(e))}function Ud(e){return Dd(e).getComputedStyle(e)}function Wd(e){return Ad(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gd(e){if(Ed(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Md(e)&&e.host||Od(e);return Md(t)?t.host:t}function Kd(e){let t=Gd(e);return Hd(t)?(e.ownerDocument||e).body:jd(t)&&z(t)?t:Kd(t)}function qd(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Kd(e),i=r===e.ownerDocument?.body,a=Dd(r);if(i){let e=Jd(a);return t.concat(a,a.visualViewport||[],z(r)?r:[],e&&n?qd(e):[])}return t.concat(r,qd(r,[],n))}function Jd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yd(e){let t=Ud(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=jd(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=zu(n)!==a||zu(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Xd(e){return Ad(e)?e:e.contextElement}function Zd(e){let t=Xd(e);if(!jd(t))return Vu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Yd(t),o=(a?zu(n.width):n.width)/r,s=(a?zu(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Qd=Vu(0);function $d(e){let t=Dd(e);return!Vd()||!t.visualViewport?Qd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ef(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Dd(e)}function tf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Xd(e),o=Vu(1);t&&(r?Ad(r)&&(o=Zd(r)):o=Zd(e));let s=ef(a,n,r)?$d(a):Vu(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Dd(a),t=Ad(r)?Dd(r):r,n=e,i=Jd(n);for(;i&&t!==n;){let e=Zd(i),t=i.getBoundingClientRect(),r=Ud(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Dd(i),i=Jd(n)}}return ld({width:u,height:d,x:c,y:l})}function nf(e,t){let n=Wd(e).scrollLeft;return t?t.left+n:tf(Od(e)).left+n}function rf(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-nf(e,n),y:n.top+t.scrollTop}}function af(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Od(r),s=t?Pd(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Vu(1),u=Vu(0),d=jd(r);if((d||!a)&&((Ed(r)!==`body`||z(o))&&(c=Wd(r)),d)){let e=tf(r);l=Zd(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?rf(o,c):Vu(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function of(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function sf(e){let t=Wd(e),n=e.ownerDocument.body,r=Ru(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Ru(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+nf(e),o=-t.scrollTop;return Ud(n).direction===`rtl`&&(a+=Ru(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var cf=25;function lf(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Dd(e),a=Od(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Vd()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(nf(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=cf&&(s-=o)}return{width:s,height:c,x:l,y:u}}function uf(e,t){let n=tf(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Zd(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function df(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=lf(e,n,t);else if(t===`document`)r=sf(Od(e));else if(Ad(t))r=uf(t,n);else{let n=$d(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ld(r)}function ff(e,t){let n=t.get(e);if(n)return n;let r=qd(e,[],!1).filter(e=>Ad(e)&&Ed(e)!==`body`),i=null,a=Ud(e).position===`fixed`,o=a?Gd(e):e;for(;Ad(o)&&!Hd(o);){let e=Ud(o),t=zd(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Gd(o)}return t.set(e,r),r}function pf(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Pd(t)?[]:ff(t,this._c):[].concat(n),r],o=df(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=df(t,a[e],i);s=Ru(n.top,s),c=Lu(n.right,c),l=Lu(n.bottom,l),u=Ru(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function mf(e){let{width:t,height:n}=Yd(e);return{width:t,height:n}}function hf(e,t,n){let r=jd(t),i=Od(t),a=n===`fixed`,o=tf(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Vu(0);if((r||!a)&&((Ed(t)!==`body`||z(i))&&(s=Wd(t)),r)){let e=tf(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=nf(i));let l=i&&!r&&!a?rf(i,s):Vu(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function gf(e){return Ud(e).position===`static`}function _f(e,t){if(!jd(e)||Ud(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Od(e)===n&&(n=n.ownerDocument.body),n}function vf(e,t){let n=Dd(e);if(Pd(e))return n;if(!jd(e)){let t=Gd(e);for(;t&&!Hd(t);){if(Ad(t)&&!gf(t))return t;t=Gd(t)}return n}let r=_f(e,t);for(;r&&Nd(r)&&gf(r);)r=_f(r,t);return r&&Hd(r)&&gf(r)&&!zd(r)?n:r||Bd(e)||n}var yf=async function(e){let t=this.getOffsetParent||vf,n=await(0,this.getDimensions)(e.floating);return{reference:hf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function bf(e){return Ud(e).direction===`rtl`}var xf={convertOffsetParentRelativeRectToViewportRelativeRect:af,getDocumentElement:Od,getClippingRect:pf,getOffsetParent:vf,getElementRects:yf,getClientRects:of,getDimensions:mf,getScale:Zd,isElement:Ad,isRTL:bf};function Sf(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cf(e,t,n){let r=null,i,a=Od(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Bu(d),h=Bu(a.clientWidth-(u+f)),g=Bu(a.clientHeight-(d+p)),_=Bu(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Ru(0,Lu(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Sf(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Dd(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function wf(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Xd(e),u=i||a?[...l?qd(l):[],...t?qd(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Cf(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?tf(e):null;c&&g();function g(){let t=tf(e);h&&!Sf(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Tf=xd,Ef=Sd,Df=hd,Of=wd,kf=vd,Af=md,jf=Cd,Mf=(e,t,n)=>{let r=new Map,i=n??{},a={...xf,...i.platform,_c:r};return pd(e,t,{...i,platform:a})},Nf=typeof document<`u`?p.useLayoutEffect:function(){};function Pf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Pf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Pf(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Ff(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function If(e,t){let n=Ff(e);return Math.round(t*n)/n}function Lf(e){let t=p.useRef(e);return Nf(()=>{t.current=e}),t}function Rf(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=p.useState(r);Pf(f,r)||m(r);let[h,g]=p.useState(null),[_,v]=p.useState(null),y=p.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=p.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=p.useRef(null),w=p.useRef(null),T=p.useRef(u),E=c!=null,D=Lf(c),O=Lf(i),ee=Lf(l),k=p.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Mf(C.current,w.current,e).then(e=>{let t={...e,isPositioned:ee.current!==!1};te.current&&!Pf(T.current,t)&&(T.current=t,xo.flushSync(()=>{d(t)}))})},[f,t,n,O,ee]);Nf(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let te=p.useRef(!1);Nf(()=>(te.current=!0,()=>{te.current=!1}),[]),Nf(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,k);k()}},[x,S,k,D,E]);let ne=p.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),A=p.useMemo(()=>({reference:x,floating:S}),[x,S]),re=p.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=If(A.floating,u.x),r=If(A.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Ff(A.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:k,refs:ne,elements:A,floatingStyles:re}),[u,k,ne,A,re])}var zf=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Af({element:r.current,padding:i}).fn(n):r?Af({element:r,padding:i}).fn(n):{}}}},Bf=(e,t)=>{let n=Tf(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vf=(e,t)=>{let n=Ef(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hf=(e,t)=>({fn:jf(e).fn,options:[e,t]}),Uf=(e,t)=>{let n=Df(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wf=(e,t)=>{let n=Of(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gf=(e,t)=>{let n=kf(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kf=(e,t)=>{let n=zf(e);return{name:n.name,fn:n.fn,options:[e,t]}},qf=Object.defineProperty,Jf=(e,t)=>qf(e,`name`,{value:t,configurable:!0}),Yf={Partial:`partial`,Always:`always`},Xf={Optimized:`optimized`,Always:`always`},Zf=`Popper`,[Qf,$f]=Ao(Zf),[ep,tp]=Qf(Zf),np=Jf(e=>{let{__scopePopper:t,children:n}=e,[r,i]=p.useState(null),[a,o]=p.useState(void 0);return(0,P.jsx)(ep,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),rp=`PopperAnchor`,ip=p.forwardRef(Jf(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=tp(rp,n),o=p.useRef(null),s=a.onAnchorChange,c=ro(t,p.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=p.useRef(null);p.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&dp(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,P.jsx)(wo.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),ap=`PopperContent`,[op,sp]=Qf(ap),cp=p.forwardRef(Jf(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=Yf.Partial,hideWhenDetached:f=!1,updatePositionStrategy:m=Xf.Optimized,onPlaced:h,...g}=e,_=tp(ap,n),[v,y]=p.useState(null),b=ro(t,y),[x,S]=p.useState(null),C=Fu(x),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],ee=O.length>0,k={padding:D,boundary:O.filter(lp),altBoundary:ee},{refs:te,floatingStyles:ne,placement:A,isPositioned:re,middlewareData:ie}=Rf({strategy:`fixed`,placement:E,whileElementsMounted:Jf((...e)=>wf(...e,{animationFrame:m===Xf.Always}),`whileElementsMounted`),elements:{reference:_.anchor},middleware:[Bf({mainAxis:i+T,alignmentAxis:o}),c&&Vf({mainAxis:!0,crossAxis:!1,...d===Yf.Partial?{limiter:Hf()}:{},...k}),c&&Uf({...k}),Wf({...k,apply:Jf(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),x&&Kf({element:x,padding:s}),up({arrowWidth:w,arrowHeight:T}),f&&Gf(ee?{strategy:`referenceHidden`,...k}:{strategy:`referenceHidden`,padding:k.padding,altBoundary:k.altBoundary})]}),j=_.setPlacementState;Mo(()=>(j(A),()=>{j(void 0)}),[A,j]);let[M,ae]=dp(A),oe=Is(h);Mo(()=>{re&&oe?.()},[re,oe]);let se=ie.arrow?.x,ce=ie.arrow?.y,N=ie.arrow?.centerOffset!==0,[le,ue]=p.useState();return Mo(()=>{v&&ue(window.getComputedStyle(v).zIndex)},[v]),(0,P.jsx)(`div`,{ref:te.setFloating,"data-radix-popper-content-wrapper":``,style:{...ne,transform:re?ne.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:le,"--radix-popper-transform-origin":[ie.transformOrigin?.x,ie.transformOrigin?.y].join(` `),...ie.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,P.jsx)(op,{scope:n,placedSide:M,placedAlign:ae,onArrowChange:S,arrowX:se,arrowY:ce,shouldHideArrow:N,children:(0,P.jsx)(wo.div,{"data-side":M,"data-align":ae,...g,ref:b,style:{...g.style,animation:re?g.style?.animation:`none`}})})})},`PopperContent`));function lp(e){return e!==null}Jf(lp,`isNotNull`);var up=Jf(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=dp(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function dp(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Jf(dp,`getSideAndAlignFromPlacement`);var fp=Object.defineProperty,pp=(e,t)=>fp(e,`name`,{value:t,configurable:!0});function mp(e,[t,n]){return Math.min(n,Math.max(t,e))}pp(mp,`clamp`);var hp=Object.defineProperty,gp=(e,t)=>hp(e,`name`,{value:t,configurable:!0}),_p=`Popover`,[vp,yp]=Ao(_p,[$f]),bp=$f(),[xp,Sp]=vp(_p),Cp=gp(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=bp(t),c=p.useRef(null),[l,u]=p.useState(!1),[d,f]=p.useState(0),[m,h]=p.useState(0),[g,_]=ls({prop:r,defaultProp:i??!1,onChange:a,caller:_p});return(0,P.jsx)(np,{...s,children:(0,P.jsx)(xp,{scope:t,contentId:Ds(),titleId:Ds(),descriptionId:Ds(),titlePresent:d>0,descriptionPresent:m>0,setTitleCount:f,setDescriptionCount:h,triggerRef:c,open:g,onOpenChange:_,onOpenToggle:p.useCallback(()=>_(e=>!e),[_]),hasCustomAnchor:l,onCustomAnchorAdd:p.useCallback(()=>u(!0),[]),onCustomAnchorRemove:p.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),wp=`PopoverTrigger`,Tp=p.forwardRef(gp(function(e,t){let{__scopePopover:n,...r}=e,i=Sp(wp,n),a=bp(n),o=ro(t,i.triggerRef),s=(0,P.jsx)(wo.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Ip(i.open),...r,ref:o,onClick:Xo(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,P.jsx)(ip,{asChild:!0,...a,children:s})},`PopoverTrigger`)),Ep=`PopoverPortal`,[Dp,Op]=vp(Ep,{forceMount:void 0}),kp=gp(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Sp(Ep,t);return(0,P.jsx)(Dp,{scope:t,forceMount:n,children:(0,P.jsx)(_s,{present:n||a.open,children:(0,P.jsx)(yc,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),Ap=`PopoverContent`,jp=p.forwardRef(gp(function(e,t){let n=Op(Ap,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Sp(Ap,e.__scopePopover);return(0,P.jsx)(_s,{present:r||a.open,children:a.modal?(0,P.jsx)(Np,{...i,ref:t}):(0,P.jsx)(Pp,{...i,ref:t})})},`PopoverContent`)),Mp=oo(`PopoverContent.RemoveScroll`),Np=p.forwardRef(gp(function(e,t){let n=Sp(Ap,e.__scopePopover),r=p.useRef(null),i=ro(t,r),a=p.useRef(!1),{nodes:o,registry:s}=ac();return p.useEffect(()=>{let e=r.current;if(e)return Ul(e)},[]),(0,P.jsx)(Pl,{as:Mp,allowPinchZoom:!0,shards:p.useMemo(()=>[r,...o.map(e=>({current:e}))],[r,o]),children:(0,P.jsx)(Fp,{...e,ref:i,branchNodes:o,branchRegistry:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xo(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Xo(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:Xo(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),Pp=p.forwardRef(gp(function(e,t){let n=Sp(Ap,e.__scopePopover),r=p.useRef(!1),i=p.useRef(!1);return(0,P.jsx)(Fp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),Fp=p.forwardRef(gp(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,"aria-describedby":d,branchNodes:f,branchRegistry:m,...h}=e,g=Sp(Ap,n),_=bp(n),[v,y]=p.useState(null),b=ro(t,y);return oc(v),Tc(),(0,P.jsx)(ic,{registry:m,children:(0,P.jsx)(nc,{asChild:!0,loop:!0,trapped:r,branches:f,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,P.jsx)(Ws,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>g.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,P.jsx)(cp,{"data-state":Ip(g.open),role:`dialog`,id:g.contentId,"aria-labelledby":g.titlePresent?g.titleId:void 0,"aria-describedby":g.descriptionPresent?Lp(d,g.descriptionId):d,..._,...h,ref:b,style:{...h.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})})},`PopoverContentImpl`));function Ip(e){return e?`open`:`closed`}gp(Ip,`getState`);function Lp(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}gp(Lp,`concatAriaDescribedby`);var Rp=Object.defineProperty,zp=(e,t)=>Rp(e,`name`,{value:t,configurable:!0}),Bp={ItemAligned:`item-aligned`,Popper:`popper`},Vp={LTR:`ltr`,RTL:`rtl`},Hp=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Up=[` `,`Enter`],Wp=`Select`,[Gp,Kp,qp]=Fo(Wp),[Jp,Yp]=Ao(Wp,[qp,$f]),Xp=$f(),[Zp,Qp]=Jp(Wp),[$p,em]=Jp(Wp);function tm(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:m,form:h,internal_do_not_use_render:g}=e,_=Xp(t),[v,y]=p.useState(null),[b,x]=p.useState(null),[S,C]=p.useState(!1),w=Ms(l),[T,E]=ls({prop:r,defaultProp:i??!1,onChange:a,caller:Wp}),[D,O]=ls({prop:o,defaultProp:s,onChange:c,caller:Wp}),ee=p.useRef(null),k=p.useRef(!1),[te,ne]=p.useState(null),A=zp(e=>{ne({value:e,hasConsumerStoppedPropagation:k.current}),O(e)},`handleUserSelect`),re=p.useRef(D);p.useEffect(()=>{let e=h?v?.ownerDocument.getElementById(h):v?.form;if(e instanceof HTMLFormElement){let t=zp(()=>O(re.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[h,v,O]);let ie=!v||!!h||!!v.closest(`form`),[j,M]=p.useState(new Set),ae=Ds(),oe=Array.from(j).map(e=>e.props.value).join(`;`),se=p.useCallback(e=>{M(t=>new Set(t).add(e))},[]),ce=p.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),N={required:m,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:ae,value:D,onValueChange:O,hasConsumerStoppedPropagationRef:k,userSelection:te,onUserSelect:A,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:ee,disabled:f,name:u,autoComplete:d,form:h,nativeOptions:j,nativeSelectKey:oe,isFormControl:ie};return(0,P.jsx)(np,{..._,children:(0,P.jsx)(Zp,{scope:t,...N,children:(0,P.jsx)(Gp.Provider,{scope:t,children:(0,P.jsx)($p,{scope:t,onNativeOptionAdd:se,onNativeOptionRemove:ce,children:Um(g)?g(N):n})})})})}zp(tm,`SelectProvider`);var nm=zp(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,P.jsx)(tm,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,P.jsxs)(P.Fragment,{children:[n,e?(0,P.jsx)(Hm,{__scopeSelect:t}):null]})})},`Select`),rm=`SelectTrigger`,im=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=Xp(n),o=Qp(rm,n),s=o.disabled||r,c=ro(t,o.onTriggerChange),l=Kp(n),u=p.useRef(`touch`),[d,f,m]=Gm(e=>{let t=l().filter(e=>!e.disabled),n=Km(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onUserSelect(n.value)}),h=zp(e=>{s||(o.onOpenChange(!0),m()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,P.jsx)(ip,{asChild:!0,...a,children:(0,P.jsx)(wo.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Wm(o.value)?``:void 0,...i,ref:c,onClick:Xo(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&h(e)}),onPointerDown:Xo(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(h(e),e.preventDefault())}),onKeyDown:Xo(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&(o.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),f(e.key)),t&&e.key===` `||Hp.includes(e.key)&&(h(),e.preventDefault())})})})},`SelectTrigger`)),am=`SelectValue`,om=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Qp(am,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=ro(t,c.onValueNodeChange);Mo(()=>{l(u)},[l,u]);let f=Wm(c.value);return(0,P.jsx)(wo.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,P.jsx)(p.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),sm=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,P.jsx)(wo.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[cm,lm]=Jp(`SelectPortal`,{forceMount:void 0}),um=zp(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,P.jsx)(cm,{scope:e.__scopeSelect,forceMount:n,children:(0,P.jsx)(yc,{asChild:!0,...r})})},`SelectPortal`),dm=`SelectContent`,fm=p.forwardRef(zp(function(e,t){let n=lm(dm,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Qp(dm,e.__scopeSelect),[o,s]=p.useState();return Mo(()=>{s(new DocumentFragment)},[]),(0,P.jsx)(_s,{present:r||a.open,children:({present:e})=>e?(0,P.jsx)(vm,{...i,ref:t}):(0,P.jsx)(pm,{...i,fragment:o})})},`SelectContent`)),pm=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?xo.createPortal((0,P.jsx)(hm,{scope:n,children:(0,P.jsx)(Gp.Slot,{scope:n,children:(0,P.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),mm=10,[hm,gm]=Jp(dm),_m=oo(`SelectContent.RemoveScroll`),vm=p.forwardRef(zp(function(e,t){let{__scopeSelect:n}=e,{position:r=Bp.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:m,sticky:h,hideWhenDetached:g,avoidCollisions:_,...v}=e,y=Qp(dm,n),[b,x]=p.useState(null),[S,C]=p.useState(null),w=ro(t,x),[T,E]=p.useState(null),[D,O]=p.useState(null),ee=Kp(n),[k,te]=p.useState(!1),ne=p.useRef(!1),A=p.useRef(!1),re=p.useRef(!1);p.useEffect(()=>{if(b)return Ul(b)},[b]),Tc();let ie=p.useCallback(e=>{let[t,...n]=ee().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[ee,S]),j=p.useCallback(()=>ie([T,b]),[ie,T,b]);p.useEffect(()=>{k&&j()},[k,j]);let{onOpenChange:M,triggerPointerDownPosRef:ae}=y;p.useEffect(()=>{if(b){let e={x:0,y:0},t=zp(t=>{e={x:Math.abs(Math.round(t.pageX)-(ae.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(ae.current?.y??0))}},`handlePointerMove`),n=zp(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||M(!1),document.removeEventListener(`pointermove`,t),ae.current=null},`handlePointerUp`);return ae.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,M,ae]),p.useEffect(()=>{let e=zp(()=>M(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[M]);let[oe,se]=Gm(e=>{let t=ee().filter(e=>!e.disabled),n=Km(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ce=p.useCallback((e,t,n)=>{let r=!A.current;r&&(A.current=!0);let i=!ne.current&&!n;y.value!==void 0&&y.value===t||i?(E(e),i&&(ne.current=!0)):r&&E(e)},[y.value]),N=p.useCallback(()=>b?.focus(),[b]),le=p.useCallback((e,t,n)=>{if(!e)return;let r=!re.current;r&&(re.current=!0);let i=!ne.current&&!n;(y.value!==void 0&&y.value===t||i||r)&&O(e)},[y.value]),ue=r===Bp.Popper?bm:ym,de=ue===bm?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:m,sticky:h,hideWhenDetached:g,avoidCollisions:_}:{};return(0,P.jsx)(hm,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:ce,selectedItem:T,onItemLeave:N,itemTextRefCallback:le,focusSelectedItem:j,selectedItemText:D,position:r,isPositioned:k,searchRef:oe,children:(0,P.jsx)(Pl,{as:_m,allowPinchZoom:!0,children:(0,P.jsx)(nc,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Xo(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,P.jsx)(Ws,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,P.jsx)(ue,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...de,onPlaced:()=>te(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,...v.style},onKeyDown:Xo(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&se(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=ee().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>ie(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),ym=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Qp(dm,n),o=gm(dm,n),[s,c]=p.useState(null),[l,u]=p.useState(null),d=ro(t,u),f=Kp(n),m=p.useRef(!1),h=p.useRef(!0),{viewport:g,selectedItem:_,selectedItemText:v,focusSelectedItem:y}=o,b=p.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&g&&_&&v){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==Vp.RTL){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-mm,d=mp(a,[mm,Math.max(mm,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-mm,d=mp(a,[mm,Math.max(mm,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-mm*2,u=g.scrollHeight,d=window.getComputedStyle(l),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=p+h+u+b+y,S=Math.min(_.offsetHeight*5,x),C=window.getComputedStyle(g),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-mm,D=c-E,O=_.offsetHeight/2,ee=_.offsetTop+O,k=p+h+ee,te=x-k;if(k<=E){let e=o.length>0&&_===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-g.offsetTop-g.offsetHeight,n=k+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&_===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,p+g.offsetTop+(e?w:0)+O)+te;s.style.height=t+`px`,g.scrollTop=k-E+g.offsetTop}s.style.margin=`${mm}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>m.current=!0)}},[f,a.trigger,a.valueNode,s,l,g,_,v,a.dir,r]);Mo(()=>b(),[b]);let[x,S]=p.useState();Mo(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=p.useCallback(e=>{e&&h.current===!0&&(b(),y?.(),h.current=!1)},[b,y]);return(0,P.jsx)(xm,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:C,children:(0,P.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,P.jsx)(wo.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),bm=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=mm,...a}=e,o=Xp(n);return(0,P.jsx)(cp,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.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)`}})},`SelectPopperPosition`)),[xm,Sm]=Jp(dm,{}),Cm=`SelectViewport`,wm=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=gm(Cm,n),o=Sm(Cm,n),s=ro(t,a.onViewportChange),c=p.useRef(0);return(0,P.jsxs)(P.Fragment,{children:[(0,P.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:r}),(0,P.jsx)(Gp.Slot,{scope:n,children:(0,P.jsx)(wo.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:Xo(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-mm*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[Tm,Em]=Jp(`SelectGroup`),Dm=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,...r}=e,i=Ds();return(0,P.jsx)(Tm,{scope:n,id:i,children:(0,P.jsx)(wo.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})},`SelectGroup`)),Om=`SelectItem`,[km,Am]=Jp(Om),jm=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Qp(Om,n),c=gm(Om,n),l=s.value===r,[u,d]=p.useState(a??``),[f,m]=p.useState(!1),h=ro(t,Is(e=>c.itemRefCallback?.(e,r,i))),g=Ds(),_=p.useRef(`touch`);function v(e){s.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),s.onUserSelect(r),s.onOpenChange(!1)}return zp(v,`handleSelect`),(0,P.jsx)(km,{scope:n,value:r,disabled:i,textId:g,isSelected:l,onItemTextChange:p.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,P.jsx)(Gp.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,P.jsx)(wo.div,{role:`option`,"aria-labelledby":g,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:h,onFocus:Xo(o.onFocus,()=>m(!0)),onBlur:Xo(o.onBlur,()=>m(!1)),onClick:Xo(o.onClick,e=>{i||_.current!==`mouse`&&v(e)}),onPointerUp:Xo(o.onPointerUp,e=>{i||_.current===`mouse`&&v(e)}),onPointerDown:Xo(o.onPointerDown,e=>{_.current=e.pointerType}),onPointerMove:Xo(o.onPointerMove,e=>{_.current=e.pointerType,i?c.onItemLeave?.():_.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Xo(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:Xo(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Up.includes(e.key)&&v(e),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Mm=`SelectItemText`,Nm=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Qp(Mm,n),s=gm(Mm,n),c=Am(Mm,n),l=em(Mm,n),[u,d]=p.useState(null),f=Is(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),m=ro(t,d,c.onItemTextChange,f),h=u?.textContent,g=p.useMemo(()=>(0,P.jsx)(`option`,{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:_,onNativeOptionRemove:v}=l;return Mo(()=>(_(g),()=>v(g)),[_,v,g]),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(wo.span,{id:c.textId,...a,ref:m}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Wm(o.value)?xo.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Pm=`SelectItemIndicator`,Fm=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,...r}=e;return Am(Pm,n).isSelected?(0,P.jsx)(wo.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Im=`SelectScrollUpButton`,Lm=p.forwardRef(zp(function(e,t){let n=gm(Im,e.__scopeSelect),r=Sm(Im,e.__scopeSelect),[i,a]=p.useState(!1),o=ro(t,r.onScrollButtonChange);return Mo(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};zp(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,P.jsx)(Bm,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Rm=`SelectScrollDownButton`,zm=p.forwardRef(zp(function(e,t){let n=gm(Rm,e.__scopeSelect),r=Sm(Rm,e.__scopeSelect),[i,a]=p.useState(!1),o=ro(t,r.onScrollButtonChange);return Mo(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};zp(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,P.jsx)(Bm,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Bm=p.forwardRef(zp(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=gm(`SelectScrollButton`,n),o=p.useRef(null),s=Kp(n),c=p.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return p.useEffect(()=>()=>c(),[c]),Mo(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,P.jsx)(wo.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Xo(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:Xo(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:Xo(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),Vm=`SelectBubbleInput`,Hm=p.forwardRef(zp(function({__scopeSelect:e,...t},n){let r=Qp(Vm,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u,userSelection:d}=r,{nativeOptions:f,nativeSelectKey:m}=r,h=p.useRef(null),g=ro(n,h),_=i??``,v=p.useRef(_),y=p.useRef(d),b=p.useRef(!1),x=Array.from(f).some(e=>(e.props.value??``)===``);return p.useEffect(()=>{let e=h.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set,r=d!==null&&d!==y.current;y.current=d;let i=v.current!==_;v.current=_;let a=r&&i;if(r&&!i&&d.value!==_&&!d.hasConsumerStoppedPropagation&&n){b.current=!0;try{n.call(e,d.value),e.dispatchEvent(new Event(`change`,{bubbles:!0}))}finally{b.current=!1,n.call(e,_)}return}let o=a&&!d.hasConsumerStoppedPropagation;if(i&&n){let t=new Event(`change`,{bubbles:o});n.call(e,_),e.dispatchEvent(t)}},[_,d]),(0,P.jsxs)(wo.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>{b.current||a(e.target.value)},...t,style:{...Eo,...t.style},ref:g,defaultValue:_,children:[Wm(i)&&!x?(0,P.jsx)(`option`,{value:``}):null,Array.from(f)]},m)},`SelectBubbleInput`));function Um(e){return typeof e==`function`}zp(Um,`isFunction`);function Wm(e){return e===``||e===void 0}zp(Wm,`shouldShowPlaceholder`);function Gm(e){let t=Is(e),n=p.useRef(``),r=p.useRef(0),i=p.useCallback(e=>{let i=n.current+e;t(i);function a(e){n.current=e,window.clearTimeout(r.current),e!==``&&(r.current=window.setTimeout(()=>a(``),1e3))}zp(a,`updateSearch`),a(i)},[t]),a=p.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}zp(Gm,`useTypeaheadSearch`);function Km(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=qm(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}zp(Km,`findNextItem`);function qm(e,t){return e.map((n,r)=>e[(t+r)%e.length])}zp(qm,`wrapArray`);var Jm=Object.defineProperty,Ym=(e,t)=>Jm(e,`name`,{value:t,configurable:!0}),[Xm,Zm]=Ao(`Tooltip`,[$f]);$f();var Qm=`TooltipProvider`,$m=700,[eh,th]=Xm(Qm),nh=Ym(e=>{let{__scopeTooltip:t,delayDuration:n=$m,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=p.useRef(!0),s=p.useRef(!1),c=p.useRef(0);return p.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,P.jsx)(eh,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:p.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:p.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:p.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),[rh,ih]=Xm(`Tooltip`),[ah,oh]=Xm(`TooltipPortal`,{forceMount:void 0});function sh(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}Ym(sh,`getExitSideFromRect`);function ch(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}Ym(ch,`getPaddedExitPoints`);function lh(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}Ym(lh,`getPointsFromRect`);function uh(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Ym(uh,`isPointInPolygon`);function dh(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),fh(t)}Ym(dh,`getHull`);function fh(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Ym(fh,`getHullPresorted`);function ph(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Ym(ph,`concatAriaDescribedby`);function mh(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=mh(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function hh(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=mh(e))&&(r&&(r+=` `),r+=t);return r}var gh=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},_h=(e,t)=>({classGroupId:e,validator:t}),vh=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),yh=`-`,bh=[],xh=`arbitrary..`,Sh=e=>{let t=Th(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return wh(e);let n=e.split(yh);return Ch(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?gh(i,t):t:i||bh}return n[e]||bh}}},Ch=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ch(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(yh):e.slice(t).join(yh),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},wh=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?xh+r:void 0})(),Th=e=>{let{theme:t,classGroups:n}=e;return Eh(n,t)},Eh=(e,t)=>{let n=vh();for(let r in e)Dh(e[r],n,r,t);return n},Dh=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++)Oh(e[a],t,n,r)},Oh=(e,t,n,r)=>{typeof e==`string`?kh(e,t,n):typeof e==`function`?Ah(e,t,n,r):jh(e,t,n,r)},kh=(e,t,n)=>{let r=e===``?t:Mh(t,e);r.classGroupId=n},Ah=(e,t,n,r)=>{Nh(e)?Dh(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(_h(n,e)))},jh=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Dh(o,Mh(t,a),n,r)}},Mh=(e,t)=>{let n=e,r=t.split(yh),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=vh(),n.nextPart.set(t,i)),n=i}return n},Nh=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ph=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Fh=`!`,Ih=`:`,Lh=[],Rh=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),zh=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let c=e[s];if(n===0&&r===0){if(c===Ih){t.push(e.slice(i,s)),i=s+1;continue}if(c===`/`){a=s;continue}}if(c===`[`)n++;else if(c===`]`)n--;else if(c===`(`)r++;else if(c===`)`)r--;else if(c===`\\`)s++;else if(c===`"`||c===`'`)for(;++s<o;){let t=e[s];if(t===`\\`)s++;else if(t===c)break}}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Fh)?(c=s.slice(0,-1),l=!0):s.startsWith(Fh)&&(c=s.slice(1),l=!0);let u=l&&s.startsWith(Fh)?1:0,d=a&&a>i?a-i-u:void 0;return Rh(t,l,c,d)};if(t){let e=t+Ih,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Rh(Lh,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Bh=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Vh=e=>({cache:Ph(e.cacheSize),parseClassName:zh(e),sortModifiers:Bh(e),postfixLookupClassGroupIds:Hh(e),...Sh(e)}),Hh=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Uh=/\s+/,Wh=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Uh),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Fh:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Gh=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Kh(n))&&(i&&(i+=` `),i+=r);return i},Kh=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Kh(e[r]))&&(n&&(n+=` `),n+=t);return n},qh=(e,...t)=>{let n,r,i,a,o=o=>(n=Vh(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Wh(e,n);return i(e,a),a};return a=o,(...e)=>a(Gh(...e))},Jh=[],Yh=e=>{let t=t=>t[e]||Jh;return t.isThemeGetter=!0,t.themeKey=e,t},Xh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qh=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,$h=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|Q|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^--spacing\(.+\)|^0$/,tg=/^[+-]?(?:\d*\.)?\d+(?:[eE][+-]?\d+)?(?:r?ic|r(?:cap|ch|ex))$/,ng=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark|contrast-color|device-cmyk|--alpha)\(.+\)$/i,rg=/^(?:_*[+-]?(?:\d|\.\d)|[\w-]+\(|_*(?:inherit|initial|revert(?:-layer)?|unset)_*$)/i,ig=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ag=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,og=e=>Qh.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),sg=e=>!!e&&Number.isInteger(Number(e)),cg=e=>e.endsWith(`%`)&&B(e.slice(0,-1)),lg=e=>$h.test(e),ug=()=>!0,dg=e=>(eg.test(e)||tg.test(e))&&!ng.test(e),fg=e=>rg.test(e)&&!ng.test(e),pg=()=>!1,mg=e=>ig.test(e),hg=e=>ag.test(e),gg=e=>!V(e)&&!H(e),_g=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),vg=e=>Fg(e,zg,pg),V=e=>Xh.test(e),yg=e=>Fg(e,Bg,dg),bg=e=>Fg(e,Vg,fg),xg=e=>Fg(e,Hg,B),Sg=e=>Fg(e,Wg,ug),Cg=e=>Fg(e,Ug,pg),wg=e=>Fg(e,Lg,pg),Tg=e=>Fg(e,Rg,hg),Eg=e=>Fg(e,Gg,mg),H=e=>Zh.test(e),Dg=e=>Ig(e,Bg),Og=e=>Ig(e,Vg,!0),kg=e=>Ig(e,Ug),Ag=e=>Ig(e,Lg),jg=e=>Ig(e,zg),Mg=e=>Ig(e,Rg),Ng=e=>Ig(e,Gg,!0),Pg=e=>Ig(e,Wg,!0),Fg=(e,t,n)=>{let r=Xh.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ig=(e,t,n=!1)=>{let r=Zh.exec(e);return r?r[1]?t(r[1]):n:!1},Lg=e=>e===`position`||e===`percentage`,Rg=e=>e===`image`||e===`url`,zg=e=>e===`length`||e===`size`||e===`bg-size`,Bg=e=>e===`length`,Vg=e=>e!==`color`,Hg=e=>e===`number`,Ug=e=>e===`family-name`,Wg=e=>e===`number`||e===`weight`,Gg=e=>e===`shadow`,Kg=qh(()=>{let e=Yh(`color`),t=Yh(`font`),n=Yh(`text`),r=Yh(`font-weight`),i=Yh(`tracking`),a=Yh(`leading`),o=Yh(`breakpoint`),s=Yh(`container`),c=Yh(`spacing`),l=Yh(`radius`),u=Yh(`shadow`),d=Yh(`inset-shadow`),f=Yh(`text-shadow`),p=Yh(`drop-shadow`),m=Yh(`blur`),h=Yh(`perspective`),g=Yh(`aspect`),_=Yh(`ease`),v=Yh(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),H,V],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[H,V,c],T=()=>[og,`full`,`auto`,...w()],E=()=>[sg,`none`,`subgrid`,H,V],D=()=>[`auto`,{span:[`full`,sg,H,V]},sg,H,V],O=()=>[sg,`auto`,H,V],ee=()=>[`auto`,`min`,`max`,`fr`,B,H,V],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],te=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ne=()=>[`auto`,...w()],A=()=>[og,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[s,og,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[og,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,H,V],M=()=>[...b(),Ag,wg,{position:[H,V]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,jg,vg,{size:[H,V]}],se=()=>[cg,Dg,yg],ce=()=>[``,`none`,`full`,l,H,V],N=()=>[``,B,Dg,yg],le=()=>[`solid`,`dashed`,`dotted`,`double`],ue=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],de=()=>[B,cg,Og,bg],fe=()=>[``,`none`,m,H,V],pe=()=>[`none`,B,H,V],me=()=>[`none`,B,H,V],he=()=>[B,H,V],ge=()=>[og,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[lg],breakpoint:[lg],color:[ug],container:[lg],"drop-shadow":[lg],ease:[`in`,`out`,`in-out`],font:[gg],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[lg],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[lg],shadow:[lg],spacing:[`px`,B],text:[lg],"text-shadow":[lg],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,og,V,H,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,H,V]}],"container-named":[_g],columns:[{columns:[B,`auto`,V,H,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`],"not-sr":[`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],contain:[{contain:[`none`,`content`,`strict`,H,V]}],"contain-size":[{contain:[`size`,`inline-size`]}],"contain-layout":[`contain-layout`],"contain-paint":[`contain-paint`],"contain-style":[`contain-style`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[sg,`auto`,H,V]}],basis:[{basis:[og,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[B,og,`auto`,`initial`,`none`,H,V]}],grow:[{grow:[``,B,H,V]}],shrink:[{shrink:[``,B,H,V]}],order:[{order:[sg,`first`,`last`,`none`,H,V]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...te(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...te()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...te(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...te(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...te(),`baseline`]}],"place-self":[{"place-self":[`auto`,...te()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:ne()}],mx:[{mx:ne()}],my:[{my:ne()}],ms:[{ms:ne()}],me:[{me:ne()}],mbs:[{mbs:ne()}],mbe:[{mbe:ne()}],mt:[{mt:ne()}],mr:[{mr:ne()}],mb:[{mb:ne()}],ml:[{ml:ne()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...A()]}],"font-size":[{text:[`base`,n,Dg,yg]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Pg,Sg]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,cg,H,V]}],"font-family":[{font:[kg,Cg,t]}],"font-features":[{"font-features":[H,V]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,H,V]}],"line-clamp":[{"line-clamp":[B,`none`,H,V]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,H,V]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,H,V]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...le(),`wavy`]}],"text-decoration-thickness":[{decoration:[B,`from-font`,`auto`,Dg,Ag,yg]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[B,`auto`,H,V]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`text-ellipsis`,`text-clip`],truncate:[`truncate`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[sg,H,V]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,H,V]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,H,V]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},sg,H,V],radial:[``,H,V],conic:[``,sg,H,V]},Mg,Tg]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":N()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...le(),`hidden`,`none`]}],"divide-style":[{divide:[...le(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...le(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[B,H,V]}],"outline-w":[{outline:[``,B,Dg,yg]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`inner`,`none`,u,Ng,Eg]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ng,Eg]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:N()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[B,yg]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,Ng,Eg]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[B,H,V]}],"mix-blend":[{"mix-blend":[...ue(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[B,H,V]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[H,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{mask:[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[B,H,V]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,H,V]}],filter:[{filter:[``,`none`,H,V]}],blur:[{blur:fe()}],brightness:[{brightness:[B,H,V]}],contrast:[{contrast:[B,H,V]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ng,Eg]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,B,H,V]}],"hue-rotate":[{"hue-rotate":[B,H,V]}],invert:[{invert:[``,B,H,V]}],saturate:[{saturate:[B,H,V]}],sepia:[{sepia:[``,B,H,V]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,H,V]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[B,H,V]}],"backdrop-contrast":[{"backdrop-contrast":[B,H,V]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,B,H,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,H,V]}],"backdrop-invert":[{"backdrop-invert":[``,B,H,V]}],"backdrop-opacity":[{"backdrop-opacity":[B,H,V]}],"backdrop-saturate":[{"backdrop-saturate":[B,H,V]}],"backdrop-sepia":[{"backdrop-sepia":[``,B,H,V]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,H,V]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[B,`initial`,H,V]}],ease:[{ease:[`linear`,`initial`,_,H,V]}],delay:[{delay:[B,H,V]}],animate:[{animate:[`none`,v,H,V]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,H,V]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":[`scale-3d`],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[H,V,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],"transform-box":[{transform:[`content`,`border`,`fill`,`stroke`,`view`]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":[`translate-none`],"translate-3d":[`translate-3d`],zoom:[{zoom:[sg,H,V]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,H,V]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,H,V]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[B,Dg,yg,xg]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],"place-content":[`align-content`,`justify-content`],"place-items":[`align-items`,`justify-items`],"place-self":[`align-self`,`justify-self`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`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`],truncate:[`text-overflow`,`overflow`,`overflow-x`,`overflow-y`,`whitespace`],sr:`not-sr.position.size.w.h.p.px.py.ps.pe.pbs.pbe.pt.pr.pb.pl.m.mx.my.ms.me.mbs.mbe.mt.mr.mb.ml.overflow.overflow-x.overflow-y.whitespace`.split(`.`),"not-sr":[`sr`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],"mask-image-x-from-pos":[`mask-image-r-from-pos`,`mask-image-l-from-pos`],"mask-image-x-to-pos":[`mask-image-r-to-pos`,`mask-image-l-to-pos`],"mask-image-x-from-color":[`mask-image-r-from-color`,`mask-image-l-from-color`],"mask-image-x-to-color":[`mask-image-r-to-color`,`mask-image-l-to-color`],"mask-image-y-from-pos":[`mask-image-t-from-pos`,`mask-image-b-from-pos`],"mask-image-y-to-pos":[`mask-image-t-to-pos`,`mask-image-b-to-pos`],"mask-image-y-from-color":[`mask-image-t-from-color`,`mask-image-b-from-color`],"mask-image-y-to-color":[`mask-image-t-to-color`,`mask-image-b-to-color`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`,`translate-3d`],"translate-x":[`translate-none`],"translate-y":[`translate-none`],"translate-z":[`translate-none`],"translate-3d":[`translate-none`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],contain:[`contain-size`,`contain-layout`,`contain-paint`,`contain-style`],"contain-size":[`contain`],"contain-layout":[`contain`],"contain-paint":[`contain`],"contain-style":[`contain`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function U(...e){return Kg(hh(e))}function qg(e){return e.split(/\r?\n/).map(e=>e.trim()).filter(Boolean)}function Jg({delayDuration:e=0,...t}){return(0,P.jsx)(nh,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}var Yg=class extends Error{status;statusText;path;constructor({message:e,status:t,statusText:n,path:r}){super(e),this.name=`ApiError`,this.status=t,this.statusText=n,this.path=r}},Xg=class extends Error{retryable;constructor(e,t){super(e),this.name=`EventStreamError`,this.retryable=t}};function Zg(e){return e instanceof Yg}function Qg(e){return e instanceof Xg?!e.retryable:Zg(e)?e.status>=400&&e.status<500&&![408,425,429].includes(e.status):!1}function $g(e){return Zg(e)&&(e.status===401||e.status===403)}function e_(e){return e instanceof Error?e.message:typeof e==`string`?e:`请求失败`}function t_(e,t){return!$g(t)&&e<1}var n_=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),r_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),i_=e=>{let t=r_(e);return t.charAt(0).toUpperCase()+t.slice(1)},a_=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),o_=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},s_={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},c_=(0,p.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,p.createElement)(`svg`,{ref:c,...s_,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:a_(`lucide`,i),...!a&&!o_(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,p.createElement)(e,t)),...Array.isArray(a)?a:[a]])),l_=(e,t)=>{let n=(0,p.forwardRef)(({className:n,...r},i)=>(0,p.createElement)(c_,{ref:i,iconNode:t,className:a_(`lucide-${n_(i_(e))}`,`lucide-${e}`,n),...r}));return n.displayName=i_(e),n},u_=l_(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),d_=l_(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),f_=l_(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),p_=l_(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),m_=l_(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),h_=l_(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),g_=l_(`external-link`,[[`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`}]]),__=l_(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),v_=l_(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),y_=l_(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),b_=l_(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),x_=l_(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),S_=l_(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),C_=l_(`refresh-cw`,[[`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`}]]),w_=l_(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),T_=l_(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),E_=l_(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),D_=l_(`unlink`,[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]),O_=l_(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),k_=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,A_=hh,j_=(e,t)=>n=>{if(t?.variants==null)return A_(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=k_(t)||k_(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return A_(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},M_=j_(`inline-flex min-h-9 items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius-sm)] px-3 text-sm font-medium transition-[background-color,border-color,color,transform,box-shadow] duration-[var(--duration-fast)] ease-[var(--ease-out)] active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus)] focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{default:`border border-[var(--border)] bg-[var(--surface)] text-[var(--ink)] shadow-[var(--shadow-xs)] hover:bg-[var(--surface-2)]`,destructive:`bg-[var(--danger)] text-white hover:bg-[var(--danger-strong)] focus-visible:ring-[color-mix(in_srgb,var(--danger)_24%,transparent)]`,outline:`border border-[var(--border)] bg-transparent text-[var(--ink)] hover:bg-[var(--overlay)]`,primary:`bg-[var(--ink)] text-white shadow-[var(--shadow-xs)] hover:bg-[var(--ink-2)]`,secondary:`border border-[var(--border)] bg-[var(--surface)] text-[var(--ink)] shadow-[var(--shadow-xs)] hover:bg-[var(--surface-2)]`,ghost:`text-[var(--muted-strong)] hover:bg-[var(--overlay)] hover:text-[var(--ink)]`,danger:`bg-[var(--danger)] text-white hover:bg-[var(--danger-strong)]`,accent:`bg-[var(--accent)] text-[var(--accent-ink)] hover:bg-[var(--accent-strong)]`,link:`text-[var(--ink)] underline-offset-4 hover:underline`},size:{sm:`min-h-8 px-2.5 text-xs`,md:`min-h-9 px-3 text-sm`,lg:`min-h-10 px-4 text-sm`,icon:`size-9 min-h-0 px-0`}},defaultVariants:{variant:`secondary`,size:`md`}});function N_({className:e,variant:t,size:n,loading:r,children:i,...a}){return(0,P.jsxs)(`button`,{className:U(M_({variant:t,size:n}),e),disabled:r||a.disabled,"aria-busy":r||void 0,...a,children:[r&&(0,P.jsx)(b_,{className:`size-4 shrink-0 animate-spin`,"aria-hidden":!0}),i]})}function P_({label:e,loading:t,children:n,...r}){return(0,P.jsx)(N_,{size:`icon`,"aria-label":e,title:e,disabled:t||r.disabled,"aria-busy":t||void 0,...r,children:t?(0,P.jsx)(b_,{className:`size-4 animate-spin`,"aria-hidden":!0}):n})}function F_(e){return(0,P.jsx)(Su,{"data-slot":`alert-dialog`,...e})}function I_(e){return(0,P.jsx)(Cu,{"data-slot":`alert-dialog-portal`,...e})}function L_({className:e,...t}){return(0,P.jsx)(wu,{"data-slot":`alert-dialog-overlay`,className:U(`dialog-overlay-motion fixed inset-0 z-50 bg-black/42`,e),...t})}function R_({className:e,...t}){return(0,P.jsxs)(I_,{children:[(0,P.jsx)(L_,{}),(0,P.jsx)(`div`,{className:`dialog-positioner`,children:(0,P.jsx)(Du,{"data-slot":`alert-dialog-content`,className:U(`dialog-content-motion pointer-events-auto relative z-50 grid w-full max-w-[calc(100vw-2rem)] gap-5 rounded-[var(--radius)] border border-[var(--border)] bg-[var(--surface)] p-5 shadow-[0_4px_12px_rgba(20,20,24,0.16)] outline-none sm:max-w-md`,e),...t})})]})}function z_({className:e,...t}){return(0,P.jsx)(`div`,{className:U(`grid min-w-0 gap-1.5`,e),...t})}function B_({className:e,...t}){return(0,P.jsx)(`div`,{className:U(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function V_({className:e,...t}){return(0,P.jsx)(Ou,{className:U(`break-words text-base font-semibold leading-6 text-[var(--ink)]`,e),...t})}function H_({className:e,...t}){return(0,P.jsx)(ku,{className:U(`break-words text-sm leading-6 text-[var(--muted-strong)]`,e),...t})}function U_({className:e,variant:t=`primary`,size:n=`md`,...r}){return(0,P.jsx)(Au,{className:U(M_({variant:t,size:n}),e),...r})}function W_({className:e,variant:t=`secondary`,size:n=`md`,...r}){return(0,P.jsx)(Mu,{className:U(M_({variant:t,size:n}),e),...r})}function G_({error:e}){return e?(0,P.jsx)(`p`,{className:`rounded-[var(--radius-sm)] border border-[var(--danger-border)] bg-[var(--danger-bg)] px-3 py-2 text-xs text-[var(--danger)]`,children:K_(e)}):null}function K_(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;try{return JSON.stringify(e)??`请求失败`}catch{return`请求失败`}}var q_=(0,p.createContext)(null);function J_({children:e}){let[t,n]=(0,p.useState)(null),[r,i]=(0,p.useState)(!1),[a,o]=(0,p.useState)(),s=(0,p.useCallback)(e=>{o(void 0),i(!1),n({options:e})},[]),c=()=>{r||(n(null),o(void 0))},l=async()=>{if(t&&!r){i(!0),o(void 0);try{await t.options.action(),n(null)}catch(e){o(e)}finally{i(!1)}}};return(0,P.jsxs)(q_.Provider,{value:s,children:[e,(0,P.jsx)(F_,{open:!!t,onOpenChange:e=>!e&&c(),children:(0,P.jsxs)(R_,{"aria-busy":r,onEscapeKeyDown:e=>r&&e.preventDefault(),children:[(0,P.jsxs)(z_,{children:[(0,P.jsx)(V_,{children:t?.options.title}),(0,P.jsx)(H_,{children:t?.options.description})]}),(0,P.jsx)(G_,{error:a}),(0,P.jsxs)(B_,{children:[(0,P.jsx)(W_,{disabled:r,children:`取消`}),(0,P.jsxs)(U_,{variant:t?.options.destructive?`destructive`:`primary`,disabled:r,onClick:e=>{e.preventDefault(),l()},children:[r?(0,P.jsx)(b_,{className:`size-4 animate-spin`}):null,t?.options.confirmLabel??`确认`]})]})]})})]})}function Y_(){let e=(0,p.useContext)(q_);if(!e)throw Error(`useConfirmation must be used inside ConfirmationProvider`);return e}function X_(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Z_=e=>{switch(e){case`success`:return e1;case`info`:return n1;case`warning`:return t1;case`error`:return r1;default:return null}},Q_=Array(12).fill(0),$_=({visible:e,className:t})=>p.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},p.createElement(`div`,{className:`sonner-spinner`},Q_.map((e,t)=>p.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),e1=p.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},p.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`})),t1=p.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},p.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`})),n1=p.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},p.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`})),r1=p.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},p.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`})),i1=p.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`,"aria-hidden":`true`},p.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),p.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),a1=()=>{let[e,t]=p.useState(document.hidden);return p.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e},o1=1,s1=100,c1=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:o1++,l1=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-s1;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=c1(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],p.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(d1(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!p.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!p.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!p.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!p.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=c1(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},u1=(e,t)=>l1.message(e,t),d1=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,f1=Object.assign(u1,{success:l1.success,info:l1.info,warning:l1.warning,error:l1.error,custom:l1.custom,message:l1.message,promise:l1.promise,dismiss:l1.dismiss,loading:l1.loading},{getHistory:()=>l1.toasts,getToasts:()=>l1.getActiveToasts()});X_(`[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [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(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}`);function p1(e){return e.label!==void 0}var m1=3,h1=`24px`,g1=`16px`,_1=4e3,v1=356,y1=14,b1=45,x1=200;function S1(...e){return e.filter(Boolean).join(` `)}function C1(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var w1=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:m,style:h,cancelButtonStyle:g,actionButtonStyle:_,className:v=``,descriptionClassName:y=``,duration:b,position:x,gap:S,expandByDefault:C,classNames:w,icons:T,closeButtonAriaLabel:E=`Close toast`}=e,[D,O]=p.useState(null),[ee,k]=p.useState(null),[te,ne]=p.useState(!1),[A,re]=p.useState(!1),[ie,j]=p.useState(!1),[M,ae]=p.useState(!1),[oe,se]=p.useState(!1),[ce,N]=p.useState(0),[le,ue]=p.useState(0),de=p.useRef(n.duration||b||_1),fe=p.useRef(null),pe=p.useRef(null),me=c===0,he=c+1<=o,ge=n.type,_e=ge??`default`,ve=n.dismissible!==!1,ye=n.className||``,be=n.descriptionClassName||``,xe=p.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),Se=p.useMemo(()=>n.closeButton??m,[n.closeButton,m]),Ce=p.useMemo(()=>n.duration||b||_1,[n.duration,b]),we=p.useRef(0),Te=p.useRef(0),Ee=p.useRef(0),De=p.useRef(null),[Oe,ke]=x.split(`-`),Ae=p.useMemo(()=>s.reduce((e,t,n)=>n>=xe?e:e+t.height,0),[s,xe]),je=a1(),Me=p.useMemo(()=>e.swipeDirections??C1(x),[e.swipeDirections,x]),Ne=n.invert||t,Pe=ge===`loading`;Te.current=p.useMemo(()=>xe*S+Ae,[xe,Ae]),p.useEffect(()=>{de.current=Ce},[Ce]),p.useEffect(()=>{ne(!0)},[]),p.useEffect(()=>{let e=pe.current;if(e){let t=e.getBoundingClientRect().height;return ue(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),p.useLayoutEffect(()=>{if(!te)return;let e=pe.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,ue(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[te,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Fe=p.useCallback(()=>{re(!0),N(Te.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},x1)},[n,d,a,Te]);p.useEffect(()=>{if(n.promise&&ge===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||je?(()=>{if(Ee.current<we.current){let e=new Date().getTime()-we.current;de.current-=e}Ee.current=new Date().getTime()})():de.current!==1/0&&(we.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Fe()},de.current)),()=>clearTimeout(e)},[u,i,n,ge,je,Fe]),p.useEffect(()=>{n.delete&&(Fe(),n.onDismiss==null||n.onDismiss.call(n,n))},[Fe,n.delete]);function Ie(){return T?.loading?p.createElement(`div`,{className:S1(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":ge===`loading`},T.loading):p.createElement($_,{className:S1(w?.loader,n?.classNames?.loader),visible:ge===`loading`})}let Le=n.icon||T?.[ge]||Z_(ge);return p.createElement(`li`,{tabIndex:0,ref:pe,className:S1(v,ye,w?.toast,n?.classNames?.toast,w?.[_e],n?.classNames?.[_e]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":te,"data-promise":!!n.promise,"data-swiped":oe,"data-removed":A,"data-visible":he,"data-y-position":Oe,"data-x-position":ke,"data-index":c,"data-front":me,"data-swiping":ie,"data-dismissible":ve,"data-type":ge,"data-invert":Ne,"data-swipe-out":M,"data-swipe-direction":ee,"data-expanded":!!(u||C&&te),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${A?ce:Te.current}px`,"--initial-height":C?`auto`:`${le}px`,...h,...n.style},onDragEnd:()=>{j(!1),O(null),De.current=null},onPointerDown:e=>{e.button!==2&&!Pe&&ve&&(fe.current=new Date,N(Te.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(j(!0),De.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{if(M||!ve)return;De.current=null;let e=Number(pe.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(pe.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-fe.current?.getTime(),i=D===`x`?e:t,a=Math.abs(i)/r;if((D===`x`?Me.includes(e>0?`right`:`left`):Me.includes(t>0?`bottom`:`top`))&&(Math.abs(i)>=b1||a>.11))N(Te.current),n.onDismiss==null||n.onDismiss.call(n,n),k(D===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Fe(),ae(!0);else{var o,s;(o=pe.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=pe.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),se(!1),j(!1),O(null)}},onPointerMove:e=>{var t,n;if(!De.current||!ve||window.getSelection()?.toString().length>0)return;let r=e.clientY-De.current.y,i=e.clientX-De.current.x;!D&&(Math.abs(i)>1||Math.abs(r)>1)&&O(Math.abs(i)>Math.abs(r)?`x`:`y`);let a={x:0,y:0},o=e=>1/(1.5+Math.abs(e)/20);if(D===`y`){if(Me.includes(`top`)||Me.includes(`bottom`)){if(Me.includes(`top`)&&r<0||Me.includes(`bottom`)&&r>0)a.y=r;else{let e=r*o(r);a.y=Math.abs(e)<Math.abs(r)?e:r}}}else if(D===`x`&&(Me.includes(`left`)||Me.includes(`right`))){if(Me.includes(`left`)&&i<0||Me.includes(`right`)&&i>0)a.x=i;else{let e=i*o(i);a.x=Math.abs(e)<Math.abs(i)?e:i}}(Math.abs(a.x)>0||Math.abs(a.y)>0)&&se(!0),(t=pe.current)==null||t.style.setProperty(`--swipe-amount-x`,`${a.x}px`),(n=pe.current)==null||n.style.setProperty(`--swipe-amount-y`,`${a.y}px`)}},Se&&!n.jsx&&ge!==`loading`?p.createElement(`button`,{"aria-label":E,"data-disabled":Pe,"data-close-button":!0,onClick:Pe||!ve?()=>{}:()=>{Fe(),n.onDismiss==null||n.onDismiss.call(n,n)},className:S1(w?.closeButton,n?.classNames?.closeButton)},T?.close??i1):null,(ge||n.icon||n.promise)&&n.icon!==null&&(T?.[ge]!==null||n.icon)?p.createElement(`div`,{"data-icon":``,className:S1(w?.icon,n?.classNames?.icon)},ge===`loading`?n.icon||Ie():n.promise?Ie():null,ge===`loading`?null:Le):null,p.createElement(`div`,{"data-content":``,className:S1(w?.content,n?.classNames?.content)},p.createElement(`div`,{"data-title":``,className:S1(w?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?p.createElement(`div`,{"data-description":``,className:S1(y,be,w?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),p.isValidElement(n.cancel)?n.cancel:n.cancel&&p1(n.cancel)?p.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||g,onClick:e=>{p1(n.cancel)&&ve&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Fe())},className:S1(w?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,p.isValidElement(n.action)?n.action:n.action&&p1(n.action)?p.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||_,onClick:e=>{p1(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),e.defaultPrevented||Fe())},className:S1(w?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function T1(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function E1(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?g1:h1;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var D1=p.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:m,style:h,visibleToasts:g=m1,toastOptions:_,dir:v=T1(),gap:y=y1,icons:b,customAriaLabel:x,containerAriaLabel:S=`Notifications`}=e,[C,w]=p.useState([]),T=p.useMemo(()=>n?C.filter(e=>e.toasterId===n):C.filter(e=>!e.toasterId),[C,n]),E=p.useMemo(()=>Array.from(new Set([i].concat(T.filter(e=>e.position).map(e=>e.position)))),[T,i]),[D,O]=p.useState([]),[ee,k]=p.useState(!1),[te,ne]=p.useState(!1),[A,re]=p.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),ie=p.useRef(null),j=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),M=p.useRef(null),ae=p.useRef(!1),oe=p.useCallback(e=>{w(t=>(t.find(t=>t.id===e.id)?.delete||l1.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return p.useEffect(()=>l1.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{w(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{xo.flushSync(()=>{w(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),p.useEffect(()=>{if(d!==`system`){re(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?re(`dark`):re(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{re(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{re(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),p.useEffect(()=>{C.length<=1&&k(!1)},[C]),p.useEffect(()=>{let e=e=>{if(a.length>0&&a.every(t=>e[t]||e.code===t)){var t;k(!0),(t=ie.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===ie.current||ie.current?.contains(document.activeElement))&&k(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),p.useEffect(()=>{if(ie.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,ae.current=!1)}},[ie.current]),p.createElement(`section`,{ref:t,"aria-label":x??`${S} ${j}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},E.map((t,n)=>{let[i,a]=t.split(`-`);return T.length?p.createElement(`ol`,{key:t,dir:v===`auto`?T1():v,tabIndex:-1,ref:ie,className:c,"data-sonner-toaster":!0,"data-sonner-theme":A,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${D[0]?.height||0}px`,"--width":`${v1}px`,"--gap":`${y}px`,...h,...E1(l,u)},onBlur:e=>{ae.current&&!e.currentTarget.contains(e.relatedTarget)&&(ae.current=!1,M.current&&=(M.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||ae.current||(ae.current=!0,M.current=e.relatedTarget)},onMouseEnter:()=>k(!0),onMouseMove:()=>k(!0),onMouseLeave:()=>{te||k(!1)},onDragEnd:()=>k(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||ne(!0)},onPointerUp:()=>ne(!1)},T.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>p.createElement(w1,{key:n.id,icons:b,index:i,toast:n,defaultRichColors:f,duration:_?.duration??m,className:_?.className,descriptionClassName:_?.descriptionClassName,invert:r,visibleToasts:g,closeButton:_?.closeButton??s,interacting:te,position:t,style:_?.style,unstyled:_?.unstyled,classNames:_?.classNames,cancelButtonStyle:_?.cancelButtonStyle,actionButtonStyle:_?.actionButtonStyle,closeButtonAriaLabel:_?.closeButtonAriaLabel,removeToast:oe,toasts:T.filter(e=>e.position==n.position),heights:D.filter(e=>e.position==n.position),setHeights:O,expandByDefault:o,gap:y,expanded:ee,swipeDirections:e.swipeDirections}))):null}))});function O1(e){return(0,P.jsx)(D1,{theme:`light`,position:`top-right`,closeButton:!0,gap:8,visibleToasts:4,duration:4500,className:`toaster group`,icons:{success:(0,P.jsx)(h_,{className:`size-4 text-[var(--success)]`}),info:(0,P.jsx)(v_,{className:`size-4 text-[var(--info)]`}),warning:(0,P.jsx)(E_,{className:`size-4 text-[var(--warning)]`}),error:(0,P.jsx)(x_,{className:`size-4 text-[var(--danger)]`}),loading:(0,P.jsx)(b_,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--surface)`,"--normal-text":`var(--ink)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius-sm)`},toastOptions:{classNames:{toast:`font-sans shadow-[var(--shadow-raised)]`,title:`text-sm font-semibold`,description:`text-xs leading-5 text-[var(--muted-strong)]`}},...e})}var k1=new xa({defaultOptions:{queries:{retry:t_,refetchOnWindowFocus:!1,staleTime:2e4}}});function A1({children:e}){return(0,P.jsx)(wa,{client:k1,children:(0,P.jsxs)(Jg,{delayDuration:300,skipDelayDuration:100,children:[(0,P.jsx)(Za,{children:(0,P.jsx)(J_,{children:e})}),(0,P.jsx)(O1,{})]})})}var j1=Jr({component:oi}),M1=`modulepreload`,N1=function(e){return`/dashboard/`+e},P1={},F1={},I1=function(e){return e.pathname.endsWith(`.css`)},L1=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw delete e[t],n});return e[t]=i,i},R1=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=N1(t,n);let r=s(t),i=I1(r);return L1(P1,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}let t=i?e.styles:e.all,n=i?F1[r.href]:void 0;if(!n&&t.has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:M1,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),n&&delete F1[r.href],n?.isConnected?n.replaceWith(o):document.head.appendChild(o),i)return new Promise((e,t)=>{let n=i=>{o.removeEventListener(`load`,n),o.removeEventListener(`error`,n),i.type===`error`?(F1[r.href]=o,t(Error(`Unable to preload CSS for ${r}`))):e(i)};o.addEventListener(`load`,n),o.addEventListener(`error`,n)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},z1=Yr(`/`)({component:Xr(()=>R1(()=>import(`./routes-BnBNI1ke.js`),__vite__mapDeps([0,1,2,3,4,5,6])),`component`)}),B1=()=>R1(()=>import(`./_app-rmP4sHWt.js`),__vite__mapDeps([7,1,8,9,10,11,12,13,6,2]));function V1(e){return{tab:e.tab===`config`||e.tab===`runs`?e.tab:void 0,panel:e.panel===`basic`||e.panel===`identity`||e.panel===`knowledge`||e.panel===`sources`||e.panel===`publishing`?e.panel:void 0,run:typeof e.run==`string`&&e.run?e.run:void 0,runPage:e.runPage===void 0?void 0:Math.max(1,Number(e.runPage)||1),runTab:e.runTab===`main`||e.runTab===`publication`?e.runTab:void 0,destination:typeof e.destination==`string`&&e.destination?e.destination:void 0}}var H1=Yr(`/_app`)({validateSearch:V1,component:Xr(B1,`component`)}),U1=Yr(`/_app/automations`)({validateSearch:e=>({page:Number(e.page??1)||1}),component:Xr(()=>R1(()=>import(`./automations-DMZkw8g6.js`),__vite__mapDeps([14,1,3,12])),`component`)}),W1=(e,t)=>{let n=e.length;for(;e[n-1]===`/`;)n--;return t=t.replace(/^\/+/,``),e.slice(0,n)+`/`+t},G1=/^(?:[/\\][\t\n\r]*){2}/,K1=(e,t)=>{let n=G1.test(e);for(let[n,r]of Object.entries(t)){let t=RegExp(`/:`+n+`(?:{[^/]+})?\\??(?=/|$)`);e=e.replace(t,()=>r?`/${r}`:``)}return!n&&G1.test(e)?e.replace(/^[/\\\t\n\r]+/,`/`):e},q1=e=>{let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(r!==void 0){if(Array.isArray(r))for(let e of r)e!==void 0&&t.append(n,e);else t.set(n,r)}return t},J1=(e,t)=>{switch(t){case`ws`:return e.replace(/^http/,`ws`);case`http`:return e.replace(/^ws/,`http`)}},Y1=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,`/`):e.replace(/\/index(?=\?|$)/,``);function X1(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Z1(e,t){if(!X1(e)&&!X1(t))return t;let n={...e};for(let e in t){let r=t[e];n[e]=X1(n[e])&&X1(r)?Z1(n[e],r):r}return n}var Q1=/^[\w!#$%&'*.^`|~+-]+$/,$1=(e,t,n={})=>{if(!Q1.test(e))throw Error(`Invalid cookie name`);let r=`${e}=${t}`;if(/^__secure-/i.test(e)&&!n.secure)throw Error(`__Secure- Cookie must have Secure attributes`);if(/^__host-/i.test(e)){if(!n.secure)throw Error(`__Host- Cookie must have Secure attributes`);if(n.path!==`/`)throw Error(`__Host- Cookie must have Path attributes with "/"`);if(n.domain)throw Error(`__Host- Cookie must not have Domain attributes`)}for(let e of[`domain`,`path`,`sameSite`,`priority`])if(n[e]&&/[;\r\n]/.test(n[e]))throw Error(`${e} must not contain ";", "\\r", or "\\n"`);if(n&&typeof n.maxAge==`number`&&n.maxAge>=0){if(n.maxAge>3456e4)throw Error(`Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.`);r+=`; Max-Age=${n.maxAge|0}`}if(n.domain&&n.prefix!==`host`&&(r+=`; Domain=${n.domain}`),n.path&&(r+=`; Path=${n.path}`),n.expires){if(n.expires.getTime()-Date.now()>3456e7)throw Error(`Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.`);r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+=`; HttpOnly`),n.secure&&(r+=`; Secure`),n.sameSite&&(r+=`; SameSite=${n.sameSite.charAt(0).toUpperCase()+n.sameSite.slice(1)}`),n.priority&&(r+=`; Priority=${n.priority.charAt(0).toUpperCase()+n.priority.slice(1)}`),n.partitioned){if(!n.secure)throw Error(`Partitioned Cookie must have Secure attributes`);r+=`; Partitioned`}return r},e0=(e,t,n)=>(t=encodeURIComponent(t),$1(e,t,n)),t0=(e,t)=>new Proxy(()=>{},{get(n,r){if(typeof r==`string`&&r!==`then`)return t0(e,[...t,r])},apply(n,r,i){return e({path:t,args:i})}}),n0=(e,t)=>{let n=t.toString();return n?`${e}?${n}`:e},r0=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t,n){this.url=e,this.method=t,this.buildSearchParams=n.buildSearchParams}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){let t=new FormData;for(let[n,r]of Object.entries(e.form))if(r!==void 0){if(Array.isArray(r))for(let e of r)e!==void 0&&t.append(n,e);else t.append(n,r)}this.rBody=t}e.json!==void 0&&(this.rBody=JSON.stringify(e.json),this.cType=`application/json`),e.param&&(this.pathParams=e.param)}let n=this.method.toUpperCase(),r={...e?.header,...typeof t?.headers==`function`?await t.headers():t?.headers};if(e?.cookie){let t=[];for(let[n,r]of Object.entries(e.cookie))r!==void 0&&t.push(e0(n,r));t.length>0&&(r.Cookie=t.join(`; `))}this.cType&&(r[`Content-Type`]=this.cType);let i=new Headers;for(let[e,t]of Object.entries(r))t!==void 0&&i.set(e,t);let a=this.url;a=Y1(a),a=K1(a,this.pathParams),this.queryParams&&(a=n0(a,this.queryParams)),n=this.method.toUpperCase();let o=n!==`GET`&&n!==`HEAD`;return(t?.fetch||fetch)(a,{body:o?this.rBody:void 0,method:n,headers:i,...t?.init})}},i0=(e,t)=>t0(function n(r){let i=t?.buildSearchParams??q1,a=[...r.path],o=a.slice(-3).reverse();if(o[0]===`toString`)return o[1]===`name`?o[2]||``:n.toString();if(o[0]===`valueOf`)return o[1]===`name`?o[2]||``:n;let s=``;if(/^\$/.test(o[0])){let e=a.pop();e&&(s=e.replace(/^\$/,``))}let c=W1(e,a.join(`/`));if(s===`url`||s===`path`){let t=Y1(c);return r.args[0]&&(r.args[0].param&&(t=K1(t,r.args[0].param)),r.args[0].query&&(t=n0(t,i(r.args[0].query)))),s===`url`?new URL(t):t.slice(e.replace(/\/+$/,``).length).replace(/^\/?/,`/`)}if(s===`ws`){let e=Y1(c),n=J1(r.args[0]?.param?K1(e,r.args[0].param):e,`ws`),a=new URL(n),o=r.args[0]?.query;return o&&i(o).forEach((e,t)=>{a.searchParams.append(t,e)}),((...e)=>t?.webSocket!==void 0&&typeof t.webSocket==`function`?t.webSocket(...e):new WebSocket(...e))(a.toString())}let l=new r0(c,s,{buildSearchParams:i});if(s){t??={};let e={...r.args[1]},n=t.headers,i=e.headers;n&&i&&(e.headers=async()=>({...typeof n==`function`?await n():n,...typeof i==`function`?await i():i}));let a=Z1(t,e);return l.fetch(r.args[0],a)}return l},[]);function a0(e,t){let n=Ka.read(),r=new Headers(t?.headers);return n&&!r.has(`Authorization`)&&r.set(`Authorization`,`Bearer ${n}`),globalThis.fetch(e,{...t,headers:r})}var o0=i0(`/`,{fetch:a0});async function s0(e){let t=await e.text();if(!t)return`${e.status} ${e.statusText}`;try{let e=JSON.parse(t),n=e.error??`请求失败`,r=e.issues?.map(e=>[e.path,e.message].filter(Boolean).join(`: `)).filter(Boolean);return r?.length?`${n}:${r.join(`;`)}`:n}catch{return t}}async function c0(e){let t=await e;if(!t.ok)throw new Yg({message:await s0(t),status:t.status,statusText:t.statusText,path:t.url});return await t.json()}async function l0(e,t){let n=await a0(e,{method:`POST`,body:t});if(!n.ok)throw new Yg({message:await s0(n),status:n.status,statusText:n.statusText,path:e});return await n.json()}var u0=(e=1,t=20,n)=>c0(o0.api.connections.$get({query:{page:String(e),pageSize:String(t),...n&&n!==`all`?{category:n}:{}}})),d0=e=>c0(o0.api.connections.$post({json:e})),f0=(e,t)=>c0(o0.api.connections[`:id`].$patch({param:{id:e},json:t})),p0=e=>c0(o0.api.connections[`:id`].$delete({param:{id:e}})),m0=e=>c0(o0.api.connections.test.$post({json:e})),h0=(0,p.createContext)({});function g0(e){let t=(0,p.useRef)(null);return t.current===null&&(t.current=e()),t.current}var _0=typeof window<`u`?p.useLayoutEffect:p.useEffect,v0=(0,p.createContext)(null);function y0(e,t){e.indexOf(t)===-1&&e.push(t)}function b0(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var x0=(e,t,n)=>n>t?t:n<e?e:n,S0={},C0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),w0=e=>typeof e==`object`&&!!e,T0=e=>/^0[^.\s]+$/u.test(e);function E0(e){let t;return()=>(t===void 0&&(t=e()),t)}var D0=e=>e,O0=(...e)=>e.reduce((e,t)=>n=>t(e(n))),k0=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},A0=class{constructor(){this.subscriptions=[]}add(e){return y0(this.subscriptions,e),()=>b0(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},j0=e=>e*1e3,M0=e=>e/1e3,N0=(e,t)=>t?1e3/t*e:0,P0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,F0=1e-7,I0=12;function L0(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=P0(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>F0&&++s<I0);return o}function R0(e,t,n,r){if(e===t&&n===r)return D0;let i=t=>L0(t,0,1,e,n);return e=>e===0||e===1?e:P0(i(e),t,r)}var z0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,B0=e=>t=>1-e(1-t),V0=R0(.33,1.53,.69,.99),H0=B0(V0),U0=z0(H0),W0=e=>e>=1?1:(e*=2)<1?.5*H0(e):.5*(2-2**(-10*(e-1))),G0=e=>1-Math.sin(Math.acos(e)),K0=B0(G0),q0=z0(G0),J0=R0(.42,0,1,1),Y0=R0(0,0,.58,1),X0=R0(.42,0,.58,1),Z0=e=>Array.isArray(e)&&typeof e[0]!=`number`,Q0=e=>Array.isArray(e)&&typeof e[0]==`number`,$0={linear:D0,easeIn:J0,easeInOut:X0,easeOut:Y0,circIn:G0,circInOut:q0,circOut:K0,backIn:H0,backInOut:U0,backOut:V0,anticipate:W0},ev=e=>typeof e==`string`,tv=e=>{if(Q0(e)){e.length;let[t,n,r,i]=e;return R0(t,n,r,i)}return ev(e)?($0[e],`${e}`,$0[e]):e},nv=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function rv(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var iv=40;function av(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=nv.reduce((e,t)=>(e[t]=rv(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=S0.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,iv),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:nv.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<nv.length;t++)o[nv[t]].cancel(e)},state:i,steps:o}}var{schedule:ov,cancel:sv,state:cv,steps:lv}=av(typeof requestAnimationFrame<`u`?requestAnimationFrame:D0,!0),uv;function dv(){uv=void 0}var fv={now:()=>(uv===void 0&&fv.set(cv.isProcessing||S0.useManualTiming?cv.timestamp:performance.now()),uv),set:e=>{uv=e,queueMicrotask(dv)}},pv=e=>t=>typeof t==`string`&&t.startsWith(e),mv=pv(`--`),hv=pv(`var(--`),gv=e=>hv(e)?_v.test(e.split(`/*`)[0].trim()):!1,_v=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function vv(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var yv={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},bv={...yv,transform:e=>x0(0,1,e)},xv={...yv,default:1},Sv=e=>Math.round(e*1e5)/1e5,Cv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wv(e){return e==null}var Tv=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ev=(e,t)=>n=>!!(typeof n==`string`&&Tv.test(n)&&n.startsWith(e)||t&&!wv(n)&&Object.prototype.hasOwnProperty.call(n,t)),Dv=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Cv);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ov=e=>x0(0,255,e),kv={...yv,transform:e=>Math.round(Ov(e))},Av={test:Ev(`rgb`,`red`),parse:Dv(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+kv.transform(e)+`, `+kv.transform(t)+`, `+kv.transform(n)+`, `+Sv(bv.transform(r))+`)`};function jv(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Mv={test:Ev(`#`),parse:jv,transform:Av.transform},Nv=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pv=Nv(`deg`),Fv=Nv(`%`),W=Nv(`px`),Iv=Nv(`vh`),Lv=Nv(`vw`),Rv={...Fv,parse:e=>Fv.parse(e)/100,transform:e=>Fv.transform(e*100)},zv={test:Ev(`hsl`,`hue`),parse:Dv(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Fv.transform(Sv(t))+`, `+Fv.transform(Sv(n))+`, `+Sv(bv.transform(r))+`)`},Bv={test:e=>Av.test(e)||Mv.test(e)||zv.test(e),parse:e=>Av.test(e)?Av.parse(e):zv.test(e)?zv.parse(e):Mv.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Av.transform(e):zv.transform(e),getAnimatableNone:e=>{let t=Bv.parse(e);return t.alpha=0,Bv.transform(t)}},Vv=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Hv(e){return isNaN(e)&&typeof e==`string`&&(e.match(Cv)?.length||0)+(e.match(Vv)?.length||0)>0}var Uv=`number`,Wv=`color`,Gv=`var`,Kv=`var(`,qv="${}",Jv=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Yv(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Jv,e=>(Bv.test(e)?(r.color.push(a),i.push(Wv),n.push(Bv.parse(e))):e.startsWith(Kv)?(r.var.push(a),i.push(Gv),n.push(e)):(r.number.push(a),i.push(Uv),n.push(parseFloat(e))),++a,qv)).split(qv),indexes:r,types:i}}function Xv(e){return Yv(e).values}function Zv({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Uv?Sv(r[a]):e===Wv?Bv.transform(r[a]):r[a]}return i}}function Qv(e){return Zv(Yv(e))}var $v=e=>typeof e==`number`?0:Bv.test(e)?Bv.getAnimatableNone(e):e,ey=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:$v(e);function ty(e){let t=Yv(e);return Zv(t)(t.values.map((e,n)=>ey(e,t.split[n])))}var ny={test:Hv,parse:Xv,createTransformer:Qv,getAnimatableNone:ty};function ry(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iy({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ry(s,r,e+1/3),a=ry(s,r,e),o=ry(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function ay(e,t){return n=>n>0?t:e}var oy=(e,t,n)=>e+(t-e)*n,sy=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},cy=[Mv,Av,zv],ly=e=>cy.find(t=>t.test(e));function uy(e){let t=ly(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===zv&&(n=iy(n)),n}var dy=(e,t)=>{let n=uy(e),r=uy(t);if(!n||!r)return ay(e,t);let i={...n};return e=>(i.red=sy(n.red,r.red,e),i.green=sy(n.green,r.green,e),i.blue=sy(n.blue,r.blue,e),i.alpha=oy(n.alpha,r.alpha,e),Av.transform(i))},fy=new Set([`none`,`hidden`]);function py(e,t){return fy.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function my(e,t){return n=>oy(e,t,n)}function hy(e){return typeof e==`number`?my:typeof e==`string`?gv(e)?ay:Bv.test(e)?dy:yy:Array.isArray(e)?gy:typeof e==`object`?Bv.test(e)?dy:_y:ay}function gy(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>hy(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function _y(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=hy(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function vy(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var yy=(e,t)=>{let n=ny.createTransformer(t),r=Yv(e),i=Yv(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?fy.has(e)&&!i.values.length||fy.has(t)&&!r.values.length?py(e,t):O0(gy(vy(r,i),i.values),n):(`${e}${t}`,ay(e,t))};function by(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?oy(e,t,n):hy(e)(e,t)}var xy=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>ov.update(t,e),stop:()=>sv(t),now:()=>cv.isProcessing?cv.timestamp:fv.now()}},Sy=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Cy=2e4;function wy(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Ty(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(wy(r),Cy);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:M0(i)}}var Ey={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Dy(e,t){return e*Math.sqrt(1-t*t)}var Oy=12;function ky(e,t,n){let r=n;for(let n=1;n<Oy;n++)r-=e(r)/t(r);return r}var Ay=.001;function jy({duration:e=Ey.duration,bounce:t=Ey.bounce,velocity:n=Ey.velocity,mass:r=Ey.mass}){let i,a;Ey.maxDuration;let o=1-t;o=x0(Ey.minDamping,Ey.maxDamping,o),e=x0(Ey.minDuration,Ey.maxDuration,M0(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Dy(t,o),c=Math.exp(-i);return Ay-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Dy(t**2,o);return(-i(t)+Ay>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=ky(i,a,s);if(e=j0(e),isNaN(c))return{stiffness:Ey.stiffness,damping:Ey.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var My=[`duration`,`bounce`],Ny=[`stiffness`,`damping`,`mass`];function Py(e,t){return t.some(t=>e[t]!==void 0)}function Fy(e){let t={velocity:Ey.velocity,stiffness:Ey.stiffness,damping:Ey.damping,mass:Ey.mass,isResolvedFromDuration:!1,...e};if(!Py(e,Ny)&&Py(e,My)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*x0(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ey.mass,stiffness:i,damping:a}}else{let n=jy({...e,velocity:0});t={...t,...n,mass:Ey.mass},t.isResolvedFromDuration=!0}}return t}function Iy(e=Ey.visualDuration,t=Ey.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Fy({...n,velocity:-M0(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=M0(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?Ey.restSpeed.granular:Ey.restSpeed.default,i||=v?Ey.restDelta.granular:Ey.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Dy(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>j0(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=j0(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=j0(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(wy(T),Cy),t=Sy(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}Iy.applyToOptions=e=>{let t=Ty(e,100,Iy);return e.ease=t.ease,e.duration=j0(t.duration),e.type=`keyframes`,e};var Ly=5;function Ry(e,t,n){let r=Math.max(t-Ly,0);return N0(n-e(r),t-r)}function zy({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Iy({keyframes:[f.value,m(f.value)],velocity:Ry(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function By(e,t,n){let r=[],i=n||S0.mix||by,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=O0(Array.isArray(t)?t[n]||D0:t,a)),r.push(a)}return r}function Vy(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=By(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=k0(e[r],e[r+1],n);return s[r](i)};return n?t=>l(x0(e[0],e[a-1],t)):l}function Hy(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=k0(0,t,r);e.push(oy(n,1,i))}}function Uy(e){let t=[0];return Hy(t,e.length-1),t}function Wy(e,t){return e.map(e=>e*t)}function Gy(e,t){return e.map(()=>t||X0).splice(0,e.length-1)}function Ky({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Z0(r)?r.map(tv):tv(r),a={done:!1,value:t[0]},o=Vy(Wy(n&&n.length===t.length?n:Uy(t),e),t,{ease:Array.isArray(i)?i:Gy(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var qy=e=>e!==null;function Jy(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(qy),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Yy={decay:zy,inertia:zy,tween:Ky,keyframes:Ky,spring:Iy};function Xy(e){typeof e.type==`string`&&(e.type=Yy[e.type])}var Zy=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Qy=e=>e/100,$y=class extends Zy{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==fv.now()&&this.tick(fv.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Xy(e);let{type:t=Ky,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Ky;s!==Ky&&typeof o[0]!=`number`&&(this.mixKeyframes=O0(Qy,by(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=wy(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=x0(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==zy&&(b.value=Jy(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return M0(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M0(e)}get time(){return M0(this.currentTime)}set time(e){e=j0(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;return e<=0?this.options.velocity||0:this.generator.velocity?this.generator.velocity(e):Ry(e=>this.generator.next(e).value,e,this.generator.next(e).value)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(fv.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=M0(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=xy,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(fv.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function e2(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var t2=e=>e*180/Math.PI,n2=e=>i2(t2(Math.atan2(e[1],e[0]))),r2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:n2,rotateZ:n2,skewX:e=>t2(Math.atan(e[1])),skewY:e=>t2(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},i2=e=>(e%=360,e<0&&(e+=360),e),a2=n2,o2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),s2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),c2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:o2,scaleY:s2,scale:e=>(o2(e)+s2(e))/2,rotateX:e=>i2(t2(Math.atan2(e[6],e[5]))),rotateY:e=>i2(t2(Math.atan2(-e[2],e[0]))),rotateZ:a2,rotate:a2,skewX:e=>t2(Math.atan(e[4])),skewY:e=>t2(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function l2(e){return+!!e.includes(`scale`)}function u2(e,t){if(!e||e===`none`)return l2(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=c2,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=r2,i=t}if(!i)return l2(t);let a=r[t],o=i[1].split(`,`).map(f2);return typeof a==`function`?a(o):o[a]}var d2=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return u2(n,t)};function f2(e){return parseFloat(e.trim())}var p2=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],m2=new Set([...p2,`pathRotation`]),h2=e=>e===yv||e===W,g2=new Set([`x`,`y`,`z`]),_2=p2.filter(e=>!g2.has(e));function v2(e){let t=[];return _2.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var y2={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>u2(t,`x`),y:(e,{transform:t})=>u2(t,`y`)};y2.translateX=y2.x,y2.translateY=y2.y;var b2=new Set,x2=!1,S2=!1,C2=!1;function w2(){if(S2){let e=Array.from(b2).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=v2(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}S2=!1,x2=!1,b2.forEach(e=>e.complete(C2)),b2.clear()}function T2(){b2.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(S2=!0)})}function E2(){C2=!0,T2(),w2(),C2=!1}var D2=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(b2.add(this),x2||(x2=!0,ov.read(T2),ov.resolveKeyframes(w2))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}e2(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),b2.delete(this)}cancel(){this.state===`scheduled`&&(b2.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},O2=e=>e.startsWith(`--`);function k2(e,t,n){O2(t)?e.style.setProperty(t,n):e.style[t]=n}var A2={};function j2(e,t){let n=E0(e);return()=>A2[t]??n()}var M2=j2(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),N2=j2(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),P2=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,F2={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:P2([0,.65,.55,1]),circOut:P2([.55,0,1,.45]),backIn:P2([.31,.01,.66,-.59]),backOut:P2([.33,1.53,.69,.99])};function I2(e,t){if(e)return typeof e==`function`?N2()?Sy(e,t):`ease-out`:Q0(e)?P2(e):Array.isArray(e)?e.map(e=>I2(e,t)||F2.easeOut):F2[e]}function L2(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=I2(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function R2(e){return typeof e==`function`&&`applyToOptions`in e}function z2({type:e,...t}){return R2(e)&&N2()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var B2=class extends Zy{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=z2(e);this.animation=L2(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Jy(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),k2(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return M0(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M0(e)}get time(){return M0(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=j0(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&M2()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),D0):r(this)}},V2={anticipate:W0,backInOut:U0,circInOut:q0};function H2(e){return e in V2}function U2(e){typeof e.ease==`string`&&H2(e.ease)&&(e.ease=V2[e.ease])}var W2=10,G2=class extends B2{constructor(e){U2(e),Xy(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new $y({...a,autoplay:!1}),s=Math.max(W2,fv.now()-this.startTime),c=x0(0,W2,s-W2),l=o.sample(s).value,{name:u}=this.options;i&&u&&k2(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},K2=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(ny.test(e)||e===`0`)&&!e.startsWith(`url(`));function q2(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function J2(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=K2(i,t),s=K2(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:q2(e)||(n===`spring`||R2(n))&&r}function Y2(e){e.duration=0,e.type=`keyframes`}var X2=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Z2=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Q2(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Z2.test(e[t]))return!0;return!1}var $2=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),e4=E0(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function t4(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return e4()&&n&&(X2.has(n)||$2.has(n)&&Q2(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var n4=40,r4=class extends Zy{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=fv.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||D2;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=fv.now();let u=!0;J2(e,i,a,o)||(u=!1,(S0.instantAnimations||!s)&&l?.(Jy(e,n,t)),e[0]=e[e.length-1],Y2(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>n4?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&t4(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new G2({...d,element:p})}catch{m=new $y(d)}else m=new $y(d);m.finished.then(()=>{this.notifyFinished()}).catch(D0),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),E2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function i4(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var a4=30,o4=e=>!isNaN(parseFloat(e)),s4={current:void 0},c4=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=fv.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=fv.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=o4(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new A0);let n=this.events[e].add(t);return e===`change`?()=>{n(),ov.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return s4.current&&s4.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=fv.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>a4)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,a4);return N0(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function l4(e,t){return new c4(e,t)}function u4(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function d4(e,t){let n=e?.[t]??e?.default??e;return n===e?n:u4(n,e)}var f4={type:`spring`,stiffness:500,damping:25,restSpeed:10},p4=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),m4={type:`keyframes`,duration:.8},h4={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},g4=(e,{keyframes:t})=>t.length>2?m4:m2.has(e)?e.startsWith(`scale`)?p4(t[1]):f4:h4,_4=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function v4(e){for(let t in e)if(!_4.has(t))return!0;return!1}var y4=(e,t,n,r={},i,a)=>o=>{let s=d4(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=j0(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};v4(s)||Object.assign(u,g4(e,u)),u.duration&&=j0(u.duration),u.repeatDelay&&=j0(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Y2(u),u.delay===0&&(d=!0)),(S0.instantAnimations||S0.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Y2(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Jy(u.keyframes,s);if(e!==void 0){ov.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new $y(u):new r4(u)},b4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function x4(e){let t=b4.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function S4(e,t,n=1){`${e}`;let[r,i]=x4(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return C0(e)?parseFloat(e):e}return gv(i)?S4(i,t,n+1):i}function C4(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function w4(e,t,n,r){if(typeof t==`function`){let[i,a]=C4(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=C4(r);t=t(n===void 0?e.custom:n,i,a)}return t}function T4(e,t,n){let r=e.getProps();return w4(r,t,n===void 0?r.custom:n,e)}var E4=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...p2]),D4=e=>Array.isArray(e);function O4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,l4(n))}function k4(e){return D4(e)?e[e.length-1]||0:e}function A4(e,t){let{transitionEnd:n={},transition:r={},...i}=T4(e,t)||{};i={...i,...n};for(let t in i)O4(e,t,k4(i[t]))}var j4=e=>!!(e&&e.getVelocity);function M4(e){return!!(j4(e)&&e.add)}function N4(e,t){let n=e.getValue(`willChange`);if(M4(n))return n.add(t);if(!n&&S0.WillChange){let n=new S0.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function P4(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var F4=`data-`+P4(`framerAppearId`);function I4(e){return e.props[F4]}function L4({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function R4(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?u4(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&L4(f,t))continue;let o={delay:n,...d4(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){ov.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=I4(e);if(n){let e=window.MotionHandoffAnimation(n,t,ov);e!==null&&(o.startTime=e,p=!0)}}N4(e,t);let m=l??e.shouldReduceMotion;r.start(y4(t,r,i,m&&E4.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>ov.update(()=>{o&&A4(e,o)});d.length?Promise.all(d).then(t):t()}return d}function z4(e,t,n={}){let r=T4(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(R4(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return B4(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function B4(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(z4(c,t,{...o,delay:n+(typeof r==`function`?0:r)+i4(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function V4(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>z4(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=z4(e,t,n);else{let i=typeof t==`function`?T4(e,t,n.custom):t;r=Promise.all(R4(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var H4={test:e=>e===`auto`,parse:e=>e},U4=e=>t=>t.test(e),W4=[yv,W,Fv,Pv,Lv,Iv,H4],G4=e=>W4.find(U4(e));function K4(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||T0(e)}var q4=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function J4(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Cv)||[];if(!r)return e;let i=n.replace(r,``),a=+!!q4.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Y4=/\b([a-z-]*)\(.*?\)/gu,X4={...ny,getAnimatableNone:e=>{let t=e.match(Y4);return t?t.map(J4).join(` `):e}},Z4={...ny,getAnimatableNone:e=>{let t=ny.parse(e);return ny.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Q4={...yv,transform:Math.round},$4={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,rotate:Pv,pathRotation:Pv,rotateX:Pv,rotateY:Pv,rotateZ:Pv,scale:xv,scaleX:xv,scaleY:xv,scaleZ:xv,skew:Pv,skewX:Pv,skewY:Pv,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:bv,originX:Rv,originY:Rv,originZ:W,zIndex:Q4,fillOpacity:bv,strokeOpacity:bv,numOctaves:Q4},e3={...$4,color:Bv,backgroundColor:Bv,outlineColor:Bv,fill:Bv,stroke:Bv,borderColor:Bv,borderTopColor:Bv,borderRightColor:Bv,borderBottomColor:Bv,borderLeftColor:Bv,filter:X4,WebkitFilter:X4,mask:Z4,WebkitMask:Z4},t3=e=>e3[e],n3=new Set([X4,Z4]);function r3(e,t){let n=t3(e);return n3.has(n)||(n=ny),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var i3=new Set([`auto`,`none`,`0`]);function a3(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!i3.has(t)&&Yv(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=r3(n,i)}var o3=class extends D2{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),gv(r))){let i=S4(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!E4.has(n)||e.length!==2)return;let[r,i]=e,a=G4(r),o=G4(i);if(vv(r)!==vv(i)&&y2[n])this.needsMeasurement=!0;else if(a!==o){if(h2(a)&&h2(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else y2[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||K4(e[t]))&&n.push(t);n.length&&a3(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=y2[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=y2[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},s3=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function c3(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var l3=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function u3(e){return w0(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:d3,cancel:f3}=av(queueMicrotask,!1),p3={x:!1,y:!1};function m3(){return p3.x||p3.y}function h3(e){return e===`x`||e===`y`?p3[e]?null:(p3[e]=!0,()=>{p3[e]=!1}):p3.x||p3.y?null:(p3.x=p3.y=!0,()=>{p3.x=p3.y=!1})}function g3(e,t){let n=c3(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function _3(e){return!(e.pointerType===`touch`||m3())}function v3(e,t,n={}){let[r,i,a]=g3(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!_3(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var y3=(e,t)=>t?e===t||y3(e,t.parentElement):!1,b3=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,x3=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function S3(e){return x3.has(e.tagName)||e.isContentEditable===!0}var C3=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function w3(e){return C3.has(e.tagName)||e.isContentEditable===!0}var T3=new WeakSet;function E3(e){return t=>{t.key===`Enter`&&e(t)}}function D3(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var O3=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=E3(()=>{if(T3.has(n))return;D3(n,`down`);let e=E3(()=>{D3(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>D3(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function k3(e){return b3(e)&&!m3()}var A3=new WeakSet;function j3(e,t,n={}){let[r,i,a]=g3(e,n),o=e=>{let r=e.currentTarget;if(!k3(e)||A3.has(e))return;T3.add(r),n.stopPropagation&&A3.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),T3.has(r)&&T3.delete(r),k3(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||y3(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),u3(e)&&(e.addEventListener(`focus`,e=>O3(e,i)),!S3(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function M3(e){return w0(e)&&`ownerSVGElement`in e}var N3=new WeakMap,P3,F3=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:M3(r)&&`getBBox`in r?r.getBBox()[t]:r[n],I3=F3(`inline`,`width`,`offsetWidth`),L3=F3(`block`,`height`,`offsetHeight`);function R3({target:e,borderBoxSize:t}){N3.get(e)?.forEach(n=>{n(e,{get width(){return I3(e,t)},get height(){return L3(e,t)}})})}function z3(e){e.forEach(R3)}function B3(){typeof ResizeObserver<`u`&&(P3=new ResizeObserver(z3))}function V3(e,t){P3||B3();let n=c3(e);return n.forEach(e=>{let n=N3.get(e);n||(n=new Set,N3.set(e,n)),n.add(t),P3?.observe(e)}),()=>{n.forEach(e=>{let n=N3.get(e);n?.delete(t),n?.size||P3?.unobserve(e)})}}var H3=new Set,U3;function W3(){U3=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};H3.forEach(t=>t(e))},window.addEventListener(`resize`,U3)}function G3(e){return H3.add(e),U3||W3(),()=>{H3.delete(e),!H3.size&&typeof U3==`function`&&(window.removeEventListener(`resize`,U3),U3=void 0)}}function K3(e,t){return typeof e==`function`?G3(e):V3(e,t)}var q3={value:null,addProjectionMetrics:null};function J3(e){return M3(e)&&e.tagName===`svg`}var Y3=[...W4,Bv,ny],X3=e=>Y3.find(U4(e)),Z3=()=>({translate:0,scale:1,origin:0,originPoint:0}),Q3=()=>({x:Z3(),y:Z3()}),$3=()=>({min:0,max:0}),e6=()=>({x:$3(),y:$3()}),t6=new WeakMap;function n6(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function r6(e){return typeof e==`string`||Array.isArray(e)}var i6=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],a6=[`initial`,...i6];function o6(e){return n6(e.animate)||a6.some(t=>r6(e[t]))}function s6(e){return!!(o6(e)||e.variants)}function c6(e,t,n){for(let r in t){let i=t[r],a=n[r];if(j4(i))e.addValue(r,i);else if(j4(a))e.addValue(r,l4(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,l4(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var l6={current:null},u6={current:!1},d6=typeof window<`u`;function f6(){if(u6.current=!0,d6){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>l6.current=e.matches;e.addEventListener(`change`,t),t()}else l6.current=!1}}var p6=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],m6={};function h6(e){m6=e}function g6(){return m6}var _6=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=D2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=fv.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ov.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=o6(t),this.isVariantNode=s6(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&j4(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,t6.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(u6.current||f6(),this.shouldReduceMotion=l6.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),sv(this.notifyUpdate),sv(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&X2.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new B2({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:j0(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=m2.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&ov.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in m6){let t=m6[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):e6()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<p6.length;t++){let n=p6[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=c6(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=l4(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(C0(n)||T0(n))?n=parseFloat(n):!X3(n)&&ny.test(t)&&(n=r3(e,t)),this.setBaseTarget(e,j4(n)?n.get():n)),j4(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=w4(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!j4(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new A0),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){d3.render(this.render)}},v6=class extends _6{constructor(){super(...arguments),this.KeyframeResolver=o3}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;j4(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},y6=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function b6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function x6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function S6(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function C6(e){return e===void 0||e===1}function w6({scale:e,scaleX:t,scaleY:n}){return!C6(e)||!C6(t)||!C6(n)}function T6(e){return w6(e)||E6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function E6(e){return D6(e.x)||D6(e.y)}function D6(e){return e&&e!==`0%`}function O6(e,t,n){return n+t*(e-n)}function k6(e,t,n,r,i){return i!==void 0&&(e=O6(e,i,r)),O6(e,n,r)+t}function A6(e,t=0,n=1,r,i){e.min=k6(e.min,t,n,r,i),e.max=k6(e.max,t,n,r,i)}function j6(e,{x:t,y:n}){A6(e.x,t.translate,t.scale,t.originPoint),A6(e.y,n.translate,n.scale,n.originPoint)}var M6=.999999999999,N6=1.0000000000001;function P6(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(F6(e.x,-a.scroll.offset.x),F6(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,j6(e,o)),r&&T6(a.latestValues)&&R6(e,a.latestValues,a.layout?.layoutBox))}t.x<N6&&t.x>M6&&(t.x=1),t.y<N6&&t.y>M6&&(t.y=1)}function F6(e,t){e.min+=t,e.max+=t}function I6(e,t,n,r,i=.5){A6(e,t,n,oy(e.min,e.max,i),r)}function L6(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function R6(e,t,n){let r=n??e;I6(e.x,L6(t.x,r.x),t.scaleX,t.scale,t.originX),I6(e.y,L6(t.y,r.y),t.scaleY,t.scale,t.originY)}function z6(e,t){return b6(S6(e.getBoundingClientRect(),t))}function B6(e,t,n){let r=z6(e,n),{scroll:i}=t;return i&&(F6(r.x,i.offset.x),F6(r.y,i.offset.y)),r}var V6={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},H6=p2.length;function U6(e,t,n){let r=``,i=!0;for(let a=0;a<H6;a++){let o=p2[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=l3(s,$4[o]);if(!c){i=!1;let t=V6[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${l3(a,$4.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function W6(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(m2.has(e))o=!0;else if(mv(e))i[e]=n;else{let t=l3(n,$4[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=U6(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function G6(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function K6(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var q6={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(W.test(e))e=parseFloat(e);else return e}return`${K6(e,t.target.x)}% ${K6(e,t.target.y)}%`}},J6={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=ny.parse(e);if(i.length>5)return r;let a=ny.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=oy(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Y6={borderRadius:{...q6,applyTo:[...s3]},borderTopLeftRadius:q6,borderTopRightRadius:q6,borderBottomLeftRadius:q6,borderBottomRightRadius:q6,boxShadow:J6};function X6(e,{layout:t,layoutId:n}){return m2.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Y6[e]||e===`opacity`)}function Z6(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(j4(r[t])||i&&j4(i[t])||X6(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Q6(e){return window.getComputedStyle(e)}var $6=class extends v6{constructor(){super(...arguments),this.type=`html`,this.renderInstance=G6}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(m2.has(t))return this.projection?.isProjecting?l2(t):d2(e,t);{let n=Q6(e),r=(mv(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return z6(e,t)}build(e,t,n){W6(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Z6(e,t,n)}},eb={offset:`stroke-dashoffset`,array:`stroke-dasharray`},tb={offset:`strokeDashoffset`,array:`strokeDasharray`};function nb(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?eb:tb;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var rb=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ib(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(W6(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of rb)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&nb(d,i,a,o,!1)}var ab=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),ob=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function sb(e,t,n,r){G6(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(ab.has(n)?n:P4(n),t.attrs[n])}function cb(e,t,n){let r=Z6(e,t,n);for(let n in e)if(j4(e[n])||j4(t[n])){let t=p2.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var lb=class extends v6{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=e6}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(m2.has(t)){let e=t3(t);return e&&e.default||0}return t=ab.has(t)?t:P4(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return cb(e,t,n)}build(e,t,n){ib(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){sb(e,t,n,r)}mount(e){this.isSVGTag=ob(e.tagName),super.mount(e)}},ub=a6.length;function db(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&db(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<ub;n++){let r=a6[n],i=e.props[r];(r6(i)||i===!1)&&(t[r]=i)}return t}function fb(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var pb=[...i6].reverse(),mb=i6.length;function hb(e){return t=>Promise.all(t.map(({animation:t,options:n})=>V4(e,t,n)))}function gb(e){let t=hb(e),n=yb(),r=!0,i=!1,a=t=>(n,r)=>{let i=T4(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=db(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<mb;t++){let p=pb[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=r6(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||n6(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=_b(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=D4(t)&&D4(n)?!fb(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=T4(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=i4(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=T4(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=yb(),i=!0}}}function _b(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!fb(t,e):!1}function vb(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yb(){return{animate:vb(!0),whileInView:vb(),whileHover:vb(),whileTap:vb(),whileDrag:vb(),whileFocus:vb(),exit:vb()}}function bb(e,t){e.min=t.min,e.max=t.max}function xb(e,t){bb(e.x,t.x),bb(e.y,t.y)}function Sb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Cb=.9999,wb=1.0001,Tb=-.01,Eb=.01;function Db(e){return e.max-e.min}function Ob(e,t,n){return Math.abs(e-t)<=n}function kb(e,t,n,r=.5){e.origin=r,e.originPoint=oy(t.min,t.max,e.origin),e.scale=Db(n)/Db(t),e.translate=oy(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Cb&&e.scale<=wb||isNaN(e.scale))&&(e.scale=1),(e.translate>=Tb&&e.translate<=Eb||isNaN(e.translate))&&(e.translate=0)}function Ab(e,t,n,r){kb(e.x,t.x,n.x,r?r.originX:void 0),kb(e.y,t.y,n.y,r?r.originY:void 0)}function jb(e,t,n,r=0){e.min=(r?oy(n.min,n.max,r):n.min)+t.min,e.max=e.min+Db(t)}function Mb(e,t,n,r){jb(e.x,t.x,n.x,r?.x),jb(e.y,t.y,n.y,r?.y)}function Nb(e,t,n,r=0){let i=r?oy(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Db(t)}function Pb(e,t,n,r){Nb(e.x,t.x,n.x,r?.x),Nb(e.y,t.y,n.y,r?.y)}function Fb(e,t,n,r,i){return e-=t,e=O6(e,1/n,r),i!==void 0&&(e=O6(e,1/i,r)),e}function Ib(e,t=0,n=1,r=.5,i,a=e,o=e){if(Fv.test(t)&&(t=parseFloat(t),t=oy(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=oy(a.min,a.max,r);e===a&&(s-=t),e.min=Fb(e.min,t,n,s,i),e.max=Fb(e.max,t,n,s,i)}function Lb(e,t,[n,r,i],a,o){Ib(e,t[n],t[r],t[i],t.scale,a,o)}var Rb=[`x`,`scaleX`,`originX`],zb=[`y`,`scaleY`,`originY`];function Bb(e,t,n,r){Lb(e.x,t,Rb,n?n.x:void 0,r?r.x:void 0),Lb(e.y,t,zb,n?n.y:void 0,r?r.y:void 0)}function Vb(e){return e.translate===0&&e.scale===1}function Hb(e){return Vb(e.x)&&Vb(e.y)}function Ub(e,t){return e.min===t.min&&e.max===t.max}function Wb(e,t){return Ub(e.x,t.x)&&Ub(e.y,t.y)}function Gb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Kb(e,t){return Gb(e.x,t.x)&&Gb(e.y,t.y)}function qb(e){return Db(e.x)/Db(e.y)}function Jb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Yb(e){return[e(`x`),e(`y`)]}function Xb(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Zb=s3.length,Qb=e=>typeof e==`string`?parseFloat(e):e,$b=e=>typeof e==`number`||W.test(e);function e8(e,t,n,r,i,a){i?(e.opacity=oy(0,n.opacity??1,n8(r)),e.opacityExit=oy(t.opacity??1,0,r8(r))):a&&(e.opacity=oy(t.opacity??1,n.opacity??1,r));for(let i=0;i<Zb;i++){let a=s3[i],o=t8(t,a),s=t8(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||$b(o)===$b(s)?(e[a]=Math.max(oy(Qb(o),Qb(s),r),0),(Fv.test(s)||Fv.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=oy(t.rotate||0,n.rotate||0,r))}function t8(e,t){return e[t]===void 0?e.borderRadius:e[t]}var n8=i8(0,.5,K0),r8=i8(.5,.95,D0);function i8(e,t,n){return r=>r<e?0:r>t?1:n(k0(e,t,r))}function a8(e,t,n){let r=j4(e)?e:l4(e);return r.start(y4(``,r,t,n)),r.animation}function o8(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var s8=(e,t)=>e.depth-t.depth,c8=class{constructor(){this.children=[],this.isDirty=!1}add(e){y0(this.children,e),this.isDirty=!0}remove(e){b0(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(s8),this.isDirty=!1,this.children.forEach(e)}};function l8(e,t){let n=fv.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(sv(r),e(a-t))};return ov.setup(r,!0),()=>sv(r)}function u8(e){return j4(e)?e.get():e}var d8=class{constructor(){this.members=[]}add(e){y0(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(b0(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(b0(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},f8={hasAnimatedSinceResize:!0,hasEverUpdated:!1},p8={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},m8=[``,`X`,`Y`,`Z`],h8=1e3,g8=0;function _8(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function v8(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=I4(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,ov,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&v8(r)}function y8({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=g8++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,q3.value&&(p8.nodes=p8.calculatedTargetDeltas=p8.calculatedProjections=0),this.nodes.forEach(S8),this.nodes.forEach(j8),this.nodes.forEach(M8),this.nodes.forEach(C8),q3.addProjectionMetrics&&q3.addProjectionMetrics(p8)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new c8)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new A0),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=M3(t)&&!J3(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;ov.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=l8(i,250),f8.hasAnimatedSinceResize&&(f8.hasAnimatedSinceResize=!1,this.nodes.forEach(A8)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||z8,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Kb(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...d4(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||A8(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),sv(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(N8),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&v8(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(E8),this.nodes.forEach(T8);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(D8);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(O8),this.nodes.forEach(k8),this.nodes.forEach(b8),this.nodes.forEach(x8)):this.nodes.forEach(D8),this.clearAllSnapshots();let e=fv.now();cv.delta=x0(0,1e3/60,e-cv.timestamp),cv.timestamp=e,cv.isProcessing=!0,lv.update.process(cv),lv.preRender.process(cv),lv.render.process(cv),cv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,d3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(w8),this.sharedNodes.forEach(P8)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ov.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ov.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Db(this.snapshot.measuredBox.x)&&!Db(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=e6(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Hb(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||T6(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),U8(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return e6();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(G8))){let{scroll:e}=this.root;e&&(F6(t.x,e.offset.x),F6(t.y,e.offset.y))}return t}removeElementScroll(e){let t=e6();if(xb(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&xb(t,e),F6(t.x,i.offset.x),F6(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||e6();xb(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(F6(r.x,-n.scroll.offset.x),F6(r.y,-n.scroll.offset.y)),T6(n.latestValues)&&R6(r,n.latestValues,n.layout?.layoutBox)}return T6(this.latestValues)&&R6(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=e6();xb(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!T6(n.latestValues))continue;let r;n.instance&&(w6(n.latestValues)&&n.updateSnapshot(),r=e6(),xb(r,n.measurePageBox())),Bb(t,n.latestValues,n.snapshot?.layoutBox,r)}return T6(this.latestValues)&&Bb(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==cv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=cv.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=e6(),this.targetWithTransforms=e6()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Mb(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):xb(this.target,this.layout.layoutBox),j6(this.target,this.targetDelta)):xb(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),q3.value&&p8.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||w6(this.parent.latestValues)||E6(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=e6(),this.relativeTargetOrigin=e6(),Pb(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),xb(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===cv.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;xb(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;P6(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=e6());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Sb(this.prevProjectionDelta.x,this.projectionDelta.x),Sb(this.prevProjectionDelta.y,this.projectionDelta.y)),Ab(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&Jb(this.projectionDelta.x,this.prevProjectionDelta.x)&&Jb(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),q3.value&&p8.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Q3(),this.projectionDelta=Q3(),this.projectionDeltaWithTransform=Q3()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Q3();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=e6(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(R8));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=oy(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=oy(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(F8(o.x,e.x,n),F8(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pb(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),L8(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Wb(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=e6(),xb(f,this.relativeTarget)),c&&(this.animationValues=a,e8(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(sv(this.pendingAnimation),void 0),this.pendingAnimation=ov.update(()=>{f8.hasAnimatedSinceResize=!0,this.motionValue||=l4(0),this.motionValue.jump(0,!1),this.currentAnimation=a8(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(h8),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&W8(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||e6();let t=Db(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Db(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}xb(t,n),R6(t,i),Ab(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new d8),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&_8(`z`,e,r,this.animationValues);for(let t=0;t<m8.length;t++)_8(`rotate${m8[t]}`,e,r,this.animationValues),_8(`skew${m8[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=u8(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=u8(t?.pointerEvents)||``),this.hasProjected&&!T6(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Xb(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Y6){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Y6[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?u8(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(T8),this.root.sharedNodes.clear()}}}function b8(e){e.updateLayout()}function x8(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Yb(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Db(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;bb(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else W8(i,t.layoutBox,n)&&Yb(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Db(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Q3();Ab(o,n,t.layoutBox);let s=Q3();a?Ab(s,e.applyTransform(r,!0),t.measuredBox):Ab(s,n,t.layoutBox);let c=!Hb(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=e6();Pb(s,t.layoutBox,i.layoutBox,o);let c=e6();Pb(c,n,a.layoutBox,o),Kb(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function S8(e){q3.value&&p8.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function C8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function w8(e){e.clearSnapshot()}function T8(e){e.clearMeasurements()}function E8(e){e.isLayoutDirty=!0,e.updateLayout()}function D8(e){e.isLayoutDirty=!1}function O8(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function k8(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function A8(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function j8(e){e.resolveTargetDelta()}function M8(e){e.calcProjection()}function N8(e){e.resetSkewAndRotation()}function P8(e){e.removeLeadSnapshot()}function F8(e,t,n){e.translate=oy(t.translate,0,n),e.scale=oy(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function I8(e,t,n,r){e.min=oy(t.min,n.min,r),e.max=oy(t.max,n.max,r)}function L8(e,t,n,r){I8(e.x,t.x,n.x,r),I8(e.y,t.y,n.y,r)}function R8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var z8={duration:.45,ease:[.4,0,.1,1]},B8=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),V8=B8(`applewebkit/`)&&!B8(`chrome/`)?Math.round:D0;function H8(e){e.min=V8(e.min),e.max=V8(e.max)}function U8(e){H8(e.x),H8(e.y)}function W8(e,t,n){return e===`position`||e===`preserve-aspect`&&!Ob(qb(t),qb(n),.2)}function G8(e){return e!==e.root&&e.scroll?.wasRoot}var K8=y8({attachResizeListener:(e,t)=>o8(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),q8={current:void 0},J8=y8({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!q8.current){let e=new K8({});e.mount(window),e.setOptions({layoutScroll:!0}),q8.current=e}return q8.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Y8=(0,p.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function X8(e=!0){let t=(0,p.useContext)(v0);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,p.useId)();(0,p.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,p.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Z8=(0,p.createContext)({strict:!1}),Q8={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},$8=!1;function ex(){if($8)return;let e={};for(let t in Q8)e[t]={isEnabled:e=>Q8[t].some(t=>!!e[t])};h6(e),$8=!0}function tx(){return ex(),g6()}function nx(e){let t=tx();for(let n in e)t[n]={...t[n],...e[n]};h6(t)}var rx=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function ix(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||rx.has(e)}var ax=r({default:()=>ox}),ox,sx=n((()=>{throw ox={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),cx=e=>!ix(e);function lx(e){typeof e==`function`&&(cx=t=>t.startsWith(`on`)?!ix(t):e(t))}try{lx((sx(),t(ax)).default)}catch{}function ux(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||j4(e[i])||(cx(i)||n===!0&&ix(i)||!t&&!ix(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var dx=(0,p.createContext)({});function fx(e,t){if(o6(e)){let{initial:t,animate:n}=e;return{initial:t===!1||r6(t)?t:void 0,animate:r6(n)?n:void 0}}return e.inherit===!1?{}:t}function px(e){let{initial:t,animate:n}=fx(e,(0,p.useContext)(dx));return(0,p.useMemo)(()=>({initial:t,animate:n}),[mx(t),mx(n)])}function mx(e){return Array.isArray(e)?e.join(` `):e}var hx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function gx(e,t,n){for(let r in t)!j4(t[r])&&!X6(r,n)&&(e[r]=t[r])}function _x({transformTemplate:e},t){return(0,p.useMemo)(()=>{let n=hx();return W6(n,t,e),Object.assign({},n.vars,n.style)},[t])}function vx(e,t){let n=e.style||{},r={};return gx(r,n,e),Object.assign(r,_x(e,t)),r}function yx(e,t){let n={},r=vx(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var bx=()=>({...hx(),attrs:{}});function xx(e,t,n,r){let i=(0,p.useMemo)(()=>{let n=bx();return ib(n,t,ob(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};gx(t,e.style,e),i.style={...t,...i.style}}return i}var Sx=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Cx(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Sx.indexOf(e)>-1||/[A-Z]/u.test(e))}function wx(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Cx(e)?xx:yx)(t,r,i,e),c=ux(t,typeof e==`string`,a),l=e===p.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,p.useMemo)(()=>j4(u)?u.get():u,[u]);return(0,p.createElement)(e,{...l,children:d})}function Tx({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Ex(n,r,i,e),renderState:t()}}function Ex(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=u8(a[e]);let{initial:o,animate:s}=e,c=o6(e),l=s6(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!n6(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=w4(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Dx=e=>(t,n)=>{let r=(0,p.useContext)(dx),i=(0,p.useContext)(v0),a=()=>Tx(e,t,r,i);return n?a():g0(a)},Ox=Dx({scrapeMotionValuesFromProps:Z6,createRenderState:hx}),kx=Dx({scrapeMotionValuesFromProps:cb,createRenderState:bx}),Ax=Symbol.for(`motionComponentSymbol`);function jx(e,t,n){let r=(0,p.useRef)(n);(0,p.useInsertionEffect)(()=>{r.current=n});let i=(0,p.useRef)(null);return(0,p.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Mx=(0,p.createContext)({});function Nx(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Px(e,t,n,r,i,a){let{visualElement:o}=(0,p.useContext)(dx),s=(0,p.useContext)(Z8),c=(0,p.useContext)(v0),l=(0,p.useContext)(Y8),u=l.reducedMotion,d=l.skipAnimations,f=(0,p.useRef)(null),m=(0,p.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let h=f.current,g=(0,p.useContext)(Mx);h&&!h.projection&&i&&(h.type===`html`||h.type===`svg`)&&Fx(f.current,n,i,g);let _=(0,p.useRef)(!1);(0,p.useInsertionEffect)(()=>{h&&_.current&&h.update(n,c)});let v=n[F4],y=(0,p.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return _0(()=>{m.current=!0,h&&(_.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),y.current&&h.animationState&&h.animationState.animateChanges())}),(0,p.useEffect)(()=>{h&&(!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),h.enteringChildren=void 0)}),h}function Fx(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Ix(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Nx(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Ix(e){if(e)return e.options.allowProjection===!1?Ix(e.parent):e.projection}function Lx(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&nx(r);let a=n?n===`svg`:Cx(e),o=a?kx:Ox;function s(n,s){let c,l={...(0,p.useContext)(Y8),...n,layoutId:Rx(n)},{isStatic:u}=l,d=px(n),f=o(n,u);if(!u&&typeof window<`u`){zx(l,r);let t=Bx(l);c=t.MeasureLayout,d.visualElement=Px(e,f,l,i,t.ProjectionNode,a)}return(0,P.jsxs)(dx.Provider,{value:d,children:[c&&d.visualElement?(0,P.jsx)(c,{visualElement:d.visualElement,...l}):null,wx(e,n,jx(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,p.forwardRef)(s);return c[Ax]=e,c}function Rx({layoutId:e}){let t=(0,p.useContext)(h0).id;return t&&e!==void 0?t+`-`+e:e}function zx(e,t){(0,p.useContext)(Z8).strict}function Bx(e){let{drag:t,layout:n}=tx();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Vx(e,t){if(typeof Proxy>`u`)return Lx;let n=new Map,r=(n,r)=>Lx(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Lx(a,void 0,e,t)),n.get(a))})}var Hx=(e,t)=>t.isSVG??Cx(e)?new lb(t):new $6(t,{allowProjection:e!==p.Fragment}),Ux=class extends y6{constructor(e){super(e),e.animationState||=gb(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();n6(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Wx=0,Gx={animation:{Feature:Ux},exit:{Feature:class extends y6{constructor(){super(...arguments),this.id=Wx++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=T4(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Kx(e){return{point:{x:e.pageX,y:e.pageY}}}var qx=e=>t=>b3(t)&&e(t,Kx(t));function Jx(e,t,n,r){return o8(e,t,qx(n),r)}var Yx=({current:e})=>e?e.ownerDocument.defaultView:null,Xx=(e,t)=>Math.abs(e-t);function Zx(e,t){let n=Xx(e.x,t.x),r=Xx(e.y,t.y);return Math.sqrt(n**2+r**2)}var Qx=new Set([`auto`,`scroll`]),$x=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=e5(this.lastRawMoveEventInfo,this.transformPagePoint));let e=n5(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Zx(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=cv;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=e5(t,this.transformPagePoint),ov.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=n5(e.type===`pointercancel`?this.lastMoveEventInfo:e5(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!b3(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=e5(Kx(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=cv;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,n5(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=O0(Jx(this.contextWindow,`pointermove`,this.handlePointerMove,d),Jx(this.contextWindow,`pointerup`,this.handlePointerUp,d),Jx(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Qx.has(e.overflowX)||Qx.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),ov.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),sv(this.updatePoint)}};function e5(e,t){return t?{point:t(e.point)}:e}function t5(e,t){return{x:e.x-t.x,y:e.y-t.y}}function n5({point:e},t){return{point:e,delta:t5(e,i5(t)),offset:t5(e,r5(t)),velocity:a5(t,.1)}}function r5(e){return e[0]}function i5(e){return e[e.length-1]}function a5(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=i5(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>j0(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>j0(t)*2&&(r=e[1]);let a=M0(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function o5(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?oy(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?oy(n,e,r.max):Math.min(e,n)),e}function s5(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function c5(e,{top:t,left:n,bottom:r,right:i}){return{x:s5(e.x,n,i),y:s5(e.y,t,r)}}function l5(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function u5(e,t){return{x:l5(e.x,t.x),y:l5(e.y,t.y)}}function d5(e,t){let n=.5,r=Db(e),i=Db(t);return i>r?n=k0(t.min,t.max-r,e.min):r>i&&(n=k0(e.min,e.max-i,t.min)),x0(0,1,n)}function f5(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var p5=.35;function m5(e=p5){return e===!1?e=0:e===!0&&(e=p5),{x:h5(e,`left`,`right`),y:h5(e,`top`,`bottom`)}}function h5(e,t,n){return{min:g5(e,t),max:g5(e,n)}}function g5(e,t){return typeof e==`number`?e:e[t]||0}var _5=new WeakMap,v5=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=e6(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Kx(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=h3(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yb(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Fv.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Db(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&ov.update(()=>i(e,t),!1,!0),N4(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;r&&this.currentDirection===null?(this.currentDirection=S5(o),this.currentDirection!==null&&i&&i(this.currentDirection)):(this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&ov.update(()=>a(e,t),!1,!0))},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new $x(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Yx(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&ov.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!x5(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=o5(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Nx(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?c5(n.layoutBox,e):!1,this.elastic=m5(t),r!==this.constraints&&!Nx(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Yb(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=f5(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Nx(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=B6(n,r.root,this.visualElement.getTransformPagePoint()),a=u5(r.layout.layoutBox,i);if(t){let e=t(x6(a));this.hasMutatedConstraints=!!e,e&&(a=b6(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Yb(o=>{if(!x5(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return N4(this.visualElement,e),n.start(y4(e,n,0,t,this.visualElement,!1))}stopAnimation(){Yb(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Yb(t=>{let{drag:n}=this.getProps();if(!x5(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-oy(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Nx(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Yb(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=d5({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Yb(t=>{if(!x5(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(oy(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;_5.set(this.visualElement,this);let e=this.visualElement.current,t=Jx(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&w3(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Nx(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=b5(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ov.read(r);let o=o8(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Yb(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=p5,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function y5(e){let t=!0;return()=>{t?t=!1:e()}}function b5(e,t,n){let r=K3(e,y5(n)),i=K3(t,y5(n));return()=>{r(),i()}}function x5(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function S5(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var C5=class extends y6{constructor(e){super(e),this.removeGroupControls=D0,this.removeListeners=D0,this.controls=new v5(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D0}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},w5=e=>(t,n)=>{e&&ov.update(()=>e(t,n),!1,!0)},T5=class extends y6{constructor(){super(...arguments),this.removePointerDownListener=D0}onPointerDown(e){this.session=new $x(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Yx(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:w5(e),onStart:w5(t),onMove:w5(n),onEnd:(e,t)=>{delete this.session,r&&ov.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Jx(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},E5=!1,D5=class extends p.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),E5&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),f8.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),E5=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||ov.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),d3.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;E5=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function O5(e){let[t,n]=X8(),r=(0,p.useContext)(h0);return(0,P.jsx)(D5,{...e,layoutGroup:r,switchLayoutGroup:(0,p.useContext)(Mx),isPresent:t,safeToRemove:n})}var k5={pan:{Feature:T5},drag:{Feature:C5,ProjectionNode:J8,MeasureLayout:O5}};function A5(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&ov.postRender(()=>i(t,Kx(t)))}var j5=class extends y6{mount(){let{current:e}=this.node;e&&(this.unmount=v3(e,(e,t)=>(A5(this.node,t,`Start`),e=>A5(this.node,e,`End`))))}unmount(){}},M5=class extends y6{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=O0(o8(this.node.current,`focus`,()=>this.onFocus()),o8(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function N5(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&ov.postRender(()=>i(t,Kx(t)))}var P5=class extends y6{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=j3(e,(e,t)=>(N5(this.node,t,`Start`),(e,{success:t})=>N5(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},F5=new WeakMap,I5=new WeakMap,L5=e=>{let t=F5.get(e.target);t&&t(e)},R5=e=>{e.forEach(L5)};function z5({root:e,...t}){let n=e||document;I5.has(n)||I5.set(n,{});let r=I5.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(R5,{root:e,...t})),r[i]}function B5(e,t,n){let r=z5(t);return F5.set(e,n),r.observe(e),()=>{F5.delete(e),r.unobserve(e)}}var V5={some:0,all:1},H5=class extends y6{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:V5[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=B5(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(U5(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function U5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var W5={inView:{Feature:H5},tap:{Feature:P5},focus:{Feature:M5},hover:{Feature:j5}},G5={layout:{ProjectionNode:J8,MeasureLayout:O5}},K5=Vx({...Gx,...W5,...k5,...G5},Hx);function q5(){!u6.current&&f6();let[e]=(0,p.useState)(l6.current);return e}var J5=K5;function Y5({className:e,type:t,...n}){return(0,P.jsx)(`input`,{type:t,"data-slot":`input`,className:U(`min-h-10 w-full min-w-0 rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] px-3 py-2 text-base text-[var(--ink)] outline-none transition duration-200 ease-[var(--ease-standard)] selection:bg-[var(--ink)] selection:text-[var(--paper)] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-[var(--ink)] placeholder:text-[var(--muted)] disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-[var(--surface-2)] disabled:text-[var(--muted)] disabled:opacity-70 md:text-sm`,`focus-visible:border-[var(--ink)] focus-visible:ring-2 focus-visible:ring-[var(--focus)]`,`aria-invalid:border-[var(--danger)] aria-invalid:ring-2 aria-invalid:ring-[color-mix(in_srgb,var(--danger)_18%,transparent)]`,e),...n})}function X5({...e}){return(0,P.jsx)(nm,{"data-slot":`select`,...e})}function Z5({...e}){return(0,P.jsx)(Dm,{"data-slot":`select-group`,...e})}function Q5({...e}){return(0,P.jsx)(om,{"data-slot":`select-value`,...e})}function $5({className:e,size:t=`default`,children:n,...r}){return(0,P.jsxs)(im,{"data-slot":`select-trigger`,"data-size":t,className:U(`flex min-h-10 w-fit items-center justify-between gap-2 rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] px-3 py-2 text-sm text-[var(--ink)] whitespace-nowrap outline-none transition duration-200 ease-[var(--ease-standard)] focus-visible:border-[var(--ink)] focus-visible:ring-2 focus-visible:ring-[var(--focus)] disabled:cursor-not-allowed disabled:bg-[var(--surface-2)] disabled:text-[var(--muted)] disabled:opacity-70 aria-invalid:border-[var(--danger)] aria-invalid:ring-2 aria-invalid:ring-[color-mix(in_srgb,var(--danger)_18%,transparent)] data-[placeholder]:text-[var(--muted)] data-[size=default]:min-h-10 data-[size=sm]:min-h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-[var(--muted)]`,e),...r,children:[n,(0,P.jsx)(sm,{asChild:!0,children:(0,P.jsx)(d_,{className:`size-4 opacity-50`})})]})}function e7({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,P.jsx)(um,{children:(0,P.jsxs)(fm,{"data-slot":`select-content`,className:U(`dropdown-content-motion relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] text-[var(--ink)] shadow-[0_8px_24px_rgba(20,20,24,0.12)]`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,P.jsx)(n7,{}),(0,P.jsx)(wm,{className:U(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,P.jsx)(r7,{})]})})}function t7({className:e,children:t,...n}){return(0,P.jsxs)(jm,{"data-slot":`select-item`,className:U(`relative flex w-full cursor-default items-center gap-2 rounded-[var(--radius-xs)] py-1.5 pr-8 pl-2 text-sm text-[var(--ink)] outline-hidden select-none focus:bg-[var(--surface-2)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-[var(--muted)] *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,P.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,P.jsx)(Fm,{children:(0,P.jsx)(u_,{className:`size-4`})})}),(0,P.jsx)(Nm,{children:t})]})}function n7({className:e,...t}){return(0,P.jsx)(Lm,{"data-slot":`select-scroll-up-button`,className:U(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,P.jsx)(m_,{className:`size-4`})})}function r7({className:e,...t}){return(0,P.jsx)(zm,{"data-slot":`select-scroll-down-button`,className:U(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,P.jsx)(d_,{className:`size-4`})})}function i7({className:e,children:t,id:n,name:r,value:i,defaultValue:a,disabled:o,required:s,onBlur:c,onChange:l,autoFocus:u,"aria-label":d,"aria-labelledby":f,"aria-invalid":m,...h}){let g=p.Children.toArray(t).flatMap(e=>!p.isValidElement(e)||e.type!==`option`?[]:[{value:String(e.props.value??``),label:e.props.children,disabled:e.props.disabled}]),_=g.find(e=>e.value===``)?.label,v=g.filter(e=>e.value!==``);return(0,P.jsxs)(nm,{name:r,value:i==null?void 0:String(i),defaultValue:a==null?void 0:String(a),disabled:o,required:s,onValueChange:e=>{l?.({target:{value:e},currentTarget:{value:e}})},children:[(0,P.jsx)($5,{id:n,className:U(`w-full`,e),"aria-label":d,"aria-labelledby":f,"aria-invalid":m,onBlur:e=>c?.(e),autoFocus:u,...a7(h),children:(0,P.jsx)(Q5,{placeholder:_})}),(0,P.jsx)(e7,{position:`popper`,align:`start`,children:(0,P.jsx)(Z5,{children:v.map(e=>(0,P.jsx)(t7,{value:e.value,disabled:e.disabled,children:e.label},e.value))})})]})}function a7(e){return{"aria-describedby":e[`aria-describedby`],"aria-errormessage":e[`aria-errormessage`],title:e.title}}function o7({className:e,...t}){return(0,P.jsx)(`textarea`,{"data-slot":`textarea`,className:U(`flex field-sizing-content min-h-16 w-full rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] px-3 py-2 text-base text-[var(--ink)] outline-none transition duration-200 ease-[var(--ease-standard)] placeholder:text-[var(--muted)] focus-visible:border-[var(--ink)] focus-visible:ring-2 focus-visible:ring-[var(--focus)] disabled:cursor-not-allowed disabled:bg-[var(--surface-2)] disabled:text-[var(--muted)] disabled:opacity-70 aria-invalid:border-[var(--danger)] aria-invalid:ring-2 aria-invalid:ring-[color-mix(in_srgb,var(--danger)_18%,transparent)] md:text-sm`,e),...t})}function s7({...e}){return(0,P.jsx)(R,{"data-slot":`dialog`,...e})}function c7({...e}){return(0,P.jsx)(tu,{"data-slot":`dialog-portal`,...e})}function l7({...e}){return(0,P.jsx)(mu,{"data-slot":`dialog-close`,...e})}function u7({className:e,...t}){return(0,P.jsx)(ru,{"data-slot":`dialog-overlay`,className:U(`dialog-overlay-motion fixed inset-0 z-50 bg-black/42`,e),...t})}function d7({className:e,children:t,showCloseButton:n=!0,...r}){return(0,P.jsxs)(c7,{"data-slot":`dialog-portal`,children:[(0,P.jsx)(u7,{}),(0,P.jsx)(`div`,{className:`dialog-positioner`,children:(0,P.jsxs)(su,{"data-slot":`dialog-content`,className:U(`dialog-content-motion pointer-events-auto relative z-50 grid w-full max-w-[calc(100vw-2rem)] gap-4 rounded-lg border bg-background p-6 shadow-lg outline-none sm:max-w-lg`,e),...r,children:[t,n&&(0,P.jsxs)(mu,{"data-slot":`dialog-close`,className:`absolute right-4 top-3.5 grid size-8 place-items-center rounded-[var(--radius-sm)] text-[var(--muted)] transition-colors hover:bg-[var(--surface-2)] hover:text-[var(--ink)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus)] disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:size-4`,children:[(0,P.jsx)(O_,{}),(0,P.jsx)(`span`,{className:`sr-only`,children:`关闭`})]})]})})]})}function f7({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`dialog-header`,className:U(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function p7({className:e,...t}){return(0,P.jsx)(du,{"data-slot":`dialog-title`,className:U(`text-lg leading-none font-semibold`,e),...t})}function m7({className:e,...t}){return(0,P.jsx)(fu,{"data-slot":`dialog-description`,className:U(`text-sm text-muted-foreground`,e),...t})}var h7=(0,p.createContext)(null);function g7(){return(0,p.useContext)(h7)}function _7({children:e,outletClassName:t}){let[n,r]=(0,p.useState)(null),[i,a]=(0,p.useState)([]),o=(0,p.useCallback)(e=>{a(t=>t.includes(e)?t:[...t,e])},[]),s=(0,p.useCallback)(e=>{a(t=>t.filter(t=>t!==e))},[]),c=(0,p.useMemo)(()=>({host:n,layers:i,register:o,unregister:s}),[n,i,o,s]),l=i.length>0;return(0,P.jsxs)(h7.Provider,{value:c,children:[(0,P.jsx)(`div`,{className:U(`sheet-surface-outlet min-h-0 flex-1 overflow-y-auto overscroll-contain`,l&&`sheet-surface-receded`,t),"aria-hidden":l||void 0,children:e}),(0,P.jsx)(`div`,{ref:r,className:`sheet-host-portal`})]})}var v7=240,y7={sm:`rise-sheet-sm`,md:`rise-sheet-md`,lg:`rise-sheet-lg`};function b7(e,t){let[n,r]=(0,p.useState)(e);return(0,p.useEffect)(()=>{if(e){r(!0);return}let n=globalThis.setTimeout(()=>r(!1),t);return()=>globalThis.clearTimeout(n)},[e,t]),{mounted:e||n,closing:!e&&n}}function x7({open:e,onClose:t,title:n,description:r,size:i=`md`,escapeDisabled:a=!1,contentClassName:o,footerRef:s,children:c}){let{mounted:l,closing:u}=b7(e,v7),d=(0,p.useRef)(null),f=g7(),m=(0,p.useId)(),h=f?.layers.includes(m)??!1,g=(0,p.useRef)(0);f&&h&&(g.current=f.layers.indexOf(m));let _=g.current,v=!f||!h||f.layers[f.layers.length-1]===m,y=h&&!v,b=y&&f?f.layers.length-1-_:0,x=f?.register,S=f?.unregister;(0,p.useEffect)(()=>{if(e&&x&&S)return x(m),()=>S(m)},[e,x,S,m]);let C=(0,p.useRef)(t);if(C.current=t,(0,p.useEffect)(()=>{e&&v&&d.current?.focus({preventScroll:!0})},[e,v]),(0,p.useEffect)(()=>{if(!e||!v)return;let t=e=>{e.key===`Escape`&&!a&&(e.preventDefault(),C.current())};return globalThis.addEventListener(`keydown`,t),()=>globalThis.removeEventListener(`keydown`,t)},[e,v,a]),!l||f&&!f.host)return null;let w=(0,P.jsxs)(`div`,{"data-slot":`rise-sheet-layer`,className:U(`rise-sheet-layer`,!f&&`rise-sheet-layer-fixed`,u&&`rise-sheet-closing`),style:{"--layer-index":_,"--sheet-exit":`${v7}ms`},"aria-hidden":y||void 0,...y?{inert:``}:{},children:[(0,P.jsx)(`div`,{className:`rise-sheet-dismiss`,onClick:v?t:void 0,"aria-hidden":!0}),(0,P.jsxs)(`section`,{ref:d,"data-slot":`rise-sheet`,className:U(`rise-sheet-panel`,y7[i],y&&`rise-sheet-behind`),style:{"--sheet-depth":b},role:`dialog`,"aria-modal":`true`,"aria-label":n,tabIndex:-1,children:[(0,P.jsx)(`div`,{className:`rise-sheet-grip`,"aria-hidden":!0}),(0,P.jsxs)(`header`,{className:`flex flex-none items-start justify-between gap-4 border-b border-[var(--border)] bg-[var(--surface)] px-6 py-3.5`,children:[(0,P.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-0.5`,children:[(0,P.jsx)(`h2`,{className:`break-words text-base font-semibold leading-6 tracking-[var(--tracking-heading)] text-[var(--ink)]`,children:n}),r?(0,P.jsx)(`p`,{className:`break-words text-xs leading-5 text-[var(--muted-strong)]`,children:r}):null]}),(0,P.jsx)(`button`,{type:`button`,"aria-label":`关闭面板`,title:`关闭 (Esc)`,onClick:t,className:`grid size-8 shrink-0 place-items-center rounded-[var(--radius-sm)] text-[var(--muted)] transition-[background-color,color,transform] duration-[var(--duration-fast)] ease-[var(--ease-out)] hover:bg-[var(--overlay)] hover:text-[var(--ink)] active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus)]`,children:(0,P.jsx)(O_,{className:`size-4`})})]}),(0,P.jsx)(`div`,{"data-slot":`app-dialog-content`,className:U(`scrollbar-stable min-h-0 flex-1 overflow-y-auto overscroll-contain bg-[var(--surface)] px-6 py-5`,o),children:c}),(0,P.jsx)(`div`,{"data-slot":`app-dialog-footer-root`,ref:s})]})]});return f?.host?(0,xo.createPortal)(w,f.host):typeof document<`u`?(0,xo.createPortal)(w,document.body):w}var S7=(0,p.createContext)(null);function C7({open:e,onOpenChange:t,title:n,description:r,size:i=`default`,variant:a=`sheet`,children:o,contentClassName:s}){let[c,l]=(0,p.useState)(null);return a===`sheet`?(0,P.jsx)(x7,{open:e,onClose:()=>t(!1),title:n,description:r,size:i===`wide`?`lg`:i===`medium`?`md`:`sm`,contentClassName:s,footerRef:l,children:(0,P.jsx)(S7.Provider,{value:c,children:o})}):(0,P.jsx)(s7,{open:e,onOpenChange:t,children:(0,P.jsx)(d7,{className:U(`grid max-h-[min(800px,calc(100dvh-24px))] grid-rows-[auto_minmax(0,1fr)_auto] gap-0 overflow-hidden rounded-[var(--radius)] border-[var(--border)] bg-[var(--surface)] p-0 shadow-[0_12px_32px_rgba(17,24,39,0.14)]`,i===`wide`?`sm:max-w-[min(1080px,calc(100vw-32px))]`:i===`medium`?`sm:max-w-[min(800px,calc(100vw-32px))]`:`sm:max-w-xl`),children:(0,P.jsxs)(S7.Provider,{value:c,children:[(0,P.jsxs)(f7,{className:`grid min-w-0 gap-1 border-b border-[var(--border)] bg-[var(--surface)] px-5 py-3.5 pr-14 text-left`,children:[(0,P.jsx)(p7,{className:`min-w-0 break-words text-base font-semibold leading-6 tracking-[var(--tracking-heading)] text-[var(--ink)]`,children:n}),r?(0,P.jsx)(m7,{className:`min-w-0 break-words text-xs leading-5 text-[var(--muted-strong)]`,children:r}):null]}),(0,P.jsx)(`div`,{"data-slot":`app-dialog-content`,className:U(`scrollbar-stable min-h-0 overflow-y-auto overscroll-contain bg-[var(--surface)] p-5`,s),children:o}),(0,P.jsx)(`div`,{"data-slot":`app-dialog-footer-root`,ref:l})]})})})}function w7({className:e,...t}){let n=(0,p.useContext)(S7);return n?(0,xo.createPortal)((0,P.jsx)(`div`,{"data-slot":`app-dialog-footer`,className:U(`border-t border-[var(--border)] bg-[var(--surface)] px-6 py-3 [&_button]:min-h-8 [&_button]:px-3 [&_button]:text-xs`,e),...t}),n):null}var T7=()=>[`becomeopc`,`status`],E7=()=>c0(o0.api.becomeopc.status.$get()),D7=()=>c0(o0.api.becomeopc.sync.$post()),O7=()=>c0(o0.api.becomeopc.connection.$delete()),k7=()=>c0(o0.api.becomeopc.oauth.start.$post()),A7=e=>c0(o0.api.becomeopc.oauth.status.$get({query:{state:e}}));function j7(){return Ra({queryKey:T7(),queryFn:E7,staleTime:3e4,retry:!1})}function M7(e){if(!e)return`TrendPublish 托管订阅`;let t=e.toLowerCase();return t.includes(`bundle`)?t.includes(`year`)||t.includes(`annual`)?`全家桶年付`:t.includes(`month`)?`全家桶月付`:`全家桶订阅`:t.includes(`year`)||t.includes(`annual`)?`年付订阅`:t.includes(`month`)?`月付订阅`:t.includes(`trial`)?`试用版`:t.includes(`pro`)?`Pro 订阅`:e}function N7(e,t=Date.now()){if(!e)return!1;if(e.status===`trialing`)return!0;if(!e.trialEnd)return!1;let n=Date.parse(e.trialEnd);return Number.isFinite(n)&&n>t}function P7(e,t=Date.now()){if(!e||!e.connected)return{label:`未连接`,tone:`neutral`};if(e.expired)return{label:`已过期`,tone:`danger`};if(N7(e,t))return{label:`试用中`,tone:`info`};switch(e.status){case`active`:return{label:`已订阅`,tone:`success`};case`canceling`:return{label:`到期后取消`,tone:`warning`};case`past_due`:return{label:`待续费`,tone:`warning`};default:return e.entitled?{label:`已连接`,tone:`success`}:{label:`未生效`,tone:`warning`}}}function F7(e){if(!e)return`—`;let t=Date.parse(e);return Number.isFinite(t)?new Intl.DateTimeFormat(`zh-CN`,{year:`numeric`,month:`2-digit`,day:`2-digit`}).format(new Date(t)):e}var I7=j_(`inline-flex min-h-5 max-w-full items-center gap-1 rounded-[6px] border px-1.5 text-[11px] font-medium`,{variants:{tone:{neutral:`border-[var(--border)] bg-[var(--surface-2)] text-[var(--muted-strong)]`,success:`border-[var(--success-border)] bg-[var(--success-bg)] text-[var(--success)]`,warning:`border-[var(--warning-border)] bg-[var(--warning-bg)] text-[var(--warning)]`,danger:`border-[var(--danger-border)] bg-[var(--danger-bg)] text-[var(--danger)]`,info:`border-[var(--info-border)] bg-[var(--info-bg)] text-[var(--info)]`,accent:`border-[var(--accent-border)] bg-[var(--accent-bg)] text-[var(--accent)]`}},defaultVariants:{tone:`neutral`}});function L7({tone:e,className:t,children:n,title:r}){return(0,P.jsx)(`span`,{title:r,className:U(I7({tone:e}),t),children:n})}var R7={success(e,t){f1.success(e,{description:t})},error(e,t){f1.error(e,{description:e_(t)})},info(e,t){f1.info(e,{description:t})}},z7=1200;function B7(){let e=Ca(),{data:t,isLoading:n}=j7(),[r,i]=(0,p.useState)(null),[a,o]=(0,p.useState)(null),[s,c]=(0,p.useState)(!1),l=(0,p.useRef)(null),u=()=>{l.current&&=(clearInterval(l.current),null),i(null)};(0,p.useEffect)(()=>u,[]),(0,p.useEffect)(()=>{if(!r)return;let t=async()=>{try{let t=await A7(r);if(t.status===`pending`)return;if(u(),t.status===`completed`){o(null),await e.invalidateQueries({queryKey:T7()}),await e.invalidateQueries({queryKey:[`connections`]}),R7.success(t.synced?`已连接 BecomeOPC,并同步 ${t.synced} 个微信 Relay 连接`:`已连接 BecomeOPC 订阅`);return}if(t.status===`not_entitled`){o(t.error??`当前 BecomeOPC 账户尚未订阅 TrendPublish,请先前往订阅或开始试用。`),R7.info(`已登录 BecomeOPC,当前账户尚未订阅 TrendPublish`);return}R7.error(`连接 BecomeOPC 失败`,t.error??`登录会话已结束`)}catch(e){u(),R7.error(`检查 BecomeOPC 登录状态失败`,e)}};return l.current=setInterval(()=>void t(),z7),()=>{l.current&&=(clearInterval(l.current),null)}},[r,e]);let d=za({mutationFn:k7,onSuccess:({state:e,authorizeUrl:t})=>{o(null),i(e),window.open(t,`_blank`,`noopener,noreferrer`)?R7.info(`已打开 BecomeOPC 授权页面,完成登录后将自动同步`):R7.info(`浏览器拦截了弹窗,请允许新窗口或手动打开授权页`)},onError:e=>R7.error(`发起 BecomeOPC 连接失败`,e)}),f=za({mutationFn:D7,onSuccess:async t=>{o(null),await e.invalidateQueries({queryKey:T7()}),R7.success(t.synced?`订阅状态已刷新,并同步 ${t.synced} 个微信 Relay 连接`:`BecomeOPC 订阅状态已刷新`)},onError:e=>R7.error(`刷新 BecomeOPC 订阅失败`,e)}),m=za({mutationFn:O7,onSuccess:async()=>{c(!1),o(null),await e.invalidateQueries({queryKey:T7()}),R7.success(`已断开本地 BecomeOPC 订阅凭证`)},onError:e=>R7.error(`断开 BecomeOPC 连接失败`,e)}),h=P7(t),g=t?.urls.subscribe??`https://becomeopc.com/trendpublish/zh#pricing`,_=t?.urls.manage??`https://becomeopc.com/account?product=trendpublish&lang=zh`,v=!!r,y=N7(t),b=(y?t?.trialEnd:null)??t?.periodEnd??t?.expiresAt??null;return(0,P.jsxs)(`section`,{"aria-label":`BecomeOPC 订阅与托管 Relay`,className:`grid gap-3.5 rounded-[var(--radius-md)] border border-[var(--border)] bg-[var(--surface)] p-4 sm:p-5`,children:[(0,P.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,P.jsxs)(`div`,{className:`flex min-w-0 items-start gap-3`,children:[(0,P.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center rounded-[var(--radius-sm)] border border-[var(--accent-border)] bg-[var(--accent-bg)] text-[var(--accent)]`,children:(0,P.jsx)(T_,{className:`size-4`,"aria-hidden":!0})}),(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,P.jsx)(`h2`,{className:`text-sm font-semibold text-[var(--ink)]`,children:`BecomeOPC 订阅 · 托管微信 Relay`}),(0,P.jsx)(L7,{tone:h.tone,children:n?`检查中…`:h.label})]}),(0,P.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-[var(--muted-strong)]`,children:`无需自备国内固定 IP 服务器,订阅后自动同步微信公众号托管 Relay 凭证并每 6 小时自动续期。`})]})]}),(0,P.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:t?.connected?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`a`,{href:t.expired?g:_,target:`_blank`,rel:`noopener noreferrer`,className:U(M_({variant:t.expired?`primary`:`secondary`,size:`sm`})),children:[t.expired?`前往 BecomeOPC 续费`:`管理订阅`,(0,P.jsx)(g_,{className:`size-3.5`,"aria-hidden":!0})]}),(0,P.jsxs)(N_,{type:`button`,size:`sm`,variant:`secondary`,loading:f.isPending,onClick:()=>f.mutate(),children:[!f.isPending&&(0,P.jsx)(C_,{className:`size-3.5`,"aria-hidden":!0}),`刷新同步`]}),t.expired&&t.canBrowserLogin?(0,P.jsxs)(N_,{type:`button`,size:`sm`,variant:`secondary`,loading:d.isPending||v,onClick:()=>d.mutate(),children:[!d.isPending&&!v&&(0,P.jsx)(y_,{className:`size-3.5`,"aria-hidden":!0}),v?`等待授权…`:`重新连接`]}):null,s?(0,P.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,P.jsx)(N_,{type:`button`,size:`sm`,variant:`danger`,loading:m.isPending,onClick:()=>m.mutate(),children:`确认断开`}),(0,P.jsx)(N_,{type:`button`,size:`sm`,variant:`ghost`,disabled:m.isPending,onClick:()=>c(!1),children:`取消`})]}):(0,P.jsxs)(N_,{type:`button`,size:`sm`,variant:`ghost`,onClick:()=>c(!0),children:[(0,P.jsx)(D_,{className:`size-3.5`,"aria-hidden":!0}),`断开`]})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`a`,{href:g,target:`_blank`,rel:`noopener noreferrer`,className:U(M_({variant:`primary`,size:`sm`})),children:[`前往 BecomeOPC 订阅`,(0,P.jsx)(g_,{className:`size-3.5`,"aria-hidden":!0})]}),t?.canBrowserLogin?v?(0,P.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,P.jsx)(N_,{type:`button`,size:`sm`,variant:`secondary`,loading:!0,children:`等待浏览器授权…`}),(0,P.jsx)(N_,{type:`button`,size:`sm`,variant:`ghost`,onClick:u,children:`取消`})]}):(0,P.jsxs)(N_,{type:`button`,size:`sm`,variant:`secondary`,loading:d.isPending,onClick:()=>d.mutate(),children:[!d.isPending&&(0,P.jsx)(y_,{className:`size-3.5`,"aria-hidden":!0}),`连接 BecomeOPC 账号`]}):(0,P.jsx)(`span`,{className:`rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface-2)] px-2.5 py-1.5 font-mono text-[11px] text-[var(--muted-strong)]`,children:`CLI 执行 trendpublish login 绑定`})]})})]}),t?.connected?(0,P.jsxs)(`div`,{className:`grid gap-2.5 sm:grid-cols-3`,children:[(0,P.jsxs)(`div`,{className:`rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface-2)] px-3 py-2`,children:[(0,P.jsx)(`div`,{className:`text-[11px] text-[var(--muted)]`,children:`当前套餐`}),(0,P.jsx)(`div`,{className:`mt-0.5 text-sm font-medium text-[var(--ink)]`,children:M7(t.plan)})]}),(0,P.jsxs)(`div`,{className:`rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface-2)] px-3 py-2`,children:[(0,P.jsx)(`div`,{className:`text-[11px] text-[var(--muted)]`,children:y?`试用到期`:t.periodEnd?`当前周期截止`:`本地凭证有效至`}),(0,P.jsx)(`div`,{className:`mt-0.5 text-sm font-medium tabular-nums text-[var(--ink)]`,children:F7(b)})]}),(0,P.jsxs)(`div`,{className:`rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface-2)] px-3 py-2`,children:[(0,P.jsx)(`div`,{className:`text-[11px] text-[var(--muted)]`,children:`托管 Relay 地址`}),(0,P.jsxs)(`div`,{className:`mt-0.5 flex items-center justify-between gap-2 text-xs font-medium text-[var(--ink)]`,children:[(0,P.jsx)(`span`,{className:`truncate font-mono`,children:t.managedRelayUrl}),(0,P.jsxs)(`span`,{className:`shrink-0 text-[11px] tabular-nums text-[var(--muted)]`,children:[`已同步 `,t.syncedRelayCount,` 个`]})]})]})]}):null,a?(0,P.jsxs)(`div`,{role:`status`,className:`flex flex-wrap items-center justify-between gap-3 rounded-[var(--radius-sm)] border border-[var(--warning-border)] bg-[var(--warning-bg)] px-3.5 py-2.5`,children:[(0,P.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2.5 text-xs leading-5 text-[var(--ink)]`,children:[(0,P.jsx)(E_,{className:`mt-0.5 size-4 shrink-0 text-[var(--warning)]`,"aria-hidden":!0}),(0,P.jsx)(`span`,{children:a})]}),(0,P.jsxs)(`a`,{href:g,target:`_blank`,rel:`noopener noreferrer`,className:U(M_({variant:`secondary`,size:`sm`})),children:[`去购买 / 开始试用`,(0,P.jsx)(g_,{className:`size-3.5`,"aria-hidden":!0})]})]}):null]})}function V7({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`field`,className:U(`grid gap-2 text-sm`,e),...t})}function H7({className:e,...t}){return(0,P.jsx)(`label`,{"data-slot":`field-label`,className:U(`text-xs font-semibold uppercase text-[var(--muted)]`,e),...t})}function U7({className:e,...t}){return(0,P.jsx)(`p`,{"data-slot":`field-description`,className:U(`text-xs leading-5 text-[var(--muted-strong)]`,e),...t})}function W7({className:e,...t}){return(0,P.jsx)(`p`,{"data-slot":`field-error`,className:U(`text-xs leading-5 text-[var(--danger)]`,e),...t})}function G7({label:e,children:t,htmlFor:n,required:r,helper:i,error:a,className:o}){return(0,P.jsxs)(V7,{className:U(`gap-1.5`,o),children:[(0,P.jsxs)(H7,{htmlFor:n,className:`flex items-center gap-1`,children:[e,r?(0,P.jsx)(`span`,{"aria-hidden":`true`,className:`text-[var(--danger)]`,children:`*`}):null]}),t,i||a?(0,P.jsx)(`div`,{className:`min-h-5`,"aria-live":`polite`,children:a?(0,P.jsx)(W7,{children:a}):i?(0,P.jsx)(U7,{children:i}):null}):null]})}function K7({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`empty`,className:U(`flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12`,e),...t})}function q7({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`empty-header`,className:U(`flex max-w-sm flex-col items-center gap-2 text-center`,e),...t})}function J7({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`empty-title`,className:U(`text-lg font-medium tracking-tight`,e),...t})}function Y7({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`empty-description`,className:U(`text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,e),...t})}function X7({className:e,...t}){return(0,P.jsx)(`div`,{"data-slot":`empty-content`,className:U(`flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance`,e),...t})}function Z7({title:e=`暂无数据`,description:t,action:n,className:r}){return(0,P.jsxs)(K7,{className:U(`min-h-36 bg-[var(--surface)] px-5 py-8`,r),children:[(0,P.jsxs)(q7,{children:[(0,P.jsx)(J7,{className:`text-sm font-semibold text-[var(--ink)]`,children:e}),t?(0,P.jsx)(Y7,{className:`max-w-md text-sm leading-6 text-[var(--muted-strong)]`,children:t}):null]}),n?(0,P.jsx)(X7,{children:n}):null]})}function Q7({title:e,description:t,action:n,toolbar:r,compact:i,summary:a,children:o,className:s}){return(0,P.jsxs)(`section`,{"aria-label":e,className:U(`min-w-0 overflow-hidden rounded-[var(--radius)] border border-[var(--border)] bg-[var(--surface)]`,s),children:[(0,P.jsxs)(`div`,{className:`grid gap-3 border-b border-[var(--border)] px-4 py-3.5 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center sm:px-5`,children:[i?(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(`h2`,{className:`sr-only`,children:e}),(0,P.jsx)(`p`,{className:`sr-only`,children:t}),(0,P.jsx)(`p`,{className:`text-xs font-medium text-[var(--muted-strong)]`,children:a??e})]}):(0,P.jsxs)(`div`,{className:`min-w-0`,children:[(0,P.jsx)(`h2`,{className:`text-sm font-semibold text-[var(--ink)]`,children:e}),(0,P.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-[var(--muted-strong)]`,children:t})]}),(r||n)&&(0,P.jsxs)(`div`,{className:`flex min-w-0 flex-wrap gap-2 lg:justify-end`,children:[r,n]})]}),(0,P.jsx)(`div`,{className:`divide-y divide-[var(--border)]`,children:o})]})}function $7(e){return(0,P.jsx)(Cp,{"data-slot":`popover`,...e})}function e9(e){return(0,P.jsx)(Tp,{"data-slot":`popover-trigger`,...e})}function t9({className:e,align:t=`center`,sideOffset:n=6,...r}){return(0,P.jsx)(kp,{children:(0,P.jsx)(jp,{"data-slot":`popover-content`,align:t,sideOffset:n,className:U(`dropdown-content-motion z-50 w-72 origin-[var(--radix-popover-content-transform-origin)] rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] p-3 text-[var(--ink)] shadow-[var(--shadow-raised)] outline-none`,e),...r})})}function n9({name:e,description:t,onConfirm:n}){let[r,i]=(0,p.useState)(!1),[a,o]=(0,p.useState)(!1),s=e=>{a||i(e)},c=async()=>{if(!a){o(!0);try{await n(),i(!1),R7.success(`删除成功`,`“${e}”已删除。`)}catch(e){R7.error(`删除失败`,e)}finally{o(!1)}}};return(0,P.jsxs)($7,{open:r,onOpenChange:s,children:[(0,P.jsx)(e9,{asChild:!0,children:(0,P.jsx)(N_,{variant:`ghost`,children:`删除`})}),(0,P.jsx)(t9,{align:`end`,side:`top`,collisionPadding:12,children:(0,P.jsxs)(`div`,{className:`grid gap-3`,children:[(0,P.jsxs)(`div`,{className:`grid min-w-0 gap-1`,children:[(0,P.jsxs)(`p`,{className:`break-words text-sm font-semibold`,children:[`删除“`,e,`”?`]}),(0,P.jsx)(`p`,{className:`break-words text-xs leading-5 text-[var(--muted-strong)]`,children:t??`删除后无法恢复。`})]}),(0,P.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,P.jsx)(N_,{size:`sm`,disabled:a,onClick:()=>s(!1),children:`取消`}),(0,P.jsx)(N_,{size:`sm`,variant:`destructive`,loading:a,onClick:()=>void c(),children:`确认删除`})]})]})})]})}function r9({title:e,description:t,action:n,compact:r,summary:i,empty:a,emptyTitle:o,emptyDescription:s,emptyAction:c,pagination:l,children:u}){return(0,P.jsxs)(Q7,{title:e,description:t,action:n,compact:r,summary:i,children:[a?(0,P.jsx)(Z7,{title:o??`暂无内容`,description:s??`创建第一个对象后会显示在这里。`,action:c}):u,l]})}function i9({title:e,description:t,status:n,meta:r,onOpen:i,onEdit:a,onDelete:o,deleteDescription:s,children:c}){return(0,P.jsxs)(`div`,{className:`grid min-w-0 gap-3 px-4 py-3.5 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center sm:px-5`,children:[i?(0,P.jsx)(`button`,{type:`button`,className:`min-w-0 rounded-[var(--radius-xs)] text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus)]`,onClick:i,children:(0,P.jsx)(a9,{title:e,description:t,status:n,meta:r})}):(0,P.jsx)(`div`,{className:`min-w-0`,children:(0,P.jsx)(a9,{title:e,description:t,status:n,meta:r})}),(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5 lg:justify-end [&_button]:min-h-8 [&_button]:px-2.5 [&_button]:text-xs`,children:[c,a?(0,P.jsx)(N_,{variant:`ghost`,onClick:a,children:`编辑`}):null,o?(0,P.jsx)(n9,{name:e,description:s,onConfirm:o}):null]})]})}function a9({title:e,description:t,status:n,meta:r}){return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,P.jsx)(`h3`,{className:`truncate text-sm font-semibold text-[var(--ink)]`,children:e}),n&&n!==`ready`?(0,P.jsx)(L7,{tone:n===`warning`?`warning`:`neutral`,children:n===`warning`?`需处理`:`已停用`}):null,r]}),(0,P.jsx)(`p`,{className:`mt-1 max-w-[90ch] text-xs leading-5 text-[var(--muted-strong)]`,children:t})]})}function o9({children:e}){return(0,P.jsx)(`div`,{className:`grid gap-4`,children:e})}function s9({page:e,pageSize:t,total:n,onChange:r,className:i,compact:a=!1}){let o=Math.max(1,Math.ceil(n/t)),s=Math.min(Math.max(1,e),o);if((0,p.useEffect)(()=>{e!==s&&r(s)},[s,r,e]),o<=1)return null;let c=l9(s,o);return(0,P.jsxs)(`nav`,{"aria-label":`分页导航`,className:U(`flex items-center justify-between gap-4 px-4 py-3 sm:px-5`,a&&`gap-2 px-3 sm:px-3`,i),children:[(0,P.jsx)(`p`,{className:`text-xs text-[var(--muted-strong)]`,children:a?`共 ${n} 条`:`第 ${(s-1)*t+1}–${Math.min(s*t,n)} 条,共 ${n} 条`}),(0,P.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,P.jsx)(c9,{label:`上一页`,icon:(0,P.jsx)(f_,{className:`size-4`}),disabled:s<=1,onClick:()=>r(s-1)}),!a&&c.map((e,t)=>e===`ellipsis`?(0,P.jsx)(`span`,{className:`flex size-8 items-center justify-center text-xs text-[var(--muted)]`,children:`…`},`ellipsis-${t}`):(0,P.jsx)(c9,{label:String(e),active:e===s,onClick:()=>r(e)},e)),(0,P.jsx)(c9,{label:`下一页`,icon:(0,P.jsx)(p_,{className:`size-4`}),disabled:s>=o,onClick:()=>r(s+1)})]})]})}function c9({label:e,icon:t,active:n,disabled:r,onClick:i}){return(0,P.jsx)(`button`,{type:`button`,"aria-label":e,"aria-current":n?`page`:void 0,disabled:r,onClick:i,className:U(`flex size-8 items-center justify-center rounded-[var(--radius-xs)] text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus)]`,n?`bg-[var(--ink)] font-semibold text-[var(--surface)]`:r?`cursor-not-allowed text-[var(--muted)] opacity-40`:`text-[var(--muted-strong)] hover:bg-[var(--surface-3)] hover:text-[var(--ink)]`),children:t??e})}function l9(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t+1);let n=[];n.push(1),e>4&&n.push(`ellipsis`);for(let r=Math.max(2,e-1);r<=Math.min(t-1,e+1);r++)n.push(r);return e<t-3&&n.push(`ellipsis`),n.push(t),n}function u9(e,t){let n=e.trim(),r=new Set(t.map(e=>e.trim().toLocaleLowerCase()));if(!r.has(n.toLocaleLowerCase()))return n;let i=2;for(;r.has(`${n} ${i}`.toLocaleLowerCase());)i+=1;return`${n} ${i}`}var d9={Model:`model`,Source:`source`,Notification:`notification`,Delivery:`delivery`,Channel:`channel`},f9={Zhihu:`zhihu`,Juejin:`juejin`,Xiaohongshu:`xiaohongshu`,Toutiao:`toutiao`,Csdn:`csdn`,Bilibili:`bilibili`,WeixinWeb:`weixin-web`,Weibo:`weibo`,Douyin:`douyin`,Baijiahao:`baijiahao`,Sohu:`sohu`,Jianshu:`jianshu`,Cnblogs:`cnblogs`,Segmentfault:`segmentfault`,Oschina:`oschina`,Douban:`douban`,Xueqiu:`xueqiu`,WeixinChannels:`weixin-channels`,Medium:`medium`,Substack:`substack`};f9.Zhihu,f9.Juejin,f9.Xiaohongshu,f9.Toutiao,f9.Csdn,f9.Bilibili,f9.WeixinWeb,f9.Weibo,f9.Douyin,f9.Baijiahao,f9.Sohu,f9.Jianshu,f9.Cnblogs,f9.Segmentfault,f9.Oschina,f9.Douban,f9.Xueqiu,f9.WeixinChannels,f9.Medium,f9.Substack;var p9={Inherit:`inherit`,Adaptive:`adaptive`,Template:`template`},m9={Inherit:`inherit`,None:`none`,Style:`style`},h9;(function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(h9||={});var g9;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(g9||={});var G=h9.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),_9=e=>{switch(typeof e){case`undefined`:return G.undefined;case`string`:return G.string;case`number`:return Number.isNaN(e)?G.nan:G.number;case`boolean`:return G.boolean;case`function`:return G.function;case`bigint`:return G.bigint;case`symbol`:return G.symbol;case`object`:return Array.isArray(e)?G.array:e===null?G.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?G.promise:typeof Map<`u`&&e instanceof Map?G.map:typeof Set<`u`&&e instanceof Set?G.set:typeof Date<`u`&&e instanceof Date?G.date:G.object;default:return G.unknown}},K=h9.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),v9=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,h9.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};v9.create=e=>new v9(e);var y9=(e,t)=>{let n;switch(e.code){case K.invalid_type:n=e.received===G.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case K.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,h9.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:n=`Unrecognized key(s) in object: ${h9.joinValues(e.keys,`, `)}`;break;case K.invalid_union:n=`Invalid input`;break;case K.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${h9.joinValues(e.options)}`;break;case K.invalid_enum_value:n=`Invalid enum value. Expected ${h9.joinValues(e.options)}, received '${e.received}'`;break;case K.invalid_arguments:n=`Invalid function arguments`;break;case K.invalid_return_type:n=`Invalid function return type`;break;case K.invalid_date:n=`Invalid date`;break;case K.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:h9.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case K.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case K.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case K.custom:n=`Invalid input`;break;case K.invalid_intersection_types:n=`Intersection results could not be merged`;break;case K.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case K.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,h9.assertNever(e)}return{message:n}},b9=y9;function x9(){return b9}var S9=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function q(e,t){let n=x9(),r=S9({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===y9?void 0:y9].filter(e=>!!e)});e.common.issues.push(r)}var C9=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return J;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return J;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},J=Object.freeze({status:`aborted`}),w9=e=>({status:`dirty`,value:e}),T9=e=>({status:`valid`,value:e}),E9=e=>e.status===`aborted`,D9=e=>e.status===`dirty`,O9=e=>e.status===`valid`,k9=e=>typeof Promise<`u`&&e instanceof Promise,Y;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(Y||={});var A9=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},j9=(e,t)=>{if(O9(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new v9(e.common.issues);return this._error=t,this._error}}};function X(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var M9=class{get description(){return this._def.description}_getType(e){return _9(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:_9(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new C9,ctx:{common:e.parent.common,data:e.data,parsedType:_9(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(k9(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_9(e)};return j9(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_9(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return O9(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>O9(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_9(e)},r=this._parse({data:e,path:n.path,parent:n});return j9(n,await(k9(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:K.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new FS({schema:this,typeName:Z.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return IS.create(this,this._def)}nullable(){return LS.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return gS.create(this)}promise(){return PS.create(this,this._def)}or(e){return yS.create([this,e],this._def)}and(e){return CS.create(this,e,this._def)}transform(e){return new FS({...X(this._def),schema:this,typeName:Z.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new RS({...X(this._def),innerType:this,defaultValue:t,typeName:Z.ZodDefault})}brand(){return new VS({typeName:Z.ZodBranded,type:this,...X(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new zS({...X(this._def),innerType:this,catchValue:t,typeName:Z.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return HS.create(this,e)}readonly(){return US.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},N9=/^c[^\s-]{8,}$/i,P9=/^[0-9a-z]+$/,F9=/^[0-9A-HJKMNP-TV-Z]{26}$/i,I9=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,L9=/^[a-z0-9_-]{21}$/i,R9=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,z9=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,B9=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,V9=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,H9,U9=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,W9=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,G9=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,K9=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,q9=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,J9=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Y9=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,X9=RegExp(`^${Y9}$`);function Z9(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Q9(e){return RegExp(`^${Z9(e)}$`)}function $9(e){let t=`${Y9}T${Z9(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function eS(e,t){return!((t!==`v4`&&t||!U9.test(e))&&(t!==`v6`&&t||!G9.test(e)))}function tS(e,t){if(!R9.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function nS(e,t){return!((t!==`v4`&&t||!W9.test(e))&&(t!==`v6`&&t||!K9.test(e)))}var rS=class e extends M9{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==G.string){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.string,received:t.parsedType}),J}let t=new C9,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:K.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`max`)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:K.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.length<r.value;(i||a)&&(n=this._getOrReturnCtx(e,n),i?q(n,{code:K.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}):a&&q(n,{code:K.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if(r.kind===`email`)B9.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`email`,code:K.invalid_string,message:r.message}),t.dirty());else if(r.kind===`emoji`)H9||=new RegExp(V9,`u`),H9.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`emoji`,code:K.invalid_string,message:r.message}),t.dirty());else if(r.kind===`uuid`)I9.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`uuid`,code:K.invalid_string,message:r.message}),t.dirty());else if(r.kind===`nanoid`)L9.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`nanoid`,code:K.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid`)N9.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`cuid`,code:K.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid2`)P9.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`cuid2`,code:K.invalid_string,message:r.message}),t.dirty());else if(r.kind===`ulid`)F9.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`ulid`,code:K.invalid_string,message:r.message}),t.dirty());else if(r.kind===`url`)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),q(n,{validation:`url`,code:K.invalid_string,message:r.message}),t.dirty()}else r.kind===`regex`?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`regex`,code:K.invalid_string,message:r.message}),t.dirty())):r.kind===`trim`?e.data=e.data.trim():r.kind===`includes`?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),q(n,{code:K.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):r.kind===`toLowerCase`?e.data=e.data.toLowerCase():r.kind===`toUpperCase`?e.data=e.data.toUpperCase():r.kind===`startsWith`?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),q(n,{code:K.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):r.kind===`endsWith`?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),q(n,{code:K.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):r.kind===`datetime`?$9(r).test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{code:K.invalid_string,validation:`datetime`,message:r.message}),t.dirty()):r.kind===`date`?X9.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{code:K.invalid_string,validation:`date`,message:r.message}),t.dirty()):r.kind===`time`?Q9(r).test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{code:K.invalid_string,validation:`time`,message:r.message}),t.dirty()):r.kind===`duration`?z9.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`duration`,code:K.invalid_string,message:r.message}),t.dirty()):r.kind===`ip`?eS(e.data,r.version)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`ip`,code:K.invalid_string,message:r.message}),t.dirty()):r.kind===`jwt`?tS(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`jwt`,code:K.invalid_string,message:r.message}),t.dirty()):r.kind===`cidr`?nS(e.data,r.version)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`cidr`,code:K.invalid_string,message:r.message}),t.dirty()):r.kind===`base64`?q9.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`base64`,code:K.invalid_string,message:r.message}),t.dirty()):r.kind===`base64url`?J9.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:`base64url`,code:K.invalid_string,message:r.message}),t.dirty()):h9.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:K.invalid_string,...Y.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...Y.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...Y.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...Y.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...Y.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...Y.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...Y.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...Y.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...Y.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...Y.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...Y.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...Y.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...Y.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...Y.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Y.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...Y.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...Y.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...Y.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...Y.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...Y.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...Y.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...Y.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...Y.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...Y.errToObj(t)})}nonempty(e){return this.min(1,Y.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};rS.create=e=>new rS({checks:[],typeName:Z.ZodString,coerce:e?.coerce??!1,...X(e)});function iS(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var aS=class e extends M9{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==G.number){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.number,received:t.parsedType}),J}let t,n=new C9;for(let r of this._def.checks)r.kind===`int`?h9.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),q(t,{code:K.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),q(t,{code:K.too_small,minimum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),q(t,{code:K.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?iS(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),q(t,{code:K.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),q(t,{code:K.not_finite,message:r.message}),n.dirty()):h9.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,Y.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,Y.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,Y.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,Y.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Y.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:Y.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:Y.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:Y.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:Y.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:Y.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:Y.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:Y.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:Y.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:Y.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===`int`||e.kind===`multipleOf`&&h9.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}};aS.create=e=>new aS({checks:[],typeName:Z.ZodNumber,coerce:e?.coerce||!1,...X(e)});var oS=class e extends M9{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==G.bigint)return this._getInvalidInput(e);let t,n=new C9;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),q(t,{code:K.too_small,type:`bigint`,minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),q(t,{code:K.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),q(t,{code:K.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):h9.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.bigint,received:t.parsedType}),J}gte(e,t){return this.setLimit(`min`,e,!0,Y.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,Y.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,Y.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,Y.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Y.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:Y.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:Y.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:Y.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:Y.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:Y.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};oS.create=e=>new oS({checks:[],typeName:Z.ZodBigInt,coerce:e?.coerce??!1,...X(e)});var sS=class extends M9{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==G.boolean){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.boolean,received:t.parsedType}),J}return T9(e.data)}};sS.create=e=>new sS({typeName:Z.ZodBoolean,coerce:e?.coerce||!1,...X(e)});var cS=class e extends M9{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==G.date){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.date,received:t.parsedType}),J}if(Number.isNaN(e.data.getTime()))return q(this._getOrReturnCtx(e),{code:K.invalid_date}),J;let t=new C9,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:K.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:`date`}),t.dirty()):r.kind===`max`?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:K.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):h9.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:Y.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:Y.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e==null?null:new Date(e)}};cS.create=e=>new cS({checks:[],coerce:e?.coerce||!1,typeName:Z.ZodDate,...X(e)});var lS=class extends M9{_parse(e){if(this._getType(e)!==G.symbol){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.symbol,received:t.parsedType}),J}return T9(e.data)}};lS.create=e=>new lS({typeName:Z.ZodSymbol,...X(e)});var uS=class extends M9{_parse(e){if(this._getType(e)!==G.undefined){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.undefined,received:t.parsedType}),J}return T9(e.data)}};uS.create=e=>new uS({typeName:Z.ZodUndefined,...X(e)});var dS=class extends M9{_parse(e){if(this._getType(e)!==G.null){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.null,received:t.parsedType}),J}return T9(e.data)}};dS.create=e=>new dS({typeName:Z.ZodNull,...X(e)});var fS=class extends M9{constructor(){super(...arguments),this._any=!0}_parse(e){return T9(e.data)}};fS.create=e=>new fS({typeName:Z.ZodAny,...X(e)});var pS=class extends M9{constructor(){super(...arguments),this._unknown=!0}_parse(e){return T9(e.data)}};pS.create=e=>new pS({typeName:Z.ZodUnknown,...X(e)});var mS=class extends M9{_parse(e){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.never,received:t.parsedType}),J}};mS.create=e=>new mS({typeName:Z.ZodNever,...X(e)});var hS=class extends M9{_parse(e){if(this._getType(e)!==G.undefined){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.void,received:t.parsedType}),J}return T9(e.data)}};hS.create=e=>new hS({typeName:Z.ZodVoid,...X(e)});var gS=class e extends M9{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==G.array)return q(t,{code:K.invalid_type,expected:G.array,received:t.parsedType}),J;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(q(t,{code:e?K.too_big:K.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:`array`,inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(q(t,{code:K.too_small,minimum:r.minLength.value,type:`array`,inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(q(t,{code:K.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new A9(t,e,t.path,n)))).then(e=>C9.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new A9(t,e,t.path,n)));return C9.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:Y.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:Y.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:Y.toString(n)}})}nonempty(e){return this.min(1,e)}};gS.create=(e,t)=>new gS({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Z.ZodArray,...X(t)});function _S(e){if(e instanceof vS){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=IS.create(_S(r))}return new vS({...e._def,shape:()=>t})}return e instanceof gS?new gS({...e._def,type:_S(e.element)}):e instanceof IS?IS.create(_S(e.unwrap())):e instanceof LS?LS.create(_S(e.unwrap())):e instanceof wS?wS.create(e.items.map(e=>_S(e))):e}var vS=class e extends M9{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=h9.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==G.object){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.object,received:t.parsedType}),J}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof mS&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new A9(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof mS){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(q(n,{code:K.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new A9(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>C9.mergeObjectSync(t,e)):C9.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return Y.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:Y.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Z.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of h9.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of h9.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return _S(this)}partial(t){let n={};for(let e of h9.objectKeys(this.shape)){let r=this.shape[e];n[e]=t&&!t[e]?r:r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of h9.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof IS;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return jS(h9.objectKeys(this.shape))}};vS.create=(e,t)=>new vS({shape:()=>e,unknownKeys:`strip`,catchall:mS.create(),typeName:Z.ZodObject,...X(t)}),vS.strictCreate=(e,t)=>new vS({shape:()=>e,unknownKeys:`strict`,catchall:mS.create(),typeName:Z.ZodObject,...X(t)}),vS.lazycreate=(e,t)=>new vS({shape:e,unknownKeys:`strip`,catchall:mS.create(),typeName:Z.ZodObject,...X(t)});var yS=class extends M9{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new v9(e.ctx.common.issues));return q(t,{code:K.invalid_union,unionErrors:n}),J}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new v9(e));return q(t,{code:K.invalid_union,unionErrors:i}),J}}get options(){return this._def.options}};yS.create=(e,t)=>new yS({options:e,typeName:Z.ZodUnion,...X(t)});var bS=e=>e instanceof kS?bS(e.schema):e instanceof FS?bS(e.innerType()):e instanceof AS?[e.value]:e instanceof MS?e.options:e instanceof NS?h9.objectValues(e.enum):e instanceof RS?bS(e._def.innerType):e instanceof uS?[void 0]:e instanceof dS?[null]:e instanceof IS?[void 0,...bS(e.unwrap())]:e instanceof LS?[null,...bS(e.unwrap())]:e instanceof VS||e instanceof US?bS(e.unwrap()):e instanceof zS?bS(e._def.innerType):[],xS=class e extends M9{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==G.object)return q(t,{code:K.invalid_type,expected:G.object,received:t.parsedType}),J;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(q(t,{code:K.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),J)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=bS(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:Z.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...X(r)})}};function SS(e,t){let n=_9(e),r=_9(t);if(e===t)return{valid:!0,data:e};if(n===G.object&&r===G.object){let n=h9.objectKeys(t),r=h9.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=SS(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===G.array&&r===G.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let i=SS(e[r],t[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===G.date&&r===G.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var CS=class extends M9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(E9(e)||E9(r))return J;let i=SS(e.value,r.value);return i.valid?((D9(e)||D9(r))&&t.dirty(),{status:t.value,value:i.data}):(q(n,{code:K.invalid_intersection_types}),J)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};CS.create=(e,t,n)=>new CS({left:e,right:t,typeName:Z.ZodIntersection,...X(n)});var wS=class e extends M9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.array)return q(n,{code:K.invalid_type,expected:G.array,received:n.parsedType}),J;if(n.data.length<this._def.items.length)return q(n,{code:K.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),J;!this._def.rest&&n.data.length>this._def.items.length&&(q(n,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new A9(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>C9.mergeArray(t,e)):C9.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};wS.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new wS({items:e,typeName:Z.ZodTuple,rest:null,...X(t)})};var TS=class e extends M9{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.object)return q(n,{code:K.invalid_type,expected:G.object,received:n.parsedType}),J;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new A9(n,e,n.path,e)),value:a._parse(new A9(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?C9.mergeObjectAsync(t,r):C9.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof M9?new e({keyType:t,valueType:n,typeName:Z.ZodRecord,...X(r)}):new e({keyType:rS.create(),valueType:t,typeName:Z.ZodRecord,...X(n)})}},ES=class extends M9{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.map)return q(n,{code:K.invalid_type,expected:G.map,received:n.parsedType}),J;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new A9(n,e,n.path,[a,`key`])),value:i._parse(new A9(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return J;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return J;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};ES.create=(e,t,n)=>new ES({valueType:t,keyType:e,typeName:Z.ZodMap,...X(n)});var DS=class e extends M9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.set)return q(n,{code:K.invalid_type,expected:G.set,received:n.parsedType}),J;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(q(n,{code:K.too_small,minimum:r.minSize.value,type:`set`,inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(q(n,{code:K.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return J;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new A9(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:Y.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:Y.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};DS.create=(e,t)=>new DS({valueType:e,minSize:null,maxSize:null,typeName:Z.ZodSet,...X(t)});var OS=class e extends M9{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==G.function)return q(t,{code:K.invalid_type,expected:G.function,received:t.parsedType}),J;function n(e,n){return S9({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,x9(),y9].filter(e=>!!e),issueData:{code:K.invalid_arguments,argumentsError:n}})}function r(e,n){return S9({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,x9(),y9].filter(e=>!!e),issueData:{code:K.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof PS){let e=this;return T9(async function(...t){let o=new v9([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return T9(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new v9([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new v9([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:wS.create(t).rest(pS.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||wS.create([]).rest(pS.create()),returns:n||pS.create(),typeName:Z.ZodFunction,...X(r)})}},kS=class extends M9{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};kS.create=(e,t)=>new kS({getter:e,typeName:Z.ZodLazy,...X(t)});var AS=class extends M9{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return q(t,{received:t.data,code:K.invalid_literal,expected:this._def.value}),J}return{status:`valid`,value:e.data}}get value(){return this._def.value}};AS.create=(e,t)=>new AS({value:e,typeName:Z.ZodLiteral,...X(t)});function jS(e,t){return new MS({values:e,typeName:Z.ZodEnum,...X(t)})}var MS=class e extends M9{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return q(t,{expected:h9.joinValues(n),received:t.parsedType,code:K.invalid_type}),J}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return q(t,{received:t.data,code:K.invalid_enum_value,options:n}),J}return T9(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};MS.create=jS;var NS=class extends M9{_parse(e){let t=h9.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==G.string&&n.parsedType!==G.number){let e=h9.objectValues(t);return q(n,{expected:h9.joinValues(e),received:n.parsedType,code:K.invalid_type}),J}if(this._cache||=new Set(h9.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=h9.objectValues(t);return q(n,{received:n.data,code:K.invalid_enum_value,options:e}),J}return T9(e.data)}get enum(){return this._def.values}};NS.create=(e,t)=>new NS({values:e,typeName:Z.ZodNativeEnum,...X(t)});var PS=class extends M9{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==G.promise&&t.common.async===!1?(q(t,{code:K.invalid_type,expected:G.promise,received:t.parsedType}),J):T9((t.parsedType===G.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};PS.create=(e,t)=>new PS({type:e,typeName:Z.ZodPromise,...X(t)});var FS=class extends M9{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Z.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{q(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return J;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?J:r.status===`dirty`||t.value===`dirty`?w9(r.value):r});{if(t.value===`aborted`)return J;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?J:r.status===`dirty`||t.value===`dirty`?w9(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?J:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?J:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`){if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!O9(e))return J;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>O9(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):J)}h9.assertNever(r)}};FS.create=(e,t,n)=>new FS({schema:e,typeName:Z.ZodEffects,effect:t,...X(n)}),FS.createWithPreprocess=(e,t,n)=>new FS({schema:t,effect:{type:`preprocess`,transform:e},typeName:Z.ZodEffects,...X(n)});var IS=class extends M9{_parse(e){return this._getType(e)===G.undefined?T9(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};IS.create=(e,t)=>new IS({innerType:e,typeName:Z.ZodOptional,...X(t)});var LS=class extends M9{_parse(e){return this._getType(e)===G.null?T9(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};LS.create=(e,t)=>new LS({innerType:e,typeName:Z.ZodNullable,...X(t)});var RS=class extends M9{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===G.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};RS.create=(e,t)=>new RS({innerType:e,typeName:Z.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...X(t)});var zS=class extends M9{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return k9(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new v9(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new v9(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};zS.create=(e,t)=>new zS({innerType:e,typeName:Z.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...X(t)});var BS=class extends M9{_parse(e){if(this._getType(e)!==G.nan){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.nan,received:t.parsedType}),J}return{status:`valid`,value:e.data}}};BS.create=e=>new BS({typeName:Z.ZodNaN,...X(e)});var VS=class extends M9{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},HS=class e extends M9{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?J:e.status===`dirty`?(t.dirty(),w9(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?J:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:Z.ZodPipeline})}},US=class extends M9{_parse(e){let t=this._def.innerType._parse(e),n=e=>(O9(e)&&(e.value=Object.freeze(e.value)),e);return k9(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};US.create=(e,t)=>new US({innerType:e,typeName:Z.ZodReadonly,...X(t)}),vS.lazycreate;var Z;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(Z||={});var Q=rS.create,WS=aS.create;BS.create,oS.create;var GS=sS.create;cS.create,lS.create,uS.create;var KS=dS.create;fS.create;var qS=pS.create;mS.create,hS.create;var JS=gS.create,$=vS.create;vS.strictCreate;var YS=yS.create,XS=xS.create;CS.create,wS.create;var ZS=TS.create;ES.create,DS.create,OS.create;var QS=kS.create,$S=AS.create,eC=MS.create;NS.create,PS.create,FS.create,IS.create,LS.create,FS.createWithPreprocess,HS.create;var tC={string:(e=>rS.create({...e,coerce:!0})),number:(e=>aS.create({...e,coerce:!0})),boolean:(e=>sS.create({...e,coerce:!0})),bigint:(e=>oS.create({...e,coerce:!0})),date:(e=>cS.create({...e,coerce:!0}))},nC={DailyBrief:`daily-brief`,DeepAnalysis:`deep-analysis`,PracticalGuide:`practical-guide`},rC=nC.DailyBrief,iC=Q().trim().min(1).max(200),aC=WS().int().positive(),oC=QS(()=>YS([Q(),WS().finite(),GS(),KS(),JS(oC),ZS(Q(),oC)])),sC=ZS(Q().min(1).max(120),oC),cC=$({mode:eC([p9.Inherit,p9.Adaptive,p9.Template]),prompt:Q().trim().max(4e3).optional(),templateId:iC.optional(),templateVersionId:iC.optional()}).superRefine((e,t)=>{e.prompt&&t.addIssue({code:`custom`,path:[`prompt`],message:`运行时排版提示词已停用,请制作并选择固定模板版本`}),e.mode===p9.Template&&!e.templateId&&t.addIssue({code:`custom`,path:[`templateId`],message:`请选择排版模板`})}),lC=$({mode:eC([m9.Inherit,m9.None,m9.Style]),styleId:iC.optional()}).superRefine((e,t)=>{e.mode===m9.Style&&!e.styleId&&t.addIssue({code:`custom`,path:[`styleId`],message:`请选择写作风格`})}),uC=$({title:Q().trim().max(200).optional(),text:Q().trim().min(1).max(8e3)});$({revision:aC.optional(),name:Q().trim().min(1).max(120),description:Q().trim().max(500).optional(),enabled:GS().default(!0),channel:iC.optional(),rules:$({register:eC([`formal`,`editorial`,`conversational`,`sharp`]),sentenceRhythm:eC([`short`,`balanced`,`long`]),structure:eC([`narrative`,`scannable-sections`,`bullet-cards`,`step-by-step`]),emojiDensity:eC([`none`,`light`,`moderate`]),lengthTarget:eC([`short`,`medium`,`long`]),titlePattern:Q().trim().min(1).max(200),guidance:Q().trim().max(2e3).optional()}),samples:JS(uC).max(5).optional()}),$({samples:JS(uC).min(1).max(5),channel:iC.optional()});var dC=$({accountId:iC,publicationType:iC,layout:cC.optional(),writingStyle:lC.optional(),options:sC.optional()});$({id:iC.optional(),revision:aC.optional(),connectorId:iC,name:Q().trim().min(1).max(120),enabled:GS().default(!0),settings:sC,credentials:sC.default({}),clearCredentials:JS(Q().min(1).max(120)).max(50).default([]),overrides:$({headers:ZS(Q(),Q()).optional(),query:ZS(Q(),Q()).optional(),body:ZS(Q(),oC).optional()}).optional()}),$({revision:aC.optional(),name:Q().trim().min(1).max(120),enabled:GS(),positioning:Q().trim().min(1).max(1e3),audience:Q().trim().min(1).max(1e3),tone:Q().trim().min(1).max(500),forbiddenTopics:JS(Q().trim().min(1).max(300)).max(50).default([])}),$({revision:aC.optional(),name:Q().trim().min(1).max(120),enabled:GS(),documents:JS($({id:iC.optional(),title:Q().trim().min(1).max(500),content:Q().trim().min(1).max(2e6),fileName:Q().trim().max(500).optional(),mediaType:Q().trim().max(200).optional()})).max(200)});var fC=$({id:iC.optional(),title:Q().trim().max(500).optional(),enabled:GS().default(!0)}),pC=XS(`kind`,[fC.extend({kind:$S(`url`),url:Q().url().max(4e3)}),fC.extend({kind:$S(`query`),query:Q().trim().min(1).max(1e3)})]);$({revision:aC.optional(),name:Q().trim().min(1).max(120),enabled:GS(),sources:JS(pC).min(1).max(500)}),$({revision:aC.optional(),name:Q().trim().min(1).max(120),enabled:GS(),identityId:iC,knowledgeBaseIds:JS(iC).max(50).default([]),sourceCollectionIds:JS(iC).max(50),connections:ZS(Q().min(1).max(80),iC),agent:$({modelConnectionId:iC,strategyId:eC([nC.DailyBrief,nC.DeepAnalysis,nC.PracticalGuide]),toolConnectionIds:JS(iC).max(50).default([]),budget:$({maxTurns:WS().int().min(1).max(100).optional()}).optional()}).optional(),researchConnections:$({search:JS(iC).max(20),fetch:JS(iC).max(20)}).refine(e=>new Set(e.search).size===e.search.length&&new Set(e.fetch).size===e.fetch.length,{message:`同一种研究连接不能重复添加`}).default({search:[],fetch:[]}),publishing:$({destinations:JS(dC).max(50)}).default({destinations:[]})}).superRefine((e,t)=>{let n=e.publishing.destinations.map(e=>`${e.accountId}:${e.publicationType}`);new Set(n).size!==n.length&&t.addIssue({code:`custom`,path:[`publishing`,`destinations`],message:`同一账号的发布类型不能重复添加`})}),$({revision:aC.optional(),name:Q().trim().min(1).max(120),enabled:GS().default(!0),channel:iC,connectorId:iC,settings:sC,credentials:sC.optional(),clearCredentials:JS(iC).max(50).optional(),publisher:$({toolConnectionIds:JS(iC).max(20).default([]),layouts:ZS(iC,cC).optional(),writingStyles:ZS(iC,lC).optional()}).optional()}).extend({accountId:iC.optional()}),$({revision:aC.optional(),name:Q().trim().min(1).max(120),enabled:GS(),contentPlanId:iC,instructions:Q().trim().max(4e3).optional(),keywords:JS(Q().trim().min(1).max(100)).max(50).default([]),trigger:XS(`type`,[$({type:$S(`manual`)}),$({type:$S(`schedule`),cron:Q().trim().min(1).max(120),timezone:Q().trim().min(1).max(120)}),$({type:$S(`hotspot`),query:Q().trim().min(1).max(500),intervalMinutes:WS().int().min(5).max(10080)}),$({type:$S(`api`),tokenName:Q().trim().max(120).optional()})])}),$({requestedTopic:Q().trim().min(1).max(500).optional()}),$({planId:iC,requestedTopic:Q().trim().min(1).max(500).optional()}),$({packageId:iC,destinations:JS(dC).min(1).max(50)}).superRefine((e,t)=>{let n=e.destinations.map(e=>`${e.accountId}:${e.publicationType}`);new Set(n).size!==n.length&&t.addIssue({code:`custom`,path:[`destinations`],message:`同一账号的发布类型不能重复添加`})}),$({id:iC}),$({jobId:iC}),$({channel:iC,publicationType:iC,page:tC.number().int().min(1).default(1),pageSize:tC.number().int().min(1).max(100).default(20)}),$({revision:aC}),$({id:iC,versionId:iC});var mC=Q().trim().min(1).max(300);$({profileId:mC}),$({sessionId:mC}),$({sessionId:mC,artifactId:mC}),$({sessionId:mC,turnId:mC}),$({profileId:mC,context:ZS(qS()).default({})}),$({clientTurnId:mC,message:Q().max(2e4).optional(),answers:JS($({questionId:mC,selectedOptionIds:JS(mC).max(12).optional(),text:Q().max(1e4).optional(),urls:JS(Q().url().max(4e3)).max(10).optional(),confirmed:GS().optional(),skipped:GS().optional()})).max(3).optional()}).refine(e=>!!(e.message?.trim()||e.answers?.length),{message:`请输入消息或回答问题`}),$({contentPackageId:mC}),$({receipt:Q().min(1).max(2e4),name:Q().trim().min(1).max(120),description:Q().trim().max(500).optional(),templateId:mC.optional(),revision:aC.optional()}),$({beforeSequence:Q().optional(),afterSequence:Q().optional(),limit:Q().optional()}),$({afterSequence:Q().optional(),sessionId:Q().optional()});var hC=[{id:`all`,label:`全部`,description:`查看全部外部能力连接。`},{id:d9.Model,label:`模型与生成`,description:`对话、向量检索与图片生成模型连接。`},{id:d9.Source,label:`信息来源`,description:`联网搜索、网页抓取与开放社区数据源。`},{id:d9.Notification,label:`通知推送`,description:`任务完成或需要关注时的外部提醒。`},{id:d9.Delivery,label:`发布扩展与网关`,description:`共享发布网关与扩展底座;单平台发布账号仍在「发布账号」中管理。`}];function gC(e){return e===d9.Model||e===d9.Source||e===d9.Notification||e===d9.Delivery?e:`all`}var _C=()=>[`connections`],vC=20;function yC(e=1,t=`all`){return Ra({queryKey:[..._C(),t,e],queryFn:()=>u0(e,vC,t)})}function bC(){let e=Ca();return za({mutationFn:e=>p0(e),onSuccess:()=>e.invalidateQueries({queryKey:_C()})})}function xC(){let e=Ca();return za({mutationFn:({id:e,body:t})=>e?f0(e,t):d0(t),onSuccess:()=>e.invalidateQueries({queryKey:_C()})})}function SC(){return za({mutationFn:e=>m0(e)})}function CC({page:e,category:t=`all`,onPageChange:n,onCategoryChange:r}){let{data:i}=yC(e,t),[a,o]=(0,p.useState)(null),[s,c]=(0,p.useState)(!1),[l,u]=(0,p.useState)(t),[d,f]=(0,p.useState)(``),m=q5(),h=bC(),g=i?.definitions??[],_=i?.items??[],v=i?.countsByCategory??{},y=i?.totalAll??i?.total??0,b=(0,p.useMemo)(()=>new Map((i?.executorStatuses??[]).map(e=>[e.connectionId,e])),[i?.executorStatuses]),x=(0,p.useMemo)(()=>new Map(g.map(e=>[e.id,e])),[g]),S=hC.find(e=>e.id===t)??hC[0],C=(0,p.useMemo)(()=>{let e=d.trim().toLowerCase();return g.filter(t=>l!==`all`&&t.category!==l?!1:!e||t.displayName.toLowerCase().includes(e)||t.description.toLowerCase().includes(e)||t.id.toLowerCase().includes(e)||t.capabilities.some(t=>t.toLowerCase().includes(e))||(t.group?.toLowerCase().includes(e)??!1))},[g,l,d]),w=(0,p.useMemo)(()=>{let e=new Map;for(let t of C){let n=t.group??hC.find(e=>e.id===t.category)?.label??`其他`,r=e.get(n)??[];r.push(t),e.set(n,r)}return[...e.entries()]},[C]);return(0,P.jsxs)(o9,{children:[(0,P.jsx)(B7,{}),(0,P.jsx)(`div`,{className:`overflow-hidden rounded-[var(--radius)] border border-[var(--border)] bg-[var(--surface)]`,children:(0,P.jsx)(`div`,{role:`tablist`,"aria-label":`连接器分类`,className:`flex min-h-11 items-stretch gap-1 overflow-x-auto px-3 sm:px-4`,children:hC.map(e=>{let n=e.id===t,i=e.id===`all`?y:v[e.id]??0;return(0,P.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":n,className:U(`relative flex shrink-0 items-center gap-1.5 px-3 text-sm font-medium text-[var(--muted)] transition-colors duration-[var(--motion-fast)] hover:text-[var(--ink)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--focus)]`,n&&`text-[var(--ink)]`),onClick:()=>r?.(e.id),children:[(0,P.jsx)(`span`,{children:e.label}),(0,P.jsx)(`span`,{className:`text-[11px] font-normal text-[var(--muted)]`,children:i}),n?(0,P.jsx)(J5.span,{layoutId:`connections-category-indicator`,"aria-hidden":!0,className:`absolute inset-x-3 bottom-0 h-px bg-[var(--ink)]`,transition:{duration:m?0:.22,ease:[.16,1,.3,1]}}):null]},e.id)})})}),(0,P.jsx)(r9,{title:t===`all`?`连接列表`:`${S.label}连接`,description:t===`all`?`超时、重试与恢复不属于连接配置;调用失败会由运行记录和检查点安全处理。`:S.description,compact:!0,summary:`共 ${i?.total??0} 个连接`,action:(0,P.jsxs)(N_,{variant:`primary`,onClick:()=>{u(t),f(``),c(!0)},children:[(0,P.jsx)(S_,{className:`size-4`}),`新建连接`]}),empty:!_.length,pagination:(0,P.jsx)(s9,{page:e,pageSize:vC,total:i?.total??0,onChange:n}),children:_.map(e=>{let t=x.get(e.connectorId),n=b.get(e.id),r=n?.platforms.filter(e=>e.loggedIn).length??0,i=n?.accounts?.length??0;return(0,P.jsx)(i9,{title:e.name,description:`${t?.displayName??e.connectorId} · ${t?.description??``}`,status:e.enabled?`ready`:`disabled`,meta:(0,P.jsxs)(`span`,{className:`flex flex-wrap gap-1`,children:[e.connectorId===`browser-extension`?(0,P.jsx)(L7,{tone:n?.online?`success`:`neutral`,children:n?.online?`扩展在线 · ${r} 平台 · ${i} 隔离账号`:`等待扩展配对`}):null,t?.capabilities.map(e=>(0,P.jsx)(L7,{children:e},e))]}),onEdit:()=>t&&o({definition:t,connection:e}),deleteDescription:`删除后无法恢复;正在被方案或账号使用时不会删除。`,onDelete:()=>h.mutateAsync(e.id)},e.id)})}),(0,P.jsx)(C7,{open:s,onOpenChange:c,title:`选择 Connector`,description:`按分类筛选或搜索外部能力连接器;单平台发布账号请在「发布账号」中新增。`,size:`medium`,children:(0,P.jsxs)(`div`,{className:`grid gap-3`,children:[(0,P.jsxs)(`div`,{className:`relative`,children:[(0,P.jsx)(w_,{"aria-hidden":!0,className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-[var(--muted)]`}),(0,P.jsx)(Y5,{value:d,onChange:e=>f(e.target.value),placeholder:`搜索连接器名称或能力…`,className:`pl-9`,"aria-label":`搜索连接器`})]}),(0,P.jsx)(`div`,{role:`tablist`,"aria-label":`选择连接器分类`,className:`flex items-stretch gap-1 overflow-x-auto border-b border-[var(--border)]`,children:hC.map(e=>{let t=e.id===l,n=e.id===`all`?g.length:g.filter(t=>t.category===e.id).length;return(0,P.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":t,className:U(`shrink-0 border-b-2 px-2.5 pb-2 text-xs font-medium transition-colors`,t?`border-[var(--ink)] text-[var(--ink)]`:`border-transparent text-[var(--muted)] hover:text-[var(--ink)]`),onClick:()=>u(e.id),children:[e.label,` (`,n,`)`]},e.id)})}),w.length?(0,P.jsx)(`div`,{className:`grid max-h-[52vh] gap-4 overflow-y-auto pr-1`,children:w.map(([e,t])=>(0,P.jsxs)(`section`,{className:`grid gap-1`,children:[(0,P.jsx)(`h4`,{className:`px-2 text-[11px] font-medium text-[var(--muted)]`,children:e}),(0,P.jsx)(`div`,{className:`divide-y divide-[var(--border)]`,children:t.map(e=>(0,P.jsxs)(`button`,{type:`button`,className:`grid w-full gap-1 rounded-[var(--radius-sm)] px-2 py-3 text-left transition-colors duration-[var(--duration-fast)] hover:bg-[var(--overlay)]`,onClick:()=>{o({definition:e,suggestedName:u9(e.displayName,_.map(e=>e.name))})},children:[(0,P.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2 text-sm font-semibold`,children:[e.displayName,(0,P.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:e.capabilities.map(e=>(0,P.jsx)(L7,{children:e},e))})]}),(0,P.jsx)(`span`,{className:`text-xs leading-5 text-[var(--muted-strong)]`,children:e.description})]},e.id))})]},e))}):(0,P.jsx)(`p`,{className:`py-8 text-center text-xs text-[var(--muted)]`,children:`没有匹配的连接器,试试切换分类或清空搜索词。`})]})}),(0,P.jsx)(wC,{editor:a,onOpenChange:e=>!e&&o(null),onSaved:()=>{o(null),c(!1)}})]})}function wC({editor:e,onOpenChange:t,onSaved:n}){let[r,i]=(0,p.useState)(``),[a,o]=(0,p.useState)(!0),[s,c]=(0,p.useState)({}),[l,u]=(0,p.useState)([]),[d,f]=(0,p.useState)(`{}`),[m,h]=(0,p.useState)(`{}`),[g,_]=(0,p.useState)(`{}`),[v,y]=(0,p.useState)(!1),[b,x]=(0,p.useState)();(0,p.useEffect)(()=>{if(!e)return;i(e.connection?.name??e.suggestedName??e.definition.displayName),o(e.connection?.enabled??!0);let t=Object.fromEntries(e.definition.fields.filter(e=>e.defaultValue!==void 0).map(e=>[e.key,e.defaultValue]));c({...t,...e.connection?.settings}),u([]),f(JSON.stringify(e.connection?.overrides?.headers??{},null,2)),h(JSON.stringify(e.connection?.overrides?.query??{},null,2)),_(JSON.stringify(e.connection?.overrides?.body??{},null,2)),y(!1),x(void 0)},[e]);let S=(e,t)=>{c(n=>({...n,[e.key]:t})),e.location===`credentials`&&typeof t==`string`&&t.trim()&&u(t=>t.filter(t=>t!==e.key))},C=e=>{u(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),c(t=>({...t,[e]:``}))},w=()=>({id:e?.connection?.id,revision:e?.connection?.revision,connectorId:e.definition.id,name:r.trim(),enabled:a,settings:Object.fromEntries(e.definition.fields.filter(e=>e.location===`settings`).map(e=>[e.key,s[e.key]]).filter(([,e])=>e!==void 0&&e!==``)),credentials:Object.fromEntries(e.definition.fields.filter(e=>e.location===`credentials`).map(e=>[e.key,s[e.key]]).filter(([,e])=>e!==void 0&&e!==``)),...l.length?{clearCredentials:l}:{},overrides:e.definition.requestOverrides?{headers:EC(d,`Headers`),query:EC(m,`Query`),body:EC(g,`Body`)}:void 0}),T=xC(),E=SC();if(!e)return null;let D=[...e.definition.fields].sort((e,t)=>(e.order??0)-(t.order??0)),O=D.filter(e=>e.defaultValue===void 0),ee=D.filter(e=>e.defaultValue!==void 0),k=D.some(t=>{if(!t.required)return!1;let n=s[t.key];return n!==void 0&&n!==``?!1:!(t.location===`credentials`&&e.connection?.credentialState[t.key])});return(0,P.jsxs)(C7,{open:!0,onOpenChange:t,title:e.connection?`编辑连接`:`新建连接`,description:`${e.definition.displayName} · ${e.definition.capabilities.join(` / `)}`,size:`medium`,children:[(0,P.jsxs)(`div`,{className:`grid gap-4`,children:[(0,P.jsx)(`div`,{className:`grid gap-4`,children:O.map(t=>(0,P.jsx)(TC,{field:t,value:s[t.key],hasStoredCredential:!!e.connection?.credentialState[t.key],clearingCredential:l.includes(t.key),onToggleClearCredential:t.location===`credentials`&&!t.required?()=>C(t.key):void 0,onChange:e=>S(t,e)},`${t.location}:${t.key}`))}),(0,P.jsxs)(`details`,{className:`group border-t border-[var(--border)] pt-4`,open:v,onToggle:e=>y(e.currentTarget.open),children:[(0,P.jsxs)(`summary`,{className:`cursor-pointer list-none text-sm font-medium text-[var(--muted-strong)] hover:text-[var(--ink)]`,children:[`高级设置`,(0,P.jsx)(`span`,{className:`ml-2 text-xs font-normal text-[var(--muted)]`,children:`名称、状态与接口参数`})]}),(0,P.jsxs)(`div`,{className:`mt-4 grid gap-4`,children:[(0,P.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[1fr_auto]`,children:[(0,P.jsx)(G7,{label:`连接名称`,required:!0,children:(0,P.jsx)(Y5,{value:r,onChange:e=>i(e.target.value)})}),(0,P.jsx)(G7,{label:`状态`,children:(0,P.jsxs)(`label`,{className:`flex min-h-11 items-center gap-2`,children:[(0,P.jsx)(`input`,{type:`checkbox`,checked:a,onChange:e=>o(e.target.checked)}),`启用`]})})]}),ee.length?(0,P.jsx)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:ee.map(t=>(0,P.jsx)(TC,{field:t,value:s[t.key],hasStoredCredential:!!e.connection?.credentialState[t.key],clearingCredential:l.includes(t.key),onToggleClearCredential:t.location===`credentials`&&!t.required?()=>C(t.key):void 0,onChange:e=>S(t,e)},`${t.location}:${t.key}`))}):null,e.definition.requestOverrides?(0,P.jsxs)(`details`,{className:`border-t border-[var(--border)] pt-4`,children:[(0,P.jsxs)(`summary`,{className:`cursor-pointer list-none text-sm font-medium`,children:[`请求覆盖`,(0,P.jsx)(`span`,{className:`ml-2 text-xs font-normal text-[var(--muted)]`,children:`Headers · Query · Body`})]}),(0,P.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-[var(--muted-strong)]`,children:`仅用于特殊接入;认证保留字段不能覆盖。`}),(0,P.jsxs)(`div`,{className:`mt-4 grid gap-4`,children:[(0,P.jsx)(G7,{label:`Headers`,children:(0,P.jsx)(o7,{className:`min-h-32 font-mono text-xs`,value:d,onChange:e=>f(e.target.value)})}),(0,P.jsx)(G7,{label:`Query`,children:(0,P.jsx)(o7,{className:`min-h-32 font-mono text-xs`,value:m,onChange:e=>h(e.target.value)})}),(0,P.jsx)(G7,{label:`Body`,children:(0,P.jsx)(o7,{className:`min-h-32 font-mono text-xs`,value:g,onChange:e=>_(e.target.value)})})]})]}):null]})]}),b?(0,P.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:`rounded border px-3 py-2 text-xs ${b.success?`border-[var(--success-border)] bg-[var(--success-bg)] text-[var(--success)]`:`border-[var(--danger-border)] bg-[var(--danger-bg)] text-[var(--danger)]`}`,children:[b.message,` · `,b.latencyMs,` ms`]}):null,(0,P.jsx)(G_,{error:T.error??E.error})]}),(0,P.jsxs)(w7,{className:`flex justify-between gap-2`,children:[(0,P.jsxs)(N_,{loading:E.isPending,disabled:k,onClick:()=>{x(void 0);try{E.mutate(w(),{onSuccess:e=>{x(e.test),e.test.success?R7.success(`连接测试成功`,`${e.test.message} · ${e.test.latencyMs} ms`):R7.error(`连接测试失败`,e.test.message)},onError:e=>R7.error(`连接测试失败`,e)})}catch(e){x({success:!1,message:K_(e),latencyMs:0}),R7.error(`连接测试失败`,e)}},children:[!E.isPending&&(0,P.jsx)(__,{className:`size-4`}),`测试连接`]}),(0,P.jsxs)(`div`,{className:`flex gap-2`,children:[(0,P.jsx)(N_,{onClick:()=>t(!1),children:`取消`}),(0,P.jsx)(N_,{variant:`primary`,loading:T.isPending,disabled:!r.trim()||k,onClick:()=>T.mutate({id:e.connection?.id,body:w()},{onSuccess:()=>{n(),R7.success(`连接已保存`,`“${r.trim()}”可以用于 Agent。`)},onError:e=>R7.error(`保存连接失败`,e)}),children:`保存连接`})]})]})]})}function TC({field:e,value:t,hasStoredCredential:n,clearingCredential:r=!1,onToggleClearCredential:i,onChange:a}){let o=e.location===`credentials`&&!e.required&&n&&i;return(0,P.jsx)(G7,{label:e.label,required:e.required,helper:e.description,children:e.input===`boolean`?(0,P.jsxs)(`label`,{className:`flex min-h-11 items-center gap-2`,children:[(0,P.jsx)(`input`,{type:`checkbox`,checked:!!t,onChange:e=>a(e.target.checked)}),`启用`]}):e.input===`select`?(0,P.jsx)(i7,{value:DC(t),onChange:e=>a(e.target.value),children:e.options?.map(e=>(0,P.jsx)(`option`,{value:e.value,children:e.label},e.value))}):(0,P.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,P.jsx)(Y5,{type:e.input===`password`?`password`:e.input===`number`?`number`:e.input===`url`?`url`:`text`,value:DC(t),placeholder:n&&!r?`留空保留已有值`:e.placeholder,onChange:t=>a(e.input===`number`?Number(t.target.value):t.target.value)}),o?(0,P.jsxs)(`div`,{className:`flex items-center justify-between gap-2 text-xs text-[var(--muted-strong)]`,children:[(0,P.jsx)(`span`,{children:r?`保存后将清除已存密钥`:`已保存密钥`}),(0,P.jsx)(`button`,{type:`button`,className:`font-medium text-[var(--accent)] hover:underline`,onClick:i,children:r?`撤销清除`:`清除已保存值`})]}):null]})})}function EC(e,t){let n=JSON.parse(e||`{}`);if(!n||typeof n!=`object`||Array.isArray(n))throw Error(`${t} 必须是 JSON 对象`);return n}function DC(e){return typeof e==`string`||typeof e==`number`?String(e):``}var OC=Yr(`/_app/connections`)({validateSearch:e=>{let t=gC(e.category);return{page:Math.max(1,Number(e.page??1)||1),...t===`all`?{}:{category:t}}},component:Xr(()=>R1(()=>import(`./connections-Dfyth9tv.js`),[]),`component`)}),kC=(e=1,t=20)=>c0(o0.api[`content-plans`].$get({query:{page:String(e),pageSize:String(t)}})),AC=e=>c0(o0.api[`content-plans`].$post({json:e})),jC=(e,t)=>c0(o0.api[`content-plans`][`:id`].$patch({param:{id:e},json:t})),MC=e=>c0(o0.api[`content-plans`][`:id`].$delete({param:{id:e}})),NC=()=>R1(()=>import(`./content-plans-me2sZDLU.js`),__vite__mapDeps([15,16,17,12])),PC=()=>[`content-plans`],FC=Yr(`/_app/content-plans`)({validateSearch:e=>({page:Number(e.page??1)||1}),component:Xr(NC,`component`)}),IC=(e=1,t=20)=>c0(o0.api.identities.$get({query:{page:String(e),pageSize:String(t)}})),LC=e=>c0(o0.api.identities.$post({json:e})),RC=(e,t)=>c0(o0.api.identities[`:id`].$patch({param:{id:e},json:t})),zC=e=>c0(o0.api.identities[`:id`].$delete({param:{id:e}})),BC=()=>R1(()=>import(`./identities-CIy7Q2wP.js`),__vite__mapDeps([18,1])),VC=()=>[`identities`],HC=Yr(`/_app/identities`)({validateSearch:e=>({page:Number(e.page??1)||1}),component:Xr(BC,`component`)}),UC=()=>R1(()=>import(`./jobs-CMViOJeL.js`),__vite__mapDeps([19,20,21,22,11])),WC=()=>[`runs`],GC=Yr(`/_app/jobs`)({validateSearch:e=>({page:Number(e.page??1)||1}),component:Xr(UC,`component`)}),KC=(e=1,t=20)=>c0(o0.api[`knowledge-bases`].$get({query:{page:String(e),pageSize:String(t)}})),qC=e=>c0(o0.api[`knowledge-bases`].$post({json:e})),JC=(e,t)=>c0(o0.api[`knowledge-bases`][`:id`].$patch({param:{id:e},json:t})),YC=e=>c0(o0.api[`knowledge-bases`][`:id`].$delete({param:{id:e}})),XC=()=>R1(()=>import(`./knowledge-DQcgNI2r.js`),__vite__mapDeps([23,1,24])),ZC=()=>[`knowledge-bases`],QC=Yr(`/_app/knowledge`)({validateSearch:e=>({page:Number(e.page??1)||1}),component:Xr(XC,`component`)}),$C=Yr(`/_app/library`)({validateSearch:e=>({page:Math.max(1,Number(e.page??1)||1)}),component:Xr(()=>R1(()=>import(`./library-BUCfApCB.js`),__vite__mapDeps([25,1,26,12,27,28,22,11])),`component`)}),ew=Yr(`/_app/publishing`)({validateSearch:e=>({page:Math.max(1,Number(e.page??1)||1),channel:typeof e.channel==`string`?e.channel:void 0}),component:Xr(()=>R1(()=>import(`./publishing-PmNqeFKZ.js`),__vite__mapDeps([29,1,12,30,2,9,4,31,32,33,34])),`component`)}),tw=Yr(`/_app/settings`)({component:Xr(()=>R1(()=>import(`./settings-COO33aq9.js`),__vite__mapDeps([35,12])),`component`)}),nw=(e=1,t=20)=>c0(o0.api[`source-collections`].$get({query:{page:String(e),pageSize:String(t)}})),rw=e=>c0(o0.api[`source-collections`].$post({json:e})),iw=(e,t)=>c0(o0.api[`source-collections`][`:id`].$patch({param:{id:e},json:t})),aw=e=>c0(o0.api[`source-collections`][`:id`].$delete({param:{id:e}})),ow=()=>R1(()=>import(`./sources-IjjBA3jh.js`),__vite__mapDeps([36,1,33])),sw=()=>[`source-collections`],cw=Yr(`/_app/sources`)({validateSearch:e=>({page:Number(e.page??1)||1}),component:Xr(ow,`component`)}),lw=Yr(`/_app/workspace`)({component:Xr(()=>R1(()=>import(`./workspace-BpJcl3Mc.js`),__vite__mapDeps([37,10,1,11,12,2])),`component`)}),uw=Yr(`/_app/content-plans_/new`)({component:Xr(()=>R1(()=>import(`./content-plans_.new-7BHuv528.js`),__vite__mapDeps([38,39,1,3,12,26,40,8,6,31,27,32,33,34,20,21,41,42,17,11,28,22,13])),`component`)}),dw=Yr(`/_app/jobs_/$runId`)({component:Xr(()=>R1(()=>import(`./jobs_._runId-CA8TTEqw.js`),__vite__mapDeps([43,41,1,42,17,20,21,26,31,11,28,22,13])),`component`)}),fw=Yr(`/_app/publishing_/styles`)({validateSearch:e=>({page:Math.max(1,Number(e.page??1)||1),channel:typeof e.channel==`string`?e.channel:void 0}),component:Xr(()=>R1(()=>import(`./publishing_.styles-B3gViZHT.js`),__vite__mapDeps([44,1,16,33,12])),`component`)}),pw=Yr(`/_app/publishing_/templates`)({validateSearch:e=>({page:Math.max(1,Number(e.page??1)||1),channel:typeof e.channel==`string`?e.channel:void 0,publicationType:typeof e.publicationType==`string`?e.publicationType:void 0}),component:Xr(()=>R1(()=>import(`./publishing_.templates-DyfaO52q.js`),__vite__mapDeps([45,1,12,46,34,30,2,42,17,24,5,26,31,40,21])),`component`)}),mw=Yr(`/_app/content-plans_/$planId/edit`)({component:Xr(()=>R1(()=>import(`./content-plans_._planId.edit-7BHuv528.js`),__vite__mapDeps([47,39,1,3,12,26,40,8,6,31,27,32,33,34,20,21,41,42,17,11,28,22,13])),`component`)}),hw=Yr(`/_app/publishing_/templates_/sessions/$sessionId`)({validateSearch:e=>({channel:typeof e.channel==`string`?e.channel:``,publicationType:typeof e.publicationType==`string`?e.publicationType:`article`,page:Math.max(1,Number(e.page??1)||1)}),component:Xr(()=>R1(()=>import(`./publishing_.templates_.sessions._sessionId-C32Beg6R.js`),__vite__mapDeps([48,46,1,34,30,2,42,17,24,5,26,31,12,40,21])),`component`)}),gw=z1.update({id:`/`,path:`/`,getParentRoute:()=>j1}),_w=H1.update({id:`/_app`,getParentRoute:()=>j1}),vw={AppAutomationsRoute:U1.update({id:`/automations`,path:`/automations`,getParentRoute:()=>_w}),AppConnectionsRoute:OC.update({id:`/connections`,path:`/connections`,getParentRoute:()=>_w}),AppContentPlansRoute:FC.update({id:`/content-plans`,path:`/content-plans`,getParentRoute:()=>_w}),AppIdentitiesRoute:HC.update({id:`/identities`,path:`/identities`,getParentRoute:()=>_w}),AppJobsRoute:GC.update({id:`/jobs`,path:`/jobs`,getParentRoute:()=>_w}),AppKnowledgeRoute:QC.update({id:`/knowledge`,path:`/knowledge`,getParentRoute:()=>_w}),AppLibraryRoute:$C.update({id:`/library`,path:`/library`,getParentRoute:()=>_w}),AppPublishingRoute:ew.update({id:`/publishing`,path:`/publishing`,getParentRoute:()=>_w}),AppSettingsRoute:tw.update({id:`/settings`,path:`/settings`,getParentRoute:()=>_w}),AppSourcesRoute:cw.update({id:`/sources`,path:`/sources`,getParentRoute:()=>_w}),AppWorkspaceRoute:lw.update({id:`/workspace`,path:`/workspace`,getParentRoute:()=>_w}),AppContentPlansNewRoute:uw.update({id:`/content-plans_/new`,path:`/content-plans/new`,getParentRoute:()=>_w}),AppJobsRunIdRoute:dw.update({id:`/jobs_/$runId`,path:`/jobs/$runId`,getParentRoute:()=>_w}),AppPublishingStylesRoute:fw.update({id:`/publishing_/styles`,path:`/publishing/styles`,getParentRoute:()=>_w}),AppPublishingTemplatesRoute:pw.update({id:`/publishing_/templates`,path:`/publishing/templates`,getParentRoute:()=>_w}),AppContentPlansPlanIdEditRoute:mw.update({id:`/content-plans_/$planId/edit`,path:`/content-plans/$planId/edit`,getParentRoute:()=>_w}),AppPublishingTemplatesSessionsSessionIdRoute:hw.update({id:`/publishing_/templates_/sessions/$sessionId`,path:`/publishing/templates/sessions/$sessionId`,getParentRoute:()=>_w})},yw={IndexRoute:gw,AppRoute:_w._addFileChildren(vw)},bw=fi({routeTree:j1._addFileChildren(yw)._addFileTypes(),basepath:`/dashboard/`,defaultPreload:`intent`});function xw(){(0,Ba.createRoot)(document.getElementById(`root`)).render((0,P.jsx)(p.StrictMode,{children:(0,P.jsx)(A1,{children:(0,P.jsx)(hi,{router:bw})})}))}xw();export{l7 as $,np as $t,MC as A,oi as An,M_ as At,r9 as B,h_ as Bt,LC as C,oo as Cn,l0 as Ct,FC as D,za as Dn,G_ as Dt,RC as E,Ka as En,Y_ as Et,rC as F,xr as Fn,C_ as Ft,L7 as G,l_ as Gt,Z7 as H,f_ as Ht,p9 as I,yr as In,S_ as It,j7 as J,e_ as Jt,P7 as K,Yg as Kt,m9 as L,Kn as Ln,b_ as Lt,jC as M,Or as Mn,E_ as Mt,OC as N,Dr as Nn,T_ as Nt,PC as O,Ra as On,N_ as Ot,CC as P,Tr as Pn,w_ as Pt,s7 as Q,qg as Qt,s9 as R,Ln as Rn,__ as Rt,VC as S,To as Sn,c0 as St,IC as T,Qa as Tn,H1 as Tt,G7 as U,d_ as Ut,i9 as V,p_ as Vt,R7 as W,u_ as Wt,w7 as X,$g as Xt,C7 as Y,Qg as Yt,_7 as Z,U as Zt,KC as _,Xo as _n,_0 as _t,cw as a,Tc as an,X5 as at,WC as b,Ao as bn,u0 as bt,aw as c,ic as cn,$5 as ct,ew as d,Ws as dn,J5 as dt,ip as en,d7 as et,$C as f,Is as fn,q5 as ft,YC as g,ls as gn,v0 as gt,qC as h,_s as hn,u3 as ht,dw as i,Pl as in,i7 as it,kC as j,Ur as jn,O_ as jt,AC as k,Ca as kn,P_ as kt,nw as l,oc as ln,Q5 as lt,ZC as m,Ds as mn,Y8 as mt,pw as n,$f as nn,p7 as nt,sw as o,yc as on,e7 as ot,QC as p,Ms as pn,X8 as pt,M7 as q,Xg as qt,fw as r,Ul as rn,o7 as rt,rw as s,nc as sn,t7 as st,hw as t,cp as tn,m7 as tt,iw as u,ac as un,Y5 as ut,JC as v,Fo as vn,g0 as vt,zC as w,ro as wn,U1 as wt,HC as x,wo as xn,o0 as xt,GC as y,Mo as yn,h0 as yt,o9 as z,o as zn,g_ as zt};
|