@chenpu17/cc-gw 0.8.30 → 0.9.0-beta.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.
Files changed (78) hide show
  1. package/package.json +8 -8
  2. package/src/web/dist/assets/About-DY21fypB.js +1 -0
  3. package/src/web/dist/assets/ApiKeys-FWkRLPTy.js +1 -0
  4. package/src/web/dist/assets/{ConfirmDialog-VrbumD7j.js → ConfirmDialog-CyTpXZeT.js} +1 -1
  5. package/src/web/dist/assets/Dashboard-FKM-9UNt.js +1 -0
  6. package/src/web/dist/assets/DialogShell-CM92wXHo.js +1 -0
  7. package/src/web/dist/assets/Events-x_fSf1mz.js +1 -0
  8. package/src/web/dist/assets/{Help-BiuR792b.js → Help-BMgllYJq.js} +1 -1
  9. package/src/web/dist/assets/Login-DrtDFqbk.js +1 -0
  10. package/src/web/dist/assets/Logs-18flgbiW.js +1 -0
  11. package/src/web/dist/assets/{PageSection-D1vbxAKK.js → PageSection-N34Nu8NO.js} +1 -1
  12. package/src/web/dist/assets/PageState-CFLrRswm.js +1 -0
  13. package/src/web/dist/assets/{PageToolbar-DzpjQ7SY.js → PageToolbar-CWw40AFL.js} +1 -1
  14. package/src/web/dist/assets/ProvidersWorkbench-aHO5-ApY.js +1 -0
  15. package/src/web/dist/assets/Settings-iEjCAGgm.js +1 -0
  16. package/src/web/dist/assets/Setup-B1j2zExa.js +2 -0
  17. package/src/web/dist/assets/{apiKeys-Dl_vgy_U.js → apiKeys-k1jIJuDa.js} +1 -1
  18. package/src/web/dist/assets/app-Citq5KW4.js +61 -0
  19. package/src/web/dist/assets/badge-DpUlf_NW.js +1 -0
  20. package/src/web/dist/assets/{card-DS9KKz-k.js → card-D4YOc5eB.js} +1 -1
  21. package/src/web/dist/assets/{charts-core-CAVUzIcU.js → charts-core-BTTtAoo-.js} +1 -1
  22. package/src/web/dist/assets/{charts-engine-BRCKiVl4.js → charts-engine-CFhx8nba.js} +1 -1
  23. package/src/web/dist/assets/{charts-react-B-D6Gq0w.js → charts-react-BQP6-BFp.js} +1 -1
  24. package/src/web/dist/assets/{disclosure-CqU8C-ET.js → disclosure-l5qsWhr7.js} +1 -1
  25. package/src/web/dist/assets/{gateway-Bt6lPuXq.js → gateway-i49olSPp.js} +1 -1
  26. package/src/web/dist/assets/{global-zt8jbW7F.js → global-BCehxTGJ.js} +1 -1
  27. package/src/web/dist/assets/global-CIVH6GQV.css +1 -0
  28. package/src/web/dist/assets/{i18n-DWfLgqoF.js → i18n-PeX9kBVO.js} +1 -1
  29. package/src/web/dist/assets/{label-CWq3wWgE.js → label-DSVzZIex.js} +1 -1
  30. package/src/web/dist/assets/landing-W4f2Nx8j.js +17 -0
  31. package/src/web/dist/assets/metric-card-G1bbpbiR.js +1 -0
  32. package/src/web/dist/assets/package-B2CgmdJ7.js +1 -0
  33. package/src/web/dist/assets/popover-QZXvcPr8.js +1 -0
  34. package/src/web/dist/assets/{query-CZuclkQv.js → query-DZF7K6hv.js} +1 -1
  35. package/src/web/dist/assets/radix-Bux_1C5J.js +5 -0
  36. package/src/web/dist/assets/{router-C1-ppOz7.js → router-BoBrmro7.js} +2 -2
  37. package/src/web/dist/assets/segmented-control-13KTib6k.js +1 -0
  38. package/src/web/dist/assets/{select-CxIEo3DN.js → select-sOwKYsgI.js} +1 -1
  39. package/src/web/dist/assets/shared-Cuakym23.js +1 -0
  40. package/src/web/dist/assets/switch-7PH_rDz6.js +1 -0
  41. package/src/web/dist/assets/table-CVuTTP1s.js +1 -0
  42. package/src/web/dist/assets/{tabs-BOjStrRw.js → tabs-UWyz9J_W.js} +1 -1
  43. package/src/web/dist/assets/types-DYz12j32.js +1 -0
  44. package/src/web/dist/assets/useAppMutation-CEN5Oa4S.js +1 -0
  45. package/src/web/dist/assets/{useEventStream-DeEWwZq0.js → useEventStream-BYg6oKvQ.js} +1 -1
  46. package/src/web/dist/assets/useProviderForm-DZEYuRhD.js +1 -0
  47. package/src/web/dist/assets/utils-B_Q3Hhgb.js +3 -0
  48. package/src/web/dist/assets/vendor-CITafuNQ.js +409 -0
  49. package/src/web/dist/index.html +15 -9
  50. package/src/web/dist/landing.html +5 -5
  51. package/src/web/dist/assets/About-CGQXnQXw.js +0 -1
  52. package/src/web/dist/assets/ApiKeys-Cse0CWpH.js +0 -1
  53. package/src/web/dist/assets/Dashboard-CtOgjfmM.js +0 -1
  54. package/src/web/dist/assets/DialogShell-TRFN3c58.js +0 -1
  55. package/src/web/dist/assets/EChart-CZqGiync.js +0 -1
  56. package/src/web/dist/assets/Events-C14a-qPg.js +0 -1
  57. package/src/web/dist/assets/Login-B-xiAusP.js +0 -1
  58. package/src/web/dist/assets/Logs-oNopHEDO.js +0 -1
  59. package/src/web/dist/assets/PageState-CPKqNFG7.js +0 -1
  60. package/src/web/dist/assets/ProvidersWorkbench-B5g4UvTf.js +0 -1
  61. package/src/web/dist/assets/Settings-CPpQt_UL.js +0 -1
  62. package/src/web/dist/assets/Setup-DNJ1W4sK.js +0 -2
  63. package/src/web/dist/assets/app-CeLCVbqy.js +0 -61
  64. package/src/web/dist/assets/global-B1Xg1dWA.css +0 -1
  65. package/src/web/dist/assets/landing-D6Ek28oa.js +0 -17
  66. package/src/web/dist/assets/metric-card-CueQ0u3Z.js +0 -1
  67. package/src/web/dist/assets/package-CdOrNWtP.js +0 -1
  68. package/src/web/dist/assets/popover-0fHMO-3Y.js +0 -1
  69. package/src/web/dist/assets/queryKeys-BlGm18Nk.js +0 -1
  70. package/src/web/dist/assets/radix-OaJStcH-.js +0 -5
  71. package/src/web/dist/assets/segmented-control-do2mQidJ.js +0 -1
  72. package/src/web/dist/assets/shared-fOyVvn5H.js +0 -1
  73. package/src/web/dist/assets/switch-B2cQk2bS.js +0 -1
  74. package/src/web/dist/assets/table-BxCEZcKF.js +0 -1
  75. package/src/web/dist/assets/useAppMutation-DY1JJByx.js +0 -1
  76. package/src/web/dist/assets/useProviderForm-DlALMLaD.js +0 -1
  77. package/src/web/dist/assets/utils-DrKJJFzS.js +0 -3
  78. package/src/web/dist/assets/vendor-m8O77Czp.js +0 -390
@@ -0,0 +1,409 @@
1
+ var Vm=e=>{throw TypeError(e)};var Tc=(e,t,n)=>t.has(e)||Vm("Cannot "+n);var C=(e,t,n)=>(Tc(e,t,"read from private field"),n?n.call(e):t.get(e)),$=(e,t,n)=>t.has(e)?Vm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),I=(e,t,n,r)=>(Tc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Y=(e,t,n)=>(Tc(e,t,"access private method"),n);var Fa=(e,t,n,r)=>({set _(i){I(e,t,i,n)},get _(){return C(e,t,r)}});function lC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function K0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uC(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var q0={exports:{}},zu={},G0={exports:{}},J={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var ya=Symbol.for("react.element"),cC=Symbol.for("react.portal"),fC=Symbol.for("react.fragment"),dC=Symbol.for("react.strict_mode"),hC=Symbol.for("react.profiler"),pC=Symbol.for("react.provider"),mC=Symbol.for("react.context"),gC=Symbol.for("react.forward_ref"),yC=Symbol.for("react.suspense"),vC=Symbol.for("react.memo"),wC=Symbol.for("react.lazy"),jm=Symbol.iterator;function xC(e){return e===null||typeof e!="object"?null:(e=jm&&e[jm]||e["@@iterator"],typeof e=="function"?e:null)}var Q0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X0=Object.assign,Y0={};function js(e,t,n){this.props=e,this.context=t,this.refs=Y0,this.updater=n||Q0}js.prototype.isReactComponent={};js.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};js.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Z0(){}Z0.prototype=js.prototype;function Lh(e,t,n){this.props=e,this.context=t,this.refs=Y0,this.updater=n||Q0}var _h=Lh.prototype=new Z0;_h.constructor=Lh;X0(_h,js.prototype);_h.isPureReactComponent=!0;var zm=Array.isArray,J0=Object.prototype.hasOwnProperty,Ih={current:null},ew={key:!0,ref:!0,__self:!0,__source:!0};function tw(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)J0.call(t,r)&&!ew.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ya,type:e,key:s,ref:o,props:i,_owner:Ih.current}}function SC(e,t){return{$$typeof:ya,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Nh(e){return typeof e=="object"&&e!==null&&e.$$typeof===ya}function bC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Bm=/\/+/g;function Pc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bC(""+e.key):t.toString(36)}function yl(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ya:case cC:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Pc(o,0):r,zm(i)?(n="",e!=null&&(n=e.replace(Bm,"$&/")+"/"),yl(i,t,n,"",function(u){return u})):i!=null&&(Nh(i)&&(i=SC(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Bm,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",zm(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Pc(s,a);o+=yl(s,t,n,l,i)}else if(l=xC(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Pc(s,a++),o+=yl(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Va(e,t,n){if(e==null)return e;var r=[],i=0;return yl(e,r,"","",function(s){return t.call(n,s,i++)}),r}function kC(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var rt={current:null},vl={transition:null},CC={ReactCurrentDispatcher:rt,ReactCurrentBatchConfig:vl,ReactCurrentOwner:Ih};function nw(){throw Error("act(...) is not supported in production builds of React.")}J.Children={map:Va,forEach:function(e,t,n){Va(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Va(e,function(){t++}),t},toArray:function(e){return Va(e,function(t){return t})||[]},only:function(e){if(!Nh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};J.Component=js;J.Fragment=fC;J.Profiler=hC;J.PureComponent=Lh;J.StrictMode=dC;J.Suspense=yC;J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=CC;J.act=nw;J.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=X0({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Ih.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)J0.call(t,l)&&!ew.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ya,type:e.type,key:i,ref:s,props:r,_owner:o}};J.createContext=function(e){return e={$$typeof:mC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pC,_context:e},e.Consumer=e};J.createElement=tw;J.createFactory=function(e){var t=tw.bind(null,e);return t.type=e,t};J.createRef=function(){return{current:null}};J.forwardRef=function(e){return{$$typeof:gC,render:e}};J.isValidElement=Nh;J.lazy=function(e){return{$$typeof:wC,_payload:{_status:-1,_result:e},_init:kC}};J.memo=function(e,t){return{$$typeof:vC,type:e,compare:t===void 0?null:t}};J.startTransition=function(e){var t=vl.transition;vl.transition={};try{e()}finally{vl.transition=t}};J.unstable_act=nw;J.useCallback=function(e,t){return rt.current.useCallback(e,t)};J.useContext=function(e){return rt.current.useContext(e)};J.useDebugValue=function(){};J.useDeferredValue=function(e){return rt.current.useDeferredValue(e)};J.useEffect=function(e,t){return rt.current.useEffect(e,t)};J.useId=function(){return rt.current.useId()};J.useImperativeHandle=function(e,t,n){return rt.current.useImperativeHandle(e,t,n)};J.useInsertionEffect=function(e,t){return rt.current.useInsertionEffect(e,t)};J.useLayoutEffect=function(e,t){return rt.current.useLayoutEffect(e,t)};J.useMemo=function(e,t){return rt.current.useMemo(e,t)};J.useReducer=function(e,t,n){return rt.current.useReducer(e,t,n)};J.useRef=function(e){return rt.current.useRef(e)};J.useState=function(e){return rt.current.useState(e)};J.useSyncExternalStore=function(e,t,n){return rt.current.useSyncExternalStore(e,t,n)};J.useTransition=function(){return rt.current.useTransition()};J.version="18.3.1";G0.exports=J;var S=G0.exports;const Je=K0(S),yN=lC({__proto__:null,default:Je},[S]);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var EC=S,RC=Symbol.for("react.element"),TC=Symbol.for("react.fragment"),PC=Object.prototype.hasOwnProperty,AC=EC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,MC={key:!0,ref:!0,__self:!0,__source:!0};function rw(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)PC.call(t,r)&&!MC.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:RC,type:e,key:s,ref:o,props:i,_owner:AC.current}}zu.Fragment=TC;zu.jsx=rw;zu.jsxs=rw;q0.exports=zu;var $n=q0.exports,Um={},iw={exports:{}},Tt={},sw={exports:{}},ow={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(M,_){var O=M.length;M.push(_);e:for(;0<O;){var q=O-1>>>1,G=M[q];if(0<i(G,_))M[q]=_,M[O]=G,O=q;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var _=M[0],O=M.pop();if(O!==_){M[0]=O;e:for(var q=0,G=M.length,be=G>>>1;q<be;){var pe=2*(q+1)-1,ae=M[pe],ee=pe+1,st=M[ee];if(0>i(ae,O))ee<G&&0>i(st,ae)?(M[q]=st,M[ee]=O,q=ee):(M[q]=ae,M[pe]=O,q=pe);else if(ee<G&&0>i(st,O))M[q]=st,M[ee]=O,q=ee;else break e}}return _}function i(M,_){var O=M.sortIndex-_.sortIndex;return O!==0?O:M.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(M){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=M)r(u),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(u)}}function x(M){if(m=!1,w(M),!p)if(n(l)!==null)p=!0,V(k);else{var _=n(u);_!==null&&Q(x,_.startTime-M)}}function k(M,_){p=!1,m&&(m=!1,g(b),b=-1),h=!0;var O=d;try{for(w(_),f=n(l);f!==null&&(!(f.expirationTime>_)||M&&!D());){var q=f.callback;if(typeof q=="function"){f.callback=null,d=f.priorityLevel;var G=q(f.expirationTime<=_);_=e.unstable_now(),typeof G=="function"?f.callback=G:f===n(l)&&r(l),w(_)}else r(l);f=n(l)}if(f!==null)var be=!0;else{var pe=n(u);pe!==null&&Q(x,pe.startTime-_),be=!1}return be}finally{f=null,d=O,h=!1}}var R=!1,E=null,b=-1,A=5,T=-1;function D(){return!(e.unstable_now()-T<A)}function N(){if(E!==null){var M=e.unstable_now();T=M;var _=!0;try{_=E(!0,M)}finally{_?H():(R=!1,E=null)}}else R=!1}var H;if(typeof y=="function")H=function(){y(N)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,X=U.port2;U.port1.onmessage=N,H=function(){X.postMessage(null)}}else H=function(){v(N,0)};function V(M){E=M,R||(R=!0,H())}function Q(M,_){b=v(function(){M(e.unstable_now())},_)}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(M){M.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,V(k))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(M){switch(d){case 1:case 2:case 3:var _=3;break;default:_=d}var O=d;d=_;try{return M()}finally{d=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,_){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var O=d;d=M;try{return _()}finally{d=O}},e.unstable_scheduleCallback=function(M,_,O){var q=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?q+O:q):O=q,M){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=O+G,M={id:c++,callback:_,priorityLevel:M,startTime:O,expirationTime:G,sortIndex:-1},O>q?(M.sortIndex=O,t(u,M),n(l)===null&&M===n(u)&&(m?(g(b),b=-1):m=!0,Q(x,O-q))):(M.sortIndex=G,t(l,M),p||h||(p=!0,V(k))),M},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(M){var _=d;return function(){var O=d;d=_;try{return M.apply(this,arguments)}finally{d=O}}}})(ow);sw.exports=ow;var OC=sw.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var DC=S,Rt=OC;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var aw=new Set,jo={};function Ai(e,t){Rs(e,t),Rs(e+"Capture",t)}function Rs(e,t){for(jo[e]=t,e=0;e<t.length;e++)aw.add(t[e])}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ff=Object.prototype.hasOwnProperty,LC=/^[: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]*$/,$m={},Wm={};function _C(e){return Ff.call(Wm,e)?!0:Ff.call($m,e)?!1:LC.test(e)?Wm[e]=!0:($m[e]=!0,!1)}function IC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function NC(e,t,n,r){if(t===null||typeof t>"u"||IC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function it(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ue[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ue[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ue[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ue[e]=new it(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ue[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ue[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ue[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ue[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ue[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fh=/[\-:]([a-z])/g;function Vh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Fh,Vh);Ue[t]=new it(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Fh,Vh);Ue[t]=new it(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Fh,Vh);Ue[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ue[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});Ue.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ue[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function jh(e,t,n,r){var i=Ue.hasOwnProperty(t)?Ue[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(NC(t,n,i,r)&&(n=null),r||i===null?_C(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Zn=DC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ja=Symbol.for("react.element"),Ui=Symbol.for("react.portal"),$i=Symbol.for("react.fragment"),zh=Symbol.for("react.strict_mode"),Vf=Symbol.for("react.profiler"),lw=Symbol.for("react.provider"),uw=Symbol.for("react.context"),Bh=Symbol.for("react.forward_ref"),jf=Symbol.for("react.suspense"),zf=Symbol.for("react.suspense_list"),Uh=Symbol.for("react.memo"),cr=Symbol.for("react.lazy"),cw=Symbol.for("react.offscreen"),Hm=Symbol.iterator;function no(e){return e===null||typeof e!="object"?null:(e=Hm&&e[Hm]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Object.assign,Ac;function yo(e){if(Ac===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ac=t&&t[1]||""}return`
34
+ `+Ac+e}var Mc=!1;function Oc(e,t){if(!e||Mc)return"";Mc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
+ `),s=r.stack.split(`
36
+ `),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Mc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yo(e):""}function FC(e){switch(e.tag){case 5:return yo(e.type);case 16:return yo("Lazy");case 13:return yo("Suspense");case 19:return yo("SuspenseList");case 0:case 2:case 15:return e=Oc(e.type,!1),e;case 11:return e=Oc(e.type.render,!1),e;case 1:return e=Oc(e.type,!0),e;default:return""}}function Bf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $i:return"Fragment";case Ui:return"Portal";case Vf:return"Profiler";case zh:return"StrictMode";case jf:return"Suspense";case zf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uw:return(e.displayName||"Context")+".Consumer";case lw:return(e._context.displayName||"Context")+".Provider";case Bh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uh:return t=e.displayName||null,t!==null?t:Bf(e.type)||"Memo";case cr:t=e._payload,e=e._init;try{return Bf(e(t))}catch{}}return null}function VC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Bf(t);case 8:return t===zh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jC(e){var t=fw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function za(e){e._valueTracker||(e._valueTracker=jC(e))}function dw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Uf(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Km(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Fr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hw(e,t){t=t.checked,t!=null&&jh(e,"checked",t,!1)}function $f(e,t){hw(e,t);var n=Fr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wf(e,t.type,Fr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wf(e,t,n){(t!=="number"||Kl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vo=Array.isArray;function is(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=""+Fr(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 Hf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(L(91));return ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(L(92));if(vo(n)){if(1<n.length)throw Error(L(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Fr(n)}}function pw(e,t){var n=Fr(t.value),r=Fr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Qm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mw(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Kf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ba,gw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ba=Ba||document.createElement("div"),Ba.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ba.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ko={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zC=["Webkit","ms","Moz","O"];Object.keys(ko).forEach(function(e){zC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ko[t]=ko[e]})});function yw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ko.hasOwnProperty(e)&&ko[e]?(""+t).trim():t+"px"}function vw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=yw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var BC=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qf(e,t){if(t){if(BC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Gf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Qf=null;function $h(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xf=null,ss=null,os=null;function Xm(e){if(e=xa(e)){if(typeof Xf!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Hu(t),Xf(e.stateNode,e.type,t))}}function ww(e){ss?os?os.push(e):os=[e]:ss=e}function xw(){if(ss){var e=ss,t=os;if(os=ss=null,Xm(e),t)for(e=0;e<t.length;e++)Xm(t[e])}}function Sw(e,t){return e(t)}function bw(){}var Dc=!1;function kw(e,t,n){if(Dc)return e(t,n);Dc=!0;try{return Sw(e,t,n)}finally{Dc=!1,(ss!==null||os!==null)&&(bw(),xw())}}function Bo(e,t){var n=e.stateNode;if(n===null)return null;var r=Hu(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(L(231,t,typeof n));return n}var Yf=!1;if(Kn)try{var ro={};Object.defineProperty(ro,"passive",{get:function(){Yf=!0}}),window.addEventListener("test",ro,ro),window.removeEventListener("test",ro,ro)}catch{Yf=!1}function UC(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Co=!1,ql=null,Gl=!1,Zf=null,$C={onError:function(e){Co=!0,ql=e}};function WC(e,t,n,r,i,s,o,a,l){Co=!1,ql=null,UC.apply($C,arguments)}function HC(e,t,n,r,i,s,o,a,l){if(WC.apply(this,arguments),Co){if(Co){var u=ql;Co=!1,ql=null}else throw Error(L(198));Gl||(Gl=!0,Zf=u)}}function Mi(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 Cw(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 Ym(e){if(Mi(e)!==e)throw Error(L(188))}function KC(e){var t=e.alternate;if(!t){if(t=Mi(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Ym(i),e;if(s===r)return Ym(i),t;s=s.sibling}throw Error(L(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function Ew(e){return e=KC(e),e!==null?Rw(e):null}function Rw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Rw(e);if(t!==null)return t;e=e.sibling}return null}var Tw=Rt.unstable_scheduleCallback,Zm=Rt.unstable_cancelCallback,qC=Rt.unstable_shouldYield,GC=Rt.unstable_requestPaint,ke=Rt.unstable_now,QC=Rt.unstable_getCurrentPriorityLevel,Wh=Rt.unstable_ImmediatePriority,Pw=Rt.unstable_UserBlockingPriority,Ql=Rt.unstable_NormalPriority,XC=Rt.unstable_LowPriority,Aw=Rt.unstable_IdlePriority,Bu=null,Sn=null;function YC(e){if(Sn&&typeof Sn.onCommitFiberRoot=="function")try{Sn.onCommitFiberRoot(Bu,e,void 0,(e.current.flags&128)===128)}catch{}}var Jt=Math.clz32?Math.clz32:eE,ZC=Math.log,JC=Math.LN2;function eE(e){return e>>>=0,e===0?32:31-(ZC(e)/JC|0)|0}var Ua=64,$a=4194304;function wo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=wo(a):(s&=o,s!==0&&(r=wo(s)))}else o=n&~i,o!==0?r=wo(o):s!==0&&(r=wo(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Jt(t),i=1<<n,r|=e[n],t&=~i;return r}function tE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Jt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=tE(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Jf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mw(){var e=Ua;return Ua<<=1,!(Ua&4194240)&&(Ua=64),e}function Lc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function va(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jt(t),e[t]=n}function rE(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Jt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Hh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Jt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var oe=0;function Ow(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Dw,Kh,Lw,_w,Iw,ed=!1,Wa=[],Pr=null,Ar=null,Mr=null,Uo=new Map,$o=new Map,hr=[],iE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Jm(e,t){switch(e){case"focusin":case"focusout":Pr=null;break;case"dragenter":case"dragleave":Ar=null;break;case"mouseover":case"mouseout":Mr=null;break;case"pointerover":case"pointerout":Uo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$o.delete(t.pointerId)}}function io(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=xa(t),t!==null&&Kh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function sE(e,t,n,r,i){switch(t){case"focusin":return Pr=io(Pr,e,t,n,r,i),!0;case"dragenter":return Ar=io(Ar,e,t,n,r,i),!0;case"mouseover":return Mr=io(Mr,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Uo.set(s,io(Uo.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,$o.set(s,io($o.get(s)||null,e,t,n,r,i)),!0}return!1}function Nw(e){var t=ei(e.target);if(t!==null){var n=Mi(t);if(n!==null){if(t=n.tag,t===13){if(t=Cw(n),t!==null){e.blockedOn=t,Iw(e.priority,function(){Lw(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 wl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=td(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Qf=r,n.target.dispatchEvent(r),Qf=null}else return t=xa(n),t!==null&&Kh(t),e.blockedOn=n,!1;t.shift()}return!0}function eg(e,t,n){wl(e)&&n.delete(t)}function oE(){ed=!1,Pr!==null&&wl(Pr)&&(Pr=null),Ar!==null&&wl(Ar)&&(Ar=null),Mr!==null&&wl(Mr)&&(Mr=null),Uo.forEach(eg),$o.forEach(eg)}function so(e,t){e.blockedOn===t&&(e.blockedOn=null,ed||(ed=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,oE)))}function Wo(e){function t(i){return so(i,e)}if(0<Wa.length){so(Wa[0],e);for(var n=1;n<Wa.length;n++){var r=Wa[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Pr!==null&&so(Pr,e),Ar!==null&&so(Ar,e),Mr!==null&&so(Mr,e),Uo.forEach(t),$o.forEach(t),n=0;n<hr.length;n++)r=hr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<hr.length&&(n=hr[0],n.blockedOn===null);)Nw(n),n.blockedOn===null&&hr.shift()}var as=Zn.ReactCurrentBatchConfig,Yl=!0;function aE(e,t,n,r){var i=oe,s=as.transition;as.transition=null;try{oe=1,qh(e,t,n,r)}finally{oe=i,as.transition=s}}function lE(e,t,n,r){var i=oe,s=as.transition;as.transition=null;try{oe=4,qh(e,t,n,r)}finally{oe=i,as.transition=s}}function qh(e,t,n,r){if(Yl){var i=td(e,t,n,r);if(i===null)$c(e,t,r,Zl,n),Jm(e,r);else if(sE(i,e,t,n,r))r.stopPropagation();else if(Jm(e,r),t&4&&-1<iE.indexOf(e)){for(;i!==null;){var s=xa(i);if(s!==null&&Dw(s),s=td(e,t,n,r),s===null&&$c(e,t,r,Zl,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else $c(e,t,r,null,n)}}var Zl=null;function td(e,t,n,r){if(Zl=null,e=$h(r),e=ei(e),e!==null)if(t=Mi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Cw(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 Zl=e,null}function Fw(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(QC()){case Wh:return 1;case Pw:return 4;case Ql:case XC:return 16;case Aw:return 536870912;default:return 16}default:return 16}}var Cr=null,Gh=null,xl=null;function Vw(){if(xl)return xl;var e,t=Gh,n=t.length,r,i="value"in Cr?Cr.value:Cr.textContent,s=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[s-r];r++);return xl=i.slice(e,1<r?1-r:void 0)}function Sl(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 Ha(){return!0}function tg(){return!1}function Pt(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ha:tg,this.isPropagationStopped=tg,this}return ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ha)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ha)},persist:function(){},isPersistent:Ha}),t}var zs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qh=Pt(zs),wa=ve({},zs,{view:0,detail:0}),uE=Pt(wa),_c,Ic,oo,Uu=ve({},wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xh,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!==oo&&(oo&&e.type==="mousemove"?(_c=e.screenX-oo.screenX,Ic=e.screenY-oo.screenY):Ic=_c=0,oo=e),_c)},movementY:function(e){return"movementY"in e?e.movementY:Ic}}),ng=Pt(Uu),cE=ve({},Uu,{dataTransfer:0}),fE=Pt(cE),dE=ve({},wa,{relatedTarget:0}),Nc=Pt(dE),hE=ve({},zs,{animationName:0,elapsedTime:0,pseudoElement:0}),pE=Pt(hE),mE=ve({},zs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gE=Pt(mE),yE=ve({},zs,{data:0}),rg=Pt(yE),vE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wE={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"},xE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xE[e])?!!t[e]:!1}function Xh(){return SE}var bE=ve({},wa,{key:function(e){if(e.key){var t=vE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Sl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xh,charCode:function(e){return e.type==="keypress"?Sl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Sl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kE=Pt(bE),CE=ve({},Uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ig=Pt(CE),EE=ve({},wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xh}),RE=Pt(EE),TE=ve({},zs,{propertyName:0,elapsedTime:0,pseudoElement:0}),PE=Pt(TE),AE=ve({},Uu,{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}),ME=Pt(AE),OE=[9,13,27,32],Yh=Kn&&"CompositionEvent"in window,Eo=null;Kn&&"documentMode"in document&&(Eo=document.documentMode);var DE=Kn&&"TextEvent"in window&&!Eo,jw=Kn&&(!Yh||Eo&&8<Eo&&11>=Eo),sg=" ",og=!1;function zw(e,t){switch(e){case"keyup":return OE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wi=!1;function LE(e,t){switch(e){case"compositionend":return Bw(t);case"keypress":return t.which!==32?null:(og=!0,sg);case"textInput":return e=t.data,e===sg&&og?null:e;default:return null}}function _E(e,t){if(Wi)return e==="compositionend"||!Yh&&zw(e,t)?(e=Vw(),xl=Gh=Cr=null,Wi=!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 jw&&t.locale!=="ko"?null:t.data;default:return null}}var IE={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 ag(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!IE[e.type]:t==="textarea"}function Uw(e,t,n,r){ww(r),t=Jl(t,"onChange"),0<t.length&&(n=new Qh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ro=null,Ho=null;function NE(e){Jw(e,0)}function $u(e){var t=qi(e);if(dw(t))return e}function FE(e,t){if(e==="change")return t}var $w=!1;if(Kn){var Fc;if(Kn){var Vc="oninput"in document;if(!Vc){var lg=document.createElement("div");lg.setAttribute("oninput","return;"),Vc=typeof lg.oninput=="function"}Fc=Vc}else Fc=!1;$w=Fc&&(!document.documentMode||9<document.documentMode)}function ug(){Ro&&(Ro.detachEvent("onpropertychange",Ww),Ho=Ro=null)}function Ww(e){if(e.propertyName==="value"&&$u(Ho)){var t=[];Uw(t,Ho,e,$h(e)),kw(NE,t)}}function VE(e,t,n){e==="focusin"?(ug(),Ro=t,Ho=n,Ro.attachEvent("onpropertychange",Ww)):e==="focusout"&&ug()}function jE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $u(Ho)}function zE(e,t){if(e==="click")return $u(t)}function BE(e,t){if(e==="input"||e==="change")return $u(t)}function UE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:UE;function Ko(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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(!Ff.call(t,i)||!nn(e[i],t[i]))return!1}return!0}function cg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fg(e,t){var n=cg(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=cg(n)}}function Hw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kw(){for(var e=window,t=Kl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kl(e.document)}return t}function Zh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $E(e){var t=Kw(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hw(n.ownerDocument.documentElement,n)){if(r!==null&&Zh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=fg(n,s);var o=fg(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var WE=Kn&&"documentMode"in document&&11>=document.documentMode,Hi=null,nd=null,To=null,rd=!1;function dg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rd||Hi==null||Hi!==Kl(r)||(r=Hi,"selectionStart"in r&&Zh(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}),To&&Ko(To,r)||(To=r,r=Jl(nd,"onSelect"),0<r.length&&(t=new Qh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hi)))}function Ka(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ki={animationend:Ka("Animation","AnimationEnd"),animationiteration:Ka("Animation","AnimationIteration"),animationstart:Ka("Animation","AnimationStart"),transitionend:Ka("Transition","TransitionEnd")},jc={},qw={};Kn&&(qw=document.createElement("div").style,"AnimationEvent"in window||(delete Ki.animationend.animation,delete Ki.animationiteration.animation,delete Ki.animationstart.animation),"TransitionEvent"in window||delete Ki.transitionend.transition);function Wu(e){if(jc[e])return jc[e];if(!Ki[e])return e;var t=Ki[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qw)return jc[e]=t[n];return e}var Gw=Wu("animationend"),Qw=Wu("animationiteration"),Xw=Wu("animationstart"),Yw=Wu("transitionend"),Zw=new Map,hg="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function $r(e,t){Zw.set(e,t),Ai(t,[e])}for(var zc=0;zc<hg.length;zc++){var Bc=hg[zc],HE=Bc.toLowerCase(),KE=Bc[0].toUpperCase()+Bc.slice(1);$r(HE,"on"+KE)}$r(Gw,"onAnimationEnd");$r(Qw,"onAnimationIteration");$r(Xw,"onAnimationStart");$r("dblclick","onDoubleClick");$r("focusin","onFocus");$r("focusout","onBlur");$r(Yw,"onTransitionEnd");Rs("onMouseEnter",["mouseout","mouseover"]);Rs("onMouseLeave",["mouseout","mouseover"]);Rs("onPointerEnter",["pointerout","pointerover"]);Rs("onPointerLeave",["pointerout","pointerover"]);Ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ai("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xo="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(" "),qE=new Set("cancel close invalid load scroll toggle".split(" ").concat(xo));function pg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,HC(r,t,void 0,e),e.currentTarget=null}function Jw(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;pg(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;pg(i,a,u),s=l}}}if(Gl)throw e=Zf,Gl=!1,Zf=null,e}function de(e,t){var n=t[ld];n===void 0&&(n=t[ld]=new Set);var r=e+"__bubble";n.has(r)||(e1(t,e,2,!1),n.add(r))}function Uc(e,t,n){var r=0;t&&(r|=4),e1(n,e,r,t)}var qa="_reactListening"+Math.random().toString(36).slice(2);function qo(e){if(!e[qa]){e[qa]=!0,aw.forEach(function(n){n!=="selectionchange"&&(qE.has(n)||Uc(n,!1,e),Uc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qa]||(t[qa]=!0,Uc("selectionchange",!1,t))}}function e1(e,t,n,r){switch(Fw(t)){case 1:var i=aE;break;case 4:i=lE;break;default:i=qh}n=i.bind(null,t,n,e),i=void 0,!Yf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function $c(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=ei(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}kw(function(){var u=s,c=$h(n),f=[];e:{var d=Zw.get(e);if(d!==void 0){var h=Qh,p=e;switch(e){case"keypress":if(Sl(n)===0)break e;case"keydown":case"keyup":h=kE;break;case"focusin":p="focus",h=Nc;break;case"focusout":p="blur",h=Nc;break;case"beforeblur":case"afterblur":h=Nc;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":h=ng;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=fE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=RE;break;case Gw:case Qw:case Xw:h=pE;break;case Yw:h=PE;break;case"scroll":h=uE;break;case"wheel":h=ME;break;case"copy":case"cut":case"paste":h=gE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=ig}var m=(t&4)!==0,v=!m&&e==="scroll",g=m?d!==null?d+"Capture":null:d;m=[];for(var y=u,w;y!==null;){w=y;var x=w.stateNode;if(w.tag===5&&x!==null&&(w=x,g!==null&&(x=Bo(y,g),x!=null&&m.push(Go(y,x,w)))),v)break;y=y.return}0<m.length&&(d=new h(d,p,null,n,c),f.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Qf&&(p=n.relatedTarget||n.fromElement)&&(ei(p)||p[qn]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=u,p=p?ei(p):null,p!==null&&(v=Mi(p),p!==v||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(m=ng,x="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(m=ig,x="onPointerLeave",g="onPointerEnter",y="pointer"),v=h==null?d:qi(h),w=p==null?d:qi(p),d=new m(x,y+"leave",h,n,c),d.target=v,d.relatedTarget=w,x=null,ei(c)===u&&(m=new m(g,y+"enter",p,n,c),m.target=w,m.relatedTarget=v,x=m),v=x,h&&p)t:{for(m=h,g=p,y=0,w=m;w;w=Fi(w))y++;for(w=0,x=g;x;x=Fi(x))w++;for(;0<y-w;)m=Fi(m),y--;for(;0<w-y;)g=Fi(g),w--;for(;y--;){if(m===g||g!==null&&m===g.alternate)break t;m=Fi(m),g=Fi(g)}m=null}else m=null;h!==null&&mg(f,d,h,m,!1),p!==null&&v!==null&&mg(f,v,p,m,!0)}}e:{if(d=u?qi(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var k=FE;else if(ag(d))if($w)k=BE;else{k=jE;var R=VE}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(k=zE);if(k&&(k=k(e,u))){Uw(f,k,n,c);break e}R&&R(e,d,u),e==="focusout"&&(R=d._wrapperState)&&R.controlled&&d.type==="number"&&Wf(d,"number",d.value)}switch(R=u?qi(u):window,e){case"focusin":(ag(R)||R.contentEditable==="true")&&(Hi=R,nd=u,To=null);break;case"focusout":To=nd=Hi=null;break;case"mousedown":rd=!0;break;case"contextmenu":case"mouseup":case"dragend":rd=!1,dg(f,n,c);break;case"selectionchange":if(WE)break;case"keydown":case"keyup":dg(f,n,c)}var E;if(Yh)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Wi?zw(e,n)&&(b="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(b="onCompositionStart");b&&(jw&&n.locale!=="ko"&&(Wi||b!=="onCompositionStart"?b==="onCompositionEnd"&&Wi&&(E=Vw()):(Cr=c,Gh="value"in Cr?Cr.value:Cr.textContent,Wi=!0)),R=Jl(u,b),0<R.length&&(b=new rg(b,e,null,n,c),f.push({event:b,listeners:R}),E?b.data=E:(E=Bw(n),E!==null&&(b.data=E)))),(E=DE?LE(e,n):_E(e,n))&&(u=Jl(u,"onBeforeInput"),0<u.length&&(c=new rg("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=E))}Jw(f,t)})}function Go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Bo(e,n),s!=null&&r.unshift(Go(e,s,i)),s=Bo(e,t),s!=null&&r.push(Go(e,s,i))),e=e.return}return r}function Fi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mg(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=Bo(n,s),l!=null&&o.unshift(Go(n,l,a))):i||(l=Bo(n,s),l!=null&&o.push(Go(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var GE=/\r\n?/g,QE=/\u0000|\uFFFD/g;function gg(e){return(typeof e=="string"?e:""+e).replace(GE,`
38
+ `).replace(QE,"")}function Ga(e,t,n){if(t=gg(t),gg(e)!==t&&n)throw Error(L(425))}function eu(){}var id=null,sd=null;function od(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ad=typeof setTimeout=="function"?setTimeout:void 0,XE=typeof clearTimeout=="function"?clearTimeout:void 0,yg=typeof Promise=="function"?Promise:void 0,YE=typeof queueMicrotask=="function"?queueMicrotask:typeof yg<"u"?function(e){return yg.resolve(null).then(e).catch(ZE)}:ad;function ZE(e){setTimeout(function(){throw e})}function Wc(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==="/$"){if(r===0){e.removeChild(i),Wo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Wo(t)}function Or(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function vg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Bs=Math.random().toString(36).slice(2),wn="__reactFiber$"+Bs,Qo="__reactProps$"+Bs,qn="__reactContainer$"+Bs,ld="__reactEvents$"+Bs,JE="__reactListeners$"+Bs,eR="__reactHandles$"+Bs;function ei(e){var t=e[wn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qn]||n[wn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vg(e);e!==null;){if(n=e[wn])return n;e=vg(e)}return t}e=n,n=e.parentNode}return null}function xa(e){return e=e[wn]||e[qn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function qi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(L(33))}function Hu(e){return e[Qo]||null}var ud=[],Gi=-1;function Wr(e){return{current:e}}function he(e){0>Gi||(e.current=ud[Gi],ud[Gi]=null,Gi--)}function fe(e,t){Gi++,ud[Gi]=e.current,e.current=t}var Vr={},Qe=Wr(Vr),ft=Wr(!1),Si=Vr;function Ts(e,t){var n=e.type.contextTypes;if(!n)return Vr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function dt(e){return e=e.childContextTypes,e!=null}function tu(){he(ft),he(Qe)}function wg(e,t,n){if(Qe.current!==Vr)throw Error(L(168));fe(Qe,t),fe(ft,n)}function t1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(L(108,VC(e)||"Unknown",i));return ve({},n,r)}function nu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vr,Si=Qe.current,fe(Qe,e),fe(ft,ft.current),!0}function xg(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=t1(e,t,Si),r.__reactInternalMemoizedMergedChildContext=e,he(ft),he(Qe),fe(Qe,e)):he(ft),fe(ft,n)}var Nn=null,Ku=!1,Hc=!1;function n1(e){Nn===null?Nn=[e]:Nn.push(e)}function tR(e){Ku=!0,n1(e)}function Hr(){if(!Hc&&Nn!==null){Hc=!0;var e=0,t=oe;try{var n=Nn;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Nn=null,Ku=!1}catch(i){throw Nn!==null&&(Nn=Nn.slice(e+1)),Tw(Wh,Hr),i}finally{oe=t,Hc=!1}}return null}var Qi=[],Xi=0,ru=null,iu=0,It=[],Nt=0,bi=null,Bn=1,Un="";function Yr(e,t){Qi[Xi++]=iu,Qi[Xi++]=ru,ru=e,iu=t}function r1(e,t,n){It[Nt++]=Bn,It[Nt++]=Un,It[Nt++]=bi,bi=e;var r=Bn;e=Un;var i=32-Jt(r)-1;r&=~(1<<i),n+=1;var s=32-Jt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Bn=1<<32-Jt(t)+i|n<<i|r,Un=s+e}else Bn=1<<s|n<<i|r,Un=e}function Jh(e){e.return!==null&&(Yr(e,1),r1(e,1,0))}function ep(e){for(;e===ru;)ru=Qi[--Xi],Qi[Xi]=null,iu=Qi[--Xi],Qi[Xi]=null;for(;e===bi;)bi=It[--Nt],It[Nt]=null,Un=It[--Nt],It[Nt]=null,Bn=It[--Nt],It[Nt]=null}var kt=null,bt=null,me=!1,Zt=null;function i1(e,t){var n=Vt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Sg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,kt=e,bt=Or(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,kt=e,bt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=bi!==null?{id:Bn,overflow:Un}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Vt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,kt=e,bt=null,!0):!1;default:return!1}}function cd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function fd(e){if(me){var t=bt;if(t){var n=t;if(!Sg(e,t)){if(cd(e))throw Error(L(418));t=Or(n.nextSibling);var r=kt;t&&Sg(e,t)?i1(r,n):(e.flags=e.flags&-4097|2,me=!1,kt=e)}}else{if(cd(e))throw Error(L(418));e.flags=e.flags&-4097|2,me=!1,kt=e}}}function bg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;kt=e}function Qa(e){if(e!==kt)return!1;if(!me)return bg(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!od(e.type,e.memoizedProps)),t&&(t=bt)){if(cd(e))throw s1(),Error(L(418));for(;t;)i1(e,t),t=Or(t.nextSibling)}if(bg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(L(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){bt=Or(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}bt=null}}else bt=kt?Or(e.stateNode.nextSibling):null;return!0}function s1(){for(var e=bt;e;)e=Or(e.nextSibling)}function Ps(){bt=kt=null,me=!1}function tp(e){Zt===null?Zt=[e]:Zt.push(e)}var nR=Zn.ReactCurrentBatchConfig;function ao(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(L(309));var r=n.stateNode}if(!r)throw Error(L(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(L(284));if(!n._owner)throw Error(L(290,e))}return e}function Xa(e,t){throw e=Object.prototype.toString.call(t),Error(L(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function kg(e){var t=e._init;return t(e._payload)}function o1(e){function t(g,y){if(e){var w=g.deletions;w===null?(g.deletions=[y],g.flags|=16):w.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g,y){for(g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function i(g,y){return g=Ir(g,y),g.index=0,g.sibling=null,g}function s(g,y,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<y?(g.flags|=2,y):w):(g.flags|=2,y)):(g.flags|=1048576,y)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,y,w,x){return y===null||y.tag!==6?(y=Zc(w,g.mode,x),y.return=g,y):(y=i(y,w),y.return=g,y)}function l(g,y,w,x){var k=w.type;return k===$i?c(g,y,w.props.children,x,w.key):y!==null&&(y.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===cr&&kg(k)===y.type)?(x=i(y,w.props),x.ref=ao(g,y,w),x.return=g,x):(x=Pl(w.type,w.key,w.props,null,g.mode,x),x.ref=ao(g,y,w),x.return=g,x)}function u(g,y,w,x){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=Jc(w,g.mode,x),y.return=g,y):(y=i(y,w.children||[]),y.return=g,y)}function c(g,y,w,x,k){return y===null||y.tag!==7?(y=yi(w,g.mode,x,k),y.return=g,y):(y=i(y,w),y.return=g,y)}function f(g,y,w){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Zc(""+y,g.mode,w),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ja:return w=Pl(y.type,y.key,y.props,null,g.mode,w),w.ref=ao(g,null,y),w.return=g,w;case Ui:return y=Jc(y,g.mode,w),y.return=g,y;case cr:var x=y._init;return f(g,x(y._payload),w)}if(vo(y)||no(y))return y=yi(y,g.mode,w,null),y.return=g,y;Xa(g,y)}return null}function d(g,y,w,x){var k=y!==null?y.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return k!==null?null:a(g,y,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ja:return w.key===k?l(g,y,w,x):null;case Ui:return w.key===k?u(g,y,w,x):null;case cr:return k=w._init,d(g,y,k(w._payload),x)}if(vo(w)||no(w))return k!==null?null:c(g,y,w,x,null);Xa(g,w)}return null}function h(g,y,w,x,k){if(typeof x=="string"&&x!==""||typeof x=="number")return g=g.get(w)||null,a(y,g,""+x,k);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ja:return g=g.get(x.key===null?w:x.key)||null,l(y,g,x,k);case Ui:return g=g.get(x.key===null?w:x.key)||null,u(y,g,x,k);case cr:var R=x._init;return h(g,y,w,R(x._payload),k)}if(vo(x)||no(x))return g=g.get(w)||null,c(y,g,x,k,null);Xa(y,x)}return null}function p(g,y,w,x){for(var k=null,R=null,E=y,b=y=0,A=null;E!==null&&b<w.length;b++){E.index>b?(A=E,E=null):A=E.sibling;var T=d(g,E,w[b],x);if(T===null){E===null&&(E=A);break}e&&E&&T.alternate===null&&t(g,E),y=s(T,y,b),R===null?k=T:R.sibling=T,R=T,E=A}if(b===w.length)return n(g,E),me&&Yr(g,b),k;if(E===null){for(;b<w.length;b++)E=f(g,w[b],x),E!==null&&(y=s(E,y,b),R===null?k=E:R.sibling=E,R=E);return me&&Yr(g,b),k}for(E=r(g,E);b<w.length;b++)A=h(E,g,b,w[b],x),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?b:A.key),y=s(A,y,b),R===null?k=A:R.sibling=A,R=A);return e&&E.forEach(function(D){return t(g,D)}),me&&Yr(g,b),k}function m(g,y,w,x){var k=no(w);if(typeof k!="function")throw Error(L(150));if(w=k.call(w),w==null)throw Error(L(151));for(var R=k=null,E=y,b=y=0,A=null,T=w.next();E!==null&&!T.done;b++,T=w.next()){E.index>b?(A=E,E=null):A=E.sibling;var D=d(g,E,T.value,x);if(D===null){E===null&&(E=A);break}e&&E&&D.alternate===null&&t(g,E),y=s(D,y,b),R===null?k=D:R.sibling=D,R=D,E=A}if(T.done)return n(g,E),me&&Yr(g,b),k;if(E===null){for(;!T.done;b++,T=w.next())T=f(g,T.value,x),T!==null&&(y=s(T,y,b),R===null?k=T:R.sibling=T,R=T);return me&&Yr(g,b),k}for(E=r(g,E);!T.done;b++,T=w.next())T=h(E,g,b,T.value,x),T!==null&&(e&&T.alternate!==null&&E.delete(T.key===null?b:T.key),y=s(T,y,b),R===null?k=T:R.sibling=T,R=T);return e&&E.forEach(function(N){return t(g,N)}),me&&Yr(g,b),k}function v(g,y,w,x){if(typeof w=="object"&&w!==null&&w.type===$i&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ja:e:{for(var k=w.key,R=y;R!==null;){if(R.key===k){if(k=w.type,k===$i){if(R.tag===7){n(g,R.sibling),y=i(R,w.props.children),y.return=g,g=y;break e}}else if(R.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===cr&&kg(k)===R.type){n(g,R.sibling),y=i(R,w.props),y.ref=ao(g,R,w),y.return=g,g=y;break e}n(g,R);break}else t(g,R);R=R.sibling}w.type===$i?(y=yi(w.props.children,g.mode,x,w.key),y.return=g,g=y):(x=Pl(w.type,w.key,w.props,null,g.mode,x),x.ref=ao(g,y,w),x.return=g,g=x)}return o(g);case Ui:e:{for(R=w.key;y!==null;){if(y.key===R)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=i(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Jc(w,g.mode,x),y.return=g,g=y}return o(g);case cr:return R=w._init,v(g,y,R(w._payload),x)}if(vo(w))return p(g,y,w,x);if(no(w))return m(g,y,w,x);Xa(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=i(y,w),y.return=g,g=y):(n(g,y),y=Zc(w,g.mode,x),y.return=g,g=y),o(g)):n(g,y)}return v}var As=o1(!0),a1=o1(!1),su=Wr(null),ou=null,Yi=null,np=null;function rp(){np=Yi=ou=null}function ip(e){var t=su.current;he(su),e._currentValue=t}function dd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ls(e,t){ou=e,np=Yi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Ut(e){var t=e._currentValue;if(np!==e)if(e={context:e,memoizedValue:t,next:null},Yi===null){if(ou===null)throw Error(L(308));Yi=e,ou.dependencies={lanes:0,firstContext:e}}else Yi=Yi.next=e;return t}var ti=null;function sp(e){ti===null?ti=[e]:ti.push(e)}function l1(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,sp(t)):(n.next=i.next,i.next=n),t.interleaved=n,Gn(e,r)}function Gn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var fr=!1;function op(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function u1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Dr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Gn(e,n)}return i=r.interleaved,i===null?(t.next=t,sp(r)):(t.next=i.next,i.next=t),r.interleaved=t,Gn(e,n)}function bl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hh(e,n)}}function Cg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function au(e,t,n,r){var i=e.updateQueue;fr=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,c=u=l=null,a=s;do{var d=a.lane,h=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,m=a;switch(d=t,h=n,m.tag){case 1:if(p=m.payload,typeof p=="function"){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,d=typeof p=="function"?p.call(h,f,d):p,d==null)break e;f=ve({},f,d);break e;case 2:fr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Ci|=o,e.lanes=o,e.memoizedState=f}}function Eg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(L(191,i));i.call(r)}}}var Sa={},bn=Wr(Sa),Xo=Wr(Sa),Yo=Wr(Sa);function ni(e){if(e===Sa)throw Error(L(174));return e}function ap(e,t){switch(fe(Yo,t),fe(Xo,e),fe(bn,Sa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kf(t,e)}he(bn),fe(bn,t)}function Ms(){he(bn),he(Xo),he(Yo)}function c1(e){ni(Yo.current);var t=ni(bn.current),n=Kf(t,e.type);t!==n&&(fe(Xo,e),fe(bn,n))}function lp(e){Xo.current===e&&(he(bn),he(Xo))}var ge=Wr(0);function lu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Kc=[];function up(){for(var e=0;e<Kc.length;e++)Kc[e]._workInProgressVersionPrimary=null;Kc.length=0}var kl=Zn.ReactCurrentDispatcher,qc=Zn.ReactCurrentBatchConfig,ki=0,ye=null,Ae=null,Le=null,uu=!1,Po=!1,Zo=0,rR=0;function We(){throw Error(L(321))}function cp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nn(e[n],t[n]))return!1;return!0}function fp(e,t,n,r,i,s){if(ki=s,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,kl.current=e===null||e.memoizedState===null?aR:lR,e=n(r,i),Po){s=0;do{if(Po=!1,Zo=0,25<=s)throw Error(L(301));s+=1,Le=Ae=null,t.updateQueue=null,kl.current=uR,e=n(r,i)}while(Po)}if(kl.current=cu,t=Ae!==null&&Ae.next!==null,ki=0,Le=Ae=ye=null,uu=!1,t)throw Error(L(300));return e}function dp(){var e=Zo!==0;return Zo=0,e}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?ye.memoizedState=Le=e:Le=Le.next=e,Le}function $t(){if(Ae===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Le===null?ye.memoizedState:Le.next;if(t!==null)Le=t,Ae=e;else{if(e===null)throw Error(L(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Le===null?ye.memoizedState=Le=e:Le=Le.next=e}return Le}function Jo(e,t){return typeof t=="function"?t(e):t}function Gc(e){var t=$t(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=Ae,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var c=u.lane;if((ki&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,ye.lanes|=c,Ci|=c}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,nn(r,t.memoizedState)||(ct=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ye.lanes|=s,Ci|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Qc(e){var t=$t(),n=t.queue;if(n===null)throw Error(L(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);nn(s,t.memoizedState)||(ct=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function f1(){}function d1(e,t){var n=ye,r=$t(),i=t(),s=!nn(r.memoizedState,i);if(s&&(r.memoizedState=i,ct=!0),r=r.queue,hp(m1.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,ea(9,p1.bind(null,n,r,i,t),void 0,null),Ie===null)throw Error(L(349));ki&30||h1(n,t,i)}return i}function h1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function p1(e,t,n,r){t.value=n,t.getSnapshot=r,g1(t)&&y1(e)}function m1(e,t,n){return n(function(){g1(t)&&y1(e)})}function g1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nn(e,n)}catch{return!0}}function y1(e){var t=Gn(e,1);t!==null&&en(t,e,1,-1)}function Rg(e){var t=hn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:e},t.queue=e,e=e.dispatch=oR.bind(null,ye,e),[t.memoizedState,e]}function ea(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function v1(){return $t().memoizedState}function Cl(e,t,n,r){var i=hn();ye.flags|=e,i.memoizedState=ea(1|t,n,void 0,r===void 0?null:r)}function qu(e,t,n,r){var i=$t();r=r===void 0?null:r;var s=void 0;if(Ae!==null){var o=Ae.memoizedState;if(s=o.destroy,r!==null&&cp(r,o.deps)){i.memoizedState=ea(t,n,s,r);return}}ye.flags|=e,i.memoizedState=ea(1|t,n,s,r)}function Tg(e,t){return Cl(8390656,8,e,t)}function hp(e,t){return qu(2048,8,e,t)}function w1(e,t){return qu(4,2,e,t)}function x1(e,t){return qu(4,4,e,t)}function S1(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function b1(e,t,n){return n=n!=null?n.concat([e]):null,qu(4,4,S1.bind(null,t,e),n)}function pp(){}function k1(e,t){var n=$t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function C1(e,t){var n=$t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function E1(e,t,n){return ki&21?(nn(n,t)||(n=Mw(),ye.lanes|=n,Ci|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ct=!0),e.memoizedState=n)}function iR(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=qc.transition;qc.transition={};try{e(!1),t()}finally{oe=n,qc.transition=r}}function R1(){return $t().memoizedState}function sR(e,t,n){var r=_r(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},T1(e))P1(t,n);else if(n=l1(e,t,n,r),n!==null){var i=nt();en(n,e,r,i),A1(n,t,r)}}function oR(e,t,n){var r=_r(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(T1(e))P1(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,nn(a,o)){var l=t.interleaved;l===null?(i.next=i,sp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=l1(e,t,i,r),n!==null&&(i=nt(),en(n,e,r,i),A1(n,t,r))}}function T1(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function P1(e,t){Po=uu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function A1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hh(e,n)}}var cu={readContext:Ut,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},aR={readContext:Ut,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:Tg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Cl(4194308,4,S1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Cl(4,2,e,t)},useMemo:function(e,t){var n=hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sR.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:Rg,useDebugValue:pp,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=Rg(!1),t=e[0];return e=iR.bind(null,e[1]),hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,i=hn();if(me){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),Ie===null)throw Error(L(349));ki&30||h1(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Tg(m1.bind(null,r,s,e),[e]),r.flags|=2048,ea(9,p1.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=hn(),t=Ie.identifierPrefix;if(me){var n=Un,r=Bn;n=(r&~(1<<32-Jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=rR++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lR={readContext:Ut,useCallback:k1,useContext:Ut,useEffect:hp,useImperativeHandle:b1,useInsertionEffect:w1,useLayoutEffect:x1,useMemo:C1,useReducer:Gc,useRef:v1,useState:function(){return Gc(Jo)},useDebugValue:pp,useDeferredValue:function(e){var t=$t();return E1(t,Ae.memoizedState,e)},useTransition:function(){var e=Gc(Jo)[0],t=$t().memoizedState;return[e,t]},useMutableSource:f1,useSyncExternalStore:d1,useId:R1,unstable_isNewReconciler:!1},uR={readContext:Ut,useCallback:k1,useContext:Ut,useEffect:hp,useImperativeHandle:b1,useInsertionEffect:w1,useLayoutEffect:x1,useMemo:C1,useReducer:Qc,useRef:v1,useState:function(){return Qc(Jo)},useDebugValue:pp,useDeferredValue:function(e){var t=$t();return Ae===null?t.memoizedState=e:E1(t,Ae.memoizedState,e)},useTransition:function(){var e=Qc(Jo)[0],t=$t().memoizedState;return[e,t]},useMutableSource:f1,useSyncExternalStore:d1,useId:R1,unstable_isNewReconciler:!1};function Gt(e,t){if(e&&e.defaultProps){t=ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hd(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gu={isMounted:function(e){return(e=e._reactInternals)?Mi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nt(),i=_r(e),s=Wn(r,i);s.payload=t,n!=null&&(s.callback=n),t=Dr(e,s,i),t!==null&&(en(t,e,i,r),bl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nt(),i=_r(e),s=Wn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Dr(e,s,i),t!==null&&(en(t,e,i,r),bl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nt(),r=_r(e),i=Wn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Dr(e,i,r),t!==null&&(en(t,e,r,n),bl(t,e,r))}};function Pg(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Ko(n,r)||!Ko(i,s):!0}function M1(e,t,n){var r=!1,i=Vr,s=t.contextType;return typeof s=="object"&&s!==null?s=Ut(s):(i=dt(t)?Si:Qe.current,r=t.contextTypes,s=(r=r!=null)?Ts(e,i):Vr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Gu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Ag(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&&Gu.enqueueReplaceState(t,t.state,null)}function pd(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},op(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ut(s):(s=dt(t)?Si:Qe.current,i.context=Ts(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(hd(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Gu.enqueueReplaceState(i,i.state,null),au(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Os(e,t){try{var n="",r=t;do n+=FC(r),r=r.return;while(r);var i=n}catch(s){i=`
39
+ Error generating stack: `+s.message+`
40
+ `+s.stack}return{value:e,source:t,stack:i,digest:null}}function Xc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function md(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cR=typeof WeakMap=="function"?WeakMap:Map;function O1(e,t,n){n=Wn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){du||(du=!0,Ed=r),md(e,t)},n}function D1(e,t,n){n=Wn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){md(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){md(e,t),typeof r!="function"&&(Lr===null?Lr=new Set([this]):Lr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Mg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cR;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)||(i.add(n),e=CR.bind(null,e,t,n),t.then(e,e))}function Og(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Dg(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Wn(-1,1),t.tag=2,Dr(n,t,1))),n.lanes|=1),e)}var fR=Zn.ReactCurrentOwner,ct=!1;function Ze(e,t,n,r){t.child=e===null?a1(t,null,n,r):As(t,e.child,n,r)}function Lg(e,t,n,r,i){n=n.render;var s=t.ref;return ls(t,i),r=fp(e,t,n,r,s,i),n=dp(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qn(e,t,i)):(me&&n&&Jh(t),t.flags|=1,Ze(e,t,r,i),t.child)}function _g(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!bp(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,L1(e,t,s,r,i)):(e=Pl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ko,n(o,r)&&e.ref===t.ref)return Qn(e,t,i)}return t.flags|=1,e=Ir(s,r),e.ref=t.ref,e.return=t,t.child=e}function L1(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Ko(s,r)&&e.ref===t.ref)if(ct=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(ct=!0);else return t.lanes=e.lanes,Qn(e,t,i)}return gd(e,t,n,r,i)}function _1(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fe(Ji,xt),xt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fe(Ji,xt),xt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,fe(Ji,xt),xt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,fe(Ji,xt),xt|=r;return Ze(e,t,i,n),t.child}function I1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gd(e,t,n,r,i){var s=dt(n)?Si:Qe.current;return s=Ts(t,s),ls(t,i),n=fp(e,t,n,r,s,i),r=dp(),e!==null&&!ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qn(e,t,i)):(me&&r&&Jh(t),t.flags|=1,Ze(e,t,n,i),t.child)}function Ig(e,t,n,r,i){if(dt(n)){var s=!0;nu(t)}else s=!1;if(ls(t,i),t.stateNode===null)El(e,t),M1(t,n,r),pd(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ut(u):(u=dt(n)?Si:Qe.current,u=Ts(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Ag(t,o,r,u),fr=!1;var d=t.memoizedState;o.state=d,au(t,r,o,i),l=t.memoizedState,a!==r||d!==l||ft.current||fr?(typeof c=="function"&&(hd(t,n,c,r),l=t.memoizedState),(a=fr||Pg(t,n,a,r,d,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,u1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Gt(t.type,a),o.props=u,f=t.pendingProps,d=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ut(l):(l=dt(n)?Si:Qe.current,l=Ts(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Ag(t,o,r,l),fr=!1,d=t.memoizedState,o.state=d,au(t,r,o,i);var p=t.memoizedState;a!==f||d!==p||ft.current||fr?(typeof h=="function"&&(hd(t,n,h,r),p=t.memoizedState),(u=fr||Pg(t,n,u,r,d,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return yd(e,t,n,r,s,i)}function yd(e,t,n,r,i,s){I1(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&xg(t,n,!1),Qn(e,t,s);r=t.stateNode,fR.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=As(t,e.child,null,s),t.child=As(t,null,a,s)):Ze(e,t,a,s),t.memoizedState=r.state,i&&xg(t,n,!0),t.child}function N1(e){var t=e.stateNode;t.pendingContext?wg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wg(e,t.context,!1),ap(e,t.containerInfo)}function Ng(e,t,n,r,i){return Ps(),tp(i),t.flags|=256,Ze(e,t,n,r),t.child}var vd={dehydrated:null,treeContext:null,retryLane:0};function wd(e){return{baseLanes:e,cachePool:null,transitions:null}}function F1(e,t,n){var r=t.pendingProps,i=ge.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),fe(ge,i&1),e===null)return fd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Yu(o,r,0,null),e=yi(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=wd(n),t.memoizedState=vd,e):mp(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return dR(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Ir(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Ir(a,s):(s=yi(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?wd(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=vd,r}return s=e.child,e=s.sibling,r=Ir(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function mp(e,t){return t=Yu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ya(e,t,n,r){return r!==null&&tp(r),As(t,e.child,null,n),e=mp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dR(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Xc(Error(L(422))),Ya(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Yu({mode:"visible",children:r.children},i,0,null),s=yi(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&As(t,e.child,null,o),t.child.memoizedState=wd(o),t.memoizedState=vd,s);if(!(t.mode&1))return Ya(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(L(419)),r=Xc(s,r,void 0),Ya(e,t,o,r)}if(a=(o&e.childLanes)!==0,ct||a){if(r=Ie,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Gn(e,i),en(r,e,i,-1))}return Sp(),r=Xc(Error(L(421))),Ya(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=ER.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,bt=Or(i.nextSibling),kt=t,me=!0,Zt=null,e!==null&&(It[Nt++]=Bn,It[Nt++]=Un,It[Nt++]=bi,Bn=e.id,Un=e.overflow,bi=t),t=mp(t,r.children),t.flags|=4096,t)}function Fg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),dd(e.return,t,n)}function Yc(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function V1(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ze(e,t,r.children,n),r=ge.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fg(e,n,t);else if(e.tag===19)Fg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fe(ge,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&lu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Yc(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&lu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Yc(t,!0,n,null,s);break;case"together":Yc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function El(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ci|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=Ir(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ir(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hR(e,t,n){switch(t.tag){case 3:N1(t),Ps();break;case 5:c1(t);break;case 1:dt(t.type)&&nu(t);break;case 4:ap(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;fe(su,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fe(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?F1(e,t,n):(fe(ge,ge.current&1),e=Qn(e,t,n),e!==null?e.sibling:null);fe(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return V1(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),fe(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,_1(e,t,n)}return Qn(e,t,n)}var j1,xd,z1,B1;j1=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};xd=function(){};z1=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ni(bn.current);var s=null;switch(n){case"input":i=Uf(e,i),r=Uf(e,r),s=[];break;case"select":i=ve({},i,{value:void 0}),r=ve({},r,{value:void 0}),s=[];break;case"textarea":i=Hf(e,i),r=Hf(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=eu)}qf(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(jo.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(jo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&de("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};B1=function(e,t,n,r){n!==r&&(t.flags|=4)};function lo(e,t){if(!me)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 He(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&14680064,r|=i.flags&14680064,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 pR(e,t,n){var r=t.pendingProps;switch(ep(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return dt(t.type)&&tu(),He(t),null;case 3:return r=t.stateNode,Ms(),he(ft),he(Qe),up(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Qa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zt!==null&&(Pd(Zt),Zt=null))),xd(e,t),He(t),null;case 5:lp(t);var i=ni(Yo.current);if(n=t.type,e!==null&&t.stateNode!=null)z1(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return He(t),null}if(e=ni(bn.current),Qa(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[wn]=t,r[Qo]=s,e=(t.mode&1)!==0,n){case"dialog":de("cancel",r),de("close",r);break;case"iframe":case"object":case"embed":de("load",r);break;case"video":case"audio":for(i=0;i<xo.length;i++)de(xo[i],r);break;case"source":de("error",r);break;case"img":case"image":case"link":de("error",r),de("load",r);break;case"details":de("toggle",r);break;case"input":Km(r,s),de("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},de("invalid",r);break;case"textarea":Gm(r,s),de("invalid",r)}qf(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ga(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ga(r.textContent,a,e),i=["children",""+a]):jo.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&de("scroll",r)}switch(n){case"input":za(r),qm(r,s,!0);break;case"textarea":za(r),Qm(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=eu)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[wn]=t,e[Qo]=r,j1(e,t,!1,!1),t.stateNode=e;e:{switch(o=Gf(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;i<xo.length;i++)de(xo[i],e);i=r;break;case"source":de("error",e),i=r;break;case"img":case"image":case"link":de("error",e),de("load",e),i=r;break;case"details":de("toggle",e),i=r;break;case"input":Km(e,r),i=Uf(e,r),de("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ve({},r,{value:void 0}),de("invalid",e);break;case"textarea":Gm(e,r),i=Hf(e,r),de("invalid",e);break;default:i=r}qf(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?vw(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&gw(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&zo(e,l):typeof l=="number"&&zo(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(jo.hasOwnProperty(s)?l!=null&&s==="onScroll"&&de("scroll",e):l!=null&&jh(e,s,l,o))}switch(n){case"input":za(e),qm(e,r,!1);break;case"textarea":za(e),Qm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Fr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?is(e,!!r.multiple,s,!1):r.defaultValue!=null&&is(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=eu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return He(t),null;case 6:if(e&&t.stateNode!=null)B1(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(n=ni(Yo.current),ni(bn.current),Qa(t)){if(r=t.stateNode,n=t.memoizedProps,r[wn]=t,(s=r.nodeValue!==n)&&(e=kt,e!==null))switch(e.tag){case 3:Ga(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ga(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[wn]=t,t.stateNode=r}return He(t),null;case 13:if(he(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&bt!==null&&t.mode&1&&!(t.flags&128))s1(),Ps(),t.flags|=98560,s=!1;else if(s=Qa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(L(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(L(317));s[wn]=t}else Ps(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;He(t),s=!1}else Zt!==null&&(Pd(Zt),Zt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ge.current&1?Oe===0&&(Oe=3):Sp())),t.updateQueue!==null&&(t.flags|=4),He(t),null);case 4:return Ms(),xd(e,t),e===null&&qo(t.stateNode.containerInfo),He(t),null;case 10:return ip(t.type._context),He(t),null;case 17:return dt(t.type)&&tu(),He(t),null;case 19:if(he(ge),s=t.memoizedState,s===null)return He(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)lo(s,!1);else{if(Oe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=lu(e),o!==null){for(t.flags|=128,lo(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fe(ge,ge.current&1|2),t.child}e=e.sibling}s.tail!==null&&ke()>Ds&&(t.flags|=128,r=!0,lo(s,!1),t.lanes=4194304)}else{if(!r)if(e=lu(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),lo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!me)return He(t),null}else 2*ke()-s.renderingStartTime>Ds&&n!==1073741824&&(t.flags|=128,r=!0,lo(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ke(),t.sibling=null,n=ge.current,fe(ge,r?n&1|2:n&1),t):(He(t),null);case 22:case 23:return xp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function mR(e,t){switch(ep(t),t.tag){case 1:return dt(t.type)&&tu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ms(),he(ft),he(Qe),up(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lp(t),null;case 13:if(he(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Ps()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(ge),null;case 4:return Ms(),null;case 10:return ip(t.type._context),null;case 22:case 23:return xp(),null;case 24:return null;default:return null}}var Za=!1,qe=!1,gR=typeof WeakSet=="function"?WeakSet:Set,F=null;function Zi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function Sd(e,t,n){try{n()}catch(r){Se(e,t,r)}}var Vg=!1;function yR(e,t){if(id=Yl,e=Kw(),Zh(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(a=o),d===s&&++c===r&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(sd={focusedElem:e,selectionRange:n},Yl=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,v=p.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:Gt(t.type,m),v);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(x){Se(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return p=Vg,Vg=!1,p}function Ao(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Sd(t,n,s)}i=i.next}while(i!==r)}}function Qu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function bd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function U1(e){var t=e.alternate;t!==null&&(e.alternate=null,U1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wn],delete t[Qo],delete t[ld],delete t[JE],delete t[eR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $1(e){return e.tag===5||e.tag===3||e.tag===4}function jg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=eu));else if(r!==4&&(e=e.child,e!==null))for(kd(e,t,n),e=e.sibling;e!==null;)kd(e,t,n),e=e.sibling}function Cd(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&&(e=e.child,e!==null))for(Cd(e,t,n),e=e.sibling;e!==null;)Cd(e,t,n),e=e.sibling}var Fe=null,Yt=!1;function sr(e,t,n){for(n=n.child;n!==null;)W1(e,t,n),n=n.sibling}function W1(e,t,n){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(Bu,n)}catch{}switch(n.tag){case 5:qe||Zi(n,t);case 6:var r=Fe,i=Yt;Fe=null,sr(e,t,n),Fe=r,Yt=i,Fe!==null&&(Yt?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Yt?(e=Fe,n=n.stateNode,e.nodeType===8?Wc(e.parentNode,n):e.nodeType===1&&Wc(e,n),Wo(e)):Wc(Fe,n.stateNode));break;case 4:r=Fe,i=Yt,Fe=n.stateNode.containerInfo,Yt=!0,sr(e,t,n),Fe=r,Yt=i;break;case 0:case 11:case 14:case 15:if(!qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Sd(n,t,o),i=i.next}while(i!==r)}sr(e,t,n);break;case 1:if(!qe&&(Zi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Se(n,t,a)}sr(e,t,n);break;case 21:sr(e,t,n);break;case 22:n.mode&1?(qe=(r=qe)||n.memoizedState!==null,sr(e,t,n),qe=r):sr(e,t,n);break;default:sr(e,t,n)}}function zg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new gR),t.forEach(function(r){var i=RR.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Fe=a.stateNode,Yt=!1;break e;case 3:Fe=a.stateNode.containerInfo,Yt=!0;break e;case 4:Fe=a.stateNode.containerInfo,Yt=!0;break e}a=a.return}if(Fe===null)throw Error(L(160));W1(s,o,i),Fe=null,Yt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Se(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)H1(t,e),t=t.sibling}function H1(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ht(t,e),dn(e),r&4){try{Ao(3,e,e.return),Qu(3,e)}catch(m){Se(e,e.return,m)}try{Ao(5,e,e.return)}catch(m){Se(e,e.return,m)}}break;case 1:Ht(t,e),dn(e),r&512&&n!==null&&Zi(n,n.return);break;case 5:if(Ht(t,e),dn(e),r&512&&n!==null&&Zi(n,n.return),e.flags&32){var i=e.stateNode;try{zo(i,"")}catch(m){Se(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&hw(i,s),Gf(a,o);var u=Gf(a,s);for(o=0;o<l.length;o+=2){var c=l[o],f=l[o+1];c==="style"?vw(i,f):c==="dangerouslySetInnerHTML"?gw(i,f):c==="children"?zo(i,f):jh(i,c,f,u)}switch(a){case"input":$f(i,s);break;case"textarea":pw(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?is(i,!!s.multiple,h,!1):d!==!!s.multiple&&(s.defaultValue!=null?is(i,!!s.multiple,s.defaultValue,!0):is(i,!!s.multiple,s.multiple?[]:"",!1))}i[Qo]=s}catch(m){Se(e,e.return,m)}}break;case 6:if(Ht(t,e),dn(e),r&4){if(e.stateNode===null)throw Error(L(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(m){Se(e,e.return,m)}}break;case 3:if(Ht(t,e),dn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wo(t.containerInfo)}catch(m){Se(e,e.return,m)}break;case 4:Ht(t,e),dn(e);break;case 13:Ht(t,e),dn(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(vp=ke())),r&4&&zg(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(qe=(u=qe)||c,Ht(t,e),qe=u):Ht(t,e),dn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(F=e,c=e.child;c!==null;){for(f=F=c;F!==null;){switch(d=F,h=d.child,d.tag){case 0:case 11:case 14:case 15:Ao(4,d,d.return);break;case 1:Zi(d,d.return);var p=d.stateNode;if(typeof p.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(m){Se(r,n,m)}}break;case 5:Zi(d,d.return);break;case 22:if(d.memoizedState!==null){Ug(f);continue}}h!==null?(h.return=d,F=h):Ug(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=yw("display",o))}catch(m){Se(e,e.return,m)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){Se(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ht(t,e),dn(e),r&4&&zg(e);break;case 21:break;default:Ht(t,e),dn(e)}}function dn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if($1(n)){var r=n;break e}n=n.return}throw Error(L(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(zo(i,""),r.flags&=-33);var s=jg(e);Cd(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=jg(e);kd(e,a,o);break;default:throw Error(L(161))}}catch(l){Se(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vR(e,t,n){F=e,K1(e)}function K1(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var i=F,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Za;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||qe;a=Za;var u=qe;if(Za=o,(qe=l)&&!u)for(F=i;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?$g(i):l!==null?(l.return=o,F=l):$g(i);for(;s!==null;)F=s,K1(s),s=s.sibling;F=i,Za=a,qe=u}Bg(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,F=s):Bg(e)}}function Bg(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qe||Qu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!qe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Gt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Eg(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Eg(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Wo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(L(163))}qe||t.flags&512&&bd(t)}catch(d){Se(t,t.return,d)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Ug(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function $g(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Qu(4,t)}catch(l){Se(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Se(t,i,l)}}var s=t.return;try{bd(t)}catch(l){Se(t,s,l)}break;case 5:var o=t.return;try{bd(t)}catch(l){Se(t,o,l)}}}catch(l){Se(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var wR=Math.ceil,fu=Zn.ReactCurrentDispatcher,gp=Zn.ReactCurrentOwner,zt=Zn.ReactCurrentBatchConfig,re=0,Ie=null,Ee=null,Be=0,xt=0,Ji=Wr(0),Oe=0,ta=null,Ci=0,Xu=0,yp=0,Mo=null,ut=null,vp=0,Ds=1/0,In=null,du=!1,Ed=null,Lr=null,Ja=!1,Er=null,hu=0,Oo=0,Rd=null,Rl=-1,Tl=0;function nt(){return re&6?ke():Rl!==-1?Rl:Rl=ke()}function _r(e){return e.mode&1?re&2&&Be!==0?Be&-Be:nR.transition!==null?(Tl===0&&(Tl=Mw()),Tl):(e=oe,e!==0||(e=window.event,e=e===void 0?16:Fw(e.type)),e):1}function en(e,t,n,r){if(50<Oo)throw Oo=0,Rd=null,Error(L(185));va(e,n,r),(!(re&2)||e!==Ie)&&(e===Ie&&(!(re&2)&&(Xu|=n),Oe===4&&pr(e,Be)),ht(e,r),n===1&&re===0&&!(t.mode&1)&&(Ds=ke()+500,Ku&&Hr()))}function ht(e,t){var n=e.callbackNode;nE(e,t);var r=Xl(e,e===Ie?Be:0);if(r===0)n!==null&&Zm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Zm(n),t===1)e.tag===0?tR(Wg.bind(null,e)):n1(Wg.bind(null,e)),YE(function(){!(re&6)&&Hr()}),n=null;else{switch(Ow(r)){case 1:n=Wh;break;case 4:n=Pw;break;case 16:n=Ql;break;case 536870912:n=Aw;break;default:n=Ql}n=ex(n,q1.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function q1(e,t){if(Rl=-1,Tl=0,re&6)throw Error(L(327));var n=e.callbackNode;if(us()&&e.callbackNode!==n)return null;var r=Xl(e,e===Ie?Be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=pu(e,r);else{t=r;var i=re;re|=2;var s=Q1();(Ie!==e||Be!==t)&&(In=null,Ds=ke()+500,gi(e,t));do try{bR();break}catch(a){G1(e,a)}while(!0);rp(),fu.current=s,re=i,Ee!==null?t=0:(Ie=null,Be=0,t=Oe)}if(t!==0){if(t===2&&(i=Jf(e),i!==0&&(r=i,t=Td(e,i))),t===1)throw n=ta,gi(e,0),pr(e,r),ht(e,ke()),n;if(t===6)pr(e,r);else{if(i=e.current.alternate,!(r&30)&&!xR(i)&&(t=pu(e,r),t===2&&(s=Jf(e),s!==0&&(r=s,t=Td(e,s))),t===1))throw n=ta,gi(e,0),pr(e,r),ht(e,ke()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(L(345));case 2:Zr(e,ut,In);break;case 3:if(pr(e,r),(r&130023424)===r&&(t=vp+500-ke(),10<t)){if(Xl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){nt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ad(Zr.bind(null,e,ut,In),t);break}Zr(e,ut,In);break;case 4:if(pr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Jt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wR(r/1960))-r,10<r){e.timeoutHandle=ad(Zr.bind(null,e,ut,In),r);break}Zr(e,ut,In);break;case 5:Zr(e,ut,In);break;default:throw Error(L(329))}}}return ht(e,ke()),e.callbackNode===n?q1.bind(null,e):null}function Td(e,t){var n=Mo;return e.current.memoizedState.isDehydrated&&(gi(e,t).flags|=256),e=pu(e,t),e!==2&&(t=ut,ut=n,t!==null&&Pd(t)),e}function Pd(e){ut===null?ut=e:ut.push.apply(ut,e)}function xR(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!nn(s(),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 pr(e,t){for(t&=~yp,t&=~Xu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Jt(t),r=1<<n;e[n]=-1,t&=~r}}function Wg(e){if(re&6)throw Error(L(327));us();var t=Xl(e,0);if(!(t&1))return ht(e,ke()),null;var n=pu(e,t);if(e.tag!==0&&n===2){var r=Jf(e);r!==0&&(t=r,n=Td(e,r))}if(n===1)throw n=ta,gi(e,0),pr(e,t),ht(e,ke()),n;if(n===6)throw Error(L(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Zr(e,ut,In),ht(e,ke()),null}function wp(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(Ds=ke()+500,Ku&&Hr())}}function Ei(e){Er!==null&&Er.tag===0&&!(re&6)&&us();var t=re;re|=1;var n=zt.transition,r=oe;try{if(zt.transition=null,oe=1,e)return e()}finally{oe=r,zt.transition=n,re=t,!(re&6)&&Hr()}}function xp(){xt=Ji.current,he(Ji)}function gi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,XE(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch(ep(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&tu();break;case 3:Ms(),he(ft),he(Qe),up();break;case 5:lp(r);break;case 4:Ms();break;case 13:he(ge);break;case 19:he(ge);break;case 10:ip(r.type._context);break;case 22:case 23:xp()}n=n.return}if(Ie=e,Ee=e=Ir(e.current,null),Be=xt=t,Oe=0,ta=null,yp=Xu=Ci=0,ut=Mo=null,ti!==null){for(t=0;t<ti.length;t++)if(n=ti[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}ti=null}return e}function G1(e,t){do{var n=Ee;try{if(rp(),kl.current=cu,uu){for(var r=ye.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}uu=!1}if(ki=0,Le=Ae=ye=null,Po=!1,Zo=0,gp.current=null,n===null||n.return===null){Oe=1,ta=t,Ee=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=Be,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Og(o);if(h!==null){h.flags&=-257,Dg(h,o,a,s,t),h.mode&1&&Mg(s,u,t),t=h,l=u;var p=t.updateQueue;if(p===null){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}else{if(!(t&1)){Mg(s,u,t),Sp();break e}l=Error(L(426))}}else if(me&&a.mode&1){var v=Og(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),Dg(v,o,a,s,t),tp(Os(l,a));break e}}s=l=Os(l,a),Oe!==4&&(Oe=2),Mo===null?Mo=[s]:Mo.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=O1(s,l,t);Cg(s,g);break e;case 1:a=l;var y=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof y.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Lr===null||!Lr.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var x=D1(s,a,t);Cg(s,x);break e}}s=s.return}while(s!==null)}Y1(n)}catch(k){t=k,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(!0)}function Q1(){var e=fu.current;return fu.current=cu,e===null?cu:e}function Sp(){(Oe===0||Oe===3||Oe===2)&&(Oe=4),Ie===null||!(Ci&268435455)&&!(Xu&268435455)||pr(Ie,Be)}function pu(e,t){var n=re;re|=2;var r=Q1();(Ie!==e||Be!==t)&&(In=null,gi(e,t));do try{SR();break}catch(i){G1(e,i)}while(!0);if(rp(),re=n,fu.current=r,Ee!==null)throw Error(L(261));return Ie=null,Be=0,Oe}function SR(){for(;Ee!==null;)X1(Ee)}function bR(){for(;Ee!==null&&!qC();)X1(Ee)}function X1(e){var t=J1(e.alternate,e,xt);e.memoizedProps=e.pendingProps,t===null?Y1(e):Ee=t,gp.current=null}function Y1(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=mR(n,t),n!==null){n.flags&=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Oe=6,Ee=null;return}}else if(n=pR(n,t,xt),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Oe===0&&(Oe=5)}function Zr(e,t,n){var r=oe,i=zt.transition;try{zt.transition=null,oe=1,kR(e,t,n,r)}finally{zt.transition=i,oe=r}return null}function kR(e,t,n,r){do us();while(Er!==null);if(re&6)throw Error(L(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(L(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(rE(e,s),e===Ie&&(Ee=Ie=null,Be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ja||(Ja=!0,ex(Ql,function(){return us(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=zt.transition,zt.transition=null;var o=oe;oe=1;var a=re;re|=4,gp.current=null,yR(e,n),H1(n,e),$E(sd),Yl=!!id,sd=id=null,e.current=n,vR(n),GC(),re=a,oe=o,zt.transition=s}else e.current=n;if(Ja&&(Ja=!1,Er=e,hu=i),s=e.pendingLanes,s===0&&(Lr=null),YC(n.stateNode),ht(e,ke()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(du)throw du=!1,e=Ed,Ed=null,e;return hu&1&&e.tag!==0&&us(),s=e.pendingLanes,s&1?e===Rd?Oo++:(Oo=0,Rd=e):Oo=0,Hr(),null}function us(){if(Er!==null){var e=Ow(hu),t=zt.transition,n=oe;try{if(zt.transition=null,oe=16>e?16:e,Er===null)var r=!1;else{if(e=Er,Er=null,hu=0,re&6)throw Error(L(331));var i=re;for(re|=4,F=e.current;F!==null;){var s=F,o=s.child;if(F.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:Ao(8,c,s)}var f=c.child;if(f!==null)f.return=c,F=f;else for(;F!==null;){c=F;var d=c.sibling,h=c.return;if(U1(c),c===u){F=null;break}if(d!==null){d.return=h,F=d;break}F=h}}}var p=s.alternate;if(p!==null){var m=p.child;if(m!==null){p.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(m!==null)}}F=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,F=o;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ao(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,F=g;break e}F=s.return}}var y=e.current;for(F=y;F!==null;){o=F;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,F=w;else e:for(o=y;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Qu(9,a)}}catch(k){Se(a,a.return,k)}if(a===o){F=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,F=x;break e}F=a.return}}if(re=i,Hr(),Sn&&typeof Sn.onPostCommitFiberRoot=="function")try{Sn.onPostCommitFiberRoot(Bu,e)}catch{}r=!0}return r}finally{oe=n,zt.transition=t}}return!1}function Hg(e,t,n){t=Os(n,t),t=O1(e,t,1),e=Dr(e,t,1),t=nt(),e!==null&&(va(e,1,t),ht(e,t))}function Se(e,t,n){if(e.tag===3)Hg(e,e,n);else for(;t!==null;){if(t.tag===3){Hg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Lr===null||!Lr.has(r))){e=Os(n,e),e=D1(t,e,1),t=Dr(t,e,1),e=nt(),t!==null&&(va(t,1,e),ht(t,e));break}}t=t.return}}function CR(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=nt(),e.pingedLanes|=e.suspendedLanes&n,Ie===e&&(Be&n)===n&&(Oe===4||Oe===3&&(Be&130023424)===Be&&500>ke()-vp?gi(e,0):yp|=n),ht(e,t)}function Z1(e,t){t===0&&(e.mode&1?(t=$a,$a<<=1,!($a&130023424)&&($a=4194304)):t=1);var n=nt();e=Gn(e,t),e!==null&&(va(e,t,n),ht(e,n))}function ER(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Z1(e,n)}function RR(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),Z1(e,n)}var J1;J1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,hR(e,t,n);ct=!!(e.flags&131072)}else ct=!1,me&&t.flags&1048576&&r1(t,iu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;El(e,t),e=t.pendingProps;var i=Ts(t,Qe.current);ls(t,n),i=fp(null,t,r,e,i,n);var s=dp();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(s=!0,nu(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,op(t),i.updater=Gu,t.stateNode=i,i._reactInternals=t,pd(t,r,e,n),t=yd(null,t,r,!0,s,n)):(t.tag=0,me&&s&&Jh(t),Ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(El(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=PR(r),e=Gt(r,e),i){case 0:t=gd(null,t,r,e,n);break e;case 1:t=Ig(null,t,r,e,n);break e;case 11:t=Lg(null,t,r,e,n);break e;case 14:t=_g(null,t,r,Gt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),gd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),Ig(e,t,r,i,n);case 3:e:{if(N1(t),e===null)throw Error(L(387));r=t.pendingProps,s=t.memoizedState,i=s.element,u1(e,t),au(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Os(Error(L(423)),t),t=Ng(e,t,r,n,i);break e}else if(r!==i){i=Os(Error(L(424)),t),t=Ng(e,t,r,n,i);break e}else for(bt=Or(t.stateNode.containerInfo.firstChild),kt=t,me=!0,Zt=null,n=a1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ps(),r===i){t=Qn(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return c1(t),e===null&&fd(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,od(r,i)?o=null:s!==null&&od(r,s)&&(t.flags|=32),I1(e,t),Ze(e,t,o,n),t.child;case 6:return e===null&&fd(t),null;case 13:return F1(e,t,n);case 4:return ap(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=As(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),Lg(e,t,r,i,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,fe(su,r._currentValue),r._currentValue=o,s!==null)if(nn(s.value,o)){if(s.children===i.children&&!ft.current){t=Qn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Wn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),dd(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(L(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),dd(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ls(t,n),i=Ut(i),r=r(i),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,i=Gt(r,t.pendingProps),i=Gt(r.type,i),_g(e,t,r,i,n);case 15:return L1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),El(e,t),t.tag=1,dt(r)?(e=!0,nu(t)):e=!1,ls(t,n),M1(t,r,i),pd(t,r,i,n),yd(null,t,r,!0,e,n);case 19:return V1(e,t,n);case 22:return _1(e,t,n)}throw Error(L(156,t.tag))};function ex(e,t){return Tw(e,t)}function TR(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.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 Vt(e,t,n,r){return new TR(e,t,n,r)}function bp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function PR(e){if(typeof e=="function")return bp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bh)return 11;if(e===Uh)return 14}return 2}function Ir(e,t){var n=e.alternate;return n===null?(n=Vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pl(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")bp(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $i:return yi(n.children,i,s,t);case zh:o=8,i|=8;break;case Vf:return e=Vt(12,n,t,i|2),e.elementType=Vf,e.lanes=s,e;case jf:return e=Vt(13,n,t,i),e.elementType=jf,e.lanes=s,e;case zf:return e=Vt(19,n,t,i),e.elementType=zf,e.lanes=s,e;case cw:return Yu(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lw:o=10;break e;case uw:o=9;break e;case Bh:o=11;break e;case Uh:o=14;break e;case cr:o=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=Vt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function yi(e,t,n,r){return e=Vt(7,e,r,t),e.lanes=n,e}function Yu(e,t,n,r){return e=Vt(22,e,r,t),e.elementType=cw,e.lanes=n,e.stateNode={isHidden:!1},e}function Zc(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function Jc(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function AR(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lc(0),this.expirationTimes=Lc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function kp(e,t,n,r,i,s,o,a,l){return e=new AR(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Vt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},op(s),e}function MR(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ui,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function tx(e){if(!e)return Vr;e=e._reactInternals;e:{if(Mi(e)!==e||e.tag!==1)throw Error(L(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(dt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(L(171))}if(e.tag===1){var n=e.type;if(dt(n))return t1(e,n,t)}return t}function nx(e,t,n,r,i,s,o,a,l){return e=kp(n,r,!0,e,i,s,o,a,l),e.context=tx(null),n=e.current,r=nt(),i=_r(n),s=Wn(r,i),s.callback=t??null,Dr(n,s,i),e.current.lanes=i,va(e,i,r),ht(e,r),e}function Zu(e,t,n,r){var i=t.current,s=nt(),o=_r(i);return n=tx(n),t.context===null?t.context=n:t.pendingContext=n,t=Wn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Dr(i,t,o),e!==null&&(en(e,i,o,s),bl(e,i,o)),o}function mu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Kg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Cp(e,t){Kg(e,t),(e=e.alternate)&&Kg(e,t)}function OR(){return null}var rx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ep(e){this._internalRoot=e}Ju.prototype.render=Ep.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(L(409));Zu(e,t,null,null)};Ju.prototype.unmount=Ep.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ei(function(){Zu(null,e,null,null)}),t[qn]=null}};function Ju(e){this._internalRoot=e}Ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=_w();e={blockedOn:null,target:e,priority:t};for(var n=0;n<hr.length&&t!==0&&t<hr[n].priority;n++);hr.splice(n,0,e),n===0&&Nw(e)}};function Rp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ec(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qg(){}function DR(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=mu(o);s.call(u)}}var o=nx(t,r,e,0,null,!1,!1,"",qg);return e._reactRootContainer=o,e[qn]=o.current,qo(e.nodeType===8?e.parentNode:e),Ei(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=mu(l);a.call(u)}}var l=kp(e,0,!1,null,null,!1,!1,"",qg);return e._reactRootContainer=l,e[qn]=l.current,qo(e.nodeType===8?e.parentNode:e),Ei(function(){Zu(t,l,n,r)}),l}function tc(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=mu(o);a.call(l)}}Zu(t,o,e,i)}else o=DR(n,t,e,i,r);return mu(o)}Dw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=wo(t.pendingLanes);n!==0&&(Hh(t,n|1),ht(t,ke()),!(re&6)&&(Ds=ke()+500,Hr()))}break;case 13:Ei(function(){var r=Gn(e,1);if(r!==null){var i=nt();en(r,e,1,i)}}),Cp(e,1)}};Kh=function(e){if(e.tag===13){var t=Gn(e,134217728);if(t!==null){var n=nt();en(t,e,134217728,n)}Cp(e,134217728)}};Lw=function(e){if(e.tag===13){var t=_r(e),n=Gn(e,t);if(n!==null){var r=nt();en(n,e,t,r)}Cp(e,t)}};_w=function(){return oe};Iw=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};Xf=function(e,t,n){switch(t){case"input":if($f(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Hu(r);if(!i)throw Error(L(90));dw(r),$f(r,i)}}}break;case"textarea":pw(e,n);break;case"select":t=n.value,t!=null&&is(e,!!n.multiple,t,!1)}};Sw=wp;bw=Ei;var LR={usingClientEntryPoint:!1,Events:[xa,qi,Hu,ww,xw,wp]},uo={findFiberByHostInstance:ei,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_R={bundleType:uo.bundleType,version:uo.version,rendererPackageName:uo.rendererPackageName,rendererConfig:uo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ew(e),e===null?null:e.stateNode},findFiberByHostInstance:uo.findFiberByHostInstance||OR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var el=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!el.isDisabled&&el.supportsFiber)try{Bu=el.inject(_R),Sn=el}catch{}}Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=LR;Tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rp(t))throw Error(L(200));return MR(e,t,null,n)};Tt.createRoot=function(e,t){if(!Rp(e))throw Error(L(299));var n=!1,r="",i=rx;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=kp(e,1,!1,null,null,n,!1,r,i),e[qn]=t.current,qo(e.nodeType===8?e.parentNode:e),new Ep(t)};Tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(L(188)):(e=Object.keys(e).join(","),Error(L(268,e)));return e=Ew(t),e=e===null?null:e.stateNode,e};Tt.flushSync=function(e){return Ei(e)};Tt.hydrate=function(e,t,n){if(!ec(t))throw Error(L(200));return tc(null,e,t,!0,n)};Tt.hydrateRoot=function(e,t,n){if(!Rp(e))throw Error(L(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=rx;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=nx(t,null,e,1,n??null,i,!1,s,o),e[qn]=t.current,qo(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ju(t)};Tt.render=function(e,t,n){if(!ec(t))throw Error(L(200));return tc(null,e,t,!1,n)};Tt.unmountComponentAtNode=function(e){if(!ec(e))throw Error(L(40));return e._reactRootContainer?(Ei(function(){tc(null,null,e,!1,function(){e._reactRootContainer=null,e[qn]=null})}),!0):!1};Tt.unstable_batchedUpdates=wp;Tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ec(n))throw Error(L(200));if(e==null||e._reactInternals===void 0)throw Error(L(38));return tc(e,t,n,!1,r)};Tt.version="18.3.1-next-f1338f8080-20240426";function ix(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ix)}catch(e){console.error(e)}}ix(),iw.exports=Tt;var Rr=iw.exports;const vN=K0(Rr);var Gg=Rr;Um.createRoot=Gg.createRoot,Um.hydrateRoot=Gg.hydrateRoot;var Us=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(){}},IR={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},mr,Dh,I0,NR=(I0=class{constructor(){$(this,mr,IR);$(this,Dh,!1)}setTimeoutProvider(e){I(this,mr,e)}setTimeout(e,t){return C(this,mr).setTimeout(e,t)}clearTimeout(e){C(this,mr).clearTimeout(e)}setInterval(e,t){return C(this,mr).setInterval(e,t)}clearInterval(e){C(this,mr).clearInterval(e)}},mr=new WeakMap,Dh=new WeakMap,I0),ri=new NR;function FR(e){setTimeout(e,0)}var Ls=typeof window>"u"||"Deno"in globalThis;function Dt(){}function VR(e,t){return typeof e=="function"?e(t):e}function Ad(e){return typeof e=="number"&&e>=0&&e!==1/0}function sx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Nr(e,t){return typeof e=="function"?e(t):e}function Lt(e,t){return typeof e=="function"?e(t):e}function Qg(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Tp(o,t.options))return!1}else if(!na(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function Xg(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Ri(t.options.mutationKey)!==Ri(s))return!1}else if(!na(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Tp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ri)(e)}function Ri(e){return JSON.stringify(e,(t,n)=>Md(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function na(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>na(e[n],t[n])):!1}var jR=Object.prototype.hasOwnProperty;function ox(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Yg(e)&&Yg(t);if(!r&&!(Md(e)&&Md(t)))return t;const s=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),a=o.length,l=r?new Array(a):{};let u=0;for(let c=0;c<a;c++){const f=r?c:o[c],d=e[f],h=t[f];if(d===h){l[f]=d,(r?c<s:jR.call(e,f))&&u++;continue}if(d===null||h===null||typeof d!="object"||typeof h!="object"){l[f]=h;continue}const p=ox(d,h,n+1);l[f]=p,p===d&&u++}return s===a&&u===s?e:l}function gu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Yg(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Md(e){if(!Zg(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Zg(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Zg(e){return Object.prototype.toString.call(e)==="[object Object]"}function zR(e){return new Promise(t=>{ri.setTimeout(t,e)})}function Od(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ox(e,t):t}function wN(e){return e}function BR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function UR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Pp=Symbol();function ax(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Pp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function xN(e,t){return typeof e=="function"?e(...t):!!e}function $R(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var ai,gr,ps,N0,WR=(N0=class extends Us{constructor(){super();$(this,ai);$(this,gr);$(this,ps);I(this,ps,t=>{if(!Ls&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,gr)||this.setEventListener(C(this,ps))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,gr))==null||t.call(this),I(this,gr,void 0))}setEventListener(t){var n;I(this,ps,t),(n=C(this,gr))==null||n.call(this),I(this,gr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,ai)!==t&&(I(this,ai,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,ai)=="boolean"?C(this,ai):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ai=new WeakMap,gr=new WeakMap,ps=new WeakMap,N0),Ap=new WR;function Dd(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var HR=FR;function KR(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=HR;const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var je=KR(),ms,yr,gs,F0,qR=(F0=class extends Us{constructor(){super();$(this,ms,!0);$(this,yr);$(this,gs);I(this,gs,t=>{if(!Ls&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,yr)||this.setEventListener(C(this,gs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,yr))==null||t.call(this),I(this,yr,void 0))}setEventListener(t){var n;I(this,gs,t),(n=C(this,yr))==null||n.call(this),I(this,yr,t(this.setOnline.bind(this)))}setOnline(t){C(this,ms)!==t&&(I(this,ms,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,ms)}},ms=new WeakMap,yr=new WeakMap,gs=new WeakMap,F0),yu=new qR;function GR(e){return Math.min(1e3*2**e,3e4)}function lx(e){return(e??"online")==="online"?yu.isOnline():!0}var Ld=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ux(e){let t=!1,n=0,r;const i=Dd(),s=()=>i.status!=="pending",o=m=>{var v;if(!s()){const g=new Ld(m);d(g),(v=e.onCancel)==null||v.call(e,g)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>Ap.isFocused()&&(e.networkMode==="always"||yu.isOnline())&&e.canRun(),c=()=>lx(e.networkMode)&&e.canRun(),f=m=>{s()||(r==null||r(),i.resolve(m))},d=m=>{s()||(r==null||r(),i.reject(m))},h=()=>new Promise(m=>{var v;r=g=>{(s()||u())&&m(g)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;r=void 0,s()||(m=e.onContinue)==null||m.call(e)}),p=()=>{if(s())return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(g){m=Promise.reject(g)}Promise.resolve(m).then(f).catch(g=>{var R;if(s())return;const y=e.retry??(Ls?0:3),w=e.retryDelay??GR,x=typeof w=="function"?w(n,g):w,k=y===!0||typeof y=="number"&&n<y||typeof y=="function"&&y(n,g);if(t||!k){d(g);return}n++,(R=e.onFail)==null||R.call(e,n,g),zR(x).then(()=>u()?void 0:h()).then(()=>{t?d(g):p()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?p():h().then(p),i)}}var li,V0,cx=(V0=class{constructor(){$(this,li)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ad(this.gcTime)&&I(this,li,ri.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ls?1/0:5*60*1e3))}clearGcTimeout(){C(this,li)&&(ri.clearTimeout(C(this,li)),I(this,li,void 0))}},li=new WeakMap,V0),ui,ys,Ot,ci,De,da,fi,Qt,Ln,j0,QR=(j0=class extends cx{constructor(t){super();$(this,Qt);$(this,ui);$(this,ys);$(this,Ot);$(this,ci);$(this,De);$(this,da);$(this,fi);I(this,fi,!1),I(this,da,t.defaultOptions),this.setOptions(t.options),this.observers=[],I(this,ci,t.client),I(this,Ot,C(this,ci).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,I(this,ui,ey(this.options)),this.state=t.state??C(this,ui),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,De))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,da),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=ey(this.options);n.data!==void 0&&(this.setState(Jg(n.data,n.dataUpdatedAt)),I(this,ui,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Ot).remove(this)}setData(t,n){const r=Od(this.state.data,t,this.options);return Y(this,Qt,Ln).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Y(this,Qt,Ln).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,De))==null?void 0:r.promise;return(i=C(this,De))==null||i.cancel(t),n?n.then(Dt).catch(Dt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,ui))}isActive(){return this.observers.some(t=>Lt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Pp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Nr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!sx(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,De))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,De))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,Ot).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,De)&&(C(this,fi)?C(this,De).cancel({revert:!0}):C(this,De).cancelRetry()),this.scheduleGc()),C(this,Ot).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Y(this,Qt,Ln).call(this,{type:"invalidate"})}async fetch(t,n){var l,u,c,f,d,h,p,m,v,g,y,w;if(this.state.fetchStatus!=="idle"&&((l=C(this,De))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,De))return C(this,De).continueRetry(),C(this,De).promise}if(t&&this.setOptions(t),!this.options.queryFn){const x=this.observers.find(k=>k.options.queryFn);x&&this.setOptions(x.options)}const r=new AbortController,i=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(I(this,fi,!0),r.signal)})},s=()=>{const x=ax(this.options,n),R=(()=>{const E={client:C(this,ci),queryKey:this.queryKey,meta:this.meta};return i(E),E})();return I(this,fi,!1),this.options.persister?this.options.persister(x,R,this):x(R)},a=(()=>{const x={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,ci),state:this.state,fetchFn:s};return i(x),x})();(u=this.options.behavior)==null||u.onFetch(a,this),I(this,ys,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Y(this,Qt,Ln).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta}),I(this,De,ux({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:x=>{x instanceof Ld&&x.revert&&this.setState({...C(this,ys),fetchStatus:"idle"}),r.abort()},onFail:(x,k)=>{Y(this,Qt,Ln).call(this,{type:"failed",failureCount:x,error:k})},onPause:()=>{Y(this,Qt,Ln).call(this,{type:"pause"})},onContinue:()=>{Y(this,Qt,Ln).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const x=await C(this,De).start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),(h=(d=C(this,Ot).config).onSuccess)==null||h.call(d,x,this),(m=(p=C(this,Ot).config).onSettled)==null||m.call(p,x,this.state.error,this),x}catch(x){if(x instanceof Ld){if(x.silent)return C(this,De).promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw Y(this,Qt,Ln).call(this,{type:"error",error:x}),(g=(v=C(this,Ot).config).onError)==null||g.call(v,x,this),(w=(y=C(this,Ot).config).onSettled)==null||w.call(y,this.state.data,x,this),x}finally{this.scheduleGc()}}},ui=new WeakMap,ys=new WeakMap,Ot=new WeakMap,ci=new WeakMap,De=new WeakMap,da=new WeakMap,fi=new WeakMap,Qt=new WeakSet,Ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...fx(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...Jg(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return I(this,ys,t.manual?i:void 0),i;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),je.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,Ot).notify({query:this,type:"updated",action:t})})},j0);function fx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Jg(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ey(e){const 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 at,te,ha,Ye,di,vs,Fn,vr,pa,ws,xs,hi,pi,wr,Ss,se,So,_d,Id,Nd,Fd,Vd,jd,zd,dx,z0,SN=(z0=class extends Us{constructor(t,n){super();$(this,se);$(this,at);$(this,te);$(this,ha);$(this,Ye);$(this,di);$(this,vs);$(this,Fn);$(this,vr);$(this,pa);$(this,ws);$(this,xs);$(this,hi);$(this,pi);$(this,wr);$(this,Ss,new Set);this.options=n,I(this,at,t),I(this,vr,null),I(this,Fn,Dd()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,te).addObserver(this),ty(C(this,te),this.options)?Y(this,se,So).call(this):this.updateResult(),Y(this,se,Fd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bd(C(this,te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bd(C(this,te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Y(this,se,Vd).call(this),Y(this,se,jd).call(this),C(this,te).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,te);if(this.options=C(this,at).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Lt(this.options.enabled,C(this,te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Y(this,se,zd).call(this),C(this,te).setOptions(this.options),n._defaulted&&!gu(this.options,n)&&C(this,at).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,te),observer:this});const i=this.hasListeners();i&&ny(C(this,te),r,this.options,n)&&Y(this,se,So).call(this),this.updateResult(),i&&(C(this,te)!==r||Lt(this.options.enabled,C(this,te))!==Lt(n.enabled,C(this,te))||Nr(this.options.staleTime,C(this,te))!==Nr(n.staleTime,C(this,te)))&&Y(this,se,_d).call(this);const s=Y(this,se,Id).call(this);i&&(C(this,te)!==r||Lt(this.options.enabled,C(this,te))!==Lt(n.enabled,C(this,te))||s!==C(this,wr))&&Y(this,se,Nd).call(this,s)}getOptimisticResult(t){const n=C(this,at).getQueryCache().build(C(this,at),t),r=this.createResult(n,t);return YR(this,r)&&(I(this,Ye,r),I(this,vs,this.options),I(this,di,C(this,te).state)),r}getCurrentResult(){return C(this,Ye)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Fn).status==="pending"&&C(this,Fn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){C(this,Ss).add(t)}getCurrentQuery(){return C(this,te)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,at).defaultQueryOptions(t),r=C(this,at).getQueryCache().build(C(this,at),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Y(this,se,So).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ye)))}createResult(t,n){var A;const r=C(this,te),i=this.options,s=C(this,Ye),o=C(this,di),a=C(this,vs),u=t!==r?t.state:C(this,ha),{state:c}=t;let f={...c},d=!1,h;if(n._optimisticResults){const T=this.hasListeners(),D=!T&&ty(t,n),N=T&&ny(t,r,n,i);(D||N)&&(f={...f,...fx(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:v}=f;h=f.data;let g=!1;if(n.placeholderData!==void 0&&h===void 0&&v==="pending"){let T;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(T=s.data,g=!0):T=typeof n.placeholderData=="function"?n.placeholderData((A=C(this,xs))==null?void 0:A.state.data,C(this,xs)):n.placeholderData,T!==void 0&&(v="success",h=Od(s==null?void 0:s.data,T,n),d=!0)}if(n.select&&h!==void 0&&!g)if(s&&h===(o==null?void 0:o.data)&&n.select===C(this,pa))h=C(this,ws);else try{I(this,pa,n.select),h=n.select(h),h=Od(s==null?void 0:s.data,h,n),I(this,ws,h),I(this,vr,null)}catch(T){I(this,vr,T)}C(this,vr)&&(p=C(this,vr),h=C(this,ws),m=Date.now(),v="error");const y=f.fetchStatus==="fetching",w=v==="pending",x=v==="error",k=w&&y,R=h!==void 0,b={status:v,fetchStatus:f.fetchStatus,isPending:w,isSuccess:v==="success",isError:x,isInitialLoading:k,isLoading:k,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!w,isLoadingError:x&&!R,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:x&&R,isStale:Mp(t,n),refetch:this.refetch,promise:C(this,Fn),isEnabled:Lt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=b.data!==void 0,D=b.status==="error"&&!T,N=X=>{D?X.reject(b.error):T&&X.resolve(b.data)},H=()=>{const X=I(this,Fn,b.promise=Dd());N(X)},U=C(this,Fn);switch(U.status){case"pending":t.queryHash===r.queryHash&&N(U);break;case"fulfilled":(D||b.data!==U.value)&&H();break;case"rejected":(!D||b.error!==U.reason)&&H();break}}return b}updateResult(){const t=C(this,Ye),n=this.createResult(C(this,te),this.options);if(I(this,di,C(this,te).state),I(this,vs,this.options),C(this,di).data!==void 0&&I(this,xs,C(this,te)),gu(n,t))return;I(this,Ye,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!C(this,Ss).size)return!0;const o=new Set(s??C(this,Ss));return this.options.throwOnError&&o.add("error"),Object.keys(C(this,Ye)).some(a=>{const l=a;return C(this,Ye)[l]!==t[l]&&o.has(l)})};Y(this,se,dx).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Y(this,se,Fd).call(this)}},at=new WeakMap,te=new WeakMap,ha=new WeakMap,Ye=new WeakMap,di=new WeakMap,vs=new WeakMap,Fn=new WeakMap,vr=new WeakMap,pa=new WeakMap,ws=new WeakMap,xs=new WeakMap,hi=new WeakMap,pi=new WeakMap,wr=new WeakMap,Ss=new WeakMap,se=new WeakSet,So=function(t){Y(this,se,zd).call(this);let n=C(this,te).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Dt)),n},_d=function(){Y(this,se,Vd).call(this);const t=Nr(this.options.staleTime,C(this,te));if(Ls||C(this,Ye).isStale||!Ad(t))return;const r=sx(C(this,Ye).dataUpdatedAt,t)+1;I(this,hi,ri.setTimeout(()=>{C(this,Ye).isStale||this.updateResult()},r))},Id=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,te)):this.options.refetchInterval)??!1},Nd=function(t){Y(this,se,jd).call(this),I(this,wr,t),!(Ls||Lt(this.options.enabled,C(this,te))===!1||!Ad(C(this,wr))||C(this,wr)===0)&&I(this,pi,ri.setInterval(()=>{(this.options.refetchIntervalInBackground||Ap.isFocused())&&Y(this,se,So).call(this)},C(this,wr)))},Fd=function(){Y(this,se,_d).call(this),Y(this,se,Nd).call(this,Y(this,se,Id).call(this))},Vd=function(){C(this,hi)&&(ri.clearTimeout(C(this,hi)),I(this,hi,void 0))},jd=function(){C(this,pi)&&(ri.clearInterval(C(this,pi)),I(this,pi,void 0))},zd=function(){const t=C(this,at).getQueryCache().build(C(this,at),this.options);if(t===C(this,te))return;const n=C(this,te);I(this,te,t),I(this,ha,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},dx=function(t){je.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ye))}),C(this,at).getQueryCache().notify({query:C(this,te),type:"observerResultsUpdated"})})},z0);function XR(e,t){return Lt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ty(e,t){return XR(e,t)||e.state.data!==void 0&&Bd(e,t,t.refetchOnMount)}function Bd(e,t,n){if(Lt(t.enabled,e)!==!1&&Nr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Mp(e,t)}return!1}function ny(e,t,n,r){return(e!==t||Lt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Mp(e,n)}function Mp(e,t){return Lt(t.enabled,e)!==!1&&e.isStaleByTime(Nr(t.staleTime,e))}function YR(e,t){return!gu(e.getCurrentResult(),t)}function ry(e){return{onFetch:(t,n)=>{var c,f,d,h,p;const r=t.options,i=(d=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],o=((p=t.state.data)==null?void 0:p.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const v=w=>{$R(w,()=>t.signal,()=>m=!0)},g=ax(t.options,t.fetchOptions),y=async(w,x,k)=>{if(m)return Promise.reject();if(x==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:x,direction:k?"backward":"forward",meta:t.options.meta};return v(D),D})(),b=await g(E),{maxPages:A}=t.options,T=k?UR:BR;return{pages:T(w.pages,b,A),pageParams:T(w.pageParams,x,A)}};if(i&&s.length){const w=i==="backward",x=w?ZR:iy,k={pages:s,pageParams:o},R=x(r,k);a=await y(k,R,w)}else{const w=e??s.length;do{const x=l===0?o[0]??r.initialPageParam:iy(r,a);if(l>0&&x==null)break;a=await y(a,x),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var m,v;return(v=(m=t.options).persister)==null?void 0:v.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function iy(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ZR(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ma,mn,Ke,mi,gn,lr,B0,JR=(B0=class extends cx{constructor(t){super();$(this,gn);$(this,ma);$(this,mn);$(this,Ke);$(this,mi);I(this,ma,t.client),this.mutationId=t.mutationId,I(this,Ke,t.mutationCache),I(this,mn,[]),this.state=t.state||hx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,mn).includes(t)||(C(this,mn).push(t),this.clearGcTimeout(),C(this,Ke).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){I(this,mn,C(this,mn).filter(n=>n!==t)),this.scheduleGc(),C(this,Ke).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,mn).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ke).remove(this))}continue(){var t;return((t=C(this,mi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,a,l,u,c,f,d,h,p,m,v,g,y,w,x,k,R,E;const n=()=>{Y(this,gn,lr).call(this,{type:"continue"})},r={client:C(this,ma),meta:this.options.meta,mutationKey:this.options.mutationKey};I(this,mi,ux({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(b,A)=>{Y(this,gn,lr).call(this,{type:"failed",failureCount:b,error:A})},onPause:()=>{Y(this,gn,lr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ke).canRun(this)}));const i=this.state.status==="pending",s=!C(this,mi).canStart();try{if(i)n();else{Y(this,gn,lr).call(this,{type:"pending",variables:t,isPaused:s}),C(this,Ke).config.onMutate&&await C(this,Ke).config.onMutate(t,this,r);const A=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t,r));A!==this.state.context&&Y(this,gn,lr).call(this,{type:"pending",context:A,variables:t,isPaused:s})}const b=await C(this,mi).start();return await((u=(l=C(this,Ke).config).onSuccess)==null?void 0:u.call(l,b,t,this.state.context,this,r)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,b,t,this.state.context,r)),await((h=(d=C(this,Ke).config).onSettled)==null?void 0:h.call(d,b,null,this.state.variables,this.state.context,this,r)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,b,null,t,this.state.context,r)),Y(this,gn,lr).call(this,{type:"success",data:b}),b}catch(b){try{await((g=(v=C(this,Ke).config).onError)==null?void 0:g.call(v,b,t,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((w=(y=this.options).onError)==null?void 0:w.call(y,b,t,this.state.context,r))}catch(A){Promise.reject(A)}try{await((k=(x=C(this,Ke).config).onSettled)==null?void 0:k.call(x,void 0,b,this.state.variables,this.state.context,this,r))}catch(A){Promise.reject(A)}try{await((E=(R=this.options).onSettled)==null?void 0:E.call(R,void 0,b,t,this.state.context,r))}catch(A){Promise.reject(A)}throw Y(this,gn,lr).call(this,{type:"error",error:b}),b}finally{C(this,Ke).runNext(this)}}},ma=new WeakMap,mn=new WeakMap,Ke=new WeakMap,mi=new WeakMap,gn=new WeakSet,lr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),je.batch(()=>{C(this,mn).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ke).notify({mutation:this,type:"updated",action:t})})},B0);function hx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vn,Xt,ga,U0,e2=(U0=class extends Us{constructor(t={}){super();$(this,Vn);$(this,Xt);$(this,ga);this.config=t,I(this,Vn,new Set),I(this,Xt,new Map),I(this,ga,0)}build(t,n,r){const i=new JR({client:t,mutationCache:this,mutationId:++Fa(this,ga)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){C(this,Vn).add(t);const n=tl(t);if(typeof n=="string"){const r=C(this,Xt).get(n);r?r.push(t):C(this,Xt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,Vn).delete(t)){const n=tl(t);if(typeof n=="string"){const r=C(this,Xt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&C(this,Xt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=tl(t);if(typeof n=="string"){const r=C(this,Xt).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=tl(t);if(typeof n=="string"){const i=(r=C(this,Xt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){je.batch(()=>{C(this,Vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,Vn).clear(),C(this,Xt).clear()})}getAll(){return Array.from(C(this,Vn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Xg(n,r))}findAll(t={}){return this.getAll().filter(n=>Xg(t,n))}notify(t){je.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return je.batch(()=>Promise.all(t.map(n=>n.continue().catch(Dt))))}},Vn=new WeakMap,Xt=new WeakMap,ga=new WeakMap,U0);function tl(e){var t;return(t=e.options.scope)==null?void 0:t.id}var jn,xr,lt,zn,Hn,Al,Ud,$0,bN=($0=class extends Us{constructor(t,n){super();$(this,Hn);$(this,jn);$(this,xr);$(this,lt);$(this,zn);I(this,jn,t),this.setOptions(n),this.bindMethods(),Y(this,Hn,Al).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=C(this,jn).defaultMutationOptions(t),gu(this.options,n)||C(this,jn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,lt),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ri(n.mutationKey)!==Ri(this.options.mutationKey)?this.reset():((r=C(this,lt))==null?void 0:r.state.status)==="pending"&&C(this,lt).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=C(this,lt))==null||t.removeObserver(this)}onMutationUpdate(t){Y(this,Hn,Al).call(this),Y(this,Hn,Ud).call(this,t)}getCurrentResult(){return C(this,xr)}reset(){var t;(t=C(this,lt))==null||t.removeObserver(this),I(this,lt,void 0),Y(this,Hn,Al).call(this),Y(this,Hn,Ud).call(this)}mutate(t,n){var r;return I(this,zn,n),(r=C(this,lt))==null||r.removeObserver(this),I(this,lt,C(this,jn).getMutationCache().build(C(this,jn),this.options)),C(this,lt).addObserver(this),C(this,lt).execute(t)}},jn=new WeakMap,xr=new WeakMap,lt=new WeakMap,zn=new WeakMap,Hn=new WeakSet,Al=function(){var n;const t=((n=C(this,lt))==null?void 0:n.state)??hx();I(this,xr,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Ud=function(t){je.batch(()=>{var n,r,i,s,o,a,l,u;if(C(this,zn)&&this.hasListeners()){const c=C(this,xr).variables,f=C(this,xr).context,d={client:C(this,jn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(r=(n=C(this,zn)).onSuccess)==null||r.call(n,t.data,c,f,d)}catch(h){Promise.reject(h)}try{(s=(i=C(this,zn)).onSettled)==null||s.call(i,t.data,null,c,f,d)}catch(h){Promise.reject(h)}}else if((t==null?void 0:t.type)==="error"){try{(a=(o=C(this,zn)).onError)==null||a.call(o,t.error,c,f,d)}catch(h){Promise.reject(h)}try{(u=(l=C(this,zn)).onSettled)==null||u.call(l,void 0,t.error,c,f,d)}catch(h){Promise.reject(h)}}}this.listeners.forEach(c=>{c(C(this,xr))})})},$0),yn,W0,t2=(W0=class extends Us{constructor(t={}){super();$(this,yn);this.config=t,I(this,yn,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Tp(i,n);let o=this.get(s);return o||(o=new QR({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){C(this,yn).has(t.queryHash)||(C(this,yn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,yn).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,yn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){je.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,yn).get(t)}getAll(){return[...C(this,yn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Qg(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Qg(t,r)):n}notify(t){je.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){je.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){je.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},yn=new WeakMap,W0),we,Sr,br,bs,ks,kr,Cs,Es,H0,kN=(H0=class{constructor(e={}){$(this,we);$(this,Sr);$(this,br);$(this,bs);$(this,ks);$(this,kr);$(this,Cs);$(this,Es);I(this,we,e.queryCache||new t2),I(this,Sr,e.mutationCache||new e2),I(this,br,e.defaultOptions||{}),I(this,bs,new Map),I(this,ks,new Map),I(this,kr,0)}mount(){Fa(this,kr)._++,C(this,kr)===1&&(I(this,Cs,Ap.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onFocus())})),I(this,Es,yu.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,we).onOnline())})))}unmount(){var e,t;Fa(this,kr)._--,C(this,kr)===0&&((e=C(this,Cs))==null||e.call(this),I(this,Cs,void 0),(t=C(this,Es))==null||t.call(this),I(this,Es,void 0))}isFetching(e){return C(this,we).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Sr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,we).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,we).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Nr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,we).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=C(this,we).get(r.queryHash),s=i==null?void 0:i.state.data,o=VR(t,s);if(o!==void 0)return C(this,we).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return je.batch(()=>C(this,we).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,we).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,we);je.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,we);return je.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=je.batch(()=>C(this,we).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Dt).catch(Dt)}invalidateQueries(e,t={}){return je.batch(()=>(C(this,we).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=je.batch(()=>C(this,we).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Dt)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Dt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,we).build(this,t);return n.isStaleByTime(Nr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Dt).catch(Dt)}fetchInfiniteQuery(e){return e.behavior=ry(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Dt).catch(Dt)}ensureInfiniteQueryData(e){return e.behavior=ry(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return yu.isOnline()?C(this,Sr).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,we)}getMutationCache(){return C(this,Sr)}getDefaultOptions(){return C(this,br)}setDefaultOptions(e){I(this,br,e)}setQueryDefaults(e,t){C(this,bs).set(Ri(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,bs).values()],n={};return t.forEach(r=>{na(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,ks).set(Ri(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,ks).values()],n={};return t.forEach(r=>{na(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,br).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Tp(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===Pp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,br).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,we).clear(),C(this,Sr).clear()}},we=new WeakMap,Sr=new WeakMap,br=new WeakMap,bs=new WeakMap,ks=new WeakMap,kr=new WeakMap,Cs=new WeakMap,Es=new WeakMap,H0);function px(e,t){return function(){return e.apply(t,arguments)}}const{toString:n2}=Object.prototype,{getPrototypeOf:Op}=Object,{iterator:nc,toStringTag:mx}=Symbol,rc=(e=>t=>{const n=n2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),an=e=>(e=e.toLowerCase(),t=>rc(t)===e),ic=e=>t=>typeof t===e,{isArray:$s}=Array,_s=ic("undefined");function ba(e){return e!==null&&!_s(e)&&e.constructor!==null&&!_s(e.constructor)&&pt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gx=an("ArrayBuffer");function r2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gx(e.buffer),t}const i2=ic("string"),pt=ic("function"),yx=ic("number"),ka=e=>e!==null&&typeof e=="object",s2=e=>e===!0||e===!1,Ml=e=>{if(rc(e)!=="object")return!1;const t=Op(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(mx in e)&&!(nc in e)},o2=e=>{if(!ka(e)||ba(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},a2=an("Date"),l2=an("File"),u2=e=>!!(e&&typeof e.uri<"u"),c2=e=>e&&typeof e.getParts<"u",f2=an("Blob"),d2=an("FileList"),h2=e=>ka(e)&&pt(e.pipe);function p2(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const sy=p2(),oy=typeof sy.FormData<"u"?sy.FormData:void 0,m2=e=>{let t;return e&&(oy&&e instanceof oy||pt(e.append)&&((t=rc(e))==="formdata"||t==="object"&&pt(e.toString)&&e.toString()==="[object FormData]"))},g2=an("URLSearchParams"),[y2,v2,w2,x2]=["ReadableStream","Request","Response","Headers"].map(an),S2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ca(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),$s(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ba(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,e[a],a,e)}}function vx(e,t){if(ba(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ii=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wx=e=>!_s(e)&&e!==ii;function $d(){const{caseless:e,skipUndefined:t}=wx(this)&&this||{},n={},r=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=e&&vx(n,s)||s;Ml(n[o])&&Ml(i)?n[o]=$d(n[o],i):Ml(i)?n[o]=$d({},i):$s(i)?n[o]=i.slice():(!t||!_s(i))&&(n[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Ca(arguments[i],r);return n}const b2=(e,t,n,{allOwnKeys:r}={})=>(Ca(t,(i,s)=>{n&&pt(i)?Object.defineProperty(e,s,{value:px(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),k2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),C2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},E2=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Op(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},R2=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},T2=e=>{if(!e)return null;if($s(e))return e;let t=e.length;if(!yx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},P2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Op(Uint8Array)),A2=(e,t)=>{const r=(e&&e[nc]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},M2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},O2=an("HTMLFormElement"),D2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ay=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L2=an("RegExp"),xx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ca(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},_2=e=>{xx(e,(t,n)=>{if(pt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(pt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},I2=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return $s(e)?r(e):r(String(e).split(t)),n},N2=()=>{},F2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function V2(e){return!!(e&&pt(e.append)&&e[mx]==="FormData"&&e[nc])}const j2=e=>{const t=new Array(10),n=(r,i)=>{if(ka(r)){if(t.indexOf(r)>=0)return;if(ba(r))return r;if(!("toJSON"in r)){t[i]=r;const s=$s(r)?[]:{};return Ca(r,(o,a)=>{const l=n(o,i+1);!_s(l)&&(s[a]=l)}),t[i]=void 0,s}}return r};return n(e,0)},z2=an("AsyncFunction"),B2=e=>e&&(ka(e)||pt(e))&&pt(e.then)&&pt(e.catch),Sx=((e,t)=>e?setImmediate:t?((n,r)=>(ii.addEventListener("message",({source:i,data:s})=>{i===ii&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ii.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",pt(ii.postMessage)),U2=typeof queueMicrotask<"u"?queueMicrotask.bind(ii):typeof process<"u"&&process.nextTick||Sx,$2=e=>e!=null&&pt(e[nc]),P={isArray:$s,isArrayBuffer:gx,isBuffer:ba,isFormData:m2,isArrayBufferView:r2,isString:i2,isNumber:yx,isBoolean:s2,isObject:ka,isPlainObject:Ml,isEmptyObject:o2,isReadableStream:y2,isRequest:v2,isResponse:w2,isHeaders:x2,isUndefined:_s,isDate:a2,isFile:l2,isReactNativeBlob:u2,isReactNative:c2,isBlob:f2,isRegExp:L2,isFunction:pt,isStream:h2,isURLSearchParams:g2,isTypedArray:P2,isFileList:d2,forEach:Ca,merge:$d,extend:b2,trim:S2,stripBOM:k2,inherits:C2,toFlatObject:E2,kindOf:rc,kindOfTest:an,endsWith:R2,toArray:T2,forEachEntry:A2,matchAll:M2,isHTMLForm:O2,hasOwnProperty:ay,hasOwnProp:ay,reduceDescriptors:xx,freezeMethods:_2,toObjectSet:I2,toCamelCase:D2,noop:N2,toFiniteNumber:F2,findKey:vx,global:ii,isContextDefined:wx,isSpecCompliantForm:V2,toJSONObject:j2,isAsyncFn:z2,isThenable:B2,setImmediate:Sx,asap:U2,isIterable:$2};let K=class bx extends Error{static from(t,n,r,i,s,o){const a=new bx(t.message,n||t.code,r,i,s);return a.cause=t,a.name=t.name,t.status!=null&&a.status==null&&(a.status=t.status),o&&Object.assign(a,o),a}constructor(t,n,r,i,s){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:P.toJSONObject(this.config),code:this.code,status:this.status}}};K.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";K.ERR_BAD_OPTION="ERR_BAD_OPTION";K.ECONNABORTED="ECONNABORTED";K.ETIMEDOUT="ETIMEDOUT";K.ERR_NETWORK="ERR_NETWORK";K.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";K.ERR_DEPRECATED="ERR_DEPRECATED";K.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";K.ERR_BAD_REQUEST="ERR_BAD_REQUEST";K.ERR_CANCELED="ERR_CANCELED";K.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";K.ERR_INVALID_URL="ERR_INVALID_URL";const W2=null;function Wd(e){return P.isPlainObject(e)||P.isArray(e)}function kx(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function ef(e,t,n){return e?e.concat(t).map(function(i,s){return i=kx(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function H2(e){return P.isArray(e)&&!e.some(Wd)}const K2=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function sc(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!P.isUndefined(v[m])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(t);if(!P.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(P.isDate(p))return p.toISOString();if(P.isBoolean(p))return p.toString();if(!l&&P.isBlob(p))throw new K("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(p)||P.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,v){let g=p;if(P.isReactNative(t)&&P.isReactNativeBlob(p))return t.append(ef(v,m,s),u(p)),!1;if(p&&!v&&typeof p=="object"){if(P.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(P.isArray(p)&&H2(p)||(P.isFileList(p)||P.endsWith(m,"[]"))&&(g=P.toArray(p)))return m=kx(m),g.forEach(function(w,x){!(P.isUndefined(w)||w===null)&&t.append(o===!0?ef([m],x,s):o===null?m:m+"[]",u(w))}),!1}return Wd(p)?!0:(t.append(ef(v,m,s),u(p)),!1)}const f=[],d=Object.assign(K2,{defaultVisitor:c,convertValue:u,isVisitable:Wd});function h(p,m){if(!P.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(p),P.forEach(p,function(g,y){(!(P.isUndefined(g)||g===null)&&i.call(t,g,P.isString(y)?y.trim():y,m,d))===!0&&h(g,m?m.concat(y):[y])}),f.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ly(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Dp(e,t){this._pairs=[],e&&sc(e,this,t)}const Cx=Dp.prototype;Cx.append=function(t,n){this._pairs.push([t,n])};Cx.toString=function(t){const n=t?function(r){return t.call(this,r,ly)}:ly;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function q2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ex(e,t,n){if(!t)return e;const r=n&&n.encode||q2,i=P.isFunction(n)?{serialize:n}:n,s=i&&i.serialize;let o;if(s?o=s(t,i):o=P.isURLSearchParams(t)?t.toString():new Dp(t,i).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class uy{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Lp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},G2=typeof URLSearchParams<"u"?URLSearchParams:Dp,Q2=typeof FormData<"u"?FormData:null,X2=typeof Blob<"u"?Blob:null,Y2={isBrowser:!0,classes:{URLSearchParams:G2,FormData:Q2,Blob:X2},protocols:["http","https","file","blob","url","data"]},_p=typeof window<"u"&&typeof document<"u",Hd=typeof navigator=="object"&&navigator||void 0,Z2=_p&&(!Hd||["ReactNative","NativeScript","NS"].indexOf(Hd.product)<0),J2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eT=_p&&window.location.href||"http://localhost",tT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_p,hasStandardBrowserEnv:Z2,hasStandardBrowserWebWorkerEnv:J2,navigator:Hd,origin:eT},Symbol.toStringTag,{value:"Module"})),Ge={...tT,...Y2};function nT(e,t){return sc(e,new Ge.classes.URLSearchParams,{visitor:function(n,r,i,s){return Ge.isNode&&P.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function rT(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function iT(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Rx(e){function t(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=s>=n.length;return o=!o&&P.isArray(i)?i.length:o,l?(P.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!P.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&P.isArray(i[o])&&(i[o]=iT(i[o])),!a)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(r,i)=>{t(rT(r),i,n,0)}),n}return null}function sT(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ea={transitional:Lp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=P.isObject(t);if(s&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return i?JSON.stringify(Rx(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return nT(t,this.formSerializer).toString();if((a=P.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return sc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),sT(t)):t}],transformResponse:[function(t){const n=this.transitional||Ea.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?K.from(a,K.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ge.classes.FormData,Blob:Ge.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch"],e=>{Ea.headers[e]={}});const oT=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),aT=e=>{const t={};let n,r,i;return e&&e.split(`
41
+ `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&oT[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},cy=Symbol("internals");function co(e){return e&&String(e).trim().toLowerCase()}function Ol(e){return e===!1||e==null?e:P.isArray(e)?e.map(Ol):String(e)}function lT(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const uT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tf(e,t,n,r,i){if(P.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function cT(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fT(e,t){const n=P.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}let mt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,l,u){const c=co(l);if(!c)throw new Error("header name must be a non-empty string");const f=P.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Ol(a))}const o=(a,l)=>P.forEach(a,(u,c)=>s(u,c,l));if(P.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(P.isString(t)&&(t=t.trim())&&!uT(t))o(aT(t),n);else if(P.isObject(t)&&P.isIterable(t)){let a={},l,u;for(const c of t){if(!P.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?P.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=co(t),t){const r=P.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return lT(i);if(P.isFunction(n))return n.call(this,i,r);if(P.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=co(t),t){const r=P.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||tf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=co(o),o){const a=P.findKey(r,o);a&&(!n||tf(r,r[a],a,n))&&(delete r[a],i=!0)}}return P.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||tf(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return P.forEach(this,(i,s)=>{const o=P.findKey(r,s);if(o){n[o]=Ol(i),delete n[s];return}const a=t?cT(s):String(s).trim();a!==s&&delete n[s],n[a]=Ol(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&P.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
42
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[cy]=this[cy]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=co(o);r[a]||(fT(i,o),r[a]=!0)}return P.isArray(t)?t.forEach(s):s(t),this}};mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(mt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});P.freezeMethods(mt);function nf(e,t){const n=this||Ea,r=t||n,i=mt.from(r.headers);let s=r.data;return P.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Tx(e){return!!(e&&e.__CANCEL__)}let Ra=class extends K{constructor(t,n,r){super(t??"canceled",K.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Px(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function dT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hT(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];o||(o=u),n[i]=l,r[i]=u;let f=s,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function pT(e,t){let n=0,r=1e3/t,i,s;const o=(u,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?o(u,c):(i=u,s||(s=setTimeout(()=>{s=null,o(i)},r-f)))},()=>i&&o(i)]}const vu=(e,t,n=3)=>{let r=0;const i=hT(50,250);return pT(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-r,u=i(l),c=o<=a;r=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-o)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},fy=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dy=e=>(...t)=>P.asap(()=>e(...t)),mT=Ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ge.origin),Ge.navigator&&/(msie|trident)/i.test(Ge.navigator.userAgent)):()=>!0,gT=Ge.hasStandardBrowserEnv?{write(e,t,n,r,i,s,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),P.isString(r)&&a.push(`path=${r}`),P.isString(i)&&a.push(`domain=${i}`),s===!0&&a.push("secure"),P.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function yT(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vT(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ax(e,t,n){let r=!yT(t);return e&&(r||n==!1)?vT(e,t):t}const hy=e=>e instanceof mt?{...e}:e;function Ti(e,t){t=t||{};const n={};function r(u,c,f,d){return P.isPlainObject(u)&&P.isPlainObject(c)?P.merge.call({caseless:d},u,c):P.isPlainObject(c)?P.merge({},c):P.isArray(c)?c.slice():c}function i(u,c,f,d){if(P.isUndefined(c)){if(!P.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function s(u,c){if(!P.isUndefined(c))return r(void 0,c)}function o(u,c){if(P.isUndefined(c)){if(!P.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,c,f)=>i(hy(u),hy(c),f,!0)};return P.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=P.hasOwnProp(l,c)?l[c]:i,d=f(e[c],t[c],c);P.isUndefined(d)&&f!==a||(n[c]=d)}),n}const Mx=e=>{const t=Ti({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;if(t.headers=o=mt.from(o),t.url=Ex(Ax(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),P.isFormData(n)){if(Ge.hasStandardBrowserEnv||Ge.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(P.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{u.includes(c.toLowerCase())&&o.set(c,f)})}}if(Ge.hasStandardBrowserEnv&&(r&&P.isFunction(r)&&(r=r(t)),r||r!==!1&&mT(t.url))){const l=i&&s&&gT.read(s);l&&o.set(i,l)}return t},wT=typeof XMLHttpRequest<"u",xT=wT&&function(e){return new Promise(function(n,r){const i=Mx(e);let s=i.data;const o=mt.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=i,c,f,d,h,p;function m(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function g(){if(!v)return;const w=mt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};Px(function(E){n(E),m()},function(E){r(E),m()},k),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(r(new K("Request aborted",K.ECONNABORTED,e,v)),v=null)},v.onerror=function(x){const k=x&&x.message?x.message:"Network Error",R=new K(k,K.ERR_NETWORK,e,v);R.event=x||null,r(R),v=null},v.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const k=i.transitional||Lp;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new K(x,k.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,v)),v=null},s===void 0&&o.setContentType(null),"setRequestHeader"in v&&P.forEach(o.toJSON(),function(x,k){v.setRequestHeader(k,x)}),P.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),a&&a!=="json"&&(v.responseType=i.responseType),u&&([d,p]=vu(u,!0),v.addEventListener("progress",d)),l&&v.upload&&([f,h]=vu(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=w=>{v&&(r(!w||w.type?new Ra(null,e,v):w),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const y=dT(i.url);if(y&&Ge.protocols.indexOf(y)===-1){r(new K("Unsupported protocol "+y+":",K.ERR_BAD_REQUEST,e));return}v.send(s||null)})},ST=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof K?c:new Ra(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,s(new K(`timeout of ${t}ms exceeded`,K.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>P.asap(a),l}},bT=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},kT=async function*(e,t){for await(const n of CT(e))yield*bT(n,t)},CT=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},py=(e,t,n,r)=>{const i=kT(e,t);let s=0,o,a=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){a(),l.close();return}let f=c.byteLength;if(n){let d=s+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},my=64*1024,{isFunction:nl}=P,ET=(({Request:e,Response:t})=>({Request:e,Response:t}))(P.global),{ReadableStream:gy,TextEncoder:yy}=P.global,vy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},RT=e=>{e=P.merge.call({skipUndefined:!0},ET,e);const{fetch:t,Request:n,Response:r}=e,i=t?nl(t):typeof fetch=="function",s=nl(n),o=nl(r);if(!i)return!1;const a=i&&nl(gy),l=i&&(typeof yy=="function"?(p=>m=>p.encode(m))(new yy):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=s&&a&&vy(()=>{let p=!1;const m=new n(Ge.origin,{body:new gy,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),c=o&&a&&vy(()=>P.isReadableStream(new r("").body)),f={stream:c&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(m,v)=>{let g=m&&m[p];if(g)return g.call(m);throw new K(`Response type '${p}' is not supported`,K.ERR_NOT_SUPPORT,v)})});const d=async p=>{if(p==null)return 0;if(P.isBlob(p))return p.size;if(P.isSpecCompliantForm(p))return(await new n(Ge.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(P.isArrayBufferView(p)||P.isArrayBuffer(p))return p.byteLength;if(P.isURLSearchParams(p)&&(p=p+""),P.isString(p))return(await l(p)).byteLength},h=async(p,m)=>{const v=P.toFiniteNumber(p.getContentLength());return v??d(m)};return async p=>{let{url:m,method:v,data:g,signal:y,cancelToken:w,timeout:x,onDownloadProgress:k,onUploadProgress:R,responseType:E,headers:b,withCredentials:A="same-origin",fetchOptions:T}=Mx(p),D=t||fetch;E=E?(E+"").toLowerCase():"text";let N=ST([y,w&&w.toAbortSignal()],x),H=null;const U=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let X;try{if(R&&u&&v!=="get"&&v!=="head"&&(X=await h(b,g))!==0){let q=new n(m,{method:"POST",body:g,duplex:"half"}),G;if(P.isFormData(g)&&(G=q.headers.get("content-type"))&&b.setContentType(G),q.body){const[be,pe]=fy(X,vu(dy(R)));g=py(q.body,my,be,pe)}}P.isString(A)||(A=A?"include":"omit");const V=s&&"credentials"in n.prototype,Q={...T,signal:N,method:v.toUpperCase(),headers:b.normalize().toJSON(),body:g,duplex:"half",credentials:V?A:void 0};H=s&&new n(m,Q);let M=await(s?D(H,T):D(m,Q));const _=c&&(E==="stream"||E==="response");if(c&&(k||_&&U)){const q={};["status","statusText","headers"].forEach(ae=>{q[ae]=M[ae]});const G=P.toFiniteNumber(M.headers.get("content-length")),[be,pe]=k&&fy(G,vu(dy(k),!0))||[];M=new r(py(M.body,my,be,()=>{pe&&pe(),U&&U()}),q)}E=E||"text";let O=await f[P.findKey(f,E)||"text"](M,p);return!_&&U&&U(),await new Promise((q,G)=>{Px(q,G,{data:O,headers:mt.from(M.headers),status:M.status,statusText:M.statusText,config:p,request:H})})}catch(V){throw U&&U(),V&&V.name==="TypeError"&&/Load failed|fetch/i.test(V.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,p,H,V&&V.response),{cause:V.cause||V}):K.from(V,V&&V.code,p,H,V&&V.response)}}},TT=new Map,Ox=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let o=s.length,a=o,l,u,c=TT;for(;a--;)l=s[a],u=c.get(l),u===void 0&&c.set(l,u=a?new Map:RT(t)),c=u;return u};Ox();const Ip={http:W2,xhr:xT,fetch:{get:Ox}};P.forEach(Ip,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wy=e=>`- ${e}`,PT=e=>P.isFunction(e)||e===null||e===!1;function AT(e,t){e=P.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let o=0;o<n;o++){r=e[o];let a;if(i=r,!PT(r)&&(i=Ip[(a=String(r)).toLowerCase()],i===void 0))throw new K(`Unknown adapter '${a}'`);if(i&&(P.isFunction(i)||(i=i.get(t))))break;s[a||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since :
43
+ `+o.map(wy).join(`
44
+ `):" "+wy(o[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const Dx={getAdapter:AT,adapters:Ip};function rf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ra(null,e)}function xy(e){return rf(e),e.headers=mt.from(e.headers),e.data=nf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dx.getAdapter(e.adapter||Ea.adapter,e)(e).then(function(r){return rf(e),r.data=nf.call(e,e.transformResponse,r),r.headers=mt.from(r.headers),r},function(r){return Tx(r)||(rf(e),r&&r.response&&(r.response.data=nf.call(e,e.transformResponse,r.response),r.response.headers=mt.from(r.response.headers))),Promise.reject(r)})}const Lx="1.13.6",oc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Sy={};oc.transitional=function(t,n,r){function i(s,o){return"[Axios v"+Lx+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new K(i(o," has been removed"+(n?" in "+n:"")),K.ERR_DEPRECATED);return n&&!Sy[o]&&(Sy[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};oc.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function MT(e,t,n){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],l=a===void 0||o(a,s,e);if(l!==!0)throw new K("option "+s+" must be "+l,K.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new K("Unknown option "+s,K.ERR_BAD_OPTION)}}const Dl={assertOptions:MT,validators:oc},Mt=Dl.validators;let vi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new uy,response:new uy}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
45
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ti(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Dl.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean),legacyInterceptorReqResOrdering:Mt.transitional(Mt.boolean)},!1),i!=null&&(P.isFunction(i)?n.paramsSerializer={serialize:i}:Dl.assertOptions(i,{encode:Mt.function,serialize:Mt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Dl.assertOptions(n,{baseUrl:Mt.spelling("baseURL"),withXsrfToken:Mt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&P.merge(s.common,s[n.method]);s&&P.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=mt.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;l=l&&m.synchronous;const v=n.transitional||Lp;v&&v.legacyInterceptorReqResOrdering?a.unshift(m.fulfilled,m.rejected):a.push(m.fulfilled,m.rejected)});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,d;if(!l){const p=[xy.bind(this),void 0];for(p.unshift(...a),p.push(...u),d=p.length,c=Promise.resolve(n);f<d;)c=c.then(p[f++],p[f++]);return c}d=a.length;let h=n;for(;f<d;){const p=a[f++],m=a[f++];try{h=p(h)}catch(v){m.call(this,v);break}}try{c=xy.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Ti(this.defaults,t);const n=Ax(t.baseURL,t.url,t.allowAbsoluteUrls);return Ex(n,t.params,t.paramsSerializer)}};P.forEach(["delete","get","head","options"],function(t){vi.prototype[t]=function(n,r){return this.request(Ti(r||{},{method:t,url:n,data:(r||{}).data}))}});P.forEach(["post","put","patch"],function(t){function n(r){return function(s,o,a){return this.request(Ti(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}vi.prototype[t]=n(),vi.prototype[t+"Form"]=n(!0)});let OT=class _x{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new Ra(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new _x(function(i){t=i}),cancel:t}}};function DT(e){return function(n){return e.apply(null,n)}}function LT(e){return P.isObject(e)&&e.isAxiosError===!0}const Kd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Kd).forEach(([e,t])=>{Kd[t]=e});function Ix(e){const t=new vi(e),n=px(vi.prototype.request,t);return P.extend(n,vi.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Ix(Ti(e,i))},n}const Re=Ix(Ea);Re.Axios=vi;Re.CanceledError=Ra;Re.CancelToken=OT;Re.isCancel=Tx;Re.VERSION=Lx;Re.toFormData=sc;Re.AxiosError=K;Re.Cancel=Re.CanceledError;Re.all=function(t){return Promise.all(t)};Re.spread=DT;Re.isAxiosError=LT;Re.mergeConfig=Ti;Re.AxiosHeaders=mt;Re.formToJSON=e=>Rx(P.isHTMLForm(e)?new FormData(e):e);Re.getAdapter=Dx.getAdapter;Re.HttpStatusCode=Kd;Re.default=Re;const{Axios:TN,AxiosError:PN,CanceledError:AN,isCancel:MN,CancelToken:ON,VERSION:DN,all:LN,Cancel:_N,isAxiosError:IN,spread:NN,toFormData:FN,AxiosHeaders:VN,HttpStatusCode:jN,formToJSON:zN,getAdapter:BN,mergeConfig:UN}=Re;/**
46
+ * @remix-run/router v1.23.2
47
+ *
48
+ * Copyright (c) Remix Software Inc.
49
+ *
50
+ * This source code is licensed under the MIT license found in the
51
+ * LICENSE.md file in the root directory of this source tree.
52
+ *
53
+ * @license MIT
54
+ */function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ra.apply(this,arguments)}var es;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(es||(es={}));const by="popstate";function $N(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return qd("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Nx(i)}return IT(t,n,null,e)}function cs(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Np(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _T(){return Math.random().toString(36).substr(2,8)}function ky(e,t){return{usr:e.state,key:e.key,idx:t}}function qd(e,t,n,r){return n===void 0&&(n=null),ra({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ac(t):t,{state:n,key:t&&t.key||r||_T()})}function Nx(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ac(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function IT(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=es.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(ra({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){a=es.Pop;let v=c(),g=v==null?null:v-u;u=v,l&&l({action:a,location:m.location,delta:g})}function d(v,g){a=es.Push;let y=qd(m.location,v,g);u=c()+1;let w=ky(y,u),x=m.createHref(y);try{o.pushState(w,"",x)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(x)}s&&l&&l({action:a,location:m.location,delta:1})}function h(v,g){a=es.Replace;let y=qd(m.location,v,g);u=c();let w=ky(y,u),x=m.createHref(y);o.replaceState(w,"",x),s&&l&&l({action:a,location:m.location,delta:0})}function p(v){let g=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof v=="string"?v:Nx(v);return y=y.replace(/ $/,"%20"),cs(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}let m={get action(){return a},get location(){return e(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(by,f),l=v,()=>{i.removeEventListener(by,f),l=null}},createHref(v){return t(i,v)},createURL:p,encodeLocation(v){let g=p(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:h,go(v){return o.go(v)}};return m}var Cy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Cy||(Cy={}));function WN(e,t,n){return n===void 0&&(n="/"),NT(e,t,n)}function NT(e,t,n,r){let i=typeof t=="string"?ac(t):t,s=XT(i.pathname||"/",n);if(s==null)return null;let o=Fx(e);FT(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=QT(s);a=KT(o[l],u)}return a}function Fx(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(cs(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ll([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(cs(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Fx(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:WT(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of Vx(s.path))i(s,o,l)}),t}function Vx(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Vx(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function FT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:HT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const VT=/^:[\w-]+$/,jT=3,zT=2,BT=1,UT=10,$T=-2,Ey=e=>e==="*";function WT(e,t){let n=e.split("/"),r=n.length;return n.some(Ey)&&(r+=$T),t&&(r+=zT),n.filter(i=>!Ey(i)).reduce((i,s)=>i+(VT.test(s)?jT:s===""?BT:UT),r)}function HT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function KT(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=s==="/"?t:t.slice(s.length)||"/",f=qT({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),d=l.route;if(!f)return null;Object.assign(i,f.params),o.push({params:i,pathname:Ll([s,f.pathname]),pathnameBase:tP(Ll([s,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(s=Ll([s,f.pathnameBase]))}return o}function qT(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=GT(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:d,isOptional:h}=c;if(d==="*"){let m=a[f]||"";o=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const p=a[f];return h&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function GT(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Np(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function QT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Np(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function XT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const YT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ZT=e=>YT.test(e);function JT(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ac(e):e,s;if(n)if(ZT(n))s=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),Np(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+n))}n.startsWith("/")?s=Ry(n.substring(1),"/"):s=Ry(n,t)}else s=t;return{pathname:s,search:nP(r),hash:rP(i)}}function Ry(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function sf(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function eP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function HN(e,t){let n=eP(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function KN(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ac(e):(i=ra({},e),cs(!i.pathname||!i.pathname.includes("?"),sf("?","pathname","search",i)),cs(!i.pathname||!i.pathname.includes("#"),sf("#","pathname","hash",i)),cs(!i.search||!i.search.includes("#"),sf("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let l=JT(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Ll=e=>e.join("/").replace(/\/\/+/g,"/"),tP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jx=["post","put","patch","delete"];new Set(jx);const iP=["get",...jx];new Set(iP);/**
55
+ * @license lucide-react v0.344.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */var sP={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"};/**
60
+ * @license lucide-react v0.344.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const oP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),W=(e,t)=>{const n=S.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:l,...u},c)=>S.createElement("svg",{ref:c,...sP,width:i,height:i,stroke:r,strokeWidth:o?Number(s)*24/Number(i):s,className:["lucide",`lucide-${oP(e)}`,a].join(" "),...u},[...t.map(([f,d])=>S.createElement(f,d)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/**
65
+ * @license lucide-react v0.344.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const GN=W("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
70
+ * @license lucide-react v0.344.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const QN=W("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
75
+ * @license lucide-react v0.344.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const XN=W("AlertTriangle",[["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-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
80
+ * @license lucide-react v0.344.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const YN=W("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/**
85
+ * @license lucide-react v0.344.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const ZN=W("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
90
+ * @license lucide-react v0.344.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const JN=W("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
95
+ * @license lucide-react v0.344.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const e4=W("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
100
+ * @license lucide-react v0.344.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const t4=W("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
105
+ * @license lucide-react v0.344.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const n4=W("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
110
+ * @license lucide-react v0.344.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const r4=W("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
115
+ * @license lucide-react v0.344.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const i4=W("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
120
+ * @license lucide-react v0.344.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const s4=W("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
125
+ * @license lucide-react v0.344.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const o4=W("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
130
+ * @license lucide-react v0.344.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const a4=W("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
135
+ * @license lucide-react v0.344.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const l4=W("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
140
+ * @license lucide-react v0.344.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const u4=W("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/**
145
+ * @license lucide-react v0.344.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const c4=W("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
150
+ * @license lucide-react v0.344.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const f4=W("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
155
+ * @license lucide-react v0.344.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const d4=W("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
160
+ * @license lucide-react v0.344.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const h4=W("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
165
+ * @license lucide-react v0.344.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const p4=W("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
170
+ * @license lucide-react v0.344.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const m4=W("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
175
+ * @license lucide-react v0.344.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const g4=W("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
180
+ * @license lucide-react v0.344.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const y4=W("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
185
+ * @license lucide-react v0.344.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const v4=W("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
190
+ * @license lucide-react v0.344.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const w4=W("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
195
+ * @license lucide-react v0.344.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const x4=W("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);/**
200
+ * @license lucide-react v0.344.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const S4=W("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
205
+ * @license lucide-react v0.344.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const b4=W("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
210
+ * @license lucide-react v0.344.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const k4=W("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
215
+ * @license lucide-react v0.344.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const C4=W("LifeBuoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);/**
220
+ * @license lucide-react v0.344.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const E4=W("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
225
+ * @license lucide-react v0.344.0 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const R4=W("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
230
+ * @license lucide-react v0.344.0 - ISC
231
+ *
232
+ * This source code is licensed under the ISC license.
233
+ * See the LICENSE file in the root directory of this source tree.
234
+ */const T4=W("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/**
235
+ * @license lucide-react v0.344.0 - ISC
236
+ *
237
+ * This source code is licensed under the ISC license.
238
+ * See the LICENSE file in the root directory of this source tree.
239
+ */const P4=W("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
240
+ * @license lucide-react v0.344.0 - ISC
241
+ *
242
+ * This source code is licensed under the ISC license.
243
+ * See the LICENSE file in the root directory of this source tree.
244
+ */const A4=W("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
245
+ * @license lucide-react v0.344.0 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */const M4=W("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
250
+ * @license lucide-react v0.344.0 - ISC
251
+ *
252
+ * This source code is licensed under the ISC license.
253
+ * See the LICENSE file in the root directory of this source tree.
254
+ */const O4=W("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
255
+ * @license lucide-react v0.344.0 - ISC
256
+ *
257
+ * This source code is licensed under the ISC license.
258
+ * See the LICENSE file in the root directory of this source tree.
259
+ */const D4=W("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
260
+ * @license lucide-react v0.344.0 - ISC
261
+ *
262
+ * This source code is licensed under the ISC license.
263
+ * See the LICENSE file in the root directory of this source tree.
264
+ */const L4=W("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
265
+ * @license lucide-react v0.344.0 - ISC
266
+ *
267
+ * This source code is licensed under the ISC license.
268
+ * See the LICENSE file in the root directory of this source tree.
269
+ */const _4=W("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
270
+ * @license lucide-react v0.344.0 - ISC
271
+ *
272
+ * This source code is licensed under the ISC license.
273
+ * See the LICENSE file in the root directory of this source tree.
274
+ */const I4=W("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
275
+ * @license lucide-react v0.344.0 - ISC
276
+ *
277
+ * This source code is licensed under the ISC license.
278
+ * See the LICENSE file in the root directory of this source tree.
279
+ */const N4=W("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
280
+ * @license lucide-react v0.344.0 - ISC
281
+ *
282
+ * This source code is licensed under the ISC license.
283
+ * See the LICENSE file in the root directory of this source tree.
284
+ */const F4=W("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
285
+ * @license lucide-react v0.344.0 - ISC
286
+ *
287
+ * This source code is licensed under the ISC license.
288
+ * See the LICENSE file in the root directory of this source tree.
289
+ */const V4=W("ServerCog",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m15.7 13.4-.9-.3",key:"1jwmzr"}],["path",{d:"m9.2 10.9-.9-.3",key:"qapnim"}],["path",{d:"m10.6 15.7.3-.9",key:"quwk0k"}],["path",{d:"m13.6 15.7-.4-1",key:"cb9xp7"}],["path",{d:"m10.8 9.3-.4-1",key:"1uaiz5"}],["path",{d:"m8.3 13.6 1-.4",key:"s6srou"}],["path",{d:"m14.7 10.8 1-.4",key:"4d31cq"}],["path",{d:"m13.4 8.3-.3.9",key:"1bm987"}]]);/**
290
+ * @license lucide-react v0.344.0 - ISC
291
+ *
292
+ * This source code is licensed under the ISC license.
293
+ * See the LICENSE file in the root directory of this source tree.
294
+ */const j4=W("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
295
+ * @license lucide-react v0.344.0 - ISC
296
+ *
297
+ * This source code is licensed under the ISC license.
298
+ * See the LICENSE file in the root directory of this source tree.
299
+ */const z4=W("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
300
+ * @license lucide-react v0.344.0 - ISC
301
+ *
302
+ * This source code is licensed under the ISC license.
303
+ * See the LICENSE file in the root directory of this source tree.
304
+ */const B4=W("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
305
+ * @license lucide-react v0.344.0 - ISC
306
+ *
307
+ * This source code is licensed under the ISC license.
308
+ * See the LICENSE file in the root directory of this source tree.
309
+ */const U4=W("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
310
+ * @license lucide-react v0.344.0 - ISC
311
+ *
312
+ * This source code is licensed under the ISC license.
313
+ * See the LICENSE file in the root directory of this source tree.
314
+ */const $4=W("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
315
+ * @license lucide-react v0.344.0 - ISC
316
+ *
317
+ * This source code is licensed under the ISC license.
318
+ * See the LICENSE file in the root directory of this source tree.
319
+ */const W4=W("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
320
+ * @license lucide-react v0.344.0 - ISC
321
+ *
322
+ * This source code is licensed under the ISC license.
323
+ * See the LICENSE file in the root directory of this source tree.
324
+ */const H4=W("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
325
+ * @license lucide-react v0.344.0 - ISC
326
+ *
327
+ * This source code is licensed under the ISC license.
328
+ * See the LICENSE file in the root directory of this source tree.
329
+ */const K4=W("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
330
+ * @license lucide-react v0.344.0 - ISC
331
+ *
332
+ * This source code is licensed under the ISC license.
333
+ * See the LICENSE file in the root directory of this source tree.
334
+ */const q4=W("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
335
+ * @license lucide-react v0.344.0 - ISC
336
+ *
337
+ * This source code is licensed under the ISC license.
338
+ * See the LICENSE file in the root directory of this source tree.
339
+ */const G4=W("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
340
+ * @license lucide-react v0.344.0 - ISC
341
+ *
342
+ * This source code is licensed under the ISC license.
343
+ * See the LICENSE file in the root directory of this source tree.
344
+ */const Q4=W("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function zx(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=zx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function aP(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=zx(e))&&(r&&(r+=" "),r+=t);return r}const lP=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},uP=(e,t)=>({classGroupId:e,validator:t}),Bx=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),wu="-",Ty=[],cP="arbitrary..",fP=e=>{const t=hP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return dP(o);const a=o.split(wu),l=a[0]===""&&a.length>1?1:0;return Ux(a,l,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=r[o],u=n[o];return l?u?lP(u,l):l:u||Ty}return n[o]||Ty}}},Ux=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],s=n.nextPart.get(i);if(s){const u=Ux(e,t+1,s);if(u)return u}const o=n.validators;if(o===null)return;const a=t===0?e.join(wu):e.slice(t).join(wu),l=o.length;for(let u=0;u<l;u++){const c=o[u];if(c.validator(a))return c.classGroupId}},dP=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?cP+r:void 0})(),hP=e=>{const{theme:t,classGroups:n}=e;return pP(n,t)},pP=(e,t)=>{const n=Bx();for(const r in e){const i=e[r];Fp(i,n,r,t)}return n},Fp=(e,t,n,r)=>{const i=e.length;for(let s=0;s<i;s++){const o=e[s];mP(o,t,n,r)}},mP=(e,t,n,r)=>{if(typeof e=="string"){gP(e,t,n);return}if(typeof e=="function"){yP(e,t,n,r);return}vP(e,t,n,r)},gP=(e,t,n)=>{const r=e===""?t:$x(t,e);r.classGroupId=n},yP=(e,t,n,r)=>{if(wP(e)){Fp(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(uP(n,e))},vP=(e,t,n,r)=>{const i=Object.entries(e),s=i.length;for(let o=0;o<s;o++){const[a,l]=i[o];Fp(l,$x(t,a),n,r)}},$x=(e,t)=>{let n=e;const r=t.split(wu),i=r.length;for(let s=0;s<i;s++){const o=r[s];let a=n.nextPart.get(o);a||(a=Bx(),n.nextPart.set(o,a)),n=a}return n},wP=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,xP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(s,o)=>{n[s]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let o=n[s];if(o!==void 0)return o;if((o=r[s])!==void 0)return i(s,o),o},set(s,o){s in n?n[s]=o:i(s,o)}}},Gd="!",Py=":",SP=[],Ay=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),bP=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let o=0,a=0,l=0,u;const c=i.length;for(let m=0;m<c;m++){const v=i[m];if(o===0&&a===0){if(v===Py){s.push(i.slice(l,m)),l=m+1;continue}if(v==="/"){u=m;continue}}v==="["?o++:v==="]"?o--:v==="("?a++:v===")"&&a--}const f=s.length===0?i:i.slice(l);let d=f,h=!1;f.endsWith(Gd)?(d=f.slice(0,-1),h=!0):f.startsWith(Gd)&&(d=f.slice(1),h=!0);const p=u&&u>l?u-l:void 0;return Ay(s,h,d,p)};if(t){const i=t+Py,s=r;r=o=>o.startsWith(i)?s(o.slice(i.length)):Ay(SP,!1,o,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},kP=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const o=n[s],a=o[0]==="[",l=t.has(o);a||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},CP=e=>({cache:xP(e.cacheSize),parseClassName:bP(e),sortModifiers:kP(e),...fP(e)}),EP=/\s+/,RP=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],a=e.trim().split(EP);let l="";for(let u=a.length-1;u>=0;u-=1){const c=a[u],{isExternal:f,modifiers:d,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}=n(c);if(f){l=c+(l.length>0?" "+l:l);continue}let v=!!m,g=r(v?p.substring(0,m):p);if(!g){if(!v){l=c+(l.length>0?" "+l:l);continue}if(g=r(p),!g){l=c+(l.length>0?" "+l:l);continue}v=!1}const y=d.length===0?"":d.length===1?d[0]:s(d).join(":"),w=h?y+Gd:y,x=w+g;if(o.indexOf(x)>-1)continue;o.push(x);const k=i(g,v);for(let R=0;R<k.length;++R){const E=k[R];o.push(w+E)}l=c+(l.length>0?" "+l:l)}return l},TP=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Wx(n))&&(i&&(i+=" "),i+=r);return i},Wx=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wx(e[r]))&&(n&&(n+=" "),n+=t);return n},PP=(e,...t)=>{let n,r,i,s;const o=l=>{const u=t.reduce((c,f)=>f(c),e());return n=CP(u),r=n.cache.get,i=n.cache.set,s=a,a(l)},a=l=>{const u=r(l);if(u)return u;const c=RP(l,n);return i(l,c),c};return s=o,(...l)=>s(TP(...l))},AP=[],Te=e=>{const t=n=>n[e]||AP;return t.isThemeGetter=!0,t},Hx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Kx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MP=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,OP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,DP=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,LP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_P=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,IP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,or=e=>MP.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),ar=e=>!!e&&Number.isInteger(Number(e)),of=e=>e.endsWith("%")&&Z(e.slice(0,-1)),An=e=>OP.test(e),qx=()=>!0,NP=e=>DP.test(e)&&!LP.test(e),Vp=()=>!1,FP=e=>_P.test(e),VP=e=>IP.test(e),jP=e=>!j(e)&&!B(e),zP=e=>Kr(e,Xx,Vp),j=e=>Hx.test(e),Gr=e=>Kr(e,Yx,NP),My=e=>Kr(e,GP,Z),BP=e=>Kr(e,Jx,qx),UP=e=>Kr(e,Zx,Vp),Oy=e=>Kr(e,Gx,Vp),$P=e=>Kr(e,Qx,VP),rl=e=>Kr(e,eS,FP),B=e=>Kx.test(e),fo=e=>Oi(e,Yx),WP=e=>Oi(e,Zx),Dy=e=>Oi(e,Gx),HP=e=>Oi(e,Xx),KP=e=>Oi(e,Qx),il=e=>Oi(e,eS,!0),qP=e=>Oi(e,Jx,!0),Kr=(e,t,n)=>{const r=Hx.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Oi=(e,t,n=!1)=>{const r=Kx.exec(e);return r?r[1]?t(r[1]):n:!1},Gx=e=>e==="position"||e==="percentage",Qx=e=>e==="image"||e==="url",Xx=e=>e==="length"||e==="size"||e==="bg-size",Yx=e=>e==="length",GP=e=>e==="number",Zx=e=>e==="family-name",Jx=e=>e==="number"||e==="weight",eS=e=>e==="shadow",QP=()=>{const e=Te("color"),t=Te("font"),n=Te("text"),r=Te("font-weight"),i=Te("tracking"),s=Te("leading"),o=Te("breakpoint"),a=Te("container"),l=Te("spacing"),u=Te("radius"),c=Te("shadow"),f=Te("inset-shadow"),d=Te("text-shadow"),h=Te("drop-shadow"),p=Te("blur"),m=Te("perspective"),v=Te("aspect"),g=Te("ease"),y=Te("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...x(),B,j],R=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],b=()=>[B,j,l],A=()=>[or,"full","auto",...b()],T=()=>[ar,"none","subgrid",B,j],D=()=>["auto",{span:["full",ar,B,j]},ar,B,j],N=()=>[ar,"auto",B,j],H=()=>["auto","min","max","fr",B,j],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...b()],Q=()=>[or,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],M=()=>[or,"screen","full","dvw","lvw","svw","min","max","fit",...b()],_=()=>[or,"screen","full","lh","dvh","lvh","svh","min","max","fit",...b()],O=()=>[e,B,j],q=()=>[...x(),Dy,Oy,{position:[B,j]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",HP,zP,{size:[B,j]}],pe=()=>[of,fo,Gr],ae=()=>["","none","full",u,B,j],ee=()=>["",Z,fo,Gr],st=()=>["solid","dashed","dotted","double"],Wt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[Z,of,Dy,Oy],ie=()=>["","none",p,B,j],ln=()=>["none",Z,B,j],Xe=()=>["none",Z,B,j],un=()=>[Z,B,j],ot=()=>[or,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[An],breakpoint:[An],color:[qx],container:[An],"drop-shadow":[An],ease:["in","out","in-out"],font:[jP],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[An],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[An],shadow:[An],spacing:["px",Z],text:[An],"text-shadow":[An],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",or,j,B,v]}],container:["container"],columns:[{columns:[Z,j,B,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[ar,"auto",B,j]}],basis:[{basis:[or,"full","auto",a,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Z,or,"auto","initial","none",j]}],grow:[{grow:["",Z,B,j]}],shrink:[{shrink:["",Z,B,j]}],order:[{order:[ar,"first","last","none",B,j]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",..._()]}],"min-block-size":[{"min-block":["auto",..._()]}],"max-block-size":[{"max-block":["none",..._()]}],w:[{w:[a,"screen",...Q()]}],"min-w":[{"min-w":[a,"screen","none",...Q()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",n,fo,Gr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,qP,BP]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",of,j]}],"font-family":[{font:[WP,UP,t]}],"font-features":[{"font-features":[j]}],"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,B,j]}],"line-clamp":[{"line-clamp":[Z,"none",B,My]}],leading:[{leading:[s,...b()]}],"list-image":[{"list-image":["none",B,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",B,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...st(),"wavy"]}],"text-decoration-thickness":[{decoration:[Z,"from-font","auto",B,Gr]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Z,"auto",B,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B,j]}],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",B,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ar,B,j],radial:["",B,j],conic:[ar,B,j]},KP,$P]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-bs":[{"border-bs":ee()}],"border-w-be":[{"border-be":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...st(),"hidden","none"]}],"divide-style":[{divide:[...st(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...st(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Z,B,j]}],"outline-w":[{outline:["",Z,fo,Gr]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",c,il,rl]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",f,il,rl]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Z,Gr]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",d,il,rl]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Z,B,j]}],"mix-blend":[{"mix-blend":[...Wt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Wt()}],"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":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[B,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["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":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",B,j]}],filter:[{filter:["","none",B,j]}],blur:[{blur:ie()}],brightness:[{brightness:[Z,B,j]}],contrast:[{contrast:[Z,B,j]}],"drop-shadow":[{"drop-shadow":["","none",h,il,rl]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",Z,B,j]}],"hue-rotate":[{"hue-rotate":[Z,B,j]}],invert:[{invert:["",Z,B,j]}],saturate:[{saturate:[Z,B,j]}],sepia:[{sepia:["",Z,B,j]}],"backdrop-filter":[{"backdrop-filter":["","none",B,j]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[Z,B,j]}],"backdrop-contrast":[{"backdrop-contrast":[Z,B,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Z,B,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,B,j]}],"backdrop-invert":[{"backdrop-invert":["",Z,B,j]}],"backdrop-opacity":[{"backdrop-opacity":[Z,B,j]}],"backdrop-saturate":[{"backdrop-saturate":[Z,B,j]}],"backdrop-sepia":[{"backdrop-sepia":["",Z,B,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",B,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Z,"initial",B,j]}],ease:[{ease:["linear","initial",g,B,j]}],delay:[{delay:[Z,B,j]}],animate:[{animate:["none",y,B,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,B,j]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ln()}],"rotate-x":[{"rotate-x":ln()}],"rotate-y":[{"rotate-y":ln()}],"rotate-z":[{"rotate-z":ln()}],scale:[{scale:Xe()}],"scale-x":[{"scale-x":Xe()}],"scale-y":[{"scale-y":Xe()}],"scale-z":[{"scale-z":Xe()}],"scale-3d":["scale-3d"],skew:[{skew:un()}],"skew-x":[{"skew-x":un()}],"skew-y":[{"skew-y":un()}],transform:[{transform:[B,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ot()}],"translate-x":[{"translate-x":ot()}],"translate-y":[{"translate-y":ot()}],"translate-z":[{"translate-z":ot()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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",B,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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",B,j]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Z,fo,Gr,My]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{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":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-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-r","border-w-l"],"border-w-y":["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-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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-mr","scroll-ml"],"scroll-my":["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-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},X4=PP(QP),Ly=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_y=aP,Y4=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return _y(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],f=s==null?void 0:s[u];if(c===null)return null;const d=Ly(c)||Ly(f);return i[u][d]}),a=n&&Object.entries(n).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:d,...h}=c;return Object.entries(h).every(p=>{let[m,v]=p;return Array.isArray(v)?v.includes({...s,...a}[m]):{...s,...a}[m]===v})?[...u,f,d]:u},[]);return _y(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},XP=["top","right","bottom","left"],jr=Math.min,St=Math.max,xu=Math.round,sl=Math.floor,kn=e=>({x:e,y:e}),YP={left:"right",right:"left",bottom:"top",top:"bottom"};function Qd(e,t,n){return St(e,jr(t,n))}function Xn(e,t){return typeof e=="function"?e(t):e}function Yn(e){return e.split("-")[0]}function Ws(e){return e.split("-")[1]}function jp(e){return e==="x"?"y":"x"}function zp(e){return e==="y"?"height":"width"}function xn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Bp(e){return jp(xn(e))}function ZP(e,t,n){n===void 0&&(n=!1);const r=Ws(e),i=Bp(e),s=zp(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Su(o)),[o,Su(o)]}function JP(e){const t=Su(e);return[Xd(e),t,Xd(t)]}function Xd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Iy=["left","right"],Ny=["right","left"],eA=["top","bottom"],tA=["bottom","top"];function nA(e,t,n){switch(e){case"top":case"bottom":return n?t?Ny:Iy:t?Iy:Ny;case"left":case"right":return t?eA:tA;default:return[]}}function rA(e,t,n,r){const i=Ws(e);let s=nA(Yn(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(Xd)))),s}function Su(e){const t=Yn(e);return YP[t]+e.slice(t.length)}function iA(e){return{top:0,right:0,bottom:0,left:0,...e}}function tS(e){return typeof e!="number"?iA(e):{top:e,right:e,bottom:e,left:e}}function bu(e){const{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 Fy(e,t,n){let{reference:r,floating:i}=e;const s=xn(t),o=Bp(t),a=zp(o),l=Yn(t),u=s==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Ws(t)){case"start":h[o]-=d*(n&&u?-1:1);break;case"end":h[o]+=d*(n&&u?-1:1);break}return h}async function sA(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Xn(t,e),p=tS(h),v=a[d?f==="floating"?"reference":"floating":f],g=bu(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),y=f==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},k=bu(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:l}):y);return{top:(g.top-k.top+p.top)/x.y,bottom:(k.bottom-g.bottom+p.bottom)/x.y,left:(g.left-k.left+p.left)/x.x,right:(k.right-g.right+p.right)/x.x}}const oA=50,aA=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:sA},l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=Fy(u,r,l),d=r,h=0;const p={};for(let m=0;m<s.length;m++){const v=s[m];if(!v)continue;const{name:g,fn:y}=v,{x:w,y:x,data:k,reset:R}=await y({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=w??c,f=x??f,p[g]={...p[g],...k},R&&h<oA&&(h++,typeof R=="object"&&(R.placement&&(d=R.placement),R.rects&&(u=R.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:c,y:f}=Fy(u,d,l)),m=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}},lA=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Xn(e,t)||{};if(u==null)return{};const f=tS(c),d={x:n,y:r},h=Bp(i),p=zp(h),m=await o.getDimensions(u),v=h==="y",g=v?"top":"left",y=v?"bottom":"right",w=v?"clientHeight":"clientWidth",x=s.reference[p]+s.reference[h]-d[h]-s.floating[p],k=d[h]-s.reference[h],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let E=R?R[w]:0;(!E||!await(o.isElement==null?void 0:o.isElement(R)))&&(E=a.floating[w]||s.floating[p]);const b=x/2-k/2,A=E/2-m[p]/2-1,T=jr(f[g],A),D=jr(f[y],A),N=T,H=E-m[p]-D,U=E/2-m[p]/2+b,X=Qd(N,U,H),V=!l.arrow&&Ws(i)!=null&&U!==X&&s.reference[p]/2-(U<N?T:D)-m[p]/2<0,Q=V?U<N?U-N:U-H:0;return{[h]:d[h]+Q,data:{[h]:X,centerOffset:U-X-Q,...V&&{alignmentOffset:Q}},reset:V}}}),uA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...v}=Xn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const g=Yn(i),y=xn(a),w=Yn(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=d||(w||!m?[Su(a)]:JP(a)),R=p!=="none";!d&&R&&k.push(...rA(a,m,p,x));const E=[a,...k],b=await l.detectOverflow(t,v),A=[];let T=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&A.push(b[g]),f){const U=ZP(i,o,x);A.push(b[U[0]],b[U[1]])}if(T=[...T,{placement:i,overflows:A}],!A.every(U=>U<=0)){var D,N;const U=(((D=s.flip)==null?void 0:D.index)||0)+1,X=E[U];if(X&&(!(f==="alignment"?y!==xn(X):!1)||T.every(M=>xn(M.placement)===y?M.overflows[0]>0:!0)))return{data:{index:U,overflows:T},reset:{placement:X}};let V=(N=T.filter(Q=>Q.overflows[0]<=0).sort((Q,M)=>Q.overflows[1]-M.overflows[1])[0])==null?void 0:N.placement;if(!V)switch(h){case"bestFit":{var H;const Q=(H=T.filter(M=>{if(R){const _=xn(M.placement);return _===y||_==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(_=>_>0).reduce((_,O)=>_+O,0)]).sort((M,_)=>M[1]-_[1])[0])==null?void 0:H[0];Q&&(V=Q);break}case"initialPlacement":V=a;break}if(i!==V)return{reset:{placement:V}}}return{}}}};function Vy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jy(e){return XP.some(t=>e[t]>=0)}const cA=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=Xn(e,t);switch(i){case"referenceHidden":{const o=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Vy(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:jy(a)}}}case"escaped":{const o=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Vy(o,n.floating);return{data:{escapedOffsets:a,escaped:jy(a)}}}default:return{}}}}},nS=new Set(["left","top"]);async function fA(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Yn(n),a=Ws(n),l=xn(n)==="y",u=nS.has(o)?-1:1,c=s&&l?-1:1,f=Xn(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const dA=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await fA(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},hA=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:g=>{let{x:y,y:w}=g;return{x:y,y:w}}},...u}=Xn(e,t),c={x:n,y:r},f=await s.detectOverflow(t,u),d=xn(Yn(i)),h=jp(d);let p=c[h],m=c[d];if(o){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=p+f[g],x=p-f[y];p=Qd(w,p,x)}if(a){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=m+f[g],x=m-f[y];m=Qd(w,m,x)}const v=l.fn({...t,[h]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:o,[d]:a}}}}}},pA=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Xn(e,t),c={x:n,y:r},f=xn(i),d=jp(f);let h=c[d],p=c[f];const m=Xn(a,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=d==="y"?"height":"width",x=s.reference[d]-s.floating[w]+v.mainAxis,k=s.reference[d]+s.reference[w]-v.mainAxis;h<x?h=x:h>k&&(h=k)}if(u){var g,y;const w=d==="y"?"width":"height",x=nS.has(Yn(i)),k=s.reference[f]-s.floating[w]+(x&&((g=o.offset)==null?void 0:g[f])||0)+(x?0:v.crossAxis),R=s.reference[f]+s.reference[w]+(x?0:((y=o.offset)==null?void 0:y[f])||0)-(x?v.crossAxis:0);p<k?p=k:p>R&&(p=R)}return{[d]:h,[f]:p}}}},mA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...u}=Xn(e,t),c=await o.detectOverflow(t,u),f=Yn(i),d=Ws(i),h=xn(i)==="y",{width:p,height:m}=s.floating;let v,g;f==="top"||f==="bottom"?(v=f,g=d===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(g=f,v=d==="end"?"top":"bottom");const y=m-c.top-c.bottom,w=p-c.left-c.right,x=jr(m-c[v],y),k=jr(p-c[g],w),R=!t.middlewareData.shift;let E=x,b=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(b=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=y),R&&!d){const T=St(c.left,0),D=St(c.right,0),N=St(c.top,0),H=St(c.bottom,0);h?b=p-2*(T!==0||D!==0?T+D:St(c.left,c.right)):E=m-2*(N!==0||H!==0?N+H:St(c.top,c.bottom))}await l({...t,availableWidth:b,availableHeight:E});const A=await o.getDimensions(a.floating);return p!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function lc(){return typeof window<"u"}function Hs(e){return rS(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Tn(e){var t;return(t=(rS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rS(e){return lc()?e instanceof Node||e instanceof Ct(e).Node:!1}function rn(e){return lc()?e instanceof Element||e instanceof Ct(e).Element:!1}function Jn(e){return lc()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function zy(e){return!lc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}function Ta(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=sn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function gA(e){return/^(table|td|th)$/.test(Hs(e))}function uc(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const yA=/transform|translate|scale|rotate|perspective|filter/,vA=/paint|layout|strict|content/,Qr=e=>!!e&&e!=="none";let af;function Up(e){const t=rn(e)?sn(e):e;return Qr(t.transform)||Qr(t.translate)||Qr(t.scale)||Qr(t.rotate)||Qr(t.perspective)||!$p()&&(Qr(t.backdropFilter)||Qr(t.filter))||yA.test(t.willChange||"")||vA.test(t.contain||"")}function wA(e){let t=zr(e);for(;Jn(t)&&!Is(t);){if(Up(t))return t;if(uc(t))return null;t=zr(t)}return null}function $p(){return af==null&&(af=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),af}function Is(e){return/^(html|body|#document)$/.test(Hs(e))}function sn(e){return Ct(e).getComputedStyle(e)}function cc(e){return rn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zr(e){if(Hs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zy(e)&&e.host||Tn(e);return zy(t)?t.host:t}function iS(e){const t=zr(e);return Is(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jn(t)&&Ta(t)?t:iS(t)}function ia(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=iS(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=Ct(i);if(s){const a=Yd(o);return t.concat(o,o.visualViewport||[],Ta(i)?i:[],a&&n?ia(a):[])}else return t.concat(i,ia(i,[],n))}function Yd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sS(e){const t=sn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Jn(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=xu(n)!==s||xu(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function Wp(e){return rn(e)?e:e.contextElement}function fs(e){const t=Wp(e);if(!Jn(t))return kn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=sS(t);let o=(s?xu(n.width):n.width)/r,a=(s?xu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const xA=kn(0);function oS(e){const t=Ct(e);return!$p()||!t.visualViewport?xA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function SA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ct(e)?!1:t}function Pi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Wp(e);let o=kn(1);t&&(r?rn(r)&&(o=fs(r)):o=fs(e));const a=SA(s,n,r)?oS(s):kn(0);let l=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(s){const d=Ct(s),h=r&&rn(r)?Ct(r):r;let p=d,m=Yd(p);for(;m&&r&&h!==p;){const v=fs(m),g=m.getBoundingClientRect(),y=sn(m),w=g.left+(m.clientLeft+parseFloat(y.paddingLeft))*v.x,x=g.top+(m.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,f*=v.y,l+=w,u+=x,p=Ct(m),m=Yd(p)}}return bu({width:c,height:f,x:l,y:u})}function fc(e,t){const n=cc(e).scrollLeft;return t?t.left+n:Pi(Tn(e)).left+n}function aS(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-fc(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function bA(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=Tn(r),a=t?uc(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=kn(1);const c=kn(0),f=Jn(r);if((f||!f&&!s)&&((Hs(r)!=="body"||Ta(o))&&(l=cc(r)),f)){const h=Pi(r);u=fs(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const d=o&&!f&&!s?aS(o,l):kn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function kA(e){return Array.from(e.getClientRects())}function CA(e){const t=Tn(e),n=cc(e),r=e.ownerDocument.body,i=St(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=St(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+fc(e);const a=-n.scrollTop;return sn(r).direction==="rtl"&&(o+=St(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}const By=25;function EA(e,t){const n=Ct(e),r=Tn(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=$p();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const u=fc(r);if(u<=0){const c=r.ownerDocument,f=c.body,d=getComputedStyle(f),h=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,p=Math.abs(r.clientWidth-f.clientWidth-h);p<=By&&(s-=p)}else u<=By&&(s+=u);return{width:s,height:o,x:a,y:l}}function RA(e,t){const n=Pi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=Jn(e)?fs(e):kn(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,u=r*s.y;return{width:o,height:a,x:l,y:u}}function Uy(e,t,n){let r;if(t==="viewport")r=EA(e,n);else if(t==="document")r=CA(Tn(e));else if(rn(t))r=RA(t,n);else{const i=oS(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return bu(r)}function lS(e,t){const n=zr(e);return n===t||!rn(n)||Is(n)?!1:sn(n).position==="fixed"||lS(n,t)}function TA(e,t){const n=t.get(e);if(n)return n;let r=ia(e,[],!1).filter(a=>rn(a)&&Hs(a)!=="body"),i=null;const s=sn(e).position==="fixed";let o=s?zr(e):e;for(;rn(o)&&!Is(o);){const a=sn(o),l=Up(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Ta(o)&&!l&&lS(e,o))?r=r.filter(c=>c!==o):i=a,o=zr(o)}return t.set(e,r),r}function PA(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?uc(t)?[]:TA(t,this._c):[].concat(n),r],a=Uy(t,o[0],i);let l=a.top,u=a.right,c=a.bottom,f=a.left;for(let d=1;d<o.length;d++){const h=Uy(t,o[d],i);l=St(h.top,l),u=jr(h.right,u),c=jr(h.bottom,c),f=St(h.left,f)}return{width:u-f,height:c-l,x:f,y:l}}function AA(e){const{width:t,height:n}=sS(e);return{width:t,height:n}}function MA(e,t,n){const r=Jn(t),i=Tn(t),s=n==="fixed",o=Pi(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=kn(0);function u(){l.x=fc(i)}if(r||!r&&!s)if((Hs(t)!=="body"||Ta(i))&&(a=cc(t)),r){const h=Pi(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&u();s&&!r&&i&&u();const c=i&&!r&&!s?aS(i,a):kn(0),f=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:f,y:d,width:o.width,height:o.height}}function lf(e){return sn(e).position==="static"}function $y(e,t){if(!Jn(e)||sn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Tn(e)===n&&(n=n.ownerDocument.body),n}function uS(e,t){const n=Ct(e);if(uc(e))return n;if(!Jn(e)){let i=zr(e);for(;i&&!Is(i);){if(rn(i)&&!lf(i))return i;i=zr(i)}return n}let r=$y(e,t);for(;r&&gA(r)&&lf(r);)r=$y(r,t);return r&&Is(r)&&lf(r)&&!Up(r)?n:r||wA(e)||n}const OA=async function(e){const t=this.getOffsetParent||uS,n=this.getDimensions,r=await n(e.floating);return{reference:MA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function DA(e){return sn(e).direction==="rtl"}const LA={convertOffsetParentRelativeRectToViewportRelativeRect:bA,getDocumentElement:Tn,getClippingRect:PA,getOffsetParent:uS,getElementRects:OA,getClientRects:kA,getDimensions:AA,getScale:fs,isElement:rn,isRTL:DA};function cS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _A(e,t){let n=null,r;const i=Tn(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=u;if(a||t(),!d||!h)return;const p=sl(f),m=sl(i.clientWidth-(c+d)),v=sl(i.clientHeight-(f+h)),g=sl(c),w={rootMargin:-p+"px "+-m+"px "+-v+"px "+-g+"px",threshold:St(0,jr(1,l))||1};let x=!0;function k(R){const E=R[0].intersectionRatio;if(E!==l){if(!x)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!cS(u,e.getBoundingClientRect())&&o(),x=!1}try{n=new IntersectionObserver(k,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,w)}n.observe(e)}return o(!0),s}function Z4(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Wp(e),c=i||s?[...u?ia(u):[],...t?ia(t):[]]:[];c.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const f=u&&a?_A(u,n):null;let d=-1,h=null;o&&(h=new ResizeObserver(g=>{let[y]=g;y&&y.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let p,m=l?Pi(e):null;l&&v();function v(){const g=Pi(e);m&&!cS(m,g)&&n(),m=g,p=requestAnimationFrame(v)}return n(),()=>{var g;c.forEach(y=>{i&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),f==null||f(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const IA=dA,NA=hA,FA=uA,VA=mA,jA=cA,Wy=lA,zA=pA,BA=(e,t,n)=>{const r=new Map,i={platform:LA,...n},s={...i.platform,_c:r};return aA(e,t,{...i,platform:s})};var UA=typeof document<"u",$A=function(){},_l=UA?S.useLayoutEffect:$A;function ku(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(!ku(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;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!ku(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function fS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hy(e,t){const n=fS(e);return Math.round(t*n)/n}function uf(e){const t=S.useRef(e);return _l(()=>{t.current=e}),t}function J4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=S.useState(r);ku(d,r)||h(r);const[p,m]=S.useState(null),[v,g]=S.useState(null),y=S.useCallback(M=>{M!==R.current&&(R.current=M,m(M))},[]),w=S.useCallback(M=>{M!==E.current&&(E.current=M,g(M))},[]),x=s||p,k=o||v,R=S.useRef(null),E=S.useRef(null),b=S.useRef(c),A=l!=null,T=uf(l),D=uf(i),N=uf(u),H=S.useCallback(()=>{if(!R.current||!E.current)return;const M={placement:t,strategy:n,middleware:d};D.current&&(M.platform=D.current),BA(R.current,E.current,M).then(_=>{const O={..._,isPositioned:N.current!==!1};U.current&&!ku(b.current,O)&&(b.current=O,Rr.flushSync(()=>{f(O)}))})},[d,t,n,D,N]);_l(()=>{u===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[u]);const U=S.useRef(!1);_l(()=>(U.current=!0,()=>{U.current=!1}),[]),_l(()=>{if(x&&(R.current=x),k&&(E.current=k),x&&k){if(T.current)return T.current(x,k,H);H()}},[x,k,H,T,A]);const X=S.useMemo(()=>({reference:R,floating:E,setReference:y,setFloating:w}),[y,w]),V=S.useMemo(()=>({reference:x,floating:k}),[x,k]),Q=S.useMemo(()=>{const M={position:n,left:0,top:0};if(!V.floating)return M;const _=Hy(V.floating,c.x),O=Hy(V.floating,c.y);return a?{...M,transform:"translate("+_+"px, "+O+"px)",...fS(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:O}},[n,a,V.floating,c.x,c.y]);return S.useMemo(()=>({...c,update:H,refs:X,elements:V,floatingStyles:Q}),[c,H,X,V,Q])}const WA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Wy({element:r.current,padding:i}).fn(n):{}:r?Wy({element:r,padding:i}).fn(n):{}}}},eF=(e,t)=>{const n=IA(e);return{name:n.name,fn:n.fn,options:[e,t]}},tF=(e,t)=>{const n=NA(e);return{name:n.name,fn:n.fn,options:[e,t]}},nF=(e,t)=>({fn:zA(e).fn,options:[e,t]}),rF=(e,t)=>{const n=FA(e);return{name:n.name,fn:n.fn,options:[e,t]}},iF=(e,t)=>{const n=VA(e);return{name:n.name,fn:n.fn,options:[e,t]}},sF=(e,t)=>{const n=jA(e);return{name:n.name,fn:n.fn,options:[e,t]}},oF=(e,t)=>{const n=WA(e);return{name:n.name,fn:n.fn,options:[e,t]}};var HA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Vi=new WeakMap,ol=new WeakMap,al={},cf=0,dS=function(e){return e&&(e.host||dS(e.parentNode))},KA=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=dS(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qA=function(e,t,n,r){var i=KA(t,Array.isArray(e)?e:[e]);al[n]||(al[n]=new WeakMap);var s=al[n],o=[],a=new Set,l=new Set(i),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))c(d);else try{var h=d.getAttribute(r),p=h!==null&&h!=="false",m=(Vi.get(d)||0)+1,v=(s.get(d)||0)+1;Vi.set(d,m),s.set(d,v),o.push(d),m===1&&p&&ol.set(d,!0),v===1&&d.setAttribute(n,"true"),p||d.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return c(t),a.clear(),cf++,function(){o.forEach(function(f){var d=Vi.get(f)-1,h=s.get(f)-1;Vi.set(f,d),s.set(f,h),d||(ol.has(f)||f.removeAttribute(r),ol.delete(f)),h||f.removeAttribute(n)}),cf--,cf||(Vi=new WeakMap,Vi=new WeakMap,ol=new WeakMap,al={})}},aF=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=HA(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),qA(r,i,n,"aria-hidden")):function(){return null}},Zd=function(e,t){return Zd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Zd(e,t)};function hS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Zd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ft=function(){return Ft=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ft.apply(this,arguments)};function dc(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 pS(e,t,n,r){var i=arguments.length,s=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function mS(e,t){return function(n,r){t(n,r,e)}}function gS(e,t,n,r,i,s){function o(g){if(g!==void 0&&typeof g!="function")throw new TypeError("Function expected");return g}for(var a=r.kind,l=a==="getter"?"get":a==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f,d=!1,h=n.length-1;h>=0;h--){var p={};for(var m in r)p[m]=m==="access"?{}:r[m];for(var m in r.access)p.access[m]=r.access[m];p.addInitializer=function(g){if(d)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(g||null))};var v=(0,n[h])(a==="accessor"?{get:c.get,set:c.set}:c[l],p);if(a==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(f=o(v.get))&&(c.get=f),(f=o(v.set))&&(c.set=f),(f=o(v.init))&&i.unshift(f)}else(f=o(v))&&(a==="field"?i.unshift(f):c[l]=f)}u&&Object.defineProperty(u,r.name,c),d=!0}function yS(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function vS(e){return typeof e=="symbol"?e:"".concat(e)}function wS(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function xS(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function SS(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?s(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function bS(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1],s=u;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(u);break}s[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var hc=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function kS(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&hc(t,e,n)}function Cu(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hp(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function CS(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Hp(arguments[t]));return e}function ES(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var s=arguments[t],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r}function Kp(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function Ns(e){return this instanceof Ns?(this.v=e,this):new Ns(e)}function RS(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(h){return function(p){return Promise.resolve(p).then(h,f)}}function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(v,g){s.push([h,m,v,g])>1||l(h,m)})},p&&(i[h]=p(i[h])))}function l(h,p){try{u(r[h](p))}catch(m){d(s[0][3],m)}}function u(h){h.value instanceof Ns?Promise.resolve(h.value.v).then(c,f):d(s[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function d(h,p){h(p),s.shift(),s.length&&l(s[0][0],s[0][1])}}function TS(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,s){t[i]=e[i]?function(o){return(n=!n)?{value:Ns(e[i](o)),done:!1}:s?s(o):o}:s}}function PS(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Cu=="function"?Cu(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(u){s({value:u,done:a})},o)}}function AS(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var GA=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Jd=function(e){return Jd=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},Jd(e)};function MS(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Jd(e),r=0;r<n.length;r++)n[r]!=="default"&&hc(t,e,n[r]);return GA(t,e),t}function OS(e){return e&&e.__esModule?e:{default:e}}function DS(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function LS(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function _S(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function IS(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(s){return Promise.reject(s)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var QA=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function NS(e){function t(s){e.error=e.hasError?new QA(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var s=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(s).then(i,function(o){return t(o),i()})}else r|=1}catch(o){t(o)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function FS(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,i,s,o){return r?t?".jsx":".js":i&&(!s||!o)?n:i+s+"."+o.toLowerCase()+"js"}):e}const XA={__extends:hS,__assign:Ft,__rest:dc,__decorate:pS,__param:mS,__esDecorate:gS,__runInitializers:yS,__propKey:vS,__setFunctionName:wS,__metadata:xS,__awaiter:SS,__generator:bS,__createBinding:hc,__exportStar:kS,__values:Cu,__read:Hp,__spread:CS,__spreadArrays:ES,__spreadArray:Kp,__await:Ns,__asyncGenerator:RS,__asyncDelegator:TS,__asyncValues:PS,__makeTemplateObject:AS,__importStar:MS,__importDefault:OS,__classPrivateFieldGet:DS,__classPrivateFieldSet:LS,__classPrivateFieldIn:_S,__addDisposableResource:IS,__disposeResources:NS,__rewriteRelativeImportExtension:FS},YA=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:IS,get __assign(){return Ft},__asyncDelegator:TS,__asyncGenerator:RS,__asyncValues:PS,__await:Ns,__awaiter:SS,__classPrivateFieldGet:DS,__classPrivateFieldIn:_S,__classPrivateFieldSet:LS,__createBinding:hc,__decorate:pS,__disposeResources:NS,__esDecorate:gS,__exportStar:kS,__extends:hS,__generator:bS,__importDefault:OS,__importStar:MS,__makeTemplateObject:AS,__metadata:xS,__param:mS,__propKey:vS,__read:Hp,__rest:dc,__rewriteRelativeImportExtension:FS,__runInitializers:yS,__setFunctionName:wS,__spread:CS,__spreadArray:Kp,__spreadArrays:ES,__values:Cu,default:XA},Symbol.toStringTag,{value:"Module"}));var Il="right-scroll-bar-position",Nl="width-before-scroll-bar",ZA="with-scroll-bars-hidden",JA="--removed-body-scroll-bar-size";function ff(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function eM(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var tM=typeof window<"u"?S.useLayoutEffect:S.useEffect,Ky=new WeakMap;function nM(e,t){var n=eM(null,function(r){return e.forEach(function(i){return ff(i,r)})});return tM(function(){var r=Ky.get(n);if(r){var i=new Set(r),s=new Set(e),o=n.current;i.forEach(function(a){s.has(a)||ff(a,null)}),s.forEach(function(a){i.has(a)||ff(a,o)})}Ky.set(n,e)},[e]),n}function rM(e){return e}function iM(e,t){t===void 0&&(t=rM);var n=[],r=!1,i={read:function(){if(r)throw new 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(s){var o=t(s,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(s),o=n}var l=function(){var c=o;o=[],c.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){o.push(c),u()},filter:function(c){return o=o.filter(c),n}}}};return i}function sM(e){e===void 0&&(e={});var t=iM(null);return t.options=Ft({async:!0,ssr:!1},e),t}var VS=function(e){var t=e.sideCar,n=dc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,Ft({},n))};VS.isSideCarExport=!0;function oM(e,t){return e.useMedium(t),VS}var jS=sM(),df=function(){},pc=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:df,onWheelCapture:df,onTouchMoveCapture:df}),i=r[0],s=r[1],o=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,p=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=g===void 0?"div":g,w=e.gapMode,x=dc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=d,R=nM([n,t]),E=Ft(Ft({},x),i);return S.createElement(S.Fragment,null,c&&S.createElement(k,{sideCar:jS,removeScrollBar:u,shards:f,noRelative:h,noIsolation:p,inert:m,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:w}),o?S.cloneElement(S.Children.only(a),Ft(Ft({},E),{ref:R})):S.createElement(y,Ft({},E,{className:l,ref:R}),a))});pc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};pc.classNames={fullWidth:Nl,zeroRight:Il};var aM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=aM();return t&&e.setAttribute("nonce",t),e}function uM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fM=function(){var e=0,t=null;return{add:function(n){e==0&&(t=lM())&&(uM(t,n),cM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dM=function(){var e=fM();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zS=function(){var e=dM(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},hM={left:0,top:0,right:0,gap:0},hf=function(e){return parseInt(e||"",10)||0},pM=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[hf(n),hf(r),hf(i)]},mM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hM;var t=pM(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])}},gM=zS(),ds="data-scroll-locked",yM=function(e,t,n,r){var i=e.left,s=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
345
+ .`.concat(ZA,` {
346
+ overflow: hidden `).concat(r,`;
347
+ padding-right: `).concat(a,"px ").concat(r,`;
348
+ }
349
+ body[`).concat(ds,`] {
350
+ overflow: hidden `).concat(r,`;
351
+ overscroll-behavior: contain;
352
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
353
+ padding-left: `.concat(i,`px;
354
+ padding-top: `).concat(s,`px;
355
+ padding-right: `).concat(o,`px;
356
+ margin-left:0;
357
+ margin-top:0;
358
+ margin-right: `).concat(a,"px ").concat(r,`;
359
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
360
+ }
361
+
362
+ .`).concat(Il,` {
363
+ right: `).concat(a,"px ").concat(r,`;
364
+ }
365
+
366
+ .`).concat(Nl,` {
367
+ margin-right: `).concat(a,"px ").concat(r,`;
368
+ }
369
+
370
+ .`).concat(Il," .").concat(Il,` {
371
+ right: 0 `).concat(r,`;
372
+ }
373
+
374
+ .`).concat(Nl," .").concat(Nl,` {
375
+ margin-right: 0 `).concat(r,`;
376
+ }
377
+
378
+ body[`).concat(ds,`] {
379
+ `).concat(JA,": ").concat(a,`px;
380
+ }
381
+ `)},qy=function(){var e=parseInt(document.body.getAttribute(ds)||"0",10);return isFinite(e)?e:0},vM=function(){S.useEffect(function(){return document.body.setAttribute(ds,(qy()+1).toString()),function(){var e=qy()-1;e<=0?document.body.removeAttribute(ds):document.body.setAttribute(ds,e.toString())}},[])},wM=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;vM();var s=S.useMemo(function(){return mM(i)},[i]);return S.createElement(gM,{styles:yM(s,!t,i,n?"":"!important")})},eh=!1;if(typeof window<"u")try{var ll=Object.defineProperty({},"passive",{get:function(){return eh=!0,!0}});window.addEventListener("test",ll,ll),window.removeEventListener("test",ll,ll)}catch{eh=!1}var ji=eh?{passive:!1}:!1,xM=function(e){return e.tagName==="TEXTAREA"},BS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!xM(e)&&n[t]==="visible")},SM=function(e){return BS(e,"overflowY")},bM=function(e){return BS(e,"overflowX")},Gy=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=US(e,r);if(i){var s=$S(e,r),o=s[1],a=s[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},kM=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},CM=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},US=function(e,t){return e==="v"?SM(t):bM(t)},$S=function(e,t){return e==="v"?kM(t):CM(t)},EM=function(e,t){return e==="h"&&t==="rtl"?-1:1},RM=function(e,t,n,r,i){var s=EM(e,window.getComputedStyle(t).direction),o=s*r,a=n.target,l=t.contains(a),u=!1,c=o>0,f=0,d=0;do{if(!a)break;var h=$S(e,a),p=h[0],m=h[1],v=h[2],g=m-v-s*p;(p||g)&&US(e,a)&&(f+=g,d+=p);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&Math.abs(f)<1||!c&&Math.abs(d)<1)&&(u=!0),u},ul=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qy=function(e){return[e.deltaX,e.deltaY]},Xy=function(e){return e&&"current"in e?e.current:e},TM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},PM=function(e){return`
382
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
383
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
384
+ `)},AM=0,zi=[];function MM(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),i=S.useState(AM++)[0],s=S.useState(zS)[0],o=S.useRef(e);S.useEffect(function(){o.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=Kp([e.lockRef.current],(e.shards||[]).map(Xy),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=S.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var g=ul(m),y=n.current,w="deltaX"in m?m.deltaX:y[0]-g[0],x="deltaY"in m?m.deltaY:y[1]-g[1],k,R=m.target,E=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in m&&E==="h"&&R.type==="range")return!1;var b=window.getSelection(),A=b&&b.anchorNode,T=A?A===R||A.contains(R):!1;if(T)return!1;var D=Gy(E,R);if(!D)return!0;if(D?k=E:(k=E==="v"?"h":"v",D=Gy(E,R)),!D)return!1;if(!r.current&&"changedTouches"in m&&(w||x)&&(r.current=k),!k)return!0;var N=r.current||k;return RM(N,v,m,N==="h"?w:x)},[]),l=S.useCallback(function(m){var v=m;if(!(!zi.length||zi[zi.length-1]!==s)){var g="deltaY"in v?Qy(v):ul(v),y=t.current.filter(function(k){return k.name===v.type&&(k.target===v.target||v.target===k.shadowParent)&&TM(k.delta,g)})[0];if(y&&y.should){v.cancelable&&v.preventDefault();return}if(!y){var w=(o.current.shards||[]).map(Xy).filter(Boolean).filter(function(k){return k.contains(v.target)}),x=w.length>0?a(v,w[0]):!o.current.noIsolation;x&&v.cancelable&&v.preventDefault()}}},[]),u=S.useCallback(function(m,v,g,y){var w={name:m,delta:v,target:g,should:y,shadowParent:OM(g)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),c=S.useCallback(function(m){n.current=ul(m),r.current=void 0},[]),f=S.useCallback(function(m){u(m.type,Qy(m),m.target,a(m,e.lockRef.current))},[]),d=S.useCallback(function(m){u(m.type,ul(m),m.target,a(m,e.lockRef.current))},[]);S.useEffect(function(){return zi.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,ji),document.addEventListener("touchmove",l,ji),document.addEventListener("touchstart",c,ji),function(){zi=zi.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,ji),document.removeEventListener("touchmove",l,ji),document.removeEventListener("touchstart",c,ji)}},[]);var h=e.removeScrollBar,p=e.inert;return S.createElement(S.Fragment,null,p?S.createElement(s,{styles:PM(i)}):null,h?S.createElement(wM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function OM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const DM=oM(jS,MM);var LM=S.forwardRef(function(e,t){return S.createElement(pc,Ft({},e,{ref:t,sideCar:DM}))});LM.classNames=pc.classNames;const qp=S.createContext({});function Gp(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const _M=typeof window<"u",Qp=_M?S.useLayoutEffect:S.useEffect,mc=S.createContext(null);function Xp(e,t){e.indexOf(t)===-1&&e.push(t)}function Eu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const En=(e,t,n)=>n>t?t:n<e?e:n;let Yp=()=>{};const Br={},WS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),HS=e=>typeof e=="object"&&e!==null,KS=e=>/^0[^.\s]+$/u.test(e);function qS(e){let t;return()=>(t===void 0&&(t=e()),t)}const Bt=e=>e,Pa=(...e)=>e.reduce((t,n)=>r=>n(t(r))),sa=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Zp{constructor(){this.subscriptions=[]}add(t){return Xp(this.subscriptions,t),()=>Eu(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Et=e=>e*1e3,jt=e=>e/1e3,GS=(e,t)=>t?e*(1e3/t):0,QS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,IM=1e-7,NM=12;function FM(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=QS(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>IM&&++a<NM);return o}function Aa(e,t,n,r){if(e===t&&n===r)return Bt;const i=s=>FM(s,0,1,e,n);return s=>s===0||s===1?s:QS(i(s),t,r)}const XS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,YS=e=>t=>1-e(1-t),ZS=Aa(.33,1.53,.69,.99),Jp=YS(ZS),JS=XS(Jp),eb=e=>e>=1?1:(e*=2)<1?.5*Jp(e):.5*(2-Math.pow(2,-10*(e-1))),em=e=>1-Math.sin(Math.acos(e)),tb=YS(em),nb=XS(em),VM=Aa(.42,0,1,1),jM=Aa(0,0,.58,1),rb=Aa(.42,0,.58,1),zM=e=>Array.isArray(e)&&typeof e[0]!="number",ib=e=>Array.isArray(e)&&typeof e[0]=="number",BM={linear:Bt,easeIn:VM,easeInOut:rb,easeOut:jM,circIn:em,circInOut:nb,circOut:tb,backIn:Jp,backInOut:JS,backOut:ZS,anticipate:eb},UM=e=>typeof e=="string",Yy=e=>{if(ib(e)){Yp(e.length===4);const[t,n,r,i]=e;return Aa(t,n,r,i)}else if(UM(e))return BM[e];return e},cl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $M(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){s.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,c=!1,f=!1)=>{const h=f&&r?t:n;return c&&s.add(u),h.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0;const c=t;t=n,n=c,t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const WM=40;function sb(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=cl.reduce((w,x)=>(w[x]=$M(s),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:d,render:h,postRender:p}=o,m=()=>{const w=Br.useManualTiming,x=w?i.timestamp:performance.now();n=!1,w||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,WM),1)),i.timestamp=x,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},v=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:cl.reduce((w,x)=>{const k=o[x];return w[x]=(R,E=!1,b=!1)=>(n||v(),k.schedule(R,E,b)),w},{}),cancel:w=>{for(let x=0;x<cl.length;x++)o[cl[x]].cancel(w)},state:i,steps:o}}const{schedule:ce,cancel:Ur,state:Ve,steps:pf}=sb(typeof requestAnimationFrame<"u"?requestAnimationFrame:Bt,!0);let Fl;function HM(){Fl=void 0}const et={now:()=>(Fl===void 0&&et.set(Ve.isProcessing||Br.useManualTiming?Ve.timestamp:performance.now()),Fl),set:e=>{Fl=e,queueMicrotask(HM)}},ob=e=>t=>typeof t=="string"&&t.startsWith(e),ab=ob("--"),KM=ob("var(--"),tm=e=>KM(e)?qM.test(e.split("/*")[0].trim()):!1,qM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Zy(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ks={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},oa={...Ks,transform:e=>En(0,1,e)},fl={...Ks,default:1},Do=e=>Math.round(e*1e5)/1e5,nm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function GM(e){return e==null}const QM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rm=(e,t)=>n=>!!(typeof n=="string"&&QM.test(n)&&n.startsWith(e)||t&&!GM(n)&&Object.prototype.hasOwnProperty.call(n,t)),lb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(nm);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},XM=e=>En(0,255,e),mf={...Ks,transform:e=>Math.round(XM(e))},si={test:rm("rgb","red"),parse:lb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+mf.transform(e)+", "+mf.transform(t)+", "+mf.transform(n)+", "+Do(oa.transform(r))+")"};function YM(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}}const th={test:rm("#"),parse:YM,transform:si.transform},Ma=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_n=Ma("deg"),Cn=Ma("%"),z=Ma("px"),ZM=Ma("vh"),JM=Ma("vw"),Jy={...Cn,parse:e=>Cn.parse(e)/100,transform:e=>Cn.transform(e*100)},ts={test:rm("hsl","hue"),parse:lb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Cn.transform(Do(t))+", "+Cn.transform(Do(n))+", "+Do(oa.transform(r))+")"},Ce={test:e=>si.test(e)||th.test(e)||ts.test(e),parse:e=>si.test(e)?si.parse(e):ts.test(e)?ts.parse(e):th.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?si.transform(e):ts.transform(e),getAnimatableNone:e=>{const t=Ce.parse(e);return t.alpha=0,Ce.transform(t)}},eO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tO(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(nm))==null?void 0:t.length)||0)+(((n=e.match(eO))==null?void 0:n.length)||0)>0}const ub="number",cb="color",nO="var",rO="var(",ev="${}",iO=/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 Fs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(iO,l=>(Ce.test(l)?(r.color.push(s),i.push(cb),n.push(Ce.parse(l))):l.startsWith(rO)?(r.var.push(s),i.push(nO),n.push(l)):(r.number.push(s),i.push(ub),n.push(parseFloat(l))),++s,ev)).split(ev);return{values:n,split:a,indexes:r,types:i}}function sO(e){return Fs(e).values}function fb({split:e,types:t}){const n=e.length;return r=>{let i="";for(let s=0;s<n;s++)if(i+=e[s],r[s]!==void 0){const o=t[s];o===ub?i+=Do(r[s]):o===cb?i+=Ce.transform(r[s]):i+=r[s]}return i}}function oO(e){return fb(Fs(e))}const aO=e=>typeof e=="number"?0:Ce.test(e)?Ce.getAnimatableNone(e):e,lO=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:aO(e);function uO(e){const t=Fs(e);return fb(t)(t.values.map((r,i)=>lO(r,t.split[i])))}const tn={test:tO,parse:sO,createTransformer:oO,getAnimatableNone:uO};function gf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function cO({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=gf(l,a,e+1/3),s=gf(l,a,e),o=gf(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Ru(e,t){return n=>n>0?t:e}const ue=(e,t,n)=>e+(t-e)*n,yf=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},fO=[th,si,ts],dO=e=>fO.find(t=>t.test(e));function tv(e){const t=dO(e);if(!t)return!1;let n=t.parse(e);return t===ts&&(n=cO(n)),n}const nv=(e,t)=>{const n=tv(e),r=tv(t);if(!n||!r)return Ru(e,t);const i={...n};return s=>(i.red=yf(n.red,r.red,s),i.green=yf(n.green,r.green,s),i.blue=yf(n.blue,r.blue,s),i.alpha=ue(n.alpha,r.alpha,s),si.transform(i))},nh=new Set(["none","hidden"]);function hO(e,t){return nh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pO(e,t){return n=>ue(e,t,n)}function im(e){return typeof e=="number"?pO:typeof e=="string"?tm(e)?Ru:Ce.test(e)?nv:yO:Array.isArray(e)?db:typeof e=="object"?Ce.test(e)?nv:mO:Ru}function db(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>im(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function mO(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=im(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function gO(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const yO=(e,t)=>{const n=tn.createTransformer(t),r=Fs(e),i=Fs(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?nh.has(e)&&!i.values.length||nh.has(t)&&!r.values.length?hO(e,t):Pa(db(gO(r,i),i.values),n):Ru(e,t)};function hb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ue(e,t,n):im(e)(e,t)}const vO=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ce.update(t,n),stop:()=>Ur(t),now:()=>Ve.isProcessing?Ve.timestamp:et.now()}},pb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Tu=2e4;function sm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Tu;)t+=n,r=e.next(t);return t>=Tu?1/0:t}function wO(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(sm(r),Tu);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:jt(i)}}const xe={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 rh(e,t){return e*Math.sqrt(1-t*t)}const xO=12;function SO(e,t,n){let r=n;for(let i=1;i<xO;i++)r=r-e(r)/t(r);return r}const vf=.001;function bO({duration:e=xe.duration,bounce:t=xe.bounce,velocity:n=xe.velocity,mass:r=xe.mass}){let i,s,o=1-t;o=En(xe.minDamping,xe.maxDamping,o),e=En(xe.minDuration,xe.maxDuration,jt(e)),o<1?(i=u=>{const c=u*o,f=c*e,d=c-n,h=rh(u,o),p=Math.exp(-f);return vf-d/h*p},s=u=>{const f=u*o*e,d=f*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,p=Math.exp(-f),m=rh(Math.pow(u,2),o);return(-i(u)+vf>0?-1:1)*((d-h)*p)/m}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-vf+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=SO(i,s,a);if(e=Et(e),isNaN(l))return{stiffness:xe.stiffness,damping:xe.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const kO=["duration","bounce"],CO=["stiffness","damping","mass"];function rv(e,t){return t.some(n=>e[n]!==void 0)}function EO(e){let t={velocity:xe.velocity,stiffness:xe.stiffness,damping:xe.damping,mass:xe.mass,isResolvedFromDuration:!1,...e};if(!rv(e,CO)&&rv(e,kO))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*En(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:xe.mass,stiffness:i,damping:s}}else{const n=bO({...e,velocity:0});t={...t,...n,mass:xe.mass},t.isResolvedFromDuration=!0}return t}function Pu(e=xe.visualDuration,t=xe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=EO({...n,velocity:-jt(n.velocity||0)}),p=d||0,m=u/(2*Math.sqrt(l*c)),v=o-s,g=jt(Math.sqrt(l/c)),y=Math.abs(v)<5;r||(r=y?xe.restSpeed.granular:xe.restSpeed.default),i||(i=y?xe.restDelta.granular:xe.restDelta.default);let w,x,k,R,E,b;if(m<1)k=rh(g,m),R=(p+m*g*v)/k,w=T=>{const D=Math.exp(-m*g*T);return o-D*(R*Math.sin(k*T)+v*Math.cos(k*T))},E=m*g*R+v*k,b=m*g*v-R*k,x=T=>Math.exp(-m*g*T)*(E*Math.sin(k*T)+b*Math.cos(k*T));else if(m===1){w=D=>o-Math.exp(-g*D)*(v+(p+g*v)*D);const T=p+g*v;x=D=>Math.exp(-g*D)*(g*T*D-p)}else{const T=g*Math.sqrt(m*m-1);w=U=>{const X=Math.exp(-m*g*U),V=Math.min(T*U,300);return o-X*((p+m*g*v)*Math.sinh(V)+T*v*Math.cosh(V))/T};const D=(p+m*g*v)/T,N=m*g*D-v*T,H=m*g*v-D*T;x=U=>{const X=Math.exp(-m*g*U),V=Math.min(T*U,300);return X*(N*Math.sinh(V)+H*Math.cosh(V))}}const A={calculatedDuration:h&&f||null,velocity:T=>Et(x(T)),next:T=>{if(!h&&m<1){const N=Math.exp(-m*g*T),H=Math.sin(k*T),U=Math.cos(k*T),X=o-N*(R*H+v*U),V=Et(N*(E*H+b*U));return a.done=Math.abs(V)<=r&&Math.abs(o-X)<=i,a.value=a.done?o:X,a}const D=w(T);if(h)a.done=T>=f;else{const N=Et(x(T));a.done=Math.abs(N)<=r&&Math.abs(o-D)<=i}return a.value=a.done?o:D,a},toString:()=>{const T=Math.min(sm(A),Tu),D=pb(N=>A.next(T*N).value,T,30);return T+"ms "+D},toTransition:()=>{}};return A}Pu.applyToOptions=e=>{const t=wO(e,100,Pu);return e.ease=t.ease,e.duration=Et(t.duration),e.type="keyframes",e};const RO=5;function mb(e,t,n){const r=Math.max(t-RO,0);return GS(n-e(r),t-r)}function ih({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=b=>a!==void 0&&b<a||l!==void 0&&b>l,p=b=>a===void 0?l:l===void 0||Math.abs(a-b)<Math.abs(l-b)?a:l;let m=n*t;const v=f+m,g=o===void 0?v:o(v);g!==v&&(m=g-f);const y=b=>-m*Math.exp(-b/r),w=b=>g+y(b),x=b=>{const A=y(b),T=w(b);d.done=Math.abs(A)<=u,d.value=d.done?g:T};let k,R;const E=b=>{h(d.value)&&(k=b,R=Pu({keyframes:[d.value,p(d.value)],velocity:mb(w,b,d.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:b=>{let A=!1;return!R&&k===void 0&&(A=!0,x(b),E(b)),k!==void 0&&b>=k?R.next(b-k):(!A&&x(b),d)}}}function TO(e,t,n){const r=[],i=n||Br.mix||hb,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Bt:t;a=Pa(l,a)}r.push(a)}return r}function PO(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Yp(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=TO(t,r,i),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=sa(e[f],e[f+1],c);return a[f](d)};return n?c=>u(En(e[0],e[s-1],c)):u}function AO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=sa(0,t,r);e.push(ue(n,1,i))}}function MO(e){const t=[0];return AO(t,e.length-1),t}function OO(e,t){return e.map(n=>n*t)}function DO(e,t){return e.map(()=>t||rb).splice(0,e.length-1)}function Lo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=zM(r)?r.map(Yy):Yy(r),s={done:!1,value:t[0]},o=OO(n&&n.length===t.length?n:MO(t),e),a=PO(o,t,{ease:Array.isArray(i)?i:DO(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const LO=e=>e!==null;function gc(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(LO),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const _O={decay:ih,inertia:ih,tween:Lo,keyframes:Lo,spring:Pu};function gb(e){typeof e.type=="string"&&(e.type=_O[e.type])}class om{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const IO=e=>e/100;class Au extends om{constructor(t){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=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==et.now()&&this.tick(et.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;gb(t);const{type:n=Lo,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Lo;l!==Lo&&typeof a[0]!="number"&&(this.mixKeyframes=Pa(IO,hb(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=sm(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:h,type:p,onUpdate:m,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let w=this.currentTime,x=r;if(f){const b=Math.min(this.currentTime,i)/a;let A=Math.floor(b),T=b%1;!T&&b>=1&&(T=1),T===1&&A--,A=Math.min(A,f+1),!!(A%2)&&(d==="reverse"?(T=1-T,h&&(T-=h/a)):d==="mirror"&&(x=o)),w=En(0,1,T)*a}let k;y?(this.delayState.value=c[0],k=this.delayState):k=x.next(w),s&&!y&&(k.value=s(k.value));let{done:R}=k;!y&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return E&&p!==ih&&(k.value=gc(c,this.options,v,this.speed)),m&&m(k.value),E&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return jt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+jt(t)}get time(){return jt(this.currentTime)}set time(t){t=Et(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return mb(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(et.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=jt(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=vO,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(et.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function NO(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const oi=e=>e*180/Math.PI,sh=e=>{const t=oi(Math.atan2(e[1],e[0]));return oh(t)},FO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:sh,rotateZ:sh,skewX:e=>oi(Math.atan(e[1])),skewY:e=>oi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},oh=e=>(e=e%360,e<0&&(e+=360),e),iv=sh,sv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ov=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),VO={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:sv,scaleY:ov,scale:e=>(sv(e)+ov(e))/2,rotateX:e=>oh(oi(Math.atan2(e[6],e[5]))),rotateY:e=>oh(oi(Math.atan2(-e[2],e[0]))),rotateZ:iv,rotate:iv,skewX:e=>oi(Math.atan(e[4])),skewY:e=>oi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ah(e){return e.includes("scale")?1:0}function lh(e,t){if(!e||e==="none")return ah(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=VO,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=FO,i=a}if(!i)return ah(t);const s=r[t],o=i[1].split(",").map(zO);return typeof s=="function"?s(o):o[s]}const jO=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return lh(n,t)};function zO(e){return parseFloat(e.trim())}const qs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gs=new Set([...qs,"pathRotation"]),av=e=>e===Ks||e===z,BO=new Set(["x","y","z"]),UO=qs.filter(e=>!BO.has(e));function $O(e){const t=[];return UO.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Tr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const 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})=>{const 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})=>lh(t,"x"),y:(e,{transform:t})=>lh(t,"y")};Tr.translateX=Tr.x;Tr.translateY=Tr.y;const wi=new Set;let uh=!1,ch=!1,fh=!1;function yb(){if(ch){const e=Array.from(wi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=$O(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ch=!1,uh=!1,wi.forEach(e=>e.complete(fh)),wi.clear()}function vb(){wi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ch=!0)})}function WO(){fh=!0,vb(),yb(),fh=!1}class am{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(wi.add(this),uh||(uh=!0,ce.read(vb),ce.resolveKeyframes(yb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}NO(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),wi.delete(this)}cancel(){this.state==="scheduled"&&(wi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const HO=e=>e.startsWith("--");function wb(e,t,n){HO(t)?e.style.setProperty(t,n):e.style[t]=n}const KO={};function xb(e,t){const n=qS(e);return()=>KO[t]??n()}const qO=xb(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Sb=xb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bo([0,.65,.55,1]),circOut:bo([.55,0,1,.45]),backIn:bo([.31,.01,.66,-.59]),backOut:bo([.33,1.53,.69,.99])};function bb(e,t){if(e)return typeof e=="function"?Sb()?pb(e,t):"ease-out":ib(e)?bo(e):Array.isArray(e)?e.map(n=>bb(n,t)||lv.easeOut):lv[e]}function GO(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=bb(a,i);Array.isArray(f)&&(c.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(d.pseudoElement=u),e.animate(c,d)}function kb(e){return typeof e=="function"&&"applyToOptions"in e}function QO({type:e,...t}){return kb(e)&&Sb()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Cb extends om{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Yp(typeof t.type!="string");const u=QO(t);this.animation=GO(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=gc(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),wb(n,r,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return jt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+jt(t)}get time(){return jt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Et(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&qO()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Bt):i(this)}}const Eb={anticipate:eb,backInOut:JS,circInOut:nb};function XO(e){return e in Eb}function YO(e){typeof e.ease=="string"&&XO(e.ease)&&(e.ease=Eb[e.ease])}const wf=10;class ZO extends Cb{constructor(t){YO(t),gb(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Au({...o,autoplay:!1}),l=Math.max(wf,et.now()-this.startTime),u=En(0,wf,l-wf),c=a.sample(l).value,{name:f}=this.options;s&&f&&wb(s,f,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const uv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(tn.test(e)||e==="0")&&!e.startsWith("url("));function JO(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function eD(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=uv(i,t),a=uv(s,t);return!o||!a?!1:JO(e)||(n==="spring"||kb(n))&&r}function dh(e){e.duration=0,e.type="keyframes"}const Rb=new Set(["opacity","clipPath","filter","transform"]),tD=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function nD(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&tD.test(e[t]))return!0;return!1}const rD=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),iD=qS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function sD(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return iD()&&n&&(Rb.has(n)||rD.has(n)&&nD(a))&&(n!=="transform"||!c)&&!u&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const oD=40;class aD extends om{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){var p;super(),this.stop=()=>{var m,v;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=et.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...f},h=(c==null?void 0:c.KeyframeResolver)||am;this.keyframeResolver=new h(a,(m,v,g)=>this.onKeyframesResolved(m,v,d,!g),l,u,c),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,r,i){var g,y;this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=et.now();let f=!0;eD(t,s,o,a)||(f=!1,(Br.instantAnimations||!l)&&(c==null||c(gc(t,r,n))),t[0]=t[t.length-1],dh(r),r.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>oD?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=f&&!u&&sD(h),m=(y=(g=h.motionValue)==null?void 0:g.owner)==null?void 0:y.current;let v;if(p)try{v=new ZO({...h,element:m})}catch{v=new Au(h)}else v=new Au(h);v.finished.then(()=>{this.notifyFinished()}).catch(Bt),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),WO()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function Tb(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}const cv=30,lD=e=>!isNaN(parseFloat(e));class uD{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=et.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=et.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=lD(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zp);const r=this.events[t].add(n);return t==="change"?()=>{r(),ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>cv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,cv);return GS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vs(e,t){return new uD(e,t)}function Pb(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function lm(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?Pb(n,e):n}const cD={type:"spring",stiffness:500,damping:25,restSpeed:10},fD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dD={type:"keyframes",duration:.8},hD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pD=(e,{keyframes:t})=>t.length>2?dD:Gs.has(e)?e.startsWith("scale")?fD(t[1]):cD:hD,mD=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function gD(e){for(const t in e)if(!mD.has(t))return!0;return!1}const um=(e,t,n,r={},i,s)=>o=>{const a=lm(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Et(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};gD(a)||Object.assign(c,pD(e,c)),c.duration&&(c.duration=Et(c.duration)),c.repeatDelay&&(c.repeatDelay=Et(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(dh(c),c.delay===0&&(f=!0)),(Br.instantAnimations||Br.skipAnimations||i!=null&&i.shouldSkipAnimations||a.skipAnimations)&&(f=!0,dh(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const d=gc(c.keyframes,a);if(d!==void 0){ce.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new Au(c):new aD(c)},yD=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vD(e){const t=yD.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Ab(e,t,n=1){const[r,i]=vD(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return WS(o)?parseFloat(o):o}return tm(i)?Ab(i,t,n+1):i}function fv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function cm(e,t,n,r){if(typeof t=="function"){const[i,s]=fv(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=fv(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function xi(e,t,n){const r=e.getProps();return cm(r,t,n!==void 0?n:r.custom,e)}const Mb=new Set(["width","height","top","left","right","bottom",...qs]),hh=e=>Array.isArray(e);function wD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Vs(n))}function xD(e){return hh(e)?e[e.length-1]||0:e}function SD(e,t){const n=xi(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=xD(s[o]);wD(e,o,a)}}const ze=e=>!!(e&&e.getVelocity);function bD(e){return!!(ze(e)&&e.add)}function ph(e,t){const n=e.getValue("willChange");if(bD(n))return n.add(t);if(!n&&Br.WillChange){const r=new Br.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function fm(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const kD="framerAppearId",Ob="data-"+fm(kD);function Db(e){return e.props[Ob]}function CD({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Lb(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();s=s?Pb(s,l):l;const u=s==null?void 0:s.reduceMotion,c=s==null?void 0:s.skipAnimations;r&&(s=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i],h=s==null?void 0:s.path;h&&h.animateVisualElement(e,a,s,n,f);for(const p in a){const m=e.getValue(p,e.latestValues[p]??null),v=a[p];if(v===void 0||d&&CD(d,p))continue;const g={delay:n,...lm(s||{},p)};c&&(g.skipAnimations=!0);const y=m.get();if(y!==void 0&&!m.isAnimating()&&!Array.isArray(v)&&v===y&&!g.velocity){ce.update(()=>m.set(v));continue}let w=!1;if(window.MotionHandoffAnimation){const R=Db(e);if(R){const E=window.MotionHandoffAnimation(R,p,ce);E!==null&&(g.startTime=E,w=!0)}}ph(e,p);const x=u??e.shouldReduceMotion;m.start(um(p,m,v,x&&Mb.has(p)?{type:!1}:g,e,w));const k=m.animation;k&&f.push(k)}if(o){const p=()=>ce.update(()=>{o&&SD(e,o)});f.length?Promise.all(f).then(p):p()}return f}function mh(e,t,n={}){var l;const r=xi(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Lb(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return ED(e,t,u,c,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function ED(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(mh(l,t,{...o,delay:n+(typeof r=="function"?0:r)+Tb(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function RD(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>mh(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=mh(e,t,n);else{const i=typeof t=="function"?xi(e,t,n.custom):t;r=Promise.all(Lb(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const TD={test:e=>e==="auto",parse:e=>e},_b=e=>t=>t.test(e),Ib=[Ks,z,Cn,_n,JM,ZM,TD],dv=e=>Ib.find(_b(e));function PD(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||KS(e):!0}const AD=new Set(["brightness","contrast","saturate","opacity"]);function MD(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(nm)||[];if(!r)return e;const i=n.replace(r,"");let s=AD.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const OD=/\b([a-z-]*)\(.*?\)/gu,gh={...tn,getAnimatableNone:e=>{const t=e.match(OD);return t?t.map(MD).join(" "):e}},yh={...tn,getAnimatableNone:e=>{const t=tn.parse(e);return tn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},hv={...Ks,transform:Math.round},DD={rotate:_n,pathRotation:_n,rotateX:_n,rotateY:_n,rotateZ:_n,scale:fl,scaleX:fl,scaleY:fl,scaleZ:fl,skew:_n,skewX:_n,skewY:_n,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:oa,originX:Jy,originY:Jy,originZ:z},Mu={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,inset:z,insetBlock:z,insetBlockStart:z,insetBlockEnd:z,insetInline:z,insetInlineStart:z,insetInlineEnd:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockStart:z,paddingBlockEnd:z,paddingInline:z,paddingInlineStart:z,paddingInlineEnd:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockStart:z,marginBlockEnd:z,marginInline:z,marginInlineStart:z,marginInlineEnd:z,fontSize:z,backgroundPositionX:z,backgroundPositionY:z,...DD,zIndex:hv,fillOpacity:oa,strokeOpacity:oa,numOctaves:hv},LD={...Mu,color:Ce,backgroundColor:Ce,outlineColor:Ce,fill:Ce,stroke:Ce,borderColor:Ce,borderTopColor:Ce,borderRightColor:Ce,borderBottomColor:Ce,borderLeftColor:Ce,filter:gh,WebkitFilter:gh,mask:yh,WebkitMask:yh},Nb=e=>LD[e],_D=new Set([gh,yh]);function Fb(e,t){let n=Nb(e);return _D.has(n)||(n=tn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ID=new Set(["auto","none","0"]);function ND(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!ID.has(s)&&Fs(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Fb(n,i)}class FD extends am{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),tm(f))){const d=Ab(f,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Mb.has(r)||t.length!==2)return;const[i,s]=t,o=dv(i),a=dv(s),l=Zy(i),u=Zy(s);if(l!==u&&Tr[r]){this.needsMeasurement=!0;return}if(o!==a)if(av(o)&&av(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else Tr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||PD(t[i]))&&r.push(i);r.length&&ND(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Tr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=Tr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const dm=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Vb(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const vh=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Vl(e){return HS(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:hm}=sb(queueMicrotask,!1),qt={x:!1,y:!1};function jb(){return qt.x||qt.y}function VD(e){return e==="x"||e==="y"?qt[e]?null:(qt[e]=!0,()=>{qt[e]=!1}):qt.x||qt.y?null:(qt.x=qt.y=!0,()=>{qt.x=qt.y=!1})}function zb(e,t){const n=Vb(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function jD(e){return!(e.pointerType==="touch"||jb())}function zD(e,t,n={}){const[r,i,s]=zb(e,n);return r.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",p)},f=v=>{u&&(u(v),u=void 0),c()},d=v=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),l&&(l=!1,f(v))},h=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},p=v=>{if(v.pointerType!=="touch"){if(a){l=!0;return}f(v)}},m=v=>{if(!jD(v))return;l=!1;const g=t(o,v);typeof g=="function"&&(u=g,o.addEventListener("pointerleave",p,i))};o.addEventListener("pointerenter",m,i),o.addEventListener("pointerdown",h,i)}),s}const Bb=(e,t)=>t?e===t?!0:Bb(e,t.parentElement):!1,pm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,BD=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function UD(e){return BD.has(e.tagName)||e.isContentEditable===!0}const $D=new Set(["INPUT","SELECT","TEXTAREA"]);function WD(e){return $D.has(e.tagName)||e.isContentEditable===!0}const jl=new WeakSet;function pv(e){return t=>{t.key==="Enter"&&e(t)}}function xf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const HD=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=pv(()=>{if(jl.has(n))return;xf(n,"down");const i=pv(()=>{xf(n,"up")}),s=()=>xf(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function mv(e){return pm(e)&&!jb()}const gv=new WeakSet;function KD(e,t,n={}){const[r,i,s]=zb(e,n),o=a=>{const l=a.currentTarget;if(!mv(a)||gv.has(a))return;jl.add(l),n.stopPropagation&&gv.add(a);const u=t(l,a),c={...i,capture:!0},f=(p,m)=>{window.removeEventListener("pointerup",d,c),window.removeEventListener("pointercancel",h,c),jl.has(l)&&jl.delete(l),mv(p)&&typeof u=="function"&&u(p,{success:m})},d=p=>{f(p,l===window||l===document||n.useGlobalTarget||Bb(l,p.target))},h=p=>{f(p,!1)};window.addEventListener("pointerup",d,c),window.addEventListener("pointercancel",h,c)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Vl(a)&&(a.addEventListener("focus",u=>HD(u,i)),!UD(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function mm(e){return HS(e)&&"ownerSVGElement"in e}const zl=new WeakMap;let ur;const Ub=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:mm(r)&&"getBBox"in r?r.getBBox()[t]:r[n],qD=Ub("inline","width","offsetWidth"),GD=Ub("block","height","offsetHeight");function QD({target:e,borderBoxSize:t}){var n;(n=zl.get(e))==null||n.forEach(r=>{r(e,{get width(){return qD(e,t)},get height(){return GD(e,t)}})})}function XD(e){e.forEach(QD)}function YD(){typeof ResizeObserver>"u"||(ur=new ResizeObserver(XD))}function ZD(e,t){ur||YD();const n=Vb(e);return n.forEach(r=>{let i=zl.get(r);i||(i=new Set,zl.set(r,i)),i.add(t),ur==null||ur.observe(r)}),()=>{n.forEach(r=>{const i=zl.get(r);i==null||i.delete(t),i!=null&&i.size||ur==null||ur.unobserve(r)})}}const Bl=new Set;let ns;function JD(){ns=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Bl.forEach(t=>t(e))},window.addEventListener("resize",ns)}function eL(e){return Bl.add(e),ns||JD(),()=>{Bl.delete(e),!Bl.size&&typeof ns=="function"&&(window.removeEventListener("resize",ns),ns=void 0)}}function yv(e,t){return typeof e=="function"?eL(e):ZD(e,t)}function tL(e){return mm(e)&&e.tagName==="svg"}const nL=[...Ib,Ce,tn],rL=e=>nL.find(_b(e)),vv=()=>({translate:0,scale:1,origin:0,originPoint:0}),rs=()=>({x:vv(),y:vv()}),wv=()=>({min:0,max:0}),Pe=()=>({x:wv(),y:wv()}),iL=new WeakMap;function yc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function aa(e){return typeof e=="string"||Array.isArray(e)}const gm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ym=["initial",...gm];function vc(e){return yc(e.animate)||ym.some(t=>aa(e[t]))}function $b(e){return!!(vc(e)||e.variants)}function sL(e,t,n){for(const r in t){const i=t[r],s=n[r];if(ze(i))e.addValue(r,i);else if(ze(s))e.addValue(r,Vs(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Vs(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wh={current:null},Wb={current:!1},oL=typeof window<"u";function aL(){if(Wb.current=!0,!!oL)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wh.current=e.matches;e.addEventListener("change",t),t()}else wh.current=!1}const xv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ou={};function Hb(e){Ou=e}function lL(){return Ou}class uL{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:o,visualState:a},l={}){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=am,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=()=>{const h=et.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,ce.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=s,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=vc(n),this.isVariantNode=$b(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const p=d[h];u[h]!==void 0&&ze(p)&&p.set(u[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,iL.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Wb.current||aL(),this.shouldReduceMotion=wh.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Ur(this.notifyUpdate),Ur(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Rb.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,f=new Cb({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:Et(c)}),d=o(f);this.valueSubscriptions.set(t,()=>{d(),f.cancel()});return}const r=Gs.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ou){const n=Ou[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<xv.length;r++){const i=xv[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=sL(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Vs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(WS(r)||KS(r))?r=parseFloat(r):!rL(r)&&tn.test(n)&&(r=Fb(t,n)),this.setBaseTarget(t,ze(r)?r.get():r)),ze(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=cm(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ze(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){hm.render(this.render)}}class Kb extends uL{constructor(){super(...arguments),this.KeyframeResolver=FD}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ze(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class qr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function cL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fL(e,t){if(!t)return e;const 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 Sf(e){return e===void 0||e===1}function xh({scale:e,scaleX:t,scaleY:n}){return!Sf(e)||!Sf(t)||!Sf(n)}function Jr(e){return xh(e)||Gb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Gb(e){return Sv(e.x)||Sv(e.y)}function Sv(e){return e&&e!=="0%"}function Du(e,t,n){const r=e-n,i=t*r;return n+i}function bv(e,t,n,r,i){return i!==void 0&&(e=Du(e,i,r)),Du(e,n,r)+t}function Sh(e,t=0,n=1,r,i){e.min=bv(e.min,t,n,r,i),e.max=bv(e.max,t,n,r,i)}function Qb(e,{x:t,y:n}){Sh(e.x,t.translate,t.scale,t.originPoint),Sh(e.y,n.translate,n.scale,n.originPoint)}const kv=.999999999999,Cv=1.0000000000001;function dL(e,t,n,r=!1){var a;const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;l<i;l++){s=n[l],o=s.projectionDelta;const{visualElement:u}=s.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(vn(e.x,-s.scroll.offset.x),vn(e.y,-s.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Qb(e,o)),r&&Jr(s.latestValues)&&Ul(e,s.latestValues,(a=s.layout)==null?void 0:a.layoutBox))}t.x<Cv&&t.x>kv&&(t.x=1),t.y<Cv&&t.y>kv&&(t.y=1)}function vn(e,t){e.min+=t,e.max+=t}function Ev(e,t,n,r,i=.5){const s=ue(e.min,e.max,i);Sh(e,t,n,s,r)}function Rv(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Ul(e,t,n){const r=n??e;Ev(e.x,Rv(t.x,r.x),t.scaleX,t.scale,t.originX),Ev(e.y,Rv(t.y,r.y),t.scaleY,t.scale,t.originY)}function Xb(e,t){return qb(fL(e.getBoundingClientRect(),t))}function hL(e,t,n){const r=Xb(e,n),{scroll:i}=t;return i&&(vn(r.x,i.offset.x),vn(r.y,i.offset.y)),r}const pL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mL=qs.length;function gL(e,t,n){let r="",i=!0;for(let o=0;o<mL;o++){const a=qs[o],l=e[a];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(a.startsWith("scale")?1:0);else{const c=parseFloat(l);u=a.startsWith("scale")?c===1:c===0}if(!u||n){const c=vh(l,Mu[a]);if(!u){i=!1;const f=pL[a]||a;r+=`${f}(${c}) `}n&&(t[a]=c)}}const s=e.pathRotation;return s&&(i=!1,r+=`rotate(${vh(s,Mu.pathRotation)}) `),r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function vm(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(Gs.has(l)){o=!0;continue}else if(ab(l)){i[l]=u;continue}else{const c=vh(u,Mu[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(t.transform||(o||n?r.transform=gL(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}function Yb(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function Tv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ho={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(z.test(e))e=parseFloat(e);else return e;const n=Tv(e,t.target.x),r=Tv(e,t.target.y);return`${n}% ${r}%`}},yL={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=tn.parse(e);if(i.length>5)return r;const s=tn.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=ue(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}},bh={borderRadius:{...ho,applyTo:[...dm]},borderTopLeftRadius:ho,borderTopRightRadius:ho,borderBottomLeftRadius:ho,borderBottomRightRadius:ho,boxShadow:yL};function Zb(e,{layout:t,layoutId:n}){return Gs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!bh[e]||e==="opacity")}function wm(e,t,n){var o;const r=e.style,i=t==null?void 0:t.style,s={};if(!r)return s;for(const a in r)(ze(r[a])||i&&ze(i[a])||Zb(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}function vL(e){return window.getComputedStyle(e)}class wL extends Kb{constructor(){super(...arguments),this.type="html",this.renderInstance=Yb}readValueFromInstance(t,n){var r;if(Gs.has(n))return(r=this.projection)!=null&&r.isProjecting?ah(n):jO(t,n);{const i=vL(t),s=(ab(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Xb(t,n)}build(t,n,r){vm(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return wm(t,n,r)}}const xL={offset:"stroke-dashoffset",array:"stroke-dasharray"},SL={offset:"strokeDashoffset",array:"strokeDasharray"};function bL(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?xL:SL;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const kL=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Jb(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(vm(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:d}=e;f.transform&&(d.transform=f.transform,delete f.transform),(d.transform||f.transformOrigin)&&(d.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox);for(const h of kL)f[h]!==void 0&&(d[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),i!==void 0&&bL(f,i,s,o,!1)}const ek=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"]),tk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function CL(e,t,n,r){Yb(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ek.has(i)?i:fm(i),t.attrs[i])}function nk(e,t,n){const r=wm(e,t,n);for(const i in e)if(ze(e[i])||ze(t[i])){const s=qs.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class EL extends Kb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Gs.has(n)){const r=Nb(n);return r&&r.default||0}return n=ek.has(n)?n:fm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return nk(t,n,r)}build(t,n,r){Jb(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){CL(t,n,r,i)}mount(t){this.isSVGTag=tk(t.tagName),super.mount(t)}}const RL=ym.length;function rk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?rk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<RL;n++){const r=ym[n],i=e.props[r];(aa(i)||i===!1)&&(t[r]=i)}return t}function ik(e,t){if(!Array.isArray(t))return!1;const 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}const TL=[...gm].reverse(),PL=gm.length;function AL(e){return t=>Promise.all(t.map(({animation:n,options:r})=>RD(e,n,r)))}function ML(e){let t=AL(e),n=Pv(),r=!0,i=!1;const s=u=>(c,f)=>{var h;const d=xi(e,f,u==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:p,transitionEnd:m,...v}=d;c={...c,...v,...m}}return c};function o(u){t=u(e)}function a(u){const{props:c}=e,f=rk(e.parent)||{},d=[],h=new Set;let p={},m=1/0;for(let g=0;g<PL;g++){const y=TL[g],w=n[y],x=c[y]!==void 0?c[y]:f[y],k=aa(x),R=y===u?w.isActive:null;R===!1&&(m=g);let E=x===f[y]&&x!==c[y]&&k;if(E&&(r||i)&&e.manuallyAnimateOnMount&&(E=!1),w.protectedKeys={...p},!w.isActive&&R===null||!x&&!w.prevProp||yc(x)||typeof x=="boolean")continue;if(y==="exit"&&w.isActive&&R!==!0){w.prevResolvedValues&&(p={...p,...w.prevResolvedValues});continue}const b=OL(w.prevProp,x);let A=b||y===u&&w.isActive&&!E&&k||g>m&&k,T=!1;const D=Array.isArray(x)?x:[x];let N=D.reduce(s(y),{});R===!1&&(N={});const{prevResolvedValues:H={}}=w,U={...H,...N},X=M=>{A=!0,h.has(M)&&(T=!0,h.delete(M)),w.needsAnimating[M]=!0;const _=e.getValue(M);_&&(_.liveStyle=!1)};for(const M in U){const _=N[M],O=H[M];if(p.hasOwnProperty(M))continue;let q=!1;hh(_)&&hh(O)?q=!ik(_,O)||b:q=_!==O,q?_!=null?X(M):h.add(M):_!==void 0&&h.has(M)?X(M):w.protectedKeys[M]=!0}w.prevProp=x,w.prevResolvedValues=N,w.isActive&&(p={...p,...N}),(r||i)&&e.blockInitialAnimation&&(A=!1);const V=E&&b;A&&(!V||T)&&d.push(...D.map(M=>{const _={type:y};if(typeof M=="string"&&(r||i)&&!V&&e.manuallyAnimateOnMount&&e.parent){const{parent:O}=e,q=xi(O,M);if(O.enteringChildren&&q){const{delayChildren:G}=q.transition||{};_.delay=Tb(O.enteringChildren,e,G)}}return{animation:M,options:_}}))}if(h.size){const g={};if(typeof c.initial!="boolean"){const y=xi(e,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(g.transition=y.transition)}h.forEach(y=>{const w=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),g[y]=w??null}),d.push({animation:g})}let v=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,i=!1,v?t(d):Promise.resolve()}function l(u,c){var d;if(n[u].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var p;return(p=h.animationState)==null?void 0:p.setActive(u,c)}),n[u].isActive=c;const f=a(u);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Pv(),i=!0}}}function OL(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ik(t,e):!1}function Xr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Pv(){return{animate:Xr(!0),whileInView:Xr(),whileHover:Xr(),whileTap:Xr(),whileDrag:Xr(),whileFocus:Xr(),exit:Xr()}}function kh(e,t){e.min=t.min,e.max=t.max}function Kt(e,t){kh(e.x,t.x),kh(e.y,t.y)}function Av(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const sk=1e-4,DL=1-sk,LL=1+sk,ok=.01,_L=0-ok,IL=0+ok;function tt(e){return e.max-e.min}function NL(e,t,n){return Math.abs(e-t)<=n}function Mv(e,t,n,r=.5){e.origin=r,e.originPoint=ue(t.min,t.max,e.origin),e.scale=tt(n)/tt(t),e.translate=ue(n.min,n.max,e.origin)-e.originPoint,(e.scale>=DL&&e.scale<=LL||isNaN(e.scale))&&(e.scale=1),(e.translate>=_L&&e.translate<=IL||isNaN(e.translate))&&(e.translate=0)}function _o(e,t,n,r){Mv(e.x,t.x,n.x,r?r.originX:void 0),Mv(e.y,t.y,n.y,r?r.originY:void 0)}function Ov(e,t,n,r=0){const i=r?ue(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+tt(t)}function FL(e,t,n,r){Ov(e.x,t.x,n.x,r==null?void 0:r.x),Ov(e.y,t.y,n.y,r==null?void 0:r.y)}function Dv(e,t,n,r=0){const i=r?ue(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+tt(t)}function Lu(e,t,n,r){Dv(e.x,t.x,n.x,r==null?void 0:r.x),Dv(e.y,t.y,n.y,r==null?void 0:r.y)}function Lv(e,t,n,r,i){return e-=t,e=Du(e,1/n,r),i!==void 0&&(e=Du(e,1/i,r)),e}function VL(e,t=0,n=1,r=.5,i,s=e,o=e){if(Cn.test(t)&&(t=parseFloat(t),t=ue(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=ue(s.min,s.max,r);e===s&&(a-=t),e.min=Lv(e.min,t,n,a,i),e.max=Lv(e.max,t,n,a,i)}function _v(e,t,[n,r,i],s,o){VL(e,t[n],t[r],t[i],t.scale,s,o)}const jL=["x","scaleX","originX"],zL=["y","scaleY","originY"];function Iv(e,t,n,r){_v(e.x,t,jL,n?n.x:void 0,r?r.x:void 0),_v(e.y,t,zL,n?n.y:void 0,r?r.y:void 0)}function Nv(e){return e.translate===0&&e.scale===1}function ak(e){return Nv(e.x)&&Nv(e.y)}function Fv(e,t){return e.min===t.min&&e.max===t.max}function BL(e,t){return Fv(e.x,t.x)&&Fv(e.y,t.y)}function Vv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function lk(e,t){return Vv(e.x,t.x)&&Vv(e.y,t.y)}function jv(e){return tt(e.x)/tt(e.y)}function zv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function pn(e){return[e("x"),e("y")]}function UL(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,pathRotation:f,rotateX:d,rotateY:h,skewX:p,skewY:m}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotate(${f}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const $L=dm.length,Bv=e=>typeof e=="string"?parseFloat(e):e,Uv=e=>typeof e=="number"||z.test(e);function WL(e,t,n,r,i,s){i?(e.opacity=ue(0,n.opacity??1,HL(r)),e.opacityExit=ue(t.opacity??1,0,KL(r))):s&&(e.opacity=ue(t.opacity??1,n.opacity??1,r));for(let o=0;o<$L;o++){const a=dm[o];let l=$v(t,a),u=$v(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Uv(l)===Uv(u)?(e[a]=Math.max(ue(Bv(l),Bv(u),r),0),(Cn.test(u)||Cn.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ue(t.rotate||0,n.rotate||0,r))}function $v(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const HL=uk(0,.5,tb),KL=uk(.5,.95,Bt);function uk(e,t,n){return r=>r<e?0:r>t?1:n(sa(e,t,r))}function qL(e,t,n){const r=ze(e)?e:Vs(e);return r.start(um("",r,t,n)),r.animation}function la(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const GL=(e,t)=>e.depth-t.depth;class QL{constructor(){this.children=[],this.isDirty=!1}add(t){Xp(this.children,t),this.isDirty=!0}remove(t){Eu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(GL),this.isDirty=!1,this.children.forEach(t)}}function XL(e,t){const n=et.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ur(r),e(s-t))};return ce.setup(r,!0),()=>Ur(r)}function $l(e){return ze(e)?e.get():e}class YL{constructor(){this.members=[]}add(t){Xp(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(Eu(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Eu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:o}=t.options;(s===void 0||s!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,s,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(i=t.resumingFrom)==null?void 0:(s=i.options).onExitComplete)==null||o.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const Wl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},bf=["","X","Y","Z"],ZL=1e3;let JL=0;function kf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ck(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Db(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ce,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ck(r)}function fk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=JL++,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,this.nodes.forEach(n_),this.nodes.forEach(l_),this.nodes.forEach(u_),this.nodes.forEach(r_)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new QL)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Zp),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=mm(o)&&!tL(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const d=()=>this.root.updateBlockedByResize=!1;ce.read(()=>{f=window.innerWidth}),e(o,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,c&&c(),c=XL(d,250),Wl.hasAnimatedSinceResize&&(Wl.hasAnimatedSinceResize=!1,this.nodes.forEach(Kv)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||p_,{onLayoutAnimationStart:m,onLayoutAnimationComplete:v}=u.getProps(),g=!this.targetLayout||!lk(this.targetLayout,h),y=!f&&d;if(this.options.layoutRoot||this.resumeFrom||y||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...lm(p,"layout"),onPlay:m,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,y,w.path)}else f||Kv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ur(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(c_),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ck(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(s_),this.nodes.forEach(Wv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Hv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(o_),this.nodes.forEach(a_),this.nodes.forEach(e_),this.nodes.forEach(t_)):this.nodes.forEach(Hv),this.clearAllSnapshots();const a=et.now();Ve.delta=En(0,1e3/60,a-Ve.timestamp),Ve.timestamp=a,Ve.isProcessing=!0,pf.update.process(Ve),pf.preRender.process(Ve),pf.render.process(Ve),Ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,hm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i_),this.sharedNodes.forEach(f_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ce.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!tt(this.snapshot.measuredBox.x)&&!tt(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Pe()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ak(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||Jr(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),m_(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return Pe();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(g_))){const{scroll:c}=this.root;c&&(vn(a.x,c.offset.x),vn(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=Pe();if(Kt(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Kt(a,o),vn(a.x,f.offset.x),vn(a.y,f.offset.y))}return a}applyTransform(o,a=!1,l){var c,f;const u=l||Pe();Kt(u,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(vn(u.x,-h.scroll.offset.x),vn(u.y,-h.scroll.offset.y)),Jr(h.latestValues)&&Ul(u,h.latestValues,(c=h.layout)==null?void 0:c.layoutBox)}return Jr(this.latestValues)&&Ul(u,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),u}removeTransform(o){var l;const a=Pe();Kt(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!Jr(c.latestValues))continue;let f;c.instance&&(xh(c.latestValues)&&c.updateSnapshot(),f=Pe(),Kt(f,c.measurePageBox())),Iv(a,c.latestValues,(l=c.snapshot)==null?void 0:l.layoutBox,f)}return Jr(this.latestValues)&&Iv(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}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!==Ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=Ve.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Pe(),this.targetWithTransforms=Pe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),FL(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Kt(this.target,this.layout.layoutBox),Qb(this.target,this.targetDelta)):Kt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||xh(this.parent.latestValues)||Gb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pe(),this.relativeTargetOrigin=Pe(),Lu(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Kt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Ve.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Kt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;dL(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Pe());const{target:h}=o;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Av(this.prevProjectionDelta.x,this.projectionDelta.x),Av(this.prevProjectionDelta.y,this.projectionDelta.y)),_o(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!zv(this.projectionDelta.x,this.prevProjectionDelta.x)||!zv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=rs(),this.projectionDelta=rs(),this.projectionDeltaWithTransform=rs()}setAnimationOrigin(o,a=!1,l){const u=this.snapshot,c=u?u.latestValues:{},f={...this.latestValues},d=rs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Pe(),p=u?u.source:void 0,m=this.layout?this.layout.source:void 0,v=p!==m,g=this.getStack(),y=!g||g.members.length<=1,w=!!(v&&!y&&this.options.crossfade===!0&&!this.path.some(h_));this.animationProgress=0;let x;const k=l==null?void 0:l.interpolateProjection(o);this.mixTargetDelta=R=>{const E=R/1e3,b=k==null?void 0:k(E);b?(d.x.translate=b.x,d.x.scale=ue(o.x.scale,1,E),d.x.origin=o.x.origin,d.x.originPoint=o.x.originPoint,d.y.translate=b.y,d.y.scale=ue(o.y.scale,1,E),d.y.origin=o.y.origin,d.y.originPoint=o.y.originPoint):(qv(d.x,o.x,E),qv(d.y,o.y,E)),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Lu(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),d_(this.relativeTarget,this.relativeTargetOrigin,h,E),x&&BL(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Pe()),Kt(x,this.relativeTarget)),v&&(this.animationValues=f,WL(f,c,this.latestValues,E,w,y)),b&&b.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=b.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ur(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ce.update(()=>{Wl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Vs(0)),this.motionValue.jump(0,!1),this.currentAnimation=qL(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onComplete:()=>{o.onComplete&&o.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);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ZL),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&dk(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Pe();const f=tt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const d=tt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}Kt(a,l),Ul(a,c),_o(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new YL),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&kf("z",o,u,this.animationValues);for(let c=0;c<bf.length;c++)kf(`rotate${bf[c]}`,o,u,this.animationValues),kf(`skew${bf[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=$l(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=$l(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Jr(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=UL(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),o.transform=f;const{x:d,y:h}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const p in bh){if(c[p]===void 0)continue;const{correct:m,applyTo:v,isCSSVariable:g}=bh[p],y=f==="none"?c[p]:m(c[p],u);if(v){const w=v.length;for(let x=0;x<w;x++)o[v[x]]=y}else g?this.options.visualElement.renderState.vars[p]=y:o[p]=y}this.options.layoutId&&(o.pointerEvents=u===this?$l(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Wv),this.root.sharedNodes.clear()}}}function e_(e){e.updateLayout()}function t_(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;if(s==="size")pn(f=>{const d=o?t.measuredBox[f]:t.layoutBox[f],h=tt(d);d.min=r[f].min,d.max=d.min+h});else if(s==="x"||s==="y"){const f=s==="x"?"y":"x";kh(o?t.measuredBox[f]:t.layoutBox[f],r[f])}else dk(s,t.layoutBox,r)&&pn(f=>{const d=o?t.measuredBox[f]:t.layoutBox[f],h=tt(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=rs();_o(a,r,t.layoutBox);const l=rs();o?_o(l,e.applyTransform(i,!0),t.measuredBox):_o(l,r,t.layoutBox);const u=!ak(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const p=e.options.layoutAnchor||void 0,m=Pe();Lu(m,t.layoutBox,d.layoutBox,p);const v=Pe();Lu(v,r,h.layoutBox,p),lk(m,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function n_(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i_(e){e.clearSnapshot()}function Wv(e){e.clearMeasurements()}function s_(e){e.isLayoutDirty=!0,e.updateLayout()}function Hv(e){e.isLayoutDirty=!1}function o_(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function a_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Kv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function l_(e){e.resolveTargetDelta()}function u_(e){e.calcProjection()}function c_(e){e.resetSkewAndRotation()}function f_(e){e.removeLeadSnapshot()}function qv(e,t,n){e.translate=ue(t.translate,0,n),e.scale=ue(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Gv(e,t,n,r){e.min=ue(t.min,n.min,r),e.max=ue(t.max,n.max,r)}function d_(e,t,n,r){Gv(e.x,t.x,n.x,r),Gv(e.y,t.y,n.y,r)}function h_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const p_={duration:.45,ease:[.4,0,.1,1]},Qv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Xv=Qv("applewebkit/")&&!Qv("chrome/")?Math.round:Bt;function Yv(e){e.min=Xv(e.min),e.max=Xv(e.max)}function m_(e){Yv(e.x),Yv(e.y)}function dk(e,t,n){return e==="position"||e==="preserve-aspect"&&!NL(jv(t),jv(n),.2)}function g_(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const y_=fk({attachResizeListener:(e,t)=>la(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Cf={current:void 0},hk=fk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cf.current){const e=new y_({});e.mount(window),e.setOptions({layoutScroll:!0}),Cf.current=e}return Cf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xm=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Zv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function v_(...e){return t=>{let n=!1;const r=e.map(i=>{const s=Zv(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():Zv(e[i],null)}}}}function w_(...e){return S.useCallback(v_(...e),e)}class x_ extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Vl(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,i=Vl(r)&&r.offsetWidth||0,s=Vl(r)&&r.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=s-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function S_({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:s}){var d;const o=S.useId(),a=S.useRef(null),l=S.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=S.useContext(xm),c=((d=e.props)==null?void 0:d.ref)??(e==null?void 0:e.ref),f=w_(a,c);return S.useInsertionEffect(()=>{const{width:h,height:p,top:m,left:v,right:g,bottom:y,direction:w}=l.current;if(t||s===!1||!a.current||!h||!p)return;const x=w==="rtl",k=n==="left"?x?`right: ${g}`:`left: ${v}`:x?`left: ${v}`:`right: ${g}`,R=r==="bottom"?`bottom: ${y}`:`top: ${m}`;a.current.dataset.motionPopId=o;const E=document.createElement("style");u&&(E.nonce=u);const b=i??document.head;return b.appendChild(E),E.sheet&&E.sheet.insertRule(`
385
+ [data-motion-pop-id="${o}"] {
386
+ position: absolute !important;
387
+ width: ${h}px !important;
388
+ height: ${p}px !important;
389
+ ${k}px !important;
390
+ ${R}px !important;
391
+ }
392
+ `),()=>{var A;(A=a.current)==null||A.removeAttribute("data-motion-pop-id"),b.contains(E)&&b.removeChild(E)}},[t]),$n.jsx(x_,{isPresent:t,childRef:a,sizeRef:l,pop:s,children:s===!1?e:S.cloneElement(e,{ref:f})})}const b_=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,anchorY:l,root:u})=>{const c=Gp(k_),f=S.useId(),d=S.useRef(n),h=S.useRef(r);Qp(()=>{d.current=n,h.current=r});let p=!0,m=S.useMemo(()=>(p=!1,{id:f,initial:t,isPresent:n,custom:i,onExitComplete:v=>{c.set(v,!0);for(const g of c.values())if(!g)return;r&&r()},register:v=>(c.set(v,!1),()=>{var g;c.delete(v),!d.current&&!c.size&&((g=h.current)==null||g.call(h))})}),[n,c,r]);return s&&p&&(m={...m}),S.useMemo(()=>{c.forEach((v,g)=>c.set(g,!1))},[n]),S.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),e=$n.jsx(S_,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:u,children:e}),$n.jsx(mc.Provider,{value:m,children:e})};function k_(){return new Map}function pk(e=!0){const t=S.useContext(mc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=S.useId();S.useEffect(()=>{if(e)return i(s)},[e]);const o=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const dl=e=>e.key||"";function Jv(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const uF=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,f]=pk(o),d=S.useMemo(()=>Jv(e),[e]),h=o&&!c?[]:d.map(dl),p=S.useRef(!0),m=S.useRef(d),v=Gp(()=>new Map),g=S.useRef(new Set),[y,w]=S.useState(d),[x,k]=S.useState(d);Qp(()=>{p.current=!1,m.current=d;for(let b=0;b<x.length;b++){const A=dl(x[b]);h.includes(A)?(v.delete(A),g.current.delete(A)):v.get(A)!==!0&&v.set(A,!1)}},[x,h.length,h.join("-")]);const R=[];if(d!==y){let b=[...d];for(let A=0;A<x.length;A++){const T=x[A],D=dl(T);h.includes(D)||(b.splice(A,0,T),R.push(T))}return s==="wait"&&R.length&&(b=R),k(Jv(b)),w(d),null}const{forceRender:E}=S.useContext(qp);return $n.jsx($n.Fragment,{children:x.map(b=>{const A=dl(b),T=o&&!c?!1:d===x||h.includes(A),D=()=>{if(g.current.has(A))return;if(v.has(A))g.current.add(A),v.set(A,!0);else return;let N=!0;v.forEach(H=>{H||(N=!1)}),N&&(E==null||E(),k(m.current),o&&(f==null||f()),r&&r())};return $n.jsx(b_,{isPresent:T,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:u,onExitComplete:T?void 0:D,anchorX:a,anchorY:l,children:b},A)})})},mk=S.createContext({strict:!1}),e0={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"]};let t0=!1;function C_(){if(t0)return;const e={};for(const t in e0)e[t]={isEnabled:n=>e0[t].some(r=>!!n[r])};Hb(e),t0=!0}function gk(){return C_(),lL()}function E_(e){const t=gk();for(const n in e)t[n]={...t[n],...e[n]};Hb(t)}const R_=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"]);function _u(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||R_.has(e)}let yk=e=>!_u(e);function T_(e){typeof e=="function"&&(yk=t=>t.startsWith("on")?!_u(t):e(t))}try{T_(require("@emotion/is-prop-valid").default)}catch{}function P_(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||ze(e[i])||(yk(i)||n===!0&&_u(i)||!t&&!_u(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const wc=S.createContext({});function A_(e,t){if(vc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||aa(n)?n:void 0,animate:aa(r)?r:void 0}}return e.inherit!==!1?t:{}}function M_(e){const{initial:t,animate:n}=A_(e,S.useContext(wc));return S.useMemo(()=>({initial:t,animate:n}),[n0(t),n0(n)])}function n0(e){return Array.isArray(e)?e.join(" "):e}const Sm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vk(e,t,n){for(const r in t)!ze(t[r])&&!Zb(r,n)&&(e[r]=t[r])}function O_({transformTemplate:e},t){return S.useMemo(()=>{const n=Sm();return vm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function D_(e,t){const n=e.style||{},r={};return vk(r,n,e),Object.assign(r,O_(e,t)),r}function L_(e,t){const n={},r=D_(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}const wk=()=>({...Sm(),attrs:{}});function __(e,t,n,r){const i=S.useMemo(()=>{const s=wk();return Jb(s,t,tk(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};vk(s,e.style,e),i.style={...s,...i.style}}return i}const I_=["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 bm(e){return typeof e!="string"||e.includes("-")?!1:!!(I_.indexOf(e)>-1||/[A-Z]/u.test(e))}function N_(e,t,n,{latestValues:r},i,s=!1,o){const l=(o??bm(e)?__:L_)(t,r,i,e),u=P_(t,typeof e=="string",s),c=e!==S.Fragment?{...u,...l,ref:n}:{},{children:f}=t,d=S.useMemo(()=>ze(f)?f.get():f,[f]);return S.createElement(e,{...c,children:d})}function F_({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:V_(n,r,i,e),renderState:t()}}function V_(e,t,n,r){const i={},s=r(e,{});for(const d in s)i[d]=$l(s[d]);let{initial:o,animate:a}=e;const l=vc(e),u=$b(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!yc(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const p=cm(e,d[h]);if(p){const{transitionEnd:m,transition:v,...g}=p;for(const y in g){let w=g[y];if(Array.isArray(w)){const x=c?w.length-1:0;w=w[x]}w!==null&&(i[y]=w)}for(const y in m)i[y]=m[y]}}}return i}const xk=e=>(t,n)=>{const r=S.useContext(wc),i=S.useContext(mc),s=()=>F_(e,t,r,i);return n?s():Gp(s)},j_=xk({scrapeMotionValuesFromProps:wm,createRenderState:Sm}),z_=xk({scrapeMotionValuesFromProps:nk,createRenderState:wk}),B_=Symbol.for("motionComponentSymbol");function U_(e,t,n){const r=S.useRef(n);S.useInsertionEffect(()=>{r.current=n});const i=S.useRef(null);return S.useCallback(s=>{var a;s&&((a=e.onMount)==null||a.call(e,s)),t&&(s?t.mount(s):t.unmount());const o=r.current;if(typeof o=="function")if(s){const l=o(s);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(s);else o&&(o.current=s)},[t])}const Sk=S.createContext({});function Bi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $_(e,t,n,r,i,s){var w,x;const{visualElement:o}=S.useContext(wc),a=S.useContext(mk),l=S.useContext(mc),u=S.useContext(xm),c=u.reducedMotion,f=u.skipAnimations,d=S.useRef(null),h=S.useRef(!1);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:s}),h.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const p=d.current,m=S.useContext(Sk);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&W_(d.current,n,i,m);const v=S.useRef(!1);S.useInsertionEffect(()=>{p&&v.current&&p.update(n,l)});const g=n[Ob],y=S.useRef(!!g&&typeof window<"u"&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,g))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,g)));return Qp(()=>{h.current=!0,p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),S.useEffect(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var k;(k=window.MotionHandoffMarkAsComplete)==null||k.call(window,g)}),y.current=!1),p.enteringChildren=void 0)}),p}function W_(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:bk(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Bi(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function bk(e){if(e)return e.options.allowProjection!==!1?e.projection:bk(e.parent)}function Ef(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&E_(r);const s=n?n==="svg":bm(e),o=s?z_:j_;function a(u,c){let f;const d={...S.useContext(xm),...u,layoutId:H_(u)},{isStatic:h}=d,p=M_(u),m=o(u,h);if(!h&&typeof window<"u"){K_();const v=q_(d);f=v.MeasureLayout,p.visualElement=$_(e,m,d,i,v.ProjectionNode,s)}return $n.jsxs(wc.Provider,{value:p,children:[f&&p.visualElement?$n.jsx(f,{visualElement:p.visualElement,...d}):null,N_(e,u,U_(m,p.visualElement,c),m,h,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=S.forwardRef(a);return l[B_]=e,l}function H_({layoutId:e}){const t=S.useContext(qp).id;return t&&e!==void 0?t+"-"+e:e}function K_(e,t){S.useContext(mk).strict}function q_(e){const t=gk(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function G_(e,t){if(typeof Proxy>"u")return Ef;const n=new Map,r=(s,o)=>Ef(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,Ef(o,void 0,e,t)),n.get(o))})}const Q_=(e,t)=>t.isSVG??bm(e)?new EL(t):new wL(t,{allowProjection:e!==S.Fragment});class X_ extends qr{constructor(t){super(t),t.animationState||(t.animationState=ML(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();yc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Y_=0;class Z_ extends qr{constructor(){super(...arguments),this.id=Y_++,this.isExitComplete=!1}update(){var s;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=xi(this.node,o,a);if(l){const{transition:u,transitionEnd:c,...f}=l;for(const d in f)(s=this.node.getValue(d))==null||s.jump(f[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const J_={animation:{Feature:X_},exit:{Feature:Z_}};function Oa(e){return{point:{x:e.pageX,y:e.pageY}}}const e3=e=>t=>pm(t)&&e(t,Oa(t));function Io(e,t,n,r){return la(e,t,e3(n),r)}const kk=({current:e})=>e?e.ownerDocument.defaultView:null,r0=(e,t)=>Math.abs(e-t);function t3(e,t){const n=r0(e.x,t.x),r=r0(e.y,t.y);return Math.sqrt(n**2+r**2)}const i0=new Set(["auto","scroll"]);class Ck{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3,element:a}={}){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=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=hl(this.lastRawMoveEventInfo,this.transformPagePoint));const p=Rf(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=t3(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!v)return;const{point:g}=p,{timestamp:y}=Ve;this.history.push({...g,timestamp:y});const{onStart:w,onMove:x}=this.handlers;m||(w&&w(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=hl(m,this.transformPagePoint),ce.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:v,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Rf(p.type==="pointercancel"?this.lastMoveEventInfo:hl(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(p,w),g&&g(p,w)},!pm(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const l=Oa(t),u=hl(l,this.transformPagePoint),{point:c}=u,{timestamp:f}=Ve;this.history=[{...c,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,Rf(u,this.history));const h={passive:!0,capture:!0};this.removeListeners=Pa(Io(this.contextWindow,"pointermove",this.handlePointerMove,h),Io(this.contextWindow,"pointerup",this.handlePointerUp,h),Io(this.contextWindow,"pointercancel",this.handlePointerUp,h)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(i0.has(r.overflowX)||i0.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.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(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-n.x,y:i.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),ce.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ur(this.updatePoint)}}function hl(e,t){return t?{point:t(e.point)}:e}function s0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Rf({point:e},t){return{point:e,delta:s0(e,Ek(t)),offset:s0(e,n3(t)),velocity:r3(t,.1)}}function n3(e){return e[0]}function Ek(e){return e[e.length-1]}function r3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ek(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Et(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Et(t)*2&&(r=e[1]);const s=jt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function i3(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ue(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ue(n,e,r.max):Math.min(e,n)),e}function o0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function s3(e,{top:t,left:n,bottom:r,right:i}){return{x:o0(e.x,n,i),y:o0(e.y,t,r)}}function a0(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 o3(e,t){return{x:a0(e.x,t.x),y:a0(e.y,t.y)}}function a3(e,t){let n=.5;const r=tt(e),i=tt(t);return i>r?n=sa(t.min,t.max-r,e.min):r>i&&(n=sa(e.min,e.max-i,t.min)),En(0,1,n)}function l3(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ch=.35;function u3(e=Ch){return e===!1?e=0:e===!0&&(e=Ch),{x:l0(e,"left","right"),y:l0(e,"top","bottom")}}function l0(e,t,n){return{min:u0(e,t),max:u0(e,n)}}function u0(e,t){return typeof e=="number"?e:e[t]||0}const c3=new WeakMap;class f3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{n&&this.snapToCursor(Oa(f).point),this.stopAnimation()},o=(f,d)=>{const{drag:h,dragPropagation:p,onDragStart:m}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=VD(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pn(g=>{let y=this.getAxisMotionValue(g).get()||0;if(Cn.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[g];x&&(y=tt(x)*(parseFloat(y)/100))}}this.originPoint[g]=y}),m&&ce.update(()=>m(f,d),!1,!0),ph(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:m,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:g}=d;if(p&&this.currentDirection===null){this.currentDirection=h3(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,g),this.updateAxis("y",d.point,g),this.visualElement.render(),v&&ce.update(()=>v(f,d),!1,!0)},l=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new Ck(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:kk(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&ce.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!pl(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=i3(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&Bi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=s3(r.layoutBox,t):this.constraints=!1,this.elastic=u3(n),i!==this.constraints&&!Bi(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&pn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=l3(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const s=hL(r,i.root,this.visualElement.getTransformPagePoint());let o=o3(i.layout.layoutBox,s);if(n){const a=n(cL(o));this.hasMutatedConstraints=!!a,a&&(o=qb(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=pn(c=>{if(!pl(c,n,this.currentDirection))return;let f=l&&l[c]||{};(o===!0||o===c)&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ph(this.visualElement,t),r.start(um(t,r,0,n,this.visualElement,!1))}stopAnimation(){pn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){pn(n=>{const{drag:r}=this.getProps();if(!pl(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=s.get()||0;s.set(t[n]-ue(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};pn(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=a3({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),pn(o=>{if(!pl(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(ue(l,u,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;c3.set(this.visualElement,this);const t=this.visualElement.current,n=Io(t,"pointerdown",u=>{const{drag:c,dragListener:f=!0}=this.getProps(),d=u.target,h=d!==t&&WD(d);c&&f&&!h&&this.start(u)});let r;const i=()=>{const{dragConstraints:u}=this.getProps();Bi(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=d3(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ce.read(i);const a=la(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(pn(f=>{const d=this.getAxisMotionValue(f);d&&(this.originPoint[f]+=u[f].translate,d.set(d.get()+u[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ch,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function c0(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function d3(e,t,n){const r=yv(e,c0(n)),i=yv(t,c0(n));return()=>{r(),i()}}function pl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function h3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class p3 extends qr{constructor(t){super(t),this.removeGroupControls=Bt,this.removeListeners=Bt,this.controls=new f3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Tf=e=>(t,n)=>{e&&ce.update(()=>e(t,n),!1,!0)};class m3 extends qr{constructor(){super(...arguments),this.removePointerDownListener=Bt}onPointerDown(t){this.session=new Ck(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Tf(t),onStart:Tf(n),onMove:Tf(r),onEnd:(s,o)=>{delete this.session,i&&ce.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Io(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Pf=!1;class g3 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Pf&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Wl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Pf=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||ce.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),hm.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Pf=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Rk(e){const[t,n]=pk(),r=S.useContext(qp);return $n.jsx(g3,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(Sk),isPresent:t,safeToRemove:n})}const y3={pan:{Feature:m3},drag:{Feature:p3,ProjectionNode:hk,MeasureLayout:Rk}};function f0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&ce.postRender(()=>s(t,Oa(t)))}class v3 extends qr{mount(){const{current:t}=this.node;t&&(this.unmount=zD(t,(n,r)=>(f0(this.node,r,"Start"),i=>f0(this.node,i,"End"))))}unmount(){}}class w3 extends qr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Pa(la(this.node.current,"focus",()=>this.onFocus()),la(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function d0(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&ce.postRender(()=>s(t,Oa(t)))}class x3 extends qr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=KD(t,(i,s)=>(d0(this.node,s,"Start"),(o,{success:a})=>d0(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Eh=new WeakMap,Af=new WeakMap,S3=e=>{const t=Eh.get(e.target);t&&t(e)},b3=e=>{e.forEach(S3)};function k3({root:e,...t}){const n=e||document;Af.has(n)||Af.set(n,{});const r=Af.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(b3,{root:e,...t})),r[i]}function C3(e,t,n){const r=k3(t);return Eh.set(e,n),r.observe(e),()=>{Eh.delete(e),r.unobserve(e)}}const E3={some:0,all:1};class R3 extends qr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:E3[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=c?f:d;h&&h(u)};this.stopObserver=C3(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(T3(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function T3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const P3={inView:{Feature:R3},tap:{Feature:x3},focus:{Feature:w3},hover:{Feature:v3}},A3={layout:{ProjectionNode:hk,MeasureLayout:Rk}},M3={...J_,...P3,...y3,...A3},cF=G_(M3,Q_);/*! *****************************************************************************
393
+ Copyright (c) Microsoft Corporation.
394
+
395
+ Permission to use, copy, modify, and/or distribute this software for any
396
+ purpose with or without fee is hereby granted.
397
+
398
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
399
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
400
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
401
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
402
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
403
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
404
+ PERFORMANCE OF THIS SOFTWARE.
405
+ ***************************************************************************** */var Rh=function(e,t){return Rh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Rh(e,t)};function fF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Rh(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}const dF=uC(YA);var Mn={},On={},Mf={},h0;function O3(){return h0||(h0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return"".concat(t++)}}(Mf)),Mf}var po={},mo={},Of={},p0;function Tk(){return p0||(p0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,i=null;return function(){for(var s=this,o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];clearTimeout(i),i=setTimeout(function(){n.apply(s,a)},r)}}}(Of)),Of}var Dn={},m0;function km(){return m0||(m0=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.SizeSensorId=Dn.SensorTabIndex=Dn.SensorClassName=void 0,Dn.SizeSensorId="size-sensor-id",Dn.SensorClassName="size-sensor-object",Dn.SensorTabIndex="-1"),Dn}var g0;function D3(){if(g0)return mo;g0=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.createSensor=void 0;var e=n(Tk()),t=km();function n(r){return r&&r.__esModule?r:{default:r}}return mo.createSensor=function(i,s){var o=void 0,a=[],l=function(){getComputedStyle(i).position==="static"&&(i.style.position="relative");var p=document.createElement("object");return p.onload=function(){p.contentDocument.defaultView.addEventListener("resize",u),u()},p.style.display="block",p.style.position="absolute",p.style.top="0",p.style.left="0",p.style.height="100%",p.style.width="100%",p.style.overflow="hidden",p.style.pointerEvents="none",p.style.zIndex="-1",p.style.opacity="0",p.setAttribute("class",t.SensorClassName),p.setAttribute("tabindex",t.SensorTabIndex),p.type="text/html",i.appendChild(p),p.data="about:blank",p},u=(0,e.default)(function(){a.forEach(function(h){h(i)})}),c=function(p){o||(o=l()),a.indexOf(p)===-1&&a.push(p)},f=function(){o&&o.parentNode&&(o.contentDocument&&o.contentDocument.defaultView.removeEventListener("resize",u),o.parentNode.removeChild(o),i.removeAttribute(t.SizeSensorId),o=void 0,a=[],s&&s())},d=function(p){var m=a.indexOf(p);m!==-1&&a.splice(m,1),a.length===0&&o&&f()};return{element:i,bind:c,destroy:f,unbind:d}},mo}var go={},y0;function L3(){if(y0)return go;y0=1,Object.defineProperty(go,"__esModule",{value:!0}),go.createSensor=void 0;var e=km(),t=n(Tk());function n(r){return r&&r.__esModule?r:{default:r}}return go.createSensor=function(i,s){var o=void 0,a=[],l=(0,t.default)(function(){a.forEach(function(h){h(i)})}),u=function(){var p=new ResizeObserver(l);return p.observe(i),l(),p},c=function(p){o||(o=u()),a.indexOf(p)===-1&&a.push(p)},f=function(){o&&o.disconnect(),a=[],o=void 0,i.removeAttribute(e.SizeSensorId),s&&s()},d=function(p){var m=a.indexOf(p);m!==-1&&a.splice(m,1),a.length===0&&o&&f()};return{element:i,bind:c,destroy:f,unbind:d}},go}var v0;function _3(){if(v0)return po;v0=1,Object.defineProperty(po,"__esModule",{value:!0}),po.createSensor=void 0;var e=D3(),t=L3();return po.createSensor=typeof ResizeObserver<"u"?t.createSensor:e.createSensor,po}var w0;function I3(){if(w0)return On;w0=1,Object.defineProperty(On,"__esModule",{value:!0}),On.removeSensor=On.getSensor=On.Sensors=void 0;var e=r(O3()),t=_3(),n=km();function r(o){return o&&o.__esModule?o:{default:o}}var i=On.Sensors={};function s(o){o&&i[o]&&delete i[o]}return On.getSensor=function(a){var l=a.getAttribute(n.SizeSensorId);if(l&&i[l])return i[l];var u=(0,e.default)();a.setAttribute(n.SizeSensorId,u);var c=(0,t.createSensor)(a,function(){return s(u)});return i[u]=c,c},On.removeSensor=function(a){var l=a.element.getAttribute(n.SizeSensorId);a.destroy(),s(l)},On}var x0;function hF(){if(x0)return Mn;x0=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.ver=Mn.clear=Mn.bind=void 0;var e=I3();return Mn.bind=function(n,r){var i=(0,e.getSensor)(n);return i.bind(r),function(){i.unbind(r)}},Mn.clear=function(n){var r=(0,e.getSensor)(n);(0,e.removeSensor)(r)},Mn.ver="1.0.3",Mn}var Df,S0;function pF(){return S0||(S0=1,Df=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;i--!==0;){var o=s[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}),Df}function N3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const xc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Qs(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Cm(e){return"nodeType"in e}function gt(e){var t,n;return e?Qs(e)?e:Cm(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Em(e){const{Document:t}=gt(e);return e instanceof t}function Da(e){return Qs(e)?!1:e instanceof gt(e).HTMLElement}function Pk(e){return e instanceof gt(e).SVGElement}function Xs(e){return e?Qs(e)?e.document:Cm(e)?Em(e)?e:Da(e)||Pk(e)?e.ownerDocument:document:document:document}const Rn=xc?S.useLayoutEffect:S.useEffect;function Rm(e){const t=S.useRef(e);return Rn(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function F3(){const e=S.useRef(null),t=S.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=S.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ua(e,t){t===void 0&&(t=[e]);const n=S.useRef(e);return Rn(()=>{n.current!==e&&(n.current=e)},t),n}function La(e,t){const n=S.useRef();return S.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Iu(e){const t=Rm(e),n=S.useRef(null),r=S.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function Th(e){const t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}let Lf={};function _a(e,t){return S.useMemo(()=>{if(t)return t;const n=Lf[e]==null?0:Lf[e]+1;return Lf[e]=n,e+"-"+n},[e,t])}function Ak(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((s,o)=>{const a=Object.entries(o);for(const[l,u]of a){const c=s[l];c!=null&&(s[l]=c+e*u)}return s},{...t})}}const hs=Ak(1),ca=Ak(-1);function V3(e){return"clientX"in e&&"clientY"in e}function Tm(e){if(!e)return!1;const{KeyboardEvent:t}=gt(e.target);return t&&e instanceof t}function j3(e){if(!e)return!1;const{TouchEvent:t}=gt(e.target);return t&&e instanceof t}function Ph(e){if(j3(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return V3(e)?{x:e.clientX,y:e.clientY}:null}const Nu=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Nu.Translate.toString(e),Nu.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),b0="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function z3(e){return e.matches(b0)?e:e.querySelector(b0)}const B3={display:"none"};function U3(e){let{id:t,value:n}=e;return Je.createElement("div",{id:t,style:B3},n)}function $3(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Je.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function W3(){const[e,t]=S.useState("");return{announce:S.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Mk=S.createContext(null);function H3(e){const t=S.useContext(Mk);S.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function K3(){const[e]=S.useState(()=>new Set),t=S.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[S.useCallback(r=>{let{type:i,event:s}=r;e.forEach(o=>{var a;return(a=o[i])==null?void 0:a.call(o,s)})},[e]),t]}const q3={draggable:`
406
+ To pick up a draggable item, press the space bar.
407
+ While dragging, use the arrow keys to move the item.
408
+ Press space again to drop the item in its new position, or press escape to cancel.
409
+ `},G3={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Q3(e){let{announcements:t=G3,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=q3}=e;const{announce:s,announcement:o}=W3(),a=_a("DndLiveRegion"),[l,u]=S.useState(!1);if(S.useEffect(()=>{u(!0)},[]),H3(S.useMemo(()=>({onDragStart(f){let{active:d}=f;s(t.onDragStart({active:d}))},onDragMove(f){let{active:d,over:h}=f;t.onDragMove&&s(t.onDragMove({active:d,over:h}))},onDragOver(f){let{active:d,over:h}=f;s(t.onDragOver({active:d,over:h}))},onDragEnd(f){let{active:d,over:h}=f;s(t.onDragEnd({active:d,over:h}))},onDragCancel(f){let{active:d,over:h}=f;s(t.onDragCancel({active:d,over:h}))}}),[s,t])),!l)return null;const c=Je.createElement(Je.Fragment,null,Je.createElement(U3,{id:r,value:i.draggable}),Je.createElement($3,{id:a,announcement:o}));return n?Rr.createPortal(c,n):c}var Me;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Me||(Me={}));function Fu(){}function mF(e,t){return S.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function gF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return S.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const on=Object.freeze({x:0,y:0});function Ok(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Dk(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function X3(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function k0(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Lk(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function C0(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const yF=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=C0(t,t.left,t.top),s=[];for(const o of r){const{id:a}=o,l=n.get(a);if(l){const u=Ok(C0(l),i);s.push({id:a,data:{droppableContainer:o,value:u}})}}return s.sort(Dk)},Y3=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=k0(t),s=[];for(const o of r){const{id:a}=o,l=n.get(a);if(l){const u=k0(l),c=i.reduce((d,h,p)=>d+Ok(u[p],h),0),f=Number((c/4).toFixed(4));s.push({id:a,data:{droppableContainer:o,value:f}})}}return s.sort(Dk)};function Z3(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),o=i-r,a=s-n;if(r<i&&n<s){const l=t.width*t.height,u=e.width*e.height,c=o*a,f=c/(l+u-c);return Number(f.toFixed(4))}return 0}const J3=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const s of r){const{id:o}=s,a=n.get(o);if(a){const l=Z3(a,t);l>0&&i.push({id:o,data:{droppableContainer:s,value:l}})}}return i.sort(X3)};function eI(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function _k(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:on}function tI(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return i.reduce((o,a)=>({...o,top:o.top+e*a.y,bottom:o.bottom+e*a.y,left:o.left+e*a.x,right:o.right+e*a.x}),{...n})}}const nI=tI(1);function rI(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function iI(e,t,n){const r=rI(t);if(!r)return e;const{scaleX:i,scaleY:s,x:o,y:a}=r,l=e.left-o-(1-i)*parseFloat(n),u=e.top-a-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?e.width/i:e.width,f=s?e.height/s:e.height;return{width:c,height:f,top:u,right:l+c,bottom:u+f,left:l}}const sI={ignoreTransform:!1};function Ys(e,t){t===void 0&&(t=sI);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:c}=gt(e).getComputedStyle(e);u&&(n=iI(n,u,c))}const{top:r,left:i,width:s,height:o,bottom:a,right:l}=n;return{top:r,left:i,width:s,height:o,bottom:a,right:l}}function E0(e){return Ys(e,{ignoreTransform:!0})}function oI(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function aI(e,t){return t===void 0&&(t=gt(e).getComputedStyle(e)),t.position==="fixed"}function lI(e,t){t===void 0&&(t=gt(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const s=t[i];return typeof s=="string"?n.test(s):!1})}function Sc(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(Em(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Da(i)||Pk(i)||n.includes(i))return n;const s=gt(e).getComputedStyle(i);return i!==e&&lI(i,s)&&n.push(i),aI(i,s)?n:r(i.parentNode)}return e?r(e):n}function Ik(e){const[t]=Sc(e,1);return t??null}function _f(e){return!xc||!e?null:Qs(e)?e:Cm(e)?Em(e)||e===Xs(e).scrollingElement?window:Da(e)?e:null:null}function Nk(e){return Qs(e)?e.scrollX:e.scrollLeft}function Fk(e){return Qs(e)?e.scrollY:e.scrollTop}function Ah(e){return{x:Nk(e),y:Fk(e)}}var _e;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(_e||(_e={}));function Vk(e){return!xc||!e?!1:e===document.scrollingElement}function jk(e){const t={x:0,y:0},n=Vk(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,o=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:s,isBottom:o,isRight:a,maxScroll:r,minScroll:t}}const uI={x:.2,y:.2};function cI(e,t,n,r,i){let{top:s,left:o,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=uI);const{isTop:u,isBottom:c,isLeft:f,isRight:d}=jk(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&s<=t.top+m.height?(h.y=_e.Backward,p.y=r*Math.abs((t.top+m.height-s)/m.height)):!c&&l>=t.bottom-m.height&&(h.y=_e.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!d&&a>=t.right-m.width?(h.x=_e.Forward,p.x=r*Math.abs((t.right-m.width-a)/m.width)):!f&&o<=t.left+m.width&&(h.x=_e.Backward,p.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:h,speed:p}}function fI(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:o}=window;return{top:0,left:0,right:s,bottom:o,width:s,height:o}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function zk(e){return e.reduce((t,n)=>hs(t,Ah(n)),on)}function dI(e){return e.reduce((t,n)=>t+Nk(n),0)}function hI(e){return e.reduce((t,n)=>t+Fk(n),0)}function pI(e,t){if(t===void 0&&(t=Ys),!e)return;const{top:n,left:r,bottom:i,right:s}=t(e);Ik(e)&&(i<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const mI=[["x",["left","right"],dI],["y",["top","bottom"],hI]];class Pm{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Sc(n),i=zk(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,o,a]of mI)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=a(r),c=i[s]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class No{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function gI(e){const{EventTarget:t}=gt(e);return e instanceof t?e:Xs(e)}function If(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var _t;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(_t||(_t={}));function R0(e){e.preventDefault()}function yI(e){e.stopPropagation()}var ne;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(ne||(ne={}));const Bk={start:[ne.Space,ne.Enter],cancel:[ne.Esc],end:[ne.Space,ne.Enter,ne.Tab]},vI=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ne.Right:return{...n,x:n.x+25};case ne.Left:return{...n,x:n.x-25};case ne.Down:return{...n,y:n.y+25};case ne.Up:return{...n,y:n.y-25}}};class Uk{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new No(Xs(n)),this.windowListeners=new No(gt(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(_t.Resize,this.handleCancel),this.windowListeners.add(_t.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(_t.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&pI(r),n(on)}handleKeyDown(t){if(Tm(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:s=Bk,coordinateGetter:o=vI,scrollBehavior:a="smooth"}=i,{code:l}=t;if(s.end.includes(l)){this.handleEnd(t);return}if(s.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:on;this.referenceCoordinates||(this.referenceCoordinates=c);const f=o(t,{active:n,context:r.current,currentCoordinates:c});if(f){const d=ca(f,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const m of p){const v=t.code,{isTop:g,isRight:y,isLeft:w,isBottom:x,maxScroll:k,minScroll:R}=jk(m),E=fI(m),b={x:Math.min(v===ne.Right?E.right-E.width/2:E.right,Math.max(v===ne.Right?E.left:E.left+E.width/2,f.x)),y:Math.min(v===ne.Down?E.bottom-E.height/2:E.bottom,Math.max(v===ne.Down?E.top:E.top+E.height/2,f.y))},A=v===ne.Right&&!y||v===ne.Left&&!w,T=v===ne.Down&&!x||v===ne.Up&&!g;if(A&&b.x!==f.x){const D=m.scrollLeft+d.x,N=v===ne.Right&&D<=k.x||v===ne.Left&&D>=R.x;if(N&&!d.y){m.scrollTo({left:D,behavior:a});return}N?h.x=m.scrollLeft-D:h.x=v===ne.Right?m.scrollLeft-k.x:m.scrollLeft-R.x,h.x&&m.scrollBy({left:-h.x,behavior:a});break}else if(T&&b.y!==f.y){const D=m.scrollTop+d.y,N=v===ne.Down&&D<=k.y||v===ne.Up&&D>=R.y;if(N&&!d.x){m.scrollTo({top:D,behavior:a});return}N?h.y=m.scrollTop-D:h.y=v===ne.Down?m.scrollTop-k.y:m.scrollTop-R.y,h.y&&m.scrollBy({top:-h.y,behavior:a});break}}this.handleMove(t,hs(ca(f,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Uk.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Bk,onActivation:i}=t,{active:s}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const a=s.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function T0(e){return!!(e&&"distance"in e)}function P0(e){return!!(e&&"delay"in e)}class Am{constructor(t,n,r){var i;r===void 0&&(r=gI(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:o}=s;this.props=t,this.events=n,this.document=Xs(o),this.documentListeners=new No(this.document),this.listeners=new No(r),this.windowListeners=new No(gt(o)),this.initialCoordinates=(i=Ph(s))!=null?i:on,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(_t.Resize,this.handleCancel),this.windowListeners.add(_t.DragStart,R0),this.windowListeners.add(_t.VisibilityChange,this.handleCancel),this.windowListeners.add(_t.ContextMenu,R0),this.documentListeners.add(_t.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(P0(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(T0(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(_t.Click,yI,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(_t.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:s}=this,{onMove:o,options:{activationConstraint:a}}=s;if(!i)return;const l=(n=Ph(t))!=null?n:on,u=ca(i,l);if(!r&&a){if(T0(a)){if(a.tolerance!=null&&If(u,a.tolerance))return this.handleCancel();if(If(u,a.distance))return this.handleStart()}if(P0(a)&&If(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),o(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===ne.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const wI={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class $k extends Am{constructor(t){const{event:n}=t,r=Xs(n.target);super(t,wI,r)}}$k.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const xI={move:{name:"mousemove"},end:{name:"mouseup"}};var Mh;(function(e){e[e.RightClick=2]="RightClick"})(Mh||(Mh={}));class SI extends Am{constructor(t){super(t,xI,Xs(t.event.target))}}SI.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Mh.RightClick?!1:(r==null||r({event:n}),!0)}}];const Nf={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class bI extends Am{constructor(t){super(t,Nf)}static setup(){return window.addEventListener(Nf.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Nf.move.name,t)};function t(){}}}bI.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Fo;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Fo||(Fo={}));var Vu;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Vu||(Vu={}));function kI(e){let{acceleration:t,activator:n=Fo.Pointer,canScroll:r,draggingRect:i,enabled:s,interval:o=5,order:a=Vu.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:f,threshold:d}=e;const h=EI({delta:f,disabled:!s}),[p,m]=F3(),v=S.useRef({x:0,y:0}),g=S.useRef({x:0,y:0}),y=S.useMemo(()=>{switch(n){case Fo.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Fo.DraggableRect:return i}},[n,i,l]),w=S.useRef(null),x=S.useCallback(()=>{const R=w.current;if(!R)return;const E=v.current.x*g.current.x,b=v.current.y*g.current.y;R.scrollBy(E,b)},[]),k=S.useMemo(()=>a===Vu.TreeOrder?[...u].reverse():u,[a,u]);S.useEffect(()=>{if(!s||!u.length||!y){m();return}for(const R of k){if((r==null?void 0:r(R))===!1)continue;const E=u.indexOf(R),b=c[E];if(!b)continue;const{direction:A,speed:T}=cI(R,b,y,t,d);for(const D of["x","y"])h[D][A[D]]||(T[D]=0,A[D]=0);if(T.x>0||T.y>0){m(),w.current=R,p(x,o),v.current=T,g.current=A;return}}v.current={x:0,y:0},g.current={x:0,y:0},m()},[t,x,r,m,s,o,JSON.stringify(y),JSON.stringify(h),p,u,k,c,JSON.stringify(d)])}const CI={x:{[_e.Backward]:!1,[_e.Forward]:!1},y:{[_e.Backward]:!1,[_e.Forward]:!1}};function EI(e){let{delta:t,disabled:n}=e;const r=Th(t);return La(i=>{if(n||!r||!i)return CI;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[_e.Backward]:i.x[_e.Backward]||s.x===-1,[_e.Forward]:i.x[_e.Forward]||s.x===1},y:{[_e.Backward]:i.y[_e.Backward]||s.y===-1,[_e.Forward]:i.y[_e.Forward]||s.y===1}}},[n,t,r])}function RI(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return La(i=>{var s;return t==null?null:(s=r??i)!=null?s:null},[r,t])}function TI(e,t){return S.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,s=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,r)}));return[...n,...s]},[]),[e,t])}var fa;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(fa||(fa={}));var Oh;(function(e){e.Optimized="optimized"})(Oh||(Oh={}));const A0=new Map;function PI(e,t){let{dragging:n,dependencies:r,config:i}=t;const[s,o]=S.useState(null),{frequency:a,measure:l,strategy:u}=i,c=S.useRef(e),f=v(),d=ua(f),h=S.useCallback(function(g){g===void 0&&(g=[]),!d.current&&o(y=>y===null?g:y.concat(g.filter(w=>!y.includes(w))))},[d]),p=S.useRef(null),m=La(g=>{if(f&&!n)return A0;if(!g||g===A0||c.current!==e||s!=null){const y=new Map;for(let w of e){if(!w)continue;if(s&&s.length>0&&!s.includes(w.id)&&w.rect.current){y.set(w.id,w.rect.current);continue}const x=w.node.current,k=x?new Pm(l(x),x):null;w.rect.current=k,k&&y.set(w.id,k)}return y}return g},[e,s,n,f,l]);return S.useEffect(()=>{c.current=e},[e]),S.useEffect(()=>{f||h()},[n,f]),S.useEffect(()=>{s&&s.length>0&&o(null)},[JSON.stringify(s)]),S.useEffect(()=>{f||typeof a!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},a))},[a,f,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:s!=null};function v(){switch(u){case fa.Always:return!1;case fa.BeforeDragging:return n;default:return!n}}}function Wk(e,t){return La(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function AI(e,t){return Wk(e,t)}function MI(e){let{callback:t,disabled:n}=e;const r=Rm(t),i=S.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return S.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function bc(e){let{callback:t,disabled:n}=e;const r=Rm(t),i=S.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return S.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function OI(e){return new Pm(Ys(e),e)}function M0(e,t,n){t===void 0&&(t=OI);const[r,i]=S.useState(null);function s(){i(l=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=l??n)!=null?u:null}const c=t(e);return JSON.stringify(l)===JSON.stringify(c)?l:c})}const o=MI({callback(l){if(e)for(const u of l){const{type:c,target:f}=u;if(c==="childList"&&f instanceof HTMLElement&&f.contains(e)){s();break}}}}),a=bc({callback:s});return Rn(()=>{s(),e?(a==null||a.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),o==null||o.disconnect())},[e]),r}function DI(e){const t=Wk(e);return _k(e,t)}const O0=[];function LI(e){const t=S.useRef(e),n=La(r=>e?r&&r!==O0&&e&&t.current&&e.parentNode===t.current.parentNode?r:Sc(e):O0,[e]);return S.useEffect(()=>{t.current=e},[e]),n}function _I(e){const[t,n]=S.useState(null),r=S.useRef(e),i=S.useCallback(s=>{const o=_f(s.target);o&&n(a=>a?(a.set(o,Ah(o)),new Map(a)):null)},[]);return S.useEffect(()=>{const s=r.current;if(e!==s){o(s);const a=e.map(l=>{const u=_f(l);return u?(u.addEventListener("scroll",i,{passive:!0}),[u,Ah(u)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{o(e),o(s)};function o(a){a.forEach(l=>{const u=_f(l);u==null||u.removeEventListener("scroll",i)})}},[i,e]),S.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,o)=>hs(s,o),on):zk(e):on,[e,t])}function D0(e,t){t===void 0&&(t=[]);const n=S.useRef(null);return S.useEffect(()=>{n.current=null},t),S.useEffect(()=>{const r=e!==on;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?ca(e,n.current):on}function II(e){S.useEffect(()=>{if(!xc)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function NI(e,t){return S.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:s}=r;return n[i]=o=>{s(o,t)},n},{}),[e,t])}function Hk(e){return S.useMemo(()=>e?oI(e):null,[e])}const L0=[];function FI(e,t){t===void 0&&(t=Ys);const[n]=e,r=Hk(n?gt(n):null),[i,s]=S.useState(L0);function o(){s(()=>e.length?e.map(l=>Vk(l)?r:new Pm(t(l),l)):L0)}const a=bc({callback:o});return Rn(()=>{a==null||a.disconnect(),o(),e.forEach(l=>a==null?void 0:a.observe(l))},[e]),i}function VI(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Da(t)?t:e}function jI(e){let{measure:t}=e;const[n,r]=S.useState(null),i=S.useCallback(u=>{for(const{target:c}of u)if(Da(c)){r(f=>{const d=t(c);return f?{...f,width:d.width,height:d.height}:d});break}},[t]),s=bc({callback:i}),o=S.useCallback(u=>{const c=VI(u);s==null||s.disconnect(),c&&(s==null||s.observe(c)),r(c?t(c):null)},[t,s]),[a,l]=Iu(o);return S.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const zI=[{sensor:$k,options:{}},{sensor:Uk,options:{}}],BI={current:{}},Hl={draggable:{measure:E0},droppable:{measure:E0,strategy:fa.WhileDragging,frequency:Oh.Optimized},dragOverlay:{measure:Ys}};class Vo extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const UI={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Vo,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Fu},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Hl,measureDroppableContainers:Fu,windowRect:null,measuringScheduled:!1},$I={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Fu,draggableNodes:new Map,over:null,measureDroppableContainers:Fu},kc=S.createContext($I),Kk=S.createContext(UI);function WI(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Vo}}}function HI(e,t){switch(t.type){case Me.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Me.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Me.DragEnd:case Me.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Me.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Vo(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Me.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const o=new Vo(e.droppable.containers);return o.set(n,{...s,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Me.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new Vo(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function KI(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=S.useContext(kc),s=Th(r),o=Th(n==null?void 0:n.id);return S.useEffect(()=>{if(!t&&!r&&s&&o!=null){if(!Tm(s)||document.activeElement===s.target)return;const a=i.get(o);if(!a)return;const{activatorNode:l,node:u}=a;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const f=z3(c);if(f){f.focus();break}}})}},[r,t,i,o,s]),null}function qI(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,s)=>s({transform:i,...r}),n):n}function GI(e){return S.useMemo(()=>({draggable:{...Hl.draggable,...e==null?void 0:e.draggable},droppable:{...Hl.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Hl.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function QI(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const s=S.useRef(!1),{x:o,y:a}=typeof i=="boolean"?{x:i,y:i}:i;Rn(()=>{if(!o&&!a||!t){s.current=!1;return}if(s.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const c=n(u),f=_k(c,r);if(o||(f.x=0),a||(f.y=0),s.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const d=Ik(u);d&&d.scrollBy({top:f.y,left:f.x})}},[t,o,a,r,n])}const qk=S.createContext({...on,scaleX:1,scaleY:1});var dr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(dr||(dr={}));const vF=S.memo(function(t){var n,r,i,s;let{id:o,accessibility:a,autoScroll:l=!0,children:u,sensors:c=zI,collisionDetection:f=J3,measuring:d,modifiers:h,...p}=t;const m=S.useReducer(HI,void 0,WI),[v,g]=m,[y,w]=K3(),[x,k]=S.useState(dr.Uninitialized),R=x===dr.Initialized,{draggable:{active:E,nodes:b,translate:A},droppable:{containers:T}}=v,D=E!=null?b.get(E):null,N=S.useRef({initial:null,translated:null}),H=S.useMemo(()=>{var $e;return E!=null?{id:E,data:($e=D==null?void 0:D.data)!=null?$e:BI,rect:N}:null},[E,D]),U=S.useRef(null),[X,V]=S.useState(null),[Q,M]=S.useState(null),_=ua(p,Object.values(p)),O=_a("DndDescribedBy",o),q=S.useMemo(()=>T.getEnabled(),[T]),G=GI(d),{droppableRects:be,measureDroppableContainers:pe,measuringScheduled:ae}=PI(q,{dragging:R,dependencies:[A.x,A.y],config:G.droppable}),ee=RI(b,E),st=S.useMemo(()=>Q?Ph(Q):null,[Q]),Wt=aC(),le=AI(ee,G.draggable.measure);QI({activeNode:E!=null?b.get(E):null,config:Wt.layoutShiftCompensation,initialRect:le,measure:G.draggable.measure});const ie=M0(ee,G.draggable.measure,le),ln=M0(ee?ee.parentElement:null),Xe=S.useRef({activatorEvent:null,active:null,activeNode:ee,collisionRect:null,collisions:null,droppableRects:be,draggableNodes:b,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),un=T.getNodeFor((n=Xe.current.over)==null?void 0:n.id),ot=jI({measure:G.dragOverlay.measure}),Di=(r=ot.nodeRef.current)!=null?r:ee,Li=R?(i=ot.rect)!=null?i:ie:null,Mm=!!(ot.nodeRef.current&&ot.rect),Om=DI(Mm?null:ie),Cc=Hk(Di?gt(Di):null),er=LI(R?un??ee:null),Ia=FI(er),Na=qI(h,{transform:{x:A.x-Om.x,y:A.y-Om.y,scaleX:1,scaleY:1},activatorEvent:Q,active:H,activeNodeRect:ie,containerNodeRect:ln,draggingNodeRect:Li,over:Xe.current.over,overlayNodeRect:ot.rect,scrollableAncestors:er,scrollableAncestorRects:Ia,windowRect:Cc}),Dm=st?hs(st,A):null,Lm=_I(er),eC=D0(Lm),tC=D0(Lm,[ie]),_i=hs(Na,eC),Ii=Li?nI(Li,Na):null,Zs=H&&Ii?f({active:H,collisionRect:Ii,droppableRects:be,droppableContainers:q,pointerCoordinates:Dm}):null,_m=Lk(Zs,"id"),[tr,Im]=S.useState(null),nC=Mm?Na:hs(Na,tC),rC=eI(nC,(s=tr==null?void 0:tr.rect)!=null?s:null,ie),Ec=S.useRef(null),Nm=S.useCallback(($e,yt)=>{let{sensor:vt,options:nr}=yt;if(U.current==null)return;const At=b.get(U.current);if(!At)return;const wt=$e.nativeEvent,cn=new vt({active:U.current,activeNode:At,event:wt,options:nr,context:Xe,onAbort(Ne){if(!b.get(Ne))return;const{onDragAbort:fn}=_.current,Pn={id:Ne};fn==null||fn(Pn),y({type:"onDragAbort",event:Pn})},onPending(Ne,rr,fn,Pn){if(!b.get(Ne))return;const{onDragPending:eo}=_.current,ir={id:Ne,constraint:rr,initialCoordinates:fn,offset:Pn};eo==null||eo(ir),y({type:"onDragPending",event:ir})},onStart(Ne){const rr=U.current;if(rr==null)return;const fn=b.get(rr);if(!fn)return;const{onDragStart:Pn}=_.current,Js={activatorEvent:wt,active:{id:rr,data:fn.data,rect:N}};Rr.unstable_batchedUpdates(()=>{Pn==null||Pn(Js),k(dr.Initializing),g({type:Me.DragStart,initialCoordinates:Ne,active:rr}),y({type:"onDragStart",event:Js}),V(Ec.current),M(wt)})},onMove(Ne){g({type:Me.DragMove,coordinates:Ne})},onEnd:Ni(Me.DragEnd),onCancel:Ni(Me.DragCancel)});Ec.current=cn;function Ni(Ne){return async function(){const{active:fn,collisions:Pn,over:Js,scrollAdjustedTranslate:eo}=Xe.current;let ir=null;if(fn&&eo){const{cancelDrop:to}=_.current;ir={activatorEvent:wt,active:fn,collisions:Pn,delta:eo,over:Js},Ne===Me.DragEnd&&typeof to=="function"&&await Promise.resolve(to(ir))&&(Ne=Me.DragCancel)}U.current=null,Rr.unstable_batchedUpdates(()=>{g({type:Ne}),k(dr.Uninitialized),Im(null),V(null),M(null),Ec.current=null;const to=Ne===Me.DragEnd?"onDragEnd":"onDragCancel";if(ir){const Rc=_.current[to];Rc==null||Rc(ir),y({type:to,event:ir})}})}}},[b]),iC=S.useCallback(($e,yt)=>(vt,nr)=>{const At=vt.nativeEvent,wt=b.get(nr);if(U.current!==null||!wt||At.dndKit||At.defaultPrevented)return;const cn={active:wt};$e(vt,yt.options,cn)===!0&&(At.dndKit={capturedBy:yt.sensor},U.current=nr,Nm(vt,yt))},[b,Nm]),Fm=TI(c,iC);II(c),Rn(()=>{ie&&x===dr.Initializing&&k(dr.Initialized)},[ie,x]),S.useEffect(()=>{const{onDragMove:$e}=_.current,{active:yt,activatorEvent:vt,collisions:nr,over:At}=Xe.current;if(!yt||!vt)return;const wt={active:yt,activatorEvent:vt,collisions:nr,delta:{x:_i.x,y:_i.y},over:At};Rr.unstable_batchedUpdates(()=>{$e==null||$e(wt),y({type:"onDragMove",event:wt})})},[_i.x,_i.y]),S.useEffect(()=>{const{active:$e,activatorEvent:yt,collisions:vt,droppableContainers:nr,scrollAdjustedTranslate:At}=Xe.current;if(!$e||U.current==null||!yt||!At)return;const{onDragOver:wt}=_.current,cn=nr.get(_m),Ni=cn&&cn.rect.current?{id:cn.id,rect:cn.rect.current,data:cn.data,disabled:cn.disabled}:null,Ne={active:$e,activatorEvent:yt,collisions:vt,delta:{x:At.x,y:At.y},over:Ni};Rr.unstable_batchedUpdates(()=>{Im(Ni),wt==null||wt(Ne),y({type:"onDragOver",event:Ne})})},[_m]),Rn(()=>{Xe.current={activatorEvent:Q,active:H,activeNode:ee,collisionRect:Ii,collisions:Zs,droppableRects:be,draggableNodes:b,draggingNode:Di,draggingNodeRect:Li,droppableContainers:T,over:tr,scrollableAncestors:er,scrollAdjustedTranslate:_i},N.current={initial:Li,translated:Ii}},[H,ee,Zs,Ii,b,Di,Li,be,T,tr,er,_i]),kI({...Wt,delta:A,draggingRect:Ii,pointerCoordinates:Dm,scrollableAncestors:er,scrollableAncestorRects:Ia});const sC=S.useMemo(()=>({active:H,activeNode:ee,activeNodeRect:ie,activatorEvent:Q,collisions:Zs,containerNodeRect:ln,dragOverlay:ot,draggableNodes:b,droppableContainers:T,droppableRects:be,over:tr,measureDroppableContainers:pe,scrollableAncestors:er,scrollableAncestorRects:Ia,measuringConfiguration:G,measuringScheduled:ae,windowRect:Cc}),[H,ee,ie,Q,Zs,ln,ot,b,T,be,tr,pe,er,Ia,G,ae,Cc]),oC=S.useMemo(()=>({activatorEvent:Q,activators:Fm,active:H,activeNodeRect:ie,ariaDescribedById:{draggable:O},dispatch:g,draggableNodes:b,over:tr,measureDroppableContainers:pe}),[Q,Fm,H,ie,g,O,b,tr,pe]);return Je.createElement(Mk.Provider,{value:w},Je.createElement(kc.Provider,{value:oC},Je.createElement(Kk.Provider,{value:sC},Je.createElement(qk.Provider,{value:rC},u)),Je.createElement(KI,{disabled:(a==null?void 0:a.restoreFocus)===!1})),Je.createElement(Q3,{...a,hiddenTextDescribedById:O}));function aC(){const $e=(X==null?void 0:X.autoScrollEnabled)===!1,yt=typeof l=="object"?l.enabled===!1:l===!1,vt=R&&!$e&&!yt;return typeof l=="object"?{...l,enabled:vt}:{enabled:vt}}}),XI=S.createContext(null),_0="button",YI="Draggable";function ZI(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const s=_a(YI),{activators:o,activatorEvent:a,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:f,over:d}=S.useContext(kc),{role:h=_0,roleDescription:p="draggable",tabIndex:m=0}=i??{},v=(l==null?void 0:l.id)===t,g=S.useContext(v?qk:XI),[y,w]=Iu(),[x,k]=Iu(),R=NI(o,t),E=ua(n);Rn(()=>(f.set(t,{id:t,key:s,node:y,activatorNode:x,data:E}),()=>{const A=f.get(t);A&&A.key===s&&f.delete(t)}),[f,t]);const b=S.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":v&&h===_0?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,m,v,p,c.draggable]);return{active:l,activatorEvent:a,activeNodeRect:u,attributes:b,isDragging:v,listeners:r?void 0:R,node:y,over:d,setNodeRef:w,setActivatorNodeRef:k,transform:g}}function JI(){return S.useContext(Kk)}const eN="Droppable",tN={timeout:25};function nN(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const s=_a(eN),{active:o,dispatch:a,over:l,measureDroppableContainers:u}=S.useContext(kc),c=S.useRef({disabled:n}),f=S.useRef(!1),d=S.useRef(null),h=S.useRef(null),{disabled:p,updateMeasurementsFor:m,timeout:v}={...tN,...i},g=ua(m??r),y=S.useCallback(()=>{if(!f.current){f.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),h.current=null},v)},[v]),w=bc({callback:y,disabled:p||!o}),x=S.useCallback((b,A)=>{w&&(A&&(w.unobserve(A),f.current=!1),b&&w.observe(b))},[w]),[k,R]=Iu(x),E=ua(t);return S.useEffect(()=>{!w||!k.current||(w.disconnect(),f.current=!1,w.observe(k.current))},[k,w]),S.useEffect(()=>(a({type:Me.RegisterDroppable,element:{id:r,key:s,disabled:n,node:k,rect:d,data:E}}),()=>a({type:Me.UnregisterDroppable,key:s,id:r})),[r]),S.useEffect(()=>{n!==c.current.disabled&&(a({type:Me.SetDroppableDisabled,id:r,key:s,disabled:n}),c.current.disabled=n)},[r,s,n,a]),{active:o,rect:d,isOver:(l==null?void 0:l.id)===r,node:k,over:l,setNodeRef:R}}function Gk(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function rN(e,t){return e.reduce((n,r,i)=>{const s=t.get(r);return s&&(n[i]=s),n},Array(e.length))}function ml(e){return e!==null&&e>=0}function iN(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 sN(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Qk=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const s=Gk(t,r,n),o=t[i],a=s[i];return!a||!o?null:{x:a.left-o.left,y:a.top-o.top,scaleX:a.width/o.width,scaleY:a.height/o.height}},gl={scaleX:1,scaleY:1},wF=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:s,overIndex:o}=e;const a=(t=s[n])!=null?t:r;if(!a)return null;if(i===n){const u=s[o];return u?{x:0,y:n<o?u.top+u.height-(a.top+a.height):u.top-a.top,...gl}:null}const l=oN(s,i,n);return i>n&&i<=o?{x:0,y:-a.height-l,...gl}:i<n&&i>=o?{x:0,y:a.height+l,...gl}:{x:0,y:0,...gl}};function oN(e,t,n){const r=e[t],i=e[t-1],s=e[t+1];return r?n<t?i?r.top-(i.top+i.height):s?s.top-(r.top+r.height):0:s?s.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const Xk="Sortable",Yk=Je.createContext({activeIndex:-1,containerId:Xk,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Qk,disabled:{draggable:!1,droppable:!1}});function xF(e){let{children:t,id:n,items:r,strategy:i=Qk,disabled:s=!1}=e;const{active:o,dragOverlay:a,droppableRects:l,over:u,measureDroppableContainers:c}=JI(),f=_a(Xk,n),d=a.rect!==null,h=S.useMemo(()=>r.map(R=>typeof R=="object"&&"id"in R?R.id:R),[r]),p=o!=null,m=o?h.indexOf(o.id):-1,v=u?h.indexOf(u.id):-1,g=S.useRef(h),y=!iN(h,g.current),w=v!==-1&&m===-1||y,x=sN(s);Rn(()=>{y&&p&&c(h)},[y,h,p,c]),S.useEffect(()=>{g.current=h},[h]);const k=S.useMemo(()=>({activeIndex:m,containerId:f,disabled:x,disableTransforms:w,items:h,overIndex:v,useDragOverlay:d,sortedRects:rN(h,l),strategy:i}),[m,f,x.draggable,x.droppable,w,h,v,l,d,i]);return Je.createElement(Yk.Provider,{value:k},t)}const aN=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return Gk(n,r,i).indexOf(t)},lN=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:s,newIndex:o,previousItems:a,previousContainerId:l,transition:u}=e;return!u||!r||a!==s&&i===o?!1:n?!0:o!==i&&t===l},uN={duration:200,easing:"ease"},Zk="transform",cN=Nu.Transition.toString({property:Zk,duration:0,easing:"linear"}),fN={roleDescription:"sortable"};function dN(e){let{disabled:t,index:n,node:r,rect:i}=e;const[s,o]=S.useState(null),a=S.useRef(n);return Rn(()=>{if(!t&&n!==a.current&&r.current){const l=i.current;if(l){const u=Ys(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}n!==a.current&&(a.current=n)},[t,n,r,i]),S.useEffect(()=>{s&&o(null)},[s]),s}function SF(e){let{animateLayoutChanges:t=lN,attributes:n,disabled:r,data:i,getNewIndex:s=aN,id:o,strategy:a,resizeObserverConfig:l,transition:u=uN}=e;const{items:c,containerId:f,activeIndex:d,disabled:h,disableTransforms:p,sortedRects:m,overIndex:v,useDragOverlay:g,strategy:y}=S.useContext(Yk),w=hN(r,h),x=c.indexOf(o),k=S.useMemo(()=>({sortable:{containerId:f,index:x,items:c},...i}),[f,i,x,c]),R=S.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:E,node:b,isOver:A,setNodeRef:T}=nN({id:o,data:k,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:R,...l}}),{active:D,activatorEvent:N,activeNodeRect:H,attributes:U,setNodeRef:X,listeners:V,isDragging:Q,over:M,setActivatorNodeRef:_,transform:O}=ZI({id:o,data:k,attributes:{...fN,...n},disabled:w.draggable}),q=N3(T,X),G=!!D,be=G&&!p&&ml(d)&&ml(v),pe=!g&&Q,ae=pe&&be?O:null,st=be?ae??(a??y)({rects:m,activeNodeRect:H,activeIndex:d,overIndex:v,index:x}):null,Wt=ml(d)&&ml(v)?s({id:o,items:c,activeIndex:d,overIndex:v}):x,le=D==null?void 0:D.id,ie=S.useRef({activeId:le,items:c,newIndex:Wt,containerId:f}),ln=c!==ie.current.items,Xe=t({active:D,containerId:f,isDragging:Q,isSorting:G,id:o,index:x,items:c,newIndex:ie.current.newIndex,previousItems:ie.current.items,previousContainerId:ie.current.containerId,transition:u,wasDragging:ie.current.activeId!=null}),un=dN({disabled:!Xe,index:x,node:b,rect:E});return S.useEffect(()=>{G&&ie.current.newIndex!==Wt&&(ie.current.newIndex=Wt),f!==ie.current.containerId&&(ie.current.containerId=f),c!==ie.current.items&&(ie.current.items=c)},[G,Wt,f,c]),S.useEffect(()=>{if(le===ie.current.activeId)return;if(le!=null&&ie.current.activeId==null){ie.current.activeId=le;return}const Di=setTimeout(()=>{ie.current.activeId=le},50);return()=>clearTimeout(Di)},[le]),{active:D,activeIndex:d,attributes:U,data:k,rect:E,index:x,newIndex:Wt,items:c,isOver:A,isSorting:G,isDragging:Q,listeners:V,node:b,overIndex:v,over:M,setNodeRef:q,setActivatorNodeRef:_,setDroppableNodeRef:T,setDraggableNodeRef:X,transform:un??st,transition:ot()};function ot(){if(un||ln&&ie.current.newIndex===x)return cN;if(!(pe&&!Tm(N)||!u)&&(G||Xe))return Nu.Transition.toString({...u,property:Zk})}}function hN(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}function ju(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const pN=[ne.Down,ne.Right,ne.Up,ne.Left],bF=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:s,over:o,scrollableAncestors:a}}=t;if(pN.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];s.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const d=i.get(f.id);if(d)switch(e.code){case ne.Down:r.top<d.top&&l.push(f);break;case ne.Up:r.top>d.top&&l.push(f);break;case ne.Left:r.left>d.left&&l.push(f);break;case ne.Right:r.left<d.left&&l.push(f);break}});const u=Y3({collisionRect:r,droppableRects:i,droppableContainers:l});let c=Lk(u,"id");if(c===(o==null?void 0:o.id)&&u.length>1&&(c=u[1].id),c!=null){const f=s.get(n.id),d=s.get(c),h=d?i.get(d.id):null,p=d==null?void 0:d.node.current;if(p&&h&&f&&d){const v=Sc(p).some((R,E)=>a[E]!==R),g=Jk(f,d),y=mN(f,d),w=v||!g?{x:0,y:0}:{x:y?r.width-h.width:0,y:y?r.height-h.height:0},x={x:h.left,y:h.top};return w.x&&w.y?x:ca(x,w)}}}};function Jk(e,t){return!ju(e)||!ju(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function mN(e,t){return!ju(e)||!ju(t)||!Jk(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}export{r4 as $,es as A,Z4 as B,nF as C,vN as D,LM as E,aF as F,dF as G,pF as H,hF as I,kN as J,Re as K,VN as L,bN as M,R4 as N,e4 as O,m4 as P,SN as Q,yN as R,b4 as S,XN as T,x4 as U,j4 as V,C4 as W,u4 as X,Y4 as Y,o4 as Z,fF as _,Dt as a,l4 as a0,W4 as a1,M4 as a2,A4 as a3,S4 as a4,F4 as a5,wN as a6,O4 as a7,Um as a8,y4 as a9,K4 as aA,SF as aB,v4 as aC,Nu as aD,gF as aE,mF as aF,vF as aG,yF as aH,xF as aI,wF as aJ,bF as aK,Uk as aL,$k as aM,t4 as aN,g4 as aO,U4 as aP,h4 as aQ,k4 as aR,E4 as aS,p4 as aT,JN as aU,YN as aV,QN as aW,$4 as aX,V4 as aY,B4 as aZ,T4 as a_,H4 as aa,ZN as ab,n4 as ac,q4 as ad,D4 as ae,P4 as af,w4 as ag,N4 as ah,Q4 as ai,i4 as aj,c4 as ak,X4 as al,aP as am,GN as an,uF as ao,cF as ap,I4 as aq,a4 as ar,G4 as as,f4 as at,d4 as au,s4 as av,z4 as aw,Gk as ax,_4 as ay,L4 as az,cs as b,Ll as c,KN as d,XT as e,qN as f,HN as g,Nx as h,Ls as i,$n as j,$N as k,qT as l,WN as m,je as n,Rr as o,ac as p,Je as q,S as r,xN as s,eF as t,J4 as u,tF as v,rF as w,iF as x,oF as y,sF as z};